b.includes("_"));p&&X.push(p.replace(/^[^_]+_/,"_"))}X.push("@none");const I=A.inverse[f];for(const p of _){if(!(p in I))continue;const b=I[p][O];for(const P of X)if(P in b)return b[P]}return null}(A,f,v,c,G,Q);if(null!==z)return z}if(_.vocab&&"@vocab"in A){const M=A["@vocab"];if(0===f.indexOf(M)&&f!==M){const c=f.substr(M.length);if(!A.mappings.has(c))return c}}let I=null;const p=[];let b=A.fastCurieMap;const P=f.length-1;for(let M=0;M=0;--M){const c=p[M],G=c.terms;for(const Q of G){const z=Q+":"+f.substr(c.iri.length);A.mappings.get(Q)._prefix&&(!A.mappings.has(z)||null===v&&A.mappings.get(z)["@id"]===f)&&(null===I||a(z,I)<0)&&(I=z)}}if(null!==I)return I;for(const[M,c]of A.mappings)if(c&&c._prefix&&f.startsWith(M+":"))throw new x(`Absolute IRI "${f}" confused with prefix "${M}".`,"jsonld.SyntaxError",{code:"IRI confused with prefix",context:A});if(!_.vocab){if("@base"in A){if(A["@base"]){const M=L(E(H,A["@base"]),f);return Y.test(M)?`./${M}`:M}return f}return L(H,f)}return f},s.compactValue=({activeCtx:A,activeProperty:f,value:v,options:_})=>{if(t(v)){const I=l(A,f,"@type"),p=l(A,f,"@language"),b=l(A,f,"@direction"),P=l(A,f,"@container")||[],M="@index"in v&&!P.includes("@index");if(!M&&"@none"!==I&&(v["@type"]===I||"@language"in v&&v["@language"]===p&&"@direction"in v&&v["@direction"]===b||"@language"in v&&v["@language"]===p||"@direction"in v&&v["@direction"]===b))return v["@value"];const c=Object.keys(v).length,G=1===c||2===c&&"@index"in v&&!M,Q="@language"in A,z=J(v["@value"]),K=A.mappings.has(f)&&null===A.mappings.get(f)["@language"];if(G&&"@none"!==I&&(!Q||!z||K))return v["@value"];const F={};return M&&(F[s.compactIri({activeCtx:A,iri:"@index",relativeTo:{vocab:!0}})]=v["@index"]),"@type"in v?F[s.compactIri({activeCtx:A,iri:"@type",relativeTo:{vocab:!0}})]=s.compactIri({activeCtx:A,iri:v["@type"],relativeTo:{vocab:!0}}):"@language"in v&&(F[s.compactIri({activeCtx:A,iri:"@language",relativeTo:{vocab:!0}})]=v["@language"]),"@direction"in v&&(F[s.compactIri({activeCtx:A,iri:"@direction",relativeTo:{vocab:!0}})]=v["@direction"]),F[s.compactIri({activeCtx:A,iri:"@value",relativeTo:{vocab:!0}})]=v["@value"],F}const O=k(A,f,{vocab:!0},_),H=l(A,f,"@type"),X=s.compactIri({activeCtx:A,iri:v["@id"],relativeTo:{vocab:"@vocab"===H},base:_.base});return"@id"===H||"@vocab"===H||"@graph"===O?X:{[s.compactIri({activeCtx:A,iri:"@id",relativeTo:{vocab:!0}})]:X}}},6270:$=>{"use strict";const Z="http://www.w3.org/1999/02/22-rdf-syntax-ns#",u="http://www.w3.org/2001/XMLSchema#";$.exports={LINK_HEADER_REL:"http://www.w3.org/ns/json-ld#context",LINK_HEADER_CONTEXT:"http://www.w3.org/ns/json-ld#context",RDF:Z,RDF_LIST:Z+"List",RDF_FIRST:Z+"first",RDF_REST:Z+"rest",RDF_NIL:Z+"nil",RDF_TYPE:Z+"type",RDF_PLAIN_LITERAL:Z+"PlainLiteral",RDF_XML_LITERAL:Z+"XMLLiteral",RDF_JSON_LITERAL:Z+"JSON",RDF_OBJECT:Z+"object",RDF_LANGSTRING:Z+"langString",XSD:u,XSD_BOOLEAN:u+"boolean",XSD_DOUBLE:u+"double",XSD_INTEGER:u+"integer",XSD_STRING:u+"string"}},3104:($,Z,u)=>{"use strict";var S=u(4510).default;const x=u(6035),h=u(9027),{isArray:g,isObject:J,isString:r,isUndefined:n}=u(9098),{isAbsolute:t,isRelative:i,prependBase:y}=u(3834),{handleEvent:N}=u(9802),{REGEX_BCP47:k,REGEX_KEYWORD:l,asArray:o,compareShortestLeast:j}=u(6035),d=new Map,E={};function Y(e,a,s,m,T,A){if(null===a||!r(a)||E.isKeyword(a))return a;if(a.match(l))return null;if(m&&m.hasOwnProperty(a)&&!0!==T.get(a)&&E.createTermDefinition({activeCtx:e,localCtx:m,term:a,defined:T,options:A}),(s=s||{}).vocab){const v=e.mappings.get(a);if(null===v)return null;if(J(v)&&"@id"in v)return v["@id"]}const f=a.indexOf(":");if(f>0){const v=a.substr(0,f),_=a.substr(f+1);if("_"===v||0===_.indexOf("//"))return a;m&&m.hasOwnProperty(v)&&E.createTermDefinition({activeCtx:e,localCtx:m,term:v,defined:T,options:A});const O=e.mappings.get(v);if(O&&O._prefix)return O["@id"]+_;if(t(a))return a}if(s.vocab&&"@vocab"in e)a=e["@vocab"]+a;else if(s.base){let v,_;"@base"in e?e["@base"]?(_=y(A.base,e["@base"]),v=y(_,a)):(_=e["@base"],v=a):(_=A.base,v=y(A.base,a)),a=v}return a}function R(e,a){if(!e||"object"!=typeof e||!a||"object"!=typeof a)return e===a;const s=Array.isArray(e);if(s!==Array.isArray(a))return!1;if(s){if(e.length!==a.length)return!1;for(let A=0;A{_.push(p),b()}];m.eventHandler&&O.push(m.eventHandler);const H=m;m={...m,eventHandler:O};const X=yield m.contextResolver.resolve({activeCtx:a,context:s,documentLoader:m.documentLoader,base:m.base});J(X[0].document)&&"boolean"==typeof X[0].document["@propagate"]&&(T=X[0].document["@propagate"]);let I=a;!T&&!I.previousContext&&(I=I.clone(),I.previousContext=a);for(const p of X){let{document:b}=p;if(a=I,null===b){if(!A&&0!==Object.keys(a.protected).length)throw new h("Tried to nullify a context with protected terms outside of a term definition.","jsonld.SyntaxError",{code:"invalid context nullification"});I=a=E.getInitialContext(m).clone();continue}const P=p.getProcessed(a);if(P){if(H.eventHandler)for(const c of P.events)N({event:c,options:H});I=a=P.context;continue}if(J(b)&&"@context"in b&&(b=b["@context"]),!J(b))throw new h("Invalid JSON-LD syntax; @context must be an object.","jsonld.SyntaxError",{code:"invalid local context",context:b});I=I.clone();const M=new Map;if("@version"in b){if(1.1!==b["@version"])throw new h("Unsupported JSON-LD version: "+b["@version"],"jsonld.UnsupportedVersion",{code:"invalid @version value",context:b});if(a.processingMode&&"json-ld-1.0"===a.processingMode)throw new h("@version: "+b["@version"]+" not compatible with "+a.processingMode,"jsonld.ProcessingModeConflict",{code:"processing mode conflict",context:b});I.processingMode="json-ld-1.1",I["@version"]=b["@version"],M.set("@version",!0)}if(I.processingMode=I.processingMode||a.processingMode,"@base"in b){let c=b["@base"];if(null!==c&&!t(c)){if(!i(c))throw new h('Invalid JSON-LD syntax; the value of "@base" in a @context must be an absolute IRI, a relative IRI, or null.',"jsonld.SyntaxError",{code:"invalid base IRI",context:b});c=y(I["@base"],c)}I["@base"]=c,M.set("@base",!0)}if("@vocab"in b){const c=b["@vocab"];if(null===c)delete I["@vocab"];else{if(!r(c))throw new h('Invalid JSON-LD syntax; the value of "@vocab" in a @context must be a string or null.',"jsonld.SyntaxError",{code:"invalid vocab mapping",context:b});if(!t(c)&&E.processingMode(I,1))throw new h('Invalid JSON-LD syntax; the value of "@vocab" in a @context must be an absolute IRI.',"jsonld.SyntaxError",{code:"invalid vocab mapping",context:b});{const G=Y(I,c,{vocab:!0,base:!0},void 0,void 0,m);t(G)||m.eventHandler&&N({event:{type:["JsonLdEvent"],code:"relative @vocab reference",level:"warning",message:"Relative @vocab reference found.",details:{vocab:G}},options:m}),I["@vocab"]=G}}M.set("@vocab",!0)}if("@language"in b){const c=b["@language"];if(null===c)delete I["@language"];else{if(!r(c))throw new h('Invalid JSON-LD syntax; the value of "@language" in a @context must be a string or null.',"jsonld.SyntaxError",{code:"invalid default language",context:b});c.match(k)||m.eventHandler&&N({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:c}},options:m}),I["@language"]=c.toLowerCase()}M.set("@language",!0)}if("@direction"in b){const c=b["@direction"];if("json-ld-1.0"===a.processingMode)throw new h("Invalid JSON-LD syntax; @direction not compatible with "+a.processingMode,"jsonld.SyntaxError",{code:"invalid context member",context:b});if(null===c)delete I["@direction"];else{if("ltr"!==c&&"rtl"!==c)throw new h('Invalid JSON-LD syntax; the value of "@direction" in a @context must be null, "ltr", or "rtl".',"jsonld.SyntaxError",{code:"invalid base direction",context:b});I["@direction"]=c}M.set("@direction",!0)}if("@propagate"in b){const c=b["@propagate"];if("json-ld-1.0"===a.processingMode)throw new h("Invalid JSON-LD syntax; @propagate not compatible with "+a.processingMode,"jsonld.SyntaxError",{code:"invalid context entry",context:b});if("boolean"!=typeof c)throw new h("Invalid JSON-LD syntax; @propagate value must be a boolean.","jsonld.SyntaxError",{code:"invalid @propagate value",context:s});M.set("@propagate",!0)}if("@import"in b){const c=b["@import"];if("json-ld-1.0"===a.processingMode)throw new h("Invalid JSON-LD syntax; @import not compatible with "+a.processingMode,"jsonld.SyntaxError",{code:"invalid context entry",context:b});if(!r(c))throw new h("Invalid JSON-LD syntax; @import must be a string.","jsonld.SyntaxError",{code:"invalid @import value",context:s});const G=yield m.contextResolver.resolve({activeCtx:a,context:c,documentLoader:m.documentLoader,base:m.base});if(1!==G.length)throw new h("Invalid JSON-LD syntax; @import must reference a single context.","jsonld.SyntaxError",{code:"invalid remote context",context:s});const Q=G[0].getProcessed(a);if(Q)b=Q;else{const z=G[0].document;if("@import"in z)throw new h("Invalid JSON-LD syntax: imported context must not include @import.","jsonld.SyntaxError",{code:"invalid context entry",context:s});for(const K in z)b.hasOwnProperty(K)||(b[K]=z[K]);G[0].setProcessed(a,b)}M.set("@import",!0)}M.set("@protected",b["@protected"]||!1);for(const c in b)if(E.createTermDefinition({activeCtx:I,localCtx:b,term:c,defined:M,options:m,overrideProtected:A}),J(b[c])&&"@context"in b[c]){const G=b[c]["@context"];let Q=!0;if(r(G)){const z=y(m.base,G);f.has(z)?Q=!1:f.add(z)}if(Q)try{yield E.process({activeCtx:I.clone(),localCtx:b[c]["@context"],overrideProtected:!0,options:m,cycles:f})}catch{throw new h("Invalid JSON-LD syntax; invalid scoped context.","jsonld.SyntaxError",{code:"invalid scoped context",context:b[c]["@context"],term:c})}}p.setProcessed(a,{context:I,events:_})}return I});return function(a){return e.apply(this,arguments)}}(),E.createTermDefinition=({activeCtx:e,localCtx:a,term:s,defined:m,options:T,overrideProtected:A=!1})=>{if(m.has(s)){if(m.get(s))return;throw new h("Cyclical context definition detected.","jsonld.CyclicalContext",{code:"cyclic IRI mapping",context:a,term:s})}let f;if(m.set(s,!1),a.hasOwnProperty(s)&&(f=a[s]),"@type"===s&&J(f)&&"@set"===(f["@container"]||"@set")&&E.processingMode(e,1.1)){const p=["@container","@id","@protected"],b=Object.keys(f);if(0===b.length||b.some(P=>!p.includes(P)))throw new h("Invalid JSON-LD syntax; keywords cannot be overridden.","jsonld.SyntaxError",{code:"keyword redefinition",context:a,term:s})}else{if(E.isKeyword(s))throw new h("Invalid JSON-LD syntax; keywords cannot be overridden.","jsonld.SyntaxError",{code:"keyword redefinition",context:a,term:s});if(s.match(l))return void(T.eventHandler&&N({event:{type:["JsonLdEvent"],code:"reserved term",level:"warning",message:'Terms beginning with "@" are reserved for future use and dropped.',details:{term:s}},options:T}));if(""===s)throw new h("Invalid JSON-LD syntax; a term cannot be an empty string.","jsonld.SyntaxError",{code:"invalid term definition",context:a})}const v=e.mappings.get(s);e.mappings.has(s)&&e.mappings.delete(s);let _=!1;if((r(f)||null===f)&&(_=!0,f={"@id":f}),!J(f))throw new h("Invalid JSON-LD syntax; @context term values must be strings or objects.","jsonld.SyntaxError",{code:"invalid term definition",context:a});const O={};e.mappings.set(s,O),O.reverse=!1;const H=["@container","@id","@language","@reverse","@type"];E.processingMode(e,1.1)&&H.push("@context","@direction","@index","@nest","@prefix","@protected");for(const p in f)if(!H.includes(p))throw new h("Invalid JSON-LD syntax; a term definition must not contain "+p,"jsonld.SyntaxError",{code:"invalid term definition",context:a});const X=s.indexOf(":");if(O._termHasColon=X>0,"@reverse"in f){if("@id"in f)throw new h("Invalid JSON-LD syntax; a @reverse term definition must not contain @id.","jsonld.SyntaxError",{code:"invalid reverse property",context:a});if("@nest"in f)throw new h("Invalid JSON-LD syntax; a @reverse term definition must not contain @nest.","jsonld.SyntaxError",{code:"invalid reverse property",context:a});const p=f["@reverse"];if(!r(p))throw new h("Invalid JSON-LD syntax; a @context @reverse value must be a string.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:a});if(p.match(l))return T.eventHandler&&N({event:{type:["JsonLdEvent"],code:"reserved @reverse value",level:"warning",message:'@reverse values beginning with "@" are reserved for future use and dropped.',details:{reverse:p}},options:T}),void(v?e.mappings.set(s,v):e.mappings.delete(s));const b=Y(e,p,{vocab:!0,base:!1},a,m,T);if(!t(b))throw new h("Invalid JSON-LD syntax; a @context @reverse value must be an absolute IRI or a blank node identifier.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:a});O["@id"]=b,O.reverse=!0}else if("@id"in f){let p=f["@id"];if(p&&!r(p))throw new h("Invalid JSON-LD syntax; a @context @id value must be an array of strings or a string.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:a});if(null===p)O["@id"]=null;else{if(!E.isKeyword(p)&&p.match(l))return T.eventHandler&&N({event:{type:["JsonLdEvent"],code:"reserved @id value",level:"warning",message:'@id values beginning with "@" are reserved for future use and dropped.',details:{id:p}},options:T}),void(v?e.mappings.set(s,v):e.mappings.delete(s));if(p!==s){if(p=Y(e,p,{vocab:!0,base:!1},a,m,T),!t(p)&&!E.isKeyword(p))throw new h("Invalid JSON-LD syntax; a @context @id value must be an absolute IRI, a blank node identifier, or a keyword.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:a});if(s.match(/(?::[^:])|\//)&&Y(e,s,{vocab:!0,base:!1},a,new Map(m).set(s,!0),T)!==p)throw new h("Invalid JSON-LD syntax; term in form of IRI must expand to definition.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:a});O["@id"]=p,O._prefix=_&&!O._termHasColon&&null!==p.match(/[:\/\?#\[\]@]$/)}}}if(!("@id"in O))if(O._termHasColon){const p=s.substr(0,X);if(a.hasOwnProperty(p)&&E.createTermDefinition({activeCtx:e,localCtx:a,term:p,defined:m,options:T}),e.mappings.has(p)){const b=s.substr(X+1);O["@id"]=e.mappings.get(p)["@id"]+b}else O["@id"]=s}else if("@type"===s)O["@id"]=s;else{if(!("@vocab"in e))throw new h("Invalid JSON-LD syntax; @context terms must define an @id.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:a,term:s});O["@id"]=e["@vocab"]+s}if((!0===f["@protected"]||!0===m.get("@protected")&&!1!==f["@protected"])&&(e.protected[s]=!0,O.protected=!0),m.set(s,!0),"@type"in f){let p=f["@type"];if(!r(p))throw new h("Invalid JSON-LD syntax; an @context @type value must be a string.","jsonld.SyntaxError",{code:"invalid type mapping",context:a});if("@json"===p||"@none"===p){if(E.processingMode(e,1))throw new h(`Invalid JSON-LD syntax; an @context @type value must not be "${p}" in JSON-LD 1.0 mode.`,"jsonld.SyntaxError",{code:"invalid type mapping",context:a})}else if("@id"!==p&&"@vocab"!==p){if(p=Y(e,p,{vocab:!0,base:!1},a,m,T),!t(p))throw new h("Invalid JSON-LD syntax; an @context @type value must be an absolute IRI.","jsonld.SyntaxError",{code:"invalid type mapping",context:a});if(0===p.indexOf("_:"))throw new h("Invalid JSON-LD syntax; an @context @type value must be an IRI, not a blank node identifier.","jsonld.SyntaxError",{code:"invalid type mapping",context:a})}O["@type"]=p}if("@container"in f){const p=r(f["@container"])?[f["@container"]]:f["@container"]||[],b=["@list","@set","@index","@language"];let P=!0;const M=p.includes("@set");if(E.processingMode(e,1.1)){if(b.push("@graph","@id","@type"),p.includes("@list")){if(1!==p.length)throw new h("Invalid JSON-LD syntax; @context @container with @list must have no other values","jsonld.SyntaxError",{code:"invalid container mapping",context:a})}else if(p.includes("@graph")){if(p.some(c=>"@graph"!==c&&"@id"!==c&&"@index"!==c&&"@set"!==c))throw new h("Invalid JSON-LD syntax; @context @container with @graph must have no other values other than @id, @index, and @set","jsonld.SyntaxError",{code:"invalid container mapping",context:a})}else P&=p.length<=(M?2:1);if(p.includes("@type")&&(O["@type"]=O["@type"]||"@id",!["@id","@vocab"].includes(O["@type"])))throw new h("Invalid JSON-LD syntax; container: @type requires @type to be @id or @vocab.","jsonld.SyntaxError",{code:"invalid type mapping",context:a})}else P&=!g(f["@container"]),P&=p.length<=1;if(P&=p.every(c=>b.includes(c)),P&=!(M&&p.includes("@list")),!P)throw new h("Invalid JSON-LD syntax; @context @container value must be one of the following: "+b.join(", "),"jsonld.SyntaxError",{code:"invalid container mapping",context:a});if(O.reverse&&!p.every(c=>["@index","@set"].includes(c)))throw new h("Invalid JSON-LD syntax; @context @container value for a @reverse type definition must be @index or @set.","jsonld.SyntaxError",{code:"invalid reverse property",context:a});O["@container"]=p}if("@index"in f){if(!("@container"in f)||!O["@container"].includes("@index"))throw new h(`Invalid JSON-LD syntax; @index without @index in @container: "${f["@index"]}" on term "${s}".`,"jsonld.SyntaxError",{code:"invalid term definition",context:a});if(!r(f["@index"])||0===f["@index"].indexOf("@"))throw new h(`Invalid JSON-LD syntax; @index must expand to an IRI: "${f["@index"]}" on term "${s}".`,"jsonld.SyntaxError",{code:"invalid term definition",context:a});O["@index"]=f["@index"]}if("@context"in f&&(O["@context"]=f["@context"]),"@language"in f&&!("@type"in f)){let p=f["@language"];if(null!==p&&!r(p))throw new h("Invalid JSON-LD syntax; @context @language value must be a string or null.","jsonld.SyntaxError",{code:"invalid language mapping",context:a});null!==p&&(p=p.toLowerCase()),O["@language"]=p}if("@prefix"in f){if(s.match(/:|\//))throw new h("Invalid JSON-LD syntax; @context @prefix used on a compact IRI term","jsonld.SyntaxError",{code:"invalid term definition",context:a});if(E.isKeyword(O["@id"]))throw new h("Invalid JSON-LD syntax; keywords may not be used as prefixes","jsonld.SyntaxError",{code:"invalid term definition",context:a});if("boolean"!=typeof f["@prefix"])throw new h("Invalid JSON-LD syntax; @context value for @prefix must be boolean","jsonld.SyntaxError",{code:"invalid @prefix value",context:a});O._prefix=!0===f["@prefix"]}if("@direction"in f){const p=f["@direction"];if(null!==p&&"ltr"!==p&&"rtl"!==p)throw new h('Invalid JSON-LD syntax; @direction value must be null, "ltr", or "rtl".',"jsonld.SyntaxError",{code:"invalid base direction",context:a});O["@direction"]=p}if("@nest"in f){const p=f["@nest"];if(!r(p)||"@nest"!==p&&0===p.indexOf("@"))throw new h("Invalid JSON-LD syntax; @context @nest value must be a string which is not a keyword other than @nest.","jsonld.SyntaxError",{code:"invalid @nest value",context:a});O["@nest"]=p}const I=O["@id"];if("@context"===I||"@preserve"===I)throw new h("Invalid JSON-LD syntax; @context and @preserve cannot be aliased.","jsonld.SyntaxError",{code:"invalid keyword alias",context:a});if(v&&v.protected&&!A&&(e.protected[s]=!0,O.protected=!0,!R(v,O)))throw new h("Invalid JSON-LD syntax; tried to redefine a protected term.","jsonld.SyntaxError",{code:"protected term redefinition",context:a,term:s})},E.expandIri=(e,a,s,m)=>Y(e,a,s,void 0,void 0,m),E.getInitialContext=e=>{const a=JSON.stringify({processingMode:e.processingMode}),s=d.get(a);if(s)return s;const m={processingMode:e.processingMode,mappings:new Map,inverse:null,getInverse:function T(){const O=this;if(O.inverse)return O.inverse;const H=O.inverse={},X=O.fastCurieMap={},I={},p=(O["@language"]||"@none").toLowerCase(),b=O["@direction"],P=O.mappings,M=[...P.keys()].sort(j);for(const c of M){const G=P.get(c);if(null===G)continue;let Q=G["@container"]||"@none";if(Q=[].concat(Q).sort().join(""),null===G["@id"])continue;const z=o(G["@id"]);for(const K of z){let F=H[K];const V=E.isKeyword(K);if(F)!V&&!G._termHasColon&&I[K].push(c);else if(H[K]=F={},!V&&!G._termHasColon){I[K]=[c];const D={iri:K,terms:I[K]};K[0]in X?X[K[0]].push(D):X[K[0]]=[D]}if(F[Q]||(F[Q]={"@language":{},"@type":{},"@any":{}}),F=F[Q],f(c,F["@any"],"@none"),G.reverse)f(c,F["@type"],"@reverse");else if("@none"===G["@type"])f(c,F["@any"],"@none"),f(c,F["@language"],"@none"),f(c,F["@type"],"@none");else if("@type"in G)f(c,F["@type"],G["@type"]);else if("@language"in G&&"@direction"in G){const D=G["@language"],w=G["@direction"];f(c,F["@language"],D&&w?`${D}_${w}`.toLowerCase():D?D.toLowerCase():w?`_${w}`:"@null")}else"@language"in G?f(c,F["@language"],(G["@language"]||"@null").toLowerCase()):"@direction"in G?f(c,F["@language"],G["@direction"]?`_${G["@direction"]}`:"@none"):b?(f(c,F["@language"],`_${b}`),f(c,F["@language"],"@none"),f(c,F["@type"],"@none")):(f(c,F["@language"],p),f(c,F["@language"],"@none"),f(c,F["@type"],"@none"))}}for(const c in X)A(X,c,1);return H},clone:function v(){const O={};return O.mappings=x.clone(this.mappings),O.clone=this.clone,O.inverse=null,O.getInverse=this.getInverse,O.protected=x.clone(this.protected),this.previousContext&&(O.previousContext=this.previousContext.clone()),O.revertToPreviousContext=this.revertToPreviousContext,"@base"in this&&(O["@base"]=this["@base"]),"@language"in this&&(O["@language"]=this["@language"]),"@vocab"in this&&(O["@vocab"]=this["@vocab"]),O},revertToPreviousContext:function _(){return this.previousContext?this.previousContext.clone():this},protected:{}};return 1e4===d.size&&d.clear(),d.set(a,m),m;function A(O,H,X){const I=O[H],p=O[H]={};let b,P;for(const M of I)b=M.iri,P=X>=b.length?"":b[X],P in p?p[P].push(M):p[P]=[M];for(const M in p)""!==M&&A(p,M,X+1)}function f(O,H,X){H.hasOwnProperty(X)||(H[X]=O)}},E.getContextValue=(e,a,s)=>{if(null===a)return"@context"===s?void 0:null;if(e.mappings.has(a)){const m=e.mappings.get(a);if(n(s))return m;if(m.hasOwnProperty(s))return m[s]}return"@language"===s&&s in e||"@direction"===s&&s in e?e[s]:"@context"!==s?null:void 0},E.processingMode=(e,a)=>a.toString()>="1.1"?!e.processingMode||e.processingMode>="json-ld-"+a.toString():"json-ld-1.0"===e.processingMode,E.isKeyword=e=>{if(!r(e)||"@"!==e[0])return!1;switch(e){case"@base":case"@container":case"@context":case"@default":case"@direction":case"@embed":case"@explicit":case"@graph":case"@id":case"@included":case"@index":case"@json":case"@language":case"@list":case"@nest":case"@none":case"@omitDefault":case"@prefix":case"@preserve":case"@protected":case"@requireAll":case"@reverse":case"@set":case"@type":case"@value":case"@version":case"@vocab":return!0}return!1}},3601:($,Z,u)=>{"use strict";var S=u(4510).default;const{parseLinkHeader:x,buildHeaders:h}=u(6035),{LINK_HEADER_CONTEXT:g}=u(6270),J=u(9027),r=u(7579),{prependBase:n}=u(3834),t=/(^|(\r\n))link:/i;$.exports=({secure:y,headers:N={},xhr:k}={headers:{}})=>{return N=h(N),(new r).wrapLoader(o);function o(d){return j.apply(this,arguments)}function j(){return j=S(function*(d){if(0!==d.indexOf("http:")&&0!==d.indexOf("https:"))throw new J('URL could not be dereferenced; only "http" and "https" URLs are supported.',"jsonld.InvalidUrl",{code:"loading document failed",url:d});if(y&&0!==d.indexOf("https"))throw new J('URL could not be dereferenced; secure mode is enabled and the URL\'s scheme is not "https".',"jsonld.InvalidUrl",{code:"loading document failed",url:d});let L;try{L=yield function i(y,N,k){const l=new(y=y||XMLHttpRequest);return new Promise((o,j)=>{l.onload=()=>o(l),l.onerror=d=>j(d),l.open("GET",N,!0);for(const d in k)l.setRequestHeader(d,k[d]);l.send()})}(k,d,N)}catch(a){throw new J("URL could not be dereferenced, an error occurred.","jsonld.LoadDocumentError",{code:"loading document failed",url:d,cause:a})}if(L.status>=400)throw new J("URL could not be dereferenced: "+L.statusText,"jsonld.LoadDocumentError",{code:"loading document failed",url:d,httpStatusCode:L.status});let E={contextUrl:null,documentUrl:d,document:L.response},Y=null;const R=L.getResponseHeader("Content-Type");let e;if(t.test(L.getAllResponseHeaders())&&(e=L.getResponseHeader("Link")),e&&"application/ld+json"!==R){const a=x(e),s=a[g];if(Array.isArray(s))throw new J("URL could not be dereferenced, it has more than one associated HTTP Link Header.","jsonld.InvalidUrl",{code:"multiple context link headers",url:d});s&&(E.contextUrl=s.target),Y=a.alternate,Y&&"application/ld+json"==Y.type&&!(R||"").match(/^application\/(\w*\+)?json$/)&&(E=yield o(n(d,Y.target)))}return E}),j.apply(this,arguments)}}},9802:($,Z,u)=>{"use strict";const S=u(9027),{isArray:x}=u(9098),{asArray:h}=u(6035),g={};function J({event:n,handlers:t}){let i=!0;for(let y=0;i&&y{i=!0}});else{if("object"!=typeof N)throw new S("Invalid event handler.","jsonld.InvalidEventHandler",{event:n});n.code in N?N[n.code]({event:n,next:()=>{i=!0}}):i=!0}}return i}$.exports=g,g.defaultEventHandler=null,g.setupEventHandler=({options:n={}})=>{const t=[].concat(n.safe?g.safeEventHandler:[],n.eventHandler?h(n.eventHandler):[],g.defaultEventHandler?g.defaultEventHandler:[]);return 0===t.length?null:t},g.handleEvent=({event:n,options:t})=>{J({event:n,handlers:t.eventHandler})};const r=new Set(["empty object","free-floating scalar","invalid @language value","invalid property","null @id value","null @value value","object with only @id","object with only @language","object with only @list","object with only @value","relative @id reference","relative @type reference","relative @vocab reference","reserved @id value","reserved @reverse value","reserved term","blank node predicate","relative graph reference","relative object reference","relative predicate reference","relative subject reference","rdfDirection not set"]);g.safeEventHandler=function({event:t,next:i}){if("warning"===t.level&&r.has(t.code))throw new S("Safe mode validation error.","jsonld.ValidationError",{event:t});i()},g.logEventHandler=function({event:t,next:i}){console.log(`EVENT: ${t.message}`,{event:t}),i()},g.logWarningEventHandler=function({event:t,next:i}){"warning"===t.level&&console.warn(`WARNING: ${t.message}`,{event:t}),i()},g.unhandledEventHandler=function({event:t}){throw new S("No handler for event.","jsonld.UnhandledEvent",{event:t})},g.setDefaultEventHandler=function({eventHandler:n}={}){g.defaultEventHandler=n?h(n):null}},6551:($,Z,u)=>{"use strict";var S=u(4510).default;const x=u(9027),{isArray:h,isObject:g,isEmptyObject:J,isString:r,isUndefined:n}=u(9098),{isList:t,isValue:i,isGraph:y,isSubject:N}=u(2926),{expandIri:k,getContextValue:l,isKeyword:o,process:j,processingMode:d}=u(3104),{isAbsolute:L}=u(3834),{REGEX_BCP47:E,REGEX_KEYWORD:Y,addValue:R,asArray:e,getValues:a,validateTypeValue:s}=u(6035),{handleEvent:m}=u(9802),T={};function A({value:I,count:p,options:b}){if(0===p||"@value"in I||"@list"in I||1===p&&"@id"in I){if(b.eventHandler){let P,M;0===p?(P="empty object",M="Dropping empty object."):"@value"in I?(P="object with only @value",M="Dropping object with only @value."):"@list"in I?(P="object with only @list",M="Dropping object with only @list."):1===p&&"@id"in I&&(P="object with only @id",M="Dropping object with only @id."),m({event:{type:["JsonLdEvent"],code:P,level:"warning",message:M,details:{value:I}},options:b})}return null}return I}function f(I){return v.apply(this,arguments)}function v(){return(v=S(function*({activeCtx:I,activeProperty:p,expandedActiveProperty:b,element:P,expandedParent:M,options:c={},insideList:G,typeKey:Q,typeScopedContext:z}){const K=Object.keys(P).sort(),F=[];let V;const D=P[Q]&&"@json"===k(I,h(P[Q])?P[Q][0]:P[Q],{vocab:!0},{...c,typeExpansion:!0});for(const w of K){let W,B=P[w];if("@context"===w)continue;const U=k(I,w,{vocab:!0},c);if(null===U||!L(U)&&!o(U)){c.eventHandler&&m({event:{type:["JsonLdEvent"],code:"invalid property",level:"warning",message:"Dropping property that did not expand into an absolute IRI or keyword.",details:{property:w,expandedProperty:U}},options:c});continue}if(o(U)){if("@reverse"===b)throw new x("Invalid JSON-LD syntax; a keyword cannot be used as a @reverse property.","jsonld.SyntaxError",{code:"invalid reverse property map",value:B});if(U in M&&"@included"!==U&&"@type"!==U)throw new x("Invalid JSON-LD syntax; colliding keywords detected.","jsonld.SyntaxError",{code:"colliding keywords",keyword:U})}if("@id"===U){if(!r(B)){if(!c.isFrame)throw new x('Invalid JSON-LD syntax; "@id" value must a string.',"jsonld.SyntaxError",{code:"invalid @id value",value:B});if(g(B)){if(!J(B))throw new x('Invalid JSON-LD syntax; "@id" value an empty object or array of strings, if framing',"jsonld.SyntaxError",{code:"invalid @id value",value:B})}else{if(!h(B))throw new x('Invalid JSON-LD syntax; "@id" value an empty object or array of strings, if framing',"jsonld.SyntaxError",{code:"invalid @id value",value:B});if(!B.every(q=>r(q)))throw new x('Invalid JSON-LD syntax; "@id" value an empty object or array of strings, if framing',"jsonld.SyntaxError",{code:"invalid @id value",value:B})}}R(M,"@id",e(B).map(q=>{if(r(q)){const ne=k(I,q,{base:!0},c);return c.eventHandler&&(null===ne?m(null===q?{event:{type:["JsonLdEvent"],code:"null @id value",level:"warning",message:"Null @id found.",details:{id:q}},options:c}:{event:{type:["JsonLdEvent"],code:"reserved @id value",level:"warning",message:"Reserved @id found.",details:{id:q}},options:c}):L(ne)||m({event:{type:["JsonLdEvent"],code:"relative @id reference",level:"warning",message:"Relative @id reference found.",details:{id:q,expandedId:ne}},options:c})),ne}return q}),{propertyIsArray:c.isFrame});continue}if("@type"===U){g(B)&&(B=Object.fromEntries(Object.entries(B).map(([q,ne])=>[k(z,q,{vocab:!0}),e(ne).map(re=>k(z,re,{base:!0,vocab:!0},{...c,typeExpansion:!0}))]))),s(B,c.isFrame),R(M,"@type",e(B).map(q=>{if(r(q)){const ne=k(z,q,{base:!0,vocab:!0},{...c,typeExpansion:!0});return"@json"!==ne&&!L(ne)&&c.eventHandler&&m({event:{type:["JsonLdEvent"],code:"relative @type reference",level:"warning",message:"Relative @type reference found.",details:{type:q}},options:c}),ne}return q}),{propertyIsArray:!!c.isFrame});continue}if("@included"===U&&d(I,1.1)){const q=e(yield T.expand({activeCtx:I,activeProperty:p,element:B,options:c}));if(!q.every(ne=>N(ne)))throw new x("Invalid JSON-LD syntax; values of @included must expand to node objects.","jsonld.SyntaxError",{code:"invalid @included value",value:B});R(M,"@included",q,{propertyIsArray:!0});continue}if("@graph"===U&&!g(B)&&!h(B))throw new x('Invalid JSON-LD syntax; "@graph" value must not be an object or an array.',"jsonld.SyntaxError",{code:"invalid @graph value",value:B});if("@value"===U){V=B,D&&d(I,1.1)?M["@value"]=B:R(M,"@value",B,{propertyIsArray:c.isFrame});continue}if("@language"===U){if(null===B)continue;if(!r(B)&&!c.isFrame)throw new x('Invalid JSON-LD syntax; "@language" value must be a string.',"jsonld.SyntaxError",{code:"invalid language-tagged string",value:B});B=e(B).map(q=>r(q)?q.toLowerCase():q);for(const q of B)r(q)&&!q.match(E)&&c.eventHandler&&m({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:q}},options:c});R(M,"@language",B,{propertyIsArray:c.isFrame});continue}if("@direction"===U){if(!r(B)&&!c.isFrame)throw new x('Invalid JSON-LD syntax; "@direction" value must be a string.',"jsonld.SyntaxError",{code:"invalid base direction",value:B});B=e(B);for(const q of B)if(r(q)&&"ltr"!==q&&"rtl"!==q)throw new x('Invalid JSON-LD syntax; "@direction" must be "ltr" or "rtl".',"jsonld.SyntaxError",{code:"invalid base direction",value:B});R(M,"@direction",B,{propertyIsArray:c.isFrame});continue}if("@index"===U){if(!r(B))throw new x('Invalid JSON-LD syntax; "@index" value must be a string.',"jsonld.SyntaxError",{code:"invalid @index value",value:B});R(M,"@index",B);continue}if("@reverse"===U){if(!g(B))throw new x('Invalid JSON-LD syntax; "@reverse" value must be an object.',"jsonld.SyntaxError",{code:"invalid @reverse value",value:B});if(W=yield T.expand({activeCtx:I,activeProperty:"@reverse",element:B,options:c}),"@reverse"in W)for(const ne in W["@reverse"])R(M,ne,W["@reverse"][ne],{propertyIsArray:!0});let q=M["@reverse"]||null;for(const ne in W){if("@reverse"===ne)continue;null===q&&(q=M["@reverse"]={}),R(q,ne,[],{propertyIsArray:!0});const re=W[ne];for(let se=0;se"@id"===q||"@index"===q)){if(W=e(W),c.isFrame||(W=W.filter(q=>null!==A({value:q,count:Object.keys(q).length,options:c}))),0===W.length)continue;W=W.map(q=>({"@graph":e(q)}))}if(C.mappings.has(w)&&C.mappings.get(w).reverse){const q=M["@reverse"]=M["@reverse"]||{};W=e(W);for(let ne=0;ne"@value"===k(I,U,{vocab:!0},c)))throw new x("Invalid JSON-LD syntax; nested value must be a node object.","jsonld.SyntaxError",{code:"invalid @nest value",value:W});yield f({activeCtx:I,activeProperty:p,expandedActiveProperty:b,element:W,expandedParent:M,options:c,insideList:G,typeScopedContext:z,typeKey:Q})}}})).apply(this,arguments)}function _({activeCtx:I,activeProperty:p,value:b,options:P}){if(null==b)return null;const M=k(I,p,{vocab:!0},P);if("@id"===M)return k(I,b,{base:!0},P);if("@type"===M)return k(I,b,{vocab:!0,base:!0},{...P,typeExpansion:!0});const c=l(I,p,"@type");if(("@id"===c||"@graph"===M)&&r(b)){const Q=k(I,b,{base:!0},P);return null===Q&&b.match(Y)&&P.eventHandler&&m({event:{type:["JsonLdEvent"],code:"reserved @id value",level:"warning",message:"Reserved @id found.",details:{id:p}},options:P}),{"@id":Q}}if("@vocab"===c&&r(b))return{"@id":k(I,b,{vocab:!0,base:!0},P)};if(o(M))return b;const G={};if(c&&!["@id","@vocab","@none"].includes(c))G["@type"]=c;else if(r(b)){const Q=l(I,p,"@language");null!==Q&&(G["@language"]=Q);const z=l(I,p,"@direction");null!==z&&(G["@direction"]=z)}return["boolean","number","string"].includes(typeof b)||(b=b.toString()),G["@value"]=b,G}function O(I,p,b,P){const M=[],c=Object.keys(p).sort();for(const G of c){const Q=k(I,G,{vocab:!0},P);let z=p[G];h(z)||(z=[z]);for(const K of z){if(null===K)continue;if(!r(K))throw new x("Invalid JSON-LD syntax; language map values must be strings.","jsonld.SyntaxError",{code:"invalid language map value",languageMap:p});const F={"@value":K};"@none"!==Q&&(G.match(E)||P.eventHandler&&m({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:G}},options:P}),F["@language"]=G.toLowerCase()),b&&(F["@direction"]=b),M.push(F)}}return M}function H(I){return X.apply(this,arguments)}function X(){return(X=S(function*({activeCtx:I,options:p,activeProperty:b,value:P,asGraph:M,indexKey:c,propertyIndex:G}){const Q=[],z=Object.keys(P).sort(),K="@type"===c;for(let F of z){if(K){const w=l(I,F,"@context");n(w)||(I=yield j({activeCtx:I,localCtx:w,propagate:!1,options:p}))}let D,V=P[F];h(V)||(V=[V]),V=yield T.expand({activeCtx:I,activeProperty:b,element:V,options:p,insideList:!1,insideIndex:!0}),D=G?"@none"===F?"@none":_({activeCtx:I,activeProperty:c,value:F,options:p}):k(I,F,{vocab:!0},p),"@id"===c?F=k(I,F,{base:!0},p):K&&(F=D);for(let w of V){if(M&&!y(w)&&(w={"@graph":[w]}),"@type"===c)"@none"===D||(w["@type"]=w["@type"]?[F].concat(w["@type"]):[F]);else{if(i(w)&&!["@language","@type","@index"].includes(c))throw new x(`Invalid JSON-LD syntax; Attempt to add illegal key to value object: "${c}".`,"jsonld.SyntaxError",{code:"invalid value object",value:w});G?"@none"!==D&&R(w,G,D,{propertyIsArray:!0,prependValue:!0}):"@none"!==D&&!(c in w)&&(w[c]=F)}Q.push(w)}}return Q})).apply(this,arguments)}$.exports=T,T.expand=function(){var I=S(function*({activeCtx:p,activeProperty:b=null,element:P,options:M={},insideList:c=!1,insideIndex:G=!1,typeScopedContext:Q=null}){if(null==P)return null;if("@default"===b&&(M=Object.assign({},M,{isFrame:!1})),!h(P)&&!g(P))return c||null!==b&&"@graph"!==k(p,b,{vocab:!0},M)?_({activeCtx:p,activeProperty:b,value:P,options:M}):(M.eventHandler&&m({event:{type:["JsonLdEvent"],code:"free-floating scalar",level:"warning",message:"Dropping free-floating scalar not in a list.",details:{value:P}},options:M}),null);if(h(P)){let W=[];const U=l(p,b,"@container")||[];c=c||U.includes("@list");for(let C=0;C1?C.slice().sort():C:[C];for(const te of ee){const q=l(Q,te,"@context");n(q)||(p=yield j({activeCtx:p,localCtx:q,options:M,propagate:!1}))}}let w={};yield f({activeCtx:p,activeProperty:b,expandedActiveProperty:z,element:P,expandedParent:w,options:M,insideList:c,typeKey:D,typeScopedContext:Q}),F=Object.keys(w);let B=F.length;if("@value"in w){if("@type"in w&&("@language"in w||"@direction"in w))throw new x('Invalid JSON-LD syntax; an element containing "@value" may not contain both "@type" and either "@language" or "@direction".',"jsonld.SyntaxError",{code:"invalid value object",element:w});let W=B-1;if("@type"in w&&(W-=1),"@index"in w&&(W-=1),"@language"in w&&(W-=1),"@direction"in w&&(W-=1),0!==W)throw new x('Invalid JSON-LD syntax; an element containing "@value" may only have an "@index" property and either "@type" or either or both "@language" or "@direction".',"jsonld.SyntaxError",{code:"invalid value object",element:w});const U=null===w["@value"]?[]:e(w["@value"]),C=a(w,"@type");if(!d(p,1.1)||!C.includes("@json")||1!==C.length)if(0===U.length)M.eventHandler&&m({event:{type:["JsonLdEvent"],code:"null @value value",level:"warning",message:"Dropping null @value value.",details:{value:w}},options:M}),w=null;else{if(!U.every(ee=>r(ee)||J(ee))&&"@language"in w)throw new x("Invalid JSON-LD syntax; only strings may be language-tagged.","jsonld.SyntaxError",{code:"invalid language-tagged value",element:w});if(!C.every(ee=>L(ee)&&!(r(ee)&&0===ee.indexOf("_:"))||J(ee)))throw new x('Invalid JSON-LD syntax; an element containing "@value" and "@type" must have an absolute IRI for the value of "@type".',"jsonld.SyntaxError",{code:"invalid typed value",element:w})}}else if("@type"in w&&!h(w["@type"]))w["@type"]=[w["@type"]];else if("@set"in w||"@list"in w){if(B>1&&(2!==B||!("@index"in w)))throw new x('Invalid JSON-LD syntax; if an element has the property "@set" or "@list", then it can have at most one other property that is "@index".',"jsonld.SyntaxError",{code:"invalid set or list object",element:w});"@set"in w&&(w=w["@set"],F=Object.keys(w),B=F.length)}else 1===B&&"@language"in w&&(M.eventHandler&&m({event:{type:["JsonLdEvent"],code:"object with only @language",level:"warning",message:"Dropping object with only @language.",details:{value:w}},options:M}),w=null);return g(w)&&!M.keepFreeFloatingNodes&&!c&&(null===b||"@graph"===z||(l(p,b,"@container")||[]).includes("@graph"))&&(w=A({value:w,count:B,options:M})),w});return function(p){return I.apply(this,arguments)}}()},257:($,Z,u)=>{"use strict";const{isSubjectReference:S}=u(2926),{createMergedNodeMap:x}=u(253),h={};$.exports=h,h.flatten=g=>{const J=x(g),r=[],n=Object.keys(J).sort();for(let t=0;t{"use strict";const{isKeyword:S}=u(3104),x=u(2926),h=u(9098),g=u(6035),J=u(3834),r=u(9027),{createNodeMap:n,mergeNodeMapGraphs:t}=u(253),i={};function y(e){const a={};for(const s in e)void 0!==e[s]&&(a["@"+s]=[e[s]]);return[a]}function N(e,a,s){for(let m=s.length-1;m>=0;--m){const T=s[m];if(T.graph===a&&T.subject["@id"]===e["@id"])return!0}return!1}function k(e,a,s){const m="@"+s;let T=m in e?e[m][0]:a[s];if("embed"===s)if(!0===T)T="@once";else if(!1===T)T="@never";else if("@always"!==T&&"@never"!==T&&"@link"!==T&&"@first"!==T&&"@last"!==T&&"@once"!==T)throw new r("Invalid JSON-LD syntax; invalid value of @embed.","jsonld.SyntaxError",{code:"invalid @embed value",frame:e});return T}function l(e){if(!h.isArray(e)||1!==e.length||!h.isObject(e[0]))throw new r("Invalid JSON-LD syntax; a JSON-LD frame must be a single object.","jsonld.SyntaxError",{frame:e});if("@id"in e[0])for(const a of g.asArray(e[0]["@id"]))if(!h.isObject(a)&&!J.isAbsolute(a)||h.isString(a)&&0===a.indexOf("_:"))throw new r("Invalid JSON-LD syntax; invalid @id in frame.","jsonld.SyntaxError",{code:"invalid frame",frame:e});if("@type"in e[0])for(const a of g.asArray(e[0]["@type"]))if(!h.isObject(a)&&!J.isAbsolute(a)&&"@json"!==a||h.isString(a)&&0===a.indexOf("_:"))throw new r("Invalid JSON-LD syntax; invalid @type in frame.","jsonld.SyntaxError",{code:"invalid frame",frame:e})}function j(e,a,s,m){let T=!0,A=!1;for(const f in s){let v=!1;const _=g.getValues(a,f),O=0===g.getValues(s,f).length;if("@id"===f){if(h.isEmptyObject(s["@id"][0]||{})?v=!0:s["@id"].length>=0&&(v=s["@id"].includes(_[0])),!m.requireAll)return v}else if("@type"===f){if(T=!1,O){if(_.length>0)return!1;v=!0}else if(1===s["@type"].length&&h.isEmptyObject(s["@type"][0]))v=_.length>0;else for(const H of s["@type"])v=!(!h.isObject(H)||!("@default"in H))||v||_.some(X=>X===H);if(!m.requireAll)return v}else{if(S(f))continue;{const H=g.getValues(s,f)[0];let X=!1;if(H&&(l([H]),X="@default"in H),T=!1,0===_.length&&X)continue;if(_.length>0&&O)return!1;if(void 0===H){if(_.length>0)return!1;v=!0}else if(x.isList(H)){const I=H["@list"][0];if(x.isList(_[0])){const p=_[0]["@list"];x.isValue(I)?v=p.some(b=>R(I,b)):(x.isSubject(I)||x.isSubjectReference(I))&&(v=p.some(b=>Y(e,I,b,m)))}}else v=x.isValue(H)?_.some(I=>R(H,I)):x.isSubjectReference(H)?_.some(I=>Y(e,H,I,m)):!!h.isObject(H)&&_.length>0}}if(!v&&m.requireAll)return!1;A=A||v}return T||A}function d(e,a){const s=e.uniqueEmbeds[e.graph],m=s[a],T=m.parent,A=m.property,f={"@id":a};if(h.isArray(T)){for(let _=0;_{const O=Object.keys(s);for(const H of O)H in s&&h.isObject(s[H].parent)&&s[H].parent["@id"]===_&&(delete s[H],v(H))};v(a)}function L(e,a){if(h.isArray(e))return e.map(s=>L(s,a));if(h.isObject(e)){if("@preserve"in e)return e["@preserve"][0];if(x.isValue(e))return e;if(x.isList(e))return e["@list"]=L(e["@list"],a),e;if("@id"in e){const s=e["@id"];if(a.link.hasOwnProperty(s)){const m=a.link[s].indexOf(e);if(-1!==m)return a.link[s][m];a.link[s].push(e)}else a.link[s]=[e]}for(const s in e)"@id"===s&&a.bnodesToClear.includes(e[s])?delete e["@id"]:e[s]=L(e[s],a)}return e}function E(e,a,s){h.isObject(e)?g.addValue(e,a,s,{propertyIsArray:!0}):e.push(s)}function Y(e,a,s,m){if(!("@id"in s))return!1;const T=e.subjects[s["@id"]];return T&&j(e,T,a,m)}function R(e,a){const s=a["@value"],m=a["@type"],T=a["@language"],A=e["@value"]?h.isArray(e["@value"])?e["@value"]:[e["@value"]]:[],f=e["@type"]?h.isArray(e["@type"])?e["@type"]:[e["@type"]]:[],v=e["@language"]?h.isArray(e["@language"])?e["@language"]:[e["@language"]]:[];return 0===A.length&&0===f.length&&0===v.length||!(!A.includes(s)&&!h.isEmptyObject(A[0])||!(!m&&0===f.length||f.includes(m)||m&&h.isEmptyObject(f[0]))||!(!T&&0===v.length||v.includes(T)||T&&h.isEmptyObject(v[0])))}$.exports=i,i.frameMergedOrDefault=(e,a,s)=>{const m={options:s,embedded:!1,graph:"@default",graphMap:{"@default":{}},subjectStack:[],link:{},bnodeMap:{}},T=new g.IdentifierIssuer("_:b");n(e,m.graphMap,"@default",T),s.merged&&(m.graphMap["@merged"]=t(m.graphMap),m.graph="@merged"),m.subjects=m.graphMap[m.graph];const A=[];return i.frame(m,Object.keys(m.subjects).sort(),a,A),s.pruneBlankNodeIdentifiers&&(s.bnodesToClear=Object.keys(m.bnodeMap).filter(f=>1===m.bnodeMap[f].length)),s.link={},L(A,s)},i.frame=(e,a,s,m,T=null)=>{l(s);const A=e.options,f={embed:k(s=s[0],A,"embed"),explicit:k(s,A,"explicit"),requireAll:k(s,A,"requireAll")};e.link.hasOwnProperty(e.graph)||(e.link[e.graph]={});const v=e.link[e.graph],_=function o(e,a,s,m){const T={};for(const A of a){const f=e.graphMap[e.graph][A];j(e,f,s,m)&&(T[A]=f)}return T}(e,a,s,f),O=Object.keys(_).sort();for(const H of O){const X=_[H];if(null===T?e.uniqueEmbeds={[e.graph]:{}}:e.uniqueEmbeds[e.graph]=e.uniqueEmbeds[e.graph]||{},"@link"===f.embed&&H in v){E(m,T,v[H]);continue}const I={"@id":H};if(0===H.indexOf("_:")&&g.addValue(e.bnodeMap,H,I,{propertyIsArray:!0}),v[H]=I,("@first"===f.embed||"@last"===f.embed)&&e.is11)throw new r("Invalid JSON-LD syntax; invalid value of @embed.","jsonld.SyntaxError",{code:"invalid @embed value",frame:s});if(e.embedded||!e.uniqueEmbeds[e.graph].hasOwnProperty(H)){if(e.embedded&&("@never"===f.embed||N(X,e.graph,e.subjectStack))){E(m,T,I);continue}if(e.embedded&&("@first"==f.embed||"@once"==f.embed)&&e.uniqueEmbeds[e.graph].hasOwnProperty(H)){E(m,T,I);continue}if("@last"===f.embed&&H in e.uniqueEmbeds[e.graph]&&d(e,H),e.uniqueEmbeds[e.graph][H]={parent:m,property:T},e.subjectStack.push({subject:X,graph:e.graph}),H in e.graphMap){let p=!1,b=null;"@graph"in s?(b=s["@graph"][0],p=!("@merged"===H||"@default"===H),h.isObject(b)||(b={})):(p="@merged"!==e.graph,b={}),p&&i.frame({...e,graph:H,embedded:!1},Object.keys(e.graphMap[H]).sort(),[b],I,"@graph")}"@included"in s&&i.frame({...e,embedded:!1},a,s["@included"],I,"@included");for(const p of Object.keys(X).sort())if(S(p)){if(I[p]=g.clone(X[p]),"@type"===p)for(const b of X["@type"])0===b.indexOf("_:")&&g.addValue(e.bnodeMap,b,I,{propertyIsArray:!0})}else if(!f.explicit||p in s)for(const b of X[p]){const P=p in s?s[p]:y(f);if(x.isList(b)){const M=s[p]&&s[p][0]&&s[p][0]["@list"]?s[p][0]["@list"]:y(f),c={"@list":[]};E(I,p,c);const G=b["@list"];for(const Q of G)x.isSubjectReference(Q)?i.frame({...e,embedded:!0},[Q["@id"]],M,c,"@list"):E(c,"@list",g.clone(Q))}else x.isSubjectReference(b)?i.frame({...e,embedded:!0},[b["@id"]],P,I,p):R(P[0],b)&&E(I,p,g.clone(b))}for(const p of Object.keys(s).sort()){if("@type"===p){if(!h.isObject(s[p][0])||!("@default"in s[p][0]))continue}else if(S(p))continue;const b=s[p][0]||{};if(!k(b,A,"omitDefault")&&!(p in I)){let M="@null";"@default"in b&&(M=g.clone(b["@default"])),h.isArray(M)||(M=[M]),I[p]=[{"@preserve":M}]}}for(const p of Object.keys(s["@reverse"]||{}).sort()){const b=s["@reverse"][p];for(const P of Object.keys(e.subjects))g.getValues(e.subjects[P],p).some(c=>c["@id"]===H)&&(I["@reverse"]=I["@reverse"]||{},g.addValue(I["@reverse"],p,[],{propertyIsArray:!0}),i.frame({...e,embedded:!0},[P],b,I["@reverse"][p],T))}E(m,T,I),e.subjectStack.pop()}}},i.cleanupNull=(e,a)=>{if(h.isArray(e))return e.map(m=>i.cleanupNull(m,a)).filter(m=>m);if("@null"===e)return null;if(h.isObject(e)){if("@id"in e){const s=e["@id"];if(a.link.hasOwnProperty(s)){const m=a.link[s].indexOf(e);if(-1!==m)return a.link[s][m];a.link[s].push(e)}else a.link[s]=[e]}for(const s in e)e[s]=i.cleanupNull(e[s],a)}return e}},6487:($,Z,u)=>{"use strict";var S=u(4510).default;const x=u(9027),h=u(2926),g=u(9098),{REGEX_BCP47:J,addValue:r}=u(6035),{handleEvent:n}=u(9802),{RDF_LIST:t,RDF_FIRST:i,RDF_REST:y,RDF_NIL:N,RDF_TYPE:k,RDF_JSON_LITERAL:l,XSD_BOOLEAN:o,XSD_DOUBLE:j,XSD_INTEGER:d,XSD_STRING:L}=u(6270),E={};function Y(R,e,a,s){if(R.termType.endsWith("Node"))return{"@id":R.value};const m={"@value":R.value};if(R.language)R.language.match(J)||s.eventHandler&&n({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:R.language}},options:s}),m["@language"]=R.language;else{let T=R.datatype.value;if(T||(T=L),T===l){T="@json";try{m["@value"]=JSON.parse(m["@value"])}catch(A){throw new x("JSON literal could not be parsed.","jsonld.InvalidJsonLiteral",{code:"invalid JSON literal",value:m["@value"],cause:A})}}if(e){if(T===o)"true"===m["@value"]?m["@value"]=!0:"false"===m["@value"]&&(m["@value"]=!1);else if(g.isNumeric(m["@value"]))if(T===d){const A=parseInt(m["@value"],10);A.toFixed(0)===m["@value"]&&(m["@value"]=A)}else T===j&&(m["@value"]=parseFloat(m["@value"]));[o,d,j,L].includes(T)||(m["@type"]=T)}else if("i18n-datatype"===a&&T.startsWith("https://www.w3.org/ns/i18n#")){const[,A,f]=T.split(/[#_]/);A.length>0&&(m["@language"]=A,A.match(J)||s.eventHandler&&n({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:A}},options:s})),m["@direction"]=f}else T!==L&&(m["@type"]=T)}return m}$.exports=E,E.fromRDF=function(){var R=S(function*(e,a){const{useRdfType:s=!1,useNativeTypes:m=!1,rdfDirection:T=null}=a,A={},f={"@default":A},v={};if(T){if("compound-literal"===T)throw new x("Unsupported rdfDirection value.","jsonld.InvalidRdfDirection",{value:T});if("i18n-datatype"!==T)throw new x("Unknown rdfDirection value.","jsonld.InvalidRdfDirection",{value:T})}for(const H of e){const X="DefaultGraph"===H.graph.termType?"@default":H.graph.value;X in f||(f[X]={}),"@default"!==X&&!(X in A)&&(A[X]={"@id":X});const I=f[X],p=H.subject.value,b=H.predicate.value,P=H.object;p in I||(I[p]={"@id":p});const M=I[p],c=P.termType.endsWith("Node");if(c&&!(P.value in I)&&(I[P.value]={"@id":P.value}),b===k&&!s&&c){r(M,"@type",P.value,{propertyIsArray:!0});continue}const G=Y(P,m,T,a);if(r(M,b,G,{propertyIsArray:!0}),c)if(P.value===N){const Q=I[P.value];"usages"in Q||(Q.usages=[]),Q.usages.push({node:M,property:b,value:G})}else v[P.value]=!(P.value in v)&&{node:M,property:b,value:G}}for(const H in f){const X=f[H];if(!(N in X))continue;const I=X[N];if(I.usages){for(let p of I.usages){let b=p.node,P=p.property,M=p.value;const c=[],G=[];let Q=Object.keys(b).length;for(;P===y&&g.isObject(v[b["@id"]])&&g.isArray(b[i])&&1===b[i].length&&g.isArray(b[y])&&1===b[y].length&&(3===Q||4===Q&&g.isArray(b["@type"])&&1===b["@type"].length&&b["@type"][0]===t)&&(c.push(b[i][0]),G.push(b["@id"]),p=v[b["@id"]],b=p.node,P=p.property,M=p.value,Q=Object.keys(b).length,h.isBlankNode(b)););delete M["@id"],M["@list"]=c.reverse();for(const z of G)delete X[z]}delete I.usages}}const _=[],O=Object.keys(A).sort();for(const H of O){const X=A[H];if(H in f){const I=X["@graph"]=[],p=f[H],b=Object.keys(p).sort();for(const P of b){const M=p[P];h.isSubjectReference(M)||I.push(M)}}h.isSubjectReference(X)||_.push(X)}return _});return function(e,a){return R.apply(this,arguments)}}()},2926:($,Z,u)=>{"use strict";const S=u(9098),x={};$.exports=x,x.isSubject=h=>!(!S.isObject(h)||"@value"in h||"@set"in h||"@list"in h)&&(Object.keys(h).length>1||!("@id"in h)),x.isSubjectReference=h=>S.isObject(h)&&1===Object.keys(h).length&&"@id"in h,x.isValue=h=>S.isObject(h)&&"@value"in h,x.isList=h=>S.isObject(h)&&"@list"in h,x.isGraph=h=>S.isObject(h)&&"@graph"in h&&1===Object.keys(h).filter(g=>"@id"!==g&&"@index"!==g).length,x.isSimpleGraph=h=>x.isGraph(h)&&!("@id"in h),x.isBlankNode=h=>{if(S.isObject(h)){if("@id"in h){const g=h["@id"];return!S.isString(g)||0===g.indexOf("_:")}return 0===Object.keys(h).length||!("@value"in h||"@set"in h||"@list"in h)}return!1}},1045:($,Z,u)=>{var S=u(4510).default;const x=u(7073),h=u(4577),g=u(6035),J=u(8398),r=g.IdentifierIssuer,n=u(9027),t=u(1983),i=u(6441),{expand:y}=u(6551),{flatten:N}=u(257),{fromRDF:k}=u(6487),{toRDF:l}=u(624),{frameMergedOrDefault:o,cleanupNull:j}=u(8998),{isArray:d,isObject:L,isString:E}=u(9098),{isSubjectReference:Y}=u(2926),{expandIri:R,getInitialContext:e,process:a,processingMode:s}=u(3104),{compact:m,compactIri:T}=u(7374),{createNodeMap:A,createMergedNodeMap:f,mergeNodeMaps:v}=u(253),{logEventHandler:_,logWarningEventHandler:O,safeEventHandler:H,setDefaultEventHandler:X,setupEventHandler:I,strictEventHandler:p,unhandledEventHandler:b}=u(9802),P=function(c){const G={},z=new t({max:100});function K(F,{documentLoader:V=c.documentLoader,...D}){if(F&&"compactionMap"in F)throw new n('"compactionMap" not supported.',"jsonld.OptionsError");if(F&&"expansionMap"in F)throw new n('"expansionMap" not supported.',"jsonld.OptionsError");return Object.assign({},{documentLoader:V},D,F,{eventHandler:I({options:F})})}return c.compact=function(){var F=S(function*(V,D,w){if(arguments.length<2)throw new TypeError("Could not compact, too few arguments.");if(null===D)throw new n("The compaction context must not be null.","jsonld.CompactError",{code:"invalid local context"});if(null===V)return null;let B;(w=K(w,{base:E(V)?V:"",compactArrays:!0,compactToRelative:!0,graph:!1,skipExpansion:!1,link:!1,issuer:new r("_:b"),contextResolver:new J({sharedCache:z})})).link&&(w.skipExpansion=!0),w.compactToRelative||delete w.base,B=w.skipExpansion?V:yield c.expand(V,w);const W=yield c.processContext(e(w),D,w);let U=yield m({activeCtx:W,element:B,options:w});w.compactArrays&&!w.graph&&d(U)?1===U.length?U=U[0]:0===U.length&&(U={}):w.graph&&L(U)&&(U=[U]),L(D)&&"@context"in D&&(D=D["@context"]),D=g.clone(D),d(D)||(D=[D]);const C=D;D=[];for(let te=0;te0)&&D.push(C[te]);const ee=D.length>0;if(1===D.length&&(D=D[0]),d(U)){const te=T({activeCtx:W,iri:"@graph",relativeTo:{vocab:!0}}),q=U;U={},ee&&(U["@context"]=D),U[te]=q}else if(L(U)&&ee){const te=U;U={"@context":D};for(const q in te)U[q]=te[q]}return U});return function(V,D,w){return F.apply(this,arguments)}}(),c.expand=function(){var F=S(function*(V,D){if(arguments.length<1)throw new TypeError("Could not expand, too few arguments.");const w={},B=[];if("expandContext"in(D=K(D,{keepFreeFloatingNodes:!1,contextResolver:new J({sharedCache:z})}))){const ee=g.clone(D.expandContext);w.expandContext=L(ee)&&"@context"in ee?ee:{"@context":ee},B.push(w.expandContext)}let W;if(E(V)){const ee=yield c.get(V,D);W=ee.documentUrl,w.input=ee.document,ee.contextUrl&&(w.remoteContext={"@context":ee.contextUrl},B.push(w.remoteContext))}else w.input=g.clone(V);"base"in D||(D.base=W||"");let U=e(D);for(const ee of B)U=yield a({activeCtx:U,localCtx:ee,options:D});let C=yield y({activeCtx:U,element:w.input,options:D});return L(C)&&"@graph"in C&&1===Object.keys(C).length?C=C["@graph"]:null===C&&(C=[]),d(C)||(C=[C]),C});return function(V,D){return F.apply(this,arguments)}}(),c.flatten=function(){var F=S(function*(V,D,w){if(arguments.length<1)return new TypeError("Could not flatten, too few arguments.");D="function"==typeof D?null:D||null,w=K(w,{base:E(V)?V:"",contextResolver:new J({sharedCache:z})});const B=yield c.expand(V,w),W=N(B);return null===D?W:(w.graph=!0,w.skipExpansion=!0,yield c.compact(W,D,w))});return function(V,D,w){return F.apply(this,arguments)}}(),c.frame=function(){var F=S(function*(V,D,w){if(arguments.length<2)throw new TypeError("Could not frame, too few arguments.");if(w=K(w,{base:E(V)?V:"",embed:"@once",explicit:!1,requireAll:!1,omitDefault:!1,bnodesToClear:[],contextResolver:new J({sharedCache:z})}),E(D)){const re=yield c.get(D,w);if(D=re.document,re.contextUrl){let se=D["@context"];se?d(se)?se.push(re.contextUrl):se=[se,re.contextUrl]:se=re.contextUrl,D["@context"]=se}}const B=D&&D["@context"]||{},W=yield c.processContext(e(w),B,w);w.hasOwnProperty("omitGraph")||(w.omitGraph=s(W,1.1)),w.hasOwnProperty("pruneBlankNodeIdentifiers")||(w.pruneBlankNodeIdentifiers=s(W,1.1));const U=yield c.expand(V,w),C={...w};C.isFrame=!0,C.keepFreeFloatingNodes=!0;const ee=yield c.expand(D,C),te=Object.keys(D).map(re=>R(W,re,{vocab:!0}));C.merged=!te.includes("@graph"),C.is11=s(W,1.1);const q=o(U,ee,C);C.graph=!w.omitGraph,C.skipExpansion=!0,C.link={},C.framing=!0;let ne=yield c.compact(q,B,C);return C.link={},ne=j(ne,C),ne});return function(V,D,w){return F.apply(this,arguments)}}(),c.link=function(){var F=S(function*(V,D,w){const B={};return D&&(B["@context"]=D),B["@embed"]="@link",c.frame(V,B,w)});return function(V,D,w){return F.apply(this,arguments)}}(),c.normalize=c.canonize=function(){var F=S(function*(V,D){if(arguments.length<1)throw new TypeError("Could not canonize, too few arguments.");if("inputFormat"in(D=K(D,{base:E(V)?V:null,algorithm:"URDNA2015",skipExpansion:!1,safe:!0,contextResolver:new J({sharedCache:z})}))){if("application/n-quads"!==D.inputFormat&&"application/nquads"!==D.inputFormat)throw new n("Unknown canonicalization input format.","jsonld.CanonizeError");const W=i.parse(V);return x.canonize(W,D)}const w={...D};delete w.format,w.produceGeneralizedRdf=!1;const B=yield c.toRDF(V,w);return x.canonize(B,D)});return function(V,D){return F.apply(this,arguments)}}(),c.fromRDF=function(){var F=S(function*(V,D){if(arguments.length<1)throw new TypeError("Could not convert from RDF, too few arguments.");D=K(D,{format:E(V)?"application/n-quads":void 0});const{format:w}=D;let{rdfParser:B}=D;if(w){if(B=B||G[w],!B)throw new n("Unknown input format.","jsonld.UnknownFormat",{format:w})}else B=()=>V;const W=yield B(V);return k(W,D)});return function(V,D){return F.apply(this,arguments)}}(),c.toRDF=function(){var F=S(function*(V,D){if(arguments.length<1)throw new TypeError("Could not convert to RDF, too few arguments.");let w;w=(D=K(D,{base:E(V)?V:"",skipExpansion:!1,contextResolver:new J({sharedCache:z})})).skipExpansion?V:yield c.expand(V,D);const B=l(w,D);if(D.format){if("application/n-quads"===D.format||"application/nquads"===D.format)return i.serialize(B);throw new n("Unknown output format.","jsonld.UnknownFormat",{format:D.format})}return B});return function(V,D){return F.apply(this,arguments)}}(),c.createNodeMap=function(){var F=S(function*(V,D){if(arguments.length<1)throw new TypeError("Could not create node map, too few arguments.");D=K(D,{base:E(V)?V:"",contextResolver:new J({sharedCache:z})});const w=yield c.expand(V,D);return f(w,D)});return function(V,D){return F.apply(this,arguments)}}(),c.merge=function(){var F=S(function*(V,D,w){if(arguments.length<1)throw new TypeError("Could not merge, too few arguments.");if(!d(V))throw new TypeError('Could not merge, "docs" must be an array.');D="function"==typeof D?null:D||null,w=K(w,{contextResolver:new J({sharedCache:z})});const B=yield Promise.all(V.map(re=>{const se={...w};return c.expand(re,se)}));let W=!0;"mergeNodes"in w&&(W=w.mergeNodes);const U=w.issuer||new r("_:b"),C={"@default":{}};for(let re=0;rec._documentLoader,set:F=>c._documentLoader=F}),c.documentLoader=function(){var F=S(function*(V){throw new n("Could not retrieve a JSON-LD document from the URL. URL dereferencing not implemented.","jsonld.LoadDocumentError",{code:"loading document failed",url:V})});return function(V){return F.apply(this,arguments)}}(),c.get=function(){var F=S(function*(V,D){let w;w="function"==typeof D.documentLoader?D.documentLoader:c.documentLoader;const B=yield w(V);try{if(!B.document)throw new n("No remote document found at the given URL.","jsonld.NullRemoteDocument");E(B.document)&&(B.document=JSON.parse(B.document))}catch(W){throw new n("Could not retrieve a JSON-LD document from the URL.","jsonld.LoadDocumentError",{code:"loading document failed",cause:W,remoteDoc:B})}return B});return function(V,D){return F.apply(this,arguments)}}(),c.processContext=function(){var F=S(function*(V,D,w){return w=K(w,{base:"",contextResolver:new J({sharedCache:z})}),null===D?e(w):(D=g.clone(D),L(D)&&"@context"in D||(D={"@context":D}),a({activeCtx:V,localCtx:D,options:w}))});return function(V,D,w){return F.apply(this,arguments)}}(),c.getContextValue=u(3104).getContextValue,c.documentLoaders={},c.useDocumentLoader=function(F){if(!(F in c.documentLoaders))throw new n('Unknown document loader type: "'+F+'"',"jsonld.UnknownDocumentLoader",{type:F});c.documentLoader=c.documentLoaders[F].apply(c,Array.prototype.slice.call(arguments,1))},c.registerRDFParser=function(F,V){G[F]=V},c.unregisterRDFParser=function(F){delete G[F]},c.registerRDFParser("application/n-quads",i.parse),c.registerRDFParser("application/nquads",i.parse),c.url=u(3834),c.logEventHandler=_,c.logWarningEventHandler=O,c.safeEventHandler=H,c.setDefaultEventHandler=X,c.strictEventHandler=p,c.unhandledEventHandler=b,c.util=g,Object.assign(c,g),c.promises=c,c.RequestQueue=u(7579),c.JsonLdProcessor=u(1985)(c),h.setupGlobals(c),h.setupDocumentLoaders(c),c},M=function(){return P(function(){return M()})};P(M),$.exports=M},253:($,Z,u)=>{"use strict";const{isKeyword:S}=u(3104),x=u(2926),h=u(9098),g=u(6035),J=u(9027),r={};$.exports=r,r.createMergedNodeMap=(n,t)=>{const i=(t=t||{}).issuer||new g.IdentifierIssuer("_:b"),y={"@default":{}};return r.createNodeMap(n,y,"@default",i),r.mergeNodeMaps(y)},r.createNodeMap=(n,t,i,y,N,k)=>{if(h.isArray(n)){for(const d of n)r.createNodeMap(d,t,i,y,void 0,k);return}if(!h.isObject(n))return void(k&&k.push(n));if(x.isValue(n)){if("@type"in n){let d=n["@type"];0===d.indexOf("_:")&&(n["@type"]=d=y.getId(d))}return void(k&&k.push(n))}if(k&&x.isList(n)){const d=[];return r.createNodeMap(n["@list"],t,i,y,N,d),void k.push({"@list":d})}if("@type"in n){const d=n["@type"];for(const L of d)0===L.indexOf("_:")&&y.getId(L)}h.isUndefined(N)&&(N=x.isBlankNode(n)?y.getId(n["@id"]):n["@id"]),k&&k.push({"@id":N});const l=t[i],o=l[N]=l[N]||{};o["@id"]=N;const j=Object.keys(n).sort();for(let d of j){if("@id"===d)continue;if("@reverse"===d){const E={"@id":N},Y=n["@reverse"];for(const R in Y){const e=Y[R];for(const a of e){let s=a["@id"];x.isBlankNode(a)&&(s=y.getId(s)),r.createNodeMap(a,t,i,y,s),g.addValue(l[s],R,E,{propertyIsArray:!0,allowDuplicate:!1})}}continue}if("@graph"===d){N in t||(t[N]={}),r.createNodeMap(n[d],t,N,y);continue}if("@included"===d){r.createNodeMap(n[d],t,i,y);continue}if("@type"!==d&&S(d)){if("@index"===d&&d in o&&(n[d]!==o[d]||n[d]["@id"]!==o[d]["@id"]))throw new J("Invalid JSON-LD syntax; conflicting @index property detected.","jsonld.SyntaxError",{code:"conflicting indexes",subject:o});o[d]=n[d];continue}const L=n[d];if(0===d.indexOf("_:")&&(d=y.getId(d)),0!==L.length)for(let E of L)if("@type"===d&&(E=0===E.indexOf("_:")?y.getId(E):E),x.isSubject(E)||x.isSubjectReference(E)){if("@id"in E&&!E["@id"])continue;const Y=x.isBlankNode(E)?y.getId(E["@id"]):E["@id"];g.addValue(o,d,{"@id":Y},{propertyIsArray:!0,allowDuplicate:!1}),r.createNodeMap(E,t,i,y,Y)}else if(x.isValue(E))g.addValue(o,d,E,{propertyIsArray:!0,allowDuplicate:!1});else if(x.isList(E)){const Y=[];r.createNodeMap(E["@list"],t,i,y,N,Y),E={"@list":Y},g.addValue(o,d,E,{propertyIsArray:!0,allowDuplicate:!1})}else r.createNodeMap(E,t,i,y,N),g.addValue(o,d,E,{propertyIsArray:!0,allowDuplicate:!1});else g.addValue(o,d,[],{propertyIsArray:!0})}},r.mergeNodeMapGraphs=n=>{const t={};for(const i of Object.keys(n).sort())for(const y of Object.keys(n[i]).sort()){const N=n[i][y];y in t||(t[y]={"@id":y});const k=t[y];for(const l of Object.keys(N).sort())if(S(l)&&"@type"!==l)k[l]=g.clone(N[l]);else for(const o of N[l])g.addValue(k,l,g.clone(o),{propertyIsArray:!0,allowDuplicate:!1})}return t},r.mergeNodeMaps=n=>{const t=n["@default"],i=Object.keys(n).sort();for(const y of i){if("@default"===y)continue;const N=n[y];let k=t[y];k?"@graph"in k||(k["@graph"]=[]):t[y]=k={"@id":y,"@graph":[]};const l=k["@graph"];for(const o of Object.keys(N).sort()){const j=N[o];x.isSubjectReference(j)||l.push(j)}}return t}},4577:($,Z,u)=>{"use strict";const S=u(3601),x={};$.exports=x,x.setupDocumentLoaders=function(h){typeof XMLHttpRequest<"u"&&(h.documentLoaders.xhr=S,h.useDocumentLoader("xhr"))},x.setupGlobals=function(h){typeof globalThis.JsonLdProcessor>"u"&&Object.defineProperty(globalThis,"JsonLdProcessor",{writable:!0,enumerable:!1,configurable:!0,value:h.JsonLdProcessor})}},624:($,Z,u)=>{"use strict";const{createNodeMap:S}=u(253),{isKeyword:x}=u(3104),h=u(2926),g=u(8257),J=u(9027),r=u(9098),n=u(6035),{handleEvent:t}=u(9802),{RDF_FIRST:i,RDF_REST:y,RDF_NIL:N,RDF_TYPE:k,RDF_JSON_LITERAL:l,RDF_LANGSTRING:o,XSD_BOOLEAN:j,XSD_DOUBLE:d,XSD_INTEGER:L,XSD_STRING:E}=u(6270),{isAbsolute:Y}=u(3834),R={};function e(m,T,A,f,v){const _=Object.keys(T).sort();for(const O of _){const H=T[O],X=Object.keys(H).sort();for(let I of X){const p=H[I];if("@type"===I)I=k;else if(x(I))continue;for(const b of p){const P={termType:O.startsWith("_:")?"BlankNode":"NamedNode",value:O};if(!Y(O)){v.eventHandler&&t({event:{type:["JsonLdEvent"],code:"relative subject reference",level:"warning",message:"Relative subject reference found.",details:{subject:O}},options:v});continue}const M={termType:I.startsWith("_:")?"BlankNode":"NamedNode",value:I};if(!Y(I)){v.eventHandler&&t({event:{type:["JsonLdEvent"],code:"relative predicate reference",level:"warning",message:"Relative predicate reference found.",details:{predicate:I}},options:v});continue}if("BlankNode"===M.termType&&!v.produceGeneralizedRdf){v.eventHandler&&t({event:{type:["JsonLdEvent"],code:"blank node predicate",level:"warning",message:"Dropping blank node predicate.",details:{property:f.getOldIds().find(G=>f.getId(G)===I)}},options:v});continue}const c=s(b,f,m,A,v.rdfDirection,v);c&&m.push({subject:P,predicate:M,object:c,graph:A})}}}}function s(m,T,A,f,v,_){const O={};if(h.isValue(m)){O.termType="Literal",O.value=void 0,O.datatype={termType:"NamedNode"};let H=m["@value"];const X=m["@type"]||null;if("@json"===X)O.value=g(H),O.datatype.value=l;else if(r.isBoolean(H))O.value=H.toString(),O.datatype.value=X||j;else if(r.isDouble(H)||X===d)r.isDouble(H)||(H=parseFloat(H)),O.value=H.toExponential(15).replace(/(\d)0*e\+?/,"$1E"),O.datatype.value=X||d;else if(r.isNumber(H))O.value=H.toFixed(0),O.datatype.value=X||L;else if("@direction"in m&&"i18n-datatype"===v){const I=(m["@language"]||"").toLowerCase();O.datatype.value=`https://www.w3.org/ns/i18n#${I}_${m["@direction"]}`,O.value=H}else{if("@direction"in m&&"compound-literal"===v)throw new J("Unsupported rdfDirection value.","jsonld.InvalidRdfDirection",{value:v});if("@direction"in m&&v)throw new J("Unknown rdfDirection value.","jsonld.InvalidRdfDirection",{value:v});"@language"in m?("@direction"in m&&!v&&_.eventHandler&&t({event:{type:["JsonLdEvent"],code:"rdfDirection not set",level:"warning",message:"rdfDirection not set for @direction.",details:{object:O.value}},options:_}),O.value=H,O.datatype.value=X||o,O.language=m["@language"]):("@direction"in m&&!v&&_.eventHandler&&t({event:{type:["JsonLdEvent"],code:"rdfDirection not set",level:"warning",message:"rdfDirection not set for @direction.",details:{object:O.value}},options:_}),O.value=H,O.datatype.value=X||E)}}else if(h.isList(m)){const H=function a(m,T,A,f,v,_){const O={termType:"NamedNode",value:i},H={termType:"NamedNode",value:y},X={termType:"NamedNode",value:N},I=m.pop(),p=I?{termType:"BlankNode",value:T.getId()}:X;let b=p;for(const P of m){const M=s(P,T,A,f,v,_),c={termType:"BlankNode",value:T.getId()};A.push({subject:b,predicate:O,object:M,graph:f}),A.push({subject:b,predicate:H,object:c,graph:f}),b=c}if(I){const P=s(I,T,A,f,v,_);A.push({subject:b,predicate:O,object:P,graph:f}),A.push({subject:b,predicate:H,object:X,graph:f})}return p}(m["@list"],T,A,f,v,_);O.termType=H.termType,O.value=H.value}else{const H=r.isObject(m)?m["@id"]:m;O.termType=H.startsWith("_:")?"BlankNode":"NamedNode",O.value=H}return"NamedNode"!==O.termType||Y(O.value)?O:(_.eventHandler&&t({event:{type:["JsonLdEvent"],code:"relative object reference",level:"warning",message:"Relative object reference found.",details:{object:O.value}},options:_}),null)}$.exports=R,R.toRDF=(m,T)=>{const A=new n.IdentifierIssuer("_:b"),f={"@default":{}};S(m,f,"@default",A);const v=[],_=Object.keys(f).sort();for(const O of _){let H;if("@default"===O)H={termType:"DefaultGraph",value:""};else{if(!Y(O)){T.eventHandler&&t({event:{type:["JsonLdEvent"],code:"relative graph reference",level:"warning",message:"Relative graph reference found.",details:{graph:O}},options:T});continue}H=O.startsWith("_:")?{termType:"BlankNode"}:{termType:"NamedNode"},H.value=O}e(v,f[O],H,A,T)}return v}},9098:$=>{"use strict";const Z={};$.exports=Z,Z.isArray=Array.isArray,Z.isBoolean=u=>"boolean"==typeof u||"[object Boolean]"===Object.prototype.toString.call(u),Z.isDouble=u=>Z.isNumber(u)&&(-1!==String(u).indexOf(".")||Math.abs(u)>=1e21),Z.isEmptyObject=u=>Z.isObject(u)&&0===Object.keys(u).length,Z.isNumber=u=>"number"==typeof u||"[object Number]"===Object.prototype.toString.call(u),Z.isNumeric=u=>!isNaN(parseFloat(u))&&isFinite(u),Z.isObject=u=>"[object Object]"===Object.prototype.toString.call(u),Z.isString=u=>"string"==typeof u||"[object String]"===Object.prototype.toString.call(u),Z.isUndefined=u=>typeof u>"u"},3834:($,Z,u)=>{"use strict";const S=u(9098),x={};$.exports=x,x.parsers={simple:{keys:["href","scheme","authority","path","query","fragment"],regex:/^(?:([^:\/?#]+):)?(?:\/\/([^\/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?/},full:{keys:["href","protocol","scheme","authority","auth","user","password","hostname","port","path","directory","file","query","fragment"],regex:/^(([a-zA-Z][a-zA-Z0-9+-.]*):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?(?:(((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/}},x.parse=(g,J)=>{const r={},n=x.parsers[J||"full"],t=n.regex.exec(g);let i=n.keys.length;for(;i--;)r[n.keys[i]]=void 0===t[i]?null:t[i];return("https"===r.scheme&&"443"===r.port||"http"===r.scheme&&"80"===r.port)&&(r.href=r.href.replace(":"+r.port,""),r.authority=r.authority.replace(":"+r.port,""),r.port=null),r.normalizedPath=x.removeDotSegments(r.path),r},x.prependBase=(g,J)=>{if(null===g||x.isAbsolute(J))return J;(!g||S.isString(g))&&(g=x.parse(g||""));const r=x.parse(J),n={protocol:g.protocol||""};if(null!==r.authority)n.authority=r.authority,n.path=r.path,n.query=r.query;else if(n.authority=g.authority,""===r.path)n.path=g.path,n.query=null!==r.query?r.query:g.query;else{if(0===r.path.indexOf("/"))n.path=r.path;else{let i=g.path;i=i.substr(0,i.lastIndexOf("/")+1),(i.length>0||g.authority)&&"/"!==i.substr(-1)&&(i+="/"),i+=r.path,n.path=i}n.query=r.query}""!==r.path&&(n.path=x.removeDotSegments(n.path));let t=n.protocol;return null!==n.authority&&(t+="//"+n.authority),t+=n.path,null!==n.query&&(t+="?"+n.query),null!==r.fragment&&(t+="#"+r.fragment),""===t&&(t="./"),t},x.removeBase=(g,J)=>{if(null===g)return J;(!g||S.isString(g))&&(g=x.parse(g||""));let r="";if(""!==g.href?r+=(g.protocol||"")+"//"+(g.authority||""):J.indexOf("//")&&(r+="//"),0!==J.indexOf(r))return J;const n=x.parse(J.substr(r.length)),t=g.normalizedPath.split("/"),i=n.normalizedPath.split("/"),y=n.fragment||n.query?0:1;for(;t.length>0&&i.length>y&&t[0]===i[0];)t.shift(),i.shift();let N="";if(t.length>0){t.pop();for(let k=0;k{if(0===g.length)return"";const J=g.split("/"),r=[];for(;J.length>0;){const n=J.shift(),t=0===J.length;"."!==n?".."!==n?r.push(n):(r.pop(),t&&r.push("")):t&&r.push("")}return"/"===g[0]&&r.length>0&&""!==r[0]&&r.unshift(""),1===r.length&&""===r[0]?"/":r.join("/")};const h=/^([A-Za-z][A-Za-z0-9+-.]*|_):[^\s]*$/;x.isAbsolute=g=>S.isString(g)&&h.test(g),x.isRelative=g=>S.isString(g)},6035:($,Z,u)=>{"use strict";const S=u(2926),x=u(9098),h=u(7073).IdentifierIssuer,g=u(9027),r=/(?:<[^>]*?>|"[^"]*?"|[^,])+/g,n=/\s*<([^>]*?)>\s*(?:;\s*(.*))?/,t=/(.*?)=(?:(?:"([^"]*?)")|([^"]*?))\s*(?:(?:;\s*)|$)/g,y_headers_accept="application/ld+json, application/json",N={};function k(l,o){if(x.isArray(o))for(let j=0;j{if(Object.keys(l).some(j=>"accept"===j.toLowerCase()))throw new RangeError('Accept header may not be specified; only "'+y_headers_accept+'" is supported.');return Object.assign({Accept:y_headers_accept},l)},N.parseLinkHeader=l=>{const o={},j=l.match(r);for(let d=0;d{if(!(x.isString(l)||x.isArray(l)&&l.every(j=>x.isString(j)))){if(o&&x.isObject(l))switch(Object.keys(l).length){case 0:return;case 1:if("@default"in l&&N.asArray(l["@default"]).every(j=>x.isString(j)))return}throw new g('Invalid JSON-LD syntax; "@type" value must a string, an array of strings, an empty object, or a default object.',"jsonld.SyntaxError",{code:"invalid type value",value:l})}},N.hasProperty=(l,o)=>{if(l.hasOwnProperty(o)){const j=l[o];return!x.isArray(j)||j.length>0}return!1},N.hasValue=(l,o,j)=>{if(N.hasProperty(l,o)){let d=l[o];const L=S.isList(d);if(x.isArray(d)||L){L&&(d=d["@list"]);for(let E=0;E{if("propertyIsArray"in(d=d||{})||(d.propertyIsArray=!1),"valueIsArray"in d||(d.valueIsArray=!1),"allowDuplicate"in d||(d.allowDuplicate=!0),"prependValue"in d||(d.prependValue=!1),d.valueIsArray)l[o]=j;else if(x.isArray(j)){0===j.length&&d.propertyIsArray&&!l.hasOwnProperty(o)&&(l[o]=[]),d.prependValue&&(j=j.concat(l[o]),l[o]=[]);for(let L=0;L[].concat(l[o]||[]),N.removeProperty=(l,o)=>{delete l[o]},N.removeValue=(l,o,j,d)=>{"propertyIsArray"in(d=d||{})||(d.propertyIsArray=!1);const L=N.getValues(l,o).filter(E=>!N.compareValues(E,j));0===L.length?N.removeProperty(l,o):l[o]=1!==L.length||d.propertyIsArray?L:L[0]},N.relabelBlankNodes=(l,o)=>k((o=o||{}).issuer||new h("_:b"),l),N.compareValues=(l,o)=>!!(l===o||S.isValue(l)&&S.isValue(o)&&l["@value"]===o["@value"]&&l["@type"]===o["@type"]&&l["@language"]===o["@language"]&&l["@index"]===o["@index"])||!!(x.isObject(l)&&"@id"in l&&x.isObject(o)&&"@id"in o)&&l["@id"]===o["@id"],N.compareShortestLeast=(l,o)=>l.length{"use strict";const S=u(513),x=Symbol("max"),h=Symbol("length"),g=Symbol("lengthCalculator"),J=Symbol("allowStale"),r=Symbol("maxAge"),n=Symbol("dispose"),t=Symbol("noDisposeOnSet"),i=Symbol("lruList"),y=Symbol("cache"),N=Symbol("updateAgeOnGet"),k=()=>1,o=(R,e,a)=>{const s=R[y].get(e);if(s){const m=s.value;if(j(R,m)){if(L(R,s),!R[J])return}else a&&(R[N]&&(s.value.now=Date.now()),R[i].unshiftNode(s));return m.value}},j=(R,e)=>{if(!e||!e.maxAge&&!R[r])return!1;const a=Date.now()-e.now;return e.maxAge?a>e.maxAge:R[r]&&a>R[r]},d=R=>{if(R[h]>R[x])for(let e=R[i].tail;R[h]>R[x]&&null!==e;){const a=e.prev;L(R,e),e=a}},L=(R,e)=>{if(e){const a=e.value;R[n]&&R[n](a.key,a.value),R[h]-=a.length,R[y].delete(a.key),R[i].removeNode(e)}};class E{constructor(e,a,s,m,T){this.key=e,this.value=a,this.length=s,this.now=m,this.maxAge=T||0}}const Y=(R,e,a,s)=>{let m=a.value;j(R,m)&&(L(R,a),R[J]||(m=void 0)),m&&e.call(s,m.value,m.key,R)};$.exports=class l{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[x]=e.max||1/0;const s=e.length||k;if(this[g]="function"!=typeof s?k:s,this[J]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[r]=e.maxAge||0,this[n]=e.dispose,this[t]=e.noDisposeOnSet||!1,this[N]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[x]=e||1/0,d(this)}get max(){return this[x]}set allowStale(e){this[J]=!!e}get allowStale(){return this[J]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[r]=e,d(this)}get maxAge(){return this[r]}set lengthCalculator(e){"function"!=typeof e&&(e=k),e!==this[g]&&(this[g]=e,this[h]=0,this[i].forEach(a=>{a.length=this[g](a.value,a.key),this[h]+=a.length})),d(this)}get lengthCalculator(){return this[g]}get length(){return this[h]}get itemCount(){return this[i].length}rforEach(e,a){a=a||this;for(let s=this[i].tail;null!==s;){const m=s.prev;Y(this,e,s,a),s=m}}forEach(e,a){a=a||this;for(let s=this[i].head;null!==s;){const m=s.next;Y(this,e,s,a),s=m}}keys(){return this[i].toArray().map(e=>e.key)}values(){return this[i].toArray().map(e=>e.value)}reset(){this[n]&&this[i]&&this[i].length&&this[i].forEach(e=>this[n](e.key,e.value)),this[y]=new Map,this[i]=new S,this[h]=0}dump(){return this[i].map(e=>!j(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[i]}set(e,a,s){if((s=s||this[r])&&"number"!=typeof s)throw new TypeError("maxAge must be a number");const m=s?Date.now():0,T=this[g](a,e);if(this[y].has(e)){if(T>this[x])return L(this,this[y].get(e)),!1;const v=this[y].get(e).value;return this[n]&&(this[t]||this[n](e,v.value)),v.now=m,v.maxAge=s,v.value=a,this[h]+=T-v.length,v.length=T,this.get(e),d(this),!0}const A=new E(e,a,T,m,s);return A.length>this[x]?(this[n]&&this[n](e,a),!1):(this[h]+=A.length,this[i].unshift(A),this[y].set(e,this[i].head),d(this),!0)}has(e){if(!this[y].has(e))return!1;const a=this[y].get(e).value;return!j(this,a)}get(e){return o(this,e,!0)}peek(e){return o(this,e,!1)}pop(){const e=this[i].tail;return e?(L(this,e),e.value):null}del(e){L(this,this[y].get(e))}load(e){this.reset();const a=Date.now();for(let s=e.length-1;s>=0;s--){const m=e[s],T=m.e||0;if(0===T)this.set(m.k,m.v);else{const A=T-a;A>0&&this.set(m.k,m.v,A)}}}prune(){this[y].forEach((e,a)=>o(this,a,!1))}}},969:$=>{"use strict";$.exports=function(Z){Z.prototype[Symbol.iterator]=function*(){for(let u=this.head;u;u=u.next)yield u.value}}},513:($,Z,u)=>{"use strict";function S(r){var n=this;if(n instanceof S||(n=new S),n.tail=null,n.head=null,n.length=0,r&&"function"==typeof r.forEach)r.forEach(function(y){n.push(y)});else if(arguments.length>0)for(var t=0,i=arguments.length;t1)t=n;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");i=this.head.next,t=this.head.value}for(var y=0;null!==i;y++)t=r(t,i.value,y),i=i.next;return t},S.prototype.reduceReverse=function(r,n){var t,i=this.tail;if(arguments.length>1)t=n;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");i=this.tail.prev,t=this.tail.value}for(var y=this.length-1;null!==i;y--)t=r(t,i.value,y),i=i.prev;return t},S.prototype.toArray=function(){for(var r=new Array(this.length),n=0,t=this.head;null!==t;n++)r[n]=t.value,t=t.next;return r},S.prototype.toArrayReverse=function(){for(var r=new Array(this.length),n=0,t=this.tail;null!==t;n++)r[n]=t.value,t=t.prev;return r},S.prototype.slice=function(r,n){(n=n||this.length)<0&&(n+=this.length),(r=r||0)<0&&(r+=this.length);var t=new S;if(nthis.length&&(n=this.length);for(var i=0,y=this.head;null!==y&&ithis.length&&(n=this.length);for(var i=this.length,y=this.tail;null!==y&&i>n;i--)y=y.prev;for(;null!==y&&i>r;i--,y=y.prev)t.push(y.value);return t},S.prototype.splice=function(r,n,...t){r>this.length&&(r=this.length-1),r<0&&(r=this.length+r);for(var i=0,y=this.head;null!==y&&i{$.exports=u(4793)},3053:$=>{"use strict";$.exports=class ue{constructor(u,S=new Map,x=0){this.prefix=u,this._existing=S,this.counter=x}clone(){const{prefix:u,_existing:S,counter:x}=this;return new ue(u,new Map(S),x)}getId(u){const S=u&&this._existing.get(u);if(S)return S;const x=this.prefix+this.counter;return this.counter++,u&&this._existing.set(u,x),x}hasId(u){return this._existing.has(u)}getOldIds(){return[...this._existing.keys()]}}},4499:($,Z,u)=>{"use strict";var S=u(4510).default;u(1811);const x=self.crypto||self.msCrypto;$.exports=class{constructor(g){if(!x||!x.subtle)throw new Error("crypto.subtle not found.");if("sha256"===g)this.algorithm={name:"SHA-256"};else{if("sha1"!==g)throw new Error(`Unsupported algorithm "${g}".`);this.algorithm={name:"SHA-1"}}this._content=""}update(g){this._content+=g}digest(){var g=this;return S(function*(){const J=(new TextEncoder).encode(g._content),r=new Uint8Array(yield x.subtle.digest(g.algorithm,J));let n="";for(let t=0;t{"use strict";const S="http://www.w3.org/1999/02/22-rdf-syntax-ns#langString",x="http://www.w3.org/2001/XMLSchema#string",h="NamedNode",g="BlankNode",J="Literal",r="DefaultGraph",n={};function t(l,o){return l.subject.termType===o.subject.termType&&l.object.termType===o.object.termType&&l.subject.value===o.subject.value&&l.predicate.value===o.predicate.value&&l.object.value===o.object.value&&(l.object.termType!==J||l.object.datatype.termType===o.object.datatype.termType&&l.object.language===o.object.language&&l.object.datatype.value===o.object.datatype.value)}(()=>{const l="(?:<([^:]+:[^>]*)>)",j="A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd_",d=j+"0-9-\xb7\u0300-\u036f\u203f-\u2040",E="(_:(?:["+j+"0-9])(?:(?:["+d+".])*(?:["+d+"]))?)",s="[ \\t]+",m="[ \\t]*",T="(?:"+l+"|"+E+")"+s,A=l+s,f="(?:"+l+"|"+E+'|(?:"([^"\\\\]*(?:\\\\.[^"\\\\]*)*)"(?:(?:\\^\\^'+l+")|(?:@([a-zA-Z]+(?:-[a-zA-Z0-9]+)*)))?))"+m,v="(?:\\.|(?:(?:"+l+"|"+E+")"+m+"\\.))";n.eoln=/(?:\r\n)|(?:\n)|(?:\r)/g,n.empty=new RegExp("^"+m+"$"),n.quad=new RegExp("^"+m+T+A+f+v+m+"$")})(),$.exports=class oe{static parse(o){const j=[],d={},L=o.split(n.eoln);let E=0;for(const Y of L){if(E++,n.empty.test(Y))continue;const R=Y.match(n.quad);if(null===R)throw new Error("N-Quads parse error on line "+E+".");const e={subject:null,predicate:null,object:null,graph:null};if(e.subject=void 0!==R[1]?{termType:h,value:R[1]}:{termType:g,value:R[2]},e.predicate={termType:h,value:R[3]},void 0!==R[4]?e.object={termType:h,value:R[4]}:void 0!==R[5]?e.object={termType:g,value:R[5]}:(e.object={termType:J,value:void 0,datatype:{termType:h}},void 0!==R[7]?e.object.datatype.value=R[7]:void 0!==R[8]?(e.object.datatype.value=S,e.object.language=R[8]):e.object.datatype.value=x,e.object.value=R[6].replace(N,function(o,j,d,L){if(j)switch(j){case"t":return"\t";case"b":return"\b";case"n":return"\n";case"r":return"\r";case"f":return"\f";case'"':return'"';case"'":return"'";case"\\":return"\\"}if(d)return String.fromCharCode(parseInt(d,16));if(L)throw new Error("Unsupported U escape")})),e.graph=void 0!==R[9]?{termType:h,value:R[9]}:void 0!==R[10]?{termType:g,value:R[10]}:{termType:r,value:""},e.graph.value in d){let a=!0;const s=d[e.graph.value];for(const m of s)if(t(m,e)){a=!1;break}a&&(s.push(e),j.push(e))}else d[e.graph.value]=[e],j.push(e)}return j}static serialize(o){Array.isArray(o)||(o=oe.legacyDatasetToQuads(o));const j=[];for(const d of o)j.push(oe.serializeQuad(d));return j.sort().join("")}static serializeQuadComponents(o,j,d,L){let E="";return E+=o.termType===h?`<${o.value}>`:`${o.value}`,E+=` <${j.value}> `,d.termType===h?E+=`<${d.value}>`:d.termType===g?E+=d.value:(E+=`"${function y(l){return l.replace(i,function(o){switch(o){case'"':return'\\"';case"\\":return"\\\\";case"\n":return"\\n";case"\r":return"\\r"}})}(d.value)}"`,d.datatype.value===S?d.language&&(E+=`@${d.language}`):d.datatype.value!==x&&(E+=`^^<${d.datatype.value}>`)),L.termType===h?E+=` <${L.value}>`:L.termType===g&&(E+=` ${L.value}`),E+=" .\n",E}static serializeQuad(o){return oe.serializeQuadComponents(o.subject,o.predicate,o.object,o.graph)}static legacyDatasetToQuads(o){const j=[],d={"blank node":g,IRI:h,literal:J};for(const L in o)o[L].forEach(Y=>{const R={};for(const e in Y){const a=Y[e],s={termType:d[a.type],value:a.value};s.termType===J&&(s.datatype={termType:h},"datatype"in a&&(s.datatype.value=a.datatype),"language"in a?("datatype"in a||(s.datatype.value=S),s.language=a.language):"datatype"in a||(s.datatype.value=x)),R[e]=s}R.graph="@default"===L?{termType:r,value:""}:{termType:L.startsWith("_:")?g:h,value:L},j.push(R)});return j}};const i=/["\\\n\r]/g,N=/(?:\\([tbnrf"'\\]))|(?:\\u([0-9A-Fa-f]{4}))|(?:\\U([0-9A-Fa-f]{8}))/g},9985:$=>{"use strict";$.exports=class{constructor(u){this.current=u.sort(),this.done=!1,this.dir=new Map;for(let S=0;Sh)&&(t&&r>0&&n>u[r-1]||!t&&ru[r+1])&&(h=n,g=r)}if(null===h)this.done=!0;else{const r=S.get(h)?g-1:g+1;u[g]=u[r],u[r]=h;for(const n of u)n>h&&S.set(n,!S.get(n))}return x}}},7189:($,Z,u)=>{"use strict";var S=u(4510).default;const x=u(3053),h=u(4499),g=u(9985),J=u(9511);function r(n,t){return n.hasht.hash?1:0}$.exports=class{constructor({createMessageDigest:t=(()=>new h("sha256")),canonicalIdMap:i=new Map,maxDeepIterations:y=1/0}={}){this.name="URDNA2015",this.blankNodeInfo=new Map,this.canonicalIssuer=new x("_:c14n",i),this.createMessageDigest=t,this.maxDeepIterations=y,this.quads=null,this.deepIterations=null}main(t){var i=this;return S(function*(){i.deepIterations=new Map,i.quads=t;for(const d of t)i._addBlankNodeQuadInfo({quad:d,component:d.subject}),i._addBlankNodeQuadInfo({quad:d,component:d.object}),i._addBlankNodeQuadInfo({quad:d,component:d.graph});const y=new Map,N=[...i.blankNodeInfo.keys()];let k=0;for(const d of N)++k%100==0&&(yield i._yield()),yield i._hashAndTrackBlankNode({id:d,hashToBlankNodes:y});const l=[...y.keys()].sort(),o=[];for(const d of l){const L=y.get(d);L.length>1?o.push(L):i.canonicalIssuer.getId(L[0])}for(const d of o){const L=[];for(const E of d){if(i.canonicalIssuer.hasId(E))continue;const Y=new x("_:b");Y.getId(E);const R=yield i.hashNDegreeQuads(E,Y);L.push(R)}L.sort(r);for(const E of L){const Y=E.issuer.getOldIds();for(const R of Y)i.canonicalIssuer.getId(R)}}const j=[];for(const d of i.quads){const L=J.serializeQuadComponents(i._componentWithCanonicalId(d.subject),d.predicate,i._componentWithCanonicalId(d.object),i._componentWithCanonicalId(d.graph));j.push(L)}return j.sort(),j.join("")})()}hashFirstDegreeQuads(t){var i=this;return S(function*(){const y=[],N=i.blankNodeInfo.get(t),k=N.quads;for(const o of k){const j={subject:null,predicate:o.predicate,object:null,graph:null};j.subject=i.modifyFirstDegreeComponent(t,o.subject,"subject"),j.object=i.modifyFirstDegreeComponent(t,o.object,"object"),j.graph=i.modifyFirstDegreeComponent(t,o.graph,"graph"),y.push(J.serializeQuad(j))}y.sort();const l=i.createMessageDigest();for(const o of y)l.update(o);return N.hash=yield l.digest(),N.hash})()}hashRelatedBlankNode(t,i,y,N){var k=this;return S(function*(){let l;l=k.canonicalIssuer.hasId(t)?k.canonicalIssuer.getId(t):y.hasId(t)?y.getId(t):k.blankNodeInfo.get(t).hash;const o=k.createMessageDigest();return o.update(N),"g"!==N&&o.update(k.getRelatedPredicate(i)),o.update(l),o.digest()})()}hashNDegreeQuads(t,i){var y=this;return S(function*(){const N=y.deepIterations.get(t)||0;if(N>y.maxDeepIterations)throw new Error(`Maximum deep iterations (${y.maxDeepIterations}) exceeded.`);y.deepIterations.set(t,N+1);const k=y.createMessageDigest(),l=yield y.createHashToRelated(t,i),o=[...l.keys()].sort();for(const j of o){k.update(j);let L,d="";const E=new g(l.get(j));let Y=0;for(;E.hasNext();){const R=E.next();++Y%3==0&&(yield y._yield());let e=i.clone(),a="";const s=[];let m=!1;for(const T of R)if(y.canonicalIssuer.hasId(T)?a+=y.canonicalIssuer.getId(T):(e.hasId(T)||s.push(T),a+=e.getId(T)),0!==d.length&&a>d){m=!0;break}if(!m){for(const T of s){const A=yield y.hashNDegreeQuads(T,e);if(a+=e.getId(T),a+=`<${A.hash}>`,e=A.issuer,0!==d.length&&a>d){m=!0;break}}m||(0===d.length||a`}createHashToRelated(t,i){var y=this;return S(function*(){const N=new Map,k=y.blankNodeInfo.get(t).quads;let l=0;for(const o of k)++l%100==0&&(yield y._yield()),yield Promise.all([y._addRelatedBlankNodeHash({quad:o,component:o.subject,position:"s",id:t,issuer:i,hashToRelated:N}),y._addRelatedBlankNodeHash({quad:o,component:o.object,position:"o",id:t,issuer:i,hashToRelated:N}),y._addRelatedBlankNodeHash({quad:o,component:o.graph,position:"g",id:t,issuer:i,hashToRelated:N})]);return N})()}_hashAndTrackBlankNode({id:t,hashToBlankNodes:i}){var y=this;return S(function*(){const N=yield y.hashFirstDegreeQuads(t),k=i.get(N);k?k.push(t):i.set(N,[t])})()}_addBlankNodeQuadInfo({quad:t,component:i}){if("BlankNode"!==i.termType)return;const y=i.value,N=this.blankNodeInfo.get(y);N?N.quads.add(t):this.blankNodeInfo.set(y,{quads:new Set([t]),hash:null})}_addRelatedBlankNodeHash({quad:t,component:i,position:y,id:N,issuer:k,hashToRelated:l}){var o=this;return S(function*(){if("BlankNode"!==i.termType||i.value===N)return;const j=i.value,d=yield o.hashRelatedBlankNode(j,t,k,y),L=l.get(d);L?L.push(j):l.set(d,[j])})()}_componentWithCanonicalId(t){return"BlankNode"!==t.termType||t.value.startsWith(this.canonicalIssuer.prefix)?t:{termType:"BlankNode",value:this.canonicalIssuer.getId(t.value)}}_yield(){return S(function*(){return new Promise(t=>setImmediate(t))})()}}},5930:($,Z,u)=>{"use strict";const S=u(3053),x=u(4499),h=u(9985),g=u(9511);function J(r,n){return r.hashn.hash?1:0}$.exports=class{constructor({createMessageDigest:n=(()=>new x("sha256")),canonicalIdMap:t=new Map,maxDeepIterations:i=1/0}={}){this.name="URDNA2015",this.blankNodeInfo=new Map,this.canonicalIssuer=new S("_:c14n",t),this.createMessageDigest=n,this.maxDeepIterations=i,this.quads=null,this.deepIterations=null}main(n){this.deepIterations=new Map,this.quads=n;for(const l of n)this._addBlankNodeQuadInfo({quad:l,component:l.subject}),this._addBlankNodeQuadInfo({quad:l,component:l.object}),this._addBlankNodeQuadInfo({quad:l,component:l.graph});const t=new Map,i=[...this.blankNodeInfo.keys()];for(const l of i)this._hashAndTrackBlankNode({id:l,hashToBlankNodes:t});const y=[...t.keys()].sort(),N=[];for(const l of y){const o=t.get(l);o.length>1?N.push(o):this.canonicalIssuer.getId(o[0])}for(const l of N){const o=[];for(const j of l){if(this.canonicalIssuer.hasId(j))continue;const d=new S("_:b");d.getId(j);const L=this.hashNDegreeQuads(j,d);o.push(L)}o.sort(J);for(const j of o){const d=j.issuer.getOldIds();for(const L of d)this.canonicalIssuer.getId(L)}}const k=[];for(const l of this.quads){const o=g.serializeQuadComponents(this._componentWithCanonicalId({component:l.subject}),l.predicate,this._componentWithCanonicalId({component:l.object}),this._componentWithCanonicalId({component:l.graph}));k.push(o)}return k.sort(),k.join("")}hashFirstDegreeQuads(n){const t=[],i=this.blankNodeInfo.get(n),y=i.quads;for(const k of y){const l={subject:null,predicate:k.predicate,object:null,graph:null};l.subject=this.modifyFirstDegreeComponent(n,k.subject,"subject"),l.object=this.modifyFirstDegreeComponent(n,k.object,"object"),l.graph=this.modifyFirstDegreeComponent(n,k.graph,"graph"),t.push(g.serializeQuad(l))}t.sort();const N=this.createMessageDigest();for(const k of t)N.update(k);return i.hash=N.digest(),i.hash}hashRelatedBlankNode(n,t,i,y){let N;N=this.canonicalIssuer.hasId(n)?this.canonicalIssuer.getId(n):i.hasId(n)?i.getId(n):this.blankNodeInfo.get(n).hash;const k=this.createMessageDigest();return k.update(y),"g"!==y&&k.update(this.getRelatedPredicate(t)),k.update(N),k.digest()}hashNDegreeQuads(n,t){const i=this.deepIterations.get(n)||0;if(i>this.maxDeepIterations)throw new Error(`Maximum deep iterations (${this.maxDeepIterations}) exceeded.`);this.deepIterations.set(n,i+1);const y=this.createMessageDigest(),N=this.createHashToRelated(n,t),k=[...N.keys()].sort();for(const l of k){y.update(l);let j,o="";const d=new h(N.get(l));for(;d.hasNext();){const L=d.next();let E=t.clone(),Y="";const R=[];let e=!1;for(const a of L)if(this.canonicalIssuer.hasId(a)?Y+=this.canonicalIssuer.getId(a):(E.hasId(a)||R.push(a),Y+=E.getId(a)),0!==o.length&&Y>o){e=!0;break}if(!e){for(const a of R){const s=this.hashNDegreeQuads(a,E);if(Y+=E.getId(a),Y+=`<${s.hash}>`,E=s.issuer,0!==o.length&&Y>o){e=!0;break}}e||(0===o.length||Y`}createHashToRelated(n,t){const i=new Map,y=this.blankNodeInfo.get(n).quads;for(const N of y)this._addRelatedBlankNodeHash({quad:N,component:N.subject,position:"s",id:n,issuer:t,hashToRelated:i}),this._addRelatedBlankNodeHash({quad:N,component:N.object,position:"o",id:n,issuer:t,hashToRelated:i}),this._addRelatedBlankNodeHash({quad:N,component:N.graph,position:"g",id:n,issuer:t,hashToRelated:i});return i}_hashAndTrackBlankNode({id:n,hashToBlankNodes:t}){const i=this.hashFirstDegreeQuads(n),y=t.get(i);y?y.push(n):t.set(i,[n])}_addBlankNodeQuadInfo({quad:n,component:t}){if("BlankNode"!==t.termType)return;const i=t.value,y=this.blankNodeInfo.get(i);y?y.quads.add(n):this.blankNodeInfo.set(i,{quads:new Set([n]),hash:null})}_addRelatedBlankNodeHash({quad:n,component:t,position:i,id:y,issuer:N,hashToRelated:k}){if("BlankNode"!==t.termType||t.value===y)return;const l=t.value,o=this.hashRelatedBlankNode(l,n,N,i),j=k.get(o);j?j.push(l):k.set(o,[l])}_componentWithCanonicalId({component:n}){return"BlankNode"!==n.termType||n.value.startsWith(this.canonicalIssuer.prefix)?n:{termType:"BlankNode",value:this.canonicalIssuer.getId(n.value)}}}},393:($,Z,u)=>{"use strict";var S=u(4510).default;const x=u(4499),h=u(7189);$.exports=class extends h{constructor(){super(),this.name="URGNA2012",this.createMessageDigest=()=>new x("sha1")}modifyFirstDegreeComponent(J,r,n){return"BlankNode"!==r.termType?r:"graph"===n?{termType:"BlankNode",value:"_:g"}:{termType:"BlankNode",value:r.value===J?"_:a":"_:z"}}getRelatedPredicate(J){return J.predicate.value}createHashToRelated(J,r){var n=this;return S(function*(){const t=new Map,i=n.blankNodeInfo.get(J).quads;let y=0;for(const N of i){let k,l;if("BlankNode"===N.subject.termType&&N.subject.value!==J)l=N.subject.value,k="p";else{if("BlankNode"!==N.object.termType||N.object.value===J)continue;l=N.object.value,k="r"}++y%100==0&&(yield n._yield());const o=yield n.hashRelatedBlankNode(l,N,r,k),j=t.get(o);j?j.push(l):t.set(o,[l])}return t})()}}},1382:($,Z,u)=>{"use strict";const S=u(4499),x=u(5930);$.exports=class extends x{constructor(){super(),this.name="URGNA2012",this.createMessageDigest=()=>new S("sha1")}modifyFirstDegreeComponent(g,J,r){return"BlankNode"!==J.termType?J:"graph"===r?{termType:"BlankNode",value:"_:g"}:{termType:"BlankNode",value:J.value===g?"_:a":"_:z"}}getRelatedPredicate(g){return g.predicate.value}createHashToRelated(g,J){const r=new Map,n=this.blankNodeInfo.get(g).quads;for(const t of n){let i,y;if("BlankNode"===t.subject.termType&&t.subject.value!==g)y=t.subject.value,i="p";else{if("BlankNode"!==t.object.termType||t.object.value===g)continue;y=t.object.value,i="r"}const N=this.hashRelatedBlankNode(y,t,J,i),k=r.get(N);k?k.push(y):r.set(N,[y])}return r}}},4793:($,Z,u)=>{"use strict";var S=u(4510).default;const x=u(7189),h=u(393),g=u(5930),J=u(1382);let r;try{r=u(7789)}catch{}function n(t){return Array.isArray(t)?t:Z.NQuads.legacyDatasetToQuads(t)}Z.NQuads=u(9511),Z.IdentifierIssuer=u(3053),Z._rdfCanonizeNative=function(t){return t&&(r=t),r},Z.canonize=function(){var t=S(function*(i,y){const N=n(i);if(y.useNative){if(!r)throw new Error("rdf-canonize-native not available");if(y.createMessageDigest)throw new Error('"createMessageDigest" cannot be used with "useNative".');return new Promise((k,l)=>r.canonize(N,y,(o,j)=>o?l(o):k(j)))}if("URDNA2015"===y.algorithm)return new x(y).main(N);if("URGNA2012"===y.algorithm){if(y.createMessageDigest)throw new Error('"createMessageDigest" cannot be used with "URGNA2012".');return new h(y).main(N)}throw"algorithm"in y?new Error("Invalid RDF Dataset Canonicalization algorithm: "+y.algorithm):new Error("No RDF Dataset Canonicalization algorithm specified.")});return function(i,y){return t.apply(this,arguments)}}(),Z._canonizeSync=function(t,i){const y=n(t);if(i.useNative){if(!r)throw new Error("rdf-canonize-native not available");if(i.createMessageDigest)throw new Error('"createMessageDigest" cannot be used with "useNative".');return r.canonizeSync(y,i)}if("URDNA2015"===i.algorithm)return new g(i).main(y);if("URGNA2012"===i.algorithm){if(i.createMessageDigest)throw new Error('"createMessageDigest" cannot be used with "URGNA2012".');return new J(i).main(y)}throw"algorithm"in i?new Error("Invalid RDF Dataset Canonicalization algorithm: "+i.algorithm):new Error("No RDF Dataset Canonicalization algorithm specified.")}},1811:function(){!function($,Z){"use strict";if(!$.setImmediate){var g,u=1,S={},x=!1,h=$.document,j=Object.getPrototypeOf&&Object.getPrototypeOf($);j=j&&j.setTimeout?j:$,"[object process]"==={}.toString.call($.process)?function i(){g=function(d){process.nextTick(function(){t(d)})}}():function y(){if($.postMessage&&!$.importScripts){var d=!0,L=$.onmessage;return $.onmessage=function(){d=!1},$.postMessage("","*"),$.onmessage=L,d}}()?function N(){var d="setImmediate$"+Math.random()+"$",L=function(E){E.source===$&&"string"==typeof E.data&&0===E.data.indexOf(d)&&t(+E.data.slice(d.length))};$.addEventListener?$.addEventListener("message",L,!1):$.attachEvent("onmessage",L),g=function(E){$.postMessage(d+E,"*")}}():$.MessageChannel?function k(){var d=new MessageChannel;d.port1.onmessage=function(L){t(L.data)},g=function(L){d.port2.postMessage(L)}}():h&&"onreadystatechange"in h.createElement("script")?function l(){var d=h.documentElement;g=function(L){var E=h.createElement("script");E.onreadystatechange=function(){t(L),E.onreadystatechange=null,d.removeChild(E),E=null},d.appendChild(E)}}():function o(){g=function(d){setTimeout(t,0,d)}}(),j.setImmediate=function J(d){"function"!=typeof d&&(d=new Function(""+d));for(var L=new Array(arguments.length-1),E=0;E"u"?typeof global>"u"?this:global:self)},7789:()=>{},4510:$=>{function Z(S,x,h,g,J,r,n){try{var t=S[r](n),i=t.value}catch(y){return void h(y)}t.done?x(i):Promise.resolve(i).then(g,J)}$.exports=function u(S){return function(){var x=this,h=arguments;return new Promise(function(g,J){var r=S.apply(x,h);function n(i){Z(r,g,J,n,t,"next",i)}function t(i){Z(r,g,J,n,t,"throw",i)}n(void 0)})}},$.exports.__esModule=!0,$.exports.default=$.exports}}]);
\ No newline at end of file
diff --git a/geocat/apps/metadata-converter/favicon.ico b/geocat/apps/metadata-converter/favicon.ico
new file mode 100644
index 000000000..317ebcb23
Binary files /dev/null and b/geocat/apps/metadata-converter/favicon.ico differ
diff --git a/geocat/apps/metadata-converter/index.html b/geocat/apps/metadata-converter/index.html
new file mode 100644
index 000000000..40389c655
--- /dev/null
+++ b/geocat/apps/metadata-converter/index.html
@@ -0,0 +1,16 @@
+
+
+
+
+ Metadata Converter
+
+
+
+
+
+
+
+
+
+
+
diff --git a/geocat/apps/metadata-converter/main.1384103c540b0bcf.js b/geocat/apps/metadata-converter/main.1384103c540b0bcf.js
new file mode 100644
index 000000000..40166a597
--- /dev/null
+++ b/geocat/apps/metadata-converter/main.1384103c540b0bcf.js
@@ -0,0 +1 @@
+(self.webpackChunkmetadata_converter=self.webpackChunkmetadata_converter||[]).push([[792],{6327:(pe,ae,ht)=>{"use strict";function X(e){return"function"==typeof e}function Pt(e){const t=e(r=>{Error.call(r),r.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}const Tt=Pt(e=>function(t){e(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((r,o)=>`${o+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t});function Wt(e,n){if(e){const t=e.indexOf(n);0<=t&&e.splice(t,1)}}class zt{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(const s of t)s.remove(this);else t.remove(this);const{initialTeardown:r}=this;if(X(r))try{r()}catch(s){n=s instanceof Tt?s.errors:[s]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const s of o)try{nt(s)}catch(i){n=n??[],i instanceof Tt?n=[...n,...i.errors]:n.push(i)}}if(n)throw new Tt(n)}}add(n){var t;if(n&&n!==this)if(this.closed)nt(n);else{if(n instanceof zt){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(t=this._finalizers)&&void 0!==t?t:[]).push(n)}}_hasParent(n){const{_parentage:t}=this;return t===n||Array.isArray(t)&&t.includes(n)}_addParent(n){const{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(n),t):t?[t,n]:n}_removeParent(n){const{_parentage:t}=this;t===n?this._parentage=null:Array.isArray(t)&&Wt(t,n)}remove(n){const{_finalizers:t}=this;t&&Wt(t,n),n instanceof zt&&n._removeParent(this)}}zt.EMPTY=(()=>{const e=new zt;return e.closed=!0,e})();const Nt=zt.EMPTY;function D(e){return e instanceof zt||e&&"closed"in e&&X(e.remove)&&X(e.add)&&X(e.unsubscribe)}function nt(e){X(e)?e():e.unsubscribe()}const p={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},le={setTimeout(e,n,...t){const{delegate:r}=le;return r?.setTimeout?r.setTimeout(e,n,...t):setTimeout(e,n,...t)},clearTimeout(e){const{delegate:n}=le;return(n?.clearTimeout||clearTimeout)(e)},delegate:void 0};function ce(e){le.setTimeout(()=>{const{onUnhandledError:n}=p;if(!n)throw e;n(e)})}function qt(){}const Ht=Gt("C",void 0,void 0);function Gt(e,n,t){return{kind:e,value:n,error:t}}let st=null;function U(e){if(p.useDeprecatedSynchronousErrorHandling){const n=!st;if(n&&(st={errorThrown:!1,error:null}),e(),n){const{errorThrown:t,error:r}=st;if(st=null,t)throw r}}else e()}class at extends zt{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,D(n)&&n.add(this)):this.destination=te}static create(n,t,r){return new Jt(n,t,r)}next(n){this.isStopped?Ut(function he(e){return Gt("N",e,void 0)}(n),this):this._next(n)}error(n){this.isStopped?Ut(function Rt(e){return Gt("E",void 0,e)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?Ut(Ht,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const ut=Function.prototype.bind;function Lt(e,n){return ut.call(e,n)}class Q{constructor(n){this.partialObserver=n}next(n){const{partialObserver:t}=this;if(t.next)try{t.next(n)}catch(r){et(r)}}error(n){const{partialObserver:t}=this;if(t.error)try{t.error(n)}catch(r){et(r)}else et(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(t){et(t)}}}class Jt extends at{constructor(n,t,r){let o;if(super(),X(n)||!n)o={next:n??void 0,error:t??void 0,complete:r??void 0};else{let s;this&&p.useDeprecatedNextContext?(s=Object.create(n),s.unsubscribe=()=>this.unsubscribe(),o={next:n.next&&Lt(n.next,s),error:n.error&&Lt(n.error,s),complete:n.complete&&Lt(n.complete,s)}):o=n}this.destination=new Q(o)}}function et(e){p.useDeprecatedSynchronousErrorHandling?function A(e){p.useDeprecatedSynchronousErrorHandling&&st&&(st.errorThrown=!0,st.error=e)}(e):ce(e)}function Ut(e,n){const{onStoppedNotification:t}=p;t&&le.setTimeout(()=>t(e,n))}const te={closed:!0,next:qt,error:function At(e){throw e},complete:qt},tt="function"==typeof Symbol&&Symbol.observable||"@@observable";function _t(e){return e}let J=(()=>{class e{constructor(t){t&&(this._subscribe=t)}lift(t){const r=new e;return r.source=this,r.operator=t,r}subscribe(t,r,o){const s=function Y(e){return e&&e instanceof at||function rt(e){return e&&X(e.next)&&X(e.error)&&X(e.complete)}(e)&&D(e)}(t)?t:new Jt(t,r,o);return U(()=>{const{operator:i,source:l}=this;s.add(i?i.call(s,l):l?this._subscribe(s):this._trySubscribe(s))}),s}_trySubscribe(t){try{return this._subscribe(t)}catch(r){t.error(r)}}forEach(t,r){return new(r=It(r))((o,s)=>{const i=new Jt({next:l=>{try{t(l)}catch(a){s(a),i.unsubscribe()}},error:s,complete:o});this.subscribe(i)})}_subscribe(t){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(t)}[tt](){return this}pipe(...t){return function F(e){return 0===e.length?_t:1===e.length?e[0]:function(t){return e.reduce((r,o)=>o(r),t)}}(t)(this)}toPromise(t){return new(t=It(t))((r,o)=>{let s;this.subscribe(i=>s=i,i=>o(i),()=>r(s))})}}return e.create=n=>new e(n),e})();function It(e){var n;return null!==(n=e??p.Promise)&&void 0!==n?n:Promise}const Ct=Pt(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Dt=(()=>{class e extends J{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const r=new oe(this,this);return r.operator=t,r}_throwIfClosed(){if(this.closed)throw new Ct}next(t){U(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(t)}})}error(t){U(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;const{observers:r}=this;for(;r.length;)r.shift().error(t)}})}complete(){U(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){const{hasError:r,isStopped:o,observers:s}=this;return r||o?Nt:(this.currentObservers=null,s.push(t),new zt(()=>{this.currentObservers=null,Wt(s,t)}))}_checkFinalizedStatuses(t){const{hasError:r,thrownError:o,isStopped:s}=this;r?t.error(o):s&&t.complete()}asObservable(){const t=new J;return t.source=this,t}}return e.create=(n,t)=>new oe(n,t),e})();class oe extends Dt{constructor(n,t){super(),this.destination=n,this.source=t}next(n){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,n)}error(n){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,n)}complete(){var n,t;null===(t=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===t||t.call(n)}_subscribe(n){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(n))&&void 0!==r?r:Nt}}function Yt(e){return n=>{if(function ze(e){return X(e?.lift)}(n))return n.lift(function(t){try{return e(t,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function ve(e,n,t,r,o){return new r1(e,n,t,r,o)}class r1 extends at{constructor(n,t,r,o,s,i){super(n),this.onFinalize=s,this.shouldUnsubscribe=i,this._next=t?function(l){try{t(l)}catch(a){n.error(a)}}:super._next,this._error=o?function(l){try{o(l)}catch(a){n.error(a)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(l){n.error(l)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:t}=this;super.unsubscribe(),!t&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function Qe(e,n){return Yt((t,r)=>{let o=0;t.subscribe(ve(r,s=>{r.next(e.call(n,s,o++))}))})}function M(e){return this instanceof M?(this.v=e,this):new M(e)}function Mt(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function _n(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],r=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(s){t[s]=e[s]&&function(i){return new Promise(function(l,a){!function o(s,i,l,a){Promise.resolve(a).then(function(c){s({value:c,done:l})},i)}(l,a,(i=e[s](i)).done,i.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const o2=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function jo(e){return X(e?.then)}function On(e){return X(e[tt])}function k2(e){return Symbol.asyncIterator&&X(e?.[Symbol.asyncIterator])}function Hs(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const ho=function as(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function E2(e){return X(e?.[ho])}function s2(e){return function z(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=t.apply(e,n||[]),s=[];return o={},i("next"),i("throw"),i("return"),o[Symbol.asyncIterator]=function(){return this},o;function i(d){r[d]&&(o[d]=function(v){return new Promise(function(m,L){s.push([d,v,m,L])>1||l(d,v)})})}function l(d,v){try{!function a(d){d.value instanceof M?Promise.resolve(d.value.v).then(c,h):u(s[0][2],d)}(r[d](v))}catch(m){u(s[0][3],m)}}function c(d){l("next",d)}function h(d){l("throw",d)}function u(d,v){d(v),s.shift(),s.length&&l(s[0][0],s[0][1])}}(this,arguments,function*(){const t=e.getReader();try{for(;;){const{value:r,done:o}=yield M(t.read());if(o)return yield M(void 0);yield yield M(r)}}finally{t.releaseLock()}})}function _2(e){return X(e?.getReader)}function Hn(e){if(e instanceof J)return e;if(null!=e){if(On(e))return function E(e){return new J(n=>{const t=e[tt]();if(X(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(o2(e))return function I(e){return new J(n=>{for(let t=0;t{e.then(t=>{n.closed||(n.next(t),n.complete())},t=>n.error(t)).then(null,ce)})}(e);if(k2(e))return be(e);if(E2(e))return function ne(e){return new J(n=>{for(const t of e)if(n.next(t),n.closed)return;n.complete()})}(e);if(_2(e))return function k1(e){return be(s2(e))}(e)}throw Hs(e)}function be(e){return new J(n=>{(function Ir(e,n){var t,r,o,s;return function Xn(e,n,t,r){return new(t||(t=Promise))(function(s,i){function l(h){try{c(r.next(h))}catch(u){i(u)}}function a(h){try{c(r.throw(h))}catch(u){i(u)}}function c(h){h.done?s(h.value):function o(s){return s instanceof t?s:new t(function(i){i(s)})}(h.value).then(l,a)}c((r=r.apply(e,n||[])).next())})}(this,void 0,void 0,function*(){try{for(t=Mt(e);!(r=yield t.next()).done;)if(n.next(r.value),n.closed)return}catch(i){o={error:i}}finally{try{r&&!r.done&&(s=t.return)&&(yield s.call(t))}finally{if(o)throw o.error}}n.complete()})})(e,n).catch(t=>n.error(t))})}function $r(e,n,t,r=0,o=!1){const s=n.schedule(function(){t(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(s),!o)return s}function N1(e,n,t=1/0){return X(n)?N1((r,o)=>Qe((s,i)=>n(r,s,o,i))(Hn(e(r,o))),t):("number"==typeof n&&(t=n),Yt((r,o)=>function cr(e,n,t,r,o,s,i,l){const a=[];let c=0,h=0,u=!1;const d=()=>{u&&!a.length&&!c&&n.complete()},v=L=>c{s&&n.next(L),c++;let S=!1;Hn(t(L,h++)).subscribe(ve(n,j=>{o?.(j),s?v(j):n.next(j)},()=>{S=!0},void 0,()=>{if(S)try{for(c--;a.length&&cm(j)):m(j)}d()}catch(j){n.error(j)}}))};return e.subscribe(ve(n,v,()=>{u=!0,d()})),()=>{l?.()}}(r,o,e,t)))}function Po(e=1/0){return N1(_t,e)}const zo=new J(e=>e.complete());function uo(e){return e&&X(e.schedule)}function ye(e){return e[e.length-1]}function Nn(e){return X(ye(e))?e.pop():void 0}function gr(e){return uo(ye(e))?e.pop():void 0}function I1(e,n=0){return Yt((t,r)=>{t.subscribe(ve(r,o=>$r(r,e,()=>r.next(o),n),()=>$r(r,e,()=>r.complete(),n),o=>$r(r,e,()=>r.error(o),n)))})}function Sn(e,n=0){return Yt((t,r)=>{r.add(e.schedule(()=>t.subscribe(r),n))})}function T0(e,n){if(!e)throw new Error("Iterable cannot be null");return new J(t=>{$r(t,n,()=>{const r=e[Symbol.asyncIterator]();$r(t,n,()=>{r.next().then(o=>{o.done?t.complete():t.next(o.value)})},0,!0)})})}function I2(e,n){return n?function Ql(e,n){if(null!=e){if(On(e))return function qi(e,n){return Hn(e).pipe(Sn(n),I1(n))}(e,n);if(o2(e))return function C5(e,n){return new J(t=>{let r=0;return n.schedule(function(){r===e.length?t.complete():(t.next(e[r++]),t.closed||this.schedule())})})}(e,n);if(jo(e))return function Wi(e,n){return Hn(e).pipe(Sn(n),I1(n))}(e,n);if(k2(e))return T0(e,n);if(E2(e))return function k5(e,n){return new J(t=>{let r;return $r(t,n,()=>{r=e[ho](),$r(t,n,()=>{let o,s;try{({value:o,done:s}=r.next())}catch(i){return void t.error(i)}s?t.complete():t.next(o)},0,!0)}),()=>X(r?.return)&&r.return()})}(e,n);if(_2(e))return function _5(e,n){return T0(s2(e),n)}(e,n)}throw Hs(e)}(e,n):Hn(e)}function cs(...e){const n=gr(e),t=function Vn(e,n){return"number"==typeof ye(e)?e.pop():n}(e,1/0),r=e;return r.length?1===r.length?Hn(r[0]):Po(t)(I2(r,n)):zo}class Fa extends Dt{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const t=super._subscribe(n);return!t.closed&&n.next(this._value),t}getValue(){const{hasError:n,thrownError:t,_value:r}=this;if(n)throw t;return this._throwIfClosed(),r}next(n){super.next(this._value=n)}}function po(...e){return I2(e,gr(e))}function Gi(e={}){const{connector:n=(()=>new Dt),resetOnError:t=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return s=>{let i,l,a,c=0,h=!1,u=!1;const d=()=>{l?.unsubscribe(),l=void 0},v=()=>{d(),i=a=void 0,h=u=!1},m=()=>{const L=i;v(),L?.unsubscribe()};return Yt((L,S)=>{c++,!u&&!h&&d();const j=a=a??n();S.add(()=>{c--,0===c&&!u&&!h&&(l=Jl(m,o))}),j.subscribe(S),!i&&c>0&&(i=new Jt({next:N=>j.next(N),error:N=>{u=!0,d(),l=Jl(v,t,N),j.error(N)},complete:()=>{h=!0,d(),l=Jl(v,r),j.complete()}}),Hn(L).subscribe(i))})(s)}}function Jl(e,n,...t){if(!0===n)return void e();if(!1===n)return;const r=new Jt({next:()=>{r.unsubscribe(),e()}});return Hn(n(...t)).subscribe(r)}function zs(e,n){return Yt((t,r)=>{let o=null,s=0,i=!1;const l=()=>i&&!o&&r.complete();t.subscribe(ve(r,a=>{o?.unsubscribe();let c=0;const h=s++;Hn(e(a,h)).subscribe(o=ve(r,u=>r.next(n?n(a,u,h,c++):u),()=>{o=null,l()}))},()=>{i=!0,l()}))})}function bs(e,n=_t){return e=e??E0,Yt((t,r)=>{let o,s=!0;t.subscribe(ve(r,i=>{const l=n(i);(s||!e(o,l))&&(s=!1,o=l,r.next(i))}))})}function E0(e,n){return e===n}function ir(e){for(let n in e)if(e[n]===ir)return n;throw Error("Could not find renamed property on target object.")}function l2(e,n){for(const t in n)n.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&(e[t]=n[t])}function An(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(An).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const n=e.toString();if(null==n)return""+n;const t=n.indexOf("\n");return-1===t?n:n.substring(0,t)}function ta(e,n){return null==e||""===e?null===n?"":n:null==n||""===n?e:e+" "+n}const j0=ir({__forward_ref__:ir});function Hr(e){return e.__forward_ref__=Hr,e.toString=function(){return An(this())},e}function D1(e){return Yi(e)?e():e}function Yi(e){return"function"==typeof e&&e.hasOwnProperty(j0)&&e.__forward_ref__===Hr}function ea(e){return e&&!!e.\u0275providers}const R2="https://g.co/ng/security#xss";class Ie extends Error{constructor(n,t){super(function Xi(e,n){return`NG0${Math.abs(e)}${n?": "+n:""}`}(n,t)),this.code=n}}function B1(e){return"string"==typeof e?e:null==e?"":String(e)}function xl(e,n){throw new Ie(-201,!1)}function x2(e,n){null==e&&function L1(e,n,t,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${t} ${r} ${n} <=Actual]`))}(n,e,null,"!=")}function xe(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function $1(e){return{providers:e.providers||[],imports:e.imports||[]}}function na(e){return $a(e,sa)||$a(e,F0)}function $a(e,n){return e.hasOwnProperty(n)?e[n]:null}function oa(e){return e&&(e.hasOwnProperty(Ua)||e.hasOwnProperty(b5))?e[Ua]:null}const sa=ir({\u0275prov:ir}),Ua=ir({\u0275inj:ir}),F0=ir({ngInjectableDef:ir}),b5=ir({ngInjectorDef:ir});var mr=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(mr||{});let Za;function Xo(e){const n=Za;return Za=e,n}function N0(e,n,t){const r=na(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:t&mr.Optional?null:void 0!==n?n:void xl(An(e))}const ln=globalThis;class Me{constructor(n,t){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=xe({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const Ml={},la="__NG_DI_FLAG__",aa="ngTempTokenPath",Fe=/\n/gm,F2="__source";let Ks;function O2(e){const n=Ks;return Ks=e,n}function Hh(e,n=mr.Default){if(void 0===Ks)throw new Ie(-203,!1);return null===Ks?N0(e,void 0,n):Ks.get(e,n&mr.Optional?null:void 0,n)}function gt(e,n=mr.Default){return(function O0(){return Za}()||Hh)(D1(e),n)}function g1(e,n=mr.Default){return gt(e,F1(n))}function F1(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Fr(e){const n=[];for(let t=0;tn){i=s-1;break}}}for(;ss?"":o[u+1].toLowerCase();const v=8&r?d:null;if(v&&-1!==Y0(v,c,0)||2&r&&c!==d){if(c2(r))return!1;i=!0}}}}else{if(!i&&!c2(r)&&!c2(a))return!1;if(i&&c2(a))continue;i=!1,r=a|1&r}}return c2(r)||i}function c2(e){return 0==(1&e)}function T5(e,n,t,r){if(null===n)return-1;let o=0;if(r||!t){let s=!1;for(;o-1)for(t++;t0?'="'+l+'"':"")+"]"}else 8&r?o+="."+i:4&r&&(o+=" "+i);else""!==o&&!c2(i)&&(n+=Ji(s,o),o=""),r=i,s=s||!c2(r);t++}return""!==o&&(n+=Ji(s,o)),n}function U1(e){return Io(()=>{const n=t0(e),t={...n,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Kt.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||M2.Emulated,styles:e.styles||zr,_:null,schemas:e.schemas||null,tView:null,id:""};Sl(t);const r=e.dependencies;return t.directiveDefs=Dn(r,!1),t.pipeDefs=Dn(r,!0),t.id=function sc(e){let n=0;const t=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const o of t)n=Math.imul(31,n)+o.charCodeAt(0)<<0;return n+=2147483648,"c"+n}(t),t})}function j5(e){return br(e)||W1(e)}function P5(e){return null!==e}function K1(e){return Io(()=>({type:e.type,bootstrap:e.bootstrap||zr,declarations:e.declarations||zr,imports:e.imports||zr,exports:e.exports||zr,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function nc(e,n){if(null==e)return y2;const t={};for(const r in e)if(e.hasOwnProperty(r)){let o=e[r],s=o;Array.isArray(o)&&(s=o[1],o=o[0]),t[o]=r,n&&(n[o]=s)}return t}function s1(e){return Io(()=>{const n=t0(e);return Sl(n),n})}function bo(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function br(e){return e[Qs]||null}function W1(e){return e[Xa]||null}function lr(e){return e[Oe]||null}function t0(e){const n={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputTransforms:null,inputConfig:e.inputs||y2,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||zr,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:nc(e.inputs,n),outputs:nc(e.outputs)}}function Sl(e){e.features?.forEach(n=>n(e))}function Dn(e,n){if(!e)return null;const t=n?lr:j5;return()=>("function"==typeof e?e():e).map(r=>t(r)).filter(P5)}const Jr=0,Xe=1,u1=2,xn=3,N2=4,$2=5,vo=6,tl=7,z1=8,hs=9,f=10,y=11,V=12,R=13,Z=14,ot=15,ft=16,G=17,Ne=18,Lr=19,us=20,Ko=21,Js=22,da=23,e0=24,wr=25,r0=1,Al=2,ti=7,pa=9,$n=11;function u2(e){return Array.isArray(e)&&"object"==typeof e[r0]}function d2(e){return Array.isArray(e)&&!0===e[r0]}function I5(e){return 0!=(4&e.flags)}function Dl(e){return e.componentOffset>-1}function lc(e){return 1==(1&e.flags)}function Ss(e){return!!e.template}function R5(e){return 0!=(512&e[u1])}function Ce(e,n){return e.hasOwnProperty(Vs)?e[Vs]:null}let Ro=null,ac=!1;function H2(e){const n=Ro;return Ro=e,n}const ds={version:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{}};function ki(e){if(!Bl(e)||e.dirty){if(!e.producerMustRecompute(e)&&!Dh(e))return void(e.dirty=!1);e.producerRecomputeValue(e),e.dirty=!1}}function Ah(e){e.dirty=!0,function Sh(e){if(void 0===e.liveConsumerNode)return;const n=ac;ac=!0;try{for(const t of e.liveConsumerNode)t.dirty||Ah(t)}finally{ac=n}}(e),e.consumerMarkedDirty?.(e)}function O5(e){return e&&(e.nextProducerIndex=0),H2(e)}function N5(e,n){if(H2(n),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if(Bl(e))for(let t=e.nextProducerIndex;te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Dh(e){ga(e);for(let n=0;n0}function ga(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}let Ph=null;function Z5(e){const n=H2(null);try{return e()}finally{H2(n)}}const q5=()=>{},_i=(()=>({...ds,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{e.schedule(e.ref)},hasRun:!1,cleanupFn:q5}))();class wd{constructor(n,t,r){this.previousValue=n,this.currentValue=t,this.firstChange=r}isFirstChange(){return this.firstChange}}function mo(){return W5}function W5(e){return e.type.prototype.ngOnChanges&&(e.setInput=hc),Uh}function Uh(){const e=Zh(this),n=e?.current;if(n){const t=e.previous;if(t===y2)e.previous=n;else for(let r in n)t[r]=n[r];e.current=null,this.ngOnChanges(n)}}function hc(e,n,t,r){const o=this.declaredInputs[t],s=Zh(e)||function qh(e,n){return e[G5]=n}(e,{previous:y2,current:null}),i=s.current||(s.current={}),l=s.previous,a=l[o];i[o]=new wd(a&&a.currentValue,n,l===y2),e[r]=n}mo.ngInherit=!0;const G5="__ngSimpleChanges__";function Zh(e){return e[G5]||null}const ri=function(e,n,t){},Gh="svg";function mn(e){for(;Array.isArray(e);)e=e[Jr];return e}function dc(e,n){return mn(n[e])}function Fo(e,n){return mn(n[e.index])}function K5(e,n){return e.data[n]}function Tl(e,n){return e[n]}function U2(e,n){const t=n[e];return u2(t)?t:t[Jr]}function b(e,n){return null==n?null:e[n]}function T(e){e[G]=0}function K(e){1024&e[u1]||(e[u1]|=1024,bt(e,1))}function wt(e){1024&e[u1]&&(e[u1]&=-1025,bt(e,-1))}function bt(e,n){let t=e[xn];if(null===t)return;t[$2]+=n;let r=t;for(t=t[xn];null!==t&&(1===n&&1===r[$2]||-1===n&&0===r[$2]);)t[$2]+=n,r=t,t=t[xn]}const kt={lFrame:v7(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function o1(){return kt.bindingsEnabled}function G1(){return null!==kt.skipHydrationRootTNode}function fe(){return kt.lFrame.lView}function n1(){return kt.lFrame.tView}function ct(e){return kt.lFrame.contextLView=e,e[z1]}function Bt(e){return kt.lFrame.contextLView=null,e}function x1(){let e=ar();for(;null!==e&&64===e.type;)e=e.parent;return e}function ar(){return kt.lFrame.currentTNode}function Dr(e,n){const t=kt.lFrame;t.currentTNode=e,t.isParent=n}function Sr(){return kt.lFrame.isParent}function Ur(){kt.lFrame.isParent=!1}function Un(){const e=kt.lFrame;let n=e.bindingRootIndex;return-1===n&&(n=e.bindingRootIndex=e.tView.bindingStartIndex),n}function As(){return kt.lFrame.bindingIndex++}function No(e){const n=kt.lFrame,t=n.bindingIndex;return n.bindingIndex=n.bindingIndex+e,t}function Pl(e,n){const t=kt.lFrame;t.bindingIndex=t.bindingRootIndex=e,n0(n)}function n0(e){kt.lFrame.currentDirectiveIndex=e}function kd(e){const n=kt.lFrame.currentDirectiveIndex;return-1===n?null:e[n]}function u7(){return kt.lFrame.currentQueryIndex}function _d(e){kt.lFrame.currentQueryIndex=e}function Dw(e){const n=e[Xe];return 2===n.type?n.declTNode:1===n.type?e[vo]:null}function d7(e,n,t){if(t&mr.SkipSelf){let o=n,s=e;for(;!(o=o.parent,null!==o||t&mr.Host||(o=Dw(s),null===o||(s=s[Z],10&o.type))););if(null===o)return!1;n=o,e=s}const r=kt.lFrame=p7();return r.currentTNode=n,r.lView=e,!0}function xd(e){const n=p7(),t=e[Xe];kt.lFrame=n,n.currentTNode=t.firstChild,n.lView=e,n.tView=t,n.contextLView=e,n.bindingIndex=t.bindingStartIndex,n.inI18n=!1}function p7(){const e=kt.lFrame,n=null===e?null:e.child;return null===n?v7(e):n}function v7(e){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=n),n}function g7(){const e=kt.lFrame;return kt.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const f7=g7;function Md(){const e=g7();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Z2(){return kt.lFrame.selectedIndex}function o0(e){kt.lFrame.selectedIndex=e}function Qn(){const e=kt.lFrame;return K5(e.tView,e.selectedIndex)}function s0(){kt.lFrame.currentNamespace=Gh}function Xh(){!function jw(){kt.lFrame.currentNamespace=null}()}let w7=!0;function Kh(){return w7}function ma(e){w7=e}function Qh(e,n){for(let t=n.directiveStart,r=n.directiveEnd;t=r)break}else n[a]<0&&(e[G]+=65536),(l>13>16&&(3&e[u1])===n&&(e[u1]+=8192,k7(l,s)):k7(l,s)}const pc=-1;class J5{constructor(n,t,r){this.factory=n,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=r}}function zd(e){return e!==pc}function t4(e){return 32767&e}function e4(e,n){let t=function Nw(e){return e>>16}(e),r=n;for(;t>0;)r=r[Z],t--;return r}let bd=!0;function e3(e){const n=bd;return bd=e,n}const _7=255,x7=5;let $w=0;const el={};function r3(e,n){const t=M7(e,n);if(-1!==t)return t;const r=n[Xe];r.firstCreatePass&&(e.injectorIndex=n.length,Ld(r.data,e),Ld(n,null),Ld(r.blueprint,null));const o=n3(e,n),s=e.injectorIndex;if(zd(o)){const i=t4(o),l=e4(o,n),a=l[Xe].data;for(let c=0;c<8;c++)n[s+c]=l[i+c]|a[i+c]}return n[s+8]=o,s}function Ld(e,n){e.push(0,0,0,0,0,0,0,0,n)}function M7(e,n){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===n[e.injectorIndex+8]?-1:e.injectorIndex}function n3(e,n){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let t=0,r=null,o=n;for(;null!==o;){if(r=S7(o),null===r)return pc;if(t++,o=o[Z],-1!==r.injectorIndex)return r.injectorIndex|t<<16}return pc}function Vd(e,n,t){!function Uw(e,n,t){let r;"string"==typeof t?r=t.charCodeAt(0)||0:t.hasOwnProperty(Hl)&&(r=t[Hl]),null==r&&(r=t[Hl]=$w++);const o=r&_7;n.data[e+(o>>x7)]|=1<=0?n&_7:Yw:n}(t);if("function"==typeof s){if(!d7(n,e,r))return r&mr.Host?y7(o,0,r):H7(n,t,r,o);try{let i;if(i=s(r),null!=i||r&mr.Optional)return i;xl()}finally{f7()}}else if("number"==typeof s){let i=null,l=M7(e,n),a=pc,c=r&mr.Host?n[ot][vo]:null;for((-1===l||r&mr.SkipSelf)&&(a=-1===l?n3(e,n):n[l+8],a!==pc&&V7(r,!1)?(i=n[Xe],l=t4(a),n=e4(a,n)):l=-1);-1!==l;){const h=n[Xe];if(L7(s,l,h.data)){const u=qw(l,n,t,i,r,c);if(u!==el)return u}a=n[l+8],a!==pc&&V7(r,n[Xe].data[l+8]===c)&&L7(s,l,n)?(i=h,l=t4(a),n=e4(a,n)):l=-1}}return o}function qw(e,n,t,r,o,s){const i=n[Xe],l=i.data[e+8],h=o3(l,i,t,null==r?Dl(l)&&bd:r!=i&&0!=(3&l.type),o&mr.Host&&s===l);return null!==h?l0(n,i,h,l):el}function o3(e,n,t,r,o){const s=e.providerIndexes,i=n.data,l=1048575&s,a=e.directiveStart,h=s>>20,d=o?l+h:e.directiveEnd;for(let v=r?l:l+h;v=a&&m.type===t)return v}if(o){const v=i[a];if(v&&Ss(v)&&v.type===t)return a}return null}function l0(e,n,t,r){let o=e[t];const s=n.data;if(function Rw(e){return e instanceof J5}(o)){const i=o;i.resolving&&function kl(e,n){const t=n?`. Dependency path: ${n.join(" > ")} > ${e}`:"";throw new Ie(-200,`Circular dependency in DI detected for ${e}${t}`)}(function Rr(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():B1(e)}(s[t]));const l=e3(i.canSeeViewProviders);i.resolving=!0;const c=i.injectImpl?Xo(i.injectImpl):null;d7(e,r,mr.Default);try{o=e[t]=i.factory(void 0,s,e,r),n.firstCreatePass&&t>=r.directiveStart&&function Pw(e,n,t){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:s}=n.type.prototype;if(r){const i=W5(n);(t.preOrderHooks??=[]).push(e,i),(t.preOrderCheckHooks??=[]).push(e,i)}o&&(t.preOrderHooks??=[]).push(0-e,o),s&&((t.preOrderHooks??=[]).push(e,s),(t.preOrderCheckHooks??=[]).push(e,s))}(t,s[t],n)}finally{null!==c&&Xo(c),e3(l),i.resolving=!1,f7()}}return o}function L7(e,n,t){return!!(t[n+(e>>x7)]&1<{const n=e.prototype.constructor,t=n[Vs]||Sd(n),r=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){const s=o[Vs]||Sd(o);if(s&&s!==t)return s;o=Object.getPrototypeOf(o)}return s=>new s})}function Sd(e){return Yi(e)?()=>{const n=Sd(D1(e));return n&&n()}:Ce(e)}function S7(e){const n=e[Xe],t=n.type;return 2===t?n.declTNode:1===t?e[vo]:null}const gc="__parameters__";function mc(e,n,t){return Io(()=>{const r=function Ad(e){return function(...t){if(e){const r=e(...t);for(const o in r)this[o]=r[o]}}}(n);function o(...s){if(this instanceof o)return r.apply(this,s),this;const i=new o(...s);return l.annotation=i,l;function l(a,c,h){const u=a.hasOwnProperty(gc)?a[gc]:Object.defineProperty(a,gc,{value:[]})[gc];for(;u.length<=h;)u.push(null);return(u[h]=u[h]||[]).push(i),a}}return t&&(o.prototype=Object.create(t.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}function Cc(e,n){e.forEach(t=>Array.isArray(t)?Cc(t,n):n(t))}function D7(e,n,t){n>=e.length?e.push(t):e.splice(n,0,t)}function l3(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}function o4(e,n){const t=[];for(let r=0;r=0?e[1|r]=t:(r=~r,function nC(e,n,t,r){let o=e.length;if(o==n)e.push(t,r);else if(1===o)e.push(r,e[0]),e[0]=t;else{for(o--,e.push(e[o-1],e[o]);o>n;)e[o]=e[o-2],o--;e[n]=t,e[n+1]=r}}(e,r,n,t)),r}function oi(e,n){const t=si(e,n);if(t>=0)return e[1|t]}function si(e,n){return function Xr(e,n,t){let r=0,o=e.length>>t;for(;o!==r;){const s=r+(o-r>>1),i=e[s<n?o=s:r=s+1}return~(o<|^->||--!>|)/g,HC="\u200b$1\u200b";const jd=new Map;let zC=0;const Id="__ngContext__";function z2(e,n){u2(n)?(e[Id]=n[Lr],function LC(e){jd.set(e[Lr],e)}(n)):e[Id]=n}let Rd;function Fd(e,n){return Rd(e,n)}function a4(e){const n=e[xn];return d2(n)?n[xn]:n}function J7(e){return e8(e[V])}function t8(e){return e8(e[N2])}function e8(e){for(;null!==e&&!d2(e);)e=e[N2];return e}function xc(e,n,t,r,o){if(null!=r){let s,i=!1;d2(r)?s=r:u2(r)&&(i=!0,r=r[Jr]);const l=mn(r);0===e&&null!==t?null==o?s8(n,t,l):h0(n,t,l,o||null,!0):1===e&&null!==t?h0(n,t,l,o||null,!0):2===e?function k3(e,n,t){const r=w3(e,n);r&&function WC(e,n,t,r){e.removeChild(n,t,r)}(e,r,n,t)}(n,l,i):3===e&&n.destroyNode(l),null!=s&&function XC(e,n,t,r,o){const s=t[ti];s!==mn(t)&&xc(n,e,r,s,o);for(let l=$n;ln.replace(yC,HC))}(n))}function f3(e,n,t){return e.createElement(n,t)}function n8(e,n){const t=e[pa],r=t.indexOf(n);wt(n),t.splice(r,1)}function m3(e,n){if(e.length<=$n)return;const t=$n+n,r=e[t];if(r){const o=r[ft];null!==o&&o!==e&&n8(o,r),n>0&&(e[t-1][N2]=r[N2]);const s=l3(e,$n+n);!function RC(e,n){h4(e,n,n[y],2,null,null),n[Jr]=null,n[vo]=null}(r[Xe],r);const i=s[Ne];null!==i&&i.detachView(s[Xe]),r[xn]=null,r[N2]=null,r[u1]&=-129}return r}function Nd(e,n){if(!(256&n[u1])){const t=n[y];n[da]&&Bh(n[da]),n[e0]&&Bh(n[e0]),t.destroyNode&&h4(e,n,t,3,null,null),function NC(e){let n=e[V];if(!n)return $d(e[Xe],e);for(;n;){let t=null;if(u2(n))t=n[V];else{const r=n[$n];r&&(t=r)}if(!t){for(;n&&!n[N2]&&n!==e;)u2(n)&&$d(n[Xe],n),n=n[xn];null===n&&(n=e),u2(n)&&$d(n[Xe],n),t=n&&n[N2]}n=t}}(n)}}function $d(e,n){if(!(256&n[u1])){n[u1]&=-129,n[u1]|=256,function qC(e,n){let t;if(null!=e&&null!=(t=e.destroyHooks))for(let r=0;r=0?r[i]():r[-i].unsubscribe(),s+=2}else t[s].call(r[t[s+1]]);null!==r&&(n[tl]=null);const o=n[Ko];if(null!==o){n[Ko]=null;for(let s=0;s-1){const{encapsulation:s}=e.data[r.directiveStart+o];if(s===M2.None||s===M2.Emulated)return null}return Fo(r,t)}}(e,n.parent,t)}function h0(e,n,t,r,o){e.insertBefore(n,t,r,o)}function s8(e,n,t){e.appendChild(n,t)}function i8(e,n,t,r,o){null!==r?h0(e,n,t,r,o):s8(e,n,t)}function w3(e,n){return e.parentNode(n)}function l8(e,n,t){return c8(e,n,t)}let Zd,_3,Yd,x3,c8=function a8(e,n,t){return 40&e.type?Fo(e,t):null};function C3(e,n,t,r){const o=Ud(e,r,n),s=n[y],l=l8(r.parent||n[vo],r,n);if(null!=o)if(Array.isArray(t))for(let a=0;ae,createScript:e=>e,createScriptURL:e=>e})}catch{}return _3}()?.createHTML(e)||e}function yc(){if(void 0!==Yd)return Yd;if(typeof document<"u")return document;throw new Ie(210,!1)}function f8(e){return function Xd(){if(void 0===x3&&(x3=null,ln.trustedTypes))try{x3=ln.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return x3}()?.createHTML(e)||e}class C8{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${R2})`}}function Ca(e){return e instanceof C8?e.changingThisBreaksApplicationSecurity:e}function u4(e,n){const t=function ak(e){return e instanceof C8&&e.getTypeName()||null}(e);if(null!=t&&t!==n){if("ResourceURL"===t&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${t} (see ${R2})`)}return t===n}class ck{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=" "+n;try{const t=(new window.DOMParser).parseFromString(Mc(n),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(n):(t.removeChild(t.firstChild),t)}catch{return null}}}class hk{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const t=this.inertDocument.createElement("template");return t.innerHTML=Mc(n),t}}const dk=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Kd(e){return(e=String(e)).match(dk)?e:"unsafe:"+e}function Il(e){const n={};for(const t of e.split(","))n[t]=!0;return n}function d4(...e){const n={};for(const t of e)for(const r in t)t.hasOwnProperty(r)&&(n[r]=!0);return n}const _8=Il("area,br,col,hr,img,wbr"),x8=Il("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),M8=Il("rp,rt"),Qd=d4(_8,d4(x8,Il("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),d4(M8,Il("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),d4(M8,x8)),Jd=Il("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),y8=d4(Jd,Il("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Il("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),pk=Il("script,style,template");class vk{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let t=n.firstChild,r=!0;for(;t;)if(t.nodeType===Node.ELEMENT_NODE?r=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,r&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let o=this.checkClobberedElement(t,t.nextSibling);if(o){t=o;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}startElement(n){const t=n.nodeName.toLowerCase();if(!Qd.hasOwnProperty(t))return this.sanitizedSomething=!0,!pk.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const r=n.attributes;for(let o=0;o"),!0}endElement(n){const t=n.nodeName.toLowerCase();Qd.hasOwnProperty(t)&&!_8.hasOwnProperty(t)&&(this.buf.push(""),this.buf.push(t),this.buf.push(">"))}chars(n){this.buf.push(H8(n))}checkClobberedElement(n,t){if(t&&(n.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return t}}const gk=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,fk=/([^\#-~ |!])/g;function H8(e){return e.replace(/&/g,"&").replace(gk,function(n){return""+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(fk,function(n){return""+n.charCodeAt(0)+";"}).replace(//g,">")}let M3;function tp(e){return"content"in e&&function wk(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Hc=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(Hc||{});function z8(e){const n=p4();return n?f8(n.sanitize(Hc.HTML,e)||""):u4(e,"HTML")?f8(Ca(e)):function mk(e,n){let t=null;try{M3=M3||function k8(e){const n=new hk(e);return function uk(){try{return!!(new window.DOMParser).parseFromString(Mc(""),"text/html")}catch{return!1}}()?new ck(n):n}(e);let r=n?String(n):"";t=M3.getInertBodyElement(r);let o=5,s=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,r=s,s=t.innerHTML,t=M3.getInertBodyElement(r)}while(r!==s);return Mc((new vk).sanitizeChildren(tp(t)||t))}finally{if(t){const r=tp(t)||t;for(;r.firstChild;)r.removeChild(r.firstChild)}}}(yc(),B1(e))}function ep(e){const n=p4();return n?n.sanitize(Hc.URL,e)||"":u4(e,"URL")?Ca(e):Kd(B1(e))}function p4(){const e=fe();return e&&e[f].sanitizer}const y3=new Me("ENVIRONMENT_INITIALIZER"),L8=new Me("INJECTOR",-1),V8=new Me("INJECTOR_DEF_TYPES");class rp{get(n,t=Ml){if(t===Ml){const r=new Error(`NullInjectorError: No provider for ${An(n)}!`);throw r.name="NullInjectorError",r}return t}}function Hk(...e){return{\u0275providers:zc(0,e),\u0275fromNgModule:!0}}function zc(e,...n){const t=[],r=new Set;let o;const s=i=>{t.push(i)};return Cc(n,i=>{const l=i;ka(l,s,[],r)&&(o||=[],o.push(l))}),void 0!==o&&v4(o,s),t}function v4(e,n){for(let t=0;t{n(s,r)})}}function ka(e,n,t,r){if(!(e=D1(e)))return!1;let o=null,s=oa(e);const i=!s&&br(e);if(s||i){if(i&&!i.standalone)return!1;o=e}else{const a=e.ngModule;if(s=oa(a),!s)return!1;o=a}const l=r.has(o);if(i){if(l)return!1;if(r.add(o),i.dependencies){const a="function"==typeof i.dependencies?i.dependencies():i.dependencies;for(const c of a)ka(c,n,t,r)}}else{if(!s)return!1;{if(null!=s.imports&&!l){let c;r.add(o);try{Cc(s.imports,h=>{ka(h,n,t,r)&&(c||=[],c.push(h))})}finally{}void 0!==c&&v4(c,n)}if(!l){const c=Ce(o)||(()=>new o);n({provide:o,useFactory:c,deps:zr},o),n({provide:V8,useValue:o,multi:!0},o),n({provide:y3,useValue:()=>gt(o),multi:!0},o)}const a=s.providers;if(null!=a&&!l){const c=e;H3(a,h=>{n(h,c)})}}}return o!==e&&void 0!==e.providers}function H3(e,n){for(let t of e)ea(t)&&(t=t.\u0275providers),Array.isArray(t)?H3(t,n):n(t)}const S8=ir({provide:String,useValue:ir});function z3(e){return null!==e&&"object"==typeof e&&S8 in e}function k(e){return"function"==typeof e}const H=new Me("Set Injector scope."),B={},q={};let jt;function se(){return void 0===jt&&(jt=new rp),jt}class He{}class y1 extends He{get destroyed(){return this._destroyed}constructor(n,t,r,o){super(),this.parent=t,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,xi(n,i=>this.processProvider(i)),this.records.set(L8,hn(void 0,this)),o.has("environment")&&this.records.set(He,hn(void 0,this));const s=this.records.get(H);null!=s&&"string"==typeof s.value&&this.scopes.add(s.value),this.injectorDefTypes=new Set(this.get(V8.multi,zr,mr.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();const n=this._onDestroyHooks;this._onDestroyHooks=[];for(const t of n)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const t=O2(this),r=Xo(void 0);try{return n()}finally{O2(t),Xo(r)}}get(n,t=Ml,r=mr.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(G0))return n[G0](this);r=F1(r);const s=O2(this),i=Xo(void 0);try{if(!(r&mr.SkipSelf)){let a=this.records.get(n);if(void 0===a){const c=function Ds(e){return"function"==typeof e||"object"==typeof e&&e instanceof Me}(n)&&na(n);a=c&&this.injectableDefInScope(c)?hn(q1(n),B):null,this.records.set(n,a)}if(null!=a)return this.hydrate(n,a)}return(r&mr.Self?se():this.parent).get(n,t=r&mr.Optional&&t===Ml?null:t)}catch(l){if("NullInjectorError"===l.name){if((l[aa]=l[aa]||[]).unshift(An(n)),s)throw l;return function B5(e,n,t,r){const o=e[aa];throw n[F2]&&o.unshift(n[F2]),e.message=function q0(e,n,t,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let o=An(n);if(Array.isArray(n))o=n.map(An).join(" -> ");else if("object"==typeof n){let s=[];for(let i in n)if(n.hasOwnProperty(i)){let l=n[i];s.push(i+":"+("string"==typeof l?JSON.stringify(l):An(l)))}o=`{${s.join(", ")}}`}return`${t}${r?"("+r+")":""}[${o}]: ${e.replace(Fe,"\n ")}`}("\n"+e.message,o,t,r),e.ngTokenPath=o,e[aa]=null,e}(l,n,"R3InjectorError",this.source)}throw l}finally{Xo(i),O2(s)}}resolveInjectorInitializers(){const n=O2(this),t=Xo(void 0);try{const o=this.get(y3.multi,zr,mr.Self);for(const s of o)s()}finally{O2(n),Xo(t)}}toString(){const n=[],t=this.records;for(const r of t.keys())n.push(An(r));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Ie(205,!1)}processProvider(n){let t=k(n=D1(n))?n:D1(n&&n.provide);const r=function Ke(e){return z3(e)?hn(void 0,e.useValue):hn(cn(e),B)}(n);if(k(n)||!0!==n.multi)this.records.get(t);else{let o=this.records.get(t);o||(o=hn(void 0,B,!0),o.factory=()=>Fr(o.multi),this.records.set(t,o)),t=n,o.multi.push(n)}this.records.set(t,r)}hydrate(n,t){return t.value===B&&(t.value=q,t.value=t.factory()),"object"==typeof t.value&&t.value&&function p2(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}injectableDefInScope(n){if(!n.providedIn)return!1;const t=D1(n.providedIn);return"string"==typeof t?"any"===t||this.scopes.has(t):this.injectorDefTypes.has(t)}removeOnDestroy(n){const t=this._onDestroyHooks.indexOf(n);-1!==t&&this._onDestroyHooks.splice(t,1)}}function q1(e){const n=na(e),t=null!==n?n.factory:Ce(e);if(null!==t)return t;if(e instanceof Me)throw new Ie(204,!1);if(e instanceof Function)return function tr(e){const n=e.length;if(n>0)throw o4(n,"?"),new Ie(204,!1);const t=function R0(e){return e&&(e[sa]||e[F0])||null}(e);return null!==t?()=>t.factory(e):()=>new e}(e);throw new Ie(204,!1)}function cn(e,n,t){let r;if(k(e)){const o=D1(e);return Ce(o)||q1(o)}if(z3(e))r=()=>D1(e.useValue);else if(function C(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...Fr(e.deps||[]));else if(function g(e){return!(!e||!e.useExisting)}(e))r=()=>gt(D1(e.useExisting));else{const o=D1(e&&(e.useClass||e.provide));if(!function so(e){return!!e.deps}(e))return Ce(o)||q1(o);r=()=>new o(...Fr(e.deps))}return r}function hn(e,n,t=!1){return{factory:e,value:n,multi:t?[]:void 0}}function xi(e,n){for(const t of e)Array.isArray(t)?xi(t,n):t&&ea(t)?xi(t.\u0275providers,n):n(t)}const Bs=new Me("AppId",{providedIn:"root",factory:()=>ol}),ol="ng",Mi=new Me("Platform Initializer"),un=new Me("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),yi=new Me("AnimationModuleType"),li=new Me("CSP nonce",{providedIn:"root",factory:()=>yc().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let op=(e,n,t)=>null;function A8(e,n,t=!1){return op(e,n,t)}class XD{}class Vk{}class QD{resolveComponentFactory(n){throw function KD(e){const n=Error(`No component factory found for ${An(e)}.`);return n.ngComponent=e,n}(n)}}let m4=(()=>{class e{static#t=this.NULL=new QD}return e})();function JD(){return w4(x1(),fe())}function w4(e,n){return new Br(Fo(e,n))}let Br=(()=>{class e{constructor(t){this.nativeElement=t}static#t=this.__NG_ELEMENT_ID__=JD}return e})();function tB(e){return e instanceof Br?e.nativeElement:e}class Ak{}let Ol=(()=>{class e{constructor(){this.destroyNode=null}static#t=this.__NG_ELEMENT_ID__=()=>function eB(){const e=fe(),t=U2(x1().index,e);return(u2(t)?t:e)[y]}()}return e})(),rB=(()=>{class e{static#t=this.\u0275prov=xe({token:e,providedIn:"root",factory:()=>null})}return e})();class C4{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const nB=new C4("16.2.12"),T8={};function Ek(e,n=null,t=null,r){const o=jk(e,n,t,r);return o.resolveInjectorInitializers(),o}function jk(e,n=null,t=null,r,o=new Set){const s=[t||zr,Hk(e)];return r=r||("object"==typeof e?void 0:An(e)),new y1(s,n||se(),r||null,o)}let v2=(()=>{class e{static#t=this.THROW_IF_NOT_FOUND=Ml;static#e=this.NULL=new rp;static create(t,r){if(Array.isArray(t))return Ek({name:""},r,t,"");{const o=t.name??"";return Ek({name:o},t.parent,t.providers,o)}}static#r=this.\u0275prov=xe({token:e,providedIn:"any",factory:()=>gt(L8)});static#n=this.__NG_ELEMENT_ID__=-1}return e})();function j8(e){return e.ngOriginalError}class _a{constructor(){this._console=console}handleError(n){const t=this._findOriginalError(n);this._console.error("ERROR",n),t&&this._console.error("ORIGINAL ERROR",t)}_findOriginalError(n){let t=n&&j8(n);for(;t&&j8(t);)t=j8(t);return t||null}}function P8(e){return n=>{setTimeout(e,void 0,n)}}const _e=class dB extends Dt{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,t,r){let o=n,s=t||(()=>null),i=r;if(n&&"object"==typeof n){const a=n;o=a.next?.bind(a),s=a.error?.bind(a),i=a.complete?.bind(a)}this.__isAsync&&(s=P8(s),o&&(o=P8(o)),i&&(i=P8(i)));const l=super.subscribe({next:o,error:s,complete:i});return n instanceof zt&&n.add(l),l}};function Ik(...e){}class _r{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new _e(!1),this.onMicrotaskEmpty=new _e(!1),this.onStable=new _e(!1),this.onError=new _e(!1),typeof Zone>"u")throw new Ie(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&t,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function pB(){const e="function"==typeof ln.requestAnimationFrame;let n=ln[e?"requestAnimationFrame":"setTimeout"],t=ln[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&n&&t){const r=n[Zone.__symbol__("OriginalDelegate")];r&&(n=r);const o=t[Zone.__symbol__("OriginalDelegate")];o&&(t=o)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function fB(e){const n=()=>{!function gB(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(ln,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,R8(e),e.isCheckStableRunning=!0,I8(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),R8(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,r,o,s,i,l)=>{if(function wB(e){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0].data?.__ignore_ng_zone__}(l))return t.invokeTask(o,s,i,l);try{return Rk(e),t.invokeTask(o,s,i,l)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||e.shouldCoalesceRunChangeDetection)&&n(),Fk(e)}},onInvoke:(t,r,o,s,i,l,a)=>{try{return Rk(e),t.invoke(o,s,i,l,a)}finally{e.shouldCoalesceRunChangeDetection&&n(),Fk(e)}},onHasTask:(t,r,o,s)=>{t.hasTask(o,s),r===o&&("microTask"==s.change?(e._hasPendingMicrotasks=s.microTask,R8(e),I8(e)):"macroTask"==s.change&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(t,r,o,s)=>(t.handleError(o,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!_r.isInAngularZone())throw new Ie(909,!1)}static assertNotInAngularZone(){if(_r.isInAngularZone())throw new Ie(909,!1)}run(n,t,r){return this._inner.run(n,t,r)}runTask(n,t,r,o){const s=this._inner,i=s.scheduleEventTask("NgZoneEvent: "+o,n,vB,Ik,Ik);try{return s.runTask(i,t,r)}finally{s.cancelTask(i)}}runGuarded(n,t,r){return this._inner.runGuarded(n,t,r)}runOutsideAngular(n){return this._outer.run(n)}}const vB={};function I8(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function R8(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Rk(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Fk(e){e._nesting--,I8(e)}class mB{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new _e,this.onMicrotaskEmpty=new _e,this.onStable=new _e,this.onError=new _e}run(n,t,r){return n.apply(t,r)}runGuarded(n,t,r){return n.apply(t,r)}runOutsideAngular(n){return n()}runTask(n,t,r,o){return n.apply(t,r)}}const Ok=new Me("",{providedIn:"root",factory:Nk});function Nk(){const e=g1(_r);let n=!0;return cs(new J(o=>{n=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{o.next(n),o.complete()})}),new J(o=>{let s;e.runOutsideAngular(()=>{s=e.onStable.subscribe(()=>{_r.assertNotInAngularZone(),queueMicrotask(()=>{!n&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(n=!0,o.next(!0))})})});const i=e.onUnstable.subscribe(()=>{_r.assertInAngularZone(),n&&(n=!1,e.runOutsideAngular(()=>{o.next(!1)}))});return()=>{s.unsubscribe(),i.unsubscribe()}}).pipe(Gi()))}function ap(e){return e.ownerDocument.defaultView}let F8=(()=>{class e{constructor(){this.renderDepth=0,this.handler=null}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){this.renderDepth--,0===this.renderDepth&&this.handler?.execute()}ngOnDestroy(){this.handler?.destroy(),this.handler=null}static#t=this.\u0275prov=xe({token:e,providedIn:"root",factory:()=>new e})}return e})();function L3(e){for(;e;){e[u1]|=64;const n=a4(e);if(R5(e)&&!n)return e;e=n}return null}const Wk=new Me("",{providedIn:"root",factory:()=>!1});let hp=null;function Kk(e,n){return e[n]??t_()}function Qk(e,n){const t=t_();t.producerNode?.length&&(e[n]=hp,t.lView=e,hp=Jk())}const bB={...ds,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{L3(e.lView)},lView:null};function Jk(){return Object.create(bB)}function t_(){return hp??=Jk(),hp}const or={};function St(e){e_(n1(),fe(),Z2()+e,!1)}function e_(e,n,t,r){if(!r)if(3==(3&n[u1])){const s=e.preOrderCheckHooks;null!==s&&Jh(n,s,t)}else{const s=e.preOrderHooks;null!==s&&t3(n,s,0,t)}o0(t)}function vt(e,n=mr.Default){const t=fe();return null===t?gt(e,n):z7(x1(),t,D1(e),n)}function up(){throw new Error("invalid")}function dp(e,n,t,r,o,s,i,l,a,c,h){const u=n.blueprint.slice();return u[Jr]=o,u[u1]=140|r,(null!==c||e&&2048&e[u1])&&(u[u1]|=2048),T(u),u[xn]=u[Z]=e,u[z1]=t,u[f]=i||e&&e[f],u[y]=l||e&&e[y],u[hs]=a||e&&e[hs]||null,u[vo]=s,u[Lr]=function bC(){return zC++}(),u[Js]=h,u[us]=c,u[ot]=2==n.type?e[ot]:u,u}function x4(e,n,t,r,o){let s=e.data[n];if(null===s)s=function O8(e,n,t,r,o){const s=ar(),i=Sr(),a=e.data[n]=function EB(e,n,t,r,o,s){let i=n?n.injectorIndex:-1,l=0;return G1()&&(l|=128),{type:t,index:r,insertBeforeIndex:null,injectorIndex:i,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:l,providerIndexes:0,value:o,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,i?s:s&&s.parent,t,n,r,o);return null===e.firstChild&&(e.firstChild=a),null!==s&&(i?null==s.child&&null!==a.parent&&(s.child=a):null===s.next&&(s.next=a,a.prev=s)),a}(e,n,t,r,o),function jl(){return kt.lFrame.inI18n}()&&(s.flags|=32);else if(64&s.type){s.type=t,s.value=r,s.attrs=o;const i=function Kn(){const e=kt.lFrame,n=e.currentTNode;return e.isParent?n:n.parent}();s.injectorIndex=null===i?-1:i.injectorIndex}return Dr(s,!0),s}function V3(e,n,t,r){if(0===t)return-1;const o=n.length;for(let s=0;swr&&e_(e,n,wr,!1),ri(l?2:0,o);const c=l?s:null,h=O5(c);try{null!==c&&(c.dirty=!1),t(r,o)}finally{N5(c,h)}}finally{l&&null===n[da]&&Qk(n,da),o0(i),ri(l?3:1,o)}}function N8(e,n,t){if(I5(n)){const r=H2(null);try{const s=n.directiveEnd;for(let i=n.directiveStart;inull;function s_(e,n,t,r){for(let o in e)if(e.hasOwnProperty(o)){t=null===t?{}:t;const s=e[o];null===r?i_(t,n,o,s):r.hasOwnProperty(o)&&i_(t,n,r[o],s)}return t}function i_(e,n,t,r){e.hasOwnProperty(t)?e[t].push(n,r):e[t]=[n,r]}function ai(e,n,t,r,o,s,i,l){const a=Fo(n,t);let h,c=n.inputs;!l&&null!=c&&(h=c[r])?(X8(e,t,h,r,o),Dl(n)&&function IB(e,n){const t=U2(n,e);16&t[u1]||(t[u1]|=64)}(t,n.index)):3&n.type&&(r=function PB(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),o=null!=i?i(o,n.value||"",r):o,s.setProperty(a,r,o))}function q8(e,n,t,r){if(o1()){const o=null===r?null:{"":-1},s=function UB(e,n){const t=e.directiveRegistry;let r=null,o=null;if(t)for(let s=0;s0;){const t=e[--n];if("number"==typeof t&&t<0)return t}return 0})(i)!=l&&i.push(l),i.push(t,r,s)}}(e,n,r,V3(e,t,o.hostVars,or),o)}function Nl(e,n,t,r,o,s){const i=Fo(e,n);!function G8(e,n,t,r,o,s,i){if(null==s)e.removeAttribute(n,o,t);else{const l=null==i?B1(s):i(s,r||"",o);e.setAttribute(n,o,l,t)}}(n[y],i,s,e.value,t,r,o)}function XB(e,n,t,r,o,s){const i=s[n];if(null!==i)for(let l=0;l{class e{constructor(){this.all=new Set,this.queue=new Map}create(t,r,o){const s=typeof Zone>"u"?null:Zone.current,i=function md(e,n,t){const r=Object.create(_i);t&&(r.consumerAllowSignalWrites=!0),r.fn=e,r.schedule=n;const o=i=>{r.cleanupFn=i};return r.ref={notify:()=>Ah(r),run:()=>{if(r.dirty=!1,r.hasRun&&!Dh(r))return;r.hasRun=!0;const i=O5(r);try{r.cleanupFn(),r.cleanupFn=q5,r.fn(o)}finally{N5(r,i)}},cleanup:()=>r.cleanupFn()},r.ref}(t,c=>{this.all.has(c)&&this.queue.set(c,s)},o);let l;this.all.add(i),i.notify();const a=()=>{i.cleanup(),l?.(),this.all.delete(i),this.queue.delete(i)};return l=r?.onDestroy(a),{destroy:a}}flush(){if(0!==this.queue.size)for(const[t,r]of this.queue)this.queue.delete(t),r?r.run(()=>t.run()):t.run()}get isQueueEmpty(){return 0===this.queue.size}static#t=this.\u0275prov=xe({token:e,providedIn:"root",factory:()=>new e})}return e})();function vp(e,n,t){let r=t?e.styles:null,o=t?e.classes:null,s=0;if(null!==n)for(let i=0;i0){C_(e,1);const o=t.components;null!==o&&__(e,o,1)}}function __(e,n,t){for(let r=0;r-1&&(m3(n,r),l3(t,r))}this._attachedToViewContainer=!1}Nd(this._lView[Xe],this._lView)}onDestroy(n){!function dt(e,n){if(256==(256&e[u1]))throw new Ie(911,!1);null===e[Ko]&&(e[Ko]=[]),e[Ko].push(n)}(this._lView,n)}markForCheck(){L3(this._cdRefInjectingView||this._lView)}detach(){this._lView[u1]&=-129}reattach(){this._lView[u1]|=128}detectChanges(){gp(this._lView[Xe],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Ie(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function OC(e,n){h4(e,n,n[y],2,null,null)}(this._lView[Xe],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new Ie(902,!1);this._appRef=n}}class sT extends A3{constructor(n){super(n),this._view=n}detectChanges(){const n=this._view;gp(n[Xe],n,n[z1],!1)}checkNoChanges(){}get context(){return null}}class x_ extends m4{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const t=br(n);return new D3(t,this.ngModule)}}function M_(e){const n=[];for(let t in e)e.hasOwnProperty(t)&&n.push({propName:e[t],templateName:t});return n}class lT{constructor(n,t){this.injector=n,this.parentInjector=t}get(n,t,r){r=F1(r);const o=this.injector.get(n,T8,r);return o!==T8||t===T8?o:this.parentInjector.get(n,t,r)}}class D3 extends Vk{get inputs(){const n=this.componentDef,t=n.inputTransforms,r=M_(n.inputs);if(null!==t)for(const o of r)t.hasOwnProperty(o.propName)&&(o.transform=t[o.propName]);return r}get outputs(){return M_(this.componentDef.outputs)}constructor(n,t){super(),this.componentDef=n,this.ngModule=t,this.componentType=n.type,this.selector=function ec(e){return e.map(tc).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!t}create(n,t,r,o){let s=(o=o||this.ngModule)instanceof He?o:o?.injector;s&&null!==this.componentDef.getStandaloneInjector&&(s=this.componentDef.getStandaloneInjector(s)||s);const i=s?new lT(n,s):n,l=i.get(Ak,null);if(null===l)throw new Ie(407,!1);const u={rendererFactory:l,sanitizer:i.get(rB,null),effectManager:i.get(f_,null),afterRenderEventManager:i.get(F8,null)},d=l.createRenderer(null,this.componentDef),v=this.componentDef.selectors[0][0]||"div",m=r?function SB(e,n,t,r){const s=r.get(Wk,!1)||t===M2.ShadowDom,i=e.selectRootElement(n,s);return function AB(e){o_(e)}(i),i}(d,r,this.componentDef.encapsulation,i):f3(d,v,function iT(e){const n=e.toLowerCase();return"svg"===n?Gh:"math"===n?"math":null}(v)),j=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let N=null;null!==m&&(N=A8(m,i,!0));const Ft=Z8(0,null,null,1,0,null,null,null,null,null,null),Ot=dp(null,Ft,null,j,null,null,u,d,i,null,N);let $t,mt;xd(Ot);try{const De=this.componentDef;let me,Ve=null;De.findHostDirectiveDefs?(me=[],Ve=new Map,De.findHostDirectiveDefs(De,me,Ve),me.push(De)):me=[De];const Te=function cT(e,n){const t=e[Xe],r=wr;return e[r]=n,x4(t,r,2,"#host",null)}(Ot,m),Pe=function hT(e,n,t,r,o,s,i){const l=o[Xe];!function uT(e,n,t,r){for(const o of e)n.mergedAttrs=mi(n.mergedAttrs,o.hostAttrs);null!==n.mergedAttrs&&(vp(n,n.mergedAttrs,!0),null!==t&&g8(r,t,n))}(r,e,n,i);let a=null;null!==n&&(a=A8(n,o[hs]));const c=s.rendererFactory.createRenderer(n,t);let h=16;t.signals?h=4096:t.onPush&&(h=64);const u=dp(o,n_(t),null,h,o[e.index],e,s,c,null,null,a);return l.firstCreatePass&&W8(l,e,r.length-1),pp(o,u),o[e.index]=u}(Te,m,De,me,Ot,u,d);mt=K5(Ft,wr),m&&function pT(e,n,t,r){if(r)zl(e,t,["ng-version",nB.full]);else{const{attrs:o,classes:s}=function rc(e){const n=[],t=[];let r=1,o=2;for(;r0&&v8(e,t,s.join(" "))}}(d,De,m,r),void 0!==t&&function vT(e,n,t){const r=e.projection=[];for(let o=0;o=0;r--){const o=e[r];o.hostVars=n+=o.hostVars,o.hostAttrs=mi(o.hostAttrs,t=mi(t,o.hostAttrs))}}(r)}function fp(e){return e===y2?{}:e===zr?[]:e}function mT(e,n){const t=e.viewQuery;e.viewQuery=t?(r,o)=>{n(r,o),t(r,o)}:n}function wT(e,n){const t=e.contentQueries;e.contentQueries=t?(r,o,s)=>{n(r,o,s),t(r,o,s)}:n}function CT(e,n){const t=e.hostBindings;e.hostBindings=t?(r,o)=>{n(r,o),t(r,o)}:n}function mp(e){return!!Q8(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function Q8(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function $l(e,n,t){return e[n]=t}function G2(e,n,t){return!Object.is(e[n],t)&&(e[n]=t,!0)}function bc(e,n,t,r){const o=G2(e,n,t);return G2(e,n+1,r)||o}function Y1(e,n,t,r){const o=fe();return G2(o,As(),n)&&(n1(),Nl(Qn(),o,e,n,t,r)),Y1}function y4(e,n,t,r){return G2(e,As(),t)?n+B1(t)+r:or}function Ze(e,n,t,r,o,s,i,l){const a=fe(),c=n1(),h=e+wr,u=c.firstCreatePass?function ZT(e,n,t,r,o,s,i,l,a){const c=n.consts,h=x4(n,e,4,i||null,b(c,l));q8(n,t,h,b(c,a)),Qh(n,h);const u=h.tView=Z8(2,h,r,o,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,c,null);return null!==n.queries&&(n.queries.template(n,h),u.queries=n.queries.embeddedTView(h)),h}(h,c,a,n,t,r,o,s,i):c.data[h];Dr(u,!1);const d=F_(c,a,u,e);Kh()&&C3(c,a,d,u),z2(d,a),pp(a,a[h]=h_(d,a,d,u)),lc(u)&&$8(c,a,u),null!=i&&U8(a,u,l)}let F_=function O_(e,n,t,r){return ma(!0),n[y].createComment("")};function Jo(e){return Tl(function tn(){return kt.lFrame.contextLView}(),wr+e)}function xt(e,n,t){const r=fe();return G2(r,As(),n)&&ai(n1(),Qn(),r,e,n,r[y],t,!1),xt}function ov(e,n,t,r,o){const i=o?"class":"style";X8(e,t,n.inputs[i],i,r)}function yt(e,n,t,r){const o=fe(),s=n1(),i=wr+e,l=o[y],a=s.firstCreatePass?function YT(e,n,t,r,o,s){const i=n.consts,a=x4(n,e,2,r,b(i,o));return q8(n,t,a,b(i,s)),null!==a.attrs&&vp(a,a.attrs,!1),null!==a.mergedAttrs&&vp(a,a.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,a),a}(i,s,o,n,t,r):s.data[i],c=N_(s,o,a,l,n,e);o[i]=c;const h=lc(a);return Dr(a,!0),g8(l,c,a),32!=(32&a.flags)&&Kh()&&C3(s,o,c,a),0===function Je(){return kt.lFrame.elementDepthCount}()&&z2(c,o),function Be(){kt.lFrame.elementDepthCount++}(),h&&($8(s,o,a),N8(s,a,o)),null!==r&&U8(o,a),yt}function Vt(){let e=x1();Sr()?Ur():(e=e.parent,Dr(e,!1));const n=e;(function Cr(e){return kt.skipHydrationRootTNode===e})(n)&&function Vo(){kt.skipHydrationRootTNode=null}(),function c1(){kt.lFrame.elementDepthCount--}();const t=n1();return t.firstCreatePass&&(Qh(t,e),I5(e)&&t.queries.elementEnd(e)),null!=n.classesWithoutHost&&function Fw(e){return 0!=(8&e.flags)}(n)&&ov(t,n,fe(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function Ow(e){return 0!=(16&e.flags)}(n)&&ov(t,n,fe(),n.stylesWithoutHost,!1),Vt}function rr(e,n,t,r){return yt(e,n,t,r),Vt(),rr}let N_=(e,n,t,r,o,s)=>(ma(!0),f3(r,o,function m7(){return kt.lFrame.currentNamespace}()));function xp(e,n,t){const r=fe(),o=n1(),s=e+wr,i=o.firstCreatePass?function QT(e,n,t,r,o){const s=n.consts,i=b(s,r),l=x4(n,e,8,"ng-container",i);return null!==i&&vp(l,i,!0),q8(n,t,l,b(s,o)),null!==n.queries&&n.queries.elementStart(n,l),l}(s,o,r,n,t):o.data[s];Dr(i,!0);const l=$_(o,r,i,e);return r[s]=l,Kh()&&C3(o,r,l,i),z2(l,r),lc(i)&&($8(o,r,i),N8(o,i,r)),null!=t&&U8(r,i),xp}function Mp(){let e=x1();const n=n1();return Sr()?Ur():(e=e.parent,Dr(e,!1)),n.firstCreatePass&&(Qh(n,e),I5(e)&&n.queries.elementEnd(e)),Mp}function u0(e,n,t){return xp(e,n,t),Mp(),u0}let $_=(e,n,t,r)=>(ma(!0),Od(n[y],""));function V1(){return fe()}function yp(e){return!!e&&"function"==typeof e.then}function U_(e){return!!e&&"function"==typeof e.subscribe}function ie(e,n,t,r){const o=fe(),s=n1(),i=x1();return Z_(s,o,o[y],i,e,n,r),ie}function sv(e,n){const t=x1(),r=fe(),o=n1();return Z_(o,r,v_(kd(o.data),t,r),t,e,n),sv}function Z_(e,n,t,r,o,s,i){const l=lc(r),c=e.firstCreatePass&&p_(e),h=n[z1],u=d_(n);let d=!0;if(3&r.type||i){const L=Fo(r,n),S=i?i(L):L,j=u.length,N=i?Ot=>i(mn(Ot[r.index])):r.index;let Ft=null;if(!i&&l&&(Ft=function eE(e,n,t,r){const o=e.cleanup;if(null!=o)for(let s=0;sa?l[a]:null}"string"==typeof i&&(s+=2)}return null}(e,n,o,r.index)),null!==Ft)(Ft.__ngLastListenerFn__||Ft).__ngNextListenerFn__=s,Ft.__ngLastListenerFn__=s,d=!1;else{s=W_(r,n,h,s,!1);const Ot=t.listen(S,o,s);u.push(s,Ot),c&&c.push(o,N,j,j+1)}}else s=W_(r,n,h,s,!1);const v=r.outputs;let m;if(d&&null!==v&&(m=v[o])){const L=m.length;if(L)for(let S=0;S-1?U2(e.index,n):n);let a=q_(n,t,r,i),c=s.__ngNextListenerFn__;for(;c;)a=q_(n,t,c,i)&&a,c=c.__ngNextListenerFn__;return o&&!1===a&&i.preventDefault(),a}}function Zt(e=1){return function Bw(e){return(kt.lFrame.contextLView=function Tw(e,n){for(;e>0;)n=n[Z],e--;return n}(e,kt.lFrame.contextLView))[z1]}(e)}function rE(e,n){let t=null;const r=function Qa(e){const n=e.attrs;if(null!=n){const t=n.indexOf(5);if(!(1&t))return n[t+1]}return null}(e);for(let o=0;o>17&32767}function iv(e){return 2|e}function Lc(e){return(131068&e)>>2}function lv(e,n){return-131069&e|n<<2}function av(e){return 1|e}function rx(e,n,t,r,o){const s=e[t+1],i=null===n;let l=r?d0(s):Lc(s),a=!1;for(;0!==l&&(!1===a||i);){const h=e[l+1];aE(e[l],n)&&(a=!0,e[l+1]=r?av(h):iv(h)),l=r?d0(h):Lc(h)}a&&(e[t+1]=r?iv(s):av(s))}function aE(e,n){return null===e||null==n||(Array.isArray(e)?e[1]:e)===n||!(!Array.isArray(e)||"string"!=typeof n)&&si(e,n)>=0}const t2={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function nx(e){return e.substring(t2.key,t2.keyEnd)}function ox(e,n){const t=t2.textEnd;return t===n?-1:(n=t2.keyEnd=function dE(e,n,t){for(;n32;)n++;return n}(e,t2.key=n,t),D4(e,n,t))}function D4(e,n,t){for(;n=0;t=ox(n,t))Re(e,nx(n),!0)}function ll(e,n,t,r){const o=fe(),s=n1(),i=No(2);s.firstUpdatePass&&hx(s,e,i,r),n!==or&&G2(o,i,n)&&dx(s,s.data[Z2()],o,o[y],e,o[i+1]=function ME(e,n){return null==e||""===e||("string"==typeof n?e+=n:"object"==typeof e&&(e=An(Ca(e)))),e}(n,t),r,i)}function al(e,n,t,r){const o=n1(),s=No(2);o.firstUpdatePass&&hx(o,null,s,r);const i=fe();if(t!==or&&G2(i,s,t)){const l=o.data[Z2()];if(vx(l,r)&&!cx(o,s)){let a=r?l.classesWithoutHost:l.stylesWithoutHost;null!==a&&(t=ta(a,t||"")),ov(o,l,i,t,r)}else!function xE(e,n,t,r,o,s,i,l){o===or&&(o=zr);let a=0,c=0,h=0=e.expandoStartIndex}function hx(e,n,t,r){const o=e.data;if(null===o[t+1]){const s=o[Z2()],i=cx(e,t);vx(s,r)&&null===n&&!i&&(n=!1),n=function fE(e,n,t,r){const o=kd(e);let s=r?n.residualClasses:n.residualStyles;if(null===o)0===(r?n.classBindings:n.styleBindings)&&(t=P3(t=cv(null,e,n,t,r),n.attrs,r),s=null);else{const i=n.directiveStylingLast;if(-1===i||e[i]!==o)if(t=cv(o,e,n,t,r),null===s){let a=function mE(e,n,t){const r=t?n.classBindings:n.styleBindings;if(0!==Lc(r))return e[d0(r)]}(e,n,r);void 0!==a&&Array.isArray(a)&&(a=cv(null,e,n,a[1],r),a=P3(a,n.attrs,r),function wE(e,n,t,r){e[d0(t?n.classBindings:n.styleBindings)]=r}(e,n,r,a))}else s=function CE(e,n,t){let r;const o=n.directiveEnd;for(let s=1+n.directiveStylingLast;s0)&&(c=!0)):h=t,o)if(0!==a){const d=d0(e[l+1]);e[r+1]=bp(d,l),0!==d&&(e[d+1]=lv(e[d+1],r)),e[l+1]=function oE(e,n){return 131071&e|n<<17}(e[l+1],r)}else e[r+1]=bp(l,0),0!==l&&(e[l+1]=lv(e[l+1],r)),l=r;else e[r+1]=bp(a,0),0===l?l=r:e[a+1]=lv(e[a+1],r),a=r;c&&(e[r+1]=iv(e[r+1])),rx(e,h,r,!0),rx(e,h,r,!1),function lE(e,n,t,r,o){const s=o?e.residualClasses:e.residualStyles;null!=s&&"string"==typeof n&&si(s,n)>=0&&(t[r+1]=av(t[r+1]))}(n,h,e,r,s),i=bp(l,a),s?n.classBindings=i:n.styleBindings=i}(o,s,n,t,i,r)}}function cv(e,n,t,r,o){let s=null;const i=t.directiveEnd;let l=t.directiveStylingLast;for(-1===l?l=t.directiveStart:l++;l0;){const a=e[o],c=Array.isArray(a),h=c?a[1]:a,u=null===h;let d=t[o+1];d===or&&(d=u?zr:void 0);let v=u?oi(d,r):h===r?d:void 0;if(c&&!Vp(v)&&(v=oi(a,r)),Vp(v)&&(l=v,i))return l;const m=e[o+1];o=i?d0(m):Lc(m)}if(null!==n){let a=s?n.residualClasses:n.residualStyles;null!=a&&(l=oi(a,r))}return l}function Vp(e){return void 0!==e}function vx(e,n){return 0!=(e.flags&(n?8:16))}function xr(e,n=""){const t=fe(),r=n1(),o=e+wr,s=r.firstCreatePass?x4(r,o,1,n,null):r.data[o],i=gx(r,t,s,n,e);t[o]=i,Kh()&&C3(r,t,i,s),Dr(s,!1)}let gx=(e,n,t,r,o)=>(ma(!0),function g3(e,n){return e.createText(n)}(n[y],r));function js(e){return wo("",e,""),js}function wo(e,n,t){const r=fe(),o=y4(r,e,n,t);return o!==or&&function Ma(e,n,t){const r=dc(n,e);!function r8(e,n,t){e.setValue(n,t)}(e[y],r,t)}(r,Z2(),o),wo}function B4(e,n,t){const r=fe();return G2(r,As(),n)&&ai(n1(),Qn(),r,e,n,r[y],t,!0),B4}function hv(e,n,t){const r=fe();if(G2(r,As(),n)){const s=n1(),i=Qn();ai(s,i,r,e,n,v_(kd(s.data),i,r),t,!0)}return hv}const E4="en-US";let jx=E4;function pv(e,n,t,r,o){if(e=D1(e),Array.isArray(e))for(let s=0;s>20;if(k(e)||!e.multi){const v=new J5(c,o,vt),m=gv(a,n,o?h:h+d,u);-1===m?(Vd(r3(l,i),s,a),vv(s,e,n.length),n.push(a),l.directiveStart++,l.directiveEnd++,o&&(l.providerIndexes+=1048576),t.push(v),i.push(v)):(t[m]=v,i[m]=v)}else{const v=gv(a,n,h+d,u),m=gv(a,n,h,h+d),S=m>=0&&t[m];if(o&&!S||!o&&!(v>=0&&t[v])){Vd(r3(l,i),s,a);const j=function $j(e,n,t,r,o){const s=new J5(e,t,vt);return s.multi=[],s.index=n,s.componentProviders=0,lM(s,o,r&&!t),s}(o?Nj:Oj,t.length,o,r,c);!o&&S&&(t[m].providerFactory=j),vv(s,e,n.length,0),n.push(a),l.directiveStart++,l.directiveEnd++,o&&(l.providerIndexes+=1048576),t.push(j),i.push(j)}else vv(s,e,v>-1?v:m,lM(t[o?m:v],c,!o&&r));!o&&r&&S&&t[m].componentProviders++}}}function vv(e,n,t,r){const o=k(n),s=function _(e){return!!e.useClass}(n);if(o||s){const a=(s?D1(n.useClass):n).prototype.ngOnDestroy;if(a){const c=e.destroyHooks||(e.destroyHooks=[]);if(!o&&n.multi){const h=c.indexOf(t);-1===h?c.push(t,[r,a]):c[h+1].push(r,a)}else c.push(t,a)}}}function lM(e,n,t){return t&&e.componentProviders++,e.multi.push(n)-1}function gv(e,n,t,r){for(let o=t;o{t.providersResolver=(r,o)=>function Fj(e,n,t){const r=n1();if(r.firstCreatePass){const o=Ss(e);pv(t,r.data,r.blueprint,o,!0),pv(n,r.data,r.blueprint,o,!1)}}(r,o?o(e):e,n)}}class Sc{}class Uj{}class mv extends Sc{constructor(n,t,r){super(),this._parent=t,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new x_(this);const o=function h2(e,n){const t=e[W0]||null;if(!t&&!0===n)throw new Error(`Type ${An(e)} does not have '\u0275mod' property.`);return t}(n);this._bootstrapComponents=function xa(e){return e instanceof Function?e():e}(o.bootstrap),this._r3Injector=jk(n,t,[{provide:Sc,useValue:this},{provide:m4,useValue:this.componentFactoryResolver},...r],An(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class wv extends Uj{constructor(n){super(),this.moduleType=n}create(n){return new mv(this.moduleType,n,[])}}class aM extends Sc{constructor(n){super(),this.componentFactoryResolver=new x_(this),this.instance=null;const t=new y1([...n.providers,{provide:Sc,useValue:this},{provide:m4,useValue:this.componentFactoryResolver}],n.parent||se(),n.debugName,new Set(["environment"]));this.injector=t,n.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}let Gj=(()=>{class e{constructor(t){this._injector=t,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t)){const r=zc(0,t.type),o=r.length>0?function Wj(e,n,t=null){return new aM({providers:e,parent:n,debugName:t,runEnvironmentInitializers:!0}).injector}([r],this._injector,`Standalone[${t.type.name}]`):null;this.cachedInjectors.set(t,o)}return this.cachedInjectors.get(t)}ngOnDestroy(){try{for(const t of this.cachedInjectors.values())null!==t&&t.destroy()}finally{this.cachedInjectors.clear()}}static#t=this.\u0275prov=xe({token:e,providedIn:"environment",factory:()=>new e(gt(He))})}return e})();function cl(e){e.getStandaloneInjector=n=>n.get(Gj).getOrCreateStandaloneInjector(e)}function Is(e,n,t){const r=Un()+e,o=fe();return o[r]===or?$l(o,r,t?n.call(t):n()):function B3(e,n){return e[n]}(o,r)}function Tp(e,n,t,r){return gM(fe(),Un(),e,n,t,r)}function $3(e,n,t,r,o){return fM(fe(),Un(),e,n,t,r,o)}function kv(e,n,t,r,o,s){return function mM(e,n,t,r,o,s,i,l){const a=n+t;return function wp(e,n,t,r,o){const s=bc(e,n,t,r);return G2(e,n+2,o)||s}(e,a,o,s,i)?$l(e,a+3,l?r.call(l,o,s,i):r(o,s,i)):U3(e,a+3)}(fe(),Un(),e,n,t,r,o,s)}function U3(e,n){const t=e[n];return t===or?void 0:t}function gM(e,n,t,r,o,s){const i=n+t;return G2(e,i,o)?$l(e,i+1,s?r.call(s,o):r(o)):U3(e,i+1)}function fM(e,n,t,r,o,s,i){const l=n+t;return bc(e,l,o,s)?$l(e,l+2,i?r.call(i,o,s):r(o,s)):U3(e,l+2)}function ci(e,n){const t=n1();let r;const o=e+wr;t.firstCreatePass?(r=function cP(e,n){if(n)for(let t=n.length-1;t>=0;t--){const r=n[t];if(e===r.name)return r}}(n,t.pipeRegistry),t.data[o]=r,r.onDestroy&&(t.destroyHooks??=[]).push(o,r.onDestroy)):r=t.data[o];const s=r.factory||(r.factory=Ce(r.type)),l=Xo(vt);try{const a=e3(!1),c=s();return e3(a),function GT(e,n,t,r){t>=e.data.length&&(e.data[t]=null,e.blueprint[t]=null),n[t]=r}(t,fe(),o,c),c}finally{Xo(l)}}function Li(e,n,t){const r=e+wr,o=fe(),s=Tl(o,r);return Z3(o,r)?gM(o,Un(),n,s.transform,t,s):s.transform(t)}function Z3(e,n){return e[Xe].data[n].pure}function pP(){return this._results[Symbol.iterator]()}class q3{static#t=Symbol.iterator;get changes(){return this._changes||(this._changes=new _e)}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=q3.prototype;t[Symbol.iterator]||(t[Symbol.iterator]=pP)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,t){return this._results.reduce(n,t)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,t){const r=this;r.dirty=!1;const o=function ni(e){return e.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function eC(e,n,t){if(e.length!==n.length)return!1;for(let r=0;r0&&(t[o-1][N2]=n),r{class e{static#t=this.__NG_ELEMENT_ID__=wP}return e})();const fP=Vi,mP=class extends fP{constructor(n,t,r){super(),this._declarationLView=n,this._declarationTContainer=t,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,t){return this.createEmbeddedViewImpl(n,t)}createEmbeddedViewImpl(n,t,r){const o=function vP(e,n,t,r){const o=n.tView,l=dp(e,o,t,4096&e[u1]?4096:16,null,n,null,null,null,r?.injector??null,r?.hydrationInfo??null);l[ft]=e[n.index];const c=e[Ne];return null!==c&&(l[Ne]=c.createEmbeddedView(o)),K8(o,l,t),l}(this._declarationLView,this._declarationTContainer,n,{injector:t,hydrationInfo:r});return new A3(o)}};function wP(){return Ep(x1(),fe())}function Ep(e,n){return 4&e.type?new mP(n,e,w4(e,n)):null}let Rs=(()=>{class e{static#t=this.__NG_ELEMENT_ID__=yP}return e})();function yP(){return bM(x1(),fe())}const HP=Rs,HM=class extends HP{constructor(n,t,r){super(),this._lContainer=n,this._hostTNode=t,this._hostLView=r}get element(){return w4(this._hostTNode,this._hostLView)}get injector(){return new q2(this._hostTNode,this._hostLView)}get parentInjector(){const n=n3(this._hostTNode,this._hostLView);if(zd(n)){const t=e4(n,this._hostLView),r=t4(n);return new q2(t[Xe].data[r+8],t)}return new q2(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const t=zM(this._lContainer);return null!==t&&t[n]||null}get length(){return this._lContainer.length-$n}createEmbeddedView(n,t,r){let o,s;"number"==typeof r?o=r:null!=r&&(o=r.index,s=r.injector);const l=n.createEmbeddedViewImpl(t||{},s,null);return this.insertImpl(l,o,false),l}createComponent(n,t,r,o,s){const i=n&&!function n4(e){return"function"==typeof e}(n);let l;if(i)l=t;else{const L=t||{};l=L.index,r=L.injector,o=L.projectableNodes,s=L.environmentInjector||L.ngModuleRef}const a=i?n:new D3(br(n)),c=r||this.parentInjector;if(!s&&null==a.ngModule){const S=(i?c:this.parentInjector).get(He,null);S&&(s=S)}br(a.componentType??{});const v=a.create(c,o,null,s);return this.insertImpl(v.hostView,l,false),v}insert(n,t){return this.insertImpl(n,t,!1)}insertImpl(n,t,r){const o=n._lView;if(function x(e){return d2(e[xn])}(o)){const a=this.indexOf(n);if(-1!==a)this.detach(a);else{const c=o[xn],h=new HM(c,c[vo],c[xn]);h.detach(h.indexOf(n))}}const i=this._adjustIndex(t),l=this._lContainer;return gP(l,o,i,!r),n.attachToViewContainerRef(),D7(_v(l),i,n),n}move(n,t){return this.insert(n,t)}indexOf(n){const t=zM(this._lContainer);return null!==t?t.indexOf(n):-1}remove(n){const t=this._adjustIndex(n,-1),r=m3(this._lContainer,t);r&&(l3(_v(this._lContainer),t),Nd(r[Xe],r))}detach(n){const t=this._adjustIndex(n,-1),r=m3(this._lContainer,t);return r&&null!=l3(_v(this._lContainer),t)?new A3(r):null}_adjustIndex(n,t=0){return n??this.length+t}};function zM(e){return e[8]}function _v(e){return e[8]||(e[8]=[])}function bM(e,n){let t;const r=n[e.index];return d2(r)?t=r:(t=h_(r,n,null,e),n[e.index]=t,pp(n,t)),LM(t,n,e,r),new HM(t,e,n)}let LM=function VM(e,n,t,r){if(e[ti])return;let o;o=8&t.type?mn(r):function zP(e,n){const t=e[y],r=t.createComment(""),o=Fo(n,e);return h0(t,w3(t,o),r,function GC(e,n){return e.nextSibling(n)}(t,o),!1),r}(n,t),e[ti]=o};class xv{constructor(n){this.queryList=n,this.matches=null}clone(){return new xv(this.queryList)}setDirty(){this.queryList.setDirty()}}class Mv{constructor(n=[]){this.queries=n}createEmbeddedView(n){const t=n.queries;if(null!==t){const r=null!==n.contentQueries?n.contentQueries[0]:t.length,o=[];for(let s=0;s0)r.push(i[l/2]);else{const c=s[l+1],h=n[-a];for(let u=$n;u{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,r)=>{this.resolve=t,this.reject=r}),this.appInits=g1(eI,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const t=[];for(const o of this.appInits){const s=o();if(yp(s))t.push(s);else if(U_(s)){const i=new Promise((l,a)=>{s.subscribe({complete:l,error:a})});t.push(i)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(t).then(()=>{r()}).catch(o=>{this.reject(o)}),0===t.length&&r(),this.initialized=!0}static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275prov=xe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const ql=new Me("LocaleId",{providedIn:"root",factory:()=>g1(ql,mr.Optional|mr.SkipSelf)||function nI(){return typeof $localize<"u"&&$localize.locale||E4}()});let Dv=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Fa(!1)}add(){this.hasPendingTasks.next(!0);const t=this.taskId++;return this.pendingTasks.add(t),t}remove(t){this.pendingTasks.delete(t),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275prov=xe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const ey=new Me(""),Rp=new Me("");let Pv,Ev=(()=>{class e{constructor(t,r,o){this._ngZone=t,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Pv||(function LI(e){Pv=e}(o),o.addToWindow(r)),this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{_r.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(t)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,r,o){let s=-1;r&&r>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(i=>i.timeoutId!==s),t(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:t,timeoutId:s,updateCb:o})}whenStable(t,r,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(t){this.registry.registerApplication(t,this)}unregisterApplication(t){this.registry.unregisterApplication(t)}findProviders(t,r,o){return[]}static#t=this.\u0275fac=function(r){return new(r||e)(gt(_r),gt(jv),gt(Rp))};static#e=this.\u0275prov=xe({token:e,factory:e.\u0275fac})}return e})(),jv=(()=>{class e{constructor(){this._applications=new Map}registerApplication(t,r){this._applications.set(t,r)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,r=!0){return Pv?.findTestabilityInTree(this,t,r)??null}static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275prov=xe({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),p0=null;const ry=new Me("AllowMultipleToken"),Iv=new Me("PlatformDestroyListeners"),ny=new Me("appBootstrapListener");function iy(e,n,t=[]){const r=`Platform: ${n}`,o=new Me(r);return(s=[])=>{let i=Rv();if(!i||i.injector.get(ry,!1)){const l=[...t,...s,{provide:o,useValue:!0}];e?e(l):function AI(e){if(p0&&!p0.get(ry,!1))throw new Ie(400,!1);(function oy(){!function vd(e){Ph=e}(()=>{throw new Ie(600,!1)})})(),p0=e;const n=e.get(ay);(function sy(e){e.get(Mi,null)?.forEach(t=>t())})(e)}(function ly(e=[],n){return v2.create({name:n,providers:[{provide:H,useValue:"platform"},{provide:Iv,useValue:new Set([()=>p0=null])},...e]})}(l,r))}return function BI(e){const n=Rv();if(!n)throw new Ie(401,!1);return n}()}}function Rv(){return p0?.get(ay)??null}let ay=(()=>{class e{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,r){const o=function TI(e="zone.js",n){return"noop"===e?new mB:"zone.js"===e?new _r(n):e}(r?.ngZone,function cy(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return o.run(()=>{const s=function qj(e,n,t){return new mv(e,n,t)}(t.moduleType,this.injector,function vy(e){return[{provide:_r,useFactory:e},{provide:y3,multi:!0,useFactory:()=>{const n=g1(jI,{optional:!0});return()=>n.initialize()}},{provide:py,useFactory:EI},{provide:Ok,useFactory:Nk}]}(()=>o)),i=s.injector.get(_a,null);return o.runOutsideAngular(()=>{const l=o.onError.subscribe({next:a=>{i.handleError(a)}});s.onDestroy(()=>{Fp(this._modules,s),l.unsubscribe()})}),function hy(e,n,t){try{const r=t();return yp(r)?r.catch(o=>{throw n.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw n.runOutsideAngular(()=>e.handleError(r)),r}}(i,o,()=>{const l=s.injector.get(Av);return l.runInitializers(),l.donePromise.then(()=>(function Px(e){x2(e,"Expected localeId to be defined"),"string"==typeof e&&(jx=e.toLowerCase().replace(/_/g,"-"))}(s.injector.get(ql,E4)||E4),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,r=[]){const o=uy({},r);return function VI(e,n,t){const r=new wv(t);return Promise.resolve(r)}(0,0,t).then(s=>this.bootstrapModuleFactory(s,o))}_moduleDoBootstrap(t){const r=t.injector.get(I4);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!t.instance.ngDoBootstrap)throw new Ie(-403,!1);t.instance.ngDoBootstrap(r)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Ie(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const t=this._injector.get(Iv,null);t&&(t.forEach(r=>r()),t.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#t=this.\u0275fac=function(r){return new(r||e)(gt(v2))};static#e=this.\u0275prov=xe({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function uy(e,n){return Array.isArray(n)?n.reduce(uy,e):{...e,...n}}let I4=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=g1(py),this.zoneIsStable=g1(Ok),this.componentTypes=[],this.components=[],this.isStable=g1(Dv).hasPendingTasks.pipe(zs(t=>t?po(!1):this.zoneIsStable),bs(),Gi()),this._injector=g1(He)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(t,r){const o=t instanceof Vk;if(!this._injector.get(Av).done)throw!o&&function Vl(e){const n=br(e)||W1(e)||lr(e);return null!==n&&n.standalone}(t),new Ie(405,!1);let i;i=o?t:this._injector.get(m4).resolveComponentFactory(t),this.componentTypes.push(i.componentType);const l=function SI(e){return e.isBoundToModule}(i)?void 0:this._injector.get(Sc),c=i.create(v2.NULL,[],r||i.selector,l),h=c.location.nativeElement,u=c.injector.get(ey,null);return u?.registerApplication(h),c.onDestroy(()=>{this.detachView(c.hostView),Fp(this.components,c),u?.unregisterApplication(h)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new Ie(101,!1);try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this.internalErrorHandler(t)}finally{this._runningTick=!1}}attachView(t){const r=t;this._views.push(r),r.attachToAppRef(this)}detachView(t){const r=t;Fp(this._views,r),r.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t);const r=this._injector.get(ny,[]);r.push(...this._bootstrapListeners),r.forEach(o=>o(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>Fp(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new Ie(406,!1);const t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275prov=xe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Fp(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}const py=new Me("",{providedIn:"root",factory:()=>g1(_a).handleError.bind(void 0)});function EI(){const e=g1(_r),n=g1(_a);return t=>e.runOutsideAngular(()=>n.handleError(t))}let jI=(()=>{class e{constructor(){this.zone=g1(_r),this.applicationRef=g1(I4)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275prov=xe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();let ms=(()=>{class e{static#t=this.__NG_ELEMENT_ID__=II}return e})();function II(e){return function RI(e,n,t){if(Dl(e)&&!t){const r=U2(e.index,n);return new A3(r,r)}return 47&e.type?new A3(n[ot],n):null}(x1(),fe(),16==(16&e))}class Cy{constructor(){}supports(n){return mp(n)}create(n){return new UI(n)}}const $I=(e,n)=>n;class UI{constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||$I}forEachItem(n){let t;for(t=this._itHead;null!==t;t=t._next)n(t)}forEachOperation(n){let t=this._itHead,r=this._removalsHead,o=0,s=null;for(;t||r;){const i=!r||t&&t.currentIndex<_y(r,o,s)?t:r,l=_y(i,o,s),a=i.currentIndex;if(i===r)o--,r=r._nextRemoved;else if(t=t._next,null==i.previousIndex)o++;else{s||(s=[]);const c=l-o,h=a-o;if(c!=h){for(let d=0;d{i=this._trackByFn(o,l),null!==t&&Object.is(t.trackById,i)?(r&&(t=this._verifyReinsertion(t,l,i,o)),Object.is(t.item,l)||this._addIdentityChange(t,l)):(t=this._mismatch(t,l,i,o),r=!0),t=t._next,o++}),this.length=o;return this._truncate(t),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,t,r,o){let s;return null===n?s=this._itTail:(s=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._reinsertAfter(n,s,o)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(r,o))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._moveAfter(n,s,o)):n=this._addAfter(new ZI(t,r),s,o),n}_verifyReinsertion(n,t,r,o){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==s?n=this._reinsertAfter(s,n._prev,o):n.currentIndex!=o&&(n.currentIndex=o,this._addToMoves(n,o)),n}_truncate(n){for(;null!==n;){const t=n._next;this._addToRemovals(this._unlink(n)),n=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,t,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const o=n._prevRemoved,s=n._nextRemoved;return null===o?this._removalsHead=s:o._nextRemoved=s,null===s?this._removalsTail=o:s._prevRemoved=o,this._insertAfter(n,t,r),this._addToMoves(n,r),n}_moveAfter(n,t,r){return this._unlink(n),this._insertAfter(n,t,r),this._addToMoves(n,r),n}_addAfter(n,t,r){return this._insertAfter(n,t,r),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,t,r){const o=null===t?this._itHead:t._next;return n._next=o,n._prev=t,null===o?this._itTail=n:o._prev=n,null===t?this._itHead=n:t._next=n,null===this._linkedRecords&&(this._linkedRecords=new ky),this._linkedRecords.put(n),n.currentIndex=r,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const t=n._prev,r=n._next;return null===t?this._itHead=r:t._next=r,null===r?this._itTail=t:r._prev=t,n}_addToMoves(n,t){return n.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new ky),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,t){return n.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class ZI{constructor(n,t){this.item=n,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class qI{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,t){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===t||t<=r.currentIndex)&&Object.is(r.trackById,n))return r;return null}remove(n){const t=n._prevDup,r=n._nextDup;return null===t?this._head=r:t._nextDup=r,null===r?this._tail=t:r._prevDup=t,null===this._head}}class ky{constructor(){this.map=new Map}put(n){const t=n.trackById;let r=this.map.get(t);r||(r=new qI,this.map.set(t,r)),r.add(n)}get(n,t){const o=this.map.get(n);return o?o.get(n,t):null}remove(n){const t=n.trackById;return this.map.get(t).remove(n)&&this.map.delete(t),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function _y(e,n,t){const r=e.previousIndex;if(null===r)return r;let o=0;return t&&r{if(t&&t.key===o)this._maybeAddToChanges(t,r),this._appendAfter=t,t=t._next;else{const s=this._getOrCreateRecordForKey(o,r);t=this._insertBeforeOrAppend(t,s)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let r=t;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,t){if(n){const r=n._prev;return t._next=n,t._prev=r,n._prev=t,r&&(r._next=t),n===this._mapHead&&(this._mapHead=t),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(n,t){if(this._records.has(n)){const o=this._records.get(n);this._maybeAddToChanges(o,t);const s=o._prev,i=o._next;return s&&(s._next=i),i&&(i._prev=s),o._next=null,o._prev=null,o}const r=new GI(n);return this._records.set(n,r),r.currentValue=t,this._addToAdditions(r),r}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,t){Object.is(t,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=t,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,t){n instanceof Map?n.forEach(t):Object.keys(n).forEach(r=>t(n[r],r))}}class GI{constructor(n){this.key=n,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function My(){return new $p([new Cy])}let $p=(()=>{class e{static#t=this.\u0275prov=xe({token:e,providedIn:"root",factory:My});constructor(t){this.factories=t}static create(t,r){if(null!=r){const o=r.factories.slice();t=t.concat(o)}return new e(t)}static extend(t){return{provide:e,useFactory:r=>e.create(t,r||My()),deps:[[e,new c0,new a0]]}}find(t){const r=this.factories.find(o=>o.supports(t));if(null!=r)return r;throw new Ie(901,!1)}}return e})();function yy(){return new Y3([new xy])}let Y3=(()=>{class e{static#t=this.\u0275prov=xe({token:e,providedIn:"root",factory:yy});constructor(t){this.factories=t}static create(t,r){if(r){const o=r.factories.slice();t=t.concat(o)}return new e(t)}static extend(t){return{provide:e,useFactory:r=>e.create(t,r||yy()),deps:[[e,new c0,new a0]]}}find(t){const r=this.factories.find(o=>o.supports(t));if(r)return r;throw new Ie(901,!1)}}return e})();const KI=iy(null,"core",[]);let QI=(()=>{class e{constructor(t){}static#t=this.\u0275fac=function(r){return new(r||e)(gt(I4))};static#e=this.\u0275mod=K1({type:e});static#r=this.\u0275inj=$1({})}return e})();let qv=null;function v0(){return qv}class uR{}const wn=new Me("DocumentToken");let By=(()=>{class e{historyGo(t){throw new Error("Not implemented")}static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275prov=xe({token:e,factory:function(){return g1(dR)},providedIn:"platform"})}return e})(),dR=(()=>{class e extends By{constructor(){super(),this._doc=g1(wn),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return v0().getBaseHref(this._doc)}onPopState(t){const r=v0().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",t,!1),()=>r.removeEventListener("popstate",t)}onHashChange(t){const r=v0().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",t,!1),()=>r.removeEventListener("hashchange",t)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(t){this._location.pathname=t}pushState(t,r,o){this._history.pushState(t,r,o)}replaceState(t,r,o){this._history.replaceState(t,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275prov=xe({token:e,factory:function(){return new e},providedIn:"platform"})}return e})();function Ty(e,n){if(0==e.length)return n;if(0==n.length)return e;let t=0;return e.endsWith("/")&&t++,n.startsWith("/")&&t++,2==t?e+n.substring(1):1==t?e+n:e+"/"+n}function Ey(e){const n=e.match(/#|\?|$/),t=n&&n.index||e.length;return e.slice(0,t-("/"===e[t-1]?1:0))+e.slice(t)}function Dc(e){return e&&"?"!==e[0]?"?"+e:e}let Wv=(()=>{class e{historyGo(t){throw new Error("Not implemented")}static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275prov=xe({token:e,factory:function(){return g1(vR)},providedIn:"root"})}return e})();const pR=new Me("appBaseHref");let vR=(()=>{class e extends Wv{constructor(t,r){super(),this._platformLocation=t,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??g1(wn).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return Ty(this._baseHref,t)}path(t=!1){const r=this._platformLocation.pathname+Dc(this._platformLocation.search),o=this._platformLocation.hash;return o&&t?`${r}${o}`:r}pushState(t,r,o,s){const i=this.prepareExternalUrl(o+Dc(s));this._platformLocation.pushState(t,r,i)}replaceState(t,r,o,s){const i=this.prepareExternalUrl(o+Dc(s));this._platformLocation.replaceState(t,r,i)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static#t=this.\u0275fac=function(r){return new(r||e)(gt(By),gt(pR,8))};static#e=this.\u0275prov=xe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),jy=(()=>{class e{constructor(t){this._subject=new _e,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=t;const r=this._locationStrategy.getBaseHref();this._basePath=function mR(e){if(new RegExp("^(https?:)?//").test(e)){const[,t]=e.split(/\/\/[^\/]+/);return t}return e}(Ey(Py(r))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,r=""){return this.path()==this.normalize(t+Dc(r))}normalize(t){return e.stripTrailingSlash(function fR(e,n){if(!e||!n.startsWith(e))return n;const t=n.substring(e.length);return""===t||["/",";","?","#"].includes(t[0])?t:n}(this._basePath,Py(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,r="",o=null){this._locationStrategy.pushState(o,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Dc(r)),o)}replaceState(t,r="",o=null){this._locationStrategy.replaceState(o,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Dc(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)})),()=>{const r=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",r){this._urlChangeListeners.forEach(o=>o(t,r))}subscribe(t,r,o){return this._subject.subscribe({next:t,error:r,complete:o})}static#t=this.normalizeQueryParams=Dc;static#e=this.joinWithSlash=Ty;static#r=this.stripTrailingSlash=Ey;static#n=this.\u0275fac=function(r){return new(r||e)(gt(Wv))};static#o=this.\u0275prov=xe({token:e,factory:function(){return function gR(){return new jy(gt(Wv))}()},providedIn:"root"})}return e})();function Py(e){return e.replace(/\/index.html$/,"")}function qy(e,n){n=encodeURIComponent(n);for(const t of e.split(";")){const r=t.indexOf("="),[o,s]=-1==r?[t,""]:[t.slice(0,r),t.slice(r+1)];if(o.trim()===n)return decodeURIComponent(s)}return null}const ng=/\s+/,Wy=[];let Di=(()=>{class e{constructor(t,r,o,s){this._iterableDiffers=t,this._keyValueDiffers=r,this._ngEl=o,this._renderer=s,this.initialClasses=Wy,this.stateMap=new Map}set klass(t){this.initialClasses=null!=t?t.trim().split(ng):Wy}set ngClass(t){this.rawClass="string"==typeof t?t.trim().split(ng):t}ngDoCheck(){for(const r of this.initialClasses)this._updateState(r,!0);const t=this.rawClass;if(Array.isArray(t)||t instanceof Set)for(const r of t)this._updateState(r,!0);else if(null!=t)for(const r of Object.keys(t))this._updateState(r,!!t[r]);this._applyStateDiff()}_updateState(t,r){const o=this.stateMap.get(t);void 0!==o?(o.enabled!==r&&(o.changed=!0,o.enabled=r),o.touched=!0):this.stateMap.set(t,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(const t of this.stateMap){const r=t[0],o=t[1];o.changed?(this._toggleClass(r,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),o.touched=!1}}_toggleClass(t,r){(t=t.trim()).length>0&&t.split(ng).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static#t=this.\u0275fac=function(r){return new(r||e)(vt($p),vt(Y3),vt(Br),vt(Ol))};static#e=this.\u0275dir=s1({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0})}return e})();class rF{constructor(n,t,r,o){this.$implicit=n,this.ngForOf=t,this.index=r,this.count=o}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let ba=(()=>{class e{set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}constructor(t,r,o){this._viewContainer=t,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const r=this._viewContainer;t.forEachOperation((o,s,i)=>{if(null==o.previousIndex)r.createEmbeddedView(this._template,new rF(o.item,this._ngForOf,-1,-1),null===i?void 0:i);else if(null==i)r.remove(null===s?void 0:s);else if(null!==s){const l=r.get(s);r.move(l,i),Yy(l,o)}});for(let o=0,s=r.length;o{Yy(r.get(o.currentIndex),o)})}static ngTemplateContextGuard(t,r){return!0}static#t=this.\u0275fac=function(r){return new(r||e)(vt(Rs),vt(Vi),vt($p))};static#e=this.\u0275dir=s1({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return e})();function Yy(e,n){e.context.$implicit=n.item}let Os=(()=>{class e{constructor(t,r){this._viewContainer=t,this._context=new nF,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){Xy("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){Xy("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,r){return!0}static#t=this.\u0275fac=function(r){return new(r||e)(vt(Rs),vt(Vi))};static#e=this.\u0275dir=s1({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return e})();class nF{constructor(){this.$implicit=null,this.ngIf=null}}function Xy(e,n){if(n&&!n.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${An(n)}'.`)}class og{constructor(n,t){this._viewContainerRef=n,this._templateRef=t,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(n){n&&!this._created?this.create():!n&&this._created&&this.destroy()}}let F4=(()=>{class e{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews.push(t)}_matchCase(t){const r=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||r,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),r}_updateDefaultCases(t){if(this._defaultViews.length>0&&t!==this._defaultUsed){this._defaultUsed=t;for(const r of this._defaultViews)r.enforceState(t)}}static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275dir=s1({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0})}return e})(),e6=(()=>{class e{constructor(t,r,o){this.ngSwitch=o,o._addCase(),this._view=new og(t,r)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static#t=this.\u0275fac=function(r){return new(r||e)(vt(Rs),vt(Vi),vt(F4,9))};static#e=this.\u0275dir=s1({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0})}return e})(),Ky=(()=>{class e{constructor(t,r,o){o._addDefault(new og(t,r))}static#t=this.\u0275fac=function(r){return new(r||e)(vt(Rs),vt(Vi),vt(F4,9))};static#e=this.\u0275dir=s1({type:e,selectors:[["","ngSwitchDefault",""]],standalone:!0})}return e})(),O4=(()=>{class e{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(t){if(t.ngTemplateOutlet||t.ngTemplateOutletInjector){const r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:o,ngTemplateOutletContext:s,ngTemplateOutletInjector:i}=this;this._viewRef=r.createEmbeddedView(o,s,i?{injector:i}:void 0)}else this._viewRef=null}else this._viewRef&&t.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}static#t=this.\u0275fac=function(r){return new(r||e)(vt(Rs))};static#e=this.\u0275dir=s1({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[mo]})}return e})();class iF{createSubscription(n,t){return Z5(()=>n.subscribe({next:t,error:r=>{throw r}}))}dispose(n){Z5(()=>n.unsubscribe())}}class lF{createSubscription(n,t){return n.then(t,r=>{throw r})}dispose(n){}}const aF=new lF,cF=new iF;let Jy=(()=>{class e{constructor(t){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=t}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,r=>this._updateLatestValue(t,r))}_selectStrategy(t){if(yp(t))return aF;if(U_(t))return cF;throw function dl(e,n){return new Ie(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,r){t===this._obj&&(this._latestValue=r,this._ref.markForCheck())}static#t=this.\u0275fac=function(r){return new(r||e)(vt(ms,16))};static#e=this.\u0275pipe=bo({name:"async",type:e,pure:!1,standalone:!0})}return e})(),tH=(()=>{class e{constructor(t){this.differs=t,this.keyValues=[],this.compareFn=eH}transform(t,r=eH){if(!t||!(t instanceof Map)&&"object"!=typeof t)return null;this.differ||(this.differ=this.differs.find(t).create());const o=this.differ.diff(t),s=r!==this.compareFn;return o&&(this.keyValues=[],o.forEachItem(i=>{this.keyValues.push(function xF(e,n){return{key:e,value:n}}(i.key,i.currentValue))})),(o||s)&&(this.keyValues.sort(r),this.compareFn=r),this.keyValues}static#t=this.\u0275fac=function(r){return new(r||e)(vt(Y3,16))};static#e=this.\u0275pipe=bo({name:"keyvalue",type:e,pure:!1,standalone:!0})}return e})();function eH(e,n){const t=e.key,r=n.key;if(t===r)return 0;if(void 0===t)return 1;if(void 0===r)return-1;if(null===t)return 1;if(null===r)return-1;if("string"==typeof t&&"string"==typeof r)return t{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275mod=K1({type:e});static#r=this.\u0275inj=$1({})}return e})();const rH="browser";function nH(e){return"server"===e}class oH{}class JF extends uR{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class cg extends JF{static makeCurrent(){!function hR(e){qv||(qv=e)}(new cg)}onAndCancel(n,t,r){return n.addEventListener(t,r),()=>{n.removeEventListener(t,r)}}dispatchEvent(n,t){n.dispatchEvent(t)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,t){return(t=t||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,t){return"window"===t?window:"document"===t?n:"body"===t?n.body:null}getBaseHref(n){const t=function tO(){return J3=J3||document.querySelector("base"),J3?J3.getAttribute("href"):null}();return null==t?null:function eO(e){o6=o6||document.createElement("a"),o6.setAttribute("href",e);const n=o6.pathname;return"/"===n.charAt(0)?n:`/${n}`}(t)}resetBaseElement(){J3=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return qy(document.cookie,n)}}let o6,J3=null,nO=(()=>{class e{build(){return new XMLHttpRequest}static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275prov=xe({token:e,factory:e.\u0275fac})}return e})();const hg=new Me("EventManagerPlugins");let cH=(()=>{class e{constructor(t,r){this._zone=r,this._eventNameToPlugin=new Map,t.forEach(o=>{o.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,r,o){return this._findPluginFor(r).addEventListener(t,r,o)}getZone(){return this._zone}_findPluginFor(t){let r=this._eventNameToPlugin.get(t);if(r)return r;if(r=this._plugins.find(s=>s.supports(t)),!r)throw new Ie(5101,!1);return this._eventNameToPlugin.set(t,r),r}static#t=this.\u0275fac=function(r){return new(r||e)(gt(hg),gt(_r))};static#e=this.\u0275prov=xe({token:e,factory:e.\u0275fac})}return e})();class hH{constructor(n){this._doc=n}}const ug="ng-app-id";let uH=(()=>{class e{constructor(t,r,o,s={}){this.doc=t,this.appId=r,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=nH(s),this.resetHostNodes()}addStyles(t){for(const r of t)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(t){for(const r of t)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){const t=this.styleNodesInDOM;t&&(t.forEach(r=>r.remove()),t.clear());for(const r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(t){this.hostNodes.add(t);for(const r of this.getAllStyles())this.addStyleToHost(t,r)}removeHost(t){this.hostNodes.delete(t)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(t){for(const r of this.hostNodes)this.addStyleToHost(r,t)}onStyleRemoved(t){const r=this.styleRef;r.get(t)?.elements?.forEach(o=>o.remove()),r.delete(t)}collectServerRenderedStyles(){const t=this.doc.head?.querySelectorAll(`style[${ug}="${this.appId}"]`);if(t?.length){const r=new Map;return t.forEach(o=>{null!=o.textContent&&r.set(o.textContent,o)}),r}return null}changeUsageCount(t,r){const o=this.styleRef;if(o.has(t)){const s=o.get(t);return s.usage+=r,s.usage}return o.set(t,{usage:r,elements:[]}),r}getStyleElement(t,r){const o=this.styleNodesInDOM,s=o?.get(r);if(s?.parentNode===t)return o.delete(r),s.removeAttribute(ug),s;{const i=this.doc.createElement("style");return this.nonce&&i.setAttribute("nonce",this.nonce),i.textContent=r,this.platformIsServer&&i.setAttribute(ug,this.appId),i}}addStyleToHost(t,r){const o=this.getStyleElement(t,r);t.appendChild(o);const s=this.styleRef,i=s.get(r)?.elements;i?i.push(o):s.set(r,{elements:[o],usage:1})}resetHostNodes(){const t=this.hostNodes;t.clear(),t.add(this.doc.head)}static#t=this.\u0275fac=function(r){return new(r||e)(gt(wn),gt(Bs),gt(li,8),gt(un))};static#e=this.\u0275prov=xe({token:e,factory:e.\u0275fac})}return e})();const dg={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},pg=/%COMP%/g,lO=new Me("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function pH(e,n){return n.map(t=>t.replace(pg,e))}let vH=(()=>{class e{constructor(t,r,o,s,i,l,a,c=null){this.eventManager=t,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=i,this.platformId=l,this.ngZone=a,this.nonce=c,this.rendererByCompId=new Map,this.platformIsServer=nH(l),this.defaultRenderer=new vg(t,i,a,this.platformIsServer)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===M2.ShadowDom&&(r={...r,encapsulation:M2.Emulated});const o=this.getOrCreateRenderer(t,r);return o instanceof fH?o.applyToHost(t):o instanceof gg&&o.applyStyles(),o}getOrCreateRenderer(t,r){const o=this.rendererByCompId;let s=o.get(r.id);if(!s){const i=this.doc,l=this.ngZone,a=this.eventManager,c=this.sharedStylesHost,h=this.removeStylesOnCompDestroy,u=this.platformIsServer;switch(r.encapsulation){case M2.Emulated:s=new fH(a,c,r,this.appId,h,i,l,u);break;case M2.ShadowDom:return new uO(a,c,t,r,i,l,this.nonce,u);default:s=new gg(a,c,r,h,i,l,u)}o.set(r.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}static#t=this.\u0275fac=function(r){return new(r||e)(gt(cH),gt(uH),gt(Bs),gt(lO),gt(wn),gt(un),gt(_r),gt(li))};static#e=this.\u0275prov=xe({token:e,factory:e.\u0275fac})}return e})();class vg{constructor(n,t,r,o){this.eventManager=n,this.doc=t,this.ngZone=r,this.platformIsServer=o,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,t){return t?this.doc.createElementNS(dg[t]||t,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,t){(gH(n)?n.content:n).appendChild(t)}insertBefore(n,t,r){n&&(gH(n)?n.content:n).insertBefore(t,r)}removeChild(n,t){n&&n.removeChild(t)}selectRootElement(n,t){let r="string"==typeof n?this.doc.querySelector(n):n;if(!r)throw new Ie(-5104,!1);return t||(r.textContent=""),r}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,t,r,o){if(o){t=o+":"+t;const s=dg[o];s?n.setAttributeNS(s,t,r):n.setAttribute(t,r)}else n.setAttribute(t,r)}removeAttribute(n,t,r){if(r){const o=dg[r];o?n.removeAttributeNS(o,t):n.removeAttribute(`${r}:${t}`)}else n.removeAttribute(t)}addClass(n,t){n.classList.add(t)}removeClass(n,t){n.classList.remove(t)}setStyle(n,t,r,o){o&(wa.DashCase|wa.Important)?n.style.setProperty(t,r,o&wa.Important?"important":""):n.style[t]=r}removeStyle(n,t,r){r&wa.DashCase?n.style.removeProperty(t):n.style[t]=""}setProperty(n,t,r){n[t]=r}setValue(n,t){n.nodeValue=t}listen(n,t,r){if("string"==typeof n&&!(n=v0().getGlobalEventTarget(this.doc,n)))throw new Error(`Unsupported event target ${n} for event ${t}`);return this.eventManager.addEventListener(n,t,this.decoratePreventDefault(r))}decoratePreventDefault(n){return t=>{if("__ngUnwrap__"===t)return n;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>n(t)):n(t))&&t.preventDefault()}}}function gH(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class uO extends vg{constructor(n,t,r,o,s,i,l,a){super(n,s,i,a),this.sharedStylesHost=t,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const c=pH(o.id,o.styles);for(const h of c){const u=document.createElement("style");l&&u.setAttribute("nonce",l),u.textContent=h,this.shadowRoot.appendChild(u)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,t){return super.appendChild(this.nodeOrShadowRoot(n),t)}insertBefore(n,t,r){return super.insertBefore(this.nodeOrShadowRoot(n),t,r)}removeChild(n,t){return super.removeChild(this.nodeOrShadowRoot(n),t)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class gg extends vg{constructor(n,t,r,o,s,i,l,a){super(n,s,i,l),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=o,this.styles=a?pH(a,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class fH extends gg{constructor(n,t,r,o,s,i,l,a){const c=o+"-"+r.id;super(n,t,r,s,i,l,a,c),this.contentAttr=function aO(e){return"_ngcontent-%COMP%".replace(pg,e)}(c),this.hostAttr=function cO(e){return"_nghost-%COMP%".replace(pg,e)}(c)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,t){const r=super.createElement(n,t);return super.setAttribute(r,this.contentAttr,""),r}}let dO=(()=>{class e extends hH{constructor(t){super(t)}supports(t){return!0}addEventListener(t,r,o){return t.addEventListener(r,o,!1),()=>this.removeEventListener(t,r,o)}removeEventListener(t,r,o){return t.removeEventListener(r,o)}static#t=this.\u0275fac=function(r){return new(r||e)(gt(wn))};static#e=this.\u0275prov=xe({token:e,factory:e.\u0275fac})}return e})();const mH=["alt","control","meta","shift"],pO={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},vO={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let gO=(()=>{class e extends hH{constructor(t){super(t)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,r,o){const s=e.parseEventName(r),i=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>v0().onAndCancel(t,s.domEventName,i))}static parseEventName(t){const r=t.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const s=e._normalizeKey(r.pop());let i="",l=r.indexOf("code");if(l>-1&&(r.splice(l,1),i="code."),mH.forEach(c=>{const h=r.indexOf(c);h>-1&&(r.splice(h,1),i+=c+".")}),i+=s,0!=r.length||0===s.length)return null;const a={};return a.domEventName=o,a.fullKey=i,a}static matchEventFullKeyCode(t,r){let o=pO[t.key]||t.key,s="";return r.indexOf("code.")>-1&&(o=t.code,s="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),mH.forEach(i=>{i!==o&&(0,vO[i])(t)&&(s+=i+".")}),s+=o,s===r)}static eventCallback(t,r,o){return s=>{e.matchEventFullKeyCode(s,t)&&o.runGuarded(()=>r(s))}}static _normalizeKey(t){return"esc"===t?"escape":t}static#t=this.\u0275fac=function(r){return new(r||e)(gt(wn))};static#e=this.\u0275prov=xe({token:e,factory:e.\u0275fac})}return e})();const CO=iy(KI,"browser",[{provide:un,useValue:rH},{provide:Mi,useValue:function fO(){cg.makeCurrent()},multi:!0},{provide:wn,useFactory:function wO(){return function rk(e){Yd=e}(document),document},deps:[]}]),kO=new Me(""),kH=[{provide:Rp,useClass:class rO{addToWindow(n){ln.getAngularTestability=(r,o=!0)=>{const s=n.findTestabilityInTree(r,o);if(null==s)throw new Ie(5103,!1);return s},ln.getAllAngularTestabilities=()=>n.getAllTestabilities(),ln.getAllAngularRootElements=()=>n.getAllRootElements(),ln.frameworkStabilizers||(ln.frameworkStabilizers=[]),ln.frameworkStabilizers.push(r=>{const o=ln.getAllAngularTestabilities();let s=o.length,i=!1;const l=function(a){i=i||a,s--,0==s&&r(i)};o.forEach(a=>{a.whenStable(l)})})}findTestabilityInTree(n,t,r){return null==t?null:n.getTestability(t)??(r?v0().isShadowRoot(t)?this.findTestabilityInTree(n,t.host,!0):this.findTestabilityInTree(n,t.parentElement,!0):null)}},deps:[]},{provide:ey,useClass:Ev,deps:[_r,jv,Rp]},{provide:Ev,useClass:Ev,deps:[_r,jv,Rp]}],_H=[{provide:H,useValue:"root"},{provide:_a,useFactory:function mO(){return new _a},deps:[]},{provide:hg,useClass:dO,multi:!0,deps:[wn,_r,un]},{provide:hg,useClass:gO,multi:!0,deps:[wn]},vH,uH,cH,{provide:Ak,useExisting:vH},{provide:oH,useClass:nO,deps:[]},[]];let _O=(()=>{class e{constructor(t){}static withServerTransition(t){return{ngModule:e,providers:[{provide:Bs,useValue:t.appId}]}}static#t=this.\u0275fac=function(r){return new(r||e)(gt(kO,12))};static#e=this.\u0275mod=K1({type:e});static#r=this.\u0275inj=$1({providers:[..._H,...kH],imports:[e2,QI]})}return e})();function HH(e,n,t,r,o,s,i){try{var l=e[s](i),a=l.value}catch(c){return void t(c)}l.done?n(a):Promise.resolve(a).then(r,o)}function Bi(e){return function(){var n=this,t=arguments;return new Promise(function(r,o){var s=e.apply(n,t);function i(a){HH(s,r,o,i,l,"next",a)}function l(a){HH(s,r,o,i,l,"throw",a)}i(void 0)})}}typeof window<"u"&&window;class zH{}class bH{constructor(n=new zH){this.ctx=n}readRecords(n){return Promise.all(n.map(t=>this.readRecord(t)))}writeRecords(n){return Promise.all(n.map(t=>this.writeRecord(t)))}}function s6(e,n){if(Array.isArray(e)&&Array.isArray(n))return e.length===n.length&&e.every((t,r)=>s6(t,n[r]));if(e instanceof Date&&n instanceof Date)return e.getTime()===n.getTime();if(e instanceof URL&&n instanceof URL)return e.toString()===n.toString();if(e instanceof Object&&n instanceof Object){const t=Object.keys(e),r=Object.keys(n);return t.length===r.length&&t.every(o=>s6(e[o],n[o]))}return e===n}var Zo=ht(7059);function O(...e){return n=>e.reduce((t,r)=>r(t),n)}function T1(e){return n=>e(n)}function O1(e){return n=>n.map(e)}function Cs(e){return n=>n.filter(e)}function f0(e){return n=>n.length>e?n[e]:null}function m0(...e){return n=>{for(let t=0;te.map(t=>t(n))}function Bc(e){return n=>(e(n),n)}const Ao=e=>e;class LO extends Error{constructor(n){super(n)}}function mg(e){let n=null;try{n=(0,Zo.parseXml)(e)}catch(t){throw new LO(t instanceof Error?t.message:t)}return n}function wg(e){function n(r){const o=function SO(e){const n=e.indexOf(":");return n>-1?e.substring(0,n):null}(r);"xmlns"===o||null===o||e.attributes[`xmlns:${o}`]||eu[o]&&(e.attributes[`xmlns:${o}`]=eu[o])}return e.attributes=e.attributes||{},function t(r){n(r.name);for(const s in r.attributes)n(s);a6(r).forEach(t)}(e),new Zo.XmlDocument([e])}function La(e){const n=e.indexOf(":");return n>-1?e.substring(n+1):e}function LH(e){const n=e.indexOf(":");return n>-1?e.substring(0,n):""}function l6(e){return e.name||""}function Cg(e){return e.children.find(n=>n instanceof Zo.XmlElement)}function Zr(e,n=!0){return t=>{const r=La(e);return t&&Array.isArray(t.children)?t.children.reduce(function o(s,i){return La(l6(i))===r&&s.push(i),n&&Array.isArray(i.children)?[...s,...i.children.reduce(o,[])]:s},[]):[]}}function t1(e,n=!0){return t=>Zr(e,n)(t)[0]||null}function a6(e){return e&&Array.isArray(e.children)?[...e.children.filter(n=>n instanceof Zo.XmlElement)]:[]}function VO(e){return a6(e)[0]??null}function gn(...e){return n=>n&&Array.isArray(n.children)?n.children.reduce(function t(r){const o=La(e[r]);return(s,i)=>La(l6(i))!==o?s:r===e.length-1?[...s,i]:Array.isArray(i.children)?[...s,...i.children.reduce(t(r+1),[])]:s}(0),[]):[]}function fn(...e){return n=>{const t=gn(...e)(n);return t.length?t[0]:null}}function VH(e){return n=>{let t=n.parent;for(;t&&t instanceof Zo.XmlElement;){if(La(l6(t))===La(e))return t;t=t.parent}return null}}function Ti(){return e=>{if(!e)return null;const n=Array.isArray(e.children)?e.children.find(t=>"text"===t.type):null;return n?n.text:""}}function lo(e){return n=>n&&n.attributes[e]||null}function tu(e,n=0){const t=l=>l.replace(/&/g,"&").replace(//g,">");if(e instanceof Zo.XmlDocument)return`${tu(e.children[0])}`;if(e instanceof Zo.XmlText){const l=e.text;return l&&""!==l.replace(/^\s+|\s+$/g,"")?t(l):""}if(!(e instanceof Zo.XmlElement))return"\x3c!-- unknown --\x3e";const r=" ".repeat(n),o=Array.isArray(e.children)?e.children.map(l=>tu(l,n+1)).filter(l=>""!==l).map((l,a,c)=>al+` ${a}="${t(e.attributes[a])}"`,""),i=" ".repeat(Math.max(0,n-1));return""===o?`\n${r}<${e.name}${s}/>\n${i}`:`\n${r}<${e.name}${s}>${o}${e.name}>\n${i}`}const eu={gmd:"http://www.isotc211.org/2005/gmd",gco:"http://www.isotc211.org/2005/gco",gfc:"http://www.isotc211.org/2005/gfc",gml:"http://www.opengis.net/gml/3.2",xsi:"http://www.w3.org/2001/XMLSchema-instance",srv:"http://www.isotc211.org/2005/srv",gmx:"http://www.isotc211.org/2005/gmx",gts:"http://www.isotc211.org/2005/gts",gsr:"http://www.isotc211.org/2005/gsr",gmi:"http://www.isotc211.org/2005/gmi",xlink:"http://www.w3.org/1999/xlink",mdb:"http://standards.iso.org/iso/19115/-3/mdb/2.0",mdq:"http://standards.iso.org/iso/19157/-2/mdq/1.0",msr:"http://standards.iso.org/iso/19115/-3/msr/2.0",mrs:"http://standards.iso.org/iso/19115/-3/mrs/1.0",mmi:"http://standards.iso.org/iso/19115/-3/mmi/1.0",mrl:"http://standards.iso.org/iso/19115/-3/mrl/2.0",mdt:"http://standards.iso.org/iso/19115/-3/mdt/2.0",mrd:"http://standards.iso.org/iso/19115/-3/mrd/1.0",mds:"http://standards.iso.org/iso/19115/-3/mds/2.0",mpc:"http://standards.iso.org/iso/19115/-3/mpc/1.0",mcc:"http://standards.iso.org/iso/19115/-3/mcc/1.0",mac:"http://standards.iso.org/iso/19115/-3/mac/2.0",mco:"http://standards.iso.org/iso/19115/-3/mco/1.0",mda:"http://standards.iso.org/iso/19115/-3/mda/1.0",mex:"http://standards.iso.org/iso/19115/-3/mex/1.0",gex:"http://standards.iso.org/iso/19115/-3/gex/1.0",gcx:"http://standards.iso.org/iso/19115/-3/gcx/1.0",mas:"http://standards.iso.org/iso/19115/-3/mas/1.0",mri:"http://standards.iso.org/iso/19115/-3/mri/1.0",cit:"http://standards.iso.org/iso/19115/-3/cit/2.0",cat:"http://standards.iso.org/iso/19115/-3/cat/1.0",lan:"http://standards.iso.org/iso/19115/-3/lan/1.0",mrc:"http://standards.iso.org/iso/19115/-3/mrc/2.0",rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",rdfs:"http://www.w3.org/2000/01/rdf-schema#",foaf:"http://xmlns.com/foaf/0.1/",xsd:"http://www.w3.org/2001/XMLSchema#",dcat:"http://www.w3.org/ns/dcat#",dct:"http://purl.org/dc/terms/",skos:"http://www.w3.org/2004/02/skos/core#",schema_org:"http://schema.org/",spdx:"https://spdx.org/rdf/terms/#",adms:"http://www.w3.org/ns/adms#",dqv:"http://www.w3.org/ns/dqv#",owl:"http://www.w3.org/2002/07/owl#",vcard:"http://www.w3.org/2006/vcard/ns#",time:"http://www.w3.org/2006/time#",locn:"http://www.w3.org/ns/locn#",mdcat:"https://data.vlaanderen.be/ns/metadata-dcat#"};function m1(e){return()=>new Zo.XmlElement(e,{},[])}function rn(...e){return()=>{let n=null;for(const t of e)n=n?ao(t)(n):m1(t)();return n}}function P1(e,n){return t=>(t.attributes[e]=n,t)}function SH(e){return n=>{if(!n)return null;const t=e(),r=function AO(e){let n=e;for(;n.parent instanceof Zo.XmlElement;)n=n.parent;return n}(t);return n.children.push(r),r.parent=n,t}}function e1(...e){return n=>n?(e.filter(t=>t).forEach(t=>SH(t)(n)),n):null}function ao(e){return n=>{if(!n)return null;const t=m1(e)();return n.children.push(t),t.parent=n,t}}function ru(...e){return n=>{let t=n;for(const r of e)t=ao(r)(t);return t}}function Ei(e){return m0(t1(e,!1),ao(e))}function _o(...e){return n=>{let t=n;for(const r of e)t=Ei(r)(t);return t}}function b2(e){return n=>{if(!n)return null;const t=n.children.find(r=>r instanceof Zo.XmlText);return t?t.text=e:n.children.push(new Zo.XmlText(e)),n}}function L2(e){return n=>{if(!n)return null;const t=La(e),r=n.children.filter(o=>o instanceof Zo.XmlElement&&La(l6(o))===t);return r.forEach(o=>o.parent=null),n.children=n.children.filter(o=>-1===r.indexOf(o)),n}}function ji(e){return n=>{const t=e(n);return t.forEach(r=>r.parent=null),n.children=n.children.filter(r=>r instanceof Zo.XmlElement&&-1===t.indexOf(r)),n}}function kg(e){return/wms/i.test(e)?"wms":/wfs/i.test(e)?"wfs":/wmts/i.test(e)?"wmts":/wps/i.test(e)?"wps":/ogc\W*api\W*features/i.test(e)?"ogcFeatures":/esri/i.test(e)?"esriRest":"other"}function DH(e){return/shp|shapefile/i.test(e)?"x-gis/x-shapefile":e||null}const BH=class BO{constructor(n){this.type=n,this.target=null}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.propagationStopped=!0}},jO=class EO{constructor(){this.disposed=!1}dispose(){this.disposed||(this.disposed=!0,this.disposeInternal())}disposeInternal(){}};function _g(e,n){return e>n?1:e0)}removeEventListener(n,t){if(!this.listeners_)return;const r=this.listeners_[n];if(!r)return;const o=r.indexOf(t);-1!==o&&(this.pendingRemovals_&&n in this.pendingRemovals_?(r[o]=TH,++this.pendingRemovals_[n]):(r.splice(o,1),0===r.length&&delete this.listeners_[n]))}};function nu(e,n,t,r,o){if(r&&r!==e&&(t=t.bind(r)),o){const i=t;t=function(){e.removeEventListener(n,t),i.apply(this,arguments)}}const s={target:e,type:n,listener:t};return e.addEventListener(n,t),s}function IH(e,n,t,r){return nu(e,n,t,r,!0)}function c6(e){e&&e.target&&(e.target.removeEventListener(e.type,e.listener),jH(e))}const NO=class h6 extends FO{constructor(){super(),this.on=this.onInternal,this.once=this.onceInternal,this.un=this.unInternal,this.revision_=0}changed(){++this.revision_,this.dispatchEvent("change")}getRevision(){return this.revision_}onInternal(n,t){if(Array.isArray(n)){const r=n.length,o=new Array(r);for(let s=0;se[2]&&(a|=V2.RIGHT),le[3]&&(a|=V2.ABOVE),a===V2.UNKNOWN&&(a=V2.INTERSECTING),a}function N4(e,n,t,r,o){return o?(o[0]=e,o[1]=n,o[2]=t,o[3]=r,o):[e,n,t,r]}function Ec(e){return N4(1/0,1/0,-1/0,-1/0,e)}function $H(e,n){const t=e[0],r=e[1];return N4(t,r,t,r,n)}function Sg(e,n,t,r,o){return qH(Ec(o),e,n,t,r)}function JO(e,n){return n[0]e[2]&&(e[2]=n[2]),n[1]e[3]&&(e[3]=n[3]),e}function qH(e,n,t,r,o){for(;t1?t:2,void 0===n&&(n=t>2?e.slice():new Array(r));for(let o=0;ou6?s=u6:s<-u6&&(s=-u6),n[o+1]=s}return n}function fN(e,n,t){const r=e.length;t=t>1?t:2,void 0===n&&(n=t>2?e.slice():new Array(r));for(let o=0;o1){const l=e[2]-e[0],a=e[3]-e[1];for(let c=0;c{if(!r)return this.getSimplifiedGeometry(t);const o=this.clone();return o.applyTransform(r),o.getSimplifiedGeometry(t)})}simplifyTransformed(n,t){return this.simplifyTransformedInternal(this.getRevision(),n,t)}clone(){return bn()}closestPointXY(n,t,r,o){return bn()}containsXY(n,t){const r=this.getClosestPoint([n,t]);return r[0]===n&&r[1]===t}getClosestPoint(n,t){return this.closestPointXY(n[0],n[1],t=t||[NaN,NaN],1/0),t}intersectsCoordinate(n){return this.containsXY(n[0],n[1])}computeExtent(n){return bn()}getExtent(n){if(this.extentRevision_!=this.getRevision()){const t=this.computeExtent(this.extent_);(isNaN(t[0])||isNaN(t[1]))&&Ec(t),this.extentRevision_=this.getRevision()}return function iN(e,n){return n?(n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n):e}(this.extent_,n)}rotate(n,t){bn()}scale(n,t,r){bn()}simplify(n){return this.getSimplifiedGeometry(n*n)}getSimplifiedGeometry(n){return bn()}getType(){return bn()}applyTransform(n){bn()}intersectsExtent(n){return bn()}translate(n,t){bn()}transform(n,t){const r=Cn(n),o="tile-pixels"==r.getUnits()?function(s,i,l){const a=r.getExtent(),c=r.getWorldExtent(),h=$4(c)/$4(a);return Lg(az,c[0],c[3],h,-h,0,0,0),lz(s,0,s.length,l,az,i),cu(r,t)(s,i,l)}:cu(r,t);return this.applyTransform(o),this}};function Pc(e){let n;return 2==e?n="XY":3==e?n="XYZ":4==e&&(n="XYZM"),n}function cz(e){let n;return"XY"==e?n=2:"XYZ"==e||"XYM"==e?n=3:"XYZM"==e&&(n=4),n}const Ic=class DN extends Tg{constructor(){super(),this.layout="XY",this.stride=2}computeExtent(n){return Sg(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,n)}getCoordinates(){return bn()}getFirstCoordinate(){return this.flatCoordinates.slice(0,this.stride)}getFlatCoordinates(){return this.flatCoordinates}getLastCoordinate(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)}getLayout(){return this.layout}getSimplifiedGeometry(n){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),n<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&n<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;const t=this.getSimplifiedGeometryInternal(n);return t.getFlatCoordinates().length1?(t=o,r=s):a>0&&(t+=i*a,r+=l*a)}return Rc(e,n,t,r)}function Rc(e,n,t,r){const o=t-e,s=r-n;return o*o+s*s}function Eg(e,n,t){return e+t*(n-e)}function hz(e,n,t,r,o,s,i){const l=e[n],a=e[n+1],c=e[t]-l,h=e[t+1]-a;let u;if(0===c&&0===h)u=n;else{const d=((o-l)*c+(s-a)*h)/(c*c+h*h);if(d>1)u=t;else{if(d>0){for(let v=0;vo&&(o=c),s=l,i=a}return o}function Ig(e,n,t,r,o){for(let s=0,i=t.length;s0;){const u=c.pop(),d=c.pop();let v=0;const m=e[d],L=e[d+1],S=e[u],j=e[u+1];for(let N=d+r;Nv&&(h=N,v=$t)}v>o&&(a[(h-n)/r]=1,d+r0&&L>v)&&(m<0&&S0&&S>m)?(c=u,h=d):(s[i++]=c,s[i++]=h,l=c,a=h,c=u,h=d)}return s[i++]=c,s[i++]=h,i}function Ng(e,n,t,r,o,s,i,l){for(let a=0,c=t.length;a>1),o=+t(e[r],n),o<0?s=r+1:(i=r,l=!o);return l?s:~s}(v,m);L<0?(a=(m-v[-L-2])/(v[-L-1]-v[-L-2]),l=n+(-L-2)*r):l=n+L*r}i=i>1?i:2,s=s||new Array(i);for(let h=0;h>1;os&&(c-l)*(s-a)-(o-l)*(h-a)>0&&i++:h<=s&&(c-l)*(s-a)-(o-l)*(h-a)<0&&i--,l=c,a=h}return 0!==i}function Zg(e,n,t,r,o,s){if(0===t.length||!Fc(e,n,t[0],r,o,s))return!1;for(let i=1,l=t.length;i=n[0]&&e[1]<=n[3]&&e[3]>=n[1]}(o,s)&&(!!(function QO(e,n){return e[0]<=n[0]&&n[2]<=e[2]&&e[1]<=n[1]&&n[3]<=e[3]}(o,s)||s[0]>=o[0]&&s[2]<=o[2]||s[1]>=o[1]&&s[3]<=o[3])||dz(e,n,t,r,function(i,l){return function lN(e,n,t){let r=!1;const o=NH(e,n),s=NH(e,t);if(o===V2.INTERSECTING||s===V2.INTERSECTING)r=!0;else{const i=e[0],l=e[1],a=e[2],c=e[3],d=t[0],v=t[1],m=(v-n[1])/(d-n[0]);let L,S;s&V2.ABOVE&&!(o&V2.ABOVE)&&(L=d-(v-c)/m,r=L>=i&&L<=a),!r&&s&V2.RIGHT&&!(o&V2.RIGHT)&&(S=v-(d-a)*m,r=S>=l&&S<=c),!r&&s&V2.BELOW&&!(o&V2.BELOW)&&(L=d-(v-l)/m,r=L>=i&&L<=a),!r&&s&V2.LEFT&&!(o&V2.LEFT)&&(S=v-(d-i)*m,r=S>=l&&S<=c)}return r}(o,i,l)}))}function pz(e,n,t,r,o){if(!function ZN(e,n,t,r,o){return!!(C6(e,n,t,r,o)||Fc(e,n,t,r,o[0],o[1])||Fc(e,n,t,r,o[0],o[3])||Fc(e,n,t,r,o[2],o[1])||Fc(e,n,t,r,o[2],o[3]))}(e,n,t[0],r,o))return!1;if(1===t.length)return!0;for(let s=1,i=t.length;sj&&(c=(h+u)/2,Zg(e,n,t,r,c,m)&&(S=c,j=N)),h=u}return isNaN(S)&&(S=o[s]),i?(i.push(S,m,j),i):[S,m,j]}function mz(e,n,t,r,o){let s=[];for(let i=0,l=t.length;i0}function Jg(e,n,t,r,o){o=void 0!==o&&o;for(let s=0,i=t.length;s{if(n===this.squaredTolerance_)return this.simplifiedGeometry_;this.simplifiedGeometry_=this.clone(),t&&this.simplifiedGeometry_.applyTransform(t);const r=this.simplifiedGeometry_.getFlatCoordinates();let o;switch(this.type_){case"LineString":r.length=uu(r,0,this.simplifiedGeometry_.flatCoordinates_.length,this.simplifiedGeometry_.stride_,n,r,0),o=[r.length];break;case"MultiLineString":o=[],r.length=Og(r,0,this.simplifiedGeometry_.ends_,this.simplifiedGeometry_.stride_,n,r,0,o);break;case"Polygon":o=[],r.length=Ng(r,0,this.simplifiedGeometry_.ends_,this.simplifiedGeometry_.stride_,Math.sqrt(n),r,0,o)}return o&&(this.simplifiedGeometry_=new W4(this.type_,r,o,2,this.properties_,this.id_)),this.squaredTolerance_=n,this.simplifiedGeometry_}),this}}W4.prototype.getFlatCoordinates=W4.prototype.getOrientedFlatCoordinates;const _z=W4;class H6 extends Tg{constructor(n){super(),this.geometries_=n||null,this.changeEventsKeys_=[],this.listenGeometriesChange_()}unlistenGeometriesChange_(){this.changeEventsKeys_.forEach(c6),this.changeEventsKeys_.length=0}listenGeometriesChange_(){if(this.geometries_)for(let n=0,t=this.geometries_.length;nyz({...e,geometry:s})).flat();const r="MultiPolygon"===t.type?"Polygon":t.type;if("GeometryCollection"===r||"Circle"===r)throw new Error("Unsupported geometry type: "+r);const o=t.layout.length;return G4(new _z(r,"Polygon"===r?function e$(e,n,t){return Array.isArray(n[0])?(wz(e,0,n,t)||tf(e=e.slice(),0,n,t),e):(Jg(e,0,n,t)||M6(e=e.slice(),0,n,t),e)}(t.flatCoordinates,t.ends,o):t.flatCoordinates,t.ends?.flat(),o,e.properties||{},e.id).enableSimplifyTransformed(),!1,n)}function nf(e,n){if(!e)return null;if(Array.isArray(e)){const r=e.map(o=>nf(o,n));return new QN(r)}return G4(new(0,t$[e.type])(e.flatCoordinates,e.layout,e.ends),!1,n)}function qn(e,n){return Vz().createElementNS(e,n)}function z6(e,n){return Hz(e,n,[]).join("")}function Hz(e,n,t){if(e.nodeType==Node.CDATA_SECTION_NODE||e.nodeType==Node.TEXT_NODE)t.push(n?String(e.nodeValue).replace(/(\r\n|\r|\n)/g,""):e.nodeValue);else{let r;for(r=e.firstChild;r;r=r.nextSibling)Hz(r,n,t)}return t}function b6(e){return"documentElement"in e}function gu(e){return(new DOMParser).parseFromString(e,"application/xml")}function zz(e,n){return function(t,r){const o=e.call(void 0!==n?n:this,t,r);void 0!==o&&Ns(r[r.length-1],o)}}function dr(e,n){return function(t,r){const o=e.call(void 0!==n?n:this,t,r);void 0!==o&&r[r.length-1].push(o)}}function E1(e,n){return function(t,r){const o=e.call(void 0!==n?n:this,t,r);void 0!==o&&(r[r.length-1]=o)}}function h1(e,n){return function(t,r,o){e.call(void 0!==n?n:this,t,r,o),o[o.length-1].node.appendChild(t)}}function Nc(e,n){return function(t,r,o){let l=e;return void 0===l&&(l=o),qn(void 0!==n?n:r[r.length-1].node.namespaceURI,l)}}const bz=Nc();function Y4(e,n,t,r){let o;for(o=n.firstElementChild;o;o=o.nextElementSibling){const s=e[o.namespaceURI];if(void 0!==s){const i=s[o.localName];void 0!==i&&i.call(r,o,t)}}}function Wn(e,n,t,r,o){return r.push(e),Y4(n,t,r,o),r.pop()}function _s(e,n,t,r,o,s,i){return o.push(e),function Lz(e,n,t,r,o,s){const i=(void 0!==o?o:t).length;let l,a;for(let c=0;c0?r[0]:null}readFeatureFromNode(n,t){return null}readFeatures(n,t){if(!n)return[];if("string"==typeof n){const r=gu(n);return this.readFeaturesFromDocument(r,t)}return b6(n)?this.readFeaturesFromDocument(n,t):this.readFeaturesFromNode(n,t)}readFeaturesFromDocument(n,t){const r=[];for(let o=n.firstChild;o;o=o.nextSibling)o.nodeType==Node.ELEMENT_NODE&&Ns(r,this.readFeaturesFromNode(o,t));return r}readFeaturesFromNode(n,t){return bn()}readGeometry(n,t){if(!n)return null;if("string"==typeof n){const r=gu(n);return this.readGeometryFromDocument(r,t)}return b6(n)?this.readGeometryFromDocument(n,t):this.readGeometryFromNode(n,t)}readGeometryFromDocument(n,t){return null}readGeometryFromNode(n,t){return null}readProjection(n){if(!n)return null;if("string"==typeof n){const t=gu(n);return this.readProjectionFromDocument(t)}return b6(n)?this.readProjectionFromDocument(n):this.readProjectionFromNode(n)}readProjectionFromDocument(n){return this.dataProjection}readProjectionFromNode(n){return this.dataProjection}writeFeature(n,t){const r=this.writeFeatureNode(n,t);return this.xmlSerializer_.serializeToString(r)}writeFeatureNode(n,t){return null}writeFeatures(n,t){const r=this.writeFeaturesNode(n,t);return this.xmlSerializer_.serializeToString(r)}writeFeaturesNode(n,t){return null}writeGeometry(n,t){const r=this.writeGeometryNode(n,t);return this.xmlSerializer_.serializeToString(r)}writeGeometryNode(n,t){return null}},S6="http://www.opengis.net/gml",l$=/^\s*$/;class xo extends i${constructor(n){super(),this.featureType=(n=n||{}).featureType,this.featureNS=n.featureNS,this.srsName=n.srsName,this.schemaLocation="",this.FEATURE_COLLECTION_PARSERS={},this.FEATURE_COLLECTION_PARSERS[this.namespace]={featureMember:dr(this.readFeaturesInternal),featureMembers:E1(this.readFeaturesInternal)},this.supportedMediaTypes=["application/gml+xml"]}readFeaturesInternal(n,t){const r=n.localName;let o=null;if("FeatureCollection"==r)o=Wn([],this.FEATURE_COLLECTION_PARSERS,n,t,this);else if("featureMembers"==r||"featureMember"==r||"member"==r){const s=t[0];let i=s.featureType,l=s.featureNS;const a="p",c="p0";if(!i&&n.childNodes){i=[],l={};for(let d=0,v=n.childNodes.length;d0&&!(c instanceof Tg)){c={_content_:c};for(let d=0;d({...e,[n[1]]:n[0]}),{});function In(){return O(m0(t1("gco:CharacterString",!1),t1("gmx:Anchor",!1)),Ti())}function Y2(e,n){return zn(O(m0(t1("gco:CharacterString",!1),t1("gmx:Anchor",!1)),Ti()),t=>{const r=gn("gmd:PT_FreeText","gmd:textGroup","gmd:LocalisedCharacterString")(t),o=n??{};if(!r.length)return o;const s=r.reduce((i,l)=>{const a=lo("locale")(l).toLowerCase().replace(/^#/,""),c=Ti()(l);return a?{...i,[a]:c}:i},{});return o[e]={...o[e],...s},o})}function hf(){return O(m0(t1("gco:DateTime",!1),t1("gco:Date",!1)),Ti(),T1(e=>e?new Date(e):null))}function D6(){return O(t1("gco:Decimal",!1),Ti(),T1(e=>e?Number(e):null))}function Va(){const e=O(t1("gmd:URL",!1),Ti()),n=O(t1("gco:CharacterString",!1),Ti()),t=O(t1("gmx:Anchor",!1),lo("xlink:href"));return O(m0(e,t,n),T1(r=>{try{return new URL(r)}catch{return null}}))}function uf(){return m0(Va(),()=>new URL("http://missing"))}function Tz(){return O(t1("gmd:CI_RoleCode"),lo("codeListValue"),T1(E$))}function Ez(){const e=O(gn("gmd:contactInfo","gmd:CI_Contact","gmd:onlineResource","gmd:CI_OnlineResource","gmd:linkage"),f0(0),Va());return O(zn(O(t1("gmd:organisationName",!1),Y2("name")),e),T1(([[n,t],r])=>({name:n,...r&&{website:r},translations:t})))}function jz(){const e=O(t1("gmd:role"),Tz()),n=O(t1("gmd:positionName"),In()),t=O(t1("gmd:individualName"),In(),T1(a=>a?af(a):[])),r=Ez(),o=fn("gmd:contactInfo","gmd:CI_Contact"),s=O(o,t1("gmd:electronicMailAddress"),In(),T1(a=>null===a?"missing@missing.com":a)),i=O(o,fn("gmd:address","gmd:CI_Address"),zn(O(t1("gmd:deliveryPoint",!1),In()),O(t1("gmd:city",!1),In()),O(t1("gmd:postalCode",!1),In()),O(t1("gmd:country",!1),In())),T1(a=>a.filter(c=>!!c).join(", "))),l=O(o,fn("gmd:phone","gmd:CI_Telephone","gmd:voice"),In());return O(zn(e,n,t,r,s,i,l),T1(([a,c,[h,u],d,v,m,L])=>({email:v,role:a,organization:d,...c&&{position:c},...h&&{firstName:h},...u&&{lastName:u},...m&&{address:m},...L&&{phone:L}})))}const $$=O(VH("gmd:MD_Distribution"),fn("gmd:distributionFormat","gmd:MD_Format","gmd:name"),In(),T1(DH));function Pz(e){const n=O(t1("gmd:linkage"),uf()),t=O(t1("gmd:protocol"),In()),r=O(t,T1(kg)),o=O(fn("gmd:function","gmd:CI_OnLineFunctionCode"),lo("codeListValue")),s=O(r,T1(c=>"other"!==c)),i=O(zn(s,o,t),T1(([c,h,u])=>!c&&"download"===h||/download/i.test(u))),l=O(t1("gmd:name"),Y2("name")),a=O(t1("gmd:description"),Y2("description"));return O(gn("gmd:transferOptions","gmd:MD_DigitalTransferOptions","gmd:onLine","gmd:CI_OnlineResource"),O1(zn(s,i,r,n,l,a,e)),O1(([c,h,u,d,[v,m],[L,S],j])=>{const N={...m,...S};return c?{type:"service",url:d,accessServiceProtocol:u,...v&&("wms"===u||"wfs"===u)&&{identifierInService:v},...v&&{name:v},...L&&{description:L},translations:N}:h?{type:"download",url:d,...v&&{name:v},...L&&{description:L},...j&&{mimeType:j},translations:N}:{type:"link",url:d,...v&&{name:v},...L&&{description:L},translations:N}}))}function U$(e){if(!e)return null;const n=e.match(/^-?P(?:([0-9]+)Y)?(?:([0-9]+)M)?(?:([0-9]+)D)?T?(?:([0-9]+)H)?/);if(!n)return null;const t=parseInt(n[1],10)||0,r=parseInt(n[2],10)||0,o=parseInt(n[3],10)||0,s=parseInt(n[4],10)||0;return t?{per:"year",updatedTimes:1}:1===r?{per:"month",updatedTimes:1}:r?{per:"year",updatedTimes:Math.round(12/r)}:1===o?{per:"day",updatedTimes:1}:o>=1&&o<=7?{per:"week",updatedTimes:Math.round(7/o-1e-4)}:o?{per:"month",updatedTimes:Math.round(30/o)}:s?{per:"day",updatedTimes:Math.round(24/s)}:null}function S2(){return O(t1("gmd:identificationInfo",!1),zn(t1("gmd:MD_DataIdentification",!1),t1("srv:SV_ServiceIdentification",!1)),Cs(e=>null!==e),f0(0))}function df(e){return O(S2(),gn("gmd:citation","gmd:CI_Citation","gmd:date"),Cs(O(gn("gmd:CI_Date","gmd:dateType","gmd:CI_DateTypeCode"),f0(0),lo("codeListValue"),T1(n=>n===e))),f0(0),gn("gmd:CI_Date","gmd:date"),f0(0),hf())}function q$(e){switch(e){case"grid":case"vector":case"tin":case"table":case"point":return e;default:return null}}function W$(e){return O(t1("gmd:fileIdentifier",!1),In())(e)}function pf(e){return O(fn("gmd:hierarchyLevel","gmd:MD_ScopeCode"),lo("codeListValue"),T1(n=>"service"===n?"service":"dataset"))(e)}function G$(e){return O(fn("gmd:contact","gmd:CI_ResponsibleParty"),Ez())(e)}function Y$(e){return df("revision")(e)}function X$(e){return df("creation")(e)}function K$(e){return df("publication")(e)}function Q$(e){return O(t1("gmd:dateStamp"),hf())(e)}function J$(e,n){return O(S2(),fn("gmd:citation","gmd:CI_Citation","gmd:title"),Y2("title",n),T1(([t])=>t))(e)}function tU(e,n){return O(S2(),t1("gmd:abstract",!1),Y2("abstract",n),T1(([t])=>t))(e)}function eU(e){return O(Zr("gmd:contact",!1),O1(t1("gmd:CI_ResponsibleParty",!1)),O1(jz()))(e)}function rU(e){return O(S2(),zn(Zr("gmd:contact",!1),Zr("gmd:pointOfContact",!1)),e=>e.flat(),O1(t1("gmd:CI_ResponsibleParty",!1)),O1(jz()))(e)}function nU(e){if(!e)return null;const n=fn("gmd:CI_Citation","gmd:identifier","gmd:MD_Identifier","gmd:code"),t=O(n,In())(e),r=O(n,Va())(e),o=O(fn("gmd:CI_Citation","gmd:title"),In())(e);return{id:t,...o&&{name:o},...r&&{url:r}}}function oU(e){const n=O(Zr("gmd:MD_KeywordTypeCode"),O1(lo("codeListValue")),T1(r=>function T$(e){if(!e)return"other";switch(e){case"theme":case"place":case"temporal":case"other":return e;default:return"other"}}(r[0])))(e),t=O(fn("gmd:thesaurusName"),nU)(e);return O(Zr("gmd:keyword"),O1(r=>{const[o,s]=Y2("label")(r);return{...t?{thesaurus:t}:{},label:o,type:n,translations:s}}))(e)}function sU(e){return O(S2(),gn("gmd:descriptiveKeywords","gmd:MD_Keywords"),O1(oU),e=>e.flat())(e)}function iU(e){return O(S2(),t1("gmd:status",!1),function I$(){return O(t1("gmd:MD_ProgressCode"),lo("codeListValue"),T1(j$))}())(e)}const B6=O(S2(),Zr("gmd:resourceConstraints",!1));function lU(e){return O(B6,O1(function R$(){return O(Zr("gmd:MD_LegalConstraints",!1),Cs(O(Zr("gmd:MD_RestrictionCode"),O1(lo("codeListValue")),T1(e=>-1===e.indexOf("license")))),O1(zn(Zr("gmd:otherConstraints"),Zr("gmd:useLimitation"))),e=>e.flat(),e=>e.flat(),O1(zn(Y2("text"),Va())),O1(([[e,n],t])=>({...t&&{url:t},text:e,translations:n})))}()),e=>e.flat(),e=>e.flat())(e)}function aU(e){return O(B6,O1(function F$(){return O(gn("gmd:MD_SecurityConstraints","gmd:useLimitation"),e=>e.flat(),O1(zn(Y2("text"),Va())),O1(([[e,n],t])=>({...t&&{url:t},text:e,translations:n})))}()),e=>e.flat())(e)}function cU(e){return O(B6,O1(function O$(){return O(gn("gmd:MD_Constraints","gmd:useLimitation"),e=>e.flat(),O1(zn(Y2("text"),Va())),O1(([[e,n],t])=>({...t&&{url:t},text:e,translations:n})))}()),e=>e.flat())(e)}function hU(e){return O(B6,O1(function N$(){return O(Zr("gmd:MD_LegalConstraints",!1),Cs(O(Zr("gmd:MD_RestrictionCode"),O1(lo("codeListValue")),T1(e=>e.indexOf("license")>-1))),O1(zn(Zr("gmd:otherConstraints"),Zr("gmd:useLimitation"))),e=>e.flat(),e=>e.flat(),O1(zn(Y2("text"),Va())),O1(([[e,n],t])=>({...t&&{url:t},text:e,translations:n})))}()),e=>e.flat())(e)}function uU(e){return O(S2(),Zr("gmd:MD_TopicCategoryCode",!0),O1(Ti()))(e)}function dU(e){return O(S2(),fn("gmd:spatialRepresentationType","gmd:MD_SpatialRepresentationTypeCode"),lo("codeListValue"),T1(q$))(e)}function pU(e){return O(S2(),Zr("gmd:graphicOverview",!1),O1(zn(O(t1("gmd:fileName"),uf()),O(t1("gmd:fileDescription"),In()))),O1(([n,t])=>({url:n,...t&&{description:t}})))(e)}function vU(e,n){return O(fn("gmd:dataQualityInfo","gmd:DQ_DataQuality","gmd:lineage","gmd:LI_Lineage","gmd:statement"),Y2("lineage",n),T1(([t])=>t))(e)}function gU(e){return O(S2(),fn("gmd:resourceMaintenance","gmd:MD_MaintenanceInformation"),function Z$(){return m0(O(t1("gmd:MD_MaintenanceFrequencyCode"),lo("codeListValue"),T1(P$)),O(fn("gmd:userDefinedMaintenanceFrequency","gts:TM_PeriodDuration"),Ti(),T1(U$)),T1(()=>"unknown"))}(),T1(n=>n||"unknown"))(e)}function Iz(){const e=O(t1("gmd:linkage"),uf()),n=O(t1("gmd:protocol"),In()),t=O(n,T1(kg)),r=O(fn("gmd:function","gmd:CI_OnLineFunctionCode"),lo("codeListValue")),o=O(r,T1(l=>"information"===l)),s=O(t1("gmd:name"),Y2("name")),i=O(t1("gmd:description"),Y2("description",{}));return O(gn("gmd:transferOptions","gmd:MD_DigitalTransferOptions","gmd:onLine","gmd:CI_OnlineResource"),O1(zn(o,t,e,s,i)),O1(([l,a,c,[h,u],[d,v]])=>{const m={...u,...v};return l?{type:"link",url:c,...h&&{name:h},...d&&{description:d},translations:m}:{type:"endpoint",endpointUrl:c,protocol:a,...d&&{description:d},translations:m}}))}function fU(e){return"dataset"===pf(e)?O(gn("gmd:distributionInfo","gmd:MD_Distribution"),O1(n=>Pz($$)(n)),e=>e.flat())(e):O(gn("gmd:distributionInfo","gmd:MD_Distribution"),O1(Iz()),e=>e.flat())(e)}function mU(e){return O(S2(),gn("gmd:extent","gmd:EX_Extent","gmd:temporalElement"),O1(zn(fn("gmd:EX_TemporalExtent","gmd:extent","gml:TimePeriod"),fn("gmd:EX_TemporalExtent","gmd:extent","gml:TimeInstant"))),O1(([n,t])=>n?O(zn(O(t1("gml:beginPosition",!1),Ti(),T1(r=>r?new Date(r):null)),O(t1("gml:endPosition",!1),Ti(),T1(r=>r?new Date(r):null))),T1(([r,o])=>({start:r,end:o})))(n):O(t1("gml:timePosition",!1),Ti(),T1(r=>r?new Date(r):null),T1(r=>({start:r})))(t)))(e)}function wU(e){return O(S2(),gn("gmd:extent","gmd:EX_Extent","gmd:geographicElement"),O1(zn(O(t1("gmd:EX_BoundingPolygon"),o=>o?O(t1("gmd:polygon",!1),VO,T1(s=>s?function D$(e){const n=wg(e);n.root.attributes.xmlns="http://www.opengis.net/gml/3.2";const r=gu(tu(n)),o=document.createElement("pre");o.appendChild(r.documentElement);const i=(new Az).readGeometryFromNode(o);return(new Dz).writeGeometryObject(i)}(s):null))(o):null),O(t1("gmd:EX_GeographicBoundingBox"),o=>o?O(zn(O(t1("gmd:westBoundLongitude"),D6()),O(t1("gmd:southBoundLatitude"),D6()),O(t1("gmd:eastBoundLongitude"),D6()),O(t1("gmd:northBoundLatitude"),D6())))(o):null),O(t1("gmd:EX_GeographicDescription"),o=>o?O(fn("gmd:geographicIdentifier","gmd:MD_Identifier","gmd:code"),Y2("description"))(o):[null,{}]))),Cs(([o,s,[i]])=>!!o||!!s||!!i),O1(([o,s,[i,l]])=>({...o&&{geometry:o},...s&&{bbox:s},...i&&{description:i},translations:l})))(e)}function CU(e){const n=Rz(e);return O(Zr("gmd:locale",!1),O1(O(t1("gmd:LanguageCode"),lo("codeListValue"),T1(t=>mu[t.toLowerCase()]))),T1(t=>t.length?t:[n]))(e)}function Rz(e){return O(t1("gmd:language",!1),t1("gmd:LanguageCode"),lo("codeListValue"),T1(n=>n?mu[n.toLowerCase()]:null))(e)}function kU(e){return O(S2(),fn("gmd:citation","gmd:CI_Citation","gmd:identifier","gmd:MD_Identifier","gmd:code"),In())(e)}function T6(e){return(T6="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(e)}function xs(e,n){if(n.length1?"s":"")+" required, but only "+n.length+" present")}function Wl(e){xs(1,arguments);var n=Object.prototype.toString.call(e);return e instanceof Date||"object"===T6(e)&&"[object Date]"===n?new Date(e.getTime()):"number"==typeof e||"[object Number]"===n?new Date(e):(("string"==typeof e||"[object String]"===n)&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function $c(e){if(null===e||!0===e||!1===e)return NaN;var n=Number(e);return isNaN(n)?n:n<0?Math.ceil(n):Math.floor(n)}function E6(e){xs(1,arguments);var t=Wl(e),r=t.getUTCDay(),o=(r<1?7:0)+r-1;return t.setUTCDate(t.getUTCDate()-o),t.setUTCHours(0,0,0,0),t}function Fz(e){xs(1,arguments);var n=Wl(e),t=n.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(t+1,0,4),r.setUTCHours(0,0,0,0);var o=E6(r),s=new Date(0);s.setUTCFullYear(t,0,4),s.setUTCHours(0,0,0,0);var i=E6(s);return n.getTime()>=o.getTime()?t+1:n.getTime()>=i.getTime()?t:t-1}var Oz={};function j6(){return Oz}function P6(e,n){var t,r,o,s,i,l,a,c;xs(1,arguments);var h=j6(),u=$c(null!==(t=null!==(r=null!==(o=null!==(s=n?.weekStartsOn)&&void 0!==s?s:null==n||null===(i=n.locale)||void 0===i||null===(l=i.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==o?o:h.weekStartsOn)&&void 0!==r?r:null===(a=h.locale)||void 0===a||null===(c=a.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==t?t:0);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=Wl(e),v=d.getUTCDay(),m=(v=1&&v<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setUTCFullYear(u+1,0,v),m.setUTCHours(0,0,0,0);var L=P6(m,n),S=new Date(0);S.setUTCFullYear(u,0,v),S.setUTCHours(0,0,0,0);var j=P6(S,n);return h.getTime()>=L.getTime()?u+1:h.getTime()>=j.getTime()?u:u-1}function Mn(e,n){for(var t=e<0?"-":"",r=Math.abs(e).toString();r.length0?r:1-r;return Mn("yy"===t?o%100:o,t.length)},w0_M=function(n,t){var r=n.getUTCMonth();return"M"===t?String(r+1):Mn(r+1,2)},w0_d=function(n,t){return Mn(n.getUTCDate(),t.length)},w0_h=function(n,t){return Mn(n.getUTCHours()%12||12,t.length)},w0_H=function(n,t){return Mn(n.getUTCHours(),t.length)},w0_m=function(n,t){return Mn(n.getUTCMinutes(),t.length)},w0_s=function(n,t){return Mn(n.getUTCSeconds(),t.length)},w0_S=function(n,t){var r=t.length,o=n.getUTCMilliseconds();return Mn(Math.floor(o*Math.pow(10,r-3)),t.length)};function $z(e,n){var t=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),s=r%60;if(0===s)return t+String(o);var i=n||"";return t+String(o)+i+Mn(s,2)}function Uz(e,n){return e%60==0?(e>0?"-":"+")+Mn(Math.abs(e)/60,2):Uc(e,n)}function Uc(e,n){var t=n||"",r=e>0?"-":"+",o=Math.abs(e);return r+Mn(Math.floor(o/60),2)+t+Mn(o%60,2)}const EU={G:function(n,t,r){var o=n.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(o,{width:"abbreviated"});case"GGGGG":return r.era(o,{width:"narrow"});default:return r.era(o,{width:"wide"})}},y:function(n,t,r){if("yo"===t){var o=n.getUTCFullYear();return r.ordinalNumber(o>0?o:1-o,{unit:"year"})}return w0_y(n,t)},Y:function(n,t,r,o){var s=Nz(n,o),i=s>0?s:1-s;return"YY"===t?Mn(i%100,2):"Yo"===t?r.ordinalNumber(i,{unit:"year"}):Mn(i,t.length)},R:function(n,t){return Mn(Fz(n),t.length)},u:function(n,t){return Mn(n.getUTCFullYear(),t.length)},Q:function(n,t,r){var o=Math.ceil((n.getUTCMonth()+1)/3);switch(t){case"Q":return String(o);case"QQ":return Mn(o,2);case"Qo":return r.ordinalNumber(o,{unit:"quarter"});case"QQQ":return r.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(o,{width:"narrow",context:"formatting"});default:return r.quarter(o,{width:"wide",context:"formatting"})}},q:function(n,t,r){var o=Math.ceil((n.getUTCMonth()+1)/3);switch(t){case"q":return String(o);case"qq":return Mn(o,2);case"qo":return r.ordinalNumber(o,{unit:"quarter"});case"qqq":return r.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(o,{width:"narrow",context:"standalone"});default:return r.quarter(o,{width:"wide",context:"standalone"})}},M:function(n,t,r){var o=n.getUTCMonth();switch(t){case"M":case"MM":return w0_M(n,t);case"Mo":return r.ordinalNumber(o+1,{unit:"month"});case"MMM":return r.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(o,{width:"narrow",context:"formatting"});default:return r.month(o,{width:"wide",context:"formatting"})}},L:function(n,t,r){var o=n.getUTCMonth();switch(t){case"L":return String(o+1);case"LL":return Mn(o+1,2);case"Lo":return r.ordinalNumber(o+1,{unit:"month"});case"LLL":return r.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(o,{width:"narrow",context:"standalone"});default:return r.month(o,{width:"wide",context:"standalone"})}},w:function(n,t,r,o){var s=function DU(e,n){xs(1,arguments);var t=Wl(e),r=P6(t,n).getTime()-function SU(e,n){var t,r,o,s,i,l,a,c;xs(1,arguments);var h=j6(),u=$c(null!==(t=null!==(r=null!==(o=null!==(s=n?.firstWeekContainsDate)&&void 0!==s?s:null==n||null===(i=n.locale)||void 0===i||null===(l=i.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==o?o:h.firstWeekContainsDate)&&void 0!==r?r:null===(a=h.locale)||void 0===a||null===(c=a.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==t?t:1),d=Nz(e,n),v=new Date(0);return v.setUTCFullYear(d,0,u),v.setUTCHours(0,0,0,0),P6(v,n)}(t,n).getTime();return Math.round(r/6048e5)+1}(n,o);return"wo"===t?r.ordinalNumber(s,{unit:"week"}):Mn(s,t.length)},I:function(n,t,r){var o=function VU(e){xs(1,arguments);var n=Wl(e),t=E6(n).getTime()-function bU(e){xs(1,arguments);var n=Fz(e),t=new Date(0);return t.setUTCFullYear(n,0,4),t.setUTCHours(0,0,0,0),E6(t)}(n).getTime();return Math.round(t/6048e5)+1}(n);return"Io"===t?r.ordinalNumber(o,{unit:"week"}):Mn(o,t.length)},d:function(n,t,r){return"do"===t?r.ordinalNumber(n.getUTCDate(),{unit:"date"}):w0_d(n,t)},D:function(n,t,r){var o=function zU(e){xs(1,arguments);var n=Wl(e),t=n.getTime();n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0);var r=n.getTime();return Math.floor((t-r)/864e5)+1}(n);return"Do"===t?r.ordinalNumber(o,{unit:"dayOfYear"}):Mn(o,t.length)},E:function(n,t,r){var o=n.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(o,{width:"short",context:"formatting"});default:return r.day(o,{width:"wide",context:"formatting"})}},e:function(n,t,r,o){var s=n.getUTCDay(),i=(s-o.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return Mn(i,2);case"eo":return r.ordinalNumber(i,{unit:"day"});case"eee":return r.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(s,{width:"short",context:"formatting"});default:return r.day(s,{width:"wide",context:"formatting"})}},c:function(n,t,r,o){var s=n.getUTCDay(),i=(s-o.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return Mn(i,t.length);case"co":return r.ordinalNumber(i,{unit:"day"});case"ccc":return r.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(s,{width:"narrow",context:"standalone"});case"cccccc":return r.day(s,{width:"short",context:"standalone"});default:return r.day(s,{width:"wide",context:"standalone"})}},i:function(n,t,r){var o=n.getUTCDay(),s=0===o?7:o;switch(t){case"i":return String(s);case"ii":return Mn(s,t.length);case"io":return r.ordinalNumber(s,{unit:"day"});case"iii":return r.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(o,{width:"short",context:"formatting"});default:return r.day(o,{width:"wide",context:"formatting"})}},a:function(n,t,r){var s=n.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(s,{width:"narrow",context:"formatting"});default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(n,t,r){var s,o=n.getUTCHours();switch(s=12===o?"noon":0===o?"midnight":o/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(s,{width:"narrow",context:"formatting"});default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(n,t,r){var s,o=n.getUTCHours();switch(s=o>=17?"evening":o>=12?"afternoon":o>=4?"morning":"night",t){case"B":case"BB":case"BBB":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(s,{width:"narrow",context:"formatting"});default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(n,t,r){if("ho"===t){var o=n.getUTCHours()%12;return 0===o&&(o=12),r.ordinalNumber(o,{unit:"hour"})}return w0_h(n,t)},H:function(n,t,r){return"Ho"===t?r.ordinalNumber(n.getUTCHours(),{unit:"hour"}):w0_H(n,t)},K:function(n,t,r){var o=n.getUTCHours()%12;return"Ko"===t?r.ordinalNumber(o,{unit:"hour"}):Mn(o,t.length)},k:function(n,t,r){var o=n.getUTCHours();return 0===o&&(o=24),"ko"===t?r.ordinalNumber(o,{unit:"hour"}):Mn(o,t.length)},m:function(n,t,r){return"mo"===t?r.ordinalNumber(n.getUTCMinutes(),{unit:"minute"}):w0_m(n,t)},s:function(n,t,r){return"so"===t?r.ordinalNumber(n.getUTCSeconds(),{unit:"second"}):w0_s(n,t)},S:function(n,t){return w0_S(n,t)},X:function(n,t,r,o){var i=(o._originalDate||n).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return Uz(i);case"XXXX":case"XX":return Uc(i);default:return Uc(i,":")}},x:function(n,t,r,o){var i=(o._originalDate||n).getTimezoneOffset();switch(t){case"x":return Uz(i);case"xxxx":case"xx":return Uc(i);default:return Uc(i,":")}},O:function(n,t,r,o){var i=(o._originalDate||n).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+$z(i,":");default:return"GMT"+Uc(i,":")}},z:function(n,t,r,o){var i=(o._originalDate||n).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+$z(i,":");default:return"GMT"+Uc(i,":")}},t:function(n,t,r,o){return Mn(Math.floor((o._originalDate||n).getTime()/1e3),t.length)},T:function(n,t,r,o){return Mn((o._originalDate||n).getTime(),t.length)}};var Zz=function(n,t){switch(n){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},qz=function(n,t){switch(n){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}};const IU={p:qz,P:function(n,t){var i,r=n.match(/(P+)(p+)?/)||[],o=r[1],s=r[2];if(!s)return Zz(n,t);switch(o){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;default:i=t.dateTime({width:"full"})}return i.replace("{{date}}",Zz(o,t)).replace("{{time}}",qz(s,t))}};var FU=["D","DD"],OU=["YY","YYYY"];function Wz(e,n,t){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(n,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(n,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(n,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(n,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var UU={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function vf(e){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.width?String(n.width):e.defaultWidth;return e.formats[t]||e.formats[e.defaultWidth]}}var XU={date:vf({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:vf({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:vf({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},QU={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function wu(e){return function(n,t){var o;if("formatting"===(null!=t&&t.context?String(t.context):"standalone")&&e.formattingValues){var s=e.defaultFormattingWidth||e.defaultWidth,i=null!=t&&t.width?String(t.width):s;o=e.formattingValues[i]||e.formattingValues[s]}else{var l=e.defaultWidth,a=null!=t&&t.width?String(t.width):e.defaultWidth;o=e.values[a]||e.values[l]}return o[e.argumentCallback?e.argumentCallback(n):n]}}function Cu(e){return function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.width,s=n.match(r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth]);if(!s)return null;var c,i=s[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],a=Array.isArray(l)?function uZ(e,n){for(var t=0;t0?"in "+o:o+" ago":o},formatLong:XU,formatRelative:function(n,t,r,o){return QU[n]},localize:{ordinalNumber:function(n,t){var r=Number(n),o=r%100;if(o>20||o<10)switch(o%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:wu({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:wu({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(n){return n-1}}),month:wu({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:wu({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:wu({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:function dZ(e){return function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.match(e.matchPattern);if(!r)return null;var o=r[0],s=n.match(e.parsePattern);if(!s)return null;var i=e.valueCallback?e.valueCallback(s[0]):s[0];return{value:i=t.valueCallback?t.valueCallback(i):i,rest:n.slice(o.length)}}}({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(n){return parseInt(n,10)}}),era:Cu({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Cu({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(n){return n+1}}),month:Cu({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Cu({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Cu({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};var LZ=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,VZ=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,SZ=/^'([^]*?)'?$/,AZ=/''/g,DZ=/[a-zA-Z]/;function I6(e,n,t){var r,o,s,i,l,a,c,h,u,d,v,m,L,S,j,N,Ft,Ot;xs(2,arguments);var $t=String(n),mt=j6(),De=null!==(r=null!==(o=t?.locale)&&void 0!==o?o:mt.locale)&&void 0!==r?r:bZ,me=$c(null!==(s=null!==(i=null!==(l=null!==(a=t?.firstWeekContainsDate)&&void 0!==a?a:null==t||null===(c=t.locale)||void 0===c||null===(h=c.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==l?l:mt.firstWeekContainsDate)&&void 0!==i?i:null===(u=mt.locale)||void 0===u||null===(d=u.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==s?s:1);if(!(me>=1&&me<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Ve=$c(null!==(v=null!==(m=null!==(L=null!==(S=t?.weekStartsOn)&&void 0!==S?S:null==t||null===(j=t.locale)||void 0===j||null===(N=j.options)||void 0===N?void 0:N.weekStartsOn)&&void 0!==L?L:mt.weekStartsOn)&&void 0!==m?m:null===(Ft=mt.locale)||void 0===Ft||null===(Ot=Ft.options)||void 0===Ot?void 0:Ot.weekStartsOn)&&void 0!==v?v:0);if(!(Ve>=0&&Ve<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!De.localize)throw new RangeError("locale must contain localize property");if(!De.formatLong)throw new RangeError("locale must contain formatLong property");var Te=Wl(e);if(!function xU(e){if(xs(1,arguments),!function _U(e){return xs(1,arguments),e instanceof Date||"object"===T6(e)&&"[object Date]"===Object.prototype.toString.call(e)}(e)&&"number"!=typeof e)return!1;var n=Wl(e);return!isNaN(Number(n))}(Te))throw new RangeError("Invalid time value");var Pe=function RU(e){var n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),e.getTime()-n.getTime()}(Te),Se=function yU(e,n){return xs(2,arguments),function MU(e,n){xs(2,arguments);var t=Wl(e).getTime(),r=$c(n);return new Date(t+r)}(e,-$c(n))}(Te,Pe),Ee={firstWeekContainsDate:me,weekStartsOn:Ve,locale:De,_originalDate:Te},qe=$t.match(VZ).map(function(We){var je=We[0];return"p"===je||"P"===je?(0,IU[je])(We,De.formatLong):We}).join("").match(LZ).map(function(We){if("''"===We)return"'";var je=We[0];if("'"===je)return function BZ(e){var n=e.match(SZ);return n?n[1].replace(AZ,"'"):e}(We);var A1=EU[je];if(A1)return!(null!=t&&t.useAdditionalWeekYearTokens)&&function $U(e){return-1!==OU.indexOf(e)}(We)&&Wz(We,n,String(e)),!(null!=t&&t.useAdditionalDayOfYearTokens)&&function NU(e){return-1!==FU.indexOf(e)}(We)&&Wz(We,n,String(e)),A1(Se,We,De.localize,Ee);if(je.match(DZ))throw new RangeError("Format string contains an unescaped latin alphabet character `"+je+"`");return We}).join("");return qe}function Gz(e,n,t,r){if(!t)return e;function o(s,i){return O(rn("gmd:textGroup","gmd:LocalisedCharacterString"),P1("locale",`#${s.toUpperCase()}`),b2(i))}return O(e,L2("gmd:PT_FreeText"),ao("gmd:PT_FreeText"),e1(o(r,n),...Object.entries(t).map(([s,i])=>o(s,i))))}function Tn(e){return Bc(O(Ei("gco:CharacterString"),b2(e)))}function di(e,n,t){return Gz(Tn(e),e,n,t)}function R6(e){return Bc(O(_o("gmd:linkage","gmd:URL"),b2(e.toString())))}function gf(e,n){return Bc(O(Ei("gmx:Anchor"),P1("xlink:href",e.toString()),n?b2(n):Ao))}function ff(e,n,t,r){return Gz(gf(e,n),n,t,r)}function F6(e){return O(Ei("gco:DateTime"),b2(I6(e,"yyyy-MM-dd'T'HH:mm:ss")))}function O6(e){return Bc(O(Ei("gco:Decimal"),b2(e.toString())))}function Yz(e){switch(e){case"completed":return"completed";case"deprecated":return"deprecated";case"ongoing":return"onGoing";case"removed":return"removed";case"under_development":return"underDevelopment";default:throw new Error(`Could not determine progress code from status: ${e}`)}}function mf(e){switch(e){case"author":return"author";case"collaborator":return"collaborator";case"contributor":return"contributor";case"custodian":return"custodian";case"distributor":return"distributor";case"editor":return"editor";case"funder":return"funder";case"mediator":return"mediator";case"originator":return"originator";case"other":return"other";case"owner":return"owner";case"point_of_contact":return"pointOfContact";case"principal_investigator":return"principalInvestigator";case"processor":return"processor";case"publisher":return"publisher";case"resource_provider":return"resourceProvider";case"rights_holder":return"rightsHolder";case"sponsor":return"sponsor";case"stakeholder":return"stakeholder";case"unspecified":return"unspecified";case"user":return"user";default:throw new Error(`Could not determine role code from role: ${e}`)}}function Xz(e,n,t){const r=Bz(e.firstName,e.lastName),o=O(rn("gmd:address","gmd:CI_Address"),e1(O(m1("gmd:electronicMailAddress"),Tn(e.email))),e.address?e1(O(m1("gmd:deliveryPoint"),Tn(e.address))):Ao),s=O(rn("gmd:contactInfo","gmd:CI_Contact"),e.phone?e1(O(rn("gmd:phone","gmd:CI_Telephone","gmd:voice"),Tn(e.phone))):Ao,e1(o),e.organization?.website?e1(O(rn("gmd:onlineResource","gmd:CI_OnlineResource"),R6(e.organization.website))):Ao);return e1(O(m1("gmd:CI_ResponsibleParty"),r?e1(O(m1("gmd:individualName"),Tn(r))):Ao,e.position?e1(O(m1("gmd:positionName"),Tn(e.position))):Ao,e.organization?.name?e1(O(m1("gmd:organisationName"),Tn(e.organization.name))):Ao,e1(s,O(rn("gmd:role","gmd:CI_RoleCode"),P1("codeList","http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#CI_RoleCode"),P1("codeListValue",mf(e.role))))))}function wf(e,n,t){return"security"===n?O(rn("gmd:resourceConstraints","gmd:MD_SecurityConstraints"),e1(O(rn("gmd:classification","gmd:MD_ClassificationCode"),P1("codeList","http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#MD_ClassificationCode"),P1("codeListValue","restricted")),O(m1("gmd:useLimitation"),"url"in e?ff(e.url,e.text,e.translations?.text,t):di(e.text,e.translations?.text,t)))):"legal"===n?O(rn("gmd:resourceConstraints","gmd:MD_LegalConstraints"),e1(O(rn("gmd:accessConstraints","gmd:MD_RestrictionCode"),P1("codeList","http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#MD_RestrictionCode"),P1("codeListValue","otherRestrictions")),O(m1("gmd:otherConstraints"),"url"in e?ff(e.url,e.text,e.translations?.text,t):di(e.text,e.translations?.text,t)))):O(rn("gmd:resourceConstraints","gmd:MD_Constraints","gmd:useLimitation"),"url"in e?ff(e.url,e.text,e.translations?.text,t):di(e.text,e.translations?.text,t))}function Cf(){return ji(O(Zr("gmd:resourceConstraints"),Cs(O(a6,e=>0===e.length))))}function qZ(e){return e1(O(rn("gmd:distributionFormat","gmd:MD_Format"),e1(O(m1("gmd:name"),Tn(e)),O(m1("gmd:version"),Tn("1.0")))))}function Kz(){return rn("gmd:distributionInfo","gmd:MD_Distribution")}function Qz(e,n,t,r){let o,s,i;"service"===e.type?(o=e.identifierInService,s="download",i=function TZ(e){switch(e.accessServiceProtocol.toLowerCase()){case"wfs":return"OGC:WFS";case"wms":return"OGC:WMS";case"wps":return"OGC:WPS";default:return e.accessServiceProtocol}}(e)):"download"===e.type?(o=e.name,s="download",i="WWW:DOWNLOAD"):(o=e.name,s="information",i="WWW:LINK");const l=e1(O(rn("gmd:transferOptions","gmd:MD_DigitalTransferOptions","gmd:onLine","gmd:CI_OnlineResource"),R6(e.url),"description"in e?e1(O(m1("gmd:description"),di(e.description,e.translations?.description,r))):Ao,void 0!==o?e1(O(m1("gmd:name"),di(o,e.translations?.name,r))):Ao,e1(O(m1("gmd:protocol"),Tn(i)),O(rn("gmd:function","gmd:CI_OnLineFunctionCode"),P1("codeList","http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#CI_OnLineFunctionCode"),P1("codeListValue",s)))));return O("mimeType"in e?n(e.mimeType):Ao,l)}function Jn(){return e=>{let t="gmd:MD_DataIdentification";return"service"===pf(e)&&(t="srv:SV_ServiceIdentification"),_o("gmd:identificationInfo",t)(e)}}function GZ(e,n){O(Ei("gmd:fileIdentifier"),Tn(e.uniqueIdentifier))(n)}function YZ(e,n){O(_o("gmd:hierarchyLevel","gmd:MD_ScopeCode"),P1("codeList","http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#MD_ScopeCode"),P1("codeListValue",e.kind))(n)}function XZ(e,n){O(Jn(),_o("gmd:citation","gmd:CI_Citation","gmd:title"),di(e.title,e.translations?.title,e.defaultLanguage))(n)}function KZ(e,n){O(Jn(),Ei("gmd:abstract"),di(e.abstract,e.translations?.abstract,e.defaultLanguage))(n)}function QZ(e,n){O(Jn(),_o("gmd:status","gmd:MD_ProgressCode"),P1("codeList","http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#MD_ProgressCode"),P1("codeListValue",Yz(e.status)))(n)}function JZ(e,n){O(L2("gmd:contact"),e1(...e.contacts.map(t=>O(m1("gmd:contact"),Xz(t)))))(n)}function tq(e,n){O(Jn(),L2("gmd:pointOfContact"),L2("gmd:contact"),e1(...e.contactsForResource.map(t=>O(m1("gmd:pointOfContact"),Xz(t)))))(n)}function eq(e,n){O(Jn(),function PZ(){return ji(O(gn("gmd:descriptiveKeywords")))}(),function RZ(e,n){return e1(...e.reduce((r,o)=>{const s=o.thesaurus?.id,i=o.type;let l=r.find(a=>s?a[0].thesaurus?.id===s:a[0].type===i&&!a[0].thesaurus);return l||(l=[],r.push(l)),l.push(o),r},[]).map(r=>O(rn("gmd:descriptiveKeywords","gmd:MD_Keywords"),e1(O(rn("gmd:type","gmd:MD_KeywordTypeCode"),P1("codeList","http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#MD_KeywordTypeCode"),P1("codeListValue",r[0].type))),r[0].thesaurus?e1(function IZ(e){return O(rn("gmd:thesaurusName","gmd:CI_Citation"),e1(O(m1("gmd:title"),Tn(e.name||e.id)),O(rn("gmd:identifier","gmd:MD_Identifier"),e1(O(m1("gmd:code"),e.url?gf(e.url,e.id):Tn(e.id))))))}(r[0].thesaurus)):Ao,e1(...r.map(o=>O(m1("gmd:keyword"),di(o.label,o.translations?.label,n)))))))}(e.keywords,e.defaultLanguage))(n)}function rq(e,n){O(Jn(),L2("gmd:topicCategory"),e1(...e.topics.map(t=>O(rn("gmd:topicCategory","gmd:MD_TopicCategoryCode"),b2(t)))))(n)}function nq(e,n){O(Jn(),function $Z(){return ji(O(Zr("gmd:resourceConstraints"),Cs(O(gn("gmd:MD_LegalConstraints","gmd:accessConstraints","gmd:MD_RestrictionCode"),O1(lo("codeListValue")),e=>e.some(n=>"license"===n)))))}(),e1(...e.licenses.map(t=>function UZ(e,n){return O(rn("gmd:resourceConstraints","gmd:MD_LegalConstraints"),e1(O(rn("gmd:accessConstraints","gmd:MD_RestrictionCode"),P1("codeList","http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#MD_RestrictionCode"),P1("codeListValue","license")),O(rn("gmd:accessConstraints","gmd:MD_RestrictionCode"),P1("codeList","http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#MD_RestrictionCode"),P1("codeListValue","otherRestrictions")),O(m1("gmd:otherConstraints"),"url"in e?gf(e.url,e.text):di(e.text,e.translations?.text,n))))}(t,e.defaultLanguage))))(n)}function oq(e,n){O(Jn(),function NZ(){return Bc(O(Zr("gmd:resourceConstraints"),O1(ji(O(Zr("gmd:MD_LegalConstraints"),Cs(O(gn("gmd:accessConstraints","gmd:MD_RestrictionCode"),O1(lo("codeListValue")),e=>e.every(n=>"license"!==n))))))))}(),Cf(),e1(...e.legalConstraints.map(t=>wf(t,"legal",e.defaultLanguage))))(n)}function sq(e,n){O(Jn(),function OZ(){return Bc(O(Zr("gmd:resourceConstraints"),O1(ji(O(Zr("gmd:MD_SecurityConstraints"),Cs(O(gn("gmd:useLimitation"),e=>e.length>0)))))))}(),Cf(),e1(...e.securityConstraints.map(t=>wf(t,"security",e.defaultLanguage))))(n)}function iq(e,n){O(Jn(),function FZ(){return Bc(O(Zr("gmd:resourceConstraints"),O1(ji(O(Zr("gmd:MD_Constraints"),Cs(O(gn("gmd:useLimitation"),e=>e.length>0)))))))}(),Cf(),e1(...e.otherConstraints.map(t=>wf(t,"other",e.defaultLanguage))))(n)}function lq(e,n){O(Jn(),Ei("gmd:resourceMaintenance"),e=>e?(e.children.forEach(n=>n.parent=null),e.children=[],e):null,Ei("gmd:MD_MaintenanceInformation"),"object"==typeof e.updateFrequency?O(ru("gmd:userDefinedMaintenanceFrequency","gts:TM_PeriodDuration"),b2(function jZ(e){const n={years:0,months:0,weeks:0,days:0,hours:0};switch(e.per){case"day":e.updatedTimes<=1?n.days=1:n.hours=Math.round(24/e.updatedTimes);break;case"week":n.days=Math.round(7/e.updatedTimes-1e-4);break;case"month":e.updatedTimes<=1?n.months=1:n.days=Math.round(30/e.updatedTimes);break;case"year":e.updatedTimes<=1?n.years=1:n.months=Math.round(12/e.updatedTimes)}return`P${n.years}Y${n.months}M${n.days}D${n.hours>0?`T${n.hours}H`:""}`}(e.updateFrequency))):O(ru("gmd:maintenanceAndUpdateFrequency","gmd:MD_MaintenanceFrequencyCode"),P1("codeList","http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#MD_MaintenanceFrequencyCode"),P1("codeListValue",function EZ(e){switch(e){case"asNeeded":return"asNeeded";case"unknown":return"unknown";case"irregular":return"irregular";case"notPlanned":return"notPlanned";case"continual":return"continual";case"periodic":return"periodic"}}(e.updateFrequency))))(n)}function aq(e,n){O(Ei("gmd:dateStamp"),e=>e?(e.children.forEach(n=>n.parent=null),e.children=[],e):null,F6(e.recordUpdated))(n)}function kf(e){return O(Jn(),_o("gmd:citation","gmd:CI_Citation"),ji(O(gn("gmd:date"),Cs(O(fn("gmd:CI_Date","gmd:dateType","gmd:CI_DateTypeCode"),lo("codeListValue"),T1(n=>n===e))))))}function _f(e,n){return O(Jn(),_o("gmd:citation","gmd:CI_Citation"),e1(O(rn("gmd:date","gmd:CI_Date"),e1(O(m1("gmd:date"),F6(e)),O(rn("gmd:dateType","gmd:CI_DateTypeCode"),P1("codeList","http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#CI_DateTypeCode"),P1("codeListValue",n))))))}function cq(e,n){kf("creation")(n),e.resourceCreated&&_f(e.resourceCreated,"creation")(n)}function hq(e,n){kf("revision")(n),e.resourceUpdated&&_f(e.resourceUpdated,"revision")(n)}function uq(e,n){kf("publication")(n),e.resourcePublished&&_f(e.resourcePublished,"publication")(n)}function dq(e,n){e.spatialRepresentation?O(Jn(),_o("gmd:spatialRepresentationType","gmd:MD_SpatialRepresentationTypeCode"),P1("codeList","http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#MD_SpatialRepresentationTypeCode"),P1("codeListValue",e.spatialRepresentation))(n):O(Jn(),L2("gmd:spatialRepresentationType"))(n)}function pq(e,n){O(Jn(),L2("gmd:graphicOverview"),e1(...e.overviews.map(t=>O(rn("gmd:graphicOverview","gmd:MD_BrowseGraphic"),e1(O(m1("gmd:fileName"),Tn(t.url.toString()))),"description"in t?e1(O(m1("gmd:fileDescription"),Tn(t.description))):Ao))))(n)}function vq(e,n){O(_o("gmd:dataQualityInfo","gmd:DQ_DataQuality","gmd:lineage","gmd:LI_Lineage","gmd:statement"),di(e.lineage,e.translations?.lineage,e.defaultLanguage))(n)}function fq(e){let n,t,r;"endpoint"===e.type?(n=e.endpointUrl.toString(),r=function gq(e){switch(e.protocol.toLowerCase()){case"wfs":return"OGC:WFS";case"wms":return"OGC:WMS";case"wps":return"OGC:WPS";default:return e.protocol}}(e),t="download"):(n=e.url.toString(),t="information",r="WWW:LINK");const o=e1(O(m1("gmd:transferOptions"),ru("gmd:MD_DigitalTransferOptions","gmd:onLine","gmd:CI_OnlineResource"),R6(n),"description"in e?e1(O(m1("gmd:description"),Tn(e.description))):Ao,"name"in e?e1(O(m1("gmd:name"),Tn(e.name))):Ao,e1(O(m1("gmd:protocol"),Tn(r)),O(rn("gmd:function","gmd:CI_OnLineFunctionCode"),P1("codeList","http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#CI_OnLineFunctionCode"),P1("codeListValue",t)))));return O(rn("gmd:distributionInfo","gmd:MD_Distribution"),o)}function Jz(e,n){e1(...e.onlineResources.map(fq))(n)}function wq(e,n){(function ZZ(){return L2("gmd:distributionInfo")})()(n),"dataset"!==e.kind?Jz(e,n):function mq(e,n){e1(...e.onlineResources.map(t=>O(Kz(),Qz(t,qZ,0,e.defaultLanguage))))(n)}(e,n)}function Cq(e,n){O(Jn(),_o("gmd:extent","gmd:EX_Extent"),L2("gmd:temporalElement"),e1(...e.temporalExtents.map(t=>O(rn("gmd:temporalElement","gmd:EX_TemporalExtent"),e1("start"in t&&"end"in t?O(rn("gmd:extent","gml:TimePeriod"),e1(O(m1("gml:beginPosition"),O(t.start?b2(I6(t.start,"yyyy-MM-dd")):P1("indeterminatePosition","unknown"))),O(m1("gml:endPosition"),O(t.end?b2(I6(t.end,"yyyy-MM-dd")):P1("indeterminatePosition","unknown"))))):O(rn("gmd:extent","gml:TimeInstant","gml:timePosition"),t.start?b2(I6(t.start,"yyyy-MM-dd")):P1("indeterminatePosition","unknown")))))))(n)}function kq(e,n){O(Jn(),_o("gmd:extent","gmd:EX_Extent"),L2("gmd:geographicElement"),e1(...e.spatialExtents.map(s=>O(m1("gmd:geographicElement"),e1((s=>s?O(m1("gmd:EX_BoundingPolygon"),e1(O(m1("gmd:polygon"),e1(()=>function B$(e){const t=(new Dz).readGeometry(e),s=(new Az).writeGeometryNode(t).firstElementChild;return Cg(mg((new XMLSerializer).serializeToString(s)))}(s))))):null)(s.geometry),(s=>s?O(m1("gmd:EX_GeographicBoundingBox"),e1(O(m1("gmd:westBoundLongitude"),O6(s[0])),O(m1("gmd:eastBoundLongitude"),O6(s[2])),O(m1("gmd:southBoundLatitude"),O6(s[1])),O(m1("gmd:northBoundLatitude"),O6(s[3])))):null)(s.bbox),((s,i)=>s?O(rn("gmd:EX_GeographicDescription","gmd:geographicIdentifier","gmd:MD_Identifier","gmd:code"),di(s,i,e.defaultLanguage)):null)(s.description,s.translations?.description))))))(n)}function _q(e,n){if(L2("gmd:locale")(n),!e.otherLanguages?.length)return;const t=r=>O(rn("gmd:locale","gmd:PT_Locale"),P1("id",r.toUpperCase()),ru("gmd:languageCode","gmd:LanguageCode"),P1("codeList","http://www.loc.gov/standards/iso639-2/"),P1("codeListValue",cf[r]));e1(t(e.defaultLanguage),...e.otherLanguages.map(t))(n)}function xq(e,n){const t=cf[e.defaultLanguage.toLowerCase()];return O(_o("gmd:language","gmd:LanguageCode"),P1("codeList","http://www.loc.gov/standards/iso639-2/"),P1("codeListValue",t))(n)}function Mq(e,n){O(Jn(),_o("gmd:citation","gmd:CI_Citation"),L2("gmd:identifier"),e.resourceIdentifier?O(ru("gmd:identifier","gmd:MD_Identifier","gmd:code"),Tn(e.resourceIdentifier)):Ao)(n)}class xf extends bH{constructor(){super(...arguments),this.readers={uniqueIdentifier:W$,kind:pf,ownerOrganization:G$,recordUpdated:Q$,recordCreated:()=>{},recordPublished:()=>{},resourceIdentifier:kU,resourceUpdated:Y$,resourceCreated:X$,resourcePublished:K$,title:J$,abstract:tU,contacts:eU,contactsForResource:rU,keywords:sU,topics:uU,licenses:hU,legalConstraints:lU,securityConstraints:aU,otherConstraints:cU,status:iU,updateFrequency:gU,spatialRepresentation:dU,overviews:pU,lineage:vU,onlineResources:fU,temporalExtents:mU,spatialExtents:wU,otherLanguages:CU,defaultLanguage:Rz,extras:()=>{},landingPage:()=>{},translations:()=>{}},this.writers={uniqueIdentifier:GZ,kind:YZ,ownerOrganization:()=>{},recordUpdated:aq,recordCreated:()=>{},recordPublished:()=>{},resourceIdentifier:Mq,resourceUpdated:hq,resourceCreated:cq,resourcePublished:uq,title:XZ,abstract:KZ,contacts:JZ,contactsForResource:tq,keywords:eq,topics:rq,licenses:nq,legalConstraints:oq,securityConstraints:sq,otherConstraints:iq,status:QZ,updateFrequency:lq,spatialRepresentation:dq,overviews:pq,lineage:vq,onlineResources:wq,temporalExtents:Cq,spatialExtents:kq,otherLanguages:_q,defaultLanguage:xq,extras:()=>{},landingPage:()=>{},translations:()=>{}}}beforeDocumentCreation(n){}afterRecordRead(n){function t(r){if("translations"in r)for(const o in r.translations){const s=r.translations[o]??{};if(n.defaultLanguage in s&&delete s[n.defaultLanguage],0!==Object.keys(s).length)for(const i in s)n.otherLanguages.includes(i)||n.otherLanguages.push(i);else delete r.translations[o]}}return t(n),n.keywords.map(t),n.onlineResources.map(t),n.licenses.map(t),n.legalConstraints.map(t),n.securityConstraints.map(t),n.otherConstraints.map(t),n.contacts.map(r=>t(r.organization)),n.contactsForResource.map(r=>t(r.organization)),t(n.ownerOrganization),"dataset"===n.kind&&n.spatialExtents.map(t),n.otherLanguages.includes(n.defaultLanguage)&&(n.otherLanguages=n.otherLanguages.filter(r=>r!==n.defaultLanguage)),n}readRecord(n){var t=this;return Bi(function*(){const o=Cg(mg(n)),s={},i=t.readers.uniqueIdentifier(o,s),l=t.readers.kind(o,s),a=t.readers.ownerOrganization(o,s),c=t.readers.title(o,s),h=t.readers.abstract(o,s),u=t.readers.contacts(o,s),d=t.readers.contactsForResource(o,s),v=t.readers.recordUpdated(o,s),m=t.readers.recordCreated(o,s),L=t.readers.recordPublished(o,s),S=t.readers.resourceCreated(o,s),j=t.readers.resourceUpdated(o,s),N=t.readers.resourcePublished(o,s),Ft=t.readers.keywords(o,s),Ot=t.readers.topics(o,s),$t=t.readers.legalConstraints(o,s),mt=t.readers.otherConstraints(o,s),De=t.readers.securityConstraints(o,s),me=t.readers.licenses(o,s),Ve=t.readers.overviews(o,s),Te=t.readers.landingPage(o,s),Pe=t.readers.onlineResources(o,s),Se=t.readers.otherLanguages(o,s),Ee=t.readers.defaultLanguage(o,s),qe=t.readers.resourceIdentifier(o,s);if("dataset"===l){const We=t.readers.status(o,s),je=t.readers.spatialRepresentation(o,s),A1=t.readers.spatialExtents(o,s),yr=t.readers.temporalExtents(o,s),kn=t.readers.lineage(o,s),os=t.readers.updateFrequency(o,s);return t.afterRecordRead({uniqueIdentifier:i,...qe&&{resourceIdentifier:qe},kind:l,otherLanguages:Se,defaultLanguage:Ee,...m&&{recordCreated:m},...L&&{recordPublished:L},recordUpdated:v,...S&&{resourceCreated:S},...j&&{resourceUpdated:j},...N&&{resourcePublished:N},status:We,title:c,abstract:h,ownerOrganization:a,contacts:u,contactsForResource:d,keywords:Ft,topics:Ot,licenses:me,legalConstraints:$t,securityConstraints:De,otherConstraints:mt,lineage:kn,...je&&{spatialRepresentation:je},overviews:Ve,spatialExtents:A1,temporalExtents:yr,onlineResources:Pe,updateFrequency:os,translations:s,...Te&&{landingPage:Te}})}return t.afterRecordRead({uniqueIdentifier:i,...qe&&{resourceIdentifier:qe},kind:l,otherLanguages:Se,defaultLanguage:Ee,...m&&{recordCreated:m},...L&&{recordPublished:L},recordUpdated:v,...S&&{resourceCreated:S},...j&&{resourceUpdated:j},...N&&{resourcePublished:N},title:c,abstract:h,ownerOrganization:a,contacts:u,contactsForResource:d,keywords:Ft,topics:Ot,licenses:me,legalConstraints:$t,securityConstraints:De,otherConstraints:mt,overviews:Ve,onlineResources:Pe,translations:s,...Te&&{landingPage:Te}})})()}writeRecord(n,t){var r=this;return Bi(function*(){let o,s;if(t){const l=mg(t),a=yield r.readRecord(t);o=Cg(l),s=c=>null===a||!s6(n[c],a[c])}else o=m1("gmd:MD_Metadata")(),s=()=>!0;return s("uniqueIdentifier")&&r.writers.uniqueIdentifier(n,o),s("kind")&&r.writers.kind(n,o),s("defaultLanguage")&&r.writers.defaultLanguage(n,o),s("contacts")&&r.writers.contacts(n,o),s("ownerOrganization")&&r.writers.ownerOrganization(n,o),s("recordUpdated")&&r.writers.recordUpdated(n,o),s("recordCreated")&&r.writers.recordCreated(n,o),s("recordPublished")&&r.writers.recordPublished(n,o),s("title")&&r.writers.title(n,o),s("abstract")&&r.writers.abstract(n,o),s("resourceCreated")&&r.writers.resourceCreated(n,o),s("resourcePublished")&&r.writers.resourcePublished(n,o),s("resourceUpdated")&&r.writers.resourceUpdated(n,o),s("contactsForResource")&&r.writers.contactsForResource(n,o),s("keywords")&&r.writers.keywords(n,o),s("topics")&&r.writers.topics(n,o),s("legalConstraints")&&r.writers.legalConstraints(n,o),s("securityConstraints")&&r.writers.securityConstraints(n,o),s("licenses")&&r.writers.licenses(n,o),s("otherConstraints")&&r.writers.otherConstraints(n,o),s("onlineResources")&&r.writers.onlineResources(n,o),s("resourceIdentifier")&&r.writers.resourceIdentifier(n,o),"dataset"===n.kind&&(s("status")&&r.writers.status(n,o),s("updateFrequency")&&r.writers.updateFrequency(n,o),s("spatialRepresentation")&&r.writers.spatialRepresentation(n,o),s("overviews")&&r.writers.overviews(n,o),s("temporalExtents")&&r.writers.temporalExtents(n,o),s("spatialExtents")&&r.writers.spatialExtents(n,o),s("lineage")&&r.writers.lineage(n,o)),s("otherLanguages")&&r.writers.otherLanguages(n,o),r.beforeDocumentCreation(o),tu(wg(o))})()}}function tb(e){return O(fn("mdb:metadataScope","mdb:MD_MetadataScope","mdb:resourceScope","mcc:MD_ScopeCode"),lo("codeListValue"),T1(n=>"service"===n?"service":"dataset"))(e)}function Mf(e,n,t){const r=O(t1("cit:positionName"),In()),o=O(t1("cit:name"),In(),T1(d=>d?af(d):[])),s=fn("cit:contactInfo","cit:CI_Contact"),i=O(s,fn("cit:address","cit:CI_Address")),l=O(i,zn(O(t1("cit:deliveryPoint",!1),In()),O(t1("cit:city",!1),In()),O(t1("cit:postalCode",!1),In()),O(t1("cit:country",!1),In())),T1(d=>d.filter(v=>!!v).join(", "))),a=O(s,fn("cit:phone","cit:CI_Telephone","cit:number"),In()),c=O(i,t1("cit:electronicMailAddress",!1),In()),h={name:"Missing Organization",translations:{}};let u={};return t&&(u={email:t.email,...t.address&&{address:t.address},...t.phone&&{phone:t.phone},...t.position&&{position:t.position},organization:n}),O(zn(r,o,c,l,a),T1(([d,[v,m],L,S,j])=>({...u,email:L||u.email||"missing@missing.com",role:e,organization:n||h,...d&&{position:d},...v&&{firstName:v},...m&&{lastName:m},...S&&{address:S},...j&&{phone:j}})))}function eb(){const e=O(t1("cit:role"),Tz()),n=O(zn(e,gn("cit:party","cit:CI_Individual")),([r,o])=>o.map(Mf(r))),t=O(zn(e,gn("cit:party","cit:CI_Organisation")),T1(([r,o])=>o.map(function zq(e){return O(zn(function Hq(){const e=O(gn("cit:contactInfo","cit:CI_Contact","cit:onlineResource","cit:CI_OnlineResource","cit:linkage"),f0(0),Va());return O(zn(O(t1("cit:name",!1),Y2("name")),e),T1(([[n,t],r])=>({name:n,...r&&{website:r},translations:t})))}(),Mf(e),gn("cit:individual","cit:CI_Individual")),T1(([n,t,r])=>r.length?r.map(o=>Mf(e,n,t)(o)):[{email:t.email,...t.address&&{address:t.address},...t.phone&&{phone:t.phone},...t.position&&{position:t.position},organization:n,role:e}]))}(r))),e=>e.flat());return O(zn(n,t),e=>e.flat())}function bq(e){return O(fn("mdb:metadataIdentifier","mcc:MD_Identifier","mcc:code"),In())(e)}function Lq(e){const n=rb(e),t=nb(e);return(n.filter(o=>"point_of_contact"===o.role)[0]||n[0]||t[0]).organization}function rb(e){return O(gn("mdb:contact","cit:CI_Responsibility"),O1(eb()),e=>e.flat())(e)}function nb(e){return O(zn(O(S2(),gn("mri:citation","cit:CI_Citation","cit:citedResponsibleParty")),O(S2(),Zr("mri:pointOfContact",!1)),O(function yq(){return fn("mdb:distributionInfo","mrd:MD_Distribution")}(),Zr("mrd:distributorContact"))),e=>e.flat(),O1(t1("cit:CI_Responsibility",!1)),O1(eb()),e=>e.flat())(e)}function Vq(e){return O(fn("mdb:metadataLinkage","cit:CI_OnlineResource","cit:linkage"),Va())(e)}function Sq(e,n){return O(fn("mdb:resourceLineage","mrl:LI_Lineage","mrl:statement"),Y2("lineage",n),T1(([t])=>t))(e)}function yf(e){return O(Zr("mdb:dateInfo",!1),Cs(n=>O(t1("cit:CI_DateTypeCode"),lo("codeListValue"))(n)===e),f0(0),t1("cit:date"),hf())}function Aq(e){return yf("revision")(e)}function Dq(e){return yf("creation")(e)}function Bq(e){return yf("publication")(e)}const Tq=O(VH("mrd:MD_Distribution"),fn("mrd:distributionFormat","mrd:MD_Format","mrd:formatSpecificationCitation","cit:CI_Citation","cit:title"),In(),T1(DH));function Eq(e){return"dataset"===tb(e)?O(gn("mrd:distributionInfo","mrd:MD_Distribution"),O1(Pz(Tq)),e=>e.flat())(e):O(gn("mrd:distributionInfo","mrd:MD_Distribution"),O1(Iz()),e=>e.flat())(e)}function ob(){return O(t1("lan:LanguageCode"),lo("codeListValue"),T1(e=>e?mu[e.toLowerCase()]:null))}function jq(e){return O(t1("mdb:defaultLocale",!1),ob())(e)}function Pq(e){return O(Zr("mdb:otherLocale",!1),O1(ob()))(e)}function Iq(e,n){O(_o("mdb:metadataIdentifier","mcc:MD_Identifier","mcc:code"),Tn(e.uniqueIdentifier))(n)}function Rq(e,n){O(_o("mdb:metadataScope","mdb:MD_MetadataScope","mdb:resourceScope","mcc:MD_ScopeCode"),P1("codeList","https://standards.iso.org/iso/19115/resources/Codelists/cat/codelists.xml#MD_ScopeCode"),P1("codeListValue",e.kind),b2(e.kind))(n)}function Hf(e){return ji(O(Zr("mdb:dateInfo",!1),Cs(O(t1("cit:CI_DateTypeCode"),lo("codeListValue"),T1(n=>n===e)))))}function zf(e,n){return e1(O(m1("mdb:dateInfo"),ao("cit:CI_Date"),e1(O(m1("cit:date"),F6(e)),O(m1("cit:dateType"),ao("cit:CI_DateTypeCode"),P1("codeList","https://standards.iso.org/iso/19115/resources/Codelists/cat/codelists.xml#CI_DateTypeCode"),P1("codeListValue",n),b2(n)))))}function Fq(e,n){Hf("revision")(n),zf(e.recordUpdated,"revision")(n)}function Oq(e,n){Hf("creation")(n),e.recordCreated&&zf(e.recordCreated,"creation")(n)}function Nq(e,n){Hf("publication")(n),e.recordPublished&&zf(e.recordPublished,"publication")(n)}function bf(e){return O(Jn(),_o("mri:citation","cit:CI_Citation"),ji(O(Zr("cit:date",!1),Cs(O(t1("cit:CI_DateTypeCode"),lo("codeListValue"),T1(n=>n===e))))))}function Lf(e,n){return O(S2(),fn("mri:citation","cit:CI_Citation"),e1(O(m1("cit:date"),ao("cit:CI_Date"),e1(O(m1("cit:date"),F6(e)),O(m1("cit:dateType"),ao("cit:CI_DateTypeCode"),P1("codeList","https://standards.iso.org/iso/19115/resources/Codelists/cat/codelists.xml#CI_DateTypeCode"),P1("codeListValue",n),b2(n))))))}function $q(e,n){bf("revision")(n),e.resourceUpdated&&Lf(e.resourceUpdated,"revision")(n)}function Uq(e,n){bf("creation")(n),e.resourceCreated&&Lf(e.resourceCreated,"creation")(n)}function Zq(e,n){bf("publication")(n),e.resourcePublished&&Lf(e.resourcePublished,"publication")(n)}function Vf(e,n){const t=Bz(e.firstName,e.lastName),r=O(m1("cit:individual"),ao("cit:CI_Individual"),t?e1(O(m1("cit:name"),Tn(t))):Ao,e.position?e1(O(m1("cit:positionName"),Tn(e.position))):Ao),o=O(m1("cit:contactInfo"),ao("cit:CI_Contact"),e1(O(m1("cit:address"),ao("cit:CI_Address"),e1(O(m1("cit:electronicMailAddress"),Tn(e.email))),e.address?e1(O(m1("cit:deliveryPoint"),Tn(e.address))):Ao)),e.organization?.website?e1(O(m1("cit:onlineResource"),ao("cit:CI_OnlineResource"),ao("cit:linkage"),Tn(e.organization.website.toString()))):Ao,e.phone?e1(O(m1("cit:phone"),ao("cit:CI_Telephone"),ao("cit:number"),Tn(e.phone))):Ao),s=O(m1("cit:role"),ao("cit:CI_RoleCode"),P1("codeList","https://standards.iso.org/iso/19115/resources/Codelists/cat/codelists.xml#CI_RoleCode"),P1("codeListValue",mf(e.role)),b2(mf(e.role))),i=O(m1("cit:party"),ao("cit:CI_Organisation"),e.organization?.name?e1(O(m1("cit:name"),di(e.organization?.name,e.organization?.translations?.name,n))):Ao,e1(o,r));return e1(O(m1("cit:CI_Responsibility"),e1(s,i)))}function qq(e,n){O(L2("mdb:contact"),e1(...e.contacts.map(t=>O(m1("gmd:contact"),Vf(t,e.defaultLanguage)))))(n)}function Wq(e,n){const t=e.contactsForResource.filter(o=>"distributor"!==o.role),r=e.contactsForResource.filter(o=>"distributor"===o.role);O(Jn(),L2("mri:pointOfContact"),e1(...t.map(o=>O(m1("mri:pointOfContact"),Vf(o,e.defaultLanguage)))))(n),r.length&&O(function WZ(){return e=>_o("gmd:distributionInfo","gmd:MD_Distribution")(e)}(),L2("mrd:distributor"),ao("mrd:distributor"),ao("mrd:MD_Distributor"),e1(...r.map(o=>O(m1("mrd:distributorContact"),Vf(o,e.defaultLanguage)))))(n)}function Gq(e,n){O(_o("mdb:metadataLinkage","cit:CI_OnlineResource","cit:linkage"),R6(e.landingPage))(n)}function Yq(e,n){O(_o("mdb:resourceLineage","mrl:LI_Lineage","mrl:statement"),di(e.lineage,e.translations?.lineage,e.defaultLanguage))(n)}function Xq(e,n){const t=Yz(e.status);O(Jn(),_o("mri:status","mcc:MD_ProgressCode"),P1("codeList","https://standards.iso.org/iso/19115/resources/Codelists/cat/codelists.xml#MD_ProgressCode"),P1("codeListValue",t),b2(t))(n)}function Kq(e,n){e.spatialRepresentation?O(Jn(),_o("mri:spatialRepresentationType","mcc:MD_SpatialRepresentationTypeCode"),P1("codeList","https://standards.iso.org/iso/19115/resources/Codelists/cat/codelists.xml#MD_SpatialRepresentationTypeCode"),P1("codeListValue",e.spatialRepresentation),b2(e.spatialRepresentation))(n):O(Jn(),L2("mri:spatialRepresentationType"))(n)}function Jq(e){return e1(O(m1("mrd:distributionFormat"),ao("mrd:MD_Format"),ao("mrd:formatSpecificationCitation"),ao("cit:CI_Citation"),ao("cit:title"),Tn(e)))}function tW(e,n){(function Qq(e){O(gn("mdb:distributionInfo","mrd:MD_Distribution"),O1(O(ji(Zr("mrd:distributionFormat",!1)),ji(Zr("mrd:transferOptions",!1)))))(e),ji(O(Zr("mdb:distributionInfo",!1),Cs(O(t1("mrd:MD_Distribution"),a6,T1(n=>0===n.length)))))(e)})(n),"service"!==e.kind?e.onlineResources.forEach((t,r)=>{O(m0(O(gn("gmd:distributionInfo","gmd:MD_Distribution"),f0(r)),SH(Kz())),Qz(t,Jq,0,e.defaultLanguage))(n)}):Jz(e,n)}function sb(e){const n=cf[e.toLowerCase()];return O(Ei("lan:PT_Locale"),P1("id",e.toUpperCase()),_o("lan:language","gmd:LanguageCode"),P1("codeList","http://www.loc.gov/standards/iso639-2/"),P1("codeListValue",n))}function eW(e,n){O(Ei("mdb:defaultLocale"),sb(e.defaultLanguage))(n)}function rW(e,n){L2("mdb:otherLocale")(n),e.otherLanguages?.length&&e1(...e.otherLanguages.map(t=>O(m1("mdb:otherLocale"),sb(t))))(n)}class Sf extends xf{constructor(){super(),this.readers.uniqueIdentifier=bq,this.readers.kind=tb,this.readers.recordUpdated=Aq,this.readers.recordCreated=Dq,this.readers.recordPublished=Bq,this.readers.contacts=rb,this.readers.contactsForResource=nb,this.readers.ownerOrganization=Lq,this.readers.landingPage=Vq,this.readers.lineage=Sq,this.readers.onlineResources=Eq,this.readers.defaultLanguage=jq,this.readers.otherLanguages=Pq,this.writers.uniqueIdentifier=Iq,this.writers.kind=Rq,this.writers.recordUpdated=Fq,this.writers.recordCreated=Oq,this.writers.recordPublished=Nq,this.writers.resourceUpdated=$q,this.writers.resourceCreated=Uq,this.writers.resourcePublished=Zq,this.writers.contacts=qq,this.writers.contactsForResource=Wq,this.writers.ownerOrganization=()=>{},this.writers.landingPage=Gq,this.writers.lineage=Yq,this.writers.onlineResources=tW,this.writers.status=Xq,this.writers.spatialRepresentation=Kq,this.writers.defaultLanguage=eW,this.writers.otherLanguages=rW}beforeDocumentCreation(n){!function DO(e,n){(function t(r){r.name in n?r.name=n[r.name]:r.name&&LH(r.name)in n&&(r.name=`${n[LH(r.name)]}:${La(r.name)}`),r.children&&r.children.forEach(t)})(e)}(n,{gmd:"mdb","gmd:characterEncoding":"lan:characterEncoding","gmd:MD_CharacterSetCode":"lan:MD_CharacterSetCode","gmd:MD_DataIdentification":"mri:MD_DataIdentification","gmd:citation":"mri:citation","gmd:abstract":"mri:abstract","gmd:title":"cit:title","gmd:CI_Citation":"cit:CI_Citation","gmx:Anchor":"gcx:Anchor","gmd:PT_Locale":"lan:PT_Locale","gmd:PT_FreeText":"lan:PT_FreeText","gmd:LanguageCode":"lan:LanguageCode","gmd:status":"mri:status","gmd:MD_ProgressCode":"mri:MD_ProgressCode","gmd:date":"cit:date","gmd:CI_Date":"cit:CI_Date","gmd:dateType":"cit:dateType","gmd:CI_DateTypeCode":"cit:CI_DateTypeCode","gmd:CI_Responsibility":"cit:CI_Responsibility","gmd:role":"cit:role","gmd:CI_RoleCode":"cit:CI_RoleCode","gmd:descriptiveKeywords":"mri:descriptiveKeywords","gmd:MD_Keywords":"mri:MD_Keywords","gmd:type":"mri:type","gmd:MD_KeywordTypeCode":"mri:MD_KeywordTypeCode","gmd:thesaurusName":"mri:thesaurusName","gmd:keyword":"mri:keyword","gmd:identifier":"cit:identifier","gmd:MD_Identifier":"mcc:MD_Identifier","gmd:code":"mcc:code","gmd:MD_Distribution":"mrd:MD_Distribution","gmd:transferOptions":"mrd:transferOptions","gmd:MD_DigitalTransferOptions":"mrd:MD_DigitalTransferOptions","gmd:onLine":"mrd:onLine","gmd:distributionFormat":"mrd:distributionFormat","gmd:MD_Format":"mrd:MD_Format","gmd:CI_OnlineResource":"cit:CI_OnlineResource","gmd:linkage":"cit:linkage","gmd:name":"cit:name","gmd:description":"cit:description","gmd:CI_OnLineFunctionCode":"cit:CI_OnLineFunctionCode","gmd:function":"cit:function","gmd:protocol":"cit:protocol","gmd:topicCategory":"mri:topicCategory","gmd:MD_TopicCategoryCode":"mri:MD_TopicCategoryCode","gmd:resourceMaintenance":"mri:resourceMaintenance","gmd:MD_MaintenanceInformation":"mmi:MD_MaintenanceInformation","gmd:userDefinedMaintenanceFrequency":"mmi:userDefinedMaintenanceFrequency","gts:TM_PeriodDuration":"gco:TM_PeriodDuration","gmd:resourceConstraints":"mri:resourceConstraints","gmd:MD_Constraints":"mco:MD_Constraints","gmd:MD_LegalConstraints":"mco:MD_LegalConstraints","gmd:MD_SecurityConstraints":"mco:MD_SecurityConstraints","gmd:useLimitation":"mco:useLimitation","gmd:useConstraints":"mco:useConstraints","gmd:accessConstraints":"mco:accessConstraints","gmd:otherConstraints":"mco:otherConstraints","gmd:MD_RestrictionCode":"mco:MD_RestrictionCode","gmd:classification":"mco:classification","gmd:MD_ClassificationCode":"mco:MD_ClassificationCode","gmd:graphicOverview":"mri:graphicOverview","gmd:MD_BrowseGraphic":"mcc:MD_BrowseGraphic","gmd:fileName":"mcc:fileName","gmd:fileDescription":"mcc:fileDescription","gmd:URL":"gco:CharacterString"})}writeRecord(n,t){var r=()=>super.writeRecord,o=this;return Bi(function*(){let s=yield r().call(o,n,t);return s=s.replace('"http://www.isotc211.org/2005/gco"','"http://standards.iso.org/iso/19115/-3/gco/1.0"'),s})()}}var X2=ht(1752);function Rn(e,n){var t=n||{namedNode:function(o){return new X2.A(o)}};return function(r){return t.namedNode(e+(r||""))}}const Ms=Rn("http://www.w3.org/1999/02/22-rdf-syntax-ns#"),ku=(Rn("http://www.w3.org/2000/01/rdf-schema#"),Rn("http://xmlns.com/foaf/0.1/")),Nr=(Rn("http://www.w3.org/2001/XMLSchema#"),Rn("http://www.w3.org/ns/dcat#")),to=Rn("http://purl.org/dc/terms/"),nW=Rn("http://www.w3.org/2004/02/skos/core#"),_u=(Rn("http://schema.org/"),Rn("https://spdx.org/rdf/terms/#"),Rn("http://www.w3.org/ns/adms#"),Rn("http://www.w3.org/ns/dqv#"),Rn("http://www.w3.org/2002/07/owl#"),Rn("http://www.w3.org/2006/vcard/ns#")),oW=(Rn("http://www.w3.org/2006/time#"),Rn("http://www.w3.org/ns/locn#"));var Af=ht(4698),Mo=ht(1511),yo=ht(2403),C0=ht(3682),K2=ht(4672),$s=ht(8662),Ae=ht(5613),Sa=ht(9423),ys=ht(9788),_1=ht(9535),eo=ht(1551);const Aa={boolean:new X2.A("http://www.w3.org/2001/XMLSchema#boolean"),dateTime:new X2.A("http://www.w3.org/2001/XMLSchema#dateTime"),decimal:new X2.A("http://www.w3.org/2001/XMLSchema#decimal"),double:new X2.A("http://www.w3.org/2001/XMLSchema#double"),integer:new X2.A("http://www.w3.org/2001/XMLSchema#integer"),langString:new X2.A("http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"),string:new X2.A("http://www.w3.org/2001/XMLSchema#string")};function sW(e,n,t){return n=(0,K2.A)(n),(0,C0.A)(e,ib()?Reflect.construct(n,t||[],(0,K2.A)(e).constructor):n.apply(e,t))}function ib(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ib=function(){return!!e})()}var pi=function(e){function n(t,r,o){var s;return(0,Mo.A)(this,n),s=sW(this,n,[t]),(0,Ae.A)(s,"termType",_1.QW),(0,Ae.A)(s,"classOrder",Sa.A.Literal),(0,Ae.A)(s,"datatype",Aa.string),(0,Ae.A)(s,"isVar",0),(0,Ae.A)(s,"language",""),r?(s.language=r,s.datatype=Aa.langString):s.datatype=o?X2.A.fromValue(o):Aa.string,s}return(0,$s.A)(n,e),(0,yo.A)(n,[{key:"copy",value:function(){return new n(this.value,this.lang,this.datatype)}},{key:"equals",value:function(r){return!!r&&this.termType===r.termType&&this.value===r.value&&this.language===r.language&&(!this.datatype&&!r.datatype||this.datatype&&this.datatype.equals(r.datatype))}},{key:"lang",get:function(){return this.language},set:function(r){this.language=r||""}},{key:"toNT",value:function(){return n.toNT(this)}},{key:"toString",value:function(){return""+this.value}}],[{key:"toNT",value:function(r){if("number"==typeof r.value)return""+r.value;if("string"!=typeof r.value)throw new Error("Value of RDF literal is not string or number: "+r.value);var o=r.value;return o='"'+(o=(o=(o=(o=o.replace(/\\/g,"\\\\")).replace(/\"/g,'\\"')).replace(/\n/g,"\\n")).replace(/\r/g,"\\r"))+'"',r.language?o+="@"+r.language:r.datatype.equals(Aa.string)||(o+="^^"+r.datatype.toCanonical()),o}},{key:"fromBoolean",value:function(r){return new n(r?"1":"0",null,Aa.boolean)}},{key:"fromDate",value:function(r){if(!(r instanceof Date))throw new TypeError("Invalid argument to Literal.fromDate()");var o=function(l){return(""+(100+l)).slice(1,3)};return new n(r.getUTCFullYear()+"-"+o(r.getUTCMonth()+1)+"-"+o(r.getUTCDate())+"T"+o(r.getUTCHours())+":"+o(r.getUTCMinutes())+":"+o(r.getUTCSeconds())+"Z",null,Aa.dateTime)}},{key:"fromNumber",value:function(r){if("number"!=typeof r)throw new TypeError("Invalid argument to Literal.fromNumber()");var o,s=r.toString();return o=s.indexOf("e")<0&&Math.abs(r)<=Number.MAX_SAFE_INTEGER?Number.isInteger(r)?Aa.integer:Aa.decimal:Aa.double,new n(s,null,o)}},{key:"fromValue",value:function(r){if((0,eo.c$)(r))return r;switch((0,Af.A)(r)){case"object":if(r instanceof Date)return n.fromDate(r);case"boolean":return n.fromBoolean(r);case"number":return n.fromNumber(r);case"string":return new n(r)}throw new Error("Can't make literal from "+r+" of type "+(0,Af.A)(r))}}])}(ys.A);function iW(e,n,t){return n=(0,K2.A)(n),(0,C0.A)(e,lb()?Reflect.construct(n,t||[],(0,K2.A)(e).constructor):n.apply(e,t))}function lb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(lb=function(){return!!e})()}var vl=function(e){function n(t){var r;return(0,Mo.A)(this,n),r=iW(this,n,[n.getId(t)]),(0,Ae.A)(r,"termType",_1.$Q),(0,Ae.A)(r,"classOrder",Sa.A.BlankNode),(0,Ae.A)(r,"isBlank",1),(0,Ae.A)(r,"isVar",1),r}return(0,$s.A)(n,e),(0,yo.A)(n,[{key:"id",get:function(){return this.value},set:function(r){this.value=r}},{key:"compareTerm",value:function(r){return this.classOrderr.classOrder?1:this.idr.id?1:0}},{key:"copy",value:function(r){var o=new n;return r.copyTo(this,o),o}},{key:"toCanonical",value:function(){return n.NTAnonymousNodePrefix+this.value}},{key:"toString",value:function(){return n.NTAnonymousNodePrefix+this.id}}],[{key:"getId",value:function(r){if(r){if("string"!=typeof r)throw new Error("Bad id argument to new blank node: "+r);if(r.includes("#")){var o=r.split("#");return o[o.length-1]}return r}return"n"+n.nextId++}}])}(ys.A);function lW(e,n,t){return n=(0,K2.A)(n),(0,C0.A)(e,ab()?Reflect.construct(n,t||[],(0,K2.A)(e).constructor):n.apply(e,t))}function ab(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ab=function(){return!!e})()}function cb(e){return typeof e>"u"||null===e||(0,eo.D0)(e)?e:Array.isArray(e)?new k0(e):pi.fromValue(e)}(0,Ae.A)(vl,"nextId",0),(0,Ae.A)(vl,"NTAnonymousNodePrefix","_:");var k0=function(e){function n(t){var r;return(0,Mo.A)(this,n),r=lW(this,n,[(vl.nextId++).toString()]),(0,Ae.A)(r,"termType",_1.r0),(0,Ae.A)(r,"classOrder",Sa.A.Collection),(0,Ae.A)(r,"closed",!1),(0,Ae.A)(r,"compareTerm",vl.prototype.compareTerm),(0,Ae.A)(r,"elements",[]),(0,Ae.A)(r,"isVar",0),t&&t.length>0&&t.forEach(function(o){r.elements.push(cb(o))}),r}return(0,$s.A)(n,e),(0,yo.A)(n,[{key:"id",get:function(){return this.value},set:function(r){this.value=r}},{key:"append",value:function(r){return this.elements.push(r)}},{key:"close",value:function(){return this.closed=!0,this.closed}},{key:"shift",value:function(){return this.elements.shift()}},{key:"substitute",value:function(r){return new n(this.elements.map(function(s){return s.substitute(r)}))}},{key:"toNT",value:function(){return n.toNT(this)}},{key:"toString",value:function(){return"("+this.elements.join(" ")+")"}},{key:"unshift",value:function(r){return this.elements.unshift(r)}}],[{key:"toNT",value:function(r){return vl.NTAnonymousNodePrefix+r.id}}])}(ys.A);(0,Ae.A)(k0,"termType",_1.r0);var xu="chrome:theSession";function aW(e,n,t){return n=(0,K2.A)(n),(0,C0.A)(e,hb()?Reflect.construct(n,t||[],(0,K2.A)(e).constructor):n.apply(e,t))}function hb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(hb=function(){return!!e})()}new X2.A(xu);var Df=function(e){function n(){var t;return(0,Mo.A)(this,n),t=aW(this,n,[""]),(0,Ae.A)(t,"value",""),(0,Ae.A)(t,"termType",_1.ic),(0,Ae.A)(t,"uri",xu),t}return(0,$s.A)(n,e),(0,yo.A)(n,[{key:"toCanonical",value:function(){return this.value}},{key:"toString",value:function(){return"DefaultGraph"}}])}(ys.A);function ub(e){return!!e&&e.termType===_1.ic}var cW=new Df,Zc=function(){function e(n,t,r,o){(0,Mo.A)(this,e),(0,Ae.A)(this,"subject",void 0),(0,Ae.A)(this,"predicate",void 0),(0,Ae.A)(this,"object",void 0),(0,Ae.A)(this,"graph",void 0),this.subject=ys.A.fromValue(n),this.predicate=ys.A.fromValue(t),this.object=ys.A.fromValue(r),this.graph=null==o?cW:ys.A.fromValue(o)}return(0,yo.A)(e,[{key:"why",get:function(){return this.graph},set:function(t){this.graph=t}},{key:"equals",value:function(t){return t.subject.equals(this.subject)&&t.predicate.equals(this.predicate)&&t.object.equals(this.object)&&t.graph.equals(this.graph)}},{key:"substitute",value:function(t){return new e(this.subject.substitute(t),this.predicate.substitute(t),this.object.substitute(t),ub(this.graph)?this.graph:this.graph.substitute(t))}},{key:"toCanonical",value:function(){var t=[this.subject.toCanonical(),this.predicate.toCanonical(),this.object.toCanonical()];return this.graph&&this.graph.termType!==_1.ic&&t.push(this.graph.toCanonical()),t.join(" ")+" ."}},{key:"toNT",value:function(){return[this.subject.toNT(),this.predicate.toNT(),this.object.toNT()].join(" ")+" ."}},{key:"toNQ",value:function(){return[this.subject.toNT(),this.predicate.toNT(),this.object.toNT(),ub(this.graph)?"":this.graph.toNT()].join(" ")+" ."}},{key:"toString",value:function(){return this.toNT()}}])}(),db=db||console.log;function qc(e){var n;return(n=e.indexOf("#"))<0?e:e.slice(0,n)}function hW(e){var n=/[^\/]*\/\/([^\/]*)\//.exec(e);return n?n[1]:""}function Pi(e,n){var t,r,o,i,l,a=n.indexOf("#");if(a>0&&(n=n.slice(0,a)),0===e.length)return n;if(0===e.indexOf("#"))return n+e;if(e.indexOf(":")>=0||(t=n.indexOf(":"),0===n.length))return e;if(t<0)return db("Invalid base: "+n+" in join with given: "+e),e;if(r=n.slice(0,+t+1||9e9),0===e.indexOf("//"))return r+e;if(n.indexOf("//",t)===t+1){if((o=n.indexOf("/",t+3))<0)return n.length-t-3>0?n+"/"+e:r+e}else if((o=n.indexOf("/",t+1))<0)return n.length-t-1>0?n+"/"+e:r+e;if(0===e.indexOf("/"))return n.slice(0,o)+e;if((i=(l=n.slice(o)).lastIndexOf("/"))<0)return r+e;for(i>=0&&i0&&"/"!==n[r-1];)r--;if(r<3||e.indexOf("//",r-2)>0||n.indexOf("//",r-2)>0||e.indexOf(":",r)>0)return n;for(a=0,h=0,l=(d=e.slice(r)).length;h0)for(u=1,v=a;v>=1?u<=v:u>=v;v>=1?++u:--u)m+="../";return m+n.slice(r)}function uW(e,n,t){return n=(0,K2.A)(n),(0,C0.A)(e,vb()?Reflect.construct(n,t||[],(0,K2.A)(e).constructor):n.apply(e,t))}function vb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(vb=function(){return!!e})()}var Wc=function(e){function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(0,Mo.A)(this,n),t=uW(this,n,[r]),(0,Ae.A)(t,"termType",_1.P2),(0,Ae.A)(t,"base","varid:"),(0,Ae.A)(t,"classOrder",Sa.A.Variable),(0,Ae.A)(t,"isVar",1),(0,Ae.A)(t,"uri",void 0),t.base="varid:",t.uri=Pi(r,t.base),t}return(0,$s.A)(n,e),(0,yo.A)(n,[{key:"equals",value:function(r){return!!r&&this.termType===r.termType&&this.value===r.value}},{key:"hashString",value:function(){return this.toString()}},{key:"substitute",value:function(r){var o;return null!=(o=r[this.toNT()])?o:this}},{key:"toString",value:function(){return n.toString(this)}}],[{key:"toString",value:function(r){return r.uri.slice(0,r.base.length)===r.base?"?".concat(r.uri.slice(r.base.length)):"?".concat(r.uri)}}])}(ys.A),Us=function(e){return e.collections="COLLECTIONS",e.defaultGraphType="DEFAULT_GRAPH_TYPE",e.equalsMethod="EQUALS_METHOD",e.id="ID",e.identity="IDENTITY",e.reversibleId="REVERSIBLE_ID",e.variableType="VARIABLE_TYPE",e}({}),gb=new Df;const gl={supports:(0,Ae.A)((0,Ae.A)((0,Ae.A)((0,Ae.A)((0,Ae.A)((0,Ae.A)((0,Ae.A)({},Us.collections,!1),Us.defaultGraphType,!1),Us.equalsMethod,!0),Us.identity,!1),Us.id,!0),Us.reversibleId,!1),Us.variableType,!0),blankNode:function(n){return new vl(n)},defaultGraph:function(){return gb},equals:function(n,t){return n===t||!n||!t||((0,eo.aF)(n)||(0,eo.aF)(t)?!(!(0,eo.aF)(n)||!(0,eo.aF)(t))&&this.equals(n.subject,t.subject)&&this.equals(n.predicate,t.predicate)&&this.equals(n.object,t.object)&&this.equals(n.graph,t.graph):!(!(0,eo.D0)(n)||!(0,eo.D0)(t))&&this.id(n)===this.id(t))},id:function(n){if(!n)return"undefined";if((0,eo.aF)(n))return this.quadToNQ(n);switch(n.termType){case _1.ic:return"defaultGraph";case _1.P2:return Wc.toString(n);default:var t=this.termToNQ(n);if(t)return t;throw new Error("Can't id term with type '".concat(n.termType,"'"))}},isQuad:function(n){return n instanceof Zc},literal:function(n,t){if("string"!=typeof n&&!t)return pi.fromValue(n);var r="string"==typeof n?n:""+n;return"string"==typeof t?-1===t.indexOf(":")?new pi(r,t):new pi(r,null,this.namedNode(t)):new pi(r,null,t)},namedNode:function(n){return new X2.A(n)},quad:function(n,t,r,o){return new Zc(n,t,r,o||gb)},triple:function(n,t,r,o){return this.quad(n,t,r,o)},quadToNQ:function(n){return"".concat(this.termToNQ(n.subject)," ").concat(this.termToNQ(n.predicate)," ").concat(this.termToNQ(n.object)," ").concat(this.termToNQ(n.graph)," .")},termToNQ:function(n){var t=this;switch(n.termType){case _1.$Q:return"_:"+n.value;case _1.ic:return"";case _1.S:return"";case _1.QW:return pi.toNT(n);case _1.bD:case _1.Kk:return"<"+n.value+">";case _1.r0:return"("+n.elements.map(function(r){return t.termToNQ(r)}).join(" ")+")";default:throw new Error("Can't serialize nonstandard term type (was '".concat(n.termType,"')"))}},toNQ:function(n){return this.isQuad(n)?this.quadToNQ(n):this.termToNQ(n)},variable:function(n){return new Wc(n)}},f2_debug=function(n){},f2_warn=function(n){},f2_info=function(n){},f2_error=function(n){};var fl=ht(9223);function fb(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:gl;return{boolean:e.namedNode("http://www.w3.org/2001/XMLSchema#boolean"),dateTime:e.namedNode("http://www.w3.org/2001/XMLSchema#dateTime"),decimal:e.namedNode("http://www.w3.org/2001/XMLSchema#decimal"),double:e.namedNode("http://www.w3.org/2001/XMLSchema#double"),integer:e.namedNode("http://www.w3.org/2001/XMLSchema#integer"),langString:e.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"),string:e.namedNode("http://www.w3.org/2001/XMLSchema#string")}}fb(gl);var vW=ht(974),mb=ht.n(vW),gW=ht(6998),mW=function(){function e(n){(0,Mo.A)(this,e),(0,Ae.A)(this,"_notQNameChars","\t\r\n !\"#$%&'()*.,+/;<=>?@[\\]^`{|}~"),(0,Ae.A)(this,"_notNameChars",this._notQNameChars+":"),(0,Ae.A)(this,"validPrefix",new RegExp(/^[a-zA-Z][a-zA-Z0-9]*$/)),(0,Ae.A)(this,"forbidden1",new RegExp(/[\\"\b\f\r\v\t\n\u0080-\uffff]/gm)),(0,Ae.A)(this,"forbidden3",new RegExp(/[\\"\b\f\r\v\u0080-\uffff]/gm)),this.flags="",this.base=null,this.prefixes=[],this.namespaces=[];var t=Object.keys(mb()());for(var r in t){var o=mb()()[t[r]](""),s=t[r];this.prefixes[o]=s,this.namespaces[s]=o}this.suggestPrefix("rdf","http://www.w3.org/1999/02/22-rdf-syntax-ns#"),this.suggestPrefix("xml","reserved:reservedForFutureUse"),this.namespacesUsed=[],this.keywords=["a"],this.prefixchars="abcdefghijklmnopqustuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",this.incoming=null,this.formulas=[],this.store=n,this.rdfFactory=n.rdfFactory||gl,this.xsd=fb(this.rdfFactory)}return(0,yo.A)(e,[{key:"setBase",value:function(t){return this.base=t,this}},{key:"setFlags",value:function(t){return this.flags=t||"",this}},{key:"toStr",value:function(t){var r=t.toNT();return"Graph"===t.termType&&(this.formulas[r]=t),r}},{key:"fromStr",value:function(t){if("{"===t[0]){var r=this.formulas[t];return r||console.log("No formula object for "+t),r}return this.store.fromNT(t)}},{key:"setNamespaces",value:function(t){for(var r in t)this.setPrefix(r,t[r]);return this}},{key:"setPrefix",value:function(t,r){if("default"!==t.slice(0,7)&&"ns"!==t.slice(0,2)&&t&&r){for(var o in this.prefixes)this.prefixes[o]==t&&delete this.prefixes[o];this.prefixes[r]=t,this.namespaces[t]=r}}},{key:"suggestPrefix",value:function(t,r){"default"!==t.slice(0,7)&&"ns"!==t.slice(0,2)&&(!t||!r||t in this.namespaces||r in this.prefixes||(this.prefixes[r]=t,this.namespaces[t]=r))}},{key:"suggestNamespaces",value:function(t){for(var r in t)this.suggestPrefix(r,t[r]);return this}},{key:"checkIntegrity",value:function(){var t,r;for(t in this.namespaces)if(this.prefixes[this.namespaces[t]]!==t)throw new Error("Serializer integity error 1: "+t+", "+this.namespaces[t]+", "+this.prefixes[this.namespaces[t]]+"!");for(r in this.prefixes)if(this.namespaces[this.prefixes[r]]!==r)throw new Error("Serializer integity error 2: "+r+", "+this.prefixs[r]+", "+this.namespaces[this.prefixes[r]]+"!")}},{key:"makeUpPrefix",value:function(t){var r=t,s=function o(c){return!(!this.validPrefix.test(c)||"ns"===c||c in this.namespaces)&&(this.prefixes[t]=c,this.namespaces[c]=t,c)}.bind(this);"#/".indexOf(r[r.length-1])>=0&&(r=r.slice(0,-1));var i=r.lastIndexOf("/");i>=0&&(r=r.slice(i+1));for(var l=0;l=0?function CW(e){for(var t,n="",r=0;r65535?n+="\\U"+("00000000"+t.toString(16)).slice(-8):n+=t>126?"\\u"+("0000"+t.toString(16)).slice(-4):e[r];return n}(t):function wW(e){return encodeURI(e)}(decodeURI(t)),"<"+t+">"}},{key:"statementsToNTriples",value:function(t){var r=t.slice();r.sort();for(var o="",s="http://www.w3.org/1999/02/22-rdf-syntax-ns#",i=this,l=this.store,a=this.rdfFactory,c=function v(m){if("Collection"!==m.termType)return i.atomicTermToN3(m);for(var L=m.elements,S=l.sym(s+"nill"),j=L.length-1;j>=0;j--){var N=a.blankNode();o+=v(N)+" "+v(l.sym(s+"first"))+" "+v(L[j])+".\n",o+=v(N)+" "+v(l.sym(s+"rest"))+" "+v(S)+".\n",S=N}return i.atomicTermToN3(S)},h=0;h=0&&(d+=c(u.why)+" "),o+=d+=".\n"}return o}},{key:"statementsToN3",value:function(t){var s=this.store,i={"http://www.w3.org/1999/02/22-rdf-syntax-ns#type":"aaa:00"};t.sort(function(Ve,Te){return fl.VQ(Ve,Te,s,i)}),this.base&&!this.defaultNamespace&&(this.defaultNamespace=this.base+"#");var a={};this.flags.indexOf("s")<0&&(a["http://www.w3.org/2002/07/owl#sameAs"]="="),this.flags.indexOf("t")<0&&(a["http://www.w3.org/1999/02/22-rdf-syntax-ns#type"]="a"),this.flags.indexOf("i")<0&&(a["http://www.w3.org/2000/10/swap/log#implies"]="=>");var c=function(Ve){for(var Te="",Pe=0;Pe"u")throw new Error("Cant find statements for "+me);for(var Ee=[],qe=0;qe=0){Pe=Pe.slice(0,-1),"."==qe&&"0123456789.:".includes(Pe.charAt(Pe.length-1))&&(Pe+=" ",Se+=1),Pe+=qe+"\n",Se+=1;continue}if(Se<4*Te+4||Se+qe.length+1<80&&";.".indexOf(Pe[Pe.length-2])<0)Pe=Pe.slice(0,-1)+" "+qe+"\n",Se+=qe.length+1;else{var A1=c(4*Te)+qe;Pe+=A1+"\n",Se=A1.length,Te<0&&(Pe+="\n",Se=1e5)}}}return Pe}(De)}},{key:"atomicTermToN3",value:function(t,r){switch(t.termType){case"BlankNode":case"Variable":return t.toNT();case"Literal":var o=t.value;if("string"!=typeof o)throw new TypeError("Value of RDF literal node must be a string");if(t.datatype&&this.flags.indexOf("x")<0)switch(t.datatype.uri){case"http://www.w3.org/2001/XMLSchema#integer":return o;case"http://www.w3.org/2001/XMLSchema#decimal":return o.indexOf(".")<0&&(o+=".0"),o;case"http://www.w3.org/2001/XMLSchema#double":var s=o.toLowerCase().indexOf("e")>0;return o.indexOf(".")<0&&!s&&(o+=".0"),s||(o+="e0"),o;case"http://www.w3.org/2001/XMLSchema#boolean":return"1"===t.value?"true":"false"}var i=this.stringToN3(t.value);return t.language?i+="@"+t.language:t.datatype.equals(this.xsd.string)||(i+="^^"+this.atomicTermToN3(t.datatype,r)),i;case"NamedNode":return this.symbolToN3(t);case"DefaultGraph":return"";default:throw new Error("Internal: atomicTermToN3 cannot handle "+t+" of termType: "+t.termType)}}},{key:"stringToN3",value:function(t,r){r||(r="e");var s,i,l,a,c,o="";for(t.length>20&&'"'!==t.slice(-1)&&r.indexOf("n")<0&&(t.indexOf("\n")>0||t.indexOf('"')>0)?(a='"""',c=this.forbidden3):(a='"',c=this.forbidden1),s=0;s=0?o+="\\"+'bfrtvn\\"'[l]:r.indexOf("e")>=0?o+="\\u"+("000"+u.charCodeAt(0).toString(16).toLowerCase()).slice(-4):o+=u,s=i+1}return a+o+t.slice(s)+a}},{key:"symbolToN3",value:function(t){var r=t.uri,o=r.indexOf("#");if(o<0&&this.flags.indexOf("/")<0&&(o=r.lastIndexOf("/")),o>=0&&this.flags.indexOf("p")<0&&(0===r.indexOf("http")||0===r.indexOf("ws")||0===r.indexOf("file"))){for(var s=!0,i=o+1;i=0){s=!1;break}if(s){var l=r.slice(o+1),a=r.slice(0,o+1);if(this.defaultNamespace&&this.defaultNamespace===a&&this.flags.indexOf("d")<0)return this.flags.indexOf("k")>=0&&this.keyords.indexOf(l)<0?l:":"+l;var c=this.prefixes[a];if(c||(c=this.makeUpPrefix(a)),c)return this.namespacesUsed[a]=!0,c+":"+l}}return this.explicitURI(r)}},{key:"writeStore",value:function(t){var r=this.store,o=r.fetcher,s=o&&o.appNode,i=this.store.index[3];for(var l in i){var a=r.fromNT(l);s&&a.equals(s)||t("\n"+this.atomicTermToN3(a)+" "+this.atomicTermToN3(r.sym("http://www.w3.org/2000/10/swap/log#semantics"))+" { "+this.statementsToN3(r.statementsMatching(void 0,void 0,void 0,a))+" }.\n")}r.statementsMatching(void 0,r.sym("http://www.w3.org/2007/ont/link#requestedURI")).map(function(u){t("\n<"+u.object.value+"> log:metadata {\n");var d=r.statementsMatching(void 0,void 0,void 0,u.subject);t(this.statementsToN3(this.statementsToN3(d))),t("}.\n")});var c=[];s&&c.push(s);var h=[];c.map(function(u){h=h.concat(r.statementsMatching(void 0,void 0,void 0,u))}),t(this.statementsToN3(h))}},{key:"statementsToXML",value:function(t){var s=[];s["http://www.w3.org/1999/02/22-rdf-syntax-ns#"]=!0;var i="http://www.w3.org/1999/02/22-rdf-syntax-ns#_",l=function(Se){for(var Ee="",qe=0;qe"u"?"@@@undefined@@@@":Pe.replace(/[&<"]/g,function(Se){switch(Se[0]){case"&":return"&";case"<":return"<";case'"':return"""}})}var m=function v(Pe){return d(this.base?Bf(this.base,Pe.uri):Pe.uri)}.bind(this),S=function L(Pe,Se){var qe,We,je,A1,Ee=[],yr=Se.subjects[this.toStr(Pe)];if(typeof yr>"u")return Ft(Pe,Se);yr.sort(function(Ni,qs){var T2=Ni.predicate.uri,ss=qs.predicate.uri;if(T2.substring(0,44)===i||ss.substring(0,44)===i)return T2.localeCompare(ss);var is=T2.substring(44),Cl=ss.substring(44),Ws=parseInt(is,10),$i=parseInt(Cl,10);return isNaN(Ws)||isNaN($i)||Ws!==is||$i!==Cl?T2.localeCompare(ss):Ws-$i});for(var kn=0;kn',S(je.object,Se),""+We+">"]:["<"+We+' rdf:nodeID="'+je.object.toNT().slice(2)+'"/>']);break;case"NamedNode":Ee=Ee.concat(["<"+We+' rdf:resource="'+m(je.object)+'"/>']);break;case"Literal":Ee=Ee.concat(["<"+We+(je.object.datatype.equals(this.xsd.string)?"":' rdf:datatype="'+d(je.object.datatype.uri)+'"')+(je.object.language?' xml:lang="'+je.object.language+'"':"")+">"+d(je.object.value)+""+We+">"]);break;case"Collection":Ee=Ee.concat(["<"+We+' rdf:parseType="Collection">',j(je.object,Se),""+We+">"]);break;default:throw new Error("Can't serialize object of type "+je.object.termType+" into XML")}}else qe=je.object;var C2=qe?$t(qe):"rdf:Description",ro="";return"BlankNode"===Pe.termType?(!Se.incoming[Pe]||1!==Se.incoming[Pe].length)&&(ro=' rdf:nodeID="'+Pe.toNT().slice(2)+'"'):ro=' rdf:about="'+m(Pe)+'"',["<"+C2+ro+">"].concat([Ee]).concat([""+C2+">"])}.bind(this);function j(Pe,Se){for(var Ee=[],qe=0;qe',""+$t(je.predicate)+">"]):Ee.concat(["<"+$t(je.predicate)+' rdf:parseType="Resource">',Ft(je.object,Se),""+$t(je.predicate)+">"]);break;case"NamedNode":Ee=Ee.concat(["<"+$t(je.predicate)+' rdf:resource="'+m(je.object)+'"/>']);break;case"Literal":Ee=Ee.concat(["<"+$t(je.predicate)+(je.object.datatype.equals(this.xsd.string)?"":' rdf:datatype="'+d(je.object.datatype.value)+'"')+(je.object.language?' xml:lang="'+je.object.language+'"':"")+">"+d(je.object.value)+""+$t(je.predicate)+">"]);break;case"Collection":Ee=Ee.concat(["<"+$t(je.predicate)+' rdf:parseType="Collection">',j(je.object,Se),""+$t(je.predicate)+">"]);break;default:throw new Error("Can't serialize object of type "+je.object.termType+" into XML")}}return Ee}.bind(this),$t=function Ot(Pe){var Se=Pe.uri,Ee=Se.indexOf("#");if(Ee<0&&this.flags.indexOf("/")<0&&(Ee=Se.lastIndexOf("/")),Ee<0)throw new Error("Cannot make qname out of <"+Se+">");for(var qe=Ee+1;qe=0)throw new Error('Invalid character "'+Se[qe]+'" cannot be in XML qname for URI: '+Se);var We=Se.slice(Ee+1),je=Se.slice(0,Ee+1);if(this.defaultNamespace&&this.defaultNamespace===je&&this.flags.indexOf("d")<0)return We;var A1=this.prefixes[je];return A1||(A1=this.makeUpPrefix(je)),s[je]=!0,A1+":"+We}.bind(this),mt=u(t),De="",mt," "],-1)}},{key:"statementsToJsonld",value:function(t){var r=this.statementsToN3(t),o=gW.parse(r);return JSON.stringify(o,null,2)}}])}();function N6(e,n,t,r,o,s){t=t||e?.value;var i=s||{};r=r||_1.sT;try{var a=function fW(e){return new mW(e)}(n);i.flags&&a.setFlags(i.flags);var c=n.statementsMatching(void 0,void 0,void 0,e);switch("namespaces"in n&&a.suggestNamespaces(n.namespaces),i.namespaces&&a.setNamespaces(i.namespaces),a.setBase(t),r){case _1.JG:return h(null,a.statementsToXML(c));case _1.ny:case _1.MG:return h(null,a.statementsToN3(c));case _1.sT:case _1.hu:return a.setFlags("si"),h(null,a.statementsToN3(c));case _1.bM:return a.setFlags("deinprstux"),h(null,a.statementsToNTriples(c));case _1.i2:return a.setFlags("si dr"),h(null,a.statementsToJsonld(c));case _1._0:case _1.BR:return a.setFlags("deinprstux q"),h(null,a.statementsToNTriples(c));default:throw new Error("Serialize: Content-type "+r+" not supported for data write.")}}catch(u){if(o)return o(u,void 0);throw u}function h(u,d){return o?void o(u,d):d}}var kW=["blankNode","defaultGraph","literal","namedNode","quad","variable","supports"],$6={first:"http://www.w3.org/1999/02/22-rdf-syntax-ns#first",rest:"http://www.w3.org/1999/02/22-rdf-syntax-ns#rest",nil:"http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"};function wb(e,n,t){var r=[];return t.reduce(function(o,s,i,l){var a;return r.push(e.quad(o,e.namedNode($6.first),l[i])),i2&&void 0!==arguments[2]?arguments[2]:0,r=e.length;for(t<0&&(t=r+t);te.length)&&(n=e.length);for(var t=0,r=new Array(n);t0&&void 0!==arguments[0]?arguments[0]:[],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};(0,Mo.A)(this,n),(t=MW(this,n,[""])).statements=r,t.constraints=o,t.initBindings=s,t.optional=i,(0,Ae.A)(t,"termType",_1.bD),(0,Ae.A)(t,"classOrder",Sa.A.Graph),(0,Ae.A)(t,"fetcher",void 0),(0,Ae.A)(t,"isVar",0),(0,Ae.A)(t,"ns",Rn),(0,Ae.A)(t,"rdfFactory",void 0),t.rdfFactory=l&&l.rdfFactory||gl;var c,a=function _W(e,n){var t=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function xW(e,n){if(e){if("string"==typeof e)return Cb(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Cb(e,n)}}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,s=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var c=t.next();return s=c.done,c},e:function(c){i=!0,l=c},f:function(){try{!s&&null!=t.return&&t.return()}finally{if(i)throw l}}}}(kW);try{var h=function(){var d=c.value;t[d]=function(){var v;return(v=t.rdfFactory)[d].apply(v,arguments)}};for(a.s();!(c=a.n()).done;)h()}catch(u){a.e(u)}finally{a.f()}return t}return(0,$s.A)(n,e),(0,yo.A)(n,[{key:"add",value:function(r,o,s,i){var l=this;return 1===arguments.length&&r.forEach(function(a){return l.add(a.subject,a.predicate,a.object,a.graph)}),this.statements.push(this.rdfFactory.quad(r,o,s,i))}},{key:"addStatement",value:function(r){return this.add(r)}},{key:"bnode",value:function(r){return this.rdfFactory.blankNode(r)}},{key:"addAll",value:function(r){var o=this;r.forEach(function(s){o.add(s.subject,s.predicate,s.object,s.graph)})}},{key:"any",value:function(r,o,s,i){var l=this.anyStatementMatching(r,o,s,i);return null==l?null:null==r?l.subject:null==o?l.predicate:null==s?l.object:null}},{key:"anyValue",value:function(r,o,s,i){var l=this.any(r,o,s,i);return l?l.value:void 0}},{key:"anyJS",value:function(r,o,s,i){var l=this.any(r,o,s,i);return l?ys.A.toJS(l):void 0}},{key:"anyStatementMatching",value:function(r,o,s,i){var l=this.statementsMatching(r,o,s,i,!0);if(l&&0!==l.length)return l[0]}},{key:"id",value:function(r){return this.rdfFactory.id(r)}},{key:"statementsMatching",value:function(r,o,s,i,l){var a=this.statements.filter(function(c){return(!r||r.equals(c.subject))&&(!o||o.equals(c.predicate))&&(!s||s.equals(c.object))&&(!i||i.equals(c.graph))});return l?0===a.length?[]:[a[0]]:a}},{key:"bottomTypeURIs",value:function(r){var o,s,l,a,h,u;for(var d in o=[],r)if(r.hasOwnProperty(d)){for(u=r[d],s=!0,l=0,a=(h=this.each(void 0,this.rdfFactory.namedNode("http://www.w3.org/2000/01/rdf-schema#subClassOf"),this.rdfFactory.namedNode(d))).length;l "+$t[De]);return mt}function s($t){var De,mt="Bindings: ",me=$t.length;for(De=0;DeVe.length)&&(mt.index=Ve)}}return null===mt.index&&(mt.index=$t.statements),!0}function m($t,mt){return $t.nvars!==mt.nvars?$t.nvars-mt.nvars:$t.index.length-mt.index.length}d.prototype.reportMatch=function($t){this.results.push($t)},d.prototype.reportDone=function(){f2_debug("Optional branch finished - results.length = "+this.results.length),0===this.results.length&&(this.results.push({}),f2_debug("Optional branch FAILED - that's OK.")),this.done=!0,this.junction.checkAllDone()};var S=function $t(mt,De,me,Ve,Te,Pe,Se){f2_debug("Match begins, Branch count now: "+Se.count+" for "+Se.pattern_debug);var Ee=De.statements;if(0===Ee.length){if(f2_debug("FOUND MATCH WITH BINDINGS:"+o(me)),0===De.optional.length)Se.reportMatch(me);else{f2_debug("OPTIONAL: "+De.optional);var je,qe=new h(n,me),We=[];for(je=0;je in query: "+ss),$t(mt,De,me,Ve,Te,Pe,Se)})};for(yr=0;yre.length)&&(n=e.length);for(var t=0,r=new Array(n);t1&&void 0!==arguments[1]?arguments[1]:{};return(0,Mo.A)(this,n),r=bW(this,n,[void 0,void 0,void 0,void 0,o]),(0,Ae.A)(r,"updater",void 0),(0,Ae.A)(r,"namespaces",void 0),(0,Ae.A)(r,"classActions",void 0),(0,Ae.A)(r,"propertyActions",void 0),(0,Ae.A)(r,"redirections",void 0),(0,Ae.A)(r,"aliases",void 0),(0,Ae.A)(r,"HTTPRedirects",void 0),(0,Ae.A)(r,"subjectIndex",void 0),(0,Ae.A)(r,"predicateIndex",void 0),(0,Ae.A)(r,"objectIndex",void 0),(0,Ae.A)(r,"whyIndex",void 0),(0,Ae.A)(r,"index",void 0),(0,Ae.A)(r,"features",void 0),(0,Ae.A)(r,"_universalVariables",void 0),(0,Ae.A)(r,"_existentialVariables",void 0),(0,Ae.A)(r,"rdfArrayRemove",void 0),(0,Ae.A)(r,"dataCallbacks",void 0),r.propertyActions={},r.classActions={},r.redirections=[],r.aliases=[],r.HTTPRedirects=[],r.subjectIndex=[],r.predicateIndex=[],r.objectIndex=[],r.whyIndex=[],r.index=[r.subjectIndex,r.predicateIndex,r.objectIndex,r.whyIndex],r.namespaces={},r.features=t||[],r.rdfArrayRemove=o.rdfArrayRemove||fl.Uz,o.dataCallback&&(r.dataCallbacks=[o.dataCallback]),r.initPropertyActions(r.features),r}return(0,$s.A)(n,e),(0,yo.A)(n,[{key:"substitute",value:function(r){var o=this.statements.map(function(i){return i.substitute(r)}),s=new n;return s.add(o),s}},{key:"addDataCallback",value:function(r){this.dataCallbacks||(this.dataCallbacks=[]),this.dataCallbacks.push(r)}},{key:"applyPatch",value:function(r,o,s){var l,i=this,a=null;function c(d){if(r.delete){l=r.delete,a&&(l=l.substitute(a));var v=[],m=(l=l.statements).map(function(L){var S=i.statementsMatching(L.subject,L.predicate,L.object,o);return 0===S.length?(v.push(L),null):S[0]});if(v.length)return s("Could not find to delete: "+v.join("\n or "));m.map(function(L){i.remove(L)})}r.insert&&(l=r.insert,a&&(l=l.substitute(a)),(l=l.statements).map(function(L){L.graph=o,i.add(L.subject,L.predicate,L.object,L.graph)})),d()}if(r.where){var h=new yW("patch");h.pat=r.where,h.pat.statements.map(function(d){d.graph=Du(o.value)}),h.sync=!0;var u=[];i.query(h,function(v){u.push(v)},i.fetcher,function(){return 0===u.length?s("No match found to be patched:"+r.where):u.length>1?s("Patch ambiguous. No patch done."):(a=u[0],void c(s))})}else c(s)}},{key:"declareExistential",value:function(r){return this._existentialVariables||(this._existentialVariables=[]),this._existentialVariables.push(r),r}},{key:"initPropertyActions",value:function(r){this.propertyActions[this.rdfFactory.id(this.rdfFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#type"))]=[zb],Ii(r,"sameAs")>=0&&(this.propertyActions[this.rdfFactory.id(this.rdfFactory.namedNode("".concat(Tf,"sameAs")))]=[function(o,s,i,l,a){return o.equate(s,l),!0}]),Ii(r,"InverseFunctionalProperty")>=0&&(this.classActions[this.rdfFactory.id(this.rdfFactory.namedNode("".concat(Tf,"InverseFunctionalProperty")))]=[function(o,s,i,l,a){return o.newPropertyAction(s,VW)}]),Ii(r,"FunctionalProperty")>=0&&(this.classActions[this.rdfFactory.id(this.rdfFactory.namedNode("".concat(Tf,"FunctionalProperty")))]=[function(o,s,i,l,a){return o.newPropertyAction(s,LW)}])}},{key:"addStatement",value:function(r){return this.add(r.subject,r.predicate,r.object,r.graph),this.statements.length}},{key:"add",value:function(r,o,s,i){var l,a,c;if(1===arguments.length){if(r instanceof Array)for(l=0;l=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,s=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var c=t.next();return s=c.done,c},e:function(c){i=!0,l=c},f:function(){try{!s&&null!=t.return&&t.return()}finally{if(i)throw l}}}}(this.dataCallbacks);try{for(S.s();!(j=S.n()).done;)(0,j.value)(c)}catch(Ft){S.e(Ft)}finally{S.f()}}return c}},{key:"canon",value:function(r){if(!r)return r;var o=this.redirections[this.id(r)];if(o)return o;switch(r.termType){case _1.$Q:return new vl(r.value);case _1.r0:return r;case _1.ic:return new Df;case _1.S:case _1.bD:return r;case _1.QW:return new pi(r.value,r.language,r.datatype);case _1.Kk:return new X2.A(r.value);case _1.P2:return new Wc(r.value);default:throw new Error("Term Type not recognized for canonization: ".concat(r.termType))}}},{key:"check",value:function(){this.checkStatementList(this.statements);for(var r=0;r<4;r++){var o=this.index[r];for(var s in o)o.hasOwnProperty(s)&&this.checkStatementList(o[s],r)}}},{key:"checkStatementList",value:function(r,o){void 0===o&&(o=0);for(var l,i=" found in "+["subject","predicate","object","why"][o]+" index.",a=0;aSa.A[o.termType]?1:r.valueo.value?1:0}},{key:"copyTo",value:function(r,o,s){s||(s=[]);var i=this.statementsMatching(r);-1!==Ii(s,"two-direction")&&i.concat(this.statementsMatching(void 0,void 0,r));for(var l=0;l";return!!this.subjectIndex[o]||!!this.objectIndex[o]||!!this.predicateIndex[o]}},{key:"newExistential",value:function(r){if(!r)return this.bnode();var o=this.sym(r);return this.declareExistential(o)}},{key:"newPropertyAction",value:function(r,o){var s=this.id(r);this.propertyActions[s]||(this.propertyActions[s]=[]),this.propertyActions[s].push(o);for(var i=this.statementsMatching(void 0,r,void 0),l=!1,a=0;a1&&(m=m.slice(0,1)),m||[];var S,j,L=1e10;for(j=0;j=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,s=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var c=t.next();return s=c.done,c},e:function(c){i=!0,l=c},f:function(){try{!s&&null!=t.return&&t.return()}finally{if(i)throw l}}}}function Vb(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t0)throw"missing.js: oops nnonempty dict not imp";return[]},vi=function(n){return n.length},jf=function(n,t,r){if(typeof n.slice>"u")throw"@@ mising.js: No .slice function for "+n+" of type "+(0,Af.A)(n);return typeof r>"u"||null==r?n.slice(t):n.slice(t,r)},Q4=Error("dummy error stop iteration"),bu=function(n){return this.last=0,this.li=n,this.next=function(){if(this.last==this.li.length)throw Q4;return this.li[this.last++]},this},Pf=function(n,t){return n.indexOf(t)},Yc=function(n,t){if(!n)throw t?"python Assertion failed: "+t:"(python) Assertion failed."};String.prototype.encode=function(e){if("utf-8"!=e)throw"UTF8_converter: can only do utf-8";return function(n){n=n.replace(/\r\n/g,"\n");for(var t="",r=0;r127&&o<2048?(t+=String.fromCharCode(o>>6|192),t+=String.fromCharCode(63&o|128)):(t+=String.fromCharCode(o>>12|224),t+=String.fromCharCode(o>>6&63|128),t+=String.fromCharCode(63&o|128))}return t}(this)},String.prototype.decode=function(e){if("utf-8"!=e)throw"UTF8_converter: can only do utf-8";return this};var If=function(n,t){return Pi(t,n)},Ab="http://www.w3.org/1999/02/22-rdf-syntax-ns#nil",Db="http://www.w3.org/2002/07/owl#sameAs",Bb="\t\r\n !\"#$%&'()*.,+/;<=>?@[\\]^`{|}~",Xc=Bb+":",Rf=new RegExp("^([-+]?[0-9]+)(\\.[0-9]+)?(e[-+]?[0-9]+)?","g"),Tb=new RegExp("^[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9](T[0-9][0-9]:[0-9][0-9](:[0-9][0-9](\\.[0-9]*)?)?)?Z?"),Ff=new RegExp('[\\\\\\r\\n\\"]',"g"),Of=new RegExp("^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*","g");const Nf=function GW(e,n,t,r,o,s,i,l){return new YW(e,n,t,r,o,s,i,l)};var YW=function(){return(0,yo.A)(function e(n,t,r,o,s,i,l,a){(0,Mo.A)(this,e),typeof t>"u"&&(t=null),typeof r>"u"&&(r=""),typeof o>"u"&&(o=null),typeof s>"u"&&(s=""),typeof i>"u"&&(i=null),typeof l>"u"&&(l=""),typeof a>"u"&&(a=null),this._bindings=new zu([]),this._flags=l,""!=r&&(Yc(r.indexOf(":")>=0,"Document URI not absolute: "+r),this._bindings[""]=r+"#"),this._store=n,s&&n.setGenPrefix(s),this._thisDoc=r,this.source=n.sym(r),this.lines=0,this.statementCount=0,this.hasNil=!1,this.startOfLine=0,this.previousLine=0,this._genPrefix=s,this.keywords=new m2(["a","this","bind","has","is","of","true","false"]),this.keywordsSet=0,this._anonymousNodes=new zu([]),this._variables=new zu([]),this._parentVariables=new zu([]),this._reason=a,this._reason2=null,this._baseURI=o||r||null,Yc(!this._baseURI||this._baseURI.indexOf(":")>=0),this._genPrefix||(this._genPrefix=this._thisDoc?this._thisDoc+"#_g":RDFSink_uniqueURI()),this._formula=null==t?this._thisDoc?n.formula(r+"#_formula"):n.formula():t,this._context=this._formula,this._parentContext=null},[{key:"here",value:function(t){return this._genPrefix+"_L"+this.lines+"C"+(t-this.startOfLine+1)}},{key:"formula",value:function(){return this._formula}},{key:"loadStream",value:function(t){return this.loadBuf(t.read())}},{key:"loadBuf",value:function(t){return this.startDoc(),this.feed(t),this.endDoc()}},{key:"feed",value:function(t){for(var r=t.decode("utf-8"),o=0;o>=0;){var s=this.skipSpace(r,o);if(s<0)return;if((o=this.directiveOrStatement(r,s))<0)throw S1(this._thisDoc,this.lines,r,s,"expected directive or statement")}}},{key:"directiveOrStatement",value:function(t,r){var s,o=this.skipSpace(t,r);return o<0?o:(s=this.directive(t,o))>=0||(s=this.statement(t,o))>=0?this.checkDot(t,s):s}},{key:"tok",value:function(t,r,o){if("@"==r.slice(o,o+1))o+=1;else if(Ii(this.keywords,t)<0)return-1;var i=o+vi(t);return r.slice(o,i)==t&&Bb.indexOf(r.charAt(i))>=0?i:-1}},{key:"directive",value:function(t,r){if((c=this.skipSpace(t,r))<0)return c;var o=new m2([]);if((c=this.tok("bind",t,r))>0)throw S1(this._thisDoc,this.lines,t,r,"keyword bind is obsolete: use @prefix");if((c=this.tok("keywords",t,r))>0){if((r=this.commaSeparatedList(t,c,o,!1))<0)throw S1(this._thisDoc,this.lines,t,r,"'@keywords' needs comma separated list of words");return this.setKeywords(jf(o,null,null)),r}if((c=this.tok("forAll",t,r))>0){if((r=this.commaSeparatedList(t,c,o,!0))<0)throw S1(this._thisDoc,this.lines,t,r,"Bad variable list after @forAll");var s=new bu(o);try{for(;;){var i=s.next();(Ii(this._variables,i)<0||Ii(this._parentVariables,i)>=0)&&(this._variables[i]=this._context.newUniversal(i))}}catch(u){if(u!=Q4)throw u}return r}if((c=this.tok("forSome",t,r))>0){if((r=this.commaSeparatedList(t,c,o,this.uri_ref2))<0)throw S1(this._thisDoc,this.lines,t,r,"Bad variable list after @forSome");s=new bu(o);try{for(;;)i=s.next(),this._context.declareExistential(i)}catch(d){if(d!=Q4)throw d}return r}if((c=this.tok("prefix",t,r))>=0){var c,l=new m2([]);if((r=this.qname(t,c,l))<0)throw S1(this._thisDoc,this.lines,t,c,"expected qname after @prefix");if((c=this.uri_ref2(t,r,l))<0)throw S1(this._thisDoc,this.lines,t,r,"expected after @prefix _qname_");var a=l[1].uri;return this._baseURI?a=If(this._baseURI,a):Yc(a.indexOf(":")>=0,"With no base URI, cannot handle relative URI for NS"),Yc(a.indexOf(":")>=0),this._bindings[l[0][0]]=a,this.bind(l[0][0],function EW(e){return encodeURI(e)}(a)),c}if((c=this.tok("base",t,r))>=0){if(l=new m2([]),(r=this.uri_ref2(t,c,l))<0)throw S1(this._thisDoc,this.lines,t,c,"expected after @base ");if(a=l[0].uri,!this._baseURI)throw S1(this._thisDoc,this.lines,t,c,"With no previous base URI, cannot use relative URI in @base <"+a+">");return a=If(this._baseURI,a),Yc(a.indexOf(":")>=0),this._baseURI=a,r}return-1}},{key:"bind",value:function(t,r){""==t||this._store.setPrefixForURI(t,r)}},{key:"setKeywords",value:function(t){null==t?this.keywordsSet=0:(this.keywords=t,this.keywordsSet=1)}},{key:"startDoc",value:function(){}},{key:"endDoc",value:function(){return this.hasNil&&this._store.rdfFactory.supports.COLLECTIONS&&TW(this._store,this.source),this._formula}},{key:"makeStatement",value:function(t){t[0].add(t[2],t[1],t[3],this.source),(t[2].uri&&t[2].uri===Ab||t[3].uri&&t[3].uri===Ab)&&(this.hasNil=!0),this.statementCount+=1}},{key:"statement",value:function(t,s){var o=new m2([]);if((s=this.object(t,s,o))<0)return s;var i=this.property_list(t,s,o[0]);if(i<0)throw S1(this._thisDoc,this.lines,t,s,"expected propertylist");return i}},{key:"subject",value:function(t,r,o){return this.item(t,r,o)}},{key:"verb",value:function(t,r,o){if((i=this.skipSpace(t,r))<0)return i;var s=new m2([]);if((i=this.tok("has",t,r))>=0){if((r=this.prop(t,i,s))<0)throw S1(this._thisDoc,this.lines,t,i,"expected property after 'has'");return o.push(new r2(["->",s[0]])),r}if((i=this.tok("is",t,r))>=0){var i;if((r=this.prop(t,i,s))<0)throw S1(this._thisDoc,this.lines,t,i,"expected after 'is'");if((i=this.skipSpace(t,r))<0)throw S1(this._thisDoc,this.lines,t,r,"End of file found, expected property after 'is'");if((i=this.tok("of",t,r=i))<0)throw S1(this._thisDoc,this.lines,t,r,"expected 'of' after 'is' ");return o.push(new r2(["<-",s[0]])),i}if((i=this.tok("a",t,r))>=0)return o.push(new r2(["->",this._store.sym("http://www.w3.org/1999/02/22-rdf-syntax-ns#type")])),i;if("<="==t.slice(r,r+2))return o.push(new r2(["<-",this._store.sym(Ef+"implies")])),r+2;if("="==t.slice(r,r+1))return">"==t.slice(r+1,r+2)?(o.push(new r2(["->",this._store.sym(Ef+"implies")])),r+2):(o.push(new r2(["->",this._store.sym(Db)])),r+1);if(":="==t.slice(r,r+2))return o.push(new r2(["->",Ef+"becomes"])),r+2;if((i=this.prop(t,r,s))>=0)return o.push(new r2(["->",s[0]])),i;if(">-"==t.slice(r,r+2)||"<-"==t.slice(r,r+2))throw S1(this._thisDoc,this.lines,t,i,">- ... -> syntax is obsolete.");return-1}},{key:"prop",value:function(t,r,o){return this.item(t,r,o)}},{key:"item",value:function(t,r,o){return this.path(t,r,o)}},{key:"blankNode",value:function(t){return this._context.bnode(t,this._reason2)}},{key:"path",value:function(t,r,o){if((s=this.nodeOrLiteral(t,r,o))<0)return s;for(;"!^.".indexOf(t.slice(s,s+1))>=0;){var i=t.slice(s,s+1);if("."==i){var l=t.slice(s+1,s+2);if(!l||Xc.indexOf(l)>=0&&":?<[{(".indexOf(l)<0)break}var s,a=o.pop(),c=this.blankNode(this.here(s));if((s=this.node(t,s+1,o))<0)throw S1(this._thisDoc,this.lines,t,s,"EOF found in middle of path syntax");var h=o.pop();this.makeStatement(new r2("^"==i?[this._context,h,c,a]:[this._context,h,a,c])),o.push(c)}return s}},{key:"anonymousNode",value:function(t){if(r=this._anonymousNodes[t])return r;var r=this._store.bnode(t);return this._anonymousNodes[t]=r,r}},{key:"node",value:function(t,l,o,s){typeof s>"u"&&(s=null);var i=s;if((mt=this.skipSpace(t,l))<0)return mt;var a=t.slice(l=mt,l+1);if("["==a){var c=this.here(l);if((mt=this.skipSpace(t,l+1))<0)throw S1(this._thisDoc,this.lines,t,l,"EOF after '['");if("="==t.slice(mt,mt+1)){l=mt+1;var h=new m2([]);if(!((mt=this.objectList(t,l,h))>=0))throw S1(this._thisDoc,this.lines,t,l,"objectList expected after [= ");if(i=h[0],vi(h)>1){var u=new bu(h);try{for(;;){var d=u.next();this.makeStatement(new r2([this._context,this._store.sym(Db),i,d]))}}catch(Ee){if(Ee!=Q4)throw Ee}}if((mt=this.skipSpace(t,mt))<0)throw S1(this._thisDoc,this.lines,t,l,"EOF when objectList expected after [ = ");if(";"==t.slice(mt,mt+1))var mt=mt+1}if(null==i&&(i=this.blankNode(c)),(l=this.property_list(t,mt,i))<0)throw S1(this._thisDoc,this.lines,t,mt,"property_list expected");if((mt=this.skipSpace(t,l))<0)throw S1(this._thisDoc,this.lines,t,l,"EOF when ']' expected after [ ");if("]"!=t.slice(mt,mt+1))throw S1(this._thisDoc,this.lines,t,mt,"']' expected");return o.push(i),mt+1}if("{"==a){if("$"==t.slice(l+1,l+2)){mt=(l+=1)+1;for(var m=new m2([]),L=!0;;){if((l=this.skipSpace(t,mt))<0)throw S1(this._thisDoc,this.lines,t,l,"needed '$}', found end.");if("$}"==t.slice(l,l+2)){mt=l+2;break}if(L)L=!1;else{if(","!=t.slice(l,l+1))throw S1(this._thisDoc,this.lines,t,l,"expected: ','");l+=1}var S=new m2([]);if((mt=this.item(t,l,S))<0)throw S1(this._thisDoc,this.lines,t,l,"expected item in set or '$}'");m.push(S[0])}return o.push(this._store.newSet(m,this._context)),mt}mt=l+1;var j=this._parentContext;this._parentContext=this._context;var N=this._anonymousNodes,Ft=this._parentVariables;this._parentVariables=this._variables,this._anonymousNodes=new zu([]),this._variables=this._variables.slice();var Ot=this._reason2;for(this._reason2=null,null==i&&(i=this._store.formula()),this._context=i;;){if((l=this.skipSpace(t,mt))<0)throw S1(this._thisDoc,this.lines,t,l,"needed '}', found end.");if("}"==t.slice(l,l+1)){mt=l+1;break}if((mt=this.directiveOrStatement(t,l))<0)throw S1(this._thisDoc,this.lines,t,l,"expected statement or '}'")}return this._anonymousNodes=N,this._variables=this._parentVariables,this._parentVariables=Ft,this._context=this._parentContext,this._reason2=Ot,this._parentContext=j,o.push(i.close()),mt}if("("==a){var $t=this._store.list;for("$"==t.slice(l+1,l+2)&&($t=this._store.newSet,l+=1),mt=l+1,m=new m2([]);;){if((l=this.skipSpace(t,mt))<0)throw S1(this._thisDoc,this.lines,t,l,"needed ')', found end.");if(")"==t.slice(l,l+1)){mt=l+1;break}if(S=new m2([]),(mt=this.item(t,l,S))<0)throw S1(this._thisDoc,this.lines,t,l,"expected item in list or ')'");m.push(S[0])}return o.push($t(m,this._context)),mt}if((mt=this.tok("this",t,l))>=0)throw S1(this._thisDoc,this.lines,t,l,"Keyword 'this' was ancient N3. Now use @forSome and @forAll keywords.");return(mt=this.tok("true",t,l))>=0?(o.push(!0),mt):(mt=this.tok("false",t,l))>=0?(o.push(!1),mt):null==i&&(mt=this.uri_ref2(t,l,o))>=0?mt:-1}},{key:"property_list",value:function(t,r,o){for(;;){if((v=this.skipSpace(t,r))<0)throw S1(this._thisDoc,this.lines,t,r,"EOF found when expected verb in property list");if(":-"!=t.slice(v,v+2)){r=v;var i=new m2([]);if((v=this.verb(t,r,i))<=0)return r;var l=new m2([]);if((r=this.objectList(t,v,l))<0)throw S1(this._thisDoc,this.lines,t,v,"objectList expected");var a=new bu(l);try{for(;;){var c=a.next(),h=i[0],d=h[1];this.makeStatement(new r2("->"==h[0]?[this._context,d,o,c]:[this._context,d,c,o]))}}catch(L){if(L!=Q4)throw L}if((v=this.skipSpace(t,r))<0)throw S1(this._thisDoc,this.lines,t,v,"EOF found in list of objects");if(";"!=t.slice(r,r+1))return r;r+=1}else{r=v+2;var v,s=new m2([]);if((v=this.node(t,r,s,o))<0)throw S1(this._thisDoc,this.lines,t,r,"bad {} or () or [] node after :- ");r=v}}}},{key:"commaSeparatedList",value:function(t,r,o,s){if((i=this.skipSpace(t,r))<0)throw S1(this._thisDoc,this.lines,t,i,"EOF found expecting comma sep list");if("."==t.charAt(i))return r;if(s)var i=this.uri_ref2(t,i,o);else i=this.bareWord(t,i,o);if(i<0)return-1;for(;;){if((r=this.skipSpace(t,i))<0)return r;var l=t.slice(r,r+1);if(","!=l)return"."!=l?-1:r;if((i=s?this.uri_ref2(t,r+1,o):this.bareWord(t,r+1,o))<0)throw S1(this._thisDoc,this.lines,t,i,"bad list content")}}},{key:"objectList",value:function(t,s,o){if((s=this.object(t,s,o))<0)return-1;for(;;){var i=this.skipSpace(t,s);if(i<0)throw S1(this._thisDoc,this.lines,t,i,"EOF found after object");if(","!=t.slice(i,i+1))return i;if((s=this.object(t,i+1,o))<0)return s}}},{key:"checkDot",value:function(t,r){var o=this.skipSpace(t,r);if(o<0)return o;if("."==t.slice(o,o+1))return o+1;if("}"==t.slice(o,o+1)||"]"==t.slice(o,o+1))return o;throw S1(this._thisDoc,this.lines,t,o,"expected '.' or '}' or ']' at end of statement")}},{key:"uri_ref2",value:function(t,d,o){var s=new m2([]);if((i=this.qname(t,d,s))>=0){var l=s[0],a=l[0],c=l[1];if(null==a){Yc(0,"not used?");var h=this._baseURI+"#"}else if(!(h=this._bindings[a])){if("_"==a)return o.push(this.anonymousNode(c)),i;throw S1(this._thisDoc,this.lines,t,d,"Prefix "+a+" not bound.")}var u=this._store.sym(h+c);return Ii(this._variables,u)>=0?o.push(this._variables[u]):o.push(u),i}if((d=this.skipSpace(t,d))<0)return-1;if("?"==t.charAt(d)){var v=new m2([]);return(i=this.variable(t,d,v))>0?(o.push(v[0]),i):-1}if("<"==t.charAt(d)){for(var m=d+=1;d"==t.charAt(d)){var L=t.slice(m,d);return this._baseURI?L=If(this._baseURI,L):Yc(L.indexOf(":")>=0,"With no base URI, cannot deal with relative URIs"),"#"==t.slice(d-1,d)&&"#"!=jf(L,-1,null)&&(L+="#"),u=this._store.sym(L),Ii(this._variables,u)>=0?o.push(this._variables[u]):o.push(u),d+1}d+=1}throw S1(this._thisDoc,this.lines,t,i,"unterminated URI reference")}if(this.keywordsSet){var i;if(v=new m2([]),(i=this.bareWord(t,d,v))<0)return-1;if(Ii(this.keywords,v[0])>=0)throw S1(this._thisDoc,this.lines,t,d,'Keyword "'+v[0]+'" not allowed here.');return o.push(this._store.sym(this._bindings[""]+v[0])),i}return-1}},{key:"skipSpace",value:function(t,r){for(var s=r||0;s=0)throw S1(this._thisDoc,this.lines,t,s,"Varible name can't start with '"+t.charAt(s)+"s'");for(;i=0||Xc.indexOf(i)>=0)return-1;for(l=s;l=0)return-1;if(Xc.indexOf(i)<0){var l=i;for(s+=1;s=0)return s;if((s=this.skipSpace(t,r))<0)return-1;var i=null,l=t.charAt(r=s);if('"'==l||"'"==l){i=t.slice(r,r+3==l+l)?l+l+l:l,r+=vi(i);var a=this.strconst(t,r,i),s=a[0];return o.push(this._store.literal(a[1])),s}return-1}},{key:"nodeOrLiteral",value:function(t,r,o){if((s=this.node(t,r,o))>=0)return s;if((s=this.skipSpace(t,r))<0)return-1;var i=t.charAt(r=s);if("-+0987654321".indexOf(i)>=0){if(Tb.lastIndex=0,null!=(l=Tb.exec(t.slice(r))))s=r+(a=l[0]).length,a.indexOf("T")>=0?o.push(this._store.literal(a,this._store.sym("http://www.w3.org/2001/XMLSchema#dateTime"))):o.push(this._store.literal(a,this._store.sym("http://www.w3.org/2001/XMLSchema#date")));else{var a;if(Rf.lastIndex=0,null==(l=Rf.exec(t.slice(r))))throw S1(this._thisDoc,this.lines,t,r,"Bad number or date syntax");(a=t.slice(r,s=r+Rf.lastIndex)).indexOf("e")>=0?o.push(this._store.literal(parseFloat(a),this._store.sym("http://www.w3.org/2001/XMLSchema#double"))):t.slice(r,s).indexOf(".")>=0?o.push(this._store.literal(parseFloat(a),this._store.sym("http://www.w3.org/2001/XMLSchema#decimal"))):o.push(this._store.literal(parseInt(a),this._store.sym("http://www.w3.org/2001/XMLSchema#integer")))}return s}if('"'==t.charAt(r)){if('"""'==t.slice(r,r+3))var c='"""';else c='"';r+=vi(c);var h=null,u=this.strconst(t,r,c),d=u[1],v=null;if("@"==t.slice(s=u[0],s+1)){var l;if(Of.lastIndex=0,null==(l=Of.exec(t.slice(s+1))))throw S1(this._thisDoc,startline,t,r,"Bad language code syntax on string literal, after @");v=t.slice(s+1,r=Of.lastIndex+s+1);var s=r}if("^^"==t.slice(s,s+2)){var m=new m2([]);s=this.uri_ref2(t,s+2,m),h=m[0]}return o.push(this._store.literal(d,v||h)),s}return-1}},{key:"strconst",value:function(t,r,o){for(var s=r,i="",l=this.lines;s=0)i+='a\b\f\r\t\v\n\\"'.charAt(h),s+=1;else if("u"==c)s=(d=this.uEscape(t,s+1,l))[0],i+=c=d[1];else{if("U"!=c)throw S1(this._thisDoc,this.lines,t,r,"bad escape");var d,c;s=(d=this.UEscape(t,s+1,l))[0],i+=c=d[1]}}}else s=r+1;else s=r}else i=i+'"',s=s+1}throw S1(this._thisDoc,this.lines,t,r,"unterminated string literal")}},{key:"uEscape",value:function(t,r,o){for(var s=r,i=0,l=0;i<4;){var c=t.slice(s,s+1).toLowerCase();if(s+=1,""==c)throw S1(this._thisDoc,o,t,r,"unterminated string literal(3)");var h=Pf("0123456789abcdef",c);if(h<0)throw S1(this._thisDoc,o,t,r,"bad string literal hex escape");l=16*l+h,i+=1}var u=String.fromCharCode(l);return new r2([s,u])}},{key:"UEscape",value:function(t,r,o){for(var s=r,i=0,l="\\U";i<8;){var c=t.slice(s,s+1).toLowerCase();if(s+=1,""==c)throw S1(this._thisDoc,o,t,r,"unterminated string literal(3)");if(Pf("0123456789abcdef",c)<0)throw S1(this._thisDoc,o,t,r,"bad string literal hex escape");l+=c,i+=1}var n,u=(n="0x"+jf(l,2,10)-0,String.fromCharCode(n));return new r2([s,u])}}])}();function S1(e,n,t,r,o){var s=n+1,i="Line "+s+" of <"+e+">: Bad syntax: "+o+'\nat: "'+t.slice(r,r+30)+'"',l=new SyntaxError(i,e,s);return l.lineNo=s,l.characterInFile=r,l.syntaxProblem=o,l}function jb(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,r)}return t}function Pb(e){for(var n=1;n\\"\{\}\|\^\`]/,oG={_iri:!0,_unescapedIri:!0,_simpleQuotedString:!0,_langcode:!0,_blank:!0,_newline:!0,_comment:!0,_whitespace:!0,_endOfFile:!0},sG=/$0^/;class iG{constructor(n){if(this._iri=/^<((?:[^ <>{}\\]|\\[uU])+)>[ \t]*/,this._unescapedIri=/^<([^\x00-\x20<>\\"\{\}\|\^\`]*)>[ \t]*/,this._simpleQuotedString=/^"([^"\\\r\n]*)"(?=[^"])/,this._simpleApostropheString=/^'([^'\\\r\n]*)'(?=[^'])/,this._langcode=/^@([a-z]+(?:-[a-z0-9]+)*)(?=[^a-z0-9\-])/i,this._prefix=/^((?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)?:(?=[#\s<])/,this._prefixed=/^((?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)?:((?:(?:[0-:A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~])(?:(?:[\.\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~])*(?:[\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~]))?)?)(?:[ \t]+|(?=\.?[,;!\^\s#()\[\]\{\}"'<>]))/,this._variable=/^\?(?:(?:[A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:[\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)(?=[.,;!\^\s#()\[\]\{\}"'<>])/,this._blank=/^_:((?:[0-9A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)(?:[ \t]+|(?=\.?[,;:\s#()\[\]\{\}"'<>]))/,this._number=/^[\-+]?(?:(\d+\.\d*|\.?\d+)[eE][\-+]?|\d*(\.)?)\d+(?=\.?[,;:\s#()\[\]\{\}"'<>])/,this._boolean=/^(?:true|false)(?=[.,;\s#()\[\]\{\}"'<>])/,this._keyword=/^@[a-z]+(?=[\s#<:])/i,this._sparqlKeyword=/^(?:PREFIX|BASE|GRAPH)(?=[\s#<])/i,this._shortPredicates=/^a(?=[\s#()\[\]\{\}"'<>])/,this._newline=/^[ \t]*(?:#[^\n\r]*)?(?:\r\n|\n|\r)[ \t]*/,this._comment=/#([^\n\r]*)/,this._whitespace=/^[ \t]+/,this._endOfFile=/^(?:#[^\n\r]*)?$/,this._lineMode=!!(n=n||{}).lineMode){this._n3Mode=!1;for(const t in this)!(t in oG)&&this[t]instanceof RegExp&&(this[t]=sG)}else this._n3Mode=!1!==n.n3;this.comments=!!n.comments,this._literalClosingPos=0}_tokenizeToEnd(n,t){let r=this._input,o=r.length;for(;;){let l,a;for(;l=this._newline.exec(r);)this.comments&&(a=this._comment.exec(l[0]))&&s("comment",a[1],"",this._line,l[0].length),r=r.substr(l[0].length,r.length),o=r.length,this._line++;if(!l&&(l=this._whitespace.exec(r))&&(r=r.substr(l[0].length,r.length)),this._endOfFile.test(r))return t&&(this.comments&&(a=this._comment.exec(r))&&s("comment",a[1],"",this._line,r.length),r=null,s("eof","","",this._line,0)),this._input=r;const c=this._line,h=r[0];let u="",d="",v="",m=null,L=0,S=!1;switch(h){case"^":if(r.length<3)break;if("^"!==r[1]){this._n3Mode&&(L=1,u="^");break}if(this._previousMarker="^^",r=r.substr(2),"<"!==r[0]){S=!0;break}case"<":if(m=this._unescapedIri.exec(r))u="IRI",d=m[1];else if(m=this._iri.exec(r)){if(d=this._unescape(m[1]),null===d||nG.test(d))return i(this);u="IRI"}else r.length>1&&"<"===r[1]?(u="<<",L=2):this._n3Mode&&r.length>1&&"="===r[1]&&(u="inverse",L=2,d=">");break;case">":r.length>1&&">"===r[1]&&(u=">>",L=2);break;case"_":((m=this._blank.exec(r))||t&&(m=this._blank.exec(`${r} `)))&&(u="blank",v="_",d=m[1]);break;case'"':if(m=this._simpleQuotedString.exec(r))d=m[1];else if(({value:d,matchLength:L}=this._parseLiteral(r)),null===d)return i(this);(null!==m||0!==L)&&(u="literal",this._literalClosingPos=0);break;case"'":if(!this._lineMode){if(m=this._simpleApostropheString.exec(r))d=m[1];else if(({value:d,matchLength:L}=this._parseLiteral(r)),null===d)return i(this);(null!==m||0!==L)&&(u="literal",this._literalClosingPos=0)}break;case"?":this._n3Mode&&(m=this._variable.exec(r))&&(u="var",d=m[0]);break;case"@":"literal"===this._previousMarker&&(m=this._langcode.exec(r))?(u="langcode",d=m[1]):(m=this._keyword.exec(r))&&(u=m[0]);break;case".":if(1===r.length?t:r[1]<"0"||r[1]>"9"){u=".",L=1;break}case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"+":case"-":(m=this._number.exec(r)||t&&(m=this._number.exec(`${r} `)))&&(u="literal",d=m[0],v="string"==typeof m[1]?Z6.double:"string"==typeof m[2]?Z6.decimal:Z6.integer);break;case"B":case"b":case"p":case"P":case"G":case"g":(m=this._sparqlKeyword.exec(r))?u=m[0].toUpperCase():S=!0;break;case"f":case"t":(m=this._boolean.exec(r))?(u="literal",d=m[0],v=Z6.boolean):S=!0;break;case"a":(m=this._shortPredicates.exec(r))?(u="abbreviation",d="a"):S=!0;break;case"=":this._n3Mode&&r.length>1&&(u="abbreviation",">"!==r[1]?(L=1,d="="):(L=2,d=">"));break;case"!":if(!this._n3Mode)break;case",":case";":case"[":case"]":case"(":case")":case"}":this._lineMode||(L=1,u=h);break;case"{":!this._lineMode&&r.length>=2&&("|"===r[1]?(u="{|",L=2):(u=h,L=1));break;case"|":r.length>=2&&"}"===r[1]&&(u="|}",L=2);break;default:S=!0}if(S&&("@prefix"!==this._previousMarker&&"PREFIX"!==this._previousMarker||!(m=this._prefix.exec(r))?((m=this._prefixed.exec(r))||t&&(m=this._prefixed.exec(`${r} `)))&&(u="prefixed",v=m[1]||"",d=this._unescape(m[2])):(u="prefix",d=m[1]||"")),"^^"===this._previousMarker)switch(u){case"prefixed":u="type";break;case"IRI":u="typeIRI";break;default:u=""}if(!u)return t||!/^'''|^"""/.test(r)&&/\n|\r/.test(r)?i(this):this._input=r;const j=L||m[0].length,N=s(u,d,v,c,j);this.previousToken=N,this._previousMarker=u,r=r.substr(j,r.length)}function s(l,a,c,h,u){const d=r?o-r.length:o,m={type:l,value:a,prefix:c,line:h,start:d,end:d+u};return n(null,m),m}function i(l){n(l._syntaxError(/^\S*/.exec(r)[0]))}}_unescape(n){let t=!1;const r=n.replace(rG,(o,s,i,l)=>{if("string"==typeof s)return String.fromCharCode(Number.parseInt(s,16));if("string"==typeof i){let a=Number.parseInt(i,16);return a<=65535?String.fromCharCode(Number.parseInt(i,16)):String.fromCharCode(55296+((a-=65536)>>10),56320+(1023&a))}return l in Ob?Ob[l]:(t=!0,"")});return t?null:r}_parseLiteral(n){if(n.length>=3){const t=n.match(/^(?:"""|"|'''|'|)/)[0],r=t.length;let o=Math.max(this._literalClosingPos,r);for(;(o=n.indexOf(t,o))>0;){let s=0;for(;"\\"===n[o-s-1];)s++;if(s%2==0){const i=n.substring(r,o),l=i.split(/\r\n|\r|\n/).length-1,a=o+r;if(1===r&&0!==l||3===r&&this._lineMode)break;return this._line+=l,{value:this._unescape(i),matchLength:a}}o++}this._literalClosingPos=n.length-r+1}return{value:"",matchLength:0}}_syntaxError(n){this._input=null;const t=new Error(`Unexpected "${n}" on line ${this._line}.`);return t.context={token:void 0,line:this._line,previousToken:this.previousToken},t}_readStartingBom(n){return n.startsWith("\ufeff")?n.substr(1):n}tokenize(n,t){if(this._line=1,"string"==typeof n){if(this._input=this._readStartingBom(n),"function"!=typeof t){const r=[];let o;if(this._tokenizeToEnd((s,i)=>s?o=s:r.push(i),!0),o)throw o;return r}eG()(()=>this._tokenizeToEnd(t,!0))}else this._pendingBuffer=null,"function"==typeof n.setEncoding&&n.setEncoding("utf8"),n.on("data",r=>{null!==this._input&&0!==r.length&&(this._pendingBuffer&&(r=JW.hp.concat([this._pendingBuffer,r]),this._pendingBuffer=null),128&r[r.length-1]?this._pendingBuffer=r:(typeof this._input>"u"?this._input=this._readStartingBom("string"==typeof r?r:r.toString()):this._input+=r,this._tokenizeToEnd(t,!1)))}),n.on("end",()=>{"string"==typeof this._input&&this._tokenizeToEnd(t,!0)}),n.on("error",t)}}const{rdf:lG,xsd:Kc}=Gl;let J4,aG=0;const cG={namedNode:Zb,blankNode:qb,variable:Gb,literal:Wb,defaultGraph:function pG(){return J4},quad:Gf,triple:Gf,fromTerm:Su,fromQuad:Yb};class Yl{constructor(n){this.id=n}get value(){return this.id}equals(n){return n instanceof Yl?this.id===n.id:!!n&&this.termType===n.termType&&this.value===n.value}hashCode(){return 0}toJSON(){return{termType:this.termType,value:this.value}}}class $b extends Yl{get termType(){return"NamedNode"}}class th extends Yl{get termType(){return"Literal"}get value(){return this.id.substring(1,this.id.lastIndexOf('"'))}get language(){const n=this.id;let t=n.lastIndexOf('"')+1;return t0?"INF":"-INF")))),new th(""===t||t===Kc.string?`"${e}"`:`"${e}"^^${t}`)}function Gb(e){return new uG(e)}function Gf(e,n,t,r){return new Ub(e,n,t,r)}function Su(e){if(e instanceof Yl)return e;switch(e.termType){case"NamedNode":return Zb(e.value);case"BlankNode":return qb(e.value);case"Variable":return Gb(e.value);case"DefaultGraph":return J4;case"Literal":return Wb(e.value,e.language||e.datatype);case"Quad":return Yb(e);default:throw new Error(`Unexpected termType: ${e.termType}`)}}function Yb(e){if(e instanceof Ub)return e;if("Quad"!==e.termType)throw new Error(`Unexpected termType: ${e.termType}`);return Gf(Su(e.subject),Su(e.predicate),Su(e.object),Su(e.graph))}let Xb=0;class Kb{constructor(n){this._contextStack=[],this._graph=null,this._setBase((n=n||{}).baseIRI),n.factory&&Qb(this,n.factory);const t="string"==typeof n.format?n.format.match(/\w*$/)[0].toLowerCase():"",r=/turtle/.test(t),o=/trig/.test(t),s=/triple/.test(t),i=/quad/.test(t),l=this._n3Mode=/n3/.test(t),a=s||i;(this._supportsNamedGraphs=!(r||l))||(this._readPredicateOrNamedGraph=this._readPredicate),this._supportsQuads=!(r||o||s||l),this._supportsRDFStar=""===t||/star|\*$/.test(t),a&&(this._resolveRelativeIRI=c=>null),this._blankNodePrefix="string"!=typeof n.blankNodePrefix?"":n.blankNodePrefix.replace(/^(?!_:)/,"_:"),this._lexer=n.lexer||new iG({lineMode:a,n3:l}),this._explicitQuantifiers=!!n.explicitQuantifiers}static _resetBlankNodePrefix(){Xb=0}_setBase(n){if(n){const t=n.indexOf("#");t>=0&&(n=n.substr(0,t)),this._base=n,this._basePath=n.indexOf("/")<0?n:n.replace(/[^\/?]*(?:\?.*)?$/,""),n=n.match(/^(?:([a-z][a-z0-9+.-]*:))?(?:\/\/[^\/]*)?/i),this._baseRoot=n[0],this._baseScheme=n[1]}else this._base="",this._basePath=""}_saveContext(n,t,r,o,s){const i=this._n3Mode;this._contextStack.push({type:n,subject:r,predicate:o,object:s,graph:t,inverse:!!i&&this._inversePredicate,blankPrefix:i?this._prefixes._:"",quantified:i?this._quantified:null}),i&&(this._inversePredicate=!1,this._prefixes._=this._graph?`${this._graph.value}.`:".",this._quantified=Object.create(this._quantified))}_restoreContext(n,t){const r=this._contextStack.pop();if(!r||r.type!==n)return this._error(`Unexpected ${t.type}`,t);this._subject=r.subject,this._predicate=r.predicate,this._object=r.object,this._graph=r.graph,this._n3Mode&&(this._inversePredicate=r.inverse,this._prefixes._=r.blankPrefix,this._quantified=r.quantified)}_readInTopContext(n){switch(n.type){case"eof":return null!==this._graph?this._error("Unclosed graph",n):(delete this._prefixes._,this._callback(null,null,this._prefixes));case"PREFIX":this._sparqlStyle=!0;case"@prefix":return this._readPrefix;case"BASE":this._sparqlStyle=!0;case"@base":return this._readBaseIRI;case"{":if(this._supportsNamedGraphs)return this._graph="",this._subject=null,this._readSubject;case"GRAPH":if(this._supportsNamedGraphs)return this._readNamedGraphLabel;default:return this._readSubject(n)}}_readEntity(n,t){let r;switch(n.type){case"IRI":case"typeIRI":const o=this._resolveIRI(n.value);if(null===o)return this._error("Invalid IRI",n);r=this._namedNode(o);break;case"type":case"prefixed":const s=this._prefixes[n.prefix];if(void 0===s)return this._error(`Undefined prefix "${n.prefix}:"`,n);r=this._namedNode(s+n.value);break;case"blank":r=this._blankNode(this._prefixes[n.prefix]+n.value);break;case"var":r=this._variable(n.value.substr(1));break;default:return this._error(`Expected entity but got ${n.type}`,n)}return!t&&this._n3Mode&&r.id in this._quantified&&(r=this._quantified[r.id]),r}_readSubject(n){switch(this._predicate=null,n.type){case"[":return this._saveContext("blank",this._graph,this._subject=this._blankNode(),null,null),this._readBlankNodeHead;case"(":return this._saveContext("list",this._graph,this.RDF_NIL,null,null),this._subject=null,this._readListItem;case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._graph=this._blankNode(),null,null),this._readSubject):this._error("Unexpected graph",n);case"}":return this._readPunctuation(n);case"@forSome":return this._n3Mode?(this._subject=null,this._predicate=this.N3_FORSOME,this._quantifier=this._blankNode,this._readQuantifierList):this._error('Unexpected "@forSome"',n);case"@forAll":return this._n3Mode?(this._subject=null,this._predicate=this.N3_FORALL,this._quantifier=this._variable,this._readQuantifierList):this._error('Unexpected "@forAll"',n);case"literal":if(!this._n3Mode)return this._error("Unexpected literal",n);if(0===n.prefix.length)return this._literalValue=n.value,this._completeSubjectLiteral;this._subject=this._literal(n.value,this._namedNode(n.prefix));break;case"<<":return this._supportsRDFStar?(this._saveContext("<<",this._graph,null,null,null),this._graph=null,this._readSubject):this._error("Unexpected RDF-star syntax",n);default:if(void 0===(this._subject=this._readEntity(n)))return;if(this._n3Mode)return this._getPathReader(this._readPredicateOrNamedGraph)}return this._readPredicateOrNamedGraph}_readPredicate(n){const t=n.type;switch(t){case"inverse":this._inversePredicate=!0;case"abbreviation":this._predicate=this.ABBREVIATIONS[n.value];break;case".":case"]":case"}":return null===this._predicate?this._error(`Unexpected ${t}`,n):(this._subject=null,"]"===t?this._readBlankNodeTail(n):this._readPunctuation(n));case";":return null!==this._predicate?this._readPredicate:this._error("Expected predicate but got ;",n);case"[":if(this._n3Mode)return this._saveContext("blank",this._graph,this._subject,this._subject=this._blankNode(),null),this._readBlankNodeHead;case"blank":if(!this._n3Mode)return this._error("Disallowed blank node as predicate",n);default:if(void 0===(this._predicate=this._readEntity(n)))return}return this._readObject}_readObject(n){switch(n.type){case"literal":if(0===n.prefix.length)return this._literalValue=n.value,this._readDataTypeOrLang;this._object=this._literal(n.value,this._namedNode(n.prefix));break;case"[":return this._saveContext("blank",this._graph,this._subject,this._predicate,this._subject=this._blankNode()),this._readBlankNodeHead;case"(":return this._saveContext("list",this._graph,this._subject,this._predicate,this.RDF_NIL),this._subject=null,this._readListItem;case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._subject,this._predicate,this._graph=this._blankNode()),this._readSubject):this._error("Unexpected graph",n);case"<<":return this._supportsRDFStar?(this._saveContext("<<",this._graph,this._subject,this._predicate,null),this._graph=null,this._readSubject):this._error("Unexpected RDF-star syntax",n);default:if(void 0===(this._object=this._readEntity(n)))return;if(this._n3Mode)return this._getPathReader(this._getContextEndReader())}return this._getContextEndReader()}_readPredicateOrNamedGraph(n){return"{"===n.type?this._readGraph(n):this._readPredicate(n)}_readGraph(n){return"{"!==n.type?this._error(`Expected graph but got ${n.type}`,n):(this._graph=this._subject,this._subject=null,this._readSubject)}_readBlankNodeHead(n){return"]"===n.type?(this._subject=null,this._readBlankNodeTail(n)):(this._predicate=null,this._readPredicate(n))}_readBlankNodeTail(n){if("]"!==n.type)return this._readBlankNodePunctuation(n);null!==this._subject&&this._emit(this._subject,this._predicate,this._object,this._graph);const t=null===this._predicate;return this._restoreContext("blank",n),null!==this._object?this._getContextEndReader():null!==this._predicate?this._readObject:t?this._readPredicateOrNamedGraph:this._readPredicateAfterBlank}_readPredicateAfterBlank(n){switch(n.type){case".":case"}":return this._subject=null,this._readPunctuation(n);default:return this._readPredicate(n)}}_readListItem(n){let t=null,r=null,o=this._readListItem;const s=this._subject,i=this._contextStack,l=i[i.length-1];switch(n.type){case"[":this._saveContext("blank",this._graph,r=this._blankNode(),this.RDF_FIRST,this._subject=t=this._blankNode()),o=this._readBlankNodeHead;break;case"(":this._saveContext("list",this._graph,r=this._blankNode(),this.RDF_FIRST,this.RDF_NIL),this._subject=null;break;case")":if(this._restoreContext("list",n),0!==i.length&&"list"===i[i.length-1].type&&this._emit(this._subject,this._predicate,this._object,this._graph),null===this._predicate){if(o=this._readPredicate,this._subject===this.RDF_NIL)return o}else if(o=this._getContextEndReader(),this._object===this.RDF_NIL)return o;r=this.RDF_NIL;break;case"literal":0===n.prefix.length?(this._literalValue=n.value,o=this._readListItemDataTypeOrLang):(t=this._literal(n.value,this._namedNode(n.prefix)),o=this._getContextEndReader());break;case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._subject,this._predicate,this._graph=this._blankNode()),this._readSubject):this._error("Unexpected graph",n);default:if(void 0===(t=this._readEntity(n)))return}if(null===r&&(this._subject=r=this._blankNode()),null===s?null===l.predicate?l.subject=r:l.object=r:this._emit(s,this.RDF_REST,r,this._graph),null!==t){if(this._n3Mode&&("IRI"===n.type||"prefixed"===n.type))return this._saveContext("item",this._graph,r,this.RDF_FIRST,t),this._subject=t,this._predicate=null,this._getPathReader(this._readListItem);this._emit(r,this.RDF_FIRST,t,this._graph)}return o}_readDataTypeOrLang(n){return this._completeObjectLiteral(n,!1)}_readListItemDataTypeOrLang(n){return this._completeObjectLiteral(n,!0)}_completeLiteral(n){let t=this._literal(this._literalValue);switch(n.type){case"type":case"typeIRI":const r=this._readEntity(n);if(void 0===r)return;t=this._literal(this._literalValue,r),n=null;break;case"langcode":t=this._literal(this._literalValue,n.value),n=null}return{token:n,literal:t}}_completeSubjectLiteral(n){return this._subject=this._completeLiteral(n).literal,this._readPredicateOrNamedGraph}_completeObjectLiteral(n,t){const r=this._completeLiteral(n);if(r)return this._object=r.literal,t&&this._emit(this._subject,this.RDF_FIRST,this._object,this._graph),null===r.token?this._getContextEndReader():(this._readCallback=this._getContextEndReader(),this._readCallback(r.token))}_readFormulaTail(n){return"}"!==n.type?this._readPunctuation(n):(null!==this._subject&&this._emit(this._subject,this._predicate,this._object,this._graph),this._restoreContext("formula",n),null===this._object?this._readPredicate:this._getContextEndReader())}_readPunctuation(n){let t,r=this._graph;const o=this._subject,s=this._inversePredicate;switch(n.type){case"}":if(null===this._graph)return this._error("Unexpected graph closing",n);if(this._n3Mode)return this._readFormulaTail(n);this._graph=null;case".":this._subject=null,t=this._contextStack.length?this._readSubject:this._readInTopContext,s&&(this._inversePredicate=!1);break;case";":t=this._readPredicate;break;case",":t=this._readObject;break;case"{|":if(!this._supportsRDFStar)return this._error("Unexpected RDF-star syntax",n);this._subject=this._quad(o,this._predicate,this._object,this.DEFAULTGRAPH),t=this._readPredicate;break;case"|}":if("Quad"!==this._subject.termType)return this._error("Unexpected asserted triple closing",n);this._subject=null,t=this._readPunctuation;break;default:if(this._supportsQuads&&null===this._graph&&void 0!==(r=this._readEntity(n))){t=this._readQuadPunctuation;break}return this._error(`Expected punctuation to follow "${this._object.id}"`,n)}if(null!==o){const i=this._predicate,l=this._object;s?this._emit(l,i,o,r):this._emit(o,i,l,r)}return t}_readBlankNodePunctuation(n){let t;switch(n.type){case";":t=this._readPredicate;break;case",":t=this._readObject;break;default:return this._error(`Expected punctuation to follow "${this._object.id}"`,n)}return this._emit(this._subject,this._predicate,this._object,this._graph),t}_readQuadPunctuation(n){return"."!==n.type?this._error("Expected dot to follow quad",n):this._readInTopContext}_readPrefix(n){return"prefix"!==n.type?this._error("Expected prefix to follow @prefix",n):(this._prefix=n.value,this._readPrefixIRI)}_readPrefixIRI(n){if("IRI"!==n.type)return this._error(`Expected IRI to follow prefix "${this._prefix}:"`,n);const t=this._readEntity(n);return this._prefixes[this._prefix]=t.value,this._prefixCallback(this._prefix,t),this._readDeclarationPunctuation}_readBaseIRI(n){const t="IRI"===n.type&&this._resolveIRI(n.value);return t?(this._setBase(t),this._readDeclarationPunctuation):this._error("Expected valid IRI to follow base declaration",n)}_readNamedGraphLabel(n){switch(n.type){case"IRI":case"blank":case"prefixed":return this._readSubject(n),this._readGraph;case"[":return this._readNamedGraphBlankLabel;default:return this._error("Invalid graph label",n)}}_readNamedGraphBlankLabel(n){return"]"!==n.type?this._error("Invalid graph label",n):(this._subject=this._blankNode(),this._readGraph)}_readDeclarationPunctuation(n){return this._sparqlStyle?(this._sparqlStyle=!1,this._readInTopContext(n)):"."!==n.type?this._error("Expected declaration to end with a dot",n):this._readInTopContext}_readQuantifierList(n){let t;switch(n.type){case"IRI":case"prefixed":if(void 0!==(t=this._readEntity(n,!0)))break;default:return this._error(`Unexpected ${n.type}`,n)}return this._explicitQuantifiers?(null===this._subject?this._emit(this._graph||this.DEFAULTGRAPH,this._predicate,this._subject=this._blankNode(),this.QUANTIFIERS_GRAPH):this._emit(this._subject,this.RDF_REST,this._subject=this._blankNode(),this.QUANTIFIERS_GRAPH),this._emit(this._subject,this.RDF_FIRST,t,this.QUANTIFIERS_GRAPH)):this._quantified[t.id]=this._quantifier(this._blankNode().value),this._readQuantifierPunctuation}_readQuantifierPunctuation(n){return","===n.type?this._readQuantifierList:(this._explicitQuantifiers&&(this._emit(this._subject,this.RDF_REST,this.RDF_NIL,this.QUANTIFIERS_GRAPH),this._subject=null),this._readCallback=this._getContextEndReader(),this._readCallback(n))}_getPathReader(n){return this._afterPath=n,this._readPath}_readPath(n){switch(n.type){case"!":return this._readForwardPath;case"^":return this._readBackwardPath;default:const t=this._contextStack,r=t.length&&t[t.length-1];if(r&&"item"===r.type){const o=this._subject;this._restoreContext("item",n),this._emit(this._subject,this.RDF_FIRST,o,this._graph)}return this._afterPath(n)}}_readForwardPath(n){let t,r;const o=this._blankNode();if(void 0!==(r=this._readEntity(n)))return null===this._predicate?(t=this._subject,this._subject=o):(t=this._object,this._object=o),this._emit(t,r,o,this._graph),this._readPath}_readBackwardPath(n){const t=this._blankNode();let r,o;if(void 0!==(r=this._readEntity(n)))return null===this._predicate?(o=this._subject,this._subject=t):(o=this._object,this._object=t),this._emit(t,r,o,this._graph),this._readPath}_readRDFStarTailOrGraph(n){return">>"!==n.type?this._supportsQuads&&null===this._graph&&void 0!==(this._graph=this._readEntity(n))?this._readRDFStarTail:this._error(`Expected >> to follow "${this._object.id}"`,n):this._readRDFStarTail(n)}_readRDFStarTail(n){if(">>"!==n.type)return this._error(`Expected >> but got ${n.type}`,n);const t=this._quad(this._subject,this._predicate,this._object,this._graph||this.DEFAULTGRAPH);return this._restoreContext("<<",n),null===this._subject?(this._subject=t,this._readPredicate):(this._object=t,this._getContextEndReader())}_getContextEndReader(){const n=this._contextStack;if(!n.length)return this._readPunctuation;switch(n[n.length-1].type){case"blank":return this._readBlankNodeTail;case"list":return this._readListItem;case"formula":return this._readFormulaTail;case"<<":return this._readRDFStarTailOrGraph}}_emit(n,t,r,o){this._callback(null,this._quad(n,t,r,o||this.DEFAULTGRAPH))}_error(n,t){const r=new Error(`${n} on line ${t.line}.`);r.context={token:t,line:t.line,previousToken:this._lexer.previousToken},this._callback(r),this._callback=G6}_resolveIRI(n){return/^[a-z][a-z0-9+.-]*:/i.test(n)?n:this._resolveRelativeIRI(n)}_resolveRelativeIRI(n){if(!n.length)return this._base;switch(n[0]){case"#":return this._base+n;case"?":return this._base.replace(/(?:\?.*)?$/,n);case"/":return("/"===n[1]?this._baseScheme:this._baseRoot)+this._removeDotSegments(n);default:return/^[^/:]*:/.test(n)?null:this._removeDotSegments(this._basePath+n)}}_removeDotSegments(n){if(!/(^|\/)\.\.?($|[/#?])/.test(n))return n;const t=n.length;let r="",o=-1,s=-1,i=0,l="/";for(;o=s&&(r=r.substr(0,i)),"/"!==l)return`${r}/${n.substr(o+1)}`;i=o+1}}}l=n[++o]}return r+n.substring(i)}parse(n,t,r){let o,s,i;if(t&&(t.onQuad||t.onPrefix||t.onComment)?(o=t.onQuad,s=t.onPrefix,i=t.onComment):(o=t,s=r),this._readCallback=this._readInTopContext,this._sparqlStyle=!1,this._prefixes=Object.create(null),this._prefixes._=this._blankNodePrefix?this._blankNodePrefix.substr(2):`b${Xb++}_`,this._prefixCallback=s||G6,this._inversePredicate=!1,this._quantified=Object.create(null),!o){const a=[];let c;if(this._callback=(h,u)=>{h?c=h:u&&a.push(u)},this._lexer.tokenize(n).every(h=>this._readCallback=this._readCallback(h)),c)throw c;return a}let l=(a,c)=>{null!==a?(this._callback(a),this._callback=G6):this._readCallback&&(this._readCallback=this._readCallback(c))};i&&(this._lexer.comments=!0,l=(a,c)=>{null!==a?(this._callback(a),this._callback=G6):this._readCallback&&("comment"===c.type?i(c.value):this._readCallback=this._readCallback(c))}),this._callback=o,this._lexer.tokenize(n,l)}}function G6(){}function Qb(e,n){const t=n.namedNode;e._namedNode=t,e._blankNode=n.blankNode,e._literal=n.literal,e._variable=n.variable,e._quad=n.quad,e.DEFAULTGRAPH=n.defaultGraph(),e.RDF_FIRST=t(Gl.rdf.first),e.RDF_REST=t(Gl.rdf.rest),e.RDF_NIL=t(Gl.rdf.nil),e.N3_FORALL=t(Gl.r.forAll),e.N3_FORSOME=t(Gl.r.forSome),e.ABBREVIATIONS={a:t(Gl.rdf.type),"=":t(Gl.owl.sameAs),">":t(Gl.log.implies)},e.QUANTIFIERS_GRAPH=t("urn:n3:quantifiers")}if(Qb(Kb.prototype,cG),typeof _0>"u")var _0={ELEMENT_NODE:1,ATTRIBUTE_NODE:2,TEXT_NODE:3,CDATA_SECTION_NODE:4,ENTITY_REFERENCE_NODE:5,ENTITY_NODE:6,PROCESSING_INSTRUCTION_NODE:7,COMMENT_NODE:8,DOCUMENT_NODE:9,DOCUMENT_TYPE_NODE:10,DOCUMENT_FRAGMENT_NODE:11,NOTATION_NODE:12};var Ri=function(){function e(n,t){(0,Mo.A)(this,e),this.options=t||{},this.kb=n,this.target=t.target||{graph:{subjects:{},prefixes:{},terms:{}}},this.blankNodes=[],this.htmlOptions={selfClosing:"br img input area base basefont col colgroup source wbr isindex link meta param hr"},this.theOne="_:"+(new Date).getTime(),this.language=null,this.vocabulary=null,this.blankCounter=0,this.langAttributes=[{namespaceURI:"http://www.w3.org/XML/1998/namespace",localName:"lang"}],this.inXHTMLMode=!1,this.absURIRE=/[\w\_\-]+:\S+/,this.finishedHandlers=[],this.init()}return(0,yo.A)(e,[{key:"addTriple",value:function(t,r,o,s){var i,l,a,c;i=typeof r>"u"?gl.namedNode(this.options.base):this.toRDFNodeObject(r),a=this.toRDFNodeObject(o),l=this.toRDFNodeObject(s),c=gl.namedNode(this.options.base),this.kb.add(i,a,l,c)}},{key:"ancestorPath",value:function(t){for(var r="";t&&t.nodeType!==_0.DOCUMENT_NODE;)r="/"+t.localName+r,t=t.parentNode;return r}},{key:"copyMappings",value:function(t){var r={};for(var o in t)r[o]=t[o];return r}},{key:"copyProperties",value:function(){}},{key:"deriveDateTimeType",value:function(t){for(var r=0;r=0){var l=t.substring(0,s);if(""===l)return(i=r[""])?i+t.substring(s+1):null;if("_"===l)return"_:"+t.substring(s+1);if(e.NCNAME.test(l)&&(i=r[l]))return i+t.substring(s+1)}return null}},{key:"parseCURIEOrURI",value:function(t,r,o){return this.parseCURIE(t,r,o)||this.resolveAndNormalize(o,t)}},{key:"parsePredicate",value:function(t,r,o,s,i,l){if(""===t)return null;var a=this.parseTermOrCURIEOrAbsURI(t,r,l?null:o,s,i);return a&&0===a.indexOf("_:")?null:a}},{key:"parsePrefixMappings",value:function(t,r){for(var o=this.tokenize(t),s=null,i=0;i=0&&(w5=w5.substring(0,sD)),r&&r.baseURIMap&&(w5=r.baseURIMap(w5)),w5};for(s.push({current:t,context:this.push(null,i(t.baseURI))});s.length>0;){var l=s.shift();if(l.parent){if(l.context.parent&&l.context.parent.listMapping===l.listMapping)continue;for(var a in l.listMapping){var c=l.listMapping[a];if(0!==c.length){for(var h=[],u=0;u0?this.addTriple(v,o.spec,"http://www.w3.org/ns/rdfa#usesVocabulary",{type:e.objectURI,value:Ve=Pe}):Ve=this.vocabulary}for(var Ee=0;Ee0?os:null}var f5,Zi,yn=v.getAttributeNode("rel"),C2=v.getAttributeNode("rev"),ro=v.getAttributeNode("typeof"),Ni=v.getAttributeNode("property"),qs=v.getAttributeNode("datatype"),T2=this.inHTMLMode?v.getAttributeNode("datetime"):null,ss=v.getAttributeNode("content"),is=v.getAttributeNode("about"),Cl=v.getAttributeNode("src"),Ws=v.getAttributeNode("resource"),$i=v.getAttributeNode("href"),xw=v.getAttributeNode("inlist"),Ui=[];if(yn){Zi=this.tokenize(yn.value);for(var Mw=0;Mw"u")){if("string"==typeof t)return"_:"===t.substring(0,2)?(typeof this.blankNodes[t.substring(2)]>"u"&&(this.blankNodes[t.substring(2)]=new vl(t.substring(2))),this.blankNodes[t.substring(2)]):gl.namedNode(t);switch(t.type){case e.objectURI:return"_:"===t.value.substring(0,2)?(typeof this.blankNodes[t.value.substring(2)]>"u"&&(this.blankNodes[t.value.substring(2)]=new vl(t.value.substring(2))),this.blankNodes[t.value.substring(2)]):gl.namedNode(t.value);case e.PlainLiteralURI:return new pi(t.value,t.language||"");case e.XMLLiteralURI:case e.HTMLLiteralURI:var o="";return Object.keys(t.value).forEach(function(s){o+=fl.jI(t.value[s],r.htmlOptions)}),new pi(o,"",new X2.A(t.type));default:return new pi(t.value,"",new X2.A(t.type))}}}},{key:"trim",value:function(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}}],[{key:"parseRDFaDOM",value:function(t,r,o){var s=new e(r,{base:o});t.baseURI||(t.baseURI=o),s.process(t,{baseURI:o})}},{key:"tokenize",value:function(t){return this.trim(t).split(/\s+/)}},{key:"trim",value:function(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}}])}();Ri.XMLLiteralURI="http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral",Ri.HTMLLiteralURI="http://www.w3.org/1999/02/22-rdf-syntax-ns#HTML",Ri.PlainLiteralURI="http://www.w3.org/1999/02/22-rdf-syntax-ns#PlainLiteral",Ri.objectURI="http://www.w3.org/1999/02/22-rdf-syntax-ns#object",Ri.typeURI="http://www.w3.org/1999/02/22-rdf-syntax-ns#type",Ri.nameChar="[-A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd\u10000-\uefffF.0-9\xb7\u0300-\u036f\u203f-\u2040]",Ri.nameStartChar="[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u0131\u0134-\u013e\u0141-\u0148\u014a-\u017e\u0180-\u01c3\u01cd-\u01f0\u01f4-\u01f5\u01fa-\u0217\u0250-\u02a8\u02bb-\u02c1\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03ce\u03d0-\u03d6\u03da\u03dc\u03de\u03e0\u03e2-\u03f3\u0401-\u040c\u040e-\u044f\u0451-\u045c\u045e-\u0481\u0490-\u04c4\u04c7-\u04c8\u04cb-\u04cc\u04d0-\u04eb\u04ee-\u04f5\u04f8-\u04f9\u0531-\u0556\u0559\u0561-\u0586\u05d0-\u05ea\u05f0-\u05f2\u0621-\u063a\u0641-\u064a\u0671-\u06b7\u06ba-\u06be\u06c0-\u06ce\u06d0-\u06d3\u06d5\u06e5-\u06e6\u0905-\u0939\u093d\u0958-\u0961\u0985-\u098c\u098f-\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09dc-\u09dd\u09df-\u09e1\u09f0-\u09f1\u0a05-\u0a0a\u0a0f-\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32-\u0a33\u0a35-\u0a36\u0a38-\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8b\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2-\u0ab3\u0ab5-\u0ab9\u0abd\u0ae0\u0b05-\u0b0c\u0b0f-\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32-\u0b33\u0b36-\u0b39\u0b3d\u0b5c-\u0b5d\u0b5f-\u0b61\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99-\u0b9a\u0b9c\u0b9e-\u0b9f\u0ba3-\u0ba4\u0ba8-\u0baa\u0bae-\u0bb5\u0bb7-\u0bb9\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c33\u0c35-\u0c39\u0c60-\u0c61\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cde\u0ce0-\u0ce1\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d28\u0d2a-\u0d39\u0d60-\u0d61\u0e01-\u0e2e\u0e30\u0e32-\u0e33\u0e40-\u0e45\u0e81-\u0e82\u0e84\u0e87-\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa-\u0eab\u0ead-\u0eae\u0eb0\u0eb2-\u0eb3\u0ebd\u0ec0-\u0ec4\u0f40-\u0f47\u0f49-\u0f69\u10a0-\u10c5\u10d0-\u10f6\u1100\u1102-\u1103\u1105-\u1107\u1109\u110b-\u110c\u110e-\u1112\u113c\u113e\u1140\u114c\u114e\u1150\u1154-\u1155\u1159\u115f-\u1161\u1163\u1165\u1167\u1169\u116d-\u116e\u1172-\u1173\u1175\u119e\u11a8\u11ab\u11ae-\u11af\u11b7-\u11b8\u11ba\u11bc-\u11c2\u11eb\u11f0\u11f9\u1e00-\u1e9b\u1ea0-\u1ef9\u1f00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2126\u212a-\u212b\u212e\u2180-\u2182\u3041-\u3094\u30a1-\u30fa\u3105-\u312c\uac00-\ud7a3\u4e00-\u9fa5\u3007\u3021-\u3029_]",Ri.NCNAME=new RegExp("^"+Ri.nameStartChar+Ri.nameChar+"*$"),Ri.dateTimeTypes=[{pattern:/-?P(?:[0-9]+Y)?(?:[0-9]+M)?(?:[0-9]+D)?(?:T(?:[0-9]+H)?(?:[0-9]+M)?(?:[0-9]+(?:\.[0-9]+)?S)?)?/,type:"http://www.w3.org/2001/XMLSchema#duration"},{pattern:/-?(?:[1-9][0-9][0-9][0-9]|0[1-9][0-9][0-9]|00[1-9][0-9]|000[1-9])-[0-9][0-9]-[0-9][0-9]T(?:[0-1][0-9]|2[0-4]):[0-5][0-9]:[0-5][0-9](?:\.[0-9]+)?(?:Z|[+\-][0-9][0-9]:[0-9][0-9])?/,type:"http://www.w3.org/2001/XMLSchema#dateTime"},{pattern:/-?(?:[1-9][0-9][0-9][0-9]|0[1-9][0-9][0-9]|00[1-9][0-9]|000[1-9])-[0-9][0-9]-[0-9][0-9](?:Z|[+\-][0-9][0-9]:[0-9][0-9])?/,type:"http://www.w3.org/2001/XMLSchema#date"},{pattern:/(?:[0-1][0-9]|2[0-4]):[0-5][0-9]:[0-5][0-9](?:\.[0-9]+)?(?:Z|[+\-][0-9][0-9]:[0-9][0-9])?/,type:"http://www.w3.org/2001/XMLSchema#time"},{pattern:/-?(?:[1-9][0-9][0-9][0-9]|0[1-9][0-9][0-9]|00[1-9][0-9]|000[1-9])-[0-9][0-9]/,type:"http://www.w3.org/2001/XMLSchema#gYearMonth"},{pattern:/-?[1-9][0-9][0-9][0-9]|0[1-9][0-9][0-9]|00[1-9][0-9]|000[1-9]/,type:"http://www.w3.org/2001/XMLSchema#gYear"}];var Y6=Ri.parseRDFaDOM,X6=function(){function e(n){(0,Mo.A)(this,e),this.store=n,this.bnodes={},this.why=null,this.reify=!1}return(0,yo.A)(e,[{key:"frameFactory",value:function(t,r,o){return{NODE:1,ARC:2,parent:r,parser:t,store:t.store,element:o,lastChild:0,base:null,lang:null,node:null,nodeType:null,listIndex:1,rdfid:null,datatype:null,collection:!1,terminateFrame:function(){this.collection&&this.node.close()},addSymbol:function(i,l){l=Pi(l,this.base),this.node=this.store.sym(l),this.nodeType=i},loadTriple:function(){if(this.parent.parent.collection?this.parent.parent.node.append(this.node):this.store.add(this.parent.parent.node,this.parent.node,this.node,this.parser.why),null!=this.parent.rdfid){var i=this.store.sym(Pi("#"+this.parent.rdfid,this.base));this.store.add(i,this.store.sym(e.ns.RDF+"type"),this.store.sym(e.ns.RDF+"Statement"),this.parser.why),this.store.add(i,this.store.sym(e.ns.RDF+"subject"),this.parent.parent.node,this.parser.why),this.store.add(i,this.store.sym(e.ns.RDF+"predicate"),this.parent.node,this.parser.why),this.store.add(i,this.store.sym(e.ns.RDF+"object"),this.node,this.parser.why)}},isTripleToLoad:function(){return null!=this.parent&&null!=this.parent.parent&&this.nodeType===this.NODE&&this.parent.nodeType===this.ARC&&this.parent.parent.nodeType===this.NODE},addNode:function(i){this.addSymbol(this.NODE,i),this.isTripleToLoad()&&this.loadTriple()},addCollection:function(){this.nodeType=this.NODE,this.node=this.store.collection(),this.collection=!0,this.isTripleToLoad()&&this.loadTriple()},addCollectionArc:function(){this.nodeType=this.ARC},addBNode:function(i){this.node=null!=i?null!=this.parser.bnodes[i]?this.parser.bnodes[i]:this.parser.bnodes[i]=this.store.bnode():this.store.bnode(),this.nodeType=this.NODE,this.isTripleToLoad()&&this.loadTriple()},addArc:function(i){i===e.ns.RDF+"li"&&(i=e.ns.RDF+"_"+this.parent.listIndex,this.parent.listIndex++),this.addSymbol(this.ARC,i)},addLiteral:function(i){this.node=this.store.literal(i,this.parent.datatype&&this.parent.datatype!==e.ns.RDF+"langString"?this.store.sym(this.parent.datatype):this.lang),this.nodeType=this.NODE,this.isTripleToLoad()&&this.loadTriple()}}}},{key:"getAttributeNodeNS",value:function(t,r,o){var s=null;if(t.getAttributeNodeNS)s=t.getAttributeNodeNS(r,o);else for(var l,i=t.attributes,c=0;c=0?mt+=$t.nodeName.split(":")[1]:mt+=$t.nodeName),mt}.bind(this),s=!0;t.parent;){var i=t.element,l=i.attributes;if(i.nodeType===e.nodeType.TEXT||i.nodeType===e.nodeType.CDATA_SECTION)t.parent.nodeType===t.NODE&&(t.addArc(e.ns.RDF+"value"),t=this.buildFrame(t)),t.addLiteral(i.nodeValue);else if(o(i)!==e.ns.RDF+"RDF")if(t.parent&&t.parent.collection&&(t.addCollectionArc(),(t=this.buildFrame(t,t.element)).parent.element=null),t.parent&&t.parent.nodeType&&t.parent.nodeType!==t.ARC){t.addArc(o(i)),this.reify&&(r=this.getAttributeNodeNS(i,e.ns.RDF,"ID"))&&(t.rdfid=r.nodeValue,i.removeAttributeNode(r));var d=this.getAttributeNodeNS(i,e.ns.RDF,"parseType"),v=this.getAttributeNodeNS(i,e.ns.RDF,"datatype");if(v&&(t.datatype=v.nodeValue,i.removeAttributeNode(v)),d){var m=d.nodeValue;"Literal"===m?(t.datatype=e.ns.RDF+"XMLLiteral",(t=this.buildFrame(t)).addLiteral(i.innerHTML||i.childNodes),s=!1):"Resource"===m?((t=this.buildFrame(t,t.element)).parent.element=null,t.addBNode()):"Collection"===m&&((t=this.buildFrame(t,t.element)).parent.element=null,t.addCollection()),i.removeAttributeNode(d)}if(0!==l.length){var L=this.getAttributeNodeNS(i,e.ns.RDF,"resource"),S=this.getAttributeNodeNS(i,e.ns.RDF,"nodeID");t=this.buildFrame(t),L?(t.addNode(L.nodeValue),i.removeAttributeNode(L)):S?(t.addBNode(S.nodeValue),i.removeAttributeNode(S)):t.addBNode();for(var j=l.length-1;j>=0;j--){var N=this.buildFrame(t);N.addArc(o(l[j])),o(l[j])===e.ns.RDF+"type"?this.buildFrame(N).addNode(l[j].nodeValue):this.buildFrame(N).addLiteral(l[j].nodeValue)}}else 0===i.childNodes.length&&this.buildFrame(t).addLiteral("")}else{var a=this.getAttributeNodeNS(i,e.ns.RDF,"about");if(r=this.getAttributeNodeNS(i,e.ns.RDF,"ID"),a&&r)throw new Error("RDFParser: "+i.nodeName+" has both rdf:id and rdf:about. Halting. Only one of these properties may be specified on a node.");if(!a&&r)t.addNode("#"+r.nodeValue),i.removeAttributeNode(r);else if(null==a&&null==r){var c=this.getAttributeNodeNS(i,e.ns.RDF,"nodeID");c?(t.addBNode(c.nodeValue),i.removeAttributeNode(c)):t.addBNode()}else t.addNode(a.nodeValue),i.removeAttributeNode(a);var h=this.getAttributeNodeNS(i,e.ns.RDF,"type");e.ns.RDF+"Description"!==o(i)&&(h={nodeValue:o(i)}),null!=h&&(this.store.add(t.node,this.store.sym(e.ns.RDF+"type"),this.store.sym(Pi(h.nodeValue,t.base)),this.why),h.nodeName&&i.removeAttributeNode(h));for(var u=l.length-1;u>=0;u--)this.store.add(t.node,this.store.sym(o(l[u])),this.store.literal(l[u].nodeValue,t.lang),this.why)}for(i=t.element;t.parent;){for(var Ft=t;null==i;)i=(t=t.parent).element;var Ot=i.childNodes&&i.childNodes[t.lastChild];if(Ot&&s){if((Ot.nodeType===e.nodeType.ELEMENT||Ot.nodeType===e.nodeType.TEXT||Ot.nodeType===e.nodeType.CDATA_SECTION)&&(Ot.nodeType!==e.nodeType.TEXT&&Ot.nodeType!==e.nodeType.CDATA_SECTION||1===i.childNodes.length)){t.lastChild++,t=this.buildFrame(Ft,i.childNodes[t.lastChild-1]);break}t.lastChild++}else{if(t.terminateFrame(),!(t=t.parent))break;i=t.element,s=!0}}}}},{key:"cleanParser",value:function(){this.bnodes={},this.why=null}},{key:"buildFrame",value:function(t,r){var o=this.frameFactory(this,t,r);if(t&&(o.base=t.base,o.lang=t.lang),!r||r.nodeType===e.nodeType.TEXT||r.nodeType===e.nodeType.CDATA_SECTION)return o;var s=r.attributes,i=r.getAttributeNode("xml:base");null!=i&&(o.base=i.nodeValue,r.removeAttribute("xml:base"));var l=r.getAttributeNode("xml:lang");null!=l&&(o.lang=l.nodeValue,r.removeAttribute("xml:lang"));for(var a=s.length-1;a>=0;a--)if("xml"===s[a].nodeName.substr(0,3)){if("xmlns:"===s[a].name.slice(0,6)){var c=s[a].nodeValue;this.base&&(c=Pi(c,this.base)),this.store.setPrefixForURI(s[a].name.slice(6),c)}r.removeAttributeNode(s[a])}return o}}])}();function K6(e,n,t){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"text/turtle",o=arguments.length>4?arguments[4]:void 0;r=(r=r||_1.sT).split(";")[0];try{if(r===_1.ny||r===_1.sT)Nf(n,n,t,t,null,null,"",null).loadBuf(e),a();else if(r===_1.JG)new X6(n).parse(fl.h4(e),t,n.sym(t)),a();else if(r===_1.H)Y6(fl.h4(e,{contentType:_1.H}),n,t),a();else if(r===_1.lc)Y6(fl.h4(e,{contentType:_1.lc}),n,t),a();else if(r===_1.K9||r===_1.Fn)(function vG(e,n,t){var r,o,s,i=["INSERT","DELETE","WHERE"],l=Rn("http://www.w3.org/ns/pim/patch#"),a=Nf(n,n,t,t,null,null,"",null),c={},h=function(S,j,N,Ft,Ot){return"Line "+(j+1)+" of <"+S+">: Bad syntax:\n "+Ot+'\n at: "'+N.slice(Ft,Ft+30)+'"'};r=0;var u=n.sym(t+"#query");for(c.query=u;;){if((o=a.skipSpace(e,r))<0)return c;if(";"===e[o]){if((r=a.skipSpace(e,o+1))<0)return c;o=r}var d=!1;for(s=0;s as "+r);throw v.cause=d,v}o(d,n)}}(d)}function a(){o&&o(null,n)}function u(d,v){v?n.add(v.subject,v.predicate,v.object,v.graph):o(d,n)}K6.handled={"text/n3":!0,"text/turtle":!0,"application/rdf+xml":!0,"application/xhtml+xml":!0,"text/html":!0,"application/sparql-update":!0,"application/sparql-update-single-match":!0,"application/ld+json":!0,"application/nquads":!0,"application/n-quads":!0}}(0,Ae.A)(X6,"ns",{RDF:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",RDFS:"http://www.w3.org/2000/01/rdf-schema#"}),(0,Ae.A)(X6,"nodeType",{ELEMENT:1,ATTRIBUTE:2,TEXT:3,CDATA_SECTION:4,ENTITY_REFERENCE:5,ENTITY:6,PROCESSING_INSTRUCTION:7,COMMENT:8,DOCUMENT:9,DOCUMENT_TYPE:10,DOCUMENT_FRAGMENT:11,NOTATION:12});var Q6=ht(8181),gG=ht.n(Q6),Au=ht(79);function Jb(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t0&&a.add(s.resource,Xl.dc("title"),a.rdfFactory.literal(c[0].textContent),s.resource);for(var h=this.dom.getElementsByTagName("link"),u=h.length-1;u>=0;u--)l=!1,(i=h[u].getAttribute("rel"))||(i=h[u].getAttribute("rev"),l=!0),i&&r.linkData(s.original,i,h[u].getAttribute("href"),s.resource,l);for(var d=this.dom.getElementsByTagName("script"),v=0;v");return!(-1===n||-1===t||n>t)&&-1!==e.substr(n,t-n).indexOf("XHTML")}(o))return r.addStatus(s.req,"Has XHTML DOCTYPE. Switching to XHTMLHandler.\n"),new Jc(this.response).parse(r,o,s);if(function kG(e){return!!e.match(/[^(/)}(o))return r.addStatus(s.req,"Has default namespace for XHTML, so switching to XHTMLHandler.\n"),new Jc(this.response).parse(r,o,s);var h=new RegExp("([\\s\\S]+?) ","im").exec(o);return h&&i.add(s.resource,Xl.dc("title"),i.rdfFactory.literal(h[1]),s.resource),i.add(s.resource,Xl.rdf("type"),Xl.link("WebPage"),r.appNode),r.addStatus(s.req,"non-XML HTML document, not parsed for data."),r.doneFetch(s,this.response)}}],[{key:"toString",value:function(){return"HTMLHandler"}},{key:"register",value:function(r){r.mediatypes["text/html"]={q:.9}}}])}(x0);nL.pattern=new RegExp("text/html");var oL=function(e){function n(){return(0,Mo.A)(this,n),Qc(this,n,arguments)}return(0,$s.A)(n,e),(0,yo.A)(n,[{key:"parse",value:function(r,o,s,i){var l=r.store;return new Promise(function(a,c){try{Ib(o,l,s.original.value,function(){a(r.doneFetch(s,i))})}catch(u){a(r.failFetch(s,"Error trying to parse "+s.resource+" as JSON-LD:\n"+u,"parse_error",i))}})}}],[{key:"toString",value:function(){return"JsonLdHandler"}},{key:"register",value:function(r){r.mediatypes["application/ld+json"]={q:.9}}}])}(x0);oL.pattern=/application\/ld\+json/;var sL=function(e){function n(){return(0,Mo.A)(this,n),Qc(this,n,arguments)}return(0,$s.A)(n,e),(0,yo.A)(n,[{key:"parse",value:function(r,o,s){return lL(o)?(r.addStatus(s.req,"Warning: "+s.resource+" has an XML declaration. We'll assume it's XML but its content-type wasn't XML.\n"),new J6(this.response).parse(r,o,s)):o.slice(0,500).match(/xmlns:/)?(r.addStatus(s.req,"May have an XML namespace. We'll assume it's XML but its content-type wasn't XML.\n"),new J6(this.response).parse(r,o,s)):(r.addStatus(s.req,"Plain text document, no known RDF semantics."),r.doneFetch(s,this.response))}}],[{key:"toString",value:function(){return"TextHandler"}},{key:"register",value:function(r){r.mediatypes["text/plain"]={q:.5}}}])}(x0);sL.pattern=new RegExp("text/plain");var iL=function(e){function n(){return(0,Mo.A)(this,n),Qc(this,n,arguments)}return(0,$s.A)(n,e),(0,yo.A)(n,[{key:"parse",value:function(r,o,s,i){var l=r.store,a=Nf(l,l,s.original.value,s.original.value,null,null,"",null);try{a.loadBuf(o)}catch(h){return r.failFetch(s,"Error trying to parse "+s.resource+" as Notation3:\n"+h,"parse_error",i)}return r.addStatus(s.req,"N3 parsed: "+a.statementCount+" triples in "+a.lines+" lines."),r.store.add(s.original,Xl.rdf("type"),Xl.link("RDFDocument"),r.appNode),r.doneFetch(s,this.response)}}],[{key:"toString",value:function(){return"N3Handler"}},{key:"register",value:function(r){r.mediatypes["text/n3"]={q:"1.0"},r.mediatypes["text/turtle"]={q:1}}}])}(x0);iL.pattern=new RegExp("(application|text)/(x-)?(rdf\\+)?(n3|turtle)");var Xf={RDFXMLHandler:Yf,XHTMLHandler:Jc,XMLHandler:J6,HTMLHandler:nL,TextHandler:sL,N3Handler:iL,JsonLdHandler:oL};function lL(e){return!!e.match(/\s*<\?xml\s+version\s*=[^<>]+\?>/)}var eh=function(){function e(n){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((0,Mo.A)(this,e),(0,Ae.A)(this,"store",void 0),(0,Ae.A)(this,"timeout",void 0),(0,Ae.A)(this,"_fetch",void 0),(0,Ae.A)(this,"mediatypes",void 0),(0,Ae.A)(this,"appNode",void 0),(0,Ae.A)(this,"requested",void 0),(0,Ae.A)(this,"timeouts",void 0),(0,Ae.A)(this,"redirectedTo",void 0),(0,Ae.A)(this,"fetchQueue",void 0),(0,Ae.A)(this,"fetchCallbacks",void 0),(0,Ae.A)(this,"nonexistent",void 0),(0,Ae.A)(this,"lookedUp",void 0),(0,Ae.A)(this,"handlers",void 0),(0,Ae.A)(this,"ns",void 0),(0,Ae.A)(this,"fireCallbacks",void 0),this.store=n||new yu,this.ns=rL(this.store.rdfFactory),this.timeout=r.timeout||3e4,this._fetch=r.fetch||typeof global<"u"&&(global.solidFetcher||global.solidFetch)||typeof window<"u"&&(window.solidFetcher||window.solidFetch)||gG(),!this._fetch)throw new Error("No _fetch function available for Fetcher");this.appNode=this.store.sym("chrome://TheCurrentSession"),this.store.fetcher=this,this.requested={},this.timeouts={},this.redirectedTo={},this.fetchQueue={},this.fetchCallbacks={},this.nonexistent={},this.lookedUp={},this.handlers=[],this.mediatypes={"image/*":{q:.9},"*/*":{q:.1}},fl.Kw(this,["request","fail","refresh","retract","done"]),Object.keys(r.handlers||Xf).map(function(o){return t.addHandler(Xf[o])})}return(0,yo.A)(e,[{key:"load",value:function(t){var r=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(o=Object.assign({},o),t instanceof Array)return Promise.all(t.map(function(S){return r.load(S,Object.assign({},o))}));var i=(0,Au.E)(t);i=i.split("#")[0],o=this.initFetchOptions(i,o);var u,l=this.appNode,a=this.store,h=function fG(e,n){var t=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function mG(e,n){if(e){if("string"==typeof e)return Jb(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Jb(e,n)}}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,s=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var c=t.next();return s=c.done,c},e:function(c){i=!0,l=c},f:function(){try{!s&&null!=t.return&&t.return()}finally{if(i)throw l}}}}(a.statementsMatching(void 0,this.ns.link("requestedURI"),a.sym(i),l).map(function(S){return S.subject}));try{for(h.s();!(u=h.n()).done;){var v=a.any(u.value,this.ns.link("response"),null,l);if(null!=v){var m=a.statementsMatching(v,this.ns.link("outOfDate"),!0,l);a.remove(m),o.force=!0,o.clearPreviousData=!0}}}catch(S){h.e(S)}finally{h.f()}var L=this.initFetchOptions(i,o);return this.pendingFetchPromise(i,L.baseURI,L)}},{key:"pendingFetchPromise",value:(n=Lb(U6().mark(function r(o,s,i){var a,l=this;return U6().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:if(h.t0=!i.force,!h.t0){h.next=5;break}return h.next=4,this.fetchQueue[s];case 4:h.t0=h.sent;case 5:if(!h.t0){h.next=9;break}a=this.fetchQueue[s],h.next=12;break;case 9:a=Promise.race([this.setRequestTimeout(o,i),this.fetchUri(o,i)]),this.fetchQueue[s]=a,this.cleanupFetchRequest(s,void 0,this.timeout);case 12:return h.abrupt("return",a.then(function(u){return o in l.timeouts&&(l.timeouts[o].forEach(clearTimeout),delete l.timeouts[o]),u}));case 13:case"end":return h.stop()}},r,this)})),function t(r,o,s){return n.apply(this,arguments)})},{key:"cleanupFetchRequest",value:function(t,r,o){var s=this;void 0!==r&&console.warn("_options is deprecated"),this.timeouts[t]=(this.timeouts[t]||[]).concat(setTimeout(function(){s.isPending(t)||delete s.fetchQueue[t]},o))}},{key:"initFetchOptions",value:function(t,r){var o=this.store;!r.method||"GET"===r.method.toUpperCase()||(r.force=!0),r.resource=o.rdfFactory.namedNode(t),r.baseURI=r.baseURI||t,r.original=o.rdfFactory.namedNode(r.baseURI),r.req=o.bnode(),r.headers=r.headers||new Q6.Headers,r.contentType&&(r.headers["content-type"]=r.contentType),r.force&&(r.cache="no-cache");var i=this.acceptString();r.headers.accept=i;var l=e.offlineOverride(t);r.requestedURI=l,e.setCredentials(l,r);var a=e.proxyIfNecessary(l);return l!==a&&(r.proxyUsed=!0),r.actualProxyURI=a,r}},{key:"fetchUri",value:function(t,r){var o=this;if(!t)return Promise.reject(new Error("Cannot fetch an empty uri"));if(e.unsupportedProtocol(t))return this.failFetch(r,"fetcher: Unsupported protocol","unsupported_protocol");var s=this.getState(t);if(r.force)delete this.nonexistent[t];else{if("fetched"===s)return Promise.resolve(this.doneFetch(r,{status:200,ok:!0,statusText:"Already loaded into quadstore."}));if("failed"===s&&404===this.requested[t]){var i="Previously failed: "+this.requested[t],l={url:t,status:this.requested[t],statusText:i,responseText:i,headers:new Q6.Headers,ok:!1,body:null,bodyUsed:!1,size:0,timeout:0};return this.failFetch(r,i,this.requested[t],l)}}this.fireCallbacks("request",[t]),this.requested[t]=!0,r.noMeta||this.saveRequestMetadata(t,r);var a=r.actualProxyURI;return this._fetch(a,r).then(function(c){return o.handleResponse(c,t,r)},function(c){var h={url:a,status:999,statusText:(c.name||"network failure")+": "+(c.errno||c.code||c.type),responseText:c.message,headers:new Q6.Headers,ok:!1,body:null,bodyUsed:!1,size:0,timeout:0};return o.handleError(h,t,r)})}},{key:"nowOrWhenFetched",value:function(t,r,o){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=(0,Au.E)(t);"function"==typeof r?o=r:typeof r>"u"||((0,eo.Y2)(r)?s.referringTerm=r:s=r),this.load(i,s).then(function(l){if(o)if(l)if(l.ok)o(!0,"OK",l);else{var a="HTTP error: Status "+l.status+" ("+l.statusText+")";l.responseText&&(a+=" "+l.responseText),o(!1,a,l)}else o(!1,"@@ nowOrWhenFetched: no response object!")},function(l){var a=l.message||l.statusText;a="Failed to load <"+i+"> "+a,l.response&&l.response.status&&(a+=" status: "+l.response.status),o(!1,a,l.response)})}},{key:"addStatus",value:function(t,r){var o=new Date;r="["+o.getHours()+":"+o.getMinutes()+":"+o.getSeconds()+"."+o.getMilliseconds()+"] "+r;var s=this.store,i=s.the(t,this.ns.link("status"));(0,eo.P3)(i)?i.append(s.rdfFactory.literal(r)):f2_warn("web.js: No list to add to: "+i+","+r)}},{key:"failFetch",value:function(t,r,o,s){this.addStatus(t.req,r),t.noMeta||this.store.add(t.original,this.ns.link("error"),this.store.rdfFactory.literal(r));var i=(t.method||"GET").toUpperCase();("GET"===i||"HEAD"===i)&&(t.resource.equals(t.original),this.requested[qc(t.original.value)]=o,this.fireCallbacks("fail",[t.original.value,r]));var a=new Error("Fetcher: "+r);return a.status=o,a.statusText=r,a.response=s,Promise.reject(a)}},{key:"linkData",value:function(t,r,o,s,i){if(o){var a,l=this.store,c=l.rdfFactory.namedNode(Pi(o,t.value));if("alternate"===r||"seeAlso"===r||"meta"===r||"describedby"===r){if(c.value===t.value)return;a=this.ns.rdfs("seeAlso")}else a=l.rdfFactory.namedNode("type"===r?"http://www.w3.org/1999/02/22-rdf-syntax-ns#type":Pi(encodeURIComponent(r),"http://www.iana.org/assignments/link-relations/"));i?l.add(c,a,t,s):l.add(t,a,c,s)}}},{key:"parseLinkHeader",value:function(t,r,o){if(t){var i=/[^\(\)<>@,;:"\/\[\]\?={} \t]+=(([^\(\)<>@,;:"\/\[\]\?={} \t]+)|("[^"]*"))/g,l=t.match(/<[^>]*>\s*(\s*;\s*[^()<>@,;:"/[\]?={} \t]+=(([^\(\)<>@,;:"\/\[\]\?={} \t]+)|("[^"]*")))*(,|$)/g);if(null!=l)for(var a=0;a"),h=c[0].substring(1),d=c[1].match(i);if(null==d)return;for(var v=0;v1&&void 0!==arguments[1]?arguments[1]:{},s=(0,Au.E)(t),i=new X2.A(s).doc();return o.contentType=o["content-type"]||o["Content-Type"]||o.contentType||_1.sT,"application/ld+json"===o.contentType?new Promise(function(l,a){N6(i,r.store,i.uri,o.contentType,function(c,h){c?a(c):(o.data=h,r.webOperation("PUT",t,o).then(function(u){return l(u)}).catch(function(u){return a(u)}))})}):(o.data=N6(i,this.store,i.value,o.contentType),this.webOperation("PUT",s,o))}},{key:"webCopy",value:function(t,r,o){var s=this;return this.webOperation("GET",t).then(function(i){return s.webOperation("PUT",r,{data:i.responseText,contentType:o})})}},{key:"delete",value:function(t,r){var o=this;return this.webOperation("DELETE",t,r).then(function(s){return o.requested[t]=404,o.nonexistent[t]=!0,o.unload(o.store.rdfFactory.namedNode(t)),s})}},{key:"createIfNotExists",value:function(){var n=Lb(U6().mark(function r(o){var s,i,l,a,c=arguments;return U6().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return s=c.length>1&&void 0!==c[1]?c[1]:_1.sT,i=c.length>2&&void 0!==c[2]?c[2]:"",l=this,u.prev=3,u.next=6,l.load(o);case 6:a=u.sent,u.next=26;break;case 9:if(u.prev=9,u.t0=u.catch(3),404!==u.t0.response.status){u.next=25;break}return u.prev=12,u.next=15,l.webOperation("PUT",o.value,{data:i,contentType:s});case 15:a=u.sent,u.next=21;break;case 18:throw u.prev=18,u.t1=u.catch(12),u.t1;case 21:return delete l.requested[o.value],u.abrupt("return",a);case 25:throw u.t0;case 26:return u.abrupt("return",a);case 27:case"end":return u.stop()}},r,this,[[3,9],[12,18]])}));return function t(r){return n.apply(this,arguments)}}()},{key:"createContainer",value:function(t,r,o){var s={"content-type":_1.sT,link:this.ns.ldp("BasicContainer")+'; rel="type"'};r&&(s.slug=r);var i={headers:s};return o&&(i.body=o),this.webOperation("POST",t,i)}},{key:"invalidateCache",value:function(t){var r=(0,Au.E)(t),o=this;if(o.fetchQueue&&o.fetchQueue[r]&&delete o.fetchQueue[r],o.requested[r]&&"done"!==o.requested[r]&&"failed"!==o.requested[r]&&404!==o.requested[r]){var i="Rdflib: fetcher: Destructive operation on <".concat(o.requested[r],"> file being fetched! ")+r;console.error(i)}else delete o.requested[r],delete o.nonexistent[r]}},{key:"webOperation",value:function(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=(0,Au.E)(r);o.method=t,o.body=o.data||o.body,o.force=!0;var i=this;if(o.body&&!o.contentType)throw new Error("Web operation sending data must have a defined contentType.");return o.contentType&&(o.headers=o.headers||{},o.headers["content-type"]=o.contentType),e.setCredentials(s,o),new Promise(function(l,a){i._fetch(s,o).then(function(c){if(c.ok)("PUT"===t||"PATCH"===t||"POST"===t||"DELETE"===t)&&i.invalidateCache(s),c.text?c.text().then(function(d){c.responseText=d,l(c)}):l(c);else{var h="Web error: "+c.status;c.statusText&&(h+=" ("+c.statusText+")"),h+=" on "+t+" of <"+s+">",c.responseText&&(h+=": "+c.responseText);var u=new Error(h);u.response=c,a(u)}},function(c){a(new Error("Fetch error for "+t+" of <"+s+">:"+c))})})}},{key:"lookUpThing",value:function(t,r){var o=this,s=this.store.uris(t);return(s=s.map(function(i){return qc(i)})).forEach(function(i){o.lookedUp[i]=!0}),this.load(s,{referringTerm:r})}},{key:"getHeader",value:function(t,r){for(var o=this.store,s=t.value,i=o.each(void 0,this.ns.link("requestedURI"),o.rdfFactory.literal(s)),l=0;l"u"?"unrequested":!0===this.requested[t]?"requested":"done"===this.requested[t]?"fetched":"redirected"===this.requested[t]?this.getState(this.redirectedTo[t]):"failed"}},{key:"isPending",value:function(t){return!0===this.requested[t]}},{key:"unload",value:function(t){this.store.removeDocument(t),delete this.requested[t.value]}},{key:"addHandler",value:function(t){this.handlers.push(t),t.register(this)}},{key:"retryNoCredentials",value:function(t,r){r.retriedWithNoCredentials=!0,delete this.requested[t],delete this.fetchQueue[t];var o=Object.assign({},r,{credentials:"omit"});return this.addStatus(r.req,"Abort: Will retry with credentials SUPPRESSED to see if that helps"),this.load(t,o)}},{key:"isCrossSite",value:function(t){if(typeof document>"u"||!document.location)return!1;var r=hW,o=""+document.location;return(r(o)&&r(t)&&r(o))!==r(t)}},{key:"handleError",value:function(t,r,o){if(this.isCrossSite(r)){if(o.credentials&&"include"===o.credentials&&!o.retriedWithNoCredentials)return this.retryNoCredentials(r,o);var s=e.crossSiteProxy(r);if(s&&!o.proxyUsed)return this.redirectToProxy(s,o)}var i;return t instanceof Error?i="Fetch error: "+t.message:(i=t.statusText,t.responseText&&(i+=" ".concat(t.responseText))),this.failFetch(o,i,t.status||998,t)}},{key:"addType",value:function(t,r,o,s){var i=r;if(s){var l=o.any(i,this.ns.link("requestedURI"));l&&l.value!==s&&o.add(o.rdfFactory.namedNode(s),this.ns.rdf("type"),t,this.appNode)}for(;;){var a=o.any(i,this.ns.link("requestedURI"));if(a&&a.value&&o.add(o.rdfFactory.namedNode(a.value),this.ns.rdf("type"),t,this.appNode),!(i=o.any(void 0,o.rdfFactory.namedNode("http://www.w3.org/2007/ont/link#redirectedRequest"),i)))break;var c=o.any(i,o.rdfFactory.namedNode("http://www.w3.org/2007/ont/link#response"));if(!c)break;var h=o.any(c,o.rdfFactory.namedNode("http://www.w3.org/2007/ont/http#status"));if(!h||"301"!==h&&"302"!==h)break}}},{key:"handleResponse",value:function(t,r,o){var s=this,i=this.store,l=t.headers,a=o.req,c=this.saveResponseMetadata(t,o),h=this.normalizedContentType(o,l)||"",u=l.get("content-location");if(0===t.status)return this.handleError(t,r,o);if(t.status>=400)return 404===t.status&&(this.nonexistent[o.original.value]=!0,this.nonexistent[r]=!0),this.saveErrorResponse(t,c).then(function(){return s.failFetch(o,o.resource+" "+t.statusText,t.status,t)});var d=null,v=null;if(u&&(v=Pi(u,r))!==r&&(d=v),200===t.status){if(this.addType(this.ns.link("Document"),a,i,r),d&&this.addType(this.ns.link("Document"),a,i,d),o.clearPreviousData)for(var m=i.statementsMatching(void 0,void 0,void 0,o.resource).slice(),L=0;L10&&s.add(r,o.ns.http("content"),s.rdfFactory.literal(i),r)})}},{key:"handlerForContentType",value:function(t,r){if(!t)return null;var o=this.handlers.find(function(s){return t.match(s.pattern)});return o?new o(r):null}},{key:"guessContentType",value:function(t){return eL[t.split(".").pop()]}},{key:"normalizedContentType",value:function(t,r){if(t.forceContentType)return t.forceContentType;var o=r.get("content-type");if(!o||o.includes("application/octet-stream")){var s=this.guessContentType(t.resource.value);if(s)return s}var i=pb(t.resource.value);return!o&&["file","chrome"].includes(i)?"text/xml":o}},{key:"redirectToProxy",value:function(t,r){var o=this;this.addStatus(r.req,"BLOCKED -> Cross-site Proxy to <"+t+">"),r.proxyUsed=!0;var s=this.store,i=r.req;r.noMeta||(s.add(i,this.ns.link("redirectedTo"),s.rdfFactory.namedNode(t),i),this.addStatus(i,"redirected to new request")),this.requested[r.resource.value]="redirected",this.redirectedTo[r.resource.value]=t;var l=Object.assign({},r);return l.baseURI=r.resource.value,this.fetchUri(t,l).then(function(a){return l.noMeta||s.add(i,o.ns.link("redirectedRequest"),l.req,o.appNode),a})}},{key:"setRequestTimeout",value:function(t,r){var o=this;return new Promise(function(s){o.timeouts[t]=(o.timeouts[t]||[]).concat(setTimeout(function(){o.isPending(t)&&!r.retriedWithNoCredentials&&!r.proxyUsed&&s(o.failFetch(r,"Request to ".concat(t," timed out"),"timeout"))},o.timeout))})}},{key:"addFetchCallback",value:function(t,r){this.fetchCallbacks[t]?this.fetchCallbacks[t].push(r):this.fetchCallbacks[t]=[r]}},{key:"acceptString",value:function(){var t="";for(var r in this.mediatypes)for(var o in""!==t&&(t+=", "),t+=r,this.mediatypes[r])t+=";"+o+"="+this.mediatypes[r][o];return t}}],[{key:"crossSiteProxy",value:function(t){if(e.crossSiteProxyTemplate)return e.crossSiteProxyTemplate.replace("{uri}",encodeURIComponent(t))}},{key:"offlineOverride",value:function(t){var o,r=t;return typeof window<"u"&&window.panes&&(o=window.panes.UI)&&o.preferences&&o.preferences.get("offlineModeUsingLocalhost")&&"http://"===r.slice(0,7)&&"localhost/"!==r.slice(7,17)&&(r="http://localhost/"+r.slice(7),f2_warn("Localhost kludge for offline use: actually getting <"+r+">")),r}},{key:"proxyIfNecessary",value:function(t){var r;if(typeof window<"u"&&window.panes&&(r=window.panes.UI)&&r.isExtension)return t;if(typeof $SolidTestEnvironment<"u"&&$SolidTestEnvironment.localSiteMap){var i=function l(a,c){var h=c[a.shift()];return h?"string"==typeof h?h+a.join("/"):a?l(a,h):null:null}(t.split("/").slice(2),$SolidTestEnvironment.localSiteMap);if(i)return i}return e.crossSiteProxyTemplate&&typeof document<"u"&&document.location&&"https:"===(""+document.location).slice(0,6)&&"http:"===t.slice(0,5)?e.crossSiteProxyTemplate.replace("{uri}",encodeURIComponent(t)):t}},{key:"unsupportedProtocol",value:function(t){var r=pb(t);return"tel"===r||"mailto"===r||"urn"===r}},{key:"setCredentials",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};void 0===r.credentials&&(r.credentials=void 0!==r.withCredentials?r.withCredentials?"include":"omit":"include")}}]);var n}();function aL(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,r)}return t}function cL(e){for(var n=1;n0&&void 0!==arguments[0]?arguments[0]:void 0,(arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0)||{rdfFactory:$f})},lit:function(n,t,r){return this.literal(""+n,t||r)},st:function(n,t,r,o){return this.quad(n,t,r,o)}});var Fi={};for(var Kf in t9)"function"==typeof t9[Kf]&&(Fi[Kf]=t9[Kf].bind(t9));var uL=Fi.graph,Qf=Fi.lit,Du=Fi.namedNode;new _b;const Bu="http://geonetwork-ui/";function M0(e,n,t,r,o,s,i){function l(v){return v.language.toLowerCase().substring(0,2)}const a=e.each(n,t,r).filter(v=>v instanceof pi);if(!a.length)return[null,s];const c=a.find(v=>l(v)===i),h=a.find(v=>!v.language),u=c?.value??h?.value??"(value not found)",d=s??{};for(const v of a){const m=l(v);m===i||!m||(d[o]={...d[o],[m]:v.value})}return[u,d]}function dL(e,n,t,r,o,s){if(e.removeStatements(e.statementsMatching(n,t,null)),e.add(n,t,Qf(r,s)),o)for(const i in o)e.add(n,t,Qf(o[i],i))}function pL(e,n,t,r=Bu){return new Promise(o=>K6(n,e,r,t,o))}function e9(e,n=window.location.toString()){try{return new URL(e,n)}catch{return null}}function Oi(e,n){return e.the(n,ku("primaryTopic"),null)||e.the(null,Ms("type"),Nr("Dataset"))}function zG(e,n){return e.the(n,to("identifier"),null)?.value}function bG(e,n,t,r){const o=Oi(e,n),[s]=M0(e,o,to("title"),null,"title",t,r);return s}function LG(e,n,t,r){const o=Oi(e,n),[s]=M0(e,o,to("description"),null,"abstract",t,r);return s}function vL(e,n){const t=n.object,r=e.the(t,_u("fn"),null)??e.the(t,_u("title"),null)??e.the(t,_u("organisation-name"),null);let o,s;if(r){const c=af(r.value);o=c[0],s=c[1]}const i=e.the(t,_u("role"),null),l=e.the(t,_u("hasEmail"),null),a=l?l.value.replace(/^mailto:/,""):"missing@missing.com";return{role:i?.value??"point_of_contact",email:a,...o&&{firstName:o},...s&&{lastName:s}}}function VG(e,n){return e.statementsMatching(n,Nr("contactPoint"),null).map(r=>vL(e,r))}function SG(e,n){const t=Oi(e,n);return e.statementsMatching(t,Nr("contactPoint"),null).map(o=>vL(e,o))}function AG(e,n){const t=Oi(e,n),r=e.the(t,Nr("landingPage"),null);return null!==r?e9(r.value):void 0}function jG(e,n,t,r){const o=Oi(e,n);return e.statementsMatching(o,Nr("distribution"),null).map(i=>function EG(e,n,t){if(e.holds(n,Nr("accessService"),null)){const r=e.the(n,Nr("accessService"),null);if(e.the(r,to("conformsTo"),null))return function TG(e,n,t){const r=e.the(n,Nr("accessService"),null),o=e.the(r,to("conformsTo"),null),s=e.the(n,Nr("accessURL"),null),i={},[l]=M0(e,n,to("description"),null,"description",i,t),[a]=M0(e,n,to("title"),null,"name",i,t);return{url:e9(s?.value),type:"service",accessServiceProtocol:kg(o?.value),...null!==a&&{name:a},...null!==l&&{description:l},translations:i}}(e,n,t)}return e.holds(n,Nr("downloadURL"),null)?function BG(e,n,t){const r=e.the(n,Nr("downloadURL"),null),o={},[s]=M0(e,n,to("description"),null,"description",o,t),[i]=M0(e,n,to("title"),null,"name",o,t);return{url:e9(r?.value),type:"download",...null!==i&&{name:i},...null!==s&&{description:s},translations:o}}(e,n,t):function DG(e,n,t){const r=e.the(n,Nr("accessURL"),null),o={},[s]=M0(e,n,to("description"),null,"description",o,t),[i]=M0(e,n,to("title"),null,"name",o,t);return{url:e9(r?.value),type:"link",...null!==i&&{name:i},...null!==s&&{description:s},translations:o}}(e,n,t)}(e,i.object,r))}function PG(e,n){const t=Oi(e,n);return e.statementsMatching(t,to("spatial"),null).map(o=>{const s=e.the(o.object,oW("geometry"),null);return s?{geometry:JSON.parse(s.value)}:{description:o.object.value}}).filter(o=>!!o)}function IG(e,n){const t=Oi(e,n);return e.statementsMatching(t,Nr("keyword"),null).map(o=>({label:o.object.value,type:"theme"}))}function RG(e,n){const t=Oi(e,n);return e.statementsMatching(t,Nr("theme"),null).map(o=>e.the(o.object,nW("prefLabel"),null)?.value??o.object.value)}function FG(e,n){const t=e.the(n,to("issued"),null)?.value;return t?new Date(t):null}function OG(e,n){const t=e.the(n,to("modified"),null)?.value;return t?new Date(t):new Date}function NG(e,n){const t=Oi(e,n),r=e.the(t,to("issued"),null)?.value;return r?new Date(r):null}function $G(e,n){const t=Oi(e,n),r=e.the(t,to("modified"),null)?.value;return r?new Date(r):null}function UG(e){const n=e.statementsMatching(null,to("publisher"),null);if(!n.length)return null;const t=n[0].object,r=e.the(t,ku("name"),null);return{name:r?r.value:t.value}}function ZG(e,n){const t=Oi(e,n);return e.statementsMatching(t,Nr("distribution"),null).map(o=>e.the(o.object,to("license"),null)).filter(o=>!!o).map(o=>function yG(e){const n=/pddl|public domain dedication and licence/i.test(e),t=/odbl|open database license/i.test(e),r=/odc-by|opendatacommons.org\/licenses\/by/i.test(e),o=/cc-by-sa|creative.*commons.*(by-sa|attribution.*share-alike)/i.test(e),s=/cc-by|cc by|creative.*commons.*(by|attribution)/i.test(e),i=/cc.?0|creative.*commons.*(zero|0)/i.test(e),l=/etalab/i.test(e)&&/v2|2\.0/i.test(e),a=/etalab|open.?licence|licence.?ouverte/i.test(e);if(n)return{text:"Open Data Commons PDDL",url:new URL("https://opendatacommons.org/licenses/pddl/")};if(t)return{text:"Open Data Commons ODbL",url:new URL("https://opendatacommons.org/licenses/odbl/")};if(r)return{text:"Open Data Commons ODC-By",url:new URL("https://opendatacommons.org/licenses/by/")};if(o)return{text:"Creative Commons CC-BY-SA",url:new URL("https://creativecommons.org/licenses/by-sa/4.0/legalcode")};if(s)return{text:"Creative Commons CC-BY",url:new URL("https://creativecommons.org/licenses/by/4.0/legalcode")};if(i)return{text:"Creative Commons CC-0",url:new URL("https://creativecommons.org/publicdomain/zero/1.0/legalcode")};if(l)return{text:"Open Licence v2.0 (Etalab)",url:new URL("https://www.etalab.gouv.fr/wp-content/uploads/2017/04/ETALAB-Licence-Ouverte-v2.0.pdf")};if(a)return{text:"Open Licence (Etalab)",url:new URL("https://www.etalab.gouv.fr/wp-content/uploads/2014/05/Licence_Ouverte.pdf")};const c=/^https?:\/\//.test(e)?new URL(e):void 0;return{text:e,...c&&{url:c}}}(o.value)).filter((o,s,i)=>i.findIndex(l=>l.url?.toString()===o.url?.toString()&&l.text===o.text)===s)}function qG(e,n){const t=Oi(e,n),r=function HG(e,n){return e.the(null,Nr("record"),n)||e.the(null,Ms("type"),Nr("Catalog"))}(e,n);let o=e.statementsMatching(n,to("language"),null);if(!o.length&&t&&(o=e.statementsMatching(t,to("language"),null)),!o.length&&r&&(o=e.statementsMatching(r,to("language"),null)),!o.length)return null;let i=o[0].object.value.split("/").pop().toLowerCase();return 3===i.length&&(i=mu[i]??i),i.substring(0,2)}function gL(e,n,t){let r=n.the(null,Ms("type"),Nr("Dataset"));r||(r=Du(`${Bu}dataset/${e.uniqueIdentifier}`),n.add(r,Ms("type"),Nr("Dataset")),n.add(t,ku("primaryTopic"),r));const o=function WG(e,n){if(e.holds(null,Ms("type"),Nr("Catalog")))return e.the(null,Ms("type"),Nr("Catalog"));const r=e.add(Du(`${Bu}catalog`),Ms("type"),Nr("Catalog")).subject;return e.add(r,Nr("record"),n),r}(n,t);return n.holds(o,Nr("dataset"),r)||n.add(o,Nr("dataset"),r),r}function GG(e,n,t){!function MG(e,n,t,r){e.removeStatements(e.statementsMatching(n,t,null)),e.add(n,t,Qf(r))}(n,t,to("identifier"),e.uniqueIdentifier)}function YG(e,n,t){dL(n,gL(e,n,t),to("title"),e.title,e.translations?.title,e.defaultLanguage)}function XG(e,n,t){dL(n,gL(e,n,t),to("description"),e.abstract,e.translations?.abstract,e.defaultLanguage)}function Jf(e,n){for(const t in eu)if(n.startsWith(eu[t]))return[t,n.replace(eu[t],"")];for(const t in e.namespaces)if(n.startsWith(e.namespaces[t]))return[t,n.replace(e.namespaces[t],"")];return[null,n]}function fL(e,n){if(n instanceof pi)return new Zo.XmlText(n.value);const t=e.the(n,Ms("type"));if(!t)return null;const o=e.statementsMatching(n,null,null).filter(a=>a.predicate.value!==Ms("type").value).map(a=>{if(a.object.toString()===a.subject.toString())return null;if(a.predicate.value===ku("primaryTopic").value||a.predicate.value===ku("topic").value||a.predicate.value===Nr("servesDataset").value){const[v,m]=Jf(e,a.predicate.value);return new Zo.XmlElement(`${v}:${m}`,{"rdf:resource":a.object.value})}const[c,h]=Jf(e,a.predicate.value),u=fL(e,a.object);if(!u)return new Zo.XmlElement(`${c}:${h}`,{"rdf:resource":a.object.value},[]);const d=new Zo.XmlElement(`${c}:${h}`,{},[u]);return a.object instanceof pi&&a.object.language&&(d.attributes["xml:lang"]=a.object.language),d}).filter(a=>!!a),[s,i]=Jf(e,t.value);return new Zo.XmlElement(`${s}:${i}`,n instanceof vl?{}:{"rdf:about":n.value},o)}class r9 extends bH{constructor(n="application/rdf+xml",t=new zH){super(t),this.contentType=n,this.readers={uniqueIdentifier:zG,title:bG,abstract:LG,contacts:VG,contactsForResource:SG,landingPage:AG,onlineResources:jG,spatialExtents:PG,keywords:IG,topics:RG,resourceIdentifier:()=>{},recordUpdated:OG,recordCreated:FG,resourceUpdated:$G,resourceCreated:NG,ownerOrganization:UG,licenses:ZG,defaultLanguage:qG,otherLanguages:()=>[],kind:()=>"dataset",recordPublished:()=>{},resourcePublished:()=>{},legalConstraints:()=>[],securityConstraints:()=>[],otherConstraints:()=>[],status:()=>"completed",updateFrequency:()=>"unknown",overviews:()=>[],lineage:()=>"",temporalExtents:()=>[],spatialRepresentation:()=>{},extras:()=>{},translations:()=>{}},this.writers={uniqueIdentifier:GG,title:YG,abstract:XG,kind:()=>{},ownerOrganization:()=>{},recordUpdated:()=>{},recordCreated:()=>{},recordPublished:()=>{},resourceIdentifier:()=>{},resourceUpdated:()=>{},resourceCreated:()=>{},resourcePublished:()=>{},contacts:()=>{},contactsForResource:()=>{},keywords:()=>{},topics:()=>{},licenses:()=>{},legalConstraints:()=>{},securityConstraints:()=>{},otherConstraints:()=>{},status:()=>{},updateFrequency:()=>{},spatialRepresentation:()=>{},overviews:()=>{},lineage:()=>{},onlineResources:()=>{},temporalExtents:()=>{},spatialExtents:()=>{},extras:()=>{},landingPage:()=>{},defaultLanguage:()=>{},otherLanguages:()=>{},translations:()=>{}}}readRecord(n){var t=this;return Bi(function*(){const r=uL();yield pL(r,n,t.contentType);const o=r.the(null,null,Nr("CatalogRecord")),s={},i=t.readers.defaultLanguage(r,o,s,null),l=t.readers.uniqueIdentifier(r,o,s,i),a=t.readers.kind(r,o,s,i),c=t.readers.ownerOrganization(r,o,s,i),h=t.readers.title(r,o,s,i),u=t.readers.abstract(r,o,s,i),d=t.readers.contacts(r,o,s,i),v=t.readers.contactsForResource(r,o,s,i),m=t.readers.recordUpdated(r,o,s,i),L=t.readers.recordCreated(r,o,s,i),S=t.readers.recordPublished(r,o,s,i),j=t.readers.resourceCreated(r,o,s,i),N=t.readers.resourceUpdated(r,o,s,i),Ft=t.readers.resourcePublished(r,o,s,i),Ot=t.readers.keywords(r,o,s,i),$t=t.readers.topics(r,o,s,i),mt=t.readers.legalConstraints(r,o,s,i),De=t.readers.otherConstraints(r,o,s,i),me=t.readers.securityConstraints(r,o,s,i),Ve=t.readers.licenses(r,o,s,i),Te=t.readers.overviews(r,o,s,i),Pe=t.readers.landingPage(r,o,s,i),Se=t.readers.otherLanguages(r,o,s,i);if("dataset"===a){const Ee=t.readers.status(r,o,s,i),qe=t.readers.spatialRepresentation(r,o,s,i),We=t.readers.spatialExtents(r,o,s,i),je=t.readers.temporalExtents(r,o,s,i);return{uniqueIdentifier:l,kind:a,defaultLanguage:i,otherLanguages:Se,...L&&{recordCreated:L},...S&&{recordPublished:S},recordUpdated:m,...j&&{resourceCreated:j},...N&&{resourceUpdated:N},...Ft&&{resourcePublished:Ft},status:Ee,title:h,abstract:u,ownerOrganization:c,contacts:d,contactsForResource:v,keywords:Ot,topics:$t,licenses:Ve,legalConstraints:mt,securityConstraints:me,otherConstraints:De,lineage:t.readers.lineage(r,o,s,i),...qe&&{spatialRepresentation:qe},overviews:Te,spatialExtents:We,temporalExtents:je,onlineResources:t.readers.onlineResources(r,o,s,i),updateFrequency:t.readers.updateFrequency(r,o,s,i),...Pe&&{landingPage:Pe},translations:s}}return{uniqueIdentifier:l,kind:a,defaultLanguage:i,otherLanguages:Se,...L&&{recordCreated:L},...S&&{recordPublished:S},recordUpdated:m,...j&&{resourceCreated:j},...N&&{resourceUpdated:N},...Ft&&{resourcePublished:Ft},title:h,abstract:u,ownerOrganization:c,contacts:d,contactsForResource:v,keywords:Ot,topics:$t,licenses:Ve,legalConstraints:mt,securityConstraints:me,otherConstraints:De,overviews:Te,onlineResources:t.readers.onlineResources(r,o,s,i),...Pe&&{landingPage:Pe},translations:s}})()}writeRecord(n,t){var r=this;return Bi(function*(){const o=uL();let s;if(t){const l=yield r.readRecord(t);yield pL(o,t,r.contentType,Nr("CatalogRecord").value),s=a=>null===l||!s6(n[a],l[a])}else s=()=>!0;let i=o.the(null,Ms("type"),Nr("CatalogRecord"));return i||(i=o.add(Du(`${Bu}record/${n.uniqueIdentifier}`),Ms("type"),Nr("CatalogRecord")).subject),s("uniqueIdentifier")&&r.writers.uniqueIdentifier(n,o,i),s("kind")&&r.writers.kind(n,o,i),s("contacts")&&r.writers.contacts(n,o,i),s("ownerOrganization")&&r.writers.ownerOrganization(n,o,i),s("recordUpdated")&&r.writers.recordUpdated(n,o,i),s("recordCreated")&&r.writers.recordCreated(n,o,i),s("recordPublished")&&r.writers.recordPublished(n,o,i),s("title")&&r.writers.title(n,o,i),s("abstract")&&r.writers.abstract(n,o,i),s("resourceCreated")&&r.writers.resourceCreated(n,o,i),s("resourcePublished")&&r.writers.resourcePublished(n,o,i),s("resourceUpdated")&&r.writers.resourceUpdated(n,o,i),s("contactsForResource")&&r.writers.contactsForResource(n,o,i),s("keywords")&&r.writers.keywords(n,o,i),s("topics")&&r.writers.topics(n,o,i),s("legalConstraints")&&r.writers.legalConstraints(n,o,i),s("securityConstraints")&&r.writers.securityConstraints(n,o,i),s("licenses")&&r.writers.licenses(n,o,i),s("otherConstraints")&&r.writers.otherConstraints(n,o,i),s("onlineResources")&&r.writers.onlineResources(n,o,i),"dataset"===n.kind&&(s("status")&&r.writers.status(n,o,i),s("updateFrequency")&&r.writers.updateFrequency(n,o,i),s("spatialRepresentation")&&r.writers.spatialRepresentation(n,o,i),s("overviews")&&r.writers.overviews(n,o,i),s("temporalExtents")&&r.writers.temporalExtents(n,o,i),s("lineage")&&r.writers.lineage(n,o,i)),r.contentType.includes("xml")?function KG(e){let n=e.statementsMatching(null,Ms("type"),Nr("Catalog"))[0]?.subject;if(!n){const r=e.the(null,Ms("type"),Nr("CatalogRecord")),o=e.the(null,Ms("type"),Nr("Dataset"));n=e.add(Du(`${Bu}catalog`),Ms("type"),Nr("Catalog")).subject,e.add(n,Nr("record"),r),e.add(n,Nr("dataset"),o)}const t=new Zo.XmlElement("rdf:RDF",{},[fL(e,n)]);for(const r in e.namespaces)t.attributes[`xmlns:${r}`]=e.namespaces[r];return tu(wg(t))}(o):o.serialize(void 0,r.contentType,null,{})})()}}function mL(e){if(e.indexOf("mdb:MD_Metadata")>0)return new Sf;if(e.indexOf("gmd:MD_Metadata")>0)return new xf;if(/@prefix\s*[a-z]+\s*:\s*\s*\./.test(e))return new r9("text/turtle");if(/xmlns:[a-z]+="http:\/\/www\.w3\.org\/ns\/dcat#"/.test(e))return new r9("application/rdf+xml");if(/"[a-zA-Z]+"\s*:\s*"http:\/\/www\.w3\.org\/ns\/dcat#/.test(e))return new r9("application/ld+json");throw new Error(`No suitable converter found for the following document:\n${e.substring(0,400)}...`)}function wL(e,n){return X(n)?N1(e,n,1):N1(e,1)}function Zs(e,n){return Yt((t,r)=>{let o=0;t.subscribe(ve(r,s=>e.call(n,s,o++)&&r.next(s)))})}function CL(e){return Yt((n,t)=>{try{n.subscribe(t)}finally{t.add(e)}})}class n9{}class o9{}class pr{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?"string"==typeof n?this.lazyInit=()=>{this.headers=new Map,n.split("\n").forEach(t=>{const r=t.indexOf(":");if(r>0){const o=t.slice(0,r),s=o.toLowerCase(),i=t.slice(r+1).trim();this.maybeSetNormalizedName(o,s),this.headers.has(s)?this.headers.get(s).push(i):this.headers.set(s,[i])}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((t,r)=>{this.setHeaderEntries(r,t)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([t,r])=>{this.setHeaderEntries(t,r)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const t=this.headers.get(n.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,t){return this.clone({name:n,value:t,op:"a"})}set(n,t){return this.clone({name:n,value:t,op:"s"})}delete(n,t){return this.clone({name:n,value:t,op:"d"})}maybeSetNormalizedName(n,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,n)}init(){this.lazyInit&&(this.lazyInit instanceof pr?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(t=>{this.headers.set(t,n.headers.get(t)),this.normalizedNames.set(t,n.normalizedNames.get(t))})}clone(n){const t=new pr;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof pr?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([n]),t}applyUpdate(n){const t=n.name.toLowerCase();switch(n.op){case"a":case"s":let r=n.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(n.name,t);const o=("a"===n.op?this.headers.get(t):void 0)||[];o.push(...r),this.headers.set(t,o);break;case"d":const s=n.value;if(s){let i=this.headers.get(t);if(!i)return;i=i.filter(l=>-1===s.indexOf(l)),0===i.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,i)}else this.headers.delete(t),this.normalizedNames.delete(t)}}setHeaderEntries(n,t){const r=(Array.isArray(t)?t:[t]).map(s=>s.toString()),o=n.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(n,o)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>n(this.normalizedNames.get(t),this.headers.get(t)))}}class QG{encodeKey(n){return kL(n)}encodeValue(n){return kL(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const tY=/%(\d[a-f0-9])/gi,eY={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function kL(e){return encodeURIComponent(e).replace(tY,(n,t)=>eY[t]??n)}function s9(e){return`${e}`}class re{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new QG,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function JG(e,n){const t=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{const s=o.indexOf("="),[i,l]=-1==s?[n.decodeKey(o),""]:[n.decodeKey(o.slice(0,s)),n.decodeValue(o.slice(s+1))],a=t.get(i)||[];a.push(l),t.set(i,a)}),t}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(t=>{const r=n.fromObject[t],o=Array.isArray(r)?r.map(s9):[s9(r)];this.map.set(t,o)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const t=this.map.get(n);return t?t[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,t){return this.clone({param:n,value:t,op:"a"})}appendAll(n){const t=[];return Object.keys(n).forEach(r=>{const o=n[r];Array.isArray(o)?o.forEach(s=>{t.push({param:r,value:s,op:"a"})}):t.push({param:r,value:o,op:"a"})}),this.clone(t)}set(n,t){return this.clone({param:n,value:t,op:"s"})}delete(n,t){return this.clone({param:n,value:t,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const t=this.encoder.encodeKey(n);return this.map.get(n).map(r=>t+"="+this.encoder.encodeValue(r)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const t=new re({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(n),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const t=("a"===n.op?this.map.get(n.param):void 0)||[];t.push(s9(n.value)),this.map.set(n.param,t);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let r=this.map.get(n.param)||[];const o=r.indexOf(s9(n.value));-1!==o&&r.splice(o,1),r.length>0?this.map.set(n.param,r):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class rY{constructor(){this.map=new Map}set(n,t){return this.map.set(n,t),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function _L(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function xL(e){return typeof Blob<"u"&&e instanceof Blob}function ML(e){return typeof FormData<"u"&&e instanceof FormData}class Tu{constructor(n,t,r,o){let s;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function nY(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==r?r:null,s=o):s=r,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new pr),this.context||(this.context=new rY),this.params){const i=this.params.toString();if(0===i.length)this.urlWithParams=t;else{const l=t.indexOf("?");this.urlWithParams=t+(-1===l?"?":lu.set(d,n.setHeaders[d]),a)),n.setParams&&(c=Object.keys(n.setParams).reduce((u,d)=>u.set(d,n.setParams[d]),c)),new Tu(t,r,s,{params:c,headers:a,context:h,reportProgress:l,responseType:o,withCredentials:i})}}var rh=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(rh||{});class tm{constructor(n,t=200,r="OK"){this.headers=n.headers||new pr,this.status=void 0!==n.status?n.status:t,this.statusText=n.statusText||r,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class em extends tm{constructor(n={}){super(n),this.type=rh.ResponseHeader}clone(n={}){return new em({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class nh extends tm{constructor(n={}){super(n),this.type=rh.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new nh({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class yL extends tm{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function rm(e,n){return{body:n,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let Wr=(()=>{class e{constructor(t){this.handler=t}request(t,r,o={}){let s;if(t instanceof Tu)s=t;else{let a,c;a=o.headers instanceof pr?o.headers:new pr(o.headers),o.params&&(c=o.params instanceof re?o.params:new re({fromObject:o.params})),s=new Tu(t,r,void 0!==o.body?o.body:null,{headers:a,context:o.context,params:c,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const i=po(s).pipe(wL(a=>this.handler.handle(a)));if(t instanceof Tu||"events"===o.observe)return i;const l=i.pipe(Zs(a=>a instanceof nh));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return l.pipe(Qe(a=>{if(null!==a.body&&!(a.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return a.body}));case"blob":return l.pipe(Qe(a=>{if(null!==a.body&&!(a.body instanceof Blob))throw new Error("Response is not a Blob.");return a.body}));case"text":return l.pipe(Qe(a=>{if(null!==a.body&&"string"!=typeof a.body)throw new Error("Response is not a string.");return a.body}));default:return l.pipe(Qe(a=>a.body))}case"response":return l;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(t,r={}){return this.request("DELETE",t,r)}get(t,r={}){return this.request("GET",t,r)}head(t,r={}){return this.request("HEAD",t,r)}jsonp(t,r){return this.request("JSONP",t,{params:(new re).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,r={}){return this.request("OPTIONS",t,r)}patch(t,r,o={}){return this.request("PATCH",t,rm(o,r))}post(t,r,o={}){return this.request("POST",t,rm(o,r))}put(t,r,o={}){return this.request("PUT",t,rm(o,r))}static#t=this.\u0275fac=function(r){return new(r||e)(gt(n9))};static#e=this.\u0275prov=xe({token:e,factory:e.\u0275fac})}return e})();function bL(e,n){return n(e)}function iY(e,n){return(t,r)=>n.intercept(t,{handle:o=>e(o,r)})}const aY=new Me(""),Eu=new Me(""),LL=new Me("");function cY(){let e=null;return(n,t)=>{null===e&&(e=(g1(aY,{optional:!0})??[]).reduceRight(iY,bL));const r=g1(Dv),o=r.add();return e(n,t).pipe(CL(()=>r.remove(o)))}}let VL=(()=>{class e extends n9{constructor(t,r){super(),this.backend=t,this.injector=r,this.chain=null,this.pendingTasks=g1(Dv)}handle(t){if(null===this.chain){const o=Array.from(new Set([...this.injector.get(Eu),...this.injector.get(LL,[])]));this.chain=o.reduceRight((s,i)=>function lY(e,n,t){return(r,o)=>t.runInContext(()=>n(r,s=>e(s,o)))}(s,i,this.injector),bL)}const r=this.pendingTasks.add();return this.chain(t,o=>this.backend.handle(o)).pipe(CL(()=>this.pendingTasks.remove(r)))}static#t=this.\u0275fac=function(r){return new(r||e)(gt(o9),gt(He))};static#e=this.\u0275prov=xe({token:e,factory:e.\u0275fac})}return e})();const pY=/^\)\]\}',?\n/;let AL=(()=>{class e{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Ie(-2800,!1);const r=this.xhrFactory;return(r.\u0275loadImpl?I2(r.\u0275loadImpl()):po(null)).pipe(zs(()=>new J(s=>{const i=r.build();if(i.open(t.method,t.urlWithParams),t.withCredentials&&(i.withCredentials=!0),t.headers.forEach((L,S)=>i.setRequestHeader(L,S.join(","))),t.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const L=t.detectContentTypeHeader();null!==L&&i.setRequestHeader("Content-Type",L)}if(t.responseType){const L=t.responseType.toLowerCase();i.responseType="json"!==L?L:"text"}const l=t.serializeBody();let a=null;const c=()=>{if(null!==a)return a;const L=i.statusText||"OK",S=new pr(i.getAllResponseHeaders()),j=function vY(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(i)||t.url;return a=new em({headers:S,status:i.status,statusText:L,url:j}),a},h=()=>{let{headers:L,status:S,statusText:j,url:N}=c(),Ft=null;204!==S&&(Ft=typeof i.response>"u"?i.responseText:i.response),0===S&&(S=Ft?200:0);let Ot=S>=200&&S<300;if("json"===t.responseType&&"string"==typeof Ft){const $t=Ft;Ft=Ft.replace(pY,"");try{Ft=""!==Ft?JSON.parse(Ft):null}catch(mt){Ft=$t,Ot&&(Ot=!1,Ft={error:mt,text:Ft})}}Ot?(s.next(new nh({body:Ft,headers:L,status:S,statusText:j,url:N||void 0})),s.complete()):s.error(new yL({error:Ft,headers:L,status:S,statusText:j,url:N||void 0}))},u=L=>{const{url:S}=c(),j=new yL({error:L,status:i.status||0,statusText:i.statusText||"Unknown Error",url:S||void 0});s.error(j)};let d=!1;const v=L=>{d||(s.next(c()),d=!0);let S={type:rh.DownloadProgress,loaded:L.loaded};L.lengthComputable&&(S.total=L.total),"text"===t.responseType&&i.responseText&&(S.partialText=i.responseText),s.next(S)},m=L=>{let S={type:rh.UploadProgress,loaded:L.loaded};L.lengthComputable&&(S.total=L.total),s.next(S)};return i.addEventListener("load",h),i.addEventListener("error",u),i.addEventListener("timeout",u),i.addEventListener("abort",u),t.reportProgress&&(i.addEventListener("progress",v),null!==l&&i.upload&&i.upload.addEventListener("progress",m)),i.send(l),s.next({type:rh.Sent}),()=>{i.removeEventListener("error",u),i.removeEventListener("abort",u),i.removeEventListener("load",h),i.removeEventListener("timeout",u),t.reportProgress&&(i.removeEventListener("progress",v),null!==l&&i.upload&&i.upload.removeEventListener("progress",m)),i.readyState!==i.DONE&&i.abort()}})))}static#t=this.\u0275fac=function(r){return new(r||e)(gt(oH))};static#e=this.\u0275prov=xe({token:e,factory:e.\u0275fac})}return e})();const nm=new Me("XSRF_ENABLED"),DL=new Me("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),BL=new Me("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class TL{}let mY=(()=>{class e{constructor(t,r,o){this.doc=t,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=qy(t,this.cookieName),this.lastCookieString=t),this.lastToken}static#t=this.\u0275fac=function(r){return new(r||e)(gt(wn),gt(un),gt(DL))};static#e=this.\u0275prov=xe({token:e,factory:e.\u0275fac})}return e})();function wY(e,n){const t=e.url.toLowerCase();if(!g1(nm)||"GET"===e.method||"HEAD"===e.method||t.startsWith("http://")||t.startsWith("https://"))return n(e);const r=g1(TL).getToken(),o=g1(BL);return null!=r&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,r)})),n(e)}var y0=function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e}(y0||{});function CY(...e){const n=[Wr,AL,VL,{provide:n9,useExisting:VL},{provide:o9,useExisting:AL},{provide:Eu,useValue:wY,multi:!0},{provide:nm,useValue:!0},{provide:TL,useClass:mY}];for(const t of e)n.push(...t.\u0275providers);return function np(e){return{\u0275providers:e}}(n)}const EL=new Me("LEGACY_INTERCEPTOR_FN");function kY(){return function t5(e,n){return{\u0275kind:e,\u0275providers:n}}(y0.LegacyInterceptors,[{provide:EL,useFactory:cY},{provide:Eu,useExisting:EL,multi:!0}])}let _Y=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275mod=K1({type:e});static#r=this.\u0275inj=$1({providers:[CY(kY())]})}return e})();function H0(e){return!!e&&(e instanceof J||X(e.lift)&&X(e.subscribe))}new Me("basePath");const{isArray:$Y}=Array,{getPrototypeOf:UY,prototype:ZY,keys:qY}=Object;function jL(e){if(1===e.length){const n=e[0];if($Y(n))return{args:n,keys:null};if(function WY(e){return e&&"object"==typeof e&&UY(e)===ZY}(n)){const t=qY(n);return{args:t.map(r=>n[r]),keys:t}}}return{args:e,keys:null}}const{isArray:GY}=Array;function om(e){return Qe(n=>function YY(e,n){return GY(n)?e(...n):e(n)}(e,n))}function PL(e,n){return e.reduce((t,r,o)=>(t[r]=n[o],t),{})}function IL(...e){const n=Nn(e),{args:t,keys:r}=jL(e),o=new J(s=>{const{length:i}=t;if(!i)return void s.complete();const l=new Array(i);let a=i,c=i;for(let h=0;h{u||(u=!0,c--),l[h]=d},()=>a--,void 0,()=>{(!a||!u)&&(c||s.next(r?PL(r,l):l),s.complete())}))}});return n?o.pipe(om(n)):o}function oh(...e){return function XY(){return Po(1)}()(I2(e,gr(e)))}function sm(e){return new J(n=>{Hn(e()).subscribe(n)})}function A2(e){return e<=0?()=>zo:Yt((n,t)=>{let r=0;n.subscribe(ve(t,o=>{++r<=e&&(t.next(o),e<=r&&t.complete())}))})}const im={now:()=>(im.delegate||Date).now(),delegate:void 0};class KY extends Dt{constructor(n=1/0,t=1/0,r=im){super(),this._bufferSize=n,this._windowTime=t,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=t===1/0,this._bufferSize=Math.max(1,n),this._windowTime=Math.max(1,t)}next(n){const{isStopped:t,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:s,_windowTime:i}=this;t||(r.push(n),!o&&r.push(s.now()+i)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();const t=this._innerSubscribe(n),{_infiniteTimeWindow:r,_buffer:o}=this,s=o.slice();for(let i=0;inew KY(r,n,t),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}class ju{}let FL=(()=>{class e extends ju{getTranslation(t){return po({})}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=oo(e)))(r||e)}}(),e.\u0275prov=xe({token:e,factory:e.\u0275fac}),e})();class lm{}let OL=(()=>{class e{handle(t){return t.key}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=xe({token:e,factory:e.\u0275fac}),e})();function l9(e,n){if(e===n)return!0;if(null===e||null===n)return!1;if(e!=e&&n!=n)return!0;let o,s,i,t=typeof e;if(t==typeof n&&"object"==t){if(!Array.isArray(e)){if(Array.isArray(n))return!1;for(s in i=Object.create(null),e){if(!l9(e[s],n[s]))return!1;i[s]=!0}for(s in n)if(!(s in i)&&typeof n[s]<"u")return!1;return!0}if(!Array.isArray(n))return!1;if((o=e.length)==n.length){for(s=0;s{am(n[r])?r in e?t[r]=NL(e[r],n[r]):Object.assign(t,{[r]:n[r]}):Object.assign(t,{[r]:n[r]})}),t}class a9{}let $L=(()=>{class e extends a9{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(t,r){let o;return o="string"==typeof t?this.interpolateString(t,r):"function"==typeof t?this.interpolateFunction(t,r):t,o}getValue(t,r){let o="string"==typeof r?r.split("."):[r];r="";do{r+=o.shift(),!z0(t)||!z0(t[r])||"object"!=typeof t[r]&&o.length?o.length?r+=".":t=void 0:(t=t[r],r="")}while(o.length);return t}interpolateFunction(t,r){return t(r)}interpolateString(t,r){return r?t.replace(this.templateMatcher,(o,s)=>{let i=this.getValue(r,s);return z0(i)?i:o}):t}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=oo(e)))(r||e)}}(),e.\u0275prov=xe({token:e,factory:e.\u0275fac}),e})();class sh{}let UL=(()=>{class e extends sh{compile(t,r){return t}compileTranslations(t,r){return t}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=oo(e)))(r||e)}}(),e.\u0275prov=xe({token:e,factory:e.\u0275fac}),e})();class ZL{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new _e,this.onLangChange=new _e,this.onDefaultLangChange=new _e}}const cm=new Me("USE_STORE"),hm=new Me("USE_DEFAULT_LANG"),um=new Me("DEFAULT_LANGUAGE"),dm=new Me("USE_EXTEND");let pm=(()=>{class e{constructor(t,r,o,s,i,l=!0,a=!1,c=!1,h){this.store=t,this.currentLoader=r,this.compiler=o,this.parser=s,this.missingTranslationHandler=i,this.useDefaultLang=l,this.isolate=a,this.extend=c,this.pending=!1,this._onTranslationChange=new _e,this._onLangChange=new _e,this._onDefaultLangChange=new _e,this._langs=[],this._translations={},this._translationRequests={},h&&this.setDefaultLang(h)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(t){this.isolate?this._defaultLang=t:this.store.defaultLang=t}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(t){this.isolate?this._currentLang=t:this.store.currentLang=t}get langs(){return this.isolate?this._langs:this.store.langs}set langs(t){this.isolate?this._langs=t:this.store.langs=t}get translations(){return this.isolate?this._translations:this.store.translations}set translations(t){this.isolate?this._translations=t:this.store.translations=t}setDefaultLang(t){if(t===this.defaultLang)return;let r=this.retrieveTranslations(t);typeof r<"u"?(null==this.defaultLang&&(this.defaultLang=t),r.pipe(A2(1)).subscribe(o=>{this.changeDefaultLang(t)})):this.changeDefaultLang(t)}getDefaultLang(){return this.defaultLang}use(t){if(t===this.currentLang)return po(this.translations[t]);let r=this.retrieveTranslations(t);return typeof r<"u"?(this.currentLang||(this.currentLang=t),r.pipe(A2(1)).subscribe(o=>{this.changeLang(t)}),r):(this.changeLang(t),po(this.translations[t]))}retrieveTranslations(t){let r;return(typeof this.translations[t]>"u"||this.extend)&&(this._translationRequests[t]=this._translationRequests[t]||this.getTranslation(t),r=this._translationRequests[t]),r}getTranslation(t){this.pending=!0;const r=this.currentLoader.getTranslation(t).pipe(RL(1),A2(1));return this.loadingTranslations=r.pipe(Qe(o=>this.compiler.compileTranslations(o,t)),RL(1),A2(1)),this.loadingTranslations.subscribe({next:o=>{this.translations[t]=this.extend&&this.translations[t]?{...o,...this.translations[t]}:o,this.updateLangs(),this.pending=!1},error:o=>{this.pending=!1}}),r}setTranslation(t,r,o=!1){r=this.compiler.compileTranslations(r,t),this.translations[t]=(o||this.extend)&&this.translations[t]?NL(this.translations[t],r):r,this.updateLangs(),this.onTranslationChange.emit({lang:t,translations:this.translations[t]})}getLangs(){return this.langs}addLangs(t){t.forEach(r=>{-1===this.langs.indexOf(r)&&this.langs.push(r)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(t,r,o){let s;if(r instanceof Array){let i={},l=!1;for(let a of r)i[a]=this.getParsedResult(t,a,o),H0(i[a])&&(l=!0);return l?IL(r.map(c=>H0(i[c])?i[c]:po(i[c]))).pipe(Qe(c=>{let h={};return c.forEach((u,d)=>{h[r[d]]=u}),h})):i}if(t&&(s=this.parser.interpolate(this.parser.getValue(t,r),o)),typeof s>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(s=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],r),o)),typeof s>"u"){let i={key:r,translateService:this};typeof o<"u"&&(i.interpolateParams=o),s=this.missingTranslationHandler.handle(i)}return typeof s<"u"?s:r}get(t,r){if(!z0(t)||!t.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(wL(o=>H0(o=this.getParsedResult(o,t,r))?o:po(o)));{let o=this.getParsedResult(this.translations[this.currentLang],t,r);return H0(o)?o:po(o)}}getStreamOnTranslationChange(t,r){if(!z0(t)||!t.length)throw new Error('Parameter "key" required');return oh(sm(()=>this.get(t,r)),this.onTranslationChange.pipe(zs(o=>{const s=this.getParsedResult(o.translations,t,r);return"function"==typeof s.subscribe?s:po(s)})))}stream(t,r){if(!z0(t)||!t.length)throw new Error('Parameter "key" required');return oh(sm(()=>this.get(t,r)),this.onLangChange.pipe(zs(o=>{const s=this.getParsedResult(o.translations,t,r);return H0(s)?s:po(s)})))}instant(t,r){if(!z0(t)||!t.length)throw new Error('Parameter "key" required');let o=this.getParsedResult(this.translations[this.currentLang],t,r);if(H0(o)){if(t instanceof Array){let s={};return t.forEach((i,l)=>{s[t[l]]=t[l]}),s}return t}return o}set(t,r,o=this.currentLang){this.translations[o][t]=this.compiler.compile(r,o),this.updateLangs(),this.onTranslationChange.emit({lang:o,translations:this.translations[o]})}changeLang(t){this.currentLang=t,this.onLangChange.emit({lang:t,translations:this.translations[t]}),null==this.defaultLang&&this.changeDefaultLang(t)}changeDefaultLang(t){this.defaultLang=t,this.onDefaultLangChange.emit({lang:t,translations:this.translations[t]})}reloadLang(t){return this.resetLang(t),this.getTranslation(t)}resetLang(t){this._translationRequests[t]=void 0,this.translations[t]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof t>"u"?void 0:(-1!==t.indexOf("-")&&(t=t.split("-")[0]),-1!==t.indexOf("_")&&(t=t.split("_")[0]),t)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,t}}return e.\u0275fac=function(t){return new(t||e)(gt(ZL),gt(ju),gt(sh),gt(a9),gt(lm),gt(hm),gt(cm),gt(dm),gt(um))},e.\u0275prov=xe({token:e,factory:e.\u0275fac}),e})(),qL=(()=>{class e{constructor(t,r){this.translate=t,this._ref=r,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(t,r,o){let s=i=>{this.value=void 0!==i?i:t,this.lastKey=t,this._ref.markForCheck()};if(o){let i=this.translate.getParsedResult(o,t,r);H0(i.subscribe)?i.subscribe(s):s(i)}this.translate.get(t,r).subscribe(s)}transform(t,...r){if(!t||!t.length)return t;if(l9(t,this.lastKey)&&l9(r,this.lastParams))return this.value;let o;if(z0(r[0])&&r.length)if("string"==typeof r[0]&&r[0].length){let s=r[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{o=JSON.parse(s)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${r[0]}`)}}else"object"==typeof r[0]&&!Array.isArray(r[0])&&(o=r[0]);return this.lastKey=t,this.lastParams=r,this.updateValue(t,o),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(s=>{this.lastKey&&s.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(t,o,s.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(s=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,o,s.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,o))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return e.\u0275fac=function(t){return new(t||e)(vt(pm,16),vt(ms,16))},e.\u0275pipe=bo({name:"translate",type:e,pure:!1}),e.\u0275prov=xe({token:e,factory:e.\u0275fac}),e})(),Pu=(()=>{class e{static forRoot(t={}){return{ngModule:e,providers:[t.loader||{provide:ju,useClass:FL},t.compiler||{provide:sh,useClass:UL},t.parser||{provide:a9,useClass:$L},t.missingTranslationHandler||{provide:lm,useClass:OL},ZL,{provide:cm,useValue:t.isolate},{provide:hm,useValue:t.useDefaultLang},{provide:dm,useValue:t.extend},{provide:um,useValue:t.defaultLanguage},pm]}}static forChild(t={}){return{ngModule:e,providers:[t.loader||{provide:ju,useClass:FL},t.compiler||{provide:sh,useClass:UL},t.parser||{provide:a9,useClass:$L},t.missingTranslationHandler||{provide:lm,useClass:OL},{provide:cm,useValue:t.isolate},{provide:hm,useValue:t.useDefaultLang},{provide:dm,useValue:t.extend},{provide:um,useValue:t.defaultLanguage},pm]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=K1({type:e}),e.\u0275inj=$1({}),e})();var QY=ht(517);const JY=new Me("MESSAGE_FORMAT_CONFIG"),tX={biDiSupport:!1,formatters:{},strictNumberSign:!1,currency:"USD",strictPluralKeys:!0};let eX=(()=>{class e extends sh{constructor(t){super(),this.mfCache=new Map;const{formatters:r,biDiSupport:o,strictNumberSign:s,currency:i,strictPluralKeys:l}={...tX,...t};this.config={customFormatters:r,biDiSupport:o,strict:s,currency:i,strictPluralKeys:l}}compile(t,r){return this.getMessageFormatInstance(r).compile(t)}compileTranslations(t,r){return"string"==typeof t?this.compile(t,r):Object.keys(t).reduce((o,s)=>({...o,[s]:this.compileTranslations(t[s],r)}),{})}getMessageFormatInstance(t){return this.mfCache.has(t)||this.mfCache.set(t,new QY(t,this.config)),this.mfCache.get(t)}static#t=this.\u0275fac=function(r){return new(r||e)(gt(JY,8))};static#e=this.\u0275prov=xe({token:e,factory:e.\u0275fac})}return e})();class nX{constructor(n,t="/assets/i18n/",r=".json"){this.http=n,this.prefix=t,this.suffix=r}getTranslation(n){return this.http.get(`${this.prefix}${n}${this.suffix}`)}}function oX(e){return Object.keys(e).reduce((n,t)=>e[t].trim().length?{...n,[t]:e[t]}:n,{})}class sX extends nX{getTranslation(n){const t=n.substring(0,2);return super.getTranslation(t).pipe(Qe(oX))}}const aX={compiler:{provide:sh,useClass:eX},loader:{provide:ju,useFactory:function lX(e){return new sX(e,"./assets/i18n/")},defaultLanguage:"en",deps:[Wr]}},c9={"ISO 19139":xf,"ISO 19115-3":Sf,"DCAT-AP":r9};function WL(e){return Object.keys(c9).reduce((n,t)=>e instanceof c9[t]?t:n)}let hX=(()=>{class e{constructor(){this.newRecordNative=new _e,this.newMetadata=new _e,this.currentConverter=null,this.status="Standing by."}set recordNative(t){this._currentRecord=t,this.convertRecordToXml(t)}set currentMetadata(t){const r=performance.now();this.status="Converting to CatalogRecord...",this.xmlToRecord(t).then(o=>{this._currentRecord=o,this.newRecordNative.emit(o),this.newMetadata.emit(t);const s=Math.round(performance.now()-r);this.status=`Converting to CatalogRecord... Done (${s} ms).`}).catch(o=>{this.status=`Converting to CatalogRecord... Failed: ${o instanceof Error?o.message:o}`,console.error(o)})}startLoadingFile(){this.status="Loading file from url..."}errorLoadingFile(t){this.status=`Loading file from url... Failed: ${t}`,console.error(t)}startReadingFile(){this.status="Reading file..."}errorReadingFile(){this.status="Reading file... Failed"}changeFormat(t){const r=c9[t];if(!r)throw new Error(`Metadata format ${t} not supported`);this.referenceMetadata="",this.convertRecordToXml(this._currentRecord,new r)}convertRecordToXml(t,r){const o=performance.now(),i=WL(r??this.currentConverter);this.status=`Converting to ${i}...`,this.newMetadata.emit(""),this.recordToXml(t,r).then(l=>{this.newMetadata.emit(l);const a=Math.round(performance.now()-o);this.status=`Converting to ${i}... Done (${a} ms).`}).catch(l=>{this.status=`Converting to ${i}... Failed: ${l instanceof Error?l.message:l}`,console.error(l)})}recordToXml(t,r){try{return this.currentConverter=r||(this.referenceMetadata?mL(this.referenceMetadata):new Sf),this.currentConverter.writeRecord(t,this.referenceMetadata)}catch(o){return Promise.reject(o)}}xmlToRecord(t){try{return this.currentConverter=mL(t),this.currentConverter.readRecord(t)}catch(r){return Promise.reject(r)}}static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275cmp=U1({type:e,selectors:[["gn-ui-status"]],inputs:{recordNative:"recordNative",currentMetadata:"currentMetadata",referenceMetadata:"referenceMetadata"},outputs:{newRecordNative:"newRecordNative",newMetadata:"newMetadata"},decls:2,vars:1,consts:[[1,"font-mono"]],template:function(r,o){1&r&&(yt(0,"div",0),xr(1),Vt()),2&r&&(St(1),wo("> ",o.status,""))}})}return e})();const uX=["unspecified","other","author","collaborator","contributor","custodian","distributor","editor","funder","mediator","originator","owner","point_of_contact","principal_investigator","processor","publisher","resource_provider","rights_holder","sponsor","stakeholder","user"],dX=["completed","ongoing","under_development","deprecated","removed"];let GL=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275mod=K1({type:e});static#r=this.\u0275inj=$1({imports:[e2]})}return e})();var pX=ht(6756),Do=ht.n(pX);let vX=(()=>{class e{static getColor(t){return document.documentElement.style.getPropertyValue(`--color-${t}`)}static generateBgOpacityClasses(t,r,o=[0,10,25,50,75]){const s=Do()(r),i=document.createElement("style");i.innerHTML=o.reduce((l,a)=>(l+=`.bg-${t}-opacity-${a}{background-color:${s.alpha(a/100).css()};}`)+`.hover-bg-${t}-opacity-${a}:hover {background-color:${s.alpha(a/100).css()};}`,""),document.getElementsByTagName("head")[0].appendChild(i)}static applyCssVariables(t,r,o,s,i,l,a){const c=(v,m)=>{document.documentElement.style.setProperty(`--color-${v}`,m.css())},h=Do()("black"),u=Do()("white");c("primary",Do()(t)),c("primary-lighter",Do().scale([t,u]).mode("lab")(.3)),c("primary-lightest",Do().scale([t,u]).mode("lab")(.6)),c("primary-white",Do().scale([t,u]).mode("lab")(.85)),c("primary-darker",Do().scale([t,h]).mode("lab")(.3)),c("primary-darkest",Do().scale([t,h]).mode("lab")(.6)),c("primary-black",Do().scale([t,h]).mode("lab")(.85)),c("secondary",Do()(r)),c("secondary-lighter",Do().scale([r,u]).mode("lab")(.3)),c("secondary-lightest",Do().scale([r,u]).mode("lab")(.6)),c("secondary-white",Do().scale([r,u]).mode("lab")(.85)),c("secondary-darker",Do().scale([r,h]).mode("lab")(.3)),c("secondary-darkest",Do().scale([r,h]).mode("lab")(.6)),c("secondary-black",Do().scale([r,h]).mode("lab")(.85)),c("main",Do()(o)),c("background",Do()(s));const d=Do().scale([s,o]).mode("lrgb");if(c("gray-50",d(.05)),c("gray-100",d(.1)),c("gray-200",d(.2)),c("gray-300",d(.3)),c("gray-400",d(.4)),c("gray-500",d(.5)),c("gray-600",d(.6)),c("gray-700",d(.7)),c("gray-800",d(.8)),c("gray-900",d(.9)),c("gray-950",d(.95)),i&&document.documentElement.style.setProperty("--font-family-main",i),l&&document.documentElement.style.setProperty("--font-family-title",l),a){const v=document.createElement("link");v.href=a,v.rel="stylesheet",v.type="text/css",document.head.append(v)}}static generateLabelColor(t,r,o){let s=0;for(let i=0;i{class e{constructor(){this.btnClass="gn-ui-btn-default",this.disabled=!1,this.extraClass="",this.buttonClick=new _e}set type(t){switch(t){case"primary":this.btnClass="gn-ui-btn-primary";break;case"secondary":this.btnClass="gn-ui-btn-secondary";break;case"outline":this.btnClass="gn-ui-btn-outline";break;case"light":this.btnClass="gn-ui-btn-light";break;case"gray":this.btnClass="gn-ui-btn-gray";break;case"black":this.btnClass="gn-ui-btn-black";break;default:this.btnClass="gn-ui-btn-default"}}get classList(){return`${this.btnClass} ${this.extraClass}`}handleClick(t){this.buttonClick.emit(),t.preventDefault(),function gX(e){e.stopPropagation(),setTimeout(()=>{window.document.dispatchEvent(e)},0)}(t)}static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275cmp=U1({type:e,selectors:[["gn-ui-button"]],inputs:{type:"type",disabled:"disabled",extraClass:"extraClass"},outputs:{buttonClick:"buttonClick"},standalone:!0,features:[cl],ngContentSelectors:xX,decls:2,vars:3,consts:[["type","button",3,"disabled","click"]],template:function(r,o){1&r&&(Es(),yt(0,"button",0),ie("click",function(i){return o.handleClick(i)}),g2(1),Vt()),2&r&&(Lp(o.classList),xt("disabled",o.disabled))},changeDetection:0})}return e})();class MX extends zt{constructor(n,t){super()}schedule(n,t=0){return this}}const h9={setInterval(e,n,...t){const{delegate:r}=h9;return r?.setInterval?r.setInterval(e,n,...t):setInterval(e,n,...t)},clearInterval(e){const{delegate:n}=h9;return(n?.clearInterval||clearInterval)(e)},delegate:void 0};class vm extends MX{constructor(n,t){super(n,t),this.scheduler=n,this.work=t,this.pending=!1}schedule(n,t=0){var r;if(this.closed)return this;this.state=n;const o=this.id,s=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(s,o,t)),this.pending=!0,this.delay=t,this.id=null!==(r=this.id)&&void 0!==r?r:this.requestAsyncId(s,this.id,t),this}requestAsyncId(n,t,r=0){return h9.setInterval(n.flush.bind(n,this),r)}recycleAsyncId(n,t,r=0){if(null!=r&&this.delay===r&&!1===this.pending)return t;null!=t&&h9.clearInterval(t)}execute(n,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const r=this._execute(n,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,t){let o,r=!1;try{this.work(n)}catch(s){r=!0,o=s||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){const{id:n,scheduler:t}=this,{actions:r}=t;this.work=this.state=this.scheduler=null,this.pending=!1,Wt(r,this),null!=n&&(this.id=this.recycleAsyncId(t,n,null)),this.delay=null,super.unsubscribe()}}}class Iu{constructor(n,t=Iu.now){this.schedulerActionCtor=n,this.now=t}schedule(n,t=0,r){return new this.schedulerActionCtor(this,n).schedule(r,t)}}Iu.now=im.now;class gm extends Iu{constructor(n,t=Iu.now){super(n,t),this.actions=[],this._active=!1}flush(n){const{actions:t}=this;if(this._active)return void t.push(n);let r;this._active=!0;do{if(r=n.execute(n.state,n.delay))break}while(n=t.shift());if(this._active=!1,r){for(;n=t.shift();)n.unsubscribe();throw r}}}const u9=new gm(vm),yX=u9;function ih(e,n=u9){return Yt((t,r)=>{let o=null,s=null,i=null;const l=()=>{if(o){o.unsubscribe(),o=null;const c=s;s=null,r.next(c)}};function a(){const c=i+e,h=n.now();if(h{s=c,i=n.now(),o||(o=n.schedule(a,e),r.add(o))},()=>{l(),r.complete()},void 0,()=>{s=o=null}))})}let KL=(()=>{class e{constructor(t,r){this._renderer=t,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(t,r){this._renderer.setProperty(this._elementRef.nativeElement,t,r)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}static#t=this.\u0275fac=function(r){return new(r||e)(vt(Ol),vt(Br))};static#e=this.\u0275dir=s1({type:e})}return e})(),e5=(()=>{class e extends KL{static#t=this.\u0275fac=function(){let t;return function(o){return(t||(t=oo(e)))(o||e)}}();static#e=this.\u0275dir=s1({type:e,features:[er]})}return e})();const J2=new Me("NgValueAccessor"),HX={provide:J2,useExisting:Hr(()=>fm),multi:!0};let fm=(()=>{class e extends e5{writeValue(t){this.setProperty("checked",t)}static#t=this.\u0275fac=function(){let t;return function(o){return(t||(t=oo(e)))(o||e)}}();static#e=this.\u0275dir=s1({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(r,o){1&r&&ie("change",function(i){return o.onChange(i.target.checked)})("blur",function(){return o.onTouched()})},features:[Mr([HX]),er]})}return e})();const zX={provide:J2,useExisting:Hr(()=>Ru),multi:!0},QL=new Me("CompositionEventMode");let Ru=(()=>{class e extends KL{constructor(t,r,o){super(t,r),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function bX(){const e=v0()?v0().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(t){this.setProperty("value",t??"")}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}static#t=this.\u0275fac=function(r){return new(r||e)(vt(Ol),vt(Br),vt(QL,8))};static#e=this.\u0275dir=s1({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,o){1&r&&ie("input",function(i){return o._handleInput(i.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(i){return o._compositionEnd(i.target.value)})},features:[Mr([zX]),er]})}return e})();function b0(e){return null==e||("string"==typeof e||Array.isArray(e))&&0===e.length}function JL(e){return null!=e&&"number"==typeof e.length}const qo=new Me("NgValidators"),L0=new Me("NgAsyncValidators"),LX=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class d9{static min(n){return function tV(e){return n=>{if(b0(n.value)||b0(e))return null;const t=parseFloat(n.value);return!isNaN(t)&&t{if(b0(n.value)||b0(e))return null;const t=parseFloat(n.value);return!isNaN(t)&&t>e?{max:{max:e,actual:n.value}}:null}}(n)}static required(n){return function rV(e){return b0(e.value)?{required:!0}:null}(n)}static requiredTrue(n){return function nV(e){return!0===e.value?null:{required:!0}}(n)}static email(n){return function oV(e){return b0(e.value)||LX.test(e.value)?null:{email:!0}}(n)}static minLength(n){return sV(n)}static maxLength(n){return function iV(e){return n=>JL(n.value)&&n.value.length>e?{maxlength:{requiredLength:e,actualLength:n.value.length}}:null}(n)}static pattern(n){return function lV(e){if(!e)return p9;let n,t;return"string"==typeof e?(t="","^"!==e.charAt(0)&&(t+="^"),t+=e,"$"!==e.charAt(e.length-1)&&(t+="$"),n=new RegExp(t)):(t=e.toString(),n=e),r=>{if(b0(r.value))return null;const o=r.value;return n.test(o)?null:{pattern:{requiredPattern:t,actualValue:o}}}}(n)}static nullValidator(n){return null}static compose(n){return pV(n)}static composeAsync(n){return vV(n)}}function sV(e){return n=>b0(n.value)||!JL(n.value)?null:n.value.length{n=null!=t?{...n,...t}:n}),0===Object.keys(n).length?null:n}function uV(e,n){return n.map(t=>t(e))}function dV(e){return e.map(n=>function VX(e){return!e.validate}(n)?n:t=>n.validate(t))}function pV(e){if(!e)return null;const n=e.filter(aV);return 0==n.length?null:function(t){return hV(uV(t,n))}}function mm(e){return null!=e?pV(dV(e)):null}function vV(e){if(!e)return null;const n=e.filter(aV);return 0==n.length?null:function(t){return IL(uV(t,n).map(cV)).pipe(Qe(hV))}}function wm(e){return null!=e?vV(dV(e)):null}function gV(e,n){return null===e?[n]:Array.isArray(e)?[...e,n]:[e,n]}function fV(e){return e._rawValidators}function mV(e){return e._rawAsyncValidators}function Cm(e){return e?Array.isArray(e)?e:[e]:[]}function v9(e,n){return Array.isArray(e)?e.includes(n):e===n}function wV(e,n){const t=Cm(n);return Cm(e).forEach(o=>{v9(t,o)||t.push(o)}),t}function CV(e,n){return Cm(n).filter(t=>!v9(e,t))}class kV{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=mm(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=wm(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,t){return!!this.control&&this.control.hasError(n,t)}getError(n,t){return this.control?this.control.getError(n,t):null}}class ts extends kV{get formDirective(){return null}get path(){return null}}class Ta extends kV{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class _V{constructor(n){this._cd=n}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let g9=(()=>{class e extends _V{constructor(t){super(t)}static#t=this.\u0275fac=function(r){return new(r||e)(vt(Ta,2))};static#e=this.\u0275dir=s1({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){2&r&&Zn("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[er]})}return e})(),xV=(()=>{class e extends _V{constructor(t){super(t)}static#t=this.\u0275fac=function(r){return new(r||e)(vt(ts,10))};static#e=this.\u0275dir=s1({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,o){2&r&&Zn("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[er]})}return e})();const Fu="VALID",m9="INVALID",lh="PENDING",Ou="DISABLED";function xm(e){return(w9(e)?e.validators:e)||null}function Mm(e,n){return(w9(n)?n.asyncValidators:e)||null}function w9(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class ym{constructor(n,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===Fu}get invalid(){return this.status===m9}get pending(){return this.status==lh}get disabled(){return this.status===Ou}get enabled(){return this.status!==Ou}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(wV(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(wV(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(CV(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(CV(n,this._rawAsyncValidators))}hasValidator(n){return v9(this._rawValidators,n)}hasAsyncValidator(n){return v9(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=lh,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=Ou,this.errors=null,this._forEachChild(r=>{r.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:t}),this._onDisabledChange.forEach(r=>r(!0))}enable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=Fu,this._forEachChild(r=>{r.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:t}),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Fu||this.status===lh)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ou:Fu}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=lh,this._hasOwnPendingAsyncValidator=!0;const t=cV(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,t={}){this.errors=n,this._updateControlsErrors(!1!==t.emitEvent)}get(n){let t=n;return null==t||(Array.isArray(t)||(t=t.split(".")),0===t.length)?null:t.reduce((r,o)=>r&&r._find(o),this)}getError(n,t){const r=t?this.get(t):this;return r&&r.errors?r.errors[n]:null}hasError(n,t){return!!this.getError(n,t)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new _e,this.statusChanges=new _e}_calculateStatus(){return this._allControlsDisabled()?Ou:this.errors?m9:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(lh)?lh:this._anyControlsHaveStatus(m9)?m9:Fu}_anyControlsHaveStatus(n){return this._anyControls(t=>t.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){w9(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function BX(e){return Array.isArray(e)?mm(e):e||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function TX(e){return Array.isArray(e)?wm(e):e||null}(this._rawAsyncValidators)}}class C9 extends ym{constructor(n,t,r){super(xm(t),Mm(r,t)),this.controls=n,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,t){return this.controls[n]?this.controls[n]:(this.controls[n]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(n,t,r={}){this.registerControl(n,t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(n,t={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(n,t,r={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],t&&this.registerControl(n,t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,t={}){(function HV(e,n,t){e._forEachChild((r,o)=>{if(void 0===t[o])throw new Ie(1002,"")})})(this,0,n),Object.keys(n).forEach(r=>{(function yV(e,n,t){const r=e.controls;if(!(n?Object.keys(r):r).length)throw new Ie(1e3,"");if(!r[t])throw new Ie(1001,"")})(this,!0,r),this.controls[r].setValue(n[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(n,t={}){null!=n&&(Object.keys(n).forEach(r=>{const o=this.controls[r];o&&o.patchValue(n[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(n={},t={}){this._forEachChild((r,o)=>{r.reset(n?n[o]:null,{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(n,t,r)=>(n[r]=t.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(t,r)=>!!r._syncPendingControls()||t);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(t=>{const r=this.controls[t];r&&n(r,t)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[t,r]of Object.entries(this.controls))if(this.contains(t)&&n(r))return!0;return!1}_reduceValue(){return this._reduceChildren({},(t,r,o)=>((r.enabled||this.disabled)&&(t[o]=r.value),t))}_reduceChildren(n,t){let r=n;return this._forEachChild((o,s)=>{r=t(r,o,s)}),r}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}const r5=new Me("CallSetDisabledState",{providedIn:"root",factory:()=>Nu}),Nu="always";function k9(e,n){return[...n.path,e]}function $u(e,n,t=Nu){Hm(e,n),n.valueAccessor.writeValue(e.value),(e.disabled||"always"===t)&&n.valueAccessor.setDisabledState?.(e.disabled),function PX(e,n){n.valueAccessor.registerOnChange(t=>{e._pendingValue=t,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&zV(e,n)})}(e,n),function RX(e,n){const t=(r,o)=>{n.valueAccessor.writeValue(r),o&&n.viewToModelUpdate(r)};e.registerOnChange(t),n._registerOnDestroy(()=>{e._unregisterOnChange(t)})}(e,n),function IX(e,n){n.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&zV(e,n),"submit"!==e.updateOn&&e.markAsTouched()})}(e,n),function jX(e,n){if(n.valueAccessor.setDisabledState){const t=r=>{n.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(t),n._registerOnDestroy(()=>{e._unregisterOnDisabledChange(t)})}}(e,n)}function _9(e,n,t=!0){const r=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(r),n.valueAccessor.registerOnTouched(r)),M9(e,n),e&&(n._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function x9(e,n){e.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(n)})}function Hm(e,n){const t=fV(e);null!==n.validator?e.setValidators(gV(t,n.validator)):"function"==typeof t&&e.setValidators([t]);const r=mV(e);null!==n.asyncValidator?e.setAsyncValidators(gV(r,n.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const o=()=>e.updateValueAndValidity();x9(n._rawValidators,o),x9(n._rawAsyncValidators,o)}function M9(e,n){let t=!1;if(null!==e){if(null!==n.validator){const o=fV(e);if(Array.isArray(o)&&o.length>0){const s=o.filter(i=>i!==n.validator);s.length!==o.length&&(t=!0,e.setValidators(s))}}if(null!==n.asyncValidator){const o=mV(e);if(Array.isArray(o)&&o.length>0){const s=o.filter(i=>i!==n.asyncValidator);s.length!==o.length&&(t=!0,e.setAsyncValidators(s))}}}const r=()=>{};return x9(n._rawValidators,r),x9(n._rawAsyncValidators,r),t}function zV(e,n){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function bV(e,n){Hm(e,n)}function bm(e,n){if(!e.hasOwnProperty("model"))return!1;const t=e.model;return!!t.isFirstChange()||!Object.is(n,t.currentValue)}function LV(e,n){e._syncPendingControls(),n.forEach(t=>{const r=t.control;"submit"===r.updateOn&&r._pendingChange&&(t.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}function Lm(e,n){if(!n)return null;let t,r,o;return Array.isArray(n),n.forEach(s=>{s.constructor===Ru?t=s:function NX(e){return Object.getPrototypeOf(e.constructor)===e5}(s)?r=s:o=s}),o||r||t||null}const UX={provide:ts,useExisting:Hr(()=>ah)},Uu=(()=>Promise.resolve())();let ah=(()=>{class e extends ts{constructor(t,r,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._directives=new Set,this.ngSubmit=new _e,this.form=new C9({},mm(t),wm(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){Uu.then(()=>{const r=this._findContainer(t.path);t.control=r.registerControl(t.name,t.control),$u(t.control,t,this.callSetDisabledState),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){Uu.then(()=>{const r=this._findContainer(t.path);r&&r.removeControl(t.name),this._directives.delete(t)})}addFormGroup(t){Uu.then(()=>{const r=this._findContainer(t.path),o=new C9({});bV(o,t),r.registerControl(t.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){Uu.then(()=>{const r=this._findContainer(t.path);r&&r.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,r){Uu.then(()=>{this.form.get(t.path).setValue(r)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,LV(this.form,this._directives),this.ngSubmit.emit(t),"dialog"===t?.target?.method}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}static#t=this.\u0275fac=function(r){return new(r||e)(vt(qo,10),vt(L0,10),vt(r5,8))};static#e=this.\u0275dir=s1({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(r,o){1&r&&ie("submit",function(i){return o.onSubmit(i)})("reset",function(){return o.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Mr([UX]),er]})}return e})();function VV(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}function SV(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}const Vm=class extends ym{constructor(n=null,t,r){super(xm(t),Mm(r,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),w9(t)&&(t.nonNullable||t.initialValueIsDefault)&&(this.defaultValue=SV(n)?n.value:n)}setValue(n,t={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(n,t={}){this.setValue(n,t)}reset(n=this.defaultValue,t={}){this._applyFormState(n),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){VV(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){VV(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){SV(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}},WX={provide:Ta,useExisting:Hr(()=>y9)},BV=(()=>Promise.resolve())();let y9=(()=>{class e extends Ta{constructor(t,r,o,s,i,l){super(),this._changeDetectorRef=i,this.callSetDisabledState=l,this.control=new Vm,this._registered=!1,this.name="",this.update=new _e,this._parent=t,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=Lm(0,s)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){const r=t.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),bm(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){$u(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(t){BV.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){const r=t.isDisabled.currentValue,o=0!==r&&function Zv(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}(r);BV.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?k9(t,this._parent):[t]}static#t=this.\u0275fac=function(r){return new(r||e)(vt(ts,9),vt(qo,10),vt(L0,10),vt(J2,10),vt(ms,8),vt(r5,8))};static#e=this.\u0275dir=s1({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Mr([WX]),er,mo]})}return e})(),TV=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275dir=s1({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return e})();const GX={provide:J2,useExisting:Hr(()=>Sm),multi:!0};let Sm=(()=>{class e extends e5{writeValue(t){this.setProperty("value",t??"")}registerOnChange(t){this.onChange=r=>{t(""==r?null:parseFloat(r))}}static#t=this.\u0275fac=function(){let t;return function(o){return(t||(t=oo(e)))(o||e)}}();static#e=this.\u0275dir=s1({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(r,o){1&r&&ie("input",function(i){return o.onChange(i.target.value)})("blur",function(){return o.onTouched()})},features:[Mr([GX]),er]})}return e})(),EV=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275mod=K1({type:e});static#r=this.\u0275inj=$1({})}return e})();const Am=new Me("NgModelWithFormControlWarning"),JX={provide:ts,useExisting:Hr(()=>n5)};let n5=(()=>{class e extends ts{constructor(t,r,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new _e,this._setValidators(t),this._setAsyncValidators(r)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(M9(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const r=this.form.get(t.path);return $u(r,t,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),r}getControl(t){return this.form.get(t.path)}removeControl(t){_9(t.control||null,t,!1),function $X(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,r){this.form.get(t.path).setValue(r)}onSubmit(t){return this.submitted=!0,LV(this.form,this.directives),this.ngSubmit.emit(t),"dialog"===t?.target?.method}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const r=t.control,o=this.form.get(t.path);r!==o&&(_9(r||null,t),(e=>e instanceof Vm)(o)&&($u(o,t,this.callSetDisabledState),t.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const r=this.form.get(t.path);bV(r,t),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const r=this.form.get(t.path);r&&function FX(e,n){return M9(e,n)}(r,t)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Hm(this.form,this),this._oldForm&&M9(this._oldForm,this)}_checkFormPresent(){}static#t=this.\u0275fac=function(r){return new(r||e)(vt(qo,10),vt(L0,10),vt(r5,8))};static#e=this.\u0275dir=s1({type:e,selectors:[["","formGroup",""]],hostBindings:function(r,o){1&r&&ie("submit",function(i){return o.onSubmit(i)})("reset",function(){return o.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Mr([JX]),er,mo]})}return e})();const rK={provide:Ta,useExisting:Hr(()=>Tm)};let Tm=(()=>{class e extends Ta{set isDisabled(t){}static#t=this._ngModelWarningSentOnce=!1;constructor(t,r,o,s,i){super(),this._ngModelWarningConfig=i,this._added=!1,this.name=null,this.update=new _e,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=Lm(0,s)}ngOnChanges(t){this._added||this._setUpControl(),bm(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return k9(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static#e=this.\u0275fac=function(r){return new(r||e)(vt(ts,13),vt(qo,10),vt(L0,10),vt(J2,10),vt(Am,8))};static#r=this.\u0275dir=s1({type:e,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[Mr([rK]),er,mo]})}return e})();const nK={provide:J2,useExisting:Hr(()=>H9),multi:!0};function FV(e,n){return null==e?`${n}`:(n&&"object"==typeof n&&(n="Object"),`${e}: ${n}`.slice(0,50))}let H9=(()=>{class e extends e5{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const o=FV(this._getOptionId(t),t);this.setProperty("value",o)}registerOnChange(t){this.onChange=r=>{this.value=this._getOptionValue(r),t(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r),t))return r;return null}_getOptionValue(t){const r=function oK(e){return e.split(":")[0]}(t);return this._optionMap.has(r)?this._optionMap.get(r):t}static#t=this.\u0275fac=function(){let t;return function(o){return(t||(t=oo(e)))(o||e)}}();static#e=this.\u0275dir=s1({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(r,o){1&r&&ie("change",function(i){return o.onChange(i.target.value)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},features:[Mr([nK]),er]})}return e})(),OV=(()=>{class e{constructor(t,r,o){this._element=t,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(FV(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static#t=this.\u0275fac=function(r){return new(r||e)(vt(Br),vt(Ol),vt(H9,9))};static#e=this.\u0275dir=s1({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}return e})();const sK={provide:J2,useExisting:Hr(()=>Em),multi:!0};function NV(e,n){return null==e?`${n}`:("string"==typeof n&&(n=`'${n}'`),n&&"object"==typeof n&&(n="Object"),`${e}: ${n}`.slice(0,50))}let Em=(()=>{class e extends e5{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){let r;if(this.value=t,Array.isArray(t)){const o=t.map(s=>this._getOptionId(s));r=(s,i)=>{s._setSelected(o.indexOf(i.toString())>-1)}}else r=(o,s)=>{o._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(t){this.onChange=r=>{const o=[],s=r.selectedOptions;if(void 0!==s){const i=s;for(let l=0;l{class e{constructor(t,r,o){this._element=t,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue(NV(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(NV(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static#t=this.\u0275fac=function(r){return new(r||e)(vt(Br),vt(Ol),vt(Em,9))};static#e=this.\u0275dir=s1({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}return e})();let o5=(()=>{class e{constructor(){this._validator=p9}ngOnChanges(t){if(this.inputName in t){const r=this.normalizeInput(t[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):p9,this._onChange&&this._onChange()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return null!=t}static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275dir=s1({type:e,features:[mo]})}return e})();const dK={provide:qo,useExisting:Hr(()=>Im),multi:!0};let Im=(()=>{class e extends o5{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=t=>function UV(e){return"number"==typeof e?e:parseInt(e,10)}(t),this.createValidator=t=>sV(t)}static#t=this.\u0275fac=function(){let t;return function(o){return(t||(t=oo(e)))(o||e)}}();static#e=this.\u0275dir=s1({type:e,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(r,o){2&r&&Y1("minlength",o._enabled?o.minlength:null)},inputs:{minlength:"minlength"},features:[Mr([dK]),er]})}return e})(),KV=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275mod=K1({type:e});static#r=this.\u0275inj=$1({imports:[EV]})}return e})(),Zu=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:r5,useValue:t.callSetDisabledState??Nu}]}}static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275mod=K1({type:e});static#r=this.\u0275inj=$1({imports:[KV]})}return e})(),Rm=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:Am,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:r5,useValue:t.callSetDisabledState??Nu}]}}static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275mod=K1({type:e});static#r=this.\u0275inj=$1({imports:[KV]})}return e})();function fK(e,n){if(1&e){const t=V1();yt(0,"input",10),ie("ngModelChange",function(o){return ct(t),Bt(Zt(2).fieldValueChange.next(o))}),Vt()}if(2&e){const t=Zt(2);xt("readonly",t.readonly)("ngModel",t.fieldValue)}}function mK(e,n){if(1&e){const t=V1();yt(0,"input",10),ie("ngModelChange",function(o){ct(t);const s=Zt(2);return Bt(s.fieldValueChange.next(s.toURL(o)))}),Vt()}if(2&e){const t=Zt(2);xt("readonly",t.readonly)("ngModel",t.fieldValue.toString())}}function wK(e,n){if(1&e){const t=V1();yt(0,"textarea",11),ie("ngModelChange",function(o){return ct(t),Bt(Zt(2).fieldValueChange.next(o))}),Vt()}if(2&e){const t=Zt(2);xt("readonly",t.readonly)("ngModel",t.fieldValue)}}function CK(e,n){if(1&e){const t=V1();yt(0,"input",12),ie("ngModelChange",function(o){ct(t);const s=Zt(2);return Bt(s.fieldValueChange.next(s.toDate(o)))}),Vt()}if(2&e){const t=Zt(2);xt("readonly",t.readonly)("ngModel",null==t.fieldValue?null:t.fieldValue.toISOString().substring(0,16))}}function kK(e,n){if(1&e&&(yt(0,"option",15),xr(1),Vt()),2&e){const t=n.$implicit;xt("selected",t===Zt(3).fieldValue)("ngValue",t),St(1),wo(" ",t," ")}}function _K(e,n){if(1&e){const t=V1();yt(0,"select",13),ie("ngModelChange",function(o){return ct(t),Bt(Zt(2).fieldValueChange.next(o))}),Ze(1,kK,2,3,"option",14),Vt()}if(2&e){const t=Zt(2);xt("ngModel",t.fieldValue),St(1),xt("ngForOf",t.options)}}function xK(e,n){if(1&e){const t=V1();yt(0,"input",16),ie("ngModelChange",function(o){ct(t);const s=Zt(2);return Bt(s.fieldValueChange.next(s.toNumber(o)))}),Vt()}if(2&e){const t=Zt(2);xt("readonly",t.readonly)("ngModel",t.fieldValue)}}function MK(e,n){if(1&e&&(yt(0,"div",2)(1,"label",3)(2,"span",4),xr(3),Vt(),Ze(4,fK,1,2,"input",5),Ze(5,mK,1,2,"input",5),Ze(6,wK,1,2,"textarea",6),Ze(7,CK,1,2,"input",7),Ze(8,_K,2,2,"select",8),Ze(9,xK,1,2,"input",9),Vt()()),2&e){const t=Zt();St(3),js(t.label),St(1),xt("ngIf",t.isSimpleText),St(1),xt("ngIf",t.isURL),St(1),xt("ngIf",t.isRichText),St(1),xt("ngIf",t.isDate),St(1),xt("ngIf",t.hasOptions),St(1),xt("ngIf",t.isNumber)}}function yK(e,n){if(1&e){const t=V1();yt(0,"gn-ui-button",17),ie("buttonClick",function(){return ct(t),Bt(Zt().addValue())}),yt(1,"span")(2,"span",18),xr(3,"Add value for"),Vt(),xr(4),Vt()()}if(2&e){const t=Zt();xt("type","outline"),St(4),wo(" ",t.label,"")}}let HK=(()=>{class e{constructor(){this.fieldValueChange=new _e,this.readonly=!1,this.type="text",this.confirm=this.fieldValueChange.pipe(ih(300),Qe(()=>{}))}get hasOptions(){return Array.isArray(this.options)}get isMissing(){return void 0===this.fieldValue&&!this.hasOptions}get isSimpleText(){return!this.hasOptions&&!this.isMissing&&"text"===this.type}get isRichText(){return!this.hasOptions&&!this.isMissing&&"rich"===this.type}get isURL(){return!this.hasOptions&&!this.isMissing&&"url"===this.type}get isDate(){return!this.hasOptions&&!this.isMissing&&"date"===this.type}get isNumber(){return!this.hasOptions&&!this.isMissing&&"number"===this.type}toDate(t){return new Date(t)}toURL(t){return new URL(t,window.location.toString())}toNumber(t){return parseFloat(t)||0}addValue(){switch(this.type){case"url":this.fieldValue=new URL("",window.location.toString());break;case"date":this.fieldValue=new Date;break;default:this.fieldValue=""}this.fieldValueChange.emit(this.fieldValue)}static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275cmp=U1({type:e,selectors:[["gn-ui-record-field-simple"]],inputs:{label:"label",fieldValue:"fieldValue",readonly:"readonly",type:"type",options:"options"},outputs:{fieldValueChange:"fieldValueChange",confirm:"confirm"},decls:2,vars:2,consts:[["class","border border-gray-400 rounded-sm m-2 shadow-sm bg-white",4,"ngIf"],["extraClass","m-2 py-[0.5em] px-[1em]",3,"type","buttonClick",4,"ngIf"],[1,"border","border-gray-400","rounded-sm","m-2","shadow-sm","bg-white"],[1,"block","leading-tight","text-right","relative"],[1,"absolute","top-[0.25em]","right-[0.5em]","text-[0.9em]","text-gray-700","uppercase","pointer-events-none"],["type","text",3,"readonly","ngModel","ngModelChange",4,"ngIf"],["rows","4",3,"readonly","ngModel","ngModelChange",4,"ngIf"],["type","datetime-local",3,"readonly","ngModel","ngModelChange",4,"ngIf"],[3,"ngModel","ngModelChange",4,"ngIf"],["type","number",3,"readonly","ngModel","ngModelChange",4,"ngIf"],["type","text",3,"readonly","ngModel","ngModelChange"],["rows","4",3,"readonly","ngModel","ngModelChange"],["type","datetime-local",3,"readonly","ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],[3,"selected","ngValue",4,"ngFor","ngForOf"],[3,"selected","ngValue"],["type","number",3,"readonly","ngModel","ngModelChange"],["extraClass","m-2 py-[0.5em] px-[1em]",3,"type","buttonClick"],[1,"opacity-70"]],template:function(r,o){1&r&&(Ze(0,MK,10,7,"div",0),Ze(1,yK,5,2,"gn-ui-button",1)),2&r&&(xt("ngIf",!o.isMissing),St(1),xt("ngIf",o.isMissing))},dependencies:[ba,Os,OV,$V,Ru,Sm,H9,g9,y9,Ba],styles:["input[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%], select[_ngcontent-%COMP%]{width:100%;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));padding:1.3em .5em .3em}input[readonly][_ngcontent-%COMP%]{background-color:var(--color-gray-50);color:var(--color-gray-700)}"],changeDetection:0})}return e})();const zK=["*"];let Fm=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275cmp=U1({type:e,selectors:[["gn-ui-record-field-group"]],inputs:{label:"label"},ngContentSelectors:zK,decls:4,vars:1,consts:[[1,"outer","p-[0.25em]","m-2"],[1,"p-[0.5em]","pb-0","uppercase","font-medium","text-gray-900","text-center"]],template:function(r,o){1&r&&(Es(),yt(0,"div",0)(1,"div",1),xr(2),Vt(),g2(3),Vt()),2&r&&(St(2),wo(" ",o.label," "))},styles:['.outer[_ngcontent-%COMP%]{position:relative;background:rgba(235 235 235 / 50%)}.outer[_ngcontent-%COMP%]:before{position:absolute;top:0;bottom:0;left:0;width:10px;border-radius:.125rem;border-width:1px;border-right-width:0px;border-color:var(--color-gray-400);content:""}.outer[_ngcontent-%COMP%]:after{position:absolute;top:0;bottom:0;right:0;width:10px;border-radius:.125rem;border-width:1px;border-left-width:0px;border-color:var(--color-gray-400);content:""}'],changeDetection:0})}return e})();const Om=Pt(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function z9(e,n){const t="object"==typeof n;return new Promise((r,o)=>{const s=new Jt({next:i=>{r(i),s.unsubscribe()},error:o,complete:()=>{t?r(n.defaultValue):o(new Om)}});e.subscribe(s)})}const QV=new Me("Ng Icon Config"),JV={size:"1em"};function s5(e){return{provide:QV,useValue:{...JV,...e}}}const tS=new Me("Ng Icon Loader Token"),eS=new Me("Ng Icon Cache Token");function l5(e){return[{provide:b9,useFactory:n=>({...n?.reduce((t,r)=>({...t,...r}),{}),...e}),deps:[[b9,new a0,new c0]],multi:!0}]}const b9=new Me("Icons Token");let Ea=(()=>{class e{constructor(){this.config=function bK(){return g1(QV,{optional:!0})??JV}(),this.icons=function AK(){return g1(b9,{optional:!0})??[]}(),this.loader=function VK(){return g1(tS,{optional:!0})}(),this.cache=function SK(){return g1(eS,{optional:!0})}(),this.injector=g1(v2),this.elementRef=g1(Br),this._size=this.config.size,this.color=this.config.color}set name(t){this.setIcon(t)}set size(t){this._size=function TK(e){return null==e?"":/^\d+$/.test(e)?`${e}px`:e}(t)}get size(){return this._size}setIcon(t){var r=this;return Bi(function*(){const o=function BK(e){return e.replace(/([^a-zA-Z0-9])+(.)?/g,(n,t,r)=>r?r.toUpperCase():"").replace(/[^a-zA-Z\d]/g,"").replace(/^([A-Z])/,n=>n.toLowerCase())}(t);for(const s of[...r.icons].reverse())if(s[o])return void(r.elementRef.nativeElement.innerHTML=s[o]);if(r.cache?.has(t))r.elementRef.nativeElement.innerHTML=r.cache.get(t);else{if(r.loader){const s=yield r.requestIconFromLoader(t);if(null!==s)return r.cache?.set(t,s),void(r.elementRef.nativeElement.innerHTML=s)}console.warn(`No icon named ${t} was found. You may need to import it using the withIcons function.`)}})()}requestIconFromLoader(t){var r=this;return new Promise(o=>{!function oB(e,n){e instanceof y1&&e.assertNotDestroyed();const r=O2(e),o=Xo(void 0);try{return n()}finally{O2(r),Xo(o)}}(this.injector,Bi(function*(){const s=yield function DK(e){return"string"==typeof e?Promise.resolve(e):H0(e)?z9(e):e}(r.loader(t));o(s)}))})}static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275cmp=U1({type:e,selectors:[["ng-icon"]],hostVars:6,hostBindings:function(r,o){2&r&&bi("--ng-icon__size",o.size)("--ng-icon__stroke-width",o.strokeWidth)("color",o.color)},inputs:{name:"name",size:"size",strokeWidth:"strokeWidth",color:"color"},standalone:!0,features:[cl],decls:0,vars:0,template:function(r,o){},styles:["[_nghost-%COMP%]{display:inline-block;width:var(--ng-icon__size);height:var(--ng-icon__size)}"],changeDetection:0})}return e})(),EK=(()=>{class e{constructor(t){if(0===Object.keys(t).length)throw new Error("No icons have been provided. Ensure to include some icons by importing them using NgIconsModule.withIcons({ ... }).")}static withIcons(t){return{ngModule:e,providers:l5(t)}}static#t=this.\u0275fac=function(r){return new(r||e)(gt(b9))};static#e=this.\u0275mod=K1({type:e});static#r=this.\u0275inj=$1({})}return e})();const jK=function(e,n){return{getValue:e,setValue:n}};function PK(e,n){if(1&e){const t=V1();yt(0,"div",5),u0(1,6),yt(2,"gn-ui-button",7),ie("buttonClick",function(){const s=ct(t).index;return Bt(Zt().removeItem(s))}),rr(3,"ng-icon",8),Vt()()}if(2&e){const t=n.index,r=Zt();St(1),xt("ngTemplateOutlet",r.itemTemplate)("ngTemplateOutletContext",$3(3,jK,r.valueGetterByIndex(t),r.valueSetterByIndex(t))),St(1),xt("type","outline")}}let IK=(()=>{class e{constructor(){this.fieldValueChange=new _e,this.confirm=new _e}addItem(){this.fieldValue=[...this.fieldValue,this.defaultItem],this.fieldValueChange.emit(this.fieldValue),this.confirm.emit()}removeItem(t){this.fieldValue=this.fieldValue.filter((r,o)=>o!==t),this.fieldValueChange.emit(this.fieldValue),this.confirm.emit()}valueGetterByIndex(t){return()=>this.fieldValue[t]}valueSetterByIndex(t){return(r,o,s)=>{this.fieldValue[t]=o&&s?{...this.fieldValue[t],[o]:{...this.fieldValue[t][o],[s]:r}}:o?{...this.fieldValue[t],[o]:r}:r}}trackBy(t){return t}static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275cmp=U1({type:e,selectors:[["gn-ui-record-field-array"]],inputs:{label:"label",fieldValue:"fieldValue",itemTemplate:"itemTemplate",defaultItem:"defaultItem"},outputs:{fieldValueChange:"fieldValueChange",confirm:"confirm"},decls:6,vars:4,consts:[[3,"label"],[1,"text-[0.9em]"],["class","relative pr-[2.8em]",4,"ngFor","ngForOf","ngForTrackBy"],[1,"p-2"],["extraClass","py-[0.5em] px-[1em]",3,"type","buttonClick"],[1,"relative","pr-[2.8em]"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["extraClass","!p-[0.5em]","title","Delete this item",1,"absolute","top-0","right-1",3,"type","buttonClick"],["name","matDeleteForeverSharp"]],template:function(r,o){1&r&&(yt(0,"gn-ui-record-field-group",0)(1,"div",1),Ze(2,PK,4,6,"div",2),yt(3,"div",3)(4,"gn-ui-button",4),ie("buttonClick",function(){return o.addItem()}),xr(5," Add new item... "),Vt()()()()),2&r&&(xt("label",o.label),St(2),xt("ngForOf",o.fieldValue)("ngForTrackBy",o.trackBy),St(2),xt("type","primary"))},dependencies:[ba,O4,Ba,Ea,Fm],styles:['.outer[_ngcontent-%COMP%]{position:relative;background:rgba(235 235 235 / 50%)}.outer[_ngcontent-%COMP%]:before{position:absolute;top:0;bottom:0;left:0;width:10px;border-radius:.125rem;border-width:1px;border-right-width:0px;border-color:var(--color-gray-400);content:""}'],changeDetection:0})}return e})();function RK(e,n){if(1&e){const t=V1();yt(0,"gn-ui-button",7),ie("buttonClick",function(){return ct(t),Bt(Zt(2).deleteObject())}),rr(1,"ng-icon",8),Vt()}2&e&&xt("type","outline")}const FK=function(e,n){return{getValue:e,setValue:n}};function OK(e,n){if(1&e&&(yt(0,"div",4),u0(1,5),Ze(2,RK,2,1,"gn-ui-button",6),Vt()),2&e){const t=Zt();St(1),xt("ngTemplateOutlet",t.itemTemplate)("ngTemplateOutletContext",$3(3,FK,t.valueGetter(),t.valueSetter())),St(1),xt("ngIf",t.optional)}}function NK(e,n){if(1&e){const t=V1();yt(0,"div",9)(1,"gn-ui-button",10),ie("buttonClick",function(){return ct(t),Bt(Zt().createObject())}),xr(2," Create... "),Vt()()}2&e&&(St(1),xt("type","primary"))}let $K=(()=>{class e{constructor(){this.fieldValueChange=new _e,this.confirm=new _e}createObject(){this.fieldValue={},this.fieldValueChange.emit(this.fieldValue),this.confirm.emit()}deleteObject(){this.fieldValue=void 0,this.fieldValueChange.emit(this.fieldValue),this.confirm.emit()}valueGetter(){return()=>this.fieldValue}valueSetter(){return(t,r)=>{r?this.fieldValue[r]=t:this.fieldValue=t}}static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275cmp=U1({type:e,selectors:[["gn-ui-record-field-object"]],inputs:{label:"label",fieldValue:"fieldValue",itemTemplate:"itemTemplate",defaultItem:"defaultItem",optional:"optional"},outputs:{fieldValueChange:"fieldValueChange",confirm:"confirm"},decls:4,vars:3,consts:[[3,"label"],[1,"text-[0.9em]"],["class","relative pr-[2.8em]",4,"ngIf"],["class","p-2",4,"ngIf"],[1,"relative","pr-[2.8em]"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","absolute top-0 right-1","extraClass","!p-[0.5em]","title","Delete this item",3,"type","buttonClick",4,"ngIf"],["extraClass","!p-[0.5em]","title","Delete this item",1,"absolute","top-0","right-1",3,"type","buttonClick"],["name","matDeleteForeverSharp"],[1,"p-2"],["extraClass","py-[0.5em] px-[1em]",3,"type","buttonClick"]],template:function(r,o){1&r&&(yt(0,"gn-ui-record-field-group",0)(1,"div",1),Ze(2,OK,3,6,"div",2),Ze(3,NK,3,1,"div",3),Vt()()),2&r&&(xt("label",o.label),St(2),xt("ngIf",o.fieldValue),St(1),xt("ngIf",!o.fieldValue))},dependencies:[Os,O4,Ba,Ea,Fm],styles:['.outer[_ngcontent-%COMP%]{position:relative;background:rgba(235 235 235 / 50%)}.outer[_ngcontent-%COMP%]:before{position:absolute;top:0;bottom:0;left:0;width:10px;border-radius:.125rem;border-width:1px;border-right-width:0px;border-color:var(--color-gray-400);content:""}.outer[_ngcontent-%COMP%]:after{position:absolute;top:0;bottom:0;right:0;width:10px;border-radius:.125rem;border-width:1px;border-left-width:0px;border-color:var(--color-gray-400);content:""}'],changeDetection:0})}return e})();function UK(e,n){if(1&e){const t=V1();yt(0,"gn-ui-button",27),ie("buttonClick",function(){return ct(t),Bt(Zt().addOwnerOrg())}),yt(1,"span",28),xr(2,"Add a owner organization to this record"),Vt()()}2&e&&xt("type","outline")}function ZK(e,n){if(1&e){const t=V1();xp(0),yt(1,"gn-ui-record-field-simple",29),ie("fieldValueChange",function(o){return ct(t),Bt(Zt().record.ownerOrganization.name=o)})("confirm",function(){return ct(t),Bt(Zt().emitChangedRecord())}),Vt(),yt(2,"gn-ui-record-field-simple",30),ie("fieldValueChange",function(o){return ct(t),Bt(Zt().record.ownerOrganization.description=o)})("confirm",function(){return ct(t),Bt(Zt().emitChangedRecord())}),Vt(),yt(3,"gn-ui-record-field-simple",31),ie("fieldValueChange",function(o){return ct(t),Bt(Zt().record.ownerOrganization.website=o)})("confirm",function(){return ct(t),Bt(Zt().emitChangedRecord())}),Vt(),yt(4,"gn-ui-record-field-simple",32),ie("fieldValueChange",function(o){return ct(t),Bt(Zt().record.ownerOrganization.logoUrl=o)})("confirm",function(){return ct(t),Bt(Zt().emitChangedRecord())}),Vt(),Mp()}if(2&e){const t=Zt();St(1),xt("fieldValue",t.record.ownerOrganization.name),St(1),xt("fieldValue",t.record.ownerOrganization.description),St(1),xt("fieldValue",t.record.ownerOrganization.website)("type","url"),St(1),xt("fieldValue",t.record.ownerOrganization.logoUrl)("type","url")}}function qK(e,n){if(1&e){const t=V1();yt(0,"gn-ui-record-field-group",40)(1,"gn-ui-record-field-simple",29),ie("fieldValueChange",function(o){return ct(t),Bt((0,Zt().setValue)(o,"organization","name"))})("confirm",function(){return ct(t),Bt(Zt(2).emitChangedRecord())}),Vt(),yt(2,"gn-ui-record-field-simple",30),ie("fieldValueChange",function(o){return ct(t),Bt((0,Zt().setValue)(o,"organization","description"))})("confirm",function(){return ct(t),Bt(Zt(2).emitChangedRecord())}),Vt(),yt(3,"gn-ui-record-field-simple",31),ie("fieldValueChange",function(o){return ct(t),Bt((0,Zt().setValue)(o,"organization","website"))})("confirm",function(){return ct(t),Bt(Zt(2).emitChangedRecord())}),Vt(),yt(4,"gn-ui-record-field-simple",32),ie("fieldValueChange",function(o){return ct(t),Bt((0,Zt().setValue)(o,"organization","logoUrl"))})("confirm",function(){return ct(t),Bt(Zt(2).emitChangedRecord())}),Vt()()}if(2&e){const t=Zt().getValue;St(1),xt("fieldValue",t().organization.name),St(1),xt("fieldValue",t().organization.description),St(1),xt("fieldValue",t().organization.website)("type","url"),St(1),xt("fieldValue",t().organization.logoUrl)("type","url")}}function WK(e,n){if(1&e){const t=V1();yt(0,"gn-ui-record-field-group",33)(1,"gn-ui-record-field-simple",34),ie("fieldValueChange",function(o){return Bt((0,ct(t).setValue)(o,"firstName"))})("confirm",function(){return ct(t),Bt(Zt().emitChangedRecord())}),Vt(),yt(2,"gn-ui-record-field-simple",35),ie("fieldValueChange",function(o){return Bt((0,ct(t).setValue)(o,"lastName"))})("confirm",function(){return ct(t),Bt(Zt().emitChangedRecord())}),Vt(),yt(3,"gn-ui-record-field-simple",36),ie("fieldValueChange",function(o){return Bt((0,ct(t).setValue)(o,"email"))})("confirm",function(){return ct(t),Bt(Zt().emitChangedRecord())}),Vt(),yt(4,"gn-ui-record-field-simple",37),ie("fieldValueChange",function(o){return Bt((0,ct(t).setValue)(o,"role"))})("confirm",function(){return ct(t),Bt(Zt().emitChangedRecord())}),Vt(),yt(5,"gn-ui-record-field-simple",38),ie("fieldValueChange",function(o){return Bt((0,ct(t).setValue)(o,"position"))})("confirm",function(){return ct(t),Bt(Zt().emitChangedRecord())}),Vt(),Ze(6,qK,5,6,"gn-ui-record-field-group",39),Vt()}if(2&e){const t=n.getValue,r=Zt();St(1),xt("fieldValue",t().firstName),St(1),xt("fieldValue",t().lastName),St(1),xt("fieldValue",t().email),St(1),xt("fieldValue",t().role)("options",r.roleOptions),St(1),xt("fieldValue",t().position),St(1),xt("ngIf",t().organization)}}function GK(e,n){if(1&e){const t=V1();yt(0,"gn-ui-record-field-simple",41),ie("fieldValueChange",function(o){return Bt((0,ct(t).setValue)(o))})("confirm",function(){return ct(t),Bt(Zt().emitChangedRecord())}),Vt()}2&e&&xt("fieldValue",(0,n.getValue)())}const YK=function(){return["other","theme","place","temporal"]};function XK(e,n){if(1&e){const t=V1();yt(0,"gn-ui-record-field-group")(1,"gn-ui-record-field-simple",42),ie("fieldValueChange",function(o){return Bt((0,ct(t).setValue)(o,"label"))})("confirm",function(){return ct(t),Bt(Zt().emitChangedRecord())}),Vt(),yt(2,"gn-ui-record-field-simple",43),ie("fieldValueChange",function(o){return Bt((0,ct(t).setValue)(o,"type"))})("confirm",function(){return ct(t),Bt(Zt().emitChangedRecord())}),Vt(),yt(3,"gn-ui-record-field-object",44),ie("fieldValueChange",function(o){return Bt((0,ct(t).setValue)(o,"thesaurus"))})("confirm",function(){return ct(t),Bt(Zt().emitChangedRecord())}),Vt()()}if(2&e){const t=n.getValue;Zt();const r=Jo(35);St(1),xt("fieldValue",t().label)("type","text"),St(1),xt("options",Is(7,YK))("fieldValue",t().type),St(1),xt("optional",!0)("itemTemplate",r)("fieldValue",t().thesaurus)}}function KK(e,n){if(1&e){const t=V1();yt(0,"gn-ui-record-field-simple",45),ie("fieldValueChange",function(o){return Bt((0,ct(t).setValue)(o,"id"))})("confirm",function(){return ct(t),Bt(Zt().emitChangedRecord())}),Vt(),yt(1,"gn-ui-record-field-simple",46),ie("fieldValueChange",function(o){return Bt((0,ct(t).setValue)(o,"name"))})("confirm",function(){return ct(t),Bt(Zt().emitChangedRecord())}),Vt(),yt(2,"gn-ui-record-field-simple",47),ie("fieldValueChange",function(o){return Bt((0,ct(t).setValue)(o,"url"))})("confirm",function(){return ct(t),Bt(Zt().emitChangedRecord())}),Vt()}if(2&e){const t=n.getValue;xt("fieldValue",t().id)("type","text"),St(1),xt("fieldValue",t().name)("type","text"),St(1),xt("fieldValue",t().url)("type","url")}}function QK(e,n){if(1&e){const t=V1();yt(0,"gn-ui-record-field-group")(1,"gn-ui-record-field-simple",48),ie("fieldValueChange",function(o){return Bt((0,ct(t).setValue)(o,"text"))})("confirm",function(){return ct(t),Bt(Zt().emitChangedRecord())}),Vt(),yt(2,"gn-ui-record-field-simple",47),ie("fieldValueChange",function(o){return Bt((0,ct(t).setValue)(o,"url"))})("confirm",function(){return ct(t),Bt(Zt().emitChangedRecord())}),Vt()()}if(2&e){const t=n.getValue;St(1),xt("fieldValue",t().text)("type","rich"),St(1),xt("fieldValue",t().url)("type","url")}}function JK(e,n){if(1&e){const t=V1();yt(0,"gn-ui-record-field-simple",64),ie("fieldValueChange",function(o){return ct(t),Bt((0,Zt().setValue)(o,"url"))})("confirm",function(){return ct(t),Bt(Zt(3).emitChangedRecord())}),Vt()}if(2&e){const t=Zt().getValue;xt("type","url")("fieldValue",t().url)}}function tQ(e,n){if(1&e){const t=V1();yt(0,"gn-ui-record-field-simple",65),ie("fieldValueChange",function(o){return ct(t),Bt((0,Zt().setValue)(o,"accessServiceProtocol"))})("confirm",function(){return ct(t),Bt(Zt(3).emitChangedRecord())}),Vt()}2&e&&xt("fieldValue",(0,Zt().getValue)().accessServiceProtocol)}function eQ(e,n){if(1&e){const t=V1();yt(0,"gn-ui-record-field-simple",66),ie("fieldValueChange",function(o){return ct(t),Bt((0,Zt().setValue)(o,"identifierInService"))})("confirm",function(){return ct(t),Bt(Zt(3).emitChangedRecord())}),Vt()}2&e&&xt("fieldValue",(0,Zt().getValue)().identifierInService)}function rQ(e,n){if(1&e){const t=V1();yt(0,"gn-ui-record-field-simple",67),ie("fieldValueChange",function(o){return ct(t),Bt((0,Zt().setValue)(o,"url"))})("confirm",function(){return ct(t),Bt(Zt(3).emitChangedRecord())}),Vt()}if(2&e){const t=Zt().getValue;xt("type","url")("fieldValue",t().url)}}function nQ(e,n){if(1&e){const t=V1();yt(0,"gn-ui-record-field-simple",68),ie("fieldValueChange",function(o){return ct(t),Bt((0,Zt().setValue)(o,"mimeType"))})("confirm",function(){return ct(t),Bt(Zt(3).emitChangedRecord())}),Vt()}2&e&&xt("fieldValue",(0,Zt().getValue)().mimeType)}function oQ(e,n){if(1&e){const t=V1();yt(0,"gn-ui-record-field-simple",69),ie("fieldValueChange",function(o){return ct(t),Bt((0,Zt().setValue)(o,"sizeBytes"))})("confirm",function(){return ct(t),Bt(Zt(3).emitChangedRecord())}),Vt()}if(2&e){const t=Zt().getValue;xt("type","number")("fieldValue",t().sizeBytes)}}function sQ(e,n){if(1&e){const t=V1();yt(0,"gn-ui-record-field-simple",70),ie("fieldValueChange",function(o){return ct(t),Bt((0,Zt().setValue)(o,"url"))})("confirm",function(){return ct(t),Bt(Zt(3).emitChangedRecord())}),Vt()}if(2&e){const t=Zt().getValue;xt("type","url")("fieldValue",t().url)}}const iQ=function(){return["service","download","link"]};function lQ(e,n){if(1&e){const t=V1();yt(0,"gn-ui-record-field-group",55)(1,"gn-ui-record-field-simple",43),ie("fieldValueChange",function(o){return Bt((0,ct(t).setValue)(Zt(2).getOnlineResourceForType(o)))})("confirm",function(){return ct(t),Bt(Zt(2).emitChangedRecord())}),Vt(),Ze(2,JK,1,2,"gn-ui-record-field-simple",56),Ze(3,tQ,1,1,"gn-ui-record-field-simple",57),Ze(4,eQ,1,1,"gn-ui-record-field-simple",58),Ze(5,rQ,1,2,"gn-ui-record-field-simple",59),Ze(6,nQ,1,1,"gn-ui-record-field-simple",60),Ze(7,oQ,1,2,"gn-ui-record-field-simple",61),Ze(8,sQ,1,2,"gn-ui-record-field-simple",62),yt(9,"gn-ui-record-field-simple",29),ie("fieldValueChange",function(o){return Bt((0,ct(t).setValue)(o,"name"))})("confirm",function(){return ct(t),Bt(Zt(2).emitChangedRecord())}),Vt(),yt(10,"gn-ui-record-field-simple",63),ie("fieldValueChange",function(o){return Bt((0,ct(t).setValue)(o,"description"))})("confirm",function(){return ct(t),Bt(Zt(2).emitChangedRecord())}),Vt()()}if(2&e){const t=n.getValue;St(1),xt("options",Is(12,iQ))("fieldValue",t().type),St(1),xt("ngIf","service"===t().type),St(1),xt("ngIf","service"===t().type),St(1),xt("ngIf","service"===t().type),St(1),xt("ngIf","download"===t().type),St(1),xt("ngIf","download"===t().type),St(1),xt("ngIf","download"===t().type),St(1),xt("ngIf","link"===t().type),St(1),xt("fieldValue",t().name),St(1),xt("type","rich")("fieldValue",t().description)}}const aQ=function(){return["grid","vector","tin","table","point"]};function cQ(e,n){if(1&e){const t=V1();yt(0,"div")(1,"p",49),xr(2," Dataset record specific fields "),Vt(),yt(3,"p")(4,"gn-ui-record-field-simple",50),ie("fieldValueChange",function(o){return ct(t),Bt(Zt().record.status=o)})("confirm",function(){return ct(t),Bt(Zt().emitChangedRecord())}),Vt()(),yt(5,"p")(6,"gn-ui-record-field-simple",51),ie("fieldValueChange",function(o){return ct(t),Bt(Zt().record.spatialRepresentation=o)})("confirm",function(){return ct(t),Bt(Zt().emitChangedRecord())}),Vt()(),yt(7,"p")(8,"gn-ui-record-field-simple",52),ie("fieldValueChange",function(o){return ct(t),Bt(Zt().record.lineage=o)})("confirm",function(){return ct(t),Bt(Zt().emitChangedRecord())}),Vt()(),yt(9,"p")(10,"gn-ui-record-field-array",53),ie("fieldValueChange",function(o){return ct(t),Bt(Zt().record.distributions=o)})("confirm",function(){return ct(t),Bt(Zt().emitChangedRecord())}),Ze(11,lQ,11,13,"ng-template",null,54,hl),Vt()()()}if(2&e){const t=Jo(12),r=Zt();St(4),xt("fieldValue",r.record.status)("options",r.statusOptions),St(2),xt("fieldValue",r.record.spatialRepresentation)("options",Is(9,aQ)),St(2),xt("fieldValue",r.record.lineage)("type","rich"),St(2),xt("fieldValue",r.record.distributions)("itemTemplate",t)("defaultItem",r.getOnlineResourceForType("download"))}}function hQ(e,n){if(1&e){const t=V1();yt(0,"gn-ui-record-field-simple",77),ie("fieldValueChange",function(o){return ct(t),Bt((0,Zt().setValue)(o,"endpointUrl"))})("confirm",function(){return ct(t),Bt(Zt(3).emitChangedRecord())}),Vt()}if(2&e){const t=Zt().getValue;xt("type","url")("fieldValue",t().endpointUrl)}}function uQ(e,n){if(1&e){const t=V1();yt(0,"gn-ui-record-field-simple",78),ie("fieldValueChange",function(o){return ct(t),Bt((0,Zt().setValue)(o,"protocol"))})("confirm",function(){return ct(t),Bt(Zt(3).emitChangedRecord())}),Vt()}2&e&&xt("fieldValue",(0,Zt().getValue)().protocol)}function dQ(e,n){if(1&e){const t=V1();yt(0,"gn-ui-record-field-simple",29),ie("fieldValueChange",function(o){return ct(t),Bt((0,Zt().setValue)(o,"name"))})("confirm",function(){return ct(t),Bt(Zt(3).emitChangedRecord())}),Vt()}2&e&&xt("fieldValue",(0,Zt().getValue)().name)}const pQ=function(){return["endpoint","link"]};function vQ(e,n){if(1&e){const t=V1();yt(0,"gn-ui-record-field-group",73)(1,"gn-ui-record-field-simple",43),ie("fieldValueChange",function(o){return Bt((0,ct(t).setValue)(Zt(2).getOnlineResourceForType(o)))})("confirm",function(){return ct(t),Bt(Zt(2).emitChangedRecord())}),Vt(),Ze(2,hQ,1,2,"gn-ui-record-field-simple",74),Ze(3,uQ,1,1,"gn-ui-record-field-simple",75),Ze(4,dQ,1,1,"gn-ui-record-field-simple",76),yt(5,"gn-ui-record-field-simple",63),ie("fieldValueChange",function(o){return Bt((0,ct(t).setValue)(o,"description"))})("confirm",function(){return ct(t),Bt(Zt(2).emitChangedRecord())}),Vt()()}if(2&e){const t=n.getValue;St(1),xt("options",Is(7,pQ))("fieldValue",t().type),St(1),xt("ngIf","endpoint"===t().type),St(1),xt("ngIf","endpoint"===t().type),St(1),xt("ngIf","link"===t().type),St(1),xt("type","rich")("fieldValue",t().description)}}const gQ=function(){return{endpointUrl:"",protocol:"OGC:WMS"}};function fQ(e,n){if(1&e){const t=V1();yt(0,"div")(1,"p",49),xr(2," Service record specific fields "),Vt(),yt(3,"p")(4,"gn-ui-record-field-array",71),ie("fieldValueChange",function(o){return ct(t),Bt(Zt().record.onlineResources=o)})("confirm",function(){return ct(t),Bt(Zt().emitChangedRecord())}),Ze(5,vQ,6,8,"ng-template",null,72,hl),Vt()()()}if(2&e){const t=Jo(6),r=Zt();St(4),xt("fieldValue",r.record.onlineResources)("itemTemplate",t)("defaultItem",Is(3,gQ))}}const mQ=function(){return["dataset","service"]},rS=function(){return{name:"org"}},nS=function(e){return{firstName:"first",lastName:"last",email:"email@domain.com",organization:e,role:"unspecified"}},wQ=function(){return{label:"change me!",type:"other"}},L9=function(){return{text:"change me!"}};let CQ=(()=>{class e{get isDatasetRecord(){return"dataset"===this.record.kind}get isServiceRecord(){return"service"===this.record.kind}constructor(){this.recordChanged=new _e,this.statusOptions=dX,this.roleOptions=uX,this.switchToRecordKind("dataset")}ngAfterViewInit(){setTimeout(()=>{this.recordChanged.emit(this.record)},100)}emitChangedRecord(){this.recordChanged.emit(this.record)}getOnlineResourceForType(t){switch(t){case"download":case"link":default:return{type:t,url:new URL("",window.location.toString())};case"service":return{type:t,url:new URL("",window.location.toString()),accessServiceProtocol:"other"};case"endpoint":return{type:t,endpointUrl:new URL("",window.location.toString()),protocol:"other"}}}switchToRecordKind(t){const r=!!this.record,o={uniqueIdentifier:r?this.record.uniqueIdentifier:"0000-0000-0000-0000",title:r?this.record.title:"My Record",abstract:r?this.record.abstract:"",recordUpdated:r?this.record.recordUpdated:new Date,ownerOrganization:r?this.record.ownerOrganization:{name:"My Organization"},contacts:r?this.record.contacts:[],contactsForResource:r?this.record.contactsForResource:[],licenses:r?[...this.record.licenses]:[],legalConstraints:r?[...this.record.legalConstraints]:[],securityConstraints:r?[...this.record.securityConstraints]:[],otherConstraints:r?[...this.record.otherConstraints]:[],keywords:r?this.record.keywords:[],topics:r?this.record.topics:[],onlineResources:[],otherLanguages:[],defaultLanguage:"en",overviews:[]};this.record="dataset"===t?{...o,kind:"dataset",status:"under_development",updateFrequency:"unknown",lineage:"",spatialExtents:[],temporalExtents:[]}:{...o,kind:"service"},this.recordChanged.emit(this.record)}addOwnerOrg(){this.record={...this.record,ownerOrganization:{name:"My Organization"}},this.recordChanged.emit(this.record)}static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275cmp=U1({type:e,selectors:[["gn-ui-record-form"]],inputs:{record:"record"},outputs:{recordChanged:"recordChanged"},decls:48,vars:58,consts:[["label","Unique identifier",3,"fieldValue","fieldValueChange","confirm"],["label","Title",3,"fieldValue","fieldValueChange","confirm"],["label","Abstract",3,"fieldValue","type","fieldValueChange","confirm"],["label","Kind",3,"options","fieldValue","fieldValueChange"],["label","Owner Organization"],["extraClass","m-2 py-[0.5em] px-[1em]",3,"type","buttonClick",4,"ngIf"],[4,"ngIf"],["label","Contacts",3,"fieldValue","itemTemplate","defaultItem","fieldValueChange","confirm"],["label","Contacts for resource",3,"fieldValue","itemTemplate","defaultItem","fieldValueChange","confirm"],["contactTpl",""],[1,"grid","grid-cols-3"],["label","Record created on",3,"fieldValue","type","fieldValueChange","confirm"],["label","Record updated on",3,"fieldValue","type","fieldValueChange","confirm"],["label","Record published on",3,"fieldValue","type","fieldValueChange","confirm"],["label","Resource created on",3,"fieldValue","type","fieldValueChange","confirm"],["label","Resource updated on",3,"fieldValue","type","fieldValueChange","confirm"],["label","Resource published on",3,"fieldValue","type","fieldValueChange","confirm"],["label","Topics",3,"fieldValue","itemTemplate","defaultItem","fieldValueChange","confirm"],["topicTpl",""],["label","Keywords",3,"fieldValue","itemTemplate","defaultItem","fieldValueChange","confirm"],["keywordTpl",""],["thesaurusTpl",""],["constraintTpl",""],["label","Licenses",3,"fieldValue","itemTemplate","defaultItem","fieldValueChange","confirm"],["label","Legal constraints",3,"fieldValue","itemTemplate","defaultItem","fieldValueChange","confirm"],["label","Security constraints",3,"fieldValue","itemTemplate","defaultItem","fieldValueChange","confirm"],["label","Other constraints",3,"fieldValue","itemTemplate","defaultItem","fieldValueChange","confirm"],["extraClass","m-2 py-[0.5em] px-[1em]",3,"type","buttonClick"],[1,"opacity-70"],["label","Name",3,"fieldValue","fieldValueChange","confirm"],["label","Description",3,"fieldValue","fieldValueChange","confirm"],["label","Website",3,"fieldValue","type","fieldValueChange","confirm"],["label","Logo URL",3,"fieldValue","type","fieldValueChange","confirm"],["label","Contact"],["label","First Name",3,"fieldValue","fieldValueChange","confirm"],["label","Last Name",3,"fieldValue","fieldValueChange","confirm"],["label","Email",3,"fieldValue","fieldValueChange","confirm"],["label","Role",3,"fieldValue","options","fieldValueChange","confirm"],["label","Position",3,"fieldValue","fieldValueChange","confirm"],["label","Organisation",4,"ngIf"],["label","Organisation"],["label","Topic",3,"fieldValue","fieldValueChange","confirm"],["label","Label",3,"fieldValue","type","fieldValueChange","confirm"],["label","Type",3,"options","fieldValue","fieldValueChange","confirm"],["label","Thesaurus",3,"optional","itemTemplate","fieldValue","fieldValueChange","confirm"],["label","Identifier",3,"fieldValue","type","fieldValueChange","confirm"],["label","Name",3,"fieldValue","type","fieldValueChange","confirm"],["label","URL",3,"fieldValue","type","fieldValueChange","confirm"],["label","Text",3,"fieldValue","type","fieldValueChange","confirm"],[1,"text-xl","font-bold","font-title","mt-8","mb-0","m-2"],["label","Status",3,"fieldValue","options","fieldValueChange","confirm"],["label","Spatial Representation Type",3,"fieldValue","options","fieldValueChange","confirm"],["label","Lineage",3,"fieldValue","type","fieldValueChange","confirm"],["label","Distributions",3,"fieldValue","itemTemplate","defaultItem","fieldValueChange","confirm"],["distributionTpl",""],["label","Distribution"],["label","Access Service URL",3,"type","fieldValue","fieldValueChange","confirm",4,"ngIf"],["label","Access Service Protocol",3,"fieldValue","fieldValueChange","confirm",4,"ngIf"],["label","Identifier In Service",3,"fieldValue","fieldValueChange","confirm",4,"ngIf"],["label","Download URL",3,"type","fieldValue","fieldValueChange","confirm",4,"ngIf"],["label","Mime Type",3,"fieldValue","fieldValueChange","confirm",4,"ngIf"],["label","Size In Bytes",3,"type","fieldValue","fieldValueChange","confirm",4,"ngIf"],["label","Link URL",3,"type","fieldValue","fieldValueChange","confirm",4,"ngIf"],["label","Description",3,"type","fieldValue","fieldValueChange","confirm"],["label","Access Service URL",3,"type","fieldValue","fieldValueChange","confirm"],["label","Access Service Protocol",3,"fieldValue","fieldValueChange","confirm"],["label","Identifier In Service",3,"fieldValue","fieldValueChange","confirm"],["label","Download URL",3,"type","fieldValue","fieldValueChange","confirm"],["label","Mime Type",3,"fieldValue","fieldValueChange","confirm"],["label","Size In Bytes",3,"type","fieldValue","fieldValueChange","confirm"],["label","Link URL",3,"type","fieldValue","fieldValueChange","confirm"],["label","Online Resources",3,"fieldValue","itemTemplate","defaultItem","fieldValueChange","confirm"],["endpointTpl",""],["label","Online Resource"],["label","Endpoint URL",3,"type","fieldValue","fieldValueChange","confirm",4,"ngIf"],["label","Protocol",3,"fieldValue","fieldValueChange","confirm",4,"ngIf"],["label","Name",3,"fieldValue","fieldValueChange","confirm",4,"ngIf"],["label","Endpoint URL",3,"type","fieldValue","fieldValueChange","confirm"],["label","Protocol",3,"fieldValue","fieldValueChange","confirm"]],template:function(r,o){if(1&r&&(yt(0,"p")(1,"gn-ui-record-field-simple",0),ie("fieldValueChange",function(i){return o.record.uniqueIdentifier=i})("confirm",function(){return o.emitChangedRecord()}),Vt()(),yt(2,"p")(3,"gn-ui-record-field-simple",1),ie("fieldValueChange",function(i){return o.record.title=i})("confirm",function(){return o.emitChangedRecord()}),Vt()(),yt(4,"p")(5,"gn-ui-record-field-simple",2),ie("fieldValueChange",function(i){return o.record.abstract=i})("confirm",function(){return o.emitChangedRecord()}),Vt()(),yt(6,"p")(7,"gn-ui-record-field-simple",3),ie("fieldValueChange",function(i){return o.switchToRecordKind(i)}),Vt()(),yt(8,"p")(9,"gn-ui-record-field-group",4),Ze(10,UK,3,1,"gn-ui-button",5),Ze(11,ZK,5,6,"ng-container",6),Vt()(),yt(12,"p")(13,"gn-ui-record-field-array",7),ie("fieldValueChange",function(i){return o.record.contacts=i})("confirm",function(){return o.emitChangedRecord()}),Vt()(),yt(14,"p")(15,"gn-ui-record-field-array",8),ie("fieldValueChange",function(i){return o.record.contactsForResource=i})("confirm",function(){return o.emitChangedRecord()}),Vt()(),Ze(16,WK,7,7,"ng-template",null,9,hl),yt(18,"p",10)(19,"gn-ui-record-field-simple",11),ie("fieldValueChange",function(i){return o.record.recordCreated=i})("confirm",function(){return o.emitChangedRecord()}),Vt(),yt(20,"gn-ui-record-field-simple",12),ie("fieldValueChange",function(i){return o.record.recordUpdated=i})("confirm",function(){return o.emitChangedRecord()}),Vt(),yt(21,"gn-ui-record-field-simple",13),ie("fieldValueChange",function(i){return o.record.recordPublished=i})("confirm",function(){return o.emitChangedRecord()}),Vt()(),yt(22,"p",10)(23,"gn-ui-record-field-simple",14),ie("fieldValueChange",function(i){return o.record.resourceCreated=i})("confirm",function(){return o.emitChangedRecord()}),Vt(),yt(24,"gn-ui-record-field-simple",15),ie("fieldValueChange",function(i){return o.record.resourceUpdated=i})("confirm",function(){return o.emitChangedRecord()}),Vt(),yt(25,"gn-ui-record-field-simple",16),ie("fieldValueChange",function(i){return o.record.resourcePublished=i})("confirm",function(){return o.emitChangedRecord()}),Vt()(),yt(26,"p")(27,"gn-ui-record-field-array",17),ie("fieldValueChange",function(i){return o.record.topics=i})("confirm",function(){return o.emitChangedRecord()}),Ze(28,GK,1,1,"ng-template",null,18,hl),Vt()(),yt(30,"p")(31,"gn-ui-record-field-array",19),ie("fieldValueChange",function(i){return o.record.keywords=i})("confirm",function(){return o.emitChangedRecord()}),Vt()(),Ze(32,XK,4,8,"ng-template",null,20,hl),Ze(34,KK,3,6,"ng-template",null,21,hl),Ze(36,QK,3,4,"ng-template",null,22,hl),yt(38,"p")(39,"gn-ui-record-field-array",23),ie("fieldValueChange",function(i){return o.record.licenses=i})("confirm",function(){return o.emitChangedRecord()}),Vt()(),yt(40,"p")(41,"gn-ui-record-field-array",24),ie("fieldValueChange",function(i){return o.record.legalConstraints=i})("confirm",function(){return o.emitChangedRecord()}),Vt()(),yt(42,"p")(43,"gn-ui-record-field-array",25),ie("fieldValueChange",function(i){return o.record.securityConstraints=i})("confirm",function(){return o.emitChangedRecord()}),Vt()(),yt(44,"p")(45,"gn-ui-record-field-array",26),ie("fieldValueChange",function(i){return o.record.otherConstraints=i})("confirm",function(){return o.emitChangedRecord()}),Vt()(),Ze(46,cQ,13,10,"div",6),Ze(47,fQ,7,4,"div",6)),2&r){const s=Jo(17),i=Jo(29),l=Jo(33),a=Jo(37);St(1),xt("fieldValue",o.record.uniqueIdentifier),St(2),xt("fieldValue",o.record.title),St(2),xt("fieldValue",o.record.abstract)("type","rich"),St(2),xt("options",Is(46,mQ))("fieldValue",o.record.kind),St(3),xt("ngIf",!o.record.ownerOrganization),St(1),xt("ngIf",o.record.ownerOrganization),St(2),xt("fieldValue",o.record.contacts)("itemTemplate",s)("defaultItem",Tp(48,nS,Is(47,rS))),St(2),xt("fieldValue",o.record.contactsForResource)("itemTemplate",s)("defaultItem",Tp(51,nS,Is(50,rS))),St(4),xt("fieldValue",o.record.recordCreated)("type","date"),St(1),xt("fieldValue",o.record.recordUpdated)("type","date"),St(1),xt("fieldValue",o.record.recordPublished)("type","date"),St(2),xt("fieldValue",o.record.resourceCreated)("type","date"),St(1),xt("fieldValue",o.record.resourceUpdated)("type","date"),St(1),xt("fieldValue",o.record.resourcePublished)("type","date"),St(2),xt("fieldValue",o.record.topics)("itemTemplate",i)("defaultItem","change me!"),St(4),xt("fieldValue",o.record.keywords)("itemTemplate",l)("defaultItem",Is(53,wQ)),St(8),xt("fieldValue",o.record.licenses)("itemTemplate",a)("defaultItem",Is(54,L9)),St(2),xt("fieldValue",o.record.legalConstraints)("itemTemplate",a)("defaultItem",Is(55,L9)),St(2),xt("fieldValue",o.record.securityConstraints)("itemTemplate",a)("defaultItem",Is(56,L9)),St(2),xt("fieldValue",o.record.otherConstraints)("itemTemplate",a)("defaultItem",Is(57,L9)),St(1),xt("ngIf",o.isDatasetRecord),St(1),xt("ngIf",o.isServiceRecord)}},dependencies:[Os,Ba,HK,Fm,IK,$K],styles:["[_nghost-%COMP%]{font-size:14px}"]})}return e})();const kQ=["codeBlock"];let _Q=(()=>{class e{set recordXml(t){const o=window.hljs.highlight(t,{language:"xml"}).value;this.codeBlockEl.nativeElement.innerHTML=o}static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275cmp=U1({type:e,selectors:[["gn-ui-record-output-xml"]],viewQuery:function(r,o){if(1&r&&jn(kQ,5),2&r){let s;Kr(s=Qr())&&(o.codeBlockEl=s.first)}},inputs:{recordXml:"recordXml"},decls:2,vars:0,consts:[[1,"text-[14px]","hljs","overflow-auto","min-h-[80vh]","whitespace-pre-wrap"],["codeBlock",""]],template:function(r,o){1&r&&rr(0,"pre",0,1)}})}return e})();const xQ=["status"],MQ=["output"],yQ=["form"];function HQ(e,n){1&e&&(yt(0,"span"),xr(1,"(native)"),Vt())}const zQ=function(e){return{"font-bold":e}};function bQ(e,n){if(1&e){const t=V1();yt(0,"label",15)(1,"input",16),ie("change",function(o){return ct(t),Bt(Zt().onFormatChange(o.target.value))}),Vt(),xr(2),Ze(3,HQ,2,0,"span",17),Vt()}if(2&e){const t=n.$implicit,r=Zt();xt("ngClass",Tp(5,zQ,t.key===r.originalFormat)),St(1),xt("checked",t.key===r.currentFormat)("value",t.key),St(1),wo(" ",t.key," "),St(1),xt("ngIf",t.key===r.originalFormat)}}let LQ=(()=>{class e{constructor(){this.formats=c9}get originalFormat(){const t=this.statusComponent?.currentConverter;return WL(t)}onRecordChange(t){this.statusComponent.recordNative=t}onRecordOutputReceived(t){this.outputComponent.recordXml=t,this.currentFormat=this.originalFormat}onRecordNativeReceived(t){this.formComponent.record=t}onFileSelect(t){const r=t.target.files;if(0===r.length)return void console.warn("no file selected");const o=r[0],s=new FileReader;this.statusComponent.startReadingFile(),s.readAsText(o,"UTF-8"),s.onload=i=>{const l=i.target.result;this.statusComponent.referenceMetadata=l,this.statusComponent.currentMetadata=l},s.onerror=()=>this.statusComponent.errorReadingFile()}onFileUrlInput(t){!t||!t.startsWith("http://")&&!t.startsWith("https://")||(this.statusComponent.startLoadingFile(),fetch(t).then(r=>r.text()).then(r=>{this.statusComponent.referenceMetadata=r,this.statusComponent.currentMetadata=r}).catch(r=>this.statusComponent.errorLoadingFile(r.message)))}onFormatChange(t){this.statusComponent.changeFormat(t)}static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275cmp=U1({type:e,selectors:[["gn-ui-root"]],viewQuery:function(r,o){if(1&r&&(jn(xQ,5),jn(MQ,5),jn(yQ,5)),2&r){let s;Kr(s=Qr())&&(o.statusComponent=s.first),Kr(s=Qr())&&(o.outputComponent=s.first),Kr(s=Qr())&&(o.formComponent=s.first)}},decls:18,vars:3,consts:[[1,"grid","grid-cols-3","grid-rows-auto","auto-rows-min","h-full"],[1,"col-span-3","flex","flex-row","items-start"],[1,"text-[50px]","font-bold","font-title","my-6","mx-10"],[1,"whitespace-nowrap"],[1,"font-main","font-normal","text-gray-900","text-[16px]",3,"newMetadata","newRecordNative"],["status",""],[1,"grow","shrink-0","p-3","min-w-[50%]"],["type","file","accept",".xml, .rdf, application/xml, application/rdf+xml, .jsonld, application/ld+json, application/json, .ttl, text/turtle, .n3, text/n3, .nt, application/n-triples","placeholder","Upload a record from your computer",1,"mb-3","border","border-gray-500","rounded-sm","w-full","bg-white","p-2",3,"change"],["type","text","placeholder","...or enter a URL pointing to a metadata record",1,"mb-3","border","border-gray-500","rounded-sm","w-full","bg-white","p-2",3,"change"],[1,"w-full"],["class","mr-4",3,"ngClass",4,"ngFor","ngForOf"],[1,"overflow-auto",3,"recordChanged"],["form",""],[1,"col-span-2"],["output",""],[1,"mr-4",3,"ngClass"],["type","radio","name","format",3,"checked","value","change"],[4,"ngIf"]],template:function(r,o){1&r&&(yt(0,"div",0)(1,"header",1)(2,"div")(3,"h1",2)(4,"div",3),xr(5,"Simple metadata editor"),Vt(),yt(6,"gn-ui-status",4,5),ie("newMetadata",function(i){return o.onRecordOutputReceived(i)})("newRecordNative",function(i){return o.onRecordNativeReceived(i)}),Vt()()(),yt(8,"div",6)(9,"input",7),ie("change",function(i){return o.onFileSelect(i)}),Vt(),yt(10,"input",8),ie("change",function(i){return o.onFileUrlInput(i.target.value)}),Vt(),yt(11,"div",9),Ze(12,bQ,4,7,"label",10),ci(13,"keyvalue"),Vt()()(),yt(14,"gn-ui-record-form",11,12),ie("recordChanged",function(i){return o.onRecordChange(i)}),Vt(),rr(16,"gn-ui-record-output-xml",13,14),Vt()),2&r&&(St(12),xt("ngForOf",Li(13,1,o.formats)))},dependencies:[Di,ba,Os,CQ,_Q,hX,tH]})}return e})(),oS=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=K1({type:e}),e.\u0275inj=$1({imports:[[e2]]}),e})();function ja(e,n){return{type:7,name:e,definitions:n,options:{}}}function D2(e,n=null){return{type:4,styles:n,timings:e}}function Tr(e){return{type:6,styles:e,offset:null}}function ml(e,n,t){return{type:0,name:e,styles:n,options:t}}function a5(e){return{type:5,steps:e}}function rs(e,n,t=null){return{type:1,expr:e,animation:n,options:t}}function AQ(e,n){1&e&&(yt(0,"span",3),s0(),yt(1,"svg",4),rr(2,"path",5)(3,"g")(4,"g")(5,"g")(6,"g")(7,"g")(8,"g"),Vt()())}const Nm=["*"];function DQ(e,n){if(1&e){const t=V1();yt(0,"div",2),ie("click",function(){return ct(t),Bt(Zt().hide())}),Vt()}}const BQ=[[["ng2-dropdown-button"]],[["ng2-dropdown-menu"]]],TQ=["ng2-dropdown-button","ng2-dropdown-menu"];let EQ=(()=>{class e{constructor(t){this.element=t,this.onMenuToggled=new _e,this.showCaret=!0}toggleMenu(){this.onMenuToggled.emit(!0)}getPosition(){return this.element.nativeElement.getBoundingClientRect()}}return e.\u0275fac=function(t){return new(t||e)(vt(Br))},e.\u0275cmp=U1({type:e,selectors:[["ng2-dropdown-button"]],inputs:{showCaret:"showCaret"},outputs:{onMenuToggled:"onMenuToggled"},ngContentSelectors:Nm,decls:4,vars:1,consts:[["type","button","tabindex","0s",1,"ng2-dropdown-button",3,"click"],[1,"ng2-dropdown-button__label"],["class","ng2-dropdown-button__caret",4,"ngIf"],[1,"ng2-dropdown-button__caret"],["enable-background","new 0 0 32 32","height","16px","id","\u0421\u043b\u043e\u0439_1","version","1.1","viewBox","0 0 32 32","width","16px",0,"xml","space","preserve","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink"],["d","M24.285,11.284L16,19.571l-8.285-8.288c-0.395-0.395-1.034-0.395-1.429,0 c-0.394,0.395-0.394,1.035,0,1.43l8.999,9.002l0,0l0,0c0.394,0.395,1.034,0.395,1.428,0l8.999-9.002 c0.394-0.395,0.394-1.036,0-1.431C25.319,10.889,24.679,10.889,24.285,11.284z","fill","#121313","id","Expand_More"]],template:function(t,r){1&t&&(Es(),yt(0,"button",0),ie("click",function(){return r.toggleMenu()}),yt(1,"span",1),g2(2),Vt(),Ze(3,AQ,9,0,"span",2),Vt()),2&t&&(St(3),xt("ngIf",r.showCaret))},dependencies:[Os],styles:[".ng2-dropdown-button[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,Helvetica,Arial;background:#fff;padding:.45rem .25rem;font-size:14px;letter-spacing:.08rem;color:#444;outline:0;cursor:pointer;font-weight:400;border:none;border-bottom:1px solid #efefef;text-align:left;min-width:100px;width:100%;display:flex;flex-direction:row;max-width:150px}.ng2-dropdown-button[_ngcontent-%COMP%]:hover{color:#222}.ng2-dropdown-button[_ngcontent-%COMP%]:active, .ng2-dropdown-button[_ngcontent-%COMP%]:focus{color:#222;border-bottom:2px solid #2196F3}.ng2-dropdown-button__label[_ngcontent-%COMP%]{flex:1 1 95%}.ng2-dropdown-button__caret[_ngcontent-%COMP%]{width:12px;height:12px;display:flex;flex:1 1 6%}.ng2-dropdown-button--icon[_nghost-%COMP%] .ng2-dropdown-button[_ngcontent-%COMP%], .ng2-dropdown-button--icon [_nghost-%COMP%] .ng2-dropdown-button[_ngcontent-%COMP%]{border:none;min-width:40px;width:40px;border-radius:100%;transition:all .2s;text-align:center;height:40px;padding:.5em}.ng2-dropdown-button--icon[_nghost-%COMP%] .ng2-dropdown-button[_ngcontent-%COMP%]:active, .ng2-dropdown-button--icon [_nghost-%COMP%] .ng2-dropdown-button[_ngcontent-%COMP%]:active{background:rgba(0,0,0,.2)}"]}),e})();const sS={9:(e,n,t)=>{t.select(e{e>0&&t.select(n[e-1],!0)},40:(e,n,t)=>{et.selectedItem?t.selectedItem.click():void 0,27:function RQ(){this.hide()}};function OQ(e){[38,40].indexOf(e.keyCode)>-1&&e.preventDefault()}class NQ{constructor(){this.onItemSelected=new _e,this.onItemClicked=new _e,this.onItemDestroyed=new _e}get selectedItem(){return this._selectedItem}select(n,t=!0){this._selectedItem=n,t&&n&&(n.focus(),this.onItemSelected.emit(n))}unselect(){this._selectedItem=void 0}}let V9=(()=>{class e{constructor(){this.menuState={isVisible:!1,toString(){return!0===this.isVisible?"visible":"hidden"}},this.dropdownState=new NQ}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=xe({token:e,factory:e.\u0275fac}),e})(),iS=(()=>{class e{constructor(t,r){this.state=t,this.element=r,this.preventClose=!1}ngOnDestroy(){this.state.dropdownState.onItemDestroyed.emit(this)}get isSelected(){return this===this.state.dropdownState.selectedItem}select(t){this.state.dropdownState.select(this,!0),t&&(t.stopPropagation(),t.preventDefault())}click(){this.state.dropdownState.onItemClicked.emit(this)}focus(){this.element.nativeElement.children[0].focus()}}return e.\u0275fac=function(t){return new(t||e)(vt(V9),vt(Br))},e.\u0275cmp=U1({type:e,selectors:[["ng2-menu-item"]],inputs:{preventClose:"preventClose",value:"value"},ngContentSelectors:Nm,decls:2,vars:2,consts:[["role","button","tabindex","0",1,"ng2-menu-item",3,"keydown.enter","click","mouseover"]],template:function(t,r){1&t&&(Es(),yt(0,"div",0),ie("keydown.enter",function(){return r.click()})("click",function(){return r.click()})("mouseover",function(){return r.select()}),g2(1),Vt()),2&t&&Zn("ng2-menu-item--selected",r.isSelected)},styles:[".ng2-menu-item[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,Helvetica,Arial;background:#fff;color:#000000de;cursor:pointer;font-size:.9em;text-transform:none;font-weight:400;letter-spacing:.03em;height:48px;line-height:48px;padding:.3em 1.25rem;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;transition:background .25s}.ng2-menu-item--selected[_ngcontent-%COMP%]{background:rgba(158,158,158,.2);outline:0}.ng2-menu-item[_ngcontent-%COMP%]:focus{outline:0}.ng2-menu-item[_ngcontent-%COMP%]:active{background:rgba(158,158,158,.4)}ng2-menu-item[_nghost-%COMP%] [ng2-menu-item-icon]{vertical-align:middle;font-size:28px;width:1.5em;height:30px;color:#00000070}"]}),e})(),lS=(()=>{class e{constructor(t,r,o){this.dropdownState=t,this.element=r,this.renderer=o,this.width=4,this.focusFirstElement=!0,this.appendToBody=!0,this.zIndex=1e3,this.listeners={arrowHandler:void 0,handleKeypress:void 0}}show(t,r=!0){const o=typeof document<"u"?document:void 0,s=typeof window<"u"?window:void 0;this.dropdownState.menuState.isVisible||(this.listeners.handleKeypress=this.renderer.listen(o.body,"keydown",this.handleKeypress.bind(this)),this.listeners.arrowHandler=this.renderer.listen(s,"keydown",OQ)),this.dropdownState.menuState.isVisible=!0,t&&this.updatePosition(t,r)}hide(){this.dropdownState.menuState.isVisible=!1,this.dropdownState.dropdownState.unselect(),this.listeners.arrowHandler&&this.listeners.arrowHandler(),this.listeners.handleKeypress&&this.listeners.handleKeypress()}updatePosition(t,r){this.position=t,this.updateOnChange(r)}handleKeypress(t){const r=t.keyCode,o=this.items.toArray(),s=o.indexOf(this.dropdownState.dropdownState.selectedItem);sS.hasOwnProperty(r)&&sS[r].call(this,s,o,this.dropdownState.dropdownState)}getMenuElement(){return this.element.nativeElement.children[0]}calcPositionOffset(t){const r=typeof window<"u"?window:void 0,o=typeof document<"u"?document:void 0;if(!r||!o||!t)return;const s=this.getMenuElement(),i=void 0!==r.pageXOffset,l="CSS1Compat"===(o.compatMode||""),a=i?r.pageXOffset:l?o.documentElement.scrollLeft:o.body.scrollLeft,c=i?r.pageYOffset:l?o.documentElement.scrollTop:o.body.scrollTop;let{top:h,left:u}=this.applyOffset(`${t.top+(this.appendToBody?c-15:0)}px`,t.left+a-5+"px");const d=s.clientWidth,v=s.clientHeight,m=parseInt(h)+v+(this.appendToBody?0:c-15),L=parseInt(u)+d,j=r.innerWidth+r.scrollX;if(m>=r.innerHeight+r.scrollY&&(h=parseInt(h.replace("px",""))-v+"px"),L>=j){const N=L-j+30;u=parseInt(u.replace("px",""))-N+"px"}return{top:h,left:u}}applyOffset(t,r){if(!this.offset)return{top:t,left:r};const o=this.offset.split(" ");return o[1]||(o[1]="0"),{top:t=`${parseInt(t.replace("px",""))+parseInt(o[0])}px`,left:r=`${parseInt(r.replace("px",""))+parseInt(o[1])}px`}}ngOnInit(){const t=typeof document<"u"?document:void 0;this.appendToBody&&t.body.appendChild(this.element.nativeElement)}updateOnChange(t=!0){const r=this.getMenuElement(),o=this.calcPositionOffset(this.position);o&&(this.renderer.setStyle(r,"top",o.top.toString()),this.renderer.setStyle(r,"left",o.left.toString())),this.focusFirstElement&&this.items.first&&!this.dropdownState.dropdownState.selectedItem&&this.dropdownState.dropdownState.select(this.items.first,!1)}ngOnDestroy(){const t=this.element.nativeElement;t.parentNode.removeChild(t),this.listeners.handleKeypress&&this.listeners.handleKeypress()}}return e.\u0275fac=function(t){return new(t||e)(vt(V9),vt(Br),vt(Ol))},e.\u0275cmp=U1({type:e,selectors:[["ng2-dropdown-menu"]],contentQueries:function(t,r,o){if(1&t&&ya(o,iS,5),2&t){let s;Kr(s=Qr())&&(r.items=s)}},inputs:{width:"width",focusFirstElement:"focusFirstElement",offset:"offset",appendToBody:"appendToBody",zIndex:"zIndex"},ngContentSelectors:Nm,decls:4,vars:12,consts:[[1,"ng2-dropdown-menu__options-container"],["class","ng2-dropdown-backdrop",3,"click",4,"ngIf"],[1,"ng2-dropdown-backdrop",3,"click"]],template:function(t,r){1&t&&(Es(),yt(0,"div")(1,"div",0),g2(2),Vt()(),Ze(3,DQ,1,0,"div",1)),2&t&&(function yx(e,n,t){al(Re,Zl,y4(fe(),e,n,t),!0)}("ng2-dropdown-menu ng2-dropdown-menu---width--",r.width,""),bi("z-index",r.zIndex),Zn("ng2-dropdown-menu--inside-element",!r.appendToBody)("ng2-dropdown-menu--open",r.dropdownState.menuState.isVisible),xt("@fade",r.dropdownState.menuState.toString()),St(1),xt("@opacity",r.dropdownState.menuState.toString()),St(2),xt("ngIf",r.dropdownState.menuState.isVisible))},dependencies:[Os],styles:["[_nghost-%COMP%]{display:block}.ng2-dropdown-menu[_ngcontent-%COMP%]{overflow-y:auto;box-shadow:0 1px 2px #0000004d;position:absolute;padding:.5em 0;background:#fff;border-radius:1px;max-height:400px;width:260px;min-height:0;display:block}.ng2-dropdown-menu.ng2-dropdown-menu--inside-element[_ngcontent-%COMP%]{position:fixed}.ng2-dropdown-menu.ng2-dropdown-menu--width--2[_ngcontent-%COMP%]{width:200px}.ng2-dropdown-menu.ng2-dropdown-menu--width--4[_ngcontent-%COMP%]{width:260px}.ng2-dropdown-menu.ng2-dropdown-menu--width--6[_ngcontent-%COMP%]{width:320px}.ng2-dropdown-backdrop[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;z-index:1;overflow:hidden}[_nghost-%COMP%] .ng2-menu-divider{height:1px;min-height:1px;max-height:1px;width:100%;display:block;background:#f9f9f9}"],data:{animation:[ja("fade",[ml("visible",Tr({opacity:1,height:"*",width:"*"})),ml("hidden",Tr({opacity:0,overflow:"hidden",height:0,width:0})),rs("hidden => visible",[D2("250ms ease-in",Tr({opacity:1,height:"*",width:"*"}))]),rs("visible => hidden",[D2("350ms ease-out",Tr({opacity:0,width:0,height:0}))])]),ja("opacity",[rs("hidden => visible",[D2("450ms ease-in",a5([Tr({opacity:0,offset:0}),Tr({opacity:1,offset:1})]))]),rs("visible => hidden",[D2("250ms ease-out",a5([Tr({opacity:1,offset:0}),Tr({opacity:.5,offset:.3}),Tr({opacity:0,offset:1})]))])])]}}),e})(),aS=(()=>{class e{constructor(t){this.state=t,this.dynamicUpdate=!0,this.onItemClicked=new _e,this.onItemSelected=new _e,this.onShow=new _e,this.onHide=new _e}ngOnInit(){this.state.dropdownState.onItemClicked.subscribe(t=>{this.onItemClicked.emit(t),!t.preventClose&&this.hide.call(this)}),this.button&&this.button.onMenuToggled.subscribe(()=>{this.toggleMenu()}),this.state.dropdownState.onItemSelected.subscribe(t=>{this.onItemSelected.emit(t)}),this.state.dropdownState.onItemDestroyed.subscribe(t=>{let r;const o=this.menu.items.toArray();t===this.state.dropdownState.selectedItem&&(this.menu.focusFirstElement&&(r=t===o[0]&&o.length>1?o[1]:o[0]),this.state.dropdownState.select(r))})}toggleMenu(t=this.button.getPosition()){this.state.menuState.isVisible?this.hide():this.show(t)}hide(){this.menu.hide(),this.onHide.emit(this)}show(t=this.button.getPosition()){this.menu.show(t,this.dynamicUpdate),this.onShow.emit(this)}scrollListener(){this.button&&this.dynamicUpdate&&this.menu.updatePosition(this.button.getPosition(),!0)}}return e.\u0275fac=function(t){return new(t||e)(vt(V9))},e.\u0275cmp=U1({type:e,selectors:[["ng2-dropdown"]],contentQueries:function(t,r,o){if(1&t&&(ya(o,EQ,7),ya(o,lS,7)),2&t){let s;Kr(s=Qr())&&(r.button=s.first),Kr(s=Qr())&&(r.menu=s.first)}},hostBindings:function(t,r){1&t&&ie("scroll",function(){return r.scrollListener()},0,ap)},inputs:{dynamicUpdate:"dynamicUpdate"},outputs:{onItemClicked:"onItemClicked",onItemSelected:"onItemSelected",onShow:"onShow",onHide:"onHide"},features:[Mr([V9])],ngContentSelectors:TQ,decls:3,vars:0,consts:[[1,"ng2-dropdown-container"]],template:function(t,r){1&t&&(Es(BQ),yt(0,"div",0),g2(1),g2(2,1),Vt())},encapsulation:2}),e})(),$Q=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=K1({type:e}),e.\u0275inj=$1({imports:[[e2]]}),e})();function ZQ(e=qQ){return Yt((n,t)=>{let r=!1;n.subscribe(ve(t,o=>{r=!0,t.next(o)},()=>r?t.complete():t.error(e())))})}function qQ(){return new Om}function S9(e,n){const t=arguments.length>=2;return r=>r.pipe(e?Zs((o,s)=>e(o,s,r)):_t,A2(1),t?function UQ(e){return Yt((n,t)=>{let r=!1;n.subscribe(ve(t,o=>{r=!0,t.next(o)},()=>{r||t.next(e),t.complete()}))})}(n):ZQ(()=>new Om))}const WQ=["input"];function GQ(e,n){}const YQ=function(e,n){return{item:e,index:n}};function XQ(e,n){if(1&e&&(yt(0,"div"),Ze(1,GQ,0,0,"ng-template",4),Vt()),2&e){const t=Zt();Y1("contenteditable",t.editing),St(1),xt("ngTemplateOutletContext",$3(3,YQ,t.model,t.index))("ngTemplateOutlet",t.template)}}function KQ(e,n){if(1&e){const t=V1();yt(0,"delete-icon",8),ie("click",function(o){return ct(t),Bt(Zt(2).remove(o))}),Vt()}}function QQ(e,n){if(1&e){const t=V1();yt(0,"div",5)(1,"div",6),ie("keydown.enter",function(o){return ct(t),Bt(Zt().disableEditMode(o))})("keydown.escape",function(o){return ct(t),Bt(Zt().disableEditMode(o))})("click",function(o){return ct(t),Bt(Zt().editing?o.stopPropagation():void 0)})("blur",function(o){return ct(t),Bt(Zt().onBlurred(o))}),xr(2),Vt(),Ze(3,KQ,1,0,"delete-icon",7),Vt()}if(2&e){const t=Zt();St(1),Y1("contenteditable",t.editing)("title",t.getDisplayValue(t.model)),St(1),wo(" ",t.getDisplayValue(t.model)," "),St(1),xt("ngIf",t.isDeleteIconVisible())}}function JQ(e,n){1&e&&rr(0,"tag-ripple",9),2&e&&(xt("state",Zt().rippleState),Y1("tabindex",-1))}function tJ(e,n){if(1&e&&(rr(0,"span",6),ci(1,"highlight")),2&e){const t=Zt().$implicit,r=Zt();xt("innerHTML",function kM(e,n,t,r){const o=e+wr,s=fe(),i=Tl(s,o);return Z3(s,o)?fM(s,Un(),n,i.transform,t,r,i):i.transform(t,r)}(1,1,t[r.displayBy],r.tagInput.inputForm.value.value),z8)}}function eJ(e,n){}const rJ=function(e,n,t){return{item:e,index:n,last:t}};function nJ(e,n){if(1&e&&Ze(0,eJ,0,0,"ng-template",7),2&e){const t=Zt(),r=t.$implicit,o=t.index,s=t.last;xt("ngTemplateOutlet",Zt().templates.first)("ngTemplateOutletContext",kv(2,rJ,r,o,s))}}function oJ(e,n){if(1&e&&(yt(0,"ng2-menu-item",3),Ze(1,tJ,2,4,"span",4),Ze(2,nJ,1,6,null,5),Vt()),2&e){const t=n.$implicit,r=Zt();xt("value",t)("ngSwitch",!!r.templates.length),St(1),xt("ngSwitchCase",!1)}}function sJ(e,n){if(1&e){const t=V1();yt(0,"tag",6),ie("onSelect",function(){const s=ct(t).$implicit;return Bt(Zt().selectItem(s))})("onRemove",function(){const o=ct(t),s=o.$implicit,i=o.index;return Bt(Zt().onRemoveRequested(s,i))})("onKeyDown",function(o){return ct(t),Bt(Zt().handleKeydown(o))})("onTagEdited",function(o){return ct(t),Bt(Zt().updateEditedTag(o))})("onBlur",function(o){const i=ct(t).index;return Bt(Zt().onTagBlurred(o,i))})("dragstart",function(o){const s=ct(t),i=s.$implicit,l=s.index,a=Zt();return Bt(a.dragZone?a.onDragStarted(o,i,l):void 0)})("drop",function(o){const i=ct(t).index,l=Zt();return Bt(l.dragZone?l.onTagDropped(o,i):void 0)})("dragenter",function(o){ct(t);const s=Zt();return Bt(s.dragZone?s.onDragOver(o):void 0)})("dragover",function(o){const i=ct(t).index,l=Zt();return Bt(l.dragZone?l.onDragOver(o,i):void 0)})("dragleave",function(){ct(t);const o=Zt();return Bt(o.dragZone?o.dragProvider.onDragEnd():void 0)}),Vt()}if(2&e){const t=n.$implicit,r=n.index,o=Zt();Hp("draggable",o.editable),xt("canAddTag",o.isTagValid)("disabled",o.disable)("@animation",o.animationMetadata)("hasRipple",o.ripple)("index",r)("removable",o.removable)("editable",o.editable)("displayBy",o.displayBy)("identifyBy",o.identifyBy)("template",o.hasCustomTemplate()?o.templates.first:void 0)("draggable",o.dragZone)("model",t),Y1("tabindex",0)}}function iJ(e,n){1&e&&rr(0,"div",7)}function lJ(e,n){if(1&e&&(yt(0,"p",10)(1,"span"),xr(2),Vt()()),2&e){const t=n.$implicit;St(2),js(t)}}function aJ(e,n){if(1&e&&(yt(0,"div",8),Ze(1,lJ,3,1,"p",9),Vt()),2&e){const t=Zt();xt("ngClass",t.theme),St(1),xt("ngForOf",t.errors)}}const cJ=["*"];let uJ=(()=>{class e{transform(t,r){if(!r.trim())return t;try{const o=new RegExp(`(${(e=>e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))(r)})`,"i");return t.replace(o,"$1 ")}catch{return t}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=bo({name:"highlight",type:e,pure:!0}),e})();const $m="keydown",fJ={8:"DELETE",46:"DELETE",37:"SWITCH_PREV",39:"SWITCH_NEXT",9:"TAB"},A9="NEXT",Um="PREV";let hS=(()=>{class e{constructor(){this.state={dragging:!1,dropping:!1,index:void 0}}setDraggedItem(t,r){t&&t.dataTransfer&&t.dataTransfer.setData("Text",JSON.stringify(r))}getDraggedItem(t){if(t&&t.dataTransfer){const r=t.dataTransfer.getData("Text");try{return JSON.parse(r)}catch{return}}}setSender(t){this.sender=t}setReceiver(t){this.receiver=t}onTagDropped(t,r,o){this.onDragEnd(),this.sender.onRemoveRequested(t,r),this.receiver.onAddingRequested(!1,t,o)}setState(t){this.state={...this.state,...t}}getState(t){return t?this.state[t]:this.state}onDragEnd(){this.setState({dragging:!1,dropping:!1,index:void 0})}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=xe({token:e,factory:e.\u0275fac}),e})();const J1={tagInput:{separatorKeys:[],separatorKeyCodes:[],maxItems:1/0,placeholder:"+ Tag",secondaryPlaceholder:"Enter a new tag",validators:[],asyncValidators:[],onlyFromAutocomplete:!1,errorMessages:{},theme:"",onTextChangeDebounce:250,inputId:null,inputClass:"",clearOnBlur:!1,hideForm:!1,addOnBlur:!1,addOnPaste:!1,pasteSplitPattern:",",blinkIfDupe:!0,removable:!0,editable:!1,allowDupes:!1,modelAsStrings:!1,trimTags:!0,ripple:!0,tabIndex:"",disable:!1,dragZone:"",onRemoving:void 0,onAdding:void 0,displayBy:"display",identifyBy:"value",animationDuration:{enter:"250ms",leave:"150ms"}},dropdown:{displayBy:"display",identifyBy:"value",appendToBody:!0,offset:"50 0",focusFirstElement:!1,showDropdownIfEmpty:!1,minimumTextLength:1,limitItemsTo:1/0,keepOpen:!0,dynamicUpdate:!0,zIndex:1e3,matchingFn:function mJ(e,n){const t=n[this.displayBy].toString();return t&&t.toLowerCase().indexOf(e.toLowerCase())>=0}}};let Zm=(()=>{class e{setOptions(t){e.defaults.tagInput={...J1.tagInput,...t.tagInput},e.defaults.dropdown={...J1.dropdown,...t.dropdown}}}return e.defaults=J1,e})();function uS(e){return e===Object(e)}let wJ=(()=>{class e{constructor(){this._items=[],this.displayBy=Zm.defaults.tagInput.displayBy,this.identifyBy=Zm.defaults.tagInput.identifyBy}get items(){return this._items}set items(t){this._items=t,this._onChangeCallback(this._items)}onTouched(){this._onTouchedCallback()}writeValue(t){this._items=t||[]}registerOnChange(t){this._onChangeCallback=t}registerOnTouched(t){this._onTouchedCallback=t}getItemValue(t,r=!1){const o=r&&this.dropdown?this.dropdown.identifyBy:this.identifyBy;return uS(t)?t[o]:t}getItemDisplay(t,r=!1){const o=r&&this.dropdown?this.dropdown.displayBy:this.displayBy;return uS(t)?t[o]:t}getItemsWithout(t){return this.items.filter((r,o)=>o!==t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=s1({type:e,inputs:{displayBy:"displayBy",identifyBy:"identifyBy"}}),e})();function dS(e,n,t=!0){if(!this.listeners.hasOwnProperty(e))throw new Error("The event entered may be wrong");t&&this.listeners[e].push(n)}let pS=(()=>{class e{constructor(){this.onSubmit=new _e,this.onBlur=new _e,this.onFocus=new _e,this.onKeyup=new _e,this.onKeydown=new _e,this.inputTextChange=new _e,this.validators=[],this.asyncValidators=[],this.tabindex="",this.disabled=!1,this.item=new Vm({value:"",disabled:this.disabled})}get inputText(){return this.item.value}set inputText(t){this.item.setValue(t),this.inputTextChange.emit(t)}ngOnInit(){this.item.setValidators(this.validators),this.item.setAsyncValidators(this.asyncValidators),this.form=new C9({item:this.item})}ngOnChanges(t){t.disabled&&!t.disabled.firstChange&&(t.disabled.currentValue?this.form.controls.item.disable():this.form.controls.item.enable())}get value(){return this.form.get("item")}isInputFocused(){const t=typeof document<"u"?document:void 0;return!!t&&t.activeElement===this.input.nativeElement}getErrorMessages(t){return Object.keys(t).filter(r=>this.value.hasError(r)).map(r=>t[r])}hasErrors(){const{dirty:t,value:r,valid:o}=this.form;return t&&r.item&&!o}focus(){this.input.nativeElement.focus()}blur(){this.input.nativeElement.blur()}getElementPosition(){return this.input.nativeElement.getBoundingClientRect()}destroy(){const t=this.input.nativeElement;t.parentElement.removeChild(t)}onKeyDown(t){if(this.inputText=this.value.value,"Enter"!==t.key)return this.onKeydown.emit(t);this.submit(t)}onKeyUp(t){return this.inputText=this.value.value,this.onKeyup.emit(t)}submit(t){t.preventDefault(),this.onSubmit.emit(t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=U1({type:e,selectors:[["tag-input-form"]],viewQuery:function(t,r){if(1&t&&jn(WQ,5),2&t){let o;Kr(o=Qr())&&(r.input=o.first)}},inputs:{placeholder:"placeholder",validators:"validators",asyncValidators:"asyncValidators",inputId:"inputId",inputClass:"inputClass",tabindex:"tabindex",disabled:"disabled",inputText:"inputText"},outputs:{onSubmit:"onSubmit",onBlur:"onBlur",onFocus:"onFocus",onKeyup:"onKeyup",onKeydown:"onKeydown",inputTextChange:"inputTextChange"},features:[mo],decls:3,vars:8,consts:[[3,"formGroup","ngSubmit"],["type","text","autocomplete","off","minlength","1","formControlName","item",1,"ng2-tag-input__text-input",3,"tabindex","ngClass","focus","blur","keydown","keyup"],["input",""]],template:function(t,r){1&t&&(yt(0,"form",0),ie("ngSubmit",function(s){return r.submit(s)}),yt(1,"input",1,2),ie("focus",function(s){return r.onFocus.emit(s)})("blur",function(s){return r.onBlur.emit(s)})("keydown",function(s){return r.onKeyDown(s)})("keyup",function(s){return r.onKeyUp(s)}),Vt()()),2&t&&(xt("formGroup",r.form),St(1),Hp("tabindex",r.disabled?-1:r.tabindex?r.tabindex:0),xt("ngClass",r.inputClass),Y1("id",r.inputId)("placeholder",r.placeholder)("aria-label",r.placeholder)("tabindex",r.tabindex)("disabled",r.disabled?r.disabled:null))},dependencies:[TV,xV,n5,Ru,Im,g9,Tm,Di],styles:[".dark[_ngcontent-%COMP%] tag[_ngcontent-%COMP%]:focus{box-shadow:0 0 0 1px #323232}.ng2-tag-input.bootstrap3-info[_ngcontent-%COMP%]{background-color:#fff;display:inline-block;color:#555;vertical-align:middle;max-width:100%;height:42px;line-height:44px}.ng2-tag-input.bootstrap3-info[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{border:none;box-shadow:none;outline:none;background-color:transparent;padding:0 6px;margin:0;width:auto;max-width:inherit}.ng2-tag-input.bootstrap3-info[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::-moz-placeholder{color:#777;opacity:1}.ng2-tag-input.bootstrap3-info[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:-ms-input-placeholder{color:#777}.ng2-tag-input.bootstrap3-info[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::-webkit-input-placeholder{color:#777}.ng2-tag-input.bootstrap3-info[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{border:none;box-shadow:none}.bootstrap3-info.ng2-tag-input.ng2-tag-input--focused[_ngcontent-%COMP%]{box-shadow:inset 0 1px 1px #0006;border:1px solid #ccc}.bootstrap3-info.ng2-tag-input.ng2-tag-input--invalid[_ngcontent-%COMP%]{box-shadow:inset 0 1px 1px #d9534f}.ng2-tag-input[_ngcontent-%COMP%]{display:block;flex-direction:row;flex-wrap:wrap;position:relative;transition:all .25s;padding:.25rem 0;min-height:32px;cursor:text;border-bottom:2px solid #efefef}.ng2-tag-input[_ngcontent-%COMP%]:focus{outline:0}.ng2-tag-input.ng2-tag-input--dropping[_ngcontent-%COMP%]{opacity:.7}.ng2-tag-input.ng2-tag-input--focused[_ngcontent-%COMP%]{border-bottom:2px solid #2196F3}.ng2-tag-input.ng2-tag-input--invalid[_ngcontent-%COMP%]{border-bottom:2px solid #f44336}.ng2-tag-input.ng2-tag-input--loading[_ngcontent-%COMP%]{border:none}.ng2-tag-input.ng2-tag-input--disabled[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}.ng2-tag-input[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{margin:.1em 0}.ng2-tag-input[_ngcontent-%COMP%] .ng2-tags-container[_ngcontent-%COMP%]{flex-wrap:wrap;display:flex}.minimal.ng2-tag-input[_ngcontent-%COMP%]{display:block;flex-direction:row;flex-wrap:wrap;position:relative;cursor:text;border-bottom:1px solid transparent}.minimal.ng2-tag-input[_ngcontent-%COMP%]:focus{outline:0}.minimal.ng2-tag-input.ng2-tag-input--dropping[_ngcontent-%COMP%]{opacity:.7}.minimal.ng2-tag-input.ng2-tag-input--loading[_ngcontent-%COMP%]{border:none}.minimal.ng2-tag-input.ng2-tag-input--disabled[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}.minimal.ng2-tag-input[_ngcontent-%COMP%] .ng2-tags-container[_ngcontent-%COMP%]{flex-wrap:wrap;display:flex}.dark.ng2-tag-input[_ngcontent-%COMP%]{display:block;flex-direction:row;flex-wrap:wrap;position:relative;cursor:text;border-bottom:2px solid #444}.dark.ng2-tag-input[_ngcontent-%COMP%]:focus{outline:0}.dark.ng2-tag-input.ng2-tag-input--dropping[_ngcontent-%COMP%]{opacity:.7}.dark.ng2-tag-input.ng2-tag-input--loading[_ngcontent-%COMP%]{border:none}.dark.ng2-tag-input.ng2-tag-input--disabled[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}.dark.ng2-tag-input[_ngcontent-%COMP%] .ng2-tags-container[_ngcontent-%COMP%]{flex-wrap:wrap;display:flex}.bootstrap.ng2-tag-input[_ngcontent-%COMP%]{display:block;flex-direction:row;flex-wrap:wrap;position:relative;cursor:text;border-bottom:2px solid #efefef}.bootstrap.ng2-tag-input[_ngcontent-%COMP%]:focus{outline:0}.bootstrap.ng2-tag-input.ng2-tag-input--dropping[_ngcontent-%COMP%]{opacity:.7}.bootstrap.ng2-tag-input.ng2-tag-input--focused[_ngcontent-%COMP%]{border-bottom:2px solid #0275d8}.bootstrap.ng2-tag-input.ng2-tag-input--invalid[_ngcontent-%COMP%]{border-bottom:2px solid #d9534f}.bootstrap.ng2-tag-input.ng2-tag-input--loading[_ngcontent-%COMP%]{border:none}.bootstrap.ng2-tag-input.ng2-tag-input--disabled[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}.bootstrap.ng2-tag-input[_ngcontent-%COMP%] .ng2-tags-container[_ngcontent-%COMP%]{flex-wrap:wrap;display:flex}.bootstrap3-info.ng2-tag-input[_ngcontent-%COMP%]{display:block;flex-direction:row;flex-wrap:wrap;position:relative;padding:4px;cursor:text;box-shadow:inset 0 1px 1px #00000013;border-radius:4px}.bootstrap3-info.ng2-tag-input[_ngcontent-%COMP%]:focus{outline:0}.bootstrap3-info.ng2-tag-input.ng2-tag-input--dropping[_ngcontent-%COMP%]{opacity:.7}.bootstrap3-info.ng2-tag-input.ng2-tag-input--invalid[_ngcontent-%COMP%]{border-bottom:1px solid #d9534f}.bootstrap3-info.ng2-tag-input.ng2-tag-input--loading[_ngcontent-%COMP%]{border:none}.bootstrap3-info.ng2-tag-input.ng2-tag-input--disabled[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}.bootstrap3-info.ng2-tag-input[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{margin:.1em 0}.bootstrap3-info.ng2-tag-input[_ngcontent-%COMP%] .ng2-tags-container[_ngcontent-%COMP%]{flex-wrap:wrap;display:flex}.error-message[_ngcontent-%COMP%]{font-size:.8em;color:#f44336;margin:.5em 0 0}.bootstrap[_ngcontent-%COMP%] .error-message[_ngcontent-%COMP%]{color:#d9534f}.ng2-tag-input__text-input[_ngcontent-%COMP%]{display:inline;vertical-align:middle;border:none;padding:0 .5rem;height:38px;font-size:1em;font-family:Roboto,Helvetica Neue,sans-serif}.ng2-tag-input__text-input[_ngcontent-%COMP%]:focus{outline:0}.ng2-tag-input__text-input[disabled=true][_ngcontent-%COMP%]{opacity:.5;background:#fff}"]}),e})(),vS=(()=>{class e{constructor(){this.state="none"}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=U1({type:e,selectors:[["tag-ripple"]],inputs:{state:"state"},decls:1,vars:1,consts:[[1,"tag-ripple"]],template:function(t,r){1&t&&rr(0,"div",0),2&t&&xt("@ink",r.state)},styles:["[_nghost-%COMP%]{width:100%;height:100%;left:0;overflow:hidden;position:absolute}.tag-ripple[_ngcontent-%COMP%]{background:rgba(0,0,0,.1);top:50%;left:50%;height:100%;transform:translate(-50%,-50%);position:absolute}"],data:{animation:[ja("ink",[ml("none",Tr({width:0,opacity:0})),rs("none => clicked",[D2(300,a5([Tr({opacity:1,offset:0,width:"30%",borderRadius:"100%"}),Tr({opacity:1,offset:.5,width:"50%"}),Tr({opacity:.5,offset:1,width:"100%",borderRadius:"16px"})]))])])]}}),e})(),CJ=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=U1({type:e,selectors:[["delete-icon"]],decls:3,vars:0,consts:[["height","16px","viewBox","0 0 32 32","width","16px"],["d","M17.459,16.014l8.239-8.194c0.395-0.391,0.395-1.024,0-1.414c-0.394-0.391-1.034-0.391-1.428,0 l-8.232,8.187L7.73,6.284c-0.394-0.395-1.034-0.395-1.428,0c-0.394,0.396-0.394,1.037,0,1.432l8.302,8.303l-8.332,8.286 c-0.394,0.391-0.394,1.024,0,1.414c0.394,0.391,1.034,0.391,1.428,0l8.325-8.279l8.275,8.276c0.394,0.395,1.034,0.395,1.428,0 c0.394-0.396,0.394-1.037,0-1.432L17.459,16.014z","fill","#121313"]],template:function(t,r){1&t&&(yt(0,"span"),s0(),yt(1,"svg",0),rr(2,"path",1),Vt()())},styles:[".dark[_ngcontent-%COMP%] tag[_ngcontent-%COMP%]:focus{box-shadow:0 0 0 1px #323232}.ng2-tag-input.bootstrap3-info[_ngcontent-%COMP%]{background-color:#fff;display:inline-block;color:#555;vertical-align:middle;max-width:100%;height:42px;line-height:44px}.ng2-tag-input.bootstrap3-info[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{border:none;box-shadow:none;outline:none;background-color:transparent;padding:0 6px;margin:0;width:auto;max-width:inherit}.ng2-tag-input.bootstrap3-info[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::-moz-placeholder{color:#777;opacity:1}.ng2-tag-input.bootstrap3-info[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:-ms-input-placeholder{color:#777}.ng2-tag-input.bootstrap3-info[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::-webkit-input-placeholder{color:#777}.ng2-tag-input.bootstrap3-info[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{border:none;box-shadow:none}.bootstrap3-info.ng2-tag-input.ng2-tag-input--focused[_ngcontent-%COMP%]{box-shadow:inset 0 1px 1px #0006;border:1px solid #ccc}.bootstrap3-info.ng2-tag-input.ng2-tag-input--invalid[_ngcontent-%COMP%]{box-shadow:inset 0 1px 1px #d9534f}.ng2-tag-input[_ngcontent-%COMP%]{display:block;flex-direction:row;flex-wrap:wrap;position:relative;transition:all .25s;padding:.25rem 0;min-height:32px;cursor:text;border-bottom:2px solid #efefef}.ng2-tag-input[_ngcontent-%COMP%]:focus{outline:0}.ng2-tag-input.ng2-tag-input--dropping[_ngcontent-%COMP%]{opacity:.7}.ng2-tag-input.ng2-tag-input--focused[_ngcontent-%COMP%]{border-bottom:2px solid #2196F3}.ng2-tag-input.ng2-tag-input--invalid[_ngcontent-%COMP%]{border-bottom:2px solid #f44336}.ng2-tag-input.ng2-tag-input--loading[_ngcontent-%COMP%]{border:none}.ng2-tag-input.ng2-tag-input--disabled[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}.ng2-tag-input[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{margin:.1em 0}.ng2-tag-input[_ngcontent-%COMP%] .ng2-tags-container[_ngcontent-%COMP%]{flex-wrap:wrap;display:flex}.minimal.ng2-tag-input[_ngcontent-%COMP%]{display:block;flex-direction:row;flex-wrap:wrap;position:relative;cursor:text;border-bottom:1px solid transparent}.minimal.ng2-tag-input[_ngcontent-%COMP%]:focus{outline:0}.minimal.ng2-tag-input.ng2-tag-input--dropping[_ngcontent-%COMP%]{opacity:.7}.minimal.ng2-tag-input.ng2-tag-input--loading[_ngcontent-%COMP%]{border:none}.minimal.ng2-tag-input.ng2-tag-input--disabled[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}.minimal.ng2-tag-input[_ngcontent-%COMP%] .ng2-tags-container[_ngcontent-%COMP%]{flex-wrap:wrap;display:flex}.dark.ng2-tag-input[_ngcontent-%COMP%]{display:block;flex-direction:row;flex-wrap:wrap;position:relative;cursor:text;border-bottom:2px solid #444}.dark.ng2-tag-input[_ngcontent-%COMP%]:focus{outline:0}.dark.ng2-tag-input.ng2-tag-input--dropping[_ngcontent-%COMP%]{opacity:.7}.dark.ng2-tag-input.ng2-tag-input--loading[_ngcontent-%COMP%]{border:none}.dark.ng2-tag-input.ng2-tag-input--disabled[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}.dark.ng2-tag-input[_ngcontent-%COMP%] .ng2-tags-container[_ngcontent-%COMP%]{flex-wrap:wrap;display:flex}.bootstrap.ng2-tag-input[_ngcontent-%COMP%]{display:block;flex-direction:row;flex-wrap:wrap;position:relative;cursor:text;border-bottom:2px solid #efefef}.bootstrap.ng2-tag-input[_ngcontent-%COMP%]:focus{outline:0}.bootstrap.ng2-tag-input.ng2-tag-input--dropping[_ngcontent-%COMP%]{opacity:.7}.bootstrap.ng2-tag-input.ng2-tag-input--focused[_ngcontent-%COMP%]{border-bottom:2px solid #0275d8}.bootstrap.ng2-tag-input.ng2-tag-input--invalid[_ngcontent-%COMP%]{border-bottom:2px solid #d9534f}.bootstrap.ng2-tag-input.ng2-tag-input--loading[_ngcontent-%COMP%]{border:none}.bootstrap.ng2-tag-input.ng2-tag-input--disabled[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}.bootstrap.ng2-tag-input[_ngcontent-%COMP%] .ng2-tags-container[_ngcontent-%COMP%]{flex-wrap:wrap;display:flex}.bootstrap3-info.ng2-tag-input[_ngcontent-%COMP%]{display:block;flex-direction:row;flex-wrap:wrap;position:relative;padding:4px;cursor:text;box-shadow:inset 0 1px 1px #00000013;border-radius:4px}.bootstrap3-info.ng2-tag-input[_ngcontent-%COMP%]:focus{outline:0}.bootstrap3-info.ng2-tag-input.ng2-tag-input--dropping[_ngcontent-%COMP%]{opacity:.7}.bootstrap3-info.ng2-tag-input.ng2-tag-input--invalid[_ngcontent-%COMP%]{border-bottom:1px solid #d9534f}.bootstrap3-info.ng2-tag-input.ng2-tag-input--loading[_ngcontent-%COMP%]{border:none}.bootstrap3-info.ng2-tag-input.ng2-tag-input--disabled[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}.bootstrap3-info.ng2-tag-input[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{margin:.1em 0}.bootstrap3-info.ng2-tag-input[_ngcontent-%COMP%] .ng2-tags-container[_ngcontent-%COMP%]{flex-wrap:wrap;display:flex}.error-message[_ngcontent-%COMP%]{font-size:.8em;color:#f44336;margin:.5em 0 0}.bootstrap[_ngcontent-%COMP%] .error-message[_ngcontent-%COMP%]{color:#d9534f}delete-icon[_nghost-%COMP%]{width:20px;height:16px;transition:all .15s;display:inline-block;text-align:right}delete-icon[_nghost-%COMP%] path[_ngcontent-%COMP%]{fill:#444}delete-icon[_nghost-%COMP%] svg[_ngcontent-%COMP%]{vertical-align:bottom;height:34px}delete-icon[_nghost-%COMP%]:hover{transform:scale(1.5) translateY(-3px)}.dark[_nghost-%COMP%], .dark [_nghost-%COMP%]{text-align:right}.dark[_nghost-%COMP%] path[_ngcontent-%COMP%], .dark [_nghost-%COMP%] path[_ngcontent-%COMP%]{fill:#fff}.dark[_nghost-%COMP%] svg[_ngcontent-%COMP%], .dark [_nghost-%COMP%] svg[_ngcontent-%COMP%]{vertical-align:bottom;height:34px}.minimal[_nghost-%COMP%], .minimal [_nghost-%COMP%]{text-align:right}.minimal[_nghost-%COMP%] path[_ngcontent-%COMP%], .minimal [_nghost-%COMP%] path[_ngcontent-%COMP%]{fill:#444}.minimal[_nghost-%COMP%] svg[_ngcontent-%COMP%], .minimal [_nghost-%COMP%] svg[_ngcontent-%COMP%]{vertical-align:bottom;height:34px}.bootstrap[_nghost-%COMP%], .bootstrap [_nghost-%COMP%]{text-align:right}.bootstrap[_nghost-%COMP%] path[_ngcontent-%COMP%], .bootstrap [_nghost-%COMP%] path[_ngcontent-%COMP%]{fill:#fff}.bootstrap[_nghost-%COMP%] svg[_ngcontent-%COMP%], .bootstrap [_nghost-%COMP%] svg[_ngcontent-%COMP%]{vertical-align:bottom;height:34px}tag:focus[_nghost-%COMP%] path[_ngcontent-%COMP%], tag:focus [_nghost-%COMP%] path[_ngcontent-%COMP%], tag:active[_nghost-%COMP%] path[_ngcontent-%COMP%], tag:active [_nghost-%COMP%] path[_ngcontent-%COMP%]{fill:#fff}.dark tag:focus[_nghost-%COMP%] path[_ngcontent-%COMP%], .dark tag:focus [_nghost-%COMP%] path[_ngcontent-%COMP%], .dark tag:active[_nghost-%COMP%] path[_ngcontent-%COMP%], .dark tag:active [_nghost-%COMP%] path[_ngcontent-%COMP%]{fill:#000}.minimal tag:focus[_nghost-%COMP%] path[_ngcontent-%COMP%], .minimal tag:focus [_nghost-%COMP%] path[_ngcontent-%COMP%], .minimal tag:active[_nghost-%COMP%] path[_ngcontent-%COMP%], .minimal tag:active [_nghost-%COMP%] path[_ngcontent-%COMP%]{fill:#000}.bootstrap tag:focus[_nghost-%COMP%] path[_ngcontent-%COMP%], .bootstrap tag:focus [_nghost-%COMP%] path[_ngcontent-%COMP%], .bootstrap tag:active[_nghost-%COMP%] path[_ngcontent-%COMP%], .bootstrap tag:active [_nghost-%COMP%] path[_ngcontent-%COMP%]{fill:#fff}.bootstrap3-info[_nghost-%COMP%], .bootstrap3-info [_nghost-%COMP%]{height:inherit}.bootstrap3-info[_nghost-%COMP%] path[_ngcontent-%COMP%], .bootstrap3-info [_nghost-%COMP%] path[_ngcontent-%COMP%]{fill:#fff}"]}),e})();const gS=typeof window<"u"?window.navigator:{userAgent:"Chrome",vendor:"Google Inc"},kJ=/Chrome/.test(gS.userAgent)&&/Google Inc/.test(gS.vendor);let fS=(()=>{class e{constructor(t,r,o){this.element=t,this.renderer=r,this.cdRef=o,this.disabled=!1,this.onSelect=new _e,this.onRemove=new _e,this.onBlur=new _e,this.onKeyDown=new _e,this.onTagEdited=new _e,this.editing=!1,this.rippleState="none"}get readonly(){return"string"!=typeof this.model&&!0===this.model.readonly}select(t){this.readonly||this.disabled||(t&&t.stopPropagation(),this.focus(),this.onSelect.emit(this.model))}remove(t){t.stopPropagation(),this.onRemove.emit(this)}focus(){this.element.nativeElement.focus()}move(){this.moving=!0}keydown(t){if(this.editing){if(13===t.keyCode)return this.disableEditMode(t)}else this.onKeyDown.emit({event:t,model:this.model})}blink(){const t=this.element.nativeElement.classList;t.add("blink"),setTimeout(()=>t.remove("blink"),50)}toggleEditMode(){if(this.editable)return this.editing?void 0:this.activateEditMode()}onBlurred(t){if(!this.editable)return;this.disableEditMode();const r=t.target.innerText,o="string"==typeof this.model?r:{...this.model,[this.displayBy]:r};this.onBlur.emit(o)}getDisplayValue(t){return"string"==typeof t?t:t[this.displayBy]}get isRippleVisible(){return!this.readonly&&!this.editing&&kJ&&this.hasRipple}disableEditMode(t){const r=this.element.nativeElement.classList,o=this.getContentEditableText();this.editing=!1,r.remove("tag--editing"),o?(this.storeNewValue(o),this.cdRef.detectChanges(),t&&t.preventDefault()):this.setContentEditableText(this.model)}isDeleteIconVisible(){return!this.readonly&&!this.disabled&&this.removable&&!this.editing}getContentEditableText(){const t=this.getContentEditable();return t?t.innerText.trim():""}setContentEditableText(t){const r=this.getContentEditable(),o=this.getDisplayValue(t);r.innerText=o}activateEditMode(){this.element.nativeElement.classList.add("tag--editing"),this.editing=!0}storeNewValue(t){if((i=>"string"==typeof i?i===t:i[this.displayBy]===t)(this.model))return;const s="string"==typeof this.model?t:{index:this.index,[this.identifyBy]:(()=>this.model[this.identifyBy]!==this.model[this.displayBy])()?this.model[this.identifyBy]:t,[this.displayBy]:t};this.canAddTag(s)?this.onTagEdited.emit({tag:s,index:this.index}):this.setContentEditableText(this.model)}getContentEditable(){return this.element.nativeElement.querySelector("[contenteditable]")}}return e.\u0275fac=function(t){return new(t||e)(vt(Br),vt(Ol),vt(ms))},e.\u0275cmp=U1({type:e,selectors:[["tag"]],viewQuery:function(t,r){if(1&t&&jn(vS,5),2&t){let o;Kr(o=Qr())&&(r.ripple=o.first)}},hostVars:2,hostBindings:function(t,r){1&t&&ie("keydown",function(s){return r.keydown(s)}),2&t&&Zn("moving",r.moving)},inputs:{model:"model",removable:"removable",editable:"editable",template:"template",displayBy:"displayBy",identifyBy:"identifyBy",index:"index",hasRipple:"hasRipple",disabled:"disabled",canAddTag:"canAddTag"},outputs:{onSelect:"onSelect",onRemove:"onRemove",onBlur:"onBlur",onKeyDown:"onKeyDown",onTagEdited:"onTagEdited"},decls:4,vars:8,consts:[[3,"ngSwitch","click","dblclick","mousedown","mouseup"],[4,"ngSwitchCase"],["class","tag-wrapper",4,"ngSwitchCase"],[3,"state",4,"ngIf"],[3,"ngTemplateOutletContext","ngTemplateOutlet"],[1,"tag-wrapper"],["spellcheck","false",1,"tag__text","inline",3,"keydown.enter","keydown.escape","click","blur"],["aria-label","Remove tag","role","button",3,"click",4,"ngIf"],["aria-label","Remove tag","role","button",3,"click"],[3,"state"]],template:function(t,r){1&t&&(yt(0,"div",0),ie("click",function(s){return r.select(s)})("dblclick",function(){return r.toggleEditMode()})("mousedown",function(){return r.rippleState="clicked"})("mouseup",function(){return r.rippleState="none"}),Ze(1,XQ,2,6,"div",1),Ze(2,QQ,4,4,"div",2),Vt(),Ze(3,JQ,1,2,"tag-ripple",3)),2&t&&(Zn("disabled",r.disabled),xt("ngSwitch",!!r.template),Y1("tabindex",-1)("aria-label",r.getDisplayValue(r.model)),St(1),xt("ngSwitchCase",!0),St(1),xt("ngSwitchCase",!1),St(1),xt("ngIf",r.isRippleVisible))},dependencies:[CJ,vS,F4,e6,O4,Os],styles:["[_nghost-%COMP%], [_nghost-%COMP%] > div[_ngcontent-%COMP%], [_nghost-%COMP%] > div[_ngcontent-%COMP%]:focus{outline:0;overflow:hidden;transition:opacity 1s;z-index:1}[_nghost-%COMP%]{max-width:400px}.blink[_nghost-%COMP%]{-webkit-animation:_ngcontent-%COMP%_blink .3s normal forwards ease-in-out;animation:_ngcontent-%COMP%_blink .3s normal forwards ease-in-out}@-webkit-keyframes _ngcontent-%COMP%_blink{0%{opacity:.3}}@keyframes _ngcontent-%COMP%_blink{0%{opacity:.3}}[_nghost-%COMP%] .disabled[_ngcontent-%COMP%]{cursor:not-allowed}[_nghost-%COMP%] [contenteditable=true][_ngcontent-%COMP%]{outline:0}.tag-wrapper[_ngcontent-%COMP%]{flex-direction:row;display:flex}.tag__text[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}"]}),e})();const _J=[ja("animation",[ml("in",Tr({opacity:1})),ml("out",Tr({opacity:0})),rs(":enter",[D2("{{ enter }}",a5([Tr({opacity:0,offset:0,transform:"translate(0px, 20px)"}),Tr({opacity:.3,offset:.3,transform:"translate(0px, -10px)"}),Tr({opacity:.5,offset:.5,transform:"translate(0px, 0px)"}),Tr({opacity:.75,offset:.75,transform:"translate(0px, 5px)"}),Tr({opacity:1,offset:1,transform:"translate(0px, 0px)"})]))]),rs(":leave",[D2("{{ leave }}",a5([Tr({opacity:1,transform:"translateX(0)",offset:0}),Tr({opacity:1,transform:"translateX(-15px)",offset:.7}),Tr({opacity:0,transform:"translateX(100%)",offset:1})]))])])];let xJ=(()=>{class e{constructor(t){var r=this;this.injector=t,this.offset=J1.dropdown.offset,this.focusFirstElement=J1.dropdown.focusFirstElement,this.showDropdownIfEmpty=J1.dropdown.showDropdownIfEmpty,this.minimumTextLength=J1.dropdown.minimumTextLength,this.limitItemsTo=J1.dropdown.limitItemsTo,this.displayBy=J1.dropdown.displayBy,this.identifyBy=J1.dropdown.identifyBy,this.matchingFn=J1.dropdown.matchingFn,this.appendToBody=J1.dropdown.appendToBody,this.keepOpen=J1.dropdown.keepOpen,this.dynamicUpdate=J1.dropdown.dynamicUpdate,this.zIndex=J1.dropdown.zIndex,this.items=[],this.tagInput=this.injector.get(mS),this._autocompleteItems=[],this.show=()=>{const o=this.tagInput.items.length===this.tagInput.maxItems,s=this.getFormValue(),i=s.trim().length>=this.minimumTextLength,l=this.calculatePosition(),a=this.getMatchingItems(s),c=a.length>0,d=this.tagInput.disable,v=!1===this.isVisible&&(c&&i||this.showDropdownIfEmpty&&c&&!s),m=this.isVisible&&!c;return this.autocompleteObservable&&i?this.getItemsFromObservable(s):!this.showDropdownIfEmpty&&!s||o||d?this.dropdown.hide():(this.setItems(a),void(v?this.dropdown.show(l):m&&this.hide()))},this.requestAdding=function(){var o=Bi(function*(s){const i=r.createTagModel(s);yield r.tagInput.onAddingRequested(!0,i).catch(()=>{})});return function(s){return o.apply(this,arguments)}}(),this.resetItems=()=>{this.items=[]},this.getItemsFromObservable=o=>{this.setLoadingState(!0),this.autocompleteObservable(o).pipe(S9()).subscribe(i=>{this.setLoadingState(!1).populateItems(i),this.setItems(this.getMatchingItems(o)),this.items.length?this.dropdown.show(this.calculatePosition()):this.dropdown.hide()},()=>this.setLoadingState(!1))}}set autocompleteItems(t){this._autocompleteItems=t}get autocompleteItems(){const t=this._autocompleteItems;return t?t.map(r=>"string"==typeof r?{[this.displayBy]:r,[this.identifyBy]:r}:r):[]}ngAfterViewInit(){this.onItemClicked().subscribe(o=>{this.requestAdding(o)}),this.onHide().subscribe(this.resetItems);const r=this.keepOpen;this.tagInput.onTextChange.asObservable().pipe(bs(),ih(200),Zs(o=>!1!==r||o.length>0)).subscribe(this.show)}updatePosition(){const t=this.tagInput.inputForm.getElementPosition();this.dropdown.menu.updatePosition(t,this.dynamicUpdate)}get isVisible(){return this.dropdown.menu.dropdownState.menuState.isVisible}onHide(){return this.dropdown.onHide}onItemClicked(){return this.dropdown.onItemClicked}get selectedItem(){return this.dropdown.menu.dropdownState.dropdownState.selectedItem}get state(){return this.dropdown.menu.dropdownState}hide(){this.resetItems(),this.dropdown.hide()}scrollListener(){!this.isVisible||!this.dynamicUpdate||this.updatePosition()}onWindowBlur(){this.dropdown.hide()}getFormValue(){const t=this.tagInput.formValue;return t?t.toString().trim():""}calculatePosition(){return this.tagInput.inputForm.getElementPosition()}createTagModel(t){return{...t.value,[this.tagInput.displayBy]:"string"==typeof t.value?t.value:t.value[this.displayBy],[this.tagInput.identifyBy]:"string"==typeof t.value?t.value:t.value[this.identifyBy]}}getMatchingItems(t){if(!t&&!this.showDropdownIfEmpty)return[];const r=this.tagInput.allowDupes;return this.autocompleteItems.filter(o=>{const s=!r&&this.tagInput.tags.some(i=>("string"==typeof i.model?i.model:i.model[this.tagInput.identifyBy])===o[this.identifyBy]);return this.matchingFn(t,o)&&!1===s})}setItems(t){this.items=t.slice(0,this.limitItemsTo||t.length)}populateItems(t){return this.autocompleteItems=t.map(r=>"string"==typeof r?{[this.displayBy]:r,[this.identifyBy]:r}:r),this}setLoadingState(t){return this.tagInput.isLoading=t,this}}return e.\u0275fac=function(t){return new(t||e)(vt(v2))},e.\u0275cmp=U1({type:e,selectors:[["tag-input-dropdown"]],contentQueries:function(t,r,o){if(1&t&&ya(o,Vi,4),2&t){let s;Kr(s=Qr())&&(r.templates=s)}},viewQuery:function(t,r){if(1&t&&jn(aS,5),2&t){let o;Kr(o=Qr())&&(r.dropdown=o.first)}},hostBindings:function(t,r){1&t&&ie("scroll",function(){return r.scrollListener()},0,ap)("blur",function(){return r.onWindowBlur()},!1,ap)},inputs:{offset:"offset",focusFirstElement:"focusFirstElement",showDropdownIfEmpty:"showDropdownIfEmpty",autocompleteObservable:"autocompleteObservable",minimumTextLength:"minimumTextLength",limitItemsTo:"limitItemsTo",displayBy:"displayBy",identifyBy:"identifyBy",matchingFn:"matchingFn",appendToBody:"appendToBody",keepOpen:"keepOpen",dynamicUpdate:"dynamicUpdate",zIndex:"zIndex",autocompleteItems:"autocompleteItems"},decls:3,vars:6,consts:[[3,"dynamicUpdate"],[3,"focusFirstElement","zIndex","appendToBody","offset"],[3,"value","ngSwitch",4,"ngFor","ngForOf"],[3,"value","ngSwitch"],[3,"innerHTML",4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"innerHTML"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,r){1&t&&(yt(0,"ng2-dropdown",0)(1,"ng2-dropdown-menu",1),Ze(2,oJ,3,3,"ng2-menu-item",2),Vt()()),2&t&&(xt("dynamicUpdate",r.dynamicUpdate),St(1),xt("focusFirstElement",r.focusFirstElement)("zIndex",r.zIndex)("appendToBody",r.appendToBody)("offset",r.offset),St(1),xt("ngForOf",r.items))},dependencies:[aS,lS,iS,ba,F4,e6,Ky,O4,uJ],encapsulation:2}),e})();const MJ={provide:J2,useExisting:Hr(()=>mS),multi:!0};let mS=(()=>{class e extends wJ{constructor(t,r){var o;super(),o=this,this.renderer=t,this.dragProvider=r,this.separatorKeys=J1.tagInput.separatorKeys,this.separatorKeyCodes=J1.tagInput.separatorKeyCodes,this.placeholder=J1.tagInput.placeholder,this.secondaryPlaceholder=J1.tagInput.secondaryPlaceholder,this.maxItems=J1.tagInput.maxItems,this.validators=J1.tagInput.validators,this.asyncValidators=J1.tagInput.asyncValidators,this.onlyFromAutocomplete=J1.tagInput.onlyFromAutocomplete,this.errorMessages=J1.tagInput.errorMessages,this.theme=J1.tagInput.theme,this.onTextChangeDebounce=J1.tagInput.onTextChangeDebounce,this.inputId=J1.tagInput.inputId,this.inputClass=J1.tagInput.inputClass,this.clearOnBlur=J1.tagInput.clearOnBlur,this.hideForm=J1.tagInput.hideForm,this.addOnBlur=J1.tagInput.addOnBlur,this.addOnPaste=J1.tagInput.addOnPaste,this.pasteSplitPattern=J1.tagInput.pasteSplitPattern,this.blinkIfDupe=J1.tagInput.blinkIfDupe,this.removable=J1.tagInput.removable,this.editable=J1.tagInput.editable,this.allowDupes=J1.tagInput.allowDupes,this.modelAsStrings=J1.tagInput.modelAsStrings,this.trimTags=J1.tagInput.trimTags,this.ripple=J1.tagInput.ripple,this.tabindex=J1.tagInput.tabIndex,this.disable=J1.tagInput.disable,this.dragZone=J1.tagInput.dragZone,this.onRemoving=J1.tagInput.onRemoving,this.onAdding=J1.tagInput.onAdding,this.animationDuration=J1.tagInput.animationDuration,this.onAdd=new _e,this.onRemove=new _e,this.onSelect=new _e,this.onFocus=new _e,this.onBlur=new _e,this.onTextChange=new _e,this.onPaste=new _e,this.onValidationError=new _e,this.onTagEdited=new _e,this.isLoading=!1,this.listeners={[$m]:[],keyup:[]},this.inputTextChange=new _e,this.inputTextValue="",this.errors=[],this.appendTag=(s,i=this.items.length)=>{const l=this.items,a=this.modelAsStrings?s[this.identifyBy]:s;this.items=[...l.slice(0,i),a,...l.slice(i,l.length)]},this.createTag=s=>{const i=(l,a)=>"string"==typeof l?l.trim():l[a];return{..."string"!=typeof s?s:{},[this.displayBy]:this.trimTags?i(s,this.displayBy):s,[this.identifyBy]:this.trimTags?i(s,this.identifyBy):s}},this.isTagValid=(s,i=!1)=>{const l=this.dropdown?this.dropdown.selectedItem:void 0,a=this.getItemDisplay(s).trim();if(l&&!i||!a)return!1;const c=this.findDupe(s,i);if(!this.allowDupes&&c&&this.blinkIfDupe){const d=this.tags.find(v=>this.getItemValue(v.model)===this.getItemValue(c));d&&d.blink()}const u=[!c||this.allowDupes,!this.maxItemsReached,i&&this.onlyFromAutocomplete||!this.onlyFromAutocomplete];return u.filter(Boolean).length===u.length},this.onPasteCallback=function(){var s=Bi(function*(i){const a=(()=>{const u=!!window.clipboardData,d=u?window.clipboardData:i.clipboardData;return null===d?"":d.getData(u?"Text":"text/plain")||""})(),c=a.split(o.pasteSplitPattern).map(u=>{const d=o.createTag(u);return o.setInputValue(d[o.displayBy]),o.onAddingRequested(!1,d)}),h=()=>setTimeout(()=>o.setInputValue(""),50);Promise.all(c).then(()=>{o.onPaste.emit(a),h()}).catch(h)});return function(i){return s.apply(this,arguments)}}()}get inputText(){return this.inputTextValue}set inputText(t){this.inputTextValue=t,this.inputTextChange.emit(t)}get tabindexAttr(){return""!==this.tabindex?"-1":""}ngAfterViewInit(){this.setUpKeypressListeners(),this.setupSeparatorKeysListener(),this.setUpInputKeydownListeners(),this.onTextChange.observers.length&&this.setUpTextChangeSubscriber(),(this.clearOnBlur||this.addOnBlur)&&this.setUpOnBlurSubscriber(),this.addOnPaste&&this.setUpOnPasteListener();const t=this.inputForm.form.statusChanges;t.pipe(Zs(r=>"PENDING"!==r)).subscribe(()=>{this.errors=this.inputForm.getErrorMessages(this.errorMessages)}),this.isProgressBarVisible$=t.pipe(Qe(r=>"PENDING"===r||this.isLoading)),this.hideForm&&this.inputForm.destroy()}ngOnInit(){void 0!==this.maxItems&&this.items&&this.items.length>this.maxItems&&(this.maxItems=this.items.length,console.warn("The number of items specified was greater than the property max-items.")),this.editable=!this.onlyFromAutocomplete&&this.editable,this.setAnimationMetadata()}onRemoveRequested(t,r){return new Promise(o=>{const s=i=>{this.removeItem(i,r),o(t)};this.onRemoving?this.onRemoving(t).pipe(S9()).subscribe(s):s(t)})}onAddingRequested(t,r,o,s){return new Promise((i,l)=>{const a=c=>this.addItem(t,c,o,s).then(i).catch(l);return this.onAdding?this.onAdding(r).pipe(S9()).subscribe(a,l):a(r)})}selectItem(t,r=!0){t&&"string"!=typeof t&&t.readonly||this.selectedTag===t||(this.selectedTag=t,r&&this.onSelect.emit(t))}fireEvents(t,r){this.listeners[t].forEach(o=>o.call(this,r))}handleKeydown(t){const r=t.event,s=r.shiftKey||!1;switch(fJ[r.keyCode||r.which]){case"DELETE":if(this.selectedTag&&this.removable){const i=this.items.indexOf(this.selectedTag);this.onRemoveRequested(this.selectedTag,i)}break;case"SWITCH_PREV":this.moveToTag(t.model,Um);break;case"SWITCH_NEXT":this.moveToTag(t.model,A9);break;case"TAB":if(s){if(this.isFirstTag(t.model))return;this.moveToTag(t.model,Um)}else{if(this.isLastTag(t.model)&&(this.disable||this.maxItemsReached))return;this.moveToTag(t.model,A9)}break;default:return}r.preventDefault()}onFormSubmit(){var t=this;return Bi(function*(){try{yield t.onAddingRequested(!1,t.formValue)}catch{return}})()}setInputValue(t,r=!0){this.getControl().setValue(t,{emitEvent:r})}getControl(){return this.inputForm.value}focus(t=!1,r=!1){this.dragProvider.getState("dragging")||(this.selectItem(void 0,!1),t&&(this.inputForm.focus(),this.onFocus.emit(this.formValue)))}blur(){this.onTouched(),this.onBlur.emit(this.formValue)}hasErrors(){return!!this.inputForm&&this.inputForm.hasErrors()}isInputFocused(){return!!this.inputForm&&this.inputForm.isInputFocused()}hasCustomTemplate(){const t=this.templates?this.templates.first:void 0;return!(!t||t===(this.dropdown&&this.dropdown.templates?this.dropdown.templates.first:void 0))}get maxItemsReached(){return void 0!==this.maxItems&&this.items.length>=this.maxItems}get formValue(){const t=this.inputForm.value;return t?t.value:""}onDragStarted(t,r,o){t.stopPropagation();const s={zone:this.dragZone,tag:r,index:o};this.dragProvider.setSender(this),this.dragProvider.setDraggedItem(t,s),this.dragProvider.setState({dragging:!0,index:o})}onDragOver(t,r){this.dragProvider.setState({dropping:!0}),this.dragProvider.setReceiver(this),t.preventDefault()}onTagDropped(t,r){const o=this.dragProvider.getDraggedItem(t);!o||o.zone!==this.dragZone||(this.dragProvider.onTagDropped(o.tag,o.index,r),t.preventDefault(),t.stopPropagation())}isDropping(){const t=this.dragProvider.receiver===this,r=this.dragProvider.getState("dropping");return!(!t||!r)}onTagBlurred(t,r){this.items[r]=t,this.blur()}trackBy(t,r){return r[this.identifyBy]}updateEditedTag(t){this.onTagEdited.emit(t)}moveToTag(t,r){const o=this.isLastTag(t),s=this.isFirstTag(t);if(r===A9&&o||r===Um&&s)return void this.focus(!0);const l=r===A9?1:-1,a=this.getTagIndex(t)+l,c=this.getTagAtIndex(a);return c.select.call(c)}isFirstTag(t){return this.tags.first.model===t}isLastTag(t){return this.tags.last.model===t}getTagIndex(t){return this.tags.toArray().findIndex(o=>o.model===t)}getTagAtIndex(t){return this.tags.toArray()[t]}removeItem(t,r){this.items=this.getItemsWithout(r),this.selectedTag===t&&this.selectItem(void 0,!1),this.focus(!0,!1),this.onRemove.emit(t)}addItem(t=!1,r,o,s){const i=this.getItemDisplay(r),l=this.createTag(r);return t&&this.setInputValue(this.getItemValue(r,!0)),new Promise((a,c)=>{const h=()=>{this.setInputValue(""),this.focus(!s,!1),a(i)},u=()=>{this.appendTag(l,o),this.onAdd.emit(l),this.dropdown&&(this.dropdown.hide(),this.dropdown.showDropdownIfEmpty&&this.dropdown.show())},d=this.inputForm.form.status,v=this.isTagValid(l,t),m=()=>(this.onValidationError.emit(l),c());return"VALID"===d&&v?(u(),h()):"INVALID"!==d&&v?"PENDING"===d?this.inputForm.form.statusChanges.pipe(Zs(S=>"PENDING"!==S),S9()).subscribe(S=>"VALID"===S&&v?(u(),h()):(h(),m())):void 0:(h(),m())})}setupSeparatorKeysListener(){dS.call(this,$m,o=>{const s=this.separatorKeyCodes.indexOf(o.keyCode)>=0,i=this.separatorKeys.indexOf(o.key)>=0;(s||i&&229!==o.keyCode)&&(o.preventDefault(),this.onAddingRequested(!1,this.formValue).catch(()=>{}))},this.separatorKeyCodes.length>0||this.separatorKeys.length>0)}setUpKeypressListeners(){dS.call(this,$m,r=>{(37===r.keyCode||8===r.keyCode)&&!this.formValue&&this.items.length&&this.tags.last.select.call(this.tags.last)})}setUpInputKeydownListeners(){this.inputForm.onKeydown.subscribe(t=>{"Backspace"===t.key&&""===this.formValue.trim()&&t.preventDefault()})}setUpOnPasteListener(){this.renderer.listen(this.inputForm.input.nativeElement,"paste",r=>(this.onPasteCallback(r),r.preventDefault(),!0))}setUpTextChangeSubscriber(){this.inputForm.form.valueChanges.pipe(ih(this.onTextChangeDebounce)).subscribe(t=>{this.onTextChange.emit(t.item)})}setUpOnBlurSubscriber(){this.inputForm.onBlur.pipe(ih(100),Zs(()=>!(this.dropdown&&this.dropdown.isVisible||!this.formValue))).subscribe(()=>{const r=()=>this.setInputValue("");if(this.addOnBlur)return this.onAddingRequested(!1,this.formValue,void 0,!0).then(r).catch(r);r()})}findDupe(t,r){const s=t[r?this.dropdown.identifyBy:this.identifyBy];return this.items.find(i=>this.getItemValue(i)===s)}setAnimationMetadata(){this.animationMetadata={value:"in",params:{...this.animationDuration}}}}return e.\u0275fac=function(t){return new(t||e)(vt(Ol),vt(hS))},e.\u0275cmp=U1({type:e,selectors:[["tag-input"]],contentQueries:function(t,r,o){if(1&t&&(ya(o,xJ,5),ya(o,Vi,4)),2&t){let s;Kr(s=Qr())&&(r.dropdown=s.first),Kr(s=Qr())&&(r.templates=s)}},viewQuery:function(t,r){if(1&t&&(jn(pS,5),jn(fS,5)),2&t){let o;Kr(o=Qr())&&(r.inputForm=o.first),Kr(o=Qr())&&(r.tags=o)}},hostVars:1,hostBindings:function(t,r){2&t&&Y1("tabindex",r.tabindexAttr)},inputs:{separatorKeys:"separatorKeys",separatorKeyCodes:"separatorKeyCodes",placeholder:"placeholder",secondaryPlaceholder:"secondaryPlaceholder",maxItems:"maxItems",validators:"validators",asyncValidators:"asyncValidators",onlyFromAutocomplete:"onlyFromAutocomplete",errorMessages:"errorMessages",theme:"theme",onTextChangeDebounce:"onTextChangeDebounce",inputId:"inputId",inputClass:"inputClass",clearOnBlur:"clearOnBlur",hideForm:"hideForm",addOnBlur:"addOnBlur",addOnPaste:"addOnPaste",pasteSplitPattern:"pasteSplitPattern",blinkIfDupe:"blinkIfDupe",removable:"removable",editable:"editable",allowDupes:"allowDupes",modelAsStrings:"modelAsStrings",trimTags:"trimTags",inputText:"inputText",ripple:"ripple",tabindex:"tabindex",disable:"disable",dragZone:"dragZone",onRemoving:"onRemoving",onAdding:"onAdding",animationDuration:"animationDuration"},outputs:{onAdd:"onAdd",onRemove:"onRemove",onSelect:"onSelect",onFocus:"onFocus",onBlur:"onBlur",onTextChange:"onTextChange",onPaste:"onPaste",onValidationError:"onValidationError",onTagEdited:"onTagEdited",inputTextChange:"inputTextChange"},features:[Mr([MJ]),er],ngContentSelectors:cJ,decls:8,vars:27,consts:[[1,"ng2-tag-input",3,"ngClass","click","drop","dragenter","dragover","dragend"],[1,"ng2-tags-container"],[3,"draggable","canAddTag","disabled","hasRipple","index","removable","editable","displayBy","identifyBy","template","model","onSelect","onRemove","onKeyDown","onTagEdited","onBlur","dragstart","drop","dragenter","dragover","dragleave",4,"ngFor","ngForOf","ngForTrackBy"],[3,"inputText","disabled","validators","asyncValidators","hidden","placeholder","inputClass","inputId","tabindex","onSubmit","onBlur","click","onKeydown","onKeyup"],["class","progress-bar",4,"ngIf"],["class","error-messages",3,"ngClass",4,"ngIf"],[3,"draggable","canAddTag","disabled","hasRipple","index","removable","editable","displayBy","identifyBy","template","model","onSelect","onRemove","onKeyDown","onTagEdited","onBlur","dragstart","drop","dragenter","dragover","dragleave"],[1,"progress-bar"],[1,"error-messages",3,"ngClass"],["class","error-message",4,"ngFor","ngForOf"],[1,"error-message"]],template:function(t,r){1&t&&(Es(),yt(0,"div",0),ie("click",function(){return r.focus(!0,!1)})("drop",function(s){return r.dragZone?r.onTagDropped(s,void 0):void 0})("dragenter",function(s){return r.dragZone?r.onDragOver(s):void 0})("dragover",function(s){return r.dragZone?r.onDragOver(s):void 0})("dragend",function(){return r.dragZone?r.dragProvider.onDragEnd():void 0}),yt(1,"div",1),Ze(2,sJ,1,14,"tag",2),yt(3,"tag-input-form",3),ie("onSubmit",function(){return r.onFormSubmit()})("onBlur",function(){return r.blur()})("click",function(){return r.dropdown?r.dropdown.show():void 0})("onKeydown",function(s){return r.fireEvents("keydown",s)})("onKeyup",function(s){return r.fireEvents("keyup",s)}),Vt()(),Ze(4,iJ,1,0,"div",4),ci(5,"async"),Vt(),Ze(6,aJ,2,2,"div",5),g2(7)),2&t&&(Zn("ng2-tag-input--dropping",r.isDropping())("ng2-tag-input--disabled",r.disable)("ng2-tag-input--loading",r.isLoading)("ng2-tag-input--invalid",r.hasErrors())("ng2-tag-input--focused",r.isInputFocused()),xt("ngClass",r.theme),Y1("tabindex",-1),St(2),xt("ngForOf",r.items)("ngForTrackBy",r.trackBy),St(1),xt("inputText",r.inputText)("disabled",r.disable)("validators",r.validators)("asyncValidators",r.asyncValidators)("hidden",r.maxItemsReached)("placeholder",r.items.length?r.placeholder:r.secondaryPlaceholder)("inputClass",r.inputClass)("inputId",r.inputId)("tabindex",r.tabindex),St(1),xt("ngIf",Li(5,25,r.isProgressBarVisible$)),St(2),xt("ngIf",r.hasErrors()))},dependencies:[fS,pS,Di,ba,Os,Jy],styles:['.dark[_ngcontent-%COMP%] tag[_ngcontent-%COMP%]:focus{box-shadow:0 0 0 1px #323232}.ng2-tag-input.bootstrap3-info[_ngcontent-%COMP%]{background-color:#fff;display:inline-block;color:#555;vertical-align:middle;max-width:100%;height:42px;line-height:44px}.ng2-tag-input.bootstrap3-info[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{border:none;box-shadow:none;outline:none;background-color:transparent;padding:0 6px;margin:0;width:auto;max-width:inherit}.ng2-tag-input.bootstrap3-info[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::-moz-placeholder{color:#777;opacity:1}.ng2-tag-input.bootstrap3-info[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:-ms-input-placeholder{color:#777}.ng2-tag-input.bootstrap3-info[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::-webkit-input-placeholder{color:#777}.ng2-tag-input.bootstrap3-info[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{border:none;box-shadow:none}.bootstrap3-info.ng2-tag-input.ng2-tag-input--focused[_ngcontent-%COMP%]{box-shadow:inset 0 1px 1px #0006;border:1px solid #ccc}.bootstrap3-info.ng2-tag-input.ng2-tag-input--invalid[_ngcontent-%COMP%]{box-shadow:inset 0 1px 1px #d9534f}.ng2-tag-input[_ngcontent-%COMP%]{display:block;flex-direction:row;flex-wrap:wrap;position:relative;transition:all .25s;padding:.25rem 0;min-height:32px;cursor:text;border-bottom:2px solid #efefef}.ng2-tag-input[_ngcontent-%COMP%]:focus{outline:0}.ng2-tag-input.ng2-tag-input--dropping[_ngcontent-%COMP%]{opacity:.7}.ng2-tag-input.ng2-tag-input--focused[_ngcontent-%COMP%]{border-bottom:2px solid #2196F3}.ng2-tag-input.ng2-tag-input--invalid[_ngcontent-%COMP%]{border-bottom:2px solid #f44336}.ng2-tag-input.ng2-tag-input--loading[_ngcontent-%COMP%]{border:none}.ng2-tag-input.ng2-tag-input--disabled[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}.ng2-tag-input[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{margin:.1em 0}.ng2-tag-input[_ngcontent-%COMP%] .ng2-tags-container[_ngcontent-%COMP%]{flex-wrap:wrap;display:flex}.minimal.ng2-tag-input[_ngcontent-%COMP%]{display:block;flex-direction:row;flex-wrap:wrap;position:relative;cursor:text;border-bottom:1px solid transparent}.minimal.ng2-tag-input[_ngcontent-%COMP%]:focus{outline:0}.minimal.ng2-tag-input.ng2-tag-input--dropping[_ngcontent-%COMP%]{opacity:.7}.minimal.ng2-tag-input.ng2-tag-input--loading[_ngcontent-%COMP%]{border:none}.minimal.ng2-tag-input.ng2-tag-input--disabled[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}.minimal.ng2-tag-input[_ngcontent-%COMP%] .ng2-tags-container[_ngcontent-%COMP%]{flex-wrap:wrap;display:flex}.dark.ng2-tag-input[_ngcontent-%COMP%]{display:block;flex-direction:row;flex-wrap:wrap;position:relative;cursor:text;border-bottom:2px solid #444}.dark.ng2-tag-input[_ngcontent-%COMP%]:focus{outline:0}.dark.ng2-tag-input.ng2-tag-input--dropping[_ngcontent-%COMP%]{opacity:.7}.dark.ng2-tag-input.ng2-tag-input--loading[_ngcontent-%COMP%]{border:none}.dark.ng2-tag-input.ng2-tag-input--disabled[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}.dark.ng2-tag-input[_ngcontent-%COMP%] .ng2-tags-container[_ngcontent-%COMP%]{flex-wrap:wrap;display:flex}.bootstrap.ng2-tag-input[_ngcontent-%COMP%]{display:block;flex-direction:row;flex-wrap:wrap;position:relative;cursor:text;border-bottom:2px solid #efefef}.bootstrap.ng2-tag-input[_ngcontent-%COMP%]:focus{outline:0}.bootstrap.ng2-tag-input.ng2-tag-input--dropping[_ngcontent-%COMP%]{opacity:.7}.bootstrap.ng2-tag-input.ng2-tag-input--focused[_ngcontent-%COMP%]{border-bottom:2px solid #0275d8}.bootstrap.ng2-tag-input.ng2-tag-input--invalid[_ngcontent-%COMP%]{border-bottom:2px solid #d9534f}.bootstrap.ng2-tag-input.ng2-tag-input--loading[_ngcontent-%COMP%]{border:none}.bootstrap.ng2-tag-input.ng2-tag-input--disabled[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}.bootstrap.ng2-tag-input[_ngcontent-%COMP%] .ng2-tags-container[_ngcontent-%COMP%]{flex-wrap:wrap;display:flex}.bootstrap3-info.ng2-tag-input[_ngcontent-%COMP%]{display:block;flex-direction:row;flex-wrap:wrap;position:relative;padding:4px;cursor:text;box-shadow:inset 0 1px 1px #00000013;border-radius:4px}.bootstrap3-info.ng2-tag-input[_ngcontent-%COMP%]:focus{outline:0}.bootstrap3-info.ng2-tag-input.ng2-tag-input--dropping[_ngcontent-%COMP%]{opacity:.7}.bootstrap3-info.ng2-tag-input.ng2-tag-input--invalid[_ngcontent-%COMP%]{border-bottom:1px solid #d9534f}.bootstrap3-info.ng2-tag-input.ng2-tag-input--loading[_ngcontent-%COMP%]{border:none}.bootstrap3-info.ng2-tag-input.ng2-tag-input--disabled[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}.bootstrap3-info.ng2-tag-input[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{margin:.1em 0}.bootstrap3-info.ng2-tag-input[_ngcontent-%COMP%] .ng2-tags-container[_ngcontent-%COMP%]{flex-wrap:wrap;display:flex}.error-message[_ngcontent-%COMP%]{font-size:.8em;color:#f44336;margin:.5em 0 0}.bootstrap[_ngcontent-%COMP%] .error-message[_ngcontent-%COMP%]{color:#d9534f}.progress-bar[_ngcontent-%COMP%], .progress-bar[_ngcontent-%COMP%]:before{height:2px;width:100%;margin:0}.progress-bar[_ngcontent-%COMP%]{background-color:#2196f3;display:flex;position:absolute;bottom:0}.progress-bar[_ngcontent-%COMP%]:before{background-color:#82c4f8;content:"";-webkit-animation:_ngcontent-%COMP%_running-progress 2s cubic-bezier(.4,0,.2,1) infinite;animation:_ngcontent-%COMP%_running-progress 2s cubic-bezier(.4,0,.2,1) infinite}@-webkit-keyframes _ngcontent-%COMP%_running-progress{0%{margin-left:0;margin-right:100%}50%{margin-left:25%;margin-right:0}to{margin-left:100%;margin-right:0}}@keyframes _ngcontent-%COMP%_running-progress{0%{margin-left:0;margin-right:100%}50%{margin-left:25%;margin-right:0}to{margin-left:100%;margin-right:0}}tag[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;font-size:1em;letter-spacing:.05rem;color:#444;border-radius:16px;transition:all .3s;margin:.1rem .3rem .1rem 0;padding:.08rem .45rem;height:32px;line-height:34px;background:#efefef;-webkit-user-select:none;-moz-user-select:none;user-select:none;overflow:hidden;outline:0;cursor:pointer;position:relative}tag[_ngcontent-%COMP%]:not(.readonly):not(.tag--editing):focus{background:#2196F3;color:#fff;box-shadow:0 2px 3px 1px #d4d1d1}tag[_ngcontent-%COMP%]:not(.readonly):not(.tag--editing):active{background:#0d8aee;color:#fff;box-shadow:0 2px 3px 1px #d4d1d1}tag[_ngcontent-%COMP%]:not(:focus):not(.tag--editing):not(:active):not(.readonly):hover{background:#e2e2e2;color:#000;color:initial;box-shadow:0 2px 3px 1px #d4d1d1}tag.readonly[_ngcontent-%COMP%]{cursor:default}tag.readonly[_ngcontent-%COMP%]:focus, tag[_ngcontent-%COMP%]:focus{outline:0}tag.tag--editing[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #ccc;cursor:text}.minimal[_ngcontent-%COMP%] tag[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;border-radius:0;background:#f9f9f9;-webkit-user-select:none;-moz-user-select:none;user-select:none;overflow:hidden;outline:0;cursor:pointer;position:relative}.minimal[_ngcontent-%COMP%] tag[_ngcontent-%COMP%]:not(.readonly):not(.tag--editing):focus{background:#d0d0d0;color:#000;color:initial}.minimal[_ngcontent-%COMP%] tag[_ngcontent-%COMP%]:not(.readonly):not(.tag--editing):active{background:#d0d0d0;color:#000;color:initial}.minimal[_ngcontent-%COMP%] tag[_ngcontent-%COMP%]:not(:focus):not(.tag--editing):not(:active):not(.readonly):hover{background:#ececec}.minimal[_ngcontent-%COMP%] tag.readonly[_ngcontent-%COMP%]{cursor:default}.minimal[_ngcontent-%COMP%] tag.readonly[_ngcontent-%COMP%]:focus, .minimal[_ngcontent-%COMP%] tag[_ngcontent-%COMP%]:focus{outline:0}.minimal[_ngcontent-%COMP%] tag.tag--editing[_ngcontent-%COMP%]{cursor:text}.dark[_ngcontent-%COMP%] tag[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;color:#f9f9f9;border-radius:3px;background:#444;-webkit-user-select:none;-moz-user-select:none;user-select:none;overflow:hidden;outline:0;cursor:pointer;position:relative}.dark[_ngcontent-%COMP%] tag[_ngcontent-%COMP%]:not(.readonly):not(.tag--editing):focus{background:#efefef;color:#444}.dark[_ngcontent-%COMP%] tag[_ngcontent-%COMP%]:not(:focus):not(.tag--editing):not(:active):not(.readonly):hover{background:#2b2b2b;color:#f9f9f9}.dark[_ngcontent-%COMP%] tag.readonly[_ngcontent-%COMP%]{cursor:default}.dark[_ngcontent-%COMP%] tag.readonly[_ngcontent-%COMP%]:focus, .dark[_ngcontent-%COMP%] tag[_ngcontent-%COMP%]:focus{outline:0}.dark[_ngcontent-%COMP%] tag.tag--editing[_ngcontent-%COMP%]{cursor:text}.bootstrap[_ngcontent-%COMP%] tag[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;color:#f9f9f9;border-radius:.25rem;background:#0275d8;-webkit-user-select:none;-moz-user-select:none;user-select:none;overflow:hidden;outline:0;cursor:pointer;position:relative}.bootstrap[_ngcontent-%COMP%] tag[_ngcontent-%COMP%]:not(.readonly):not(.tag--editing):focus{background:#025aa5}.bootstrap[_ngcontent-%COMP%] tag[_ngcontent-%COMP%]:not(.readonly):not(.tag--editing):active{background:#025aa5}.bootstrap[_ngcontent-%COMP%] tag[_ngcontent-%COMP%]:not(:focus):not(.tag--editing):not(:active):not(.readonly):hover{background:#0267bf;color:#f9f9f9}.bootstrap[_ngcontent-%COMP%] tag.readonly[_ngcontent-%COMP%]{cursor:default}.bootstrap[_ngcontent-%COMP%] tag.readonly[_ngcontent-%COMP%]:focus, .bootstrap[_ngcontent-%COMP%] tag[_ngcontent-%COMP%]:focus{outline:0}.bootstrap[_ngcontent-%COMP%] tag.tag--editing[_ngcontent-%COMP%]{cursor:text}.bootstrap3-info[_ngcontent-%COMP%] tag[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;font-family:inherit;font-weight:400;font-size:95%;color:#fff;border-radius:.25em;background:#5bc0de;-webkit-user-select:none;-moz-user-select:none;user-select:none;overflow:hidden;outline:0;cursor:pointer;position:relative;padding:.25em .6em;text-align:center;white-space:nowrap}.bootstrap3-info[_ngcontent-%COMP%] tag[_ngcontent-%COMP%]:not(.readonly):not(.tag--editing):focus{background:#28a1c5}.bootstrap3-info[_ngcontent-%COMP%] tag[_ngcontent-%COMP%]:not(.readonly):not(.tag--editing):active{background:#28a1c5}.bootstrap3-info[_ngcontent-%COMP%] tag[_ngcontent-%COMP%]:not(:focus):not(.tag--editing):not(:active):not(.readonly):hover{background:#46b8da;color:#fff}.bootstrap3-info[_ngcontent-%COMP%] tag.readonly[_ngcontent-%COMP%]{cursor:default}.bootstrap3-info[_ngcontent-%COMP%] tag.readonly[_ngcontent-%COMP%]:focus, .bootstrap3-info[_ngcontent-%COMP%] tag[_ngcontent-%COMP%]:focus{outline:0}.bootstrap3-info[_ngcontent-%COMP%] tag.tag--editing[_ngcontent-%COMP%]{cursor:text}[_nghost-%COMP%]{display:block}'],data:{animation:_J}}),e})();const yJ=new Zm;let qm,wS=(()=>{class e{static withDefaults(t){yJ.setOptions(t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=K1({type:e}),e.\u0275inj=$1({providers:[hS,{provide:QL,useValue:!1}],imports:[[e2,Rm,Zu,$Q]]}),e})();try{qm=typeof Intl<"u"&&Intl.v8BreakIterator}catch{qm=!1}let Wu,c5,Wm,ns=(()=>{class e{constructor(t){this._platformId=t,this.isBrowser=this._platformId?function VF(e){return e===rH}(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!qm)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}static#t=this.\u0275fac=function(r){return new(r||e)(gt(un))};static#e=this.\u0275prov=xe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Ia(e){return function HJ(){if(null==Wu&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Wu=!0}))}finally{Wu=Wu||!1}return Wu}()?e:!!e.capture}function zJ(){if(null==c5){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return c5=!1,c5;if("scrollBehavior"in document.documentElement.style)c5=!0;else{const e=Element.prototype.scrollTo;c5=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}}return c5}function kS(){let e=typeof document<"u"&&document?document.activeElement:null;for(;e&&e.shadowRoot;){const n=e.shadowRoot.activeElement;if(n===e)break;e=n}return e}function Ra(e){return e.composedPath?e.composedPath()[0]:e.target}function Gm(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function wl(e,...n){return n.length?n.some(t=>e[t]):e.altKey||e.shiftKey||e.ctrlKey||e.metaKey}function MS(e){return Zs((n,t)=>e<=t)}function Ym(e){return Yt((n,t)=>{Hn(e).subscribe(ve(t,()=>t.complete(),qt)),!t.closed&&n.subscribe(t)})}function co(e){return null!=e&&"false"!=`${e}`}function E9(e,n=0){return function RJ(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}(e)?Number(e):n}function j9(e){return Array.isArray(e)?e:[e]}function Wo(e){return null==e?"":"string"==typeof e?e:`${e}px`}function uh(e){return e instanceof Br?e.nativeElement:e}let OJ=(()=>{class e{create(t){return typeof MutationObserver>"u"?null:new MutationObserver(t)}static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275prov=xe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),yS=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275mod=K1({type:e});static#r=this.\u0275inj=$1({providers:[OJ]})}return e})();function HS(e,n,t){e?$r(t,e,n):n()}function Ku(...e){const n=gr(e);return Yt((t,r)=>{(n?oh(e,t,n):oh(e,t)).subscribe(r)})}const zS=new Set;let v5,UJ=(()=>{class e{constructor(t,r){this._platform=t,this._nonce=r,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):qJ}matchMedia(t){return(this._platform.WEBKIT||this._platform.BLINK)&&function ZJ(e,n){if(!zS.has(e))try{v5||(v5=document.createElement("style"),n&&(v5.nonce=n),v5.setAttribute("type","text/css"),document.head.appendChild(v5)),v5.sheet&&(v5.sheet.insertRule(`@media ${e} {body{ }}`,0),zS.add(e))}catch(t){console.error(t)}}(t,this._nonce),this._matchMedia(t)}static#t=this.\u0275fac=function(r){return new(r||e)(gt(ns),gt(li,8))};static#e=this.\u0275prov=xe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function qJ(e){return{matches:"all"===e||""===e,media:e,addListener:()=>{},removeListener:()=>{}}}let WJ=(()=>{class e{constructor(t,r){this._mediaMatcher=t,this._zone=r,this._queries=new Map,this._destroySubject=new Dt}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return bS(j9(t)).some(o=>this._registerQuery(o).mql.matches)}observe(t){let s=function NJ(...e){const n=gr(e),t=Nn(e),{args:r,keys:o}=jL(e);if(0===r.length)return I2([],n);const s=new J(function $J(e,n,t=_t){return r=>{HS(n,()=>{const{length:o}=e,s=new Array(o);let i=o,l=o;for(let a=0;a{const c=I2(e[a],n);let h=!1;c.subscribe(ve(r,u=>{s[a]=u,h||(h=!0,l--),l||r.next(t(s.slice()))},()=>{--i||r.complete()}))},r)},r)}}(r,n,o?i=>PL(o,i):_t));return t?s.pipe(om(t)):s}(bS(j9(t)).map(i=>this._registerQuery(i).observable));return s=oh(s.pipe(A2(1)),s.pipe(MS(1),ih(0))),s.pipe(Qe(i=>{const l={matches:!1,breakpoints:{}};return i.forEach(({matches:a,query:c})=>{l.matches=l.matches||a,l.breakpoints[c]=a}),l}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const r=this._mediaMatcher.matchMedia(t),s={observable:new J(i=>{const l=a=>this._zone.run(()=>i.next(a));return r.addListener(l),()=>{r.removeListener(l)}}).pipe(Ku(r),Qe(({matches:i})=>({query:t,matches:i})),Ym(this._destroySubject)),mql:r};return this._queries.set(t,s),s}static#t=this.\u0275fac=function(r){return new(r||e)(gt(UJ),gt(_r))};static#e=this.\u0275prov=xe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function bS(e){return e.map(n=>n.split(",")).reduce((n,t)=>n.concat(t)).map(n=>n.trim())}let KJ=(()=>{class e{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function JJ(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const r=function QJ(e){try{return e.frameElement}catch{return null}}(function ltt(e){return e.ownerDocument&&e.ownerDocument.defaultView||window}(t));if(r&&(-1===DS(r)||!this.isVisible(r)))return!1;let o=t.nodeName.toLowerCase(),s=DS(t);return t.hasAttribute("contenteditable")?-1!==s:!("iframe"===o||"object"===o||this._platform.WEBKIT&&this._platform.IOS&&!function stt(e){let n=e.nodeName.toLowerCase(),t="input"===n&&e.type;return"text"===t||"password"===t||"select"===n||"textarea"===n}(t))&&("audio"===o?!!t.hasAttribute("controls")&&-1!==s:"video"===o?-1!==s&&(null!==s||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}isFocusable(t,r){return function itt(e){return!function ett(e){return function ntt(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function ttt(e){let n=e.nodeName.toLowerCase();return"input"===n||"select"===n||"button"===n||"textarea"===n}(e)||function rtt(e){return function ott(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||AS(e))}(t)&&!this.isDisabled(t)&&(r?.ignoreVisibility||this.isVisible(t))}static#t=this.\u0275fac=function(r){return new(r||e)(gt(ns))};static#e=this.\u0275prov=xe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function AS(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;let n=e.getAttribute("tabindex");return!(!n||isNaN(parseInt(n,10)))}function DS(e){if(!AS(e))return null;const n=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(n)?-1:n}class BS{get enabled(){return this._enabled}set enabled(n){this._enabled=n,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}constructor(n,t,r,o,s=!1){this._element=n,this._checker=t,this._ngZone=r,this._document=o,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}destroy(){const n=this._startAnchor,t=this._endAnchor;n&&(n.removeEventListener("focus",this.startAnchorListener),n.remove()),t&&(t.removeEventListener("focus",this.endAnchorListener),t.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(n){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement(n)))})}focusFirstTabbableElementWhenReady(n){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement(n)))})}focusLastTabbableElementWhenReady(n){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement(n)))})}_getRegionBoundary(n){const t=this._element.querySelectorAll(`[cdk-focus-region-${n}], [cdkFocusRegion${n}], [cdk-focus-${n}]`);return"start"==n?t.length?t[0]:this._getFirstTabbableElement(this._element):t.length?t[t.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(n){const t=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(t){if(!this._checker.isFocusable(t)){const r=this._getFirstTabbableElement(t);return r?.focus(n),!!r}return t.focus(n),!0}return this.focusFirstTabbableElement(n)}focusFirstTabbableElement(n){const t=this._getRegionBoundary("start");return t&&t.focus(n),!!t}focusLastTabbableElement(n){const t=this._getRegionBoundary("end");return t&&t.focus(n),!!t}hasAttached(){return this._hasAttached}_getFirstTabbableElement(n){if(this._checker.isFocusable(n)&&this._checker.isTabbable(n))return n;const t=n.children;for(let r=0;r=0;r--){const o=t[r].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[r]):null;if(o)return o}return null}_createAnchor(){const n=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,n),n.classList.add("cdk-visually-hidden"),n.classList.add("cdk-focus-trap-anchor"),n.setAttribute("aria-hidden","true"),n}_toggleAnchorTabIndex(n,t){n?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}toggleAnchors(n){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}_executeOnStable(n){this._ngZone.isStable?n():this._ngZone.onStable.pipe(A2(1)).subscribe(n)}}let att=(()=>{class e{constructor(t,r,o){this._checker=t,this._ngZone=r,this._document=o}create(t,r=!1){return new BS(t,this._checker,this._ngZone,this._document,r)}static#t=this.\u0275fac=function(r){return new(r||e)(gt(KJ),gt(_r),gt(wn))};static#e=this.\u0275prov=xe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),ctt=(()=>{class e{get enabled(){return this.focusTrap.enabled}set enabled(t){this.focusTrap.enabled=co(t)}get autoCapture(){return this._autoCapture}set autoCapture(t){this._autoCapture=co(t)}constructor(t,r,o){this._elementRef=t,this._focusTrapFactory=r,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(t){const r=t.autoCapture;r&&!r.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=kS(),this.focusTrap.focusInitialElementWhenReady()}static#t=this.\u0275fac=function(r){return new(r||e)(vt(Br),vt(att),vt(wn))};static#e=this.\u0275dir=s1({type:e,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[mo]})}return e})();function TS(e){return 0===e.buttons||0===e.detail}function ES(e){const n=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return!(!n||-1!==n.identifier||null!=n.radiusX&&1!==n.radiusX||null!=n.radiusY&&1!==n.radiusY)}const htt=new Me("cdk-input-modality-detector-options"),utt={ignoreKeys:[18,17,224,91,16]},dh=Ia({passive:!0,capture:!0});let dtt=(()=>{class e{get mostRecentModality(){return this._modality.value}constructor(t,r,o,s){this._platform=t,this._mostRecentTarget=null,this._modality=new Fa(null),this._lastTouchMs=0,this._onKeydown=i=>{this._options?.ignoreKeys?.some(l=>l===i.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Ra(i))},this._onMousedown=i=>{Date.now()-this._lastTouchMs<650||(this._modality.next(TS(i)?"keyboard":"mouse"),this._mostRecentTarget=Ra(i))},this._onTouchstart=i=>{ES(i)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Ra(i))},this._options={...utt,...s},this.modalityDetected=this._modality.pipe(MS(1)),this.modalityChanged=this.modalityDetected.pipe(bs()),t.isBrowser&&r.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,dh),o.addEventListener("mousedown",this._onMousedown,dh),o.addEventListener("touchstart",this._onTouchstart,dh)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,dh),document.removeEventListener("mousedown",this._onMousedown,dh),document.removeEventListener("touchstart",this._onTouchstart,dh))}static#t=this.\u0275fac=function(r){return new(r||e)(gt(ns),gt(_r),gt(wn),gt(htt,8))};static#e=this.\u0275prov=xe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const vtt=new Me("cdk-focus-monitor-default-options"),P9=Ia({passive:!0,capture:!0});let PS=(()=>{class e{constructor(t,r,o,s,i){this._ngZone=t,this._platform=r,this._inputModalityDetector=o,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new Dt,this._rootNodeFocusAndBlurListener=l=>{for(let c=Ra(l);c;c=c.parentElement)"focus"===l.type?this._onFocus(l,c):this._onBlur(l,c)},this._document=s,this._detectionMode=i?.detectionMode||0}monitor(t,r=!1){const o=uh(t);if(!this._platform.isBrowser||1!==o.nodeType)return po();const s=function LJ(e){if(function bJ(){if(null==Wm){const e=typeof document<"u"?document.head:null;Wm=!(!e||!e.createShadowRoot&&!e.attachShadow)}return Wm}()){const n=e.getRootNode?e.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}(o)||this._getDocument(),i=this._elementInfo.get(o);if(i)return r&&(i.checkChildren=!0),i.subject;const l={checkChildren:r,subject:new Dt,rootNode:s};return this._elementInfo.set(o,l),this._registerGlobalListeners(l),l.subject}stopMonitoring(t){const r=uh(t),o=this._elementInfo.get(r);o&&(o.subject.complete(),this._setClasses(r),this._elementInfo.delete(r),this._removeGlobalListeners(o))}focusVia(t,r,o){const s=uh(t);s===this._getDocument().activeElement?this._getClosestElementsInfo(s).forEach(([l,a])=>this._originChanged(l,r,a)):(this._setOrigin(r),"function"==typeof s.focus&&s.focus(o))}ngOnDestroy(){this._elementInfo.forEach((t,r)=>this.stopMonitoring(r))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:t&&this._isLastInteractionFromInputLabel(t)?"mouse":"program"}_shouldBeAttributedToTouch(t){return 1===this._detectionMode||!!t?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(t,r){t.classList.toggle("cdk-focused",!!r),t.classList.toggle("cdk-touch-focused","touch"===r),t.classList.toggle("cdk-keyboard-focused","keyboard"===r),t.classList.toggle("cdk-mouse-focused","mouse"===r),t.classList.toggle("cdk-program-focused","program"===r)}_setOrigin(t,r=!1){this._ngZone.runOutsideAngular(()=>{this._origin=t,this._originFromTouchInteraction="touch"===t&&r,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(t,r){const o=this._elementInfo.get(r),s=Ra(t);!o||!o.checkChildren&&r!==s||this._originChanged(r,this._getFocusOrigin(s),o)}_onBlur(t,r){const o=this._elementInfo.get(r);!o||o.checkChildren&&t.relatedTarget instanceof Node&&r.contains(t.relatedTarget)||(this._setClasses(r),this._emitOrigin(o,null))}_emitOrigin(t,r){t.subject.observers.length&&this._ngZone.run(()=>t.subject.next(r))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const r=t.rootNode,o=this._rootNodeFocusListenerCount.get(r)||0;o||this._ngZone.runOutsideAngular(()=>{r.addEventListener("focus",this._rootNodeFocusAndBlurListener,P9),r.addEventListener("blur",this._rootNodeFocusAndBlurListener,P9)}),this._rootNodeFocusListenerCount.set(r,o+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Ym(this._stopInputModalityDetector)).subscribe(s=>{this._setOrigin(s,!0)}))}_removeGlobalListeners(t){const r=t.rootNode;if(this._rootNodeFocusListenerCount.has(r)){const o=this._rootNodeFocusListenerCount.get(r);o>1?this._rootNodeFocusListenerCount.set(r,o-1):(r.removeEventListener("focus",this._rootNodeFocusAndBlurListener,P9),r.removeEventListener("blur",this._rootNodeFocusAndBlurListener,P9),this._rootNodeFocusListenerCount.delete(r))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(t,r,o){this._setClasses(t,r),this._emitOrigin(o,r),this._lastFocusOrigin=r}_getClosestElementsInfo(t){const r=[];return this._elementInfo.forEach((o,s)=>{(s===t||o.checkChildren&&s.contains(t))&&r.push([s,o])}),r}_isLastInteractionFromInputLabel(t){const{_mostRecentTarget:r,mostRecentModality:o}=this._inputModalityDetector;if("mouse"!==o||!r||r===t||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName||t.disabled)return!1;const s=t.labels;if(s)for(let i=0;i{class e{constructor(t,r){this._elementRef=t,this._focusMonitor=r,this._focusOrigin=null,this.cdkFocusChange=new _e}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const t=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(t,1===t.nodeType&&t.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(r=>{this._focusOrigin=r,this.cdkFocusChange.emit(r)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static#t=this.\u0275fac=function(r){return new(r||e)(vt(Br),vt(PS))};static#e=this.\u0275dir=s1({type:e,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return e})();const RS="cdk-high-contrast-black-on-white",FS="cdk-high-contrast-white-on-black",Km="cdk-high-contrast-active";let OS=(()=>{class e{constructor(t,r){this._platform=t,this._document=r,this._breakpointSubscription=g1(WJ).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const r=this._document.defaultView||window,o=r&&r.getComputedStyle?r.getComputedStyle(t):null,s=(o&&o.backgroundColor||"").replace(/ /g,"");switch(t.remove(),s){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(Km,RS,FS),this._hasCheckedHighContrastMode=!0;const r=this.getHighContrastMode();1===r?t.add(Km,RS):2===r&&t.add(Km,FS)}}static#t=this.\u0275fac=function(r){return new(r||e)(gt(ns),gt(wn))};static#e=this.\u0275prov=xe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),NS=(()=>{class e{constructor(t){t._applyBodyHighContrastModeCssClasses()}static#t=this.\u0275fac=function(r){return new(r||e)(gt(OS))};static#e=this.\u0275mod=K1({type:e});static#r=this.\u0275inj=$1({imports:[yS]})}return e})();const gtt=new Me("cdk-dir-doc",{providedIn:"root",factory:function ftt(){return g1(wn)}}),mtt=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let S0=(()=>{class e{constructor(t){this.value="ltr",this.change=new _e,t&&(this.value=function wtt(e){const n=e?.toLowerCase()||"";return"auto"===n&&typeof navigator<"u"&&navigator?.language?mtt.test(navigator.language)?"rtl":"ltr":"rtl"===n?"rtl":"ltr"}((t.body?t.body.dir:null)||(t.documentElement?t.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static#t=this.\u0275fac=function(r){return new(r||e)(gt(gtt,8))};static#e=this.\u0275prov=xe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Qu=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275mod=K1({type:e});static#r=this.\u0275inj=$1({})}return e})();const ktt=new Me("mat-sanity-checks",{providedIn:"root",factory:function Ctt(){return!0}});let w2=(()=>{class e{constructor(t,r,o){this._sanityChecks=r,this._document=o,this._hasDoneGlobalChecks=!1,t._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(t){return!Gm()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[t])}static#t=this.\u0275fac=function(r){return new(r||e)(gt(OS),gt(ktt,8),gt(wn))};static#e=this.\u0275mod=K1({type:e});static#r=this.\u0275inj=$1({imports:[Qu,Qu]})}return e})();function ZS(e){return class extends e{get disabled(){return this._disabled}set disabled(n){this._disabled=co(n)}constructor(...n){super(...n),this._disabled=!1}}}function I9(e,n){return class extends e{get color(){return this._color}set color(t){const r=t||this.defaultColor;r!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),r&&this._elementRef.nativeElement.classList.add(`mat-${r}`),this._color=r)}constructor(...t){super(...t),this.defaultColor=n,this.color=n}}}function qS(e){return class extends e{get disableRipple(){return this._disableRipple}set disableRipple(n){this._disableRipple=co(n)}constructor(...n){super(...n),this._disableRipple=!1}}}function xtt(e){return class extends e{updateErrorState(){const n=this.errorState,s=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);s!==n&&(this.errorState=s,this.stateChanges.next())}constructor(...n){super(...n),this.errorState=!1}}}const Mtt=new Me("MAT_DATE_LOCALE",{providedIn:"root",factory:function ytt(){return g1(ql)}});class Bo{constructor(){this._localeChanges=new Dt,this.localeChanges=this._localeChanges}getValidDateOrNull(n){return this.isDateInstance(n)&&this.isValid(n)?n:null}deserialize(n){return null==n||this.isDateInstance(n)&&this.isValid(n)?n:this.invalid()}setLocale(n){this.locale=n,this._localeChanges.next()}compareDate(n,t){return this.getYear(n)-this.getYear(t)||this.getMonth(n)-this.getMonth(t)||this.getDate(n)-this.getDate(t)}sameDate(n,t){if(n&&t){let r=this.isValid(n),o=this.isValid(t);return r&&o?!this.compareDate(n,t):r==o}return n==t}clampDate(n,t,r){return t&&this.compareDate(n,t)<0?t:r&&this.compareDate(n,r)>0?r:n}}const Kl=new Me("mat-date-formats"),Htt=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Qm(e,n){const t=Array(e);for(let r=0;r{class e extends Bo{constructor(t,r){super(),this.useUtcForDisplay=!1,super.setLocale(t)}getYear(t){return t.getFullYear()}getMonth(t){return t.getMonth()}getDate(t){return t.getDate()}getDayOfWeek(t){return t.getDay()}getMonthNames(t){const r=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return Qm(12,o=>this._format(r,new Date(2017,o,1)))}getDateNames(){const t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Qm(31,r=>this._format(t,new Date(2017,0,r+1)))}getDayOfWeekNames(t){const r=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return Qm(7,o=>this._format(r,new Date(2017,0,o+1)))}getYearName(t){const r=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(r,t)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(t){return this.getDate(this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0))}clone(t){return new Date(t.getTime())}createDate(t,r,o){let s=this._createDateWithOverflow(t,r,o);return s.getMonth(),s}today(){return new Date}parse(t,r){return"number"==typeof t?new Date(t):t?new Date(Date.parse(t)):null}format(t,r){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");const o=new Intl.DateTimeFormat(this.locale,{...r,timeZone:"utc"});return this._format(o,t)}addCalendarYears(t,r){return this.addCalendarMonths(t,12*r)}addCalendarMonths(t,r){let o=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+r,this.getDate(t));return this.getMonth(o)!=((this.getMonth(t)+r)%12+12)%12&&(o=this._createDateWithOverflow(this.getYear(o),this.getMonth(o),0)),o}addCalendarDays(t,r){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+r)}toIso8601(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}deserialize(t){if("string"==typeof t){if(!t)return null;if(Htt.test(t)){let r=new Date(t);if(this.isValid(r))return r}}return super.deserialize(t)}isDateInstance(t){return t instanceof Date}isValid(t){return!isNaN(t.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(t,r,o){const s=new Date;return s.setFullYear(t,r,o),s.setHours(0,0,0,0),s}_2digit(t){return("00"+t).slice(-2)}_format(t,r){const o=new Date;return o.setUTCFullYear(r.getFullYear(),r.getMonth(),r.getDate()),o.setUTCHours(r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()),t.format(o)}static#t=this.\u0275fac=function(r){return new(r||e)(gt(Mtt,8),gt(ns))};static#e=this.\u0275prov=xe({token:e,factory:e.\u0275fac})}return e})();const btt={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let Ltt=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275mod=K1({type:e});static#r=this.\u0275inj=$1({providers:[{provide:Bo,useClass:ztt}]})}return e})(),WS=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275mod=K1({type:e});static#r=this.\u0275inj=$1({providers:[{provide:Kl,useValue:btt}],imports:[Ltt]})}return e})(),Jm=(()=>{class e{isErrorState(t,r){return!!(t&&t.invalid&&(t.touched||r&&r.submitted))}static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275prov=xe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class Vtt{constructor(n,t,r,o=!1){this._renderer=n,this.element=t,this.config=r,this._animationForciblyDisabledThroughCss=o,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const GS=Ia({passive:!0,capture:!0});class Stt{constructor(){this._events=new Map,this._delegateEventHandler=n=>{const t=Ra(n);t&&this._events.get(n.type)?.forEach((r,o)=>{(o===t||o.contains(t))&&r.forEach(s=>s.handleEvent(n))})}}addHandler(n,t,r,o){const s=this._events.get(t);if(s){const i=s.get(r);i?i.add(o):s.set(r,new Set([o]))}else this._events.set(t,new Map([[r,new Set([o])]])),n.runOutsideAngular(()=>{document.addEventListener(t,this._delegateEventHandler,GS)})}removeHandler(n,t,r){const o=this._events.get(n);if(!o)return;const s=o.get(t);s&&(s.delete(r),0===s.size&&o.delete(t),0===o.size&&(this._events.delete(n),document.removeEventListener(n,this._delegateEventHandler,GS)))}}const YS={enterDuration:225,exitDuration:150},XS=Ia({passive:!0,capture:!0}),KS=["mousedown","touchstart"],QS=["mouseup","mouseleave","touchend","touchcancel"];class R9{static#t=this._eventManager=new Stt;constructor(n,t,r,o){this._target=n,this._ngZone=t,this._platform=o,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,o.isBrowser&&(this._containerElement=uh(r))}fadeInRipple(n,t,r={}){const o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s={...YS,...r.animation};r.centered&&(n=o.left+o.width/2,t=o.top+o.height/2);const i=r.radius||function Dtt(e,n,t){const r=Math.max(Math.abs(e-t.left),Math.abs(e-t.right)),o=Math.max(Math.abs(n-t.top),Math.abs(n-t.bottom));return Math.sqrt(r*r+o*o)}(n,t,o),l=n-o.left,a=t-o.top,c=s.enterDuration,h=document.createElement("div");h.classList.add("mat-ripple-element"),h.style.left=l-i+"px",h.style.top=a-i+"px",h.style.height=2*i+"px",h.style.width=2*i+"px",null!=r.color&&(h.style.backgroundColor=r.color),h.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(h);const u=window.getComputedStyle(h),v=u.transitionDuration,m="none"===u.transitionProperty||"0s"===v||"0s, 0s"===v||0===o.width&&0===o.height,L=new Vtt(this,h,r,m);h.style.transform="scale3d(1, 1, 1)",L.state=0,r.persistent||(this._mostRecentTransientRipple=L);let S=null;return!m&&(c||s.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const j=()=>this._finishRippleTransition(L),N=()=>this._destroyRipple(L);h.addEventListener("transitionend",j),h.addEventListener("transitioncancel",N),S={onTransitionEnd:j,onTransitionCancel:N}}),this._activeRipples.set(L,S),(m||!c)&&this._finishRippleTransition(L),L}fadeOutRipple(n){if(2===n.state||3===n.state)return;const t=n.element,r={...YS,...n.config.animation};t.style.transitionDuration=`${r.exitDuration}ms`,t.style.opacity="0",n.state=2,(n._animationForciblyDisabledThroughCss||!r.exitDuration)&&this._finishRippleTransition(n)}fadeOutAll(){this._getActiveRipples().forEach(n=>n.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(n=>{n.config.persistent||n.fadeOut()})}setupTriggerEvents(n){const t=uh(n);!this._platform.isBrowser||!t||t===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=t,KS.forEach(r=>{R9._eventManager.addHandler(this._ngZone,r,t,this)}))}handleEvent(n){"mousedown"===n.type?this._onMousedown(n):"touchstart"===n.type?this._onTouchStart(n):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{QS.forEach(t=>{this._triggerElement.addEventListener(t,this,XS)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(n){0===n.state?this._startFadeOutTransition(n):2===n.state&&this._destroyRipple(n)}_startFadeOutTransition(n){const t=n===this._mostRecentTransientRipple,{persistent:r}=n.config;n.state=1,!r&&(!t||!this._isPointerDown)&&n.fadeOut()}_destroyRipple(n){const t=this._activeRipples.get(n)??null;this._activeRipples.delete(n),this._activeRipples.size||(this._containerRect=null),n===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),n.state=3,null!==t&&(n.element.removeEventListener("transitionend",t.onTransitionEnd),n.element.removeEventListener("transitioncancel",t.onTransitionCancel)),n.element.remove()}_onMousedown(n){const t=TS(n),r=this._lastTouchStartEvent&&Date.now(){!n.config.persistent&&(1===n.state||n.config.terminateOnPointerUp&&0===n.state)&&n.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const n=this._triggerElement;n&&(KS.forEach(t=>R9._eventManager.removeHandler(t,n,this)),this._pointerUpEventsRegistered&&QS.forEach(t=>n.removeEventListener(t,this,XS)))}}const JS=new Me("mat-ripple-global-options");let tw=(()=>{class e{get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}constructor(t,r,o,s,i){this._elementRef=t,this._animationMode=i,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new R9(this,r,t,o)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,r=0,o){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,r,{...this.rippleConfig,...o}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...t})}static#t=this.\u0275fac=function(r){return new(r||e)(vt(Br),vt(_r),vt(ns),vt(JS,8),vt(yi,8))};static#e=this.\u0275dir=s1({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(r,o){2&r&&Zn("mat-ripple-unbounded",o.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]})}return e})(),ew=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275mod=K1({type:e});static#r=this.\u0275inj=$1({imports:[w2,w2]})}return e})(),Btt=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275mod=K1({type:e});static#r=this.\u0275inj=$1({imports:[w2]})}return e})(),tA=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275mod=K1({type:e});static#r=this.\u0275inj=$1({imports:[ew,e2,w2,Btt]})}return e})();const eA={capture:!0},rA=["focus","click","mouseenter","touchstart"],rw="mat-ripple-loader-uninitialized",nw="mat-ripple-loader-class-name",nA="mat-ripple-loader-centered",F9="mat-ripple-loader-disabled";let Ptt=(()=>{class e{constructor(){this._document=g1(wn,{optional:!0}),this._animationMode=g1(yi,{optional:!0}),this._globalRippleOptions=g1(JS,{optional:!0}),this._platform=g1(ns),this._ngZone=g1(_r),this._hosts=new Map,this._onInteraction=t=>{if(!(t.target instanceof HTMLElement))return;const o=t.target.closest(`[${rw}]`);o&&this._createRipple(o)},this._ngZone.runOutsideAngular(()=>{for(const t of rA)this._document?.addEventListener(t,this._onInteraction,eA)})}ngOnDestroy(){const t=this._hosts.keys();for(const r of t)this.destroyRipple(r);for(const r of rA)this._document?.removeEventListener(r,this._onInteraction,eA)}configureRipple(t,r){t.setAttribute(rw,""),(r.className||!t.hasAttribute(nw))&&t.setAttribute(nw,r.className||""),r.centered&&t.setAttribute(nA,""),r.disabled&&t.setAttribute(F9,"")}getRipple(t){return this._hosts.get(t)||this._createRipple(t)}setDisabled(t,r){const o=this._hosts.get(t);o?o.disabled=r:r?t.setAttribute(F9,""):t.removeAttribute(F9)}_createRipple(t){if(!this._document)return;const r=this._hosts.get(t);if(r)return r;t.querySelector(".mat-ripple")?.remove();const o=this._document.createElement("span");o.classList.add("mat-ripple",t.getAttribute(nw)),t.append(o);const s=new tw(new Br(o),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return s._isInitialized=!0,s.trigger=t,s.centered=t.hasAttribute(nA),s.disabled=t.hasAttribute(F9),this.attachRipple(t,s),s}attachRipple(t,r){t.removeAttribute(rw),this._hosts.set(t,r)}destroyRipple(t){const r=this._hosts.get(t);r&&(r.ngOnDestroy(),this._hosts.delete(t))}static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275prov=xe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Itt=["determinateSpinner"];function Rtt(e,n){if(1&e&&(s0(),yt(0,"svg",11),rr(1,"circle",12),Vt()),2&e){const t=Zt();Y1("viewBox",t._viewBox()),St(1),bi("stroke-dasharray",t._strokeCircumference(),"px")("stroke-dashoffset",t._strokeCircumference()/2,"px")("stroke-width",t._circleStrokeWidth(),"%"),Y1("r",t._circleRadius())}}const Ftt=I9(class{constructor(e){this._elementRef=e}},"primary"),Ott=new Me("mat-progress-spinner-default-options",{providedIn:"root",factory:function Ntt(){return{diameter:oA}}}),oA=100;let Utt=(()=>{class e extends Ftt{constructor(t,r,o){super(t),this.mode="mat-spinner"===this._elementRef.nativeElement.nodeName.toLowerCase()?"indeterminate":"determinate",this._value=0,this._diameter=oA,this._noopAnimations="NoopAnimations"===r&&!!o&&!o._forceAnimations,o&&(o.color&&(this.color=this.defaultColor=o.color),o.diameter&&(this.diameter=o.diameter),o.strokeWidth&&(this.strokeWidth=o.strokeWidth))}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,E9(t)))}get diameter(){return this._diameter}set diameter(t){this._diameter=E9(t)}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(t){this._strokeWidth=E9(t)}_circleRadius(){return(this.diameter-10)/2}_viewBox(){const t=2*this._circleRadius()+this.strokeWidth;return`0 0 ${t} ${t}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return"determinate"===this.mode?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}static#t=this.\u0275fac=function(r){return new(r||e)(vt(Br),vt(yi,8),vt(Ott))};static#e=this.\u0275cmp=U1({type:e,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(r,o){if(1&r&&jn(Itt,5),2&r){let s;Kr(s=Qr())&&(o._determinateCircle=s.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:16,hostBindings:function(r,o){2&r&&(Y1("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow","determinate"===o.mode?o.value:null)("mode",o.mode),bi("width",o.diameter,"px")("height",o.diameter,"px")("--mdc-circular-progress-size",o.diameter+"px")("--mdc-circular-progress-active-indicator-width",o.diameter+"px"),Zn("_mat-animation-noopable",o._noopAnimations)("mdc-circular-progress--indeterminate","indeterminate"===o.mode))},inputs:{color:"color",mode:"mode",value:"value",diameter:"diameter",strokeWidth:"strokeWidth"},exportAs:["matProgressSpinner"],features:[er],decls:14,vars:11,consts:[["circle",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["determinateSpinner",""],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(r,o){if(1&r&&(Ze(0,Rtt,2,8,"ng-template",null,0,hl),yt(2,"div",1,2),s0(),yt(4,"svg",3),rr(5,"circle",4),Vt()(),Xh(),yt(6,"div",5)(7,"div",6)(8,"div",7),u0(9,8),Vt(),yt(10,"div",9),u0(11,8),Vt(),yt(12,"div",10),u0(13,8),Vt()()()),2&r){const s=Jo(1);St(4),Y1("viewBox",o._viewBox()),St(1),bi("stroke-dasharray",o._strokeCircumference(),"px")("stroke-dashoffset",o._strokeDashOffset(),"px")("stroke-width",o._circleStrokeWidth(),"%"),Y1("r",o._circleRadius()),St(4),xt("ngTemplateOutlet",s),St(2),xt("ngTemplateOutlet",s),St(2),xt("ngTemplateOutlet",s)}},dependencies:[O4],styles:["@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-color-1-fade-in-out{from{opacity:.99}25%{opacity:.99}26%{opacity:0}89%{opacity:0}90%{opacity:.99}to{opacity:.99}}@keyframes mdc-circular-progress-color-2-fade-in-out{from{opacity:0}15%{opacity:0}25%{opacity:.99}50%{opacity:.99}51%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-3-fade-in-out{from{opacity:0}40%{opacity:0}50%{opacity:.99}75%{opacity:.99}76%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-4-fade-in-out{from{opacity:0}65%{opacity:0}75%{opacity:.99}90%{opacity:.99}to{opacity:0}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}.mdc-circular-progress{display:inline-flex;position:relative;direction:ltr;line-height:0;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-1{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-1-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-2{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-2-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-3{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-3-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-4{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-4-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--closed{opacity:0}.mat-mdc-progress-spinner{--mdc-circular-progress-active-indicator-width:4px;--mdc-circular-progress-size:48px}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner circle{stroke-width:var(--mdc-circular-progress-active-indicator-width)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-1 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-2 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-3 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-4 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner .mdc-circular-progress{width:var(--mdc-circular-progress-size) !important;height:var(--mdc-circular-progress-size) !important}.mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}"],encapsulation:2,changeDetection:0})}return e})(),sA=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275mod=K1({type:e});static#r=this.\u0275inj=$1({imports:[e2,w2]})}return e})(),Ztt=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275mod=K1({type:e});static#r=this.\u0275inj=$1({imports:[e2,Pu.forChild(),oS,Zu,Rm,wS,GL,sA]})}return e})();const iA=' ',lA=' ',aA=' ';function qtt(e,n){if(1&e){const t=V1();yt(0,"gn-ui-button",2),ie("buttonClick",function(){return ct(t),Bt(Zt().removeBadge())}),rr(1,"ng-icon",3),Vt()}}const Wtt=["*"];let Gtt=(()=>{class e{constructor(){this.clickable=!1,this.removable=!1,this.badgeRemoveClicked=new _e}removeBadge(){this.badgeRemoveClicked.emit()}static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275cmp=U1({type:e,selectors:[["gn-ui-badge"]],inputs:{clickable:"clickable",removable:"removable"},outputs:{badgeRemoveClicked:"badgeRemoveClicked"},standalone:!0,features:[Mr([l5({matClose:iA}),s5({size:"1.2em"})]),cl],ngContentSelectors:Wtt,decls:4,vars:2,consts:[[1,"gn-ui-badge","flex","items-center","gap-1.5",3,"ngClass"],["type","light","extraClass","text-xs border-0 px-0 py-0","style","\n --gn-ui-button-padding: 0;\n --gn-ui-button-font-size: 0.8em;\n --gn-ui-button-width: 1.4em;\n --gn-ui-button-height: 1.4em;\n --gn-ui-button-rounded: 1.4em;\n --gn-ui-button-background: var(--gn-ui-badge-background-color, white);\n ",3,"buttonClick",4,"ngIf"],["type","light","extraClass","text-xs border-0 px-0 py-0",2,"--gn-ui-button-padding","0","--gn-ui-button-font-size","0.8em","--gn-ui-button-width","1.4em","--gn-ui-button-height","1.4em","--gn-ui-button-rounded","1.4em","--gn-ui-button-background","var(--gn-ui-badge-background-color, white)",3,"buttonClick"],["name","matClose"]],template:function(r,o){1&r&&(Es(),yt(0,"div",0)(1,"span"),g2(2),Vt(),Ze(3,qtt,2,0,"gn-ui-button",1),Vt()),2&r&&(xt("ngClass",o.clickable?"hover:bg-primary cursor-pointer transition-colors duration-100":""),St(3),xt("ngIf",o.removable))},dependencies:[e2,Di,Os,Ba,Ea],changeDetection:0})}return e})();const Ytt=["addListener","removeListener"],Xtt=["addEventListener","removeEventListener"],Ktt=["on","off"];function ph(e,n,t,r){if(X(t)&&(r=t,t=void 0),r)return ph(e,n,t).pipe(om(r));const[o,s]=function tet(e){return X(e.addEventListener)&&X(e.removeEventListener)}(e)?Xtt.map(i=>l=>e[i](n,l,t)):function Qtt(e){return X(e.addListener)&&X(e.removeListener)}(e)?Ytt.map(cA(e,n)):function Jtt(e){return X(e.on)&&X(e.off)}(e)?Ktt.map(cA(e,n)):[];if(!o&&o2(e))return N1(i=>ph(i,n,t))(Hn(e));if(!o)throw new TypeError("Invalid event target");return new J(i=>{const l=(...a)=>i.next(1s(l)})}function cA(e,n){return t=>r=>e[t](n,r)}const td={schedule(e){let n=requestAnimationFrame,t=cancelAnimationFrame;const{delegate:r}=td;r&&(n=r.requestAnimationFrame,t=r.cancelAnimationFrame);const o=n(s=>{t=void 0,e(s)});return new zt(()=>t?.(o))},requestAnimationFrame(...e){const{delegate:n}=td;return(n?.requestAnimationFrame||requestAnimationFrame)(...e)},cancelAnimationFrame(...e){const{delegate:n}=td;return(n?.cancelAnimationFrame||cancelAnimationFrame)(...e)},delegate:void 0};new class ret extends gm{flush(n){this._active=!0;const t=this._scheduled;this._scheduled=void 0;const{actions:r}=this;let o;n=n||r.shift();do{if(o=n.execute(n.state,n.delay))break}while((n=r[0])&&n.id===t&&r.shift());if(this._active=!1,o){for(;(n=r[0])&&n.id===t&&r.shift();)n.unsubscribe();throw o}}}(class eet extends vm{constructor(n,t){super(n,t),this.scheduler=n,this.work=t}requestAsyncId(n,t,r=0){return null!==r&&r>0?super.requestAsyncId(n,t,r):(n.actions.push(this),n._scheduled||(n._scheduled=td.requestAnimationFrame(()=>n.flush(void 0))))}recycleAsyncId(n,t,r=0){var o;if(null!=r?r>0:this.delay>0)return super.recycleAsyncId(n,t,r);const{actions:s}=n;null!=t&&(null===(o=s[s.length-1])||void 0===o?void 0:o.id)!==t&&(td.cancelAnimationFrame(t),n._scheduled=void 0)}});let ow,oet=1;const O9={};function hA(e){return e in O9&&(delete O9[e],!0)}const set={setImmediate(e){const n=oet++;return O9[n]=!0,ow||(ow=Promise.resolve()),ow.then(()=>hA(n)&&e()),n},clearImmediate(e){hA(e)}},{setImmediate:iet,clearImmediate:aet}=set,N9={setImmediate(...e){const{delegate:n}=N9;return(n?.setImmediate||iet)(...e)},clearImmediate(e){const{delegate:n}=N9;return(n?.clearImmediate||aet)(e)},delegate:void 0};new class het extends gm{flush(n){this._active=!0;const t=this._scheduled;this._scheduled=void 0;const{actions:r}=this;let o;n=n||r.shift();do{if(o=n.execute(n.state,n.delay))break}while((n=r[0])&&n.id===t&&r.shift());if(this._active=!1,o){for(;(n=r[0])&&n.id===t&&r.shift();)n.unsubscribe();throw o}}}(class cet extends vm{constructor(n,t){super(n,t),this.scheduler=n,this.work=t}requestAsyncId(n,t,r=0){return null!==r&&r>0?super.requestAsyncId(n,t,r):(n.actions.push(this),n._scheduled||(n._scheduled=N9.setImmediate(n.flush.bind(n,void 0))))}recycleAsyncId(n,t,r=0){var o;if(null!=r?r>0:this.delay>0)return super.recycleAsyncId(n,t,r);const{actions:s}=n;null!=t&&(null===(o=s[s.length-1])||void 0===o?void 0:o.id)!==t&&(N9.clearImmediate(t),n._scheduled===t&&(n._scheduled=void 0))}});function dA(e,n=u9){return function det(e){return Yt((n,t)=>{let r=!1,o=null,s=null,i=!1;const l=()=>{if(s?.unsubscribe(),s=null,r){r=!1;const c=o;o=null,t.next(c)}i&&t.complete()},a=()=>{s=null,i&&t.complete()};n.subscribe(ve(t,c=>{r=!0,o=c,s||Hn(e(c)).subscribe(s=ve(t,l,a))},()=>{i=!0,(!r||!s||s.closed)&&t.complete()}))})}(()=>function uA(e=0,n,t=yX){let r=-1;return null!=n&&(uo(n)?t=n:r=n),new J(o=>{let s=function pet(e){return e instanceof Date&&!isNaN(e)}(e)?+e-t.now():e;s<0&&(s=0);let i=0;return t.schedule(function(){o.closed||(o.next(i++),0<=r?this.schedule(void 0,r):o.complete())},s)})}(e,n))}let get=(()=>{class e{constructor(t,r,o){this._ngZone=t,this._platform=r,this._scrolled=new Dt,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=o}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const r=this.scrollContainers.get(t);r&&(r.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new J(r=>{this._globalSubscription||this._addGlobalListener();const o=t>0?this._scrolled.pipe(dA(t)).subscribe(r):this._scrolled.subscribe(r);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):po()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,r)=>this.deregister(r)),this._scrolled.complete()}ancestorScrolled(t,r){const o=this.getAncestorScrollContainers(t);return this.scrolled(r).pipe(Zs(s=>!s||o.indexOf(s)>-1))}getAncestorScrollContainers(t){const r=[];return this.scrollContainers.forEach((o,s)=>{this._scrollableContainsElement(s,t)&&r.push(s)}),r}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,r){let o=uh(r),s=t.getElementRef().nativeElement;do{if(o==s)return!0}while(o=o.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>ph(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static#t=this.\u0275fac=function(r){return new(r||e)(gt(_r),gt(ns),gt(wn,8))};static#e=this.\u0275prov=xe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),sw=(()=>{class e{constructor(t,r,o){this._platform=t,this._change=new Dt,this._changeListener=s=>{this._change.next(s)},this._document=o,r.runOutsideAngular(()=>{if(t.isBrowser){const s=this._getWindow();s.addEventListener("resize",this._changeListener),s.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:r,height:o}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+o,right:t.left+r,height:o,width:r}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,r=this._getWindow(),o=t.documentElement,s=o.getBoundingClientRect();return{top:-s.top||t.body.scrollTop||r.scrollY||o.scrollTop||0,left:-s.left||t.body.scrollLeft||r.scrollX||o.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(dA(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}static#t=this.\u0275fac=function(r){return new(r||e)(gt(ns),gt(_r),gt(wn,8))};static#e=this.\u0275prov=xe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),ed=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275mod=K1({type:e});static#r=this.\u0275inj=$1({})}return e})(),pA=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275mod=K1({type:e});static#r=this.\u0275inj=$1({imports:[Qu,ed,Qu,ed]})}return e})();class iw{attach(n){return this._attachedHost=n,n.attach(this)}detach(){let n=this._attachedHost;null!=n&&(this._attachedHost=null,n.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(n){this._attachedHost=n}}class lw extends iw{constructor(n,t,r,o,s){super(),this.component=n,this.viewContainerRef=t,this.injector=r,this.componentFactoryResolver=o,this.projectableNodes=s}}class aw extends iw{constructor(n,t,r,o){super(),this.templateRef=n,this.viewContainerRef=t,this.context=r,this.injector=o}get origin(){return this.templateRef.elementRef}attach(n,t=this.context){return this.context=t,super.attach(n)}detach(){return this.context=void 0,super.detach()}}class wet extends iw{constructor(n){super(),this.element=n instanceof Br?n.nativeElement:n}}class vA{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(n){return n instanceof lw?(this._attachedPortal=n,this.attachComponentPortal(n)):n instanceof aw?(this._attachedPortal=n,this.attachTemplatePortal(n)):this.attachDomPortal&&n instanceof wet?(this._attachedPortal=n,this.attachDomPortal(n)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(n){this._disposeFn=n}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class Cet extends vA{constructor(n,t,r,o,s){super(),this.outletElement=n,this._componentFactoryResolver=t,this._appRef=r,this._defaultInjector=o,this.attachDomPortal=i=>{const l=i.element,a=this._document.createComment("dom-portal");l.parentNode.insertBefore(a,l),this.outletElement.appendChild(l),this._attachedPortal=i,super.setDisposeFn(()=>{a.parentNode&&a.parentNode.replaceChild(l,a)})},this._document=s}attachComponentPortal(n){const r=(n.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(n.component);let o;return n.viewContainerRef?(o=n.viewContainerRef.createComponent(r,n.viewContainerRef.length,n.injector||n.viewContainerRef.injector,n.projectableNodes||void 0),this.setDisposeFn(()=>o.destroy())):(o=r.create(n.injector||this._defaultInjector||v2.NULL),this._appRef.attachView(o.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(o.hostView),o.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(o)),this._attachedPortal=n,o}attachTemplatePortal(n){let t=n.viewContainerRef,r=t.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return r.rootNodes.forEach(o=>this.outletElement.appendChild(o)),r.detectChanges(),this.setDisposeFn(()=>{let o=t.indexOf(r);-1!==o&&t.remove(o)}),this._attachedPortal=n,r}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}let gA=(()=>{class e extends vA{constructor(t,r,o){super(),this._componentFactoryResolver=t,this._viewContainerRef=r,this._isInitialized=!1,this.attached=new _e,this.attachDomPortal=s=>{const i=s.element,l=this._document.createComment("dom-portal");s.setAttachedHost(this),i.parentNode.insertBefore(l,i),this._getRootNode().appendChild(i),this._attachedPortal=s,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(i,l)})},this._document=o}get portal(){return this._attachedPortal}set portal(t){this.hasAttached()&&!t&&!this._isInitialized||(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(t){t.setAttachedHost(this);const r=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,s=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),i=r.createComponent(s,r.length,t.injector||r.injector,t.projectableNodes||void 0);return r!==this._viewContainerRef&&this._getRootNode().appendChild(i.hostView.rootNodes[0]),super.setDisposeFn(()=>i.destroy()),this._attachedPortal=t,this._attachedRef=i,this.attached.emit(i),i}attachTemplatePortal(t){t.setAttachedHost(this);const r=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=r,this.attached.emit(r),r}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}static#t=this.\u0275fac=function(r){return new(r||e)(vt(m4),vt(Rs),vt(wn))};static#e=this.\u0275dir=s1({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[er]})}return e})(),fA=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275mod=K1({type:e});static#r=this.\u0275inj=$1({})}return e})();const mA=zJ();class ket{constructor(n,t){this._viewportRuler=n,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=t}attach(){}enable(){if(this._canBeEnabled()){const n=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=n.style.left||"",this._previousHTMLStyles.top=n.style.top||"",n.style.left=Wo(-this._previousScrollPosition.left),n.style.top=Wo(-this._previousScrollPosition.top),n.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const n=this._document.documentElement,r=n.style,o=this._document.body.style,s=r.scrollBehavior||"",i=o.scrollBehavior||"";this._isEnabled=!1,r.left=this._previousHTMLStyles.left,r.top=this._previousHTMLStyles.top,n.classList.remove("cdk-global-scrollblock"),mA&&(r.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),mA&&(r.scrollBehavior=s,o.scrollBehavior=i)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,r=this._viewportRuler.getViewportSize();return t.scrollHeight>r.height||t.scrollWidth>r.width}}class _et{constructor(n,t,r,o){this._scrollDispatcher=n,this._ngZone=t,this._viewportRuler=r,this._config=o,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(n){this._overlayRef=n}enable(){if(this._scrollSubscription)return;const n=this._scrollDispatcher.scrolled(0).pipe(Zs(t=>!t||!this._overlayRef.overlayElement.contains(t.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=n.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=n.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class wA{enable(){}disable(){}attach(){}}function cw(e,n){return n.some(t=>e.bottomt.bottom||e.rightt.right)}function CA(e,n){return n.some(t=>e.topt.bottom||e.leftt.right)}class xet{constructor(n,t,r,o){this._scrollDispatcher=n,this._viewportRuler=t,this._ngZone=r,this._config=o,this._scrollSubscription=null}attach(n){this._overlayRef=n}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:r,height:o}=this._viewportRuler.getViewportSize();cw(t,[{width:r,height:o,bottom:o,right:r,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let Met=(()=>{class e{constructor(t,r,o,s){this._scrollDispatcher=t,this._viewportRuler=r,this._ngZone=o,this.noop=()=>new wA,this.close=i=>new _et(this._scrollDispatcher,this._ngZone,this._viewportRuler,i),this.block=()=>new ket(this._viewportRuler,this._document),this.reposition=i=>new xet(this._scrollDispatcher,this._viewportRuler,this._ngZone,i),this._document=s}static#t=this.\u0275fac=function(r){return new(r||e)(gt(get),gt(sw),gt(_r),gt(wn))};static#e=this.\u0275prov=xe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class $9{constructor(n){if(this.scrollStrategy=new wA,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,n){const t=Object.keys(n);for(const r of t)void 0!==n[r]&&(this[r]=n[r])}}}class yet{constructor(n,t){this.connectionPair=n,this.scrollableViewProperties=t}}let kA=(()=>{class e{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const r=this._attachedOverlays.indexOf(t);r>-1&&this._attachedOverlays.splice(r,1),0===this._attachedOverlays.length&&this.detach()}static#t=this.\u0275fac=function(r){return new(r||e)(gt(wn))};static#e=this.\u0275prov=xe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Het=(()=>{class e extends kA{constructor(t,r){super(t),this._ngZone=r,this._keydownListener=o=>{const s=this._attachedOverlays;for(let i=s.length-1;i>-1;i--)if(s[i]._keydownEvents.observers.length>0){const l=s[i]._keydownEvents;this._ngZone?this._ngZone.run(()=>l.next(o)):l.next(o);break}}}add(t){super.add(t),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}static#t=this.\u0275fac=function(r){return new(r||e)(gt(wn),gt(_r,8))};static#e=this.\u0275prov=xe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),zet=(()=>{class e extends kA{constructor(t,r,o){super(t),this._platform=r,this._ngZone=o,this._cursorStyleIsSet=!1,this._pointerDownListener=s=>{this._pointerDownEventTarget=Ra(s)},this._clickListener=s=>{const i=Ra(s),l="click"===s.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:i;this._pointerDownEventTarget=null;const a=this._attachedOverlays.slice();for(let c=a.length-1;c>-1;c--){const h=a[c];if(h._outsidePointerEvents.observers.length<1||!h.hasAttached())continue;if(h.overlayElement.contains(i)||h.overlayElement.contains(l))break;const u=h._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>u.next(s)):u.next(s)}}}add(t){if(super.add(t),!this._isAttached){const r=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(r)):this._addEventListeners(r),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=r.style.cursor,r.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const t=this._document.body;t.removeEventListener("pointerdown",this._pointerDownListener,!0),t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(t){t.addEventListener("pointerdown",this._pointerDownListener,!0),t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0)}static#t=this.\u0275fac=function(r){return new(r||e)(gt(wn),gt(ns),gt(_r,8))};static#e=this.\u0275prov=xe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),_A=(()=>{class e{constructor(t,r){this._platform=r,this._document=t}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||Gm()){const o=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let s=0;sthis._backdropClick.next(u),this._backdropTransitionendHandler=u=>{this._disposeBackdrop(u.target)},this._keydownEvents=new Dt,this._outsidePointerEvents=new Dt,o.scrollStrategy&&(this._scrollStrategy=o.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=o.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(n){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const t=this._portalOutlet.attach(n);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(A2(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof t?.onDestroy&&t.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const n=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),n}dispose(){const n=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,n&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(n){n!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=n,this.hasAttached()&&(n.attach(this),this.updatePosition()))}updateSize(n){this._config={...this._config,...n},this._updateElementSize()}setDirection(n){this._config={...this._config,direction:n},this._updateElementDirection()}addPanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!0)}removePanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!1)}getDirection(){const n=this._config.direction;return n?"string"==typeof n?n:n.value:"ltr"}updateScrollStrategy(n){n!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=n,this.hasAttached()&&(n.attach(this),n.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const n=this._pane.style;n.width=Wo(this._config.width),n.height=Wo(this._config.height),n.minWidth=Wo(this._config.minWidth),n.minHeight=Wo(this._config.minHeight),n.maxWidth=Wo(this._config.maxWidth),n.maxHeight=Wo(this._config.maxHeight)}_togglePointerEvents(n){this._pane.style.pointerEvents=n?"":"none"}_attachBackdrop(){const n="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(n)})}):this._backdropElement.classList.add(n)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const n=this._backdropElement;if(n){if(this._animationsDisabled)return void this._disposeBackdrop(n);n.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{n.addEventListener("transitionend",this._backdropTransitionendHandler)}),n.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(n)},500))}}_toggleClasses(n,t,r){const o=j9(t||[]).filter(s=>!!s);o.length&&(r?n.classList.add(...o):n.classList.remove(...o))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const n=this._ngZone.onStable.pipe(Ym(cs(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),n.unsubscribe())})})}_disposeScrollStrategy(){const n=this._scrollStrategy;n&&(n.disable(),n.detach&&n.detach())}_disposeBackdrop(n){n&&(n.removeEventListener("click",this._backdropClickHandler),n.removeEventListener("transitionend",this._backdropTransitionendHandler),n.remove(),this._backdropElement===n&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const xA="cdk-overlay-connected-position-bounding-box",Let=/([A-Za-z%]+)$/;class MA{get positions(){return this._preferredPositions}constructor(n,t,r,o,s){this._viewportRuler=t,this._document=r,this._platform=o,this._overlayContainer=s,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new Dt,this._resizeSubscription=zt.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(n)}attach(n){this._validatePositions(),n.hostElement.classList.add(xA),this._overlayRef=n,this._boundingBox=n.hostElement,this._pane=n.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const n=this._originRect,t=this._overlayRect,r=this._viewportRect,o=this._containerRect,s=[];let i;for(let l of this._preferredPositions){let a=this._getOriginPoint(n,o,l),c=this._getOverlayPoint(a,t,l),h=this._getOverlayFit(c,t,r,l);if(h.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(l,a);this._canFitWithFlexibleDimensions(h,c,r)?s.push({position:l,origin:a,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(a,l)}):(!i||i.overlayFit.visibleAreaa&&(a=h,l=c)}return this._isPushed=!1,void this._applyPosition(l.position,l.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(i.position,i.originPoint);this._applyPosition(i.position,i.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&g5(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(xA),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const n=this._lastPosition;if(n){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const t=this._getOriginPoint(this._originRect,this._containerRect,n);this._applyPosition(n,t)}else this.apply()}withScrollableContainers(n){return this._scrollables=n,this}withPositions(n){return this._preferredPositions=n,-1===n.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(n){return this._viewportMargin=n,this}withFlexibleDimensions(n=!0){return this._hasFlexibleDimensions=n,this}withGrowAfterOpen(n=!0){return this._growAfterOpen=n,this}withPush(n=!0){return this._canPush=n,this}withLockedPosition(n=!0){return this._positionLocked=n,this}setOrigin(n){return this._origin=n,this}withDefaultOffsetX(n){return this._offsetX=n,this}withDefaultOffsetY(n){return this._offsetY=n,this}withTransformOriginOn(n){return this._transformOriginSelector=n,this}_getOriginPoint(n,t,r){let o,s;if("center"==r.originX)o=n.left+n.width/2;else{const i=this._isRtl()?n.right:n.left,l=this._isRtl()?n.left:n.right;o="start"==r.originX?i:l}return t.left<0&&(o-=t.left),s="center"==r.originY?n.top+n.height/2:"top"==r.originY?n.top:n.bottom,t.top<0&&(s-=t.top),{x:o,y:s}}_getOverlayPoint(n,t,r){let o,s;return o="center"==r.overlayX?-t.width/2:"start"===r.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,s="center"==r.overlayY?-t.height/2:"top"==r.overlayY?0:-t.height,{x:n.x+o,y:n.y+s}}_getOverlayFit(n,t,r,o){const s=HA(t);let{x:i,y:l}=n,a=this._getOffset(o,"x"),c=this._getOffset(o,"y");a&&(i+=a),c&&(l+=c);let d=0-l,v=l+s.height-r.height,m=this._subtractOverflows(s.width,0-i,i+s.width-r.width),L=this._subtractOverflows(s.height,d,v),S=m*L;return{visibleArea:S,isCompletelyWithinViewport:s.width*s.height===S,fitsInViewportVertically:L===s.height,fitsInViewportHorizontally:m==s.width}}_canFitWithFlexibleDimensions(n,t,r){if(this._hasFlexibleDimensions){const o=r.bottom-t.y,s=r.right-t.x,i=yA(this._overlayRef.getConfig().minHeight),l=yA(this._overlayRef.getConfig().minWidth);return(n.fitsInViewportVertically||null!=i&&i<=o)&&(n.fitsInViewportHorizontally||null!=l&&l<=s)}return!1}_pushOverlayOnScreen(n,t,r){if(this._previousPushAmount&&this._positionLocked)return{x:n.x+this._previousPushAmount.x,y:n.y+this._previousPushAmount.y};const o=HA(t),s=this._viewportRect,i=Math.max(n.x+o.width-s.width,0),l=Math.max(n.y+o.height-s.height,0),a=Math.max(s.top-r.top-n.y,0),c=Math.max(s.left-r.left-n.x,0);let h=0,u=0;return h=o.width<=s.width?c||-i:n.xm&&!this._isInitialRender&&!this._growAfterOpen&&(i=n.y-m/2)}if("end"===t.overlayX&&!o||"start"===t.overlayX&&o)d=r.width-n.x+this._viewportMargin,h=n.x-this._viewportMargin;else if("start"===t.overlayX&&!o||"end"===t.overlayX&&o)u=n.x,h=r.right-n.x;else{const v=Math.min(r.right-n.x+r.left,n.x),m=this._lastBoundingBoxSize.width;h=2*v,u=n.x-v,h>m&&!this._isInitialRender&&!this._growAfterOpen&&(u=n.x-m/2)}return{top:i,left:u,bottom:l,right:d,width:h,height:s}}_setBoundingBoxStyles(n,t){const r=this._calculateBoundingBoxRect(n,t);!this._isInitialRender&&!this._growAfterOpen&&(r.height=Math.min(r.height,this._lastBoundingBoxSize.height),r.width=Math.min(r.width,this._lastBoundingBoxSize.width));const o={};if(this._hasExactPosition())o.top=o.left="0",o.bottom=o.right=o.maxHeight=o.maxWidth="",o.width=o.height="100%";else{const s=this._overlayRef.getConfig().maxHeight,i=this._overlayRef.getConfig().maxWidth;o.height=Wo(r.height),o.top=Wo(r.top),o.bottom=Wo(r.bottom),o.width=Wo(r.width),o.left=Wo(r.left),o.right=Wo(r.right),o.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",o.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",s&&(o.maxHeight=Wo(s)),i&&(o.maxWidth=Wo(i))}this._lastBoundingBoxSize=r,g5(this._boundingBox.style,o)}_resetBoundingBoxStyles(){g5(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){g5(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(n,t){const r={},o=this._hasExactPosition(),s=this._hasFlexibleDimensions,i=this._overlayRef.getConfig();if(o){const h=this._viewportRuler.getViewportScrollPosition();g5(r,this._getExactOverlayY(t,n,h)),g5(r,this._getExactOverlayX(t,n,h))}else r.position="static";let l="",a=this._getOffset(t,"x"),c=this._getOffset(t,"y");a&&(l+=`translateX(${a}px) `),c&&(l+=`translateY(${c}px)`),r.transform=l.trim(),i.maxHeight&&(o?r.maxHeight=Wo(i.maxHeight):s&&(r.maxHeight="")),i.maxWidth&&(o?r.maxWidth=Wo(i.maxWidth):s&&(r.maxWidth="")),g5(this._pane.style,r)}_getExactOverlayY(n,t,r){let o={top:"",bottom:""},s=this._getOverlayPoint(t,this._overlayRect,n);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,r)),"bottom"===n.overlayY?o.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":o.top=Wo(s.y),o}_getExactOverlayX(n,t,r){let i,o={left:"",right:""},s=this._getOverlayPoint(t,this._overlayRect,n);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,r)),i=this._isRtl()?"end"===n.overlayX?"left":"right":"end"===n.overlayX?"right":"left","right"===i?o.right=this._document.documentElement.clientWidth-(s.x+this._overlayRect.width)+"px":o.left=Wo(s.x),o}_getScrollVisibility(){const n=this._getOriginRect(),t=this._pane.getBoundingClientRect(),r=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:CA(n,r),isOriginOutsideView:cw(n,r),isOverlayClipped:CA(t,r),isOverlayOutsideView:cw(t,r)}}_subtractOverflows(n,...t){return t.reduce((r,o)=>r-Math.max(o,0),n)}_getNarrowedViewportRect(){const n=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,r=this._viewportRuler.getViewportScrollPosition();return{top:r.top+this._viewportMargin,left:r.left+this._viewportMargin,right:r.left+n-this._viewportMargin,bottom:r.top+t-this._viewportMargin,width:n-2*this._viewportMargin,height:t-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(n,t){return"x"===t?null==n.offsetX?this._offsetX:n.offsetX:null==n.offsetY?this._offsetY:n.offsetY}_validatePositions(){}_addPanelClasses(n){this._pane&&j9(n).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(n=>{this._pane.classList.remove(n)}),this._appliedPanelClasses=[])}_getOriginRect(){const n=this._origin;if(n instanceof Br)return n.nativeElement.getBoundingClientRect();if(n instanceof Element)return n.getBoundingClientRect();const t=n.width||0,r=n.height||0;return{top:n.y,bottom:n.y+r,left:n.x,right:n.x+t,height:r,width:t}}}function g5(e,n){for(let t in n)n.hasOwnProperty(t)&&(e[t]=n[t]);return e}function yA(e){if("number"!=typeof e&&null!=e){const[n,t]=e.split(Let);return t&&"px"!==t?null:parseFloat(n)}return e||null}function HA(e){return{top:Math.floor(e.top),right:Math.floor(e.right),bottom:Math.floor(e.bottom),left:Math.floor(e.left),width:Math.floor(e.width),height:Math.floor(e.height)}}const zA="cdk-global-overlay-wrapper";class Vet{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(n){const t=n.getConfig();this._overlayRef=n,this._width&&!t.width&&n.updateSize({width:this._width}),this._height&&!t.height&&n.updateSize({height:this._height}),n.hostElement.classList.add(zA),this._isDisposed=!1}top(n=""){return this._bottomOffset="",this._topOffset=n,this._alignItems="flex-start",this}left(n=""){return this._xOffset=n,this._xPosition="left",this}bottom(n=""){return this._topOffset="",this._bottomOffset=n,this._alignItems="flex-end",this}right(n=""){return this._xOffset=n,this._xPosition="right",this}start(n=""){return this._xOffset=n,this._xPosition="start",this}end(n=""){return this._xOffset=n,this._xPosition="end",this}width(n=""){return this._overlayRef?this._overlayRef.updateSize({width:n}):this._width=n,this}height(n=""){return this._overlayRef?this._overlayRef.updateSize({height:n}):this._height=n,this}centerHorizontally(n=""){return this.left(n),this._xPosition="center",this}centerVertically(n=""){return this.top(n),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const n=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,r=this._overlayRef.getConfig(),{width:o,height:s,maxWidth:i,maxHeight:l}=r,a=!("100%"!==o&&"100vw"!==o||i&&"100%"!==i&&"100vw"!==i),c=!("100%"!==s&&"100vh"!==s||l&&"100%"!==l&&"100vh"!==l),h=this._xPosition,u=this._xOffset,d="rtl"===this._overlayRef.getConfig().direction;let v="",m="",L="";a?L="flex-start":"center"===h?(L="center",d?m=u:v=u):d?"left"===h||"end"===h?(L="flex-end",v=u):("right"===h||"start"===h)&&(L="flex-start",m=u):"left"===h||"start"===h?(L="flex-start",v=u):("right"===h||"end"===h)&&(L="flex-end",m=u),n.position=this._cssPosition,n.marginLeft=a?"0":v,n.marginTop=c?"0":this._topOffset,n.marginBottom=this._bottomOffset,n.marginRight=a?"0":m,t.justifyContent=L,t.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const n=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,r=t.style;t.classList.remove(zA),r.justifyContent=r.alignItems=n.marginTop=n.marginBottom=n.marginLeft=n.marginRight=n.position="",this._overlayRef=null,this._isDisposed=!0}}let Aet=(()=>{class e{constructor(t,r,o,s){this._viewportRuler=t,this._document=r,this._platform=o,this._overlayContainer=s}global(){return new Vet}flexibleConnectedTo(t){return new MA(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static#t=this.\u0275fac=function(r){return new(r||e)(gt(sw),gt(wn),gt(ns),gt(_A))};static#e=this.\u0275prov=xe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Det=0,A0=(()=>{class e{constructor(t,r,o,s,i,l,a,c,h,u,d,v){this.scrollStrategies=t,this._overlayContainer=r,this._componentFactoryResolver=o,this._positionBuilder=s,this._keyboardDispatcher=i,this._injector=l,this._ngZone=a,this._document=c,this._directionality=h,this._location=u,this._outsideClickDispatcher=d,this._animationsModuleType=v}create(t){const r=this._createHostElement(),o=this._createPaneElement(r),s=this._createPortalOutlet(o),i=new $9(t);return i.direction=i.direction||this._directionality.value,new bet(s,r,o,i,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(t){const r=this._document.createElement("div");return r.id="cdk-overlay-"+Det++,r.classList.add("cdk-overlay-pane"),t.appendChild(r),r}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(I4)),new Cet(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static#t=this.\u0275fac=function(r){return new(r||e)(gt(Met),gt(_A),gt(m4),gt(Aet),gt(Het),gt(v2),gt(_r),gt(wn),gt(S0),gt(jy),gt(zet),gt(yi,8))};static#e=this.\u0275prov=xe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Bet=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],bA=new Me("cdk-connected-overlay-scroll-strategy");let LA=(()=>{class e{constructor(t){this.elementRef=t}static#t=this.\u0275fac=function(r){return new(r||e)(vt(Br))};static#e=this.\u0275dir=s1({type:e,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0})}return e})(),VA=(()=>{class e{get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=co(t)}get lockPosition(){return this._lockPosition}set lockPosition(t){this._lockPosition=co(t)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(t){this._flexibleDimensions=co(t)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(t){this._growAfterOpen=co(t)}get push(){return this._push}set push(t){this._push=co(t)}constructor(t,r,o,s,i){this._overlay=t,this._dir=i,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=zt.EMPTY,this._attachSubscription=zt.EMPTY,this._detachSubscription=zt.EMPTY,this._positionSubscription=zt.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new _e,this.positionChange=new _e,this.attach=new _e,this.detach=new _e,this.overlayKeydown=new _e,this.overlayOutsideClick=new _e,this._templatePortal=new aw(r,o),this._scrollStrategyFactory=s,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Bet);const t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=t.detachments().subscribe(()=>this.detach.emit()),t.keydownEvents().subscribe(r=>{this.overlayKeydown.next(r),27===r.keyCode&&!this.disableClose&&!wl(r)&&(r.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(r=>{this.overlayOutsideClick.next(r)})}_buildConfig(){const t=this._position=this.positionStrategy||this._createPositionStrategy(),r=new $9({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(r.width=this.width),(this.height||0===this.height)&&(r.height=this.height),(this.minWidth||0===this.minWidth)&&(r.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(r.minHeight=this.minHeight),this.backdropClass&&(r.backdropClass=this.backdropClass),this.panelClass&&(r.panelClass=this.panelClass),r}_updatePositionStrategy(t){const r=this.positions.map(o=>({originX:o.originX,originY:o.originY,overlayX:o.overlayX,overlayY:o.overlayY,offsetX:o.offsetX||this.offsetX,offsetY:o.offsetY||this.offsetY,panelClass:o.panelClass||void 0}));return t.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(r).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const t=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(t),t}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof LA?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(t=>{this.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function met(e,n=!1){return Yt((t,r)=>{let o=0;t.subscribe(ve(r,s=>{const i=e(s,o++);(i||n)&&r.next(s),!i&&r.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(t=>{this.positionChange.emit(t),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}static#t=this.\u0275fac=function(r){return new(r||e)(vt(A0),vt(Vi),vt(Rs),vt(bA),vt(S0,8))};static#e=this.\u0275dir=s1({type:e,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[mo]})}return e})();const Eet={provide:bA,deps:[A0],useFactory:function Tet(e){return()=>e.scrollStrategies.reposition()}};let rd=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275mod=K1({type:e});static#r=this.\u0275inj=$1({providers:[A0,Eet],imports:[Qu,fA,pA,pA]})}return e})();const jet=["mat-button",""],Pet=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],Iet=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],Fet=["mat-icon-button",""],Oet=["*"],Net=[{selector:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{selector:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{selector:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{selector:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{selector:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{selector:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{selector:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],$et=I9(ZS(qS(class{constructor(e){this._elementRef=e}})));let SA=(()=>{class e extends $et{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(t){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,t)}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=co(t),this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(t){this._disabled=co(t),this._updateRippleDisabled()}constructor(t,r,o,s){super(t),this._platform=r,this._ngZone=o,this._animationMode=s,this._focusMonitor=g1(PS),this._rippleLoader=g1(Ptt),this._isFab=!1,this._disableRipple=!1,this._disabled=!1,this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-button-ripple"});const i=t.nativeElement.classList;for(const l of Net)this._hasHostAttributes(l.selector)&&l.mdcClasses.forEach(a=>{i.add(a)})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(t="program",r){t?this._focusMonitor.focusVia(this._elementRef.nativeElement,t,r):this._elementRef.nativeElement.focus(r)}_hasHostAttributes(...t){return t.some(r=>this._elementRef.nativeElement.hasAttribute(r))}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}static#t=this.\u0275fac=function(r){up()};static#e=this.\u0275dir=s1({type:e,features:[er]})}return e})(),AA=(()=>{class e extends SA{constructor(t,r,o,s){super(t,r,o,s)}static#t=this.\u0275fac=function(r){return new(r||e)(vt(Br),vt(ns),vt(_r),vt(yi,8))};static#e=this.\u0275cmp=U1({type:e,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:7,hostBindings:function(r,o){2&r&&(Y1("disabled",o.disabled||null),Zn("_mat-animation-noopable","NoopAnimations"===o._animationMode)("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[er],attrs:jet,ngContentSelectors:Iet,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(r,o){1&r&&(Es(Pet),rr(0,"span",0),g2(1),yt(2,"span",1),g2(3,1),Vt(),g2(4,2),rr(5,"span",2)(6,"span",3)),2&r&&Zn("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n 100% + 4px\n );width:calc(\n 100% + 4px\n );display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{height:var(--mdc-text-button-container-height, 36px);border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, inherit)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button{height:var(--mdc-filled-button-container-height, 36px);border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color, transparent)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, inherit)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button{height:var(--mdc-protected-button-container-height, 36px);border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px));box-shadow:var(--mdc-protected-button-container-elevation, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color, transparent)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, inherit)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button.mdc-ripple-upgraded--background-focused,.mat-mdc-raised-button:not(.mdc-ripple-upgraded):focus{box-shadow:var(--mdc-protected-button-focus-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled):active{box-shadow:var(--mdc-protected-button-pressed-container-elevation, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button{height:var(--mdc-outlined-button-container-height, 36px);border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px));padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, inherit)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width, 1px));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width, 1px))}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-button .mat-ripple-element,.mat-mdc-unelevated-button .mat-ripple-element,.mat-mdc-raised-button .mat-ripple-element,.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button[disabled],.mat-mdc-unelevated-button[disabled],.mat-mdc-raised-button[disabled],.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px) * -1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}return e})(),qet=(()=>{class e extends SA{constructor(t,r,o,s){super(t,r,o,s),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static#t=this.\u0275fac=function(r){return new(r||e)(vt(Br),vt(ns),vt(_r),vt(yi,8))};static#e=this.\u0275cmp=U1({type:e,selectors:[["button","mat-icon-button",""]],hostVars:7,hostBindings:function(r,o){2&r&&(Y1("disabled",o.disabled||null),Zn("_mat-animation-noopable","NoopAnimations"===o._animationMode)("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[er],attrs:Fet,ngContentSelectors:Oet,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(r,o){1&r&&(Es(),rr(0,"span",0),g2(1),rr(2,"span",1)(3,"span",2))},styles:['.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{height:var(--mdc-icon-button-state-layer-size);width:var(--mdc-icon-button-state-layer-size);color:var(--mdc-icon-button-icon-color);--mdc-icon-button-state-layer-size:48px;--mdc-icon-button-icon-size:24px;--mdc-icon-button-disabled-icon-color:black;--mdc-icon-button-disabled-icon-opacity:0.38}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button:disabled{opacity:var(--mdc-icon-button-disabled-icon-opacity)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{padding:12px;font-size:var(--mdc-icon-button-icon-size);border-radius:50%;flex-shrink:0;text-align:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled]{cursor:default;pointer-events:none;opacity:1}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}return e})(),Wet=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275mod=K1({type:e});static#r=this.\u0275inj=$1({imports:[w2,ew,w2]})}return e})(),t1t=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275dir=s1({type:e})}return e})();const hw=new Me("MatFormField");let uw=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275mod=K1({type:e});static#r=this.\u0275inj=$1({imports:[w2,e2,yS,w2]})}return e})(),e1t=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275mod=K1({type:e});static#r=this.\u0275inj=$1({})}return e})(),n1t=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275mod=K1({type:e});static#r=this.\u0275inj=$1({imports:[w2,uw,uw,e1t,w2]})}return e})();const o1t=["mat-calendar-body",""];function s1t(e,n){if(1&e&&(yt(0,"tr",3)(1,"td",4),xr(2),Vt()()),2&e){const t=Zt();St(1),bi("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),Y1("colspan",t.numCols),St(1),wo(" ",t.label," ")}}function i1t(e,n){if(1&e&&(yt(0,"td",4),xr(1),Vt()),2&e){const t=Zt(2);bi("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),Y1("colspan",t._firstRowOffset),St(1),wo(" ",t._firstRowOffset>=t.labelMinRequiredCells?t.label:""," ")}}function l1t(e,n){if(1&e){const t=V1();yt(0,"td",8)(1,"button",9),ie("click",function(o){const i=ct(t).$implicit;return Bt(Zt(2)._cellClicked(i,o))})("focus",function(o){const i=ct(t).$implicit;return Bt(Zt(2)._emitActiveDateChange(i,o))}),yt(2,"span",10),xr(3),Vt(),rr(4,"span",11),Vt()()}if(2&e){const t=n.$implicit,r=n.index,o=Zt().index,s=Zt();bi("width",s._cellWidth)("padding-top",s._cellPadding)("padding-bottom",s._cellPadding),Y1("data-mat-row",o)("data-mat-col",r),St(1),Zn("mat-calendar-body-disabled",!t.enabled)("mat-calendar-body-active",s._isActiveCell(o,r))("mat-calendar-body-range-start",s._isRangeStart(t.compareValue))("mat-calendar-body-range-end",s._isRangeEnd(t.compareValue))("mat-calendar-body-in-range",s._isInRange(t.compareValue))("mat-calendar-body-comparison-bridge-start",s._isComparisonBridgeStart(t.compareValue,o,r))("mat-calendar-body-comparison-bridge-end",s._isComparisonBridgeEnd(t.compareValue,o,r))("mat-calendar-body-comparison-start",s._isComparisonStart(t.compareValue))("mat-calendar-body-comparison-end",s._isComparisonEnd(t.compareValue))("mat-calendar-body-in-comparison-range",s._isInComparisonRange(t.compareValue))("mat-calendar-body-preview-start",s._isPreviewStart(t.compareValue))("mat-calendar-body-preview-end",s._isPreviewEnd(t.compareValue))("mat-calendar-body-in-preview",s._isInPreview(t.compareValue)),xt("ngClass",t.cssClasses)("tabindex",s._isActiveCell(o,r)?0:-1),Y1("aria-label",t.ariaLabel)("aria-disabled",!t.enabled||null)("aria-pressed",s._isSelected(t.compareValue))("aria-current",s.todayValue===t.compareValue?"date":null)("aria-describedby",s._getDescribedby(t.compareValue)),St(1),Zn("mat-calendar-body-selected",s._isSelected(t.compareValue))("mat-calendar-body-comparison-identical",s._isComparisonIdentical(t.compareValue))("mat-calendar-body-today",s.todayValue===t.compareValue),St(1),wo(" ",t.displayValue," ")}}function a1t(e,n){if(1&e&&(yt(0,"tr",5),Ze(1,i1t,2,6,"td",6),Ze(2,l1t,5,48,"td",7),Vt()),2&e){const t=n.$implicit,r=n.index,o=Zt();St(1),xt("ngIf",0===r&&o._firstRowOffset),St(1),xt("ngForOf",t)}}function c1t(e,n){if(1&e&&(yt(0,"th",5)(1,"span",6),xr(2),Vt(),yt(3,"span",7),xr(4),Vt()()),2&e){const t=n.$implicit;St(2),js(t.long),St(2),js(t.narrow)}}const h1t=["*"];function u1t(e,n){}function d1t(e,n){if(1&e){const t=V1();yt(0,"mat-month-view",5),ie("activeDateChange",function(o){return ct(t),Bt(Zt().activeDate=o)})("_userSelection",function(o){return ct(t),Bt(Zt()._dateSelected(o))})("dragStarted",function(o){return ct(t),Bt(Zt()._dragStarted(o))})("dragEnded",function(o){return ct(t),Bt(Zt()._dragEnded(o))}),Vt()}if(2&e){const t=Zt();xt("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)("comparisonStart",t.comparisonStart)("comparisonEnd",t.comparisonEnd)("startDateAccessibleName",t.startDateAccessibleName)("endDateAccessibleName",t.endDateAccessibleName)("activeDrag",t._activeDrag)}}function p1t(e,n){if(1&e){const t=V1();yt(0,"mat-year-view",6),ie("activeDateChange",function(o){return ct(t),Bt(Zt().activeDate=o)})("monthSelected",function(o){return ct(t),Bt(Zt()._monthSelectedInYearView(o))})("selectedChange",function(o){return ct(t),Bt(Zt()._goToDateInView(o,"month"))}),Vt()}if(2&e){const t=Zt();xt("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)}}function v1t(e,n){if(1&e){const t=V1();yt(0,"mat-multi-year-view",7),ie("activeDateChange",function(o){return ct(t),Bt(Zt().activeDate=o)})("yearSelected",function(o){return ct(t),Bt(Zt()._yearSelectedInMultiYearView(o))})("selectedChange",function(o){return ct(t),Bt(Zt()._goToDateInView(o,"year"))}),Vt()}if(2&e){const t=Zt();xt("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)}}function g1t(e,n){}const f1t=[[["input","matStartDate",""]],[["input","matEndDate",""]]],m1t=["input[matStartDate]","input[matEndDate]"];let U9=(()=>{class e{constructor(){this.changes=new Dt,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(t,r){return`${t} \u2013 ${r}`}formatYearRangeLabel(t,r){return`${t} to ${r}`}static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275prov=xe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class dw{constructor(n,t,r,o,s={},i=n,l){this.value=n,this.displayValue=t,this.ariaLabel=r,this.enabled=o,this.cssClasses=s,this.compareValue=i,this.rawValue=l}}let w1t=1;const DA=Ia({passive:!1,capture:!0}),D0=Ia({passive:!0,capture:!0}),Z9=Ia({passive:!0});let vh=(()=>{class e{ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}constructor(t,r){this._elementRef=t,this._ngZone=r,this._platform=g1(ns),this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new _e,this.previewChange=new _e,this.activeDateChange=new _e,this.dragStarted=new _e,this.dragEnded=new _e,this._didDragSinceMouseDown=!1,this._enterHandler=o=>{if(this._skipNextFocus&&"focus"===o.type)this._skipNextFocus=!1;else if(o.target&&this.isRange){const s=this._getCellFromElement(o.target);s&&this._ngZone.run(()=>this.previewChange.emit({value:s.enabled?s:null,event:o}))}},this._touchmoveHandler=o=>{if(!this.isRange)return;const s=BA(o),i=s?this._getCellFromElement(s):null;s!==o.target&&(this._didDragSinceMouseDown=!0),vw(o.target)&&o.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:i?.enabled?i:null,event:o}))},this._leaveHandler=o=>{null!==this.previewEnd&&this.isRange&&("blur"!==o.type&&(this._didDragSinceMouseDown=!0),o.target&&this._getCellFromElement(o.target)&&(!o.relatedTarget||!this._getCellFromElement(o.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:o})))},this._mousedownHandler=o=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;const s=o.target&&this._getCellFromElement(o.target);!s||!this._isInRange(s.rawValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:s.rawValue,event:o})})},this._mouseupHandler=o=>{if(!this.isRange)return;const s=vw(o.target);s?s.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{const i=this._getCellFromElement(s);this.dragEnded.emit({value:i?.rawValue??null,event:o})}):this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:o})})},this._touchendHandler=o=>{const s=BA(o);s&&this._mouseupHandler({target:s})},this._id="mat-calendar-body-"+w1t++,this._startDateLabelId=`${this._id}-start-date`,this._endDateLabelId=`${this._id}-end-date`,r.runOutsideAngular(()=>{const o=t.nativeElement;o.addEventListener("touchmove",this._touchmoveHandler,DA),o.addEventListener("mouseenter",this._enterHandler,D0),o.addEventListener("focus",this._enterHandler,D0),o.addEventListener("mouseleave",this._leaveHandler,D0),o.addEventListener("blur",this._leaveHandler,D0),o.addEventListener("mousedown",this._mousedownHandler,Z9),o.addEventListener("touchstart",this._mousedownHandler,Z9),this._platform.isBrowser&&(window.addEventListener("mouseup",this._mouseupHandler),window.addEventListener("touchend",this._touchendHandler))})}_cellClicked(t,r){this._didDragSinceMouseDown||t.enabled&&this.selectedValueChange.emit({value:t.value,event:r})}_emitActiveDateChange(t,r){t.enabled&&this.activeDateChange.emit({value:t.value,event:r})}_isSelected(t){return this.startValue===t||this.endValue===t}ngOnChanges(t){const r=t.numCols,{rows:o,numCols:s}=this;(t.rows||r)&&(this._firstRowOffset=o&&o.length&&o[0].length?s-o[0].length:0),(t.cellAspectRatio||r||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/s+"%"),(r||!this._cellWidth)&&(this._cellWidth=100/s+"%")}ngOnDestroy(){const t=this._elementRef.nativeElement;t.removeEventListener("touchmove",this._touchmoveHandler,DA),t.removeEventListener("mouseenter",this._enterHandler,D0),t.removeEventListener("focus",this._enterHandler,D0),t.removeEventListener("mouseleave",this._leaveHandler,D0),t.removeEventListener("blur",this._leaveHandler,D0),t.removeEventListener("mousedown",this._mousedownHandler,Z9),t.removeEventListener("touchstart",this._mousedownHandler,Z9),this._platform.isBrowser&&(window.removeEventListener("mouseup",this._mouseupHandler),window.removeEventListener("touchend",this._touchendHandler))}_isActiveCell(t,r){let o=t*this.numCols+r;return t&&(o-=this._firstRowOffset),o==this.activeCell}_focusActiveCell(t=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(A2(1)).subscribe(()=>{setTimeout(()=>{const r=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");r&&(t||(this._skipNextFocus=!0),r.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(t){return gw(t,this.startValue,this.endValue)}_isRangeEnd(t){return fw(t,this.startValue,this.endValue)}_isInRange(t){return mw(t,this.startValue,this.endValue,this.isRange)}_isComparisonStart(t){return gw(t,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(t,r,o){if(!this._isComparisonStart(t)||this._isRangeStart(t)||!this._isInRange(t))return!1;let s=this.rows[r][o-1];if(!s){const i=this.rows[r-1];s=i&&i[i.length-1]}return s&&!this._isRangeEnd(s.compareValue)}_isComparisonBridgeEnd(t,r,o){if(!this._isComparisonEnd(t)||this._isRangeEnd(t)||!this._isInRange(t))return!1;let s=this.rows[r][o+1];if(!s){const i=this.rows[r+1];s=i&&i[0]}return s&&!this._isRangeStart(s.compareValue)}_isComparisonEnd(t){return fw(t,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(t){return mw(t,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(t){return this.comparisonStart===this.comparisonEnd&&t===this.comparisonStart}_isPreviewStart(t){return gw(t,this.previewStart,this.previewEnd)}_isPreviewEnd(t){return fw(t,this.previewStart,this.previewEnd)}_isInPreview(t){return mw(t,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(t){return this.isRange?this.startValue===t&&this.endValue===t?`${this._startDateLabelId} ${this._endDateLabelId}`:this.startValue===t?this._startDateLabelId:this.endValue===t?this._endDateLabelId:null:null}_getCellFromElement(t){const r=vw(t);if(r){const o=r.getAttribute("data-mat-row"),s=r.getAttribute("data-mat-col");if(o&&s)return this.rows[parseInt(o)][parseInt(s)]}return null}static#t=this.\u0275fac=function(r){return new(r||e)(vt(Br),vt(_r))};static#e=this.\u0275cmp=U1({type:e,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],features:[mo],attrs:o1t,decls:6,vars:6,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],[1,"mat-calendar-body-hidden-label",3,"id"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click","focus"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(r,o){1&r&&(Ze(0,s1t,3,6,"tr",0),Ze(1,a1t,3,2,"tr",1),yt(2,"label",2),xr(3),Vt(),yt(4,"label",2),xr(5),Vt()),2&r&&(xt("ngIf",o._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){color:var(--mat-datepicker-calendar-date-disabled-state-text-color)}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-disabled-state-outline-color)}.cdk-high-contrast-active .mat-calendar-body-disabled{opacity:.5}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px;color:var(--mat-datepicker-calendar-date-text-color);border-color:var(--mat-datepicker-calendar-date-outline-color)}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-focus-state-background-color)}@media(hover: hover){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-hover-state-background-color)}}.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-state-background-color);color:var(--mat-datepicker-calendar-date-selected-state-text-color)}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-disabled-state-background-color)}.mat-calendar-body-selected.mat-calendar-body-today{box-shadow:inset 0 0 0 1px var(--mat-datepicker-calendar-date-today-selected-state-outline-color)}.mat-calendar-body-in-range::before{background:var(--mat-datepicker-calendar-date-in-range-state-background-color)}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color)}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color)}.mat-calendar-body-comparison-bridge-start::before,[dir=rtl] .mat-calendar-body-comparison-bridge-end::before{background:linear-gradient(to right, var(--mat-datepicker-calendar-date-in-range-state-background-color) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color) 50%)}.mat-calendar-body-comparison-bridge-end::before,[dir=rtl] .mat-calendar-body-comparison-bridge-start::before{background:linear-gradient(to left, var(--mat-datepicker-calendar-date-in-range-state-background-color) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color) 50%)}.mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range::after{background:var(--mat-datepicker-calendar-date-in-overlap-range-state-background-color)}.mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:var(--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color)}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}'],encapsulation:2,changeDetection:0})}return e})();function pw(e){return"TD"===e?.nodeName}function vw(e){let n;return pw(e)?n=e:pw(e.parentNode)?n=e.parentNode:pw(e.parentNode?.parentNode)&&(n=e.parentNode.parentNode),null!=n?.getAttribute("data-mat-row")?n:null}function gw(e,n,t){return null!==t&&n!==t&&e=n&&e===t}function mw(e,n,t,r){return r&&null!==n&&null!==t&&n!==t&&e>=n&&e<=t}function BA(e){const n=e.changedTouches[0];return document.elementFromPoint(n.clientX,n.clientY)}class B2{constructor(n,t){this.start=n,this.end=t}}let B0=(()=>{class e{constructor(t,r){this.selection=t,this._adapter=r,this._selectionChanged=new Dt,this.selectionChanged=this._selectionChanged,this.selection=t}updateSelection(t,r){const o=this.selection;this.selection=t,this._selectionChanged.next({selection:t,source:r,oldValue:o})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(t){return this._adapter.isDateInstance(t)&&this._adapter.isValid(t)}static#t=this.\u0275fac=function(r){up()};static#e=this.\u0275prov=xe({token:e,factory:e.\u0275fac})}return e})(),C1t=(()=>{class e extends B0{constructor(t){super(null,t)}add(t){super.updateSelection(t,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const t=new e(this._adapter);return t.updateSelection(this.selection,this),t}static#t=this.\u0275fac=function(r){return new(r||e)(gt(Bo))};static#e=this.\u0275prov=xe({token:e,factory:e.\u0275fac})}return e})(),k1t=(()=>{class e extends B0{constructor(t){super(new B2(null,null),t)}add(t){let{start:r,end:o}=this.selection;null==r?r=t:null==o?o=t:(r=t,o=null),super.updateSelection(new B2(r,o),this)}isValid(){const{start:t,end:r}=this.selection;return null==t&&null==r||(null!=t&&null!=r?this._isValidDateInstance(t)&&this._isValidDateInstance(r)&&this._adapter.compareDate(t,r)<=0:(null==t||this._isValidDateInstance(t))&&(null==r||this._isValidDateInstance(r)))}isComplete(){return null!=this.selection.start&&null!=this.selection.end}clone(){const t=new e(this._adapter);return t.updateSelection(this.selection,this),t}static#t=this.\u0275fac=function(r){return new(r||e)(gt(Bo))};static#e=this.\u0275prov=xe({token:e,factory:e.\u0275fac})}return e})();const x1t={provide:B0,deps:[[new a0,new c0,B0],Bo],useFactory:function _1t(e,n){return e||new C1t(n)}},y1t={provide:B0,deps:[[new a0,new c0,B0],Bo],useFactory:function M1t(e,n){return e||new k1t(n)}},q9=new Me("MAT_DATE_RANGE_SELECTION_STRATEGY");let H1t=(()=>{class e{constructor(t){this._dateAdapter=t}selectionFinished(t,r){let{start:o,end:s}=r;return null==o?o=t:null==s&&t&&this._dateAdapter.compareDate(t,o)>=0?s=t:(o=t,s=null),new B2(o,s)}createPreview(t,r){let o=null,s=null;return r.start&&!r.end&&t&&(o=r.start,s=t),new B2(o,s)}createDrag(t,r,o){let s=r.start,i=r.end;if(!s||!i)return null;const l=this._dateAdapter,a=0!==l.compareDate(s,i),c=l.getYear(o)-l.getYear(t),h=l.getMonth(o)-l.getMonth(t),u=l.getDate(o)-l.getDate(t);return a&&l.sameDate(t,r.start)?(s=o,l.compareDate(o,i)>0&&(i=l.addCalendarYears(i,c),i=l.addCalendarMonths(i,h),i=l.addCalendarDays(i,u))):a&&l.sameDate(t,r.end)?(i=o,l.compareDate(o,s)<0&&(s=l.addCalendarYears(s,c),s=l.addCalendarMonths(s,h),s=l.addCalendarDays(s,u))):(s=l.addCalendarYears(s,c),s=l.addCalendarMonths(s,h),s=l.addCalendarDays(s,u),i=l.addCalendarYears(i,c),i=l.addCalendarMonths(i,h),i=l.addCalendarDays(i,u)),new B2(s,i)}static#t=this.\u0275fac=function(r){return new(r||e)(gt(Bo))};static#e=this.\u0275prov=xe({token:e,factory:e.\u0275fac})}return e})();const b1t={provide:q9,deps:[[new a0,new c0,q9],Bo],useFactory:function z1t(e,n){return e||new H1t(n)}};let TA=(()=>{class e{get activeDate(){return this._activeDate}set activeDate(t){const r=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),this._hasSameMonthAndYear(r,this._activeDate)||this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof B2?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}constructor(t,r,o,s,i){this._changeDetectorRef=t,this._dateFormats=r,this._dateAdapter=o,this._dir=s,this._rangeStrategy=i,this._rerenderSubscription=zt.EMPTY,this.activeDrag=null,this.selectedChange=new _e,this._userSelection=new _e,this.dragStarted=new _e,this.dragEnded=new _e,this.activeDateChange=new _e,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Ku(null)).subscribe(()=>this._init())}ngOnChanges(t){const r=t.comparisonStart||t.comparisonEnd;r&&!r.firstChange&&this._setRanges(this.selected),t.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(t){const r=t.value,o=this._getDateFromDayOfMonth(r);let s,i;this._selected instanceof B2?(s=this._getDateInCurrentMonth(this._selected.start),i=this._getDateInCurrentMonth(this._selected.end)):s=i=this._getDateInCurrentMonth(this._selected),(s!==r||i!==r)&&this.selectedChange.emit(o),this._userSelection.emit({value:o,event:t.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(t){const o=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(t.value),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(t){const r=this._activeDate,o=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,o?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,o?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&t.preventDefault());case 27:return void(null!=this._previewEnd&&!wl(t)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:t}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:t})),t.preventDefault(),t.stopPropagation()));default:return}this._dateAdapter.compareDate(r,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),t.preventDefault()}_handleCalendarBodyKeyup(t){(32===t.keyCode||13===t.keyCode)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:t}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(t)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(t){this._matCalendarBody._focusActiveCell(t)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:t,value:r}){if(this._rangeStrategy){const o=r?r.rawValue:null,s=this._rangeStrategy.createPreview(o,this.selected,t);if(this._previewStart=this._getCellCompareValue(s.start),this._previewEnd=this._getCellCompareValue(s.end),this.activeDrag&&o){const i=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,o,t);i&&(this._previewStart=this._getCellCompareValue(i.start),this._previewEnd=this._getCellCompareValue(i.end))}this._changeDetectorRef.detectChanges()}}_dragEnded(t){if(this.activeDrag)if(t.value){const r=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,t.value,t.event);this.dragEnded.emit({value:r??null,event:t.event})}else this.dragEnded.emit({value:null,event:t.event})}_getDateFromDayOfMonth(t){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),t)}_initWeekdays(){const t=this._dateAdapter.getFirstDayOfWeek(),r=this._dateAdapter.getDayOfWeekNames("narrow");let s=this._dateAdapter.getDayOfWeekNames("long").map((i,l)=>({long:i,narrow:r[l]}));this._weekdays=s.slice(t).concat(s.slice(0,t))}_createWeekCells(){const t=this._dateAdapter.getNumDaysInMonth(this.activeDate),r=this._dateAdapter.getDateNames();this._weeks=[[]];for(let o=0,s=this._firstWeekOffset;o=0)&&(!this.maxDate||this._dateAdapter.compareDate(t,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(t))}_getDateInCurrentMonth(t){return t&&this._hasSameMonthAndYear(t,this.activeDate)?this._dateAdapter.getDate(t):null}_hasSameMonthAndYear(t,r){return!(!t||!r||this._dateAdapter.getMonth(t)!=this._dateAdapter.getMonth(r)||this._dateAdapter.getYear(t)!=this._dateAdapter.getYear(r))}_getCellCompareValue(t){if(t){const r=this._dateAdapter.getYear(t),o=this._dateAdapter.getMonth(t),s=this._dateAdapter.getDate(t);return new Date(r,o,s).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(t){t instanceof B2?(this._rangeStart=this._getCellCompareValue(t.start),this._rangeEnd=this._getCellCompareValue(t.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(t),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(t){return!this.dateFilter||this.dateFilter(t)}_clearPreview(){this._previewStart=this._previewEnd=null}static#t=this.\u0275fac=function(r){return new(r||e)(vt(ms),vt(Kl,8),vt(Bo,8),vt(S0,8),vt(q9,8))};static#e=this.\u0275cmp=U1({type:e,selectors:[["mat-month-view"]],viewQuery:function(r,o){if(1&r&&jn(vh,5),2&r){let s;Kr(s=Qr())&&(o._matCalendarBody=s.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[mo],decls:7,vars:15,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName","selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(r,o){1&r&&(yt(0,"table",0)(1,"thead",1)(2,"tr"),Ze(3,c1t,5,2,"th",2),Vt(),yt(4,"tr"),rr(5,"th",3),Vt()(),yt(6,"tbody",4),ie("selectedValueChange",function(i){return o._dateSelected(i)})("activeDateChange",function(i){return o._updateActiveDate(i)})("previewChange",function(i){return o._previewChanged(i)})("dragStarted",function(i){return o.dragStarted.emit(i)})("dragEnded",function(i){return o._dragEnded(i)})("keyup",function(i){return o._handleCalendarBodyKeyup(i)})("keydown",function(i){return o._handleCalendarBodyKeydown(i)}),Vt()()),2&r&&(St(3),xt("ngForOf",o._weekdays),St(3),xt("label",o._monthLabel)("rows",o._weeks)("todayValue",o._todayDate)("startValue",o._rangeStart)("endValue",o._rangeEnd)("comparisonStart",o._comparisonRangeStart)("comparisonEnd",o._comparisonRangeEnd)("previewStart",o._previewStart)("previewEnd",o._previewEnd)("isRange",o._isRange)("labelMinRequiredCells",3)("activeCell",o._dateAdapter.getDate(o.activeDate)-1)("startDateAccessibleName",o.startDateAccessibleName)("endDateAccessibleName",o.endDateAccessibleName))},dependencies:[ba,vh],encapsulation:2,changeDetection:0})}return e})();const gi=24;let EA=(()=>{class e{get activeDate(){return this._activeDate}set activeDate(t){let r=this._activeDate;const o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),jA(this._dateAdapter,r,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof B2?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedYear(t)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}constructor(t,r,o){this._changeDetectorRef=t,this._dateAdapter=r,this._dir=o,this._rerenderSubscription=zt.EMPTY,this.selectedChange=new _e,this.yearSelected=new _e,this.activeDateChange=new _e,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Ku(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const r=this._dateAdapter.getYear(this._activeDate)-nd(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let o=0,s=[];othis._createCellForYear(i))),s=[]);this._changeDetectorRef.markForCheck()}_yearSelected(t){const r=t.value,o=this._dateAdapter.createDate(r,0,1),s=this._getDateFromYear(r);this.yearSelected.emit(o),this.selectedChange.emit(s)}_updateActiveDate(t){const o=this._activeDate;this.activeDate=this._getDateFromYear(t.value),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(t){const r=this._activeDate,o=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,o?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,o?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-nd(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,gi-nd(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?10*-gi:-gi);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?10*gi:gi);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),t.preventDefault()}_handleCalendarBodyKeyup(t){(32===t.keyCode||13===t.keyCode)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:t}),this._selectionKeyPressed=!1)}_getActiveCell(){return nd(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(t){const r=this._dateAdapter.getMonth(this.activeDate),o=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(t,r,1));return this._dateAdapter.createDate(t,r,Math.min(this._dateAdapter.getDate(this.activeDate),o))}_createCellForYear(t){const r=this._dateAdapter.createDate(t,0,1),o=this._dateAdapter.getYearName(r),s=this.dateClass?this.dateClass(r,"multi-year"):void 0;return new dw(t,o,o,this._shouldEnableYear(t),s)}_shouldEnableYear(t){if(null==t||this.maxDate&&t>this._dateAdapter.getYear(this.maxDate)||this.minDate&&t{class e{get activeDate(){return this._activeDate}set activeDate(t){let r=this._activeDate;const o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),this._dateAdapter.getYear(r)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof B2?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedMonth(t)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}constructor(t,r,o,s){this._changeDetectorRef=t,this._dateFormats=r,this._dateAdapter=o,this._dir=s,this._rerenderSubscription=zt.EMPTY,this.selectedChange=new _e,this.monthSelected=new _e,this.activeDateChange=new _e,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Ku(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(t){const r=t.value,o=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),r,1);this.monthSelected.emit(o);const s=this._getDateFromMonth(r);this.selectedChange.emit(s)}_updateActiveDate(t){const o=this._activeDate;this.activeDate=this._getDateFromMonth(t.value),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(t){const r=this._activeDate,o=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,o?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,o?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(r,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),t.preventDefault()}_handleCalendarBodyKeyup(t){(32===t.keyCode||13===t.keyCode)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:t}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let t=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(r=>r.map(o=>this._createCellForMonth(o,t[o]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(t){return t&&this._dateAdapter.getYear(t)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(t):null}_getDateFromMonth(t){const r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1),o=this._dateAdapter.getNumDaysInMonth(r);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,Math.min(this._dateAdapter.getDate(this.activeDate),o))}_createCellForMonth(t,r){const o=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1),s=this._dateAdapter.format(o,this._dateFormats.display.monthYearA11yLabel),i=this.dateClass?this.dateClass(o,"year"):void 0;return new dw(t,r.toLocaleUpperCase(),s,this._shouldEnableMonth(t),i)}_shouldEnableMonth(t){const r=this._dateAdapter.getYear(this.activeDate);if(null==t||this._isYearAndMonthAfterMaxDate(r,t)||this._isYearAndMonthBeforeMinDate(r,t))return!1;if(!this.dateFilter)return!0;for(let s=this._dateAdapter.createDate(r,t,1);this._dateAdapter.getMonth(s)==t;s=this._dateAdapter.addCalendarDays(s,1))if(this.dateFilter(s))return!0;return!1}_isYearAndMonthAfterMaxDate(t,r){if(this.maxDate){const o=this._dateAdapter.getYear(this.maxDate),s=this._dateAdapter.getMonth(this.maxDate);return t>o||t===o&&r>s}return!1}_isYearAndMonthBeforeMinDate(t,r){if(this.minDate){const o=this._dateAdapter.getYear(this.minDate),s=this._dateAdapter.getMonth(this.minDate);return t{class e{constructor(t,r,o,s,i){this._intl=t,this.calendar=r,this._dateAdapter=o,this._dateFormats=s,this._id="mat-calendar-header-"+V1t++,this._periodButtonLabelId=`${this._id}-period-label`,this.calendar.stateChanges.subscribe(()=>i.markForCheck())}get periodButtonText(){return"month"==this.calendar.currentView?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():"year"==this.calendar.currentView?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRange(...this._formatMinAndMaxYearLabels())}get periodButtonDescription(){return"month"==this.calendar.currentView?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():"year"==this.calendar.currentView?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRangeLabel(...this._formatMinAndMaxYearLabels())}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-gi)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:gi)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(t,r){return"month"==this.calendar.currentView?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(r)&&this._dateAdapter.getMonth(t)==this._dateAdapter.getMonth(r):"year"==this.calendar.currentView?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(r):jA(this._dateAdapter,t,r,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){const r=this._dateAdapter.getYear(this.calendar.activeDate)-nd(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),o=r+gi-1;return[this._dateAdapter.getYearName(this._dateAdapter.createDate(r,0,1)),this._dateAdapter.getYearName(this._dateAdapter.createDate(o,0,1))]}static#t=this.\u0275fac=function(r){return new(r||e)(vt(U9),vt(Hr(()=>kw)),vt(Bo,8),vt(Kl,8),vt(ms))};static#e=this.\u0275cmp=U1({type:e,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:h1t,decls:13,vars:11,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"],[1,"mat-calendar-hidden-label",3,"id"]],template:function(r,o){1&r&&(Es(),yt(0,"div",0)(1,"div",1)(2,"button",2),ie("click",function(){return o.currentPeriodClicked()}),yt(3,"span",3),xr(4),Vt(),s0(),yt(5,"svg",4),rr(6,"polygon",5),Vt()(),Xh(),rr(7,"div",6),g2(8),yt(9,"button",7),ie("click",function(){return o.previousClicked()}),Vt(),yt(10,"button",8),ie("click",function(){return o.nextClicked()}),Vt()()(),yt(11,"label",9),xr(12),Vt()),2&r&&(St(2),Y1("aria-label",o.periodButtonLabel)("aria-describedby",o._periodButtonLabelId),St(2),js(o.periodButtonText),St(1),Zn("mat-calendar-invert","month"!==o.calendar.currentView),St(4),xt("disabled",!o.previousEnabled()),Y1("aria-label",o.prevButtonLabel),St(1),xt("disabled",!o.nextEnabled()),Y1("aria-label",o.nextButtonLabel),St(1),xt("id",o._periodButtonLabelId),St(1),js(o.periodButtonDescription))},dependencies:[AA,qet],encapsulation:2,changeDetection:0})}return e})(),kw=(()=>{class e{get startAt(){return this._startAt}set startAt(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get selected(){return this._selected}set selected(t){this._selected=t instanceof B2?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get activeDate(){return this._clampedActiveDate}set activeDate(t){this._clampedActiveDate=this._dateAdapter.clampDate(t,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(t){const r=this._currentView!==t?t:null;this._currentView=t,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),r&&this.viewChanged.emit(r)}constructor(t,r,o,s){this._dateAdapter=r,this._dateFormats=o,this._changeDetectorRef=s,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new _e,this.yearSelected=new _e,this.monthSelected=new _e,this.viewChanged=new _e(!0),this._userSelection=new _e,this._userDragDrop=new _e,this._activeDrag=null,this.stateChanges=new Dt,this._intlChanges=t.changes.subscribe(()=>{s.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new lw(this.headerComponent||S1t),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(t){const r=t.minDate&&!this._dateAdapter.sameDate(t.minDate.previousValue,t.minDate.currentValue)?t.minDate:void 0,o=t.maxDate&&!this._dateAdapter.sameDate(t.maxDate.previousValue,t.maxDate.currentValue)?t.maxDate:void 0,s=r||o||t.dateFilter;if(s&&!s.firstChange){const i=this._getCurrentViewComponent();i&&(this._changeDetectorRef.detectChanges(),i._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(t){const r=t.value;(this.selected instanceof B2||r&&!this._dateAdapter.sameDate(r,this.selected))&&this.selectedChange.emit(r),this._userSelection.emit(t)}_yearSelectedInMultiYearView(t){this.yearSelected.emit(t)}_monthSelectedInYearView(t){this.monthSelected.emit(t)}_goToDateInView(t,r){this.activeDate=t,this.currentView=r}_dragStarted(t){this._activeDrag=t}_dragEnded(t){this._activeDrag&&(t.value&&this._userDragDrop.emit(t),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}static#t=this.\u0275fac=function(r){return new(r||e)(vt(U9),vt(Bo,8),vt(Kl,8),vt(ms))};static#e=this.\u0275cmp=U1({type:e,selectors:[["mat-calendar"]],viewQuery:function(r,o){if(1&r&&(jn(TA,5),jn(IA,5),jn(EA,5)),2&r){let s;Kr(s=Qr())&&(o.monthView=s.first),Kr(s=Qr())&&(o.yearView=s.first),Kr(s=Qr())&&(o.multiYearView=s.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],features:[Mr([x1t]),mo],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag","activeDateChange","_userSelection","dragStarted","dragEnded",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag","activeDateChange","_userSelection","dragStarted","dragEnded"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(r,o){1&r&&(Ze(0,u1t,0,0,"ng-template",0),yt(1,"div",1),Ze(2,d1t,1,11,"mat-month-view",2),Ze(3,p1t,1,6,"mat-year-view",3),Ze(4,v1t,1,6,"mat-multi-year-view",4),Vt()),2&r&&(xt("cdkPortalOutlet",o._calendarHeaderPortal),St(1),xt("ngSwitch",o.currentView),St(1),xt("ngSwitchCase","month"),St(1),xt("ngSwitchCase","year"),St(1),xt("ngSwitchCase","multi-year"))},dependencies:[F4,e6,IS,gA,TA,IA,EA],styles:['.mat-calendar{display:block;font-family:var(--mat-datepicker-calendar-text-font);font-size:var(--mat-datepicker-calendar-text-size)}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px;font-size:var(--mat-datepicker-calendar-period-button-text-size);font-weight:var(--mat-datepicker-calendar-period-button-text-weight)}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle;fill:var(--mat-datepicker-calendar-period-button-icon-color)}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-datepicker-content .mat-calendar-previous-button,.mat-datepicker-content .mat-calendar-next-button{color:var(--mat-datepicker-calendar-navigation-button-icon-color)}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0;color:var(--mat-datepicker-calendar-header-text-color);font-size:var(--mat-datepicker-calendar-header-text-size);font-weight:var(--mat-datepicker-calendar-header-text-weight)}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px;background:var(--mat-datepicker-calendar-header-divider-color)}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}.mat-calendar-hidden-label{display:none}'],encapsulation:2,changeDetection:0})}return e})();const RA={transformPanel:ja("transformPanel",[rs("void => enter-dropdown",D2("120ms cubic-bezier(0, 0, 0.2, 1)",a5([Tr({opacity:0,transform:"scale(1, 0.8)"}),Tr({opacity:1,transform:"scale(1, 1)"})]))),rs("void => enter-dialog",D2("150ms cubic-bezier(0, 0, 0.2, 1)",a5([Tr({opacity:0,transform:"scale(0.7)"}),Tr({transform:"none",opacity:1})]))),rs("* => void",D2("100ms linear",Tr({opacity:0})))]),fadeInCalendar:ja("fadeInCalendar",[ml("void",Tr({opacity:0})),ml("enter",Tr({opacity:1})),rs("void => *",D2("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let A1t=0;const FA=new Me("mat-datepicker-scroll-strategy"),B1t={provide:FA,deps:[A0],useFactory:function D1t(e){return()=>e.scrollStrategies.reposition()}},T1t=I9(class{constructor(e){this._elementRef=e}});let E1t=(()=>{class e extends T1t{constructor(t,r,o,s,i,l){super(t),this._changeDetectorRef=r,this._globalModel=o,this._dateAdapter=s,this._rangeSelectionStrategy=i,this._subscriptions=new zt,this._animationDone=new Dt,this._isAnimating=!1,this._actionsPortal=null,this._closeButtonText=l.closeCalendarLabel}ngOnInit(){this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(t){const r=this._model.selection,o=t.value,s=r instanceof B2;if(s&&this._rangeSelectionStrategy){const i=this._rangeSelectionStrategy.selectionFinished(o,r,t.event);this._model.updateSelection(i,this)}else o&&(s||!this._dateAdapter.sameDate(o,r))&&this._model.add(o);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(t){this._model.updateSelection(t.value,this)}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_handleAnimationEvent(t){this._isAnimating="start"===t.phaseName,this._isAnimating||this._animationDone.next()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(t,r){this._model=t?this._globalModel.clone():this._globalModel,this._actionsPortal=t,r&&this._changeDetectorRef.detectChanges()}static#t=this.\u0275fac=function(r){return new(r||e)(vt(Br),vt(ms),vt(B0),vt(Bo),vt(q9,8),vt(U9))};static#e=this.\u0275cmp=U1({type:e,selectors:[["mat-datepicker-content"]],viewQuery:function(r,o){if(1&r&&jn(kw,5),2&r){let s;Kr(s=Qr())&&(o._calendar=s.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(r,o){1&r&&sv("@transformPanel.start",function(i){return o._handleAnimationEvent(i)})("@transformPanel.done",function(i){return o._handleAnimationEvent(i)}),2&r&&(hv("@transformPanel",o._animationState),Zn("mat-datepicker-content-touch",o.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[er],decls:5,vars:26,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(r,o){if(1&r&&(yt(0,"div",0)(1,"mat-calendar",1),ie("yearSelected",function(i){return o.datepicker._selectYear(i)})("monthSelected",function(i){return o.datepicker._selectMonth(i)})("viewChanged",function(i){return o.datepicker._viewChanged(i)})("_userSelection",function(i){return o._handleUserSelection(i)})("_userDragDrop",function(i){return o._handleUserDragDrop(i)}),Vt(),Ze(2,g1t,0,0,"ng-template",2),yt(3,"button",3),ie("focus",function(){return o._closeButtonFocused=!0})("blur",function(){return o._closeButtonFocused=!1})("click",function(){return o.datepicker.close()}),xr(4),Vt()()),2&r){let s;Zn("mat-datepicker-content-container-with-custom-header",o.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",o._actionsPortal),Y1("aria-modal",!0)("aria-labelledby",null!==(s=o._dialogLabelId)&&void 0!==s?s:void 0),St(1),xt("id",o.datepicker.id)("ngClass",o.datepicker.panelClass)("startAt",o.datepicker.startAt)("startView",o.datepicker.startView)("minDate",o.datepicker._getMinDate())("maxDate",o.datepicker._getMaxDate())("dateFilter",o.datepicker._getDateFilter())("headerComponent",o.datepicker.calendarHeaderComponent)("selected",o._getSelected())("dateClass",o.datepicker.dateClass)("comparisonStart",o.comparisonStart)("comparisonEnd",o.comparisonEnd)("@fadeInCalendar","enter")("startDateAccessibleName",o.startDateAccessibleName)("endDateAccessibleName",o.endDateAccessibleName),St(1),xt("cdkPortalOutlet",o._actionsPortal),St(1),Zn("cdk-visually-hidden",!o._closeButtonFocused),xt("color",o.color||"primary"),St(1),js(o._closeButtonText)}},dependencies:[Di,AA,ctt,gA,kw],styles:[".mat-datepicker-content{box-shadow:0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);display:block;border-radius:4px;background-color:var(--mat-datepicker-calendar-container-background-color);color:var(--mat-datepicker-calendar-container-text-color)}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{box-shadow:0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12);display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}"],encapsulation:2,data:{animation:[RA.transformPanel,RA.fadeInCalendar]},changeDetection:0})}return e})(),OA=(()=>{class e{get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(t){this._color=t}get touchUi(){return this._touchUi}set touchUi(t){this._touchUi=co(t)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(t){const r=co(t);r!==this._disabled&&(this._disabled=r,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(t){this._restoreFocus=co(t)}get panelClass(){return this._panelClass}set panelClass(t){this._panelClass=function FJ(e,n=/\s+/){const t=[];if(null!=e){const r=Array.isArray(e)?e:`${e}`.split(n);for(const o of r){const s=`${o}`.trim();s&&t.push(s)}}return t}(t)}get opened(){return this._opened}set opened(t){co(t)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}constructor(t,r,o,s,i,l,a){this._overlay=t,this._ngZone=r,this._viewContainerRef=o,this._dateAdapter=i,this._dir=l,this._model=a,this._inputStateChanges=zt.EMPTY,this._document=g1(wn),this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new _e,this.monthSelected=new _e,this.viewChanged=new _e(!0),this.openedStream=new _e,this.closedStream=new _e,this._opened=!1,this.id="mat-datepicker-"+A1t++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new Dt,this._scrollStrategy=s}ngOnChanges(t){const r=t.xPosition||t.yPosition;if(r&&!r.firstChange&&this._overlayRef){const o=this._overlayRef.getConfig().positionStrategy;o instanceof MA&&(this._setConnectedPositions(o),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(t){this._model.add(t)}_selectYear(t){this.yearSelected.emit(t)}_selectMonth(t){this.monthSelected.emit(t)}_viewChanged(t){this.viewChanged.emit(t)}registerInput(t){return this._inputStateChanges.unsubscribe(),this.datepickerInput=t,this._inputStateChanges=t.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(t){this._actionsPortal=t,this._componentRef?.instance._assignActions(t,!0)}removeActions(t){t===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this._focusedElementBeforeOpen=kS(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;const t=this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus,r=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){const{instance:o,location:s}=this._componentRef;o._startExitAnimation(),o._animationDone.pipe(A2(1)).subscribe(()=>{const i=this._document.activeElement;t&&(!i||i===this._document.activeElement||s.nativeElement.contains(i))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()})}t?setTimeout(r):r()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(t){t.datepicker=this,t.color=this.color,t._dialogLabelId=this.datepickerInput.getOverlayLabelId(),t._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const t=this.touchUi,r=new lw(E1t,this._viewContainerRef),o=this._overlayRef=this._overlay.create(new $9({positionStrategy:t?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[t?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:t?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(t?"dialog":"popup")}));this._getCloseStream(o).subscribe(s=>{s&&s.preventDefault(),this.close()}),o.keydownEvents().subscribe(s=>{const i=s.keyCode;(38===i||40===i||37===i||39===i||33===i||34===i)&&s.preventDefault()}),this._componentRef=o.attach(r),this._forwardContentValues(this._componentRef.instance),t||this._ngZone.onStable.pipe(A2(1)).subscribe(()=>o.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const t=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(t)}_setConnectedPositions(t){const r="end"===this.xPosition?"end":"start",o="start"===r?"end":"start",s="above"===this.yPosition?"bottom":"top",i="top"===s?"bottom":"top";return t.withPositions([{originX:r,originY:i,overlayX:r,overlayY:s},{originX:r,originY:s,overlayX:r,overlayY:i},{originX:o,originY:i,overlayX:o,overlayY:s},{originX:o,originY:s,overlayX:o,overlayY:i}])}_getCloseStream(t){const r=["ctrlKey","shiftKey","metaKey"];return cs(t.backdropClick(),t.detachments(),t.keydownEvents().pipe(Zs(o=>27===o.keyCode&&!wl(o)||this.datepickerInput&&wl(o,"altKey")&&38===o.keyCode&&r.every(s=>!wl(o,s)))))}static#t=this.\u0275fac=function(r){return new(r||e)(vt(A0),vt(_r),vt(Rs),vt(FA),vt(Bo,8),vt(S0,8),vt(B0))};static#e=this.\u0275dir=s1({type:e,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[mo]})}return e})();class W9{constructor(n,t){this.target=n,this.targetElement=t,this.value=this.target.value}}let NA=(()=>{class e{get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(t){this._assignValueProgrammatically(t)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(t){const r=co(t),o=this._elementRef.nativeElement;this._disabled!==r&&(this._disabled=r,this.stateChanges.next(void 0)),r&&this._isInitialized&&o.blur&&o.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(t){this._model=t,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(r=>{if(this._shouldHandleChangeEvent(r)){const o=this._getValueFromModel(r.selection);this._lastValueValid=this._isValidValue(o),this._cvaOnChange(o),this._onTouched(),this._formatValue(o),this.dateInput.emit(new W9(this,this._elementRef.nativeElement)),this.dateChange.emit(new W9(this,this._elementRef.nativeElement))}})}constructor(t,r,o){this._elementRef=t,this._dateAdapter=r,this._dateFormats=o,this.dateChange=new _e,this.dateInput=new _e,this.stateChanges=new Dt,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=zt.EMPTY,this._localeSubscription=zt.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=s=>{const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(s.value));return!i||this._matchesFilter(i)?null:{matDatepickerFilter:!0}},this._minValidator=s=>{const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(s.value)),l=this._getMinDate();return!l||!i||this._dateAdapter.compareDate(l,i)<=0?null:{matDatepickerMin:{min:l,actual:i}}},this._maxValidator=s=>{const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(s.value)),l=this._getMaxDate();return!l||!i||this._dateAdapter.compareDate(l,i)>=0?null:{matDatepickerMax:{max:l,actual:i}}},this._lastValueValid=!1,this._localeSubscription=r.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(t){$A(t,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(t){this._validatorOnChange=t}validate(t){return this._validator?this._validator(t):null}writeValue(t){this._assignValueProgrammatically(t)}registerOnChange(t){this._cvaOnChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_onKeydown(t){wl(t,"altKey")&&40===t.keyCode&&["ctrlKey","shiftKey","metaKey"].every(s=>!wl(t,s))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),t.preventDefault())}_onInput(t){const r=this._lastValueValid;let o=this._dateAdapter.parse(t,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(o),o=this._dateAdapter.getValidDateOrNull(o);const s=!this._dateAdapter.sameDate(o,this.value);!o||s?this._cvaOnChange(o):(t&&!this.value&&this._cvaOnChange(o),r!==this._lastValueValid&&this._validatorOnChange()),s&&(this._assignValue(o),this.dateInput.emit(new W9(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new W9(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(t){this._elementRef.nativeElement.value=null!=t?this._dateAdapter.format(t,this._dateFormats.display.dateInput):""}_assignValue(t){this._model?(this._assignValueToModel(t),this._pendingValue=null):this._pendingValue=t}_isValidValue(t){return!t||this._dateAdapter.isValid(t)}_parentDisabled(){return!1}_assignValueProgrammatically(t){t=this._dateAdapter.deserialize(t),this._lastValueValid=this._isValidValue(t),t=this._dateAdapter.getValidDateOrNull(t),this._assignValue(t),this._formatValue(t)}_matchesFilter(t){const r=this._getDateFilter();return!r||r(t)}static#t=this.\u0275fac=function(r){return new(r||e)(vt(Br),vt(Bo,8),vt(Kl,8))};static#e=this.\u0275dir=s1({type:e,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[mo]})}return e})();function $A(e,n){const t=Object.keys(e);for(let r of t){const{previousValue:o,currentValue:s}=e[r];if(!n.isDateInstance(o)||!n.isDateInstance(s))return!0;if(!n.sameDate(o,s))return!0}return!1}function I1t(e){return _w(e,!0)}function ZA(e){return e.nodeType===Node.ELEMENT_NODE}function _w(e,n){if(ZA(e)&&n){const r=(e.getAttribute?.("aria-labelledby")?.split(/\s+/g)||[]).reduce((o,s)=>{const i=document.getElementById(s);return i&&o.push(i),o},[]);if(r.length)return r.map(o=>_w(o,!1)).join(" ")}if(ZA(e)){const t=e.getAttribute("aria-label")?.trim();if(t)return t}if(function R1t(e){return"INPUT"===e.nodeName}(e)||function F1t(e){return"TEXTAREA"===e.nodeName}(e)){if(e.labels?.length)return Array.from(e.labels).map(o=>_w(o,!1)).join(" ");const t=e.getAttribute("placeholder")?.trim();if(t)return t;const r=e.getAttribute("title")?.trim();if(r)return r}return(e.textContent||"").replace(/\s+/g," ").trim()}const G9=new Me("MAT_DATE_RANGE_INPUT_PARENT"),qA=xtt((()=>{class e extends NA{constructor(t,r,o,s,i,l,a,c){super(r,a,c),this._rangeInput=t,this._elementRef=r,this._defaultErrorStateMatcher=o,this._injector=s,this._parentForm=i,this._parentFormGroup=l,this._dir=g1(S0,{optional:!0})}ngOnInit(){const t=this._injector.get(Ta,null,{optional:!0,self:!0});t&&(this.ngControl=t)}ngDoCheck(){this.ngControl&&this.updateErrorState()}isEmpty(){return 0===this._elementRef.nativeElement.value.length}_getPlaceholder(){return this._elementRef.nativeElement.placeholder}focus(){this._elementRef.nativeElement.focus()}getMirrorValue(){const t=this._elementRef.nativeElement,r=t.value;return r.length>0?r:t.placeholder}_onInput(t){super._onInput(t),this._rangeInput._handleChildValueChange()}_openPopup(){this._rangeInput._openDatepicker()}_getMinDate(){return this._rangeInput.min}_getMaxDate(){return this._rangeInput.max}_getDateFilter(){return this._rangeInput.dateFilter}_parentDisabled(){return this._rangeInput._groupDisabled}_shouldHandleChangeEvent({source:t}){return t!==this._rangeInput._startInput&&t!==this._rangeInput._endInput}_assignValueProgrammatically(t){super._assignValueProgrammatically(t),(this===this._rangeInput._startInput?this._rangeInput._endInput:this._rangeInput._startInput)?._validatorOnChange()}_getAccessibleName(){return I1t(this._elementRef.nativeElement)}static#t=this.\u0275fac=function(r){return new(r||e)(vt(G9),vt(Br),vt(Jm),vt(v2),vt(ah,8),vt(n5,8),vt(Bo,8),vt(Kl,8))};static#e=this.\u0275dir=s1({type:e,features:[er]})}return e})());let WA=(()=>{class e extends qA{constructor(t,r,o,s,i,l,a,c){super(t,r,o,s,i,l,a,c),this._startValidator=h=>{const u=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(h.value)),d=this._model?this._model.selection.end:null;return!u||!d||this._dateAdapter.compareDate(u,d)<=0?null:{matStartDateInvalid:{end:d,actual:u}}},this._validator=d9.compose([...super._getValidators(),this._startValidator])}_getValueFromModel(t){return t.start}_shouldHandleChangeEvent(t){return!(!super._shouldHandleChangeEvent(t)||(t.oldValue?.start?t.selection.start&&!this._dateAdapter.compareDate(t.oldValue.start,t.selection.start):!t.selection.start))}_assignValueToModel(t){if(this._model){const r=new B2(t,this._model.selection.end);this._model.updateSelection(r,this)}}_formatValue(t){super._formatValue(t),this._rangeInput._handleChildValueChange()}_onKeydown(t){const r=this._rangeInput._endInput,o=this._elementRef.nativeElement,s="rtl"!==this._dir?.value;(39===t.keyCode&&s||37===t.keyCode&&!s)&&o.selectionStart===o.value.length&&o.selectionEnd===o.value.length?(t.preventDefault(),r._elementRef.nativeElement.setSelectionRange(0,0),r.focus()):super._onKeydown(t)}static#t=this.\u0275fac=function(r){return new(r||e)(vt(G9),vt(Br),vt(Jm),vt(v2),vt(ah,8),vt(n5,8),vt(Bo,8),vt(Kl,8))};static#e=this.\u0275dir=s1({type:e,selectors:[["input","matStartDate",""]],hostAttrs:["type","text",1,"mat-start-date","mat-date-range-input-inner"],hostVars:5,hostBindings:function(r,o){1&r&&ie("input",function(i){return o._onInput(i.target.value)})("change",function(){return o._onChange()})("keydown",function(i){return o._onKeydown(i)})("blur",function(){return o._onBlur()}),2&r&&(B4("disabled",o.disabled),Y1("aria-haspopup",o._rangeInput.rangePicker?"dialog":null)("aria-owns",(null==o._rangeInput.rangePicker?null:o._rangeInput.rangePicker.opened)&&o._rangeInput.rangePicker.id||null)("min",o._getMinDate()?o._dateAdapter.toIso8601(o._getMinDate()):null)("max",o._getMaxDate()?o._dateAdapter.toIso8601(o._getMaxDate()):null))},inputs:{errorStateMatcher:"errorStateMatcher"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[Mr([{provide:J2,useExisting:e,multi:!0},{provide:qo,useExisting:e,multi:!0}]),er]})}return e})(),GA=(()=>{class e extends qA{constructor(t,r,o,s,i,l,a,c){super(t,r,o,s,i,l,a,c),this._endValidator=h=>{const u=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(h.value)),d=this._model?this._model.selection.start:null;return!u||!d||this._dateAdapter.compareDate(u,d)>=0?null:{matEndDateInvalid:{start:d,actual:u}}},this._validator=d9.compose([...super._getValidators(),this._endValidator])}_getValueFromModel(t){return t.end}_shouldHandleChangeEvent(t){return!(!super._shouldHandleChangeEvent(t)||(t.oldValue?.end?t.selection.end&&!this._dateAdapter.compareDate(t.oldValue.end,t.selection.end):!t.selection.end))}_assignValueToModel(t){if(this._model){const r=new B2(this._model.selection.start,t);this._model.updateSelection(r,this)}}_onKeydown(t){const r=this._rangeInput._startInput,o=this._elementRef.nativeElement,s="rtl"!==this._dir?.value;if(8!==t.keyCode||o.value)if((37===t.keyCode&&s||39===t.keyCode&&!s)&&0===o.selectionStart&&0===o.selectionEnd){t.preventDefault();const i=r._elementRef.nativeElement.value.length;r._elementRef.nativeElement.setSelectionRange(i,i),r.focus()}else super._onKeydown(t);else r.focus()}static#t=this.\u0275fac=function(r){return new(r||e)(vt(G9),vt(Br),vt(Jm),vt(v2),vt(ah,8),vt(n5,8),vt(Bo,8),vt(Kl,8))};static#e=this.\u0275dir=s1({type:e,selectors:[["input","matEndDate",""]],hostAttrs:["type","text",1,"mat-end-date","mat-date-range-input-inner"],hostVars:5,hostBindings:function(r,o){1&r&&ie("input",function(i){return o._onInput(i.target.value)})("change",function(){return o._onChange()})("keydown",function(i){return o._onKeydown(i)})("blur",function(){return o._onBlur()}),2&r&&(B4("disabled",o.disabled),Y1("aria-haspopup",o._rangeInput.rangePicker?"dialog":null)("aria-owns",(null==o._rangeInput.rangePicker?null:o._rangeInput.rangePicker.opened)&&o._rangeInput.rangePicker.id||null)("min",o._getMinDate()?o._dateAdapter.toIso8601(o._getMinDate()):null)("max",o._getMaxDate()?o._dateAdapter.toIso8601(o._getMaxDate()):null))},inputs:{errorStateMatcher:"errorStateMatcher"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[Mr([{provide:J2,useExisting:e,multi:!0},{provide:qo,useExisting:e,multi:!0}]),er]})}return e})(),O1t=0,N1t=(()=>{class e{get value(){return this._model?this._model.selection:null}get shouldLabelFloat(){return this.focused||!this.empty}get placeholder(){const t=this._startInput?._getPlaceholder()||"",r=this._endInput?._getPlaceholder()||"";return t||r?`${t} ${this.separator} ${r}`:""}get rangePicker(){return this._rangePicker}set rangePicker(t){t&&(this._model=t.registerInput(this),this._rangePicker=t,this._closedSubscription.unsubscribe(),this._closedSubscription=t.closedStream.subscribe(()=>{this._startInput?._onTouched(),this._endInput?._onTouched()}),this._registerModel(this._model))}get required(){return this._required??(this._isTargetRequired(this)||this._isTargetRequired(this._startInput)||this._isTargetRequired(this._endInput))??!1}set required(t){this._required=co(t)}get dateFilter(){return this._dateFilter}set dateFilter(t){const r=this._startInput,o=this._endInput,s=r&&r._matchesFilter(r.value),i=o&&o._matchesFilter(r.value);this._dateFilter=t,r&&r._matchesFilter(r.value)!==s&&r._validatorOnChange(),o&&o._matchesFilter(o.value)!==i&&o._validatorOnChange()}get min(){return this._min}set min(t){const r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t));this._dateAdapter.sameDate(r,this._min)||(this._min=r,this._revalidate())}get max(){return this._max}set max(t){const r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t));this._dateAdapter.sameDate(r,this._max)||(this._max=r,this._revalidate())}get disabled(){return this._startInput&&this._endInput?this._startInput.disabled&&this._endInput.disabled:this._groupDisabled}set disabled(t){const r=co(t);r!==this._groupDisabled&&(this._groupDisabled=r,this.stateChanges.next(void 0))}get errorState(){return!(!this._startInput||!this._endInput)&&(this._startInput.errorState||this._endInput.errorState)}get empty(){const t=!!this._startInput&&this._startInput.isEmpty(),r=!!this._endInput&&this._endInput.isEmpty();return t&&r}constructor(t,r,o,s,i){this._changeDetectorRef=t,this._elementRef=r,this._dateAdapter=s,this._formField=i,this._closedSubscription=zt.EMPTY,this.id="mat-date-range-input-"+O1t++,this.focused=!1,this.controlType="mat-date-range-input",this._groupDisabled=!1,this._ariaDescribedBy=null,this.separator="\u2013",this.comparisonStart=null,this.comparisonEnd=null,this.stateChanges=new Dt,i?._elementRef.nativeElement.classList.contains("mat-mdc-form-field")&&r.nativeElement.classList.add("mat-mdc-input-element","mat-mdc-form-field-input-control","mdc-text-field__input"),this.ngControl=o}setDescribedByIds(t){this._ariaDescribedBy=t.length?t.join(" "):null}onContainerClick(){!this.focused&&!this.disabled&&(this._model&&this._model.selection.start?this._endInput.focus():this._startInput.focus())}ngAfterContentInit(){this._model&&this._registerModel(this._model),cs(this._startInput.stateChanges,this._endInput.stateChanges).subscribe(()=>{this.stateChanges.next(void 0)})}ngOnChanges(t){$A(t,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._closedSubscription.unsubscribe(),this.stateChanges.complete()}getStartValue(){return this.value?this.value.start:null}getThemePalette(){return this._formField?this._formField.color:void 0}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():null}_getInputMirrorValue(t){const r="start"===t?this._startInput:this._endInput;return r?r.getMirrorValue():""}_shouldHidePlaceholders(){return!!this._startInput&&!this._startInput.isEmpty()}_handleChildValueChange(){this.stateChanges.next(void 0),this._changeDetectorRef.markForCheck()}_openDatepicker(){this._rangePicker&&this._rangePicker.open()}_shouldHideSeparator(){return(!this._formField||this._formField.getLabelId()&&!this._formField._shouldLabelFloat())&&this.empty}_getAriaLabelledby(){const t=this._formField;return t&&t._hasFloatingLabel()?t._labelId:null}_getStartDateAccessibleName(){return this._startInput._getAccessibleName()}_getEndDateAccessibleName(){return this._endInput._getAccessibleName()}_updateFocus(t){this.focused=null!==t,this.stateChanges.next()}_revalidate(){this._startInput&&this._startInput._validatorOnChange(),this._endInput&&this._endInput._validatorOnChange()}_registerModel(t){this._startInput&&this._startInput._registerModel(t),this._endInput&&this._endInput._registerModel(t)}_isTargetRequired(t){return t?.ngControl?.control?.hasValidator(d9.required)}static#t=this.\u0275fac=function(r){return new(r||e)(vt(ms),vt(Br),vt(ts,10),vt(Bo,8),vt(hw,8))};static#e=this.\u0275cmp=U1({type:e,selectors:[["mat-date-range-input"]],contentQueries:function(r,o,s){if(1&r&&(ya(s,WA,5),ya(s,GA,5)),2&r){let i;Kr(i=Qr())&&(o._startInput=i.first),Kr(i=Qr())&&(o._endInput=i.first)}},hostAttrs:["role","group",1,"mat-date-range-input"],hostVars:8,hostBindings:function(r,o){2&r&&(Y1("id",o.id)("aria-labelledby",o._getAriaLabelledby())("aria-describedby",o._ariaDescribedBy)("data-mat-calendar",o.rangePicker?o.rangePicker.id:null),Zn("mat-date-range-input-hide-placeholders",o._shouldHidePlaceholders())("mat-date-range-input-required",o.required))},inputs:{rangePicker:"rangePicker",required:"required",dateFilter:"dateFilter",min:"min",max:"max",disabled:"disabled",separator:"separator",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},exportAs:["matDateRangeInput"],features:[Mr([{provide:t1t,useExisting:e},{provide:G9,useExisting:e}]),mo],ngContentSelectors:m1t,decls:11,vars:5,consts:[["cdkMonitorSubtreeFocus","",1,"mat-date-range-input-container",3,"cdkFocusChange"],[1,"mat-date-range-input-wrapper"],["aria-hidden","true",1,"mat-date-range-input-mirror"],[1,"mat-date-range-input-separator"],[1,"mat-date-range-input-wrapper","mat-date-range-input-end-wrapper"]],template:function(r,o){1&r&&(Es(f1t),yt(0,"div",0),ie("cdkFocusChange",function(i){return o._updateFocus(i)}),yt(1,"div",1),g2(2),yt(3,"span",2),xr(4),Vt()(),yt(5,"span",3),xr(6),Vt(),yt(7,"div",4),g2(8,1),yt(9,"span",2),xr(10),Vt()()()),2&r&&(St(4),js(o._getInputMirrorValue("start")),St(1),Zn("mat-date-range-input-separator-hidden",o._shouldHideSeparator()),St(1),js(o.separator),St(4),js(o._getInputMirrorValue("end")))},dependencies:[IS],styles:[".mat-date-range-input{display:block;width:100%}.mat-date-range-input-container{display:flex;align-items:center}.mat-date-range-input-separator{transition:opacity 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);margin:0 4px;color:var(--mat-datepicker-range-input-separator-color)}.mat-form-field-disabled .mat-date-range-input-separator{color:var(--mat-datepicker-range-input-disabled-state-separator-color)}._mat-animation-noopable .mat-date-range-input-separator{transition:none}.mat-date-range-input-separator-hidden{-webkit-user-select:none;user-select:none;opacity:0;transition:none}.mat-date-range-input-wrapper{position:relative;overflow:hidden;max-width:calc(50% - 4px)}.mat-date-range-input-end-wrapper{flex-grow:1}.mat-date-range-input-inner{position:absolute;top:0;left:0;font:inherit;background:rgba(0,0,0,0);color:currentColor;border:none;outline:none;padding:0;margin:0;vertical-align:bottom;text-align:inherit;-webkit-appearance:none;width:100%;height:100%}.mat-date-range-input-inner:-moz-ui-invalid{box-shadow:none}.mat-date-range-input-inner::placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-moz-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-webkit-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner:-ms-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner[disabled]{color:var(--mat-datepicker-range-input-disabled-state-text-color)}.mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{opacity:0}._mat-animation-noopable .mat-date-range-input-inner::placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner::-moz-placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner::-webkit-input-placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner:-ms-input-placeholder{transition:none}.mat-date-range-input-mirror{-webkit-user-select:none;user-select:none;visibility:hidden;white-space:nowrap;display:inline-block;min-width:2px}.mat-mdc-form-field-type-mat-date-range-input .mat-mdc-form-field-infix{width:200px}"],encapsulation:2,changeDetection:0})}return e})(),$1t=(()=>{class e extends OA{_forwardContentValues(t){super._forwardContentValues(t);const r=this.datepickerInput;r&&(t.comparisonStart=r.comparisonStart,t.comparisonEnd=r.comparisonEnd,t.startDateAccessibleName=r._getStartDateAccessibleName(),t.endDateAccessibleName=r._getEndDateAccessibleName())}static#t=this.\u0275fac=function(){let t;return function(o){return(t||(t=oo(e)))(o||e)}}();static#e=this.\u0275cmp=U1({type:e,selectors:[["mat-date-range-picker"]],exportAs:["matDateRangePicker"],features:[Mr([y1t,b1t,{provide:OA,useExisting:e}]),er],decls:0,vars:0,template:function(r,o){},encapsulation:2,changeDetection:0})}return e})(),YA=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275mod=K1({type:e});static#r=this.\u0275inj=$1({providers:[U9,B1t],imports:[e2,Wet,rd,NS,fA,w2,ed]})}return e})();const XA=' ';let K1t=(()=>{class e{constructor(){this.startDateChange=new _e,this.endDateChange=new _e}static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275cmp=U1({type:e,selectors:[["gn-ui-date-range-picker"]],inputs:{startDate:"startDate",endDate:"endDate"},outputs:{startDateChange:"startDateChange",endDateChange:"endDateChange"},standalone:!0,features:[Mr([l5({iconoirCalendar:' '}),s5({size:"1.5rem"})]),cl],decls:8,vars:3,consts:[[1,"w-full","inline-block","relative"],[1,"gn-ui-text-input",3,"rangePicker"],["matStartDate","","placeholder","Start date",3,"value","dateInput"],["matEndDate","","placeholder","End date",3,"value","dateInput"],["type","light","extraClass","h-full","data-cy","date-picker-button",1,"absolute","inset-y-[var(--side-padding)]","right-[var(--side-padding)]","z-10",3,"buttonClick"],["name","iconoirCalendar",1,"text-primary"],["picker",""]],template:function(r,o){if(1&r){const s=V1();yt(0,"span",0)(1,"mat-date-range-input",1)(2,"input",2),ie("dateInput",function(l){return o.startDateChange.emit(l.value)}),Vt(),yt(3,"input",3),ie("dateInput",function(l){return o.endDateChange.emit(l.value)}),Vt()(),yt(4,"gn-ui-button",4),ie("buttonClick",function(){return ct(s),Bt(Jo(7).open())}),rr(5,"ng-icon",5),Vt()(),rr(6,"mat-date-range-picker",null,6)}if(2&r){const s=Jo(7);St(1),xt("rangePicker",s),St(1),xt("value",o.startDate),St(1),xt("value",o.endDate)}},dependencies:[WS,YA,N1t,WA,GA,$1t,Ba,Ea],styles:["[_nghost-%COMP%]{--gn-ui-button-rounded: 8px;--gn-ui-button-width: 32px;--gn-ui-button-padding: 0;--side-padding: calc(var(--gn-ui-text-input-padding, .6em) - 6px);--text-padding: calc(var(--side-padding) + 40px)}"],changeDetection:0})}return e})();const rrt=["overlayOrigin"],nrt=["choiceInputs"];function ort(e,n){if(1&e&&(yt(0,"span",7),xr(1),Vt()),2&e){const t=Zt();Y1("for",t.id),St(1),wo(" ",t.title," ")}}function srt(e,n){if(1&e){const t=V1();yt(0,"button",10,11),ie("click",function(){const s=ct(t).$implicit;return Bt(Zt(2).onSelectValue(s))})("keydown",function(o){const i=ct(t).$implicit;return Bt(Zt(2).selectIfEnter(o,i))}),ci(2,"translate"),yt(3,"span",12),xr(4),ci(5,"translate"),Vt()()}if(2&e){const t=n.$implicit,r=Zt(2);xt("title",Li(2,5,t.label))("ngClass",r.isSelected(t)?"text-white bg-primary hover:text-white hover:bg-primary-darker focus:text-white focus:bg-primary-darker":"text-gray-900 hover:text-primary-darkest hover:bg-gray-50 focus:text-primary-darkest focus:bg-gray-50"),Y1("data-cy-value",t.value.toString())("data-cy-active",r.isSelected(t)?"true":void 0),St(4),wo(" ",Li(5,7,t.label)," ")}}function irt(e,n){if(1&e){const t=V1();yt(0,"div",8),ie("keydown",function(o){return ct(t),Bt(Zt().handleOverlayKeydown(o))}),Ze(1,srt,6,9,"button",9),Vt()}if(2&e){const t=Zt();bi("max-height",t.overlayMaxHeight)("min-width",t.overlayWidth),Y1("id",t.id)("aria-multiselectable",!0)("aria-label",t.title),St(1),xt("ngForOf",t.choices)}}let art=(()=>{class e{constructor(){this.showTitle=!0,this.extraBtnClass="",this.minWidth="",this.selectValue=new _e,this.overlayOpen=!1,this.overlayWidth="auto",this.overlayMaxHeight="none",this.overlayPositions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top",offsetY:8},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",offsetY:-8}]}get selectedChoice(){return this.choices.find(t=>t.value===this.selected)??this.choices[0]}get id(){return this.title.toLowerCase().replace(/[^a-z]+/g,"-")}getChoiceLabel(){return this.selectedChoice?.label}ngOnInit(){this.maxRows||(this.maxRows=6),(!this.choices||0===this.choices.length)&&(this.choices=[])}isSelected(t){return t===this.selectedChoice}onSelectValue(t){this.closeOverlay(),this.selected=t.value,this.selectValue.emit(this.selected)}openOverlay(){return this.overlayWidth=this.overlayOrigin.elementRef.nativeElement.getBoundingClientRect().width+"px",this.overlayMaxHeight=this.maxRows?29*this.maxRows+60+"px":"none",this.overlayOpen=!0,Promise.all([z9(this.overlay.attach),z9(this.choiceInputs.changes)])}closeOverlay(){this.overlayOpen=!1}focusFirstItem(){this.choiceInputs.get(0).nativeElement.focus()}focusLastItem(){this.choiceInputs.get(this.choiceInputs.length-1).nativeElement.focus()}handleTriggerKeydown(t){var r=this;return Bi(function*(){const o=t.code,i="Escape"===o;"ArrowDown"===o||"ArrowUp"===o||"ArrowLeft"===o||"ArrowRight"===o||"Enter"===o||"Space"===o?(t.preventDefault(),r.overlayOpen||(yield r.openOverlay()),"ArrowLeft"===o||"ArrowUp"===o?r.focusLastItem():r.focusFirstItem()):r.overlayOpen&&i&&(t.preventDefault(),r.closeOverlay())})()}handleOverlayKeydown(t){if(!this.overlayOpen)return;const r=t.code;"ArrowDown"===r||"ArrowRight"===r?(t.preventDefault(),this.shiftItemFocus(1)):"ArrowLeft"===r||"ArrowUp"===r?(t.preventDefault(),this.shiftItemFocus(-1)):"Escape"===r&&this.closeOverlay()}shiftItemFocus(t){const r=this.focusedIndex;if(-1===r)return;const o=this.choiceInputs.length;this.choiceInputs.get(((r+t)%o+o)%o).nativeElement.focus()}get focusedIndex(){return this.choiceInputs.reduce((t,r,o)=>r.nativeElement===document.activeElement?o:t,-1)}selectIfEnter(t,r){"Enter"===t.code&&(t.preventDefault(),this.onSelectValue(r))}static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275cmp=U1({type:e,selectors:[["gn-ui-dropdown-selector"]],viewQuery:function(r,o){if(1&r&&(jn(rrt,5),jn(VA,5),jn(nrt,5,Br)),2&r){let s;Kr(s=Qr())&&(o.overlayOrigin=s.first),Kr(s=Qr())&&(o.overlay=s.first),Kr(s=Qr())&&(o.choiceInputs=s)}},inputs:{title:"title",showTitle:"showTitle",ariaName:"ariaName",choices:"choices",selected:"selected",maxRows:"maxRows",extraBtnClass:"extraBtnClass",minWidth:"minWidth",disabled:"disabled"},outputs:{selectValue:"selectValue"},standalone:!0,features:[Mr([l5({matExpandLess:lA,matExpandMore:aA}),s5({size:"1.5em"})]),cl],decls:9,vars:15,consts:[[1,"flex","flex-col","sm:flex-row","sm:items-center","relative","w-full"],["class","tracking-wide text-sm mb-2 sm:mb-0 sm:mr-2 whitespace-nowrap",4,"ngIf"],["type","outline","cdkOverlayOrigin","",1,"grow","min-w-0",3,"extraClass","title","disabled","buttonClick","keydown"],["overlayOrigin","cdkOverlayOrigin"],[1,"grow","font-medium","truncate","py-1","mr-2","text-left"],[1,"shrink-0","opacity-40",3,"name"],["cdkConnectedOverlay","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayFlexibleDimensions","overlayOutsideClick","detach"],[1,"tracking-wide","text-sm","mb-2","sm:mb-0","sm:mr-2","whitespace-nowrap"],["role","listbox","tabindex","-1",1,"bg-white","border","border-gray-300","rounded","shadow-lg","py-2","w-full","overflow-x-hidden","overflow-y-auto","overlay-container",3,"keydown"],["type","button","class","flex px-5 py-1 w-full text-start cursor-pointer transition-colors",3,"title","ngClass","click","keydown",4,"ngFor","ngForOf"],["type","button",1,"flex","px-5","py-1","w-full","text-start","cursor-pointer","transition-colors",3,"title","ngClass","click","keydown"],["choiceInputs",""],[1,"text-[14px]"]],template:function(r,o){if(1&r&&(yt(0,"div",0),Ze(1,ort,2,2,"span",1),yt(2,"gn-ui-button",2,3),ie("buttonClick",function(){return o.openOverlay()})("keydown",function(i){return o.handleTriggerKeydown(i)}),yt(4,"div",4),xr(5),ci(6,"translate"),Vt(),rr(7,"ng-icon",5),Vt()(),Ze(8,irt,2,8,"ng-template",6),ie("overlayOutsideClick",function(){return o.closeOverlay()})("detach",function(){return o.closeOverlay()})),2&r){const s=Jo(3);St(1),xt("ngIf",o.showTitle),St(1),bi("--gn-ui-button-padding","8px 8px 8px 16px"),zp("extraClass","bg-background flex flex-row w-full ",o.extraBtnClass,""),xt("title",o.title)("disabled",o.disabled),Y1("aria-owns",o.id),St(3),wo(" ",Li(6,13,o.getChoiceLabel())," "),St(2),xt("name",o.overlayOpen?"matExpandLess":"matExpandMore"),St(1),xt("cdkConnectedOverlayOrigin",s)("cdkConnectedOverlayOpen",o.overlayOpen)("cdkConnectedOverlayPositions",o.overlayPositions)("cdkConnectedOverlayFlexibleDimensions",!0)}},dependencies:[e2,Di,ba,Os,Ba,rd,VA,LA,Pu,qL,Ea],changeDetection:0})}return e})();const crt=["input"];let hrt=(()=>{class e{constructor(){this.value="",this.disabled=!1,this.extraClass="",this.placeholder="",this.required=!1,this.rawChange=new Dt,this.valueChange=this.rawChange.pipe(bs())}ngAfterViewInit(){this.checkRequired(this.input.nativeElement.value)}checkRequired(t){this.input.nativeElement.classList.toggle("invalid",this.required&&""===t)}handleChange(t){const r=t.target.value;this.checkRequired(r),this.rawChange.next(r)}static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275cmp=U1({type:e,selectors:[["gn-ui-text-area"]],viewQuery:function(r,o){if(1&r&&jn(crt,5),2&r){let s;Kr(s=Qr())&&(o.input=s.first)}},inputs:{value:"value",disabled:"disabled",extraClass:"extraClass",placeholder:"placeholder",required:"required"},outputs:{valueChange:"valueChange"},standalone:!0,features:[cl],decls:3,vars:5,consts:[[1,"h-full","flex"],["name","textArea",1,"gn-ui-text-input","leading-tight",3,"ngClass","disabled","placeholder","value","change","input"],["input",""]],template:function(r,o){if(1&r&&(yt(0,"div",0)(1,"textarea",1,2),ie("change",function(i){return o.handleChange(i)})("input",function(i){return o.handleChange(i)}),Vt()()),2&r){let s;St(1),xt("ngClass",o.extraClass)("disabled",o.disabled)("placeholder",o.placeholder)("value",null!==(s=o.value)&&void 0!==s?s:""),Y1("required",o.required||null)}},dependencies:[e2,Di],styles:[".invalid[_ngcontent-%COMP%]{border-color:var(--color-secondary)}"]})}return e})();const wrt={provide:new Me("mat-autocomplete-scroll-strategy"),deps:[A0],useFactory:function mrt(e){return()=>e.scrollStrategies.reposition()}};let _rt=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275mod=K1({type:e});static#r=this.\u0275inj=$1({providers:[wrt],imports:[rd,tA,w2,e2,ed,tA,w2]})}return e})(),eD=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275mod=K1({type:e});static#r=this.\u0275inj=$1({})}return e})(),Trt=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275mod=K1({type:e});static#r=this.\u0275inj=$1({imports:[w2,ew,eD,w2,eD]})}return e})(),Ert=(()=>{class e{constructor(){this.color="primary",this.toggled=new _e}toggle(t){this.toggled.emit(t)}static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275cmp=U1({type:e,selectors:[["gn-ui-check-toggle"]],inputs:{title:"title",label:"label",value:"value",color:"color"},outputs:{toggled:"toggled"},standalone:!0,features:[cl],decls:6,vars:5,consts:[[1,"inline-flex","relative","items-start","cursor-pointer",3,"title"],[1,"shrink-0"],["type","checkbox",1,"sr-only","peer",3,"ngModel","ngModelChange"],[1,"w-11","h-6","bg-gray-200","peer-focus:outline-none","peer-focus:ring-2","rounded-full","peer-checked:after:translate-x-full","peer-checked:after:border-white","after:content-['']","after:absolute","after:top-[2px]","after:left-[2px]","after:bg-white","after:border-gray-300","after:border","after:rounded-full","after:h-5","after:w-5","after:transition-all"],[1,"ml-3","mt-[2px]","text-sm","font-medium"]],template:function(r,o){1&r&&(yt(0,"label",0)(1,"span",1)(2,"input",2),ie("ngModelChange",function(i){return o.toggle(i)}),Vt(),rr(3,"div",3),Vt(),yt(4,"span",4),xr(5),Vt()()),2&r&&(xt("title",o.title||o.label),St(2),xt("ngModel",o.value),St(1),Lp("secondary"===o.color?"peer-focus:ring-secondary-lighter peer-checked:bg-secondary":"peer-focus:ring-primary-lighter peer-checked:bg-primary"),St(2),js(o.label))},dependencies:[Zu,fm,g9,y9],changeDetection:0})}return e})();const Rrt={provide:new Me("mat-tooltip-scroll-strategy"),deps:[A0],useFactory:function Irt(e){return()=>e.scrollStrategies.reposition({scrollThrottle:20})}};let Ort=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275mod=K1({type:e});static#r=this.\u0275inj=$1({providers:[Rrt],imports:[NS,e2,rd,w2,w2,ed]})}return e})(),Nrt=(()=>{class e{constructor(){this.dragFilesOver=new _e,this.dropFiles=new _e,this.dragEnterCounter=0}_onDragEnter(t){t.preventDefault(),this.dragEnterCounter++,this.dragFilesOver.emit(!0)}_onDragOver(t){t.preventDefault()}_onDragLeave(t){t.preventDefault(),this.dragEnterCounter=Math.max(0,this.dragEnterCounter-1),0===this.dragEnterCounter&&this.dragFilesOver.emit(!1)}_onDrop(t){t.preventDefault(),this.dragEnterCounter=0,this.dragFilesOver.emit(!1);const r=Array.from(t.dataTransfer.files);r.length>0&&this.dropFiles.emit(r)}static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275dir=s1({type:e,selectors:[["","gnUiFilesDrop",""]],hostBindings:function(r,o){1&r&&ie("dragenter",function(i){return o._onDragEnter(i)})("dragover",function(i){return o._onDragOver(i)})("dragleave",function(i){return o._onDragLeave(i)})("drop",function(i){return o._onDrop(i)})},outputs:{dragFilesOver:"dragFilesOver",dropFiles:"dropFiles"},standalone:!0})}return e})();function $rt(e,n){if(1&e){const t=V1();yt(0,"gn-ui-button",6),ie("buttonClick",function(){ct(t);const o=Zt(),s=Jo(2);return Bt(o.handleUpload(s))}),rr(1,"ng-icon",7),Vt()}if(2&e){const t=Zt(),r=Jo(2);xt("disabled",t.disabled||""===r.value||!t.isValidUrl(r.value))}}const Urt=function(e,n){return{"text-primary":e,"text-primary-lightest":n}};let Zrt=(()=>{class e{set value(t){!t||!this.isValidUrl(t)||this.isValidUrl(this.inputValue)&&new URL(t).toString()===new URL(this.inputValue).toString()||(this.inputValue=t,this.cd.markForCheck())}constructor(t){this.cd=t,this.extraClass="",this.placeholder="https://",this.showUploadButton=!0,this.valueChange=new _e,this.uploadClick=new _e,this.inputValue=""}handleInput(t){const r=t.target.value;this.inputValue=r,r&&this.isValidUrl(r)?(this.cd.markForCheck(),this.valueChange.next(r)):this.valueChange.next(null)}handleUpload(t){const r=t.value;!r||!this.isValidUrl(r)||this.uploadClick.next(r)}isValidUrl(t){try{return new URL(t),!0}catch{return!1}}static#t=this.\u0275fac=function(r){return new(r||e)(vt(ms))};static#e=this.\u0275cmp=U1({type:e,selectors:[["gn-ui-url-input"]],inputs:{value:"value",extraClass:"extraClass",placeholder:"placeholder",disabled:"disabled",showUploadButton:"showUploadButton"},outputs:{valueChange:"valueChange",uploadClick:"uploadClick"},standalone:!0,features:[Mr([l5({iconoirLink:XA,iconoirArrowUp:' '}),s5({size:"1.5em"})]),cl],decls:6,vars:10,consts:[[1,"w-full","inline-block","relative"],["type","url",1,"gn-ui-text-input","px-[var(--text-padding)]",3,"ngClass","value","placeholder","disabled","input","keydown.enter"],["input",""],[1,"absolute","inset-y-[var(--side-padding)]","left-[var(--2x-side-padding)]","grid","justify-center","items-center","pointer-events-none",3,"ngClass"],["name","iconoirLink"],["extraClass","absolute inset-y-[var(--side-padding)] right-[var(--side-padding)]","type","primary",3,"disabled","buttonClick",4,"ngIf"],["extraClass","absolute inset-y-[var(--side-padding)] right-[var(--side-padding)]","type","primary",3,"disabled","buttonClick"],["name","iconoirArrowUp"]],template:function(r,o){if(1&r){const s=V1();yt(0,"span",0)(1,"input",1,2),ie("input",function(l){return o.handleInput(l)})("keydown.enter",function(){ct(s);const l=Jo(2);return Bt(o.handleUpload(l))}),Vt(),yt(3,"div",3),rr(4,"ng-icon",4),Vt(),Ze(5,$rt,2,1,"gn-ui-button",5),Vt()}2&r&&(St(1),xt("ngClass",o.extraClass)("value",o.inputValue)("placeholder",o.placeholder)("disabled",o.disabled),Y1("aria-label",o.placeholder),St(2),xt("ngClass",$3(7,Urt,!o.disabled,o.disabled)),St(2),xt("ngIf",o.showUploadButton))},dependencies:[e2,Di,Os,Ba,Ea],styles:["[_nghost-%COMP%]{--gn-ui-button-rounded: 8px;--gn-ui-button-width: 32px;--gn-ui-button-padding: 0;--side-padding: calc(var(--gn-ui-text-input-padding, .6rem) - 6px);--2x-side-padding: calc(var(--side-padding) * 2);--text-padding: calc(var(--side-padding) + 40px)}"],changeDetection:0})}return e})();const qrt=["input"];let Wrt=(()=>{class e{constructor(){this.value="",this.extraClass="",this.required=!1,this.rawChange=new Dt,this.valueChange=this.rawChange.pipe(bs())}ngAfterViewInit(){this.checkRequired(this.input.nativeElement.value)}checkRequired(t){this.input.nativeElement.classList.toggle("invalid",this.required&&""===t)}handleChange(t){const r=t.target.value;this.checkRequired(r),this.rawChange.next(r)}static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275cmp=U1({type:e,selectors:[["gn-ui-text-input"]],viewQuery:function(r,o){if(1&r&&jn(qrt,5),2&r){let s;Kr(s=Qr())&&(o.input=s.first)}},inputs:{value:"value",extraClass:"extraClass",placeholder:"placeholder",required:"required",disabled:"disabled"},outputs:{valueChange:"valueChange"},standalone:!0,features:[cl],decls:2,vars:6,consts:[["type","text",1,"gn-ui-text-input",3,"ngClass","value","placeholder","disabled","change","input"],["input",""]],template:function(r,o){1&r&&(yt(0,"input",0,1),ie("change",function(i){return o.handleChange(i)})("input",function(i){return o.handleChange(i)}),Vt()),2&r&&(xt("ngClass",o.extraClass)("value",o.value)("placeholder",o.placeholder)("disabled",o.disabled),Y1("aria-label",o.placeholder)("required",o.required||null))},dependencies:[e2,Di],styles:[".invalid[_ngcontent-%COMP%]{border-color:var(--color-secondary)}"]})}return e})();function Grt(e,n){1&e&&u0(0)}function Yrt(e,n){if(1&e){const t=V1();yt(0,"gn-ui-text-input",13),ie("valueChange",function(o){return ct(t),Bt(Zt(2).handleAltTextChange(o))}),ci(1,"translate"),Vt()}if(2&e){const t=Zt(2);let r;xt("placeholder",Li(1,2,"input.image.altTextPlaceholder"))("value",null!==(r=t.altText)&&void 0!==r?r:"")}}function Xrt(e,n){if(1&e){const t=V1();yt(0,"gn-ui-button",10),ie("buttonClick",function(){return ct(t),Bt(Zt(2).toggleAltTextInput())}),rr(1,"ng-icon",14),xr(2),ci(3,"translate"),Vt()}2&e&&(St(2),wo(" ",Li(3,1,"input.image.displayAltTextInput")," "))}function Krt(e,n){if(1&e){const t=V1();yt(0,"div",3)(1,"div",4),rr(2,"img",5),yt(3,"gn-ui-button",6),ie("buttonClick",function(){return ct(t),Bt(Zt().handleDelete())}),rr(4,"ng-icon",7),Vt()(),Ze(5,Yrt,2,4,"gn-ui-text-input",8),yt(6,"div",9)(7,"gn-ui-button",10),ie("buttonClick",function(){return ct(t),Bt(Zt().handleDelete())}),rr(8,"ng-icon",11),xr(9),ci(10,"translate"),Vt(),Ze(11,Xrt,4,3,"gn-ui-button",12),Vt()()}if(2&e){const t=Zt();St(2),xt("alt",t.altText)("src",t.previewUrl,ep),St(3),xt("ngIf",t.showAltTextInput),St(4),wo(" ",Li(10,5,"input.image.delete")," "),St(2),xt("ngIf",!t.showAltTextInput)}}function Qrt(e,n){1&e&&rr(0,"ng-icon",28)}function Jrt(e,n){1&e&&rr(0,"ng-icon",29)}function tnt(e,n){if(1&e&&(yt(0,"div",25),Ze(1,Qrt,1,0,"ng-icon",26),Ze(2,Jrt,1,0,"ng-icon",27),Vt()),2&e){const t=Zt(2);St(1),xt("ngIf",!t.dragFilesOver),St(1),xt("ngIf",t.dragFilesOver)}}function ent(e,n){if(1&e&&(yt(0,"div",30)(1,"div",31),rr(2,"mat-progress-spinner",32),Vt(),yt(3,"div",33),rr(4,"mat-progress-spinner",32),Vt(),yt(5,"span",34),xr(6),Vt()()),2&e){const t=Zt(2);St(2),xt("diameter",56)("value",100),St(2),xt("diameter",56)("value",t.uploadProgress),St(2),wo("",t.uploadProgress,"%")}}function rnt(e,n){1&e&&(yt(0,"div",25),rr(1,"ng-icon",35),Vt())}function nnt(e,n){if(1&e){const t=V1();yt(0,"div",36)(1,"gn-ui-button",10),ie("buttonClick",function(){return ct(t),Bt(Zt(2).displayUrlInput())}),rr(2,"ng-icon",37),xr(3),ci(4,"translate"),Vt()()}2&e&&(St(3),wo(" ",Li(4,1,"input.image.displayUrlInput")," "))}function ont(e,n){if(1&e){const t=V1();yt(0,"gn-ui-url-input",38),ie("uploadClick",function(o){return ct(t),Bt(Zt(2).downloadUrl(o))}),Vt()}2&e&&xt("disabled",Zt(2).isUploadInProgress)}const snt=function(e,n,t){return{"border-primary-lighter bg-primary-white":e,"border-gray-300":n,"cursor-pointer hover:border-gray-500":t}};function int(e,n){if(1&e){const t=V1();yt(0,"div",3)(1,"label",15),ie("keydown.enter",function(){return ct(t),Bt(Jo(13).click())})("dragFilesOver",function(o){return ct(t),Bt(Zt().handleDragFilesOver(o))})("dropFiles",function(o){return ct(t),Bt(Zt().handleDropFiles(o))}),Ze(2,tnt,3,2,"div",16),Ze(3,ent,7,5,"div",17),Ze(4,rnt,2,0,"div",16),yt(5,"div",18)(6,"p",19),xr(7),ci(8,"translate"),Vt(),yt(9,"p",20),ie("click",function(o){return ct(t),Bt(Zt().handleSecondaryTextClick(o))}),xr(10),ci(11,"translate"),Vt()(),yt(12,"input",21,22),ie("change",function(o){return ct(t),Bt(Zt().handleFileInput(o))}),Vt()(),Ze(14,nnt,5,3,"div",23),Ze(15,ont,1,1,"gn-ui-url-input",24),Vt()}if(2&e){const t=Zt();St(1),xt("ngClass",kv(16,snt,t.dragFilesOver,!t.dragFilesOver,!t.isUploadInProgress&&!t.uploadError&&!t.showUrlInput)),Y1("tabindex",t.isUploadInProgress||t.uploadError||t.showUrlInput?null:0),St(1),xt("ngIf",!t.isUploadInProgress&&!t.uploadError),St(1),xt("ngIf",t.isUploadInProgress&&!t.uploadError),St(1),xt("ngIf",t.uploadError),St(3),js(Li(8,12,t.getPrimaryText())),St(2),Lp(t.isUploadInProgress||t.uploadError?"font-bold text-blue-500 cursor-pointer":"font-medium text-gray-500"),St(1),wo(" ",Li(11,14,t.getSecondaryText())," "),St(2),xt("disabled",t.showUrlInput||t.isUploadInProgress||t.uploadError),St(2),xt("ngIf",!t.showUrlInput),St(1),xt("ngIf",t.showUrlInput)}}let lnt=(()=>{class e{get isUploadInProgress(){return void 0!==this.uploadProgress}constructor(t,r){this.http=t,this.cd=r,this.fileChange=new _e,this.urlChange=new _e,this.uploadCancel=new _e,this.delete=new _e,this.altTextChange=new _e,this.dragFilesOver=!1,this.showUrlInput=!1,this.downloadError=!1,this.showAltTextInput=!1}getPrimaryText(){return this.uploadError?"input.image.uploadErrorLabel":this.uploadProgress?"input.image.uploadProgressLabel":"input.image.selectFileLabel"}getSecondaryText(){return this.uploadError?"input.image.uploadErrorRetry":this.uploadProgress?"input.image.uploadProgressCancel":"input.image.dropFileLabel"}handleDragFilesOver(t){this.showUrlInput||(this.dragFilesOver=t,this.cd.markForCheck())}handleDropFiles(t){if(!this.showUrlInput){const r=this.filterTypeImage(t);r.length>0&&this.resizeAndEmit(r[0])}}handleFileInput(t){const r=Array.from(t.target.files),o=this.filterTypeImage(r);o.length>0&&this.resizeAndEmit(o[0])}displayUrlInput(){this.uploadCancel.emit(),this.showUrlInput=!0}downloadUrl(t){var r=this;return Bi(function*(){r.downloadError=!1;const o=t.split("/").pop();try{const s=yield z9(r.http.head(t,{observe:"response"}));s.headers.get("content-type")?.startsWith("image/")&&parseInt(s.headers.get("content-length")){r.cd.markForCheck();const l=new File([i],o);r.fileChange.emit(l)},error:()=>{r.downloadError=!0,r.cd.markForCheck(),r.urlChange.emit(t)}})}catch{return r.downloadError=!0,void r.cd.markForCheck()}})()}handleSecondaryTextClick(t){this.uploadError?this.handleRetry():this.uploadProgress&&(this.handleCancel(),t.preventDefault())}handleCancel(){this.uploadCancel.emit()}handleRetry(){switch(this.lastUploadType){case"file":this.fileChange.emit(this.lastUploadContent);break;case"url":this.urlChange.emit(this.lastUploadContent)}}handleDelete(){this.delete.emit()}toggleAltTextInput(){this.showAltTextInput=!this.showAltTextInput}handleAltTextChange(t){this.altTextChange.emit(t)}filterTypeImage(t){return t.filter(r=>r.type.startsWith("image/"))}resizeAndEmit(t){const r=YL(this.maxSizeMB);(function fX(e,n){return new Promise((t,r)=>{const o=new Image;o.src=URL.createObjectURL(e),o.onload=()=>{const s=o.width,i=o.height;let l=1;const a=document.createElement("canvas");a.width=s,a.height=i,a.getContext("2d").drawImage(o,0,0,s,i);const h=u=>{u.size<=n?t(u):(l-=.1,l>=0?a.toBlob(h,e.type,l):r("Unable to compress image below max size"))};a.toBlob(h,e.type,l)},o.onerror=r})})(t,r).then(o=>{const s=new File([o],t.name);this.fileChange.emit(s)})}static#t=this.\u0275fac=function(r){return new(r||e)(vt(Wr),vt(ms))};static#e=this.\u0275cmp=U1({type:e,selectors:[["gn-ui-image-input"]],inputs:{maxSizeMB:"maxSizeMB",previewUrl:"previewUrl",altText:"altText",uploadProgress:"uploadProgress",uploadError:"uploadError"},outputs:{fileChange:"fileChange",urlChange:"urlChange",uploadCancel:"uploadCancel",delete:"delete",altTextChange:"altTextChange"},standalone:!0,features:[Mr([l5({iconoirMediaImage:' ',iconoirFramePlusIn:' ',iconoirMediaImageXmark:' ',iconoirBin:' ',iconoirPlus:' ',iconoirLink:XA}),s5({size:"1.5rem"})]),cl],decls:5,vars:3,consts:[[4,"ngIf","ngIfThen","ngIfElse"],["withImage",""],["withoutImage",""],[1,"w-full","h-full","flex","flex-col","gap-2"],[1,"flex-1","group","relative"],["loading","lazy",1,"w-full","object-cover","border-2","border-gray-300","rounded-lg","h-[172px]",3,"alt","src"],["type","outline","extraClass","absolute right-2 bottom-2 invisible group-hover:visible bg-background",2,"--gn-ui-button-height","40px","--gn-ui-button-width","40px",3,"buttonClick"],["name","iconoirBin"],["extraClass","gn-ui-editor-textarea",3,"placeholder","value","valueChange",4,"ngIf"],[1,"flex","flex-row","gap-2","mt-2"],["type","gray",3,"buttonClick"],["name","iconoirBin",1,"me-1","text-primary"],["type","gray",3,"buttonClick",4,"ngIf"],["extraClass","gn-ui-editor-textarea",3,"placeholder","value","valueChange"],["name","iconoirPlus",1,"me-1","text-primary"],["gnUiFilesDrop","",1,"flex-1","border-2","border-dashed","rounded-lg","p-6","flex","flex-col","items-center","justify-center","gap-4","transition-colors","duration-100",3,"ngClass","keydown.enter","dragFilesOver","dropFiles"],["class","w-14 h-14 rounded-md bg-gray-50 grid",4,"ngIf"],["class","w-14 h-14 grid items-center justify-center relative",4,"ngIf"],[1,"flex","flex-col","items-center","gap-1"],[1,"font-medium"],[1,"text-sm",3,"click"],["type","file",1,"hidden",3,"disabled","change"],["fileInput",""],["class","flex-none mt-2",4,"ngIf"],["class","mt-3.5",3,"disabled","uploadClick",4,"ngIf"],[1,"w-14","h-14","rounded-md","bg-gray-50","grid"],["class","place-self-center text-primary","name","iconoirMediaImage",4,"ngIf"],["class","place-self-center text-primary","name","iconoirFramePlusIn",4,"ngIf"],["name","iconoirMediaImage",1,"place-self-center","text-primary"],["name","iconoirFramePlusIn",1,"place-self-center","text-primary"],[1,"w-14","h-14","grid","items-center","justify-center","relative"],[1,"text-gray-100","absolute"],["mode","determinate",1,"place-self-center",3,"diameter","value"],[1,"text-primary","absolute"],[1,"text-sm","text-main","font-bold"],["name","iconoirMediaImageXmark",1,"place-self-center","text-rose-500"],[1,"flex-none","mt-2"],["name","iconoirLink",1,"me-1","text-primary"],[1,"mt-3.5",3,"disabled","uploadClick"]],template:function(r,o){if(1&r&&(Ze(0,Grt,1,0,"ng-container",0),Ze(1,Krt,12,7,"ng-template",null,1,hl),Ze(3,int,16,20,"ng-template",null,2,hl)),2&r){const s=Jo(2),i=Jo(4);xt("ngIf",o.previewUrl)("ngIfThen",s)("ngIfElse",i)}},dependencies:[e2,Di,Os,Ba,Nrt,sA,Utt,Pu,qL,Zrt,Wrt,Ea],styles:["[_nghost-%COMP%]{--gn-ui-button-padding: 8px 8px;--gn-ui-button-rounded: 8px}"],changeDetection:0})}return e})(),ant=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275mod=K1({type:e});static#r=this.\u0275inj=$1({providers:[l5({matClose:iA,matExpandMore:aA,matExpandLess:lA}),s5({size:"0.9em"})],imports:[e2,Pu.forChild(),oS,Zu,Rm,wS,GL,_rt,Ztt,rd,Trt,Ort,uw,n1t,YA,WS,hrt,lnt,art,K1t,Ert,Gtt,Ea]})}return e})(),dnt=(()=>{class e{constructor(){vX.applyCssVariables("#c82850","#001638","#212029","#fdfbff","'Rubik', sans-serif","'Readex Pro', sans-serif","https://fonts.googleapis.com/css2?family=Readex+Pro&family=Rubik&display=swap")}static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275mod=K1({type:e,bootstrap:[LQ]});static#r=this.\u0275inj=$1({providers:[s5({size:"1.5em"})],imports:[_O,Zu,ant,_Y,Pu.forRoot(aX),EK.withIcons({matDeleteForeverSharp:' '})]})}return e})();CO().bootstrapModule(dnt).catch(e=>console.error(e))},6998:function(pe,ae,ht){var X,Tt;void 0!==(Tt="function"==typeof(X=function(){"use strict";function zt(D,nt,p,le){this.message=D,this.expected=nt,this.found=p,this.location=le,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,zt)}return function Wt(D,nt){function p(){this.constructor=D}p.prototype=nt.prototype,D.prototype=new p}(zt,Error),zt.buildMessage=function(D,nt){var p={literal:function(Gt){return'"'+ce(Gt.text)+'"'},class:function(Gt){var U,st="";for(U=0;U0){for(U=1,A=1;UArray.isArray(V)).forEach(V=>{V.forEach(R=>{y["@graph"].push(R)})}),1===y["@graph"].length&&(Object.assign(y,y["@graph"][0]),delete y["@graph"]),y},Ht=".",Rt=F1(".",!1),he=function(f){return f},Gt="#",st=F1("#",!1),U=/^[^\n]/,A=Fr(["\n"],!0,!1),at="\n",ut=F1("\n",!1),Lt=function(f){return f.join("")},Q="@prefix",Jt=F1("@prefix",!1),et=function(f,y){return z1.addPrefix(""===f?"0":f,y),{}},At="@base",Ut=F1("@base",!1),te=function(f){return z1.addBase(f),{}},tt=/^[Bb]/,_t=Fr(["B","b"],!1,!1),ke=/^[Aa]/,F=Fr(["A","a"],!1,!1),J=/^[Ss]/,It=Fr(["S","s"],!1,!1),rt=/^[Ee]/,Y=Fr(["E","e"],!1,!1),Ct=/^[Pp]/,Dt=Fr(["P","p"],!1,!1),oe=/^[Rr]/,ze=Fr(["R","r"],!1,!1),Yt=/^[Ff]/,ve=Fr(["F","f"],!1,!1),r1=/^[Ii]/,Qe=Fr(["I","i"],!1,!1),Ge=/^[Xx]/,v1=Fr(["X","x"],!1,!1),w1=function(f,y){var V={};return"string"==typeof f&&"[]"!==f?V["@id"]=f:"object"==typeof f&&Object.assign(V,f),y&&Object.assign(V,y),[V]},j1=function(f,y){var V={};return f&&Object.assign(V,f),y&&Object.assign(V,y),[V]},X1=";",d1=F1(";",!1),b1=function(f,y,V,R){var Z={};return Z[V]=R,Z},nr=function(f,y,V){return V},Er=function(f,y,V){var R={};return V.unshift(function tl(f,y){var V={};return V[f]=y,V}(f,y)),V.forEach(Z=>{Z&&Object.keys(Z).forEach(ot=>{Z[ot].forEach(ft=>{"@type"===ot&&void 0!==ft["@id"]&&(ft=ft["@id"]),void 0===R[ot]?R[ot]=ft:Array.isArray(R[ot])?R[ot].push(ft):R[ot]=[R[ot],ft]})})}),R},Gn=",",Yn=F1(",",!1),Xn=function(f,y){return y},Go=function(f,y){return y.unshift(f),y},sr="a",vr=F1("a",!1),_n=function(){return"@type"},Ln=function(f){return hs(f,!0)},no=function(f){return hs(f,!1)},Eo=function(f){return"[]"===f?{}:{"@id":f}},P=function(f){return{"@id":f}},M="[",z=F1("[",!1),W="]",Mt=F1("]",!1),ee="(",$=F1("(",!1),Et=")",l1=F1(")",!1),a1=function(f){return{"@list":f}},M1=function(f,y){return{"@value":f,"@language":y}},Ye="^^",Ho=F1("^^",!1),n2=function(f,y){if("http://www.w3.org/2001/XMLSchema#boolean"===y&&"true"===f)return!0;if("http://www.w3.org/2001/XMLSchema#boolean"===y&&"false"===f)return!1;if("http://www.w3.org/2001/XMLSchema#integer"===y)return parseInt(f);if("http://www.w3.org/2001/XMLSchema#double"===y)return parseFloat(f);const V=z1.resolve(y,!0);if(V){const R=y.split(":")[0];if("http://www.w3.org/2001/XMLSchema#boolean"===V&&"true"===f)return z1.decrement(R),!0;if("http://www.w3.org/2001/XMLSchema#boolean"===V&&"false"===f)return z1.decrement(R),!1;if("http://www.w3.org/2001/XMLSchema#integer"===V)return z1.decrement(R),parseInt(f);if("http://www.w3.org/2001/XMLSchema#double"===V)return z1.decrement(R),parseFloat(f)}return{"@value":f,"@type":y}},Fn="true",Yo=F1("true",!1),o2=function(){return!0},jo="false",On=F1("false",!1),k2=function(){return!1},Hs=function(f){return f+":"},as="<",ho=F1("<",!1),E2=/^[^\0- <>"{}|\^`\\]/,s2=Fr([["\0"," "],"<",">",'"',"{","}","|","^","`","\\"],!0,!1),_2=">",Hn=F1(">",!1),E=function(f){const y=f.map(R=>65536<=R.codePointAt(0)&&R.codePointAt(0)<=983039?"a":1===R.length?R:6===R.length?String.fromCharCode("0x"+R.substring(2)):10===R.length?String.fromCodePoint("0x"+R.substring(2)):R).join("");if(y.match(/^[^\u0000-\u0020<>"{}|^`\\]*$/)){var V=f.join("");try{return z1.resolve(V)}catch{g1("Invalid IRIREF "+V)}}else g1("Invalid IRIREF "+f.join("")+" / "+y)},I=":",lt=F1(":",!1),ne=function(f){return!1===z1.hasPrefix(f=f||"0")&&g1("undefined prefix "+f),f},be=function(f){return f||""},k1=function(f,y){return z1.increment(f),z1.resolve(f+":"+y)},Ir="_:",$r=F1("_:",!1),cr=/^[0-9]/,N1=Fr([["0","9"]],!1,!1),Po="@",zo=F1("@",!1),j2=/^[a-zA-Z]/,P2=Fr([["a","z"],["A","Z"]],!1,!1),uo="-",ye=F1("-",!1),Nn=/^[a-zA-Z0-9]/,gr=Fr([["a","z"],["A","Z"],["0","9"]],!1,!1),Vn=function(f,y){return"-"+y.join("")},I1=function(f,y){return f.join("")+y.join("")},Sn=/^[+\-]/,qi=Fr(["+","-"],!1,!1),Wi=function(f){return f.match(/^[0+][0-9]+$/)?{"@value":f,"@type":"http://www.w3.org/2001/XMLSchema#integer"}:parseInt(f)},C5=function(f){return{"@value":f,"@type":"http://www.w3.org/2001/XMLSchema#decimal"}},k5=function(f){return{"@value":f,"@type":"http://www.w3.org/2001/XMLSchema#double"}},T0=/^[eE]/,_5=Fr(["e","E"],!1,!1),Ql='"',I2=F1('"',!1),cs=/^[^"\\\n\r]/,Fa=Fr(['"',"\\","\n","\r"],!0,!1),po="'",Gi=F1("'",!1),Jl=/^[^'\\\n\r]/,zs=Fr(["'","\\","\n","\r"],!0,!1),bs="'''",E0=F1("'''",!1),ir=/^[^'\\]/,l2=Fr(["'","\\"],!0,!1),An="''",ta=F1("''",!1),j0=function(f,y){return"''"+y.join("")},Hr=function(f,y){return"'"+y.join("")},D1=function(f,y){return f.join("")+y.join("")},Yi='"""',ea=F1('"""',!1),Ls=/^[^"\\]/,R2=Fr(['"',"\\"],!0,!1),Ie='""',Xi=F1('""',!1),B1=function(f,y){return'""'+y.join("")},Rr=function(f,y){return'"'+y.join("")},kl="\\U",_l=F1("\\U",!1),x5=function(f){return String.fromCodePoint(parseInt(f.join(""),16))},xl="\\u",a2=F1("\\u",!1),P0=function(f){return String.fromCharCode(parseInt(f.join(""),16))},ra="\\t",fh=F1("\\t",!1),Ys=function(){return"\t"},Ki="\\b",mh=F1("\\b",!1),wh=function(){return"\b"},M5="\\n",Oa=F1("\\n",!1),I0=function(){return"\n"},Na="\\r",Ch=F1("\\r",!1),x2=function(){return"\r"},L1="\\f",y5=F1("\\f",!1),H5=function(){return"\f"},z5='\\"',xe=F1('\\"',!1),kh=function(){return'"'},$1="\\'",na=F1("\\'",!1),_h=function(){return"'"},$a="\\\\",R0=F1("\\\\",!1),oa=function(){return"\\"},sa=/^[ \t\r\n]/,Ua=Fr([" ","\t","\r","\n"],!1,!1),F0=function(){return"[]"},b5=/^[\uD800-\uDBFF]/,mr=Fr([["\ud800","\udbff"]],!1,!1),Za=/^[\uDC00-\uDFFF]/,O0=Fr([["\udc00","\udfff"]],!1,!1),Xo=function(f,y){return f+y},N0=/^[A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,L5=Fr([["A","Z"],["a","z"],["\xc0","\xd6"],["\xd8","\xf6"],["\xf8","\u02ff"],["\u0370","\u037d"],["\u037f","\u1fff"],["\u200c","\u200d"],["\u2070","\u218f"],["\u2c00","\u2fef"],["\u3001","\ud7ff"],["\uf900","\ufdcf"],["\ufdf0","\ufffd"]],!1,!1),ln="_",xh=F1("_",!1),Mh="\xb7",Me=F1("\xb7",!1),ia=/^[\u0300-\u036F]/,qa=Fr([["\u0300","\u036f"]],!1,!1),$0=/^[\u203F-\u2040]/,Wa=Fr([["\u203f","\u2040"]],!1,!1),U0=function(f,y,V,R){return V.join("")+R.join("")},Ga=function(f,y,V){return f+y.join("")+V.join("")},yh="%",V5=F1("%",!1),Ya=/^[0-9A-Fa-f]/,Z0=Fr([["0","9"],["A","F"],["a","f"]],!1,!1),S5="\\",Ml=F1("\\",!1),la=/^[_~.!$&'()*+,;=\/?#@%\-]/,aa=Fr(["_","~",".","!","$","&","'","(",")","*","+",",",";","=","/","?","#","@","%","-"],!1,!1),w=0,Fe=0,Xs=[{line:1,column:1}],F2=0,Ks=[],Qt=0;if("startRule"in nt){if(!(nt.startRule in le))throw new Error("Can't start parsing from rule \""+nt.startRule+'".');ce=le[nt.startRule]}function g1(f,y){throw function M2(f,y){return new zt(f,null,null,y)}(f,y=void 0!==y?y:Io(Fe,w))}function F1(f,y){return{type:"literal",text:f,ignoreCase:y}}function Fr(f,y,V){return{type:"class",parts:f,inverted:y,ignoreCase:V}}function q0(f){var V,y=Xs[f];if(y)return y;for(V=f-1;!Xs[V];)V--;for(y={line:(y=Xs[V]).line,column:y.column};VF2&&(F2=w,Ks=[]),Ks.push(f))}function zr(){var f,y,V,R;for(f=w,y=[],V=Qs();V!==p;)y.push(V),V=Qs();if(y!==p){for(V=[],R=Oe();R!==p;)V.push(R),R=Oe();V!==p?(Fe=f,f=y=qt(y)):(w=f,f=p)}else w=f,f=p;return f}function Qs(){var f,y,V,R;if((f=function W0(){var f;return(f=function Vs(){var f,y,V,R,Z,ot,ft,G,Ne;for(f=w,y=[],V=Oe();V!==p;)y.push(V),V=Oe();if(y!==p)if(D.substr(w,7)===Q?(V=Q,w+=7):(V=p,0===Qt&&Kt(Jt)),V!==p){for(R=[],Z=Oe();Z!==p;)R.push(Z),Z=Oe();if(R!==p)if((Z=ec())!==p){for(ot=[],ft=Oe();ft!==p;)ot.push(ft),ft=Oe();if(ot!==p)if((ft=Ji())!==p){for(G=[],Ne=Oe();Ne!==p;)G.push(Ne),Ne=Oe();G!==p?(46===D.charCodeAt(w)?(Ne=Ht,w++):(Ne=p,0===Qt&&Kt(Rt)),Ne!==p?(Fe=f,f=y=et(Z,ft)):(w=f,f=p)):(w=f,f=p)}else w=f,f=p;else w=f,f=p}else w=f,f=p;else w=f,f=p}else w=f,f=p;else w=f,f=p;return f}())===p&&(f=function Hl(){var f,y,V,R,Z,ot,ft;for(f=w,y=[],V=Oe();V!==p;)y.push(V),V=Oe();if(y!==p)if(D.substr(w,5)===At?(V=At,w+=5):(V=p,0===Qt&&Kt(Ut)),V!==p){for(R=[],Z=Oe();Z!==p;)R.push(Z),Z=Oe();if(R!==p)if((Z=Ji())!==p){for(ot=[],ft=Oe();ft!==p;)ot.push(ft),ft=Oe();ot!==p?(46===D.charCodeAt(w)?(ft=Ht,w++):(ft=p,0===Qt&&Kt(Rt)),ft!==p?(Fe=f,f=y=te(Z)):(w=f,f=p)):(w=f,f=p)}else w=f,f=p;else w=f,f=p}else w=f,f=p;else w=f,f=p;return f}())===p&&(f=function Y0(){var f,y,V,R,Z,ot,ft,G,Ne,Lr,us,Ko;for(f=w,y=[],V=Oe();V!==p;)y.push(V),V=Oe();if(y!==p)if(Ct.test(D.charAt(w))?(V=D.charAt(w),w++):(V=p,0===Qt&&Kt(Dt)),V!==p)if(oe.test(D.charAt(w))?(R=D.charAt(w),w++):(R=p,0===Qt&&Kt(ze)),R!==p)if(rt.test(D.charAt(w))?(Z=D.charAt(w),w++):(Z=p,0===Qt&&Kt(Y)),Z!==p)if(Yt.test(D.charAt(w))?(ot=D.charAt(w),w++):(ot=p,0===Qt&&Kt(ve)),ot!==p)if(r1.test(D.charAt(w))?(ft=D.charAt(w),w++):(ft=p,0===Qt&&Kt(Qe)),ft!==p)if(Ge.test(D.charAt(w))?(G=D.charAt(w),w++):(G=p,0===Qt&&Kt(v1)),G!==p){for(Ne=[],Lr=Oe();Lr!==p;)Ne.push(Lr),Lr=Oe();if(Ne!==p)if((Lr=ec())!==p){for(us=[],Ko=Oe();Ko!==p;)us.push(Ko),Ko=Oe();us!==p&&(Ko=Ji())!==p?(Fe=f,f=y=et(Lr,Ko)):(w=f,f=p)}else w=f,f=p;else w=f,f=p}else w=f,f=p;else w=f,f=p;else w=f,f=p;else w=f,f=p;else w=f,f=p;else w=f,f=p;else w=f,f=p;return f}())===p&&(f=function G0(){var f,y,V,R,Z,ot,ft,G;for(f=w,y=[],V=Oe();V!==p;)y.push(V),V=Oe();if(y!==p)if(tt.test(D.charAt(w))?(V=D.charAt(w),w++):(V=p,0===Qt&&Kt(_t)),V!==p)if(ke.test(D.charAt(w))?(R=D.charAt(w),w++):(R=p,0===Qt&&Kt(F)),R!==p)if(J.test(D.charAt(w))?(Z=D.charAt(w),w++):(Z=p,0===Qt&&Kt(It)),Z!==p)if(rt.test(D.charAt(w))?(ot=D.charAt(w),w++):(ot=p,0===Qt&&Kt(Y)),ot!==p){for(ft=[],G=Oe();G!==p;)ft.push(G),G=Oe();ft!==p&&(G=Ji())!==p?(Fe=f,f=y=te(G)):(w=f,f=p)}else w=f,f=p;else w=f,f=p;else w=f,f=p;else w=f,f=p;else w=f,f=p;return f}()),f}())===p)if(f=w,(y=function zl(){var f,y,V;return f=w,(y=function X0(){var f,y;return f=w,(y=Ka())!==p&&(Fe=f,y=Ln(y)),(f=y)===p&&(f=ua())===p&&(f=ha()),f}())!==p&&(V=fi())!==p?(Fe=f,f=y=w1(y,V)):(w=f,f=p),f===p&&(f=w,(y=Q0())!==p?((V=fi())===p&&(V=null),V!==p?(Fe=f,f=y=j1(y,V)):(w=f,f=p)):(w=f,f=p)),f}())!==p){for(V=[],R=Oe();R!==p;)V.push(R),R=Oe();V!==p?(46===D.charCodeAt(w)?(R=Ht,w++):(R=p,0===Qt&&Kt(Rt)),R!==p?(Fe=f,f=y=he(y)):(w=f,f=p)):(w=f,f=p)}else w=f,f=p;return f}function Oe(){var f;return(f=function Vl(){var f;return sa.test(D.charAt(w))?(f=D.charAt(w),w++):(f=p,0===Qt&&Kt(Ua)),f}())===p&&(f=function Xa(){var f,y,V,R;if(f=w,35===D.charCodeAt(w)?(y=Gt,w++):(y=p,0===Qt&&Kt(st)),y!==p){for(V=[],U.test(D.charAt(w))?(R=D.charAt(w),w++):(R=p,0===Qt&&Kt(A));R!==p;)V.push(R),U.test(D.charAt(w))?(R=D.charAt(w),w++):(R=p,0===Qt&&Kt(A));V!==p?(10===D.charCodeAt(w)?(R=at,w++):(R=p,0===Qt&&Kt(ut)),R!==p?(Fe=f,f=y=Lt(V)):(w=f,f=p)):(w=f,f=p)}else w=f,f=p;return f}()),f}function fi(){var f,y,V,R,Z,ot,ft,G,Ne,Lr;if(f=w,(y=mi())!==p)if((V=Qi())!==p){for(R=[],Z=w,ot=[],ft=Oe();ft!==p;)ot.push(ft),ft=Oe();for(ot!==p?(59===D.charCodeAt(w)?(ft=X1,w++):(ft=p,0===Qt&&Kt(d1)),ft!==p?(G=w,(Ne=mi())!==p&&(Lr=Qi())!==p?(Fe=G,G=Ne=b1(y,V,Ne,Lr)):(w=G,G=p),G===p&&(G=null),G!==p?(Fe=Z,Z=ot=nr(y,V,G)):(w=Z,Z=p)):(w=Z,Z=p)):(w=Z,Z=p);Z!==p;){for(R.push(Z),Z=w,ot=[],ft=Oe();ft!==p;)ot.push(ft),ft=Oe();ot!==p?(59===D.charCodeAt(w)?(ft=X1,w++):(ft=p,0===Qt&&Kt(d1)),ft!==p?(G=w,(Ne=mi())!==p&&(Lr=Qi())!==p?(Fe=G,G=Ne=b1(y,V,Ne,Lr)):(w=G,G=p),G===p&&(G=null),G!==p?(Fe=Z,Z=ot=nr(y,V,G)):(w=Z,Z=p)):(w=Z,Z=p)):(w=Z,Z=p)}R!==p?(Fe=f,f=y=Er(y,V,R)):(w=f,f=p)}else w=f,f=p;else w=f,f=p;return f}function Qi(){var f,y,V,R,Z,ot,ft;if(f=w,(y=bl())!==p){for(V=[],R=w,Z=[],ot=Oe();ot!==p;)Z.push(ot),ot=Oe();for(Z!==p?(44===D.charCodeAt(w)?(ot=Gn,w++):(ot=p,0===Qt&&Kt(Yn)),ot!==p&&(ft=bl())!==p?(Fe=R,R=Z=Xn(y,ft)):(w=R,R=p)):(w=R,R=p);R!==p;){for(V.push(R),R=w,Z=[],ot=Oe();ot!==p;)Z.push(ot),ot=Oe();Z!==p?(44===D.charCodeAt(w)?(ot=Gn,w++):(ot=p,0===Qt&&Kt(Yn)),ot!==p&&(ft=bl())!==p?(Fe=R,R=Z=Xn(y,ft)):(w=R,R=p)):(w=R,R=p)}V!==p?(Fe=f,f=y=Go(y,V)):(w=f,f=p)}else w=f,f=p;return f}function mi(){var f,y,V;if(f=w,(y=function ca(){var f,y,V;for(f=w,y=[],V=Oe();V!==p;)y.push(V),V=Oe();return y!==p&&(V=ha())!==p?(Fe=f,f=y=he(V)):(w=f,f=p),f}())!==p&&(Fe=f,y=he(y)),(f=y)===p){for(f=w,y=[],V=Oe();V!==p;)y.push(V),V=Oe();y!==p?(97===D.charCodeAt(w)?(V=sr,w++):(V=p,0===Qt&&Kt(vr)),V!==p?(Fe=f,f=y=_n()):(w=f,f=p)):(w=f,f=p)}return f}function bl(){var f,y;return(f=function K0(){var f;return(f=function T5(){var f,y,V,R,Z,ot,ft;for(f=w,y=[],V=Oe();V!==p;)y.push(V),V=Oe();if(y!==p)if((V=Qa())!==p){for(R=[],Z=Oe();Z!==p;)R.push(Z),Z=Oe();R!==p&&(Z=function E5(){var f,y,V,R,Z,ot,ft,G;if(f=w,64===D.charCodeAt(w)?(y=Po,w++):(y=p,0===Qt&&Kt(zo)),y!==p){if(V=[],j2.test(D.charAt(w))?(R=D.charAt(w),w++):(R=p,0===Qt&&Kt(P2)),R!==p)for(;R!==p;)V.push(R),j2.test(D.charAt(w))?(R=D.charAt(w),w++):(R=p,0===Qt&&Kt(P2));else V=p;if(V!==p){if(R=[],Z=w,45===D.charCodeAt(w)?(ot=uo,w++):(ot=p,0===Qt&&Kt(ye)),ot!==p){if(ft=[],Nn.test(D.charAt(w))?(G=D.charAt(w),w++):(G=p,0===Qt&&Kt(gr)),G!==p)for(;G!==p;)ft.push(G),Nn.test(D.charAt(w))?(G=D.charAt(w),w++):(G=p,0===Qt&&Kt(gr));else ft=p;ft!==p?(Fe=Z,Z=ot=Vn(V,ft)):(w=Z,Z=p)}else w=Z,Z=p;for(;Z!==p;)if(R.push(Z),Z=w,45===D.charCodeAt(w)?(ot=uo,w++):(ot=p,0===Qt&&Kt(ye)),ot!==p){if(ft=[],Nn.test(D.charAt(w))?(G=D.charAt(w),w++):(G=p,0===Qt&&Kt(gr)),G!==p)for(;G!==p;)ft.push(G),Nn.test(D.charAt(w))?(G=D.charAt(w),w++):(G=p,0===Qt&&Kt(gr));else ft=p;ft!==p?(Fe=Z,Z=ot=Vn(V,ft)):(w=Z,Z=p)}else w=Z,Z=p;R!==p?(Fe=f,f=y=I1(V,R)):(w=f,f=p)}else w=f,f=p}else w=f,f=p;return f}())!==p?(Fe=f,f=y=M1(V,Z)):(w=f,f=p)}else w=f,f=p;else w=f,f=p;if(f===p){for(f=w,y=[],V=Oe();V!==p;)y.push(V),V=Oe();if(y!==p)if((V=Qa())!==p){for(R=[],Z=Oe();Z!==p;)R.push(Z),Z=Oe();if(R!==p)if(D.substr(w,2)===Ye?(Z=Ye,w+=2):(Z=p,0===Qt&&Kt(Ho)),Z!==p){for(ot=[],ft=Oe();ft!==p;)ot.push(ft),ft=Oe();ot!==p&&(ft=ha())!==p?(Fe=f,f=y=n2(V,ft)):(w=f,f=p)}else w=f,f=p;else w=f,f=p}else w=f,f=p;else w=f,f=p;if(f===p){for(f=w,y=[],V=Oe();V!==p;)y.push(V),V=Oe();y!==p&&(V=Qa())!==p?(Fe=f,f=y=he(V)):(w=f,f=p)}}return f}())===p&&(f=function c2(){var f,y,V;for(f=w,y=[],V=Oe();V!==p;)y.push(V),V=Oe();return y!==p?((V=function K1(){var f,y,V,R,Z,ot,ft,G,Ne;if(f=w,y=w,V=w,Sn.test(D.charAt(w))?(R=D.charAt(w),w++):(R=p,0===Qt&&Kt(qi)),R===p&&(R=null),R!==p){if(Z=w,ot=[],cr.test(D.charAt(w))?(ft=D.charAt(w),w++):(ft=p,0===Qt&&Kt(N1)),ft!==p)for(;ft!==p;)ot.push(ft),cr.test(D.charAt(w))?(ft=D.charAt(w),w++):(ft=p,0===Qt&&Kt(N1));else ot=p;if(ot!==p)if(46===D.charCodeAt(w)?(ft=Ht,w++):(ft=p,0===Qt&&Kt(Rt)),ft!==p){for(G=[],cr.test(D.charAt(w))?(Ne=D.charAt(w),w++):(Ne=p,0===Qt&&Kt(N1));Ne!==p;)G.push(Ne),cr.test(D.charAt(w))?(Ne=D.charAt(w),w++):(Ne=p,0===Qt&&Kt(N1));G!==p&&(Ne=Ja())!==p?Z=ot=[ot,ft,G,Ne]:(w=Z,Z=p)}else w=Z,Z=p;else w=Z,Z=p;if(Z===p){if(Z=w,46===D.charCodeAt(w)?(ot=Ht,w++):(ot=p,0===Qt&&Kt(Rt)),ot!==p){if(ft=[],cr.test(D.charAt(w))?(G=D.charAt(w),w++):(G=p,0===Qt&&Kt(N1)),G!==p)for(;G!==p;)ft.push(G),cr.test(D.charAt(w))?(G=D.charAt(w),w++):(G=p,0===Qt&&Kt(N1));else ft=p;ft!==p&&(G=Ja())!==p?Z=ot=[ot,ft,G]:(w=Z,Z=p)}else w=Z,Z=p;if(Z===p){if(Z=w,ot=[],cr.test(D.charAt(w))?(ft=D.charAt(w),w++):(ft=p,0===Qt&&Kt(N1)),ft!==p)for(;ft!==p;)ot.push(ft),cr.test(D.charAt(w))?(ft=D.charAt(w),w++):(ft=p,0===Qt&&Kt(N1));else ot=p;ot!==p&&(ft=Ja())!==p?Z=ot=[ot,ft]:(w=Z,Z=p)}}Z!==p?V=R=[R,Z]:(w=V,V=p)}else w=V,V=p;return(y=V!==p?D.substring(y,w):V)!==p&&(Fe=f,y=k5(y)),y}())===p&&(V=function P5(){var f,y,V,R,Z,ot,ft,G;if(f=w,y=w,V=w,Sn.test(D.charAt(w))?(R=D.charAt(w),w++):(R=p,0===Qt&&Kt(qi)),R===p&&(R=null),R!==p){for(Z=[],cr.test(D.charAt(w))?(ot=D.charAt(w),w++):(ot=p,0===Qt&&Kt(N1));ot!==p;)Z.push(ot),cr.test(D.charAt(w))?(ot=D.charAt(w),w++):(ot=p,0===Qt&&Kt(N1));if(Z!==p)if(46===D.charCodeAt(w)?(ot=Ht,w++):(ot=p,0===Qt&&Kt(Rt)),ot!==p){if(ft=[],cr.test(D.charAt(w))?(G=D.charAt(w),w++):(G=p,0===Qt&&Kt(N1)),G!==p)for(;G!==p;)ft.push(G),cr.test(D.charAt(w))?(G=D.charAt(w),w++):(G=p,0===Qt&&Kt(N1));else ft=p;ft!==p?V=R=[R,Z,ot,ft]:(w=V,V=p)}else w=V,V=p;else w=V,V=p}else w=V,V=p;return(y=V!==p?D.substring(y,w):V)!==p&&(Fe=f,y=C5(y)),y}())===p&&(V=function j5(){var f,y,V,R,Z,ot;if(f=w,y=w,V=w,Sn.test(D.charAt(w))?(R=D.charAt(w),w++):(R=p,0===Qt&&Kt(qi)),R===p&&(R=null),R!==p){if(Z=[],cr.test(D.charAt(w))?(ot=D.charAt(w),w++):(ot=p,0===Qt&&Kt(N1)),ot!==p)for(;ot!==p;)Z.push(ot),cr.test(D.charAt(w))?(ot=D.charAt(w),w++):(ot=p,0===Qt&&Kt(N1));else Z=p;Z!==p?V=R=[R,Z]:(w=V,V=p)}else w=V,V=p;return(y=V!==p?D.substring(y,w):V)!==p&&(Fe=f,y=Wi(y)),y}()),V!==p?(Fe=f,f=y=he(V)):(w=f,f=p)):(w=f,f=p),f}())===p&&(f=function Ll(){var f,y,V;for(f=w,y=[],V=Oe();V!==p;)y.push(V),V=Oe();if(y!==p?(D.substr(w,4)===Fn?(V=Fn,w+=4):(V=p,0===Qt&&Kt(Yo)),V!==p?(Fe=f,f=y=o2()):(w=f,f=p)):(w=f,f=p),f===p){for(f=w,y=[],V=Oe();V!==p;)y.push(V),V=Oe();y!==p?(D.substr(w,5)===jo?(V=jo,w+=5):(V=p,0===Qt&&Kt(On)),V!==p?(Fe=f,f=y=k2()):(w=f,f=p)):(w=f,f=p)}return f}()),f}())===p&&(f=w,(y=Ka())!==p&&(Fe=f,y=no(y)),(f=y)===p&&(f=w,(y=ua())!==p&&(Fe=f,y=Eo(y)),(f=y)===p&&(f=w,(y=Q0())!==p&&(Fe=f,y=he(y)),(f=y)===p&&(f=w,(y=ha())!==p&&(Fe=f,y=P(y)),f=y)))),f}function Q0(){var f,y,V,R,Z,ot;for(f=w,y=[],V=Oe();V!==p;)y.push(V),V=Oe();if(y!==p)if(91===D.charCodeAt(w)?(V=M,w++):(V=p,0===Qt&&Kt(z)),V!==p)if((R=fi())!==p){for(Z=[],ot=Oe();ot!==p;)Z.push(ot),ot=Oe();Z!==p?(93===D.charCodeAt(w)?(ot=W,w++):(ot=p,0===Qt&&Kt(Mt)),ot!==p?(Fe=f,f=y=he(R)):(w=f,f=p)):(w=f,f=p)}else w=f,f=p;else w=f,f=p;else w=f,f=p;return f}function Ka(){var f,y,V,R,Z,ot;for(f=w,y=[],V=Oe();V!==p;)y.push(V),V=Oe();if(y!==p)if(40===D.charCodeAt(w)?(V=ee,w++):(V=p,0===Qt&&Kt($)),V!==p){for(R=[],Z=bl();Z!==p;)R.push(Z),Z=bl();if(R!==p){for(Z=[],ot=Oe();ot!==p;)Z.push(ot),ot=Oe();Z!==p?(41===D.charCodeAt(w)?(ot=Et,w++):(ot=p,0===Qt&&Kt(l1)),ot!==p?(Fe=f,f=y=a1(R)):(w=f,f=p)):(w=f,f=p)}else w=f,f=p}else w=f,f=p;else w=f,f=p;return f}function Qa(){var f,y,V;for(f=w,y=[],V=Oe();V!==p;)y.push(V),V=Oe();return y!==p?((V=function bo(){var f,y,V,R,Z,ot,ft,G;if(f=w,D.substr(w,3)===bs?(y=bs,w+=3):(y=p,0===Qt&&Kt(E0)),y!==p){for(V=[],ir.test(D.charAt(w))?(R=D.charAt(w),w++):(R=p,0===Qt&&Kt(l2)),R===p&&(R=lr())===p&&(R=W1());R!==p;)V.push(R),ir.test(D.charAt(w))?(R=D.charAt(w),w++):(R=p,0===Qt&&Kt(l2)),R===p&&(R=lr())===p&&(R=W1());if(V!==p){if(R=[],Z=w,D.substr(w,2)===An?(ot=An,w+=2):(ot=p,0===Qt&&Kt(ta)),ot!==p){if(ft=[],ir.test(D.charAt(w))?(G=D.charAt(w),w++):(G=p,0===Qt&&Kt(l2)),G===p&&(G=lr())===p&&(G=W1()),G!==p)for(;G!==p;)ft.push(G),ir.test(D.charAt(w))?(G=D.charAt(w),w++):(G=p,0===Qt&&Kt(l2)),G===p&&(G=lr())===p&&(G=W1());else ft=p;ft!==p?(Fe=Z,Z=ot=j0(V,ft)):(w=Z,Z=p)}else w=Z,Z=p;if(Z===p)if(Z=w,39===D.charCodeAt(w)?(ot=po,w++):(ot=p,0===Qt&&Kt(Gi)),ot!==p){if(ft=[],ir.test(D.charAt(w))?(G=D.charAt(w),w++):(G=p,0===Qt&&Kt(l2)),G===p&&(G=lr())===p&&(G=W1()),G!==p)for(;G!==p;)ft.push(G),ir.test(D.charAt(w))?(G=D.charAt(w),w++):(G=p,0===Qt&&Kt(l2)),G===p&&(G=lr())===p&&(G=W1());else ft=p;ft!==p?(Fe=Z,Z=ot=Hr(V,ft)):(w=Z,Z=p)}else w=Z,Z=p;for(;Z!==p;){if(R.push(Z),Z=w,D.substr(w,2)===An?(ot=An,w+=2):(ot=p,0===Qt&&Kt(ta)),ot!==p){if(ft=[],ir.test(D.charAt(w))?(G=D.charAt(w),w++):(G=p,0===Qt&&Kt(l2)),G===p&&(G=lr())===p&&(G=W1()),G!==p)for(;G!==p;)ft.push(G),ir.test(D.charAt(w))?(G=D.charAt(w),w++):(G=p,0===Qt&&Kt(l2)),G===p&&(G=lr())===p&&(G=W1());else ft=p;ft!==p?(Fe=Z,Z=ot=j0(V,ft)):(w=Z,Z=p)}else w=Z,Z=p;if(Z===p)if(Z=w,39===D.charCodeAt(w)?(ot=po,w++):(ot=p,0===Qt&&Kt(Gi)),ot!==p){if(ft=[],ir.test(D.charAt(w))?(G=D.charAt(w),w++):(G=p,0===Qt&&Kt(l2)),G===p&&(G=lr())===p&&(G=W1()),G!==p)for(;G!==p;)ft.push(G),ir.test(D.charAt(w))?(G=D.charAt(w),w++):(G=p,0===Qt&&Kt(l2)),G===p&&(G=lr())===p&&(G=W1());else ft=p;ft!==p?(Fe=Z,Z=ot=Hr(V,ft)):(w=Z,Z=p)}else w=Z,Z=p}R!==p?(D.substr(w,3)===bs?(Z=bs,w+=3):(Z=p,0===Qt&&Kt(E0)),Z!==p?(Fe=f,f=y=D1(V,R)):(w=f,f=p)):(w=f,f=p)}else w=f,f=p}else w=f,f=p;return f}())===p&&(V=function br(){var f,y,V,R,Z,ot,ft,G;if(f=w,D.substr(w,3)===Yi?(y=Yi,w+=3):(y=p,0===Qt&&Kt(ea)),y!==p){for(V=[],Ls.test(D.charAt(w))?(R=D.charAt(w),w++):(R=p,0===Qt&&Kt(R2)),R===p&&(R=lr())===p&&(R=W1());R!==p;)V.push(R),Ls.test(D.charAt(w))?(R=D.charAt(w),w++):(R=p,0===Qt&&Kt(R2)),R===p&&(R=lr())===p&&(R=W1());if(V!==p){if(R=[],Z=w,D.substr(w,2)===Ie?(ot=Ie,w+=2):(ot=p,0===Qt&&Kt(Xi)),ot!==p){if(ft=[],Ls.test(D.charAt(w))?(G=D.charAt(w),w++):(G=p,0===Qt&&Kt(R2)),G===p&&(G=lr())===p&&(G=W1()),G!==p)for(;G!==p;)ft.push(G),Ls.test(D.charAt(w))?(G=D.charAt(w),w++):(G=p,0===Qt&&Kt(R2)),G===p&&(G=lr())===p&&(G=W1());else ft=p;ft!==p?(Fe=Z,Z=ot=B1(V,ft)):(w=Z,Z=p)}else w=Z,Z=p;if(Z===p)if(Z=w,34===D.charCodeAt(w)?(ot=Ql,w++):(ot=p,0===Qt&&Kt(I2)),ot!==p){if(ft=[],Ls.test(D.charAt(w))?(G=D.charAt(w),w++):(G=p,0===Qt&&Kt(R2)),G===p&&(G=lr())===p&&(G=W1()),G!==p)for(;G!==p;)ft.push(G),Ls.test(D.charAt(w))?(G=D.charAt(w),w++):(G=p,0===Qt&&Kt(R2)),G===p&&(G=lr())===p&&(G=W1());else ft=p;ft!==p?(Fe=Z,Z=ot=Rr(V,ft)):(w=Z,Z=p)}else w=Z,Z=p;for(;Z!==p;){if(R.push(Z),Z=w,D.substr(w,2)===Ie?(ot=Ie,w+=2):(ot=p,0===Qt&&Kt(Xi)),ot!==p){if(ft=[],Ls.test(D.charAt(w))?(G=D.charAt(w),w++):(G=p,0===Qt&&Kt(R2)),G===p&&(G=lr())===p&&(G=W1()),G!==p)for(;G!==p;)ft.push(G),Ls.test(D.charAt(w))?(G=D.charAt(w),w++):(G=p,0===Qt&&Kt(R2)),G===p&&(G=lr())===p&&(G=W1());else ft=p;ft!==p?(Fe=Z,Z=ot=B1(V,ft)):(w=Z,Z=p)}else w=Z,Z=p;if(Z===p)if(Z=w,34===D.charCodeAt(w)?(ot=Ql,w++):(ot=p,0===Qt&&Kt(I2)),ot!==p){if(ft=[],Ls.test(D.charAt(w))?(G=D.charAt(w),w++):(G=p,0===Qt&&Kt(R2)),G===p&&(G=lr())===p&&(G=W1()),G!==p)for(;G!==p;)ft.push(G),Ls.test(D.charAt(w))?(G=D.charAt(w),w++):(G=p,0===Qt&&Kt(R2)),G===p&&(G=lr())===p&&(G=W1());else ft=p;ft!==p?(Fe=Z,Z=ot=Rr(V,ft)):(w=Z,Z=p)}else w=Z,Z=p}R!==p?(D.substr(w,3)===Yi?(Z=Yi,w+=3):(Z=p,0===Qt&&Kt(ea)),Z!==p?(Fe=f,f=y=D1(V,R)):(w=f,f=p)):(w=f,f=p)}else w=f,f=p}else w=f,f=p;return f}())===p&&(V=function s1(){var f,y,V,R;if(f=w,39===D.charCodeAt(w)?(y=po,w++):(y=p,0===Qt&&Kt(Gi)),y!==p){for(V=[],Jl.test(D.charAt(w))?(R=D.charAt(w),w++):(R=p,0===Qt&&Kt(zs)),R===p&&(R=lr())===p&&(R=W1());R!==p;)V.push(R),Jl.test(D.charAt(w))?(R=D.charAt(w),w++):(R=p,0===Qt&&Kt(zs)),R===p&&(R=lr())===p&&(R=W1());V!==p?(39===D.charCodeAt(w)?(R=po,w++):(R=p,0===Qt&&Kt(Gi)),R!==p?(Fe=f,f=y=Lt(V)):(w=f,f=p)):(w=f,f=p)}else w=f,f=p;return f}())===p&&(V=function nc(){var f,y,V,R;if(f=w,34===D.charCodeAt(w)?(y=Ql,w++):(y=p,0===Qt&&Kt(I2)),y!==p){for(V=[],cs.test(D.charAt(w))?(R=D.charAt(w),w++):(R=p,0===Qt&&Kt(Fa)),R===p&&(R=lr())===p&&(R=W1());R!==p;)V.push(R),cs.test(D.charAt(w))?(R=D.charAt(w),w++):(R=p,0===Qt&&Kt(Fa)),R===p&&(R=lr())===p&&(R=W1());V!==p?(34===D.charCodeAt(w)?(R=Ql,w++):(R=p,0===Qt&&Kt(I2)),R!==p?(Fe=f,f=y=Lt(V)):(w=f,f=p)):(w=f,f=p)}else w=f,f=p;return f}()),V!==p?(Fe=f,f=y=he(V)):(w=f,f=p)):(w=f,f=p),f}function ha(){var f,y,V;for(f=w,y=[],V=Oe();V!==p;)y.push(V),V=Oe();if(y!==p&&(V=Ji())!==p?(Fe=f,f=y=he(V)):(w=f,f=p),f===p){for(f=w,y=[],V=Oe();V!==p;)y.push(V),V=Oe();y!==p&&(V=function J0(){var f,y;return(f=function rc(){var f,y,V;return f=w,(y=tc())!==p&&(V=function sc(){var f,y,V,R,Z,ot,ft,G;if(f=w,(y=Sl())===p&&(58===D.charCodeAt(w)?(y=I,w++):(y=p,0===Qt&&Kt(lt)),y===p&&(cr.test(D.charAt(w))?(y=D.charAt(w),w++):(y=p,0===Qt&&Kt(N1)),y===p&&(y=Jr()))),y!==p){for(V=[],(R=Dn())===p&&(58===D.charCodeAt(w)?(R=I,w++):(R=p,0===Qt&&Kt(lt)),R===p&&(R=Jr()));R!==p;)V.push(R),(R=Dn())===p&&(58===D.charCodeAt(w)?(R=I,w++):(R=p,0===Qt&&Kt(lt)),R===p&&(R=Jr()));if(V!==p){if(R=[],Z=w,ot=[],46===D.charCodeAt(w)?(ft=Ht,w++):(ft=p,0===Qt&&Kt(Rt)),ft!==p)for(;ft!==p;)ot.push(ft),46===D.charCodeAt(w)?(ft=Ht,w++):(ft=p,0===Qt&&Kt(Rt));else ot=p;if(ot!==p){if(ft=[],(G=Dn())===p&&(58===D.charCodeAt(w)?(G=I,w++):(G=p,0===Qt&&Kt(lt)),G===p&&(G=Jr())),G!==p)for(;G!==p;)ft.push(G),(G=Dn())===p&&(58===D.charCodeAt(w)?(G=I,w++):(G=p,0===Qt&&Kt(lt)),G===p&&(G=Jr()));else ft=p;ft!==p?(Fe=Z,Z=ot=U0(y,V,ot,ft)):(w=Z,Z=p)}else w=Z,Z=p;for(;Z!==p;){if(R.push(Z),Z=w,ot=[],46===D.charCodeAt(w)?(ft=Ht,w++):(ft=p,0===Qt&&Kt(Rt)),ft!==p)for(;ft!==p;)ot.push(ft),46===D.charCodeAt(w)?(ft=Ht,w++):(ft=p,0===Qt&&Kt(Rt));else ot=p;if(ot!==p){if(ft=[],(G=Dn())===p&&(58===D.charCodeAt(w)?(G=I,w++):(G=p,0===Qt&&Kt(lt)),G===p&&(G=Jr())),G!==p)for(;G!==p;)ft.push(G),(G=Dn())===p&&(58===D.charCodeAt(w)?(G=I,w++):(G=p,0===Qt&&Kt(lt)),G===p&&(G=Jr()));else ft=p;ft!==p?(Fe=Z,Z=ot=U0(y,V,ot,ft)):(w=Z,Z=p)}else w=Z,Z=p}R!==p?(Fe=f,f=y=Ga(y,V,R)):(w=f,f=p)}else w=f,f=p}else w=f,f=p;return f}())!==p?(Fe=f,f=y=k1(y,V)):(w=f,f=p),f}())===p&&(f=w,(y=tc())!==p&&(Fe=f,y=Hs(y)),f=y),f}())!==p?(Fe=f,f=y=he(V)):(w=f,f=p)}return f}function ua(){var f,y,V;for(f=w,y=[],V=Oe();V!==p;)y.push(V),V=Oe();if(y!==p&&(V=function U1(){var f,y,V,R,Z,ot,ft,G,Ne,Lr;if(f=w,y=w,D.substr(w,2)===Ir?(V=Ir,w+=2):(V=p,0===Qt&&Kt($r)),V!==p)if((R=Sl())===p&&(cr.test(D.charAt(w))?(R=D.charAt(w),w++):(R=p,0===Qt&&Kt(N1))),R!==p){for(Z=[],ot=Dn();ot!==p;)Z.push(ot),ot=Dn();if(Z!==p){if(ot=[],ft=w,G=[],46===D.charCodeAt(w)?(Ne=Ht,w++):(Ne=p,0===Qt&&Kt(Rt)),Ne!==p)for(;Ne!==p;)G.push(Ne),46===D.charCodeAt(w)?(Ne=Ht,w++):(Ne=p,0===Qt&&Kt(Rt));else G=p;if(G!==p){if(Ne=[],(Lr=Dn())!==p)for(;Lr!==p;)Ne.push(Lr),Lr=Dn();else Ne=p;Ne!==p?ft=G=[G,Ne]:(w=ft,ft=p)}else w=ft,ft=p;for(;ft!==p;){if(ot.push(ft),ft=w,G=[],46===D.charCodeAt(w)?(Ne=Ht,w++):(Ne=p,0===Qt&&Kt(Rt)),Ne!==p)for(;Ne!==p;)G.push(Ne),46===D.charCodeAt(w)?(Ne=Ht,w++):(Ne=p,0===Qt&&Kt(Rt));else G=p;if(G!==p){if(Ne=[],(Lr=Dn())!==p)for(;Lr!==p;)Ne.push(Lr),Lr=Dn();else Ne=p;Ne!==p?ft=G=[G,Ne]:(w=ft,ft=p)}else w=ft,ft=p}ot!==p?y=V=[V,R,Z,ot]:(w=y,y=p)}else w=y,y=p}else w=y,y=p;else w=y,y=p;return y!==p?D.substring(f,w):y}())!==p?(Fe=f,f=y=he(V)):(w=f,f=p),f===p){for(f=w,y=[],V=Oe();V!==p;)y.push(V),V=Oe();y!==p&&(V=function h2(){var f,y,V,R;if(f=w,91===D.charCodeAt(w)?(y=M,w++):(y=p,0===Qt&&Kt(z)),y!==p){for(V=[],R=Oe();R!==p;)V.push(R),R=Oe();V!==p?(93===D.charCodeAt(w)?(R=W,w++):(R=p,0===Qt&&Kt(Mt)),R!==p?(Fe=f,f=y=F0()):(w=f,f=p)):(w=f,f=p)}else w=f,f=p;return f}())!==p?(Fe=f,f=y=he(V)):(w=f,f=p)}return f}function Ji(){var f,y,V,R;if(f=w,60===D.charCodeAt(w)?(y=as,w++):(y=p,0===Qt&&Kt(ho)),y!==p){for(V=[],E2.test(D.charAt(w))?(R=D.charAt(w),w++):(R=p,0===Qt&&Kt(s2)),R===p&&(R=W1());R!==p;)V.push(R),E2.test(D.charAt(w))?(R=D.charAt(w),w++):(R=p,0===Qt&&Kt(s2)),R===p&&(R=W1());V!==p?(62===D.charCodeAt(w)?(R=_2,w++):(R=p,0===Qt&&Kt(Hn)),R!==p?(Fe=f,f=y=E(V)):(w=f,f=p)):(w=f,f=p)}else w=f,f=p;return f}function tc(){var f,y,V;return f=w,(y=oc())===p&&(y=null),y!==p?(58===D.charCodeAt(w)?(V=I,w++):(V=p,0===Qt&&Kt(lt)),V!==p?(Fe=f,f=y=ne(y)):(w=f,f=p)):(w=f,f=p),f}function ec(){var f,y,V;return f=w,(y=oc())===p&&(y=null),y!==p?(58===D.charCodeAt(w)?(V=I,w++):(V=p,0===Qt&&Kt(lt)),V!==p?(Fe=f,f=y=be(y)):(w=f,f=p)):(w=f,f=p),f}function Ja(){var f,y,V,R,Z,ot;if(f=w,y=w,T0.test(D.charAt(w))?(V=D.charAt(w),w++):(V=p,0===Qt&&Kt(_5)),V!==p)if(Sn.test(D.charAt(w))?(R=D.charAt(w),w++):(R=p,0===Qt&&Kt(qi)),R===p&&(R=null),R!==p){if(Z=[],cr.test(D.charAt(w))?(ot=D.charAt(w),w++):(ot=p,0===Qt&&Kt(N1)),ot!==p)for(;ot!==p;)Z.push(ot),cr.test(D.charAt(w))?(ot=D.charAt(w),w++):(ot=p,0===Qt&&Kt(N1));else Z=p;Z!==p?y=V=[V,R,Z]:(w=y,y=p)}else w=y,y=p;else w=y,y=p;return y!==p?D.substring(f,w):y}function W1(){var f,y,V,R,Z,ot,ft,G,Ne,Lr,us;return f=w,D.substr(w,2)===kl?(y=kl,w+=2):(y=p,0===Qt&&Kt(_l)),y!==p?(V=w,(R=u1())!==p&&(Z=u1())!==p&&(ot=u1())!==p&&(ft=u1())!==p&&(G=u1())!==p&&(Ne=u1())!==p&&(Lr=u1())!==p&&(us=u1())!==p?V=R=[R,Z,ot,ft,G,Ne,Lr,us]:(w=V,V=p),V!==p?(Fe=f,f=y=x5(V)):(w=f,f=p)):(w=f,f=p),f===p&&(f=w,D.substr(w,2)===xl?(y=xl,w+=2):(y=p,0===Qt&&Kt(a2)),y!==p?(V=w,(R=u1())!==p&&(Z=u1())!==p&&(ot=u1())!==p&&(ft=u1())!==p?V=R=[R,Z,ot,ft]:(w=V,V=p),V!==p?(Fe=f,f=y=P0(V)):(w=f,f=p)):(w=f,f=p)),f}function lr(){var f,y;return f=w,D.substr(w,2)===ra?(y=ra,w+=2):(y=p,0===Qt&&Kt(fh)),y!==p&&(Fe=f,y=Ys()),(f=y)===p&&(f=w,D.substr(w,2)===Ki?(y=Ki,w+=2):(y=p,0===Qt&&Kt(mh)),y!==p&&(Fe=f,y=wh()),(f=y)===p&&(f=w,D.substr(w,2)===M5?(y=M5,w+=2):(y=p,0===Qt&&Kt(Oa)),y!==p&&(Fe=f,y=I0()),(f=y)===p&&(f=w,D.substr(w,2)===Na?(y=Na,w+=2):(y=p,0===Qt&&Kt(Ch)),y!==p&&(Fe=f,y=x2()),(f=y)===p&&(f=w,D.substr(w,2)===L1?(y=L1,w+=2):(y=p,0===Qt&&Kt(y5)),y!==p&&(Fe=f,y=H5()),(f=y)===p&&(f=w,D.substr(w,2)===z5?(y=z5,w+=2):(y=p,0===Qt&&Kt(xe)),y!==p&&(Fe=f,y=kh()),(f=y)===p&&(f=w,D.substr(w,2)===$1?(y=$1,w+=2):(y=p,0===Qt&&Kt(na)),y!==p&&(Fe=f,y=_h()),(f=y)===p&&(f=w,D.substr(w,2)===$a?(y=$a,w+=2):(y=p,0===Qt&&Kt(R0)),y!==p&&(Fe=f,y=oa()),f=y))))))),f}function t0(){var f,y,V;return f=w,b5.test(D.charAt(w))?(y=D.charAt(w),w++):(y=p,0===Qt&&Kt(mr)),y!==p?(Za.test(D.charAt(w))?(V=D.charAt(w),w++):(V=p,0===Qt&&Kt(O0)),V!==p?(Fe=f,f=y=Xo(y,V)):(w=f,f=p)):(w=f,f=p),f===p&&(N0.test(D.charAt(w))?(f=D.charAt(w),w++):(f=p,0===Qt&&Kt(L5))),f}function Sl(){var f;return(f=t0())===p&&(95===D.charCodeAt(w)?(f=ln,w++):(f=p,0===Qt&&Kt(xh))),f}function Dn(){var f;return(f=Sl())===p&&(45===D.charCodeAt(w)?(f=uo,w++):(f=p,0===Qt&&Kt(ye)),f===p&&(cr.test(D.charAt(w))?(f=D.charAt(w),w++):(f=p,0===Qt&&Kt(N1)),f===p&&(183===D.charCodeAt(w)?(f=Mh,w++):(f=p,0===Qt&&Kt(Me)),f===p&&(ia.test(D.charAt(w))?(f=D.charAt(w),w++):(f=p,0===Qt&&Kt(qa)),f===p&&($0.test(D.charAt(w))?(f=D.charAt(w),w++):(f=p,0===Qt&&Kt(Wa))))))),f}function oc(){var f,y,V,R,Z,ot,ft,G,Ne;if(f=w,y=w,(V=t0())!==p){for(R=[],Z=Dn();Z!==p;)R.push(Z),Z=Dn();if(R!==p){if(Z=[],ot=w,ft=[],46===D.charCodeAt(w)?(G=Ht,w++):(G=p,0===Qt&&Kt(Rt)),G!==p)for(;G!==p;)ft.push(G),46===D.charCodeAt(w)?(G=Ht,w++):(G=p,0===Qt&&Kt(Rt));else ft=p;if(ft!==p){if(G=[],(Ne=Dn())!==p)for(;Ne!==p;)G.push(Ne),Ne=Dn();else G=p;G!==p?ot=ft=[ft,G]:(w=ot,ot=p)}else w=ot,ot=p;for(;ot!==p;){if(Z.push(ot),ot=w,ft=[],46===D.charCodeAt(w)?(G=Ht,w++):(G=p,0===Qt&&Kt(Rt)),G!==p)for(;G!==p;)ft.push(G),46===D.charCodeAt(w)?(G=Ht,w++):(G=p,0===Qt&&Kt(Rt));else ft=p;if(ft!==p){if(G=[],(Ne=Dn())!==p)for(;Ne!==p;)G.push(Ne),Ne=Dn();else G=p;G!==p?ot=ft=[ft,G]:(w=ot,ot=p)}else w=ot,ot=p}Z!==p?y=V=[V,R,Z]:(w=y,y=p)}else w=y,y=p}else w=y,y=p;return y!==p?D.substring(f,w):y}function Jr(){var f;return(f=function Xe(){var f,y,V,R,Z;return f=w,y=w,37===D.charCodeAt(w)?(V=yh,w++):(V=p,0===Qt&&Kt(V5)),V!==p&&(R=u1())!==p&&(Z=u1())!==p?y=V=[V,R,Z]:(w=y,y=p),y!==p?D.substring(f,w):y}())===p&&(f=function xn(){var f,y,V;return f=w,92===D.charCodeAt(w)?(y=S5,w++):(y=p,0===Qt&&Kt(Ml)),y!==p?(la.test(D.charAt(w))?(V=D.charAt(w),w++):(V=p,0===Qt&&Kt(aa)),V!==p?(Fe=f,f=y=he(V)):(w=f,f=p)):(w=f,f=p),f}()),f}function u1(){var f;return Ya.test(D.charAt(w))?(f=D.charAt(w),w++):(f=p,0===Qt&&Kt(Z0)),f}var $2=new Function("try {return this===window;}catch(e){ return false;}")()?window.URL:ht(1391).URL,vo=function(f){return f.match(/^[a-z](.*?):(.+?)/g)},z1={base:[],data:{},addBase:function(f){if(0===z1.base.length)return void z1.base.push(f);const y=z1.base[z1.base.length-1];y!==f&&z1.base.push(new $2(f,y).toString())},addPrefix:function(f,y){const V=z1.data[f];void 0===V?z1.data[f]=[{uri:y,count:0}]:V[V.length-1].uri!==y&&V.push({uri:y,count:0})},hasPrefix:function(f){return void 0!==this.data[f]},resolve:function(f,y){const V=Object.keys(z1.data).find(Z=>0===f.indexOf(Z+":"));if(void 0!==V){const Z=z1.data[V];return 1===Z.length&&!0!==y&&vo(Z[0].uri)?f:f.replace(V+":",Z[Z.length-1].uri)}var R=0===z1.base.length?nt.baseIRI:z1.base[z1.base.length-1];return!R||f.match(/^(http:|https:|urn:|file:)/)?f:0===f.indexOf("//")&&R?R.split("//")[0]+f:new $2(f,R).toString()},increment:function(f){const y=z1.data[f];void 0!==y&&y[y.length-1].count++},decrement:function(f){const y=z1.data[f];void 0!==y&&y[y.length-1].count--},toJSON:function(){const f={};return z1.base.length>0&&(void 0===f["@context"]&&(f["@context"]={}),f["@context"]["@base"]=z1.base[0]),Object.keys(z1.data).forEach(y=>{const V=z1.data[y][0];"http://www.w3.org/2001/XMLSchema#"===V.uri&&V.count<1||vo(V.uri)&&(void 0===f["@context"]&&(f["@context"]={}),f["@context"][y]=V.uri)}),f}};function hs(f,y){if(void 0===f["@list"]||!y&&!f["@list"].find(Z=>void 0!==Z["@list"]))return f;if(0===f["@list"].length)return{"@id":"http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"};var V={},R=null;return f["@list"].forEach(Z=>{null===R?R=V:(R["http://www.w3.org/1999/02/22-rdf-syntax-ns#rest"]={},R=R["http://www.w3.org/1999/02/22-rdf-syntax-ns#rest"]),R["http://www.w3.org/1999/02/22-rdf-syntax-ns#first"]=hs(Z,!0),R["http://www.w3.org/1999/02/22-rdf-syntax-ns#rest"]={"@id":"http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"}}),V}if((O2=ce())!==p&&w===D.length)return O2;throw O2!==p&&w=g.length&&(g=void 0),{value:g&&g[_++],done:!g}}};throw new TypeError(C?"Object is not iterable.":"Symbol.iterator is not defined.")}function X(g,C){var k="function"==typeof Symbol&&g[Symbol.iterator];if(!k)return g;var H,q,_=k.call(g),B=[];try{for(;(void 0===C||C-- >0)&&!(H=_.next()).done;)B.push(H.value)}catch(jt){q={error:jt}}finally{try{H&&!H.done&&(k=_.return)&&k.call(_)}finally{if(q)throw q.error}}return B}function Pt(g,C,k){if(k||2===arguments.length)for(var B,_=0,H=C.length;_g<4?"short":4===g?"long":"narrow",zt=g=>g%2==0?"2-digit":"numeric";function D(g,C){switch(g.width){case 1:return"numeric";case 2:return"2-digit";case 3:return"short";case 4:return"long";case 5:return"narrow";default:return void C(`${g.desc} is not supported with width ${g.width}`)}}function nt(g,C){const{char:k,desc:_,width:H}=g;if("d"===k)return zt(H);C(`${_} is not supported`)}function p(g,C){const{char:k,desc:_,width:H}=g;return("c"===k||"e"===k)&&H<3&&C(`Numeric value is not supported for ${_}; falling back to weekday:short`,Tt.WARNING),Wt(H)}function ce(g,C){const{char:k,desc:_,width:H}=g;switch(k){case"v":case"z":return 4===H?"long":"short";case"V":return 4===H?"long":void C(`${_} is not supported with width ${H}`);case"X":return void C(`${_} is not supported`)}return"short"}function qt(g,C){switch(g.field){case"era":return{era:Wt(g.width)};case"year":return function Nt(g,C){switch(g.char){case"y":return{year:zt(g.width)};case"r":return{calendar:"gregory",year:"numeric"};default:return C(`${g.desc} is not supported; falling back to year:numeric`,Tt.WARNING),{year:"numeric"}}}(g,C);case"month":return{month:D(g,C)};case"day":return{day:nt(g,C)};case"weekday":return{weekday:p(g,C)};case"period":return;case"hour":return function le(g){const C=zt(g.width);let k;switch(g.char){case"h":k="h12";break;case"H":k="h23";break;case"k":k="h24";break;case"K":k="h11"}return k?{hour:C,hourCycle:k}:{hour:C}}(g);case"min":return{minute:zt(g.width)};case"sec":return{second:zt(g.width)};case"tz":return{timeZoneName:ce(g,C)};case"quarter":case"week":case"sec-frac":case"ms":C(`${g.desc} is not supported`)}}function Ht(g){let C=arguments.length>1&&void 0!==arguments[1]?arguments[1]:H=>{throw H};const k={},_=[];for(const H of g){const{error:B,field:q,str:jt}=H;if(B){const He=new Tt(B.message,H);He.stack=B.stack,C(He)}jt&&C(new Tt(`Ignoring string part: ${jt}`,H,Tt.WARNING)),q&&(-1===_.indexOf(q)?_.push(q):C(new Tt(`Duplicate ${q} token`,H)));const se=qt(H,(He,y1)=>C(new Tt(He,H,y1)));se&&Object.assign(k,se)}return k}const Rt={G:{field:"era",desc:"Era"},y:{field:"year",desc:"Year"},Y:{field:"year",desc:'Year of "Week of Year"'},u:{field:"year",desc:"Extended year"},U:{field:"year",desc:"Cyclic year name"},r:{field:"year",desc:"Related Gregorian year"},Q:{field:"quarter",desc:"Quarter"},q:{field:"quarter",desc:"Stand-alone quarter"},M:{field:"month",desc:"Month in year"},L:{field:"month",desc:"Stand-alone month in year"},w:{field:"week",desc:"Week of year"},W:{field:"week",desc:"Week of month"},d:{field:"day",desc:"Day in month"},D:{field:"day",desc:"Day of year"},F:{field:"day",desc:"Day of week in month"},g:{field:"day",desc:"Modified julian day"},E:{field:"weekday",desc:"Day of week"},e:{field:"weekday",desc:"Local day of week"},c:{field:"weekday",desc:"Stand-alone local day of week"},a:{field:"period",desc:"AM/PM marker"},b:{field:"period",desc:"AM/PM/noon/midnight marker"},B:{field:"period",desc:"Flexible day period"},h:{field:"hour",desc:"Hour in AM/PM (1~12)"},H:{field:"hour",desc:"Hour in day (0~23)"},k:{field:"hour",desc:"Hour in day (1~24)"},K:{field:"hour",desc:"Hour in AM/PM (0~11)"},j:{field:"hour",desc:"Hour in preferred cycle"},J:{field:"hour",desc:"Hour in preferred cycle without marker"},C:{field:"hour",desc:"Hour in preferred cycle with flexible marker"},m:{field:"min",desc:"Minute in hour"},s:{field:"sec",desc:"Second in minute"},S:{field:"sec-frac",desc:"Fractional second"},A:{field:"ms",desc:"Milliseconds in day"},z:{field:"tz",desc:"Time Zone: specific non-location"},Z:{field:"tz",desc:"Time Zone"},O:{field:"tz",desc:"Time Zone: localized"},v:{field:"tz",desc:"Time Zone: generic non-location"},V:{field:"tz",desc:"Time Zone: ID"},X:{field:"tz",desc:"Time Zone: ISO8601 with Z"},x:{field:"tz",desc:"Time Zone: ISO8601"}},he=g=>g>="A"&&g<="Z"||g>="a"&&g<="z";function U(g,C){const k=g[C];if(!k)return null;if(he(k))return function Gt(g,C){const k=g[C];let _=1;for(;g[++C]===k;)++_;const H=Rt[k];return H?{char:k,field:H.field,desc:H.desc,width:_}:{char:k,error:new Error(`The letter ${k} is not a valid field identifier`),width:_}}(g,C);if("'"===k)return function st(g,C){let k=g[++C],_=2;if("'"===k)return{char:"'",str:k,width:_};for(;;){const H=g[++C];if(++_,void 0===H)return{char:"'",error:new Error(`Unterminated quoted literal in pattern: ${k||g}`),str:k,width:_};if("'"===H){if("'"!==g[++C])return{char:"'",str:k,width:_};++_}k+=H}}(g,C);let _=k,H=1;for(;;){const B=g[++C];if(!B||he(B)||"'"===B)return{char:k,str:_,width:H};_+=B,H+=1}}function A(g){const C=[];let k=0;for(;;){const _=U(g,k);if(!_)return C;C.push(_),k+=_.width}}class Lt extends Error{constructor(C,k){super(k),this.code=C}}class Q extends Lt{constructor(C,k){super("BAD_OPTION",`Unknown ${C} option: ${k}`),this.stem=C,this.option=k}}class Jt extends Lt{constructor(C){super("BAD_STEM",`Unknown stem: ${C}`),this.stem=C}}class et extends Lt{constructor(C,k){super("MASKED_VALUE",`Value for ${C} is set multiple times`),this.type=C,this.prev=k}}class At extends Lt{constructor(C){super("MISSING_OPTION",`Required option missing for ${C}`),this.stem=C}}class Ut extends Lt{constructor(C,k){super("BAD_PATTERN",k),this.char=C}}class te extends Lt{constructor(C,k,_){super("TOO_MANY_OPTIONS",`Token ${C} only supports ${_>1?`${_} options`:"one option"} (got ${k.length})`),this.stem=C,this.options=k}}class tt extends Lt{constructor(C,k){super("UNSUPPORTED",`The stem ${C} is not supported`),this.stem=C,k&&(this.message+=` with value ${k}`,this.source=k)}}function _t(g,C){let{numberingSystem:k}=C;return Array.isArray(g)||(g=[g]),k?g.map(_=>{const H=-1===_.indexOf("-u-")?"u-nu":"nu";return`${_}-${H}-${k}`}).concat(g):g}function F(g){let{scale:C,unit:k}=g,_="number"==typeof C&&C>=0?C:1;return k&&"percent"===k.style&&(_*=.01),_}function rt(g,C){const{decimal:k,group:_,integerWidth:H,notation:B,precision:q,roundingMode:jt,sign:se,unit:He,unitPer:y1,unitWidth:q1}=g,tr=(cn,hn)=>{C&&C(new tt(cn,hn))},Ke={};if(He)switch(He.style){case"base-unit":Ke.style="decimal";break;case"currency":Ke.style="currency",Ke.currency=He.currency;break;case"measure-unit":Ke.style="unit",Ke.unit=He.unit.replace(/.*-/,""),y1&&(Ke.unit+="-per-"+y1.replace(/.*-/,""));break;case"percent":Ke.style="percent";break;case"permille":tr("permille")}switch(q1){case"unit-width-full-name":Ke.currencyDisplay="name",Ke.unitDisplay="long";break;case"unit-width-hidden":tr(q1);break;case"unit-width-iso-code":Ke.currencyDisplay="code";break;case"unit-width-narrow":Ke.currencyDisplay="narrowSymbol",Ke.unitDisplay="narrow";break;case"unit-width-short":Ke.currencyDisplay="symbol",Ke.unitDisplay="short"}switch(_){case"group-off":Ke.useGrouping=!1;break;case"group-auto":Ke.useGrouping=!0;break;case"group-min2":case"group-on-aligned":case"group-thousands":tr(_),Ke.useGrouping=!0}if(q)switch(q.style){case"precision-fraction":{const{minFraction:cn,maxFraction:hn,minSignificant:so,maxSignificant:p2,source:Ds}=q;"number"==typeof cn&&(Ke.minimumFractionDigits=cn,"number"==typeof so&&tr("precision-fraction",Ds)),"number"==typeof hn&&(Ke.maximumFractionDigits=hn),"number"==typeof so&&(Ke.minimumSignificantDigits=so),"number"==typeof p2&&(Ke.maximumSignificantDigits=p2);break}case"precision-integer":Ke.maximumFractionDigits=0;break;case"precision-unlimited":Ke.maximumFractionDigits=20;break;case"precision-increment":break;case"precision-currency-standard":Ke.trailingZeroDisplay=q.trailingZero;break;case"precision-currency-cash":tr(q.style)}if(B)switch(B.style){case"compact-short":Ke.notation="compact",Ke.compactDisplay="short";break;case"compact-long":Ke.notation="compact",Ke.compactDisplay="long";break;case"notation-simple":Ke.notation="standard";break;case"scientific":case"engineering":{const{expDigits:cn,expSign:hn,source:so,style:p2}=B;Ke.notation=p2,(cn&&cn>1||hn&&"sign-auto"!==hn)&&tr(p2,so);break}}if(H){const{min:cn,max:hn,source:so}=H;cn>0&&(Ke.minimumIntegerDigits=cn),Number(hn)>0&&(3!==hn||"engineering"!==Ke.notation&&"scientific"!==Ke.notation?tr("integer-width",so):Ke.notation="engineering")}switch(se){case"sign-auto":Ke.signDisplay="auto";break;case"sign-always":Ke.signDisplay="always";break;case"sign-except-zero":Ke.signDisplay="exceptZero";break;case"sign-never":Ke.signDisplay="never";break;case"sign-accounting":Ke.currencySign="accounting";break;case"sign-accounting-always":Ke.currencySign="accounting",Ke.signDisplay="always";break;case"sign-accounting-except-zero":Ke.currencySign="accounting",Ke.signDisplay="exceptZero"}return"decimal-always"===k&&tr(k),jt&&tr(jt),Ke}function Y(g,C,k){const _=g[C];switch(_){case"%":return{char:"%",style:"percent",width:1};case"\u2030":return{char:"%",style:"permille",width:1};case"\xa4":{let H=1;for(;"\xa4"===g[++C];)++H;switch(H){case 1:return{char:_,currency:"default",width:H};case 2:return{char:_,currency:"iso-code",width:H};case 3:return{char:_,currency:"full-name",width:H};case 5:return{char:_,currency:"narrow",width:H};default:return k(new Ut("\xa4",`Invalid number (${H}) of \xa4 chars in pattern`)),null}}case"*":{const H=g[C+1];if(H)return{char:_,pad:H,width:2};break}case"+":case"-":return{char:_,width:1};case"'":{let H=g[++C],B=2;if("'"===H)return{char:_,str:H,width:B};for(;;){const q=g[++C];if(++B,void 0===q)return k(new Ut("'",`Unterminated quoted literal in pattern: ${H}`)),{char:_,str:H,width:B};if("'"===q){if("'"!==g[++C])return{char:_,str:H,width:B};++B}H+=q}}}return null}const Ct=g=>g>="0"&&g<="9";function Dt(g,C){const k=g[C];if(Ct(k)){let _=k;for(;;){const H=g[++C];if(!Ct(H))return{char:"0",digits:_,width:_.length};_+=H}}switch(k){case"#":{let _=1;for(;"#"===g[++C];)++_;return{char:k,width:_}}case"@":{let _=1;for(;"@"===g[++C];)++_;let H=_;for(C-=1;"#"===g[++C];)++H;return{char:k,min:_,width:H}}case"E":{const _="+"===g[C+1];_&&++C;let H=0;for(;"0"===g[++C];)++H;if(H)return{char:k,expDigits:H,plus:_,width:(_?2:1)+H};break}case".":case",":return{char:k,width:1}}return null}function oe(g,C,k){let _;var He;(He=_||(_={}))[He.Prefix=0]="Prefix",He[He.Number=1]="Number",He[He.Suffix=2]="Suffix";const H=[],B=[],q=[];let jt=_.Prefix,se="";for(;C2&&void 0!==arguments[2]?arguments[2]:se=>{throw se};const{tokens:_,negative:H}=function ze(g,C){const{pattern:k,pos:_}=oe(g,0,C);if(_1&&(k.notation.expDigits=tr.expDigits),tr.plus&&(k.notation.expSign="sign-always"),H=!0}}_?k.group="group-auto":B+q.length>3&&(k.group="group-off");const y1=+`${q||"0"}.${se}`;if(y1&&(k.precision={style:"precision-increment",increment:y1}),H)if((!k.precision||y1)&&(k.integerWidth=B?{min:1,max:B+q.length}:{min:Math.max(1,q.length)}),k.precision)y1||(k.integerWidth={min:1,max:1});else{const q1=q.length+se.length;-1===jt?q1>0&&(k.precision={style:"precision-fraction",maxSignificant:q1}):(k.precision={style:"precision-fraction",maxSignificant:Math.max(1,q1)+He},q1>1&&(k.precision.minSignificant=q1))}else q.length>1&&(k.integerWidth={min:q.length}),!k.precision&&(se.length||He)&&(k.precision={style:"precision-fraction",minFraction:se.length,maxFraction:se.length+He});return k}(_.number,k),q=ve(_.prefix,B,C,k,!0),jt=ve(_.suffix,B,C,k,!1);if(H){const se=r1(H.prefix,!0),He=r1(H.suffix,!1);B.affix={pos:[q,jt],neg:[se,He]},B.sign="sign-never"}else(q||jt)&&(B.affix={pos:[q,jt]});return B}function v1(g){const[k]=g.split("-",1);return-1!==["acceleration","angle","area","concentr","consumption","digital","duration","electric","energy","force","frequency","graphics","length","light","mass","power","pressure","speed","temperature","torque","volume"].indexOf(k)}const w1={"compact-short":0,"compact-long":0,"notation-simple":0,scientific:2,engineering:2,percent:0,permille:0,"base-unit":0,currency:1,"measure-unit":1,"per-measure-unit":1,"unit-width-narrow":0,"unit-width-short":0,"unit-width-full-name":0,"unit-width-iso-code":0,"unit-width-hidden":0,"precision-integer":0,"precision-unlimited":0,"precision-currency-standard":1,"precision-currency-cash":0,"precision-increment":1,"rounding-mode-ceiling":0,"rounding-mode-floor":0,"rounding-mode-down":0,"rounding-mode-up":0,"rounding-mode-half-even":0,"rounding-mode-half-down":0,"rounding-mode-half-up":0,"rounding-mode-unnecessary":0,"integer-width":1,scale:1,"group-off":0,"group-min2":0,"group-auto":0,"group-on-aligned":0,"group-thousands":0,latin:0,"numbering-system":1,"sign-auto":0,"sign-always":0,"sign-never":0,"sign-accounting":0,"sign-accounting-always":0,"sign-except-zero":0,"sign-accounting-except-zero":0,"decimal-auto":0,"decimal-always":0},j1={currency:1,"integer-width":1,"measure-unit":1,"numbering-system":1,"per-measure-unit":1,"precision-increment":1,scale:1};function b1(g,C,k){if(function X1(g){return g in w1}(g)){const _=w1[g];if(C.length>_){if(0===_)for(const H of C)k(new Q(g,H));else k(new te(g,C,_));return!1}if(function d1(g){return g in j1}(g)&&C.length0?(this.assertEmpty("precision"),H.precision={style:C,increment:B}):this.badOption(C,_);break}case"rounding-mode-ceiling":case"rounding-mode-floor":case"rounding-mode-down":case"rounding-mode-up":case"rounding-mode-half-even":case"rounding-mode-half-odd":case"rounding-mode-half-ceiling":case"rounding-mode-half-floor":case"rounding-mode-half-down":case"rounding-mode-half-up":case"rounding-mode-unnecessary":this.assertEmpty("roundingMode"),H.roundingMode=C;break;case"integer-width":if(/^\+0*$/.test(_))this.assertEmpty("integerWidth"),H.integerWidth={source:_,min:_.length-1};else{const B=_.match(/^#*(0*)$/);B?(this.assertEmpty("integerWidth"),H.integerWidth={source:_,min:B[1].length,max:B[0].length}):this.badOption(C,_)}break;case"scale":{const B=Number(_);B>0?(this.assertEmpty("scale"),H.scale=B):this.badOption(C,_);break}case"group-off":case"group-min2":case"group-auto":case"group-on-aligned":case"group-thousands":this.assertEmpty("group"),H.group=C;break;case"latin":this.assertEmpty("numberingSystem"),H.numberingSystem="latn";break;case"numbering-system":!function Ge(g){return-1!==["arab","arabext","bali","beng","deva","fullwide","gujr","guru","hanidec","khmr","knda","laoo","latn","limb","mlym","mong","mymr","orya","tamldec","telu","thai","tibt"].indexOf(g)}(_)?this.badOption(C,_):(this.assertEmpty("numberingSystem"),H.numberingSystem=_);break;case"sign-auto":case"sign-always":case"sign-never":case"sign-accounting":case"sign-accounting-always":case"sign-except-zero":case"sign-accounting-except-zero":this.assertEmpty("sign"),H.sign=C;break;case"decimal-auto":case"decimal-always":this.assertEmpty("decimal"),H.decimal=C;break;default:{const B=function Er(g,C,k){const _=nr(g,"fraction");if(_){C.length>1&&k(new te(g,C,1));const B={style:"precision-fraction",source:g,minFraction:_.min};null!=_.max&&(B.maxFraction=_.max);const q=C[0],jt=nr(q,"significant");return jt?(B.source=`${g}/${q}`,B.minSignificant=jt.min,null!=jt.max&&(B.maxSignificant=jt.max)):q&&k(new Q(g,q)),B}const H=nr(g,"significant");if(H){for(const q of C)k(new Q(g,q));const B={style:"precision-fraction",source:g,minSignificant:H.min};return null!=H.max&&(B.maxSignificant=H.max),B}return null}(C,k,this.onError);B?(this.assertEmpty("precision"),H.precision=B):this.onError(new Jt(C))}}}}function Yn(g){let C=arguments.length>1&&void 0!==arguments[1]?arguments[1]:H=>{throw H};const k=[];for(const H of g.split(" "))if(H){const B=H.split("/"),q=B.shift()||"";k.push({stem:q,options:B})}const _=new Gn(C);for(const{stem:H,options:B}of k)_.parseToken(H,B);return _.skeleton}function Xn(g,C,k,_){"string"==typeof C&&(C=0===C.indexOf("::")?Yn(C.slice(2),_):Qe(C,k,_));const H=_t(g,C),B=rt(C,_),q=function J(g){const C=F(g),{precision:k}=g;return k&&"precision-increment"===k.style?_=>function ke(g,C){const k=+g+C/2;return k-k%+C}(_,k.increment)*C:_=>_*C}(C),jt=new Intl.NumberFormat(H,B);if(C.affix){const[se,He]=C.affix.pos,[y1,q1]=C.affix.neg||["",""];return tr=>{const Ke=jt.format(q(tr));return tr<0?`${y1}${Ke}${q1}`:`${se}${Ke}${He}`}}return se=>jt.format(q(se))}function Go(g,C,k,_){"string"==typeof C&&(C=0===C.indexOf("::")?Yn(C.slice(2),_):Qe(C,k,_));const H=_t(g,C),B=rt(C,_),q=function It(g){const C=F(g),{precision:k}=g;if(k&&"precision-increment"===k.style){let H=`x - (x % +${k.increment})`;return 1!==C&&(H=`(${H}) * ${C}`),`function(n) { var x = ${"+n + "+k.increment/2}; return ${H}; }`}return 1!==C?`function(n) { return n * ${C}; }`:null}(C),jt=["(function() {",`var opt = ${JSON.stringify(B)};`,`var nf = new Intl.NumberFormat(${JSON.stringify(H)}, opt);`];let se="nf.format(value)";if(q&&(jt.push(`var mod = ${q};`),se="nf.format(mod(value))"),C.affix){const[He,y1]=C.affix.pos.map(q1=>JSON.stringify(q1));if(C.affix.neg){const[q1,tr]=C.affix.neg.map(Ke=>JSON.stringify(Ke));se=`value < 0 ? ${q1} + ${se} + ${tr} : ${He} + ${se} + ${y1}`}else se=`${He} + ${se} + ${y1}`}return jt.push(`return function(value) { return ${se}; }`),jt.join("\n ")+"\n})()"}var g,C,k,sr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},vr={},_n={},Ln={};C=sr,k=function(){var C=Object.prototype.hasOwnProperty,k=Object.prototype.toString,_="boolean"==typeof(new RegExp).sticky;function H(ue){return ue&&"[object RegExp]"===k.call(ue)}function B(ue){return ue&&"object"==typeof ue&&!H(ue)&&!Array.isArray(ue)}function jt(ue){return new RegExp("|"+ue).exec("").length-1}function se(ue){return"("+ue+")"}function He(ue){return ue.length?"(?:"+ue.map(function(f1){return"(?:"+f1+")"}).join("|")+")":"(?!)"}function y1(ue){if("string"==typeof ue)return"(?:"+function q(ue){return ue.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}(ue)+")";if(H(ue)){if(ue.ignoreCase)throw new Error("RegExp /i flag not allowed");if(ue.global)throw new Error("RegExp /g flag is implied");if(ue.sticky)throw new Error("RegExp /y flag is implied");if(ue.multiline)throw new Error("RegExp /m flag is implied");return ue.source}throw new Error("Not a pattern: "+ue)}function q1(ue,Ue){return ue.length>Ue?ue:Array(Ue-ue.length+1).join(" ")+ue}function hn(ue,Ue){if(B(Ue)||(Ue={match:Ue}),Ue.include)throw new Error("Matching rules cannot also include states");var f1={defaultType:ue,lineBreaks:!!Ue.error||!!Ue.fallback,pop:!1,next:null,push:null,error:!1,fallback:!1,value:null,type:null,shouldThrow:!1};for(var H1 in Ue)C.call(Ue,H1)&&(f1[H1]=Ue[H1]);if("string"==typeof f1.type&&ue!==f1.type)throw new Error("Type transform cannot be a string (type '"+f1.type+"' for token '"+ue+"')");var ur=f1.match;return f1.match=Array.isArray(ur)?ur:ur?[ur]:[],f1.match.sort(function(R1,kr){return H(R1)&&H(kr)?0:H(kr)?-1:H(R1)?1:kr.length-R1.length}),f1}function so(ue){return Array.isArray(ue)?function cn(ue){for(var Ue=[],f1=0;f10)throw new Error("RegExp has capture groups: "+W2+"\nUse (?: \u2026 ) instead");if(!Q1.lineBreaks&&W2.test("\n"))throw new Error("Rule should declare lineBreaks: "+W2);dn.push(se(Rl))}}var Fl=f1&&f1.fallback,il=_&&!Fl?"ym":"gm",f4=_||Fl?"":"|";return!0===R1&&(il+="u"),{regexp:new RegExp(He(dn)+f4,il),groups:kr,fast:H1,error:f1||p2}}function Bs(ue,Ue,f1){var H1=ue&&(ue.push||ue.next);if(H1&&!f1[H1])throw new Error("Missing state '"+H1+"' (in token '"+ue.defaultType+"' of state '"+Ue+"')");if(ue&&ue.pop&&1!=+ue.pop)throw new Error("pop must be 1 (in token '"+ue.defaultType+"' of state '"+Ue+"')")}var un=function(ue,Ue){this.startState=Ue,this.states=ue,this.buffer="",this.stack=[],this.reset()};un.prototype.reset=function(ue,Ue){return this.buffer=ue||"",this.index=0,this.line=Ue?Ue.line:1,this.col=Ue?Ue.col:1,this.queuedToken=Ue?Ue.queuedToken:null,this.queuedText=Ue?Ue.queuedText:"",this.queuedThrow=Ue?Ue.queuedThrow:null,this.setState(Ue?Ue.state:this.startState),this.stack=Ue&&Ue.stack?Ue.stack.slice():[],this},un.prototype.save=function(){return{line:this.line,col:this.col,state:this.state,stack:this.stack.slice(),queuedToken:this.queuedToken,queuedText:this.queuedText,queuedThrow:this.queuedThrow}},un.prototype.setState=function(ue){if(ue&&this.state!==ue){this.state=ue;var Ue=this.states[ue];this.groups=Ue.groups,this.error=Ue.error,this.re=Ue.regexp,this.fast=Ue.fast}},un.prototype.popState=function(){this.setState(this.stack.pop())},un.prototype.pushState=function(ue){this.stack.push(this.state),this.setState(ue)};var b3=_?function(ue,Ue){return ue.exec(Ue)}:function(ue,Ue){var f1=ue.exec(Ue);return 0===f1[0].length?null:f1};function yi(){return this.value}if(un.prototype._getGroup=function(ue){for(var Ue=this.groups.length,f1=0;f1"'"},quoted:{lineBreaks:!0,match:/'[{}#](?:[^]*?[^'])?'(?!')/u,value:_=>_.slice(1,-1).replace(/''/g,"'")},argument:{lineBreaks:!0,match:/\{\s*[^\p{Pat_Syn}\p{Pat_WS}]+\s*/u,push:"arg",value:_=>_.substring(1).trim()},octothorpe:"#",end:{match:"}",pop:1},content:{lineBreaks:!0,match:/[^][^{}#']*/u}},arg:{select:{lineBreaks:!0,match:/,\s*(?:plural|select|selectordinal)\s*,\s*/u,next:"select",value:_=>_.split(",")[1].trim()},"func-args":{lineBreaks:!0,match:/,\s*[^\p{Pat_Syn}\p{Pat_WS}]+\s*,/u,next:"body",value:_=>_.split(",")[1].trim()},"func-simple":{lineBreaks:!0,match:/,\s*[^\p{Pat_Syn}\p{Pat_WS}]+\s*/u,value:_=>_.substring(1).trim()},end:{match:"}",pop:1}},select:{offset:{lineBreaks:!0,match:/\s*offset\s*:\s*\d+\s*/u,value:_=>_.split(":")[1].trim()},case:{lineBreaks:!0,match:/\s*(?:=\d+|[^\p{Pat_Syn}\p{Pat_WS}]+)\s*\{/u,push:"body",value:_=>_.substring(0,_.indexOf("{")).trim()},end:{match:/\s*\}/u,pop:1}}},g.lexer=k.default.states(g.states)}(_n),Object.defineProperty(vr,"__esModule",{value:!0});var Eo=vr.parse=vr.ParseError=void 0;const P=_n,M=g=>({offset:g.offset,line:g.line,col:g.col,text:g.text,lineBreaks:g.lineBreaks}),z=g=>"plural"===g||"select"===g||"selectordinal"===g;const Mt=["number","date","time","spellout","ordinal","duration"],ee=["zero","one","two","few","many","other"];class $ extends Error{constructor(C,k){super(P.lexer.formatError(C,k))}}vr.ParseError=$;class Et{constructor(C,k){var _,H,B,q;this.lexer=P.lexer.reset(C),this.cardinalKeys=null!==(_=k?.cardinal)&&void 0!==_?_:ee,this.ordinalKeys=null!==(H=k?.ordinal)&&void 0!==H?H:ee,this.strict=null!==(B=k?.strict)&&void 0!==B&&B,this.strictPluralKeys=null===(q=k?.strictPluralKeys)||void 0===q||q}parse(){return this.parseBody(!1,!0)}checkSelectKey(C,k,_){if("="===_[0]){if("select"===k)throw new $(C,`The case ${_} is not valid with select`)}else if("select"!==k){const H="plural"===k?this.cardinalKeys:this.ordinalKeys;if(this.strictPluralKeys&&H.length>0&&!H.includes(_))throw new $(C,`The ${k} case ${_} is not valid in this locale`)}}parseSelect(C,k,_,H){let{value:B}=C;const q={type:H,arg:B,cases:[],ctx:_};"plural"===H||"selectordinal"===H?k=!0:this.strict&&(k=!1);for(const jt of this.lexer)switch(jt.type){case"offset":if("select"===H)throw new $(jt,"Unexpected plural offset for select");if(q.cases.length>0)throw new $(jt,"Plural offset must be set before cases");q.pluralOffset=Number(jt.value),_.text+=jt.text,_.lineBreaks+=jt.lineBreaks;break;case"case":this.checkSelectKey(jt,H,jt.value),q.cases.push({key:jt.value,tokens:this.parseBody(k),ctx:M(jt)});break;case"end":return q;default:throw new $(jt,`Unexpected lexer token: ${jt.type}`)}throw new $(null,"Unexpected message end")}parseArgToken(C,k){const _=M(C),H=this.lexer.next();if(!H)throw new $(null,"Unexpected message end");if(_.text+=H.text,_.lineBreaks+=H.lineBreaks,this.strict&&("func-simple"===H.type||"func-args"===H.type)&&!Mt.includes(H.value))throw new $(C,`Invalid strict mode function arg type: ${H.value}`);switch(H.type){case"end":return{type:"argument",arg:C.value,ctx:_};case"func-simple":{const B=this.lexer.next();if(!B)throw new $(null,"Unexpected message end");if("end"!==B.type)throw new $(B,`Unexpected lexer token: ${B.type}`);if(_.text+=B.text,z(H.value.toLowerCase()))throw new $(H,`Invalid type identifier: ${H.value}`);return{type:"function",arg:C.value,key:H.value,ctx:_}}case"func-args":{if(z(H.value.toLowerCase()))throw new $(H,`Invalid type identifier: ${H.value}`);let B=this.parseBody(!this.strict&&k);return this.strict&&B.length>0&&(B=function W(g,C){let k="",_="";for(const B of C){const q=B.ctx.text;switch(_+=q,B.type){case"content":k+=B.value;break;case"argument":case"function":case"octothorpe":k+=q;break;default:throw new $(g,`Unsupported part in strict mode function arg style: ${q}`)}}return[{type:"content",value:k.trim(),ctx:Object.assign({},C[0].ctx,{text:_})}]}(C,B)),{type:"function",arg:C.value,key:H.value,param:B,ctx:_}}case"select":if(z(H.value))return this.parseSelect(C,k,_,H.value);throw new $(H,`Unexpected select type ${H.value}`);default:throw new $(H,`Unexpected lexer token: ${H.type}`)}}parseBody(C,k){const _=[];let H=null;for(const B of this.lexer)if("argument"===B.type)H&&(H=null),_.push(this.parseArgToken(B,C));else if("octothorpe"===B.type&&C)H&&(H=null),_.push({type:"octothorpe",ctx:M(B)});else{if("end"===B.type&&!k)return _;{let q=B.value;if(!C&&"quoted"===B.type&&"#"===q[0]){if(q.includes("{"))throw new $(B,`Unsupported escape pattern: ${q}`);q=B.text}H?(H.value+=q,H.ctx.text+=B.text,H.ctx.lineBreaks+=B.lineBreaks):(H={type:"content",value:q,ctx:M(B)},_.push(H))}}if(k)return _;throw new $(null,"Unexpected message end")}}function a1(g){return a1[g]||(a1[g]=new Intl.NumberFormat(g))}Eo=vr.parse=function l1(g){return new Et(g,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).parse()};var Yo=Object.freeze({__proto__:null,_nf:a1,number:function M1(g,C,k){return a1(g).format(C-k)},plural:function Ho(g,C,k,_,H){if({}.hasOwnProperty.call(_,g))return _[g];C&&(g-=C);var B=k(g,H);return B in _?_[B]:_.other},reqArgs:function Fn(g,C){for(var k=0;k=60&&(g=Math.round((g-Number(_[0]))/60),_.unshift(g))),C+_.shift()+":"+_.map(function(B){return Number(B)<10?"0"+String(B):String(B)}).join(":")},numberCurrency:function(g,C,k){return k2(C,{style:"currency",currency:k,minimumFractionDigits:2,maximumFractionDigits:2}).format(g)},numberFmt:function Hs(g,C,k,_){var H=k&&k.split(":")||[],B=H[0],q=H[1];return k2(C,{integer:{maximumFractionDigits:0},percent:{style:"percent"},currency:{style:"currency",currency:q&&q.trim()||_,minimumFractionDigits:2,maximumFractionDigits:2}}[B]||{}).format(g)},numberInteger:function(g,C){return k2(C,{maximumFractionDigits:0}).format(g)},numberPercent:function(g,C){return k2(C,{style:"percent"}).format(g)},time:function s2(g,C,k){var _={second:"numeric",minute:"numeric",hour:"numeric"};switch(k){case"full":case"long":_.timeZoneName="short";break;case"short":delete _.second}return new Date(g).toLocaleTimeString(C,_)}}),lt={ES3:{break:!0,continue:!0,delete:!0,else:!0,for:!0,function:!0,if:!0,in:!0,new:!0,return:!0,this:!0,typeof:!0,var:!0,void:!0,while:!0,with:!0,case:!0,catch:!0,default:!0,do:!0,finally:!0,instanceof:!0,switch:!0,throw:!0,try:!0},ESnext:{await:!0,debugger:!0,class:!0,enum:!0,extends:!0,super:!0,const:!0,export:!0,import:!0,null:!0,true:!0,false:!0,implements:!0,let:!0,private:!0,public:!0,yield:!0,interface:!0,package:!0,protected:!0,static:!0}};function be(g,C){C&&(g+=" "+function ne(g){let C=0;for(let k=0;k0,ol=this.concatenate(xi,!0);if(He&&Bs){this.setRuntimeFn("reqArgs");var Mi=JSON.stringify(this.arguments);return"(d) => { reqArgs(".concat(Mi,", d); return ").concat(ol,"; }")}return"(".concat(Bs?"d":"",") => ").concat(ol)},g.prototype.cases=function(C,k){var _=this,H=!0,B=C.cases.map(function(y1){var q1=y1.key;"other"===q1&&(H=!1);var Ke=y1.tokens.map(function(cn){return _.token(cn,k)});return"".concat(k1(null,q1.replace(/^=/,"")),": ").concat(_.concatenate(Ke,!1))});if(H){var q=C.type,jt=this.plural,He=jt.ordinals;if("select"===q||"plural"===q&&jt.cardinals.includes("other")||"selectordinal"===q&&He.includes("other"))throw new Error("No 'other' form found in ".concat(JSON.stringify(C)))}return"{ ".concat(B.join(", ")," }")},g.prototype.concatenate=function(C,k){return"values"===this.options.returnType&&(k||C.length>1)?"["+C.join(", ")+"]":C.join(" + ")||'""'},g.prototype.token=function(C,k){if("content"===C.type)return JSON.stringify(C.value);var q,jt,_=this.plural,H=_.id,B=_.lc;switch("arg"in C?(this.arguments.push(C.arg),q=[k1("d",C.arg)]):q=[],C.type){case"argument":return this.options.biDiSupport?function cr(g,C){var k=$r.test(C),_=JSON.stringify(k?"\u200f":"\u200e");return"".concat(_," + ").concat(g," + ").concat(_)}(String(q[0]),B):String(q[0]);case"select":jt="select",k&&this.options.strict&&(k=null),q.push(this.cases(C,k)),this.setRuntimeFn("select");break;case"selectordinal":jt="plural",q.push(C.pluralOffset||0,H,this.cases(C,C),1),this.setLocale(H,!0),this.setRuntimeFn("plural");break;case"plural":jt="plural",q.push(C.pluralOffset||0,H,this.cases(C,C)),this.setLocale(H,!1),this.setRuntimeFn("plural");break;case"function":if(!this.options.customFormatters[C.key]){if("date"===C.key){jt=this.setDateFormatter(C,q,k);break}if("number"===C.key){jt=this.setNumberFormatter(C,q,k);break}}if(q.push(JSON.stringify(this.plural.locale)),C.param){k&&this.options.strict&&(k=null);var se=this.getFormatterArg(C,k);se&&q.push(se)}this.setFormatter(jt=C.key);break;case"octothorpe":if(!k)return'"#"';q=[JSON.stringify(this.plural.locale),k1("d",k.arg),k.pluralOffset||0],this.options.strict?(jt="strictNumber",q.push(JSON.stringify(k.arg)),this.setRuntimeFn("strictNumber")):(jt="number",this.setRuntimeFn("number"))}if(!jt)throw new Error("Parser error for token "+JSON.stringify(C));return"".concat(jt,"(").concat(q.join(", "),")")},g.prototype.runtimeIncludes=function(C,k){if(be(C)!==C)throw new SyntaxError("Reserved word used as ".concat(k," identifier: ").concat(C));var _=this.runtime[C];if(!_||_.type===k)return _;throw new TypeError("Cannot override ".concat(_.type," runtime function as ").concat(k,": ").concat(C))},g.prototype.setLocale=function(C,k){var se,He,y1,_=this.runtimeIncludes(C,"locale"),H=this.plural,B=H.getCardinal,q=H.getPlural,jt=H.isDefault;if(!k&&jt&&B){if(_)return;se=function(q1){return B(q1)},He="@messageformat/runtime/lib/cardinals",y1=function(){return String(B)}}else{if(_&&(!jt||_.module===zo))return;se=function(q1,tr){return q(q1,tr)},He=jt?zo:q.module||null,y1=function(){return String(q)}}this.runtime[C]=Object.assign(se,{id:C,module:He,toString:y1,type:"locale"})},g.prototype.setRuntimeFn=function(C){this.runtimeIncludes(C,"runtime")||(this.runtime[C]=Object.assign(Yo[C],{id:C,module:"@messageformat/runtime",type:"runtime"}))},g.prototype.getFormatterArg=function(C,k){var _,H,B,q,jt=this,se=C.key,He=C.param,y1=this.options.customFormatters[se]||uo(se)&&_2[se];if(!y1||!He)return null;var q1="arg"in y1&&y1.arg||"string";if("options"===q1){var tr="";try{for(var Ke=ht(He),cn=Ke.next();!cn.done;cn=Ke.next()){var hn=cn.value;if("content"!==hn.type)throw new SyntaxError("Expected literal options for ".concat(se," formatter"));tr+=hn.value}}catch(li){_={error:li}}finally{try{cn&&!cn.done&&(H=Ke.return)&&H.call(Ke)}finally{if(_)throw _.error}}var so={};try{for(var p2=ht(tr.split(",")),Ds=p2.next();!Ds.done;Ds=p2.next()){var xi=Ds.value,Bs=xi.indexOf(":");if(-1===Bs)so[xi.trim()]=null;else{var ol=xi.substring(0,Bs).trim(),Mi=xi.substring(Bs+1).trim();if("true"===Mi)so[ol]=!0;else if("false"===Mi)so[ol]=!1;else if("null"===Mi)so[ol]=null;else{var un=Number(Mi);so[ol]=Number.isFinite(un)?un:Mi}}}}catch(li){B={error:li}}finally{try{Ds&&!Ds.done&&(q=p2.return)&&q.call(p2)}finally{if(B)throw B.error}}return JSON.stringify(so)}var b3=He.map(function(li){return jt.token(li,k)});if("raw"===q1)return"[".concat(b3.join(", "),"]");var yi=b3.join(" + ");return yi?"(".concat(yi,").trim()"):'""'},g.prototype.setFormatter=function(C){if(!this.runtimeIncludes(C,"formatter")){var k=this.options.customFormatters[C];if(k)"function"==typeof k&&(k={formatter:k}),this.runtime[C]=Object.assign(k.formatter,{type:"formatter"},"module"in k&&k.module&&k.id?{id:be(k.id),module:k.module}:{id:null,module:null});else{if(!uo(C))throw new Error("Formatting function not found: ".concat(C));this.runtime[C]=Object.assign(_2[C],{type:"formatter"},{id:C,module:"@messageformat/runtime/lib/formatters"})}}},g.prototype.setDateFormatter=function(C,k,_){var H=this,B=C.param,q=this.plural.locale,jt=B&&1===B.length&&B[0];if(jt&&"content"===jt.type&&/^\s*::/.test(jt.value)){var se=jt.value.trim().substr(2),He=be("date_".concat(q,"_").concat(se),!0);if(!this.runtimeIncludes(He,"formatter")){var y1=function at(g,C,k){"string"==typeof C&&(C=A(C));const _=Ht(C,k),H=new Intl.DateTimeFormat(g,_);return B=>H.format(B)}(q,se);this.runtime[He]=Object.assign(y1,{id:He,module:null,toString:function(){return function ut(g,C,k){"string"==typeof C&&(C=A(C));const _=Ht(C,k);return["(function() {",`var opt = ${JSON.stringify(_)};`,`var dtf = new Intl.DateTimeFormat(${JSON.stringify(g)}, opt);`,"return function(value) { return dtf.format(value); }"].join("\n ")+"\n})()"}(q,se)},type:"formatter"})}return He}if(k.push(JSON.stringify(q)),B&&B.length>0){_&&this.options.strict&&(_=null);var q1=B.map(function(tr){return H.token(tr,_)});k.push("("+(q1.join(" + ")||'""')+").trim()")}return this.setFormatter("date"),"date"},g.prototype.setNumberFormatter=function(C,k,_){var H=this,B=C.param,q=this.plural.locale;if(!B||0===B.length)return k.unshift(JSON.stringify(q)),k.push("0"),this.setRuntimeFn("number"),"number";if(k.push(JSON.stringify(q)),1===B.length&&"content"===B[0].type){var jt=B[0].value.trim();switch(jt){case"currency":return k.push(JSON.stringify(this.options.currency)),this.setFormatter("numberCurrency"),"numberCurrency";case"integer":return this.setFormatter("numberInteger"),"numberInteger";case"percent":return this.setFormatter("numberPercent"),"numberPercent"}var se=jt.match(/^currency:([A-Z]+)$/);if(se)return k.push(JSON.stringify(se[1])),this.setFormatter("numberCurrency"),"numberCurrency";var He=be("number_".concat(q,"_").concat(jt),!0);if(!this.runtimeIncludes(He,"formatter")){var y1=this.options.currency,q1=Xn(q,jt,y1);this.runtime[He]=Object.assign(q1,{id:null,module:null,toString:function(){return Go(q,jt,y1)},type:"formatter"})}return He}_&&this.options.strict&&(_=null);var tr=B.map(function(Ke){return H.token(Ke,_)});return k.push("("+(tr.join(" + ")||'""')+").trim()"),k.push(JSON.stringify(this.options.currency)),this.setFormatter("numberFmt"),"numberFmt"},g}();function uo(g){return g in _2}const ye=g=>1==g?"one":"other",Nn=g=>0==g||1==g?"one":"other",gr=g=>g>=0&&g<=1?"one":"other",Vn=g=>{const C=String(g).split(".");return 1!=g||C[1]?"other":"one"},I1=g=>"other",Sn=g=>1==g?"one":2==g?"two":"other";var dd=Object.freeze({__proto__:null,af:ye,ak:Nn,am:gr,an:ye,ar:g=>{const C=String(g).split("."),_=Number(C[0])==g&&C[0].slice(-2);return 0==g?"zero":1==g?"one":2==g?"two":_>=3&&_<=10?"few":_>=11&&_<=99?"many":"other"},ars:g=>{const C=String(g).split("."),_=Number(C[0])==g&&C[0].slice(-2);return 0==g?"zero":1==g?"one":2==g?"two":_>=3&&_<=10?"few":_>=11&&_<=99?"many":"other"},as:gr,asa:ye,ast:Vn,az:ye,bal:ye,be:g=>{const C=String(g).split("."),k=Number(C[0])==g,_=k&&C[0].slice(-1),H=k&&C[0].slice(-2);return 1==_&&11!=H?"one":_>=2&&_<=4&&(H<12||H>14)?"few":k&&0==_||_>=5&&_<=9||H>=11&&H<=14?"many":"other"},bem:ye,bez:ye,bg:ye,bho:Nn,bm:I1,bn:gr,bo:I1,br:g=>{const C=String(g).split("."),k=Number(C[0])==g,_=k&&C[0].slice(-1),H=k&&C[0].slice(-2),B=k&&C[0].slice(-6);return 1==_&&11!=H&&71!=H&&91!=H?"one":2==_&&12!=H&&72!=H&&92!=H?"two":(3==_||4==_||9==_)&&(H<10||H>19)&&(H<70||H>79)&&(H<90||H>99)?"few":0!=g&&k&&0==B?"many":"other"},brx:ye,bs:g=>{const C=String(g).split("."),k=C[0],_=C[1]||"",H=!C[1],B=k.slice(-1),q=k.slice(-2),jt=_.slice(-1),se=_.slice(-2);return H&&1==B&&11!=q||1==jt&&11!=se?"one":H&&B>=2&&B<=4&&(q<12||q>14)||jt>=2&&jt<=4&&(se<12||se>14)?"few":"other"},ca:g=>{const C=String(g).split("."),k=C[0],_=!C[1],H=k.slice(-6);return 1==g&&_?"one":0!=k&&0==H&&_?"many":"other"},ce:ye,ceb:g=>{const C=String(g).split("."),k=C[0],_=C[1]||"",H=!C[1],B=k.slice(-1),q=_.slice(-1);return H&&(1==k||2==k||3==k)||H&&4!=B&&6!=B&&9!=B||!H&&4!=q&&6!=q&&9!=q?"one":"other"},cgg:ye,chr:ye,ckb:ye,cs:g=>{const C=String(g).split("."),k=C[0],_=!C[1];return 1==g&&_?"one":k>=2&&k<=4&&_?"few":_?"other":"many"},cy:g=>0==g?"zero":1==g?"one":2==g?"two":3==g?"few":6==g?"many":"other",da:g=>{const C=String(g).split("."),k=C[0],_=Number(C[0])==g;return 1!=g&&(_||0!=k&&1!=k)?"other":"one"},de:Vn,doi:gr,dsb:g=>{const C=String(g).split("."),_=C[1]||"",H=!C[1],B=C[0].slice(-2),q=_.slice(-2);return H&&1==B||1==q?"one":H&&2==B||2==q?"two":H&&(3==B||4==B)||3==q||4==q?"few":"other"},dv:ye,dz:I1,ee:ye,el:ye,en:Vn,eo:ye,es:g=>{const C=String(g).split("."),k=C[0],_=!C[1],H=k.slice(-6);return 1==g?"one":0!=k&&0==H&&_?"many":"other"},et:Vn,eu:ye,fa:gr,ff:g=>g>=0&&g<2?"one":"other",fi:Vn,fil:g=>{const C=String(g).split("."),k=C[0],_=C[1]||"",H=!C[1],B=k.slice(-1),q=_.slice(-1);return H&&(1==k||2==k||3==k)||H&&4!=B&&6!=B&&9!=B||!H&&4!=q&&6!=q&&9!=q?"one":"other"},fo:ye,fr:g=>{const C=String(g).split("."),k=C[0],_=!C[1],H=k.slice(-6);return g>=0&&g<2?"one":0!=k&&0==H&&_?"many":"other"},fur:ye,fy:Vn,ga:g=>{const C=String(g).split("."),k=Number(C[0])==g;return 1==g?"one":2==g?"two":k&&g>=3&&g<=6?"few":k&&g>=7&&g<=10?"many":"other"},gd:g=>{const C=String(g).split("."),k=Number(C[0])==g;return 1==g||11==g?"one":2==g||12==g?"two":k&&g>=3&&g<=10||k&&g>=13&&g<=19?"few":"other"},gl:Vn,gsw:ye,gu:gr,guw:Nn,gv:g=>{const C=String(g).split("."),k=C[0],_=!C[1],H=k.slice(-1),B=k.slice(-2);return _&&1==H?"one":_&&2==H?"two":!_||0!=B&&20!=B&&40!=B&&60!=B&&80!=B?_?"other":"many":"few"},ha:ye,haw:ye,he:g=>{const C=String(g).split("."),k=C[0],_=!C[1];return 1==k&&_||0==k&&!_?"one":2==k&&_?"two":"other"},hi:gr,hnj:I1,hr:g=>{const C=String(g).split("."),k=C[0],_=C[1]||"",H=!C[1],B=k.slice(-1),q=k.slice(-2),jt=_.slice(-1),se=_.slice(-2);return H&&1==B&&11!=q||1==jt&&11!=se?"one":H&&B>=2&&B<=4&&(q<12||q>14)||jt>=2&&jt<=4&&(se<12||se>14)?"few":"other"},hsb:g=>{const C=String(g).split("."),_=C[1]||"",H=!C[1],B=C[0].slice(-2),q=_.slice(-2);return H&&1==B||1==q?"one":H&&2==B||2==q?"two":H&&(3==B||4==B)||3==q||4==q?"few":"other"},hu:ye,hy:g=>g>=0&&g<2?"one":"other",ia:Vn,id:I1,ig:I1,ii:I1,io:Vn,is:g=>{const C=String(g).split("."),k=C[0],_=(C[1]||"").replace(/0+$/,""),H=Number(C[0])==g,B=k.slice(-1),q=k.slice(-2);return H&&1==B&&11!=q||_%10==1&&_%100!=11?"one":"other"},it:g=>{const C=String(g).split("."),k=C[0],_=!C[1],H=k.slice(-6);return 1==g&&_?"one":0!=k&&0==H&&_?"many":"other"},iu:Sn,ja:I1,jbo:I1,jgo:ye,jmc:ye,jv:I1,jw:I1,ka:ye,kab:g=>g>=0&&g<2?"one":"other",kaj:ye,kcg:ye,kde:I1,kea:I1,kk:ye,kkj:ye,kl:ye,km:I1,kn:gr,ko:I1,ks:ye,ksb:ye,ksh:g=>0==g?"zero":1==g?"one":"other",ku:ye,kw:g=>{const C=String(g).split("."),k=Number(C[0])==g,_=k&&C[0].slice(-2),H=k&&C[0].slice(-3),B=k&&C[0].slice(-5),q=k&&C[0].slice(-6);return 0==g?"zero":1==g?"one":2==_||22==_||42==_||62==_||82==_||k&&0==H&&(B>=1e3&&B<=2e4||4e4==B||6e4==B||8e4==B)||0!=g&&1e5==q?"two":3==_||23==_||43==_||63==_||83==_?"few":1==g||1!=_&&21!=_&&41!=_&&61!=_&&81!=_?"other":"many"},ky:ye,lag:g=>{const k=String(g).split(".")[0];return 0==g?"zero":0!=k&&1!=k||0==g?"other":"one"},lb:ye,lg:ye,lij:Vn,lkt:I1,ln:Nn,lo:I1,lt:g=>{const C=String(g).split("."),k=C[1]||"",_=Number(C[0])==g,H=_&&C[0].slice(-1),B=_&&C[0].slice(-2);return 1==H&&(B<11||B>19)?"one":H>=2&&H<=9&&(B<11||B>19)?"few":0!=k?"many":"other"},lv:g=>{const C=String(g).split("."),k=C[1]||"",_=k.length,H=Number(C[0])==g,B=H&&C[0].slice(-1),q=H&&C[0].slice(-2),jt=k.slice(-2),se=k.slice(-1);return H&&0==B||q>=11&&q<=19||2==_&&jt>=11&&jt<=19?"zero":1==B&&11!=q||2==_&&1==se&&11!=jt||2!=_&&1==se?"one":"other"},mas:ye,mg:Nn,mgo:ye,mk:g=>{const C=String(g).split("."),k=C[0],_=C[1]||"",H=!C[1],B=k.slice(-1),q=k.slice(-2),jt=_.slice(-1),se=_.slice(-2);return H&&1==B&&11!=q||1==jt&&11!=se?"one":"other"},ml:ye,mn:ye,mo:g=>{const C=String(g).split("."),k=!C[1],H=Number(C[0])==g&&C[0].slice(-2);return 1==g&&k?"one":!k||0==g||1!=g&&H>=1&&H<=19?"few":"other"},mr:ye,ms:I1,mt:g=>{const C=String(g).split("."),_=Number(C[0])==g&&C[0].slice(-2);return 1==g?"one":2==g?"two":0==g||_>=3&&_<=10?"few":_>=11&&_<=19?"many":"other"},my:I1,nah:ye,naq:Sn,nb:ye,nd:ye,ne:ye,nl:Vn,nn:ye,nnh:ye,no:ye,nqo:I1,nr:ye,nso:Nn,ny:ye,nyn:ye,om:ye,or:ye,os:ye,osa:I1,pa:Nn,pap:ye,pcm:gr,pl:g=>{const C=String(g).split("."),k=C[0],_=!C[1],H=k.slice(-1),B=k.slice(-2);return 1==g&&_?"one":_&&H>=2&&H<=4&&(B<12||B>14)?"few":_&&1!=k&&(0==H||1==H)||_&&H>=5&&H<=9||_&&B>=12&&B<=14?"many":"other"},prg:g=>{const C=String(g).split("."),k=C[1]||"",_=k.length,H=Number(C[0])==g,B=H&&C[0].slice(-1),q=H&&C[0].slice(-2),jt=k.slice(-2),se=k.slice(-1);return H&&0==B||q>=11&&q<=19||2==_&&jt>=11&&jt<=19?"zero":1==B&&11!=q||2==_&&1==se&&11!=jt||2!=_&&1==se?"one":"other"},ps:ye,pt:g=>{const C=String(g).split("."),k=C[0],_=!C[1],H=k.slice(-6);return 0==k||1==k?"one":0!=k&&0==H&&_?"many":"other"},pt_PT:g=>{const C=String(g).split("."),k=C[0],_=!C[1],H=k.slice(-6);return 1==g&&_?"one":0!=k&&0==H&&_?"many":"other"},rm:ye,ro:g=>{const C=String(g).split("."),k=!C[1],H=Number(C[0])==g&&C[0].slice(-2);return 1==g&&k?"one":!k||0==g||1!=g&&H>=1&&H<=19?"few":"other"},rof:ye,ru:g=>{const C=String(g).split("."),k=C[0],_=!C[1],H=k.slice(-1),B=k.slice(-2);return _&&1==H&&11!=B?"one":_&&H>=2&&H<=4&&(B<12||B>14)?"few":_&&0==H||_&&H>=5&&H<=9||_&&B>=11&&B<=14?"many":"other"},rwk:ye,sah:I1,saq:ye,sat:Sn,sc:Vn,scn:Vn,sd:ye,sdh:ye,se:Sn,seh:ye,ses:I1,sg:I1,sh:g=>{const C=String(g).split("."),k=C[0],_=C[1]||"",H=!C[1],B=k.slice(-1),q=k.slice(-2),jt=_.slice(-1),se=_.slice(-2);return H&&1==B&&11!=q||1==jt&&11!=se?"one":H&&B>=2&&B<=4&&(q<12||q>14)||jt>=2&&jt<=4&&(se<12||se>14)?"few":"other"},shi:g=>{const C=String(g).split("."),k=Number(C[0])==g;return g>=0&&g<=1?"one":k&&g>=2&&g<=10?"few":"other"},si:g=>{const C=String(g).split(".");return 0==g||1==g||0==C[0]&&1==(C[1]||"")?"one":"other"},sk:g=>{const C=String(g).split("."),k=C[0],_=!C[1];return 1==g&&_?"one":k>=2&&k<=4&&_?"few":_?"other":"many"},sl:g=>{const C=String(g).split("."),_=!C[1],H=C[0].slice(-2);return _&&1==H?"one":_&&2==H?"two":_&&(3==H||4==H)||!_?"few":"other"},sma:Sn,smi:Sn,smj:Sn,smn:Sn,sms:Sn,sn:ye,so:ye,sq:ye,sr:g=>{const C=String(g).split("."),k=C[0],_=C[1]||"",H=!C[1],B=k.slice(-1),q=k.slice(-2),jt=_.slice(-1),se=_.slice(-2);return H&&1==B&&11!=q||1==jt&&11!=se?"one":H&&B>=2&&B<=4&&(q<12||q>14)||jt>=2&&jt<=4&&(se<12||se>14)?"few":"other"},ss:ye,ssy:ye,st:ye,su:I1,sv:Vn,sw:Vn,syr:ye,ta:ye,te:ye,teo:ye,th:I1,ti:Nn,tig:ye,tk:ye,tl:g=>{const C=String(g).split("."),k=C[0],_=C[1]||"",H=!C[1],B=k.slice(-1),q=_.slice(-1);return H&&(1==k||2==k||3==k)||H&&4!=B&&6!=B&&9!=B||!H&&4!=q&&6!=q&&9!=q?"one":"other"},tn:ye,to:I1,tpi:I1,tr:ye,ts:ye,tzm:g=>{const C=String(g).split("."),k=Number(C[0])==g;return 0==g||1==g||k&&g>=11&&g<=99?"one":"other"},ug:ye,uk:g=>{const C=String(g).split("."),k=C[0],_=!C[1],H=k.slice(-1),B=k.slice(-2);return _&&1==H&&11!=B?"one":_&&H>=2&&H<=4&&(B<12||B>14)?"few":_&&0==H||_&&H>=5&&H<=9||_&&B>=11&&B<=14?"many":"other"},und:I1,ur:Vn,uz:ye,ve:ye,vec:g=>{const C=String(g).split("."),k=C[0],_=!C[1],H=k.slice(-6);return 1==g&&_?"one":0!=k&&0==H&&_?"many":"other"},vi:I1,vo:ye,vun:ye,wa:Nn,wae:ye,wo:I1,xh:ye,xog:ye,yi:Vn,yo:I1,yue:I1,zh:I1,zu:gr});const wi="zero",$e="one",Vr="two",Z1="few",hr="many",ge="other",Ce={cardinal:[$e,ge],ordinal:[ge]},go={cardinal:[$e,ge],ordinal:[$e,ge]},Gr={cardinal:[ge],ordinal:[ge]},ei={cardinal:[$e,Vr,ge],ordinal:[ge]};var B7=Object.freeze({__proto__:null,af:Ce,ak:Ce,am:Ce,an:Ce,ar:{cardinal:[wi,$e,Vr,Z1,hr,ge],ordinal:[ge]},ars:{cardinal:[wi,$e,Vr,Z1,hr,ge],ordinal:[ge]},as:{cardinal:[$e,ge],ordinal:[$e,Vr,Z1,hr,ge]},asa:Ce,ast:Ce,az:{cardinal:[$e,ge],ordinal:[$e,Z1,hr,ge]},bal:go,be:{cardinal:[$e,Z1,hr,ge],ordinal:[Z1,ge]},bem:Ce,bez:Ce,bg:Ce,bho:Ce,bm:Gr,bn:{cardinal:[$e,ge],ordinal:[$e,Vr,Z1,hr,ge]},bo:Gr,br:{cardinal:[$e,Vr,Z1,hr,ge],ordinal:[ge]},brx:Ce,bs:{cardinal:[$e,Z1,ge],ordinal:[ge]},ca:{cardinal:[$e,hr,ge],ordinal:[$e,Vr,Z1,ge]},ce:Ce,ceb:Ce,cgg:Ce,chr:Ce,ckb:Ce,cs:{cardinal:[$e,Z1,hr,ge],ordinal:[ge]},cy:{cardinal:[wi,$e,Vr,Z1,hr,ge],ordinal:[wi,$e,Vr,Z1,hr,ge]},da:Ce,de:Ce,doi:Ce,dsb:{cardinal:[$e,Vr,Z1,ge],ordinal:[ge]},dv:Ce,dz:Gr,ee:Ce,el:Ce,en:{cardinal:[$e,ge],ordinal:[$e,Vr,Z1,ge]},eo:Ce,es:{cardinal:[$e,hr,ge],ordinal:[ge]},et:Ce,eu:Ce,fa:Ce,ff:Ce,fi:Ce,fil:go,fo:Ce,fr:{cardinal:[$e,hr,ge],ordinal:[$e,ge]},fur:Ce,fy:Ce,ga:{cardinal:[$e,Vr,Z1,hr,ge],ordinal:[$e,ge]},gd:{cardinal:[$e,Vr,Z1,ge],ordinal:[$e,Vr,Z1,ge]},gl:Ce,gsw:Ce,gu:{cardinal:[$e,ge],ordinal:[$e,Vr,Z1,hr,ge]},guw:Ce,gv:{cardinal:[$e,Vr,Z1,hr,ge],ordinal:[ge]},ha:Ce,haw:Ce,he:ei,hi:{cardinal:[$e,ge],ordinal:[$e,Vr,Z1,hr,ge]},hnj:Gr,hr:{cardinal:[$e,Z1,ge],ordinal:[ge]},hsb:{cardinal:[$e,Vr,Z1,ge],ordinal:[ge]},hu:go,hy:go,ia:Ce,id:Gr,ig:Gr,ii:Gr,io:Ce,is:Ce,it:{cardinal:[$e,hr,ge],ordinal:[hr,ge]},iu:ei,ja:Gr,jbo:Gr,jgo:Ce,jmc:Ce,jv:Gr,jw:Gr,ka:{cardinal:[$e,ge],ordinal:[$e,hr,ge]},kab:Ce,kaj:Ce,kcg:Ce,kde:Gr,kea:Gr,kk:{cardinal:[$e,ge],ordinal:[hr,ge]},kkj:Ce,kl:Ce,km:Gr,kn:Ce,ko:Gr,ks:Ce,ksb:Ce,ksh:{cardinal:[wi,$e,ge],ordinal:[ge]},ku:Ce,kw:{cardinal:[wi,$e,Vr,Z1,hr,ge],ordinal:[$e,hr,ge]},ky:Ce,lag:{cardinal:[wi,$e,ge],ordinal:[ge]},lb:Ce,lg:Ce,lij:{cardinal:[$e,ge],ordinal:[hr,ge]},lkt:Gr,ln:Ce,lo:{cardinal:[ge],ordinal:[$e,ge]},lt:{cardinal:[$e,Z1,hr,ge],ordinal:[ge]},lv:{cardinal:[wi,$e,ge],ordinal:[ge]},mas:Ce,mg:Ce,mgo:Ce,mk:{cardinal:[$e,ge],ordinal:[$e,Vr,hr,ge]},ml:Ce,mn:Ce,mo:{cardinal:[$e,Z1,ge],ordinal:[$e,ge]},mr:{cardinal:[$e,ge],ordinal:[$e,Vr,Z1,ge]},ms:{cardinal:[ge],ordinal:[$e,ge]},mt:{cardinal:[$e,Vr,Z1,hr,ge],ordinal:[ge]},my:Gr,nah:Ce,naq:ei,nb:Ce,nd:Ce,ne:go,nl:Ce,nn:Ce,nnh:Ce,no:Ce,nqo:Gr,nr:Ce,nso:Ce,ny:Ce,nyn:Ce,om:Ce,or:{cardinal:[$e,ge],ordinal:[$e,Vr,Z1,hr,ge]},os:Ce,osa:Gr,pa:Ce,pap:Ce,pcm:Ce,pl:{cardinal:[$e,Z1,hr,ge],ordinal:[ge]},prg:{cardinal:[wi,$e,ge],ordinal:[ge]},ps:Ce,pt:{cardinal:[$e,hr,ge],ordinal:[ge]},pt_PT:{cardinal:[$e,hr,ge],ordinal:[ge]},rm:Ce,ro:{cardinal:[$e,Z1,ge],ordinal:[$e,ge]},rof:Ce,ru:{cardinal:[$e,Z1,hr,ge],ordinal:[ge]},rwk:Ce,sah:Gr,saq:Ce,sat:ei,sc:{cardinal:[$e,ge],ordinal:[hr,ge]},scn:{cardinal:[$e,ge],ordinal:[hr,ge]},sd:Ce,sdh:Ce,se:ei,seh:Ce,ses:Gr,sg:Gr,sh:{cardinal:[$e,Z1,ge],ordinal:[ge]},shi:{cardinal:[$e,Z1,ge],ordinal:[ge]},si:Ce,sk:{cardinal:[$e,Z1,hr,ge],ordinal:[ge]},sl:{cardinal:[$e,Vr,Z1,ge],ordinal:[ge]},sma:ei,smi:ei,smj:ei,smn:ei,sms:ei,sn:Ce,so:Ce,sq:{cardinal:[$e,ge],ordinal:[$e,hr,ge]},sr:{cardinal:[$e,Z1,ge],ordinal:[ge]},ss:Ce,ssy:Ce,st:Ce,su:Gr,sv:go,sw:Ce,syr:Ce,ta:Ce,te:Ce,teo:Ce,th:Gr,ti:Ce,tig:Ce,tk:{cardinal:[$e,ge],ordinal:[Z1,ge]},tl:go,tn:Ce,to:Gr,tpi:Gr,tr:Ce,ts:Ce,tzm:Ce,ug:Ce,uk:{cardinal:[$e,Z1,hr,ge],ordinal:[Z1,ge]},und:Gr,ur:Ce,uz:Ce,ve:Ce,vec:{cardinal:[$e,hr,ge],ordinal:[hr,ge]},vi:{cardinal:[ge],ordinal:[$e,ge]},vo:Ce,vun:Ce,wa:Ce,wae:Ce,wo:Gr,xh:Ce,xog:Ce,yi:Ce,yo:Gr,yue:Gr,zh:Gr,zu:Ce});const Re=(g,C)=>C?"other":1==g?"one":"other",oi=(g,C)=>C?"other":0==g||1==g?"one":"other",si=(g,C)=>C?"other":g>=0&&g<=1?"one":"other",ii=(g,C)=>{const k=String(g).split(".");return C||1!=g||k[1]?"other":"one"},Xr=(g,C)=>"other",rl=(g,C)=>C?"other":1==g?"one":2==g?"two":"other";var zc=Object.freeze({__proto__:null,af:Re,ak:oi,am:si,an:Re,ar:(g,C)=>{const k=String(g).split("."),H=Number(k[0])==g&&k[0].slice(-2);return C?"other":0==g?"zero":1==g?"one":2==g?"two":H>=3&&H<=10?"few":H>=11&&H<=99?"many":"other"},ars:(g,C)=>{const k=String(g).split("."),H=Number(k[0])==g&&k[0].slice(-2);return C?"other":0==g?"zero":1==g?"one":2==g?"two":H>=3&&H<=10?"few":H>=11&&H<=99?"many":"other"},as:(g,C)=>C?1==g||5==g||7==g||8==g||9==g||10==g?"one":2==g||3==g?"two":4==g?"few":6==g?"many":"other":g>=0&&g<=1?"one":"other",asa:Re,ast:ii,az:(g,C)=>{const _=String(g).split(".")[0],H=_.slice(-1),B=_.slice(-2),q=_.slice(-3);return C?1==H||2==H||5==H||7==H||8==H||20==B||50==B||70==B||80==B?"one":3==H||4==H||100==q||200==q||300==q||400==q||500==q||600==q||700==q||800==q||900==q?"few":0==_||6==H||40==B||60==B||90==B?"many":"other":1==g?"one":"other"},bal:(g,C)=>1==g?"one":"other",be:(g,C)=>{const k=String(g).split("."),_=Number(k[0])==g,H=_&&k[0].slice(-1),B=_&&k[0].slice(-2);return C?2!=H&&3!=H||12==B||13==B?"other":"few":1==H&&11!=B?"one":H>=2&&H<=4&&(B<12||B>14)?"few":_&&0==H||H>=5&&H<=9||B>=11&&B<=14?"many":"other"},bem:Re,bez:Re,bg:Re,bho:oi,bm:Xr,bn:(g,C)=>C?1==g||5==g||7==g||8==g||9==g||10==g?"one":2==g||3==g?"two":4==g?"few":6==g?"many":"other":g>=0&&g<=1?"one":"other",bo:Xr,br:(g,C)=>{const k=String(g).split("."),_=Number(k[0])==g,H=_&&k[0].slice(-1),B=_&&k[0].slice(-2),q=_&&k[0].slice(-6);return C?"other":1==H&&11!=B&&71!=B&&91!=B?"one":2==H&&12!=B&&72!=B&&92!=B?"two":(3==H||4==H||9==H)&&(B<10||B>19)&&(B<70||B>79)&&(B<90||B>99)?"few":0!=g&&_&&0==q?"many":"other"},brx:Re,bs:(g,C)=>{const k=String(g).split("."),_=k[0],H=k[1]||"",B=!k[1],q=_.slice(-1),jt=_.slice(-2),se=H.slice(-1),He=H.slice(-2);return C?"other":B&&1==q&&11!=jt||1==se&&11!=He?"one":B&&q>=2&&q<=4&&(jt<12||jt>14)||se>=2&&se<=4&&(He<12||He>14)?"few":"other"},ca:(g,C)=>{const k=String(g).split("."),_=k[0],H=!k[1],B=_.slice(-6);return C?1==g||3==g?"one":2==g?"two":4==g?"few":"other":1==g&&H?"one":0!=_&&0==B&&H?"many":"other"},ce:Re,ceb:(g,C)=>{const k=String(g).split("."),_=k[0],H=k[1]||"",B=!k[1],q=_.slice(-1),jt=H.slice(-1);return C?"other":B&&(1==_||2==_||3==_)||B&&4!=q&&6!=q&&9!=q||!B&&4!=jt&&6!=jt&&9!=jt?"one":"other"},cgg:Re,chr:Re,ckb:Re,cs:(g,C)=>{const k=String(g).split("."),_=k[0],H=!k[1];return C?"other":1==g&&H?"one":_>=2&&_<=4&&H?"few":H?"other":"many"},cy:(g,C)=>C?0==g||7==g||8==g||9==g?"zero":1==g?"one":2==g?"two":3==g||4==g?"few":5==g||6==g?"many":"other":0==g?"zero":1==g?"one":2==g?"two":3==g?"few":6==g?"many":"other",da:(g,C)=>{const k=String(g).split("."),_=k[0],H=Number(k[0])==g;return C||1!=g&&(H||0!=_&&1!=_)?"other":"one"},de:ii,doi:si,dsb:(g,C)=>{const k=String(g).split("."),H=k[1]||"",B=!k[1],q=k[0].slice(-2),jt=H.slice(-2);return C?"other":B&&1==q||1==jt?"one":B&&2==q||2==jt?"two":B&&(3==q||4==q)||3==jt||4==jt?"few":"other"},dv:Re,dz:Xr,ee:Re,el:Re,en:(g,C)=>{const k=String(g).split("."),_=!k[1],H=Number(k[0])==g,B=H&&k[0].slice(-1),q=H&&k[0].slice(-2);return C?1==B&&11!=q?"one":2==B&&12!=q?"two":3==B&&13!=q?"few":"other":1==g&&_?"one":"other"},eo:Re,es:(g,C)=>{const k=String(g).split("."),_=k[0],H=!k[1],B=_.slice(-6);return C?"other":1==g?"one":0!=_&&0==B&&H?"many":"other"},et:ii,eu:Re,fa:si,ff:(g,C)=>C?"other":g>=0&&g<2?"one":"other",fi:ii,fil:(g,C)=>{const k=String(g).split("."),_=k[0],H=k[1]||"",B=!k[1],q=_.slice(-1),jt=H.slice(-1);return C?1==g?"one":"other":B&&(1==_||2==_||3==_)||B&&4!=q&&6!=q&&9!=q||!B&&4!=jt&&6!=jt&&9!=jt?"one":"other"},fo:Re,fr:(g,C)=>{const k=String(g).split("."),_=k[0],H=!k[1],B=_.slice(-6);return C?1==g?"one":"other":g>=0&&g<2?"one":0!=_&&0==B&&H?"many":"other"},fur:Re,fy:ii,ga:(g,C)=>{const k=String(g).split("."),_=Number(k[0])==g;return C?1==g?"one":"other":1==g?"one":2==g?"two":_&&g>=3&&g<=6?"few":_&&g>=7&&g<=10?"many":"other"},gd:(g,C)=>{const k=String(g).split("."),_=Number(k[0])==g;return C?1==g||11==g?"one":2==g||12==g?"two":3==g||13==g?"few":"other":1==g||11==g?"one":2==g||12==g?"two":_&&g>=3&&g<=10||_&&g>=13&&g<=19?"few":"other"},gl:ii,gsw:Re,gu:(g,C)=>C?1==g?"one":2==g||3==g?"two":4==g?"few":6==g?"many":"other":g>=0&&g<=1?"one":"other",guw:oi,gv:(g,C)=>{const k=String(g).split("."),_=k[0],H=!k[1],B=_.slice(-1),q=_.slice(-2);return C?"other":H&&1==B?"one":H&&2==B?"two":!H||0!=q&&20!=q&&40!=q&&60!=q&&80!=q?H?"other":"many":"few"},ha:Re,haw:Re,he:(g,C)=>{const k=String(g).split("."),_=k[0],H=!k[1];return C?"other":1==_&&H||0==_&&!H?"one":2==_&&H?"two":"other"},hi:(g,C)=>C?1==g?"one":2==g||3==g?"two":4==g?"few":6==g?"many":"other":g>=0&&g<=1?"one":"other",hnj:Xr,hr:(g,C)=>{const k=String(g).split("."),_=k[0],H=k[1]||"",B=!k[1],q=_.slice(-1),jt=_.slice(-2),se=H.slice(-1),He=H.slice(-2);return C?"other":B&&1==q&&11!=jt||1==se&&11!=He?"one":B&&q>=2&&q<=4&&(jt<12||jt>14)||se>=2&&se<=4&&(He<12||He>14)?"few":"other"},hsb:(g,C)=>{const k=String(g).split("."),H=k[1]||"",B=!k[1],q=k[0].slice(-2),jt=H.slice(-2);return C?"other":B&&1==q||1==jt?"one":B&&2==q||2==jt?"two":B&&(3==q||4==q)||3==jt||4==jt?"few":"other"},hu:(g,C)=>C?1==g||5==g?"one":"other":1==g?"one":"other",hy:(g,C)=>C?1==g?"one":"other":g>=0&&g<2?"one":"other",ia:ii,id:Xr,ig:Xr,ii:Xr,io:ii,is:(g,C)=>{const k=String(g).split("."),_=k[0],H=(k[1]||"").replace(/0+$/,""),B=Number(k[0])==g,q=_.slice(-1),jt=_.slice(-2);return C?"other":B&&1==q&&11!=jt||H%10==1&&H%100!=11?"one":"other"},it:(g,C)=>{const k=String(g).split("."),_=k[0],H=!k[1],B=_.slice(-6);return C?11==g||8==g||80==g||800==g?"many":"other":1==g&&H?"one":0!=_&&0==B&&H?"many":"other"},iu:rl,ja:Xr,jbo:Xr,jgo:Re,jmc:Re,jv:Xr,jw:Xr,ka:(g,C)=>{const _=String(g).split(".")[0],H=_.slice(-2);return C?1==_?"one":0==_||H>=2&&H<=20||40==H||60==H||80==H?"many":"other":1==g?"one":"other"},kab:(g,C)=>C?"other":g>=0&&g<2?"one":"other",kaj:Re,kcg:Re,kde:Xr,kea:Xr,kk:(g,C)=>{const k=String(g).split("."),_=Number(k[0])==g,H=_&&k[0].slice(-1);return C?6==H||9==H||_&&0==H&&0!=g?"many":"other":1==g?"one":"other"},kkj:Re,kl:Re,km:Xr,kn:si,ko:Xr,ks:Re,ksb:Re,ksh:(g,C)=>C?"other":0==g?"zero":1==g?"one":"other",ku:Re,kw:(g,C)=>{const k=String(g).split("."),_=Number(k[0])==g,H=_&&k[0].slice(-2),B=_&&k[0].slice(-3),q=_&&k[0].slice(-5),jt=_&&k[0].slice(-6);return C?_&&g>=1&&g<=4||H>=1&&H<=4||H>=21&&H<=24||H>=41&&H<=44||H>=61&&H<=64||H>=81&&H<=84?"one":5==g||5==H?"many":"other":0==g?"zero":1==g?"one":2==H||22==H||42==H||62==H||82==H||_&&0==B&&(q>=1e3&&q<=2e4||4e4==q||6e4==q||8e4==q)||0!=g&&1e5==jt?"two":3==H||23==H||43==H||63==H||83==H?"few":1==g||1!=H&&21!=H&&41!=H&&61!=H&&81!=H?"other":"many"},ky:Re,lag:(g,C)=>{const _=String(g).split(".")[0];return C?"other":0==g?"zero":0!=_&&1!=_||0==g?"other":"one"},lb:Re,lg:Re,lij:(g,C)=>{const k=String(g).split("."),_=!k[1],H=Number(k[0])==g;return C?11==g||8==g||H&&g>=80&&g<=89||H&&g>=800&&g<=899?"many":"other":1==g&&_?"one":"other"},lkt:Xr,ln:oi,lo:(g,C)=>C&&1==g?"one":"other",lt:(g,C)=>{const k=String(g).split("."),_=k[1]||"",H=Number(k[0])==g,B=H&&k[0].slice(-1),q=H&&k[0].slice(-2);return C?"other":1==B&&(q<11||q>19)?"one":B>=2&&B<=9&&(q<11||q>19)?"few":0!=_?"many":"other"},lv:(g,C)=>{const k=String(g).split("."),_=k[1]||"",H=_.length,B=Number(k[0])==g,q=B&&k[0].slice(-1),jt=B&&k[0].slice(-2),se=_.slice(-2),He=_.slice(-1);return C?"other":B&&0==q||jt>=11&&jt<=19||2==H&&se>=11&&se<=19?"zero":1==q&&11!=jt||2==H&&1==He&&11!=se||2!=H&&1==He?"one":"other"},mas:Re,mg:oi,mgo:Re,mk:(g,C)=>{const k=String(g).split("."),_=k[0],H=k[1]||"",B=!k[1],q=_.slice(-1),jt=_.slice(-2),se=H.slice(-1),He=H.slice(-2);return C?1==q&&11!=jt?"one":2==q&&12!=jt?"two":7!=q&&8!=q||17==jt||18==jt?"other":"many":B&&1==q&&11!=jt||1==se&&11!=He?"one":"other"},ml:Re,mn:Re,mo:(g,C)=>{const k=String(g).split("."),_=!k[1],B=Number(k[0])==g&&k[0].slice(-2);return C?1==g?"one":"other":1==g&&_?"one":!_||0==g||1!=g&&B>=1&&B<=19?"few":"other"},mr:(g,C)=>C?1==g?"one":2==g||3==g?"two":4==g?"few":"other":1==g?"one":"other",ms:(g,C)=>C&&1==g?"one":"other",mt:(g,C)=>{const k=String(g).split("."),H=Number(k[0])==g&&k[0].slice(-2);return C?"other":1==g?"one":2==g?"two":0==g||H>=3&&H<=10?"few":H>=11&&H<=19?"many":"other"},my:Xr,nah:Re,naq:rl,nb:Re,nd:Re,ne:(g,C)=>{const k=String(g).split("."),_=Number(k[0])==g;return C?_&&g>=1&&g<=4?"one":"other":1==g?"one":"other"},nl:ii,nn:Re,nnh:Re,no:Re,nqo:Xr,nr:Re,nso:oi,ny:Re,nyn:Re,om:Re,or:(g,C)=>{const k=String(g).split("."),_=Number(k[0])==g;return C?1==g||5==g||_&&g>=7&&g<=9?"one":2==g||3==g?"two":4==g?"few":6==g?"many":"other":1==g?"one":"other"},os:Re,osa:Xr,pa:oi,pap:Re,pcm:si,pl:(g,C)=>{const k=String(g).split("."),_=k[0],H=!k[1],B=_.slice(-1),q=_.slice(-2);return C?"other":1==g&&H?"one":H&&B>=2&&B<=4&&(q<12||q>14)?"few":H&&1!=_&&(0==B||1==B)||H&&B>=5&&B<=9||H&&q>=12&&q<=14?"many":"other"},prg:(g,C)=>{const k=String(g).split("."),_=k[1]||"",H=_.length,B=Number(k[0])==g,q=B&&k[0].slice(-1),jt=B&&k[0].slice(-2),se=_.slice(-2),He=_.slice(-1);return C?"other":B&&0==q||jt>=11&&jt<=19||2==H&&se>=11&&se<=19?"zero":1==q&&11!=jt||2==H&&1==He&&11!=se||2!=H&&1==He?"one":"other"},ps:Re,pt:(g,C)=>{const k=String(g).split("."),_=k[0],H=!k[1],B=_.slice(-6);return C?"other":0==_||1==_?"one":0!=_&&0==B&&H?"many":"other"},pt_PT:(g,C)=>{const k=String(g).split("."),_=k[0],H=!k[1],B=_.slice(-6);return C?"other":1==g&&H?"one":0!=_&&0==B&&H?"many":"other"},rm:Re,ro:(g,C)=>{const k=String(g).split("."),_=!k[1],B=Number(k[0])==g&&k[0].slice(-2);return C?1==g?"one":"other":1==g&&_?"one":!_||0==g||1!=g&&B>=1&&B<=19?"few":"other"},rof:Re,ru:(g,C)=>{const k=String(g).split("."),_=k[0],H=!k[1],B=_.slice(-1),q=_.slice(-2);return C?"other":H&&1==B&&11!=q?"one":H&&B>=2&&B<=4&&(q<12||q>14)?"few":H&&0==B||H&&B>=5&&B<=9||H&&q>=11&&q<=14?"many":"other"},rwk:Re,sah:Xr,saq:Re,sat:rl,sc:(g,C)=>{const k=String(g).split(".");return C?11==g||8==g||80==g||800==g?"many":"other":1!=g||k[1]?"other":"one"},scn:(g,C)=>{const k=String(g).split(".");return C?11==g||8==g||80==g||800==g?"many":"other":1!=g||k[1]?"other":"one"},sd:Re,sdh:Re,se:rl,seh:Re,ses:Xr,sg:Xr,sh:(g,C)=>{const k=String(g).split("."),_=k[0],H=k[1]||"",B=!k[1],q=_.slice(-1),jt=_.slice(-2),se=H.slice(-1),He=H.slice(-2);return C?"other":B&&1==q&&11!=jt||1==se&&11!=He?"one":B&&q>=2&&q<=4&&(jt<12||jt>14)||se>=2&&se<=4&&(He<12||He>14)?"few":"other"},shi:(g,C)=>{const k=String(g).split("."),_=Number(k[0])==g;return C?"other":g>=0&&g<=1?"one":_&&g>=2&&g<=10?"few":"other"},si:(g,C)=>{const k=String(g).split(".");return C?"other":0==g||1==g||0==k[0]&&1==(k[1]||"")?"one":"other"},sk:(g,C)=>{const k=String(g).split("."),_=k[0],H=!k[1];return C?"other":1==g&&H?"one":_>=2&&_<=4&&H?"few":H?"other":"many"},sl:(g,C)=>{const k=String(g).split("."),H=!k[1],B=k[0].slice(-2);return C?"other":H&&1==B?"one":H&&2==B?"two":H&&(3==B||4==B)||!H?"few":"other"},sma:rl,smi:rl,smj:rl,smn:rl,sms:rl,sn:Re,so:Re,sq:(g,C)=>{const k=String(g).split("."),_=Number(k[0])==g,H=_&&k[0].slice(-1),B=_&&k[0].slice(-2);return C?1==g?"one":4==H&&14!=B?"many":"other":1==g?"one":"other"},sr:(g,C)=>{const k=String(g).split("."),_=k[0],H=k[1]||"",B=!k[1],q=_.slice(-1),jt=_.slice(-2),se=H.slice(-1),He=H.slice(-2);return C?"other":B&&1==q&&11!=jt||1==se&&11!=He?"one":B&&q>=2&&q<=4&&(jt<12||jt>14)||se>=2&&se<=4&&(He<12||He>14)?"few":"other"},ss:Re,ssy:Re,st:Re,su:Xr,sv:(g,C)=>{const k=String(g).split("."),_=!k[1],H=Number(k[0])==g,B=H&&k[0].slice(-1),q=H&&k[0].slice(-2);return C?1!=B&&2!=B||11==q||12==q?"other":"one":1==g&&_?"one":"other"},sw:ii,syr:Re,ta:Re,te:Re,teo:Re,th:Xr,ti:oi,tig:Re,tk:(g,C)=>{const k=String(g).split("."),H=Number(k[0])==g&&k[0].slice(-1);return C?6==H||9==H||10==g?"few":"other":1==g?"one":"other"},tl:(g,C)=>{const k=String(g).split("."),_=k[0],H=k[1]||"",B=!k[1],q=_.slice(-1),jt=H.slice(-1);return C?1==g?"one":"other":B&&(1==_||2==_||3==_)||B&&4!=q&&6!=q&&9!=q||!B&&4!=jt&&6!=jt&&9!=jt?"one":"other"},tn:Re,to:Xr,tpi:Xr,tr:Re,ts:Re,tzm:(g,C)=>{const k=String(g).split("."),_=Number(k[0])==g;return C?"other":0==g||1==g||_&&g>=11&&g<=99?"one":"other"},ug:Re,uk:(g,C)=>{const k=String(g).split("."),_=k[0],H=!k[1],B=Number(k[0])==g,q=B&&k[0].slice(-1),jt=B&&k[0].slice(-2),se=_.slice(-1),He=_.slice(-2);return C?3==q&&13!=jt?"few":"other":H&&1==se&&11!=He?"one":H&&se>=2&&se<=4&&(He<12||He>14)?"few":H&&0==se||H&&se>=5&&se<=9||H&&He>=11&&He<=14?"many":"other"},und:Xr,ur:ii,uz:Re,ve:Re,vec:(g,C)=>{const k=String(g).split("."),_=k[0],H=!k[1],B=_.slice(-6);return C?11==g||8==g||80==g||800==g?"many":"other":1==g&&H?"one":0!=_&&0==B&&H?"many":"other"},vi:(g,C)=>C&&1==g?"one":"other",vo:Re,vun:Re,wa:oi,wae:Re,wo:Xr,xh:Re,xog:Re,yi:ii,yo:Xr,yue:Xr,zh:Xr,zu:si});function v4(g){if("string"!=typeof g||g.length<2)throw new RangeError("Invalid language tag: ".concat(g));if(g.startsWith("pt-PT"))return"pt-PT";var C=g.match(/.+?(?=[-_])/);return C?C[0]:g}function ka(g){if("function"==typeof g){var C=v4(g.name);return{isDefault:!1,id:be(C),lc:C,locale:g.name,getPlural:g,cardinals:g.cardinals||[],ordinals:g.ordinals||[]}}var k=v4(g),_=be(k);return function S8(g){return g in zc}(_)?{isDefault:!0,id:_,lc:k,locale:g,getCardinal:dd[_],getPlural:zc[_],cardinals:B7[_].cardinal,ordinals:B7[_].ordinal}:null}function H3(g){return be(v4(g))in zc}var z3=function(){function g(C,k){if(this.plurals=[],this.options=Object.assign({biDiSupport:!1,currency:"USD",customFormatters:{},localeCodeFromKey:null,requireAllArguments:!1,returnType:"string",strict:k&&k.strictNumberSign||!1,strictPluralKeys:!0},k),"*"===C?this.plurals=function zk(g){var C=Object.keys(zc).filter(function(k){return k!==g});return C.unshift(g),C.map(ka)}(g.defaultLocale):Array.isArray(C)?this.plurals=C.map(ka).filter(Boolean):C&&(_=ka(C))&&(this.plurals=[_]),0===this.plurals.length){var _=ka(g.defaultLocale);this.plurals=[_]}}return g.escape=function(C,k){var _=k?/[#{}]/g:/[{}]/g;return String(C).replace(_,"'$&'")},g.supportedLocalesOf=function(C){return(Array.isArray(C)?C:[C]).filter(H3)},g.prototype.resolvedOptions=function(){return ae(ae({},this.options),{locale:this.plurals[0].locale,plurals:this.plurals})},g.prototype.compile=function(C){var k,_,H=new P2(this.options),B="return "+H.compile(C,this.plurals[0]),q=[],jt=[];try{for(var se=ht(Object.entries(H.runtime)),He=se.next();!He.done;He=se.next()){var y1=X(He.value,2),tr=y1[1];q.push(y1[0]),jt.push(tr)}}catch(cn){k={error:cn}}finally{try{He&&!He.done&&(_=se.return)&&_.call(se)}finally{if(k)throw k.error}}return(new(Function.bind.apply(Function,Pt(Pt([void 0],X(q),!1),[B],!1)))).apply(void 0,Pt([],X(jt),!1))},g.defaultLocale="en",g}();return z3}()},7059:pe=>{"use strict";var F,ae=Object.defineProperty,ht=Object.getOwnPropertyDescriptor,X=Object.getOwnPropertyNames,Pt=Object.prototype.hasOwnProperty,Nt={};((F,J)=>{for(var It in J)ae(F,It,{get:J[It],enumerable:!0})})(Nt,{XmlCdata:()=>Q,XmlComment:()=>Jt,XmlDocument:()=>At,XmlElement:()=>et,XmlNode:()=>ut,XmlProcessingInstruction:()=>Ut,XmlText:()=>Lt,parseXml:()=>ke}),pe.exports=(F=Nt,((F,J,It,rt)=>{if(J&&"object"==typeof J||"function"==typeof J)for(let Y of X(J))!Pt.call(F,Y)&&undefined!==Y&&ae(F,Y,{get:()=>J[Y],enumerable:!(rt=ht(J,Y))||rt.enumerable});return F})(ae({},"__esModule",{value:!0}),F));var D="",nt=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,le=/[^"&<]+/y,ce=/[^'&<]+/y,qt=/[\t\n]/g,Ht=/<|&|]]>/,Rt=Object.freeze(Object.assign(Object.create(null),{amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}));function he(F){let J=at(F);return J>=97&&J<=122||J>=65&&J<=90||J>=48&&J<=57||45===J||46===J||183===J||J>=768&&J<=879||J>=8255&&J<=8256||Gt(F,J)}function Gt(F,J=at(F)){return J>=97&&J<=122||J>=65&&J<=90||58===J||95===J||J>=192&&J<=214||J>=216&&J<=246||J>=248&&J<=767||J>=880&&J<=893||J>=895&&J<=8191||J>=8204&&J<=8205||J>=8304&&J<=8591||J>=11264&&J<=12271||J>=12289&&J<=55295||J>=63744&&J<=64975||J>=65008&&J<=65533||J>=65536&&J<=983039}function st(F){return"#"===F||he(F)}function U(F){let J=at(F);return 32===J||9===J||10===J||13===J}function A(F){return 9===F||10===F||13===F||F>=32&&F<=55295||F>=57344&&F<=65533||F>=65536&&F<=1114111}function at(F){return F.codePointAt(0)||-1}var ut=class{constructor(){this.parent=null}get document(){var F,J;return null!=(J=null==(F=this.parent)?void 0:F.document)?J:null}get isRootNode(){return null!==this.parent&&this.parent===this.document}get preserveWhitespace(){var F;return!(null==(F=this.parent)||!F.preserveWhitespace)}get type(){return""}toJSON(){let F={type:this.type};return this.isRootNode&&(F.isRootNode=!0),this.preserveWhitespace&&(F.preserveWhitespace=!0),F}};ut.TYPE_CDATA="cdata",ut.TYPE_COMMENT="comment",ut.TYPE_DOCUMENT="document",ut.TYPE_ELEMENT="element",ut.TYPE_PROCESSING_INSTRUCTION="pi",ut.TYPE_TEXT="text";var Lt=class extends ut{constructor(F=""){super(),this.text=F}get type(){return ut.TYPE_TEXT}toJSON(){return Object.assign(ut.prototype.toJSON.call(this),{text:this.text})}},Q=class extends Lt{get type(){return ut.TYPE_CDATA}},Jt=class extends ut{constructor(F=""){super(),this.content=F}get type(){return ut.TYPE_COMMENT}toJSON(){return Object.assign(ut.prototype.toJSON.call(this),{content:this.content})}},et=class extends ut{constructor(F,J=Object.create(null),It=[]){super(),this.name=F,this.attributes=J,this.children=It}get isEmpty(){return 0===this.children.length}get preserveWhitespace(){let F=this;for(;F instanceof et;){if("xml:space"in F.attributes)return"preserve"===F.attributes["xml:space"];F=F.parent}return!1}get text(){return this.children.map(F=>"text"in F?F.text:"").join("")}get type(){return ut.TYPE_ELEMENT}toJSON(){return Object.assign(ut.prototype.toJSON.call(this),{name:this.name,attributes:this.attributes,children:this.children.map(F=>F.toJSON())})}},At=class extends ut{constructor(F=[]){super(),this.children=F}get document(){return this}get root(){for(let F of this.children)if(F instanceof et)return F;return null}get text(){return this.children.map(F=>"text"in F?F.text:"").join("")}get type(){return ut.TYPE_DOCUMENT}toJSON(){return Object.assign(ut.prototype.toJSON.call(this),{children:this.children.map(F=>F.toJSON())})}},Ut=class extends ut{constructor(F,J=""){super(),this.name=F,this.content=J}get type(){return ut.TYPE_PROCESSING_INSTRUCTION}toJSON(){return Object.assign(ut.prototype.toJSON.call(this),{name:this.name,content:this.content})}},tt=class{constructor(F,J={}){if(this.document=new At,this.i=this.document,this.options=J,this.c=new class{constructor(F){if(this.h=this.m(F,!0),this.d=0,this.length=F.length,this.j=this.h!==this.length,this.string=F,this.j){let J=[];for(let It=0,rt=0;rt65535?2:1;this.x=J}}get y(){return this.d>=this.h}n(F=this.d){var J;return this.j?null!=(J=this.x[F])?J:1/0:F}m(F,J=this.j){return J?F.replace(nt,"_").length:F.length}f(F=1){this.d=Math.min(this.h,this.d+F)}D(F=1){let J=this.g(F);return this.f(F),J}s(F){if(!F.sticky)throw new Error('`regex` must have a sticky flag ("y")');F.lastIndex=this.n();let J=F.exec(this.string);if(null===J||0===J.length)return D;let It=J[0];return this.f(this.m(It)),It}t(F){let J,It=D;for(;(J=this.g())&&F(J);)It+=J,this.f();return It}N(F){if(this.b(F))return F;if(this.j){let{length:J}=F,It=this.m(F);if(It!==J&&F===this.g(It))return this.f(It),F}return D}b(F){let{length:J}=F;return this.g(J)===F?(this.f(J),F):D}E(F){let J=this.string.slice(this.n()),It=J.search(F);if(It<=0)return D;let rt=J.slice(0,It);return this.f(this.m(rt)),rt}p(F){let{string:J}=this,It=this.n(),rt=J.indexOf(F,It);if(rt<=0)return D;let Y=J.slice(It,rt);return this.f(this.m(Y)),Y}g(F=1){let{d:J,j:It,string:rt}=this;return It?J>=this.h?D:rt.slice(this.n(J),this.n(J+F)):rt.slice(J,J+F)}o(F=0){this.d=F>=0?Math.min(this.h,F):Math.max(0,this.d+F)}}(function _t(F){return"\ufeff"===F[0]&&(F=F.slice(1)),F.replace(/\r\n?/g,"\n")}(F)),this.F(),!this.z())throw this.a("Root element is missing or invalid");for(;this.u(););if(!this.c.y)throw this.a("Extra content at the end of the document")}k(F){F.parent=this.i,this.i.children.push(F)}v(F){let{children:J}=this.i,{length:It}=J;if(It>0){let rt=J[It-1];if(rt instanceof Lt)return void(rt.text+=F)}this.k(new Lt(F))}G(){let F=Object.create(null);for(;this.e();){let J=this.q();if(!J)break;let It=this.r()&&this.H();if(!1===It)throw this.a("Attribute value expected");if(J in F)throw this.a(`Duplicate attribute: ${J}`);if("xml:space"===J&&"default"!==It&&"preserve"!==It)throw this.a('Value of the `xml:space` attribute must be "default" or "preserve"');F[J]=It}if(this.options.sortAttributes){let J=Object.keys(F).sort(),It=Object.create(null);for(let rt=0;rt");if(this.l(J),!F.b("]]>"))throw this.a("Unclosed CDATA section");return this.options.preserveCdata?this.k(new Q(J)):this.v(J),!0}J(){let{c:F}=this,J=F.E(Ht);if(!J)return!1;if(this.l(J),"]]>"===F.g(3))throw this.a("Element content may not contain the CDATA section close delimiter `]]>`");return this.v(J),!0}B(){let{c:F}=this;if(!F.b("\x3c!--"))return!1;let J=F.p("--");if(this.l(J),!F.b("--\x3e"))throw"--"===F.g(2)?this.a("The string `--` isn't allowed inside a comment"):this.a("Unclosed comment");return this.options.preserveComments&&this.k(new Jt(J.trim())),!0}K(){let F=this.A();return!!F&&(this.v(F),!0)}L(){let{c:F}=this;if(!F.b("]+/y),F.s(/\[[\s\S]+?\][\x20\t\r\n]*>/y))return!0;if(!F.b(">"))throw this.a("Unclosed doctype declaration");return!0}z(){let{c:F}=this,J=F.d;if(!F.b("<"))return!1;let It=this.q();if(!It)return F.o(J),!1;let rt=this.G(),Y=!!F.b("/>"),Ct=new et(It,rt);if(Ct.parent=this.i,!Y){if(!F.b(">"))throw this.a(`Unclosed start tag for element \`${It}\``);this.i=Ct;do{this.J()}while(this.z()||this.K()||this.I()||this.C()||this.B());let oe,Dt=F.d;if(!F.b("")||!(oe=this.q())||oe!==It)throw F.o(Dt),this.a(`Missing end tag for element ${It}`);if(this.e(),!F.b(">"))throw this.a(`Unclosed end tag for element ${It}`);this.i=Ct.parent}return this.k(Ct),!0}r(){return this.e(),!!this.c.b("=")&&(this.e(),!0)}u(){return this.B()||this.C()||this.e()}q(){return Gt(this.c.g())?this.c.t(he):""}C(){let{c:F}=this,J=F.d;if(!F.b(""))return!1;let It=this.q();if(!It)throw this.a("Invalid processing instruction");if("xml"===It.toLowerCase())throw F.o(J),this.a("XML declaration isn't allowed here");if(!this.e()){if(F.b("?>"))return this.k(new Ut(It)),!0;throw this.a("Whitespace is required after a processing instruction name")}let rt=F.p("?>");if(this.l(rt),!F.b("?>"))throw this.a("Unterminated processing instruction");return this.k(new Ut(It,rt)),!0}F(){let{c:F}=this,J=F.d;for(this.M();this.u(););if(this.L())for(;this.u(););return J"))throw this.a("Invalid or unclosed XML declaration");return!0}a(F){let{d:J,string:It}=this.c,rt=1,Y="",Ct=1;for(let Yt=0;Yt50&&(rt<40?Y=Y.slice(0,50):(oe=rt-20,Y=Y.slice(oe,rt+30)));let ze=new Error(`${F} (line ${Ct}, column ${rt})\n ${Y}\n`+" ".repeat(rt-oe+1)+"^\n");return Object.assign(ze,{column:rt,excerpt:Y,line:Ct,pos:J}),ze}l(F){let{length:J}=F;for(let It=0;It65535&&(It+=1)}}};function ke(F,J){return new tt(F,J).document}},2834:(pe,ae)=>{"use strict";function X(zt,Nt){return void 0===Nt&&(Nt=Object),Nt&&"function"==typeof Nt.freeze?Nt.freeze(zt):zt}var Tt=X({HTML:"text/html",isHTML:function(zt){return zt===Tt.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),Wt=X({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(zt){return zt===Wt.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});ae.assign=function Pt(zt,Nt){if(null===zt||"object"!=typeof zt)throw new TypeError("target is not an object");for(var D in Nt)Object.prototype.hasOwnProperty.call(Nt,D)&&(zt[D]=Nt[D]);return zt},ae.find=function ht(zt,Nt,D){if(void 0===D&&(D=Array.prototype),zt&&"function"==typeof D.find)return D.find.call(zt,Nt);for(var nt=0;nt{var Pt=ht(2834),Tt=ht(8486),Wt=ht(6443),zt=ht(3742),Nt=Tt.DOMImplementation,D=Pt.NAMESPACE,nt=zt.ParseError,p=zt.XMLReader;function le(U){return U.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028]/g,"\n")}function ce(U){this.options=U||{locator:{}}}function Ht(){this.cdata=!1}function Rt(U,A){A.lineNumber=U.lineNumber,A.columnNumber=U.columnNumber}function he(U){if(U)return"\n@"+(U.systemId||"")+"#[line:"+U.lineNumber+",col:"+U.columnNumber+"]"}function Gt(U,A,at){return"string"==typeof U?U.substr(A,at):U.length>=A+at||A?new java.lang.String(U,A,at)+"":U}function st(U,A){U.currentElement?U.currentElement.appendChild(A):U.doc.appendChild(A)}ce.prototype.parseFromString=function(U,A){var at=this.options,ut=new p,Lt=at.domBuilder||new Ht,Q=at.errorHandler,Jt=at.locator,et=at.xmlns||{},At=/\/x?html?$/.test(A),Ut=At?Wt.HTML_ENTITIES:Wt.XML_ENTITIES;return Jt&&Lt.setDocumentLocator(Jt),ut.errorHandler=function qt(U,A,at){if(!U){if(A instanceof Ht)return A;U=A}var ut={},Lt=U instanceof Function;function Q(Jt){var et=U[Jt];!et&&Lt&&(et=2==U.length?function(At){U(Jt,At)}:U),ut[Jt]=et&&function(At){et("[xmldom "+Jt+"]\t"+At+he(at))}||function(){}}return at=at||{},Q("warning"),Q("error"),Q("fatalError"),ut}(Q,Lt,Jt),ut.domBuilder=at.domBuilder||Lt,At&&(et[""]=D.HTML),et.xml=et.xml||D.XML,U&&"string"==typeof U?ut.parse((at.normalizeLineEndings||le)(U),et,Ut):ut.errorHandler.error("invalid doc source"),Lt.doc},Ht.prototype={startDocument:function(){this.doc=(new Nt).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(U,A,at,ut){var Lt=this.doc,Q=Lt.createElementNS(U,at||A),Jt=ut.length;st(this,Q),this.currentElement=Q,this.locator&&Rt(this.locator,Q);for(var et=0;et{var X=ht(2834),Pt=X.find,Tt=X.NAMESPACE;function Wt(E){return""!==E}function Nt(E,I){return E.hasOwnProperty(I)||(E[I]=!0),E}function D(E){if(!E)return[];var I=function zt(E){return E?E.split(/[\t\n\f\r ]+/).filter(Wt):[]}(E);return Object.keys(I.reduce(Nt,{}))}function p(E,I){for(var lt in E)Object.prototype.hasOwnProperty.call(E,lt)&&(I[lt]=E[lt])}function le(E,I){var lt=E.prototype;if(!(lt instanceof I)){let be=function(){};be.prototype=I.prototype,be=new be,p(lt,be),E.prototype=lt=be}lt.constructor!=E&&("function"!=typeof E&&console.error("unknown Class:"+E),lt.constructor=E)}var ce={},qt=ce.ELEMENT_NODE=1,Ht=ce.ATTRIBUTE_NODE=2,Rt=ce.TEXT_NODE=3,he=ce.CDATA_SECTION_NODE=4,Gt=ce.ENTITY_REFERENCE_NODE=5,st=ce.ENTITY_NODE=6,U=ce.PROCESSING_INSTRUCTION_NODE=7,A=ce.COMMENT_NODE=8,at=ce.DOCUMENT_NODE=9,ut=ce.DOCUMENT_TYPE_NODE=10,Lt=ce.DOCUMENT_FRAGMENT_NODE=11,Q=ce.NOTATION_NODE=12,Jt={},et={},te=(Jt.INDEX_SIZE_ERR=(et[1]="Index size error",1),Jt.DOMSTRING_SIZE_ERR=(et[2]="DOMString size error",2),Jt.HIERARCHY_REQUEST_ERR=(et[3]="Hierarchy request error",3)),J=(Jt.WRONG_DOCUMENT_ERR=(et[4]="Wrong document",4),Jt.INVALID_CHARACTER_ERR=(et[5]="Invalid character",5),Jt.NO_DATA_ALLOWED_ERR=(et[6]="No data allowed",6),Jt.NO_MODIFICATION_ALLOWED_ERR=(et[7]="No modification allowed",7),Jt.NOT_FOUND_ERR=(et[8]="Not found",8)),rt=(Jt.NOT_SUPPORTED_ERR=(et[9]="Not supported",9),Jt.INUSE_ATTRIBUTE_ERR=(et[10]="Attribute in use",10));function Yt(E,I){if(I instanceof Error)var lt=I;else lt=this,Error.call(this,et[E]),this.message=et[E],Error.captureStackTrace&&Error.captureStackTrace(this,Yt);return lt.code=E,I&&(this.message=this.message+": "+I),lt}function ve(){}function r1(E,I){this._node=E,this._refresh=I,Qe(this)}function Qe(E){var I=E._node._inc||E._node.ownerDocument._inc;if(E._inc!==I){var lt=E._refresh(E._node);if(_2(E,"length",lt.length),!E.$$length||lt.length=0))throw new Yt(J,new Error(E.tagName+"@"+lt));for(var be=I.length-1;ne"==E&&">")||"&"==E&&"&"||'"'==E&&"""||""+E.charCodeAt()+";"}function nr(E,I){if(I(E))return!0;if(E=E.firstChild)do{if(nr(E,I))return!0}while(E=E.nextSibling)}function Er(){this.ownerDocument=this}function Yn(E,I,lt,ne){E&&E._inc++,lt.namespaceURI===Tt.XMLNS&&delete I._nsMap[lt.prefix?lt.localName:""]}function Xn(E,I,lt){if(E&&E._inc){E._inc++;var ne=I.childNodes;if(lt)ne[ne.length++]=lt;else{for(var be=I.firstChild,k1=0;be;)ne[k1++]=be,be=be.nextSibling;ne.length=k1,delete ne[ne.length]}}}function Go(E,I){var lt=I.previousSibling,ne=I.nextSibling;return lt?lt.nextSibling=ne:E.firstChild=ne,ne?ne.previousSibling=lt:E.lastChild=lt,I.parentNode=null,I.previousSibling=null,I.nextSibling=null,Xn(E.ownerDocument,E),I}function _n(E){return E&&E.nodeType===d1.DOCUMENT_TYPE_NODE}function Ln(E){return E&&E.nodeType===d1.ELEMENT_NODE}function no(E){return E&&E.nodeType===d1.TEXT_NODE}function Eo(E,I){var lt=E.childNodes||[];if(Pt(lt,Ln)||_n(I))return!1;var ne=Pt(lt,_n);return!(I&&ne&<.indexOf(ne)>lt.indexOf(I))}function P(E,I){var lt=E.childNodes||[];if(Pt(lt,function ne(k1){return Ln(k1)&&k1!==I}))return!1;var be=Pt(lt,_n);return!(I&&be&<.indexOf(be)>lt.indexOf(I))}function z(E,I,lt){var ne=E.childNodes||[],be=I.childNodes||[];if(I.nodeType===d1.DOCUMENT_FRAGMENT_NODE){var k1=be.filter(Ln);if(k1.length>1||Pt(be,no))throw new Yt(te,"More than one element or text in fragment");if(1===k1.length&&!Eo(E,lt))throw new Yt(te,"Element in fragment can not be inserted before doctype")}if(Ln(I)&&!Eo(E,lt))throw new Yt(te,"Only one element can be added and only after doctype");if(_n(I)){if(Pt(ne,_n))throw new Yt(te,"Only one doctype is allowed");var Ir=Pt(ne,Ln);if(lt&&ne.indexOf(Ir)1||Pt(be,no))throw new Yt(te,"More than one element or text in fragment");if(1===k1.length&&!P(E,lt))throw new Yt(te,"Element in fragment can not be inserted before doctype")}if(Ln(I)&&!P(E,lt))throw new Yt(te,"Only one element can be added and only after doctype");if(_n(I)){if(Pt(ne,function(N1){return _n(N1)&&N1!==lt}))throw new Yt(te,"Only one doctype is allowed");var Ir=Pt(ne,Ln);if(lt&&ne.indexOf(Ir)&"\t\n\r]/g,b1),'"')}function ho(E,I,lt,ne,be){if(be||(be=[]),ne){if(!(E=ne(E)))return;if("string"==typeof E)return void I.push(E)}switch(E.nodeType){case qt:var k1=E.attributes,Ir=k1.length,gr=E.firstChild,$r=E.tagName,cr=$r;if(!(lt=Tt.isHTML(E.namespaceURI)||lt)&&!E.prefix&&E.namespaceURI){for(var N1,Po=0;Po=0;zo--)if(""===(j2=be[zo]).prefix&&j2.namespace===E.namespaceURI){N1=j2.namespace;break}if(N1!==E.namespaceURI)for(zo=be.length-1;zo>=0;zo--){var j2;if((j2=be[zo]).namespace===E.namespaceURI){j2.prefix&&(cr=j2.prefix+":"+$r);break}}}I.push("<",cr);for(var P2=0;P2"),lt&&/^script$/i.test($r))for(;gr;)gr.data?I.push(gr.data):ho(gr,I,lt,ne,be.slice()),gr=gr.nextSibling;else for(;gr;)ho(gr,I,lt,ne,be.slice()),gr=gr.nextSibling;I.push("",cr,">")}else I.push("/>");return;case at:case Lt:for(gr=E.firstChild;gr;)ho(gr,I,lt,ne,be.slice()),gr=gr.nextSibling;return;case Ht:return as(I,E.name,E.value);case Rt:return I.push(E.data.replace(/[<&>]/g,b1));case he:return I.push("");case A:return I.push("\x3c!--",E.data,"--\x3e");case ut:var Vn=E.publicId,I1=E.systemId;if(I.push("");else if(I1&&"."!=I1)I.push(" SYSTEM ",I1,">");else{var Sn=E.internalSubset;Sn&&I.push(" [",Sn,"]"),I.push(">")}return;case U:return I.push("",E.target," ",E.data,"?>");case Gt:return I.push("&",E.nodeName,";");default:I.push("??",E.nodeName)}}function E2(E,I,lt){var ne;switch(I.nodeType){case qt:(ne=I.cloneNode(!1)).ownerDocument=E;case Lt:break;case Ht:lt=!0}if(ne||(ne=I.cloneNode(!1)),ne.ownerDocument=E,ne.parentNode=null,lt)for(var be=I.firstChild;be;)ne.appendChild(E2(E,be,lt)),be=be.nextSibling;return ne}function s2(E,I,lt){var ne=new I.constructor;for(var be in I)if(Object.prototype.hasOwnProperty.call(I,be)){var k1=I[be];"object"!=typeof k1&&k1!=ne[be]&&(ne[be]=k1)}switch(I.childNodes&&(ne.childNodes=new ve),ne.ownerDocument=E,ne.nodeType){case qt:var Ir=I.attributes,$r=ne.attributes=new Ge,cr=Ir.length;$r._ownerElement=ne;for(var N1=0;N1=0&&E0},lookupPrefix:function(E){for(var I=this;I;){var lt=I._nsMap;if(lt)for(var ne in lt)if(Object.prototype.hasOwnProperty.call(lt,ne)&<[ne]===E)return ne;I=I.nodeType==Ht?I.ownerDocument:I.parentNode}return null},lookupNamespaceURI:function(E){for(var I=this;I;){var lt=I._nsMap;if(lt&&Object.prototype.hasOwnProperty.call(lt,E))return lt[E];I=I.nodeType==Ht?I.ownerDocument:I.parentNode}return null},isDefaultNamespace:function(E){return null==this.lookupPrefix(E)}},p(ce,d1),p(ce,d1.prototype),Er.prototype={nodeName:"#document",nodeType:at,doctype:null,documentElement:null,_inc:1,insertBefore:function(E,I){if(E.nodeType==Lt){for(var lt=E.firstChild;lt;){var ne=lt.nextSibling;this.insertBefore(lt,I),lt=ne}return E}return Mt(this,E,I),E.ownerDocument=this,null===this.documentElement&&E.nodeType===qt&&(this.documentElement=E),E},removeChild:function(E){return this.documentElement==E&&(this.documentElement=null),Go(this,E)},replaceChild:function(E,I){Mt(this,E,I,W),E.ownerDocument=this,I&&this.removeChild(I),Ln(E)&&(this.documentElement=E)},importNode:function(E,I){return E2(this,E,I)},getElementById:function(E){var I=null;return nr(this.documentElement,function(lt){if(lt.nodeType==qt&<.getAttribute("id")==E)return I=lt,!0}),I},getElementsByClassName:function(E){var I=D(E);return new r1(this,function(lt){var ne=[];return I.length>0&&nr(lt.documentElement,function(be){if(be!==lt&&be.nodeType===qt){var k1=be.getAttribute("class");if(k1){var Ir=E===k1;if(!Ir){var $r=D(k1);Ir=I.every(function nt(E){return function(I){return E&&-1!==E.indexOf(I)}}($r))}Ir&&ne.push(be)}}}),ne})},createElement:function(E){var I=new $;return I.ownerDocument=this,I.nodeName=E,I.tagName=E,I.localName=E,I.childNodes=new ve,(I.attributes=new Ge)._ownerElement=I,I},createDocumentFragment:function(){var E=new o2;return E.ownerDocument=this,E.childNodes=new ve,E},createTextNode:function(E){var I=new a1;return I.ownerDocument=this,I.appendData(E),I},createComment:function(E){var I=new M1;return I.ownerDocument=this,I.appendData(E),I},createCDATASection:function(E){var I=new Ye;return I.ownerDocument=this,I.appendData(E),I},createProcessingInstruction:function(E,I){var lt=new jo;return lt.ownerDocument=this,lt.tagName=lt.nodeName=lt.target=E,lt.nodeValue=lt.data=I,lt},createAttribute:function(E){var I=new Et;return I.ownerDocument=this,I.name=E,I.nodeName=E,I.localName=E,I.specified=!0,I},createEntityReference:function(E){var I=new Yo;return I.ownerDocument=this,I.nodeName=E,I},createElementNS:function(E,I){var lt=new $,ne=I.split(":"),be=lt.attributes=new Ge;return lt.childNodes=new ve,lt.ownerDocument=this,lt.nodeName=I,lt.tagName=I,lt.namespaceURI=E,2==ne.length?(lt.prefix=ne[0],lt.localName=ne[1]):lt.localName=I,be._ownerElement=lt,lt},createAttributeNS:function(E,I){var lt=new Et,ne=I.split(":");return lt.ownerDocument=this,lt.nodeName=I,lt.name=I,lt.namespaceURI=E,lt.specified=!0,2==ne.length?(lt.prefix=ne[0],lt.localName=ne[1]):lt.localName=I,lt}},le(Er,d1),Er.prototype.getElementsByTagName=($.prototype={nodeType:qt,hasAttribute:function(E){return null!=this.getAttributeNode(E)},getAttribute:function(E){var I=this.getAttributeNode(E);return I&&I.value||""},getAttributeNode:function(E){return this.attributes.getNamedItem(E)},setAttribute:function(E,I){var lt=this.ownerDocument.createAttribute(E);lt.value=lt.nodeValue=""+I,this.setAttributeNode(lt)},removeAttribute:function(E){var I=this.getAttributeNode(E);I&&this.removeAttributeNode(I)},appendChild:function(E){return E.nodeType===Lt?this.insertBefore(E,null):function ee(E,I){return I.parentNode&&I.parentNode.removeChild(I),I.parentNode=E,I.previousSibling=E.lastChild,I.nextSibling=null,I.previousSibling?I.previousSibling.nextSibling=I:E.firstChild=I,E.lastChild=I,Xn(E.ownerDocument,E,I),I}(this,E)},setAttributeNode:function(E){return this.attributes.setNamedItem(E)},setAttributeNodeNS:function(E){return this.attributes.setNamedItemNS(E)},removeAttributeNode:function(E){return this.attributes.removeNamedItem(E.nodeName)},removeAttributeNS:function(E,I){var lt=this.getAttributeNodeNS(E,I);lt&&this.removeAttributeNode(lt)},hasAttributeNS:function(E,I){return null!=this.getAttributeNodeNS(E,I)},getAttributeNS:function(E,I){var lt=this.getAttributeNodeNS(E,I);return lt&<.value||""},setAttributeNS:function(E,I,lt){var ne=this.ownerDocument.createAttributeNS(E,I);ne.value=ne.nodeValue=""+lt,this.setAttributeNode(ne)},getAttributeNodeNS:function(E,I){return this.attributes.getNamedItemNS(E,I)},getElementsByTagName:function(E){return new r1(this,function(I){var lt=[];return nr(I,function(ne){ne!==I&&ne.nodeType==qt&&("*"===E||ne.tagName==E)&<.push(ne)}),lt})},getElementsByTagNameNS:function(E,I){return new r1(this,function(lt){var ne=[];return nr(lt,function(be){be!==lt&&be.nodeType===qt&&("*"===E||be.namespaceURI===E)&&("*"===I||be.localName==I)&&ne.push(be)}),ne})}}).getElementsByTagName,Er.prototype.getElementsByTagNameNS=$.prototype.getElementsByTagNameNS,le($,d1),Et.prototype.nodeType=Ht,le(Et,d1),l1.prototype={data:"",substringData:function(E,I){return this.data.substring(E,E+I)},appendData:function(E){this.nodeValue=this.data=E=this.data+E,this.length=E.length},insertData:function(E,I){this.replaceData(E,0,I)},appendChild:function(E){throw new Error(et[te])},deleteData:function(E,I){this.replaceData(E,I,"")},replaceData:function(E,I,lt){var ne=this.data.substring(0,E),be=this.data.substring(E+I);this.nodeValue=this.data=lt=ne+lt+be,this.length=lt.length}},le(l1,d1),a1.prototype={nodeName:"#text",nodeType:Rt,splitText:function(E){var I=this.data,lt=I.substring(E);I=I.substring(0,E),this.data=this.nodeValue=I,this.length=I.length;var ne=this.ownerDocument.createTextNode(lt);return this.parentNode&&this.parentNode.insertBefore(ne,this.nextSibling),ne}},le(a1,l1),M1.prototype={nodeName:"#comment",nodeType:A},le(M1,l1),Ye.prototype={nodeName:"#cdata-section",nodeType:he},le(Ye,l1),Ho.prototype.nodeType=ut,le(Ho,d1),n2.prototype.nodeType=Q,le(n2,d1),Fn.prototype.nodeType=st,le(Fn,d1),Yo.prototype.nodeType=Gt,le(Yo,d1),o2.prototype.nodeName="#document-fragment",o2.prototype.nodeType=Lt,le(o2,d1),jo.prototype.nodeType=U,le(jo,d1),On.prototype.serializeToString=function(E,I,lt){return k2.call(E,I,lt)},d1.prototype.toString=k2;try{if(Object.defineProperty){let E=function(I){switch(I.nodeType){case qt:case Lt:var lt=[];for(I=I.firstChild;I;)7!==I.nodeType&&8!==I.nodeType&<.push(E(I)),I=I.nextSibling;return lt.join("");default:return I.nodeValue}};Object.defineProperty(r1.prototype,"length",{get:function(){return Qe(this),this.$$length}}),Object.defineProperty(d1.prototype,"textContent",{get:function(){return E(this)},set:function(I){switch(this.nodeType){case qt:case Lt:for(;this.firstChild;)this.removeChild(this.firstChild);(I||String(I))&&this.appendChild(this.ownerDocument.createTextNode(I));break;default:this.data=I,this.value=I,this.nodeValue=I}}}),_2=function(I,lt,ne){I["$$"+lt]=ne}}}catch{}ae.DocumentType=Ho,ae.DOMException=Yt,ae.DOMImplementation=X1,ae.Element=$,ae.Node=d1,ae.NodeList=ve,ae.XMLSerializer=On},6443:(pe,ae,ht)=>{"use strict";var X=ht(2834).freeze;ae.XML_ENTITIES=X({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),ae.HTML_ENTITIES=X({Aacute:"\xc1",aacute:"\xe1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223e",acd:"\u223f",acE:"\u223e\u0333",Acirc:"\xc2",acirc:"\xe2",acute:"\xb4",Acy:"\u0410",acy:"\u0430",AElig:"\xc6",aelig:"\xe6",af:"\u2061",Afr:"\u{1d504}",afr:"\u{1d51e}",Agrave:"\xc0",agrave:"\xe0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03b1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2a3f",AMP:"&",amp:"&",And:"\u2a53",and:"\u2227",andand:"\u2a55",andd:"\u2a5c",andslope:"\u2a58",andv:"\u2a5a",ang:"\u2220",ange:"\u29a4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29a8",angmsdab:"\u29a9",angmsdac:"\u29aa",angmsdad:"\u29ab",angmsdae:"\u29ac",angmsdaf:"\u29ad",angmsdag:"\u29ae",angmsdah:"\u29af",angrt:"\u221f",angrtvb:"\u22be",angrtvbd:"\u299d",angsph:"\u2222",angst:"\xc5",angzarr:"\u237c",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1d538}",aopf:"\u{1d552}",ap:"\u2248",apacir:"\u2a6f",apE:"\u2a70",ape:"\u224a",apid:"\u224b",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224a",Aring:"\xc5",aring:"\xe5",Ascr:"\u{1d49c}",ascr:"\u{1d4b6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224d",Atilde:"\xc3",atilde:"\xe3",Auml:"\xc4",auml:"\xe4",awconint:"\u2233",awint:"\u2a11",backcong:"\u224c",backepsilon:"\u03f6",backprime:"\u2035",backsim:"\u223d",backsimeq:"\u22cd",Backslash:"\u2216",Barv:"\u2ae7",barvee:"\u22bd",Barwed:"\u2306",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23b5",bbrktbrk:"\u23b6",bcong:"\u224c",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201e",becaus:"\u2235",Because:"\u2235",because:"\u2235",bemptyv:"\u29b0",bepsi:"\u03f6",bernou:"\u212c",Bernoullis:"\u212c",Beta:"\u0392",beta:"\u03b2",beth:"\u2136",between:"\u226c",Bfr:"\u{1d505}",bfr:"\u{1d51f}",bigcap:"\u22c2",bigcirc:"\u25ef",bigcup:"\u22c3",bigodot:"\u2a00",bigoplus:"\u2a01",bigotimes:"\u2a02",bigsqcup:"\u2a06",bigstar:"\u2605",bigtriangledown:"\u25bd",bigtriangleup:"\u25b3",biguplus:"\u2a04",bigvee:"\u22c1",bigwedge:"\u22c0",bkarow:"\u290d",blacklozenge:"\u29eb",blacksquare:"\u25aa",blacktriangle:"\u25b4",blacktriangledown:"\u25be",blacktriangleleft:"\u25c2",blacktriangleright:"\u25b8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20e5",bnequiv:"\u2261\u20e5",bNot:"\u2aed",bnot:"\u2310",Bopf:"\u{1d539}",bopf:"\u{1d553}",bot:"\u22a5",bottom:"\u22a5",bowtie:"\u22c8",boxbox:"\u29c9",boxDL:"\u2557",boxDl:"\u2556",boxdL:"\u2555",boxdl:"\u2510",boxDR:"\u2554",boxDr:"\u2553",boxdR:"\u2552",boxdr:"\u250c",boxH:"\u2550",boxh:"\u2500",boxHD:"\u2566",boxHd:"\u2564",boxhD:"\u2565",boxhd:"\u252c",boxHU:"\u2569",boxHu:"\u2567",boxhU:"\u2568",boxhu:"\u2534",boxminus:"\u229f",boxplus:"\u229e",boxtimes:"\u22a0",boxUL:"\u255d",boxUl:"\u255c",boxuL:"\u255b",boxul:"\u2518",boxUR:"\u255a",boxUr:"\u2559",boxuR:"\u2558",boxur:"\u2514",boxV:"\u2551",boxv:"\u2502",boxVH:"\u256c",boxVh:"\u256b",boxvH:"\u256a",boxvh:"\u253c",boxVL:"\u2563",boxVl:"\u2562",boxvL:"\u2561",boxvl:"\u2524",boxVR:"\u2560",boxVr:"\u255f",boxvR:"\u255e",boxvr:"\u251c",bprime:"\u2035",Breve:"\u02d8",breve:"\u02d8",brvbar:"\xa6",Bscr:"\u212c",bscr:"\u{1d4b7}",bsemi:"\u204f",bsim:"\u223d",bsime:"\u22cd",bsol:"\\",bsolb:"\u29c5",bsolhsub:"\u27c8",bull:"\u2022",bullet:"\u2022",bump:"\u224e",bumpE:"\u2aae",bumpe:"\u224f",Bumpeq:"\u224e",bumpeq:"\u224f",Cacute:"\u0106",cacute:"\u0107",Cap:"\u22d2",cap:"\u2229",capand:"\u2a44",capbrcup:"\u2a49",capcap:"\u2a4b",capcup:"\u2a47",capdot:"\u2a40",CapitalDifferentialD:"\u2145",caps:"\u2229\ufe00",caret:"\u2041",caron:"\u02c7",Cayleys:"\u212d",ccaps:"\u2a4d",Ccaron:"\u010c",ccaron:"\u010d",Ccedil:"\xc7",ccedil:"\xe7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2a4c",ccupssm:"\u2a50",Cdot:"\u010a",cdot:"\u010b",cedil:"\xb8",Cedilla:"\xb8",cemptyv:"\u29b2",cent:"\xa2",CenterDot:"\xb7",centerdot:"\xb7",Cfr:"\u212d",cfr:"\u{1d520}",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03a7",chi:"\u03c7",cir:"\u25cb",circ:"\u02c6",circeq:"\u2257",circlearrowleft:"\u21ba",circlearrowright:"\u21bb",circledast:"\u229b",circledcirc:"\u229a",circleddash:"\u229d",CircleDot:"\u2299",circledR:"\xae",circledS:"\u24c8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cirE:"\u29c3",cire:"\u2257",cirfnint:"\u2a10",cirmid:"\u2aef",cirscir:"\u29c2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201d",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",Colon:"\u2237",colon:":",Colone:"\u2a74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2a6d",Congruent:"\u2261",Conint:"\u222f",conint:"\u222e",ContourIntegral:"\u222e",Copf:"\u2102",copf:"\u{1d554}",coprod:"\u2210",Coproduct:"\u2210",COPY:"\xa9",copy:"\xa9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21b5",Cross:"\u2a2f",cross:"\u2717",Cscr:"\u{1d49e}",cscr:"\u{1d4b8}",csub:"\u2acf",csube:"\u2ad1",csup:"\u2ad0",csupe:"\u2ad2",ctdot:"\u22ef",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22de",cuesc:"\u22df",cularr:"\u21b6",cularrp:"\u293d",Cup:"\u22d3",cup:"\u222a",cupbrcap:"\u2a48",CupCap:"\u224d",cupcap:"\u2a46",cupcup:"\u2a4a",cupdot:"\u228d",cupor:"\u2a45",cups:"\u222a\ufe00",curarr:"\u21b7",curarrm:"\u293c",curlyeqprec:"\u22de",curlyeqsucc:"\u22df",curlyvee:"\u22ce",curlywedge:"\u22cf",curren:"\xa4",curvearrowleft:"\u21b6",curvearrowright:"\u21b7",cuvee:"\u22ce",cuwed:"\u22cf",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232d",Dagger:"\u2021",dagger:"\u2020",daleth:"\u2138",Darr:"\u21a1",dArr:"\u21d3",darr:"\u2193",dash:"\u2010",Dashv:"\u2ae4",dashv:"\u22a3",dbkarow:"\u290f",dblac:"\u02dd",Dcaron:"\u010e",dcaron:"\u010f",Dcy:"\u0414",dcy:"\u0434",DD:"\u2145",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21ca",DDotrahd:"\u2911",ddotseq:"\u2a77",deg:"\xb0",Del:"\u2207",Delta:"\u0394",delta:"\u03b4",demptyv:"\u29b1",dfisht:"\u297f",Dfr:"\u{1d507}",dfr:"\u{1d521}",dHar:"\u2965",dharl:"\u21c3",dharr:"\u21c2",DiacriticalAcute:"\xb4",DiacriticalDot:"\u02d9",DiacriticalDoubleAcute:"\u02dd",DiacriticalGrave:"`",DiacriticalTilde:"\u02dc",diam:"\u22c4",Diamond:"\u22c4",diamond:"\u22c4",diamondsuit:"\u2666",diams:"\u2666",die:"\xa8",DifferentialD:"\u2146",digamma:"\u03dd",disin:"\u22f2",div:"\xf7",divide:"\xf7",divideontimes:"\u22c7",divonx:"\u22c7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231e",dlcrop:"\u230d",dollar:"$",Dopf:"\u{1d53b}",dopf:"\u{1d555}",Dot:"\xa8",dot:"\u02d9",DotDot:"\u20dc",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22a1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222f",DoubleDot:"\xa8",DoubleDownArrow:"\u21d3",DoubleLeftArrow:"\u21d0",DoubleLeftRightArrow:"\u21d4",DoubleLeftTee:"\u2ae4",DoubleLongLeftArrow:"\u27f8",DoubleLongLeftRightArrow:"\u27fa",DoubleLongRightArrow:"\u27f9",DoubleRightArrow:"\u21d2",DoubleRightTee:"\u22a8",DoubleUpArrow:"\u21d1",DoubleUpDownArrow:"\u21d5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",Downarrow:"\u21d3",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21f5",DownBreve:"\u0311",downdownarrows:"\u21ca",downharpoonleft:"\u21c3",downharpoonright:"\u21c2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295e",DownLeftVector:"\u21bd",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295f",DownRightVector:"\u21c1",DownRightVectorBar:"\u2957",DownTee:"\u22a4",DownTeeArrow:"\u21a7",drbkarow:"\u2910",drcorn:"\u231f",drcrop:"\u230c",Dscr:"\u{1d49f}",dscr:"\u{1d4b9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29f6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22f1",dtri:"\u25bf",dtrif:"\u25be",duarr:"\u21f5",duhar:"\u296f",dwangle:"\u29a6",DZcy:"\u040f",dzcy:"\u045f",dzigrarr:"\u27ff",Eacute:"\xc9",eacute:"\xe9",easter:"\u2a6e",Ecaron:"\u011a",ecaron:"\u011b",ecir:"\u2256",Ecirc:"\xca",ecirc:"\xea",ecolon:"\u2255",Ecy:"\u042d",ecy:"\u044d",eDDot:"\u2a77",Edot:"\u0116",eDot:"\u2251",edot:"\u0117",ee:"\u2147",efDot:"\u2252",Efr:"\u{1d508}",efr:"\u{1d522}",eg:"\u2a9a",Egrave:"\xc8",egrave:"\xe8",egs:"\u2a96",egsdot:"\u2a98",el:"\u2a99",Element:"\u2208",elinters:"\u23e7",ell:"\u2113",els:"\u2a95",elsdot:"\u2a97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25fb",emptyv:"\u2205",EmptyVerySmallSquare:"\u25ab",emsp:"\u2003",emsp13:"\u2004",emsp14:"\u2005",ENG:"\u014a",eng:"\u014b",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1d53c}",eopf:"\u{1d556}",epar:"\u22d5",eparsl:"\u29e3",eplus:"\u2a71",epsi:"\u03b5",Epsilon:"\u0395",epsilon:"\u03b5",epsiv:"\u03f5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2a96",eqslantless:"\u2a95",Equal:"\u2a75",equals:"=",EqualTilde:"\u2242",equest:"\u225f",Equilibrium:"\u21cc",equiv:"\u2261",equivDD:"\u2a78",eqvparsl:"\u29e5",erarr:"\u2971",erDot:"\u2253",Escr:"\u2130",escr:"\u212f",esdot:"\u2250",Esim:"\u2a73",esim:"\u2242",Eta:"\u0397",eta:"\u03b7",ETH:"\xd0",eth:"\xf0",Euml:"\xcb",euml:"\xeb",euro:"\u20ac",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",ExponentialE:"\u2147",exponentiale:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\ufb03",fflig:"\ufb00",ffllig:"\ufb04",Ffr:"\u{1d509}",ffr:"\u{1d523}",filig:"\ufb01",FilledSmallSquare:"\u25fc",FilledVerySmallSquare:"\u25aa",fjlig:"fj",flat:"\u266d",fllig:"\ufb02",fltns:"\u25b1",fnof:"\u0192",Fopf:"\u{1d53d}",fopf:"\u{1d557}",ForAll:"\u2200",forall:"\u2200",fork:"\u22d4",forkv:"\u2ad9",Fouriertrf:"\u2131",fpartint:"\u2a0d",frac12:"\xbd",frac13:"\u2153",frac14:"\xbc",frac15:"\u2155",frac16:"\u2159",frac18:"\u215b",frac23:"\u2154",frac25:"\u2156",frac34:"\xbe",frac35:"\u2157",frac38:"\u215c",frac45:"\u2158",frac56:"\u215a",frac58:"\u215d",frac78:"\u215e",frasl:"\u2044",frown:"\u2322",Fscr:"\u2131",fscr:"\u{1d4bb}",gacute:"\u01f5",Gamma:"\u0393",gamma:"\u03b3",Gammad:"\u03dc",gammad:"\u03dd",gap:"\u2a86",Gbreve:"\u011e",gbreve:"\u011f",Gcedil:"\u0122",Gcirc:"\u011c",gcirc:"\u011d",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",gE:"\u2267",ge:"\u2265",gEl:"\u2a8c",gel:"\u22db",geq:"\u2265",geqq:"\u2267",geqslant:"\u2a7e",ges:"\u2a7e",gescc:"\u2aa9",gesdot:"\u2a80",gesdoto:"\u2a82",gesdotol:"\u2a84",gesl:"\u22db\ufe00",gesles:"\u2a94",Gfr:"\u{1d50a}",gfr:"\u{1d524}",Gg:"\u22d9",gg:"\u226b",ggg:"\u22d9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gl:"\u2277",gla:"\u2aa5",glE:"\u2a92",glj:"\u2aa4",gnap:"\u2a8a",gnapprox:"\u2a8a",gnE:"\u2269",gne:"\u2a88",gneq:"\u2a88",gneqq:"\u2269",gnsim:"\u22e7",Gopf:"\u{1d53e}",gopf:"\u{1d558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22db",GreaterFullEqual:"\u2267",GreaterGreater:"\u2aa2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2a7e",GreaterTilde:"\u2273",Gscr:"\u{1d4a2}",gscr:"\u210a",gsim:"\u2273",gsime:"\u2a8e",gsiml:"\u2a90",Gt:"\u226b",GT:">",gt:">",gtcc:"\u2aa7",gtcir:"\u2a7a",gtdot:"\u22d7",gtlPar:"\u2995",gtquest:"\u2a7c",gtrapprox:"\u2a86",gtrarr:"\u2978",gtrdot:"\u22d7",gtreqless:"\u22db",gtreqqless:"\u2a8c",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\ufe00",gvnE:"\u2269\ufe00",Hacek:"\u02c7",hairsp:"\u200a",half:"\xbd",hamilt:"\u210b",HARDcy:"\u042a",hardcy:"\u044a",hArr:"\u21d4",harr:"\u2194",harrcir:"\u2948",harrw:"\u21ad",Hat:"^",hbar:"\u210f",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22b9",Hfr:"\u210c",hfr:"\u{1d525}",HilbertSpace:"\u210b",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21ff",homtht:"\u223b",hookleftarrow:"\u21a9",hookrightarrow:"\u21aa",Hopf:"\u210d",hopf:"\u{1d559}",horbar:"\u2015",HorizontalLine:"\u2500",Hscr:"\u210b",hscr:"\u{1d4bd}",hslash:"\u210f",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224e",HumpEqual:"\u224f",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xcd",iacute:"\xed",ic:"\u2063",Icirc:"\xce",icirc:"\xee",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xa1",iff:"\u21d4",Ifr:"\u2111",ifr:"\u{1d526}",Igrave:"\xcc",igrave:"\xec",ii:"\u2148",iiiint:"\u2a0c",iiint:"\u222d",iinfin:"\u29dc",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Im:"\u2111",Imacr:"\u012a",imacr:"\u012b",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22b7",imped:"\u01b5",Implies:"\u21d2",in:"\u2208",incare:"\u2105",infin:"\u221e",infintie:"\u29dd",inodot:"\u0131",Int:"\u222c",int:"\u222b",intcal:"\u22ba",integers:"\u2124",Integral:"\u222b",intercal:"\u22ba",Intersection:"\u22c2",intlarhk:"\u2a17",intprod:"\u2a3c",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012e",iogon:"\u012f",Iopf:"\u{1d540}",iopf:"\u{1d55a}",Iota:"\u0399",iota:"\u03b9",iprod:"\u2a3c",iquest:"\xbf",Iscr:"\u2110",iscr:"\u{1d4be}",isin:"\u2208",isindot:"\u22f5",isinE:"\u22f9",isins:"\u22f4",isinsv:"\u22f3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xcf",iuml:"\xef",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1d50d}",jfr:"\u{1d527}",jmath:"\u0237",Jopf:"\u{1d541}",jopf:"\u{1d55b}",Jscr:"\u{1d4a5}",jscr:"\u{1d4bf}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039a",kappa:"\u03ba",kappav:"\u03f0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041a",kcy:"\u043a",Kfr:"\u{1d50e}",kfr:"\u{1d528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040c",kjcy:"\u045c",Kopf:"\u{1d542}",kopf:"\u{1d55c}",Kscr:"\u{1d4a6}",kscr:"\u{1d4c0}",lAarr:"\u21da",Lacute:"\u0139",lacute:"\u013a",laemptyv:"\u29b4",lagran:"\u2112",Lambda:"\u039b",lambda:"\u03bb",Lang:"\u27ea",lang:"\u27e8",langd:"\u2991",langle:"\u27e8",lap:"\u2a85",Laplacetrf:"\u2112",laquo:"\xab",Larr:"\u219e",lArr:"\u21d0",larr:"\u2190",larrb:"\u21e4",larrbfs:"\u291f",larrfs:"\u291d",larrhk:"\u21a9",larrlp:"\u21ab",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21a2",lat:"\u2aab",lAtail:"\u291b",latail:"\u2919",late:"\u2aad",lates:"\u2aad\ufe00",lBarr:"\u290e",lbarr:"\u290c",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298b",lbrksld:"\u298f",lbrkslu:"\u298d",Lcaron:"\u013d",lcaron:"\u013e",Lcedil:"\u013b",lcedil:"\u013c",lceil:"\u2308",lcub:"{",Lcy:"\u041b",lcy:"\u043b",ldca:"\u2936",ldquo:"\u201c",ldquor:"\u201e",ldrdhar:"\u2967",ldrushar:"\u294b",ldsh:"\u21b2",lE:"\u2266",le:"\u2264",LeftAngleBracket:"\u27e8",LeftArrow:"\u2190",Leftarrow:"\u21d0",leftarrow:"\u2190",LeftArrowBar:"\u21e4",LeftArrowRightArrow:"\u21c6",leftarrowtail:"\u21a2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27e6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21c3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230a",leftharpoondown:"\u21bd",leftharpoonup:"\u21bc",leftleftarrows:"\u21c7",LeftRightArrow:"\u2194",Leftrightarrow:"\u21d4",leftrightarrow:"\u2194",leftrightarrows:"\u21c6",leftrightharpoons:"\u21cb",leftrightsquigarrow:"\u21ad",LeftRightVector:"\u294e",LeftTee:"\u22a3",LeftTeeArrow:"\u21a4",LeftTeeVector:"\u295a",leftthreetimes:"\u22cb",LeftTriangle:"\u22b2",LeftTriangleBar:"\u29cf",LeftTriangleEqual:"\u22b4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21bf",LeftUpVectorBar:"\u2958",LeftVector:"\u21bc",LeftVectorBar:"\u2952",lEg:"\u2a8b",leg:"\u22da",leq:"\u2264",leqq:"\u2266",leqslant:"\u2a7d",les:"\u2a7d",lescc:"\u2aa8",lesdot:"\u2a7f",lesdoto:"\u2a81",lesdotor:"\u2a83",lesg:"\u22da\ufe00",lesges:"\u2a93",lessapprox:"\u2a85",lessdot:"\u22d6",lesseqgtr:"\u22da",lesseqqgtr:"\u2a8b",LessEqualGreater:"\u22da",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2aa1",lesssim:"\u2272",LessSlantEqual:"\u2a7d",LessTilde:"\u2272",lfisht:"\u297c",lfloor:"\u230a",Lfr:"\u{1d50f}",lfr:"\u{1d529}",lg:"\u2276",lgE:"\u2a91",lHar:"\u2962",lhard:"\u21bd",lharu:"\u21bc",lharul:"\u296a",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",Ll:"\u22d8",ll:"\u226a",llarr:"\u21c7",llcorner:"\u231e",Lleftarrow:"\u21da",llhard:"\u296b",lltri:"\u25fa",Lmidot:"\u013f",lmidot:"\u0140",lmoust:"\u23b0",lmoustache:"\u23b0",lnap:"\u2a89",lnapprox:"\u2a89",lnE:"\u2268",lne:"\u2a87",lneq:"\u2a87",lneqq:"\u2268",lnsim:"\u22e6",loang:"\u27ec",loarr:"\u21fd",lobrk:"\u27e6",LongLeftArrow:"\u27f5",Longleftarrow:"\u27f8",longleftarrow:"\u27f5",LongLeftRightArrow:"\u27f7",Longleftrightarrow:"\u27fa",longleftrightarrow:"\u27f7",longmapsto:"\u27fc",LongRightArrow:"\u27f6",Longrightarrow:"\u27f9",longrightarrow:"\u27f6",looparrowleft:"\u21ab",looparrowright:"\u21ac",lopar:"\u2985",Lopf:"\u{1d543}",lopf:"\u{1d55d}",loplus:"\u2a2d",lotimes:"\u2a34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25ca",lozenge:"\u25ca",lozf:"\u29eb",lpar:"(",lparlt:"\u2993",lrarr:"\u21c6",lrcorner:"\u231f",lrhar:"\u21cb",lrhard:"\u296d",lrm:"\u200e",lrtri:"\u22bf",lsaquo:"\u2039",Lscr:"\u2112",lscr:"\u{1d4c1}",Lsh:"\u21b0",lsh:"\u21b0",lsim:"\u2272",lsime:"\u2a8d",lsimg:"\u2a8f",lsqb:"[",lsquo:"\u2018",lsquor:"\u201a",Lstrok:"\u0141",lstrok:"\u0142",Lt:"\u226a",LT:"<",lt:"<",ltcc:"\u2aa6",ltcir:"\u2a79",ltdot:"\u22d6",lthree:"\u22cb",ltimes:"\u22c9",ltlarr:"\u2976",ltquest:"\u2a7b",ltri:"\u25c3",ltrie:"\u22b4",ltrif:"\u25c2",ltrPar:"\u2996",lurdshar:"\u294a",luruhar:"\u2966",lvertneqq:"\u2268\ufe00",lvnE:"\u2268\ufe00",macr:"\xaf",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21a6",mapsto:"\u21a6",mapstodown:"\u21a7",mapstoleft:"\u21a4",mapstoup:"\u21a5",marker:"\u25ae",mcomma:"\u2a29",Mcy:"\u041c",mcy:"\u043c",mdash:"\u2014",mDDot:"\u223a",measuredangle:"\u2221",MediumSpace:"\u205f",Mellintrf:"\u2133",Mfr:"\u{1d510}",mfr:"\u{1d52a}",mho:"\u2127",micro:"\xb5",mid:"\u2223",midast:"*",midcir:"\u2af0",middot:"\xb7",minus:"\u2212",minusb:"\u229f",minusd:"\u2238",minusdu:"\u2a2a",MinusPlus:"\u2213",mlcp:"\u2adb",mldr:"\u2026",mnplus:"\u2213",models:"\u22a7",Mopf:"\u{1d544}",mopf:"\u{1d55e}",mp:"\u2213",Mscr:"\u2133",mscr:"\u{1d4c2}",mstpos:"\u223e",Mu:"\u039c",mu:"\u03bc",multimap:"\u22b8",mumap:"\u22b8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20d2",nap:"\u2249",napE:"\u2a70\u0338",napid:"\u224b\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266e",natural:"\u266e",naturals:"\u2115",nbsp:"\xa0",nbump:"\u224e\u0338",nbumpe:"\u224f\u0338",ncap:"\u2a43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2a6d\u0338",ncup:"\u2a42",Ncy:"\u041d",ncy:"\u043d",ndash:"\u2013",ne:"\u2260",nearhk:"\u2924",neArr:"\u21d7",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200b",NegativeThickSpace:"\u200b",NegativeThinSpace:"\u200b",NegativeVeryThinSpace:"\u200b",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226b",NestedLessLess:"\u226a",NewLine:"\n",nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1d511}",nfr:"\u{1d52b}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2a7e\u0338",nges:"\u2a7e\u0338",nGg:"\u22d9\u0338",ngsim:"\u2275",nGt:"\u226b\u20d2",ngt:"\u226f",ngtr:"\u226f",nGtv:"\u226b\u0338",nhArr:"\u21ce",nharr:"\u21ae",nhpar:"\u2af2",ni:"\u220b",nis:"\u22fc",nisd:"\u22fa",niv:"\u220b",NJcy:"\u040a",njcy:"\u045a",nlArr:"\u21cd",nlarr:"\u219a",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nLeftarrow:"\u21cd",nleftarrow:"\u219a",nLeftrightarrow:"\u21ce",nleftrightarrow:"\u21ae",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2a7d\u0338",nles:"\u2a7d\u0338",nless:"\u226e",nLl:"\u22d8\u0338",nlsim:"\u2274",nLt:"\u226a\u20d2",nlt:"\u226e",nltri:"\u22ea",nltrie:"\u22ec",nLtv:"\u226a\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xa0",Nopf:"\u2115",nopf:"\u{1d55f}",Not:"\u2aec",not:"\xac",NotCongruent:"\u2262",NotCupCap:"\u226d",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226f",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226b\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2a7e\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224e\u0338",NotHumpEqual:"\u224f\u0338",notin:"\u2209",notindot:"\u22f5\u0338",notinE:"\u22f9\u0338",notinva:"\u2209",notinvb:"\u22f7",notinvc:"\u22f6",NotLeftTriangle:"\u22ea",NotLeftTriangleBar:"\u29cf\u0338",NotLeftTriangleEqual:"\u22ec",NotLess:"\u226e",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226a\u0338",NotLessSlantEqual:"\u2a7d\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2aa2\u0338",NotNestedLessLess:"\u2aa1\u0338",notni:"\u220c",notniva:"\u220c",notnivb:"\u22fe",notnivc:"\u22fd",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2aaf\u0338",NotPrecedesSlantEqual:"\u22e0",NotReverseElement:"\u220c",NotRightTriangle:"\u22eb",NotRightTriangleBar:"\u29d0\u0338",NotRightTriangleEqual:"\u22ed",NotSquareSubset:"\u228f\u0338",NotSquareSubsetEqual:"\u22e2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22e3",NotSubset:"\u2282\u20d2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2ab0\u0338",NotSucceedsSlantEqual:"\u22e1",NotSucceedsTilde:"\u227f\u0338",NotSuperset:"\u2283\u20d2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2afd\u20e5",npart:"\u2202\u0338",npolint:"\u2a14",npr:"\u2280",nprcue:"\u22e0",npre:"\u2aaf\u0338",nprec:"\u2280",npreceq:"\u2aaf\u0338",nrArr:"\u21cf",nrarr:"\u219b",nrarrc:"\u2933\u0338",nrarrw:"\u219d\u0338",nRightarrow:"\u21cf",nrightarrow:"\u219b",nrtri:"\u22eb",nrtrie:"\u22ed",nsc:"\u2281",nsccue:"\u22e1",nsce:"\u2ab0\u0338",Nscr:"\u{1d4a9}",nscr:"\u{1d4c3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22e2",nsqsupe:"\u22e3",nsub:"\u2284",nsubE:"\u2ac5\u0338",nsube:"\u2288",nsubset:"\u2282\u20d2",nsubseteq:"\u2288",nsubseteqq:"\u2ac5\u0338",nsucc:"\u2281",nsucceq:"\u2ab0\u0338",nsup:"\u2285",nsupE:"\u2ac6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20d2",nsupseteq:"\u2289",nsupseteqq:"\u2ac6\u0338",ntgl:"\u2279",Ntilde:"\xd1",ntilde:"\xf1",ntlg:"\u2278",ntriangleleft:"\u22ea",ntrianglelefteq:"\u22ec",ntriangleright:"\u22eb",ntrianglerighteq:"\u22ed",Nu:"\u039d",nu:"\u03bd",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224d\u20d2",nVDash:"\u22af",nVdash:"\u22ae",nvDash:"\u22ad",nvdash:"\u22ac",nvge:"\u2265\u20d2",nvgt:">\u20d2",nvHarr:"\u2904",nvinfin:"\u29de",nvlArr:"\u2902",nvle:"\u2264\u20d2",nvlt:"<\u20d2",nvltrie:"\u22b4\u20d2",nvrArr:"\u2903",nvrtrie:"\u22b5\u20d2",nvsim:"\u223c\u20d2",nwarhk:"\u2923",nwArr:"\u21d6",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xd3",oacute:"\xf3",oast:"\u229b",ocir:"\u229a",Ocirc:"\xd4",ocirc:"\xf4",Ocy:"\u041e",ocy:"\u043e",odash:"\u229d",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2a38",odot:"\u2299",odsold:"\u29bc",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29bf",Ofr:"\u{1d512}",ofr:"\u{1d52c}",ogon:"\u02db",Ograve:"\xd2",ograve:"\xf2",ogt:"\u29c1",ohbar:"\u29b5",ohm:"\u03a9",oint:"\u222e",olarr:"\u21ba",olcir:"\u29be",olcross:"\u29bb",oline:"\u203e",olt:"\u29c0",Omacr:"\u014c",omacr:"\u014d",Omega:"\u03a9",omega:"\u03c9",Omicron:"\u039f",omicron:"\u03bf",omid:"\u29b6",ominus:"\u2296",Oopf:"\u{1d546}",oopf:"\u{1d560}",opar:"\u29b7",OpenCurlyDoubleQuote:"\u201c",OpenCurlyQuote:"\u2018",operp:"\u29b9",oplus:"\u2295",Or:"\u2a54",or:"\u2228",orarr:"\u21bb",ord:"\u2a5d",order:"\u2134",orderof:"\u2134",ordf:"\xaa",ordm:"\xba",origof:"\u22b6",oror:"\u2a56",orslope:"\u2a57",orv:"\u2a5b",oS:"\u24c8",Oscr:"\u{1d4aa}",oscr:"\u2134",Oslash:"\xd8",oslash:"\xf8",osol:"\u2298",Otilde:"\xd5",otilde:"\xf5",Otimes:"\u2a37",otimes:"\u2297",otimesas:"\u2a36",Ouml:"\xd6",ouml:"\xf6",ovbar:"\u233d",OverBar:"\u203e",OverBrace:"\u23de",OverBracket:"\u23b4",OverParenthesis:"\u23dc",par:"\u2225",para:"\xb6",parallel:"\u2225",parsim:"\u2af3",parsl:"\u2afd",part:"\u2202",PartialD:"\u2202",Pcy:"\u041f",pcy:"\u043f",percnt:"%",period:".",permil:"\u2030",perp:"\u22a5",pertenk:"\u2031",Pfr:"\u{1d513}",pfr:"\u{1d52d}",Phi:"\u03a6",phi:"\u03c6",phiv:"\u03d5",phmmat:"\u2133",phone:"\u260e",Pi:"\u03a0",pi:"\u03c0",pitchfork:"\u22d4",piv:"\u03d6",planck:"\u210f",planckh:"\u210e",plankv:"\u210f",plus:"+",plusacir:"\u2a23",plusb:"\u229e",pluscir:"\u2a22",plusdo:"\u2214",plusdu:"\u2a25",pluse:"\u2a72",PlusMinus:"\xb1",plusmn:"\xb1",plussim:"\u2a26",plustwo:"\u2a27",pm:"\xb1",Poincareplane:"\u210c",pointint:"\u2a15",Popf:"\u2119",popf:"\u{1d561}",pound:"\xa3",Pr:"\u2abb",pr:"\u227a",prap:"\u2ab7",prcue:"\u227c",prE:"\u2ab3",pre:"\u2aaf",prec:"\u227a",precapprox:"\u2ab7",preccurlyeq:"\u227c",Precedes:"\u227a",PrecedesEqual:"\u2aaf",PrecedesSlantEqual:"\u227c",PrecedesTilde:"\u227e",preceq:"\u2aaf",precnapprox:"\u2ab9",precneqq:"\u2ab5",precnsim:"\u22e8",precsim:"\u227e",Prime:"\u2033",prime:"\u2032",primes:"\u2119",prnap:"\u2ab9",prnE:"\u2ab5",prnsim:"\u22e8",prod:"\u220f",Product:"\u220f",profalar:"\u232e",profline:"\u2312",profsurf:"\u2313",prop:"\u221d",Proportion:"\u2237",Proportional:"\u221d",propto:"\u221d",prsim:"\u227e",prurel:"\u22b0",Pscr:"\u{1d4ab}",pscr:"\u{1d4c5}",Psi:"\u03a8",psi:"\u03c8",puncsp:"\u2008",Qfr:"\u{1d514}",qfr:"\u{1d52e}",qint:"\u2a0c",Qopf:"\u211a",qopf:"\u{1d562}",qprime:"\u2057",Qscr:"\u{1d4ac}",qscr:"\u{1d4c6}",quaternions:"\u210d",quatint:"\u2a16",quest:"?",questeq:"\u225f",QUOT:'"',quot:'"',rAarr:"\u21db",race:"\u223d\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221a",raemptyv:"\u29b3",Rang:"\u27eb",rang:"\u27e9",rangd:"\u2992",range:"\u29a5",rangle:"\u27e9",raquo:"\xbb",Rarr:"\u21a0",rArr:"\u21d2",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21e5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291e",rarrhk:"\u21aa",rarrlp:"\u21ac",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21a3",rarrw:"\u219d",rAtail:"\u291c",ratail:"\u291a",ratio:"\u2236",rationals:"\u211a",RBarr:"\u2910",rBarr:"\u290f",rbarr:"\u290d",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298c",rbrksld:"\u298e",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201d",rdquor:"\u201d",rdsh:"\u21b3",Re:"\u211c",real:"\u211c",realine:"\u211b",realpart:"\u211c",reals:"\u211d",rect:"\u25ad",REG:"\xae",reg:"\xae",ReverseElement:"\u220b",ReverseEquilibrium:"\u21cb",ReverseUpEquilibrium:"\u296f",rfisht:"\u297d",rfloor:"\u230b",Rfr:"\u211c",rfr:"\u{1d52f}",rHar:"\u2964",rhard:"\u21c1",rharu:"\u21c0",rharul:"\u296c",Rho:"\u03a1",rho:"\u03c1",rhov:"\u03f1",RightAngleBracket:"\u27e9",RightArrow:"\u2192",Rightarrow:"\u21d2",rightarrow:"\u2192",RightArrowBar:"\u21e5",RightArrowLeftArrow:"\u21c4",rightarrowtail:"\u21a3",RightCeiling:"\u2309",RightDoubleBracket:"\u27e7",RightDownTeeVector:"\u295d",RightDownVector:"\u21c2",RightDownVectorBar:"\u2955",RightFloor:"\u230b",rightharpoondown:"\u21c1",rightharpoonup:"\u21c0",rightleftarrows:"\u21c4",rightleftharpoons:"\u21cc",rightrightarrows:"\u21c9",rightsquigarrow:"\u219d",RightTee:"\u22a2",RightTeeArrow:"\u21a6",RightTeeVector:"\u295b",rightthreetimes:"\u22cc",RightTriangle:"\u22b3",RightTriangleBar:"\u29d0",RightTriangleEqual:"\u22b5",RightUpDownVector:"\u294f",RightUpTeeVector:"\u295c",RightUpVector:"\u21be",RightUpVectorBar:"\u2954",RightVector:"\u21c0",RightVectorBar:"\u2953",ring:"\u02da",risingdotseq:"\u2253",rlarr:"\u21c4",rlhar:"\u21cc",rlm:"\u200f",rmoust:"\u23b1",rmoustache:"\u23b1",rnmid:"\u2aee",roang:"\u27ed",roarr:"\u21fe",robrk:"\u27e7",ropar:"\u2986",Ropf:"\u211d",ropf:"\u{1d563}",roplus:"\u2a2e",rotimes:"\u2a35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2a12",rrarr:"\u21c9",Rrightarrow:"\u21db",rsaquo:"\u203a",Rscr:"\u211b",rscr:"\u{1d4c7}",Rsh:"\u21b1",rsh:"\u21b1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22cc",rtimes:"\u22ca",rtri:"\u25b9",rtrie:"\u22b5",rtrif:"\u25b8",rtriltri:"\u29ce",RuleDelayed:"\u29f4",ruluhar:"\u2968",rx:"\u211e",Sacute:"\u015a",sacute:"\u015b",sbquo:"\u201a",Sc:"\u2abc",sc:"\u227b",scap:"\u2ab8",Scaron:"\u0160",scaron:"\u0161",sccue:"\u227d",scE:"\u2ab4",sce:"\u2ab0",Scedil:"\u015e",scedil:"\u015f",Scirc:"\u015c",scirc:"\u015d",scnap:"\u2aba",scnE:"\u2ab6",scnsim:"\u22e9",scpolint:"\u2a13",scsim:"\u227f",Scy:"\u0421",scy:"\u0441",sdot:"\u22c5",sdotb:"\u22a1",sdote:"\u2a66",searhk:"\u2925",seArr:"\u21d8",searr:"\u2198",searrow:"\u2198",sect:"\xa7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1d516}",sfr:"\u{1d530}",sfrown:"\u2322",sharp:"\u266f",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xad",Sigma:"\u03a3",sigma:"\u03c3",sigmaf:"\u03c2",sigmav:"\u03c2",sim:"\u223c",simdot:"\u2a6a",sime:"\u2243",simeq:"\u2243",simg:"\u2a9e",simgE:"\u2aa0",siml:"\u2a9d",simlE:"\u2a9f",simne:"\u2246",simplus:"\u2a24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2a33",smeparsl:"\u29e4",smid:"\u2223",smile:"\u2323",smt:"\u2aaa",smte:"\u2aac",smtes:"\u2aac\ufe00",SOFTcy:"\u042c",softcy:"\u044c",sol:"/",solb:"\u29c4",solbar:"\u233f",Sopf:"\u{1d54a}",sopf:"\u{1d564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\ufe00",sqcup:"\u2294",sqcups:"\u2294\ufe00",Sqrt:"\u221a",sqsub:"\u228f",sqsube:"\u2291",sqsubset:"\u228f",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25a1",Square:"\u25a1",square:"\u25a1",SquareIntersection:"\u2293",SquareSubset:"\u228f",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25aa",squf:"\u25aa",srarr:"\u2192",Sscr:"\u{1d4ae}",sscr:"\u{1d4c8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22c6",Star:"\u22c6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03f5",straightphi:"\u03d5",strns:"\xaf",Sub:"\u22d0",sub:"\u2282",subdot:"\u2abd",subE:"\u2ac5",sube:"\u2286",subedot:"\u2ac3",submult:"\u2ac1",subnE:"\u2acb",subne:"\u228a",subplus:"\u2abf",subrarr:"\u2979",Subset:"\u22d0",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2ac5",SubsetEqual:"\u2286",subsetneq:"\u228a",subsetneqq:"\u2acb",subsim:"\u2ac7",subsub:"\u2ad5",subsup:"\u2ad3",succ:"\u227b",succapprox:"\u2ab8",succcurlyeq:"\u227d",Succeeds:"\u227b",SucceedsEqual:"\u2ab0",SucceedsSlantEqual:"\u227d",SucceedsTilde:"\u227f",succeq:"\u2ab0",succnapprox:"\u2aba",succneqq:"\u2ab6",succnsim:"\u22e9",succsim:"\u227f",SuchThat:"\u220b",Sum:"\u2211",sum:"\u2211",sung:"\u266a",Sup:"\u22d1",sup:"\u2283",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",supdot:"\u2abe",supdsub:"\u2ad8",supE:"\u2ac6",supe:"\u2287",supedot:"\u2ac4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27c9",suphsub:"\u2ad7",suplarr:"\u297b",supmult:"\u2ac2",supnE:"\u2acc",supne:"\u228b",supplus:"\u2ac0",Supset:"\u22d1",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2ac6",supsetneq:"\u228b",supsetneqq:"\u2acc",supsim:"\u2ac8",supsub:"\u2ad4",supsup:"\u2ad6",swarhk:"\u2926",swArr:"\u21d9",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292a",szlig:"\xdf",Tab:"\t",target:"\u2316",Tau:"\u03a4",tau:"\u03c4",tbrk:"\u23b4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20db",telrec:"\u2315",Tfr:"\u{1d517}",tfr:"\u{1d531}",there4:"\u2234",Therefore:"\u2234",therefore:"\u2234",Theta:"\u0398",theta:"\u03b8",thetasym:"\u03d1",thetav:"\u03d1",thickapprox:"\u2248",thicksim:"\u223c",ThickSpace:"\u205f\u200a",thinsp:"\u2009",ThinSpace:"\u2009",thkap:"\u2248",thksim:"\u223c",THORN:"\xde",thorn:"\xfe",Tilde:"\u223c",tilde:"\u02dc",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",times:"\xd7",timesb:"\u22a0",timesbar:"\u2a31",timesd:"\u2a30",tint:"\u222d",toea:"\u2928",top:"\u22a4",topbot:"\u2336",topcir:"\u2af1",Topf:"\u{1d54b}",topf:"\u{1d565}",topfork:"\u2ada",tosa:"\u2929",tprime:"\u2034",TRADE:"\u2122",trade:"\u2122",triangle:"\u25b5",triangledown:"\u25bf",triangleleft:"\u25c3",trianglelefteq:"\u22b4",triangleq:"\u225c",triangleright:"\u25b9",trianglerighteq:"\u22b5",tridot:"\u25ec",trie:"\u225c",triminus:"\u2a3a",TripleDot:"\u20db",triplus:"\u2a39",trisb:"\u29cd",tritime:"\u2a3b",trpezium:"\u23e2",Tscr:"\u{1d4af}",tscr:"\u{1d4c9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040b",tshcy:"\u045b",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226c",twoheadleftarrow:"\u219e",twoheadrightarrow:"\u21a0",Uacute:"\xda",uacute:"\xfa",Uarr:"\u219f",uArr:"\u21d1",uarr:"\u2191",Uarrocir:"\u2949",Ubrcy:"\u040e",ubrcy:"\u045e",Ubreve:"\u016c",ubreve:"\u016d",Ucirc:"\xdb",ucirc:"\xfb",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21c5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296e",ufisht:"\u297e",Ufr:"\u{1d518}",ufr:"\u{1d532}",Ugrave:"\xd9",ugrave:"\xf9",uHar:"\u2963",uharl:"\u21bf",uharr:"\u21be",uhblk:"\u2580",ulcorn:"\u231c",ulcorner:"\u231c",ulcrop:"\u230f",ultri:"\u25f8",Umacr:"\u016a",umacr:"\u016b",uml:"\xa8",UnderBar:"_",UnderBrace:"\u23df",UnderBracket:"\u23b5",UnderParenthesis:"\u23dd",Union:"\u22c3",UnionPlus:"\u228e",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1d54c}",uopf:"\u{1d566}",UpArrow:"\u2191",Uparrow:"\u21d1",uparrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21c5",UpDownArrow:"\u2195",Updownarrow:"\u21d5",updownarrow:"\u2195",UpEquilibrium:"\u296e",upharpoonleft:"\u21bf",upharpoonright:"\u21be",uplus:"\u228e",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03d2",upsi:"\u03c5",upsih:"\u03d2",Upsilon:"\u03a5",upsilon:"\u03c5",UpTee:"\u22a5",UpTeeArrow:"\u21a5",upuparrows:"\u21c8",urcorn:"\u231d",urcorner:"\u231d",urcrop:"\u230e",Uring:"\u016e",uring:"\u016f",urtri:"\u25f9",Uscr:"\u{1d4b0}",uscr:"\u{1d4ca}",utdot:"\u22f0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25b5",utrif:"\u25b4",uuarr:"\u21c8",Uuml:"\xdc",uuml:"\xfc",uwangle:"\u29a7",vangrt:"\u299c",varepsilon:"\u03f5",varkappa:"\u03f0",varnothing:"\u2205",varphi:"\u03d5",varpi:"\u03d6",varpropto:"\u221d",vArr:"\u21d5",varr:"\u2195",varrho:"\u03f1",varsigma:"\u03c2",varsubsetneq:"\u228a\ufe00",varsubsetneqq:"\u2acb\ufe00",varsupsetneq:"\u228b\ufe00",varsupsetneqq:"\u2acc\ufe00",vartheta:"\u03d1",vartriangleleft:"\u22b2",vartriangleright:"\u22b3",Vbar:"\u2aeb",vBar:"\u2ae8",vBarv:"\u2ae9",Vcy:"\u0412",vcy:"\u0432",VDash:"\u22ab",Vdash:"\u22a9",vDash:"\u22a8",vdash:"\u22a2",Vdashl:"\u2ae6",Vee:"\u22c1",vee:"\u2228",veebar:"\u22bb",veeeq:"\u225a",vellip:"\u22ee",Verbar:"\u2016",verbar:"|",Vert:"\u2016",vert:"|",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200a",Vfr:"\u{1d519}",vfr:"\u{1d533}",vltri:"\u22b2",vnsub:"\u2282\u20d2",vnsup:"\u2283\u20d2",Vopf:"\u{1d54d}",vopf:"\u{1d567}",vprop:"\u221d",vrtri:"\u22b3",Vscr:"\u{1d4b1}",vscr:"\u{1d4cb}",vsubnE:"\u2acb\ufe00",vsubne:"\u228a\ufe00",vsupnE:"\u2acc\ufe00",vsupne:"\u228b\ufe00",Vvdash:"\u22aa",vzigzag:"\u299a",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2a5f",Wedge:"\u22c0",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1d51a}",wfr:"\u{1d534}",Wopf:"\u{1d54e}",wopf:"\u{1d568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1d4b2}",wscr:"\u{1d4cc}",xcap:"\u22c2",xcirc:"\u25ef",xcup:"\u22c3",xdtri:"\u25bd",Xfr:"\u{1d51b}",xfr:"\u{1d535}",xhArr:"\u27fa",xharr:"\u27f7",Xi:"\u039e",xi:"\u03be",xlArr:"\u27f8",xlarr:"\u27f5",xmap:"\u27fc",xnis:"\u22fb",xodot:"\u2a00",Xopf:"\u{1d54f}",xopf:"\u{1d569}",xoplus:"\u2a01",xotime:"\u2a02",xrArr:"\u27f9",xrarr:"\u27f6",Xscr:"\u{1d4b3}",xscr:"\u{1d4cd}",xsqcup:"\u2a06",xuplus:"\u2a04",xutri:"\u25b3",xvee:"\u22c1",xwedge:"\u22c0",Yacute:"\xdd",yacute:"\xfd",YAcy:"\u042f",yacy:"\u044f",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042b",ycy:"\u044b",yen:"\xa5",Yfr:"\u{1d51c}",yfr:"\u{1d536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1d550}",yopf:"\u{1d56a}",Yscr:"\u{1d4b4}",yscr:"\u{1d4ce}",YUcy:"\u042e",yucy:"\u044e",Yuml:"\u0178",yuml:"\xff",Zacute:"\u0179",zacute:"\u017a",Zcaron:"\u017d",zcaron:"\u017e",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017b",zdot:"\u017c",zeetrf:"\u2128",ZeroWidthSpace:"\u200b",Zeta:"\u0396",zeta:"\u03b6",Zfr:"\u2128",zfr:"\u{1d537}",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21dd",Zopf:"\u2124",zopf:"\u{1d56b}",Zscr:"\u{1d4b5}",zscr:"\u{1d4cf}",zwj:"\u200d",zwnj:"\u200c"}),ae.entityMap=ae.HTML_ENTITIES},2502:(pe,ae,ht)=>{ht(8486);ae.DOMParser=ht(7044).DOMParser},3742:(pe,ae,ht)=>{var X=ht(2834).NAMESPACE,Pt=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,Tt=new RegExp("[\\-\\.0-9"+Pt.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),Wt=new RegExp("^"+Pt.source+Tt.source+"*(?::"+Pt.source+Tt.source+"*)?$");function Ht(At,Ut){this.message=At,this.locator=Ut,Error.captureStackTrace&&Error.captureStackTrace(this,Ht)}function Rt(){}function Gt(At,Ut){return Ut.lineNumber=At.lineNumber,Ut.columnNumber=At.columnNumber,Ut}function st(At,Ut,te,tt,_t,ke){function F(oe,ze,Yt){te.attributeNames.hasOwnProperty(oe)&&ke.fatalError("Attribute "+oe+" redefined"),te.addValue(oe,ze.replace(/[\t\n\r]/g," ").replace(/?\w+;/g,_t),Yt)}for(var J,rt=++Ut,Y=0;;){var Ct=At.charAt(rt);switch(Ct){case"=":if(1===Y)J=At.slice(Ut,rt),Y=3;else{if(2!==Y)throw new Error("attribute equal must after attrName");Y=3}break;case"'":case'"':if(3===Y||1===Y){if(1===Y&&(ke.warning('attribute value must after "="'),J=At.slice(Ut,rt)),!((rt=At.indexOf(Ct,Ut=rt+1))>0))throw new Error("attribute value no end '"+Ct+"' match");F(J,It=At.slice(Ut,rt),Ut-1),Y=5}else{if(4!=Y)throw new Error('attribute value must after "="');F(J,It=At.slice(Ut,rt),Ut),ke.warning('attribute "'+J+'" missed start quot('+Ct+")!!"),Ut=rt+1,Y=5}break;case"/":switch(Y){case 0:te.setTagName(At.slice(Ut,rt));case 5:case 6:case 7:Y=7,te.closed=!0;case 4:case 1:break;case 2:te.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return ke.error("unexpected end of input"),0==Y&&te.setTagName(At.slice(Ut,rt)),rt;case">":switch(Y){case 0:te.setTagName(At.slice(Ut,rt));case 5:case 6:case 7:break;case 4:case 1:"/"===(It=At.slice(Ut,rt)).slice(-1)&&(te.closed=!0,It=It.slice(0,-1));case 2:2===Y&&(It=J),4==Y?(ke.warning('attribute "'+It+'" missed quot(")!'),F(J,It,Ut)):((!X.isHTML(tt[""])||!It.match(/^(?:disabled|checked|selected)$/i))&&ke.warning('attribute "'+It+'" missed value!! "'+It+'" instead!!'),F(It,It,Ut));break;case 3:throw new Error("attribute value missed!!")}return rt;case"\x80":Ct=" ";default:if(Ct<=" ")switch(Y){case 0:te.setTagName(At.slice(Ut,rt)),Y=6;break;case 1:J=At.slice(Ut,rt),Y=2;break;case 4:var It=At.slice(Ut,rt);ke.warning('attribute "'+It+'" missed quot(")!!'),F(J,It,Ut);case 5:Y=6}else switch(Y){case 2:(!X.isHTML(tt[""])||!J.match(/^(?:disabled|checked|selected)$/i))&&ke.warning('attribute "'+J+'" missed value!! "'+J+'" instead2!!'),F(J,J,Ut),Ut=rt,Y=1;break;case 5:ke.warning('attribute space is required"'+J+'"!!');case 6:Y=1,Ut=rt;break;case 3:Y=4,Ut=rt;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}rt++}}function U(At,Ut,te){for(var tt=At.tagName,_t=null,Ct=At.length;Ct--;){var ke=At[Ct],F=ke.qName,J=ke.value;if((Dt=F.indexOf(":"))>0)var It=ke.prefix=F.slice(0,Dt),rt=F.slice(Dt+1),Y="xmlns"===It&&rt;else rt=F,It=null,Y="xmlns"===F&&"";ke.localName=rt,!1!==Y&&(null==_t&&(_t={},ut(te,te={})),te[Y]=_t[Y]=J,ke.uri=X.XMLNS,Ut.startPrefixMapping(Y,J))}for(Ct=At.length;Ct--;)(It=(ke=At[Ct]).prefix)&&("xml"===It&&(ke.uri=X.XML),"xmlns"!==It&&(ke.uri=te[It||""]));var Dt;(Dt=tt.indexOf(":"))>0?(It=At.prefix=tt.slice(0,Dt),rt=At.localName=tt.slice(Dt+1)):(It=null,rt=At.localName=tt);var oe=At.uri=te[It||""];if(Ut.startElement(oe,rt,tt,At),!At.closed)return At.currentNSMap=te,At.localNSMap=_t,!0;if(Ut.endElement(oe,rt,tt),_t)for(It in _t)Object.prototype.hasOwnProperty.call(_t,It)&&Ut.endPrefixMapping(It)}function A(At,Ut,te,tt,_t){if(/^(?:script|textarea)$/i.test(te)){var ke=At.indexOf(""+te+">",Ut),F=At.substring(Ut+1,ke);if(/[&<]/.test(F))return/^script$/i.test(te)?(_t.characters(F,0,F.length),ke):(F=F.replace(/?\w+;/g,tt),_t.characters(F,0,F.length),ke)}return Ut+1}function at(At,Ut,te,tt){var _t=tt[te];return null==_t&&((_t=At.lastIndexOf(""+te+">"))Ut?(te.comment(At,Ut+4,ke-Ut-4),ke+3):(tt.error("Unclosed comment"),-1):-1;if("CDATA["==At.substr(Ut+3,6)){var ke=At.indexOf("]]>",Ut+9);return te.startCDATA(),te.characters(At,Ut+9,ke-Ut-9),te.endCDATA(),ke+3}var F=function et(At,Ut){var te,tt=[],_t=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(_t.lastIndex=Ut,_t.exec(At);te=_t.exec(At);)if(tt.push(te),te[1])return tt}(At,Ut),J=F.length;if(J>1&&/!doctype/i.test(F[0][0])){var It=F[1][0],rt=!1,Y=!1;J>3&&(/^public$/i.test(F[2][0])?(rt=F[3][0],Y=J>4&&F[4][0]):/^system$/i.test(F[2][0])&&(Y=F[3][0]));var Ct=F[J-1];return te.startDTD(It,rt,Y),te.endDTD(),Ct.index+Ct[0].length}return-1}function Q(At,Ut,te){var tt=At.indexOf("?>",Ut);if(tt){var _t=At.substring(Ut,tt).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return _t?(te.processingInstruction(_t[1],_t[2]),tt+2):-1}return-1}function Jt(){this.attributeNames={}}(Ht.prototype=new Error).name=Ht.name,Rt.prototype={parse:function(At,Ut,te){var tt=this.domBuilder;tt.startDocument(),ut(Ut,Ut={}),function he(At,Ut,te,tt,_t){function F(sr){var vr=sr.slice(1,-1);return Object.hasOwnProperty.call(te,vr)?te[vr]:"#"===vr.charAt(0)?function ke(sr){return sr>65535?(sr-=65536,String.fromCharCode(55296+(sr>>10),56320+(1023&sr))):String.fromCharCode(sr)}(parseInt(vr.substr(1).replace("x","0x"))):(_t.error("entity not found:"+sr),sr)}function J(sr){if(sr>Yt){var vr=At.substring(Yt,sr).replace(/?\w+;/g,F);Dt&&It(Yt),tt.characters(vr,0,sr-Yt),Yt=sr}}function It(sr,vr){for(;sr>=Y&&(vr=Ct.exec(At));)Y=(rt=vr.index)+vr[0].length,Dt.lineNumber++;Dt.columnNumber=sr-rt+1}for(var rt=0,Y=0,Ct=/.*(?:\r\n?|\n)|.*$/g,Dt=tt.locator,oe=[{currentNSMap:Ut}],ze={},Yt=0;;){try{var ve=At.indexOf("<",Yt);if(ve<0){if(!At.substr(Yt).match(/^\s*$/)){var r1=tt.doc,Qe=r1.createTextNode(At.substr(Yt));r1.appendChild(Qe),tt.currentElement=Qe}return}switch(ve>Yt&&J(ve),At.charAt(ve+1)){case"/":var Er=At.indexOf(">",ve+3),Ge=At.substring(ve+2,Er).replace(/[ \t\n\r]+$/g,""),v1=oe.pop();Er<0?(Ge=At.substring(ve+2).replace(/[\s<].*/,""),_t.error("end tag name: "+Ge+" is not complete:"+v1.tagName),Er=ve+1+Ge.length):Ge.match(/\s)&&(Ge=Ge.replace(/[\s<].*/,""),_t.error("end tag name: "+Ge+" maybe not complete"),Er=ve+1+Ge.length);var w1=v1.localNSMap,j1=v1.tagName==Ge;if(j1||v1.tagName&&v1.tagName.toLowerCase()==Ge.toLowerCase()){if(tt.endElement(v1.uri,v1.localName,Ge),w1)for(var d1 in w1)Object.prototype.hasOwnProperty.call(w1,d1)&&tt.endPrefixMapping(d1);j1||_t.fatalError("end tag name: "+Ge+" is not match the current start tagName:"+v1.tagName)}else oe.push(v1);Er++;break;case"?":Dt&&It(ve),Er=Q(At,ve,tt);break;case"!":Dt&&It(ve),Er=Lt(At,ve,tt,_t);break;default:Dt&&It(ve);var b1=new Jt,nr=oe[oe.length-1].currentNSMap,Gn=(Er=st(At,ve,b1,nr,F,_t),b1.length);if(!b1.closed&&at(At,Er,b1.tagName,ze)&&(b1.closed=!0,te.nbsp||_t.warning("unclosed xml attribute")),Dt&&Gn){for(var Yn=Gt(Dt,{}),Xn=0;XnYt?Yt=Er:J(Math.max(ve,Yt)+1)}}(At,Ut,te,tt,this.errorHandler),tt.endDocument()}},Jt.prototype={setTagName:function(At){if(!Wt.test(At))throw new Error("invalid tagName:"+At);this.tagName=At},addValue:function(At,Ut,te){if(!Wt.test(At))throw new Error("invalid attribute:"+At);this.attributeNames[At]=this.length,this[this.length++]={qName:At,value:Ut,offset:te}},length:0,getLocalName:function(At){return this[At].localName},getLocator:function(At){return this[At].locator},getQName:function(At){return this[At].qName},getURI:function(At){return this[At].uri},getValue:function(At){return this[At].value}},ae.XMLReader=Rt,ae.ParseError=Ht},3450:(pe,ae)=>{"use strict";ae.byteLength=function D(Ht){var Rt=Nt(Ht),Gt=Rt[1];return 3*(Rt[0]+Gt)/4-Gt},ae.toByteArray=function p(Ht){var Rt,ut,he=Nt(Ht),Gt=he[0],st=he[1],U=new Pt(function nt(Ht,Rt,he){return 3*(Rt+he)/4-he}(0,Gt,st)),A=0,at=st>0?Gt-4:Gt;for(ut=0;ut>16&255,U[A++]=Rt>>8&255,U[A++]=255&Rt;return 2===st&&(Rt=X[Ht.charCodeAt(ut)]<<2|X[Ht.charCodeAt(ut+1)]>>4,U[A++]=255&Rt),1===st&&(Rt=X[Ht.charCodeAt(ut)]<<10|X[Ht.charCodeAt(ut+1)]<<4|X[Ht.charCodeAt(ut+2)]>>2,U[A++]=Rt>>8&255,U[A++]=255&Rt),U},ae.fromByteArray=function qt(Ht){for(var Rt,he=Ht.length,Gt=he%3,st=[],U=16383,A=0,at=he-Gt;Aat?at:A+U));return 1===Gt?st.push(ht[(Rt=Ht[he-1])>>2]+ht[Rt<<4&63]+"=="):2===Gt&&st.push(ht[(Rt=(Ht[he-2]<<8)+Ht[he-1])>>10]+ht[Rt>>4&63]+ht[Rt<<2&63]+"="),st.join("")};for(var ht=[],X=[],Pt=typeof Uint8Array<"u"?Uint8Array:Array,Tt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Wt=0;Wt<64;++Wt)ht[Wt]=Tt[Wt],X[Tt.charCodeAt(Wt)]=Wt;function Nt(Ht){var Rt=Ht.length;if(Rt%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var he=Ht.indexOf("=");return-1===he&&(he=Rt),[he,he===Rt?0:4-he%4]}function le(Ht){return ht[Ht>>18&63]+ht[Ht>>12&63]+ht[Ht>>6&63]+ht[63&Ht]}function ce(Ht,Rt,he){for(var st=[],U=Rt;U{"use strict";var X=ht(9249),Pt=ht(9475),Tt=Pt(X("String.prototype.indexOf"));pe.exports=function(zt,Nt){var D=X(zt,!!Nt);return"function"==typeof D&&Tt(zt,".prototype.")>-1?Pt(D):D}},9475:(pe,ae,ht)=>{"use strict";var X=ht(2307),Pt=ht(9249),Tt=ht(8797),Wt=ht(9327),zt=Pt("%Function.prototype.apply%"),Nt=Pt("%Function.prototype.call%"),D=Pt("%Reflect.apply%",!0)||X.call(Nt,zt),nt=ht(4688),p=Pt("%Math.max%");pe.exports=function(qt){if("function"!=typeof qt)throw new Wt("a function is required");var Ht=D(X,Nt,arguments);return Tt(Ht,1+p(0,qt.length-(arguments.length-1)),!0)};var le=function(){return D(X,zt,arguments)};nt?nt(pe.exports,"apply",{value:le}):pe.exports.apply=le},8181:function(pe,ae){var Tt,ht=typeof self<"u"?self:this,X=function(){function Tt(){this.fetch=!1,this.DOMException=ht.DOMException}return Tt.prototype=ht,new Tt}();Tt=X,function(zt){var Nt_searchParams="URLSearchParams"in Tt,Nt_iterable="Symbol"in Tt&&"iterator"in Symbol,Nt_blob="FileReader"in Tt&&"Blob"in Tt&&function(){try{return new Blob,!0}catch{return!1}}(),Nt_formData="FormData"in Tt,Nt_arrayBuffer="ArrayBuffer"in Tt;if(Nt_arrayBuffer)var nt=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],p=ArrayBuffer.isView||function(tt){return tt&&nt.indexOf(Object.prototype.toString.call(tt))>-1};function le(tt){if("string"!=typeof tt&&(tt=String(tt)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(tt))throw new TypeError("Invalid character in header field name");return tt.toLowerCase()}function ce(tt){return"string"!=typeof tt&&(tt=String(tt)),tt}function qt(tt){var _t={next:function(){var ke=tt.shift();return{done:void 0===ke,value:ke}}};return Nt_iterable&&(_t[Symbol.iterator]=function(){return _t}),_t}function Ht(tt){this.map={},tt instanceof Ht?tt.forEach(function(_t,ke){this.append(ke,_t)},this):Array.isArray(tt)?tt.forEach(function(_t){this.append(_t[0],_t[1])},this):tt&&Object.getOwnPropertyNames(tt).forEach(function(_t){this.append(_t,tt[_t])},this)}function Rt(tt){if(tt.bodyUsed)return Promise.reject(new TypeError("Already read"));tt.bodyUsed=!0}function he(tt){return new Promise(function(_t,ke){tt.onload=function(){_t(tt.result)},tt.onerror=function(){ke(tt.error)}})}function Gt(tt){var _t=new FileReader,ke=he(_t);return _t.readAsArrayBuffer(tt),ke}function A(tt){if(tt.slice)return tt.slice(0);var _t=new Uint8Array(tt.byteLength);return _t.set(new Uint8Array(tt)),_t.buffer}function at(){return this.bodyUsed=!1,this._initBody=function(tt){this._bodyInit=tt,tt?"string"==typeof tt?this._bodyText=tt:Nt_blob&&Blob.prototype.isPrototypeOf(tt)?this._bodyBlob=tt:Nt_formData&&FormData.prototype.isPrototypeOf(tt)?this._bodyFormData=tt:Nt_searchParams&&URLSearchParams.prototype.isPrototypeOf(tt)?this._bodyText=tt.toString():Nt_arrayBuffer&&Nt_blob&&function D(tt){return tt&&DataView.prototype.isPrototypeOf(tt)}(tt)?(this._bodyArrayBuffer=A(tt.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):Nt_arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(tt)||p(tt))?this._bodyArrayBuffer=A(tt):this._bodyText=tt=Object.prototype.toString.call(tt):this._bodyText="",this.headers.get("content-type")||("string"==typeof tt?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):Nt_searchParams&&URLSearchParams.prototype.isPrototypeOf(tt)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},Nt_blob&&(this.blob=function(){var tt=Rt(this);if(tt)return tt;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?Rt(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(Gt)}),this.text=function(){var tt=Rt(this);if(tt)return tt;if(this._bodyBlob)return function st(tt){var _t=new FileReader,ke=he(_t);return _t.readAsText(tt),ke}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function U(tt){for(var _t=new Uint8Array(tt),ke=new Array(_t.length),F=0;F<_t.length;F++)ke[F]=String.fromCharCode(_t[F]);return ke.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},Nt_formData&&(this.formData=function(){return this.text().then(Jt)}),this.json=function(){return this.text().then(JSON.parse)},this}Ht.prototype.append=function(tt,_t){tt=le(tt),_t=ce(_t);var ke=this.map[tt];this.map[tt]=ke?ke+", "+_t:_t},Ht.prototype.delete=function(tt){delete this.map[le(tt)]},Ht.prototype.get=function(tt){return tt=le(tt),this.has(tt)?this.map[tt]:null},Ht.prototype.has=function(tt){return this.map.hasOwnProperty(le(tt))},Ht.prototype.set=function(tt,_t){this.map[le(tt)]=ce(_t)},Ht.prototype.forEach=function(tt,_t){for(var ke in this.map)this.map.hasOwnProperty(ke)&&tt.call(_t,this.map[ke],ke,this)},Ht.prototype.keys=function(){var tt=[];return this.forEach(function(_t,ke){tt.push(ke)}),qt(tt)},Ht.prototype.values=function(){var tt=[];return this.forEach(function(_t){tt.push(_t)}),qt(tt)},Ht.prototype.entries=function(){var tt=[];return this.forEach(function(_t,ke){tt.push([ke,_t])}),qt(tt)},Nt_iterable&&(Ht.prototype[Symbol.iterator]=Ht.prototype.entries);var ut=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Q(tt,_t){var ke=(_t=_t||{}).body;if(tt instanceof Q){if(tt.bodyUsed)throw new TypeError("Already read");this.url=tt.url,this.credentials=tt.credentials,_t.headers||(this.headers=new Ht(tt.headers)),this.method=tt.method,this.mode=tt.mode,this.signal=tt.signal,!ke&&null!=tt._bodyInit&&(ke=tt._bodyInit,tt.bodyUsed=!0)}else this.url=String(tt);if(this.credentials=_t.credentials||this.credentials||"same-origin",(_t.headers||!this.headers)&&(this.headers=new Ht(_t.headers)),this.method=function Lt(tt){var _t=tt.toUpperCase();return ut.indexOf(_t)>-1?_t:tt}(_t.method||this.method||"GET"),this.mode=_t.mode||this.mode||null,this.signal=_t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&ke)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(ke)}function Jt(tt){var _t=new FormData;return tt.trim().split("&").forEach(function(ke){if(ke){var F=ke.split("="),J=F.shift().replace(/\+/g," "),It=F.join("=").replace(/\+/g," ");_t.append(decodeURIComponent(J),decodeURIComponent(It))}}),_t}function et(tt){var _t=new Ht;return tt.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(F){var J=F.split(":"),It=J.shift().trim();if(It){var rt=J.join(":").trim();_t.append(It,rt)}}),_t}function At(tt,_t){_t||(_t={}),this.type="default",this.status=void 0===_t.status?200:_t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in _t?_t.statusText:"OK",this.headers=new Ht(_t.headers),this.url=_t.url||"",this._initBody(tt)}Q.prototype.clone=function(){return new Q(this,{body:this._bodyInit})},at.call(Q.prototype),at.call(At.prototype),At.prototype.clone=function(){return new At(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Ht(this.headers),url:this.url})},At.error=function(){var tt=new At(null,{status:0,statusText:""});return tt.type="error",tt};var Ut=[301,302,303,307,308];At.redirect=function(tt,_t){if(-1===Ut.indexOf(_t))throw new RangeError("Invalid status code");return new At(null,{status:_t,headers:{location:tt}})},zt.DOMException=Tt.DOMException;try{new zt.DOMException}catch{zt.DOMException=function(_t,ke){this.message=_t,this.name=ke;var F=Error(_t);this.stack=F.stack},zt.DOMException.prototype=Object.create(Error.prototype),zt.DOMException.prototype.constructor=zt.DOMException}function te(tt,_t){return new Promise(function(ke,F){var J=new Q(tt,_t);if(J.signal&&J.signal.aborted)return F(new zt.DOMException("Aborted","AbortError"));var It=new XMLHttpRequest;function rt(){It.abort()}It.onload=function(){var Y={status:It.status,statusText:It.statusText,headers:et(It.getAllResponseHeaders()||"")};Y.url="responseURL"in It?It.responseURL:Y.headers.get("X-Request-URL"),ke(new At("response"in It?It.response:It.responseText,Y))},It.onerror=function(){F(new TypeError("Network request failed"))},It.ontimeout=function(){F(new TypeError("Network request failed"))},It.onabort=function(){F(new zt.DOMException("Aborted","AbortError"))},It.open(J.method,J.url,!0),"include"===J.credentials?It.withCredentials=!0:"omit"===J.credentials&&(It.withCredentials=!1),"responseType"in It&&Nt_blob&&(It.responseType="blob"),J.headers.forEach(function(Y,Ct){It.setRequestHeader(Ct,Y)}),J.signal&&(J.signal.addEventListener("abort",rt),It.onreadystatechange=function(){4===It.readyState&&J.signal.removeEventListener("abort",rt)}),It.send(typeof J._bodyInit>"u"?null:J._bodyInit)})}te.polyfill=!0,Tt.fetch||(Tt.fetch=te,Tt.Headers=Ht,Tt.Request=Q,Tt.Response=At),zt.Headers=Ht,zt.Request=Q,zt.Response=At,zt.fetch=te,Object.defineProperty(zt,"__esModule",{value:!0})}({}),X.fetch.ponyfill=!0,delete X.fetch.polyfill;var Pt=X;(ae=Pt.fetch).default=Pt.fetch,ae.fetch=Pt.fetch,ae.Headers=Pt.Headers,ae.Request=Pt.Request,ae.Response=Pt.Response,pe.exports=ae},3333:(pe,ae,ht)=>{"use strict";var X=ht(4688),Pt=ht(1144),Tt=ht(9327),Wt=ht(1031);pe.exports=function(Nt,D,nt){if(!Nt||"object"!=typeof Nt&&"function"!=typeof Nt)throw new Tt("`obj` must be an object or a function`");if("string"!=typeof D&&"symbol"!=typeof D)throw new Tt("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new Tt("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new Tt("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new Tt("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new Tt("`loose`, if provided, must be a boolean");var p=arguments.length>3?arguments[3]:null,le=arguments.length>4?arguments[4]:null,ce=arguments.length>5?arguments[5]:null,qt=arguments.length>6&&arguments[6],Ht=!!Wt&&Wt(Nt,D);if(X)X(Nt,D,{configurable:null===ce&&Ht?Ht.configurable:!ce,enumerable:null===p&&Ht?Ht.enumerable:!p,value:nt,writable:null===le&&Ht?Ht.writable:!le});else{if(!qt&&(p||le||ce))throw new Pt("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");Nt[D]=nt}}},4688:(pe,ae,ht)=>{"use strict";var Pt=ht(9249)("%Object.defineProperty%",!0)||!1;if(Pt)try{Pt({},"a",{value:1})}catch{Pt=!1}pe.exports=Pt},7153:pe=>{"use strict";pe.exports=EvalError},939:pe=>{"use strict";pe.exports=Error},1486:pe=>{"use strict";pe.exports=RangeError},4654:pe=>{"use strict";pe.exports=ReferenceError},1144:pe=>{"use strict";pe.exports=SyntaxError},9327:pe=>{"use strict";pe.exports=TypeError},6005:pe=>{"use strict";pe.exports=URIError},421:pe=>{"use strict";var ht=Object.prototype.toString,X=Math.max,Tt=function(D,nt){for(var p=[],le=0;le{"use strict";var X=ht(421);pe.exports=Function.prototype.bind||X},9249:(pe,ae,ht)=>{"use strict";var X,Pt=ht(939),Tt=ht(7153),Wt=ht(1486),zt=ht(4654),Nt=ht(1144),D=ht(9327),nt=ht(6005),p=Function,le=function(It){try{return p('"use strict"; return ('+It+").constructor;")()}catch{}},ce=Object.getOwnPropertyDescriptor;if(ce)try{ce({},"")}catch{ce=null}var qt=function(){throw new D},Ht=ce?function(){try{return qt}catch{try{return ce(arguments,"callee").get}catch{return qt}}}():qt,Rt=ht(7067)(),he=ht(908)(),Gt=Object.getPrototypeOf||(he?function(It){return It.__proto__}:null),st={},U=typeof Uint8Array>"u"||!Gt?X:Gt(Uint8Array),A={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?X:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?X:ArrayBuffer,"%ArrayIteratorPrototype%":Rt&&Gt?Gt([][Symbol.iterator]()):X,"%AsyncFromSyncIteratorPrototype%":X,"%AsyncFunction%":st,"%AsyncGenerator%":st,"%AsyncGeneratorFunction%":st,"%AsyncIteratorPrototype%":st,"%Atomics%":typeof Atomics>"u"?X:Atomics,"%BigInt%":typeof BigInt>"u"?X:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?X:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?X:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?X:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Pt,"%eval%":eval,"%EvalError%":Tt,"%Float32Array%":typeof Float32Array>"u"?X:Float32Array,"%Float64Array%":typeof Float64Array>"u"?X:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?X:FinalizationRegistry,"%Function%":p,"%GeneratorFunction%":st,"%Int8Array%":typeof Int8Array>"u"?X:Int8Array,"%Int16Array%":typeof Int16Array>"u"?X:Int16Array,"%Int32Array%":typeof Int32Array>"u"?X:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Rt&&Gt?Gt(Gt([][Symbol.iterator]())):X,"%JSON%":"object"==typeof JSON?JSON:X,"%Map%":typeof Map>"u"?X:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Rt||!Gt?X:Gt((new Map)[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?X:Promise,"%Proxy%":typeof Proxy>"u"?X:Proxy,"%RangeError%":Wt,"%ReferenceError%":zt,"%Reflect%":typeof Reflect>"u"?X:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?X:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Rt||!Gt?X:Gt((new Set)[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?X:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Rt&&Gt?Gt(""[Symbol.iterator]()):X,"%Symbol%":Rt?Symbol:X,"%SyntaxError%":Nt,"%ThrowTypeError%":Ht,"%TypedArray%":U,"%TypeError%":D,"%Uint8Array%":typeof Uint8Array>"u"?X:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?X:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?X:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?X:Uint32Array,"%URIError%":nt,"%WeakMap%":typeof WeakMap>"u"?X:WeakMap,"%WeakRef%":typeof WeakRef>"u"?X:WeakRef,"%WeakSet%":typeof WeakSet>"u"?X:WeakSet};if(Gt)try{null.error}catch(It){var at=Gt(Gt(It));A["%Error.prototype%"]=at}var ut=function It(rt){var Y;if("%AsyncFunction%"===rt)Y=le("async function () {}");else if("%GeneratorFunction%"===rt)Y=le("function* () {}");else if("%AsyncGeneratorFunction%"===rt)Y=le("async function* () {}");else if("%AsyncGenerator%"===rt){var Ct=It("%AsyncGeneratorFunction%");Ct&&(Y=Ct.prototype)}else if("%AsyncIteratorPrototype%"===rt){var Dt=It("%AsyncGenerator%");Dt&&Gt&&(Y=Gt(Dt.prototype))}return A[rt]=Y,Y},Lt={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Q=ht(2307),Jt=ht(5961),et=Q.call(Function.call,Array.prototype.concat),At=Q.call(Function.apply,Array.prototype.splice),Ut=Q.call(Function.call,String.prototype.replace),te=Q.call(Function.call,String.prototype.slice),tt=Q.call(Function.call,RegExp.prototype.exec),_t=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ke=/\\(\\)?/g,J=function(rt,Y){var Dt,Ct=rt;if(Jt(Lt,Ct)&&(Ct="%"+(Dt=Lt[Ct])[0]+"%"),Jt(A,Ct)){var oe=A[Ct];if(oe===st&&(oe=ut(Ct)),typeof oe>"u"&&!Y)throw new D("intrinsic "+rt+" exists, but is not available. Please file an issue!");return{alias:Dt,name:Ct,value:oe}}throw new Nt("intrinsic "+rt+" does not exist!")};pe.exports=function(rt,Y){if("string"!=typeof rt||0===rt.length)throw new D("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof Y)throw new D('"allowMissing" argument must be a boolean');if(null===tt(/^%?[^%]*%?$/,rt))throw new Nt("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Ct=function(rt){var Y=te(rt,0,1),Ct=te(rt,-1);if("%"===Y&&"%"!==Ct)throw new Nt("invalid intrinsic syntax, expected closing `%`");if("%"===Ct&&"%"!==Y)throw new Nt("invalid intrinsic syntax, expected opening `%`");var Dt=[];return Ut(rt,_t,function(oe,ze,Yt,ve){Dt[Dt.length]=Yt?Ut(ve,ke,"$1"):ze||oe}),Dt}(rt),Dt=Ct.length>0?Ct[0]:"",oe=J("%"+Dt+"%",Y),ze=oe.name,Yt=oe.value,ve=!1,r1=oe.alias;r1&&(Dt=r1[0],At(Ct,et([0,1],r1)));for(var Qe=1,Ge=!0;Qe