@sdkgen/playground 0.0.0-dev.20220113115941 → 0.0.0-dev.20220113125217

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +0,0 @@
1
- (self.webpackChunksdkgen_playground=self.webpackChunksdkgen_playground||[]).push([[179],{4602:function(Le,m){"use strict";var T,l=this&&this.__extends||(T=function(p,y){return(T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,O){P.__proto__=O}||function(P,O){for(var S in O)Object.prototype.hasOwnProperty.call(O,S)&&(P[S]=O[S])})(p,y)},function(p,y){if("function"!=typeof y&&null!==y)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");function P(){this.constructor=p}T(p,y),p.prototype=null===y?Object.create(y):(P.prototype=y.prototype,new P)}),i=this&&this.__spreadArray||function(T,p,y){if(y||2===arguments.length)for(var S,P=0,O=p.length;P<O;P++)(S||!(P in p))&&(S||(S=Array.prototype.slice.call(p,0,P)),S[P]=p[P]);return T.concat(S||Array.prototype.slice.call(p))};Object.defineProperty(m,"__esModule",{value:!0}),m.decode=m.encode=void 0;var d=["string","email","phone","html","xml"],_=i(["json","bool","url","int","uint","float","money","hex","uuid","base64","void"],d,!0),u=function(T){function p(y,P,O){var N;try{N=JSON.stringify(O)}catch(B){N=String(O)}return T.call(this,"Invalid type at '".concat(y,"', expected ").concat(P,", got ").concat(N))||this}return l(p,T),p}(Error);function s(T,p,y){if("json"===p)return null==y?null:JSON.parse(JSON.stringify(y));if("bool"===p){if("boolean"!=typeof y)throw new u(T,p,y);return y}if(d.indexOf(p)>=0){if("string"!=typeof y)throw new u(T,p,y);return y}if("hex"===p){if("string"!=typeof y||!/^(?:[A-Fa-f0-9]{2})*$/u.test(y))throw new u(T,p,y);return y.toLowerCase()}if("uuid"===p){if("string"!=typeof y||!/^[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{12}$/u.test(y))throw new u(T,p,y);return y.toLowerCase()}if("base64"===p){var P=!0;try{atob(y)}catch(S){P=!1}if("string"!=typeof y||!P)throw new u(T,p,y);return y}if("int"===p){if("number"!=typeof y||(0|y)!==y)throw new u(T,p,y);return y}if("uint"===p){if("number"!=typeof y||(0|y)!==y||y<0)throw new u(T,p,y);return y}if("float"===p){if("number"!=typeof y)throw new u(T,p,y);return y}if("money"===p){if("number"!=typeof y||!Number.isInteger(y))throw new u(T,p,y);return y}if("url"===p){var O=void 0;if("string"==typeof y)try{O=new URL(y)}catch(S){}if(!O)throw new u(T,p,y);return O.toString()}if("void"===p)return null;throw new Error("Unknown type '".concat(p,"' at '").concat(T,"'"))}m.encode=function b(T,p,y,P){if("string"==typeof y&&!y.endsWith("?")&&"void"!==y&&null==P)throw new Error("Invalid type at '".concat(p,"', cannot be null"));if(Array.isArray(y)){if("string"!=typeof P||y.indexOf(P)<0)throw new u(p,y,P);return P}if("object"==typeof y){if("object"!=typeof P)throw new u(p,y,P);for(var O={},S=0,N=Object.keys(y);S<N.length;S++){var B=N[S];O[B]=b(T,"".concat(p,".").concat(B),y[B],P[B])}return O}if(y.endsWith("?"))return null==P?null:b(T,p,y.slice(0,y.length-1),P);if(y.endsWith("[]")){if(!Array.isArray(P))throw new u(p,y,P);return P.map(function(K,re){return b(T,"".concat(p,"[").concat(re,"]"),y.slice(0,y.length-2),K)})}if(_.indexOf(y)>=0)return s(p,y,P);if("bytes"===y){if(!(P instanceof ArrayBuffer))throw new u(p,y,P);return btoa(String.fromCharCode.apply(String,new Uint8Array(P)))}if("bigint"===y){if("bigint"!=typeof P)throw new u(p,y,P);return P.toString()}if("cpf"===y){if("string"!=typeof P)throw new u(p,y,P);return P}if("cnpj"===y){if("string"!=typeof P)throw new u(p,y,P);return P}if("date"===y){if((!(P instanceof Date)||isNaN(P.getTime()))&&("string"!=typeof P||!/^[0-9]{4}-[01][0-9]-[0123][0-9]$/u.test(P)))throw new u(p,y,P);return"string"==typeof P?new Date(P).toISOString().split("T")[0]:P.toISOString().split("T")[0]}if("datetime"===y){if((!(P instanceof Date)||isNaN(P.getTime()))&&("string"!=typeof P||!/^[0-9]{4}-[01][0-9]-[0123][0-9]T[012][0-9]:[0123456][0-9]:[0123456][0-9](?:\.[0-9]{1,6})?(?:Z|[+-][012][0-9]:[0123456][0-9])?$/u.test(P)))throw new u(p,y,P);return("string"==typeof P?new Date(P):P).toISOString().replace("Z","")}var ce=T[y];if(ce)return b(T,p,ce,P);throw new Error("Unknown type '".concat(y,"' at '").concat(p,"'"))},m.decode=function C(T,p,y,P){if("string"==typeof y&&!y.endsWith("?")&&"void"!==y&&null==P)throw new Error("Invalid type at '".concat(p,"', cannot be null"));if(Array.isArray(y)){if("string"!=typeof P||y.indexOf(P)<0)throw new u(p,y,P);return P}if("object"==typeof y){if("object"!=typeof P)throw new u(p,y,P);for(var O={},S=0,N=Object.keys(y);S<N.length;S++){var B=N[S];O[B]=C(T,"".concat(p,".").concat(B),y[B],P[B])}return O}if(y.endsWith("?"))return null==P?null:C(T,p,y.slice(0,y.length-1),P);if(y.endsWith("[]")){if(!Array.isArray(P))throw new u(p,y,P);return P.map(function(be,ue){return C(T,"".concat(p,"[").concat(ue,"]"),y.slice(0,y.length-2),be)})}if(_.indexOf(y)>=0)return s(p,y,P);if("bytes"!==y){if("bigint"===y){if("number"!=typeof P&&("string"!=typeof P||!/^-?[0-9]+$/u.test(P)))throw new u(p,y,P);return BigInt(P)}if("cpf"===y){if("string"!=typeof P)throw new u(p,y,P);return P}if("cnpj"===y){if("string"!=typeof P)throw new u(p,y,P);return P}if("date"===y){if("string"!=typeof P||!/^[0-9]{4}-[01][0-9]-[0123][0-9]$/u.test(P))throw new u(p,y,P);var ce=parseInt(P.split("-")[2],10),K=parseInt(P.split("-")[1],10)-1,re=parseInt(P.split("-")[0],10),Me=new Date(re,K,ce);if(Me.getFullYear()!==re||Me.getMonth()!==K||Me.getDate()!==ce)throw new u(p,y,P);return Me}if("datetime"===y){if("string"!=typeof P||!/^[0-9]{4}-[01][0-9]-[0123][0-9]T[012][0-9]:[0123456][0-9]:[0123456][0-9](?:\.[0-9]{1,6})?Z?$/u.test(P))throw new u(p,y,P);return new Date("".concat(P.endsWith("Z")?P:P.concat("Z")))}var pe=T[y];if(pe)return C(T,p,pe,P);throw new Error("Unknown type '".concat(y,"' at '").concat(p,"'"))}if("string"!=typeof P)throw new u(p,"".concat(y," (base 64)"),P);try{return Uint8Array.from(atob(P),function(be){return be.charCodeAt(0)})}catch(be){throw new u(p,"".concat(y," (base 64)"),P)}}},2837:function(Le,m){"use strict";var _,l=this&&this.__extends||(_=function(u,s){return(_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,C){b.__proto__=C}||function(b,C){for(var T in C)Object.prototype.hasOwnProperty.call(C,T)&&(b[T]=C[T])})(u,s)},function(u,s){if("function"!=typeof s&&null!==s)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function b(){this.constructor=u}_(u,s),u.prototype=null===s?Object.create(s):(b.prototype=s.prototype,new b)});Object.defineProperty(m,"__esModule",{value:!0}),m.SdkgenErrorWithData=m.SdkgenError=void 0;var i=function(_){function u(){return null!==_&&_.apply(this,arguments)||this}return l(u,_),Object.defineProperty(u.prototype,"type",{get:function(){return this.constructor.name},enumerable:!1,configurable:!0}),u.prototype.toJSON=function(){return{message:this.message,type:this.type}},u}(Error);m.SdkgenError=i;var d=function(_){function u(s,b){var C=_.call(this,s)||this;return C.data=b,C}return l(u,_),u.prototype.toJSON=function(){return{data:this.data,message:this.message,type:this.type}},u}(i);m.SdkgenErrorWithData=d},2062:function(Le,m,l){"use strict";var i=this&&this.__awaiter||function(p,y,P,O){return new(P||(P=Promise))(function(N,B){function ce(Me){try{re(O.next(Me))}catch(pe){B(pe)}}function K(Me){try{re(O.throw(Me))}catch(pe){B(pe)}}function re(Me){Me.done?N(Me.value):function S(N){return N instanceof P?N:new P(function(B){B(N)})}(Me.value).then(ce,K)}re((O=O.apply(p,y||[])).next())})},d=this&&this.__generator||function(p,y){var O,S,N,B,P={label:0,sent:function(){if(1&N[0])throw N[1];return N[1]},trys:[],ops:[]};return B={next:ce(0),throw:ce(1),return:ce(2)},"function"==typeof Symbol&&(B[Symbol.iterator]=function(){return this}),B;function ce(re){return function(Me){return function K(re){if(O)throw new TypeError("Generator is already executing.");for(;P;)try{if(O=1,S&&(N=2&re[0]?S.return:re[0]?S.throw||((N=S.return)&&N.call(S),0):S.next)&&!(N=N.call(S,re[1])).done)return N;switch(S=0,N&&(re=[2&re[0],N.value]),re[0]){case 0:case 1:N=re;break;case 4:return P.label++,{value:re[1],done:!1};case 5:P.label++,S=re[1],re=[0];continue;case 7:re=P.ops.pop(),P.trys.pop();continue;default:if(!(N=(N=P.trys).length>0&&N[N.length-1])&&(6===re[0]||2===re[0])){P=0;continue}if(3===re[0]&&(!N||re[1]>N[0]&&re[1]<N[3])){P.label=re[1];break}if(6===re[0]&&P.label<N[1]){P.label=N[1],N=re;break}if(N&&P.label<N[2]){P.label=N[2],P.ops.push(re);break}N[2]&&P.ops.pop(),P.trys.pop();continue}re=y.call(p,P)}catch(Me){re=[6,Me],S=0}finally{O=N=0}if(5&re[0])throw re[1];return{value:re[0]?re[1]:void 0,done:!0}}([re,Me])}}};Object.defineProperty(m,"__esModule",{value:!0}),m.SdkgenHttpClient=void 0;var _=l(4602);function u(p){for(var y="",P=0;P<2*p;++P)y+="0123456789abcdef"[Math.floor(16*Math.random())];return y}var s=u(20);function b(){try{var p=localStorage.getItem("deviceId");return p||(p=s,localStorage.setItem("deviceId",p)),p}catch(y){}return s}function C(p,y){return y in p}var T=function(){function p(y,P,O){this.astJson=P,this.errClasses=O,this.extra=new Map,this.successHook=function(){},this.errorHook=function(){},this.baseUrl=y}return p.prototype.makeRequest=function(y,P){var O,S;return i(this,void 0,void 0,function(){var N,B,ce,K,re,Me=this;return d(this,function(pe){switch(pe.label){case 0:if(!(N=this.astJson.functionTable[y]))throw new Error("Unknown function ".concat(y));return B={},this.extra.forEach(function(be,ue){B[ue]=be}),ce={args:(0,_.encode)(this.astJson.typeTable,"".concat(y,".args"),N.args,P),deviceInfo:{id:b(),language:navigator.language,platform:{browserUserAgent:navigator.userAgent},timezone:"object"==typeof Intl?Intl.DateTimeFormat().resolvedOptions().timeZone:null,type:"web",version:null!==(S=null===(O=document.currentScript)||void 0===O?void 0:O.getAttribute("src"))&&void 0!==S?S:""},extra:B,name:y,requestId:u(16),version:3},[4,new Promise(function(be,ue){var xe=new XMLHttpRequest;xe.open("POST","".concat(Me.baseUrl,"/").concat(y)),xe.setRequestHeader("Content-Type","application/sdkgen"),xe.onreadystatechange=function(){if(4===xe.readyState)try{var He=JSON.parse(xe.responseText);try{C(He,"error")&&He.error?(ue(He.error),Me.errorHook(He.error,y,P)):be(C(He,"result")?He.result:null)}catch(ct){var et={message:"".concat(ct),type:"Fatal"};ue(et),Me.errorHook(et,y,P)}}catch(ct){ue(et={message:"Falha de conex\xe3o com o servidor",type:"Fatal"}),Me.errorHook(et,y,P)}},xe.send(JSON.stringify(ce))}).catch(function(be){if(Me.errorHook(be,y,P),C(be,"type")&&C(be,"message")&&"string"==typeof be.type&&"string"==typeof be.message){var ue=Me.errClasses[be.type];if(ue){var xe=Me.astJson.errors.find(function(He){return Array.isArray(He)?He[0]===be.type:He===be.type});if(xe)throw Array.isArray(xe)&&C(be,"data")?new ue(be.message,(0,_.decode)(Me.astJson.typeTable,"".concat(ue.name,".data"),xe[1],be.data)):new ue(be.message,void 0)}throw new Me.errClasses.Fatal("".concat(be.type,": ").concat(be.message))}throw be})];case 1:return K=pe.sent(),re=(0,_.decode)(this.astJson.typeTable,"".concat(y,".ret"),N.ret,K),this.successHook(re,y,P),[2,re]}})})},p}();m.SdkgenHttpClient=T},4539:function(Le,m,l){"use strict";var i=this&&this.__createBinding||(Object.create?function(_,u,s,b){void 0===b&&(b=s),Object.defineProperty(_,b,{enumerable:!0,get:function(){return u[s]}})}:function(_,u,s,b){void 0===b&&(b=s),_[b]=u[s]}),d=this&&this.__exportStar||function(_,u){for(var s in _)"default"!==s&&!Object.prototype.hasOwnProperty.call(u,s)&&i(u,_,s)};Object.defineProperty(m,"__esModule",{value:!0}),d(l(2837),m),d(l(2062),m)},3905:(Le,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.generateCSharpServerSource=void 0;const i=l(6676),d=l(4510);m.generateCSharpServerSource=function _(u){let s="using System;\nusing System.Collections.Generic;\nusing System.Globalization;\nusing System.Numerics;\nusing System.Text.Json;\nusing System.Threading.Tasks;\nusing Sdkgen.Runtime;\n\nnamespace SdkgenGenerated\n{\n public abstract class Api : BaseApi\n {";for(const b of u.operations){const C=b.returnType instanceof i.VoidPrimitiveType?"":`<${(0,d.generateTypeName)(b.returnType)}>`;s+=`\n public virtual Task${C} ${(0,d.capitalize)(b.name)}(${["Context ctx",...b.args.map(T=>`${(0,d.generateTypeName)(T.type)} ${(0,d.ident)(T.name)}`)].join(", ")})\n {\n return Task.FromException${C}(new FatalException("Function '${b.name}' not implemented."));\n }\n`}s+="\n public async Task ExecuteFunction(Context context_, Utf8JsonWriter resultWriter_)\n {\n switch (context_.Name)\n {";for(const b of u.operations){s+=`\n case ${JSON.stringify(b.name)}:\n {`;for(const C of b.args)s+=`\n JsonElement ${C.name}Json_;\n if (!context_.Args.TryGetValue(${JSON.stringify(C.name)}, out ${C.name}Json_))\n {\n ${C.type instanceof i.OptionalType?`${C.name}Json_ = new JsonElement()`:`throw new FatalException("'${b.name}().args.${C.name}' must be set to a value of type ${C.type.name}.");`}\n }\n ${(0,d.generateTypeName)(C.type)} ${(0,d.ident)(C.name)};\n ${(0,d.decodeType)(C.type,`${C.name}Json_`,`"${b.name}().args.${C.name}"`,(0,d.ident)(C.name)).replace(/\n/gu,"\n ")}`;s+=b.returnType instanceof i.VoidPrimitiveType?`\n await ${(0,d.capitalize)(b.name)}(${["context_",...b.args.map(C=>(0,d.ident)(C.name))].join(", ")});\n resultWriter_.WriteNullValue();`:`\n var result_ = await ${(0,d.capitalize)(b.name)}(${["context_",...b.args.map(C=>(0,d.ident)(C.name))].join(", ")});\n ${(0,d.encodeType)(b.returnType,"result_",`"${b.name}().ret"`).replace(/\n/gu,"\n ")}`,s+="\n return;\n }"}s+="\n default:\n {\n throw new FatalException($\"Unknown function '{context_.Name}'.\");\n }\n }\n }\n";for(const b of u.structTypes)s+=(0,d.generateStruct)(b);for(const b of u.enumTypes)s+=(0,d.generateEnum)(b);s+=`\n public string GetAstJson() => @"${JSON.stringify((0,i.astToJson)(u),null,4).replace(/"/gu,'""').replace(/\n/gu,"\n ")}";\n }\n`;for(const b of u.errors)s+=`\n public class ${b.name}Exception : SdkgenException\n {\n public ${b.name}Exception(string message, Exception? inner = null) : base("${b.name}", message, inner) { }\n }\n`;return s+="\n}\n",s}},4510:(Le,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.generateEnum=m.generateStruct=m.encodeType=m.decodeType=m.generateTypeName=m.capitalize=m.ident=void 0;const i=l(6676),d=["abstract","as","base","bool","break","byte","case","catch","char","checked","class","const","continue","decimal","default","delegate","do","double","else","enum","event","explicit","extern","false","finally","fixed","float","for","foreach","goto","if","implicit","in","int","interface","internal","is","lock","long","namespace","new","null","object","operator","out","override","params","private","protected","public","readonly","ref","return","sbyte","sealed","short","sizeof","stackalloc","static","string","struct","switch","this","throw","true","try","typeof","uint","ulong","unchecked","unsafe","ushort","using","using","static","virtual","void","volatile","while"],_=[i.StringPrimitiveType,i.HtmlPrimitiveType,i.CpfPrimitiveType,i.CnpjPrimitiveType,i.BytesPrimitiveType,i.EmailPrimitiveType,i.UrlPrimitiveType,i.UuidPrimitiveType,i.HexPrimitiveType,i.Base64PrimitiveType,i.XmlPrimitiveType,i.StructType,i.ArrayType],u=[i.BigIntPrimitiveType,i.DatePrimitiveType,i.DateTimePrimitiveType,i.FloatPrimitiveType,i.IntPrimitiveType,i.MoneyPrimitiveType,i.UIntPrimitiveType];function s(O){return d.includes(O)?`@${O}`:O}function b(O){return O[0].toUpperCase()+O.slice(1)}function C(O){switch(O.constructor){case i.StringPrimitiveType:return"string";case i.IntPrimitiveType:return"int";case i.UIntPrimitiveType:return"uint";case i.FloatPrimitiveType:return"double";case i.BigIntPrimitiveType:return"BigInteger";case i.DatePrimitiveType:case i.DateTimePrimitiveType:return"DateTime";case i.BoolPrimitiveType:return"bool";case i.BytesPrimitiveType:return"byte[]";case i.MoneyPrimitiveType:return"decimal";case i.CpfPrimitiveType:case i.CnpjPrimitiveType:case i.EmailPrimitiveType:case i.HtmlPrimitiveType:case i.UrlPrimitiveType:case i.UuidPrimitiveType:case i.HexPrimitiveType:case i.Base64PrimitiveType:case i.XmlPrimitiveType:return"string";case i.VoidPrimitiveType:return"void";case i.JsonPrimitiveType:return"JsonElement";case i.OptionalType:return`${C(O.base)}?`;case i.ArrayType:return`List<${C(O.base)}>`;case i.StructType:case i.EnumType:return O.name;case i.TypeReference:return C(O.type);default:throw new Error(`BUG: generateTypeName with ${O.constructor.name}`)}}function T(O,S,N,B,ce=1,K=!0){switch(O.constructor){case i.IntPrimitiveType:return`\n if (${S}.ValueKind != JsonValueKind.Number || !${S}.TryGetInt32(out ${B}))\n {\n throw new FatalException($"'{${N}}' must be an integer");\n }\n `.replace(/\n {16}/gu,"\n").trim();case i.UIntPrimitiveType:return`\n if (${S}.ValueKind != JsonValueKind.Number || !${S}.TryGetUInt32(out ${B}))\n {\n throw new FatalException($"'{${N}}' must be an unsigned integer.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case i.MoneyPrimitiveType:return`\n if (${S}.ValueKind != JsonValueKind.Number || !${S}.TryGetDecimal(out ${B}) || ${B} % 1 != 0)\n {\n throw new FatalException($"'{${N}}' must be an integer amount of cents.");\n }\n ${B} /= 100;\n `.replace(/\n {16}/gu,"\n").trim();case i.FloatPrimitiveType:return`\n if (${S}.ValueKind != JsonValueKind.Number || !${S}.TryGetDouble(out ${B}))\n {\n throw new FatalException($"'{${N}}' must be a floating-point number.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case i.BigIntPrimitiveType:return`\n if (${S}.ValueKind != JsonValueKind.String || !BigInteger.TryParse(${S}.GetString(), out ${B}))\n {\n throw new FatalException($"'{${N}}' must be an arbitrarily large integer in a string.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case i.StringPrimitiveType:return`\n if (${S}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${N}}' must be a string.");\n }\n ${B} = ${S}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.HtmlPrimitiveType:return`\n if (${S}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${N}}' must be a valid HTML string.");\n }\n ${B} = ${S}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.CpfPrimitiveType:return`\n if (${S}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${N}}' must be a valid CPF string.");\n }\n ${B} = ${S}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.CnpjPrimitiveType:return`\n if (${S}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${N}}' must be a valid CNPJ string.");\n }\n ${B} = ${S}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.EmailPrimitiveType:return`\n if (${S}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${N}}' must be a valid email.");\n }\n ${B} = ${S}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.UrlPrimitiveType:return`\n if (${S}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${N}}' must be a valid URL string.");\n }\n ${B} = ${S}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.UuidPrimitiveType:return`\n if (${S}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${N}}' must be a valid UUID.");\n }\n ${B} = ${S}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.HexPrimitiveType:return`\n if (${S}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${N}}' must be a valid hex string.");\n }\n ${B} = ${S}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.Base64PrimitiveType:return`\n if (${S}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${N}}' must be a base64 string.");\n }\n ${B} = ${S}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.XmlPrimitiveType:return`\n if (${S}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${N}}' must be a XML string.");\n }\n ${B} = ${S}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.BoolPrimitiveType:return`\n if (${S}.ValueKind != JsonValueKind.True && ${S}.ValueKind != JsonValueKind.False)\n {\n throw new FatalException($"'{${N}}' must be either true or false.");\n }\n ${B} = ${S}.GetBoolean();\n `.replace(/\n {16}/gu,"\n").trim();case i.BytesPrimitiveType:return`\n if (${S}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${N}}' must be a string.");\n }\n try\n {\n ${B} = Convert.FromBase64String(${S}.GetString());\n }\n catch (FormatException)\n {\n throw new FatalException($"'{${N}}' must be a base64 string.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case i.TypeReference:return T(O.type,S,N,B,ce);case i.OptionalType:if(u.includes(O.base.constructor)){const re=`${B.replace(/[^0-9a-zA-Z]/gu,"")}Tmp`;return`\n if (${S}.ValueKind == JsonValueKind.Null || ${S}.ValueKind == JsonValueKind.Undefined)\n {\n ${B} = null;\n }\n else\n {\n ${C(O.base)} ${re};\n ${T(O.base,S,N,re,ce,!1).replace(/\n/gu,"\n ")}\n ${B} = ${re};\n }\n `.replace(/\n {20}/gu,"\n").trim()}return`\n if (${S}.ValueKind == JsonValueKind.Null || ${S}.ValueKind == JsonValueKind.Undefined)\n {\n ${B} = null;\n }\n else\n {\n ${T(O.base,S,N,B,ce,!1).replace(/\n/gu,"\n ")}\n }\n `.replace(/\n {20}/gu,"\n").trim();case i.EnumType:case i.StructType:return`${B} = Decode${O.name}(${S}, ${N});`;case i.JsonPrimitiveType:return K?`\n if (${S}.ValueKind == JsonValueKind.Null || ${S}.ValueKind == JsonValueKind.Undefined)\n {\n throw new FatalException($"'{${N}}' can't be null.");\n }\n ${B} = ${S};\n `.replace(/\n {16}/gu,"\n").trim():`${B} = ${S};`;case i.DateTimePrimitiveType:return`\n if (${S}.ValueKind != JsonValueKind.String || !(DateTime.TryParseExact(${S}.GetString(), "yyyy-MM-ddTHH:mm:ss.FFFFFFF", CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal | DateTimeStyles.AssumeUniversal, out ${B}) || DateTime.TryParseExact(${S}.GetString(), "yyyy-MM-ddTHH:mm:ss.FFFFFFF'Z'", CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal | DateTimeStyles.AssumeUniversal, out ${B})))\n {\n throw new FatalException($"'{${N}}' must be a datetime.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case i.DatePrimitiveType:return`\n if (${S}.ValueKind != JsonValueKind.String || !(DateTime.TryParseExact(${S}.GetString(), "yyyy-MM-dd", CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal | DateTimeStyles.AssumeUniversal, out ${B})))\n {\n throw new FatalException($"'{${N}}' must be a date.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case i.ArrayType:return`\n if (${S}.ValueKind != JsonValueKind.Array)\n {\n throw new FatalException($"'{${N}}' must be a date.");\n }\n ${B} = new ${C(O)}();\n for (var i${ce} = 0; i${ce} < ${S}.GetArrayLength(); ++i${ce})\n {\n ${C(O.base)} element${ce};\n ${T(O.base,`${S}[i${ce}]`,`$"{${N}}[{i${ce}}]"`,`element${ce}`,ce+1).replace(/\n/gu,"\n ")}\n ${B}.Add(element${ce});\n }\n `.replace(/\n {16}/gu,"\n").trim();default:throw new Error(`BUG: decodeType with ${O.constructor.name}`)}}function p(O,S,N,B=1){switch(O.constructor){case i.StringPrimitiveType:return`resultWriter_.WriteStringValue(${S});`;case i.FloatPrimitiveType:case i.UIntPrimitiveType:case i.IntPrimitiveType:return`resultWriter_.WriteNumberValue(${S});`;case i.MoneyPrimitiveType:return`resultWriter_.WriteNumberValue(Math.Round(${S} * 100));`;case i.BigIntPrimitiveType:return`resultWriter_.WriteStringValue(${S}.ToString());`;case i.BoolPrimitiveType:return`resultWriter_.WriteBooleanValue(${S});`;case i.BytesPrimitiveType:return`resultWriter_.WriteStringValue(Convert.ToBase64String(${S}));`;case i.DateTimePrimitiveType:return`resultWriter_.WriteStringValue(${S}.ToString("yyyy-MM-ddTHH:mm:ss.FFFFFF'Z'"));`;case i.DatePrimitiveType:return`resultWriter_.WriteStringValue(${S}.ToString("yyyy-MM-dd"));`;case i.CpfPrimitiveType:case i.CnpjPrimitiveType:case i.EmailPrimitiveType:case i.HtmlPrimitiveType:case i.UrlPrimitiveType:case i.UuidPrimitiveType:case i.Base64PrimitiveType:case i.HexPrimitiveType:case i.XmlPrimitiveType:return`resultWriter_.WriteStringValue(${S});`;case i.OptionalType:{let ce=O.base;for(;ce instanceof i.TypeReference;)ce=ce.type;return`\n if (${S} == null)\n {\n resultWriter_.WriteNullValue();\n }\n else\n {\n ${p(ce,_.includes(ce.constructor)?S:`${S}.Value`,N,B).replace(/\n/gu,"\n ")}\n }`.replace(/\n {16}/gu,"\n").trim()}case i.TypeReference:return p(O.type,S,N,B);case i.EnumType:case i.StructType:return`Encode${O.name}(${S}, resultWriter_, ${N});`;case i.JsonPrimitiveType:return`${S}.WriteTo(resultWriter_);`;case i.ArrayType:return`\n resultWriter_.WriteStartArray();\n for (var i${B} = 0; i${B} < ${S}.Count; ++i${B})\n {\n ${p(O.base,`${S}[i${B}]`,`$"{${N}}[{i${B}}]"`,B+1).replace(/\n/gu,"\n ")}\n }\n resultWriter_.WriteEndArray();\n `.replace(/\n {16}/gu,"\n").trim();default:throw new Error(`BUG: encodeType with ${O.constructor.name}`)}}m.ident=s,m.capitalize=b,m.generateTypeName=C,m.decodeType=T,m.encodeType=p,m.generateStruct=function y(O){return`\n public class ${O.name}\n {${O.fields.map(S=>`\n public ${C(S.type)} ${b(S.name)};`).join("")}\n public ${O.name}(${O.fields.map(S=>`${C(S.type)} ${s(S.name)}`).join(", ")})\n {${O.fields.map(S=>`\n ${b(S.name)} = ${s(S.name)};`).join("")}\n }\n }\n\n ${O.name} Decode${O.name}(JsonElement json_, string path_)\n {\n if (json_.ValueKind != JsonValueKind.Object)\n {\n throw new FatalException($"'{path_}' must be an object.");\n }\n${O.fields.map(S=>` JsonElement ${S.name}Json_;\n if (!json_.TryGetProperty(${JSON.stringify(S.name)}, out ${S.name}Json_))\n {\n ${S.type instanceof i.OptionalType?`${S.name}Json_ = new JsonElement();`:`throw new FatalException($"'{path_}.${S.name}' must be set to a value of type ${S.type.name}.");`}\n }\n ${C(S.type)} ${s(S.name)};\n ${T(S.type,`${S.name}Json_`,`$"{path_}.${S.name}"`,s(S.name)).replace(/\n/gu,"\n ")}`).join("\n")}\n return new ${O.name}(${O.fields.map(S=>s(S.name)).join(", ")});\n }\n\n void Encode${O.name}(${O.name} obj_, Utf8JsonWriter resultWriter_, string path_)\n {\n resultWriter_.WriteStartObject();\n ${O.fields.map(S=>`resultWriter_.WritePropertyName(${JSON.stringify(S.name)});\n ${p(S.type,`obj_.${b(S.name)}`,`$"{path_}.${S.name}"`).replace(/\n/gu,"\n ")}`).join("\n ")}\n resultWriter_.WriteEndObject();\n }\n`},m.generateEnum=function P(O){return`\n public enum ${O.name}\n {${O.values.map(({value:S})=>`\n ${b(S)}`).join(",\n ")}\n }\n\n ${O.name} Decode${O.name}(JsonElement json_, string path_)\n {\n if (json_.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{path_}' must be a string.");\n }\n var value = json_.GetString();${O.values.map(({value:S})=>`\n if (value == "${S}")\n {\n return ${O.name}.${b(S)};\n }`).join("")}\n throw new FatalException($"'{path_}' must be one of: (${O.values.map(({value:S})=>`'${S}'`).join(", ")}).");\n }\n\n void Encode${O.name}(${O.name} obj_, Utf8JsonWriter resultWriter_, string path_)\n {${O.values.map(({value:S})=>`\n if (obj_ == ${O.name}.${b(S)})\n {\n resultWriter_.WriteStringValue("${S}");\n }`).join("")}\n }\n`}},7179:function(Le,m,l){"use strict";var i=this&&this.__createBinding||(Object.create?function(_,u,s,b){void 0===b&&(b=s),Object.defineProperty(_,b,{enumerable:!0,get:function(){return u[s]}})}:function(_,u,s,b){void 0===b&&(b=s),_[b]=u[s]}),d=this&&this.__exportStar||function(_,u){for(var s in _)"default"!==s&&!Object.prototype.hasOwnProperty.call(u,s)&&i(u,_,s)};Object.defineProperty(m,"__esModule",{value:!0}),d(l(3905),m)},1911:(Le,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.generateDartClientSource=void 0;const i=l(6676),d=l(5235);m.generateDartClientSource=function _(u){let s="";s+="import 'dart:typed_data';\n\nimport 'package:flutter/widgets.dart';\nimport 'package:sdkgen_runtime/types.dart';\nimport 'package:sdkgen_runtime/http_client.dart';\n\n";for(const b of u.enumTypes)s+=(0,d.generateEnum)(b),s+="\n";for(const b of u.structTypes)s+=(0,d.generateClass)(b),s+="\n";for(const b of u.errors)s+=(0,d.generateErrorClass)(b),s+="\n";s+=`class ApiClient extends SdkgenHttpClient {\n ApiClient(String baseUrl, [BuildContext? context]) : super(baseUrl, context, _typeTable, _fnTable, _errTable);\n${u.operations.filter(b=>b.annotations.every(C=>!(C instanceof i.HiddenAnnotation))).map(b=>`\n ${b.returnType instanceof i.VoidPrimitiveType?"Future<void> ":`Future<${(0,d.generateTypeName)(b.returnType)}> `}${b.name}(${0===b.args.length?"":`{${b.args.map(C=>`${C.type instanceof i.OptionalType?"":"required "}${(0,d.generateTypeName)(C.type)} ${(0,d.mangle)(C.name)}`).join(", ")}}`}) async { ${b.returnType instanceof i.VoidPrimitiveType?"":"return "}${(0,d.cast)(`await makeRequest('${b.name}', {${b.args.map(C=>`'${C.name}': ${(0,d.mangle)(C.name)}`).join(", ")}})`,b.returnType)}; }`).join("")}\n}\n\n`,s+="var _typeTable = {\n";for(const b of u.structTypes){s+=` '${b.name}': StructTypeDescription(\n`,s+=` ${b.name},\n`,s+=" {\n";for(const C of b.fields)s+=` '${C.name}': '${C.type.name}',\n`;s+=" },\n",s+=` (Map fields) => ${b.name}(\n`;for(const C of b.fields)s+=` ${(0,d.mangle)(C.name)}: ${(0,d.cast)(`fields['${C.name}']`,C.type)},\n`;s+=" ),\n",s+=` (${b.name} obj) => ({\n`;for(const C of b.fields)s+=` '${C.name}': obj.${(0,d.mangle)(C.name)},\n`;s+=" }),\n",s+=" ),\n"}for(const b of u.enumTypes)s+=` '${b.name}': EnumTypeDescription(${b.name}, ${b.name}.values, [\n ${b.values.map(C=>`'${C.value}'`).join(",\n ")}\n ]),\n`;s+="};\n\n",s+="var _fnTable = {\n";for(const b of u.operations){s+=` '${b.name}': FunctionDescription('${b.returnType.name}', {\n`;for(const C of b.args)s+=` '${C.name}': '${C.type.name}',\n`;s+=" }),\n"}s+="};\n\n",s+="var _errTable = {\n";for(const b of u.errors)s+=` '${b.name}': SdkgenErrorDescription('${b.dataType.name}', (msg, data) => ${b.name}(msg${b.dataType instanceof i.VoidPrimitiveType?"":", data"})),\n`;return s+="};\n",s}},5235:(Le,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.generateClass=m.cast=m.generateErrorClass=m.generateTypeName=m.generateEnum=m.mangle=void 0;const i=l(6676);function d(O){return["abstract","as","assert","async","await","bool","break","case","catch","class","const","continue","covariant","default","deferred","do","double","dynamic","else","enum","export","extends","extension","external","factory","false","final","finally","for","Function","get","hide","if","implements","import","in","int","interface","is","library","mixin","new","null","on","operator","part","rethrow","return","set","show","static","super","switch","sync","this","throw","true","try","typedef","var","void","while","with","yield"].includes(O)?`$${O}`:O}function u(O){switch(O.constructor){case i.StringPrimitiveType:return"String";case i.IntPrimitiveType:case i.UIntPrimitiveType:return"int";case i.FloatPrimitiveType:return"double";case i.BigIntPrimitiveType:return"BigInt";case i.DatePrimitiveType:case i.DateTimePrimitiveType:return"DateTime";case i.BoolPrimitiveType:return"bool";case i.BytesPrimitiveType:return"Uint8List";case i.MoneyPrimitiveType:return"int";case i.CpfPrimitiveType:case i.CnpjPrimitiveType:case i.EmailPrimitiveType:case i.HtmlPrimitiveType:case i.UrlPrimitiveType:case i.UuidPrimitiveType:case i.HexPrimitiveType:case i.Base64PrimitiveType:case i.XmlPrimitiveType:return"String";case i.VoidPrimitiveType:return"void";case i.JsonPrimitiveType:return"dynamic";case i.OptionalType:return`${u(O.base)}?`;case i.ArrayType:return`List<${u(O.base)}>`;case i.StructType:case i.EnumType:return O.name;case i.TypeReference:return u(O.type);default:throw new Error(`BUG: generateTypeName with ${O.constructor.name}`)}}m.mangle=d,m.generateEnum=function _(O){return`enum ${O.name} {\n ${O.values.map(S=>S.value).join(",\n ")}\n}\n`},m.generateTypeName=u,m.generateErrorClass=function s(O){if(O.dataType instanceof i.VoidPrimitiveType)return`class ${O.name} extends SdkgenError {\n ${O.name}(String msg) : super(msg);\n}\n`;const S=u(O.dataType);return`class ${O.name} extends SdkgenErrorWithData<${S}> {\n ${O.name}(String msg, ${S} data) : super(msg, data);\n}\n`},m.cast=function b(O,S){return S instanceof i.OptionalType?`${O} == null ? null : ${b(O,S.base)}`:S instanceof i.ArrayType?`(${O} as List).map((e) => ${b("e",S.base)}).toList()`:S instanceof i.VoidPrimitiveType?O:S instanceof i.FloatPrimitiveType?`(${O} as num).toDouble()`:S instanceof i.MoneyPrimitiveType?`${O} as int`:`${O} as ${u(S)}`},m.generateClass=function P(O){return`class ${O.name} {\n ${O.fields.map(S=>`final ${u(S.type)} ${d(S.name)};`).join("\n ")}\n\n${function C(O){let S=` ${O.name}({\n`;for(const N of O.fields)S+=N.type instanceof i.OptionalType?" ":" required ",S+=`this.${d(N.name)},\n`;return S+=" });\n",S}(O)}\n${function T(O){let S=" bool operator ==(other){\n";return S+=" if (identical(this, other)) return true;\n",S+=` return ${[`other is ${O.name}`,...O.fields.map(N=>`${d(N.name)} == other.${d(N.name)}`)].join(" && ")};\n`,S+=" }\n",S}(O)}\n${function p(O){return` @override\n int get hashCode => hashList([${O.fields.map(S=>d(S.name)).join(", ")}]);\n`}(O)}\n${function y(O){return` String toString() {\n return '${O.name} { ${O.fields.map(S=>`${S.name}: $${d(S.name).startsWith("$")?`{${d(S.name)}}`:d(S.name)}`).join(", ")} }';\n }\n`}(O)}}\n`}},1823:function(Le,m,l){"use strict";var i=this&&this.__createBinding||(Object.create?function(_,u,s,b){void 0===b&&(b=s),Object.defineProperty(_,b,{enumerable:!0,get:function(){return u[s]}})}:function(_,u,s,b){void 0===b&&(b=s),_[b]=u[s]}),d=this&&this.__exportStar||function(_,u){for(var s in _)"default"!==s&&!Object.prototype.hasOwnProperty.call(u,s)&&i(u,_,s)};Object.defineProperty(m,"__esModule",{value:!0}),d(l(1911),m)},9409:(Le,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.generateAndroidClientSource=void 0;const i=l(6676),d=l(7250);m.generateAndroidClientSource=function _(u,s){let b='@file:Suppress("UNNECESSARY_SAFE_CALL")\n\nimport android.os.Parcelable\nimport kotlinx.android.parcel.Parcelize\nimport android.content.Context\nimport android.util.Base64\nimport com.google.gson.*\nimport com.google.gson.reflect.TypeToken\nimport com.google.gson.annotations.JsonAdapter\nimport com.google.gson.annotations.SerializedName\nimport io.sdkgen.runtime.SdkgenHttpClient\nimport kotlinx.coroutines.*\nimport kotlinx.coroutines.Dispatchers.IO\nimport java.util.*\n\ninline fun <reified T> Gson.fromJson(json: String) =\n fromJson<T>(json, object : TypeToken<T>() {}.type)\n\ninline fun <reified T> Gson.fromJson(json: JsonElement) =\n fromJson<T>(json, object : TypeToken<T>() {}.type)\n\n@Suppress("DeferredIsResult", "unused")\nclass ApiClient(\n baseUrl: String,\n val applicationContext: Context,\n defaultTimeoutMillis: Long = 10000L\n) : SdkgenHttpClient(baseUrl, applicationContext, defaultTimeoutMillis) {\n\n private val gson = GsonBuilder()\n .registerTypeAdapter(object : TypeToken<ByteArray>() {}.type, ByteArrayDeserializer())\n .create()\n\n';for(const p of u.enumTypes)b+=` ${(0,d.generateEnum)(p)}`,b+="\n";b+=" open class Error(val message: String? = null)\n",b+=" data class Response<T>(val error: Error?, val data: T?, val stats: CallStats?)\n\n";for(const p of u.structTypes)b+=` ${(0,d.generateClass)(p)}\n`;const C=[],T=new i.ErrorNode("Connection",new i.VoidPrimitiveType);C.push(T.name),b+=` ${(0,d.generateErrorClass)(T)}`;for(const p of u.errors)b+=` ${(0,d.generateErrorClass)(p)}`,C.push(p.name);return C.length>0&&(b+=`\n enum class ErrorType {\n ${C.join(",\n ")};\n\n fun type(): Class<out ApiClient.Error> {\n return when (this) {\n ${C.map(p=>`${p} -> ApiClient.${p}::class.java`).join("\n ")}\n else -> ApiClient.Error::class.java\n }\n }\n }\n\n`),b+=" private val sdkgenIOScope = CoroutineScope(IO + SupervisorJob())\n\n",b+=u.operations.filter(p=>p.annotations.every(y=>!(y instanceof i.HiddenAnnotation))).map(p=>{let y="";const P=[];P.push("timeoutMillis: Long? = null"),s&&P.push(`callback: ((response: Response<${(0,d.generateKotlinTypeName)(p.returnType)}>) -> Unit)? = null`);const O=p.args.map(S=>`${(0,d.mangle)(S.name)}: ${(0,d.generateKotlinTypeName)(S.type)}`).concat(P);return y+=` fun ${(0,d.mangle)(p.name)}(\n ${O.join(",\n ")}\n ): Deferred<Response<out ${(0,d.generateKotlinTypeName)(p.returnType)}>> = sdkgenIOScope.async {\n`,p.args.length>0?(y+=" val bodyArgs = JsonObject().apply {\n",y+=p.args.map(S=>` ${(0,d.generateJsonAddRepresentation)(S.type,S.name)}`).join("\n"),y+="\n }\n"):y+=" val bodyArgs: JsonObject? = null",y+="\n",y+=` val call = makeRequest("${p.name}", bodyArgs, timeoutMillis)\n`,y+=` val response: Response<${(0,d.generateKotlinTypeName)(p.returnType)}> = handleCallResponse(call)\n`,s&&(y+=" withContext(Dispatchers.Main) { callback?.invoke(response) } \n"),y+=" return@async response\n",y+=" }\n",y}).join("\n"),b+='\n private inline fun <reified T> handleCallResponse(callResponse: InternalResponse): Response<T> {\n try {\n val data = if (callResponse.result?.get("result") != null)\n gson.fromJson<T>(callResponse.result?.get("result")!!)\n else null\n\n val error = if (callResponse.error != null) {\n val errorType = try {\n ErrorType.valueOf(callResponse.error?.get("type")?.asString ?: "")\n } catch (e: Exception) {\n ErrorType.Fatal\n }\n\n gson.fromJson(callResponse.error, errorType.type())\n } else null\n\n return Response(error, data, callResponse.stats)\n } catch(e: Exception) {\n return Response(Fatal(applicationContext.getString(io.sdkgen.runtime.R.string.sdkgen_error_serialization)), null, callResponse.stats)\n }\n }\n',b+="}\n",b}},7250:(Le,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.generateErrorClass=m.generateClass=m.getAnnotation=m.generateEnum=m.generateJsonAddRepresentation=m.mangle=m.generateKotlinTypeName=void 0;const i=l(6676);function d(p){switch(p.constructor){case i.IntPrimitiveType:case i.UIntPrimitiveType:case i.MoneyPrimitiveType:return"Int";case i.FloatPrimitiveType:return"Double";case i.BigIntPrimitiveType:return"BigInt";case i.DatePrimitiveType:case i.DateTimePrimitiveType:return"Calendar";case i.BoolPrimitiveType:return"Boolean";case i.BytesPrimitiveType:return"ByteArray";case i.StringPrimitiveType:case i.CpfPrimitiveType:case i.CnpjPrimitiveType:case i.EmailPrimitiveType:case i.HtmlPrimitiveType:case i.UrlPrimitiveType:case i.UuidPrimitiveType:case i.HexPrimitiveType:case i.Base64PrimitiveType:case i.XmlPrimitiveType:return"String";case i.VoidPrimitiveType:return"Unit";case i.JsonPrimitiveType:return"JsonElement";case i.OptionalType:return`${d(p.base)}?`;case i.ArrayType:return`ArrayList<${d(p.base)}>`;case i.StructType:case i.EnumType:return p.name;case i.TypeReference:return d(p.type);default:throw new Error(`BUG: generateKotlinTypeName with ${p.constructor.name}`)}}function _(p){return["in","out","as","break","class","continue","do","else","false","for","fun","if","in","interface","is","null","object","package","return","super","this","throw","true","try","typealias","val","var","when","while","by","catch","constructor","delegate","dynamic","field","file","finally","get","import","init","param","property","receiver","set","setparam","where","actual","abstract","annotation","companion","const","crossinline","data","enum","expect","external","final","infix","inline","inner","internal","lateinit","noinline","open","operator","out","override","private","protected","public","reified","sealed","suspend","tailrec","vararg","Double","Float","Long","Int","Short","Byte"].includes(p)?`_${p}`:p}function b(p,y){let P="";switch(y&&y!==_(y)&&(P+=` @SerializedName("${y}")\n`),p.constructor){case i.DatePrimitiveType:P+=" @JsonAdapter(DateAdapter::class)\n";break;case i.DateTimePrimitiveType:P+=" @JsonAdapter(DateTimeAdapter::class)\n";break;case i.ArrayType:case i.OptionalType:P+=b(p.base)}return P}m.generateKotlinTypeName=d,m.mangle=_,m.generateJsonAddRepresentation=function u(p,y){switch(p.constructor){case i.StringPrimitiveType:case i.CpfPrimitiveType:case i.CnpjPrimitiveType:case i.EmailPrimitiveType:case i.HtmlPrimitiveType:case i.UrlPrimitiveType:case i.UuidPrimitiveType:case i.HexPrimitiveType:case i.Base64PrimitiveType:case i.XmlPrimitiveType:case i.IntPrimitiveType:case i.UIntPrimitiveType:case i.MoneyPrimitiveType:case i.FloatPrimitiveType:case i.BoolPrimitiveType:return`addProperty("${y}", ${_(y)})`;case i.OptionalType:return u(p.base,y);case i.DatePrimitiveType:return`addProperty("${y}", ${_(y)}?.let { DateAdapter.sdf.format(it.time)}) `;case i.DateTimePrimitiveType:return`addProperty("${y}", ${_(y)}?.let { DateTimeAdapter.sdf.format(it.time)})`;case i.ArrayType:case i.StructType:case i.EnumType:case i.TypeReference:case i.JsonPrimitiveType:return`add("${y}", gson.toJsonTree(${_(y)}))`;case i.VoidPrimitiveType:return"";case i.BytesPrimitiveType:return`addProperty("${y}", Base64.encodeToString(${_(y)}, Base64.NO_WRAP))`;default:throw new Error(`BUG: No result found for generateJsonRepresentation with ${p.constructor.name}`)}},m.generateEnum=function s(p){let y="@Parcelize \n";return y+=` enum class ${p.name} : Parcelable { ${p.values.map(P=>_(P.value)).join(", ")} }\n`,y},m.getAnnotation=b,m.generateClass=function C(p){let y="@Parcelize\n";return y+=` data class ${p.name}(\n${p.fields.map(P=>{let O=b(P.type,P.name);return O+=` var ${_(P.name)}: ${d(P.type)}${P.type.constructor===i.OptionalType?" = null":""}`,O}).join(",\n")}\n ) : Parcelable\n`,y},m.generateErrorClass=function T(p){return`class ${p.name}(message: String) : Error(message)\n`}},7402:function(Le,m,l){"use strict";var i=this&&this.__createBinding||(Object.create?function(_,u,s,b){void 0===b&&(b=s),Object.defineProperty(_,b,{enumerable:!0,get:function(){return u[s]}})}:function(_,u,s,b){void 0===b&&(b=s),_[b]=u[s]}),d=this&&this.__exportStar||function(_,u){for(var s in _)"default"!==s&&!Object.prototype.hasOwnProperty.call(u,s)&&i(u,_,s)};Object.defineProperty(m,"__esModule",{value:!0}),d(l(9409),m)},1942:function(Le,m,l){"use strict";var i=this&&this.__rest||function(Ie,ge){var Xe={};for(var pt in Ie)Object.prototype.hasOwnProperty.call(Ie,pt)&&ge.indexOf(pt)<0&&(Xe[pt]=Ie[pt]);if(null!=Ie&&"function"==typeof Object.getOwnPropertySymbols){var Tt=0;for(pt=Object.getOwnPropertySymbols(Ie);Tt<pt.length;Tt++)ge.indexOf(pt[Tt])<0&&Object.prototype.propertyIsEnumerable.call(Ie,pt[Tt])&&(Xe[pt[Tt]]=Ie[pt[Tt]])}return Xe};Object.defineProperty(m,"__esModule",{value:!0}),m.AstRoot=m.FunctionOperation=m.TypeDefinition=m.StructType=m.TypeReference=m.Spread=m.Field=m.EnumType=m.EnumValue=m.ArrayType=m.OptionalType=m.JsonPrimitiveType=m.XmlPrimitiveType=m.Base64PrimitiveType=m.HtmlPrimitiveType=m.HexPrimitiveType=m.UuidPrimitiveType=m.UrlPrimitiveType=m.EmailPrimitiveType=m.CnpjPrimitiveType=m.CpfPrimitiveType=m.MoneyPrimitiveType=m.VoidPrimitiveType=m.BytesPrimitiveType=m.BoolPrimitiveType=m.DateTimePrimitiveType=m.DatePrimitiveType=m.BigIntPrimitiveType=m.FloatPrimitiveType=m.UIntPrimitiveType=m.IntPrimitiveType=m.StringPrimitiveType=m.PrimitiveType=m.HiddenAnnotation=m.RestAnnotation=m.ArgDescriptionAnnotation=m.ThrowsAnnotation=m.DescriptionAnnotation=m.Annotation=m.ErrorNode=m.Type=m.AstNode=void 0;const d=l(9037);class _{constructor(){this.location=new d.TokenLocation,Object.defineProperty(this,"location",{enumerable:!1})}at(ge){return this.location=ge.location,this}atLocation(ge){return this.location=ge,this}}m.AstNode=_;class u extends _{toJSON(){const ge=Object.assign({},this);return i(ge,["name"])}}m.Type=u,m.ErrorNode=class s extends _{constructor(ge,Xe){super(),this.name=ge,this.dataType=Xe}};class b extends _{}m.Annotation=b,m.DescriptionAnnotation=class C extends b{constructor(ge){super(),this.text=ge}},m.ThrowsAnnotation=class T extends b{constructor(ge){super(),this.error=ge}},m.ArgDescriptionAnnotation=class p extends b{constructor(ge,Xe){super(),this.argName=ge,this.text=Xe}},m.RestAnnotation=class y extends b{constructor(ge,Xe,pt,Tt,Rt,dt){super(),this.method=ge,this.path=Xe,this.pathVariables=pt,this.queryVariables=Tt,this.headers=Rt,this.bodyVariable=dt}},m.HiddenAnnotation=class P extends b{};class O extends u{}m.PrimitiveType=O,m.StringPrimitiveType=class S extends O{constructor(){super(...arguments),this.name="string"}},m.IntPrimitiveType=class N extends O{constructor(){super(...arguments),this.name="int"}},m.UIntPrimitiveType=class B extends O{constructor(){super(...arguments),this.name="uint"}},m.FloatPrimitiveType=class ce extends O{constructor(){super(...arguments),this.name="float"}},m.BigIntPrimitiveType=class K extends O{constructor(){super(...arguments),this.name="bigint"}},m.DatePrimitiveType=class re extends O{constructor(){super(...arguments),this.name="date"}},m.DateTimePrimitiveType=class Me extends O{constructor(){super(...arguments),this.name="datetime"}},m.BoolPrimitiveType=class pe extends O{constructor(){super(...arguments),this.name="bool"}},m.BytesPrimitiveType=class be extends O{constructor(){super(...arguments),this.name="bytes"}},m.VoidPrimitiveType=class ue extends O{constructor(){super(...arguments),this.name="void"}},m.MoneyPrimitiveType=class xe extends O{constructor(){super(...arguments),this.name="money"}},m.CpfPrimitiveType=class He extends O{constructor(){super(...arguments),this.name="cpf"}},m.CnpjPrimitiveType=class et extends O{constructor(){super(...arguments),this.name="cnpj"}},m.EmailPrimitiveType=class ct extends O{constructor(){super(...arguments),this.name="email"}},m.UrlPrimitiveType=class X extends O{constructor(){super(...arguments),this.name="url"}},m.UuidPrimitiveType=class me extends O{constructor(){super(...arguments),this.name="uuid"}},m.HexPrimitiveType=class z extends O{constructor(){super(...arguments),this.name="hex"}},m.HtmlPrimitiveType=class oe extends O{constructor(){super(...arguments),this.name="html"}},m.Base64PrimitiveType=class ke extends O{constructor(){super(...arguments),this.name="base64"}},m.XmlPrimitiveType=class de extends O{constructor(){super(...arguments),this.name="xml"}},m.JsonPrimitiveType=class Ue extends O{constructor(){super(...arguments),this.name="json"}},m.OptionalType=class fe extends u{constructor(ge){super(),this.base=ge}get name(){return`${this.base.name}?`}},m.ArrayType=class Je extends u{constructor(ge){super(),this.base=ge}get name(){return`${this.base.name}[]`}},m.EnumValue=class Te extends _{constructor(ge){super(),this.value=ge,this.annotations=[]}},m.EnumType=class Ge extends u{constructor(ge){super(),this.values=ge}},m.Field=class vt extends _{constructor(ge,Xe,pt=!1){super(),this.name=ge,this.type=Xe,this.secret=pt,this.annotations=[]}},m.Spread=class St extends _{constructor(ge){super(),this.typeReference=ge}},m.TypeReference=class Re extends u{constructor(ge){super(),this.name=ge}},m.StructType=class qe extends u{constructor(ge){super(),this.fieldsAndSpreads=ge,this.fields=[]}},m.TypeDefinition=class Y extends _{constructor(ge,Xe){super(),this.name=ge,this.type=Xe,this.annotations=[]}},m.FunctionOperation=class he extends _{constructor(ge,Xe,pt){super(),this.name=ge,this.fieldsAndSpreads=Xe,this.returnType=pt,this.annotations=[],this.args=[]}},m.AstRoot=class Ee{constructor(ge=[],Xe=[],pt=[]){this.typeDefinitions=ge,this.operations=Xe,this.errors=pt,this.structTypes=[],this.enumTypes=[],this.warnings=[]}}},9747:(Le,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.compatibilityIssues=void 0;const i=l(1942);function d(s,b,C,T){if(C instanceof i.TypeReference)d(s,b,C.type,T);else if(T instanceof i.TypeReference)d(s,b,C,T.type);else if(C instanceof i.OptionalType||!(T instanceof i.OptionalType))if(C instanceof i.OptionalType&&T instanceof i.OptionalType)d(s,b,C.base,T.base);else{if(C instanceof i.OptionalType&&!(T instanceof i.OptionalType))return b.push(`${s} was optional, but now it isn't. If the client sends a null, it will be invalid. Add the optional annotation back.`),void d(s,b,C.base,T);if(C instanceof i.ArrayType&&T instanceof i.ArrayType)d(s,b,C.base,T.base);else if(C instanceof i.StructType&&T instanceof i.StructType)for(const p of T.fields){const y=C.fields.find(P=>P.name===p.name);if(y)d(`${s}.${y.name}`,b,y.type,p.type);else{if(p.type instanceof i.OptionalType)continue;b.push(`${s}.${p.name} didn't exist before and isn't optional. Make it optional.`)}}else if(!(C instanceof i.UIntPrimitiveType&&T instanceof i.IntPrimitiveType||C instanceof i.IntPrimitiveType&&T instanceof i.FloatPrimitiveType||C instanceof i.MoneyPrimitiveType&&T instanceof i.IntPrimitiveType||C instanceof i.MoneyPrimitiveType&&T instanceof i.UIntPrimitiveType||C instanceof i.UIntPrimitiveType&&T instanceof i.BigIntPrimitiveType||C instanceof i.IntPrimitiveType&&T instanceof i.BigIntPrimitiveType||C instanceof i.MoneyPrimitiveType&&T instanceof i.BigIntPrimitiveType||C instanceof i.BigIntPrimitiveType&&T instanceof i.StringPrimitiveType||C instanceof i.UuidPrimitiveType&&T instanceof i.StringPrimitiveType||C instanceof i.XmlPrimitiveType&&T instanceof i.StringPrimitiveType||C instanceof i.DatePrimitiveType&&T instanceof i.StringPrimitiveType||C instanceof i.DateTimePrimitiveType&&T instanceof i.StringPrimitiveType||C instanceof i.CpfPrimitiveType&&T instanceof i.StringPrimitiveType||C instanceof i.CnpjPrimitiveType&&T instanceof i.StringPrimitiveType||C instanceof i.HexPrimitiveType&&T instanceof i.StringPrimitiveType||C instanceof i.HtmlPrimitiveType&&T instanceof i.StringPrimitiveType||C instanceof i.Base64PrimitiveType&&T instanceof i.StringPrimitiveType||C instanceof i.BytesPrimitiveType&&T instanceof i.StringPrimitiveType||C instanceof i.BytesPrimitiveType&&T instanceof i.Base64PrimitiveType||C instanceof i.UrlPrimitiveType&&T instanceof i.StringPrimitiveType||C instanceof i.EmailPrimitiveType&&T instanceof i.StringPrimitiveType||C instanceof i.EnumType&&T instanceof i.StringPrimitiveType)){if(C instanceof i.EnumType&&T instanceof i.EnumType){for(const p of C.values)T.values.map(y=>y.value).includes(p.value)||b.push(`The enum at ${s} used to accept the value "${p.value}" that doesn't exist now. Clients that send it will fail.`);return}C.constructor.name!==T.constructor.name&&b.push(`${s} was ${C.name} and now it is ${T.name}. They are not compatible.`)}}else d(s,b,C,T.base)}function _(s,b,C,T){if(C instanceof i.TypeReference)_(s,b,C.type,T);else if(T instanceof i.TypeReference)_(s,b,C,T.type);else if(!(C instanceof i.OptionalType)||T instanceof i.OptionalType)if(C instanceof i.OptionalType&&T instanceof i.OptionalType)_(s,b,C.base,T.base);else{if(!(C instanceof i.OptionalType)&&T instanceof i.OptionalType)return b.push(`${s} wasn't optional, but now it is. If the client receives a null, it will crash. Remove the optional annotation.`),void _(s,b,C,T.base);if(C instanceof i.ArrayType&&T instanceof i.ArrayType)_(s,b,C.base,T.base);else if(C instanceof i.StructType&&T instanceof i.StructType)for(const p of C.fields){const y=T.fields.find(P=>P.name===p.name);if(y)_(`${s}.${p.name}`,b,p.type,y.type);else{if(p.type instanceof i.OptionalType)continue;b.push(`${s}.${p.name} used to exist with type ${p.type.name}, but it's now missing. Add it back.`)}}else if(!(C instanceof i.IntPrimitiveType&&T instanceof i.UIntPrimitiveType||C instanceof i.FloatPrimitiveType&&T instanceof i.IntPrimitiveType||C instanceof i.IntPrimitiveType&&T instanceof i.MoneyPrimitiveType||C instanceof i.UIntPrimitiveType&&T instanceof i.MoneyPrimitiveType||C instanceof i.BigIntPrimitiveType&&T instanceof i.UIntPrimitiveType||C instanceof i.BigIntPrimitiveType&&T instanceof i.IntPrimitiveType||C instanceof i.BigIntPrimitiveType&&T instanceof i.MoneyPrimitiveType||C instanceof i.StringPrimitiveType&&T instanceof i.BigIntPrimitiveType||C instanceof i.StringPrimitiveType&&T instanceof i.UuidPrimitiveType||C instanceof i.StringPrimitiveType&&T instanceof i.XmlPrimitiveType||C instanceof i.StringPrimitiveType&&T instanceof i.DatePrimitiveType||C instanceof i.StringPrimitiveType&&T instanceof i.DateTimePrimitiveType||C instanceof i.StringPrimitiveType&&T instanceof i.CpfPrimitiveType||C instanceof i.StringPrimitiveType&&T instanceof i.CnpjPrimitiveType||C instanceof i.StringPrimitiveType&&T instanceof i.HexPrimitiveType||C instanceof i.StringPrimitiveType&&T instanceof i.HtmlPrimitiveType||C instanceof i.StringPrimitiveType&&T instanceof i.Base64PrimitiveType||C instanceof i.StringPrimitiveType&&T instanceof i.BytesPrimitiveType||C instanceof i.Base64PrimitiveType&&T instanceof i.BytesPrimitiveType||C instanceof i.StringPrimitiveType&&T instanceof i.UrlPrimitiveType||C instanceof i.StringPrimitiveType&&T instanceof i.EmailPrimitiveType||C instanceof i.StringPrimitiveType&&T instanceof i.EnumType)){if(C instanceof i.EnumType&&T instanceof i.EnumType){for(const p of T.values)C.values.map(y=>y.value).includes(p.value)||b.push(`The enum at ${s} now has the value "${p.value}" that didn't exist before. Client will crash if it receives it`);return}C.constructor.name!==T.constructor.name&&b.push(`${s} was ${C.name} and now it is ${T.name}. They are not compatible.`)}}else _(s,b,C.base,T)}m.compatibilityIssues=function u(s,b){const C=[];for(const T of s.operations){const p=b.operations.find(y=>y.name===T.name);if(p){_(`${T.name}.ret`,C,T.returnType,p.returnType);for(const y of p.args){const P=T.args.find(O=>O.name===y.name);if(P)d(`${T.name}.args.${P.name}`,C,P.type,y.type);else{if(y.type instanceof i.OptionalType)continue;C.push(`${T.name}.args.${y.name} didn't exist before and isn't optional. Make it optional.`)}}}else C.push(`function ${T.name} used to exist, but it's now missing. Add it back.`)}for(const T of s.errors){const p=b.errors.find(y=>y.name===T.name);!p||_(`${T.name}.data`,C,T.dataType,p.dataType)}return C}},6676:function(Le,m,l){"use strict";var i=this&&this.__createBinding||(Object.create?function(u,s,b,C){void 0===C&&(C=b),Object.defineProperty(u,C,{enumerable:!0,get:function(){return s[b]}})}:function(u,s,b,C){void 0===C&&(C=b),u[C]=s[b]}),d=this&&this.__exportStar||function(u,s){for(var b in u)"default"!==b&&!Object.prototype.hasOwnProperty.call(s,b)&&i(s,u,b)};Object.defineProperty(m,"__esModule",{value:!0}),m.jsonToAst=m.astToJson=void 0,d(l(1942),m),d(l(9747),m);var _=l(1557);Object.defineProperty(m,"astToJson",{enumerable:!0,get:function(){return _.astToJson}}),Object.defineProperty(m,"jsonToAst",{enumerable:!0,get:function(){return _.jsonToAst}}),d(l(8053),m),d(l(2701),m),d(l(9037),m)},1557:(Le,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.jsonToAst=m.astToJson=void 0;const i=l(1942),d=l(6088),_=l(6569);function u(T){if(T instanceof i.DescriptionAnnotation)return{type:"description",value:T.text};if(T instanceof i.ThrowsAnnotation)return{type:"throws",value:T.error};if(T instanceof i.RestAnnotation)return{type:"rest",value:{bodyVariable:T.bodyVariable,headers:[...T.headers.entries()].sort(([p],[y])=>p.localeCompare(y)),method:T.method,path:T.path,pathVariables:[...T.pathVariables].sort((p,y)=>p.localeCompare(y)),queryVariables:[...T.queryVariables].sort((p,y)=>p.localeCompare(y))}};if(T instanceof i.HiddenAnnotation)return{type:"hidden",value:null};throw new Error(`BUG: annotationToJson with ${T.constructor.name}`)}function s(T){switch(T.type){case"description":return new i.DescriptionAnnotation(T.value);case"throws":return new i.ThrowsAnnotation(T.value);case"rest":{const{method:p,path:y,pathVariables:P,queryVariables:O,headers:S,bodyVariable:N}=T.value;return new i.RestAnnotation(p,y,P,O,new Map(S),N)}case"hidden":return new i.HiddenAnnotation;default:throw new Error(`BUG: annotationFromJson with ${T.type}`)}}m.astToJson=function b(T){var p,y,P;const O={},S={};function N(K){return K instanceof i.ArrayType?`${N(K.base)}[]`:K instanceof i.OptionalType?`${N(K.base)}?`:K.name}for(const{name:K,fields:re}of T.structTypes){S[K]={};const Me=S[K];for(const pe of re){Me[pe.name]=N(pe.type);for(const be of pe.annotations)if(be instanceof i.DescriptionAnnotation){const ue=`type.${K}.${pe.name}`;null!==(p=O[ue])&&void 0!==p||(O[ue]=[]),O[ue].push(u(be))}}}for(const{name:K,values:re}of T.enumTypes)S[K]=re.map(Me=>Me.value);for(const{name:K,type:re}of T.typeDefinitions)re instanceof i.StructType||re instanceof i.EnumType||(S[K]=N(re));const B={};for(const K of T.operations){const re={};for(const Me of K.args){re[Me.name]=N(Me.type);for(const pe of Me.annotations)if(pe instanceof i.DescriptionAnnotation){const be=`fn.${K.name}.${Me.name}`;null!==(y=O[be])&&void 0!==y||(O[be]=[]),O[be].push(u(pe))}}B[K.name]={args:re,ret:N(K.returnType)};for(const Me of K.annotations){const pe=`fn.${K.name}`;null!==(P=O[pe])&&void 0!==P||(O[pe]=[]),O[pe].push(u(Me))}}return{annotations:O,errors:T.errors.map(K=>K.dataType instanceof i.VoidPrimitiveType?K.name:[K.name,K.dataType.name]),functionTable:B,typeTable:S}},m.jsonToAst=function C(T){var p;const y=[],P=[];function O(B,ce){var K;if("string"==typeof B){const Me=_.primitiveToAstClass.get(B);return Me?new Me:B.endsWith("?")?new i.OptionalType(O(B.slice(0,B.length-1))):B.endsWith("[]")?new i.ArrayType(O(B.slice(0,B.length-2))):new i.TypeReference(B)}if(Array.isArray(B))return new i.EnumType(B.map(Me=>new i.EnumValue(Me)));const re=[];for(const Me of Object.keys(B)){const pe=new i.Field(Me,O(B[Me]));if(ce){const be=`type.${ce}.${Me}`;for(const ue of null!==(K=T.annotations[be])&&void 0!==K?K:[])pe.annotations.push(s(ue))}re.push(pe)}return new i.StructType(re)}for(const[B,ce]of Object.entries(T.typeTable)){const K=O(ce,B);P.push(new i.TypeDefinition(B,K))}for(const[B,ce]of Object.entries(T.functionTable)){const K=Object.keys(ce.args).map(pe=>{var be;const ue=new i.Field(pe,O(ce.args[pe])),xe=`fn.${B}.${pe}`;for(const He of null!==(be=T.annotations[xe])&&void 0!==be?be:[])ue.annotations.push(s(He));return ue}),re=new i.FunctionOperation(B,K,O(ce.ret)),Me=`fn.${B}`;for(const pe of null!==(p=T.annotations[Me])&&void 0!==p?p:[])re.annotations.push(s(pe));y.push(re)}const S=T.errors.map(B=>Array.isArray(B)?new i.ErrorNode(B[0],O(B[1])):new i.ErrorNode(B,new i.VoidPrimitiveType)),N=new i.AstRoot(P,y,S);return(0,d.analyse)(N),N}},8053:(Le,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.Lexer=m.LexerError=void 0;const i=l(9037);class d extends Error{}m.LexerError=d;class _{constructor(s,b="-"){this.source=s,this.filename=b,this.startPos=0,this.startLine=1,this.startColumn=1,this.pos=0,this.line=1,this.column=1}currentChar(){return this.source[this.pos]||"\0"}nextChar(){return this.column++,this.source[++this.pos]||"\0"}nextToken(){this.startPos=this.pos,this.startLine=this.line,this.startColumn=this.column;let s=null;switch(this.currentChar()){case"\0":return null;case" ":case"\r":case"\t":return this.nextChar(),this.nextToken();case"\n":return this.nextChar(),this.column=1,this.line++,this.nextToken();case"/":switch(this.nextChar()){case"/":for(;;)switch(this.nextChar()){case"\0":return null;case"\n":return this.nextChar(),this.column=1,this.line++,this.nextToken()}case"*":e:for(;;)switch(this.nextChar()){case"\0":break e;case"\n":this.column=0,this.line++;break;case"*":for(;"*"===this.nextChar(););switch(this.currentChar()){case"\0":break e;case"\n":this.column=0,this.line++;break;case"/":return this.nextChar(),this.nextToken()}}}break;case"{":this.nextChar(),s=new i.CurlyOpenSymbolToken;break;case"}":this.nextChar(),s=new i.CurlyCloseSymbolToken;break;case"(":this.nextChar(),s=new i.ParensOpenSymbolToken;break;case")":this.nextChar(),s=new i.ParensCloseSymbolToken;break;case"?":this.nextChar(),s=new i.OptionalSymbolToken;break;case":":this.nextChar(),s=new i.ColonSymbolToken;break;case"=":this.nextChar(),s=new i.EqualSymbolToken;break;case"!":this.nextChar(),s=new i.ExclamationMarkSymbolToken;break;case",":this.nextChar(),s=new i.CommaSymbolToken;break;case"[":"]"===this.nextChar()&&(this.nextChar(),s=new i.ArraySymbolToken);break;case".":"."===this.nextChar()&&"."===this.nextChar()&&(this.nextChar(),s=new i.SpreadSymbolToken);break;case"@":{let b="\\",C=this.startPos+1;for(;"\\"===b[b.length-1];){for(b=b.slice(0,b.length-1).trim();!["\0","\n"].includes(this.nextChar()););b=`${b} ${this.source.substring(C,this.pos).trim()}`.trim(),C=this.pos+1}s=new i.AnnotationToken(b.trim());break}case'"':{const b=[];e:for(;;)switch(this.nextChar()){case"\0":break e;case"\\":switch(this.nextChar()){case"\0":break e;case"n":b.push("\n");break;case"t":b.push("\t");break;default:b.push(this.currentChar())}break;case'"':this.nextChar(),s=new i.StringLiteralToken(b.join(""));break e;default:b.push(this.currentChar())}break}default:if(/[a-zA-Z_]/u.test(this.currentChar())){for(;/[a-zA-Z0-9_]/u.test(this.nextChar()););const b=this.source.substring(this.startPos,this.pos);switch(b){case"error":s=new i.ErrorKeywordToken;break;case"enum":s=new i.EnumKeywordToken;break;case"type":s=new i.TypeKeywordToken;break;case"import":s=new i.ImportKeywordToken;break;case"fn":s=new i.FnKeywordToken;break;case"true":s=new i.TrueKeywordToken;break;case"false":s=new i.FalseKeywordToken;break;default:s=_.PRIMITIVES.has(b)?new i.PrimitiveTypeToken(b):new i.IdentifierToken(b)}}}if(null!==s)return s.location.filename=this.filename,s.location.line=this.startLine,s.location.column=this.startColumn,s;throw"\0"===this.currentChar()?new d(`Unexpected end of file at ${this.filename}`):new d(`Unexpected character ${JSON.stringify(this.currentChar())} at ${this.filename}:${this.line}:${this.column}`)}}m.Lexer=_,_.PRIMITIVES=new Set(["bool","int","uint","float","bigint","string","date","datetime","bytes","money","cpf","cnpj","email","html","url","uuid","hex","base64","xml","void","json"]),_.KEYWORDS=new Set([..._.PRIMITIVES,"error","enum","type","import","get","function","fn","true","false"])},2701:(Le,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.Parser=m.ParserError=void 0;const i=l(1942),d=l(8053),_=l(7145),u=l(6088),s=l(9037),b=l(6569);class C extends Error{}m.ParserError=C,m.Parser=class T{constructor(y){this.token=null,this.annotations=[],this.warnings=[],this.readFileSync=()=>{throw"Not implemented"};try{this.readFileSync=Object(function(){var O=new Error("Cannot find module 'fs'");throw O.code="MODULE_NOT_FOUND",O}())}catch(P){}this.lexers=y instanceof d.Lexer?[y]:[new d.Lexer(this.readFileSync(y).toString(),y)],this.nextToken()}nextToken(){for(;this.lexers.length>0;){if(this.token=this.lexers[this.lexers.length-1].nextToken(),this.token)return;this.lexers.pop()}}multiExpect(y){if(!this.token)throw new C(`Expected ${Object.keys(y).map(O=>O.replace("Token","")).join(" or ")}, but found end of file`);const P=this.token.constructor.name;if(P in y)return y[P](this.token);if(y.IdentifierToken){const O=this.token.maybeAsIdentifier();if(O instanceof s.IdentifierToken)return y.IdentifierToken(O)}throw new C(`Expected ${Object.keys(y).map(O=>O.replace("Token","")).join(" or ")} at ${this.token.location}, but found ${this.token}`)}expect(y){if(null===this.token)throw new C(`Expected ${y.name.replace("Token","")}, but found end of file`);if(this.token instanceof y)return this.token;if(y===s.IdentifierToken){const P=this.token.maybeAsIdentifier();if(P instanceof s.IdentifierToken)return P}throw new C(`Expected ${y.name.replace("Token","")} at ${this.token.location}, but found ${this.token}`)}parse(){const y=[],P=[],O=[];for(this.warnings=[];this.token;)this.acceptAnnotations(),this.multiExpect({ErrorKeywordToken:()=>{O.push(this.parseError())},FnKeywordToken:()=>{y.push(this.parseOperation())},ImportKeywordToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken();const N=this.expect(s.StringLiteralToken),B=N.location.filename.replace(/[^/\\]+$/u,`${N.value}.sdkgen`);this.lexers.push(new d.Lexer(this.readFileSync(B).toString(),B)),this.nextToken()},TypeKeywordToken:()=>{P.push(this.parseTypeDefinition())}});const S=new i.AstRoot(P,y,O);return S.warnings=this.warnings,(0,u.analyse)(S),S}acceptAnnotations(){for(;this.token instanceof s.AnnotationToken;){const y=this.token.value.split(" "),P=this.token.value.slice(y[0].length).trim();switch(y[0]){case"description":this.annotations.push(new i.DescriptionAnnotation(P).at(this.token));break;case"arg":this.annotations.push(new i.ArgDescriptionAnnotation(y[1],this.token.value.slice(y[0].length+1+y[1].length).trim()).at(this.token));break;case"throws":this.annotations.push(new i.ThrowsAnnotation(P).at(this.token));break;case"rest":try{this.annotations.push((0,_.parseRestAnnotation)(P).at(this.token))}catch(O){throw new C(`${O instanceof Error?O.message:O} at ${this.token.location}`)}break;case"hidden":if(""!==P)throw new C("@hidden annotation doesn't take any argument");this.annotations.push((new i.HiddenAnnotation).at(this.token));break;default:throw new C(`Unknown annotation '${y[0]}' at ${this.token.location}`)}this.nextToken()}}checkCannotHaveAnnotationsHere(){if(this.annotations.length>0)throw new C(`Cannot have annotations at ${this.annotations[0].location}`)}parseTypeDefinition(){const y=this.expect(s.TypeKeywordToken);this.nextToken();const P=this.expect(s.IdentifierToken),O=P.value;if(!/[A-Z]/u.test(O[0]))throw new C(`The custom type name must start with an uppercase letter, but found ${JSON.stringify(O)} at ${P.location}`);this.nextToken();const{annotations:S}=this;this.annotations=[];const N=this.parseType(),B=new i.TypeDefinition(O,N).at(y);return B.annotations=S,B}parseError(){this.checkCannotHaveAnnotationsHere();const y=this.expect(s.ErrorKeywordToken);this.nextToken();const P=this.expect(s.IdentifierToken),O=P.value;if(!/[A-Z]/u.test(O[0]))throw new C(`Error name must start with an uppercase letter, but found ${JSON.stringify(O)} at ${P.location}`);this.nextToken();let S=new i.VoidPrimitiveType;return(this.token instanceof s.CurlyOpenSymbolToken||this.token instanceof s.EnumKeywordToken||this.token instanceof s.IdentifierToken||this.token instanceof s.PrimitiveTypeToken)&&(S=this.parseType()),new i.ErrorNode(O,S).at(y)}parseOperation(){let{annotations:y}=this;this.annotations=[],this.expect(s.FnKeywordToken),this.nextToken();const P=this.expect(s.IdentifierToken).value;this.nextToken(),this.expect(s.ParensOpenSymbolToken),this.nextToken();const O=new Set,S=[];let B,N=!1;for(;!N;)this.acceptAnnotations(),this.multiExpect({ParensCloseSymbolToken:re=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),N=!0,B=re},IdentifierToken:()=>{const re=this.parseField();if(O.has(re.name))throw new C(`Cannot redeclare argument '${re.name}'`);O.add(re.name),S.push(re),this.multiExpect({ParensCloseSymbolToken:Me=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),N=!0,B=Me},CommaSymbolToken:()=>this.nextToken()})},SpreadSymbolToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken();const re=this.expect(s.IdentifierToken);if(this.nextToken(),!/[A-Z]/u.test(re.value[0]))throw new C(`Expected a type but found ${JSON.stringify(re.value)} at ${re.location}`);S.push(new i.Spread(new i.TypeReference(re.value).at(re)).at(re)),this.multiExpect({ParensCloseSymbolToken:Me=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),N=!0,B=Me},CommaSymbolToken:()=>this.nextToken()})}});for(const re of y)if(re instanceof i.ArgDescriptionAnnotation){const Me=S.find(pe=>pe instanceof i.Field&&pe.name===re.argName);if(!Me)throw new C(`Argument '${re.argName}' not found, at ${re.location}`);Me.annotations.push(new i.DescriptionAnnotation(re.text).atLocation(re.location))}y=y.filter(re=>!(re instanceof i.ArgDescriptionAnnotation));let ce=(new i.VoidPrimitiveType).at(B);this.token instanceof s.ColonSymbolToken&&(this.nextToken(),ce=this.parseType());const K=new i.FunctionOperation(P,S,ce);return K.annotations=y,K}parseEnum(){this.checkCannotHaveAnnotationsHere();const y=this.expect(s.EnumKeywordToken);this.nextToken(),this.expect(s.CurlyOpenSymbolToken),this.nextToken();const P=new i.EnumType([]).at(y);let O=!1;for(;!O;)this.acceptAnnotations(),this.multiExpect({CurlyCloseSymbolToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),O=!0},IdentifierToken:S=>{const N=new i.EnumValue(S.value).at(S);N.annotations=this.annotations,this.annotations=[],P.values.push(N),this.nextToken()}});return P}parseField(){const y=this.expect(s.IdentifierToken);this.nextToken(),this.expect(s.ColonSymbolToken),this.nextToken();const{annotations:P}=this;this.annotations=[];const O=this.parseType(),S=new i.Field(y.value,O).at(y);for(S.annotations=P;this.token instanceof s.ExclamationMarkSymbolToken;){if("secret"!==(this.nextToken(),this.expect(s.IdentifierToken).value))throw new C(`Unknown field mark !${this.token.value} at ${this.token.location}`);S.secret=!0,this.nextToken()}return S}parseStruct(){const y=this.expect(s.CurlyOpenSymbolToken);this.nextToken();const P=[],O=new Set;let S=!1;for(;!S;)this.acceptAnnotations(),this.multiExpect({CurlyCloseSymbolToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),S=!0},IdentifierToken:()=>{const N=this.parseField();if(O.has(N.name))throw new C(`Cannot redeclare field '${N.name}'`);O.add(N.name),P.push(N)},SpreadSymbolToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken();const N=this.expect(s.IdentifierToken);if(this.nextToken(),!/[A-Z]/u.test(N.value[0]))throw new C(`Expected a type but found ${JSON.stringify(N.value)} at ${N.location}`);P.push(new i.Spread(new i.TypeReference(N.value).at(N)).at(N))}});return new i.StructType(P).at(y)}parseType(){this.checkCannotHaveAnnotationsHere();let y=this.multiExpect({CurlyOpenSymbolToken:()=>this.parseStruct(),EnumKeywordToken:()=>this.parseEnum(),IdentifierToken:P=>{if(this.nextToken(),!/[A-Z]/u.test(P.value[0]))throw new C(`Expected a type but found ${JSON.stringify(P.value)} at ${P.location}`);return new i.TypeReference(P.value).at(P)},PrimitiveTypeToken:P=>{this.nextToken();const O=b.primitiveToAstClass.get(P.value);if(O)return(new O).at(P);throw new C(`BUG! Should handle primitive ${P.value}`)}});for(;this.token instanceof s.ArraySymbolToken||this.token instanceof s.OptionalSymbolToken;)this.multiExpect({ArraySymbolToken:P=>y=new i.ArrayType(y).at(P),OptionalSymbolToken:P=>y=new i.OptionalType(y).at(P)}),this.nextToken();return y}}},7145:(Le,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.parseRestAnnotation=void 0;const i=l(1942);function u(b){var C;const T=/\{(?<name>\w+)\}/gu,p=[];let y;for(;null!==(y=T.exec(b));)(null===(C=y.groups)||void 0===C?void 0:C.name)&&p.push(y.groups.name);return p}m.parseRestAnnotation=function s(b){const C=b.split(" "),T=C[0].toUpperCase();if(!["GET","POST","PUT","DELETE","PATCH"].includes(T))throw new Error(`Unsupported method '${T}'`);let p=C[1];if(!p.startsWith("/"))throw new Error("Invalid path");let y=[];if(p.includes("?")){const[B,...ce]=p.split("?");p=B;const K=ce.join("?");if(!/^\{\w+\}(?:&\{\w+\})*$/u.test(K))throw new Error("Invalid querystring on path");y=u(K)}const P=u(p),O=C.slice(2).join(" "),S=function d(b){var C;const T=/\[header (?<header>[^()<>@,;:\\"/[\]?={}\s\t]+): \{(?<name>\w+)\}\]/gu,p=new Map;let y;for(;null!==(y=T.exec(b));)(null===(C=y.groups)||void 0===C?void 0:C.header)&&y.groups.name&&p.set(y.groups.header.toLowerCase(),y.groups.name);return p}(O),N=function _(b){var C;const T=/\[body \{(?<name>\w+)\}\]/u.exec(b);return(null===(C=null==T?void 0:T.groups)||void 0===C?void 0:C.name)?T.groups.name:null}(O);return new i.RestAnnotation(T,p,P,y,S,N)}},7629:(Le,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.CheckMultipleDeclarationVisitor=void 0;const i=l(1942),d=l(3154);m.CheckMultipleDeclarationVisitor=class _ extends d.Visitor{constructor(){super(...arguments),this.nameToType=new Map}visit(s){if(s instanceof i.TypeDefinition){const b=this.nameToType.get(s.name);if(b&&JSON.stringify(b)!==JSON.stringify(s.type))throw new d.SemanticError(`Type '${s.name}' at ${s.location} is defined multiple times (also at ${b.location})`);this.nameToType.set(s.name,s.type)}super.visit(s)}}},4630:(Le,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.MatchTypeDefinitionsVisitor=void 0;const i=l(1942),d=l(3154);m.MatchTypeDefinitionsVisitor=class _ extends d.Visitor{visit(s){if(s instanceof i.TypeReference){const b=this.root.typeDefinitions.find(C=>C.name===s.name);if(void 0===b)throw new d.SemanticError(`Could not find type '${s.name}' at ${s.location}`);s.type=b.type}super.visit(s)}}},9457:(Le,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.CheckDontReturnSecretVisitor=void 0;const i=l(1942),d=l(3154);m.CheckDontReturnSecretVisitor=class _ extends d.Visitor{constructor(){super(...arguments),this.isInReturn=!1,this.path=[],this.visited=new Set}visit(s){if(!this.visited.has(s))if(this.visited.add(s),s instanceof i.FunctionOperation)this.isInReturn=!0,this.path.push(`${s.name}(...)`),this.visit(s.returnType),this.path.pop(),this.isInReturn=!1;else if(s instanceof i.TypeReference)this.visit(s.type);else if(s instanceof i.Field){if(this.path.push(s.name),this.isInReturn&&s.secret)throw new d.SemanticError(`Can't return a secret value at ${this.path.join(".")} at ${s.location}`);super.visit(s),this.path.pop()}else super.visit(s)}}},3140:(Le,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.ExpandSpreadsVisitor=void 0;const i=l(1942),d=l(3154);m.ExpandSpreadsVisitor=class _ extends d.Visitor{constructor(){super(...arguments),this.processed=new Set}expandSpread(s,b){const C=new Map;for(const T of b){let p;if(T instanceof i.Field)p=[T];else{const y=T.typeReference.type;if(!(y instanceof i.StructType))throw new d.SemanticError(`A spread operator can't refer to something that is not a struct, in '${T.typeReference.name}' at ${T.location}.`);this.visit(y),p=y.fields}for(const y of p){const P=C.get(y.name);P?s[P]=y:(C.set(y.name,s.length),s.push(y))}}}visit(s){if(s instanceof i.StructType){if(this.processed.has(s))return;this.processed.add(s)}super.visit(s),s instanceof i.StructType?(this.expandSpread(s.fields,s.fieldsAndSpreads),s.fieldsAndSpreads=[]):s instanceof i.FunctionOperation&&(this.expandSpread(s.args,s.fieldsAndSpreads),s.fieldsAndSpreads=[])}}},71:(Le,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.CheckEmptyStructOrEnumVisitor=void 0;const i=l(1942),d=l(3154);m.CheckEmptyStructOrEnumVisitor=class _ extends d.Visitor{visit(s){if(super.visit(s),s instanceof i.EnumType&&0===s.values.length)throw new d.SemanticError(`Enum '${s.name}' at ${s.location} is empty`);if(s instanceof i.StructType&&0===s.fields.length)throw new d.SemanticError(`Struct '${s.name}' at ${s.location} is empty`)}}},601:(Le,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.GiveStructAndEnumNamesVisitor=void 0;const i=l(1942),d=l(3154);m.GiveStructAndEnumNamesVisitor=class _ extends d.Visitor{constructor(){super(...arguments),this.path=[],this.names=new Map}visit(s){if(s instanceof i.TypeDefinition)this.path=[s.name],super.visit(s);else if(s instanceof i.ErrorNode)this.path=[`${s.name}Data`],super.visit(s);else if(s instanceof i.FunctionOperation)this.path=[s.name],super.visit(s);else if(s instanceof i.Field)this.path.push(s.name),super.visit(s),this.path.pop();else if(s instanceof i.StructType||s instanceof i.EnumType){s.name=this.path.map(C=>C[0].toUpperCase()+C.slice(1)).join("");const b=this.names.get(s.name);if(b&&JSON.stringify(b.type)!==JSON.stringify(s))throw new d.SemanticError(`The name of the type '${this.path.join(".")}' at ${s.location} will conflict with '${b.path.join(".")}' at ${b.type.location}`);this.names.set(s.name,{path:[...this.path],type:s}),super.visit(s)}else super.visit(s)}}},5492:(Le,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.CollectStructAndEnumTypesVisitor=void 0;const i=l(1942),d=l(3154);m.CollectStructAndEnumTypesVisitor=class _ extends d.Visitor{visit(s){super.visit(s),s instanceof i.StructType?this.root.structTypes.push(s):s instanceof i.EnumType&&this.root.enumTypes.push(s)}}},5673:(Le,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.ValidateAnnotationsVisitor=void 0;const i=l(1942),d=l(3154);function u(b){return b instanceof i.TypeReference?u(b.type):b}m.ValidateAnnotationsVisitor=class s extends d.Visitor{visit(C){if(C instanceof i.EnumValue){for(const T of C.annotations)if(!(T instanceof i.DescriptionAnnotation))throw new d.SemanticError(`Cannot have @${T.constructor.name.replace("Annotation","").toLowerCase()} at ${T.location}`)}else if(C instanceof i.TypeDefinition){for(const T of C.annotations)if(!(T instanceof i.DescriptionAnnotation))throw new d.SemanticError(`Cannot have @${T.constructor.name.replace("Annotation","").toLowerCase()} at ${T.location}`)}else if(C instanceof i.Field){for(const T of C.annotations)if(!(T instanceof i.DescriptionAnnotation))throw new d.SemanticError(`Cannot have @${T.constructor.name.replace("Annotation","").toLowerCase()} at ${T.location}`)}else if(C instanceof i.FunctionOperation)for(const T of C.annotations)if(!(T instanceof i.DescriptionAnnotation))if(T instanceof i.ThrowsAnnotation){if(!this.root.errors.some(p=>p.name===T.error))throw new d.SemanticError(`Unknown error type '${T.error}' at ${T.location}`)}else if(T instanceof i.RestAnnotation){const p=[...T.pathVariables,...T.queryVariables,...T.headers.values()];if(p.length!==new Set(p).size)throw new d.SemanticError(`Arguments must appear only once for rest annotation at ${T.location}`);for(const y of p){const P=C.args.find(S=>S.name===y);if(!P)throw new d.SemanticError(`Argument '${y}' not found at ${T.location}`);if(T.pathVariables.includes(y)&&P.type instanceof i.OptionalType)throw new d.SemanticError(`The path argument '${y}' can't be nullable at ${T.location}`);if(!((b=u(P.type instanceof i.OptionalType?P.type.base:P.type))instanceof i.BoolPrimitiveType||b instanceof i.IntPrimitiveType||b instanceof i.UIntPrimitiveType||b instanceof i.BigIntPrimitiveType||b instanceof i.FloatPrimitiveType||b instanceof i.StringPrimitiveType||b instanceof i.DatePrimitiveType||b instanceof i.DateTimePrimitiveType||b instanceof i.MoneyPrimitiveType||b instanceof i.CpfPrimitiveType||b instanceof i.CnpjPrimitiveType||b instanceof i.UuidPrimitiveType||b instanceof i.HexPrimitiveType||b instanceof i.Base64PrimitiveType||b instanceof i.EnumType))throw new d.SemanticError(`Argument '${y}' can't have type '${P.type.name}' for rest annotation at ${T.location}`)}for(const y of C.args)if(!p.includes(y.name)&&T.bodyVariable!==y.name)throw new d.SemanticError(`Argument '${y.name}' is missing from the rest annotation at ${T.location}`);if("GET"===T.method&&C.returnType instanceof i.VoidPrimitiveType)throw new d.SemanticError(`A GET rest endpoint must return something at ${T.location}`)}else if(!(T instanceof i.HiddenAnnotation))throw new d.SemanticError(`Cannot have @${T.constructor.name.replace("Annotation","").toLowerCase()} at ${T.location}`);var b}}},9834:(Le,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.ValidateRecursiveTypes=void 0;const i=l(1942),d=l(3154);m.ValidateRecursiveTypes=class _ extends d.Visitor{visit(s){if(super.visit(s),s instanceof i.TypeDefinition&&(s.type instanceof i.TypeReference&&s.type.name===s.name||s.type instanceof i.ArrayType&&s.type.base.name===s.name||s.type instanceof i.OptionalType&&s.type.base.name===s.name))throw new d.SemanticError(`Type '${s.name}' at ${s.location} is recursive but is not an struct`)}}},6088:(Le,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.analyse=void 0;const i=l(1942),d=l(7629),_=l(4630),u=l(9457),s=l(3140),b=l(71),C=l(601),T=l(5492),p=l(5673),y=l(9834);m.analyse=function P(O){O.errors.some(S=>"Fatal"===S.name)||O.errors.push(new i.ErrorNode("Fatal",new i.VoidPrimitiveType)),new d.CheckMultipleDeclarationVisitor(O).process(),new _.MatchTypeDefinitionsVisitor(O).process(),new u.CheckDontReturnSecretVisitor(O).process(),new s.ExpandSpreadsVisitor(O).process(),new b.CheckEmptyStructOrEnumVisitor(O).process(),new C.GiveStructAndEnumNamesVisitor(O).process(),new T.CollectStructAndEnumTypesVisitor(O).process(),new p.ValidateAnnotationsVisitor(O).process(),new y.ValidateRecursiveTypes(O).process()}},3154:(Le,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.Visitor=m.SemanticError=void 0;const i=l(1942);class d extends Error{}m.SemanticError=d,m.Visitor=class _{constructor(s){this.root=s}process(){for(const s of this.root.errors)this.visit(s);for(const s of this.root.typeDefinitions)this.visit(s);for(const s of this.root.operations)this.visit(s)}visit(s){if(s instanceof i.FunctionOperation){for(const b of s.args)this.visit(b);for(const b of s.fieldsAndSpreads)this.visit(b);this.visit(s.returnType)}else if(s instanceof i.Field||s instanceof i.TypeDefinition)this.visit(s.type);else if(s instanceof i.StructType){for(const b of s.fields)this.visit(b);for(const b of s.fieldsAndSpreads)this.visit(b)}else s instanceof i.ArrayType||s instanceof i.OptionalType?this.visit(s.base):s instanceof i.ErrorNode?this.visit(s.dataType):s instanceof i.Spread&&this.visit(s.typeReference)}}},9037:(Le,m)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.PrimitiveTypeToken=m.FalseKeywordToken=m.TrueKeywordToken=m.ErrorKeywordToken=m.FnKeywordToken=m.EnumKeywordToken=m.TypeKeywordToken=m.ImportKeywordToken=m.AnnotationToken=m.SpreadSymbolToken=m.CommaSymbolToken=m.ArraySymbolToken=m.OptionalSymbolToken=m.ColonSymbolToken=m.ParensCloseSymbolToken=m.ParensOpenSymbolToken=m.CurlyCloseSymbolToken=m.CurlyOpenSymbolToken=m.ExclamationMarkSymbolToken=m.EqualSymbolToken=m.StringLiteralToken=m.IdentifierToken=m.Token=m.TokenLocation=void 0;class l{constructor(){this.filename="?",this.line=0,this.column=0}toString(){return`${this.filename}:${this.line}:${this.column}`}}m.TokenLocation=l;class i{constructor(et=""){this.value=et,this.location=new l,Object.defineProperty(this,"location",{enumerable:!1})}maybeAsIdentifier(){return this}toString(){const et=this.constructor.name.replace("Token","");return""===this.value?et:`${et}(${JSON.stringify(this.value)})`}}m.Token=i;class d extends i{}m.IdentifierToken=d,m.StringLiteralToken=class _ extends i{},m.EqualSymbolToken=class u extends i{},m.ExclamationMarkSymbolToken=class s extends i{},m.CurlyOpenSymbolToken=class b extends i{},m.CurlyCloseSymbolToken=class C extends i{},m.ParensOpenSymbolToken=class T extends i{},m.ParensCloseSymbolToken=class p extends i{},m.ColonSymbolToken=class y extends i{},m.OptionalSymbolToken=class P extends i{},m.ArraySymbolToken=class O extends i{},m.CommaSymbolToken=class S extends i{},m.SpreadSymbolToken=class N extends i{},m.AnnotationToken=class B extends i{},m.ImportKeywordToken=class ce extends i{maybeAsIdentifier(){return new d("import")}},m.TypeKeywordToken=class K extends i{maybeAsIdentifier(){return new d("type")}},m.EnumKeywordToken=class re extends i{maybeAsIdentifier(){return new d("enum")}},m.FnKeywordToken=class Me extends i{maybeAsIdentifier(){return new d("fn")}},m.ErrorKeywordToken=class pe extends i{maybeAsIdentifier(){return new d("error")}},m.TrueKeywordToken=class be extends i{maybeAsIdentifier(){return new d("true")}},m.FalseKeywordToken=class ue extends i{maybeAsIdentifier(){return new d("false")}},m.PrimitiveTypeToken=class xe extends i{maybeAsIdentifier(){return new d(this.value)}}},6569:(Le,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.primitiveToAstClass=void 0;const i=l(1942);m.primitiveToAstClass=new Map,m.primitiveToAstClass.set("string",i.StringPrimitiveType),m.primitiveToAstClass.set("int",i.IntPrimitiveType),m.primitiveToAstClass.set("uint",i.UIntPrimitiveType),m.primitiveToAstClass.set("date",i.DatePrimitiveType),m.primitiveToAstClass.set("datetime",i.DateTimePrimitiveType),m.primitiveToAstClass.set("float",i.FloatPrimitiveType),m.primitiveToAstClass.set("bigint",i.BigIntPrimitiveType),m.primitiveToAstClass.set("bool",i.BoolPrimitiveType),m.primitiveToAstClass.set("bytes",i.BytesPrimitiveType),m.primitiveToAstClass.set("money",i.MoneyPrimitiveType),m.primitiveToAstClass.set("cpf",i.CpfPrimitiveType),m.primitiveToAstClass.set("cnpj",i.CnpjPrimitiveType),m.primitiveToAstClass.set("email",i.EmailPrimitiveType),m.primitiveToAstClass.set("html",i.HtmlPrimitiveType),m.primitiveToAstClass.set("url",i.UrlPrimitiveType),m.primitiveToAstClass.set("uuid",i.UuidPrimitiveType),m.primitiveToAstClass.set("hex",i.HexPrimitiveType),m.primitiveToAstClass.set("base64",i.Base64PrimitiveType),m.primitiveToAstClass.set("xml",i.XmlPrimitiveType),m.primitiveToAstClass.set("json",i.JsonPrimitiveType),m.primitiveToAstClass.set("void",i.VoidPrimitiveType)},5041:(Le,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.AppComponent=void 0;const i=l(655),d=l(3075),_=l(7179),u=l(1823),s=l(7402),b=l(7295),C=l(2911),T=l(4327),p=(0,i.__importStar)(l(5e3)),y=(0,i.__importStar)(l(6395)),P=(0,i.__importStar)(l(2313)),O=(0,i.__importStar)(l(5245)),S=(0,i.__importStar)(l(107)),N=(0,i.__importStar)(l(2253)),B=(0,i.__importStar)(l(9808)),ce=(0,i.__importStar)(l(2181)),K=(0,i.__importStar)(l(3251)),re=(0,i.__importStar)(l(5585)),Me=(0,i.__importStar)(l(7423)),pe=(0,i.__importStar)(l(7238)),be=(0,i.__importStar)(l(4264)),ue=(0,i.__importStar)(l(7822));function xe(Ue,fe){1&Ue&&(p.\u0275\u0275elementContainerStart(0),p.\u0275\u0275text(1,"Editor Avan\xe7ado"),p.\u0275\u0275elementContainerEnd())}function He(Ue,fe){if(1&Ue&&(p.\u0275\u0275elementContainerStart(0),p.\u0275\u0275elementStart(1,"span",20),p.\u0275\u0275text(2),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementContainerEnd()),2&Ue){const Je=p.\u0275\u0275nextContext(2).$implicit;p.\u0275\u0275advance(2),p.\u0275\u0275textInterpolate1("\u25b6\xa0",Je.function,"")}}function et(Ue,fe){if(1&Ue){const Je=p.\u0275\u0275getCurrentView();p.\u0275\u0275elementStart(0,"span",17),p.\u0275\u0275template(1,xe,2,0,"ng-container",18),p.\u0275\u0275template(2,He,3,1,"ng-container",18),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(3,"button",19),p.\u0275\u0275listener("click",function(){p.\u0275\u0275restoreView(Je);const Ge=p.\u0275\u0275nextContext().$implicit;return p.\u0275\u0275nextContext(2).closeTab(Ge)}),p.\u0275\u0275elementStart(4,"mat-icon"),p.\u0275\u0275text(5,"close"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementEnd()}if(2&Ue){const Je=p.\u0275\u0275nextContext().$implicit;p.\u0275\u0275property("ngSwitch",Je.type),p.\u0275\u0275advance(1),p.\u0275\u0275property("ngSwitchCase","advanced"),p.\u0275\u0275advance(1),p.\u0275\u0275property("ngSwitchCase","simple")}}function ct(Ue,fe){1&Ue&&(p.\u0275\u0275elementContainerStart(0),p.\u0275\u0275element(1,"app-tab-editor"),p.\u0275\u0275elementContainerEnd())}function X(Ue,fe){if(1&Ue&&(p.\u0275\u0275elementContainerStart(0),p.\u0275\u0275element(1,"app-simple-call",21),p.\u0275\u0275elementContainerEnd()),2&Ue){const Je=p.\u0275\u0275nextContext().$implicit;p.\u0275\u0275advance(1),p.\u0275\u0275property("fn",Je.function)}}function me(Ue,fe){if(1&Ue&&(p.\u0275\u0275elementStart(0,"mat-tab"),p.\u0275\u0275template(1,et,6,3,"ng-template",16),p.\u0275\u0275elementContainerStart(2,17),p.\u0275\u0275template(3,ct,2,0,"ng-container",18),p.\u0275\u0275template(4,X,2,1,"ng-container",18),p.\u0275\u0275elementContainerEnd(),p.\u0275\u0275elementEnd()),2&Ue){const Je=fe.$implicit;p.\u0275\u0275advance(2),p.\u0275\u0275property("ngSwitch",Je.type),p.\u0275\u0275advance(1),p.\u0275\u0275property("ngSwitchCase","advanced"),p.\u0275\u0275advance(1),p.\u0275\u0275property("ngSwitchCase","simple")}}function z(Ue,fe){if(1&Ue){const Je=p.\u0275\u0275getCurrentView();p.\u0275\u0275elementStart(0,"button",22),p.\u0275\u0275listener("click",function(){return p.\u0275\u0275restoreView(Je),p.\u0275\u0275nextContext(2).addAdvancedTab()}),p.\u0275\u0275elementStart(1,"mat-icon"),p.\u0275\u0275text(2,"add_circle"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementEnd()}}function oe(Ue,fe){if(1&Ue&&(p.\u0275\u0275elementStart(0,"button",23),p.\u0275\u0275elementStart(1,"mat-icon"),p.\u0275\u0275text(2,"download"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementEnd()),2&Ue){p.\u0275\u0275nextContext(2);const Je=p.\u0275\u0275reference(5);p.\u0275\u0275property("matMenuTriggerFor",Je)}}function ke(Ue,fe){if(1&Ue){const Je=p.\u0275\u0275getCurrentView();p.\u0275\u0275elementStart(0,"mat-tab-group",11),p.\u0275\u0275listener("selectedIndexChange",function(Ge){return p.\u0275\u0275restoreView(Je),p.\u0275\u0275nextContext().selected.setValue(Ge)}),p.\u0275\u0275elementStart(1,"mat-tab",12),p.\u0275\u0275elementStart(2,"app-tab-home",13),p.\u0275\u0275listener("runFunction",function(Ge){return p.\u0275\u0275restoreView(Je),p.\u0275\u0275nextContext().addSimpleTab(Ge)}),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementEnd(),p.\u0275\u0275template(3,me,5,3,"mat-tab",14),p.\u0275\u0275elementStart(4,"mat-tab",15),p.\u0275\u0275template(5,z,3,0,"ng-template",16),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(6,"mat-tab",15),p.\u0275\u0275template(7,oe,3,1,"ng-template",16),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementEnd()}if(2&Ue){const Je=p.\u0275\u0275nextContext();p.\u0275\u0275property("selectedIndex",Je.selected.value),p.\u0275\u0275advance(3),p.\u0275\u0275property("ngForOf",Je.tabs)}}class de{constructor(fe,Je,Te){this.sdkgen=fe,this.domSanitizer=Je,this.matIconRegistry=Te,this.selected=new d.FormControl(0),this.tabs=[{id:0,type:"advanced"}],this.tabIndex=1;for(const Ge of["typescript","dot-net","kotlin","swift","dart"])this.matIconRegistry.addSvgIcon(Ge,this.domSanitizer.bypassSecurityTrustResourceUrl(`assets/${Ge}.svg`))}ngOnInit(){this.state$=this.sdkgen.state$.subscribe(fe=>{this.state=null!=fe?fe:void 0})}ngOnDestroy(){var fe;null===(fe=this.state$)||void 0===fe||fe.unsubscribe()}addSimpleTab(fe){this.tabs.push({id:this.tabIndex++,function:fe,type:"simple"}),this.selected.setValue(this.tabs.length)}addAdvancedTab(){this.tabs.push({id:this.tabIndex++,type:"advanced"}),this.selected.setValue(this.tabs.length)}closeTab(fe){this.tabs.splice(this.tabs.indexOf(fe),1),this.selected.setValue(0)}downloadTarget(fe){if(!this.state)return;let Je,Te;switch(fe){case"typescript_nodeserver":Je=(0,C.generateNodeServerSource)(this.state.astRoot),Te="node-server.ts";break;case"typescript_nodeclient":Je=(0,C.generateNodeClientSource)(this.state.astRoot),Te="node-client.ts";break;case"typescript_web":Je=(0,C.generateBrowserClientSource)(this.state.astRoot),Te="web-client.ts";break;case"typescript_interfaces":Je=(0,C.generateTypescriptInterfaces)(this.state.astRoot),Te="interfaces.ts";break;case"flutter":Je=(0,u.generateDartClientSource)(this.state.astRoot),Te="flutter-client.dart";break;case"csharp_server":Je=(0,_.generateCSharpServerSource)(this.state.astRoot),Te="csharp-server.cs";break;case"kotlin_android":Je=(0,s.generateAndroidClientSource)(this.state.astRoot,!0),Te="android-client.kt";break;case"kotlin_android_without_callbacks":Je=(0,s.generateAndroidClientSource)(this.state.astRoot,!1),Te="android-client-no-callbacks.kt";break;case"swift_ios":Je=(0,b.generateSwiftClientSource)(this.state.astRoot,!1),Te="ios-client.swift";break;case"rxswift_ios":Je=(0,b.generateSwiftClientSource)(this.state.astRoot,!0),Te="ios-client-rx.swift"}(0,T.saveAs)(new Blob([Je],{type:"application/octet-stream"}),Te)}}m.AppComponent=de,de.\u0275fac=function(fe){return new(fe||de)(p.\u0275\u0275directiveInject(y.SdkgenService),p.\u0275\u0275directiveInject(P.DomSanitizer),p.\u0275\u0275directiveInject(O.MatIconRegistry))},de.\u0275cmp=p.\u0275\u0275defineComponent({type:de,selectors:[["app-root"]],decls:43,vars:3,consts:[[2,"width","0","height","0","opacity","0","display","block"],["id","main-tabs","animationDuration","150ms",3,"selectedIndex","selectedIndexChange",4,"ngIf"],["downloadMenu","matMenu"],["id","download-menu-size-flow"],["mat-menu-item","","disabled",""],["mat-menu-item","",3,"click"],["svgIcon","typescript"],["svgIcon","dart"],["svgIcon","kotlin"],["svgIcon","swift"],["svgIcon","dot-net"],["id","main-tabs","animationDuration","150ms",3,"selectedIndex","selectedIndexChange"],["label","Documenta\xe7\xe3o"],[3,"runFunction"],[4,"ngFor","ngForOf"],["disabled",""],["mat-tab-label",""],[3,"ngSwitch"],[4,"ngSwitchCase"],["mat-icon-button","","matTooltip","Fechar aba",3,"click"],[1,"mono","tt-none"],[3,"fn"],["mat-icon-button","","matTooltip","Nova aba de editor avan\xe7ado",3,"click"],["mat-icon-button","",3,"matMenuTriggerFor"]],template:function(fe,Je){1&fe&&(p.\u0275\u0275element(0,"ngx-monaco-editor",0),p.\u0275\u0275element(1,"app-tab-nav"),p.\u0275\u0275template(2,ke,8,2,"mat-tab-group",1),p.\u0275\u0275pipe(3,"async"),p.\u0275\u0275elementStart(4,"mat-menu",null,2),p.\u0275\u0275element(6,"div",3),p.\u0275\u0275elementStart(7,"button",4),p.\u0275\u0275text(8,"Cliente"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(9,"button",5),p.\u0275\u0275listener("click",function(){return Je.downloadTarget("typescript_nodeclient")}),p.\u0275\u0275element(10,"mat-icon",6),p.\u0275\u0275text(11,"Node.js"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(12,"button",5),p.\u0275\u0275listener("click",function(){return Je.downloadTarget("typescript_web")}),p.\u0275\u0275element(13,"mat-icon",6),p.\u0275\u0275text(14,"Web"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(15,"button",5),p.\u0275\u0275listener("click",function(){return Je.downloadTarget("flutter")}),p.\u0275\u0275element(16,"mat-icon",7),p.\u0275\u0275text(17,"Flutter"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(18,"button",5),p.\u0275\u0275listener("click",function(){return Je.downloadTarget("kotlin_android")}),p.\u0275\u0275element(19,"mat-icon",8),p.\u0275\u0275text(20,"Android"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(21,"button",5),p.\u0275\u0275listener("click",function(){return Je.downloadTarget("kotlin_android_without_callbacks")}),p.\u0275\u0275element(22,"mat-icon",8),p.\u0275\u0275text(23,"Android (sem callbacks)"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(24,"button",5),p.\u0275\u0275listener("click",function(){return Je.downloadTarget("swift_ios")}),p.\u0275\u0275element(25,"mat-icon",9),p.\u0275\u0275text(26,"iOS"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(27,"button",5),p.\u0275\u0275listener("click",function(){return Je.downloadTarget("rxswift_ios")}),p.\u0275\u0275element(28,"mat-icon",9),p.\u0275\u0275text(29,"iOS (Rx)"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(30,"button",4),p.\u0275\u0275text(31,"Servidor"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(32,"button",5),p.\u0275\u0275listener("click",function(){return Je.downloadTarget("typescript_nodeserver")}),p.\u0275\u0275element(33,"mat-icon",6),p.\u0275\u0275text(34,"Node.js"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(35,"button",5),p.\u0275\u0275listener("click",function(){return Je.downloadTarget("csharp_server")}),p.\u0275\u0275element(36,"mat-icon",10),p.\u0275\u0275text(37,"C#"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(38,"button",4),p.\u0275\u0275text(39,"Outros"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(40,"button",5),p.\u0275\u0275listener("click",function(){return Je.downloadTarget("typescript_interfaces")}),p.\u0275\u0275element(41,"mat-icon",6),p.\u0275\u0275text(42,"Interfaces"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementEnd()),2&fe&&(p.\u0275\u0275advance(2),p.\u0275\u0275property("ngIf",p.\u0275\u0275pipeBind1(3,1,Je.sdkgen.state$)))},directives:[S.MonacoEditorComponent,N.TabNavComponent,B.NgIf,ce.MatMenu,ce.MatMenuItem,O.MatIcon,K.MatTabGroup,K.MatTab,re.TabHomeComponent,B.NgForOf,K.MatTabLabel,B.NgSwitch,B.NgSwitchCase,Me.MatButton,pe.MatTooltip,be.TabEditorComponent,ue.SimpleCallComponent,ce.MatMenuTrigger],pipes:[B.AsyncPipe],styles:["[_nghost-%COMP%]{display:block;width:100%;height:100%} #main-tabs>.mat-tab-header .mat-tab-label{text-transform:uppercase;-webkit-user-select:none;user-select:none} #main-tabs>.mat-tab-header .mat-tab-label.mat-ripple:not(#mat-tab-label-0-0){padding-right:0} #main-tabs>.mat-tab-header .mat-tab-label.mat-ripple:not(#mat-tab-label-0-0) button{border-radius:0;display:inline-block;margin-left:10px} #main-tabs>.mat-tab-header .mat-tab-labels .mat-tab-label:nth-last-child(-n+2){min-width:0;padding:0 12px;color:unset;opacity:unset} #main-tabs>.mat-tab-header .mat-tab-labels .mat-tab-label:nth-last-child(-n+2) button{margin-left:0!important} #main-tabs>.mat-tab-header .mat-tab-labels .mat-tab-label:last-child{margin-left:auto} #main-tabs>.mat-tab-header .mat-tab-labels .mat-tab-label:last-child button{padding:0 5px!important;display:block;box-sizing:content-box;margin-right:5px!important} #download-menu-size-flow{width:185px;display:block;max-width:90vw}"]})},6747:(Le,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.AppModule=void 0;const i=l(655),d=l(520),_=l(3075),u=l(7423),s=l(9417),b=l(8966),C=l(5245),T=l(2181),p=l(2075),y=l(3251),P=l(7238),O=l(2313),S=l(6360),N=l(107),B=l(1430),ce=l(5109),K=l(2290),re=l(5041),Me=(0,i.__importStar)(l(5e3));(0,i.__importStar)(l(2290));class be{}m.AppModule=be,be.\u0275fac=function(xe){return new(xe||be)},be.\u0275mod=Me.\u0275\u0275defineNgModule({type:be,bootstrap:[re.AppComponent]}),be.\u0275inj=Me.\u0275\u0275defineInjector({providers:[{provide:N.MONACO_PATH,useValue:"assets/vs"}],imports:[[O.BrowserModule,_.FormsModule,_.ReactiveFormsModule,N.MonacoEditorModule,S.BrowserAnimationsModule,ce.NgxJsonViewerModule,K.ToastrModule.forRoot(),B.AngularSplitModule,d.HttpClientModule,u.MatButtonModule,s.MatChipsModule,b.MatDialogModule,C.MatIconModule,T.MatMenuModule,p.MatTableModule,y.MatTabsModule,P.MatTooltipModule]]})},8495:(Le,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.ConsoleComponent=void 0;const i=l(655),d=l(9972),_=(0,i.__importStar)(l(5e3)),u=(0,i.__importStar)(l(7423)),s=(0,i.__importStar)(l(5245)),b=(0,i.__importStar)(l(9808)),C=(0,i.__importStar)(l(5109));function T(N,B){1&N&&(_.\u0275\u0275elementContainerStart(0),_.\u0275\u0275text(1,"info_outline"),_.\u0275\u0275elementContainerEnd())}function p(N,B){1&N&&(_.\u0275\u0275elementContainerStart(0),_.\u0275\u0275text(1,"error"),_.\u0275\u0275elementContainerEnd())}function y(N,B){1&N&&(_.\u0275\u0275elementContainerStart(0),_.\u0275\u0275text(1,"public"),_.\u0275\u0275elementContainerEnd())}function P(N,B){if(1&N&&_.\u0275\u0275element(0,"ngx-json-viewer",6),2&N){const ce=_.\u0275\u0275nextContext().$implicit;_.\u0275\u0275property("json",ce.details)("expanded",!1)}}function O(N,B){if(1&N&&(_.\u0275\u0275elementStart(0,"li",2),_.\u0275\u0275elementStart(1,"mat-icon",3),_.\u0275\u0275template(2,T,2,0,"ng-container",4),_.\u0275\u0275template(3,p,2,0,"ng-container",4),_.\u0275\u0275template(4,y,2,0,"ng-container",4),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementStart(5,"span"),_.\u0275\u0275text(6),_.\u0275\u0275elementEnd(),_.\u0275\u0275template(7,P,1,2,"ngx-json-viewer",5),_.\u0275\u0275elementEnd()),2&N){const ce=B.$implicit,K=_.\u0275\u0275nextContext();_.\u0275\u0275property("ngClass",ce.type),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngSwitch",ce.type)("ngClass",ce.type),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngSwitchCase",K.itemTypes.INFO),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngSwitchCase",K.itemTypes.ERROR),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngSwitchCase",K.itemTypes.NETWORK),_.\u0275\u0275advance(2),_.\u0275\u0275textInterpolate(ce.message),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngIf",ce.details)}}class S{constructor(){this.itemTypes=d.ConsoleItemType,this.items=[]}}m.ConsoleComponent=S,S.\u0275fac=function(B){return new(B||S)},S.\u0275cmp=_.\u0275\u0275defineComponent({type:S,selectors:[["app-console"]],inputs:{items:"items"},decls:9,vars:1,consts:[["mat-icon-button","",3,"click"],["class","console-item",3,"ngClass",4,"ngFor","ngForOf"],[1,"console-item",3,"ngClass"],[3,"ngSwitch","ngClass"],[4,"ngSwitchCase"],[3,"json","expanded",4,"ngIf"],[3,"json","expanded"]],template:function(B,ce){1&B&&(_.\u0275\u0275elementStart(0,"header"),_.\u0275\u0275elementStart(1,"strong"),_.\u0275\u0275text(2,"CONSOLE"),_.\u0275\u0275elementEnd(),_.\u0275\u0275element(3,"s"),_.\u0275\u0275elementStart(4,"button",0),_.\u0275\u0275listener("click",function(){return ce.items.splice(0,ce.items.length)}),_.\u0275\u0275elementStart(5,"mat-icon"),_.\u0275\u0275text(6,"delete"),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementStart(7,"ul"),_.\u0275\u0275template(8,O,8,8,"li",1),_.\u0275\u0275elementEnd()),2&B&&(_.\u0275\u0275advance(8),_.\u0275\u0275property("ngForOf",ce.items))},directives:[u.MatButton,s.MatIcon,b.NgForOf,b.NgClass,b.NgSwitch,b.NgSwitchCase,b.NgIf,C.NgxJsonViewerComponent],styles:["[_nghost-%COMP%]{display:block;height:100%;text-align:left;overflow-y:scroll;box-sizing:border-box}header[_ngcontent-%COMP%]{display:flex;flex-direction:row;position:sticky;top:0;background:#1E1E1E;border-bottom:1px solid #444444;padding:5px 0;z-index:2}header[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{margin:0 10px;text-transform:uppercase;font-weight:200;color:#e7e7e7;border-bottom:1px solid #e7e7e7;line-height:27px;font-size:11pt;align-self:center}header[_ngcontent-%COMP%] s[_ngcontent-%COMP%]{flex-grow:1}header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:0 10px}ul[_ngcontent-%COMP%]{padding:0;margin:0;box-sizing:border-box}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{list-style:none;display:block;width:100%;height:auto;padding:5px 10px;font-size:1rem;border-bottom:1px solid #444444;background-color:#111;word-break:break-all;box-sizing:border-box;word-wrap:break-word;font-family:monospace}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline;vertical-align:text-bottom}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{height:1rem;width:1rem;font-size:1rem;vertical-align:sub;margin-right:7.5px;-webkit-user-select:none;user-select:none}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] mat-icon.info[_ngcontent-%COMP%]{color:#b9b9bb}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] mat-icon.error[_ngcontent-%COMP%]{color:#ff3b6b}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] mat-icon.network_recv[_ngcontent-%COMP%], ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] mat-icon.network_send[_ngcontent-%COMP%]{color:#939395}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:hover{background-color:#0000004d}ul[_ngcontent-%COMP%] > li.error[_ngcontent-%COMP%]{color:#e69fa3;background-color:#4b2f36}"]})},9972:(Le,m)=>{"use strict";var i;Object.defineProperty(m,"__esModule",{value:!0}),m.ConsoleItemType=void 0,(i=m.ConsoleItemType||(m.ConsoleItemType={})).INFO="info",i.ERROR="error",i.NETWORK="network"},4211:(Le,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.FilterPipe=void 0;const d=(0,l(655).__importStar)(l(5e3));class _{transform(s,b){if(!s)return[];if(!b)return s;const C=b.toLocaleLowerCase();return s.filter(T=>JSON.stringify(T).toLocaleLowerCase().includes(C))}}m.FilterPipe=_,_.\u0275fac=function(s){return new(s||_)},_.\u0275pipe=d.\u0275\u0275definePipe({name:"appFilter",type:_,pure:!0})},7120:(Le,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.ResponsiveService=void 0;const i=l(655),d=(0,i.__importStar)(l(5e3)),_=(0,i.__importStar)(l(5113));class u{constructor(b){this.observer=b}isBelowSm(){return this.observer.observe(["(max-width: 575px)"])}isBelowMd(){return this.observer.observe(["(max-width: 767px)"])}isBelowLg(){return this.observer.observe(["(max-width: 991px)"])}isBelowXl(){return this.observer.observe(["(max-width: 1199px)"])}}m.ResponsiveService=u,u.\u0275fac=function(b){return new(b||u)(d.\u0275\u0275inject(_.BreakpointObserver))},u.\u0275prov=d.\u0275\u0275defineInjectable({token:u,factory:u.\u0275fac,providedIn:"root"})},9435:(Le,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.getTypeDoc=m.getTypeLabels=m.getConstructorName=m.primitiveTypesExamples=m.primitiveTypes=void 0;const i=l(6676),d=l(6395);function _(b){switch(b.constructor){case i.StringPrimitiveType:return"StringPrimitiveType";case i.IntPrimitiveType:return"IntPrimitiveType";case i.UIntPrimitiveType:return"UIntPrimitiveType";case i.FloatPrimitiveType:return"FloatPrimitiveType";case i.BigIntPrimitiveType:return"BigIntPrimitiveType";case i.MoneyPrimitiveType:return"MoneyPrimitiveType";case i.DatePrimitiveType:return"DatePrimitiveType";case i.DateTimePrimitiveType:return"DateTimePrimitiveType";case i.BoolPrimitiveType:return"BoolPrimitiveType";case i.VoidPrimitiveType:return"VoidPrimitiveType";case i.CpfPrimitiveType:return"CpfPrimitiveType";case i.CnpjPrimitiveType:return"CnpjPrimitiveType";case i.EmailPrimitiveType:return"EmailPrimitiveType";case i.UrlPrimitiveType:return"UrlPrimitiveType";case i.UuidPrimitiveType:return"UuidPrimitiveType";case i.HexPrimitiveType:return"HexPrimitiveType";case i.HtmlPrimitiveType:return"HtmlPrimitiveType";case i.BytesPrimitiveType:return"BytesPrimitiveType";case i.Base64PrimitiveType:return"Base64PrimitiveType";case i.XmlPrimitiveType:return"XmlPrimitiveType";case i.JsonPrimitiveType:return"JsonPrimitiveType";case i.OptionalType:return"OptionalType";case i.EnumType:return"EnumType";case i.ArrayType:return"ArrayType";case i.StructType:return"StructType";default:return b.constructor.name}}m.primitiveTypes={StringPrimitiveType:"Um texto livre, potencialmente de m\xfaltiplas linhas, codificado como UTF-8.",IntPrimitiveType:"Um n\xfamero inteiro de 32 bits, no intervalo de -2147483648 at\xe9 2147483647.",UIntPrimitiveType:"Um n\xfamero inteiro n\xe3o negativo, no intervalo de 0 at\xe9 4294967295.",FloatPrimitiveType:"Um n\xfamero de ponto flutuante de 64 bits, similar ao double do C.",BigIntPrimitiveType:"Um n\xfamero inteiro sem limite de precis\xe3o. Na maioria das plataformas este tipo \xe9 mais custoso.",MoneyPrimitiveType:"Um n\xfamero inteiro com precis\xe3o estendida, mas perform\xe1tico. Est\xe1 no intervalo de -9007199254740991 a 9007199254740991. \xdatil para opera\xe7\xf5es financeiras",DatePrimitiveType:"Representa conceitualmente uma data do calend\xe1rio Gregoriano. Essa mesma data pode representar diferentes momento no tempo a depender da timezone. Para especificar um ponto no tempo utilize datetime.",DateTimePrimitiveType:"Representa um instante no tempo com precis\xe3o de milissegundos. Este instante ser\xe1 sempre traduzido para o fuso hor\xe1rio local do recebedor da mensagem.",BoolPrimitiveType:"Ou true ou false.",VoidPrimitiveType:"Tipo vazio, sem conte\xfado.",CpfPrimitiveType:"Similar a uma string, mas contendo um CPF v\xe1lido.",CnpjPrimitiveType:"Similar a uma string, mas contendo um CNPJ v\xe1lido.",EmailPrimitiveType:"Similar a uma string, mas contendo um e-mail v\xe1lido.",UrlPrimitiveType:"Similar a uma string, mas contendo uma URL v\xe1lida.",UuidPrimitiveType:"Similar a uma string, mas contendo um UUID v\xe1lido.",HexPrimitiveType:"Similar a uma string, mas contendo uma quantidade par de caracteres hexadecimais, \xfatil para representar bytes.",HtmlPrimitiveType:"Similar a uma string, mas contendo um HTML v\xe1lido.",BytesPrimitiveType:"Uma sequ\xeancia arbitr\xe1ria de bytes de qualquer comprimento. Pode ser utilizado para tr\xe1fego de dados bin\xe1rios.",Base64PrimitiveType:"Similar a uma string, mas necessariamente com uma codifica\xe7\xe3o Base 64 v\xe1lida.",XmlPrimitiveType:"Similar a uma string, mas contendo um XML v\xe1lido.",JsonPrimitiveType:"Um valor JSON qualquer, incluindo objetos, arrays, strings, n\xfameros e boleanos, em qualquer profundidade. Note que embora null possa aparecer dentro de um objeto ou array, o valor deste campo n\xe3o pode ser null diretamente. Para isso utilize json?."},m.primitiveTypesExamples={StringPrimitiveType:["","lorem ipsum","strings podem conter caracteres especiais \u{1f609}"],IntPrimitiveType:["0","6725082065","-3096576054"],UIntPrimitiveType:["0","1","340953460"],FloatPrimitiveType:["0.0","1.050654","-3454.6396854"],BigIntPrimitiveType:["87175082235506108544888893172310","0","1"],MoneyPrimitiveType:["100","-450954636342","121611633162977184630315"],DatePrimitiveType:["2020-01-01","1950-04-15","2194-12-31"],DateTimePrimitiveType:["2020-01-01T00:00:00.000","1950-04-15T02:11:58.892","2194-12-31T23:31:58.491"],BoolPrimitiveType:["true","false"],CpfPrimitiveType:["000.000.001-91","00000000191","000.000.002-72"],CnpjPrimitiveType:["00.000.000/0001-91","00000000000191","00.000.000/0002-72"],EmailPrimitiveType:["sample@example.com","root@localhost","test+label@10.0.0.5"],UrlPrimitiveType:["https://sdkgen.github.io/","https://goo.gl/maps/gUaKGTqR8BHXfX7b7","http://jobs.cubos.io"],UuidPrimitiveType:["c12c3329-c558-4c76-9a16-0efeb2b01605","00000000-0000-0000-0000-000000000000","1d5f2ef6-0def-11ec-82a8-0242ac130003"],HexPrimitiveType:["00","6375626f73","73646b67656e20706c617967726f756e64"],HtmlPrimitiveType:["<html><body><p>sdkgen</p></body></html>","<html><h1>Sdkgen","<script> alert('Hello world!'); <\/script>"],BytesPrimitiveType:[],Base64PrimitiveType:["Y3Vib3M=","c2RrZ2Vu","c2RrZ2VuIHBsYXlncm91bmQ="],XmlPrimitiveType:["<items><item>something</item></items>","<list />",'<?xml version="1.0" encoding="UTF-8"?><resposta><![CDATA[ol\xe1 <xml>]]></resposta>'],JsonPrimitiveType:["{}",'{"sdkgen":"playground"}','{"type":"json","items":[1,2,3],"some":null}']},m.getConstructorName=_,m.getTypeLabels=function u(b){const C=[];switch(b.constructor){case i.StringPrimitiveType:case i.IntPrimitiveType:case i.UIntPrimitiveType:case i.FloatPrimitiveType:case i.BigIntPrimitiveType:case i.MoneyPrimitiveType:case i.DatePrimitiveType:case i.DateTimePrimitiveType:case i.BoolPrimitiveType:case i.VoidPrimitiveType:case i.CpfPrimitiveType:case i.CnpjPrimitiveType:case i.EmailPrimitiveType:case i.UrlPrimitiveType:case i.UuidPrimitiveType:case i.HexPrimitiveType:case i.HtmlPrimitiveType:case i.BytesPrimitiveType:case i.Base64PrimitiveType:case i.XmlPrimitiveType:case i.JsonPrimitiveType:C.push("Primitivo");break;case i.OptionalType:C.push("Opcional"),C.push(...u(b.base));break;case i.TypeReference:C.push(...u(b.type));break;case i.ArrayType:C.push("Array"),C.push(...u(b.base));break;case i.EnumType:C.push("Enum");break;default:console.error("No labels for",_(b))}return C},m.getTypeDoc=function s(b){var C,T,p;switch(b.constructor){case i.StringPrimitiveType:case i.IntPrimitiveType:case i.UIntPrimitiveType:case i.FloatPrimitiveType:case i.BigIntPrimitiveType:case i.MoneyPrimitiveType:case i.DatePrimitiveType:case i.DateTimePrimitiveType:case i.BoolPrimitiveType:case i.VoidPrimitiveType:case i.CpfPrimitiveType:case i.CnpjPrimitiveType:case i.EmailPrimitiveType:case i.UrlPrimitiveType:case i.UuidPrimitiveType:case i.HexPrimitiveType:case i.HtmlPrimitiveType:case i.BytesPrimitiveType:case i.Base64PrimitiveType:case i.XmlPrimitiveType:case i.JsonPrimitiveType:return{longDescription:m.primitiveTypes[_(b)],shortDescription:m.primitiveTypes[_(b)],examples:m.primitiveTypesExamples[_(b)]};case i.OptionalType:{const P=s(b.base);return Object.assign(Object.assign({},P),{longDescription:P.longDescription,shortDescription:`(opcional) ${P.shortDescription}`,examples:["null",...null!==(C=P.examples)&&void 0!==C?C:[]]})}case i.TypeReference:return s(b.type);case i.ArrayType:{const P=s(b.base);return Object.assign(Object.assign({},P),{longDescription:P.longDescription,shortDescription:`(array) ${P.shortDescription}`,examples:["[]",...null!==(p=null===(T=P.examples)||void 0===T?void 0:T.map(O=>`[${O}]`))&&void 0!==p?p:[]]})}case i.EnumType:const y=b.values.map(P=>P.value);return{longDescription:"enum representa um conjunto limitado de possibilidades de valores, similar as enumera\xe7\xf5es em outras linguagens.",shortDescription:`(enum) ${y.slice(0,3).join(", ")}${y.length>3?"\u2026":""}`,examples:y,isEnum:!0};case i.StructType:return{longDescription:"",shortDescription:`(objeto complexo) ${b.fields.slice(0,3).map(P=>P.name).join(", ")}\u2026`,isStruct:!0,structFields:b.fields.map(P=>{var O;return{name:P.name,description:null===(O=P.annotations.find(S=>S instanceof i.DescriptionAnnotation))||void 0===O?void 0:O.text,type:P.type,secret:P.secret}}),examples:[JSON.stringify((new d.SdkgenService).buildJsonObject(b.fields),null,2)]};default:return{longDescription:"BUG: Unknown Type",shortDescription:"BUG: Unknown Type",examples:[]}}}},6395:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";var _asyncToGenerator=__webpack_require__(8926).default;Object.defineProperty(exports,"__esModule",{value:!0}),exports.SdkgenService=void 0;const tslib_1=__webpack_require__(655),browser_runtime_1=__webpack_require__(4539),parser_1=__webpack_require__(6676),rxjs_1=__webpack_require__(9802),i0=(0,tslib_1.__importStar)(__webpack_require__(5e3));class SdkgenService{constructor(){this.state$=new rxjs_1.BehaviorSubject(null)}buildJsonObject(Le){const m=l=>{switch(l.constructor){case parser_1.StringPrimitiveType:return"";case parser_1.IntPrimitiveType:case parser_1.UIntPrimitiveType:case parser_1.FloatPrimitiveType:case parser_1.BigIntPrimitiveType:case parser_1.MoneyPrimitiveType:return 0;case parser_1.DatePrimitiveType:return(new Date).toJSON().substring(0,10);case parser_1.DateTimePrimitiveType:return(new Date).toJSON().substring(0,23);case parser_1.BoolPrimitiveType:return Math.random()>.5;case parser_1.VoidPrimitiveType:return null;case parser_1.CpfPrimitiveType:return"000.000.001-91";case parser_1.CnpjPrimitiveType:return"00.000.001/0001-91";case parser_1.EmailPrimitiveType:return"joao@acme.com";case parser_1.UrlPrimitiveType:return"https://www.google.com/";case parser_1.UuidPrimitiveType:return"00000000-0000-0000-0000-000000000000";case parser_1.HexPrimitiveType:return new Array(32).fill(0).map(()=>"0123456789abcdef"[Math.floor(16*Math.random())]).join("");case parser_1.HtmlPrimitiveType:return"<h1>Hello world!</h1>";case parser_1.BytesPrimitiveType:case parser_1.Base64PrimitiveType:return"0a=";case parser_1.XmlPrimitiveType:return"<xml></xml>";case parser_1.JsonPrimitiveType:return{};case parser_1.StructType:return this.buildJsonObject(l.fields);case parser_1.OptionalType:return null;case parser_1.TypeReference:return m(l.type);case parser_1.ArrayType:return[m(l.base),m(l.base),m(l.base)];case parser_1.EnumType:return l.values[0].value;default:return null}};return Le.reduce((l,i)=>(l[i.name]=m(i.type),l),{})}getTypeScriptCode(Le,m){return`await client.${Le}(${JSON.stringify(m,null,2)});\n`}buildKotlinString(Le,m=0){const l=i=>{switch(i.constructor){case parser_1.StringPrimitiveType:return'""';case parser_1.IntPrimitiveType:case parser_1.UIntPrimitiveType:case parser_1.FloatPrimitiveType:case parser_1.BigIntPrimitiveType:case parser_1.MoneyPrimitiveType:return 0;case parser_1.DatePrimitiveType:case parser_1.DateTimePrimitiveType:return"Calendar.getInstance()";case parser_1.BoolPrimitiveType:return Math.random()>.5?"true":"false";case parser_1.VoidPrimitiveType:return"null";case parser_1.CpfPrimitiveType:return'"000.000.001-91"';case parser_1.CnpjPrimitiveType:return'"00.000.001/0001-91"';case parser_1.EmailPrimitiveType:return'"joao@acme.com"';case parser_1.UrlPrimitiveType:return'"https://www.google.com/"';case parser_1.UuidPrimitiveType:return'"00000000-0000-0000-0000-000000000000"';case parser_1.HexPrimitiveType:return`"${new Array(32).fill(0).map(()=>"0123456789abcdef"[Math.floor(16*Math.random())]).join("")}"`;case parser_1.HtmlPrimitiveType:return'"<h1>Hello world!</h1>"';case parser_1.BytesPrimitiveType:case parser_1.Base64PrimitiveType:return'"0a="';case parser_1.XmlPrimitiveType:return'"<xml></xml>"';case parser_1.JsonPrimitiveType:return"json {}";case parser_1.StructType:return`${i.name}(\n${this.buildKotlinString(i.fields,m+1)}\n${" ".repeat(m+1)})`;case parser_1.OptionalType:return"null";case parser_1.TypeReference:return l(i.type);case parser_1.ArrayType:m++;const d=l(i.base);return m--,`arrayOf(\n${" ".repeat(m+2)}${d},\n${" ".repeat(m+2)}${d}\n${" ".repeat(m+1)})`;case parser_1.EnumType:return`"${i.values[0].value}"`;default:return"<>()"}};return Le.map(i=>`${" ".repeat(m+1)}${l(i.type)}`).join(",\n")}getKotlinCode(Le,m){return 0===m.length?`client.${Le}().await();`:`client.${Le}(\n${this.buildKotlinString(m)}\n).await();`}getDartCode(Le,m){return'print("todo");'}getSwiftCode(Le,m){return'print("todo");'}getSdkgenClient(url,ast){const errorFns=ast.errors.reduce((acc,cur)=>{function errorClass(type,base){return eval(`(\n (sup) => class ${type} extends sup {\n type = "${type}";\n message = "";\n ${base===browser_runtime_1.SdkgenErrorWithData?"data = null;":""}\n\n constructor(message${base===browser_runtime_1.SdkgenErrorWithData?", data":""}) {\n super(message${base===browser_runtime_1.SdkgenErrorWithData?", data":""});\n this.message = message;\n ${base===browser_runtime_1.SdkgenErrorWithData?"this.data = data;":""}\n this.toString = () => this.type + ": " + this.message;\n }\n }\n )`)(base)}return"string"==typeof cur?acc[cur]=errorClass(cur,browser_runtime_1.SdkgenError):acc[cur[0]]=errorClass(cur[0],browser_runtime_1.SdkgenErrorWithData),acc},{}),clientInstance=new browser_runtime_1.SdkgenHttpClient(url,ast,errorFns);return new Proxy(clientInstance,{get:(Le,m)=>["baseUrl","extra","successHook","errorHook","makeRequest"].includes(m.toString())?clientInstance[m.toString()]:function(){var l=_asyncToGenerator(function*(i){return clientInstance.makeRequest(m.toString(),i)});return function(i){return l.apply(this,arguments)}}()})}}exports.SdkgenService=SdkgenService,SdkgenService.\u0275fac=function Le(m){return new(m||SdkgenService)},SdkgenService.\u0275prov=i0.\u0275\u0275defineInjectable({token:SdkgenService,factory:SdkgenService.\u0275fac,providedIn:"root"})},7822:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";var _asyncToGenerator=__webpack_require__(8926).default;Object.defineProperty(exports,"__esModule",{value:!0}),exports.SimpleCallComponent=void 0;const tslib_1=__webpack_require__(655),forms_1=__webpack_require__(3075),console_types_1=__webpack_require__(9972),code_execution_1=__webpack_require__(8227),i0=(0,tslib_1.__importStar)(__webpack_require__(5e3)),i1=(0,tslib_1.__importStar)(__webpack_require__(6395)),i2=(0,tslib_1.__importStar)(__webpack_require__(1430)),i3=(0,tslib_1.__importStar)(__webpack_require__(3251)),i4=(0,tslib_1.__importStar)(__webpack_require__(7423)),i5=(0,tslib_1.__importStar)(__webpack_require__(5245)),i6=(0,tslib_1.__importStar)(__webpack_require__(107)),i7=(0,tslib_1.__importStar)(__webpack_require__(3075)),i8=(0,tslib_1.__importStar)(__webpack_require__(5109)),i9=(0,tslib_1.__importStar)(__webpack_require__(8495));class SimpleCallComponent{constructor(Le){this.sdkgen=Le,this.editorOptions={theme:"vs-dark",language:"json"},this.code="",this.selected=new forms_1.FormControl(0),this.consoleItems=[]}ngOnInit(){this.state$=this.sdkgen.state$.subscribe(Le=>{!Le||(this.generateFunctionCode(Le.astRoot,this.fn),this.client=this.sdkgen.getSdkgenClient(Le.url,Le.astJson))})}ngOnDestroy(){var Le;null===(Le=this.state$)||void 0===Le||Le.unsubscribe()}run(){var _this=this;return _asyncToGenerator(function*(){{const events=_this.consoleItems;eval(code_execution_1.wrapper)}const exec=_this.client[_this.fn](JSON.parse(_this.code));try{_this.response={result:yield exec}}catch(Le){_this.consoleItems.push({type:console_types_1.ConsoleItemType.ERROR,message:Le.toString()}),delete Le.toString,_this.response={error:{type:Le.type,message:Le.message,data:Le.data}}}finally{eval(code_execution_1.unwrap),_this.selected.setValue(1)}})()}generateFunctionCode(Le,m){var l;const i=null===(l=Le.operations.find(d=>d.name===m))||void 0===l?void 0:l.args;i&&(this.code=JSON.stringify(this.sdkgen.buildJsonObject(i),null,2))}}exports.SimpleCallComponent=SimpleCallComponent,SimpleCallComponent.\u0275fac=function Le(m){return new(m||SimpleCallComponent)(i0.\u0275\u0275directiveInject(i1.SdkgenService))},SimpleCallComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:SimpleCallComponent,selectors:[["app-simple-call"]],inputs:{fn:"fn"},decls:12,vars:7,consts:[["direction","vertical"],["animationDuration","0ms",3,"selectedIndex","selectedIndexChange"],["label","Requisi\xe7\xe3o"],["mat-fab","",1,"run-fab",3,"click"],[3,"options","ngModel","ngModelChange"],["label","Resposta",3,"disabled"],[3,"json"],[3,"size"],[3,"items"]],template:function Le(m,l){1&m&&(i0.\u0275\u0275elementStart(0,"as-split",0),i0.\u0275\u0275elementStart(1,"as-split-area"),i0.\u0275\u0275elementStart(2,"mat-tab-group",1),i0.\u0275\u0275listener("selectedIndexChange",function(d){return l.selected.setValue(d)}),i0.\u0275\u0275elementStart(3,"mat-tab",2),i0.\u0275\u0275elementStart(4,"button",3),i0.\u0275\u0275listener("click",function(){return l.run()}),i0.\u0275\u0275elementStart(5,"mat-icon"),i0.\u0275\u0275text(6,"play_arrow"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(7,"ngx-monaco-editor",4),i0.\u0275\u0275listener("ngModelChange",function(d){return l.code=d}),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(8,"mat-tab",5),i0.\u0275\u0275element(9,"ngx-json-viewer",6),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(10,"as-split-area",7),i0.\u0275\u0275element(11,"app-console",8),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementEnd()),2&m&&(i0.\u0275\u0275advance(2),i0.\u0275\u0275property("selectedIndex",l.selected.value),i0.\u0275\u0275advance(5),i0.\u0275\u0275property("options",l.editorOptions)("ngModel",l.code),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("disabled",!l.response),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("json",l.response),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("size",30),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("items",l.consoleItems))},directives:[i2.SplitComponent,i2.SplitAreaDirective,i3.MatTabGroup,i3.MatTab,i4.MatButton,i5.MatIcon,i6.MonacoEditorComponent,i7.NgControlStatus,i7.NgModel,i8.NgxJsonViewerComponent,i9.ConsoleComponent],styles:["[_nghost-%COMP%]{display:block;height:100%}mat-tab-group[_ngcontent-%COMP%]{height:100%}mat-tab-group[_ngcontent-%COMP%] .mat-tab-body-wrapper{height:100%}mat-tab-group[_ngcontent-%COMP%] .mat-tab-body-content{overflow-y:hidden!important}mat-tab-group[_ngcontent-%COMP%] ngx-monaco-editor[_ngcontent-%COMP%]{display:block;height:100%}"]})},4264:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";var _asyncToGenerator=__webpack_require__(8926).default;Object.defineProperty(exports,"__esModule",{value:!0}),exports.TabEditorComponent=void 0;const tslib_1=__webpack_require__(655),typescript_generator_1=__webpack_require__(2911),console_types_1=__webpack_require__(9972),code_execution_1=__webpack_require__(8227),i0=(0,tslib_1.__importStar)(__webpack_require__(5e3)),i1=(0,tslib_1.__importStar)(__webpack_require__(6395)),i2=(0,tslib_1.__importStar)(__webpack_require__(7423)),i3=(0,tslib_1.__importStar)(__webpack_require__(5245)),i4=(0,tslib_1.__importStar)(__webpack_require__(1430)),i5=(0,tslib_1.__importStar)(__webpack_require__(107)),i6=(0,tslib_1.__importStar)(__webpack_require__(3075)),i7=(0,tslib_1.__importStar)(__webpack_require__(8495));class TabEditorComponent{constructor(Le){this.sdkgen=Le,this.code="",this.editorOptions={theme:"vs-dark",language:"typescript"},this.consoleItems=[{type:console_types_1.ConsoleItemType.INFO,message:"Bem-vindo! A sa\xedda dos seus testes aparecer\xe1 aqui :)"}]}ngOnInit(){this.state$=this.sdkgen.state$.subscribe(Le=>{if(!Le)return;const m=`${this.patchBrowserClientSource((0,typescript_generator_1.generateBrowserClientSource)(Le.astRoot))}\n\ndeclare const client: sdkgen.ApiClient;\n\n`;this.client=this.sdkgen.getSdkgenClient(Le.url,Le.astJson),monaco.languages.typescript.typescriptDefaults.getCompilerOptions().target=monaco.languages.typescript.ScriptTarget.ESNext,monaco.languages.typescript.typescriptDefaults.getCompilerOptions().module=monaco.languages.typescript.ModuleKind.ESNext,monaco.languages.typescript.typescriptDefaults.getDiagnosticsOptions().diagnosticCodesToIgnore=[1375];const l=monaco.editor.getModels().find(d=>d.uri.toString().endsWith("client.d.ts"));l?l.setValue(m):monaco.editor.createModel(m,"typescript",monaco.Uri.parse("ts:filename/client.d.ts"));const[i]=Le.astRoot.operations;this.code=this.sdkgen.getTypeScriptCode(i.name,this.sdkgen.buildJsonObject(i.args))})}ngOnDestroy(){var Le;null===(Le=this.state$)||void 0===Le||Le.unsubscribe()}patchBrowserClientSource(Le){return`declare namespace sdkgen {\n${Le.substring(95,Le.indexOf("const errClasses")).replace(/ extends SdkgenError/g," extends Error").replace(/ extends SdkgenHttpClient/g,"").replace(/{ return this.makeRequest\(.*$/gm,"").replace(/ {\n {8}super\(baseUrl, astJson, errClasses\);\n {4}}/g,"").replace("constructor(","\n baseUrl: string;\n extra = new Map<string, any>();\n successHook: (result: any, name: string, args: any) => void = () => undefined;\n errorHook: (result: any, name: string, args: any) => void = () => undefined;\n async makeRequest(functionName: string, args: unknown): Promise<any>;\n \nconstructor(")}\n}\n`}run(){var _this=this;return _asyncToGenerator(function*(){try{yield eval(`\n (async (client, events) => {\n ${code_execution_1.wrapper}\n ${_this.code}\n })\n `)(_this.client,_this.consoleItems).finally(()=>eval(code_execution_1.unwrap))}catch(Le){_this.consoleItems.push({type:console_types_1.ConsoleItemType.ERROR,message:Le.toString()})}})()}}exports.TabEditorComponent=TabEditorComponent,TabEditorComponent.\u0275fac=function Le(m){return new(m||TabEditorComponent)(i0.\u0275\u0275directiveInject(i1.SdkgenService))},TabEditorComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:TabEditorComponent,selectors:[["app-tab-editor"]],decls:8,vars:4,consts:[["mat-fab","",1,"run-fab",3,"click"],["direction","vertical"],[1,"o-hidden"],[3,"options","ngModel","ngModelChange"],[3,"size"],[3,"items"]],template:function Le(m,l){1&m&&(i0.\u0275\u0275elementStart(0,"button",0),i0.\u0275\u0275listener("click",function(){return l.run()}),i0.\u0275\u0275elementStart(1,"mat-icon"),i0.\u0275\u0275text(2,"play_arrow"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(3,"as-split",1),i0.\u0275\u0275elementStart(4,"as-split-area",2),i0.\u0275\u0275elementStart(5,"ngx-monaco-editor",3),i0.\u0275\u0275listener("ngModelChange",function(d){return l.code=d}),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(6,"as-split-area",4),i0.\u0275\u0275element(7,"app-console",5),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementEnd()),2&m&&(i0.\u0275\u0275advance(5),i0.\u0275\u0275property("options",l.editorOptions)("ngModel",l.code),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("size",30),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("items",l.consoleItems))},directives:[i2.MatButton,i3.MatIcon,i4.SplitComponent,i4.SplitAreaDirective,i5.MonacoEditorComponent,i6.NgControlStatus,i6.NgModel,i7.ConsoleComponent],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;height:calc(100% - 4px);margin-top:4px} .scroll-decoration{display:none}.o-hidden[_ngcontent-%COMP%]{overflow:hidden!important}"]})},5585:(Le,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.TabHomeComponent=void 0;const i=l(655),d=l(5e3),_=l(9435),u=l(5281),s=(0,i.__importStar)(l(5e3)),b=(0,i.__importStar)(l(6395)),C=(0,i.__importStar)(l(8966)),T=(0,i.__importStar)(l(7120)),p=(0,i.__importStar)(l(1430)),y=(0,i.__importStar)(l(3075)),P=(0,i.__importStar)(l(9808)),O=(0,i.__importStar)(l(7238)),S=(0,i.__importStar)(l(7423)),N=(0,i.__importStar)(l(5245)),B=(0,i.__importStar)(l(3251)),ce=(0,i.__importStar)(l(107)),K=(0,i.__importStar)(l(9417)),re=(0,i.__importStar)(l(2075)),Me=(0,i.__importStar)(l(4211));function pe(dt,Ze){if(1&dt&&(s.\u0275\u0275elementStart(0,"span",8),s.\u0275\u0275text(1),s.\u0275\u0275elementEnd()),2&dt){const k=s.\u0275\u0275nextContext().$implicit;s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(k.description)}}const be=function(dt){return{active:dt}};function ue(dt,Ze){if(1&dt){const k=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"li",5),s.\u0275\u0275listener("click",function(){const se=s.\u0275\u0275restoreView(k).$implicit;return s.\u0275\u0275nextContext().selectedFunction=se}),s.\u0275\u0275elementStart(1,"span",6),s.\u0275\u0275text(2),s.\u0275\u0275elementEnd(),s.\u0275\u0275template(3,pe,2,1,"span",7),s.\u0275\u0275elementEnd()}if(2&dt){const k=Ze.$implicit,ne=s.\u0275\u0275nextContext();s.\u0275\u0275property("ngClass",s.\u0275\u0275pureFunction1(3,be,(null==ne.selectedFunction?null:ne.selectedFunction.name)===k.name)),s.\u0275\u0275advance(2),s.\u0275\u0275textInterpolate(k.name),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngIf",k.description)}}function xe(dt,Ze){1&dt&&s.\u0275\u0275element(0,"span")}function He(dt,Ze){if(1&dt){const k=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"span"),s.\u0275\u0275element(1,"br"),s.\u0275\u0275text(2,"\xa0\xa0"),s.\u0275\u0275elementStart(3,"span",37),s.\u0275\u0275text(4),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(5,"span",14),s.\u0275\u0275text(6,":"),s.\u0275\u0275elementEnd(),s.\u0275\u0275text(7,"\xa0"),s.\u0275\u0275elementStart(8,"u",15),s.\u0275\u0275listener("click",function(){const se=s.\u0275\u0275restoreView(k).$implicit;return s.\u0275\u0275nextContext(2).showDocumentation(se.rawType)}),s.\u0275\u0275text(9),s.\u0275\u0275elementEnd(),s.\u0275\u0275template(10,xe,1,0,"span",38),s.\u0275\u0275elementEnd()}if(2&dt){const k=Ze.$implicit,ne=Ze.index;s.\u0275\u0275nextContext();const Pe=s.\u0275\u0275reference(18),se=s.\u0275\u0275reference(20),Ce=s.\u0275\u0275nextContext();s.\u0275\u0275advance(4),s.\u0275\u0275textInterpolate(k.name),s.\u0275\u0275advance(4),s.\u0275\u0275property("matTooltip",Ce.getTooltip(k.rawType)),s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(k.type),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngIf",ne!=Ce.selectedFunction.args.length-1)("ngIfThen",Pe)("ngIfElse",se)}}function et(dt,Ze){1&dt&&s.\u0275\u0275text(0,",")}function ct(dt,Ze){1&dt&&s.\u0275\u0275element(0,"br")}function X(dt,Ze){if(1&dt){const k=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"u",29),s.\u0275\u0275listener("click",function(){s.\u0275\u0275restoreView(k);const Pe=s.\u0275\u0275nextContext().$implicit;return s.\u0275\u0275nextContext(3).showDocumentation(Pe.dataType)}),s.\u0275\u0275text(1),s.\u0275\u0275elementEnd()}if(2&dt){const k=s.\u0275\u0275nextContext().$implicit,ne=s.\u0275\u0275nextContext(3);s.\u0275\u0275property("matTooltip",ne.getTooltip(k.dataType)),s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate1("(",k.dataType.name,")")}}function me(dt,Ze){if(1&dt&&(s.\u0275\u0275elementStart(0,"mat-chip",42),s.\u0275\u0275elementStart(1,"span",28),s.\u0275\u0275text(2),s.\u0275\u0275elementEnd(),s.\u0275\u0275element(3,"i"),s.\u0275\u0275elementStart(4,"span",28),s.\u0275\u0275text(5),s.\u0275\u0275template(6,X,2,2,"u",43),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd()),2&dt){const k=Ze.$implicit;s.\u0275\u0275property("disableRipple",!0),s.\u0275\u0275advance(2),s.\u0275\u0275textInterpolate(k.name),s.\u0275\u0275advance(3),s.\u0275\u0275textInterpolate1("",k.type," "),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngIf",k.dataType&&"void"!==k.dataType.name)}}function z(dt,Ze){if(1&dt&&(s.\u0275\u0275elementStart(0,"section",39),s.\u0275\u0275elementStart(1,"mat-chip-list",40),s.\u0275\u0275template(2,me,7,4,"mat-chip",41),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd()),2&dt){const k=s.\u0275\u0275nextContext(2);s.\u0275\u0275advance(1),s.\u0275\u0275property("selectable",!1),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngForOf",k.selectedFunction.labels)}}function oe(dt,Ze){if(1&dt&&(s.\u0275\u0275elementStart(0,"p"),s.\u0275\u0275text(1),s.\u0275\u0275elementEnd()),2&dt){const k=s.\u0275\u0275nextContext(2);s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(k.selectedFunction.description)}}function ke(dt,Ze){1&dt&&(s.\u0275\u0275elementStart(0,"p",44),s.\u0275\u0275text(1,"N\xe3o h\xe1 descri\xe7\xe3o para esta fun\xe7\xe3o."),s.\u0275\u0275elementEnd())}function de(dt,Ze){1&dt&&(s.\u0275\u0275elementStart(0,"p",44),s.\u0275\u0275text(1,"Esta fun\xe7\xe3o n\xe3o possui argumentos."),s.\u0275\u0275elementEnd())}function Ue(dt,Ze){1&dt&&(s.\u0275\u0275elementStart(0,"th",54),s.\u0275\u0275text(1,"Nome"),s.\u0275\u0275elementEnd())}function fe(dt,Ze){if(1&dt&&(s.\u0275\u0275elementStart(0,"td",55),s.\u0275\u0275text(1),s.\u0275\u0275elementEnd()),2&dt){const k=Ze.$implicit;s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(k.name)}}function Je(dt,Ze){1&dt&&(s.\u0275\u0275elementStart(0,"th",54),s.\u0275\u0275text(1,"Tipo"),s.\u0275\u0275elementEnd())}function Te(dt,Ze){if(1&dt){const k=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"td",55),s.\u0275\u0275elementStart(1,"u",29),s.\u0275\u0275listener("click",function(){const se=s.\u0275\u0275restoreView(k).$implicit;return s.\u0275\u0275nextContext(3).showDocumentation(se.rawType)}),s.\u0275\u0275text(2),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd()}if(2&dt){const k=Ze.$implicit,ne=s.\u0275\u0275nextContext(3);s.\u0275\u0275advance(1),s.\u0275\u0275property("matTooltip",ne.getTooltip(k.rawType)),s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(k.type)}}function Ge(dt,Ze){1&dt&&(s.\u0275\u0275elementStart(0,"th",54),s.\u0275\u0275text(1,"Descri\xe7\xe3o"),s.\u0275\u0275elementEnd())}function vt(dt,Ze){if(1&dt&&(s.\u0275\u0275elementStart(0,"td",56),s.\u0275\u0275text(1),s.\u0275\u0275elementEnd()),2&dt){const k=Ze.$implicit;s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(k.description||"-")}}function St(dt,Ze){1&dt&&s.\u0275\u0275element(0,"tr",57)}function Re(dt,Ze){1&dt&&s.\u0275\u0275element(0,"tr",58)}function qe(dt,Ze){if(1&dt&&(s.\u0275\u0275elementStart(0,"table",45),s.\u0275\u0275elementContainerStart(1,46),s.\u0275\u0275template(2,Ue,2,0,"th",47),s.\u0275\u0275template(3,fe,2,1,"td",48),s.\u0275\u0275elementContainerEnd(),s.\u0275\u0275elementContainerStart(4,49),s.\u0275\u0275template(5,Je,2,0,"th",47),s.\u0275\u0275template(6,Te,3,2,"td",48),s.\u0275\u0275elementContainerEnd(),s.\u0275\u0275elementContainerStart(7,50),s.\u0275\u0275template(8,Ge,2,0,"th",47),s.\u0275\u0275template(9,vt,2,1,"td",51),s.\u0275\u0275elementContainerEnd(),s.\u0275\u0275template(10,St,1,0,"tr",52),s.\u0275\u0275template(11,Re,1,0,"tr",53),s.\u0275\u0275elementEnd()),2&dt){const k=s.\u0275\u0275nextContext(2);s.\u0275\u0275property("dataSource",k.selectedFunction.args),s.\u0275\u0275advance(10),s.\u0275\u0275property("matHeaderRowDef",k.argumentsTableColumns),s.\u0275\u0275advance(1),s.\u0275\u0275property("matRowDefColumns",k.argumentsTableColumns)}}function Y(dt,Ze){1&dt&&(s.\u0275\u0275elementStart(0,"span",59),s.\u0275\u0275text(1,"Dart"),s.\u0275\u0275elementEnd())}function he(dt,Ze){1&dt&&(s.\u0275\u0275elementStart(0,"span",59),s.\u0275\u0275text(1,"Swift"),s.\u0275\u0275elementEnd())}const Ee=function(){return{theme:"vs-dark",language:"javascript"}},Ie=function(){return{theme:"vs-dark",language:"kotlin"}},ge=function(){return{theme:"vs-dark",language:"dart"}},Xe=function(){return{theme:"vs-dark",language:"swift"}};function pt(dt,Ze){if(1&dt){const k=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"article"),s.\u0275\u0275elementStart(1,"header"),s.\u0275\u0275elementStart(2,"h1",9),s.\u0275\u0275elementStart(3,"span",10),s.\u0275\u0275elementStart(4,"span",11),s.\u0275\u0275text(5,"fn"),s.\u0275\u0275elementEnd(),s.\u0275\u0275text(6,"\xa0"),s.\u0275\u0275elementStart(7,"span",12),s.\u0275\u0275text(8),s.\u0275\u0275elementEnd(),s.\u0275\u0275text(9,"("),s.\u0275\u0275template(10,He,11,6,"span",13),s.\u0275\u0275text(11,")"),s.\u0275\u0275elementStart(12,"span",14),s.\u0275\u0275text(13,":"),s.\u0275\u0275elementEnd(),s.\u0275\u0275text(14,"\xa0"),s.\u0275\u0275elementStart(15,"u",15),s.\u0275\u0275listener("click",function(){s.\u0275\u0275restoreView(k);const Pe=s.\u0275\u0275nextContext();return Pe.showDocumentation(Pe.selectedFunction.returns.rawType)}),s.\u0275\u0275text(16),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd(),s.\u0275\u0275template(17,et,1,0,"ng-template",null,16,s.\u0275\u0275templateRefExtractor),s.\u0275\u0275template(19,ct,1,0,"ng-template",null,17,s.\u0275\u0275templateRefExtractor),s.\u0275\u0275element(21,"s"),s.\u0275\u0275elementStart(22,"button",18),s.\u0275\u0275listener("click",function(){return s.\u0275\u0275restoreView(k),s.\u0275\u0275nextContext().addSimpleCallTab()}),s.\u0275\u0275elementStart(23,"mat-icon"),s.\u0275\u0275text(24,"play_arrow"),s.\u0275\u0275elementEnd(),s.\u0275\u0275text(25,"\xa0EXECUTAR "),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd(),s.\u0275\u0275template(26,z,3,2,"section",19),s.\u0275\u0275elementStart(27,"section",9),s.\u0275\u0275elementStart(28,"h2",20),s.\u0275\u0275text(29,"Descri\xe7\xe3o"),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(30,"div",21),s.\u0275\u0275template(31,oe,2,1,"p",22),s.\u0275\u0275template(32,ke,2,0,"p",23),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(33,"h2",24),s.\u0275\u0275text(34,"Par\xe2metros"),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(35,"div",21),s.\u0275\u0275template(36,de,2,0,"p",23),s.\u0275\u0275elementStart(37,"div",25),s.\u0275\u0275template(38,qe,12,3,"table",26),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(39,"h2",27),s.\u0275\u0275text(40,"Retorno"),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(41,"div"),s.\u0275\u0275elementStart(42,"p",28),s.\u0275\u0275elementStart(43,"u",29),s.\u0275\u0275listener("click",function(){s.\u0275\u0275restoreView(k);const Pe=s.\u0275\u0275nextContext();return Pe.showDocumentation(Pe.selectedFunction.returns.rawType)}),s.\u0275\u0275text(44),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(45,"h2",30),s.\u0275\u0275text(46,"Exemplo de Requisi\xe7\xe3o"),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(47,"mat-tab-group",31),s.\u0275\u0275elementStart(48,"mat-tab",32),s.\u0275\u0275element(49,"ngx-monaco-editor",33),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(50,"mat-tab",34),s.\u0275\u0275element(51,"ngx-monaco-editor",33),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(52,"mat-tab",35),s.\u0275\u0275template(53,Y,2,0,"ng-template",36),s.\u0275\u0275element(54,"ngx-monaco-editor",33),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(55,"mat-tab",35),s.\u0275\u0275template(56,he,2,0,"ng-template",36),s.\u0275\u0275element(57,"ngx-monaco-editor",33),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd()}if(2&dt){const k=s.\u0275\u0275nextContext();s.\u0275\u0275advance(8),s.\u0275\u0275textInterpolate(k.selectedFunction.name),s.\u0275\u0275advance(2),s.\u0275\u0275property("ngForOf",k.selectedFunction.args),s.\u0275\u0275advance(5),s.\u0275\u0275property("matTooltip",k.getTooltip(k.selectedFunction.returns.rawType)),s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(k.selectedFunction.returns.type),s.\u0275\u0275advance(10),s.\u0275\u0275property("ngIf",k.selectedFunction.labels.length>0),s.\u0275\u0275advance(4),s.\u0275\u0275property("ngSwitch",!!k.selectedFunction.description),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngSwitchCase",!0),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngSwitchCase",!1),s.\u0275\u0275advance(3),s.\u0275\u0275property("ngSwitch",k.selectedFunction.args.length),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngSwitchCase",0),s.\u0275\u0275advance(7),s.\u0275\u0275property("matTooltip",k.getTooltip(k.selectedFunction.returns.rawType)),s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(k.selectedFunction.returns.type),s.\u0275\u0275advance(5),s.\u0275\u0275property("options",s.\u0275\u0275pureFunction0(20,Ee))("ngModel",k.selectedFunction.examples.typeScript),s.\u0275\u0275advance(2),s.\u0275\u0275property("options",s.\u0275\u0275pureFunction0(21,Ie))("ngModel",k.selectedFunction.examples.kotlin),s.\u0275\u0275advance(3),s.\u0275\u0275property("options",s.\u0275\u0275pureFunction0(22,ge))("ngModel",k.selectedFunction.examples.dart),s.\u0275\u0275advance(3),s.\u0275\u0275property("options",s.\u0275\u0275pureFunction0(23,Xe))("ngModel",k.selectedFunction.examples.swift)}}const Tt=function(){return{standalone:!0}};class Rt{constructor(Ze,k,ne){this.sdkgen=Ze,this.dialog=k,this.responsive=ne,this.isBelowMd=!1,this.runFunction=new d.EventEmitter,this.searchText="",this.argumentsTableColumns=["name","type","description"],this.editorOptions={theme:"vs-dark",language:"javascript"}}ngOnInit(){this.state$=this.sdkgen.state$.subscribe(Ze=>{!Ze||(this.selectedFunction=void 0,this.fnTable=Ze.astRoot.operations.sort((k,ne)=>k.name.localeCompare(ne.name)).map(k=>{var ne,Pe,se;const Ce=Ze.astJson.annotations[`fn.${k.name}`],_e=this.sdkgen.buildJsonObject(k.args);return(null==Ce?void 0:Ce.find(ie=>"hidden"===ie.type))?null:{name:k.name,description:null===(ne=null==Ce?void 0:Ce.find(ie=>"description"===ie.type))||void 0===ne?void 0:ne.value,args:k.args.map(({name:ie,type:ve})=>{var Ye,it,mt;return{name:ie,description:null===(mt=[...null!==(Ye=Ze.astJson.annotations[`type.${ve}.${ie}`])&&void 0!==Ye?Ye:[],...null!==(it=Ze.astJson.annotations[`fn.${k.name}.${ie}`])&&void 0!==it?it:[]].find(It=>"description"===It.type))||void 0===mt?void 0:mt.value,type:ve.name,rawType:ve}}),argsStr:k.args.map(ie=>`${ie.name}: ${ie.type.name}`).join(", "),argsFields:k.args,returns:{type:k.returnType.name,rawType:k.returnType},labels:null!==(Pe=null==Ce?void 0:Ce.filter(ie=>["rest","throws"].includes(ie.type)).map(ie=>{var ve;return"rest"===ie.type?{name:"REST",type:`${ie.value.method} ${ie.value.path}`}:"throws"===ie.type?{name:"THROWS",type:ie.value,dataType:null===(ve=Ze.astRoot.errors.find(Ye=>Ye.name===ie.value))||void 0===ve?void 0:ve.dataType}:{name:"?",type:"?"}}))&&void 0!==Pe?Pe:[],throws:null===(se=null==Ce?void 0:Ce.find(ie=>"throws"===ie.type))||void 0===se?void 0:se.value,examples:{typeScript:this.sdkgen.getTypeScriptCode(k.name,_e),kotlin:this.sdkgen.getKotlinCode(k.name,k.args),dart:this.sdkgen.getDartCode(k.name,_e),swift:this.sdkgen.getSwiftCode(k.name,_e)}}}).filter(k=>Boolean(k)))})}ngOnDestroy(){var Ze,k;null===(Ze=this.state$)||void 0===Ze||Ze.unsubscribe(),null===(k=this.responsive$)||void 0===k||k.unsubscribe()}ngAfterViewInit(){this.responsive$=this.responsive.isBelowMd().subscribe(Ze=>{this.isBelowMd=Ze.matches})}addSimpleCallTab(){var Ze;this.runFunction.emit(null===(Ze=this.selectedFunction)||void 0===Ze?void 0:Ze.name)}getTooltip(Ze){return(0,_.getTypeDoc)(Ze).shortDescription}showDocumentation(Ze){this.dialog.open(u.TypeDetailsComponent,{position:{right:"0",top:"0",bottom:"0"},data:{type:Ze},height:"100vh",panelClass:["dialog-no-border-radius","dialog-responsive"]})}}m.TabHomeComponent=Rt,Rt.\u0275fac=function(Ze){return new(Ze||Rt)(s.\u0275\u0275directiveInject(b.SdkgenService),s.\u0275\u0275directiveInject(C.MatDialog),s.\u0275\u0275directiveInject(T.ResponsiveService))},Rt.\u0275cmp=s.\u0275\u0275defineComponent({type:Rt,selectors:[["app-tab-home"]],outputs:{runFunction:"runFunction"},decls:11,vars:10,consts:[["unit","pixel",3,"direction"],[3,"size"],["type","search","placeholder","Buscar\u2026",3,"ngModel","ngModelOptions","ngModelChange"],[3,"ngClass","click",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"ngClass","click"],[1,"fn-call"],["class","fn-description",4,"ngIf"],[1,"fn-description"],[1,"container"],[1,"mono","hide-overflow"],[1,"k-fn"],[1,"k-name"],[4,"ngFor","ngForOf"],[1,"k-sym"],[1,"k-type",3,"matTooltip","click"],["comma",""],["lineBreak",""],["mat-raised-button","","color","primary",3,"click"],["class","container","id","labels",4,"ngIf"],["id","description"],[3,"ngSwitch"],[4,"ngSwitchCase"],["class","no-content",4,"ngSwitchCase"],["id","parameters"],[1,"table-responsive","mat-elevation-z8"],["mat-table","",3,"dataSource",4,"ngSwitchDefault"],["id","returns"],[1,"mono"],[3,"matTooltip","click"],["id","sample-calls"],["animationDuration","0ms"],["label","TypeScript"],[3,"options","ngModel"],["label","Kotlin"],["disabled",""],["mat-tab-label",""],[1,"k-arg-name"],[4,"ngIf","ngIfThen","ngIfElse"],["id","labels",1,"container"],[3,"selectable"],["color","primary",3,"disableRipple",4,"ngFor","ngForOf"],["color","primary",3,"disableRipple"],[3,"matTooltip","click",4,"ngIf"],[1,"no-content"],["mat-table","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["class","mono","mat-cell","",4,"matCellDef"],["matColumnDef","type"],["matColumnDef","description"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"mono"],["mat-cell",""],["mat-header-row",""],["mat-row",""],["matTooltip","Em breve!"]],template:function(Ze,k){1&Ze&&(s.\u0275\u0275elementStart(0,"as-split",0),s.\u0275\u0275elementStart(1,"as-split-area",1),s.\u0275\u0275elementStart(2,"aside"),s.\u0275\u0275elementStart(3,"nav"),s.\u0275\u0275elementStart(4,"form"),s.\u0275\u0275elementStart(5,"input",2),s.\u0275\u0275listener("ngModelChange",function(Pe){return k.searchText=Pe}),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(6,"ul"),s.\u0275\u0275template(7,ue,4,5,"li",3),s.\u0275\u0275pipe(8,"appFilter"),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(9,"as-split-area"),s.\u0275\u0275template(10,pt,58,24,"article",4),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd()),2&Ze&&(s.\u0275\u0275property("direction",k.isBelowMd?"vertical":"horizontal"),s.\u0275\u0275advance(1),s.\u0275\u0275property("size",k.isBelowMd?130:350),s.\u0275\u0275advance(4),s.\u0275\u0275property("ngModel",k.searchText)("ngModelOptions",s.\u0275\u0275pureFunction0(9,Tt)),s.\u0275\u0275advance(2),s.\u0275\u0275property("ngForOf",s.\u0275\u0275pipeBind2(8,6,k.fnTable,k.searchText)),s.\u0275\u0275advance(3),s.\u0275\u0275property("ngIf",k.selectedFunction))},directives:[p.SplitComponent,p.SplitAreaDirective,y.\u0275NgNoValidate,y.NgControlStatusGroup,y.NgForm,y.DefaultValueAccessor,y.NgControlStatus,y.NgModel,P.NgForOf,P.NgIf,P.NgClass,O.MatTooltip,S.MatButton,N.MatIcon,P.NgSwitch,P.NgSwitchCase,P.NgSwitchDefault,B.MatTabGroup,B.MatTab,ce.MonacoEditorComponent,B.MatTabLabel,K.MatChipList,K.MatChip,re.MatTable,re.MatColumnDef,re.MatHeaderCellDef,re.MatCellDef,re.MatHeaderRowDef,re.MatRowDef,re.MatHeaderCell,re.MatCell,re.MatHeaderRow,re.MatRow],pipes:[Me.FilterPipe],styles:["[_nghost-%COMP%]{display:block;width:100%;height:100%;overflow:hidden!important}aside[_ngcontent-%COMP%]{display:block;background:#2b2b2b;height:100%;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin}nav[_ngcontent-%COMP%]{display:block;width:100%}nav[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{display:block;width:100%;padding:10px;background:#2b2b2b;border-bottom:1px solid #444444;position:sticky;top:0;left:0;right:0;z-index:2}nav[_ngcontent-%COMP%] form[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{display:block;background:#444444;border:0 none;color:#fff;width:100%;padding:5px}nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:0;padding:0;list-style:none}nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{width:100%;padding:15px 10px;border-bottom:1px solid #444444;cursor:pointer}nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]{background-color:#0003}nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{background-color:#0000004d}nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;word-break:break-all}nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] span.fn-call[_ngcontent-%COMP%]{font-family:Roboto Mono,monospace}nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] span.fn-description[_ngcontent-%COMP%]{color:#777;font-size:.9rem;margin-top:5px}u[_ngcontent-%COMP%]{-webkit-text-decoration-style:dotted;text-decoration-style:dotted;cursor:pointer;font-family:Roboto Mono,monospace}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{background-color:#2b2b2b;padding:25px 20px;width:100%;position:sticky;top:0;left:0;right:0;z-index:3}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{display:flex;margin:0 auto;font-weight:300;line-height:36px;white-space:pre}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] span.hide-overflow[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] s[_ngcontent-%COMP%]{flex-grow:1}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] .k-fn[_ngcontent-%COMP%]{color:#c586c0}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] .k-name[_ngcontent-%COMP%]{color:#dcdcaa}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] .k-arg-name[_ngcontent-%COMP%]{color:#9cdcfe}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] .k-sym[_ngcontent-%COMP%]{color:#d4d4d4}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] .k-type[_ngcontent-%COMP%]{color:#569cd6}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{min-width:130px;align-self:center}article[_ngcontent-%COMP%] section[_ngcontent-%COMP%]{display:block;padding:0 20px 15px}article[_ngcontent-%COMP%] section#labels[_ngcontent-%COMP%]{padding:20px 20px 0}article[_ngcontent-%COMP%] section#labels[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{overflow:hidden}article[_ngcontent-%COMP%] section#labels[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]:focus{outline:none}article[_ngcontent-%COMP%] section#labels[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{display:block;width:1.3px;background:#FFF;margin:0 7.5px;border-radius:5px;height:calc(100% + 14px)}article[_ngcontent-%COMP%] section[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-weight:300;margin-top:40px;text-transform:uppercase}article[_ngcontent-%COMP%] section[_ngcontent-%COMP%] .no-content[_ngcontent-%COMP%]{background-color:#383838;color:#fafafa;display:inline-block;padding:15px;border-radius:5px;margin-top:0}article[_ngcontent-%COMP%] section[_ngcontent-%COMP%] table[_ngcontent-%COMP%], article[_ngcontent-%COMP%] section[_ngcontent-%COMP%] .table-responsive[_ngcontent-%COMP%], article[_ngcontent-%COMP%] section[_ngcontent-%COMP%] mat-tab-group[_ngcontent-%COMP%]{width:100%;max-width:720px}article[_ngcontent-%COMP%] section[_ngcontent-%COMP%] .mat-tab-body-content{overflow-y:hidden}article[_ngcontent-%COMP%] section[_ngcontent-%COMP%] ngx-monaco-editor[_ngcontent-%COMP%]{display:block;height:100%;min-height:300px}"]})},2253:(Le,m,l)=>{"use strict";var i=l(8926).default;Object.defineProperty(m,"__esModule",{value:!0}),m.TabNavComponent=void 0;const d=l(655),_=l(3075),u=l(6676),s=(0,d.__importStar)(l(5e3)),b=(0,d.__importStar)(l(6395)),C=(0,d.__importStar)(l(2290)),T=(0,d.__importStar)(l(3075)),p=(0,d.__importStar)(l(9808)),y=(0,d.__importStar)(l(5245));function P(N,B){1&N&&(s.\u0275\u0275elementContainerStart(0),s.\u0275\u0275elementStart(1,"mat-icon",5),s.\u0275\u0275text(2,"loop"),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementContainerEnd())}function O(N,B){1&N&&(s.\u0275\u0275elementContainerStart(0),s.\u0275\u0275elementStart(1,"mat-icon"),s.\u0275\u0275text(2,"arrow_forward"),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementContainerEnd())}class S{constructor(B,ce){this.sdkgen=B,this.toastr=ce,this.loading=!1,this.url=new _.FormControl("")}ngOnInit(){fetch("/ast.json").then(B=>{B.ok&&this.url.setValue(`${window.location.protocol}://${window.location.hostname}`)}).catch(()=>{})}loadUrl(B){var ce=this;return i(function*(){B.preventDefault();try{ce.loading=!0,/^https?:\/\//.test(ce.url.value)||ce.url.setValue(`https://${ce.url.value}`);const K=new URL(ce.url.value);K.pathname+=(/\/$/u.test(K.pathname)?"":"/")+"ast.json";const re=K.toString();console.debug("astUrl",re);const Me=yield fetch(re).then(pe=>pe.ok?pe.json():pe);if(Me instanceof Response)throw Me instanceof Error?Me:new Error(Me.statusText);if(!Me.errors||!Me.functionTable||!Me.typeTable)throw new Error("Invalid AST");for(;"undefined"==typeof monaco;)yield new Promise(pe=>setTimeout(pe,250));console.debug("astJson",Me),ce.sdkgen.state$.next({astJson:Me,astRoot:(0,u.jsonToAst)(Me),url:ce.url.value})}catch(K){ce.toastr.error(K instanceof Error?K.message:JSON.stringify(K),"Erro ao carregar AST",{positionClass:"toast-bottom-right"})}finally{ce.loading=!1}})()}}m.TabNavComponent=S,S.\u0275fac=function(B){return new(B||S)(s.\u0275\u0275directiveInject(b.SdkgenService),s.\u0275\u0275directiveInject(C.ToastrService))},S.\u0275cmp=s.\u0275\u0275defineComponent({type:S,selectors:[["app-tab-nav"]],decls:6,vars:6,consts:[["src","assets/polvinho.png"],[3,"submit"],["placeholder","Digite uma URL aqui para conectar",3,"formControl","readonly"],["type","submit",3,"disabled","ngSwitch"],[4,"ngSwitchCase"],[1,"loader"]],template:function(B,ce){1&B&&(s.\u0275\u0275element(0,"img",0),s.\u0275\u0275elementStart(1,"form",1),s.\u0275\u0275listener("submit",function(re){return ce.loadUrl(re)}),s.\u0275\u0275element(2,"input",2),s.\u0275\u0275elementStart(3,"button",3),s.\u0275\u0275template(4,P,3,0,"ng-container",4),s.\u0275\u0275template(5,O,3,0,"ng-container",4),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd()),2&B&&(s.\u0275\u0275advance(2),s.\u0275\u0275property("formControl",ce.url)("readonly",ce.loading),s.\u0275\u0275advance(1),s.\u0275\u0275property("disabled",ce.loading)("ngSwitch",ce.loading),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngSwitchCase",!0),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngSwitchCase",!1))},directives:[T.\u0275NgNoValidate,T.NgControlStatusGroup,T.NgForm,T.DefaultValueAccessor,T.NgControlStatus,T.FormControlDirective,p.NgSwitch,p.NgSwitchCase,y.MatIcon],styles:["[_nghost-%COMP%]{display:flex;height:42px;background-color:#2b2b2b;box-shadow:0 0 3px #00000080}img[_ngcontent-%COMP%]{padding:5px}form[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-grow:1;box-shadow:0 0 1px #00000080;background:#383838;border:0 none;border-radius:5px;margin:5px 10vw 5px calc(10vw - 42px);overflow:hidden}form[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{flex-grow:1;padding:10px 5px;background:transparent;border:0 none;text-align:center;color:#ccc}form[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:none}form[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background:transparent;color:#bfbfbf;border:0 none}form[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:#0003}form[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%]{animation:spin 2s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]})},5281:(Le,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.TypeDetailsComponent=void 0;const i=l(655),d=l(8966),_=l(9435),u=(0,i.__importStar)(l(5e3)),s=(0,i.__importStar)(l(8966)),b=(0,i.__importStar)(l(9808)),C=(0,i.__importStar)(l(9417)),T=(0,i.__importStar)(l(7423)),p=(0,i.__importStar)(l(5245)),y=(0,i.__importStar)(l(2075)),P=(0,i.__importStar)(l(7238));function O(me,z){1&me&&(u.\u0275\u0275elementStart(0,"button",6),u.\u0275\u0275elementStart(1,"mat-icon"),u.\u0275\u0275text(2,"arrow_back"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd())}function S(me,z){if(1&me&&(u.\u0275\u0275elementStart(0,"mat-chip",7),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&me){const oe=z.$implicit;u.\u0275\u0275property("disableRipple",!0),u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate(oe)}}function N(me,z){1&me&&(u.\u0275\u0275elementStart(0,"button",8),u.\u0275\u0275elementStart(1,"mat-icon"),u.\u0275\u0275text(2,"close"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd())}function B(me,z){1&me&&(u.\u0275\u0275elementStart(0,"th",19),u.\u0275\u0275text(1,"Nome"),u.\u0275\u0275elementEnd())}function ce(me,z){if(1&me&&(u.\u0275\u0275elementStart(0,"td",20),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&me){const oe=z.$implicit;u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate(oe.name)}}function K(me,z){1&me&&(u.\u0275\u0275elementStart(0,"th",19),u.\u0275\u0275text(1,"Tipo"),u.\u0275\u0275elementEnd())}function re(me,z){if(1&me){const oe=u.\u0275\u0275getCurrentView();u.\u0275\u0275elementStart(0,"td",20),u.\u0275\u0275elementStart(1,"u",21),u.\u0275\u0275listener("click",function(){const Ue=u.\u0275\u0275restoreView(oe).$implicit;return u.\u0275\u0275nextContext(2).showDocumentation(Ue.type)}),u.\u0275\u0275text(2),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd()}if(2&me){const oe=z.$implicit,ke=u.\u0275\u0275nextContext(2);u.\u0275\u0275advance(1),u.\u0275\u0275property("matTooltip",ke.getTooltip(oe.type)),u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate(oe.type.name)}}function Me(me,z){1&me&&(u.\u0275\u0275elementStart(0,"th",19),u.\u0275\u0275text(1,"Descri\xe7\xe3o"),u.\u0275\u0275elementEnd())}function pe(me,z){if(1&me&&(u.\u0275\u0275elementStart(0,"td",22),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&me){const oe=z.$implicit;u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate(oe.description||"-")}}function be(me,z){1&me&&u.\u0275\u0275element(0,"tr",23)}function ue(me,z){1&me&&u.\u0275\u0275element(0,"tr",24)}const xe=function(){return[]};function He(me,z){if(1&me&&(u.\u0275\u0275elementStart(0,"section"),u.\u0275\u0275elementStart(1,"div",9),u.\u0275\u0275elementStart(2,"table",10),u.\u0275\u0275elementContainerStart(3,11),u.\u0275\u0275template(4,B,2,0,"th",12),u.\u0275\u0275template(5,ce,2,1,"td",13),u.\u0275\u0275elementContainerEnd(),u.\u0275\u0275elementContainerStart(6,14),u.\u0275\u0275template(7,K,2,0,"th",12),u.\u0275\u0275template(8,re,3,2,"td",13),u.\u0275\u0275elementContainerEnd(),u.\u0275\u0275elementContainerStart(9,15),u.\u0275\u0275template(10,Me,2,0,"th",12),u.\u0275\u0275template(11,pe,2,1,"td",16),u.\u0275\u0275elementContainerEnd(),u.\u0275\u0275template(12,be,1,0,"tr",17),u.\u0275\u0275template(13,ue,1,0,"tr",18),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd()),2&me){const oe=u.\u0275\u0275nextContext();let ke;u.\u0275\u0275advance(2),u.\u0275\u0275property("dataSource",null!==(ke=null==oe.typeDoc?null:oe.typeDoc.structFields)&&void 0!==ke?ke:u.\u0275\u0275pureFunction0(3,xe)),u.\u0275\u0275advance(10),u.\u0275\u0275property("matHeaderRowDef",oe.argumentsTableColumns),u.\u0275\u0275advance(1),u.\u0275\u0275property("matRowDefColumns",oe.argumentsTableColumns)}}function et(me,z){if(1&me&&(u.\u0275\u0275elementStart(0,"li"),u.\u0275\u0275elementStart(1,"code",1),u.\u0275\u0275text(2),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd()),2&me){const oe=z.$implicit;u.\u0275\u0275advance(2),u.\u0275\u0275textInterpolate(oe)}}function ct(me,z){if(1&me&&(u.\u0275\u0275elementStart(0,"section"),u.\u0275\u0275elementStart(1,"h3"),u.\u0275\u0275text(2),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(3,"ul"),u.\u0275\u0275template(4,et,3,1,"li",25),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd()),2&me){const oe=u.\u0275\u0275nextContext();u.\u0275\u0275advance(2),u.\u0275\u0275textInterpolate(null!=oe.typeDoc&&oe.typeDoc.isEnum?"Valores":"Exemplos"),u.\u0275\u0275advance(2),u.\u0275\u0275property("ngForOf",null==oe.typeDoc?null:oe.typeDoc.examples)}}class X{constructor(z,oe,ke){this.dialogRef=z,this.data=oe,this.dialog=ke,this.labels=[],this.argumentsTableColumns=["name","type","description"]}ngOnInit(){this.labels=(0,_.getTypeLabels)(this.data.type),this.typeDoc=(0,_.getTypeDoc)(this.data.type)}getTooltip(z){return(0,_.getTypeDoc)(z).shortDescription}showDocumentation(z){this.dialog.open(X,{position:{right:"0"},data:{type:z,subdialog:!0},height:"100vh",panelClass:["dialog-no-border-radius","dialog-responsive"]})}}m.TypeDetailsComponent=X,X.\u0275fac=function(z){return new(z||X)(u.\u0275\u0275directiveInject(s.MatDialogRef),u.\u0275\u0275directiveInject(d.MAT_DIALOG_DATA),u.\u0275\u0275directiveInject(s.MatDialog))},X.\u0275cmp=u.\u0275\u0275defineComponent({type:X,selectors:[["app-type-details"]],decls:11,vars:8,consts:[["class","back-button","mat-icon-button","","mat-dialog-close","",4,"ngIf"],[1,"mono"],[3,"selectable"],["color","primary",3,"disableRipple",4,"ngFor","ngForOf"],["class","close-button","mat-icon-button","","mat-dialog-close","",4,"ngIf"],[4,"ngIf"],["mat-icon-button","","mat-dialog-close","",1,"back-button"],["color","primary",3,"disableRipple"],["mat-icon-button","","mat-dialog-close","",1,"close-button"],[1,"table-responsive","mat-elevation-z8"],["mat-table","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["class","mono","mat-cell","",4,"matCellDef"],["matColumnDef","type"],["matColumnDef","description"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"mono"],[3,"matTooltip","click"],["mat-cell",""],["mat-header-row",""],["mat-row",""],[4,"ngFor","ngForOf"]],template:function(z,oe){1&z&&(u.\u0275\u0275elementStart(0,"h1"),u.\u0275\u0275template(1,O,3,0,"button",0),u.\u0275\u0275elementStart(2,"span",1),u.\u0275\u0275text(3),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(4,"mat-chip-list",2),u.\u0275\u0275template(5,S,2,2,"mat-chip",3),u.\u0275\u0275elementEnd(),u.\u0275\u0275template(6,N,3,0,"button",4),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(7,"p"),u.\u0275\u0275text(8),u.\u0275\u0275elementEnd(),u.\u0275\u0275template(9,He,14,4,"section",5),u.\u0275\u0275template(10,ct,5,2,"section",5)),2&z&&(u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",oe.data.subdialog),u.\u0275\u0275advance(2),u.\u0275\u0275textInterpolate(oe.data.type.name),u.\u0275\u0275advance(1),u.\u0275\u0275property("selectable",!1),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngForOf",oe.labels),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",!oe.data.subdialog),u.\u0275\u0275advance(2),u.\u0275\u0275textInterpolate(null==oe.typeDoc?null:oe.typeDoc.longDescription),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",(null==oe.typeDoc?null:oe.typeDoc.isStruct)&&(null==oe.typeDoc?null:oe.typeDoc.structFields)),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",null==oe.typeDoc||null==oe.typeDoc.examples?null:oe.typeDoc.examples.length))},directives:[b.NgIf,C.MatChipList,b.NgForOf,T.MatButton,s.MatDialogClose,p.MatIcon,C.MatChip,y.MatTable,y.MatColumnDef,y.MatHeaderCellDef,y.MatCellDef,y.MatHeaderRowDef,y.MatRowDef,y.MatHeaderCell,y.MatCell,P.MatTooltip,y.MatHeaderRow,y.MatRow],styles:["h1[_ngcontent-%COMP%]{font-weight:200;word-break:break-all;word-wrap:break-word}h1[_ngcontent-%COMP%] mat-chip-list[_ngcontent-%COMP%]{display:inline-block;margin-left:10px;-webkit-user-select:none;user-select:none}h1[_ngcontent-%COMP%] mat-chip-list[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{text-transform:uppercase}h1[_ngcontent-%COMP%] mat-chip-list[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]:focus{outline:none}h1[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{vertical-align:middle}h1[_ngcontent-%COMP%] button.back-button[_ngcontent-%COMP%]{margin-right:10px}h1[_ngcontent-%COMP%] button.close-button[_ngcontent-%COMP%]{float:right}p[_ngcontent-%COMP%]{line-height:1.5rem}section[_ngcontent-%COMP%]{margin-top:2rem}h3[_ngcontent-%COMP%]{font-weight:200;text-transform:uppercase}ul[_ngcontent-%COMP%]{padding-left:2rem}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{line-height:2rem;list-style:square}code[_ngcontent-%COMP%]{padding:.2rem .4rem;font-size:.875em;color:#fff;background-color:#212529;border-radius:.2rem;white-space:pre-wrap;word-break:break-all;word-wrap:break-word}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] u[_ngcontent-%COMP%]{-webkit-text-decoration-style:dotted;text-decoration-style:dotted;cursor:pointer}"]})},8227:(Le,m)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.unwrap=m.wrapper=void 0,m.wrapper='\n window.___originalXmlHttpRequestOpen = XMLHttpRequest.prototype.open;\n XMLHttpRequest.prototype.open = function() {\n const event = { type: "network", message: `XHR: ${Array.prototype.join.call(arguments, " ")}` };\n events.push(event);\n\n const send = this.send;\n this.send = function() {\n try {\n event.details = { req: JSON.parse(arguments[0]) };\n } catch (e) {\n event.details = { req: arguments[0] };\n }\n\n const onreadystatechange = this.onreadystatechange;\n this.onreadystatechange = function() {\n const result = onreadystatechange.apply(this, arguments);\n\n if (this.readyState === 4) {\n try {\n event.details = { ...event.details, res: JSON.parse(this.responseText) };\n } catch (e) {\n event.details = { ...event.details, res: this.responseText };\n }\n }\n\n return result;\n };\n\n return send.apply(this, arguments);\n };\n\n return ___originalXmlHttpRequestOpen.apply(this, arguments);\n };\n\n window.___originalConsoleLog = console.log;\n console.log = function() {\n const event = { type: "info", message: Array.prototype.map.call(arguments, x => typeof x === "object" ? JSON.stringify(x) : x.toString()).join(" ") };\n events.push(event);\n return ___originalConsoleLog.apply(this, arguments);\n }\n\n window.___originalConsoleError = console.error;\n console.error = function() {\n //if (typeof arguments[0] === "string") {\n const event = { type: "error", message: Array.prototype.map.call(arguments, x => typeof x === "object" ? JSON.stringify(x) : x.toString()).join(" ") };\n events.push(event);\n //}\n return ___originalConsoleError.apply(this, arguments);\n }\n',m.unwrap="\n XMLHttpRequest.prototype.open = window.___originalXmlHttpRequestOpen;\n console.log = window.___originalConsoleLog;\n console.error = window.___originalConsoleError;\n"},2340:(Le,m)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.environment=void 0,m.environment={production:!0}},4431:(Le,m,l)=>{"use strict";const _=(0,l(655).__importStar)(l(2313)),u=l(5e3),s=l(6747);l(2340).environment.production&&(0,u.enableProdMode)(),_.platformBrowser().bootstrapModule(s.AppModule).catch(C=>console.error(C))},4327:function(Le,m){var d;void 0!==(d=function(){"use strict";function u(y,P,O){var S=new XMLHttpRequest;S.open("GET",y),S.responseType="blob",S.onload=function(){p(S.response,P,O)},S.onerror=function(){console.error("could not download file")},S.send()}function s(y){var P=new XMLHttpRequest;P.open("HEAD",y,!1);try{P.send()}catch(O){}return 200<=P.status&&299>=P.status}function b(y){try{y.dispatchEvent(new MouseEvent("click"))}catch(O){var P=document.createEvent("MouseEvents");P.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),y.dispatchEvent(P)}}var C="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,T=C.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),p=C.saveAs||("object"!=typeof window||window!==C?function(){}:"download"in HTMLAnchorElement.prototype&&!T?function(y,P,O){var S=C.URL||C.webkitURL,N=document.createElement("a");N.download=P=P||y.name||"download",N.rel="noopener","string"==typeof y?(N.href=y,N.origin===location.origin?b(N):s(N.href)?u(y,P,O):b(N,N.target="_blank")):(N.href=S.createObjectURL(y),setTimeout(function(){S.revokeObjectURL(N.href)},4e4),setTimeout(function(){b(N)},0))}:"msSaveOrOpenBlob"in navigator?function(y,P,O){if(P=P||y.name||"download","string"!=typeof y)navigator.msSaveOrOpenBlob(function _(y,P){return void 0===P?P={autoBom:!1}:"object"!=typeof P&&(console.warn("Deprecated: Expected third argument to be a object"),P={autoBom:!P}),P.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(y.type)?new Blob(["\ufeff",y],{type:y.type}):y}(y,O),P);else if(s(y))u(y,P,O);else{var S=document.createElement("a");S.href=y,S.target="_blank",setTimeout(function(){b(S)})}}:function(y,P,O,S){if((S=S||open("","_blank"))&&(S.document.title=S.document.body.innerText="downloading..."),"string"==typeof y)return u(y,P,O);var N="application/octet-stream"===y.type,B=/constructor/i.test(C.HTMLElement)||C.safari,ce=/CriOS\/[\d]+/.test(navigator.userAgent);if((ce||N&&B||T)&&"undefined"!=typeof FileReader){var K=new FileReader;K.onloadend=function(){var pe=K.result;pe=ce?pe:pe.replace(/^data:[^;]*;/,"data:attachment/file;"),S?S.location.href=pe:location=pe,S=null},K.readAsDataURL(y)}else{var re=C.URL||C.webkitURL,Me=re.createObjectURL(y);S?S.location=Me:location.href=Me,S=null,setTimeout(function(){re.revokeObjectURL(Me)},4e4)}});C.saveAs=p.saveAs=p,Le.exports=p}.apply(m,[]))&&(Le.exports=d)},5109:(Le,m,l)=>{"use strict";l.r(m),l.d(m,{NgxJsonViewerComponent:()=>p,NgxJsonViewerModule:()=>y});var i=l(9808),d=l(5e3);function _(P,O){1&P&&d.\u0275\u0275element(0,"div",9)}function u(P,O){if(1&P&&(d.\u0275\u0275elementStart(0,"span",10),d.\u0275\u0275text(1),d.\u0275\u0275elementEnd()),2&P){const S=d.\u0275\u0275nextContext().$implicit;d.\u0275\u0275advance(1),d.\u0275\u0275textInterpolate(S.description)}}function s(P,O){if(1&P&&(d.\u0275\u0275elementStart(0,"section",11),d.\u0275\u0275element(1,"ngx-json-viewer",12),d.\u0275\u0275elementEnd()),2&P){const S=d.\u0275\u0275nextContext().$implicit,N=d.\u0275\u0275nextContext();d.\u0275\u0275advance(1),d.\u0275\u0275property("json",S.value)("expanded",N.expanded)("depth",N.depth)("_currentDepth",N._currentDepth)}}const b=function(P){return["segment",P]},C=function(P,O){return{"segment-main":!0,expandable:P,expanded:O}};function T(P,O){if(1&P){const S=d.\u0275\u0275getCurrentView();d.\u0275\u0275elementStart(0,"section",2),d.\u0275\u0275elementStart(1,"section",3),d.\u0275\u0275listener("click",function(){const ce=d.\u0275\u0275restoreView(S).$implicit;return d.\u0275\u0275nextContext().toggle(ce)}),d.\u0275\u0275template(2,_,1,0,"div",4),d.\u0275\u0275elementStart(3,"span",5),d.\u0275\u0275text(4),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(5,"span",6),d.\u0275\u0275text(6,": "),d.\u0275\u0275elementEnd(),d.\u0275\u0275template(7,u,2,1,"span",7),d.\u0275\u0275elementEnd(),d.\u0275\u0275template(8,s,2,4,"section",8),d.\u0275\u0275elementEnd()}if(2&P){const S=O.$implicit,N=d.\u0275\u0275nextContext();d.\u0275\u0275property("ngClass",d.\u0275\u0275pureFunction1(6,b,"segment-type-"+S.type)),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngClass",d.\u0275\u0275pureFunction2(8,C,N.isExpandable(S),S.expanded)),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngIf",N.isExpandable(S)),d.\u0275\u0275advance(2),d.\u0275\u0275textInterpolate(S.key),d.\u0275\u0275advance(3),d.\u0275\u0275property("ngIf",!S.expanded||!N.isExpandable(S)),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngIf",S.expanded&&N.isExpandable(S))}}let p=(()=>{class P{constructor(){this.expanded=!0,this.depth=-1,this._currentDepth=-1,this.segments=[]}ngOnChanges(){this.segments=[],this.json=this.decycle(this.json),this._currentDepth++,"object"==typeof this.json?Object.keys(this.json).forEach(S=>{this.segments.push(this.parseKeyValue(S,this.json[S]))}):this.segments.push(this.parseKeyValue(`(${typeof this.json})`,this.json))}isExpandable(S){return"object"===S.type||"array"===S.type}toggle(S){this.isExpandable(S)&&(S.expanded=!S.expanded)}parseKeyValue(S,N){const B={key:S,value:N,type:void 0,description:""+N,expanded:this.isExpanded()};switch(typeof B.value){case"number":B.type="number";break;case"boolean":B.type="boolean";break;case"function":B.type="function";break;case"string":B.type="string",B.description='"'+B.value+'"';break;case"undefined":B.type="undefined",B.description="undefined";break;case"object":null===B.value?(B.type="null",B.description="null"):Array.isArray(B.value)?(B.type="array",B.description="Array["+B.value.length+"] "+JSON.stringify(B.value)):B.value instanceof Date?B.type="date":(B.type="object",B.description="Object "+JSON.stringify(B.value))}return B}isExpanded(){return this.expanded&&!(this.depth>-1&&this._currentDepth>=this.depth)}decycle(S){const N=new WeakMap;return function B(ce,K){let re,Me;return"object"!=typeof ce||null===ce||ce instanceof Boolean||ce instanceof Date||ce instanceof Number||ce instanceof RegExp||ce instanceof String?ce:(re=N.get(ce),void 0!==re?{$ref:re}:(N.set(ce,K),Array.isArray(ce)?(Me=[],ce.forEach(function(pe,be){Me[be]=B(pe,K+"["+be+"]")})):(Me={},Object.keys(ce).forEach(function(pe){Me[pe]=B(ce[pe],K+"["+JSON.stringify(pe)+"]")})),Me))}(S,"$")}}return P.\u0275fac=function(S){return new(S||P)},P.\u0275cmp=d.\u0275\u0275defineComponent({type:P,selectors:[["ngx-json-viewer"]],inputs:{expanded:"expanded",depth:"depth",_currentDepth:"_currentDepth",json:"json"},features:[d.\u0275\u0275NgOnChangesFeature],decls:2,vars:1,consts:[[1,"ngx-json-viewer"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],[3,"ngClass","click"],["class","toggler",4,"ngIf"],[1,"segment-key"],[1,"segment-separator"],["class","segment-value",4,"ngIf"],["class","children",4,"ngIf"],[1,"toggler"],[1,"segment-value"],[1,"children"],[3,"json","expanded","depth","_currentDepth"]],template:function(S,N){1&S&&(d.\u0275\u0275elementStart(0,"section",0),d.\u0275\u0275template(1,T,9,11,"section",1),d.\u0275\u0275elementEnd()),2&S&&(d.\u0275\u0275advance(1),d.\u0275\u0275property("ngForOf",N.segments))},directives:[i.NgForOf,i.NgClass,i.NgIf,P],styles:['@charset "UTF-8";.ngx-json-viewer[_ngcontent-%COMP%]{font-family:monospace;font-size:1em;height:100%;overflow:hidden;position:relative;width:100%}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%]{margin:1px 1px 1px 12px;padding:2px}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%]{word-wrap:break-word}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .toggler[_ngcontent-%COMP%]{color:#787878;font-size:.8em;line-height:1.2em;margin-left:-14px;margin-top:3px;position:absolute;vertical-align:middle}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .toggler[_ngcontent-%COMP%]:after{content:"\u25ba";display:inline-block;transition:transform .1s ease-in}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .segment-key[_ngcontent-%COMP%]{color:#4e187c}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .segment-separator[_ngcontent-%COMP%]{color:#999}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .segment-value[_ngcontent-%COMP%]{color:#000}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .children[_ngcontent-%COMP%]{margin-left:12px}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-string[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:#ff6b6b}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-number[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:#009688}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-boolean[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:#b938a4}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-date[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:#05668d}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-array[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%], .ngx-json-viewer[_ngcontent-%COMP%] .segment-type-function[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%], .ngx-json-viewer[_ngcontent-%COMP%] .segment-type-object[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:#999}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-null[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%], .ngx-json-viewer[_ngcontent-%COMP%] .segment-type-undefined[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:#fff}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-null[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{background-color:red}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-undefined[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-key[_ngcontent-%COMP%]{color:#999}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-undefined[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{background-color:#999}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-array[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%], .ngx-json-viewer[_ngcontent-%COMP%] .segment-type-object[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%]{white-space:nowrap}.ngx-json-viewer[_ngcontent-%COMP%] .expanded[_ngcontent-%COMP%] > .toggler[_ngcontent-%COMP%]:after{transform:rotate(90deg)}.ngx-json-viewer[_ngcontent-%COMP%] .expandable[_ngcontent-%COMP%], .ngx-json-viewer[_ngcontent-%COMP%] .expandable[_ngcontent-%COMP%] > .toggler[_ngcontent-%COMP%]{cursor:pointer}']}),P})(),y=(()=>{class P{}return P.\u0275fac=function(S){return new(S||P)},P.\u0275mod=d.\u0275\u0275defineNgModule({type:P}),P.\u0275inj=d.\u0275\u0275defineInjector({imports:[[i.CommonModule]]}),P})()},9802:(Le,m,l)=>{"use strict";l.r(m),l.d(m,{ArgumentOutOfRangeError:()=>ge,AsyncSubject:()=>K,BehaviorSubject:()=>N.X,ConnectableObservable:()=>b,EMPTY:()=>ke.E,EmptyError:()=>he,NEVER:()=>w,NotFoundError:()=>Xe,Notification:()=>Te,NotificationKind:()=>Je,ObjectUnsubscribedError:()=>pt.N,Observable:()=>i.y,ReplaySubject:()=>ce,Scheduler:()=>z.b,SequenceError:()=>Tt,Subject:()=>S.x,Subscriber:()=>oe.Lv,Subscription:()=>d.w0,TimeoutError:()=>k,UnsubscriptionError:()=>se.B,VirtualAction:()=>me,VirtualTimeScheduler:()=>X,animationFrame:()=>ct.r,animationFrameScheduler:()=>ct.Z,animationFrames:()=>y,asap:()=>re.e,asapScheduler:()=>re.E,async:()=>Me.P,asyncScheduler:()=>Me.z,audit:()=>di.U,auditTime:()=>Jn.e,bindCallback:()=>it,bindNodeCallback:()=>mt,buffer:()=>Nn,bufferCount:()=>Bn,bufferTime:()=>H,bufferToggle:()=>we,bufferWhen:()=>U,catchError:()=>Ae.K,combineAll:()=>On,combineLatest:()=>_t.a,combineLatestAll:()=>Ht,combineLatestWith:()=>Hn,concat:()=>It.z,concatAll:()=>Un.u,concatMap:()=>Sn.b,concatMapTo:()=>kn,concatWith:()=>xn,config:()=>$n.v,connect:()=>li,connectable:()=>Kt,count:()=>Kn,debounce:()=>Gn,debounceTime:()=>Ci.b,defaultIfEmpty:()=>Mi,defer:()=>zt.P,delay:()=>hi.g,delayWhen:()=>Wn.j,dematerialize:()=>Sr,distinct:()=>nr,distinctUntilChanged:()=>mr.x,distinctUntilKeyChanged:()=>Qn,elementAt:()=>Lr,empty:()=>ke.c,endWith:()=>Wi,every:()=>Ir,exhaust:()=>zi,exhaustAll:()=>wi,exhaustMap:()=>gr,expand:()=>Ar,filter:()=>Ve.h,finalize:()=>Pr.x,find:()=>Ki,findIndex:()=>Gi,first:()=>Or,firstValueFrom:()=>Ie,flatMap:()=>Oi,forkJoin:()=>Mn.D,from:()=>an.D,fromEvent:()=>Qt.R,fromEventPattern:()=>Ot,generate:()=>at,groupBy:()=>Ii,identity:()=>Re.y,ignoreElements:()=>fi.l,iif:()=>Ke,interval:()=>Se,isEmpty:()=>Ai,isObservable:()=>qe.b,last:()=>Qi,lastValueFrom:()=>Ee,map:()=>ci.U,mapTo:()=>mi.h,materialize:()=>ir,max:()=>rr,merge:()=>De.T,mergeAll:()=>Pi.J,mergeMap:()=>tt.z,mergeMapTo:()=>xi,mergeScan:()=>Zi,mergeWith:()=>Ri,min:()=>or,multicast:()=>Fi,never:()=>I,noop:()=>St.Z,observable:()=>C.L,observeOn:()=>ve.Q,of:()=>de.of,onErrorResumeNext:()=>Et,pairs:()=>Ut,pairwise:()=>Yi,partition:()=>$e,pipe:()=>vt.z,pluck:()=>ki,publish:()=>xr,publishBehavior:()=>Rn,publishLast:()=>sr,publishReplay:()=>ar,queue:()=>et,queueScheduler:()=>He,race:()=>le,raceWith:()=>Ln,range:()=>ft,reduce:()=>At,refCount:()=>s,repeat:()=>x,repeatWhen:()=>Q,retry:()=>R,retryWhen:()=>te,sample:()=>ze,sampleTime:()=>ht,scan:()=>Dt,scheduled:()=>En.x,sequenceEqual:()=>Nt,share:()=>Tn.B,shareReplay:()=>In,single:()=>un,skip:()=>F.T,skipLast:()=>A,skipUntil:()=>v,skipWhile:()=>J,startWith:()=>ut.O,subscribeOn:()=>_e.R,switchAll:()=>An,switchMap:()=>$t.w,switchMapTo:()=>qn,switchScan:()=>gi,take:()=>Ui.q,takeLast:()=>pi,takeUntil:()=>Ni.R,takeWhile:()=>wt,tap:()=>j.b,throttle:()=>f,throttleTime:()=>D,throwError:()=>Ue._,throwIfEmpty:()=>Zn,timeInterval:()=>V,timeout:()=>ne,timeoutWith:()=>Fe,timer:()=>Qe.H,timestamp:()=>je,toArray:()=>qt,using:()=>Vt,window:()=>st,windowCount:()=>gt,windowTime:()=>Ft,windowToggle:()=>Gt,windowWhen:()=>Xt,withLatestFrom:()=>dn,zip:()=>fn,zipAll:()=>en,zipWith:()=>hn});var i=l(9751),d=l(6921),_=l(4482),u=l(5403);function s(){return(0,_.e)((q,$)=>{let Z=null;q._refCount++;const ee=new u.Q($,void 0,void 0,void 0,()=>{if(!q||q._refCount<=0||0<--q._refCount)return void(Z=null);const Oe=q._connection,Ne=Z;Z=null,Oe&&(!Ne||Oe===Ne)&&Oe.unsubscribe(),$.unsubscribe()});q.subscribe(ee),ee.closed||(Z=q.connect())})}class b extends i.y{constructor($,Z){super(),this.source=$,this.subjectFactory=Z,this._subject=null,this._refCount=0,this._connection=null,(0,_.A)($)&&(this.lift=$.lift)}_subscribe($){return this.getSubject().subscribe($)}getSubject(){const $=this._subject;return(!$||$.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:$}=this;this._subject=this._connection=null,null==$||$.unsubscribe()}connect(){let $=this._connection;if(!$){$=this._connection=new d.w0;const Z=this.getSubject();$.add(this.source.subscribe(new u.Q(Z,void 0,()=>{this._teardown(),Z.complete()},ee=>{this._teardown(),Z.error(ee)},()=>this._teardown()))),$.closed&&(this._connection=null,$=d.w0.EMPTY)}return $}refCount(){return s()(this)}}var C=l(8822);const T={now:()=>(T.delegate||performance).now(),delegate:void 0};var p=l(3399);function y(q){return q?P(q):O}function P(q){const{schedule:$}=p.l;return new i.y(Z=>{const ee=new d.w0,Oe=q||T,Ne=Oe.now(),nt=Ct=>{const bt=Oe.now();Z.next({timestamp:q?bt:Ct,elapsed:bt-Ne}),Z.closed||ee.add($(nt))};return ee.add($(nt)),ee})}const O=P();var S=l(6758),N=l(1135),B=l(6063);class ce extends S.x{constructor($=1/0,Z=1/0,ee=B.l){super(),this._bufferSize=$,this._windowTime=Z,this._timestampProvider=ee,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=Z===1/0,this._bufferSize=Math.max(1,$),this._windowTime=Math.max(1,Z)}next($){const{isStopped:Z,_buffer:ee,_infiniteTimeWindow:Oe,_timestampProvider:Ne,_windowTime:nt}=this;Z||(ee.push($),!Oe&&ee.push(Ne.now()+nt)),this._trimBuffer(),super.next($)}_subscribe($){this._throwIfClosed(),this._trimBuffer();const Z=this._innerSubscribe($),{_infiniteTimeWindow:ee,_buffer:Oe}=this,Ne=Oe.slice();for(let nt=0;nt<Ne.length&&!$.closed;nt+=ee?1:2)$.next(Ne[nt]);return this._checkFinalizedStatuses($),Z}_trimBuffer(){const{_bufferSize:$,_timestampProvider:Z,_buffer:ee,_infiniteTimeWindow:Oe}=this,Ne=(Oe?1:2)*$;if($<1/0&&Ne<ee.length&&ee.splice(0,ee.length-Ne),!Oe){const nt=Z.now();let Ct=0;for(let bt=1;bt<ee.length&&ee[bt]<=nt;bt+=2)Ct=bt;Ct&&ee.splice(0,Ct+1)}}}class K extends S.x{constructor(){super(...arguments),this._value=null,this._hasValue=!1,this._isComplete=!1}_checkFinalizedStatuses($){const{hasError:Z,_hasValue:ee,_value:Oe,thrownError:Ne,isStopped:nt,_isComplete:Ct}=this;Z?$.error(Ne):(nt||Ct)&&(ee&&$.next(Oe),$.complete())}next($){this.isStopped||(this._value=$,this._hasValue=!0)}complete(){const{_hasValue:$,_value:Z,_isComplete:ee}=this;ee||(this._isComplete=!0,$&&super.next(Z),super.complete())}}var re=l(3101),Me=l(4986),pe=l(4408),ue=l(8950);const He=new class xe extends ue.v{}(class be extends pe.o{constructor($,Z){super($,Z),this.scheduler=$,this.work=Z}schedule($,Z=0){return Z>0?super.schedule($,Z):(this.delay=Z,this.state=$,this.scheduler.flush(this),this)}execute($,Z){return Z>0||this.closed?super.execute($,Z):this._execute($,Z)}requestAsyncId($,Z,ee=0){return null!=ee&&ee>0||null==ee&&this.delay>0?super.requestAsyncId($,Z,ee):$.flush(this)}}),et=He;var ct=l(29);let X=(()=>{class q extends ue.v{constructor(Z=me,ee=1/0){super(Z,()=>this.frame),this.maxFrames=ee,this.frame=0,this.index=-1}flush(){const{actions:Z,maxFrames:ee}=this;let Oe,Ne;for(;(Ne=Z[0])&&Ne.delay<=ee&&(Z.shift(),this.frame=Ne.delay,!(Oe=Ne.execute(Ne.state,Ne.delay))););if(Oe){for(;Ne=Z.shift();)Ne.unsubscribe();throw Oe}}}return q.frameTimeFactor=10,q})();class me extends pe.o{constructor($,Z,ee=($.index+=1)){super($,Z),this.scheduler=$,this.work=Z,this.index=ee,this.active=!0,this.index=$.index=ee}schedule($,Z=0){if(Number.isFinite(Z)){if(!this.id)return super.schedule($,Z);this.active=!1;const ee=new me(this.scheduler,this.work);return this.add(ee),ee.schedule($,Z)}return d.w0.EMPTY}requestAsyncId($,Z,ee=0){this.delay=$.frame+ee;const{actions:Oe}=$;return Oe.push(this),Oe.sort(me.sortActions),!0}recycleAsyncId($,Z,ee=0){}_execute($,Z){if(!0===this.active)return super._execute($,Z)}static sortActions($,Z){return $.delay===Z.delay?$.index===Z.index?0:$.index>Z.index?1:-1:$.delay>Z.delay?1:-1}}var z=l(6646),oe=l(930),ke=l(515),de=l(9646),Ue=l(2843),fe=l(576),Je=(()=>{return(q=Je||(Je={})).NEXT="N",q.ERROR="E",q.COMPLETE="C",Je;var q})();class Te{constructor($,Z,ee){this.kind=$,this.value=Z,this.error=ee,this.hasValue="N"===$}observe($){return Ge(this,$)}do($,Z,ee){const{kind:Oe,value:Ne,error:nt}=this;return"N"===Oe?null==$?void 0:$(Ne):"E"===Oe?null==Z?void 0:Z(nt):null==ee?void 0:ee()}accept($,Z,ee){var Oe;return(0,fe.m)(null===(Oe=$)||void 0===Oe?void 0:Oe.next)?this.observe($):this.do($,Z,ee)}toObservable(){const{kind:$,value:Z,error:ee}=this,Oe="N"===$?(0,de.of)(Z):"E"===$?(0,Ue._)(()=>ee):"C"===$?ke.E:0;if(!Oe)throw new TypeError(`Unexpected notification kind ${$}`);return Oe}static createNext($){return new Te("N",$)}static createError($){return new Te("E",void 0,$)}static createComplete(){return Te.completeNotification}}function Ge(q,$){var Z,ee,Oe;const{kind:Ne,value:nt,error:Ct}=q;if("string"!=typeof Ne)throw new TypeError('Invalid notification, missing "kind"');"N"===Ne?null===(Z=$.next)||void 0===Z||Z.call($,nt):"E"===Ne?null===(ee=$.error)||void 0===ee||ee.call($,Ct):null===(Oe=$.complete)||void 0===Oe||Oe.call($)}Te.completeNotification=new Te("C");var vt=l(9635),St=l(5032),Re=l(4671),qe=l(5191),Y=l(3888);const he=(0,Y.d)(q=>function(){q(this),this.name="EmptyError",this.message="no elements in sequence"});function Ee(q,$){const Z="object"==typeof $;return new Promise((ee,Oe)=>{let nt,Ne=!1;q.subscribe({next:Ct=>{nt=Ct,Ne=!0},error:Oe,complete:()=>{Ne?ee(nt):Z?ee($.defaultValue):Oe(new he)}})})}function Ie(q,$){const Z="object"==typeof $;return new Promise((ee,Oe)=>{const Ne=new oe.Hp({next:nt=>{ee(nt),Ne.unsubscribe()},error:Oe,complete:()=>{Z?ee($.defaultValue):Oe(new he)}});q.subscribe(Ne)})}const ge=(0,Y.d)(q=>function(){q(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}),Xe=(0,Y.d)(q=>function(Z){q(this),this.name="NotFoundError",this.message=Z});var pt=l(7448);const Tt=(0,Y.d)(q=>function(Z){q(this),this.name="SequenceError",this.message=Z});var Rt=l(1165),dt=l(8421),Ze=l(9672);const k=(0,Y.d)(q=>function(Z=null){q(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=Z});function ne(q,$){const{first:Z,each:ee,with:Oe=Pe,scheduler:Ne=(null!=$?$:Me.z),meta:nt=null}=(0,Rt.q)(q)?{first:q}:"number"==typeof q?{each:q}:q;if(null==Z&&null==ee)throw new TypeError("No timeout provided.");return(0,_.e)((Ct,bt)=>{let Wt,Yt,yn=null,ln=0;const wn=_n=>{Yt=(0,Ze.f)(bt,Ne,()=>{try{Wt.unsubscribe(),(0,dt.Xf)(Oe({meta:nt,lastValue:yn,seen:ln})).subscribe(bt)}catch(Pt){bt.error(Pt)}},_n)};Wt=Ct.subscribe(new u.Q(bt,_n=>{null==Yt||Yt.unsubscribe(),ln++,bt.next(yn=_n),ee>0&&wn(ee)},void 0,void 0,()=>{(null==Yt?void 0:Yt.closed)||null==Yt||Yt.unsubscribe(),yn=null})),wn(null!=Z?"number"==typeof Z?Z:+Z-Ne.now():ee)})}function Pe(q){throw new k(q)}var se=l(7896),Ce=l(3532),_e=l(9468),ie=l(3268),ve=l(5363);function Ye(q,$,Z,ee){if(Z){if(!(0,Ce.K)(Z))return function(...Oe){return Ye(q,$,ee).apply(this,Oe).pipe((0,ie.Z)(Z))};ee=Z}return ee?function(...Oe){return Ye(q,$).apply(this,Oe).pipe((0,_e.R)(ee),(0,ve.Q)(ee))}:function(...Oe){const Ne=new K;let nt=!0;return new i.y(Ct=>{const bt=Ne.subscribe(Ct);if(nt){nt=!1;let Wt=!1,Yt=!1;$.apply(this,[...Oe,(...yn)=>{if(q){const ln=yn.shift();if(null!=ln)return void Ne.error(ln)}Ne.next(1<yn.length?yn:yn[0]),Yt=!0,Wt&&Ne.complete()}]),Yt&&Ne.complete(),Wt=!0}return bt})}}function it(q,$,Z){return Ye(!1,q,$,Z)}function mt(q,$,Z){return Ye(!0,q,$,Z)}var _t=l(9841),It=l(1350),zt=l(9770);const on={connector:()=>new S.x,resetOnDisconnect:!0};function Kt(q,$=on){let Z=null;const{connector:ee,resetOnDisconnect:Oe=!0}=$;let Ne=ee();const nt=new i.y(Ct=>Ne.subscribe(Ct));return nt.connect=()=>((!Z||Z.closed)&&(Z=(0,zt.P)(()=>q).subscribe(Ne),Oe&&Z.add(()=>Ne=ee())),Z),nt}var Mn=l(4128),an=l(188),Qt=l(4968);function Ot(q,$,Z){return Z?Ot(q,$).pipe((0,ie.Z)(Z)):new i.y(ee=>{const Oe=(...nt)=>ee.next(1===nt.length?nt[0]:nt),Ne=q(Oe);return(0,fe.m)($)?()=>$(Oe,Ne):void 0})}var bn=l(6340);function at(q,$,Z,ee,Oe){let Ne,nt;function*Ct(){for(let bt=nt;!$||$(bt);bt=Z(bt))yield Ne(bt)}return 1===arguments.length?({initialState:nt,condition:$,iterate:Z,resultSelector:Ne=Re.y,scheduler:Oe}=q):(nt=q,!ee||(0,Ce.K)(ee)?(Ne=Re.y,Oe=ee):Ne=ee),(0,zt.P)(Oe?()=>(0,bn.Q)(Ct(),Oe):Ct)}function Ke(q,$,Z){return(0,zt.P)(()=>q()?$:Z)}var Qe=l(2805);function Se(q=0,$=Me.z){return q<0&&(q=0),(0,Qe.H)(q,q,$)}var De=l(6451);const w=new i.y(St.Z);function I(){return w}const{isArray:M}=Array;function G(q){return 1===q.length&&M(q[0])?q[0]:q}function Et(...q){return function ot(...q){const $=G(q);return(0,_.e)((Z,ee)=>{const Oe=[Z,...$],Ne=()=>{if(!ee.closed)if(Oe.length>0){let nt;try{nt=(0,dt.Xf)(Oe.shift())}catch(bt){return void Ne()}const Ct=new u.Q(ee,void 0,St.Z,St.Z);ee.add(nt.subscribe(Ct)),Ct.add(Ne)}else ee.complete()};Ne()})}(G(q))(ke.E)}function Ut(q,$){return(0,an.D)(Object.entries(q),$)}function gn(q,$){return(Z,ee)=>!q.call($,Z,ee)}var Ve=l(9300);function $e(q,$,Z){return[(0,Ve.h)($,Z)((0,dt.Xf)(q)),(0,Ve.h)(gn($,Z))((0,dt.Xf)(q))]}function le(...q){return 1===(q=G(q)).length?(0,dt.Xf)(q[0]):new i.y(Be(q))}function Be(q){return $=>{let Z=[];for(let ee=0;Z&&!$.closed&&ee<q.length;ee++)Z.push((0,dt.Xf)(q[ee]).subscribe(new u.Q($,Oe=>{if(Z){for(let Ne=0;Ne<Z.length;Ne++)Ne!==ee&&Z[Ne].unsubscribe();Z=null}$.next(Oe)})))}}function ft(q,$,Z){if(null==$&&($=q,q=0),$<=0)return ke.E;const ee=$+q;return new i.y(Z?Oe=>{let Ne=q;return Z.schedule(function(){Ne<ee?(Oe.next(Ne++),this.schedule()):Oe.complete()})}:Oe=>{let Ne=q;for(;Ne<ee&&!Oe.closed;)Oe.next(Ne++);Oe.complete()})}function Vt(q,$){return new i.y(Z=>{const ee=q(),Oe=$(ee);return(Oe?(0,dt.Xf)(Oe):ke.E).subscribe(Z),()=>{ee&&ee.unsubscribe()}})}var Bt=l(3269);function fn(...q){const $=(0,Bt.jO)(q),Z=G(q);return Z.length?new i.y(ee=>{let Oe=Z.map(()=>[]),Ne=Z.map(()=>!1);ee.add(()=>{Oe=Ne=null});for(let nt=0;!ee.closed&&nt<Z.length;nt++)(0,dt.Xf)(Z[nt]).subscribe(new u.Q(ee,Ct=>{if(Oe[nt].push(Ct),Oe.every(bt=>bt.length)){const bt=Oe.map(Wt=>Wt.shift());ee.next($?$(...bt):bt),Oe.some((Wt,Yt)=>!Wt.length&&Ne[Yt])&&ee.complete()}},()=>{Ne[nt]=!0,!Oe[nt].length&&ee.complete()}));return()=>{Oe=Ne=null}}):ke.E}var En=l(3762),$n=l(2416),di=l(5615),Jn=l(453);function Nn(q){return(0,_.e)(($,Z)=>{let ee=[];return $.subscribe(new u.Q(Z,Oe=>ee.push(Oe),()=>{Z.next(ee),Z.complete()})),q.subscribe(new u.Q(Z,()=>{const Oe=ee;ee=[],Z.next(Oe)},St.Z)),()=>{ee=null}})}var zn=l(8737);function Bn(q,$=null){return $=null!=$?$:q,(0,_.e)((Z,ee)=>{let Oe=[],Ne=0;Z.subscribe(new u.Q(ee,nt=>{let Ct=null;Ne++%$==0&&Oe.push([]);for(const bt of Oe)bt.push(nt),q<=bt.length&&(Ct=null!=Ct?Ct:[],Ct.push(bt));if(Ct)for(const bt of Ct)(0,zn.P)(Oe,bt),ee.next(bt)},()=>{for(const nt of Oe)ee.next(nt);ee.complete()},void 0,()=>{Oe=null}))})}function H(q,...$){var Z,ee;const Oe=null!==(Z=(0,Bt.yG)($))&&void 0!==Z?Z:Me.z,Ne=null!==(ee=$[0])&&void 0!==ee?ee:null,nt=$[1]||1/0;return(0,_.e)((Ct,bt)=>{let Wt=[],Yt=!1;const yn=_n=>{const{buffer:Pt,subs:kt}=_n;kt.unsubscribe(),(0,zn.P)(Wt,_n),bt.next(Pt),Yt&&ln()},ln=()=>{if(Wt){const _n=new d.w0;bt.add(_n);const kt={buffer:[],subs:_n};Wt.push(kt),(0,Ze.f)(_n,Oe,()=>yn(kt),q)}};null!==Ne&&Ne>=0?(0,Ze.f)(bt,Oe,ln,Ne,!0):Yt=!0,ln();const wn=new u.Q(bt,_n=>{const Pt=Wt.slice();for(const kt of Pt){const{buffer:Jt}=kt;Jt.push(_n),nt<=Jt.length&&yn(kt)}},()=>{for(;null==Wt?void 0:Wt.length;)bt.next(Wt.shift().buffer);null==wn||wn.unsubscribe(),bt.complete(),bt.unsubscribe()},void 0,()=>Wt=null);Ct.subscribe(wn)})}function we(q,$){return(0,_.e)((Z,ee)=>{const Oe=[];(0,dt.Xf)(q).subscribe(new u.Q(ee,Ne=>{const nt=[];Oe.push(nt);const Ct=new d.w0;Ct.add((0,dt.Xf)($(Ne)).subscribe(new u.Q(ee,()=>{(0,zn.P)(Oe,nt),ee.next(nt),Ct.unsubscribe()},St.Z)))},St.Z)),Z.subscribe(new u.Q(ee,Ne=>{for(const nt of Oe)nt.push(Ne)},()=>{for(;Oe.length>0;)ee.next(Oe.shift());ee.complete()}))})}function U(q){return(0,_.e)(($,Z)=>{let ee=null,Oe=null;const Ne=()=>{null==Oe||Oe.unsubscribe();const nt=ee;ee=[],nt&&Z.next(nt),(0,dt.Xf)(q()).subscribe(Oe=new u.Q(Z,Ne,St.Z))};Ne(),$.subscribe(new u.Q(Z,nt=>null==ee?void 0:ee.push(nt),()=>{ee&&Z.next(ee),Z.complete()},void 0,()=>ee=Oe=null))})}var Ae=l(262),tt=l(6099);function lt(q,$,Z,ee,Oe){return(Ne,nt)=>{let Ct=Z,bt=$,Wt=0;Ne.subscribe(new u.Q(nt,Yt=>{const yn=Wt++;bt=Ct?q(bt,Yt,yn):(Ct=!0,Yt),ee&&nt.next(bt)},Oe&&(()=>{Ct&&nt.next(bt),nt.complete()})))}}function At(q,$){return(0,_.e)(lt(q,$,arguments.length>=2,!1,!0))}const jt=(q,$)=>(q.push($),q);function qt(){return(0,_.e)((q,$)=>{At(jt,[])(q).subscribe($)})}function vn(q,$){return(0,vt.z)(qt(),(0,tt.z)(Z=>q(Z)),$?(0,ie.Z)($):Re.y)}function Ht(q){return vn(_t.a,q)}const On=Ht;function cn(...q){const $=(0,Bt.jO)(q);return $?(0,vt.z)(cn(...q),(0,ie.Z)($)):(0,_.e)((Z,ee)=>{(0,_t.l)([Z,...G(q)])(ee)})}function Hn(...q){return cn(...q)}var Un=l(7886),Sn=l(4351);function kn(q,$){return(0,fe.m)($)?(0,Sn.b)(()=>q,$):(0,Sn.b)(()=>q)}function xn(...q){return function ai(...q){const $=(0,Bt.yG)(q);return(0,_.e)((Z,ee)=>{(0,Un.u)()((0,an.D)([Z,...q],$)).subscribe(ee)})}(...q)}const ni={connector:()=>new S.x};function li(q,$=ni){const{connector:Z}=$;return(0,_.e)((ee,Oe)=>{const Ne=Z();(0,an.D)(q(function mn(q){return new i.y($=>q.subscribe($))}(Ne))).subscribe(Oe),Oe.add(ee.subscribe(Ne))})}function Kn(q){return At(($,Z,ee)=>!q||q(Z,ee)?$+1:$,0)}function Gn(q){return(0,_.e)(($,Z)=>{let ee=!1,Oe=null,Ne=null;const nt=()=>{if(null==Ne||Ne.unsubscribe(),Ne=null,ee){ee=!1;const Ct=Oe;Oe=null,Z.next(Ct)}};$.subscribe(new u.Q(Z,Ct=>{null==Ne||Ne.unsubscribe(),ee=!0,Oe=Ct,Ne=new u.Q(Z,nt,St.Z),(0,dt.Xf)(q(Ct)).subscribe(Ne)},()=>{nt(),Z.complete()},void 0,()=>{Oe=Ne=null}))})}var Ci=l(8372);function Mi(q){return(0,_.e)(($,Z)=>{let ee=!1;$.subscribe(new u.Q(Z,Oe=>{ee=!0,Z.next(Oe)},()=>{ee||Z.next(q),Z.complete()}))})}var hi=l(4326),Wn=l(1260);function Sr(){return(0,_.e)((q,$)=>{q.subscribe(new u.Q($,Z=>Ge(Z,$)))})}function nr(q,$){return(0,_.e)((Z,ee)=>{const Oe=new Set;Z.subscribe(new u.Q(ee,Ne=>{const nt=q?q(Ne):Ne;Oe.has(nt)||(Oe.add(nt),ee.next(Ne))})),null==$||$.subscribe(new u.Q(ee,()=>Oe.clear(),St.Z))})}var mr=l(1884);function Qn(q,$){return(0,mr.x)((Z,ee)=>$?$(Z[q],ee[q]):Z[q]===ee[q])}function Zn(q=Ei){return(0,_.e)(($,Z)=>{let ee=!1;$.subscribe(new u.Q(Z,Oe=>{ee=!0,Z.next(Oe)},()=>ee?Z.complete():Z.error(q())))})}function Ei(){return new he}var Ui=l(5698);function Lr(q,$){if(q<0)throw new ge;const Z=arguments.length>=2;return ee=>ee.pipe((0,Ve.h)((Oe,Ne)=>Ne===q),(0,Ui.q)(1),Z?Mi($):Zn(()=>new ge))}function Wi(...q){return $=>(0,It.z)($,(0,de.of)(...q))}function Ir(q,$){return(0,_.e)((Z,ee)=>{let Oe=0;Z.subscribe(new u.Q(ee,Ne=>{q.call($,Ne,Oe++,Z)||(ee.next(!1),ee.complete())},()=>{ee.next(!0),ee.complete()}))})}function wi(){return(0,_.e)((q,$)=>{let Z=!1,ee=null;q.subscribe(new u.Q($,Oe=>{ee||(ee=(0,dt.Xf)(Oe).subscribe(new u.Q($,void 0,()=>{ee=null,Z&&$.complete()})))},()=>{Z=!0,!ee&&$.complete()}))})}const zi=wi;var ci=l(4004);function gr(q,$){return $?Z=>Z.pipe(gr((ee,Oe)=>(0,dt.Xf)(q(ee,Oe)).pipe((0,ci.U)((Ne,nt)=>$(ee,Ne,Oe,nt))))):(0,_.e)((Z,ee)=>{let Oe=0,Ne=null,nt=!1;Z.subscribe(new u.Q(ee,Ct=>{Ne||(Ne=new u.Q(ee,void 0,()=>{Ne=null,nt&&ee.complete()}),(0,dt.Xf)(q(Ct,Oe++)).subscribe(Ne))},()=>{nt=!0,!Ne&&ee.complete()}))})}var Di=l(2733);function Ar(q,$=1/0,Z){return $=($||0)<1?1/0:$,(0,_.e)((ee,Oe)=>(0,Di.p)(ee,Oe,q,$,void 0,!0,Z))}var Pr=l(8746);function Ki(q,$){return(0,_.e)(Si(q,$,"value"))}function Si(q,$,Z){const ee="index"===Z;return(Oe,Ne)=>{let nt=0;Oe.subscribe(new u.Q(Ne,Ct=>{const bt=nt++;q.call($,Ct,bt,Oe)&&(Ne.next(ee?bt:Ct),Ne.complete())},()=>{Ne.next(ee?-1:void 0),Ne.complete()}))}}function Gi(q,$){return(0,_.e)(Si(q,$,"index"))}function Or(q,$){const Z=arguments.length>=2;return ee=>ee.pipe(q?(0,Ve.h)((Oe,Ne)=>q(Oe,Ne,ee)):Re.y,(0,Ui.q)(1),Z?Mi($):Zn(()=>new he))}function Ii(q,$,Z,ee){return(0,_.e)((Oe,Ne)=>{let nt;$&&"function"!=typeof $?({duration:Z,element:nt,connector:ee}=$):nt=$;const Ct=new Map,bt=ln=>{Ct.forEach(ln),ln(Ne)},Wt=ln=>bt(wn=>wn.error(ln)),Yt=new _r(Ne,ln=>{try{const wn=q(ln);let _n=Ct.get(wn);if(!_n){Ct.set(wn,_n=ee?ee():new S.x);const Pt=function yn(ln,wn){const _n=new i.y(Pt=>{Yt.activeGroups++;const kt=wn.subscribe(Pt);return()=>{kt.unsubscribe(),0==--Yt.activeGroups&&Yt.teardownAttempted&&Yt.unsubscribe()}});return _n.key=ln,_n}(wn,_n);if(Ne.next(Pt),Z){const kt=new u.Q(_n,()=>{_n.complete(),null==kt||kt.unsubscribe()},void 0,void 0,()=>Ct.delete(wn));Yt.add((0,dt.Xf)(Z(Pt)).subscribe(kt))}}_n.next(nt?nt(ln):ln)}catch(wn){Wt(wn)}},()=>bt(ln=>ln.complete()),Wt,()=>Ct.clear());Oe.subscribe(Yt)})}class _r extends u.Q{constructor(){super(...arguments),this.activeGroups=0,this.teardownAttempted=!1}unsubscribe(){this.teardownAttempted=!0,0===this.activeGroups&&super.unsubscribe()}}var fi=l(8502);function Ai(){return(0,_.e)((q,$)=>{q.subscribe(new u.Q($,()=>{$.next(!1),$.complete()},()=>{$.next(!0),$.complete()}))})}function pi(q){return q<=0?()=>ke.E:(0,_.e)(($,Z)=>{let ee=[];$.subscribe(new u.Q(Z,Oe=>{ee.push(Oe),q<ee.length&&ee.shift()},()=>{for(const Oe of ee)Z.next(Oe);Z.complete()},void 0,()=>{ee=null}))})}function Qi(q,$){const Z=arguments.length>=2;return ee=>ee.pipe(q?(0,Ve.h)((Oe,Ne)=>q(Oe,Ne,ee)):Re.y,pi(1),Z?Mi($):Zn(()=>new he))}var mi=l(9718);function ir(){return(0,_.e)((q,$)=>{q.subscribe(new u.Q($,Z=>{$.next(Te.createNext(Z))},()=>{$.next(Te.createComplete()),$.complete()},Z=>{$.next(Te.createError(Z)),$.complete()}))})}function rr(q){return At((0,fe.m)(q)?($,Z)=>q($,Z)>0?$:Z:($,Z)=>$>Z?$:Z)}var Pi=l(8189);const Oi=tt.z;function xi(q,$,Z=1/0){return(0,fe.m)($)?(0,tt.z)(()=>q,$,Z):("number"==typeof $&&(Z=$),(0,tt.z)(()=>q,Z))}function Zi(q,$,Z=1/0){return(0,_.e)((ee,Oe)=>{let Ne=$;return(0,Di.p)(ee,Oe,(nt,Ct)=>q(Ne,nt,Ct),Z,nt=>{Ne=nt},!1,void 0,()=>Ne=null)})}function Ri(...q){return function ti(...q){const $=(0,Bt.yG)(q),Z=(0,Bt._6)(q,1/0);return q=G(q),(0,_.e)((ee,Oe)=>{(0,Pi.J)(Z)((0,an.D)([ee,...q],$)).subscribe(Oe)})}(...q)}function or(q){return At((0,fe.m)(q)?($,Z)=>q($,Z)<0?$:Z:($,Z)=>$<Z?$:Z)}function Fi(q,$){const Z=(0,fe.m)(q)?q:()=>q;return(0,fe.m)($)?li($,{connector:Z}):ee=>new b(ee,Z)}function Yi(){return(0,_.e)((q,$)=>{let Z,ee=!1;q.subscribe(new u.Q($,Oe=>{const Ne=Z;Z=Oe,ee&&$.next([Ne,Oe]),ee=!0}))})}function ki(...q){const $=q.length;if(0===$)throw new Error("list of properties cannot be empty.");return(0,ci.U)(Z=>{let ee=Z;for(let Oe=0;Oe<$;Oe++){const Ne=null==ee?void 0:ee[q[Oe]];if(void 0===Ne)return;ee=Ne}return ee})}function xr(q){return q?$=>li(q)($):$=>Fi(new S.x)($)}function Rn(q){return $=>{const Z=new N.X(q);return new b($,()=>Z)}}function sr(){return q=>{const $=new K;return new b(q,()=>$)}}function ar(q,$,Z,ee){Z&&!(0,fe.m)(Z)&&(ee=Z);const Oe=(0,fe.m)(Z)?Z:void 0;return Ne=>Fi(new ce(q,$,ee),Oe)(Ne)}function Ln(...q){return q.length?(0,_.e)(($,Z)=>{Be([$,...q])(Z)}):Re.y}function x(q){let Z,$=1/0;return null!=q&&("object"==typeof q?({count:$=1/0,delay:Z}=q):$=q),$<=0?()=>ke.E:(0,_.e)((ee,Oe)=>{let nt,Ne=0;const Ct=()=>{if(null==nt||nt.unsubscribe(),nt=null,null!=Z){const Wt="number"==typeof Z?(0,Qe.H)(Z):(0,dt.Xf)(Z(Ne)),Yt=new u.Q(Oe,()=>{Yt.unsubscribe(),bt()});Wt.subscribe(Yt)}else bt()},bt=()=>{let Wt=!1;nt=ee.subscribe(new u.Q(Oe,void 0,()=>{++Ne<$?nt?Ct():Wt=!0:Oe.complete()})),Wt&&Ct()};bt()})}function Q(q){return(0,_.e)(($,Z)=>{let ee,Ne,Oe=!1,nt=!1,Ct=!1;const bt=()=>Ct&&nt&&(Z.complete(),!0),Yt=()=>{Ct=!1,ee=$.subscribe(new u.Q(Z,void 0,()=>{Ct=!0,!bt()&&(Ne||(Ne=new S.x,q(Ne).subscribe(new u.Q(Z,()=>{ee?Yt():Oe=!0},()=>{nt=!0,bt()}))),Ne).next()})),Oe&&(ee.unsubscribe(),ee=null,Oe=!1,Yt())};Yt()})}function R(q=1/0){let $;$=q&&"object"==typeof q?q:{count:q};const{count:Z=1/0,delay:ee,resetOnSuccess:Oe=!1}=$;return Z<=0?Re.y:(0,_.e)((Ne,nt)=>{let bt,Ct=0;const Wt=()=>{let Yt=!1;bt=Ne.subscribe(new u.Q(nt,yn=>{Oe&&(Ct=0),nt.next(yn)},void 0,yn=>{if(Ct++<Z){const ln=()=>{bt?(bt.unsubscribe(),bt=null,Wt()):Yt=!0};if(null!=ee){const wn="number"==typeof ee?(0,Qe.H)(ee):(0,dt.Xf)(ee(yn,Ct)),_n=new u.Q(nt,()=>{_n.unsubscribe(),ln()},()=>{nt.complete()});wn.subscribe(_n)}else ln()}else nt.error(yn)})),Yt&&(bt.unsubscribe(),bt=null,Wt())};Wt()})}function te(q){return(0,_.e)(($,Z)=>{let ee,Ne,Oe=!1;const nt=()=>{ee=$.subscribe(new u.Q(Z,void 0,void 0,Ct=>{Ne||(Ne=new S.x,q(Ne).subscribe(new u.Q(Z,()=>ee?nt():Oe=!0))),Ne&&Ne.next(Ct)})),Oe&&(ee.unsubscribe(),ee=null,Oe=!1,nt())};nt()})}function ze(q){return(0,_.e)(($,Z)=>{let ee=!1,Oe=null;$.subscribe(new u.Q(Z,nt=>{ee=!0,Oe=nt})),q.subscribe(new u.Q(Z,()=>{if(ee){ee=!1;const nt=Oe;Oe=null,Z.next(nt)}},St.Z))})}function ht(q,$=Me.z){return ze(Se(q,$))}function Dt(q,$){return(0,_.e)(lt(q,$,arguments.length>=2,!0))}function Nt(q,$=((Z,ee)=>Z===ee)){return(0,_.e)((Z,ee)=>{const Oe={buffer:[],complete:!1},Ne={buffer:[],complete:!1},nt=bt=>{ee.next(bt),ee.complete()},Ct=(bt,Wt)=>{const Yt=new u.Q(ee,yn=>{const{buffer:ln,complete:wn}=Wt;0===ln.length?wn?nt(!1):bt.buffer.push(yn):!$(yn,ln.shift())&&nt(!1)},()=>{bt.complete=!0;const{complete:yn,buffer:ln}=Wt;yn&&nt(0===ln.length),null==Yt||Yt.unsubscribe()});return Yt};Z.subscribe(Ct(Oe,Ne)),q.subscribe(Ct(Ne,Oe))})}var Tn=l(3099);function In(q,$,Z){var ee,Oe;let Ne,nt=!1;return q&&"object"==typeof q?(Ne=null!==(ee=q.bufferSize)&&void 0!==ee?ee:1/0,$=null!==(Oe=q.windowTime)&&void 0!==Oe?Oe:1/0,nt=!!q.refCount,Z=q.scheduler):Ne=null!=q?q:1/0,(0,Tn.B)({connector:()=>new ce(Ne,$,Z),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:nt})}function un(q){return(0,_.e)(($,Z)=>{let Oe,ee=!1,Ne=!1,nt=0;$.subscribe(new u.Q(Z,Ct=>{Ne=!0,(!q||q(Ct,nt++,$))&&(ee&&Z.error(new Tt("Too many matching values")),ee=!0,Oe=Ct)},()=>{ee?(Z.next(Oe),Z.complete()):Z.error(Ne?new Xe("No matching values"):new he)}))})}var F=l(5684);function A(q){return q<=0?Re.y:(0,_.e)(($,Z)=>{let ee=new Array(q),Oe=0;return $.subscribe(new u.Q(Z,Ne=>{const nt=Oe++;if(nt<q)ee[nt]=Ne;else{const Ct=nt%q,bt=ee[Ct];ee[Ct]=Ne,Z.next(bt)}})),()=>{ee=null}})}function v(q){return(0,_.e)(($,Z)=>{let ee=!1;const Oe=new u.Q(Z,()=>{null==Oe||Oe.unsubscribe(),ee=!0},St.Z);(0,dt.Xf)(q).subscribe(Oe),$.subscribe(new u.Q(Z,Ne=>ee&&Z.next(Ne)))})}function J(q){return(0,_.e)(($,Z)=>{let ee=!1,Oe=0;$.subscribe(new u.Q(Z,Ne=>(ee||(ee=!q(Ne,Oe++)))&&Z.next(Ne)))})}var ut=l(8675),$t=l(3900);function An(){return(0,$t.w)(Re.y)}function qn(q,$){return(0,fe.m)($)?(0,$t.w)(()=>q,$):(0,$t.w)(()=>q)}function gi(q,$){return(0,_.e)((Z,ee)=>{let Oe=$;return(0,$t.w)((Ne,nt)=>q(Oe,Ne,nt),(Ne,nt)=>(Oe=nt,nt))(Z).subscribe(ee),()=>{Oe=null}})}var Ni=l(2722);function wt(q,$=!1){return(0,_.e)((Z,ee)=>{let Oe=0;Z.subscribe(new u.Q(ee,Ne=>{const nt=q(Ne,Oe++);(nt||$)&&ee.next(Ne),!nt&&ee.complete()}))})}var j=l(8505);const c={leading:!0,trailing:!1};function f(q,$=c){return(0,_.e)((Z,ee)=>{const{leading:Oe,trailing:Ne}=$;let nt=!1,Ct=null,bt=null,Wt=!1;const Yt=()=>{null==bt||bt.unsubscribe(),bt=null,Ne&&(wn(),Wt&&ee.complete())},yn=()=>{bt=null,Wt&&ee.complete()},ln=_n=>bt=(0,dt.Xf)(q(_n)).subscribe(new u.Q(ee,Yt,yn)),wn=()=>{if(nt){nt=!1;const _n=Ct;Ct=null,ee.next(_n),!Wt&&ln(_n)}};Z.subscribe(new u.Q(ee,_n=>{nt=!0,Ct=_n,(!bt||bt.closed)&&(Oe?wn():ln(_n))},()=>{Wt=!0,(!(Ne&&nt&&bt)||bt.closed)&&ee.complete()}))})}function D(q,$=Me.z,Z=c){const ee=(0,Qe.H)(q,$);return f(()=>ee,Z)}function V(q=Me.z){return $=>(0,zt.P)(()=>$.pipe(Dt(({current:Z},ee)=>({value:ee,current:q.now(),last:Z}),{current:q.now(),value:void 0,last:void 0}),(0,ci.U)(({current:Z,last:ee,value:Oe})=>new ae(Oe,Z-ee))))}class ae{constructor($,Z){this.value=$,this.interval=Z}}function Fe(q,$,Z){let ee,Oe,Ne;if(Z=null!=Z?Z:Me.P,(0,Rt.q)(q)?ee=q:"number"==typeof q&&(Oe=q),!$)throw new TypeError("No observable provided to switch to");if(Ne=()=>$,null==ee&&null==Oe)throw new TypeError("No timeout provided.");return ne({first:ee,each:Oe,scheduler:Z,with:Ne})}function je(q=B.l){return(0,ci.U)($=>({value:$,timestamp:q.now()}))}function st(q){return(0,_.e)(($,Z)=>{let ee=new S.x;Z.next(ee.asObservable());const Oe=Ne=>{ee.error(Ne),Z.error(Ne)};return $.subscribe(new u.Q(Z,Ne=>null==ee?void 0:ee.next(Ne),()=>{ee.complete(),Z.complete()},Oe)),q.subscribe(new u.Q(Z,()=>{ee.complete(),Z.next(ee=new S.x)},St.Z,Oe)),()=>{null==ee||ee.unsubscribe(),ee=null}})}function gt(q,$=0){const Z=$>0?$:q;return(0,_.e)((ee,Oe)=>{let Ne=[new S.x],nt=[],Ct=0;Oe.next(Ne[0].asObservable()),ee.subscribe(new u.Q(Oe,bt=>{for(const Yt of Ne)Yt.next(bt);const Wt=Ct-q+1;if(Wt>=0&&Wt%Z==0&&Ne.shift().complete(),++Ct%Z==0){const Yt=new S.x;Ne.push(Yt),Oe.next(Yt.asObservable())}},()=>{for(;Ne.length>0;)Ne.shift().complete();Oe.complete()},bt=>{for(;Ne.length>0;)Ne.shift().error(bt);Oe.error(bt)},()=>{nt=null,Ne=null}))})}function Ft(q,...$){var Z,ee;const Oe=null!==(Z=(0,Bt.yG)($))&&void 0!==Z?Z:Me.z,Ne=null!==(ee=$[0])&&void 0!==ee?ee:null,nt=$[1]||1/0;return(0,_.e)((Ct,bt)=>{let Wt=[],Yt=!1;const yn=Pt=>{const{window:kt,subs:Jt}=Pt;kt.complete(),Jt.unsubscribe(),(0,zn.P)(Wt,Pt),Yt&&ln()},ln=()=>{if(Wt){const Pt=new d.w0;bt.add(Pt);const kt=new S.x,Jt={window:kt,subs:Pt,seen:0};Wt.push(Jt),bt.next(kt.asObservable()),(0,Ze.f)(Pt,Oe,()=>yn(Jt),q)}};null!==Ne&&Ne>=0?(0,Ze.f)(bt,Oe,ln,Ne,!0):Yt=!0,ln();const wn=Pt=>Wt.slice().forEach(Pt),_n=Pt=>{wn(({window:kt})=>Pt(kt)),Pt(bt),bt.unsubscribe()};return Ct.subscribe(new u.Q(bt,Pt=>{wn(kt=>{kt.window.next(Pt),nt<=++kt.seen&&yn(kt)})},()=>_n(Pt=>Pt.complete()),Pt=>_n(kt=>kt.error(Pt)))),()=>{Wt=null}})}function Gt(q,$){return(0,_.e)((Z,ee)=>{const Oe=[],Ne=nt=>{for(;0<Oe.length;)Oe.shift().error(nt);ee.error(nt)};(0,dt.Xf)(q).subscribe(new u.Q(ee,nt=>{const Ct=new S.x;Oe.push(Ct);const bt=new d.w0;let Yt;try{Yt=(0,dt.Xf)($(nt))}catch(yn){return void Ne(yn)}ee.next(Ct.asObservable()),bt.add(Yt.subscribe(new u.Q(ee,()=>{(0,zn.P)(Oe,Ct),Ct.complete(),bt.unsubscribe()},St.Z,Ne)))},St.Z)),Z.subscribe(new u.Q(ee,nt=>{const Ct=Oe.slice();for(const bt of Ct)bt.next(nt)},()=>{for(;0<Oe.length;)Oe.shift().complete();ee.complete()},Ne,()=>{for(;0<Oe.length;)Oe.shift().unsubscribe()}))})}function Xt(q){return(0,_.e)(($,Z)=>{let ee,Oe;const Ne=Ct=>{ee.error(Ct),Z.error(Ct)},nt=()=>{let Ct;null==Oe||Oe.unsubscribe(),null==ee||ee.complete(),ee=new S.x,Z.next(ee.asObservable());try{Ct=(0,dt.Xf)(q())}catch(bt){return void Ne(bt)}Ct.subscribe(Oe=new u.Q(Z,nt,nt,Ne))};nt(),$.subscribe(new u.Q(Z,Ct=>ee.next(Ct),()=>{ee.complete(),Z.complete()},Ne,()=>{null==Oe||Oe.unsubscribe(),ee=null}))})}function dn(...q){const $=(0,Bt.jO)(q);return(0,_.e)((Z,ee)=>{const Oe=q.length,Ne=new Array(Oe);let nt=q.map(()=>!1),Ct=!1;for(let bt=0;bt<Oe;bt++)(0,dt.Xf)(q[bt]).subscribe(new u.Q(ee,Wt=>{Ne[bt]=Wt,!Ct&&!nt[bt]&&(nt[bt]=!0,(Ct=nt.every(Re.y))&&(nt=null))},St.Z));Z.subscribe(new u.Q(ee,bt=>{if(Ct){const Wt=[bt,...Ne];ee.next($?$(...Wt):Wt)}}))})}function en(q){return vn(fn,q)}function hn(...q){return function nn(...q){return(0,_.e)(($,Z)=>{fn($,...q).subscribe(Z)})}(...q)}},1135:(Le,m,l)=>{"use strict";l.d(m,{X:()=>d});var i=l(6758);class d extends i.x{constructor(u){super(),this._value=u}get value(){return this.getValue()}_subscribe(u){const s=super._subscribe(u);return!s.closed&&u.next(this._value),s}getValue(){const{hasError:u,thrownError:s,_value:b}=this;if(u)throw s;return this._throwIfClosed(),b}next(u){super.next(this._value=u)}}},9751:(Le,m,l)=>{"use strict";l.d(m,{y:()=>T});var i=l(930),d=l(6921),_=l(8822),u=l(9635),s=l(2416),b=l(576),C=l(2806);let T=(()=>{class O{constructor(N){N&&(this._subscribe=N)}lift(N){const B=new O;return B.source=this,B.operator=N,B}subscribe(N,B,ce){const K=function P(O){return O&&O instanceof i.Lv||function y(O){return O&&(0,b.m)(O.next)&&(0,b.m)(O.error)&&(0,b.m)(O.complete)}(O)&&(0,d.Nn)(O)}(N)?N:new i.Hp(N,B,ce);return(0,C.x)(()=>{const{operator:re,source:Me}=this;K.add(re?re.call(K,Me):Me?this._subscribe(K):this._trySubscribe(K))}),K}_trySubscribe(N){try{return this._subscribe(N)}catch(B){N.error(B)}}forEach(N,B){return new(B=p(B))((ce,K)=>{const re=new i.Hp({next:Me=>{try{N(Me)}catch(pe){K(pe),re.unsubscribe()}},error:K,complete:ce});this.subscribe(re)})}_subscribe(N){var B;return null===(B=this.source)||void 0===B?void 0:B.subscribe(N)}[_.L](){return this}pipe(...N){return(0,u.U)(N)(this)}toPromise(N){return new(N=p(N))((B,ce)=>{let K;this.subscribe(re=>K=re,re=>ce(re),()=>B(K))})}}return O.create=S=>new O(S),O})();function p(O){var S;return null!==(S=null!=O?O:s.v.Promise)&&void 0!==S?S:Promise}},6646:(Le,m,l)=>{"use strict";l.d(m,{b:()=>d});var i=l(6063);class d{constructor(u,s=d.now){this.schedulerActionCtor=u,this.now=s}schedule(u,s=0,b){return new this.schedulerActionCtor(this,u).schedule(b,s)}}d.now=i.l.now},6758:(Le,m,l)=>{"use strict";l.d(m,{x:()=>b});var i=l(9751),d=l(6921),_=l(7448),u=l(8737),s=l(2806);let b=(()=>{class T extends i.y{constructor(){super(),this.closed=!1,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(y){const P=new C(this,this);return P.operator=y,P}_throwIfClosed(){if(this.closed)throw new _.N}next(y){(0,s.x)(()=>{if(this._throwIfClosed(),!this.isStopped){const P=this.observers.slice();for(const O of P)O.next(y)}})}error(y){(0,s.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=y;const{observers:P}=this;for(;P.length;)P.shift().error(y)}})}complete(){(0,s.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:y}=this;for(;y.length;)y.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=null}get observed(){var y;return(null===(y=this.observers)||void 0===y?void 0:y.length)>0}_trySubscribe(y){return this._throwIfClosed(),super._trySubscribe(y)}_subscribe(y){return this._throwIfClosed(),this._checkFinalizedStatuses(y),this._innerSubscribe(y)}_innerSubscribe(y){const{hasError:P,isStopped:O,observers:S}=this;return P||O?d.Lc:(S.push(y),new d.w0(()=>(0,u.P)(S,y)))}_checkFinalizedStatuses(y){const{hasError:P,thrownError:O,isStopped:S}=this;P?y.error(O):S&&y.complete()}asObservable(){const y=new i.y;return y.source=this,y}}return T.create=(p,y)=>new C(p,y),T})();class C extends b{constructor(p,y){super(),this.destination=p,this.source=y}next(p){var y,P;null===(P=null===(y=this.destination)||void 0===y?void 0:y.next)||void 0===P||P.call(y,p)}error(p){var y,P;null===(P=null===(y=this.destination)||void 0===y?void 0:y.error)||void 0===P||P.call(y,p)}complete(){var p,y;null===(y=null===(p=this.destination)||void 0===p?void 0:p.complete)||void 0===y||y.call(p)}_subscribe(p){var y,P;return null!==(P=null===(y=this.source)||void 0===y?void 0:y.subscribe(p))&&void 0!==P?P:d.Lc}}},930:(Le,m,l)=>{"use strict";l.d(m,{Hp:()=>S,Lv:()=>O});var i=l(576),d=l(6921),_=l(2416),u=l(7849),s=l(5032);const b=p("C",void 0,void 0);function p(re,Me,pe){return{kind:re,value:Me,error:pe}}var y=l(3410),P=l(2806);class O extends d.w0{constructor(Me){super(),this.isStopped=!1,Me?(this.destination=Me,(0,d.Nn)(Me)&&Me.add(this)):this.destination=K}static create(Me,pe,be){return new S(Me,pe,be)}next(Me){this.isStopped?ce(function T(re){return p("N",re,void 0)}(Me),this):this._next(Me)}error(Me){this.isStopped?ce(function C(re){return p("E",void 0,re)}(Me),this):(this.isStopped=!0,this._error(Me))}complete(){this.isStopped?ce(b,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(Me){this.destination.next(Me)}_error(Me){try{this.destination.error(Me)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}class S extends O{constructor(Me,pe,be){let ue;if(super(),(0,i.m)(Me))ue=Me;else if(Me){let xe;({next:ue,error:pe,complete:be}=Me),this&&_.v.useDeprecatedNextContext?(xe=Object.create(Me),xe.unsubscribe=()=>this.unsubscribe()):xe=Me,ue=null==ue?void 0:ue.bind(xe),pe=null==pe?void 0:pe.bind(xe),be=null==be?void 0:be.bind(xe)}this.destination={next:ue?N(ue):s.Z,error:N(null!=pe?pe:B),complete:be?N(be):s.Z}}}function N(re,Me){return(...pe)=>{try{re(...pe)}catch(be){_.v.useDeprecatedSynchronousErrorHandling?(0,P.O)(be):(0,u.h)(be)}}}function B(re){throw re}function ce(re,Me){const{onStoppedNotification:pe}=_.v;pe&&y.z.setTimeout(()=>pe(re,Me))}const K={closed:!0,next:s.Z,error:B,complete:s.Z}},6921:(Le,m,l)=>{"use strict";l.d(m,{w0:()=>u,Lc:()=>s,Nn:()=>b});var i=l(576),d=l(7896),_=l(8737);class u{constructor(p){this.initialTeardown=p,this.closed=!1,this._parentage=null,this._teardowns=null}unsubscribe(){let p;if(!this.closed){this.closed=!0;const{_parentage:y}=this;if(y)if(this._parentage=null,Array.isArray(y))for(const S of y)S.remove(this);else y.remove(this);const{initialTeardown:P}=this;if((0,i.m)(P))try{P()}catch(S){p=S instanceof d.B?S.errors:[S]}const{_teardowns:O}=this;if(O){this._teardowns=null;for(const S of O)try{C(S)}catch(N){p=null!=p?p:[],N instanceof d.B?p=[...p,...N.errors]:p.push(N)}}if(p)throw new d.B(p)}}add(p){var y;if(p&&p!==this)if(this.closed)C(p);else{if(p instanceof u){if(p.closed||p._hasParent(this))return;p._addParent(this)}(this._teardowns=null!==(y=this._teardowns)&&void 0!==y?y:[]).push(p)}}_hasParent(p){const{_parentage:y}=this;return y===p||Array.isArray(y)&&y.includes(p)}_addParent(p){const{_parentage:y}=this;this._parentage=Array.isArray(y)?(y.push(p),y):y?[y,p]:p}_removeParent(p){const{_parentage:y}=this;y===p?this._parentage=null:Array.isArray(y)&&(0,_.P)(y,p)}remove(p){const{_teardowns:y}=this;y&&(0,_.P)(y,p),p instanceof u&&p._removeParent(this)}}u.EMPTY=(()=>{const T=new u;return T.closed=!0,T})();const s=u.EMPTY;function b(T){return T instanceof u||T&&"closed"in T&&(0,i.m)(T.remove)&&(0,i.m)(T.add)&&(0,i.m)(T.unsubscribe)}function C(T){(0,i.m)(T)?T():T.unsubscribe()}},2416:(Le,m,l)=>{"use strict";l.d(m,{v:()=>i});const i={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(Le,m,l)=>{"use strict";l.d(m,{a:()=>y,l:()=>P});var i=l(9751),d=l(4742),_=l(188),u=l(4671),s=l(3268),b=l(3269),C=l(1810),T=l(5403),p=l(9672);function y(...S){const N=(0,b.yG)(S),B=(0,b.jO)(S),{args:ce,keys:K}=(0,d.D)(S);if(0===ce.length)return(0,_.D)([],N);const re=new i.y(P(ce,N,K?Me=>(0,C.n)(K,Me):u.y));return B?re.pipe((0,s.Z)(B)):re}function P(S,N,B=u.y){return ce=>{O(N,()=>{const{length:K}=S,re=new Array(K);let Me=K,pe=K;for(let be=0;be<K;be++)O(N,()=>{const ue=(0,_.D)(S[be],N);let xe=!1;ue.subscribe(new T.Q(ce,He=>{re[be]=He,xe||(xe=!0,pe--),pe||ce.next(B(re.slice()))},()=>{--Me||ce.complete()}))},ce)},ce)}}function O(S,N,B){S?(0,p.f)(B,S,N):N()}},1350:(Le,m,l)=>{"use strict";l.d(m,{z:()=>u});var i=l(7886),d=l(3269),_=l(188);function u(...s){return(0,i.u)()((0,_.D)(s,(0,d.yG)(s)))}},9770:(Le,m,l)=>{"use strict";l.d(m,{P:()=>_});var i=l(9751),d=l(8421);function _(u){return new i.y(s=>{(0,d.Xf)(u()).subscribe(s)})}},515:(Le,m,l)=>{"use strict";l.d(m,{E:()=>d,c:()=>_});var i=l(9751);const d=new i.y(s=>s.complete());function _(s){return s?function u(s){return new i.y(b=>s.schedule(()=>b.complete()))}(s):d}},4128:(Le,m,l)=>{"use strict";l.d(m,{D:()=>T});var i=l(9751),d=l(4742),_=l(8421),u=l(3269),s=l(5403),b=l(3268),C=l(1810);function T(...p){const y=(0,u.jO)(p),{args:P,keys:O}=(0,d.D)(p),S=new i.y(N=>{const{length:B}=P;if(!B)return void N.complete();const ce=new Array(B);let K=B,re=B;for(let Me=0;Me<B;Me++){let pe=!1;(0,_.Xf)(P[Me]).subscribe(new s.Q(N,be=>{pe||(pe=!0,re--),ce[Me]=be},()=>K--,void 0,()=>{(!K||!pe)&&(re||N.next(O?(0,C.n)(O,ce):ce),N.complete())}))}});return y?S.pipe((0,b.Z)(y)):S}},188:(Le,m,l)=>{"use strict";l.d(m,{D:()=>_});var i=l(3762),d=l(8421);function _(u,s){return s?(0,i.x)(u,s):(0,d.Xf)(u)}},4968:(Le,m,l)=>{"use strict";l.d(m,{R:()=>y});var i=l(8421),d=l(9751),_=l(6099),u=l(1144),s=l(576),b=l(3268);const C=["addListener","removeListener"],T=["addEventListener","removeEventListener"],p=["on","off"];function y(B,ce,K,re){if((0,s.m)(K)&&(re=K,K=void 0),re)return y(B,ce,K).pipe((0,b.Z)(re));const[Me,pe]=function N(B){return(0,s.m)(B.addEventListener)&&(0,s.m)(B.removeEventListener)}(B)?T.map(be=>ue=>B[be](ce,ue,K)):function O(B){return(0,s.m)(B.addListener)&&(0,s.m)(B.removeListener)}(B)?C.map(P(B,ce)):function S(B){return(0,s.m)(B.on)&&(0,s.m)(B.off)}(B)?p.map(P(B,ce)):[];if(!Me&&(0,u.z)(B))return(0,_.z)(be=>y(be,ce,K))((0,i.Xf)(B));if(!Me)throw new TypeError("Invalid event target");return new d.y(be=>{const ue=(...xe)=>be.next(1<xe.length?xe:xe[0]);return Me(ue),()=>pe(ue)})}function P(B,ce){return K=>re=>B[K](ce,re)}},8421:(Le,m,l)=>{"use strict";l.d(m,{Xf:()=>S});var i=l(655),d=l(1144),_=l(8239),u=l(9751),s=l(3670),b=l(2206),C=l(4532),T=l(6495),p=l(3260),y=l(576),P=l(7849),O=l(8822);function S(be){if(be instanceof u.y)return be;if(null!=be){if((0,s.c)(be))return function N(be){return new u.y(ue=>{const xe=be[O.L]();if((0,y.m)(xe.subscribe))return xe.subscribe(ue);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(be);if((0,d.z)(be))return function B(be){return new u.y(ue=>{for(let xe=0;xe<be.length&&!ue.closed;xe++)ue.next(be[xe]);ue.complete()})}(be);if((0,_.t)(be))return function ce(be){return new u.y(ue=>{be.then(xe=>{ue.closed||(ue.next(xe),ue.complete())},xe=>ue.error(xe)).then(null,P.h)})}(be);if((0,b.D)(be))return re(be);if((0,T.T)(be))return function K(be){return new u.y(ue=>{for(const xe of be)if(ue.next(xe),ue.closed)return;ue.complete()})}(be);if((0,p.L)(be))return function Me(be){return re((0,p.Q)(be))}(be)}throw(0,C.z)(be)}function re(be){return new u.y(ue=>{(function pe(be,ue){var xe,He,et,ct;return(0,i.__awaiter)(this,void 0,void 0,function*(){try{for(xe=(0,i.__asyncValues)(be);!(He=yield xe.next()).done;)if(ue.next(He.value),ue.closed)return}catch(X){et={error:X}}finally{try{He&&!He.done&&(ct=xe.return)&&(yield ct.call(xe))}finally{if(et)throw et.error}}ue.complete()})})(be,ue).catch(xe=>ue.error(xe))})}},6451:(Le,m,l)=>{"use strict";l.d(m,{T:()=>b});var i=l(8189),d=l(8421),_=l(515),u=l(3269),s=l(188);function b(...C){const T=(0,u.yG)(C),p=(0,u._6)(C,1/0),y=C;return y.length?1===y.length?(0,d.Xf)(y[0]):(0,i.J)(p)((0,s.D)(y,T)):_.E}},9646:(Le,m,l)=>{"use strict";l.d(m,{of:()=>_});var i=l(3269),d=l(188);function _(...u){const s=(0,i.yG)(u);return(0,d.D)(u,s)}},2843:(Le,m,l)=>{"use strict";l.d(m,{_:()=>_});var i=l(9751),d=l(576);function _(u,s){const b=(0,d.m)(u)?u:()=>u,C=T=>T.error(b());return new i.y(s?T=>s.schedule(C,0,T):C)}},2805:(Le,m,l)=>{"use strict";l.d(m,{H:()=>s});var i=l(9751),d=l(4986),_=l(3532),u=l(1165);function s(b=0,C,T=d.P){let p=-1;return null!=C&&((0,_.K)(C)?T=C:p=C),new i.y(y=>{let P=(0,u.q)(b)?+b-T.now():b;P<0&&(P=0);let O=0;return T.schedule(function(){y.closed||(y.next(O++),0<=p?this.schedule(void 0,p):y.complete())},P)})}},5403:(Le,m,l)=>{"use strict";l.d(m,{Q:()=>d});var i=l(930);class d extends i.Lv{constructor(u,s,b,C,T){super(u),this.onFinalize=T,this._next=s?function(p){try{s(p)}catch(y){u.error(y)}}:super._next,this._error=C?function(p){try{C(p)}catch(y){u.error(y)}finally{this.unsubscribe()}}:super._error,this._complete=b?function(){try{b()}catch(p){u.error(p)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var u;const{closed:s}=this;super.unsubscribe(),!s&&(null===(u=this.onFinalize)||void 0===u||u.call(this))}}},5615:(Le,m,l)=>{"use strict";l.d(m,{U:()=>u});var i=l(4482),d=l(8421),_=l(5403);function u(s){return(0,i.e)((b,C)=>{let T=!1,p=null,y=null,P=!1;const O=()=>{if(null==y||y.unsubscribe(),y=null,T){T=!1;const N=p;p=null,C.next(N)}P&&C.complete()},S=()=>{y=null,P&&C.complete()};b.subscribe(new _.Q(C,N=>{T=!0,p=N,y||(0,d.Xf)(s(N)).subscribe(y=new _.Q(C,O,S))},()=>{P=!0,(!T||!y||y.closed)&&C.complete()}))})}},453:(Le,m,l)=>{"use strict";l.d(m,{e:()=>u});var i=l(4986),d=l(5615),_=l(2805);function u(s,b=i.z){return(0,d.U)(()=>(0,_.H)(s,b))}},262:(Le,m,l)=>{"use strict";l.d(m,{K:()=>u});var i=l(8421),d=l(5403),_=l(4482);function u(s){return(0,_.e)((b,C)=>{let y,T=null,p=!1;T=b.subscribe(new d.Q(C,void 0,void 0,P=>{y=(0,i.Xf)(s(P,u(s)(b))),T?(T.unsubscribe(),T=null,y.subscribe(C)):p=!0})),p&&(T.unsubscribe(),T=null,y.subscribe(C))})}},7886:(Le,m,l)=>{"use strict";l.d(m,{u:()=>d});var i=l(8189);function d(){return(0,i.J)(1)}},4351:(Le,m,l)=>{"use strict";l.d(m,{b:()=>_});var i=l(6099),d=l(576);function _(u,s){return(0,d.m)(s)?(0,i.z)(u,s,1):(0,i.z)(u,1)}},8372:(Le,m,l)=>{"use strict";l.d(m,{b:()=>u});var i=l(4986),d=l(4482),_=l(5403);function u(s,b=i.z){return(0,d.e)((C,T)=>{let p=null,y=null,P=null;const O=()=>{if(p){p.unsubscribe(),p=null;const N=y;y=null,T.next(N)}};function S(){const N=P+s,B=b.now();if(B<N)return p=this.schedule(void 0,N-B),void T.add(p);O()}C.subscribe(new _.Q(T,N=>{y=N,P=b.now(),p||(p=b.schedule(S,s),T.add(p))},()=>{O(),T.complete()},void 0,()=>{y=p=null}))})}},4326:(Le,m,l)=>{"use strict";l.d(m,{g:()=>u});var i=l(4986),d=l(1260),_=l(2805);function u(s,b=i.z){const C=(0,_.H)(s,b);return(0,d.j)(()=>C)}},1260:(Le,m,l)=>{"use strict";l.d(m,{j:()=>b});var i=l(1350),d=l(5698),_=l(8502),u=l(9718),s=l(6099);function b(C,T){return T?p=>(0,i.z)(T.pipe((0,d.q)(1),(0,_.l)()),p.pipe(b(C))):(0,s.z)((p,y)=>C(p,y).pipe((0,d.q)(1),(0,u.h)(p)))}},1884:(Le,m,l)=>{"use strict";l.d(m,{x:()=>u});var i=l(4671),d=l(4482),_=l(5403);function u(b,C=i.y){return b=null!=b?b:s,(0,d.e)((T,p)=>{let y,P=!0;T.subscribe(new _.Q(p,O=>{const S=C(O);(P||!b(y,S))&&(P=!1,y=S,p.next(O))}))})}function s(b,C){return b===C}},9300:(Le,m,l)=>{"use strict";l.d(m,{h:()=>_});var i=l(4482),d=l(5403);function _(u,s){return(0,i.e)((b,C)=>{let T=0;b.subscribe(new d.Q(C,p=>u.call(s,p,T++)&&C.next(p)))})}},8746:(Le,m,l)=>{"use strict";l.d(m,{x:()=>d});var i=l(4482);function d(_){return(0,i.e)((u,s)=>{try{u.subscribe(s)}finally{s.add(_)}})}},8502:(Le,m,l)=>{"use strict";l.d(m,{l:()=>u});var i=l(4482),d=l(5403),_=l(5032);function u(){return(0,i.e)((s,b)=>{s.subscribe(new d.Q(b,_.Z))})}},4004:(Le,m,l)=>{"use strict";l.d(m,{U:()=>_});var i=l(4482),d=l(5403);function _(u,s){return(0,i.e)((b,C)=>{let T=0;b.subscribe(new d.Q(C,p=>{C.next(u.call(s,p,T++))}))})}},9718:(Le,m,l)=>{"use strict";l.d(m,{h:()=>d});var i=l(4004);function d(_){return(0,i.U)(()=>_)}},8189:(Le,m,l)=>{"use strict";l.d(m,{J:()=>_});var i=l(6099),d=l(4671);function _(u=1/0){return(0,i.z)(d.y,u)}},2733:(Le,m,l)=>{"use strict";l.d(m,{p:()=>u});var i=l(8421),d=l(9672),_=l(5403);function u(s,b,C,T,p,y,P,O){const S=[];let N=0,B=0,ce=!1;const K=()=>{ce&&!S.length&&!N&&b.complete()},re=pe=>N<T?Me(pe):S.push(pe),Me=pe=>{y&&b.next(pe),N++;let be=!1;(0,i.Xf)(C(pe,B++)).subscribe(new _.Q(b,ue=>{null==p||p(ue),y?re(ue):b.next(ue)},()=>{be=!0},void 0,()=>{if(be)try{for(N--;S.length&&N<T;){const ue=S.shift();P?(0,d.f)(b,P,()=>Me(ue)):Me(ue)}K()}catch(ue){b.error(ue)}}))};return s.subscribe(new _.Q(b,re,()=>{ce=!0,K()})),()=>{null==O||O()}}},6099:(Le,m,l)=>{"use strict";l.d(m,{z:()=>b});var i=l(4004),d=l(8421),_=l(4482),u=l(2733),s=l(576);function b(C,T,p=1/0){return(0,s.m)(T)?b((y,P)=>(0,i.U)((O,S)=>T(y,O,P,S))((0,d.Xf)(C(y,P))),p):("number"==typeof T&&(p=T),(0,_.e)((y,P)=>(0,u.p)(y,P,C,p)))}},5363:(Le,m,l)=>{"use strict";l.d(m,{Q:()=>u});var i=l(9672),d=l(4482),_=l(5403);function u(s,b=0){return(0,d.e)((C,T)=>{C.subscribe(new _.Q(T,p=>(0,i.f)(T,s,()=>T.next(p),b),()=>(0,i.f)(T,s,()=>T.complete(),b),p=>(0,i.f)(T,s,()=>T.error(p),b)))})}},3099:(Le,m,l)=>{"use strict";l.d(m,{B:()=>b});var i=l(188),d=l(5698),_=l(6758),u=l(930),s=l(4482);function b(T={}){const{connector:p=(()=>new _.x),resetOnError:y=!0,resetOnComplete:P=!0,resetOnRefCountZero:O=!0}=T;return S=>{let N=null,B=null,ce=null,K=0,re=!1,Me=!1;const pe=()=>{null==B||B.unsubscribe(),B=null},be=()=>{pe(),N=ce=null,re=Me=!1},ue=()=>{const xe=N;be(),null==xe||xe.unsubscribe()};return(0,s.e)((xe,He)=>{K++,!Me&&!re&&pe();const et=ce=null!=ce?ce:p();He.add(()=>{K--,0===K&&!Me&&!re&&(B=C(ue,O))}),et.subscribe(He),N||(N=new u.Hp({next:ct=>et.next(ct),error:ct=>{Me=!0,pe(),B=C(be,y,ct),et.error(ct)},complete:()=>{re=!0,pe(),B=C(be,P),et.complete()}}),(0,i.D)(xe).subscribe(N))})(S)}}function C(T,p,...y){return!0===p?(T(),null):!1===p?null:p(...y).pipe((0,d.q)(1)).subscribe(()=>T())}},5684:(Le,m,l)=>{"use strict";l.d(m,{T:()=>d});var i=l(9300);function d(_){return(0,i.h)((u,s)=>_<=s)}},8675:(Le,m,l)=>{"use strict";l.d(m,{O:()=>u});var i=l(1350),d=l(3269),_=l(4482);function u(...s){const b=(0,d.yG)(s);return(0,_.e)((C,T)=>{(b?(0,i.z)(s,C,b):(0,i.z)(s,C)).subscribe(T)})}},9468:(Le,m,l)=>{"use strict";l.d(m,{R:()=>d});var i=l(4482);function d(_,u=0){return(0,i.e)((s,b)=>{b.add(_.schedule(()=>s.subscribe(b),u))})}},3900:(Le,m,l)=>{"use strict";l.d(m,{w:()=>u});var i=l(8421),d=l(4482),_=l(5403);function u(s,b){return(0,d.e)((C,T)=>{let p=null,y=0,P=!1;const O=()=>P&&!p&&T.complete();C.subscribe(new _.Q(T,S=>{null==p||p.unsubscribe();let N=0;const B=y++;(0,i.Xf)(s(S,B)).subscribe(p=new _.Q(T,ce=>T.next(b?b(S,ce,B,N++):ce),()=>{p=null,O()}))},()=>{P=!0,O()}))})}},5698:(Le,m,l)=>{"use strict";l.d(m,{q:()=>u});var i=l(515),d=l(4482),_=l(5403);function u(s){return s<=0?()=>i.E:(0,d.e)((b,C)=>{let T=0;b.subscribe(new _.Q(C,p=>{++T<=s&&(C.next(p),s<=T&&C.complete())}))})}},2722:(Le,m,l)=>{"use strict";l.d(m,{R:()=>s});var i=l(4482),d=l(5403),_=l(8421),u=l(5032);function s(b){return(0,i.e)((C,T)=>{(0,_.Xf)(b).subscribe(new d.Q(T,()=>T.complete(),u.Z)),!T.closed&&C.subscribe(T)})}},8505:(Le,m,l)=>{"use strict";l.d(m,{b:()=>s});var i=l(576),d=l(4482),_=l(5403),u=l(4671);function s(b,C,T){const p=(0,i.m)(b)||C||T?{next:b,error:C,complete:T}:b;return p?(0,d.e)((y,P)=>{var O;null===(O=p.subscribe)||void 0===O||O.call(p);let S=!0;y.subscribe(new _.Q(P,N=>{var B;null===(B=p.next)||void 0===B||B.call(p,N),P.next(N)},()=>{var N;S=!1,null===(N=p.complete)||void 0===N||N.call(p),P.complete()},N=>{var B;S=!1,null===(B=p.error)||void 0===B||B.call(p,N),P.error(N)},()=>{var N,B;S&&(null===(N=p.unsubscribe)||void 0===N||N.call(p)),null===(B=p.finalize)||void 0===B||B.call(p)}))}):u.y}},6340:(Le,m,l)=>{"use strict";l.d(m,{Q:()=>s});var i=l(9751),d=l(2202),_=l(576),u=l(9672);function s(b,C){return new i.y(T=>{let p;return(0,u.f)(T,C,()=>{p=b[d.h](),(0,u.f)(T,C,()=>{let y,P;try{({value:y,done:P}=p.next())}catch(O){return void T.error(O)}P?T.complete():T.next(y)},0,!0)}),()=>(0,_.m)(null==p?void 0:p.return)&&p.return()})}},3762:(Le,m,l)=>{"use strict";l.d(m,{x:()=>Me});var i=l(8421),d=l(5363),_=l(9468),b=l(9751),T=l(6340),p=l(9672);function y(pe,be){if(!pe)throw new Error("Iterable cannot be null");return new b.y(ue=>{(0,p.f)(ue,be,()=>{const xe=pe[Symbol.asyncIterator]();(0,p.f)(ue,be,()=>{xe.next().then(He=>{He.done?ue.complete():ue.next(He.value)})},0,!0)})})}var P=l(3670),O=l(8239),S=l(1144),N=l(6495),B=l(2206),ce=l(4532),K=l(3260);function Me(pe,be){if(null!=pe){if((0,P.c)(pe))return function u(pe,be){return(0,i.Xf)(pe).pipe((0,_.R)(be),(0,d.Q)(be))}(pe,be);if((0,S.z)(pe))return function C(pe,be){return new b.y(ue=>{let xe=0;return be.schedule(function(){xe===pe.length?ue.complete():(ue.next(pe[xe++]),ue.closed||this.schedule())})})}(pe,be);if((0,O.t)(pe))return function s(pe,be){return(0,i.Xf)(pe).pipe((0,_.R)(be),(0,d.Q)(be))}(pe,be);if((0,B.D)(pe))return y(pe,be);if((0,N.T)(pe))return(0,T.Q)(pe,be);if((0,K.L)(pe))return function re(pe,be){return y((0,K.Q)(pe),be)}(pe,be)}throw(0,ce.z)(pe)}},4408:(Le,m,l)=>{"use strict";l.d(m,{o:()=>s});var i=l(6921);class d extends i.w0{constructor(C,T){super()}schedule(C,T=0){return this}}const _={setInterval(...b){const{delegate:C}=_;return((null==C?void 0:C.setInterval)||setInterval)(...b)},clearInterval(b){const{delegate:C}=_;return((null==C?void 0:C.clearInterval)||clearInterval)(b)},delegate:void 0};var u=l(8737);class s extends d{constructor(C,T){super(C,T),this.scheduler=C,this.work=T,this.pending=!1}schedule(C,T=0){if(this.closed)return this;this.state=C;const p=this.id,y=this.scheduler;return null!=p&&(this.id=this.recycleAsyncId(y,p,T)),this.pending=!0,this.delay=T,this.id=this.id||this.requestAsyncId(y,this.id,T),this}requestAsyncId(C,T,p=0){return _.setInterval(C.flush.bind(C,this),p)}recycleAsyncId(C,T,p=0){if(null!=p&&this.delay===p&&!1===this.pending)return T;_.clearInterval(T)}execute(C,T){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const p=this._execute(C,T);if(p)return p;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(C,T){let y,p=!1;try{this.work(C)}catch(P){p=!0,y=P||new Error("Scheduled action threw falsy error")}if(p)return this.unsubscribe(),y}unsubscribe(){if(!this.closed){const{id:C,scheduler:T}=this,{actions:p}=T;this.work=this.state=this.scheduler=null,this.pending=!1,(0,u.P)(p,this),null!=C&&(this.id=this.recycleAsyncId(T,C,null)),this.delay=null,super.unsubscribe()}}}},8950:(Le,m,l)=>{"use strict";l.d(m,{v:()=>d});var i=l(6646);class d extends i.b{constructor(u,s=i.b.now){super(u,s),this.actions=[],this._active=!1,this._scheduled=void 0}flush(u){const{actions:s}=this;if(this._active)return void s.push(u);let b;this._active=!0;do{if(b=u.execute(u.state,u.delay))break}while(u=s.shift());if(this._active=!1,b){for(;u=s.shift();)u.unsubscribe();throw b}}}},29:(Le,m,l)=>{"use strict";l.d(m,{r:()=>C,Z:()=>b});var i=l(4408),d=l(3399),u=l(8950);const b=new class s extends u.v{flush(p){this._active=!0;const y=this._scheduled;this._scheduled=void 0;const{actions:P}=this;let O;p=p||P.shift();do{if(O=p.execute(p.state,p.delay))break}while((p=P[0])&&p.id===y&&P.shift());if(this._active=!1,O){for(;(p=P[0])&&p.id===y&&P.shift();)p.unsubscribe();throw O}}}(class _ extends i.o{constructor(p,y){super(p,y),this.scheduler=p,this.work=y}requestAsyncId(p,y,P=0){return null!==P&&P>0?super.requestAsyncId(p,y,P):(p.actions.push(this),p._scheduled||(p._scheduled=d.l.requestAnimationFrame(()=>p.flush(void 0))))}recycleAsyncId(p,y,P=0){if(null!=P&&P>0||null==P&&this.delay>0)return super.recycleAsyncId(p,y,P);p.actions.some(O=>O.id===y)||(d.l.cancelAnimationFrame(y),p._scheduled=void 0)}}),C=b},3399:(Le,m,l)=>{"use strict";l.d(m,{l:()=>d});var i=l(6921);const d={schedule(_){let u=requestAnimationFrame,s=cancelAnimationFrame;const{delegate:b}=d;b&&(u=b.requestAnimationFrame,s=b.cancelAnimationFrame);const C=u(T=>{s=void 0,_(T)});return new i.w0(()=>null==s?void 0:s(C))},requestAnimationFrame(..._){const{delegate:u}=d;return((null==u?void 0:u.requestAnimationFrame)||requestAnimationFrame)(..._)},cancelAnimationFrame(..._){const{delegate:u}=d;return((null==u?void 0:u.cancelAnimationFrame)||cancelAnimationFrame)(..._)},delegate:void 0}},3101:(Le,m,l)=>{"use strict";l.d(m,{e:()=>B,E:()=>N});var i=l(4408);let _,d=1;const u={};function s(ce){return ce in u&&(delete u[ce],!0)}const b={setImmediate(ce){const K=d++;return u[K]=!0,_||(_=Promise.resolve()),_.then(()=>s(K)&&ce()),K},clearImmediate(ce){s(ce)}},{setImmediate:T,clearImmediate:p}=b,y={setImmediate(...ce){const{delegate:K}=y;return((null==K?void 0:K.setImmediate)||T)(...ce)},clearImmediate(ce){const{delegate:K}=y;return((null==K?void 0:K.clearImmediate)||p)(ce)},delegate:void 0};var O=l(8950);const N=new class S extends O.v{flush(K){this._active=!0;const re=this._scheduled;this._scheduled=void 0;const{actions:Me}=this;let pe;K=K||Me.shift();do{if(pe=K.execute(K.state,K.delay))break}while((K=Me[0])&&K.id===re&&Me.shift());if(this._active=!1,pe){for(;(K=Me[0])&&K.id===re&&Me.shift();)K.unsubscribe();throw pe}}}(class P extends i.o{constructor(K,re){super(K,re),this.scheduler=K,this.work=re}requestAsyncId(K,re,Me=0){return null!==Me&&Me>0?super.requestAsyncId(K,re,Me):(K.actions.push(this),K._scheduled||(K._scheduled=y.setImmediate(K.flush.bind(K,void 0))))}recycleAsyncId(K,re,Me=0){if(null!=Me&&Me>0||null==Me&&this.delay>0)return super.recycleAsyncId(K,re,Me);K.actions.some(pe=>pe.id===re)||(y.clearImmediate(re),K._scheduled=void 0)}}),B=N},4986:(Le,m,l)=>{"use strict";l.d(m,{z:()=>_,P:()=>u});var i=l(4408);const _=new(l(8950).v)(i.o),u=_},6063:(Le,m,l)=>{"use strict";l.d(m,{l:()=>i});const i={now:()=>(i.delegate||Date).now(),delegate:void 0}},3410:(Le,m,l)=>{"use strict";l.d(m,{z:()=>i});const i={setTimeout(...d){const{delegate:_}=i;return((null==_?void 0:_.setTimeout)||setTimeout)(...d)},clearTimeout(d){const{delegate:_}=i;return((null==_?void 0:_.clearTimeout)||clearTimeout)(d)},delegate:void 0}},2202:(Le,m,l)=>{"use strict";l.d(m,{h:()=>d});const d=function i(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(Le,m,l)=>{"use strict";l.d(m,{L:()=>i});const i="function"==typeof Symbol&&Symbol.observable||"@@observable"},7448:(Le,m,l)=>{"use strict";l.d(m,{N:()=>d});const d=(0,l(3888).d)(_=>function(){_(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"})},7896:(Le,m,l)=>{"use strict";l.d(m,{B:()=>d});const d=(0,l(3888).d)(_=>function(s){_(this),this.message=s?`${s.length} errors occurred during unsubscription:\n${s.map((b,C)=>`${C+1}) ${b.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=s})},3269:(Le,m,l)=>{"use strict";l.d(m,{jO:()=>u,yG:()=>s,_6:()=>b});var i=l(576),d=l(3532);function _(C){return C[C.length-1]}function u(C){return(0,i.m)(_(C))?C.pop():void 0}function s(C){return(0,d.K)(_(C))?C.pop():void 0}function b(C,T){return"number"==typeof _(C)?C.pop():T}},4742:(Le,m,l)=>{"use strict";l.d(m,{D:()=>s});const{isArray:i}=Array,{getPrototypeOf:d,prototype:_,keys:u}=Object;function s(C){if(1===C.length){const T=C[0];if(i(T))return{args:T,keys:null};if(function b(C){return C&&"object"==typeof C&&d(C)===_}(T)){const p=u(T);return{args:p.map(y=>T[y]),keys:p}}}return{args:C,keys:null}}},8737:(Le,m,l)=>{"use strict";function i(d,_){if(d){const u=d.indexOf(_);0<=u&&d.splice(u,1)}}l.d(m,{P:()=>i})},3888:(Le,m,l)=>{"use strict";function i(d){const u=d(s=>{Error.call(s),s.stack=(new Error).stack});return u.prototype=Object.create(Error.prototype),u.prototype.constructor=u,u}l.d(m,{d:()=>i})},1810:(Le,m,l)=>{"use strict";function i(d,_){return d.reduce((u,s,b)=>(u[s]=_[b],u),{})}l.d(m,{n:()=>i})},2806:(Le,m,l)=>{"use strict";l.d(m,{x:()=>_,O:()=>u});var i=l(2416);let d=null;function _(s){if(i.v.useDeprecatedSynchronousErrorHandling){const b=!d;if(b&&(d={errorThrown:!1,error:null}),s(),b){const{errorThrown:C,error:T}=d;if(d=null,C)throw T}}else s()}function u(s){i.v.useDeprecatedSynchronousErrorHandling&&d&&(d.errorThrown=!0,d.error=s)}},9672:(Le,m,l)=>{"use strict";function i(d,_,u,s=0,b=!1){const C=_.schedule(function(){u(),b?d.add(this.schedule(null,s)):this.unsubscribe()},s);if(d.add(C),!b)return C}l.d(m,{f:()=>i})},4671:(Le,m,l)=>{"use strict";function i(d){return d}l.d(m,{y:()=>i})},1144:(Le,m,l)=>{"use strict";l.d(m,{z:()=>i});const i=d=>d&&"number"==typeof d.length&&"function"!=typeof d},2206:(Le,m,l)=>{"use strict";l.d(m,{D:()=>d});var i=l(576);function d(_){return Symbol.asyncIterator&&(0,i.m)(null==_?void 0:_[Symbol.asyncIterator])}},1165:(Le,m,l)=>{"use strict";function i(d){return d instanceof Date&&!isNaN(d)}l.d(m,{q:()=>i})},576:(Le,m,l)=>{"use strict";function i(d){return"function"==typeof d}l.d(m,{m:()=>i})},3670:(Le,m,l)=>{"use strict";l.d(m,{c:()=>_});var i=l(8822),d=l(576);function _(u){return(0,d.m)(u[i.L])}},6495:(Le,m,l)=>{"use strict";l.d(m,{T:()=>_});var i=l(2202),d=l(576);function _(u){return(0,d.m)(null==u?void 0:u[i.h])}},5191:(Le,m,l)=>{"use strict";l.d(m,{b:()=>_});var i=l(9751),d=l(576);function _(u){return!!u&&(u instanceof i.y||(0,d.m)(u.lift)&&(0,d.m)(u.subscribe))}},8239:(Le,m,l)=>{"use strict";l.d(m,{t:()=>d});var i=l(576);function d(_){return(0,i.m)(null==_?void 0:_.then)}},3260:(Le,m,l)=>{"use strict";l.d(m,{Q:()=>_,L:()=>u});var i=l(655),d=l(576);function _(s){return(0,i.__asyncGenerator)(this,arguments,function*(){const C=s.getReader();try{for(;;){const{value:T,done:p}=yield(0,i.__await)(C.read());if(p)return yield(0,i.__await)(void 0);yield yield(0,i.__await)(T)}}finally{C.releaseLock()}})}function u(s){return(0,d.m)(null==s?void 0:s.getReader)}},3532:(Le,m,l)=>{"use strict";l.d(m,{K:()=>d});var i=l(576);function d(_){return _&&(0,i.m)(_.schedule)}},4482:(Le,m,l)=>{"use strict";l.d(m,{A:()=>d,e:()=>_});var i=l(576);function d(u){return(0,i.m)(null==u?void 0:u.lift)}function _(u){return s=>{if(d(s))return s.lift(function(b){try{return u(b,this)}catch(C){this.error(C)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(Le,m,l)=>{"use strict";l.d(m,{Z:()=>u});var i=l(4004);const{isArray:d}=Array;function u(s){return(0,i.U)(b=>function _(s,b){return d(b)?s(...b):s(b)}(s,b))}},5032:(Le,m,l)=>{"use strict";function i(){}l.d(m,{Z:()=>i})},9635:(Le,m,l)=>{"use strict";l.d(m,{z:()=>d,U:()=>_});var i=l(4671);function d(...u){return _(u)}function _(u){return 0===u.length?i.y:1===u.length?u[0]:function(b){return u.reduce((C,T)=>T(C),b)}}},7849:(Le,m,l)=>{"use strict";l.d(m,{h:()=>_});var i=l(2416),d=l(3410);function _(u){d.z.setTimeout(()=>{const{onUnhandledError:s}=i.v;if(!s)throw u;s(u)})}},4532:(Le,m,l)=>{"use strict";function i(d){return new TypeError(`You provided ${null!==d&&"object"==typeof d?"an invalid object":`'${d}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}l.d(m,{z:()=>i})},3642:(Le,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.generateRxMethod=m.generateMethodSignature=m.generateErrorClass=m.generateClass=m.generateErrorType=m.generateEnum=m.generateJsonRepresentation=m.mangle=m.generateSwiftTypeName=void 0;const i=l(6676);function d(S){switch(S.constructor){case i.IntPrimitiveType:return"Int";case i.UIntPrimitiveType:return"UInt";case i.MoneyPrimitiveType:return"Int64";case i.FloatPrimitiveType:return"Double";case i.BigIntPrimitiveType:return"Decimal";case i.DatePrimitiveType:case i.DateTimePrimitiveType:return"Date";case i.BoolPrimitiveType:return"Bool";case i.BytesPrimitiveType:return"Data";case i.StringPrimitiveType:case i.CpfPrimitiveType:case i.CnpjPrimitiveType:case i.EmailPrimitiveType:case i.HtmlPrimitiveType:case i.UuidPrimitiveType:case i.HexPrimitiveType:case i.UrlPrimitiveType:case i.Base64PrimitiveType:case i.XmlPrimitiveType:return"String";case i.VoidPrimitiveType:return"Void";case i.JsonPrimitiveType:return"AnyCodable";case i.OptionalType:return`${d(S.base)}?`;case i.ArrayType:return`[${d(S.base)}]`;case i.StructType:case i.EnumType:return`API.${S.name}`;case i.TypeReference:return d(S.type);default:throw new Error(`BUG: generateSwiftTypeName with ${S.constructor.name}`)}}function _(S){return["associatedtype","deinit","extension","inout","let","in","as","break","class","continue","protocol","Protocol","rethrows","throws","static","do","else","false","for","guard","func","if","internal","struct","subscript","repeat","is","nil","Any","associativity","convenience","import","return","super","self","Self","throw","true","try","typealias","switch","case","default","defer","fallthrough","optional","var","while","catch","dynamic","didSet","Set","fileprivate","lazy","get","init","required","right","param","property","receiver","set","left","where","final","infix","indirect","open","operator","override","private","postfix","public","mutating","none","nonmutating","precedence","prefix","Type","unowned","weak","willSet"].includes(S)?`_${S}`:S}function u(S,N){switch(S.constructor){case i.StringPrimitiveType:case i.CpfPrimitiveType:case i.CnpjPrimitiveType:case i.EmailPrimitiveType:case i.HtmlPrimitiveType:case i.UrlPrimitiveType:case i.UuidPrimitiveType:case i.HexPrimitiveType:case i.Base64PrimitiveType:case i.XmlPrimitiveType:case i.IntPrimitiveType:case i.UIntPrimitiveType:case i.MoneyPrimitiveType:case i.FloatPrimitiveType:case i.BoolPrimitiveType:return`${N}`;case i.OptionalType:return`${N} == nil ? nil : ${u(S.base,`${N}!`)}`;case i.DatePrimitiveType:return`SdkgenHelper.encodeDate(date: ${N})`;case i.DateTimePrimitiveType:return`SdkgenHelper.encodeDateTime(date: ${N})`;case i.EnumType:return`${N}.rawValue`;case i.TypeReference:return`${u(S.type,`${N}`)}`;case i.StructType:return`${N}.toJSON()`;case i.ArrayType:return`${N}.map({ return ${u(S.base,"$0")} })`;case i.JsonPrimitiveType:return`try? ${N}.toJson()`;case i.VoidPrimitiveType:return"nil";case i.BytesPrimitiveType:return`${N}.base64EncodedString()`;default:throw new Error(`BUG: No result found for generateJsonRepresentation with ${S.constructor.name}`)}}m.generateSwiftTypeName=d,m.mangle=_,m.generateJsonRepresentation=u,m.generateEnum=function s(S){let N=` public enum ${S.name}: String, Codable {\n`;return N+=S.values.map(B=>` case ${_(B.value)} = "${B.value}"`).join("\n"),N+="\n }\n",N},m.generateErrorType=function b(S){let N=" public enum ErrorType: String, Codable {\n";return N+=S.map(B=>` case ${_(B)} = "${B}"`).join("\n"),N+="\n }\n",N},m.generateClass=function p(S){return` public struct ${S.name}: Codable {\n${S.fields.map(N=>` var ${_(N.name)}: ${d(N.type)}`).join("\n")}\n\n${function C(S){let N=" init(";return N+=S.fields.map(B=>`${_(B.name)}: ${d(B.type)}`).join(", "),N+=") {\n",N+=S.fields.map(B=>` self.${_(B.name)} = ${_(B.name)}`).join("\n"),N+="\n }\n",N}(S)}\n${function T(S){let N=" func toJSON() -> [String: Any] {\n";return N+=" var json = [String: Any]()\n",N+=S.fields.map(B=>` json["${_(B.name)}"] = ${u(B.type,B.name)}`).join("\n"),N+="\n return json",N+="\n }\n",N}(S)}\n }\n`},m.generateErrorClass=function y(){return" public class Failure: Error {\n var message: String?\n var code: Int?\n var type: ErrorType?\n \n init(message: String?, code: Int?, type: String?) {\n self.message = message\n self.code = code\n if let typeString = type {\n self.type = ErrorType(rawValue: typeString) ?? nil\n }\n }\n }\n"},m.generateMethodSignature=function P(S){const N=S.args.map(B=>`${_(B.name)}: ${d(B.type)}`).concat(["timeoutSeconds: Double?",`callback: ((_ result: ${S.returnType instanceof i.VoidPrimitiveType?"API.Result<API.NoReply>":`API.Result<${d(S.returnType)}>`}) -> Void)?`]);return` func ${_(S.name)}(${N.join(", ")})`},m.generateRxMethod=function O(S){const N=S.args.map(ce=>`${_(ce.name)}: ${d(ce.type)}`).concat(["timeoutSeconds: Double? = nil"]);let B=` static func ${_(S.name)}(${N.join(", ")}) -> ${S.returnType instanceof i.VoidPrimitiveType?"Observable<API.Result<API.NoReply>>":`Observable<API.Result<${d(S.returnType)}>>`} {\n`;return B+=" return Observable.create { observer -> Disposable in\n",B+=` API.calls.${_(S.name)}(${S.args.map(ce=>`${_(ce.name)}: ${_(ce.name)}`).concat(["timeoutSeconds: timeoutSeconds"]).join(", ")}) { result in \n`,B+=" observer.on(.next(result))\n",B+=" observer.on(.completed)\n",B+=" }\n",B+=" return Disposables.create()\n",B+=" }\n",B+=" }\n",B}},7295:function(Le,m,l){"use strict";var i=this&&this.__createBinding||(Object.create?function(_,u,s,b){void 0===b&&(b=s),Object.defineProperty(_,b,{enumerable:!0,get:function(){return u[s]}})}:function(_,u,s,b){void 0===b&&(b=s),_[b]=u[s]}),d=this&&this.__exportStar||function(_,u){for(var s in _)"default"!==s&&!Object.prototype.hasOwnProperty.call(u,s)&&i(u,_,s)};Object.defineProperty(m,"__esModule",{value:!0}),d(l(7636),m)},7636:(Le,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.generateSwiftClientSource=void 0;const i=l(6676),d=l(3642);m.generateSwiftClientSource=function _(u,s){let b="import Foundation\nimport SdkgenRuntime\n";b+=s?"import RxSwift\nimport RxCocoa\n\n":"\n",b+="protocol APICallsProtocol {\n",b+=u.operations.filter(p=>p.annotations.every(y=>!(y instanceof i.HiddenAnnotation))).map(p=>`${(0,d.generateMethodSignature)(p)}`).join("\n"),b+="\n}\n\n",b+='class API: SdkgenResponse {\n\n static var calls: APICallsProtocol = Calls(baseUrl: "")\n static var baseUrl: String? {\n didSet {\n self.calls = Calls(baseUrl: baseUrl ?? "")\n }\n }\n \n override init() {\n super.init()\n }\n\n';for(const p of u.enumTypes)b+=(0,d.generateEnum)(p),b+="\n";for(const p of u.structTypes)b+=(0,d.generateClass)(p),b+="\n";const C=[],T=new i.ErrorNode("Connection",new i.VoidPrimitiveType);C.push(T.name);for(const p of u.errors)C.push(p.name);return C.length>0&&(b+=(0,d.generateErrorType)(C),b+="\n"),b+=(0,d.generateErrorClass)(),b+="\n",b+=" public enum Result<T> {\n case success(T)\n case failure(Failure)\n }\n\n",b+=" public class Calls: SdkgenHttpClient, APICallsProtocol {\n\n override init(baseUrl: String) {\n super.init(baseUrl: baseUrl)\n }\n\n",b+=u.operations.filter(p=>p.annotations.every(y=>!(y instanceof i.HiddenAnnotation))).map(p=>{let y="";return y+=` ${(0,d.generateMethodSignature)(p)} {\n`,p.args.length>0?(y+=" var jsonArgs = [String: Any]()\n",y+=p.args.map(P=>` jsonArgs["${(0,d.mangle)(P.name)}"] = ${(0,d.generateJsonRepresentation)(P.type,(0,d.mangle)(P.name))}`).join("\n")):y+=" let jsonArgs = [String: Any]()",y+="\n\n",y+=` request("${p.name}", jsonArgs, timeoutSeconds, completion: { (value: ${p.returnType instanceof i.VoidPrimitiveType?"API.NoReply":(0,d.generateSwiftTypeName)(p.returnType)}) in\n`,y+=" callback?(API.Result.success(value))\n",y+=" }, onError: { error in\n",y+=" callback?(API.Result.failure(API.Failure(message: error.message, code: error.code, type: error.type)))\n",y+=" })",y+="\n }\n",y}).join("\n"),b+=" }\n",b+="}\n",s&&(b+="\n",b+="extension API: ReactiveCompatible {}\n\n",b+="extension Reactive where Base: API {\n",b+=u.operations.filter(p=>p.annotations.every(y=>!(y instanceof i.HiddenAnnotation))).map(p=>`${(0,d.generateRxMethod)(p)}`).join("\n"),b+="}\n"),b}},8173:(Le,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.generateBrowserClientSource=void 0;const i=l(6676),d=l(5596);m.generateBrowserClientSource=function _(u){let s="";s+=`/* eslint-disable */\nimport { SdkgenError${u.errors.some(C=>!(C.dataType instanceof i.VoidPrimitiveType))?", SdkgenErrorWithData":""}, SdkgenHttpClient } from "@sdkgen/browser-runtime";\n\n`;for(const C of u.enumTypes)s+=(0,d.generateTypescriptEnum)(C),s+="\n";for(const C of u.structTypes)s+=(0,d.generateTypescriptInterface)(C,!0),s+="\n";for(const C of u.errors)s+=(0,d.generateTypescriptErrorClass)(C,!0),s+="\n";return s+=`export class ApiClient extends SdkgenHttpClient {\n constructor(baseUrl: string) {\n super(baseUrl, astJson, errClasses);\n }\n${u.operations.filter(C=>C.annotations.every(T=>!(T instanceof i.HiddenAnnotation))).map(C=>`\n ${C.name}(args${0===C.args.length?"?":""}: {${C.args.map(T=>`${T.name}${T.type.name.endsWith("?")?"?":""}: ${(0,d.generateTypescriptTypeName)(T.type,!0)}`).join(", ")}}): Promise<${(0,d.generateTypescriptTypeName)(C.returnType,!0)}> { return this.makeRequest("${C.name}", args || {}); }`).join("")}\n}\n\n`,s+=`const errClasses = {\n${u.errors.map(C=>` ${C.name}`).join(",\n")}\n};\n\n`,s+=`const astJson = ${JSON.stringify((0,i.astToJson)(u),null,4).replace(/"(?<key>\w+)":/gu,"$<key>:")} as const;\n`,s}},5596:(Le,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.clearForLogging=m.generateTypescriptErrorClass=m.generateTypescriptEnum=m.generateTypescriptInterface=m.generateTypescriptTypeName=void 0;const i=l(6676);function d(C,T){switch(C.constructor){case i.IntPrimitiveType:case i.UIntPrimitiveType:case i.MoneyPrimitiveType:case i.FloatPrimitiveType:return"number";case i.BigIntPrimitiveType:return"bigint";case i.DatePrimitiveType:case i.DateTimePrimitiveType:return"Date";case i.BoolPrimitiveType:return"boolean";case i.BytesPrimitiveType:return T?"ArrayBuffer":"Buffer";case i.StringPrimitiveType:case i.CpfPrimitiveType:case i.CnpjPrimitiveType:case i.EmailPrimitiveType:case i.HtmlPrimitiveType:case i.UrlPrimitiveType:case i.UuidPrimitiveType:case i.HexPrimitiveType:case i.Base64PrimitiveType:case i.XmlPrimitiveType:return"string";case i.VoidPrimitiveType:return"void";case i.JsonPrimitiveType:return"any";case i.OptionalType:return`${d(C.base,T)} | null`;case i.ArrayType:{const{base:p}=C,y=d(p,T);return p instanceof i.OptionalType?`(${y})[]`:`${y}[]`}case i.StructType:case i.EnumType:return C.name;case i.TypeReference:return d(C.type,T);default:throw new Error(`BUG: generateTypescriptTypeName with ${C.constructor.name}`)}}m.generateTypescriptTypeName=d,m.generateTypescriptInterface=function _(C,T){return`export interface ${C.name} {\n${C.fields.map(p=>` ${p.name}: ${d(p.type,T)}`).join("\n")}\n}\n`},m.generateTypescriptEnum=function u(C){return`export type ${C.name} = ${C.values.map(T=>`"${T.value}"`).join(" | ")};\n`},m.generateTypescriptErrorClass=function s(C,T){return`export class ${C.name} extends ${C.dataType instanceof i.VoidPrimitiveType?"SdkgenError":`SdkgenErrorWithData<${d(C.dataType,T)}>`} {}\n`},m.clearForLogging=function b(C,T){switch(T.constructor){case i.TypeReference:return b(C,T.type);case i.OptionalType:{const p=b(C,T.base);return p?`if (${C} !== null && ${C} !== undefined) { ${p} }`:""}case i.ArrayType:{const p=b("el",T.base);return p?`for (const el of ${C}) { ${p} }`:""}case i.StructType:{const p=[];for(const y of T.fields)if(y.secret)p.push(`${C}.${y.name} = "<secret>";`);else{const P=b(`${C}.${y.name}`,y.type);P&&p.push(P)}return p.join(" ")}default:return""}}},2911:function(Le,m,l){"use strict";var i=this&&this.__createBinding||(Object.create?function(_,u,s,b){void 0===b&&(b=s),Object.defineProperty(_,b,{enumerable:!0,get:function(){return u[s]}})}:function(_,u,s,b){void 0===b&&(b=s),_[b]=u[s]}),d=this&&this.__exportStar||function(_,u){for(var s in _)"default"!==s&&!Object.prototype.hasOwnProperty.call(u,s)&&i(u,_,s)};Object.defineProperty(m,"__esModule",{value:!0}),d(l(8173),m),d(l(7538),m),d(l(1727),m),d(l(615),m)},7538:(Le,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.generateTypescriptInterfaces=void 0;const i=l(5596);m.generateTypescriptInterfaces=function d(_){let u="";for(const s of _.enumTypes)u+=(0,i.generateTypescriptEnum)(s);u+="\n";for(const s of _.structTypes)u+=(0,i.generateTypescriptInterface)(s,!1),u+="\n";return u}},1727:(Le,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.generateNodeClientSource=void 0;const i=l(6676),d=l(5596);m.generateNodeClientSource=function _(u){let s="";const b=u.errors.some(T=>!(T.dataType instanceof i.VoidPrimitiveType));s+=`/* eslint-disable */\nimport { Context, Fatal${u.errors.filter(T=>"Fatal"!==T.name).some(T=>T.dataType instanceof i.VoidPrimitiveType)?", SdkgenError":""}${b?", SdkgenErrorWithData":""}, SdkgenHttpClient } from "@sdkgen/node-runtime";\nimport { PartialDeep } from "type-fest";\nexport { Fatal } from "@sdkgen/node-runtime";\n\n`;for(const T of u.enumTypes)s+=(0,d.generateTypescriptEnum)(T),s+="\n";for(const T of u.structTypes)s+=(0,d.generateTypescriptInterface)(T,!1),s+="\n";for(const T of u.errors)"Fatal"!==T.name&&(s+=(0,d.generateTypescriptErrorClass)(T,!1),s+="\n");return s+=`export class ApiClient extends SdkgenHttpClient {\n constructor(baseUrl: string) {\n super(baseUrl, astJson, errClasses);\n }\n${u.operations.filter(T=>T.annotations.every(p=>!(p instanceof i.HiddenAnnotation))).map(T=>`\n ${T.name}(ctx: PartialDeep<Context> | null, args: {${T.args.map(p=>`${p.name}${p.type.name.endsWith("?")?"?":""}: ${(0,d.generateTypescriptTypeName)(p.type,!1)}`).join(", ")}}): Promise<${(0,d.generateTypescriptTypeName)(T.returnType,!1)}> { return this.makeRequest(ctx, "${T.name}", args); }`).join("")}\n}\n\n`,s+=`const errClasses = {\n${u.errors.map(T=>` ${T.name}`).join(",\n")}\n};\n\n`,s+=`const astJson = ${JSON.stringify((0,i.astToJson)(u),null,4).replace(/"(?<key>\w+)":/gu,"$<key>:")} as const;\n`,s}},615:(Le,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.generateNodeServerSource=void 0;const i=l(6676),d=l(5596);m.generateNodeServerSource=function _(u){let s="";const b=u.errors.some(T=>!(T.dataType instanceof i.VoidPrimitiveType));s+=`/* eslint-disable */\nimport { BaseApiConfig, Context, Fatal${u.errors.filter(T=>"Fatal"!==T.name).some(T=>T.dataType instanceof i.VoidPrimitiveType)?", SdkgenError":""}${b?", SdkgenErrorWithData":""} } from "@sdkgen/node-runtime";\nexport { Fatal } from "@sdkgen/node-runtime";\n\n`;for(const T of u.enumTypes)s+=(0,d.generateTypescriptEnum)(T),s+="\n";for(const T of u.structTypes)s+=(0,d.generateTypescriptInterface)(T,!1),s+="\n";for(const T of u.errors)"Fatal"!==T.name&&(s+=(0,d.generateTypescriptErrorClass)(T,!1),s+="\n");return s+=`export class ApiConfig<ExtraContextT> extends BaseApiConfig<ExtraContextT> {\n fn!: {${u.operations.map(T=>`\n ${T.name}: (args: {${T.args.map(p=>`${p.name}: ${(0,d.generateTypescriptTypeName)(p.type,!1)}`).join(", ")}}) => Promise<${(0,d.generateTypescriptTypeName)(T.returnType,!1)}>`).join("")}\n }\n\n astJson = ${JSON.stringify((0,i.astToJson)(u),null,4).replace(/"(?<key>\w+)":/gu,"$<key>:").replace(/\n/gu,"\n ")} as const\n}\n\nexport const api = new ApiConfig<{}>();\n`,s}},8926:Le=>{function m(i,d,_,u,s,b,C){try{var T=i[b](C),p=T.value}catch(y){return void _(y)}T.done?d(p):Promise.resolve(p).then(u,s)}Le.exports=function l(i){return function(){var d=this,_=arguments;return new Promise(function(u,s){var b=i.apply(d,_);function C(p){m(b,u,s,C,T,"next",p)}function T(p){m(b,u,s,C,T,"throw",p)}C(void 0)})}},Le.exports.default=Le.exports,Le.exports.__esModule=!0},655:(Le,m,l)=>{"use strict";l.r(m),l.d(m,{__extends:()=>d,__assign:()=>_,__rest:()=>u,__decorate:()=>s,__param:()=>b,__metadata:()=>C,__awaiter:()=>T,__generator:()=>p,__createBinding:()=>y,__exportStar:()=>P,__values:()=>O,__read:()=>S,__spread:()=>N,__spreadArrays:()=>B,__spreadArray:()=>ce,__await:()=>K,__asyncGenerator:()=>re,__asyncDelegator:()=>Me,__asyncValues:()=>pe,__makeTemplateObject:()=>be,__importStar:()=>xe,__importDefault:()=>He,__classPrivateFieldGet:()=>et,__classPrivateFieldSet:()=>ct});var i=function(X,me){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(z,oe){z.__proto__=oe}||function(z,oe){for(var ke in oe)Object.prototype.hasOwnProperty.call(oe,ke)&&(z[ke]=oe[ke])})(X,me)};function d(X,me){if("function"!=typeof me&&null!==me)throw new TypeError("Class extends value "+String(me)+" is not a constructor or null");function z(){this.constructor=X}i(X,me),X.prototype=null===me?Object.create(me):(z.prototype=me.prototype,new z)}var _=function(){return _=Object.assign||function(me){for(var z,oe=1,ke=arguments.length;oe<ke;oe++)for(var de in z=arguments[oe])Object.prototype.hasOwnProperty.call(z,de)&&(me[de]=z[de]);return me},_.apply(this,arguments)};function u(X,me){var z={};for(var oe in X)Object.prototype.hasOwnProperty.call(X,oe)&&me.indexOf(oe)<0&&(z[oe]=X[oe]);if(null!=X&&"function"==typeof Object.getOwnPropertySymbols){var ke=0;for(oe=Object.getOwnPropertySymbols(X);ke<oe.length;ke++)me.indexOf(oe[ke])<0&&Object.prototype.propertyIsEnumerable.call(X,oe[ke])&&(z[oe[ke]]=X[oe[ke]])}return z}function s(X,me,z,oe){var Ue,ke=arguments.length,de=ke<3?me:null===oe?oe=Object.getOwnPropertyDescriptor(me,z):oe;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)de=Reflect.decorate(X,me,z,oe);else for(var fe=X.length-1;fe>=0;fe--)(Ue=X[fe])&&(de=(ke<3?Ue(de):ke>3?Ue(me,z,de):Ue(me,z))||de);return ke>3&&de&&Object.defineProperty(me,z,de),de}function b(X,me){return function(z,oe){me(z,oe,X)}}function C(X,me){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(X,me)}function T(X,me,z,oe){return new(z||(z=Promise))(function(de,Ue){function fe(Ge){try{Te(oe.next(Ge))}catch(vt){Ue(vt)}}function Je(Ge){try{Te(oe.throw(Ge))}catch(vt){Ue(vt)}}function Te(Ge){Ge.done?de(Ge.value):function ke(de){return de instanceof z?de:new z(function(Ue){Ue(de)})}(Ge.value).then(fe,Je)}Te((oe=oe.apply(X,me||[])).next())})}function p(X,me){var oe,ke,de,Ue,z={label:0,sent:function(){if(1&de[0])throw de[1];return de[1]},trys:[],ops:[]};return Ue={next:fe(0),throw:fe(1),return:fe(2)},"function"==typeof Symbol&&(Ue[Symbol.iterator]=function(){return this}),Ue;function fe(Te){return function(Ge){return function Je(Te){if(oe)throw new TypeError("Generator is already executing.");for(;z;)try{if(oe=1,ke&&(de=2&Te[0]?ke.return:Te[0]?ke.throw||((de=ke.return)&&de.call(ke),0):ke.next)&&!(de=de.call(ke,Te[1])).done)return de;switch(ke=0,de&&(Te=[2&Te[0],de.value]),Te[0]){case 0:case 1:de=Te;break;case 4:return z.label++,{value:Te[1],done:!1};case 5:z.label++,ke=Te[1],Te=[0];continue;case 7:Te=z.ops.pop(),z.trys.pop();continue;default:if(!(de=(de=z.trys).length>0&&de[de.length-1])&&(6===Te[0]||2===Te[0])){z=0;continue}if(3===Te[0]&&(!de||Te[1]>de[0]&&Te[1]<de[3])){z.label=Te[1];break}if(6===Te[0]&&z.label<de[1]){z.label=de[1],de=Te;break}if(de&&z.label<de[2]){z.label=de[2],z.ops.push(Te);break}de[2]&&z.ops.pop(),z.trys.pop();continue}Te=me.call(X,z)}catch(Ge){Te=[6,Ge],ke=0}finally{oe=de=0}if(5&Te[0])throw Te[1];return{value:Te[0]?Te[1]:void 0,done:!0}}([Te,Ge])}}}var y=Object.create?function(X,me,z,oe){void 0===oe&&(oe=z),Object.defineProperty(X,oe,{enumerable:!0,get:function(){return me[z]}})}:function(X,me,z,oe){void 0===oe&&(oe=z),X[oe]=me[z]};function P(X,me){for(var z in X)"default"!==z&&!Object.prototype.hasOwnProperty.call(me,z)&&y(me,X,z)}function O(X){var me="function"==typeof Symbol&&Symbol.iterator,z=me&&X[me],oe=0;if(z)return z.call(X);if(X&&"number"==typeof X.length)return{next:function(){return X&&oe>=X.length&&(X=void 0),{value:X&&X[oe++],done:!X}}};throw new TypeError(me?"Object is not iterable.":"Symbol.iterator is not defined.")}function S(X,me){var z="function"==typeof Symbol&&X[Symbol.iterator];if(!z)return X;var ke,Ue,oe=z.call(X),de=[];try{for(;(void 0===me||me-- >0)&&!(ke=oe.next()).done;)de.push(ke.value)}catch(fe){Ue={error:fe}}finally{try{ke&&!ke.done&&(z=oe.return)&&z.call(oe)}finally{if(Ue)throw Ue.error}}return de}function N(){for(var X=[],me=0;me<arguments.length;me++)X=X.concat(S(arguments[me]));return X}function B(){for(var X=0,me=0,z=arguments.length;me<z;me++)X+=arguments[me].length;var oe=Array(X),ke=0;for(me=0;me<z;me++)for(var de=arguments[me],Ue=0,fe=de.length;Ue<fe;Ue++,ke++)oe[ke]=de[Ue];return oe}function ce(X,me,z){if(z||2===arguments.length)for(var de,oe=0,ke=me.length;oe<ke;oe++)(de||!(oe in me))&&(de||(de=Array.prototype.slice.call(me,0,oe)),de[oe]=me[oe]);return X.concat(de||Array.prototype.slice.call(me))}function K(X){return this instanceof K?(this.v=X,this):new K(X)}function re(X,me,z){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ke,oe=z.apply(X,me||[]),de=[];return ke={},Ue("next"),Ue("throw"),Ue("return"),ke[Symbol.asyncIterator]=function(){return this},ke;function Ue(St){oe[St]&&(ke[St]=function(Re){return new Promise(function(qe,Y){de.push([St,Re,qe,Y])>1||fe(St,Re)})})}function fe(St,Re){try{!function Je(St){St.value instanceof K?Promise.resolve(St.value.v).then(Te,Ge):vt(de[0][2],St)}(oe[St](Re))}catch(qe){vt(de[0][3],qe)}}function Te(St){fe("next",St)}function Ge(St){fe("throw",St)}function vt(St,Re){St(Re),de.shift(),de.length&&fe(de[0][0],de[0][1])}}function Me(X){var me,z;return me={},oe("next"),oe("throw",function(ke){throw ke}),oe("return"),me[Symbol.iterator]=function(){return this},me;function oe(ke,de){me[ke]=X[ke]?function(Ue){return(z=!z)?{value:K(X[ke](Ue)),done:"return"===ke}:de?de(Ue):Ue}:de}}function pe(X){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var z,me=X[Symbol.asyncIterator];return me?me.call(X):(X=O(X),z={},oe("next"),oe("throw"),oe("return"),z[Symbol.asyncIterator]=function(){return this},z);function oe(de){z[de]=X[de]&&function(Ue){return new Promise(function(fe,Je){!function ke(de,Ue,fe,Je){Promise.resolve(Je).then(function(Te){de({value:Te,done:fe})},Ue)}(fe,Je,(Ue=X[de](Ue)).done,Ue.value)})}}}function be(X,me){return Object.defineProperty?Object.defineProperty(X,"raw",{value:me}):X.raw=me,X}var ue=Object.create?function(X,me){Object.defineProperty(X,"default",{enumerable:!0,value:me})}:function(X,me){X.default=me};function xe(X){if(X&&X.__esModule)return X;var me={};if(null!=X)for(var z in X)"default"!==z&&Object.prototype.hasOwnProperty.call(X,z)&&y(me,X,z);return ue(me,X),me}function He(X){return X&&X.__esModule?X:{default:X}}function et(X,me,z,oe){if("a"===z&&!oe)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof me?X!==me||!oe:!me.has(X))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===z?oe:"a"===z?oe.call(X):oe?oe.value:me.get(X)}function ct(X,me,z,oe,ke){if("m"===oe)throw new TypeError("Private method is not writable");if("a"===oe&&!ke)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof me?X!==me||!ke:!me.has(X))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===oe?ke.call(X,z):ke?ke.value=z:me.set(X,z),z}},1777:(Le,m,l)=>{"use strict";l.d(m,{l3:()=>_,_j:()=>i,LC:()=>d,ZN:()=>re,jt:()=>s,F4:()=>y,vP:()=>C,SB:()=>p,oB:()=>T,eR:()=>P,X$:()=>u,ZE:()=>Me,k1:()=>pe});class i{}class d{}const _="*";function u(be,ue){return{type:7,name:be,definitions:ue,options:{}}}function s(be,ue=null){return{type:4,styles:ue,timings:be}}function C(be,ue=null){return{type:2,steps:be,options:ue}}function T(be){return{type:6,styles:be,offset:null}}function p(be,ue,xe){return{type:0,name:be,styles:ue,options:xe}}function y(be){return{type:5,steps:be}}function P(be,ue,xe=null){return{type:1,expr:be,animation:ue,options:xe}}function K(be){Promise.resolve(null).then(be)}class re{constructor(ue=0,xe=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=ue+xe}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(ue=>ue()),this._onDoneFns=[])}onStart(ue){this._onStartFns.push(ue)}onDone(ue){this._onDoneFns.push(ue)}onDestroy(ue){this._onDestroyFns.push(ue)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){K(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(ue=>ue()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(ue=>ue()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(ue){this._position=this.totalTime?ue*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(ue){const xe="start"==ue?this._onStartFns:this._onDoneFns;xe.forEach(He=>He()),xe.length=0}}class Me{constructor(ue){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=ue;let xe=0,He=0,et=0;const ct=this.players.length;0==ct?K(()=>this._onFinish()):this.players.forEach(X=>{X.onDone(()=>{++xe==ct&&this._onFinish()}),X.onDestroy(()=>{++He==ct&&this._onDestroy()}),X.onStart(()=>{++et==ct&&this._onStart()})}),this.totalTime=this.players.reduce((X,me)=>Math.max(X,me.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(ue=>ue()),this._onDoneFns=[])}init(){this.players.forEach(ue=>ue.init())}onStart(ue){this._onStartFns.push(ue)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(ue=>ue()),this._onStartFns=[])}onDone(ue){this._onDoneFns.push(ue)}onDestroy(ue){this._onDestroyFns.push(ue)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(ue=>ue.play())}pause(){this.players.forEach(ue=>ue.pause())}restart(){this.players.forEach(ue=>ue.restart())}finish(){this._onFinish(),this.players.forEach(ue=>ue.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(ue=>ue.destroy()),this._onDestroyFns.forEach(ue=>ue()),this._onDestroyFns=[])}reset(){this.players.forEach(ue=>ue.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(ue){const xe=ue*this.totalTime;this.players.forEach(He=>{const et=He.totalTime?Math.min(1,xe/He.totalTime):1;He.setPosition(et)})}getPosition(){const ue=this.players.reduce((xe,He)=>null===xe||He.totalTime>xe.totalTime?He:xe,null);return null!=ue?ue.getPosition():0}beforeDestroy(){this.players.forEach(ue=>{ue.beforeDestroy&&ue.beforeDestroy()})}triggerCallback(ue){const xe="start"==ue?this._onStartFns:this._onDoneFns;xe.forEach(He=>He()),xe.length=0}}const pe="!"},5664:(Le,m,l)=>{"use strict";l.d(m,{rt:()=>Se,$s:()=>z,kH:()=>Ot,Em:()=>fe,tE:()=>Qt,qV:()=>Rt,qm:()=>Qe,ic:()=>Te,X6:()=>Ce,yG:()=>_e});var i=l(9808),d=l(5e3),_=l(6758),u=l(6921),s=l(1135),b=l(9646),C=l(1159),T=l(8505),p=l(8372),y=l(9300),P=l(4004),O=l(5698),S=l(5684),N=l(1884),B=l(2722),ce=l(3191),K=l(925),re=l(7144);function ue(De,w){return(De.getAttribute(w)||"").match(/\S+/g)||[]}const xe="cdk-describedby-message-container",He="cdk-describedby-message",et="cdk-describedby-host";let ct=0;const X=new Map;let me=null,z=(()=>{class De{constructor(I){this._document=I}describe(I,M,G){if(!this._canBeDescribed(I,M))return;const ot=oe(M,G);"string"!=typeof M?(ke(M),X.set(ot,{messageElement:M,referenceCount:0})):X.has(ot)||this._createMessageElement(M,G),this._isElementDescribedByMessage(I,ot)||this._addMessageReference(I,ot)}removeDescription(I,M,G){if(!M||!this._isElementNode(I))return;const ot=oe(M,G);if(this._isElementDescribedByMessage(I,ot)&&this._removeMessageReference(I,ot),"string"==typeof M){const Et=X.get(ot);Et&&0===Et.referenceCount&&this._deleteMessageElement(ot)}me&&0===me.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const I=this._document.querySelectorAll(`[${et}]`);for(let M=0;M<I.length;M++)this._removeCdkDescribedByReferenceIds(I[M]),I[M].removeAttribute(et);me&&this._deleteMessagesContainer(),X.clear()}_createMessageElement(I,M){const G=this._document.createElement("div");ke(G),G.textContent=I,M&&G.setAttribute("role",M),this._createMessagesContainer(),me.appendChild(G),X.set(oe(I,M),{messageElement:G,referenceCount:0})}_deleteMessageElement(I){var M;const G=X.get(I);null===(M=null==G?void 0:G.messageElement)||void 0===M||M.remove(),X.delete(I)}_createMessagesContainer(){if(!me){const I=this._document.getElementById(xe);null==I||I.remove(),me=this._document.createElement("div"),me.id=xe,me.style.visibility="hidden",me.classList.add("cdk-visually-hidden"),this._document.body.appendChild(me)}}_deleteMessagesContainer(){me&&(me.remove(),me=null)}_removeCdkDescribedByReferenceIds(I){const M=ue(I,"aria-describedby").filter(G=>0!=G.indexOf(He));I.setAttribute("aria-describedby",M.join(" "))}_addMessageReference(I,M){const G=X.get(M);(function pe(De,w,I){const M=ue(De,w);M.some(G=>G.trim()==I.trim())||(M.push(I.trim()),De.setAttribute(w,M.join(" ")))})(I,"aria-describedby",G.messageElement.id),I.setAttribute(et,""),G.referenceCount++}_removeMessageReference(I,M){const G=X.get(M);G.referenceCount--,function be(De,w,I){const G=ue(De,w).filter(ot=>ot!=I.trim());G.length?De.setAttribute(w,G.join(" ")):De.removeAttribute(w)}(I,"aria-describedby",G.messageElement.id),I.removeAttribute(et)}_isElementDescribedByMessage(I,M){const G=ue(I,"aria-describedby"),ot=X.get(M),Et=ot&&ot.messageElement.id;return!!Et&&-1!=G.indexOf(Et)}_canBeDescribed(I,M){if(!this._isElementNode(I))return!1;if(M&&"object"==typeof M)return!0;const G=null==M?"":`${M}`.trim(),ot=I.getAttribute("aria-label");return!(!G||ot&&ot.trim()===G)}_isElementNode(I){return I.nodeType===this._document.ELEMENT_NODE}}return De.\u0275fac=function(I){return new(I||De)(d.\u0275\u0275inject(i.DOCUMENT))},De.\u0275prov=d.\u0275\u0275defineInjectable({token:De,factory:De.\u0275fac,providedIn:"root"}),De})();function oe(De,w){return"string"==typeof De?`${w||""}/${De}`:De}function ke(De){De.id||(De.id=`${He}-${ct++}`)}class fe extends class de{constructor(w){this._items=w,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new _.x,this._typeaheadSubscription=u.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=I=>I.disabled,this._pressedLetters=[],this.tabOut=new _.x,this.change=new _.x,w instanceof d.QueryList&&w.changes.subscribe(I=>{if(this._activeItem){const G=I.toArray().indexOf(this._activeItem);G>-1&&G!==this._activeItemIndex&&(this._activeItemIndex=G)}})}skipPredicate(w){return this._skipPredicateFn=w,this}withWrap(w=!0){return this._wrap=w,this}withVerticalOrientation(w=!0){return this._vertical=w,this}withHorizontalOrientation(w){return this._horizontal=w,this}withAllowedModifierKeys(w){return this._allowedModifierKeys=w,this}withTypeAhead(w=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,T.b)(I=>this._pressedLetters.push(I)),(0,p.b)(w),(0,y.h)(()=>this._pressedLetters.length>0),(0,P.U)(()=>this._pressedLetters.join(""))).subscribe(I=>{const M=this._getItemsArray();for(let G=1;G<M.length+1;G++){const ot=(this._activeItemIndex+G)%M.length,Et=M[ot];if(!this._skipPredicateFn(Et)&&0===Et.getLabel().toUpperCase().trim().indexOf(I)){this.setActiveItem(ot);break}}this._pressedLetters=[]}),this}withHomeAndEnd(w=!0){return this._homeAndEnd=w,this}setActiveItem(w){const I=this._activeItem;this.updateActiveItem(w),this._activeItem!==I&&this.change.next(this._activeItemIndex)}onKeydown(w){const I=w.keyCode,G=["altKey","ctrlKey","metaKey","shiftKey"].every(ot=>!w[ot]||this._allowedModifierKeys.indexOf(ot)>-1);switch(I){case C.Mf:return void this.tabOut.next();case C.JH:if(this._vertical&&G){this.setNextItemActive();break}return;case C.LH:if(this._vertical&&G){this.setPreviousItemActive();break}return;case C.SV:if(this._horizontal&&G){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case C.oh:if(this._horizontal&&G){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case C.Sd:if(this._homeAndEnd&&G){this.setFirstItemActive();break}return;case C.uR:if(this._homeAndEnd&&G){this.setLastItemActive();break}return;default:return void((G||(0,C.Vb)(w,"shiftKey"))&&(w.key&&1===w.key.length?this._letterKeyStream.next(w.key.toLocaleUpperCase()):(I>=C.A&&I<=C.Z||I>=C.xE&&I<=C.aO)&&this._letterKeyStream.next(String.fromCharCode(I))))}this._pressedLetters=[],w.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(w){const I=this._getItemsArray(),M="number"==typeof w?w:I.indexOf(w),G=I[M];this._activeItem=null==G?null:G,this._activeItemIndex=M}_setActiveItemByDelta(w){this._wrap?this._setActiveInWrapMode(w):this._setActiveInDefaultMode(w)}_setActiveInWrapMode(w){const I=this._getItemsArray();for(let M=1;M<=I.length;M++){const G=(this._activeItemIndex+w*M+I.length)%I.length;if(!this._skipPredicateFn(I[G]))return void this.setActiveItem(G)}}_setActiveInDefaultMode(w){this._setActiveItemByIndex(this._activeItemIndex+w,w)}_setActiveItemByIndex(w,I){const M=this._getItemsArray();if(M[w]){for(;this._skipPredicateFn(M[w]);)if(!M[w+=I])return;this.setActiveItem(w)}}_getItemsArray(){return this._items instanceof d.QueryList?this._items.toArray():this._items}}{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(w){return this._origin=w,this}setActiveItem(w){super.setActiveItem(w),this.activeItem&&this.activeItem.focus(this._origin)}}let Te=(()=>{class De{constructor(I){this._platform=I}isDisabled(I){return I.hasAttribute("disabled")}isVisible(I){return function vt(De){return!!(De.offsetWidth||De.offsetHeight||"function"==typeof De.getClientRects&&De.getClientRects().length)}(I)&&"visible"===getComputedStyle(I).visibility}isTabbable(I){if(!this._platform.isBrowser)return!1;const M=function Ge(De){try{return De.frameElement}catch(w){return null}}(function pt(De){return De.ownerDocument&&De.ownerDocument.defaultView||window}(I));if(M&&(-1===Ie(M)||!this.isVisible(M)))return!1;let G=I.nodeName.toLowerCase(),ot=Ie(I);return I.hasAttribute("contenteditable")?-1!==ot:!("iframe"===G||"object"===G||this._platform.WEBKIT&&this._platform.IOS&&!function ge(De){let w=De.nodeName.toLowerCase(),I="input"===w&&De.type;return"text"===I||"password"===I||"select"===w||"textarea"===w}(I))&&("audio"===G?!!I.hasAttribute("controls")&&-1!==ot:"video"===G?-1!==ot&&(null!==ot||this._platform.FIREFOX||I.hasAttribute("controls")):I.tabIndex>=0)}isFocusable(I,M){return function Xe(De){return!function Re(De){return function Y(De){return"input"==De.nodeName.toLowerCase()}(De)&&"hidden"==De.type}(De)&&(function St(De){let w=De.nodeName.toLowerCase();return"input"===w||"select"===w||"button"===w||"textarea"===w}(De)||function qe(De){return function he(De){return"a"==De.nodeName.toLowerCase()}(De)&&De.hasAttribute("href")}(De)||De.hasAttribute("contenteditable")||Ee(De))}(I)&&!this.isDisabled(I)&&((null==M?void 0:M.ignoreVisibility)||this.isVisible(I))}}return De.\u0275fac=function(I){return new(I||De)(d.\u0275\u0275inject(K.t4))},De.\u0275prov=d.\u0275\u0275defineInjectable({token:De,factory:De.\u0275fac,providedIn:"root"}),De})();function Ee(De){if(!De.hasAttribute("tabindex")||void 0===De.tabIndex)return!1;let w=De.getAttribute("tabindex");return!(!w||isNaN(parseInt(w,10)))}function Ie(De){if(!Ee(De))return null;const w=parseInt(De.getAttribute("tabindex")||"",10);return isNaN(w)?-1:w}class Tt{constructor(w,I,M,G,ot=!1){this._element=w,this._checker=I,this._ngZone=M,this._document=G,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,ot||this.attachAnchors()}get enabled(){return this._enabled}set enabled(w){this._enabled=w,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(w,this._startAnchor),this._toggleAnchorTabIndex(w,this._endAnchor))}destroy(){const w=this._startAnchor,I=this._endAnchor;w&&(w.removeEventListener("focus",this.startAnchorListener),w.remove()),I&&(I.removeEventListener("focus",this.endAnchorListener),I.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(w){return new Promise(I=>{this._executeOnStable(()=>I(this.focusInitialElement(w)))})}focusFirstTabbableElementWhenReady(w){return new Promise(I=>{this._executeOnStable(()=>I(this.focusFirstTabbableElement(w)))})}focusLastTabbableElementWhenReady(w){return new Promise(I=>{this._executeOnStable(()=>I(this.focusLastTabbableElement(w)))})}_getRegionBoundary(w){const I=this._element.querySelectorAll(`[cdk-focus-region-${w}], [cdkFocusRegion${w}], [cdk-focus-${w}]`);return"start"==w?I.length?I[0]:this._getFirstTabbableElement(this._element):I.length?I[I.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(w){const I=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(I){if(!this._checker.isFocusable(I)){const M=this._getFirstTabbableElement(I);return null==M||M.focus(w),!!M}return I.focus(w),!0}return this.focusFirstTabbableElement(w)}focusFirstTabbableElement(w){const I=this._getRegionBoundary("start");return I&&I.focus(w),!!I}focusLastTabbableElement(w){const I=this._getRegionBoundary("end");return I&&I.focus(w),!!I}hasAttached(){return this._hasAttached}_getFirstTabbableElement(w){if(this._checker.isFocusable(w)&&this._checker.isTabbable(w))return w;const I=w.children;for(let M=0;M<I.length;M++){const G=I[M].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(I[M]):null;if(G)return G}return null}_getLastTabbableElement(w){if(this._checker.isFocusable(w)&&this._checker.isTabbable(w))return w;const I=w.children;for(let M=I.length-1;M>=0;M--){const G=I[M].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(I[M]):null;if(G)return G}return null}_createAnchor(){const w=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,w),w.classList.add("cdk-visually-hidden"),w.classList.add("cdk-focus-trap-anchor"),w.setAttribute("aria-hidden","true"),w}_toggleAnchorTabIndex(w,I){w?I.setAttribute("tabindex","0"):I.removeAttribute("tabindex")}toggleAnchors(w){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(w,this._startAnchor),this._toggleAnchorTabIndex(w,this._endAnchor))}_executeOnStable(w){this._ngZone.isStable?w():this._ngZone.onStable.pipe((0,O.q)(1)).subscribe(w)}}let Rt=(()=>{class De{constructor(I,M,G){this._checker=I,this._ngZone=M,this._document=G}create(I,M=!1){return new Tt(I,this._checker,this._ngZone,this._document,M)}}return De.\u0275fac=function(I){return new(I||De)(d.\u0275\u0275inject(Te),d.\u0275\u0275inject(d.NgZone),d.\u0275\u0275inject(i.DOCUMENT))},De.\u0275prov=d.\u0275\u0275defineInjectable({token:De,factory:De.\u0275fac,providedIn:"root"}),De})();function Ce(De){return 0===De.offsetX&&0===De.offsetY}function _e(De){const w=De.touches&&De.touches[0]||De.changedTouches&&De.changedTouches[0];return!(!w||-1!==w.identifier||null!=w.radiusX&&1!==w.radiusX||null!=w.radiusY&&1!==w.radiusY)}const ie=new d.InjectionToken("cdk-input-modality-detector-options"),ve={ignoreKeys:[C.zL,C.jx,C.b2,C.MW,C.JU]},it=(0,K.i$)({passive:!0,capture:!0});let mt=(()=>{class De{constructor(I,M,G,ot){this._platform=I,this._mostRecentTarget=null,this._modality=new s.X(null),this._lastTouchMs=0,this._onKeydown=Et=>{var Ut,gn;(null===(gn=null===(Ut=this._options)||void 0===Ut?void 0:Ut.ignoreKeys)||void 0===gn?void 0:gn.some(Ve=>Ve===Et.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=(0,K.sA)(Et))},this._onMousedown=Et=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Ce(Et)?"keyboard":"mouse"),this._mostRecentTarget=(0,K.sA)(Et))},this._onTouchstart=Et=>{_e(Et)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,K.sA)(Et))},this._options=Object.assign(Object.assign({},ve),ot),this.modalityDetected=this._modality.pipe((0,S.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,N.x)()),I.isBrowser&&M.runOutsideAngular(()=>{G.addEventListener("keydown",this._onKeydown,it),G.addEventListener("mousedown",this._onMousedown,it),G.addEventListener("touchstart",this._onTouchstart,it)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,it),document.removeEventListener("mousedown",this._onMousedown,it),document.removeEventListener("touchstart",this._onTouchstart,it))}}return De.\u0275fac=function(I){return new(I||De)(d.\u0275\u0275inject(K.t4),d.\u0275\u0275inject(d.NgZone),d.\u0275\u0275inject(i.DOCUMENT),d.\u0275\u0275inject(ie,8))},De.\u0275prov=d.\u0275\u0275defineInjectable({token:De,factory:De.\u0275fac,providedIn:"root"}),De})();const Mn=new d.InjectionToken("cdk-focus-monitor-default-options"),an=(0,K.i$)({passive:!0,capture:!0});let Qt=(()=>{class De{constructor(I,M,G,ot,Et){this._ngZone=I,this._platform=M,this._inputModalityDetector=G,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 _.x,this._rootNodeFocusAndBlurListener=Ut=>{const gn=(0,K.sA)(Ut),Ve="focus"===Ut.type?this._onFocus:this._onBlur;for(let $e=gn;$e;$e=$e.parentElement)Ve.call(this,Ut,$e)},this._document=ot,this._detectionMode=(null==Et?void 0:Et.detectionMode)||0}monitor(I,M=!1){const G=(0,ce.fI)(I);if(!this._platform.isBrowser||1!==G.nodeType)return(0,b.of)(null);const ot=(0,K.kV)(G)||this._getDocument(),Et=this._elementInfo.get(G);if(Et)return M&&(Et.checkChildren=!0),Et.subject;const Ut={checkChildren:M,subject:new _.x,rootNode:ot};return this._elementInfo.set(G,Ut),this._registerGlobalListeners(Ut),Ut.subject}stopMonitoring(I){const M=(0,ce.fI)(I),G=this._elementInfo.get(M);G&&(G.subject.complete(),this._setClasses(M),this._elementInfo.delete(M),this._removeGlobalListeners(G))}focusVia(I,M,G){const ot=(0,ce.fI)(I);ot===this._getDocument().activeElement?this._getClosestElementsInfo(ot).forEach(([Ut,gn])=>this._originChanged(Ut,M,gn)):(this._setOrigin(M),"function"==typeof ot.focus&&ot.focus(G))}ngOnDestroy(){this._elementInfo.forEach((I,M)=>this.stopMonitoring(M))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(I){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(I)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(I){return 1===this._detectionMode||!!(null==I?void 0:I.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(I,M){I.classList.toggle("cdk-focused",!!M),I.classList.toggle("cdk-touch-focused","touch"===M),I.classList.toggle("cdk-keyboard-focused","keyboard"===M),I.classList.toggle("cdk-mouse-focused","mouse"===M),I.classList.toggle("cdk-program-focused","program"===M)}_setOrigin(I,M=!1){this._ngZone.runOutsideAngular(()=>{this._origin=I,this._originFromTouchInteraction="touch"===I&&M,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(I,M){const G=this._elementInfo.get(M),ot=(0,K.sA)(I);!G||!G.checkChildren&&M!==ot||this._originChanged(M,this._getFocusOrigin(ot),G)}_onBlur(I,M){const G=this._elementInfo.get(M);!G||G.checkChildren&&I.relatedTarget instanceof Node&&M.contains(I.relatedTarget)||(this._setClasses(M),this._emitOrigin(G.subject,null))}_emitOrigin(I,M){this._ngZone.run(()=>I.next(M))}_registerGlobalListeners(I){if(!this._platform.isBrowser)return;const M=I.rootNode,G=this._rootNodeFocusListenerCount.get(M)||0;G||this._ngZone.runOutsideAngular(()=>{M.addEventListener("focus",this._rootNodeFocusAndBlurListener,an),M.addEventListener("blur",this._rootNodeFocusAndBlurListener,an)}),this._rootNodeFocusListenerCount.set(M,G+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,B.R)(this._stopInputModalityDetector)).subscribe(ot=>{this._setOrigin(ot,!0)}))}_removeGlobalListeners(I){const M=I.rootNode;if(this._rootNodeFocusListenerCount.has(M)){const G=this._rootNodeFocusListenerCount.get(M);G>1?this._rootNodeFocusListenerCount.set(M,G-1):(M.removeEventListener("focus",this._rootNodeFocusAndBlurListener,an),M.removeEventListener("blur",this._rootNodeFocusAndBlurListener,an),this._rootNodeFocusListenerCount.delete(M))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(I,M,G){this._setClasses(I,M),this._emitOrigin(G.subject,M),this._lastFocusOrigin=M}_getClosestElementsInfo(I){const M=[];return this._elementInfo.forEach((G,ot)=>{(ot===I||G.checkChildren&&ot.contains(I))&&M.push([ot,G])}),M}}return De.\u0275fac=function(I){return new(I||De)(d.\u0275\u0275inject(d.NgZone),d.\u0275\u0275inject(K.t4),d.\u0275\u0275inject(mt),d.\u0275\u0275inject(i.DOCUMENT,8),d.\u0275\u0275inject(Mn,8))},De.\u0275prov=d.\u0275\u0275defineInjectable({token:De,factory:De.\u0275fac,providedIn:"root"}),De})(),Ot=(()=>{class De{constructor(I,M){this._elementRef=I,this._focusMonitor=M,this.cdkFocusChange=new d.EventEmitter}ngAfterViewInit(){const I=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(I,1===I.nodeType&&I.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(M=>this.cdkFocusChange.emit(M))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return De.\u0275fac=function(I){return new(I||De)(d.\u0275\u0275directiveInject(d.ElementRef),d.\u0275\u0275directiveInject(Qt))},De.\u0275dir=d.\u0275\u0275defineDirective({type:De,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),De})();const bn="cdk-high-contrast-black-on-white",at="cdk-high-contrast-white-on-black",Ke="cdk-high-contrast-active";let Qe=(()=>{class De{constructor(I,M){this._platform=I,this._document=M}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const I=this._document.createElement("div");I.style.backgroundColor="rgb(1,2,3)",I.style.position="absolute",this._document.body.appendChild(I);const M=this._document.defaultView||window,G=M&&M.getComputedStyle?M.getComputedStyle(I):null,ot=(G&&G.backgroundColor||"").replace(/ /g,"");switch(I.remove(),ot){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const I=this._document.body.classList;I.remove(Ke),I.remove(bn),I.remove(at),this._hasCheckedHighContrastMode=!0;const M=this.getHighContrastMode();1===M?(I.add(Ke),I.add(bn)):2===M&&(I.add(Ke),I.add(at))}}}return De.\u0275fac=function(I){return new(I||De)(d.\u0275\u0275inject(K.t4),d.\u0275\u0275inject(i.DOCUMENT))},De.\u0275prov=d.\u0275\u0275defineInjectable({token:De,factory:De.\u0275fac,providedIn:"root"}),De})(),Se=(()=>{class De{constructor(I){I._applyBodyHighContrastModeCssClasses()}}return De.\u0275fac=function(I){return new(I||De)(d.\u0275\u0275inject(Qe))},De.\u0275mod=d.\u0275\u0275defineNgModule({type:De}),De.\u0275inj=d.\u0275\u0275defineInjector({imports:[[K.ud,re.Q8]]}),De})()},226:(Le,m,l)=>{"use strict";l.d(m,{vT:()=>p,Is:()=>C});var i=l(5e3),d=l(9808);const _=new i.InjectionToken("cdk-dir-doc",{providedIn:"root",factory:function u(){return(0,i.inject)(d.DOCUMENT)}}),s=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let C=(()=>{class y{constructor(O){if(this.value="ltr",this.change=new i.EventEmitter,O){const N=O.documentElement?O.documentElement.dir:null;this.value=function b(y){const P=(null==y?void 0:y.toLowerCase())||"";return"auto"===P&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?s.test(navigator.language)?"rtl":"ltr":"rtl"===P?"rtl":"ltr"}((O.body?O.body.dir:null)||N||"ltr")}}ngOnDestroy(){this.change.complete()}}return y.\u0275fac=function(O){return new(O||y)(i.\u0275\u0275inject(_,8))},y.\u0275prov=i.\u0275\u0275defineInjectable({token:y,factory:y.\u0275fac,providedIn:"root"}),y})(),p=(()=>{class y{}return y.\u0275fac=function(O){return new(O||y)},y.\u0275mod=i.\u0275\u0275defineNgModule({type:y}),y.\u0275inj=i.\u0275\u0275defineInjector({}),y})()},3191:(Le,m,l)=>{"use strict";l.d(m,{t6:()=>u,Eq:()=>s,Ig:()=>d,HM:()=>b,fI:()=>C,su:()=>_});var i=l(5e3);function d(p){return null!=p&&"false"!=`${p}`}function _(p,y=0){return u(p)?Number(p):y}function u(p){return!isNaN(parseFloat(p))&&!isNaN(Number(p))}function s(p){return Array.isArray(p)?p:[p]}function b(p){return null==p?"":"string"==typeof p?p:`${p}px`}function C(p){return p instanceof i.ElementRef?p.nativeElement:p}},449:(Le,m,l)=>{"use strict";l.d(m,{o2:()=>_,Ov:()=>T,yy:()=>b,eX:()=>C,k:()=>P,Z9:()=>u});var i=l(6758),d=l(5e3);class _{}function u(O){return O&&"function"==typeof O.connect}class b{applyChanges(S,N,B,ce,K){S.forEachOperation((re,Me,pe)=>{let be,ue;if(null==re.previousIndex){const xe=B(re,Me,pe);be=N.createEmbeddedView(xe.templateRef,xe.context,xe.index),ue=1}else null==pe?(N.remove(Me),ue=3):(be=N.get(Me),N.move(be,pe),ue=2);K&&K({context:null==be?void 0:be.context,operation:ue,record:re})})}detach(){}}class C{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(S,N,B,ce,K){S.forEachOperation((re,Me,pe)=>{let be,ue;null==re.previousIndex?(be=this._insertView(()=>B(re,Me,pe),pe,N,ce(re)),ue=be?1:0):null==pe?(this._detachAndCacheView(Me,N),ue=3):(be=this._moveView(Me,pe,N,ce(re)),ue=2),K&&K({context:null==be?void 0:be.context,operation:ue,record:re})})}detach(){for(const S of this._viewCache)S.destroy();this._viewCache=[]}_insertView(S,N,B,ce){const K=this._insertViewFromCache(N,B);if(K)return void(K.context.$implicit=ce);const re=S();return B.createEmbeddedView(re.templateRef,re.context,re.index)}_detachAndCacheView(S,N){const B=N.detach(S);this._maybeCacheView(B,N)}_moveView(S,N,B,ce){const K=B.get(S);return B.move(K,N),K.context.$implicit=ce,K}_maybeCacheView(S,N){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(S);else{const B=N.indexOf(S);-1===B?S.destroy():N.remove(B)}}_insertViewFromCache(S,N){const B=this._viewCache.pop();return B&&N.insert(B,S),B||null}}class T{constructor(S=!1,N,B=!0){this._multiple=S,this._emitChanges=B,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new i.x,N&&N.length&&(S?N.forEach(ce=>this._markSelected(ce)):this._markSelected(N[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...S){this._verifyValueAssignment(S),S.forEach(N=>this._markSelected(N)),this._emitChangeEvent()}deselect(...S){this._verifyValueAssignment(S),S.forEach(N=>this._unmarkSelected(N)),this._emitChangeEvent()}toggle(S){this.isSelected(S)?this.deselect(S):this.select(S)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(S){return this._selection.has(S)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(S){this._multiple&&this.selected&&this._selected.sort(S)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(S){this.isSelected(S)||(this._multiple||this._unmarkAll(),this._selection.add(S),this._emitChanges&&this._selectedToEmit.push(S))}_unmarkSelected(S){this.isSelected(S)&&(this._selection.delete(S),this._emitChanges&&this._deselectedToEmit.push(S))}_unmarkAll(){this.isEmpty()||this._selection.forEach(S=>this._unmarkSelected(S))}_verifyValueAssignment(S){}}const P=new d.InjectionToken("_ViewRepeater")},1159:(Le,m,l)=>{"use strict";l.d(m,{A:()=>St,zL:()=>T,ZH:()=>d,jx:()=>C,yY:()=>He,JH:()=>pe,uR:()=>B,K5:()=>s,hY:()=>P,Sd:()=>ce,oh:()=>K,b2:()=>ai,MW:()=>It,aO:()=>fe,SV:()=>Me,JU:()=>b,L_:()=>O,Mf:()=>_,LH:()=>re,Z:()=>_t,xE:()=>et,Vb:()=>xn});const d=8,_=9,s=13,b=16,C=17,T=18,P=27,O=32,B=35,ce=36,K=37,re=38,Me=39,pe=40,He=46,et=48,fe=57,St=65,_t=90,It=91,ai=224;function xn(mn,...ni){return ni.length?ni.some(li=>mn[li]):mn.altKey||mn.shiftKey||mn.ctrlKey||mn.metaKey}},5113:(Le,m,l)=>{"use strict";l.r(m),l.d(m,{BreakpointObserver:()=>pe,Breakpoints:()=>ue,LayoutModule:()=>N,MediaMatcher:()=>K});var i=l(5e3),d=l(3191),_=l(6758),u=l(9841),s=l(1350),b=l(9751),C=l(5698),T=l(5684),p=l(8372),y=l(4004),P=l(8675),O=l(2722),S=l(925);let N=(()=>{class xe{}return xe.\u0275fac=function(et){return new(et||xe)},xe.\u0275mod=i.\u0275\u0275defineNgModule({type:xe}),xe.\u0275inj=i.\u0275\u0275defineInjector({}),xe})();const B=new Set;let ce,K=(()=>{class xe{constructor(et){this._platform=et,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Me}matchMedia(et){return(this._platform.WEBKIT||this._platform.BLINK)&&function re(xe){if(!B.has(xe))try{ce||(ce=document.createElement("style"),ce.setAttribute("type","text/css"),document.head.appendChild(ce)),ce.sheet&&(ce.sheet.insertRule(`@media ${xe} {body{ }}`,0),B.add(xe))}catch(He){console.error(He)}}(et),this._matchMedia(et)}}return xe.\u0275fac=function(et){return new(et||xe)(i.\u0275\u0275inject(S.t4))},xe.\u0275prov=i.\u0275\u0275defineInjectable({token:xe,factory:xe.\u0275fac,providedIn:"root"}),xe})();function Me(xe){return{matches:"all"===xe||""===xe,media:xe,addListener:()=>{},removeListener:()=>{}}}let pe=(()=>{class xe{constructor(et,ct){this._mediaMatcher=et,this._zone=ct,this._queries=new Map,this._destroySubject=new _.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(et){return be((0,d.Eq)(et)).some(X=>this._registerQuery(X).mql.matches)}observe(et){const X=be((0,d.Eq)(et)).map(z=>this._registerQuery(z).observable);let me=(0,u.a)(X);return me=(0,s.z)(me.pipe((0,C.q)(1)),me.pipe((0,T.T)(1),(0,p.b)(0))),me.pipe((0,y.U)(z=>{const oe={matches:!1,breakpoints:{}};return z.forEach(({matches:ke,query:de})=>{oe.matches=oe.matches||ke,oe.breakpoints[de]=ke}),oe}))}_registerQuery(et){if(this._queries.has(et))return this._queries.get(et);const ct=this._mediaMatcher.matchMedia(et),me={observable:new b.y(z=>{const oe=ke=>this._zone.run(()=>z.next(ke));return ct.addListener(oe),()=>{ct.removeListener(oe)}}).pipe((0,P.O)(ct),(0,y.U)(({matches:z})=>({query:et,matches:z})),(0,O.R)(this._destroySubject)),mql:ct};return this._queries.set(et,me),me}}return xe.\u0275fac=function(et){return new(et||xe)(i.\u0275\u0275inject(K),i.\u0275\u0275inject(i.NgZone))},xe.\u0275prov=i.\u0275\u0275defineInjectable({token:xe,factory:xe.\u0275fac,providedIn:"root"}),xe})();function be(xe){return xe.map(He=>He.split(",")).reduce((He,et)=>He.concat(et)).map(He=>He.trim())}const ue={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},7144:(Le,m,l)=>{"use strict";l.d(m,{wD:()=>T,Q8:()=>p});var i=l(3191),d=l(5e3),_=l(9751),u=l(6758),s=l(8372);let b=(()=>{class y{create(O){return"undefined"==typeof MutationObserver?null:new MutationObserver(O)}}return y.\u0275fac=function(O){return new(O||y)},y.\u0275prov=d.\u0275\u0275defineInjectable({token:y,factory:y.\u0275fac,providedIn:"root"}),y})(),C=(()=>{class y{constructor(O){this._mutationObserverFactory=O,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((O,S)=>this._cleanupObserver(S))}observe(O){const S=(0,i.fI)(O);return new _.y(N=>{const ce=this._observeElement(S).subscribe(N);return()=>{ce.unsubscribe(),this._unobserveElement(S)}})}_observeElement(O){if(this._observedElements.has(O))this._observedElements.get(O).count++;else{const S=new u.x,N=this._mutationObserverFactory.create(B=>S.next(B));N&&N.observe(O,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(O,{observer:N,stream:S,count:1})}return this._observedElements.get(O).stream}_unobserveElement(O){this._observedElements.has(O)&&(this._observedElements.get(O).count--,this._observedElements.get(O).count||this._cleanupObserver(O))}_cleanupObserver(O){if(this._observedElements.has(O)){const{observer:S,stream:N}=this._observedElements.get(O);S&&S.disconnect(),N.complete(),this._observedElements.delete(O)}}}return y.\u0275fac=function(O){return new(O||y)(d.\u0275\u0275inject(b))},y.\u0275prov=d.\u0275\u0275defineInjectable({token:y,factory:y.\u0275fac,providedIn:"root"}),y})(),T=(()=>{class y{constructor(O,S,N){this._contentObserver=O,this._elementRef=S,this._ngZone=N,this.event=new d.EventEmitter,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(O){this._disabled=(0,i.Ig)(O),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(O){this._debounce=(0,i.su)(O),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const O=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?O.pipe((0,s.b)(this.debounce)):O).subscribe(this.event)})}_unsubscribe(){var O;null===(O=this._currentSubscription)||void 0===O||O.unsubscribe()}}return y.\u0275fac=function(O){return new(O||y)(d.\u0275\u0275directiveInject(C),d.\u0275\u0275directiveInject(d.ElementRef),d.\u0275\u0275directiveInject(d.NgZone))},y.\u0275dir=d.\u0275\u0275defineDirective({type:y,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),y})(),p=(()=>{class y{}return y.\u0275fac=function(O){return new(O||y)},y.\u0275mod=d.\u0275\u0275defineNgModule({type:y}),y.\u0275inj=d.\u0275\u0275defineInjector({providers:[b]}),y})()},1314:(Le,m,l)=>{"use strict";l.d(m,{aV:()=>he,X_:()=>ue,Xj:()=>z,U8:()=>Rt});var i=l(9071),d=l(9808),_=l(5e3),u=l(3191),s=l(925),b=l(226),C=l(7429),T=l(6758),p=l(6921),y=l(6451),P=l(5698),O=l(2722);const S=(0,s.Mq)();class N{constructor(k,ne){this._viewportRuler=k,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=ne}attach(){}enable(){if(this._canBeEnabled()){const k=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=k.style.left||"",this._previousHTMLStyles.top=k.style.top||"",k.style.left=(0,u.HM)(-this._previousScrollPosition.left),k.style.top=(0,u.HM)(-this._previousScrollPosition.top),k.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const k=this._document.documentElement,Pe=k.style,se=this._document.body.style,Ce=Pe.scrollBehavior||"",_e=se.scrollBehavior||"";this._isEnabled=!1,Pe.left=this._previousHTMLStyles.left,Pe.top=this._previousHTMLStyles.top,k.classList.remove("cdk-global-scrollblock"),S&&(Pe.scrollBehavior=se.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),S&&(Pe.scrollBehavior=Ce,se.scrollBehavior=_e)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const ne=this._document.body,Pe=this._viewportRuler.getViewportSize();return ne.scrollHeight>Pe.height||ne.scrollWidth>Pe.width}}class ce{constructor(k,ne,Pe,se){this._scrollDispatcher=k,this._ngZone=ne,this._viewportRuler=Pe,this._config=se,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(k){this._overlayRef=k}enable(){if(this._scrollSubscription)return;const k=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=k.subscribe(()=>{const ne=this._viewportRuler.getViewportScrollPosition().top;Math.abs(ne-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=k.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class K{enable(){}disable(){}attach(){}}function re(Ze,k){return k.some(ne=>Ze.bottom<ne.top||Ze.top>ne.bottom||Ze.right<ne.left||Ze.left>ne.right)}function Me(Ze,k){return k.some(ne=>Ze.top<ne.top||Ze.bottom>ne.bottom||Ze.left<ne.left||Ze.right>ne.right)}class pe{constructor(k,ne,Pe,se){this._scrollDispatcher=k,this._viewportRuler=ne,this._ngZone=Pe,this._config=se,this._scrollSubscription=null}attach(k){this._overlayRef=k}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 ne=this._overlayRef.overlayElement.getBoundingClientRect(),{width:Pe,height:se}=this._viewportRuler.getViewportSize();re(ne,[{width:Pe,height:se,bottom:se,right:Pe,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 be=(()=>{class Ze{constructor(ne,Pe,se,Ce){this._scrollDispatcher=ne,this._viewportRuler=Pe,this._ngZone=se,this.noop=()=>new K,this.close=_e=>new ce(this._scrollDispatcher,this._ngZone,this._viewportRuler,_e),this.block=()=>new N(this._viewportRuler,this._document),this.reposition=_e=>new pe(this._scrollDispatcher,this._viewportRuler,this._ngZone,_e),this._document=Ce}}return Ze.\u0275fac=function(ne){return new(ne||Ze)(_.\u0275\u0275inject(i.mF),_.\u0275\u0275inject(i.rL),_.\u0275\u0275inject(_.NgZone),_.\u0275\u0275inject(d.DOCUMENT))},Ze.\u0275prov=_.\u0275\u0275defineInjectable({token:Ze,factory:Ze.\u0275fac,providedIn:"root"}),Ze})();class ue{constructor(k){if(this.scrollStrategy=new K,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,k){const ne=Object.keys(k);for(const Pe of ne)void 0!==k[Pe]&&(this[Pe]=k[Pe])}}}class et{constructor(k,ne){this.connectionPair=k,this.scrollableViewProperties=ne}}class me{constructor(k,ne,Pe,se,Ce,_e,ie,ve,Ye){this._portalOutlet=k,this._host=ne,this._pane=Pe,this._config=se,this._ngZone=Ce,this._keyboardDispatcher=_e,this._document=ie,this._location=ve,this._outsideClickDispatcher=Ye,this._backdropElement=null,this._backdropClick=new T.x,this._attachments=new T.x,this._detachments=new T.x,this._locationChanges=p.w0.EMPTY,this._backdropClickHandler=it=>this._backdropClick.next(it),this._keydownEvents=new T.x,this._outsidePointerEvents=new T.x,se.scrollStrategy&&(this._scrollStrategy=se.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=se.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(k){let ne=this._portalOutlet.attach(k);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,P.q)(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),ne}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const k=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),k}dispose(){var k;const ne=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),null===(k=this._host)||void 0===k||k.remove(),this._previousHostParent=this._pane=this._host=null,ne&&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(k){k!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=k,this.hasAttached()&&(k.attach(this),this.updatePosition()))}updateSize(k){this._config=Object.assign(Object.assign({},this._config),k),this._updateElementSize()}setDirection(k){this._config=Object.assign(Object.assign({},this._config),{direction:k}),this._updateElementDirection()}addPanelClass(k){this._pane&&this._toggleClasses(this._pane,k,!0)}removePanelClass(k){this._pane&&this._toggleClasses(this._pane,k,!1)}getDirection(){const k=this._config.direction;return k?"string"==typeof k?k:k.value:"ltr"}updateScrollStrategy(k){k!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=k,this.hasAttached()&&(k.attach(this),k.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const k=this._pane.style;k.width=(0,u.HM)(this._config.width),k.height=(0,u.HM)(this._config.height),k.minWidth=(0,u.HM)(this._config.minWidth),k.minHeight=(0,u.HM)(this._config.minHeight),k.maxWidth=(0,u.HM)(this._config.maxWidth),k.maxHeight=(0,u.HM)(this._config.maxHeight)}_togglePointerEvents(k){this._pane.style.pointerEvents=k?"":"none"}_attachBackdrop(){const k="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),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),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(k)})}):this._backdropElement.classList.add(k)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const k=this._backdropElement;if(!k)return;let ne;const Pe=()=>{k&&(k.removeEventListener("click",this._backdropClickHandler),k.removeEventListener("transitionend",Pe),this._disposeBackdrop(k)),this._config.backdropClass&&this._toggleClasses(k,this._config.backdropClass,!1),clearTimeout(ne)};k.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{k.addEventListener("transitionend",Pe)}),k.style.pointerEvents="none",ne=this._ngZone.runOutsideAngular(()=>setTimeout(Pe,500))}_toggleClasses(k,ne,Pe){const se=(0,u.Eq)(ne||[]).filter(Ce=>!!Ce);se.length&&(Pe?k.classList.add(...se):k.classList.remove(...se))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const k=this._ngZone.onStable.pipe((0,O.R)((0,y.T)(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()),k.unsubscribe())})})}_disposeScrollStrategy(){const k=this._scrollStrategy;k&&(k.disable(),k.detach&&k.detach())}_disposeBackdrop(k){k&&(k.remove(),this._backdropElement===k&&(this._backdropElement=null))}}let z=(()=>{class Ze{constructor(ne,Pe){this._platform=Pe,this._document=ne}ngOnDestroy(){var ne;null===(ne=this._containerElement)||void 0===ne||ne.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const ne="cdk-overlay-container";if(this._platform.isBrowser||(0,s.Oy)()){const se=this._document.querySelectorAll(`.${ne}[platform="server"], .${ne}[platform="test"]`);for(let Ce=0;Ce<se.length;Ce++)se[Ce].remove()}const Pe=this._document.createElement("div");Pe.classList.add(ne),(0,s.Oy)()?Pe.setAttribute("platform","test"):this._platform.isBrowser||Pe.setAttribute("platform","server"),this._document.body.appendChild(Pe),this._containerElement=Pe}}return Ze.\u0275fac=function(ne){return new(ne||Ze)(_.\u0275\u0275inject(d.DOCUMENT),_.\u0275\u0275inject(s.t4))},Ze.\u0275prov=_.\u0275\u0275defineInjectable({token:Ze,factory:Ze.\u0275fac,providedIn:"root"}),Ze})();const oe="cdk-overlay-connected-position-bounding-box",ke=/([A-Za-z%]+)$/;class de{constructor(k,ne,Pe,se,Ce){this._viewportRuler=ne,this._document=Pe,this._platform=se,this._overlayContainer=Ce,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 T.x,this._resizeSubscription=p.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(k)}get positions(){return this._preferredPositions}attach(k){this._validatePositions(),k.hostElement.classList.add(oe),this._overlayRef=k,this._boundingBox=k.hostElement,this._pane=k.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 k=this._originRect,ne=this._overlayRect,Pe=this._viewportRect,se=this._containerRect,Ce=[];let _e;for(let ie of this._preferredPositions){let ve=this._getOriginPoint(k,se,ie),Ye=this._getOverlayPoint(ve,ne,ie),it=this._getOverlayFit(Ye,ne,Pe,ie);if(it.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(ie,ve);this._canFitWithFlexibleDimensions(it,Ye,Pe)?Ce.push({position:ie,origin:ve,overlayRect:ne,boundingBoxRect:this._calculateBoundingBoxRect(ve,ie)}):(!_e||_e.overlayFit.visibleArea<it.visibleArea)&&(_e={overlayFit:it,overlayPoint:Ye,originPoint:ve,position:ie,overlayRect:ne})}if(Ce.length){let ie=null,ve=-1;for(const Ye of Ce){const it=Ye.boundingBoxRect.width*Ye.boundingBoxRect.height*(Ye.position.weight||1);it>ve&&(ve=it,ie=Ye)}return this._isPushed=!1,void this._applyPosition(ie.position,ie.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(_e.position,_e.originPoint);this._applyPosition(_e.position,_e.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Ue(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(oe),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const k=this._lastPosition||this._preferredPositions[0],ne=this._getOriginPoint(this._originRect,this._containerRect,k);this._applyPosition(k,ne)}}withScrollableContainers(k){return this._scrollables=k,this}withPositions(k){return this._preferredPositions=k,-1===k.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(k){return this._viewportMargin=k,this}withFlexibleDimensions(k=!0){return this._hasFlexibleDimensions=k,this}withGrowAfterOpen(k=!0){return this._growAfterOpen=k,this}withPush(k=!0){return this._canPush=k,this}withLockedPosition(k=!0){return this._positionLocked=k,this}setOrigin(k){return this._origin=k,this}withDefaultOffsetX(k){return this._offsetX=k,this}withDefaultOffsetY(k){return this._offsetY=k,this}withTransformOriginOn(k){return this._transformOriginSelector=k,this}_getOriginPoint(k,ne,Pe){let se,Ce;if("center"==Pe.originX)se=k.left+k.width/2;else{const _e=this._isRtl()?k.right:k.left,ie=this._isRtl()?k.left:k.right;se="start"==Pe.originX?_e:ie}return ne.left<0&&(se-=ne.left),Ce="center"==Pe.originY?k.top+k.height/2:"top"==Pe.originY?k.top:k.bottom,ne.top<0&&(Ce-=ne.top),{x:se,y:Ce}}_getOverlayPoint(k,ne,Pe){let se,Ce;return se="center"==Pe.overlayX?-ne.width/2:"start"===Pe.overlayX?this._isRtl()?-ne.width:0:this._isRtl()?0:-ne.width,Ce="center"==Pe.overlayY?-ne.height/2:"top"==Pe.overlayY?0:-ne.height,{x:k.x+se,y:k.y+Ce}}_getOverlayFit(k,ne,Pe,se){const Ce=Je(ne);let{x:_e,y:ie}=k,ve=this._getOffset(se,"x"),Ye=this._getOffset(se,"y");ve&&(_e+=ve),Ye&&(ie+=Ye);let _t=0-ie,It=ie+Ce.height-Pe.height,zt=this._subtractOverflows(Ce.width,0-_e,_e+Ce.width-Pe.width),on=this._subtractOverflows(Ce.height,_t,It),Kt=zt*on;return{visibleArea:Kt,isCompletelyWithinViewport:Ce.width*Ce.height===Kt,fitsInViewportVertically:on===Ce.height,fitsInViewportHorizontally:zt==Ce.width}}_canFitWithFlexibleDimensions(k,ne,Pe){if(this._hasFlexibleDimensions){const se=Pe.bottom-ne.y,Ce=Pe.right-ne.x,_e=fe(this._overlayRef.getConfig().minHeight),ie=fe(this._overlayRef.getConfig().minWidth),Ye=k.fitsInViewportHorizontally||null!=ie&&ie<=Ce;return(k.fitsInViewportVertically||null!=_e&&_e<=se)&&Ye}return!1}_pushOverlayOnScreen(k,ne,Pe){if(this._previousPushAmount&&this._positionLocked)return{x:k.x+this._previousPushAmount.x,y:k.y+this._previousPushAmount.y};const se=Je(ne),Ce=this._viewportRect,_e=Math.max(k.x+se.width-Ce.width,0),ie=Math.max(k.y+se.height-Ce.height,0),ve=Math.max(Ce.top-Pe.top-k.y,0),Ye=Math.max(Ce.left-Pe.left-k.x,0);let it=0,mt=0;return it=se.width<=Ce.width?Ye||-_e:k.x<this._viewportMargin?Ce.left-Pe.left-k.x:0,mt=se.height<=Ce.height?ve||-ie:k.y<this._viewportMargin?Ce.top-Pe.top-k.y:0,this._previousPushAmount={x:it,y:mt},{x:k.x+it,y:k.y+mt}}_applyPosition(k,ne){if(this._setTransformOrigin(k),this._setOverlayElementStyles(ne,k),this._setBoundingBoxStyles(ne,k),k.panelClass&&this._addPanelClasses(k.panelClass),this._lastPosition=k,this._positionChanges.observers.length){const Pe=this._getScrollVisibility(),se=new et(k,Pe);this._positionChanges.next(se)}this._isInitialRender=!1}_setTransformOrigin(k){if(!this._transformOriginSelector)return;const ne=this._boundingBox.querySelectorAll(this._transformOriginSelector);let Pe,se=k.overlayY;Pe="center"===k.overlayX?"center":this._isRtl()?"start"===k.overlayX?"right":"left":"start"===k.overlayX?"left":"right";for(let Ce=0;Ce<ne.length;Ce++)ne[Ce].style.transformOrigin=`${Pe} ${se}`}_calculateBoundingBoxRect(k,ne){const Pe=this._viewportRect,se=this._isRtl();let Ce,_e,ie,it,mt,_t;if("top"===ne.overlayY)_e=k.y,Ce=Pe.height-_e+this._viewportMargin;else if("bottom"===ne.overlayY)ie=Pe.height-k.y+2*this._viewportMargin,Ce=Pe.height-ie+this._viewportMargin;else{const It=Math.min(Pe.bottom-k.y+Pe.top,k.y),zt=this._lastBoundingBoxSize.height;Ce=2*It,_e=k.y-It,Ce>zt&&!this._isInitialRender&&!this._growAfterOpen&&(_e=k.y-zt/2)}if("end"===ne.overlayX&&!se||"start"===ne.overlayX&&se)_t=Pe.width-k.x+this._viewportMargin,it=k.x-this._viewportMargin;else if("start"===ne.overlayX&&!se||"end"===ne.overlayX&&se)mt=k.x,it=Pe.right-k.x;else{const It=Math.min(Pe.right-k.x+Pe.left,k.x),zt=this._lastBoundingBoxSize.width;it=2*It,mt=k.x-It,it>zt&&!this._isInitialRender&&!this._growAfterOpen&&(mt=k.x-zt/2)}return{top:_e,left:mt,bottom:ie,right:_t,width:it,height:Ce}}_setBoundingBoxStyles(k,ne){const Pe=this._calculateBoundingBoxRect(k,ne);!this._isInitialRender&&!this._growAfterOpen&&(Pe.height=Math.min(Pe.height,this._lastBoundingBoxSize.height),Pe.width=Math.min(Pe.width,this._lastBoundingBoxSize.width));const se={};if(this._hasExactPosition())se.top=se.left="0",se.bottom=se.right=se.maxHeight=se.maxWidth="",se.width=se.height="100%";else{const Ce=this._overlayRef.getConfig().maxHeight,_e=this._overlayRef.getConfig().maxWidth;se.height=(0,u.HM)(Pe.height),se.top=(0,u.HM)(Pe.top),se.bottom=(0,u.HM)(Pe.bottom),se.width=(0,u.HM)(Pe.width),se.left=(0,u.HM)(Pe.left),se.right=(0,u.HM)(Pe.right),se.alignItems="center"===ne.overlayX?"center":"end"===ne.overlayX?"flex-end":"flex-start",se.justifyContent="center"===ne.overlayY?"center":"bottom"===ne.overlayY?"flex-end":"flex-start",Ce&&(se.maxHeight=(0,u.HM)(Ce)),_e&&(se.maxWidth=(0,u.HM)(_e))}this._lastBoundingBoxSize=Pe,Ue(this._boundingBox.style,se)}_resetBoundingBoxStyles(){Ue(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Ue(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(k,ne){const Pe={},se=this._hasExactPosition(),Ce=this._hasFlexibleDimensions,_e=this._overlayRef.getConfig();if(se){const it=this._viewportRuler.getViewportScrollPosition();Ue(Pe,this._getExactOverlayY(ne,k,it)),Ue(Pe,this._getExactOverlayX(ne,k,it))}else Pe.position="static";let ie="",ve=this._getOffset(ne,"x"),Ye=this._getOffset(ne,"y");ve&&(ie+=`translateX(${ve}px) `),Ye&&(ie+=`translateY(${Ye}px)`),Pe.transform=ie.trim(),_e.maxHeight&&(se?Pe.maxHeight=(0,u.HM)(_e.maxHeight):Ce&&(Pe.maxHeight="")),_e.maxWidth&&(se?Pe.maxWidth=(0,u.HM)(_e.maxWidth):Ce&&(Pe.maxWidth="")),Ue(this._pane.style,Pe)}_getExactOverlayY(k,ne,Pe){let se={top:"",bottom:""},Ce=this._getOverlayPoint(ne,this._overlayRect,k);return this._isPushed&&(Ce=this._pushOverlayOnScreen(Ce,this._overlayRect,Pe)),"bottom"===k.overlayY?se.bottom=this._document.documentElement.clientHeight-(Ce.y+this._overlayRect.height)+"px":se.top=(0,u.HM)(Ce.y),se}_getExactOverlayX(k,ne,Pe){let _e,se={left:"",right:""},Ce=this._getOverlayPoint(ne,this._overlayRect,k);return this._isPushed&&(Ce=this._pushOverlayOnScreen(Ce,this._overlayRect,Pe)),_e=this._isRtl()?"end"===k.overlayX?"left":"right":"end"===k.overlayX?"right":"left","right"===_e?se.right=this._document.documentElement.clientWidth-(Ce.x+this._overlayRect.width)+"px":se.left=(0,u.HM)(Ce.x),se}_getScrollVisibility(){const k=this._getOriginRect(),ne=this._pane.getBoundingClientRect(),Pe=this._scrollables.map(se=>se.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Me(k,Pe),isOriginOutsideView:re(k,Pe),isOverlayClipped:Me(ne,Pe),isOverlayOutsideView:re(ne,Pe)}}_subtractOverflows(k,...ne){return ne.reduce((Pe,se)=>Pe-Math.max(se,0),k)}_getNarrowedViewportRect(){const k=this._document.documentElement.clientWidth,ne=this._document.documentElement.clientHeight,Pe=this._viewportRuler.getViewportScrollPosition();return{top:Pe.top+this._viewportMargin,left:Pe.left+this._viewportMargin,right:Pe.left+k-this._viewportMargin,bottom:Pe.top+ne-this._viewportMargin,width:k-2*this._viewportMargin,height:ne-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(k,ne){return"x"===ne?null==k.offsetX?this._offsetX:k.offsetX:null==k.offsetY?this._offsetY:k.offsetY}_validatePositions(){}_addPanelClasses(k){this._pane&&(0,u.Eq)(k).forEach(ne=>{""!==ne&&-1===this._appliedPanelClasses.indexOf(ne)&&(this._appliedPanelClasses.push(ne),this._pane.classList.add(ne))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(k=>{this._pane.classList.remove(k)}),this._appliedPanelClasses=[])}_getOriginRect(){const k=this._origin;if(k instanceof _.ElementRef)return k.nativeElement.getBoundingClientRect();if(k instanceof Element)return k.getBoundingClientRect();const ne=k.width||0,Pe=k.height||0;return{top:k.y,bottom:k.y+Pe,left:k.x,right:k.x+ne,height:Pe,width:ne}}}function Ue(Ze,k){for(let ne in k)k.hasOwnProperty(ne)&&(Ze[ne]=k[ne]);return Ze}function fe(Ze){if("number"!=typeof Ze&&null!=Ze){const[k,ne]=Ze.split(ke);return ne&&"px"!==ne?null:parseFloat(k)}return Ze||null}function Je(Ze){return{top:Math.floor(Ze.top),right:Math.floor(Ze.right),bottom:Math.floor(Ze.bottom),left:Math.floor(Ze.left),width:Math.floor(Ze.width),height:Math.floor(Ze.height)}}const Te="cdk-global-overlay-wrapper";class Ge{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(k){const ne=k.getConfig();this._overlayRef=k,this._width&&!ne.width&&k.updateSize({width:this._width}),this._height&&!ne.height&&k.updateSize({height:this._height}),k.hostElement.classList.add(Te),this._isDisposed=!1}top(k=""){return this._bottomOffset="",this._topOffset=k,this._alignItems="flex-start",this}left(k=""){return this._rightOffset="",this._leftOffset=k,this._justifyContent="flex-start",this}bottom(k=""){return this._topOffset="",this._bottomOffset=k,this._alignItems="flex-end",this}right(k=""){return this._leftOffset="",this._rightOffset=k,this._justifyContent="flex-end",this}width(k=""){return this._overlayRef?this._overlayRef.updateSize({width:k}):this._width=k,this}height(k=""){return this._overlayRef?this._overlayRef.updateSize({height:k}):this._height=k,this}centerHorizontally(k=""){return this.left(k),this._justifyContent="center",this}centerVertically(k=""){return this.top(k),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const k=this._overlayRef.overlayElement.style,ne=this._overlayRef.hostElement.style,Pe=this._overlayRef.getConfig(),{width:se,height:Ce,maxWidth:_e,maxHeight:ie}=Pe,ve=!("100%"!==se&&"100vw"!==se||_e&&"100%"!==_e&&"100vw"!==_e),Ye=!("100%"!==Ce&&"100vh"!==Ce||ie&&"100%"!==ie&&"100vh"!==ie);k.position=this._cssPosition,k.marginLeft=ve?"0":this._leftOffset,k.marginTop=Ye?"0":this._topOffset,k.marginBottom=this._bottomOffset,k.marginRight=this._rightOffset,ve?ne.justifyContent="flex-start":"center"===this._justifyContent?ne.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?ne.justifyContent="flex-end":"flex-end"===this._justifyContent&&(ne.justifyContent="flex-start"):ne.justifyContent=this._justifyContent,ne.alignItems=Ye?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const k=this._overlayRef.overlayElement.style,ne=this._overlayRef.hostElement,Pe=ne.style;ne.classList.remove(Te),Pe.justifyContent=Pe.alignItems=k.marginTop=k.marginBottom=k.marginLeft=k.marginRight=k.position="",this._overlayRef=null,this._isDisposed=!0}}let vt=(()=>{class Ze{constructor(ne,Pe,se,Ce){this._viewportRuler=ne,this._document=Pe,this._platform=se,this._overlayContainer=Ce}global(){return new Ge}flexibleConnectedTo(ne){return new de(ne,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return Ze.\u0275fac=function(ne){return new(ne||Ze)(_.\u0275\u0275inject(i.rL),_.\u0275\u0275inject(d.DOCUMENT),_.\u0275\u0275inject(s.t4),_.\u0275\u0275inject(z))},Ze.\u0275prov=_.\u0275\u0275defineInjectable({token:Ze,factory:Ze.\u0275fac,providedIn:"root"}),Ze})(),St=(()=>{class Ze{constructor(ne){this._attachedOverlays=[],this._document=ne}ngOnDestroy(){this.detach()}add(ne){this.remove(ne),this._attachedOverlays.push(ne)}remove(ne){const Pe=this._attachedOverlays.indexOf(ne);Pe>-1&&this._attachedOverlays.splice(Pe,1),0===this._attachedOverlays.length&&this.detach()}}return Ze.\u0275fac=function(ne){return new(ne||Ze)(_.\u0275\u0275inject(d.DOCUMENT))},Ze.\u0275prov=_.\u0275\u0275defineInjectable({token:Ze,factory:Ze.\u0275fac,providedIn:"root"}),Ze})(),Re=(()=>{class Ze extends St{constructor(ne){super(ne),this._keydownListener=Pe=>{const se=this._attachedOverlays;for(let Ce=se.length-1;Ce>-1;Ce--)if(se[Ce]._keydownEvents.observers.length>0){se[Ce]._keydownEvents.next(Pe);break}}}add(ne){super.add(ne),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return Ze.\u0275fac=function(ne){return new(ne||Ze)(_.\u0275\u0275inject(d.DOCUMENT))},Ze.\u0275prov=_.\u0275\u0275defineInjectable({token:Ze,factory:Ze.\u0275fac,providedIn:"root"}),Ze})(),qe=(()=>{class Ze extends St{constructor(ne,Pe){super(ne),this._platform=Pe,this._cursorStyleIsSet=!1,this._pointerDownListener=se=>{this._pointerDownEventTarget=(0,s.sA)(se)},this._clickListener=se=>{const Ce=(0,s.sA)(se),_e="click"===se.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:Ce;this._pointerDownEventTarget=null;const ie=this._attachedOverlays.slice();for(let ve=ie.length-1;ve>-1;ve--){const Ye=ie[ve];if(!(Ye._outsidePointerEvents.observers.length<1)&&Ye.hasAttached()){if(Ye.overlayElement.contains(Ce)||Ye.overlayElement.contains(_e))break;Ye._outsidePointerEvents.next(se)}}}}add(ne){if(super.add(ne),!this._isAttached){const Pe=this._document.body;Pe.addEventListener("pointerdown",this._pointerDownListener,!0),Pe.addEventListener("click",this._clickListener,!0),Pe.addEventListener("auxclick",this._clickListener,!0),Pe.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=Pe.style.cursor,Pe.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const ne=this._document.body;ne.removeEventListener("pointerdown",this._pointerDownListener,!0),ne.removeEventListener("click",this._clickListener,!0),ne.removeEventListener("auxclick",this._clickListener,!0),ne.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(ne.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return Ze.\u0275fac=function(ne){return new(ne||Ze)(_.\u0275\u0275inject(d.DOCUMENT),_.\u0275\u0275inject(s.t4))},Ze.\u0275prov=_.\u0275\u0275defineInjectable({token:Ze,factory:Ze.\u0275fac,providedIn:"root"}),Ze})(),Y=0,he=(()=>{class Ze{constructor(ne,Pe,se,Ce,_e,ie,ve,Ye,it,mt,_t){this.scrollStrategies=ne,this._overlayContainer=Pe,this._componentFactoryResolver=se,this._positionBuilder=Ce,this._keyboardDispatcher=_e,this._injector=ie,this._ngZone=ve,this._document=Ye,this._directionality=it,this._location=mt,this._outsideClickDispatcher=_t}create(ne){const Pe=this._createHostElement(),se=this._createPaneElement(Pe),Ce=this._createPortalOutlet(se),_e=new ue(ne);return _e.direction=_e.direction||this._directionality.value,new me(Ce,Pe,se,_e,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(ne){const Pe=this._document.createElement("div");return Pe.id="cdk-overlay-"+Y++,Pe.classList.add("cdk-overlay-pane"),ne.appendChild(Pe),Pe}_createHostElement(){const ne=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(ne),ne}_createPortalOutlet(ne){return this._appRef||(this._appRef=this._injector.get(_.ApplicationRef)),new C.u0(ne,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return Ze.\u0275fac=function(ne){return new(ne||Ze)(_.\u0275\u0275inject(be),_.\u0275\u0275inject(z),_.\u0275\u0275inject(_.ComponentFactoryResolver),_.\u0275\u0275inject(vt),_.\u0275\u0275inject(Re),_.\u0275\u0275inject(_.Injector),_.\u0275\u0275inject(_.NgZone),_.\u0275\u0275inject(d.DOCUMENT),_.\u0275\u0275inject(b.Is),_.\u0275\u0275inject(d.Location),_.\u0275\u0275inject(qe))},Ze.\u0275prov=_.\u0275\u0275defineInjectable({token:Ze,factory:Ze.\u0275fac}),Ze})();const Tt={provide:new _.InjectionToken("cdk-connected-overlay-scroll-strategy"),deps:[he],useFactory:function pt(Ze){return()=>Ze.scrollStrategies.reposition()}};let Rt=(()=>{class Ze{}return Ze.\u0275fac=function(ne){return new(ne||Ze)},Ze.\u0275mod=_.\u0275\u0275defineNgModule({type:Ze}),Ze.\u0275inj=_.\u0275\u0275defineInjector({providers:[he,Tt],imports:[[b.vT,C.eL,i.Cl],i.Cl]}),Ze})()},925:(Le,m,l)=>{"use strict";l.d(m,{t4:()=>u,ud:()=>s,sA:()=>pe,ht:()=>Me,kV:()=>re,Oy:()=>be,i$:()=>P,Mq:()=>N});var i=l(5e3),d=l(9808);let _;try{_="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(ue){_=!1}let p,S,ce,u=(()=>{class ue{constructor(He){this._platformId=He,this.isBrowser=this._platformId?(0,d.isPlatformBrowser)(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&&!_)&&"undefined"!=typeof CSS&&!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}}return ue.\u0275fac=function(He){return new(He||ue)(i.\u0275\u0275inject(i.PLATFORM_ID))},ue.\u0275prov=i.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac,providedIn:"root"}),ue})(),s=(()=>{class ue{}return ue.\u0275fac=function(He){return new(He||ue)},ue.\u0275mod=i.\u0275\u0275defineNgModule({type:ue}),ue.\u0275inj=i.\u0275\u0275defineInjector({}),ue})();function P(ue){return function y(){if(null==p&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>p=!0}))}finally{p=p||!1}return p}()?ue:!!ue.capture}function N(){if(null==S){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return S=!1,S;if("scrollBehavior"in document.documentElement.style)S=!0;else{const ue=Element.prototype.scrollTo;S=!!ue&&!/\{\s*\[native code\]\s*\}/.test(ue.toString())}}return S}function re(ue){if(function K(){if(null==ce){const ue="undefined"!=typeof document?document.head:null;ce=!(!ue||!ue.createShadowRoot&&!ue.attachShadow)}return ce}()){const xe=ue.getRootNode?ue.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&xe instanceof ShadowRoot)return xe}return null}function Me(){let ue="undefined"!=typeof document&&document?document.activeElement:null;for(;ue&&ue.shadowRoot;){const xe=ue.shadowRoot.activeElement;if(xe===ue)break;ue=xe}return ue}function pe(ue){return ue.composedPath?ue.composedPath()[0]:ue.target}function be(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},7429:(Le,m,l)=>{"use strict";l.d(m,{en:()=>S,ig:()=>K,Pl:()=>Me,C5:()=>y,u0:()=>B,eL:()=>be,UE:()=>P});var i=l(5e3),d=l(9808);class p{attach(He){return this._attachedHost=He,He.attach(this)}detach(){let He=this._attachedHost;null!=He&&(this._attachedHost=null,He.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(He){this._attachedHost=He}}class y extends p{constructor(He,et,ct,X){super(),this.component=He,this.viewContainerRef=et,this.injector=ct,this.componentFactoryResolver=X}}class P extends p{constructor(He,et,ct){super(),this.templateRef=He,this.viewContainerRef=et,this.context=ct}get origin(){return this.templateRef.elementRef}attach(He,et=this.context){return this.context=et,super.attach(He)}detach(){return this.context=void 0,super.detach()}}class O extends p{constructor(He){super(),this.element=He instanceof i.ElementRef?He.nativeElement:He}}class S{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(He){return He instanceof y?(this._attachedPortal=He,this.attachComponentPortal(He)):He instanceof P?(this._attachedPortal=He,this.attachTemplatePortal(He)):this.attachDomPortal&&He instanceof O?(this._attachedPortal=He,this.attachDomPortal(He)):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(He){this._disposeFn=He}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class B extends S{constructor(He,et,ct,X,me){super(),this.outletElement=He,this._componentFactoryResolver=et,this._appRef=ct,this._defaultInjector=X,this.attachDomPortal=z=>{const oe=z.element,ke=this._document.createComment("dom-portal");oe.parentNode.insertBefore(ke,oe),this.outletElement.appendChild(oe),this._attachedPortal=z,super.setDisposeFn(()=>{ke.parentNode&&ke.parentNode.replaceChild(oe,ke)})},this._document=me}attachComponentPortal(He){const ct=(He.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(He.component);let X;return He.viewContainerRef?(X=He.viewContainerRef.createComponent(ct,He.viewContainerRef.length,He.injector||He.viewContainerRef.injector),this.setDisposeFn(()=>X.destroy())):(X=ct.create(He.injector||this._defaultInjector),this._appRef.attachView(X.hostView),this.setDisposeFn(()=>{this._appRef.detachView(X.hostView),X.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(X)),this._attachedPortal=He,X}attachTemplatePortal(He){let et=He.viewContainerRef,ct=et.createEmbeddedView(He.templateRef,He.context);return ct.rootNodes.forEach(X=>this.outletElement.appendChild(X)),ct.detectChanges(),this.setDisposeFn(()=>{let X=et.indexOf(ct);-1!==X&&et.remove(X)}),this._attachedPortal=He,ct}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(He){return He.hostView.rootNodes[0]}}let K=(()=>{class xe extends P{constructor(et,ct){super(et,ct)}}return xe.\u0275fac=function(et){return new(et||xe)(i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(i.ViewContainerRef))},xe.\u0275dir=i.\u0275\u0275defineDirective({type:xe,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[i.\u0275\u0275InheritDefinitionFeature]}),xe})(),Me=(()=>{class xe extends S{constructor(et,ct,X){super(),this._componentFactoryResolver=et,this._viewContainerRef=ct,this._isInitialized=!1,this.attached=new i.EventEmitter,this.attachDomPortal=me=>{const z=me.element,oe=this._document.createComment("dom-portal");me.setAttachedHost(this),z.parentNode.insertBefore(oe,z),this._getRootNode().appendChild(z),this._attachedPortal=me,super.setDisposeFn(()=>{oe.parentNode&&oe.parentNode.replaceChild(z,oe)})},this._document=X}get portal(){return this._attachedPortal}set portal(et){this.hasAttached()&&!et&&!this._isInitialized||(this.hasAttached()&&super.detach(),et&&super.attach(et),this._attachedPortal=et||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(et){et.setAttachedHost(this);const ct=null!=et.viewContainerRef?et.viewContainerRef:this._viewContainerRef,me=(et.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(et.component),z=ct.createComponent(me,ct.length,et.injector||ct.injector);return ct!==this._viewContainerRef&&this._getRootNode().appendChild(z.hostView.rootNodes[0]),super.setDisposeFn(()=>z.destroy()),this._attachedPortal=et,this._attachedRef=z,this.attached.emit(z),z}attachTemplatePortal(et){et.setAttachedHost(this);const ct=this._viewContainerRef.createEmbeddedView(et.templateRef,et.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=et,this._attachedRef=ct,this.attached.emit(ct),ct}_getRootNode(){const et=this._viewContainerRef.element.nativeElement;return et.nodeType===et.ELEMENT_NODE?et:et.parentNode}}return xe.\u0275fac=function(et){return new(et||xe)(i.\u0275\u0275directiveInject(i.ComponentFactoryResolver),i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(d.DOCUMENT))},xe.\u0275dir=i.\u0275\u0275defineDirective({type:xe,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.\u0275\u0275InheritDefinitionFeature]}),xe})(),be=(()=>{class xe{}return xe.\u0275fac=function(et){return new(et||xe)},xe.\u0275mod=i.\u0275\u0275defineNgModule({type:xe}),xe.\u0275inj=i.\u0275\u0275defineInjector({}),xe})()},9071:(Le,m,l)=>{"use strict";l.d(m,{ZD:()=>oe,mF:()=>be,Cl:()=>ke,rL:()=>He});var i=l(3191),d=l(5e3),_=l(6758),u=l(9646),s=l(9751),b=l(4968),p=(l(29),l(3101),l(453)),y=l(9300),P=l(9808),O=l(925),S=l(226);let be=(()=>{class de{constructor(fe,Je,Te){this._ngZone=fe,this._platform=Je,this._scrolled=new _.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=Te}register(fe){this.scrollContainers.has(fe)||this.scrollContainers.set(fe,fe.elementScrolled().subscribe(()=>this._scrolled.next(fe)))}deregister(fe){const Je=this.scrollContainers.get(fe);Je&&(Je.unsubscribe(),this.scrollContainers.delete(fe))}scrolled(fe=20){return this._platform.isBrowser?new s.y(Je=>{this._globalSubscription||this._addGlobalListener();const Te=fe>0?this._scrolled.pipe((0,p.e)(fe)).subscribe(Je):this._scrolled.subscribe(Je);return this._scrolledCount++,()=>{Te.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,u.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((fe,Je)=>this.deregister(Je)),this._scrolled.complete()}ancestorScrolled(fe,Je){const Te=this.getAncestorScrollContainers(fe);return this.scrolled(Je).pipe((0,y.h)(Ge=>!Ge||Te.indexOf(Ge)>-1))}getAncestorScrollContainers(fe){const Je=[];return this.scrollContainers.forEach((Te,Ge)=>{this._scrollableContainsElement(Ge,fe)&&Je.push(Ge)}),Je}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(fe,Je){let Te=(0,i.fI)(Je),Ge=fe.getElementRef().nativeElement;do{if(Te==Ge)return!0}while(Te=Te.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const fe=this._getWindow();return(0,b.R)(fe.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return de.\u0275fac=function(fe){return new(fe||de)(d.\u0275\u0275inject(d.NgZone),d.\u0275\u0275inject(O.t4),d.\u0275\u0275inject(P.DOCUMENT,8))},de.\u0275prov=d.\u0275\u0275defineInjectable({token:de,factory:de.\u0275fac,providedIn:"root"}),de})(),He=(()=>{class de{constructor(fe,Je,Te){this._platform=fe,this._change=new _.x,this._changeListener=Ge=>{this._change.next(Ge)},this._document=Te,Je.runOutsideAngular(()=>{if(fe.isBrowser){const Ge=this._getWindow();Ge.addEventListener("resize",this._changeListener),Ge.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const fe=this._getWindow();fe.removeEventListener("resize",this._changeListener),fe.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const fe={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),fe}getViewportRect(){const fe=this.getViewportScrollPosition(),{width:Je,height:Te}=this.getViewportSize();return{top:fe.top,left:fe.left,bottom:fe.top+Te,right:fe.left+Je,height:Te,width:Je}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const fe=this._document,Je=this._getWindow(),Te=fe.documentElement,Ge=Te.getBoundingClientRect();return{top:-Ge.top||fe.body.scrollTop||Je.scrollY||Te.scrollTop||0,left:-Ge.left||fe.body.scrollLeft||Je.scrollX||Te.scrollLeft||0}}change(fe=20){return fe>0?this._change.pipe((0,p.e)(fe)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const fe=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:fe.innerWidth,height:fe.innerHeight}:{width:0,height:0}}}return de.\u0275fac=function(fe){return new(fe||de)(d.\u0275\u0275inject(O.t4),d.\u0275\u0275inject(d.NgZone),d.\u0275\u0275inject(P.DOCUMENT,8))},de.\u0275prov=d.\u0275\u0275defineInjectable({token:de,factory:de.\u0275fac,providedIn:"root"}),de})(),oe=(()=>{class de{}return de.\u0275fac=function(fe){return new(fe||de)},de.\u0275mod=d.\u0275\u0275defineNgModule({type:de}),de.\u0275inj=d.\u0275\u0275defineInjector({}),de})(),ke=(()=>{class de{}return de.\u0275fac=function(fe){return new(fe||de)},de.\u0275mod=d.\u0275\u0275defineNgModule({type:de}),de.\u0275inj=d.\u0275\u0275defineInjector({imports:[[S.vT,O.ud,oe],S.vT,oe]}),de})()},9808:(Le,m,l)=>{"use strict";l.r(m),l.d(m,{APP_BASE_HREF:()=>Me,AsyncPipe:()=>Wi,CommonModule:()=>rr,CurrencyPipe:()=>Ai,DATE_PIPE_DEFAULT_TIMEZONE:()=>gr,DOCUMENT:()=>C,DatePipe:()=>Di,DecimalPipe:()=>_r,FormStyle:()=>z,FormatWidth:()=>ke,HashLocationStrategy:()=>be,I18nPluralPipe:()=>Pr,I18nSelectPipe:()=>Ki,JsonPipe:()=>Si,KeyValuePipe:()=>Or,LOCATION_INITIALIZED:()=>y,Location:()=>ue,LocationStrategy:()=>K,LowerCasePipe:()=>Ir,NgClass:()=>cn,NgComponentOutlet:()=>Hn,NgForOf:()=>Sn,NgForOfContext:()=>Un,NgIf:()=>xn,NgIfContext:()=>mn,NgLocaleLocalization:()=>vn,NgLocalization:()=>jt,NgPlural:()=>hi,NgPluralCase:()=>Wn,NgStyle:()=>Sr,NgSwitch:()=>Kn,NgSwitchCase:()=>Gn,NgSwitchDefault:()=>Ci,NgTemplateOutlet:()=>nr,NumberFormatStyle:()=>X,NumberSymbol:()=>de,PathLocationStrategy:()=>pe,PercentPipe:()=>fi,PlatformLocation:()=>T,Plural:()=>me,SlicePipe:()=>mi,TitleCasePipe:()=>zi,TranslationWidth:()=>oe,UpperCasePipe:()=>ci,VERSION:()=>Yi,ViewportScroller:()=>ki,WeekDay:()=>Ue,XhrFactory:()=>Ln,formatCurrency:()=>Bn,formatDate:()=>zt,formatNumber:()=>we,formatPercent:()=>H,getCurrencySymbol:()=>Ce,getLocaleCurrencyCode:()=>pt,getLocaleCurrencyName:()=>Xe,getLocaleCurrencySymbol:()=>ge,getLocaleDateFormat:()=>qe,getLocaleDateTimeFormat:()=>he,getLocaleDayNames:()=>Te,getLocaleDayPeriods:()=>Je,getLocaleDirection:()=>ne,getLocaleEraNames:()=>vt,getLocaleExtraDayPeriodRules:()=>Ze,getLocaleExtraDayPeriods:()=>k,getLocaleFirstDayOfWeek:()=>St,getLocaleId:()=>fe,getLocaleMonthNames:()=>Ge,getLocaleNumberFormat:()=>Ie,getLocaleNumberSymbol:()=>Ee,getLocalePluralCase:()=>Rt,getLocaleTimeFormat:()=>Y,getLocaleWeekEndRange:()=>Re,getNumberOfCurrencyDigits:()=>ie,isPlatformBrowser:()=>ti,isPlatformServer:()=>Ri,isPlatformWorkerApp:()=>or,isPlatformWorkerUi:()=>Fi,registerLocaleData:()=>Ht,\u0275BrowserPlatformLocation:()=>P,\u0275DomAdapter:()=>b,\u0275NullViewportScroller:()=>ar,\u0275PLATFORM_BROWSER_ID:()=>Pi,\u0275PLATFORM_SERVER_ID:()=>Oi,\u0275PLATFORM_WORKER_APP_ID:()=>xi,\u0275PLATFORM_WORKER_UI_ID:()=>Zi,\u0275getDOM:()=>_,\u0275parseCookieValue:()=>On,\u0275setRootDomAdapter:()=>s});var i=l(5e3);let d=null;function _(){return d}function s(x){d||(d=x)}class b{}const C=new i.InjectionToken("DocumentToken");let T=(()=>{class x{historyGo(R){throw new Error("Not implemented")}}return x.\u0275fac=function(R){return new(R||x)},x.\u0275prov=i.\u0275\u0275defineInjectable({token:x,factory:function(){return function p(){return(0,i.\u0275\u0275inject)(P)}()},providedIn:"platform"}),x})();const y=new i.InjectionToken("Location Initialized");let P=(()=>{class x extends T{constructor(R){super(),this._doc=R,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return _().getBaseHref(this._doc)}onPopState(R){const te=_().getGlobalEventTarget(this._doc,"window");return te.addEventListener("popstate",R,!1),()=>te.removeEventListener("popstate",R)}onHashChange(R){const te=_().getGlobalEventTarget(this._doc,"window");return te.addEventListener("hashchange",R,!1),()=>te.removeEventListener("hashchange",R)}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(R){this.location.pathname=R}pushState(R,te,ze){O()?this._history.pushState(R,te,ze):this.location.hash=ze}replaceState(R,te,ze){O()?this._history.replaceState(R,te,ze):this.location.hash=ze}forward(){this._history.forward()}back(){this._history.back()}historyGo(R=0){this._history.go(R)}getState(){return this._history.state}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275inject(C))},x.\u0275prov=i.\u0275\u0275defineInjectable({token:x,factory:function(){return function S(){return new P((0,i.\u0275\u0275inject)(C))}()},providedIn:"platform"}),x})();function O(){return!!window.history.pushState}function N(x,Q){if(0==x.length)return Q;if(0==Q.length)return x;let R=0;return x.endsWith("/")&&R++,Q.startsWith("/")&&R++,2==R?x+Q.substring(1):1==R?x+Q:x+"/"+Q}function B(x){const Q=x.match(/#|\?|$/),R=Q&&Q.index||x.length;return x.slice(0,R-("/"===x[R-1]?1:0))+x.slice(R)}function ce(x){return x&&"?"!==x[0]?"?"+x:x}let K=(()=>{class x{historyGo(R){throw new Error("Not implemented")}}return x.\u0275fac=function(R){return new(R||x)},x.\u0275prov=i.\u0275\u0275defineInjectable({token:x,factory:function(){return function re(x){const Q=(0,i.\u0275\u0275inject)(C).location;return new pe((0,i.\u0275\u0275inject)(T),Q&&Q.origin||"")}()},providedIn:"root"}),x})();const Me=new i.InjectionToken("appBaseHref");let pe=(()=>{class x extends K{constructor(R,te){if(super(),this._platformLocation=R,this._removeListenerFns=[],null==te&&(te=this._platformLocation.getBaseHrefFromDOM()),null==te)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=te}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(R){this._removeListenerFns.push(this._platformLocation.onPopState(R),this._platformLocation.onHashChange(R))}getBaseHref(){return this._baseHref}prepareExternalUrl(R){return N(this._baseHref,R)}path(R=!1){const te=this._platformLocation.pathname+ce(this._platformLocation.search),ze=this._platformLocation.hash;return ze&&R?`${te}${ze}`:te}pushState(R,te,ze,ht){const Dt=this.prepareExternalUrl(ze+ce(ht));this._platformLocation.pushState(R,te,Dt)}replaceState(R,te,ze,ht){const Dt=this.prepareExternalUrl(ze+ce(ht));this._platformLocation.replaceState(R,te,Dt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(R=0){var te,ze;null===(ze=(te=this._platformLocation).historyGo)||void 0===ze||ze.call(te,R)}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275inject(T),i.\u0275\u0275inject(Me,8))},x.\u0275prov=i.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac}),x})(),be=(()=>{class x extends K{constructor(R,te){super(),this._platformLocation=R,this._baseHref="",this._removeListenerFns=[],null!=te&&(this._baseHref=te)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(R){this._removeListenerFns.push(this._platformLocation.onPopState(R),this._platformLocation.onHashChange(R))}getBaseHref(){return this._baseHref}path(R=!1){let te=this._platformLocation.hash;return null==te&&(te="#"),te.length>0?te.substring(1):te}prepareExternalUrl(R){const te=N(this._baseHref,R);return te.length>0?"#"+te:te}pushState(R,te,ze,ht){let Dt=this.prepareExternalUrl(ze+ce(ht));0==Dt.length&&(Dt=this._platformLocation.pathname),this._platformLocation.pushState(R,te,Dt)}replaceState(R,te,ze,ht){let Dt=this.prepareExternalUrl(ze+ce(ht));0==Dt.length&&(Dt=this._platformLocation.pathname),this._platformLocation.replaceState(R,te,Dt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(R=0){var te,ze;null===(ze=(te=this._platformLocation).historyGo)||void 0===ze||ze.call(te,R)}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275inject(T),i.\u0275\u0275inject(Me,8))},x.\u0275prov=i.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac}),x})(),ue=(()=>{class x{constructor(R,te){this._subject=new i.EventEmitter,this._urlChangeListeners=[],this._platformStrategy=R;const ze=this._platformStrategy.getBaseHref();this._platformLocation=te,this._baseHref=B(et(ze)),this._platformStrategy.onPopState(ht=>{this._subject.emit({url:this.path(!0),pop:!0,state:ht.state,type:ht.type})})}path(R=!1){return this.normalize(this._platformStrategy.path(R))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(R,te=""){return this.path()==this.normalize(R+ce(te))}normalize(R){return x.stripTrailingSlash(function He(x,Q){return x&&Q.startsWith(x)?Q.substring(x.length):Q}(this._baseHref,et(R)))}prepareExternalUrl(R){return R&&"/"!==R[0]&&(R="/"+R),this._platformStrategy.prepareExternalUrl(R)}go(R,te="",ze=null){this._platformStrategy.pushState(ze,"",R,te),this._notifyUrlChangeListeners(this.prepareExternalUrl(R+ce(te)),ze)}replaceState(R,te="",ze=null){this._platformStrategy.replaceState(ze,"",R,te),this._notifyUrlChangeListeners(this.prepareExternalUrl(R+ce(te)),ze)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(R=0){var te,ze;null===(ze=(te=this._platformStrategy).historyGo)||void 0===ze||ze.call(te,R)}onUrlChange(R){this._urlChangeListeners.push(R),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(te=>{this._notifyUrlChangeListeners(te.url,te.state)}))}_notifyUrlChangeListeners(R="",te){this._urlChangeListeners.forEach(ze=>ze(R,te))}subscribe(R,te,ze){return this._subject.subscribe({next:R,error:te,complete:ze})}}return x.normalizeQueryParams=ce,x.joinWithSlash=N,x.stripTrailingSlash=B,x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275inject(K),i.\u0275\u0275inject(T))},x.\u0275prov=i.\u0275\u0275defineInjectable({token:x,factory:function(){return function xe(){return new ue((0,i.\u0275\u0275inject)(K),(0,i.\u0275\u0275inject)(T))}()},providedIn:"root"}),x})();function et(x){return x.replace(/\/index.html$/,"")}const ct={ADP:[void 0,void 0,0],AFN:[void 0,"\u060b",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058f",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20bc"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,"\u0440.",2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GHS:[void 0,"GH\u20b5"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RUR:[void 0,"\u0440."],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202fCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]};var X=(()=>((X=X||{})[X.Decimal=0]="Decimal",X[X.Percent=1]="Percent",X[X.Currency=2]="Currency",X[X.Scientific=3]="Scientific",X))(),me=(()=>((me=me||{})[me.Zero=0]="Zero",me[me.One=1]="One",me[me.Two=2]="Two",me[me.Few=3]="Few",me[me.Many=4]="Many",me[me.Other=5]="Other",me))(),z=(()=>((z=z||{})[z.Format=0]="Format",z[z.Standalone=1]="Standalone",z))(),oe=(()=>((oe=oe||{})[oe.Narrow=0]="Narrow",oe[oe.Abbreviated=1]="Abbreviated",oe[oe.Wide=2]="Wide",oe[oe.Short=3]="Short",oe))(),ke=(()=>((ke=ke||{})[ke.Short=0]="Short",ke[ke.Medium=1]="Medium",ke[ke.Long=2]="Long",ke[ke.Full=3]="Full",ke))(),de=(()=>((de=de||{})[de.Decimal=0]="Decimal",de[de.Group=1]="Group",de[de.List=2]="List",de[de.PercentSign=3]="PercentSign",de[de.PlusSign=4]="PlusSign",de[de.MinusSign=5]="MinusSign",de[de.Exponential=6]="Exponential",de[de.SuperscriptingExponent=7]="SuperscriptingExponent",de[de.PerMille=8]="PerMille",de[de.Infinity=9]="Infinity",de[de.NaN=10]="NaN",de[de.TimeSeparator=11]="TimeSeparator",de[de.CurrencyDecimal=12]="CurrencyDecimal",de[de.CurrencyGroup=13]="CurrencyGroup",de))(),Ue=(()=>((Ue=Ue||{})[Ue.Sunday=0]="Sunday",Ue[Ue.Monday=1]="Monday",Ue[Ue.Tuesday=2]="Tuesday",Ue[Ue.Wednesday=3]="Wednesday",Ue[Ue.Thursday=4]="Thursday",Ue[Ue.Friday=5]="Friday",Ue[Ue.Saturday=6]="Saturday",Ue))();function fe(x){return(0,i.\u0275findLocaleData)(x)[i.\u0275LocaleDataIndex.LocaleId]}function Je(x,Q,R){const te=(0,i.\u0275findLocaleData)(x),ht=Pe([te[i.\u0275LocaleDataIndex.DayPeriodsFormat],te[i.\u0275LocaleDataIndex.DayPeriodsStandalone]],Q);return Pe(ht,R)}function Te(x,Q,R){const te=(0,i.\u0275findLocaleData)(x),ht=Pe([te[i.\u0275LocaleDataIndex.DaysFormat],te[i.\u0275LocaleDataIndex.DaysStandalone]],Q);return Pe(ht,R)}function Ge(x,Q,R){const te=(0,i.\u0275findLocaleData)(x),ht=Pe([te[i.\u0275LocaleDataIndex.MonthsFormat],te[i.\u0275LocaleDataIndex.MonthsStandalone]],Q);return Pe(ht,R)}function vt(x,Q){return Pe((0,i.\u0275findLocaleData)(x)[i.\u0275LocaleDataIndex.Eras],Q)}function St(x){return(0,i.\u0275findLocaleData)(x)[i.\u0275LocaleDataIndex.FirstDayOfWeek]}function Re(x){return(0,i.\u0275findLocaleData)(x)[i.\u0275LocaleDataIndex.WeekendRange]}function qe(x,Q){return Pe((0,i.\u0275findLocaleData)(x)[i.\u0275LocaleDataIndex.DateFormat],Q)}function Y(x,Q){return Pe((0,i.\u0275findLocaleData)(x)[i.\u0275LocaleDataIndex.TimeFormat],Q)}function he(x,Q){return Pe((0,i.\u0275findLocaleData)(x)[i.\u0275LocaleDataIndex.DateTimeFormat],Q)}function Ee(x,Q){const R=(0,i.\u0275findLocaleData)(x),te=R[i.\u0275LocaleDataIndex.NumberSymbols][Q];if(void 0===te){if(Q===de.CurrencyDecimal)return R[i.\u0275LocaleDataIndex.NumberSymbols][de.Decimal];if(Q===de.CurrencyGroup)return R[i.\u0275LocaleDataIndex.NumberSymbols][de.Group]}return te}function Ie(x,Q){return(0,i.\u0275findLocaleData)(x)[i.\u0275LocaleDataIndex.NumberFormats][Q]}function ge(x){return(0,i.\u0275findLocaleData)(x)[i.\u0275LocaleDataIndex.CurrencySymbol]||null}function Xe(x){return(0,i.\u0275findLocaleData)(x)[i.\u0275LocaleDataIndex.CurrencyName]||null}function pt(x){return(0,i.\u0275getLocaleCurrencyCode)(x)}const Rt=i.\u0275getLocalePluralCase;function dt(x){if(!x[i.\u0275LocaleDataIndex.ExtraData])throw new Error(`Missing extra locale data for the locale "${x[i.\u0275LocaleDataIndex.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ze(x){const Q=(0,i.\u0275findLocaleData)(x);return dt(Q),(Q[i.\u0275LocaleDataIndex.ExtraData][2]||[]).map(te=>"string"==typeof te?se(te):[se(te[0]),se(te[1])])}function k(x,Q,R){const te=(0,i.\u0275findLocaleData)(x);dt(te);const ht=Pe([te[i.\u0275LocaleDataIndex.ExtraData][0],te[i.\u0275LocaleDataIndex.ExtraData][1]],Q)||[];return Pe(ht,R)||[]}function ne(x){return(0,i.\u0275findLocaleData)(x)[i.\u0275LocaleDataIndex.Directionality]}function Pe(x,Q){for(let R=Q;R>-1;R--)if(void 0!==x[R])return x[R];throw new Error("Locale data API: locale data undefined")}function se(x){const[Q,R]=x.split(":");return{hours:+Q,minutes:+R}}function Ce(x,Q,R="en"){const te=function Tt(x){return(0,i.\u0275findLocaleData)(x)[i.\u0275LocaleDataIndex.Currencies]}(R)[x]||ct[x]||[],ze=te[1];return"narrow"===Q&&"string"==typeof ze?ze:te[0]||x}function ie(x){let Q;const R=ct[x];return R&&(Q=R[2]),"number"==typeof Q?Q:2}const ve=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ye={},it=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var mt=(()=>((mt=mt||{})[mt.Short=0]="Short",mt[mt.ShortGMT=1]="ShortGMT",mt[mt.Long=2]="Long",mt[mt.Extended=3]="Extended",mt))(),_t=(()=>((_t=_t||{})[_t.FullYear=0]="FullYear",_t[_t.Month=1]="Month",_t[_t.Date=2]="Date",_t[_t.Hours=3]="Hours",_t[_t.Minutes=4]="Minutes",_t[_t.Seconds=5]="Seconds",_t[_t.FractionalSeconds=6]="FractionalSeconds",_t[_t.Day=7]="Day",_t))(),It=(()=>((It=It||{})[It.DayPeriods=0]="DayPeriods",It[It.Days=1]="Days",It[It.Months=2]="Months",It[It.Eras=3]="Eras",It))();function zt(x,Q,R,te){let ze=function $e(x){if(Be(x))return x;if("number"==typeof x&&!isNaN(x))return new Date(x);if("string"==typeof x){if(x=x.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(x)){const[ze,ht=1,Dt=1]=x.split("-").map(Nt=>+Nt);return on(ze,ht-1,Dt)}const R=parseFloat(x);if(!isNaN(x-R))return new Date(R);let te;if(te=x.match(ve))return function le(x){const Q=new Date(0);let R=0,te=0;const ze=x[8]?Q.setUTCFullYear:Q.setFullYear,ht=x[8]?Q.setUTCHours:Q.setHours;x[9]&&(R=Number(x[9]+x[10]),te=Number(x[9]+x[11])),ze.call(Q,Number(x[1]),Number(x[2])-1,Number(x[3]));const Dt=Number(x[4]||0)-R,Nt=Number(x[5]||0)-te,Dn=Number(x[6]||0),Tn=Math.floor(1e3*parseFloat("0."+(x[7]||0)));return ht.call(Q,Dt,Nt,Dn,Tn),Q}(te)}const Q=new Date(x);if(!Be(Q))throw new Error(`Unable to convert "${x}" into a date`);return Q}(x);Q=Kt(R,Q)||Q;let Nt,Dt=[];for(;Q;){if(Nt=it.exec(Q),!Nt){Dt.push(Q);break}{Dt=Dt.concat(Nt.slice(1));const In=Dt.pop();if(!In)break;Q=In}}let Dn=ze.getTimezoneOffset();te&&(Dn=Ut(te,Dn),ze=function Ve(x,Q,R){const te=R?-1:1,ze=x.getTimezoneOffset();return function gn(x,Q){return(x=new Date(x.getTime())).setMinutes(x.getMinutes()+Q),x}(x,te*(Ut(Q,ze)-ze))}(ze,te,!0));let Tn="";return Dt.forEach(In=>{const un=function Et(x){if(ot[x])return ot[x];let Q;switch(x){case"G":case"GG":case"GGG":Q=at(It.Eras,oe.Abbreviated);break;case"GGGG":Q=at(It.Eras,oe.Wide);break;case"GGGGG":Q=at(It.Eras,oe.Narrow);break;case"y":Q=Ot(_t.FullYear,1,0,!1,!0);break;case"yy":Q=Ot(_t.FullYear,2,0,!0,!0);break;case"yyy":Q=Ot(_t.FullYear,3,0,!1,!0);break;case"yyyy":Q=Ot(_t.FullYear,4,0,!1,!0);break;case"Y":Q=G(1);break;case"YY":Q=G(2,!0);break;case"YYY":Q=G(3);break;case"YYYY":Q=G(4);break;case"M":case"L":Q=Ot(_t.Month,1,1);break;case"MM":case"LL":Q=Ot(_t.Month,2,1);break;case"MMM":Q=at(It.Months,oe.Abbreviated);break;case"MMMM":Q=at(It.Months,oe.Wide);break;case"MMMMM":Q=at(It.Months,oe.Narrow);break;case"LLL":Q=at(It.Months,oe.Abbreviated,z.Standalone);break;case"LLLL":Q=at(It.Months,oe.Wide,z.Standalone);break;case"LLLLL":Q=at(It.Months,oe.Narrow,z.Standalone);break;case"w":Q=M(1);break;case"ww":Q=M(2);break;case"W":Q=M(1,!0);break;case"d":Q=Ot(_t.Date,1);break;case"dd":Q=Ot(_t.Date,2);break;case"c":case"cc":Q=Ot(_t.Day,1);break;case"ccc":Q=at(It.Days,oe.Abbreviated,z.Standalone);break;case"cccc":Q=at(It.Days,oe.Wide,z.Standalone);break;case"ccccc":Q=at(It.Days,oe.Narrow,z.Standalone);break;case"cccccc":Q=at(It.Days,oe.Short,z.Standalone);break;case"E":case"EE":case"EEE":Q=at(It.Days,oe.Abbreviated);break;case"EEEE":Q=at(It.Days,oe.Wide);break;case"EEEEE":Q=at(It.Days,oe.Narrow);break;case"EEEEEE":Q=at(It.Days,oe.Short);break;case"a":case"aa":case"aaa":Q=at(It.DayPeriods,oe.Abbreviated);break;case"aaaa":Q=at(It.DayPeriods,oe.Wide);break;case"aaaaa":Q=at(It.DayPeriods,oe.Narrow);break;case"b":case"bb":case"bbb":Q=at(It.DayPeriods,oe.Abbreviated,z.Standalone,!0);break;case"bbbb":Q=at(It.DayPeriods,oe.Wide,z.Standalone,!0);break;case"bbbbb":Q=at(It.DayPeriods,oe.Narrow,z.Standalone,!0);break;case"B":case"BB":case"BBB":Q=at(It.DayPeriods,oe.Abbreviated,z.Format,!0);break;case"BBBB":Q=at(It.DayPeriods,oe.Wide,z.Format,!0);break;case"BBBBB":Q=at(It.DayPeriods,oe.Narrow,z.Format,!0);break;case"h":Q=Ot(_t.Hours,1,-12);break;case"hh":Q=Ot(_t.Hours,2,-12);break;case"H":Q=Ot(_t.Hours,1);break;case"HH":Q=Ot(_t.Hours,2);break;case"m":Q=Ot(_t.Minutes,1);break;case"mm":Q=Ot(_t.Minutes,2);break;case"s":Q=Ot(_t.Seconds,1);break;case"ss":Q=Ot(_t.Seconds,2);break;case"S":Q=Ot(_t.FractionalSeconds,1);break;case"SS":Q=Ot(_t.FractionalSeconds,2);break;case"SSS":Q=Ot(_t.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":Q=Qe(mt.Short);break;case"ZZZZZ":Q=Qe(mt.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":Q=Qe(mt.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":Q=Qe(mt.Long);break;default:return null}return ot[x]=Q,Q}(In);Tn+=un?un(ze,R,Dn):"''"===In?"'":In.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Tn}function on(x,Q,R){const te=new Date(0);return te.setFullYear(x,Q,R),te.setHours(0,0,0),te}function Kt(x,Q){const R=fe(x);if(Ye[R]=Ye[R]||{},Ye[R][Q])return Ye[R][Q];let te="";switch(Q){case"shortDate":te=qe(x,ke.Short);break;case"mediumDate":te=qe(x,ke.Medium);break;case"longDate":te=qe(x,ke.Long);break;case"fullDate":te=qe(x,ke.Full);break;case"shortTime":te=Y(x,ke.Short);break;case"mediumTime":te=Y(x,ke.Medium);break;case"longTime":te=Y(x,ke.Long);break;case"fullTime":te=Y(x,ke.Full);break;case"short":const ze=Kt(x,"shortTime"),ht=Kt(x,"shortDate");te=Mn(he(x,ke.Short),[ze,ht]);break;case"medium":const Dt=Kt(x,"mediumTime"),Nt=Kt(x,"mediumDate");te=Mn(he(x,ke.Medium),[Dt,Nt]);break;case"long":const Dn=Kt(x,"longTime"),Tn=Kt(x,"longDate");te=Mn(he(x,ke.Long),[Dn,Tn]);break;case"full":const In=Kt(x,"fullTime"),un=Kt(x,"fullDate");te=Mn(he(x,ke.Full),[In,un])}return te&&(Ye[R][Q]=te),te}function Mn(x,Q){return Q&&(x=x.replace(/\{([^}]+)}/g,function(R,te){return null!=Q&&te in Q?Q[te]:R})),x}function an(x,Q,R="-",te,ze){let ht="";(x<0||ze&&x<=0)&&(ze?x=1-x:(x=-x,ht=R));let Dt=String(x);for(;Dt.length<Q;)Dt="0"+Dt;return te&&(Dt=Dt.substr(Dt.length-Q)),ht+Dt}function Ot(x,Q,R=0,te=!1,ze=!1){return function(ht,Dt){let Nt=function bn(x,Q){switch(x){case _t.FullYear:return Q.getFullYear();case _t.Month:return Q.getMonth();case _t.Date:return Q.getDate();case _t.Hours:return Q.getHours();case _t.Minutes:return Q.getMinutes();case _t.Seconds:return Q.getSeconds();case _t.FractionalSeconds:return Q.getMilliseconds();case _t.Day:return Q.getDay();default:throw new Error(`Unknown DateType value "${x}".`)}}(x,ht);if((R>0||Nt>-R)&&(Nt+=R),x===_t.Hours)0===Nt&&-12===R&&(Nt=12);else if(x===_t.FractionalSeconds)return function Qt(x,Q){return an(x,3).substr(0,Q)}(Nt,Q);const Dn=Ee(Dt,de.MinusSign);return an(Nt,Q,Dn,te,ze)}}function at(x,Q,R=z.Format,te=!1){return function(ze,ht){return function Ke(x,Q,R,te,ze,ht){switch(R){case It.Months:return Ge(Q,ze,te)[x.getMonth()];case It.Days:return Te(Q,ze,te)[x.getDay()];case It.DayPeriods:const Dt=x.getHours(),Nt=x.getMinutes();if(ht){const Tn=Ze(Q),In=k(Q,ze,te),un=Tn.findIndex(F=>{if(Array.isArray(F)){const[A,v]=F,J=Dt>=A.hours&&Nt>=A.minutes,ut=Dt<v.hours||Dt===v.hours&&Nt<v.minutes;if(A.hours<v.hours){if(J&&ut)return!0}else if(J||ut)return!0}else if(F.hours===Dt&&F.minutes===Nt)return!0;return!1});if(-1!==un)return In[un]}return Je(Q,ze,te)[Dt<12?0:1];case It.Eras:return vt(Q,te)[x.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${R}`)}}(ze,ht,x,Q,R,te)}}function Qe(x){return function(Q,R,te){const ze=-1*te,ht=Ee(R,de.MinusSign),Dt=ze>0?Math.floor(ze/60):Math.ceil(ze/60);switch(x){case mt.Short:return(ze>=0?"+":"")+an(Dt,2,ht)+an(Math.abs(ze%60),2,ht);case mt.ShortGMT:return"GMT"+(ze>=0?"+":"")+an(Dt,1,ht);case mt.Long:return"GMT"+(ze>=0?"+":"")+an(Dt,2,ht)+":"+an(Math.abs(ze%60),2,ht);case mt.Extended:return 0===te?"Z":(ze>=0?"+":"")+an(Dt,2,ht)+":"+an(Math.abs(ze%60),2,ht);default:throw new Error(`Unknown zone width "${x}"`)}}}function I(x){return on(x.getFullYear(),x.getMonth(),x.getDate()+(4-x.getDay()))}function M(x,Q=!1){return function(R,te){let ze;if(Q){const ht=new Date(R.getFullYear(),R.getMonth(),1).getDay()-1,Dt=R.getDate();ze=1+Math.floor((Dt+ht)/7)}else{const ht=I(R),Dt=function w(x){const Q=on(x,0,1).getDay();return on(x,0,1+(Q<=4?4:11)-Q)}(ht.getFullYear()),Nt=ht.getTime()-Dt.getTime();ze=1+Math.round(Nt/6048e5)}return an(ze,x,Ee(te,de.MinusSign))}}function G(x,Q=!1){return function(R,te){return an(I(R).getFullYear(),x,Ee(te,de.MinusSign),Q)}}const ot={};function Ut(x,Q){x=x.replace(/:/g,"");const R=Date.parse("Jan 01, 1970 00:00:00 "+x)/6e4;return isNaN(R)?Q:R}function Be(x){return x instanceof Date&&!isNaN(x.valueOf())}const ft=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function zn(x,Q,R,te,ze,ht,Dt=!1){let Nt="",Dn=!1;if(isFinite(x)){let Tn=function tt(x){let te,ze,ht,Dt,Nt,Q=Math.abs(x)+"",R=0;for((ze=Q.indexOf("."))>-1&&(Q=Q.replace(".","")),(ht=Q.search(/e/i))>0?(ze<0&&(ze=ht),ze+=+Q.slice(ht+1),Q=Q.substring(0,ht)):ze<0&&(ze=Q.length),ht=0;"0"===Q.charAt(ht);ht++);if(ht===(Nt=Q.length))te=[0],ze=1;else{for(Nt--;"0"===Q.charAt(Nt);)Nt--;for(ze-=ht,te=[],Dt=0;ht<=Nt;ht++,Dt++)te[Dt]=Number(Q.charAt(ht))}return ze>22&&(te=te.splice(0,21),R=ze-1,ze=1),{digits:te,exponent:R,integerLen:ze}}(x);Dt&&(Tn=function Ae(x){if(0===x.digits[0])return x;const Q=x.digits.length-x.integerLen;return x.exponent?x.exponent+=2:(0===Q?x.digits.push(0,0):1===Q&&x.digits.push(0),x.integerLen+=2),x}(Tn));let In=Q.minInt,un=Q.minFrac,F=Q.maxFrac;if(ht){const An=ht.match(ft);if(null===An)throw new Error(`${ht} is not a valid digit info`);const qn=An[1],gi=An[3],Ni=An[5];null!=qn&&(In=At(qn)),null!=gi&&(un=At(gi)),null!=Ni?F=At(Ni):null!=gi&&un>F&&(F=un)}!function lt(x,Q,R){if(Q>R)throw new Error(`The minimum number of digits after fraction (${Q}) is higher than the maximum (${R}).`);let te=x.digits,ze=te.length-x.integerLen;const ht=Math.min(Math.max(Q,ze),R);let Dt=ht+x.integerLen,Nt=te[Dt];if(Dt>0){te.splice(Math.max(x.integerLen,Dt));for(let un=Dt;un<te.length;un++)te[un]=0}else{ze=Math.max(0,ze),x.integerLen=1,te.length=Math.max(1,Dt=ht+1),te[0]=0;for(let un=1;un<Dt;un++)te[un]=0}if(Nt>=5)if(Dt-1<0){for(let un=0;un>Dt;un--)te.unshift(0),x.integerLen++;te.unshift(1),x.integerLen++}else te[Dt-1]++;for(;ze<Math.max(0,ht);ze++)te.push(0);let Dn=0!==ht;const Tn=Q+x.integerLen,In=te.reduceRight(function(un,F,A,v){return v[A]=(F+=un)<10?F:F-10,Dn&&(0===v[A]&&A>=Tn?v.pop():Dn=!1),F>=10?1:0},0);In&&(te.unshift(In),x.integerLen++)}(Tn,un,F);let A=Tn.digits,v=Tn.integerLen;const J=Tn.exponent;let ut=[];for(Dn=A.every(An=>!An);v<In;v++)A.unshift(0);for(;v<0;v++)A.unshift(0);v>0?ut=A.splice(v,A.length):(ut=A,A=[0]);const $t=[];for(A.length>=Q.lgSize&&$t.unshift(A.splice(-Q.lgSize,A.length).join(""));A.length>Q.gSize;)$t.unshift(A.splice(-Q.gSize,A.length).join(""));A.length&&$t.unshift(A.join("")),Nt=$t.join(Ee(R,te)),ut.length&&(Nt+=Ee(R,ze)+ut.join("")),J&&(Nt+=Ee(R,de.Exponential)+"+"+J)}else Nt=Ee(R,de.Infinity);return Nt=x<0&&!Dn?Q.negPre+Nt+Q.negSuf:Q.posPre+Nt+Q.posSuf,Nt}function Bn(x,Q,R,te,ze){const Dt=U(Ie(Q,X.Currency),Ee(Q,de.MinusSign));return Dt.minFrac=ie(te),Dt.maxFrac=Dt.minFrac,zn(x,Dt,Q,de.CurrencyGroup,de.CurrencyDecimal,ze).replace("\xa4",R).replace("\xa4","").trim()}function H(x,Q,R){return zn(x,U(Ie(Q,X.Percent),Ee(Q,de.MinusSign)),Q,de.Group,de.Decimal,R,!0).replace(new RegExp("%","g"),Ee(Q,de.PercentSign))}function we(x,Q,R){return zn(x,U(Ie(Q,X.Decimal),Ee(Q,de.MinusSign)),Q,de.Group,de.Decimal,R)}function U(x,Q="-"){const R={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},te=x.split(";"),ze=te[0],ht=te[1],Dt=-1!==ze.indexOf(".")?ze.split("."):[ze.substring(0,ze.lastIndexOf("0")+1),ze.substring(ze.lastIndexOf("0")+1)],Nt=Dt[0],Dn=Dt[1]||"";R.posPre=Nt.substr(0,Nt.indexOf("#"));for(let In=0;In<Dn.length;In++){const un=Dn.charAt(In);"0"===un?R.minFrac=R.maxFrac=In+1:"#"===un?R.maxFrac=In+1:R.posSuf+=un}const Tn=Nt.split(",");if(R.gSize=Tn[1]?Tn[1].length:0,R.lgSize=Tn[2]||Tn[1]?(Tn[2]||Tn[1]).length:0,ht){const In=ze.length-R.posPre.length-R.posSuf.length,un=ht.indexOf("#");R.negPre=ht.substr(0,un).replace(/'/g,""),R.negSuf=ht.substr(un+In).replace(/'/g,"")}else R.negPre=Q+R.posPre,R.negSuf=R.posSuf;return R}function At(x){const Q=parseInt(x);if(isNaN(Q))throw new Error("Invalid integer literal when parsing "+x);return Q}class jt{}function qt(x,Q,R,te){let ze=`=${x}`;if(Q.indexOf(ze)>-1||(ze=R.getPluralCategory(x,te),Q.indexOf(ze)>-1))return ze;if(Q.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${x}"`)}let vn=(()=>{class x extends jt{constructor(R){super(),this.locale=R}getPluralCategory(R,te){switch(Rt(te||this.locale)(R)){case me.Zero:return"zero";case me.One:return"one";case me.Two:return"two";case me.Few:return"few";case me.Many:return"many";default:return"other"}}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275inject(i.LOCALE_ID))},x.\u0275prov=i.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac}),x})();function Ht(x,Q,R){return(0,i.\u0275registerLocaleData)(x,Q,R)}function On(x,Q){Q=encodeURIComponent(Q);for(const R of x.split(";")){const te=R.indexOf("="),[ze,ht]=-1==te?[R,""]:[R.slice(0,te),R.slice(te+1)];if(ze.trim()===Q)return decodeURIComponent(ht)}return null}let cn=(()=>{class x{constructor(R,te,ze,ht){this._iterableDiffers=R,this._keyValueDiffers=te,this._ngEl=ze,this._renderer=ht,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(R){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof R?R.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(R){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof R?R.split(/\s+/):R,this._rawClass&&((0,i.\u0275isListLikeIterable)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const R=this._iterableDiffer.diff(this._rawClass);R&&this._applyIterableChanges(R)}else if(this._keyValueDiffer){const R=this._keyValueDiffer.diff(this._rawClass);R&&this._applyKeyValueChanges(R)}}_applyKeyValueChanges(R){R.forEachAddedItem(te=>this._toggleClass(te.key,te.currentValue)),R.forEachChangedItem(te=>this._toggleClass(te.key,te.currentValue)),R.forEachRemovedItem(te=>{te.previousValue&&this._toggleClass(te.key,!1)})}_applyIterableChanges(R){R.forEachAddedItem(te=>{if("string"!=typeof te.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,i.\u0275stringify)(te.item)}`);this._toggleClass(te.item,!0)}),R.forEachRemovedItem(te=>this._toggleClass(te.item,!1))}_applyClasses(R){R&&(Array.isArray(R)||R instanceof Set?R.forEach(te=>this._toggleClass(te,!0)):Object.keys(R).forEach(te=>this._toggleClass(te,!!R[te])))}_removeClasses(R){R&&(Array.isArray(R)||R instanceof Set?R.forEach(te=>this._toggleClass(te,!1)):Object.keys(R).forEach(te=>this._toggleClass(te,!1)))}_toggleClass(R,te){(R=R.trim())&&R.split(/\s+/g).forEach(ze=>{te?this._renderer.addClass(this._ngEl.nativeElement,ze):this._renderer.removeClass(this._ngEl.nativeElement,ze)})}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275directiveInject(i.IterableDiffers),i.\u0275\u0275directiveInject(i.KeyValueDiffers),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.Renderer2))},x.\u0275dir=i.\u0275\u0275defineDirective({type:x,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),x})(),Hn=(()=>{class x{constructor(R){this._viewContainerRef=R,this._componentRef=null,this._moduleRef=null}ngOnChanges(R){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){const te=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(R.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){const Dt=te.get(i.NgModuleRef);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(Dt.injector)}else this._moduleRef=null;const ht=(this._moduleRef?this._moduleRef.componentFactoryResolver:te.get(i.ComponentFactoryResolver)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(ht,this._viewContainerRef.length,te,this.ngComponentOutletContent)}}ngOnDestroy(){this._moduleRef&&this._moduleRef.destroy()}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275directiveInject(i.ViewContainerRef))},x.\u0275dir=i.\u0275\u0275defineDirective({type:x,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},features:[i.\u0275\u0275NgOnChangesFeature]}),x})();class Un{constructor(Q,R,te,ze){this.$implicit=Q,this.ngForOf=R,this.index=te,this.count=ze}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 Sn=(()=>{class x{constructor(R,te,ze){this._viewContainer=R,this._template=te,this._differs=ze,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(R){this._ngForOf=R,this._ngForOfDirty=!0}set ngForTrackBy(R){this._trackByFn=R}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(R){R&&(this._template=R)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const R=this._ngForOf;!this._differ&&R&&(this._differ=this._differs.find(R).create(this.ngForTrackBy))}if(this._differ){const R=this._differ.diff(this._ngForOf);R&&this._applyChanges(R)}}_applyChanges(R){const te=this._viewContainer;R.forEachOperation((ze,ht,Dt)=>{if(null==ze.previousIndex)te.createEmbeddedView(this._template,new Un(ze.item,this._ngForOf,-1,-1),null===Dt?void 0:Dt);else if(null==Dt)te.remove(null===ht?void 0:ht);else if(null!==ht){const Nt=te.get(ht);te.move(Nt,Dt),kn(Nt,ze)}});for(let ze=0,ht=te.length;ze<ht;ze++){const Nt=te.get(ze).context;Nt.index=ze,Nt.count=ht,Nt.ngForOf=this._ngForOf}R.forEachIdentityChange(ze=>{kn(te.get(ze.currentIndex),ze)})}static ngTemplateContextGuard(R,te){return!0}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(i.IterableDiffers))},x.\u0275dir=i.\u0275\u0275defineDirective({type:x,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),x})();function kn(x,Q){x.context.$implicit=Q.item}let xn=(()=>{class x{constructor(R,te){this._viewContainer=R,this._context=new mn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=te}set ngIf(R){this._context.$implicit=this._context.ngIf=R,this._updateView()}set ngIfThen(R){ni("ngIfThen",R),this._thenTemplateRef=R,this._thenViewRef=null,this._updateView()}set ngIfElse(R){ni("ngIfElse",R),this._elseTemplateRef=R,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(R,te){return!0}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.TemplateRef))},x.\u0275dir=i.\u0275\u0275defineDirective({type:x,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),x})();class mn{constructor(){this.$implicit=null,this.ngIf=null}}function ni(x,Q){if(Q&&!Q.createEmbeddedView)throw new Error(`${x} must be a TemplateRef, but received '${(0,i.\u0275stringify)(Q)}'.`)}class li{constructor(Q,R){this._viewContainerRef=Q,this._templateRef=R,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(Q){Q&&!this._created?this.create():!Q&&this._created&&this.destroy()}}let Kn=(()=>{class x{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(R){this._ngSwitch=R,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(R){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(R)}_matchCase(R){const te=R==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||te,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),te}_updateDefaultCases(R){if(this._defaultViews&&R!==this._defaultUsed){this._defaultUsed=R;for(let te=0;te<this._defaultViews.length;te++)this._defaultViews[te].enforceState(R)}}}return x.\u0275fac=function(R){return new(R||x)},x.\u0275dir=i.\u0275\u0275defineDirective({type:x,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),x})(),Gn=(()=>{class x{constructor(R,te,ze){this.ngSwitch=ze,ze._addCase(),this._view=new li(R,te)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(Kn,9))},x.\u0275dir=i.\u0275\u0275defineDirective({type:x,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),x})(),Ci=(()=>{class x{constructor(R,te,ze){ze._addDefault(new li(R,te))}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(Kn,9))},x.\u0275dir=i.\u0275\u0275defineDirective({type:x,selectors:[["","ngSwitchDefault",""]]}),x})(),hi=(()=>{class x{constructor(R){this._localization=R,this._caseViews={}}set ngPlural(R){this._switchValue=R,this._updateView()}addCase(R,te){this._caseViews[R]=te}_updateView(){this._clearViews();const R=Object.keys(this._caseViews),te=qt(this._switchValue,R,this._localization);this._activateView(this._caseViews[te])}_clearViews(){this._activeView&&this._activeView.destroy()}_activateView(R){R&&(this._activeView=R,this._activeView.create())}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275directiveInject(jt))},x.\u0275dir=i.\u0275\u0275defineDirective({type:x,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"}}),x})(),Wn=(()=>{class x{constructor(R,te,ze,ht){this.value=R;const Dt=!isNaN(Number(R));ht.addCase(Dt?`=${R}`:R,new li(ze,te))}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275injectAttribute("ngPluralCase"),i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(hi,1))},x.\u0275dir=i.\u0275\u0275defineDirective({type:x,selectors:[["","ngPluralCase",""]]}),x})(),Sr=(()=>{class x{constructor(R,te,ze){this._ngEl=R,this._differs=te,this._renderer=ze,this._ngStyle=null,this._differ=null}set ngStyle(R){this._ngStyle=R,!this._differ&&R&&(this._differ=this._differs.find(R).create())}ngDoCheck(){if(this._differ){const R=this._differ.diff(this._ngStyle);R&&this._applyChanges(R)}}_setStyle(R,te){const[ze,ht]=R.split(".");null!=(te=null!=te&&ht?`${te}${ht}`:te)?this._renderer.setStyle(this._ngEl.nativeElement,ze,te):this._renderer.removeStyle(this._ngEl.nativeElement,ze)}_applyChanges(R){R.forEachRemovedItem(te=>this._setStyle(te.key,null)),R.forEachAddedItem(te=>this._setStyle(te.key,te.currentValue)),R.forEachChangedItem(te=>this._setStyle(te.key,te.currentValue))}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.KeyValueDiffers),i.\u0275\u0275directiveInject(i.Renderer2))},x.\u0275dir=i.\u0275\u0275defineDirective({type:x,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),x})(),nr=(()=>{class x{constructor(R){this._viewContainerRef=R,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(R){if(R.ngTemplateOutlet){const te=this._viewContainerRef;this._viewRef&&te.remove(te.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?te.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&R.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275directiveInject(i.ViewContainerRef))},x.\u0275dir=i.\u0275\u0275defineDirective({type:x,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[i.\u0275\u0275NgOnChangesFeature]}),x})();function Qn(x,Q){return Error(`InvalidPipeArgument: '${Q}' for pipe '${(0,i.\u0275stringify)(x)}'`)}class Zn{createSubscription(Q,R){return Q.subscribe({next:R,error:te=>{throw te}})}dispose(Q){Q.unsubscribe()}onDestroy(Q){Q.unsubscribe()}}class Ei{createSubscription(Q,R){return Q.then(R,te=>{throw te})}dispose(Q){}onDestroy(Q){}}const Ui=new Ei,Lr=new Zn;let Wi=(()=>{class x{constructor(R){this._ref=R,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(R){return this._obj?R!==this._obj?(this._dispose(),this.transform(R)):this._latestValue:(R&&this._subscribe(R),this._latestValue)}_subscribe(R){this._obj=R,this._strategy=this._selectStrategy(R),this._subscription=this._strategy.createSubscription(R,te=>this._updateLatestValue(R,te))}_selectStrategy(R){if((0,i.\u0275isPromise)(R))return Ui;if((0,i.\u0275isSubscribable)(R))return Lr;throw Qn(x,R)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(R,te){R===this._obj&&(this._latestValue=te,this._ref.markForCheck())}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275directiveInject(i.ChangeDetectorRef,16))},x.\u0275pipe=i.\u0275\u0275definePipe({name:"async",type:x,pure:!1}),x})(),Ir=(()=>{class x{transform(R){if(null==R)return null;if("string"!=typeof R)throw Qn(x,R);return R.toLowerCase()}}return x.\u0275fac=function(R){return new(R||x)},x.\u0275pipe=i.\u0275\u0275definePipe({name:"lowercase",type:x,pure:!0}),x})();const wi=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\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\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let zi=(()=>{class x{transform(R){if(null==R)return null;if("string"!=typeof R)throw Qn(x,R);return R.replace(wi,te=>te[0].toUpperCase()+te.substr(1).toLowerCase())}}return x.\u0275fac=function(R){return new(R||x)},x.\u0275pipe=i.\u0275\u0275definePipe({name:"titlecase",type:x,pure:!0}),x})(),ci=(()=>{class x{transform(R){if(null==R)return null;if("string"!=typeof R)throw Qn(x,R);return R.toUpperCase()}}return x.\u0275fac=function(R){return new(R||x)},x.\u0275pipe=i.\u0275\u0275definePipe({name:"uppercase",type:x,pure:!0}),x})();const gr=new i.InjectionToken("DATE_PIPE_DEFAULT_TIMEZONE");let Di=(()=>{class x{constructor(R,te){this.locale=R,this.defaultTimezone=te}transform(R,te="mediumDate",ze,ht){var Dt;if(null==R||""===R||R!=R)return null;try{return zt(R,te,ht||this.locale,null!==(Dt=null!=ze?ze:this.defaultTimezone)&&void 0!==Dt?Dt:void 0)}catch(Nt){throw Qn(x,Nt.message)}}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275directiveInject(i.LOCALE_ID,16),i.\u0275\u0275directiveInject(gr,24))},x.\u0275pipe=i.\u0275\u0275definePipe({name:"date",type:x,pure:!0}),x})();const Ar=/#/g;let Pr=(()=>{class x{constructor(R){this._localization=R}transform(R,te,ze){if(null==R)return"";if("object"!=typeof te||null===te)throw Qn(x,te);return te[qt(R,Object.keys(te),this._localization,ze)].replace(Ar,R.toString())}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275directiveInject(jt,16))},x.\u0275pipe=i.\u0275\u0275definePipe({name:"i18nPlural",type:x,pure:!0}),x})(),Ki=(()=>{class x{transform(R,te){if(null==R)return"";if("object"!=typeof te||"string"!=typeof R)throw Qn(x,te);return te.hasOwnProperty(R)?te[R]:te.hasOwnProperty("other")?te.other:""}}return x.\u0275fac=function(R){return new(R||x)},x.\u0275pipe=i.\u0275\u0275definePipe({name:"i18nSelect",type:x,pure:!0}),x})(),Si=(()=>{class x{transform(R){return JSON.stringify(R,null,2)}}return x.\u0275fac=function(R){return new(R||x)},x.\u0275pipe=i.\u0275\u0275definePipe({name:"json",type:x,pure:!1}),x})(),Or=(()=>{class x{constructor(R){this.differs=R,this.keyValues=[],this.compareFn=Ii}transform(R,te=Ii){if(!R||!(R instanceof Map)&&"object"!=typeof R)return null;this.differ||(this.differ=this.differs.find(R).create());const ze=this.differ.diff(R),ht=te!==this.compareFn;return ze&&(this.keyValues=[],ze.forEachItem(Dt=>{this.keyValues.push(function Gi(x,Q){return{key:x,value:Q}}(Dt.key,Dt.currentValue))})),(ze||ht)&&(this.keyValues.sort(te),this.compareFn=te),this.keyValues}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275directiveInject(i.KeyValueDiffers,16))},x.\u0275pipe=i.\u0275\u0275definePipe({name:"keyvalue",type:x,pure:!1}),x})();function Ii(x,Q){const R=x.key,te=Q.key;if(R===te)return 0;if(void 0===R)return 1;if(void 0===te)return-1;if(null===R)return 1;if(null===te)return-1;if("string"==typeof R&&"string"==typeof te)return R<te?-1:1;if("number"==typeof R&&"number"==typeof te)return R-te;if("boolean"==typeof R&&"boolean"==typeof te)return R<te?-1:1;const ze=String(R),ht=String(te);return ze==ht?0:ze<ht?-1:1}let _r=(()=>{class x{constructor(R){this._locale=R}transform(R,te,ze){if(!pi(R))return null;ze=ze||this._locale;try{return we(Qi(R),ze,te)}catch(ht){throw Qn(x,ht.message)}}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275directiveInject(i.LOCALE_ID,16))},x.\u0275pipe=i.\u0275\u0275definePipe({name:"number",type:x,pure:!0}),x})(),fi=(()=>{class x{constructor(R){this._locale=R}transform(R,te,ze){if(!pi(R))return null;ze=ze||this._locale;try{return H(Qi(R),ze,te)}catch(ht){throw Qn(x,ht.message)}}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275directiveInject(i.LOCALE_ID,16))},x.\u0275pipe=i.\u0275\u0275definePipe({name:"percent",type:x,pure:!0}),x})(),Ai=(()=>{class x{constructor(R,te="USD"){this._locale=R,this._defaultCurrencyCode=te}transform(R,te=this._defaultCurrencyCode,ze="symbol",ht,Dt){if(!pi(R))return null;Dt=Dt||this._locale,"boolean"==typeof ze&&(ze=ze?"symbol":"code");let Nt=te||this._defaultCurrencyCode;"code"!==ze&&(Nt="symbol"===ze||"symbol-narrow"===ze?Ce(Nt,"symbol"===ze?"wide":"narrow",Dt):ze);try{return Bn(Qi(R),Dt,Nt,te,ht)}catch(Dn){throw Qn(x,Dn.message)}}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275directiveInject(i.LOCALE_ID,16),i.\u0275\u0275directiveInject(i.DEFAULT_CURRENCY_CODE,16))},x.\u0275pipe=i.\u0275\u0275definePipe({name:"currency",type:x,pure:!0}),x})();function pi(x){return!(null==x||""===x||x!=x)}function Qi(x){if("string"==typeof x&&!isNaN(Number(x)-parseFloat(x)))return Number(x);if("number"!=typeof x)throw new Error(`${x} is not a number`);return x}let mi=(()=>{class x{transform(R,te,ze){if(null==R)return null;if(!this.supports(R))throw Qn(x,R);return R.slice(te,ze)}supports(R){return"string"==typeof R||Array.isArray(R)}}return x.\u0275fac=function(R){return new(R||x)},x.\u0275pipe=i.\u0275\u0275definePipe({name:"slice",type:x,pure:!1}),x})(),rr=(()=>{class x{}return x.\u0275fac=function(R){return new(R||x)},x.\u0275mod=i.\u0275\u0275defineNgModule({type:x}),x.\u0275inj=i.\u0275\u0275defineInjector({providers:[{provide:jt,useClass:vn}]}),x})();const Pi="browser",Oi="server",xi="browserWorkerApp",Zi="browserWorkerUi";function ti(x){return x===Pi}function Ri(x){return x===Oi}function or(x){return x===xi}function Fi(x){return x===Zi}const Yi=new i.Version("13.1.2");let ki=(()=>{class x{}return x.\u0275prov=(0,i.\u0275\u0275defineInjectable)({token:x,providedIn:"root",factory:()=>new xr((0,i.\u0275\u0275inject)(C),window)}),x})();class xr{constructor(Q,R){this.document=Q,this.window=R,this.offset=()=>[0,0]}setOffset(Q){this.offset=Array.isArray(Q)?()=>Q:Q}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(Q){this.supportsScrolling()&&this.window.scrollTo(Q[0],Q[1])}scrollToAnchor(Q){if(!this.supportsScrolling())return;const R=function sr(x,Q){const R=x.getElementById(Q)||x.getElementsByName(Q)[0];if(R)return R;if("function"==typeof x.createTreeWalker&&x.body&&(x.body.createShadowRoot||x.body.attachShadow)){const te=x.createTreeWalker(x.body,NodeFilter.SHOW_ELEMENT);let ze=te.currentNode;for(;ze;){const ht=ze.shadowRoot;if(ht){const Dt=ht.getElementById(Q)||ht.querySelector(`[name="${Q}"]`);if(Dt)return Dt}ze=te.nextNode()}}return null}(this.document,Q);R&&(this.scrollToElement(R),this.attemptFocus(R))}setHistoryScrollRestoration(Q){if(this.supportScrollRestoration()){const R=this.window.history;R&&R.scrollRestoration&&(R.scrollRestoration=Q)}}scrollToElement(Q){const R=Q.getBoundingClientRect(),te=R.left+this.window.pageXOffset,ze=R.top+this.window.pageYOffset,ht=this.offset();this.window.scrollTo(te-ht[0],ze-ht[1])}attemptFocus(Q){return Q.focus(),this.document.activeElement===Q}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const Q=Rn(this.window.history)||Rn(Object.getPrototypeOf(this.window.history));return!(!Q||!Q.writable&&!Q.set)}catch(Q){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(Q){return!1}}}function Rn(x){return Object.getOwnPropertyDescriptor(x,"scrollRestoration")}class ar{setOffset(Q){}getScrollPosition(){return[0,0]}scrollToPosition(Q){}scrollToAnchor(Q){}setHistoryScrollRestoration(Q){}}class Ln{}},520:(Le,m,l)=>{"use strict";l.r(m),l.d(m,{HTTP_INTERCEPTORS:()=>fe,HttpBackend:()=>p,HttpClient:()=>de,HttpClientJsonpModule:()=>se,HttpClientModule:()=>Pe,HttpClientXsrfModule:()=>ne,HttpContext:()=>Me,HttpContextToken:()=>re,HttpErrorResponse:()=>oe,HttpEventType:()=>ct,HttpHandler:()=>T,HttpHeaderResponse:()=>me,HttpHeaders:()=>y,HttpParams:()=>K,HttpRequest:()=>et,HttpResponse:()=>z,HttpResponseBase:()=>X,HttpUrlEncodingCodec:()=>P,HttpXhrBackend:()=>Ie,HttpXsrfTokenExtractor:()=>pt,JsonpClientBackend:()=>qe,JsonpInterceptor:()=>Y,XhrFactory:()=>Ce,\u0275HttpInterceptingHandler:()=>dt});var i=l(9808),d=l(5e3),_=l(9646),u=l(9751),s=l(4351),b=l(9300),C=l(4004);class T{}class p{}class y{constructor(ie){this.normalizedNames=new Map,this.lazyUpdate=null,ie?this.lazyInit="string"==typeof ie?()=>{this.headers=new Map,ie.split("\n").forEach(ve=>{const Ye=ve.indexOf(":");if(Ye>0){const it=ve.slice(0,Ye),mt=it.toLowerCase(),_t=ve.slice(Ye+1).trim();this.maybeSetNormalizedName(it,mt),this.headers.has(mt)?this.headers.get(mt).push(_t):this.headers.set(mt,[_t])}})}:()=>{this.headers=new Map,Object.keys(ie).forEach(ve=>{let Ye=ie[ve];const it=ve.toLowerCase();"string"==typeof Ye&&(Ye=[Ye]),Ye.length>0&&(this.headers.set(it,Ye),this.maybeSetNormalizedName(ve,it))})}:this.headers=new Map}has(ie){return this.init(),this.headers.has(ie.toLowerCase())}get(ie){this.init();const ve=this.headers.get(ie.toLowerCase());return ve&&ve.length>0?ve[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(ie){return this.init(),this.headers.get(ie.toLowerCase())||null}append(ie,ve){return this.clone({name:ie,value:ve,op:"a"})}set(ie,ve){return this.clone({name:ie,value:ve,op:"s"})}delete(ie,ve){return this.clone({name:ie,value:ve,op:"d"})}maybeSetNormalizedName(ie,ve){this.normalizedNames.has(ve)||this.normalizedNames.set(ve,ie)}init(){this.lazyInit&&(this.lazyInit instanceof y?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(ie=>this.applyUpdate(ie)),this.lazyUpdate=null))}copyFrom(ie){ie.init(),Array.from(ie.headers.keys()).forEach(ve=>{this.headers.set(ve,ie.headers.get(ve)),this.normalizedNames.set(ve,ie.normalizedNames.get(ve))})}clone(ie){const ve=new y;return ve.lazyInit=this.lazyInit&&this.lazyInit instanceof y?this.lazyInit:this,ve.lazyUpdate=(this.lazyUpdate||[]).concat([ie]),ve}applyUpdate(ie){const ve=ie.name.toLowerCase();switch(ie.op){case"a":case"s":let Ye=ie.value;if("string"==typeof Ye&&(Ye=[Ye]),0===Ye.length)return;this.maybeSetNormalizedName(ie.name,ve);const it=("a"===ie.op?this.headers.get(ve):void 0)||[];it.push(...Ye),this.headers.set(ve,it);break;case"d":const mt=ie.value;if(mt){let _t=this.headers.get(ve);if(!_t)return;_t=_t.filter(It=>-1===mt.indexOf(It)),0===_t.length?(this.headers.delete(ve),this.normalizedNames.delete(ve)):this.headers.set(ve,_t)}else this.headers.delete(ve),this.normalizedNames.delete(ve)}}forEach(ie){this.init(),Array.from(this.normalizedNames.keys()).forEach(ve=>ie(this.normalizedNames.get(ve),this.headers.get(ve)))}}class P{encodeKey(ie){return B(ie)}encodeValue(ie){return B(ie)}decodeKey(ie){return decodeURIComponent(ie)}decodeValue(ie){return decodeURIComponent(ie)}}const S=/%(\d[a-f0-9])/gi,N={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function B(_e){return encodeURIComponent(_e).replace(S,(ie,ve)=>{var Ye;return null!==(Ye=N[ve])&&void 0!==Ye?Ye:ie})}function ce(_e){return`${_e}`}class K{constructor(ie={}){if(this.updates=null,this.cloneFrom=null,this.encoder=ie.encoder||new P,ie.fromString){if(ie.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function O(_e,ie){const ve=new Map;return _e.length>0&&_e.replace(/^\?/,"").split("&").forEach(it=>{const mt=it.indexOf("="),[_t,It]=-1==mt?[ie.decodeKey(it),""]:[ie.decodeKey(it.slice(0,mt)),ie.decodeValue(it.slice(mt+1))],zt=ve.get(_t)||[];zt.push(It),ve.set(_t,zt)}),ve}(ie.fromString,this.encoder)}else ie.fromObject?(this.map=new Map,Object.keys(ie.fromObject).forEach(ve=>{const Ye=ie.fromObject[ve];this.map.set(ve,Array.isArray(Ye)?Ye:[Ye])})):this.map=null}has(ie){return this.init(),this.map.has(ie)}get(ie){this.init();const ve=this.map.get(ie);return ve?ve[0]:null}getAll(ie){return this.init(),this.map.get(ie)||null}keys(){return this.init(),Array.from(this.map.keys())}append(ie,ve){return this.clone({param:ie,value:ve,op:"a"})}appendAll(ie){const ve=[];return Object.keys(ie).forEach(Ye=>{const it=ie[Ye];Array.isArray(it)?it.forEach(mt=>{ve.push({param:Ye,value:mt,op:"a"})}):ve.push({param:Ye,value:it,op:"a"})}),this.clone(ve)}set(ie,ve){return this.clone({param:ie,value:ve,op:"s"})}delete(ie,ve){return this.clone({param:ie,value:ve,op:"d"})}toString(){return this.init(),this.keys().map(ie=>{const ve=this.encoder.encodeKey(ie);return this.map.get(ie).map(Ye=>ve+"="+this.encoder.encodeValue(Ye)).join("&")}).filter(ie=>""!==ie).join("&")}clone(ie){const ve=new K({encoder:this.encoder});return ve.cloneFrom=this.cloneFrom||this,ve.updates=(this.updates||[]).concat(ie),ve}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(ie=>this.map.set(ie,this.cloneFrom.map.get(ie))),this.updates.forEach(ie=>{switch(ie.op){case"a":case"s":const ve=("a"===ie.op?this.map.get(ie.param):void 0)||[];ve.push(ce(ie.value)),this.map.set(ie.param,ve);break;case"d":if(void 0===ie.value){this.map.delete(ie.param);break}{let Ye=this.map.get(ie.param)||[];const it=Ye.indexOf(ce(ie.value));-1!==it&&Ye.splice(it,1),Ye.length>0?this.map.set(ie.param,Ye):this.map.delete(ie.param)}}}),this.cloneFrom=this.updates=null)}}class re{constructor(ie){this.defaultValue=ie}}class Me{constructor(){this.map=new Map}set(ie,ve){return this.map.set(ie,ve),this}get(ie){return this.map.has(ie)||this.map.set(ie,ie.defaultValue()),this.map.get(ie)}delete(ie){return this.map.delete(ie),this}has(ie){return this.map.has(ie)}keys(){return this.map.keys()}}function be(_e){return"undefined"!=typeof ArrayBuffer&&_e instanceof ArrayBuffer}function ue(_e){return"undefined"!=typeof Blob&&_e instanceof Blob}function xe(_e){return"undefined"!=typeof FormData&&_e instanceof FormData}class et{constructor(ie,ve,Ye,it){let mt;if(this.url=ve,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=ie.toUpperCase(),function pe(_e){switch(_e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||it?(this.body=void 0!==Ye?Ye:null,mt=it):mt=Ye,mt&&(this.reportProgress=!!mt.reportProgress,this.withCredentials=!!mt.withCredentials,mt.responseType&&(this.responseType=mt.responseType),mt.headers&&(this.headers=mt.headers),mt.context&&(this.context=mt.context),mt.params&&(this.params=mt.params)),this.headers||(this.headers=new y),this.context||(this.context=new Me),this.params){const _t=this.params.toString();if(0===_t.length)this.urlWithParams=ve;else{const It=ve.indexOf("?");this.urlWithParams=ve+(-1===It?"?":It<ve.length-1?"&":"")+_t}}else this.params=new K,this.urlWithParams=ve}serializeBody(){return null===this.body?null:be(this.body)||ue(this.body)||xe(this.body)||function He(_e){return"undefined"!=typeof URLSearchParams&&_e instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof K?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||xe(this.body)?null:ue(this.body)?this.body.type||null:be(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof K?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(ie={}){var ve;const Ye=ie.method||this.method,it=ie.url||this.url,mt=ie.responseType||this.responseType,_t=void 0!==ie.body?ie.body:this.body,It=void 0!==ie.withCredentials?ie.withCredentials:this.withCredentials,zt=void 0!==ie.reportProgress?ie.reportProgress:this.reportProgress;let on=ie.headers||this.headers,Kt=ie.params||this.params;const Mn=null!==(ve=ie.context)&&void 0!==ve?ve:this.context;return void 0!==ie.setHeaders&&(on=Object.keys(ie.setHeaders).reduce((an,Qt)=>an.set(Qt,ie.setHeaders[Qt]),on)),ie.setParams&&(Kt=Object.keys(ie.setParams).reduce((an,Qt)=>an.set(Qt,ie.setParams[Qt]),Kt)),new et(Ye,it,_t,{params:Kt,headers:on,context:Mn,reportProgress:zt,responseType:mt,withCredentials:It})}}var ct=(()=>((ct=ct||{})[ct.Sent=0]="Sent",ct[ct.UploadProgress=1]="UploadProgress",ct[ct.ResponseHeader=2]="ResponseHeader",ct[ct.DownloadProgress=3]="DownloadProgress",ct[ct.Response=4]="Response",ct[ct.User=5]="User",ct))();class X{constructor(ie,ve=200,Ye="OK"){this.headers=ie.headers||new y,this.status=void 0!==ie.status?ie.status:ve,this.statusText=ie.statusText||Ye,this.url=ie.url||null,this.ok=this.status>=200&&this.status<300}}class me extends X{constructor(ie={}){super(ie),this.type=ct.ResponseHeader}clone(ie={}){return new me({headers:ie.headers||this.headers,status:void 0!==ie.status?ie.status:this.status,statusText:ie.statusText||this.statusText,url:ie.url||this.url||void 0})}}class z extends X{constructor(ie={}){super(ie),this.type=ct.Response,this.body=void 0!==ie.body?ie.body:null}clone(ie={}){return new z({body:void 0!==ie.body?ie.body:this.body,headers:ie.headers||this.headers,status:void 0!==ie.status?ie.status:this.status,statusText:ie.statusText||this.statusText,url:ie.url||this.url||void 0})}}class oe extends X{constructor(ie){super(ie,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${ie.url||"(unknown url)"}`:`Http failure response for ${ie.url||"(unknown url)"}: ${ie.status} ${ie.statusText}`,this.error=ie.error||null}}function ke(_e,ie){return{body:ie,headers:_e.headers,context:_e.context,observe:_e.observe,params:_e.params,reportProgress:_e.reportProgress,responseType:_e.responseType,withCredentials:_e.withCredentials}}let de=(()=>{class _e{constructor(ve){this.handler=ve}request(ve,Ye,it={}){let mt;if(ve instanceof et)mt=ve;else{let zt,on;zt=it.headers instanceof y?it.headers:new y(it.headers),it.params&&(on=it.params instanceof K?it.params:new K({fromObject:it.params})),mt=new et(ve,Ye,void 0!==it.body?it.body:null,{headers:zt,context:it.context,params:on,reportProgress:it.reportProgress,responseType:it.responseType||"json",withCredentials:it.withCredentials})}const _t=(0,_.of)(mt).pipe((0,s.b)(zt=>this.handler.handle(zt)));if(ve instanceof et||"events"===it.observe)return _t;const It=_t.pipe((0,b.h)(zt=>zt instanceof z));switch(it.observe||"body"){case"body":switch(mt.responseType){case"arraybuffer":return It.pipe((0,C.U)(zt=>{if(null!==zt.body&&!(zt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return zt.body}));case"blob":return It.pipe((0,C.U)(zt=>{if(null!==zt.body&&!(zt.body instanceof Blob))throw new Error("Response is not a Blob.");return zt.body}));case"text":return It.pipe((0,C.U)(zt=>{if(null!==zt.body&&"string"!=typeof zt.body)throw new Error("Response is not a string.");return zt.body}));default:return It.pipe((0,C.U)(zt=>zt.body))}case"response":return It;default:throw new Error(`Unreachable: unhandled observe type ${it.observe}}`)}}delete(ve,Ye={}){return this.request("DELETE",ve,Ye)}get(ve,Ye={}){return this.request("GET",ve,Ye)}head(ve,Ye={}){return this.request("HEAD",ve,Ye)}jsonp(ve,Ye){return this.request("JSONP",ve,{params:(new K).append(Ye,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(ve,Ye={}){return this.request("OPTIONS",ve,Ye)}patch(ve,Ye,it={}){return this.request("PATCH",ve,ke(it,Ye))}post(ve,Ye,it={}){return this.request("POST",ve,ke(it,Ye))}put(ve,Ye,it={}){return this.request("PUT",ve,ke(it,Ye))}}return _e.\u0275fac=function(ve){return new(ve||_e)(d.\u0275\u0275inject(T))},_e.\u0275prov=d.\u0275\u0275defineInjectable({token:_e,factory:_e.\u0275fac}),_e})();class Ue{constructor(ie,ve){this.next=ie,this.interceptor=ve}handle(ie){return this.interceptor.intercept(ie,this.next)}}const fe=new d.InjectionToken("HTTP_INTERCEPTORS");let Je=(()=>{class _e{intercept(ve,Ye){return Ye.handle(ve)}}return _e.\u0275fac=function(ve){return new(ve||_e)},_e.\u0275prov=d.\u0275\u0275defineInjectable({token:_e,factory:_e.\u0275fac}),_e})(),Te=0;class Re{}let qe=(()=>{class _e{constructor(ve,Ye){this.callbackMap=ve,this.document=Ye,this.resolvedPromise=Promise.resolve()}nextCallback(){return"ng_jsonp_callback_"+Te++}handle(ve){if("JSONP"!==ve.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==ve.responseType)throw new Error("JSONP requests must use Json response type.");return new u.y(Ye=>{const it=this.nextCallback(),mt=ve.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,`=${it}$1`),_t=this.document.createElement("script");_t.src=mt;let It=null,zt=!1,on=!1;this.callbackMap[it]=Qt=>{delete this.callbackMap[it],!on&&(It=Qt,zt=!0)};const Kt=()=>{_t.parentNode&&_t.parentNode.removeChild(_t),delete this.callbackMap[it]},Mn=Qt=>{on||this.resolvedPromise.then(()=>{Kt(),zt?(Ye.next(new z({body:It,status:200,statusText:"OK",url:mt})),Ye.complete()):Ye.error(new oe({url:mt,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")}))})},an=Qt=>{on||(Kt(),Ye.error(new oe({error:Qt,status:0,statusText:"JSONP Error",url:mt})))};return _t.addEventListener("load",Mn),_t.addEventListener("error",an),this.document.body.appendChild(_t),Ye.next({type:ct.Sent}),()=>{on=!0,_t.removeEventListener("load",Mn),_t.removeEventListener("error",an),Kt()}})}}return _e.\u0275fac=function(ve){return new(ve||_e)(d.\u0275\u0275inject(Re),d.\u0275\u0275inject(i.DOCUMENT))},_e.\u0275prov=d.\u0275\u0275defineInjectable({token:_e,factory:_e.\u0275fac}),_e})(),Y=(()=>{class _e{constructor(ve){this.jsonp=ve}intercept(ve,Ye){return"JSONP"===ve.method?this.jsonp.handle(ve):Ye.handle(ve)}}return _e.\u0275fac=function(ve){return new(ve||_e)(d.\u0275\u0275inject(qe))},_e.\u0275prov=d.\u0275\u0275defineInjectable({token:_e,factory:_e.\u0275fac}),_e})();const he=/^\)\]\}',?\n/;let Ie=(()=>{class _e{constructor(ve){this.xhrFactory=ve}handle(ve){if("JSONP"===ve.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new u.y(Ye=>{const it=this.xhrFactory.build();if(it.open(ve.method,ve.urlWithParams),ve.withCredentials&&(it.withCredentials=!0),ve.headers.forEach((Qt,Ot)=>it.setRequestHeader(Qt,Ot.join(","))),ve.headers.has("Accept")||it.setRequestHeader("Accept","application/json, text/plain, */*"),!ve.headers.has("Content-Type")){const Qt=ve.detectContentTypeHeader();null!==Qt&&it.setRequestHeader("Content-Type",Qt)}if(ve.responseType){const Qt=ve.responseType.toLowerCase();it.responseType="json"!==Qt?Qt:"text"}const mt=ve.serializeBody();let _t=null;const It=()=>{if(null!==_t)return _t;const Qt=1223===it.status?204:it.status,Ot=it.statusText||"OK",bn=new y(it.getAllResponseHeaders()),at=function Ee(_e){return"responseURL"in _e&&_e.responseURL?_e.responseURL:/^X-Request-URL:/m.test(_e.getAllResponseHeaders())?_e.getResponseHeader("X-Request-URL"):null}(it)||ve.url;return _t=new me({headers:bn,status:Qt,statusText:Ot,url:at}),_t},zt=()=>{let{headers:Qt,status:Ot,statusText:bn,url:at}=It(),Ke=null;204!==Ot&&(Ke=void 0===it.response?it.responseText:it.response),0===Ot&&(Ot=Ke?200:0);let Qe=Ot>=200&&Ot<300;if("json"===ve.responseType&&"string"==typeof Ke){const Se=Ke;Ke=Ke.replace(he,"");try{Ke=""!==Ke?JSON.parse(Ke):null}catch(De){Ke=Se,Qe&&(Qe=!1,Ke={error:De,text:Ke})}}Qe?(Ye.next(new z({body:Ke,headers:Qt,status:Ot,statusText:bn,url:at||void 0})),Ye.complete()):Ye.error(new oe({error:Ke,headers:Qt,status:Ot,statusText:bn,url:at||void 0}))},on=Qt=>{const{url:Ot}=It(),bn=new oe({error:Qt,status:it.status||0,statusText:it.statusText||"Unknown Error",url:Ot||void 0});Ye.error(bn)};let Kt=!1;const Mn=Qt=>{Kt||(Ye.next(It()),Kt=!0);let Ot={type:ct.DownloadProgress,loaded:Qt.loaded};Qt.lengthComputable&&(Ot.total=Qt.total),"text"===ve.responseType&&!!it.responseText&&(Ot.partialText=it.responseText),Ye.next(Ot)},an=Qt=>{let Ot={type:ct.UploadProgress,loaded:Qt.loaded};Qt.lengthComputable&&(Ot.total=Qt.total),Ye.next(Ot)};return it.addEventListener("load",zt),it.addEventListener("error",on),it.addEventListener("timeout",on),it.addEventListener("abort",on),ve.reportProgress&&(it.addEventListener("progress",Mn),null!==mt&&it.upload&&it.upload.addEventListener("progress",an)),it.send(mt),Ye.next({type:ct.Sent}),()=>{it.removeEventListener("error",on),it.removeEventListener("abort",on),it.removeEventListener("load",zt),it.removeEventListener("timeout",on),ve.reportProgress&&(it.removeEventListener("progress",Mn),null!==mt&&it.upload&&it.upload.removeEventListener("progress",an)),it.readyState!==it.DONE&&it.abort()}})}}return _e.\u0275fac=function(ve){return new(ve||_e)(d.\u0275\u0275inject(i.XhrFactory))},_e.\u0275prov=d.\u0275\u0275defineInjectable({token:_e,factory:_e.\u0275fac}),_e})();const ge=new d.InjectionToken("XSRF_COOKIE_NAME"),Xe=new d.InjectionToken("XSRF_HEADER_NAME");class pt{}let Tt=(()=>{class _e{constructor(ve,Ye,it){this.doc=ve,this.platform=Ye,this.cookieName=it,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const ve=this.doc.cookie||"";return ve!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,i.\u0275parseCookieValue)(ve,this.cookieName),this.lastCookieString=ve),this.lastToken}}return _e.\u0275fac=function(ve){return new(ve||_e)(d.\u0275\u0275inject(i.DOCUMENT),d.\u0275\u0275inject(d.PLATFORM_ID),d.\u0275\u0275inject(ge))},_e.\u0275prov=d.\u0275\u0275defineInjectable({token:_e,factory:_e.\u0275fac}),_e})(),Rt=(()=>{class _e{constructor(ve,Ye){this.tokenService=ve,this.headerName=Ye}intercept(ve,Ye){const it=ve.url.toLowerCase();if("GET"===ve.method||"HEAD"===ve.method||it.startsWith("http://")||it.startsWith("https://"))return Ye.handle(ve);const mt=this.tokenService.getToken();return null!==mt&&!ve.headers.has(this.headerName)&&(ve=ve.clone({headers:ve.headers.set(this.headerName,mt)})),Ye.handle(ve)}}return _e.\u0275fac=function(ve){return new(ve||_e)(d.\u0275\u0275inject(pt),d.\u0275\u0275inject(Xe))},_e.\u0275prov=d.\u0275\u0275defineInjectable({token:_e,factory:_e.\u0275fac}),_e})(),dt=(()=>{class _e{constructor(ve,Ye){this.backend=ve,this.injector=Ye,this.chain=null}handle(ve){if(null===this.chain){const Ye=this.injector.get(fe,[]);this.chain=Ye.reduceRight((it,mt)=>new Ue(it,mt),this.backend)}return this.chain.handle(ve)}}return _e.\u0275fac=function(ve){return new(ve||_e)(d.\u0275\u0275inject(p),d.\u0275\u0275inject(d.Injector))},_e.\u0275prov=d.\u0275\u0275defineInjectable({token:_e,factory:_e.\u0275fac}),_e})();function k(){return"object"==typeof window?window:{}}let ne=(()=>{class _e{static disable(){return{ngModule:_e,providers:[{provide:Rt,useClass:Je}]}}static withOptions(ve={}){return{ngModule:_e,providers:[ve.cookieName?{provide:ge,useValue:ve.cookieName}:[],ve.headerName?{provide:Xe,useValue:ve.headerName}:[]]}}}return _e.\u0275fac=function(ve){return new(ve||_e)},_e.\u0275mod=d.\u0275\u0275defineNgModule({type:_e}),_e.\u0275inj=d.\u0275\u0275defineInjector({providers:[Rt,{provide:fe,useExisting:Rt,multi:!0},{provide:pt,useClass:Tt},{provide:ge,useValue:"XSRF-TOKEN"},{provide:Xe,useValue:"X-XSRF-TOKEN"}]}),_e})(),Pe=(()=>{class _e{}return _e.\u0275fac=function(ve){return new(ve||_e)},_e.\u0275mod=d.\u0275\u0275defineNgModule({type:_e}),_e.\u0275inj=d.\u0275\u0275defineInjector({providers:[de,{provide:T,useClass:dt},Ie,{provide:p,useExisting:Ie}],imports:[[ne.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),_e})(),se=(()=>{class _e{}return _e.\u0275fac=function(ve){return new(ve||_e)},_e.\u0275mod=d.\u0275\u0275defineNgModule({type:_e}),_e.\u0275inj=d.\u0275\u0275defineInjector({providers:[qe,{provide:Re,useFactory:k},{provide:fe,useClass:Y,multi:!0}]}),_e})();const Ce=i.XhrFactory},5e3:(Le,m,l)=>{"use strict";l.r(m),l.d(m,{ANALYZE_FOR_ENTRY_COMPONENTS:()=>i_,APP_BOOTSTRAP_LISTENER:()=>hg,APP_ID:()=>lg,APP_INITIALIZER:()=>uu,ApplicationInitStatus:()=>Lo,ApplicationModule:()=>kE,ApplicationRef:()=>Es,Attribute:()=>Yu,COMPILER_OPTIONS:()=>gg,CUSTOM_ELEMENTS_SCHEMA:()=>xd,ChangeDetectionStrategy:()=>ve,ChangeDetectorRef:()=>Og,Compiler:()=>hu,CompilerFactory:()=>K0,Component:()=>k0,ComponentFactory:()=>sa,ComponentFactoryResolver:()=>ms,ComponentRef:()=>Gp,ContentChild:()=>o_,ContentChildren:()=>r_,DEFAULT_CURRENCY_CODE:()=>pg,DebugElement:()=>vE,DebugEventListener:()=>dE,DebugNode:()=>yE,DefaultIterableDiffer:()=>Lg,Directive:()=>ag,ElementRef:()=>gs,EmbeddedViewRef:()=>uE,ErrorHandler:()=>qo,EventEmitter:()=>Mr,Host:()=>id,HostBinding:()=>j0,HostListener:()=>V0,INJECTOR:()=>Zs,Inject:()=>Go,InjectFlags:()=>k,Injectable:()=>sb,InjectionToken:()=>Yn,Injector:()=>Vi,Input:()=>L0,IterableDiffers:()=>ya,KeyValueDiffers:()=>va,LOCALE_ID:()=>ga,MissingTranslationStrategy:()=>wr,ModuleWithComponentFactories:()=>mg,NO_ERRORS_SCHEMA:()=>Rd,NgModule:()=>H0,NgModuleFactory:()=>im,NgModuleRef:()=>Fo,NgProbeToken:()=>eE,NgZone:()=>Hi,Optional:()=>Wr,Output:()=>B0,PACKAGE_ROOT_URL:()=>U0,PLATFORM_ID:()=>dg,PLATFORM_INITIALIZER:()=>ug,Pipe:()=>N0,PlatformRef:()=>bu,Query:()=>$o,QueryList:()=>da,ReflectiveInjector:()=>Io,ReflectiveKey:()=>Nr,Renderer2:()=>ZC,RendererFactory2:()=>Zp,RendererStyleFlags2:()=>Cr,ResolvedReflectiveFactory:()=>Df,Sanitizer:()=>Yp,SecurityContext:()=>ei,Self:()=>ks,SimpleChange:()=>Ai,SkipSelf:()=>zr,TRANSLATIONS:()=>W0,TRANSLATIONS_FORMAT:()=>z0,TemplateRef:()=>vs,Testability:()=>bg,TestabilityRegistry:()=>gu,Type:()=>Os,VERSION:()=>Jp,Version:()=>Xp,ViewChild:()=>a_,ViewChildren:()=>s_,ViewContainerRef:()=>fa,ViewEncapsulation:()=>mt,ViewRef:()=>Rg,asNativeElements:()=>hE,assertPlatform:()=>Mg,createNgModuleRef:()=>r0,createPlatform:()=>Dg,createPlatformFactory:()=>Tg,defineInjectable:()=>Y,destroyPlatform:()=>tE,enableProdMode:()=>sE,forwardRef:()=>P,getDebugNode:()=>_a,getModuleFactory:()=>aE,getNgModuleById:()=>lE,getPlatform:()=>vu,inject:()=>C_,isDevMode:()=>oE,platformCore:()=>IE,resolveForwardRef:()=>O,setTestabilityGetter:()=>q0,\u0275ALLOW_MULTIPLE_PLATFORMS:()=>yu,\u0275APP_ID_RANDOM_PROVIDER:()=>cg,\u0275ChangeDetectorStatus:()=>Ye,\u0275ComponentFactory:()=>sa,\u0275Console:()=>fg,\u0275DEFAULT_LOCALE_ID:()=>us,\u0275INJECTOR_SCOPE:()=>Il,\u0275LifecycleHooksFeature:()=>cf,\u0275LocaleDataIndex:()=>rn,\u0275NG_COMP_DEF:()=>bn,\u0275NG_DIR_DEF:()=>at,\u0275NG_ELEMENT_ID:()=>De,\u0275NG_INJ_DEF:()=>Rt,\u0275NG_MOD_DEF:()=>Qe,\u0275NG_PIPE_DEF:()=>Ke,\u0275NG_PROV_DEF:()=>Tt,\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR:()=>aa,\u0275NO_CHANGE:()=>pn,\u0275NgModuleFactory:()=>ua,\u0275NoopNgZone:()=>vg,\u0275ReflectionCapabilities:()=>Pa,\u0275Render3ComponentFactory:()=>ca,\u0275Render3ComponentRef:()=>tm,\u0275Render3NgModuleRef:()=>Zc,\u0275RuntimeError:()=>B,\u0275ViewRef:()=>Ro,\u0275_sanitizeHtml:()=>bd,\u0275_sanitizeUrl:()=>Zo,\u0275allowSanitizationBypassAndThrow:()=>co,\u0275bypassSanitizationTrustHtml:()=>L_,\u0275bypassSanitizationTrustResourceUrl:()=>H_,\u0275bypassSanitizationTrustScript:()=>j_,\u0275bypassSanitizationTrustStyle:()=>B_,\u0275bypassSanitizationTrustUrl:()=>V_,\u0275clearResolutionOfComponentResourcesQueue:()=>ld,\u0275compileComponent:()=>Zm,\u0275compileDirective:()=>cu,\u0275compileNgModule:()=>Um,\u0275compileNgModuleDefs:()=>Wm,\u0275compileNgModuleFactory:()=>Cg,\u0275compilePipe:()=>og,\u0275createInjector:()=>Pl,\u0275defaultIterableDiffers:()=>Ug,\u0275defaultKeyValueDiffers:()=>Wg,\u0275detectChanges:()=>Uh,\u0275devModeEqual:()=>hf,\u0275findLocaleData:()=>jc,\u0275flushModuleScopingQueueAsMuchAsPossible:()=>Hm,\u0275getDebugNode:()=>_a,\u0275getDebugNodeR2:()=>_E,\u0275getDirectives:()=>ef,\u0275getHostElement:()=>Rl,\u0275getInjectableDef:()=>Ee,\u0275getLContext:()=>yi,\u0275getLocaleCurrencyCode:()=>Zb,\u0275getLocalePluralCase:()=>_p,\u0275getSanitizationBypassType:()=>hd,\u0275global:()=>Kt,\u0275injectChangeDetectorRef:()=>xg,\u0275isBoundToModule:()=>Eg,\u0275isDefaultChangeDetectionStrategy:()=>it,\u0275isListLikeIterable:()=>os,\u0275isObservable:()=>xf,\u0275isPromise:()=>ic,\u0275isSubscribable:()=>Of,\u0275ivyEnabled:()=>NE,\u0275makeDecorator:()=>ro,\u0275markDirty:()=>Wh,\u0275noSideEffects:()=>ie,\u0275patchComponentDefWithScope:()=>su,\u0275publishDefaultGlobalUtils:()=>Uv,\u0275publishGlobalUtil:()=>er,\u0275registerLocaleData:()=>Qb,\u0275registerNgModuleType:()=>om,\u0275renderComponent:()=>Wv,\u0275resetCompiledComponents:()=>M0,\u0275resetJitOptions:()=>D0,\u0275resolveComponentResources:()=>sd,\u0275setClassMetadata:()=>nm,\u0275setCurrentInjector:()=>Ra,\u0275setDocument:()=>Yi,\u0275setLocaleId:()=>bp,\u0275store:()=>pf,\u0275stringify:()=>T,\u0275transitiveScopesFor:()=>Cs,\u0275unregisterLocaleData:()=>Yb,\u0275unwrapSafeValue:()=>Rr,\u0275whenRendered:()=>zv,\u0275\u0275CopyDefinitionFeature:()=>df,\u0275\u0275FactoryTarget:()=>ii,\u0275\u0275InheritDefinitionFeature:()=>kl,\u0275\u0275NgOnChangesFeature:()=>pi,\u0275\u0275ProvidersFeature:()=>Kp,\u0275\u0275advance:()=>uh,\u0275\u0275attribute:()=>Bl,\u0275\u0275attributeInterpolate1:()=>jl,\u0275\u0275attributeInterpolate2:()=>Vl,\u0275\u0275attributeInterpolate3:()=>Hl,\u0275\u0275attributeInterpolate4:()=>$l,\u0275\u0275attributeInterpolate5:()=>Ul,\u0275\u0275attributeInterpolate6:()=>Wl,\u0275\u0275attributeInterpolate7:()=>zl,\u0275\u0275attributeInterpolate8:()=>Kl,\u0275\u0275attributeInterpolateV:()=>Gl,\u0275\u0275classMap:()=>zf,\u0275\u0275classMapInterpolate1:()=>qf,\u0275\u0275classMapInterpolate2:()=>ep,\u0275\u0275classMapInterpolate3:()=>tp,\u0275\u0275classMapInterpolate4:()=>np,\u0275\u0275classMapInterpolate5:()=>ip,\u0275\u0275classMapInterpolate6:()=>rp,\u0275\u0275classMapInterpolate7:()=>op,\u0275\u0275classMapInterpolate8:()=>sp,\u0275\u0275classMapInterpolateV:()=>ap,\u0275\u0275classProp:()=>_c,\u0275\u0275contentQuery:()=>km,\u0275\u0275defineComponent:()=>I,\u0275\u0275defineDirective:()=>$e,\u0275\u0275defineInjectable:()=>qe,\u0275\u0275defineInjector:()=>he,\u0275\u0275defineNgModule:()=>Ut,\u0275\u0275definePipe:()=>le,\u0275\u0275directiveInject:()=>ls,\u0275\u0275disableBindings:()=>Ni,\u0275\u0275element:()=>If,\u0275\u0275elementContainer:()=>Af,\u0275\u0275elementContainerEnd:()=>nc,\u0275\u0275elementContainerStart:()=>tc,\u0275\u0275elementEnd:()=>ec,\u0275\u0275elementStart:()=>ql,\u0275\u0275enableBindings:()=>gi,\u0275\u0275getCurrentView:()=>Pf,\u0275\u0275getInheritedFactory:()=>Zu,\u0275\u0275hostProperty:()=>Lc,\u0275\u0275i18n:()=>Hp,\u0275\u0275i18nApply:()=>Up,\u0275\u0275i18nAttributes:()=>$p,\u0275\u0275i18nEnd:()=>Uc,\u0275\u0275i18nExp:()=>Wc,\u0275\u0275i18nPostprocess:()=>Wp,\u0275\u0275i18nStart:()=>$c,\u0275\u0275inject:()=>si,\u0275\u0275injectAttribute:()=>Sa,\u0275\u0275invalidFactory:()=>Sf,\u0275\u0275invalidFactoryDep:()=>Fa,\u0275\u0275listener:()=>rc,\u0275\u0275loadQuery:()=>Nm,\u0275\u0275namespaceHTML:()=>Vn,\u0275\u0275namespaceMathML:()=>lr,\u0275\u0275namespaceSVG:()=>_i,\u0275\u0275nextContext:()=>kf,\u0275\u0275ngDeclareClassMetadata:()=>BE,\u0275\u0275ngDeclareComponent:()=>jE,\u0275\u0275ngDeclareDirective:()=>LE,\u0275\u0275ngDeclareFactory:()=>VE,\u0275\u0275ngDeclareInjectable:()=>$E,\u0275\u0275ngDeclareInjector:()=>UE,\u0275\u0275ngDeclareNgModule:()=>WE,\u0275\u0275ngDeclarePipe:()=>zE,\u0275\u0275pipe:()=>Em,\u0275\u0275pipeBind1:()=>Dm,\u0275\u0275pipeBind2:()=>Tm,\u0275\u0275pipeBind3:()=>Mm,\u0275\u0275pipeBind4:()=>wm,\u0275\u0275pipeBindV:()=>Sm,\u0275\u0275projection:()=>Lf,\u0275\u0275projectionDef:()=>Nf,\u0275\u0275property:()=>Xl,\u0275\u0275propertyInterpolate:()=>ac,\u0275\u0275propertyInterpolate1:()=>qs,\u0275\u0275propertyInterpolate2:()=>lc,\u0275\u0275propertyInterpolate3:()=>cc,\u0275\u0275propertyInterpolate4:()=>uc,\u0275\u0275propertyInterpolate5:()=>dc,\u0275\u0275propertyInterpolate6:()=>hc,\u0275\u0275propertyInterpolate7:()=>fc,\u0275\u0275propertyInterpolate8:()=>pc,\u0275\u0275propertyInterpolateV:()=>mc,\u0275\u0275pureFunction0:()=>am,\u0275\u0275pureFunction1:()=>lm,\u0275\u0275pureFunction2:()=>cm,\u0275\u0275pureFunction3:()=>um,\u0275\u0275pureFunction4:()=>dm,\u0275\u0275pureFunction5:()=>hm,\u0275\u0275pureFunction6:()=>fm,\u0275\u0275pureFunction7:()=>pm,\u0275\u0275pureFunction8:()=>mm,\u0275\u0275pureFunctionV:()=>gm,\u0275\u0275queryRefresh:()=>Rm,\u0275\u0275reference:()=>mf,\u0275\u0275resolveBody:()=>Bd,\u0275\u0275resolveDocument:()=>Ld,\u0275\u0275resolveWindow:()=>Nd,\u0275\u0275restoreView:()=>c,\u0275\u0275sanitizeHtml:()=>Cd,\u0275\u0275sanitizeResourceUrl:()=>Wa,\u0275\u0275sanitizeScript:()=>Dd,\u0275\u0275sanitizeStyle:()=>Ed,\u0275\u0275sanitizeUrl:()=>Ua,\u0275\u0275sanitizeUrlOrResourceUrl:()=>wd,\u0275\u0275setComponentScope:()=>M,\u0275\u0275setNgModuleScope:()=>gn,\u0275\u0275styleMap:()=>dr,\u0275\u0275styleMapInterpolate1:()=>lp,\u0275\u0275styleMapInterpolate2:()=>cp,\u0275\u0275styleMapInterpolate3:()=>up,\u0275\u0275styleMapInterpolate4:()=>dp,\u0275\u0275styleMapInterpolate5:()=>hp,\u0275\u0275styleMapInterpolate6:()=>fp,\u0275\u0275styleMapInterpolate7:()=>pp,\u0275\u0275styleMapInterpolate8:()=>mp,\u0275\u0275styleMapInterpolateV:()=>gp,\u0275\u0275styleProp:()=>gc,\u0275\u0275stylePropInterpolate1:()=>Ic,\u0275\u0275stylePropInterpolate2:()=>Ac,\u0275\u0275stylePropInterpolate3:()=>Pc,\u0275\u0275stylePropInterpolate4:()=>Oc,\u0275\u0275stylePropInterpolate5:()=>xc,\u0275\u0275stylePropInterpolate6:()=>Rc,\u0275\u0275stylePropInterpolate7:()=>Fc,\u0275\u0275stylePropInterpolate8:()=>kc,\u0275\u0275stylePropInterpolateV:()=>Nc,\u0275\u0275syntheticHostListener:()=>oc,\u0275\u0275syntheticHostProperty:()=>Bc,\u0275\u0275template:()=>ff,\u0275\u0275templateRefExtractor:()=>Vm,\u0275\u0275text:()=>Jf,\u0275\u0275textInterpolate:()=>vc,\u0275\u0275textInterpolate1:()=>ta,\u0275\u0275textInterpolate2:()=>bc,\u0275\u0275textInterpolate3:()=>Cc,\u0275\u0275textInterpolate4:()=>Ec,\u0275\u0275textInterpolate5:()=>Dc,\u0275\u0275textInterpolate6:()=>Tc,\u0275\u0275textInterpolate7:()=>Mc,\u0275\u0275textInterpolate8:()=>wc,\u0275\u0275textInterpolateV:()=>Sc,\u0275\u0275trustConstantHtml:()=>Td,\u0275\u0275trustConstantResourceUrl:()=>Md,\u0275\u0275viewQuery:()=>Fm});var i=l(6758),d=l(6921),_=l(9751),u=l(6451),s=l(3099);function b(e){for(let t in e)if(e[t]===b)return t;throw Error("Could not find renamed property on target object.")}function C(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function T(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(T).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function p(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const y=b({__forward_ref__:b});function P(e){return e.__forward_ref__=P,e.toString=function(){return T(this())},e}function O(e){return S(e)?e():e}function S(e){return"function"==typeof e&&e.hasOwnProperty(y)&&e.__forward_ref__===P}class B extends Error{constructor(t,n){super(function ce(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function K(e){return"string"==typeof e?e:null==e?"":String(e)}function re(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():K(e)}function ue(e,t){const n=t?` in ${t}`:"";throw new B(-201,`No provider for ${re(e)} found${n}`)}function Ge(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}function qe(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}const Y=qe;function he(e){return{providers:e.providers||[],imports:e.imports||[]}}function Ee(e){return Ie(e,Tt)||Ie(e,dt)}function Ie(e,t){return e.hasOwnProperty(t)?e[t]:null}function pt(e){return e&&(e.hasOwnProperty(Rt)||e.hasOwnProperty(Ze))?e[Rt]:null}const Tt=b({\u0275prov:b}),Rt=b({\u0275inj:b}),dt=b({ngInjectableDef:b}),Ze=b({ngInjectorDef:b});var k=(()=>((k=k||{})[k.Default=0]="Default",k[k.Host=1]="Host",k[k.Self=2]="Self",k[k.SkipSelf=4]="SkipSelf",k[k.Optional=8]="Optional",k))();let ne;function se(e){const t=ne;return ne=e,t}function Ce(e,t,n){const r=Ee(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&k.Optional?null:void 0!==t?t:void ue(T(e),"Injector")}function ie(e){return{toString:e}.toString()}var ve=(()=>((ve=ve||{})[ve.OnPush=0]="OnPush",ve[ve.Default=1]="Default",ve))(),Ye=(()=>((Ye=Ye||{})[Ye.CheckOnce=0]="CheckOnce",Ye[Ye.Checked=1]="Checked",Ye[Ye.CheckAlways=2]="CheckAlways",Ye[Ye.Detached=3]="Detached",Ye[Ye.Errored=4]="Errored",Ye[Ye.Destroyed=5]="Destroyed",Ye))();function it(e){return null==e||e===ve.Default}var mt=(()=>{return(e=mt||(mt={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",mt;var e})();const _t="undefined"!=typeof globalThis&&globalThis,It="undefined"!=typeof window&&window,zt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Kt=_t||"undefined"!=typeof global&&global||It||zt,Qt={},Ot=[],bn=b({\u0275cmp:b}),at=b({\u0275dir:b}),Ke=b({\u0275pipe:b}),Qe=b({\u0275mod:b}),Se=b({\u0275fac:b}),De=b({__NG_ELEMENT_ID__:b});let w=0;function I(e){return ie(()=>{const n={},r={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===ve.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||Ot,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||mt.Emulated,id:"c",styles:e.styles||Ot,_:null,setInput:null,schemas:e.schemas||null,tView:null},o=e.directives,a=e.features,h=e.pipes;return r.id+=w++,r.inputs=Ve(e.inputs,n),r.outputs=Ve(e.outputs),a&&a.forEach(g=>g(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(G):null,r.pipeDefs=h?()=>("function"==typeof h?h():h).map(ot):null,r})}function M(e,t,n){const r=e.\u0275cmp;r.directiveDefs=()=>t.map(G),r.pipeDefs=()=>n.map(ot)}function G(e){return Be(e)||ft(e)}function ot(e){return Vt(e)}const Et={};function Ut(e){return ie(()=>{const t={type:e.type,bootstrap:e.bootstrap||Ot,declarations:e.declarations||Ot,imports:e.imports||Ot,exports:e.exports||Ot,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(Et[e.id]=e.type),t})}function gn(e,t){return ie(()=>{const n=Bt(e,!0);n.declarations=t.declarations||Ot,n.imports=t.imports||Ot,n.exports=t.exports||Ot})}function Ve(e,t){if(null==e)return Qt;const n={};for(const r in e)if(e.hasOwnProperty(r)){let o=e[r],a=o;Array.isArray(o)&&(a=o[1],o=o[0]),n[o]=r,t&&(t[o]=a)}return n}const $e=I;function le(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function Be(e){return e[bn]||null}function ft(e){return e[at]||null}function Vt(e){return e[Ke]||null}function Bt(e,t){const n=e[Qe]||null;if(!n&&!0===t)throw new Error(`Type ${T(e)} does not have '\u0275mod' property.`);return n}function Kn(e){return Array.isArray(e)&&"object"==typeof e[1]}function Gn(e){return Array.isArray(e)&&!0===e[1]}function Ci(e){return 0!=(8&e.flags)}function Mi(e){return 2==(2&e.flags)}function hi(e){return 1==(1&e.flags)}function Wn(e){return null!==e.template}function Sr(e){return 0!=(512&e[2])}function fi(e,t){return e.hasOwnProperty(Se)?e[Se]:null}class Ai{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function pi(){return Qi}function Qi(e){return e.type.prototype.ngOnChanges&&(e.setInput=ir),mi}function mi(){const e=Pi(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===Qt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function ir(e,t,n,r){const o=Pi(e)||function Oi(e,t){return e[rr]=t}(e,{previous:Qt,current:null}),a=o.current||(o.current={}),h=o.previous,g=this.declaredInputs[n],E=h[g];a[g]=new Ai(E&&E.currentValue,t,h===Qt),e[r]=t}pi.ngInherit=!0;const rr="__ngSimpleChanges__";function Pi(e){return e[rr]||null}let xi=null;const Zi=e=>{xi=e},ti=function(e,t,n){null!=xi&&xi(e,t,n)},Ri="http://www.w3.org/2000/svg",or="http://www.w3.org/1998/MathML/";let Fi;function Yi(e){Fi=e}function ki(){return void 0!==Fi?Fi:"undefined"!=typeof document?document:void 0}function Rn(e){return!!e.listen}const sr={createRenderer:(e,t)=>ki()};function Ln(e){for(;Array.isArray(e);)e=e[0];return e}function R(e,t){return Ln(t[e])}function te(e,t){return Ln(t[e.index])}function ht(e,t){return e.data[t]}function Dt(e,t){return e[t]}function Nt(e,t){const n=t[e];return Kn(n)?n:n[0]}function Dn(e){return 4==(4&e[2])}function Tn(e){return 128==(128&e[2])}function un(e,t){return null==t?null:e[t]}function F(e){e[18]=0}function A(e,t){e[5]+=t;let n=e,r=e[3];for(;null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}const v={lFrame:ln(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function qn(){return v.bindingsEnabled}function gi(){v.bindingsEnabled=!0}function Ni(){v.bindingsEnabled=!1}function wt(){return v.lFrame.lView}function j(){return v.lFrame.tView}function c(e){return v.lFrame.contextLView=e,e[8]}function f(){let e=D();for(;null!==e&&64===e.type;)e=e.parent;return e}function D(){return v.lFrame.currentTNode}function V(){const e=v.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function ae(e,t){const n=v.lFrame;n.currentTNode=e,n.isParent=t}function Fe(){return v.lFrame.isParent}function je(){v.lFrame.isParent=!1}function Ft(){return v.isInCheckNoChangesMode}function Gt(e){v.isInCheckNoChangesMode=e}function Xt(){const e=v.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function dn(){return v.lFrame.bindingIndex}function en(e){return v.lFrame.bindingIndex=e}function nn(){return v.lFrame.bindingIndex++}function hn(e){const t=v.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function $(e){v.lFrame.inI18n=e}function Z(e,t){const n=v.lFrame;n.bindingIndex=n.bindingRootIndex=e,Oe(t)}function Oe(e){v.lFrame.currentDirectiveIndex=e}function Ne(e){const t=v.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function nt(){return v.lFrame.currentQueryIndex}function Ct(e){v.lFrame.currentQueryIndex=e}function bt(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function Wt(e,t,n){if(n&k.SkipSelf){let o=t,a=e;for(;!(o=o.parent,null!==o||n&k.Host||(o=bt(a),null===o||(a=a[15],10&o.type))););if(null===o)return!1;t=o,e=a}const r=v.lFrame=yn();return r.currentTNode=t,r.lView=e,!0}function Yt(e){const t=yn(),n=e[1];v.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function yn(){const e=v.lFrame,t=null===e?null:e.child;return null===t?ln(e):t}function ln(e){const t={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=t),t}function wn(){const e=v.lFrame;return v.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const _n=wn;function Pt(){const e=wn();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 sn(){return v.lFrame.selectedIndex}function jn(e){v.lFrame.selectedIndex=e}function Pn(){const e=v.lFrame;return ht(e.tView,e.selectedIndex)}function _i(){v.lFrame.currentNamespace=Ri}function lr(){v.lFrame.currentNamespace=or}function Vn(){!function Ts(){v.lFrame.currentNamespace=null}()}function Xi(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){const a=e.data[n].type.prototype,{ngAfterContentInit:h,ngAfterContentChecked:g,ngAfterViewInit:E,ngAfterViewChecked:L,ngOnDestroy:W}=a;h&&(e.contentHooks||(e.contentHooks=[])).push(-n,h),g&&((e.contentHooks||(e.contentHooks=[])).push(n,g),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,g)),E&&(e.viewHooks||(e.viewHooks=[])).push(-n,E),L&&((e.viewHooks||(e.viewHooks=[])).push(n,L),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,L)),null!=W&&(e.destroyHooks||(e.destroyHooks=[])).push(n,W)}}function Li(e,t,n){Lu(e,t,3,n)}function Ji(e,t,n,r){(3&e[2])===n&&Lu(e,t,n,r)}function Ur(e,t){let n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function Lu(e,t,n,r){const a=null!=r?r:-1,h=t.length-1;let g=0;for(let E=void 0!==r?65535&e[18]:0;E<h;E++)if("number"==typeof t[E+1]){if(g=t[E],null!=r&&g>=r)break}else t[E]<0&&(e[18]+=65536),(g<a||-1==a)&&(zg(e,n,t,E),e[18]=(4294901760&e[18])+E+2),E++}function zg(e,t,n,r){const o=n[r]<0,a=n[r+1],g=e[o?-n[r]:n[r]];if(o){if(e[2]>>11<e[18]>>16&&(3&e[2])===t){e[2]+=2048,ti(4,g,a);try{a.call(g)}finally{ti(5,g,a)}}}else{ti(4,g,a);try{a.call(g)}finally{ti(5,g,a)}}}class Bo{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Ms(e,t,n){const r=Rn(e);let o=0;for(;o<n.length;){const a=n[o];if("number"==typeof a){if(0!==a)break;o++;const h=n[o++],g=n[o++],E=n[o++];r?e.setAttribute(t,g,E,h):t.setAttributeNS(h,g,E)}else{const h=a,g=n[++o];Ea(h)?r&&e.setProperty(t,h,g):r?e.setAttribute(t,h,g):t.setAttribute(h,g),o++}}return o}function Bu(e){return 3===e||4===e||6===e}function Ea(e){return 64===e.charCodeAt(0)}function ws(e,t){if(null!==t&&0!==t.length)if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){const o=t[r];"number"==typeof o?n=o:0===n||ju(e,n,o,null,-1===n||2===n?t[++r]:null)}}return e}function ju(e,t,n,r,o){let a=0,h=e.length;if(-1===t)h=-1;else for(;a<e.length;){const g=e[a++];if("number"==typeof g){if(g===t){h=-1;break}if(g>t){h=a-1;break}}}for(;a<e.length;){const g=e[a];if("number"==typeof g)break;if(g===n){if(null===r)return void(null!==o&&(e[a+1]=o));if(r===e[a+1])return void(e[a+2]=o)}a++,null!==r&&a++,null!==o&&a++}-1!==h&&(e.splice(h,0,t),a=h+1),e.splice(a++,0,n),null!==r&&e.splice(a++,0,r),null!==o&&e.splice(a++,0,o)}function Vu(e){return-1!==e}function Jr(e){return 32767&e}function qr(e,t){let n=function Yg(e){return e>>16}(e),r=t;for(;n>0;)r=r[15],n--;return r}let Da=!0;function Ss(e){const t=Da;return Da=e,t}let Xg=0;function Vo(e,t){const n=Ma(e,t);if(-1!==n)return n;const r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,Ta(r.data,e),Ta(t,null),Ta(r.blueprint,null));const o=Is(e,t),a=e.injectorIndex;if(Vu(o)){const h=Jr(o),g=qr(o,t),E=g[1].data;for(let L=0;L<8;L++)t[a+L]=g[h+L]|E[h+L]}return t[a+8]=o,a}function Ta(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Ma(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Is(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;null!==o;){const a=o[1],h=a.type;if(r=2===h?a.declTNode:1===h?o[6]:null,null===r)return-1;if(n++,o=o[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function As(e,t,n){!function Jg(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(De)&&(r=n[De]),null==r&&(r=n[De]=Xg++);const o=255&r;t.data[e+(o>>5)]|=1<<o}(e,t,n)}function Uu(e,t,n){if(n&k.Optional)return e;ue(t,"NodeInjector")}function Wu(e,t,n,r){if(n&k.Optional&&void 0===r&&(r=null),0==(n&(k.Self|k.Host))){const o=e[9],a=se(void 0);try{return o?o.get(t,r,n&k.Optional):Ce(t,r,n&k.Optional)}finally{se(a)}}return Uu(r,t,n)}function zu(e,t,n,r=k.Default,o){if(null!==e){const a=function n_(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(De)?e[De]:void 0;return"number"==typeof t?t>=0?255&t:e_:t}(n);if("function"==typeof a){if(!Wt(t,e,r))return r&k.Host?Uu(o,n,r):Wu(t,n,r,o);try{const h=a(r);if(null!=h||r&k.Optional)return h;ue(n)}finally{_n()}}else if("number"==typeof a){let h=null,g=Ma(e,t),E=-1,L=r&k.Host?t[16][6]:null;for((-1===g||r&k.SkipSelf)&&(E=-1===g?Is(e,t):t[g+8],-1!==E&&Qu(r,!1)?(h=t[1],g=Jr(E),t=qr(E,t)):g=-1);-1!==g;){const W=t[1];if(Gu(a,g,W.data)){const ye=t_(g,t,n,h,r,L);if(ye!==Ku)return ye}E=t[g+8],-1!==E&&Qu(r,t[1].data[g+8]===L)&&Gu(a,g,t)?(h=W,g=Jr(E),t=qr(E,t)):g=-1}}}return Wu(t,n,r,o)}const Ku={};function e_(){return new eo(f(),wt())}function t_(e,t,n,r,o,a){const h=t[1],g=h.data[e+8],W=Ps(g,h,n,null==r?Mi(g)&&Da:r!=h&&0!=(3&g.type),o&k.Host&&a===g);return null!==W?Ho(t,h,W,g):Ku}function Ps(e,t,n,r,o){const a=e.providerIndexes,h=t.data,g=1048575&a,E=e.directiveStart,W=a>>20,We=o?g+W:e.directiveEnd;for(let rt=r?g:g+W;rt<We;rt++){const yt=h[rt];if(rt<E&&n===yt||rt>=E&&yt.type===n)return rt}if(o){const rt=h[E];if(rt&&Wn(rt)&&rt.type===n)return E}return null}function Ho(e,t,n,r){let o=e[n];const a=t.data;if(function Kg(e){return e instanceof Bo}(o)){const h=o;h.resolving&&function Me(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new B(-200,`Circular dependency in DI detected for ${e}${n}`)}(re(a[n]));const g=Ss(h.canSeeViewProviders);h.resolving=!0;const E=h.injectImpl?se(h.injectImpl):null;Wt(e,r,k.Default);try{o=e[n]=h.factory(void 0,a,e,r),t.firstCreatePass&&n>=r.directiveStart&&function ui(e,t,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:a}=t.type.prototype;if(r){const h=Qi(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,h),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,h)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,o),a&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,a))}(n,a[n],t)}finally{null!==E&&se(E),Ss(g),h.resolving=!1,_n()}}return o}function Gu(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function Qu(e,t){return!(e&k.Self||e&k.Host&&t)}class eo{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return zu(this._tNode,this._lView,t,r,n)}}function Zu(e){return ie(()=>{const t=e.prototype.constructor,n=t[Se]||wa(t),r=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){const a=o[Se]||wa(o);if(a&&a!==n)return a;o=Object.getPrototypeOf(o)}return a=>new a})}function wa(e){return S(e)?()=>{const t=wa(O(e));return t&&t()}:fi(e)}function Sa(e){return function qg(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const r=n.length;let o=0;for(;o<r;){const a=n[o];if(Bu(a))break;if(0===a)o+=2;else if("number"==typeof a)for(o++;o<r&&"string"==typeof n[o];)o++;else{if(a===t)return n[o+1];o+=2}}}return null}(f(),e)}const to="__annotations__",no="__parameters__",io="__prop__metadata__";function ro(e,t,n,r,o){return ie(()=>{const a=Ia(t);function h(...g){if(this instanceof h)return a.call(this,...g),this;const E=new h(...g);return function(W){return o&&o(W,...g),(W.hasOwnProperty(to)?W[to]:Object.defineProperty(W,to,{value:[]})[to]).push(E),r&&r(W),W}}return n&&(h.prototype=Object.create(n.prototype)),h.prototype.ngMetadataName=e,h.annotationCls=h,h})}function Ia(e){return function(...n){if(e){const r=e(...n);for(const o in r)this[o]=r[o]}}}function oo(e,t,n){return ie(()=>{const r=Ia(t);function o(...a){if(this instanceof o)return r.apply(this,a),this;const h=new o(...a);return g.annotation=h,g;function g(E,L,W){const ye=E.hasOwnProperty(no)?E[no]:Object.defineProperty(E,no,{value:[]})[no];for(;ye.length<=W;)ye.push(null);return(ye[W]=ye[W]||[]).push(h),E}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}function jr(e,t,n,r){return ie(()=>{const o=Ia(t);function a(...h){if(this instanceof a)return o.apply(this,h),this;const g=new a(...h);return function E(L,W){const ye=L.constructor,We=ye.hasOwnProperty(io)?ye[io]:Object.defineProperty(ye,io,{value:{}})[io];We[W]=We.hasOwnProperty(W)&&We[W]||[],We[W].unshift(g),r&&r(L,W,...h)}}return n&&(a.prototype=Object.create(n.prototype)),a.prototype.ngMetadataName=e,a.annotationCls=a,a})}const Yu=oo("Attribute",e=>({attributeName:e,__NG_ELEMENT_ID__:()=>Sa(e)}));class Yn{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=qe({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}const i_=new Yn("AnalyzeForEntryComponents");class $o{}const r_=jr("ContentChildren",(e,t={})=>Object.assign({selector:e,first:!1,isViewQuery:!1,descendants:!1,emitDistinctChangesOnly:!0},t),$o),o_=jr("ContentChild",(e,t={})=>Object.assign({selector:e,first:!0,isViewQuery:!1,descendants:!0},t),$o),s_=jr("ViewChildren",(e,t={})=>Object.assign({selector:e,first:!1,isViewQuery:!0,descendants:!0,emitDistinctChangesOnly:!0},t),$o),a_=jr("ViewChild",(e,t)=>Object.assign({selector:e,first:!0,isViewQuery:!0,descendants:!0},t),$o);var ii=(()=>((ii=ii||{})[ii.Directive=0]="Directive",ii[ii.Component=1]="Component",ii[ii.Injectable=2]="Injectable",ii[ii.Pipe=3]="Pipe",ii[ii.NgModule=4]="NgModule",ii))();function ri(e){const t=Kt.ng;if(t&&t.\u0275compilerFacade)return t.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}const Os=Function;function Uo(e){return"function"==typeof e}function qi(e,t){void 0===t&&(t=e);for(let n=0;n<e.length;n++){let r=e[n];Array.isArray(r)?(t===e&&(t=e.slice(0,n)),qi(r,t)):t!==e&&t.push(r)}return t}function yr(e,t){e.forEach(n=>Array.isArray(n)?yr(n,t):t(n))}function Ju(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function xs(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Wo(e,t){const n=[];for(let r=0;r<e;r++)n.push(t);return n}function Bi(e,t,n){let r=so(e,t);return r>=0?e[1|r]=n:(r=~r,function u_(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(1===o)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;)e[o]=e[o-2],o--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function Aa(e,t){const n=so(e,t);if(n>=0)return e[1|n]}function so(e,t){return function td(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){const a=r+(o-r>>1),h=e[a<<n];if(t===h)return a<<n;h>t?o=a:r=a+1}return~(o<<n)}(e,t,1)}const d_=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|(?:[^()]+\(\[\],)?[^()]+\(arguments\).*)\)/,h_=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,f_=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,p_=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{\s*super\(\.\.\.arguments\)/;class Pa{constructor(t){this._reflect=t||Kt.Reflect}isReflectionEnabled(){return!0}factory(t){return(...n)=>new t(...n)}_zipTypesAndAnnotations(t,n){let r;r=Wo(void 0===t?n.length:t.length);for(let o=0;o<r.length;o++)r[o]=void 0===t?[]:t[o]&&t[o]!=Object?[t[o]]:[],n&&null!=n[o]&&(r[o]=r[o].concat(n[o]));return r}_ownParameters(t,n){if(function m_(e){return d_.test(e)||p_.test(e)||h_.test(e)&&!f_.test(e)}(t.toString()))return null;if(t.parameters&&t.parameters!==n.parameters)return t.parameters;const o=t.ctorParameters;if(o&&o!==n.ctorParameters){const g="function"==typeof o?o():o,E=g.map(W=>W&&W.type),L=g.map(W=>W&&Oa(W.decorators));return this._zipTypesAndAnnotations(E,L)}const a=t.hasOwnProperty(no)&&t[no],h=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",t);return h||a?this._zipTypesAndAnnotations(h,a):Wo(t.length)}parameters(t){if(!Uo(t))return[];const n=Rs(t);let r=this._ownParameters(t,n);return!r&&n!==Object&&(r=this.parameters(n)),r||[]}_ownAnnotations(t,n){if(t.annotations&&t.annotations!==n.annotations){let r=t.annotations;return"function"==typeof r&&r.annotations&&(r=r.annotations),r}return t.decorators&&t.decorators!==n.decorators?Oa(t.decorators):t.hasOwnProperty(to)?t[to]:null}annotations(t){if(!Uo(t))return[];const n=Rs(t),r=this._ownAnnotations(t,n)||[];return(n!==Object?this.annotations(n):[]).concat(r)}_ownPropMetadata(t,n){if(t.propMetadata&&t.propMetadata!==n.propMetadata){let r=t.propMetadata;return"function"==typeof r&&r.propMetadata&&(r=r.propMetadata),r}if(t.propDecorators&&t.propDecorators!==n.propDecorators){const r=t.propDecorators,o={};return Object.keys(r).forEach(a=>{o[a]=Oa(r[a])}),o}return t.hasOwnProperty(io)?t[io]:null}propMetadata(t){if(!Uo(t))return{};const n=Rs(t),r={};if(n!==Object){const a=this.propMetadata(n);Object.keys(a).forEach(h=>{r[h]=a[h]})}const o=this._ownPropMetadata(t,n);return o&&Object.keys(o).forEach(a=>{const h=[];r.hasOwnProperty(a)&&h.push(...r[a]),h.push(...o[a]),r[a]=h}),r}ownPropMetadata(t){return Uo(t)&&this._ownPropMetadata(t,Rs(t))||{}}hasLifecycleHook(t,n){return t instanceof Os&&n in t.prototype}guards(t){return{}}getter(t){return new Function("o","return o."+t+";")}setter(t){return new Function("o","v","return o."+t+" = v;")}method(t){return new Function("o","args",`if (!o.${t}) throw new Error('"${t}" is undefined');\n return o.${t}.apply(o, args);`)}importUri(t){return"object"==typeof t&&t.filePath?t.filePath:`./${T(t)}`}resourceUri(t){return`./${T(t)}`}resolveIdentifier(t,n,r,o){return o}resolveEnum(t,n){return t[n]}}function Oa(e){return e?e.map(t=>new(0,t.type.annotationCls)(...t.args?t.args:[])):[]}function Rs(e){const t=e.prototype?Object.getPrototypeOf(e.prototype):null;return(t?t.constructor:null)||Object}const Vr={},xa="__NG_DI_FLAG__",Fs="ngTempTokenPath",__=/\n/gm,nd="__source",v_=b({provide:String,useValue:b});let zo;function Ra(e){const t=zo;return zo=e,t}function b_(e,t=k.Default){if(void 0===zo)throw new Error("inject() must be called from an injection context");return null===zo?Ce(e,void 0,t):zo.get(e,t&k.Optional?null:void 0,t)}function si(e,t=k.Default){return(function Pe(){return ne}()||b_)(O(e),t)}function Fa(e){throw new Error("invalid")}const C_=si;function ka(e){const t=[];for(let n=0;n<e.length;n++){const r=O(e[n]);if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");let o,a=k.Default;for(let h=0;h<r.length;h++){const g=r[h],E=E_(g);"number"==typeof E?-1===E?o=g.token:a|=E:o=g}t.push(si(o,a))}else t.push(si(r))}return t}function Ko(e,t){return e[xa]=t,e.prototype[xa]=t,e}function E_(e){return e[xa]}const Go=Ko(oo("Inject",e=>({token:e})),-1),Wr=Ko(oo("Optional"),8),ks=Ko(oo("Self"),2),zr=Ko(oo("SkipSelf"),4),id=Ko(oo("Host"),1);let rd=null;function Na(){return rd=rd||new Pa}function Ns(e){return od(Na().parameters(e))}function od(e){return e.map(t=>function M_(e){const t={token:null,attribute:null,host:!1,optional:!1,self:!1,skipSelf:!1};if(Array.isArray(e)&&e.length>0)for(let n=0;n<e.length;n++){const r=e[n];if(void 0===r)continue;const o=Object.getPrototypeOf(r);if(r instanceof Wr||"Optional"===o.ngMetadataName)t.optional=!0;else if(r instanceof zr||"SkipSelf"===o.ngMetadataName)t.skipSelf=!0;else if(r instanceof ks||"Self"===o.ngMetadataName)t.self=!0;else if(r instanceof id||"Host"===o.ngMetadataName)t.host=!0;else if(r instanceof Go)t.token=r.token;else if(r instanceof Yu){if(void 0===r.attributeName)throw new Error("Attribute name must be defined.");t.attribute=r.attributeName}else t.token=r}else t.token=void 0===e||Array.isArray(e)&&0===e.length?null:e;return t}(t))}function sd(e){const t=[],n=new Map;function r(o){let a=n.get(o);if(!a){const h=e(o);n.set(o,a=h.then(I_))}return a}return ao.forEach((o,a)=>{const h=[];o.templateUrl&&h.push(r(o.templateUrl).then(ye=>{o.template=ye}));const g=o.styleUrls,E=o.styles||(o.styles=[]),L=o.styles.length;g&&g.forEach((ye,We)=>{E.push(""),h.push(r(ye).then(rt=>{E[L+We]=rt,g.splice(g.indexOf(ye),1),0==g.length&&(o.styleUrls=void 0)}))});const W=Promise.all(h).then(()=>function A_(e){Qo.delete(e)}(a));t.push(W)}),ld(),Promise.all(t).then(()=>{})}let ao=new Map;const Qo=new Set;function ad(e){return!!(e.templateUrl&&!e.hasOwnProperty("template")||e.styleUrls&&e.styleUrls.length)}function ld(){const e=ao;return ao=new Map,e}function I_(e){return"string"==typeof e?e:e.text()}let Ls,Bs;function La(){if(void 0===Ls&&(Ls=null,Kt.trustedTypes))try{Ls=Kt.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return Ls}function lo(e){var t;return(null===(t=La())||void 0===t?void 0:t.createHTML(e))||e}function Ba(){if(void 0===Bs&&(Bs=null,Kt.trustedTypes))try{Bs=Kt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return Bs}function cd(e){var t;return(null===(t=Ba())||void 0===t?void 0:t.createHTML(e))||e}function ud(e){var t;return(null===(t=Ba())||void 0===t?void 0:t.createScript(e))||e}function dd(e){var t;return(null===(t=Ba())||void 0===t?void 0:t.createScriptURL(e))||e}class Kr{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class x_ extends Kr{getTypeName(){return"HTML"}}class R_ extends Kr{getTypeName(){return"Style"}}class F_ extends Kr{getTypeName(){return"Script"}}class k_ extends Kr{getTypeName(){return"URL"}}class N_ extends Kr{getTypeName(){return"ResourceURL"}}function Rr(e){return e instanceof Kr?e.changingThisBreaksApplicationSecurity:e}function co(e,t){const n=hd(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===t}function hd(e){return e instanceof Kr&&e.getTypeName()||null}function L_(e){return new x_(e)}function B_(e){return new R_(e)}function j_(e){return new F_(e)}function V_(e){return new k_(e)}function H_(e){return new N_(e)}function fd(e){const t=new U_(e);return function W_(){try{return!!(new window.DOMParser).parseFromString(lo(""),"text/html")}catch(e){return!1}}()?new $_(t):t}class $_{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const n=(new window.DOMParser).parseFromString(lo(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch(n){return null}}}class U_{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);const r=this.inertDocument.createElement("body");n.appendChild(r)}}getInertBodyElement(t){const n=this.inertDocument.createElement("template");if("content"in n)return n.innerHTML=lo(t),n;const r=this.inertDocument.createElement("body");return r.innerHTML=lo(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(r),r}stripCustomNsAttrs(t){const n=t.attributes;for(let o=n.length-1;0<o;o--){const h=n.item(o).name;("xmlns:ns1"===h||0===h.indexOf("ns1:"))&&t.removeAttribute(h)}let r=t.firstChild;for(;r;)r.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(r),r=r.nextSibling}}const z_=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,K_=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function Zo(e){return(e=String(e)).match(z_)||e.match(K_)?e:"unsafe:"+e}function pd(e){return(e=String(e)).split(",").map(t=>Zo(t.trim())).join(", ")}function vr(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function Yo(...e){const t={};for(const n of e)for(const r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}const md=vr("area,br,col,hr,img,wbr"),gd=vr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),_d=vr("rp,rt"),ja=Yo(md,Yo(gd,vr("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")),Yo(_d,vr("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")),Yo(_d,gd)),Va=vr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Ha=vr("srcset"),yd=Yo(Va,Ha,vr("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,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),vr("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")),G_=vr("script,style,template");class Q_{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0;for(;n;)if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild)n=n.firstChild;else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let o=this.checkClobberedElement(n,n.nextSibling);if(o){n=o;break}n=this.checkClobberedElement(n,n.parentNode)}return this.buf.join("")}startElement(t){const n=t.nodeName.toLowerCase();if(!ja.hasOwnProperty(n))return this.sanitizedSomething=!0,!G_.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const r=t.attributes;for(let o=0;o<r.length;o++){const a=r.item(o),h=a.name,g=h.toLowerCase();if(!yd.hasOwnProperty(g)){this.sanitizedSomething=!0;continue}let E=a.value;Va[g]&&(E=Zo(E)),Ha[g]&&(E=pd(E)),this.buf.push(" ",h,'="',vd(E),'"')}return this.buf.push(">"),!0}endElement(t){const n=t.nodeName.toLowerCase();ja.hasOwnProperty(n)&&!md.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(vd(t))}checkClobberedElement(t,n){if(n&&(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return n}}const Z_=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Y_=/([^\#-~ |!])/g;function vd(e){return e.replace(/&/g,"&amp;").replace(Z_,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Y_,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let js;function bd(e,t){let n=null;try{js=js||fd(e);let r=t?String(t):"";n=js.getInertBodyElement(r);let o=5,a=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,r=a,a=n.innerHTML,n=js.getInertBodyElement(r)}while(r!==a);return lo((new Q_).sanitizeChildren($a(n)||n))}finally{if(n){const r=$a(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function $a(e){return"content"in e&&function X_(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var ei=(()=>((ei=ei||{})[ei.NONE=0]="NONE",ei[ei.HTML=1]="HTML",ei[ei.STYLE=2]="STYLE",ei[ei.SCRIPT=3]="SCRIPT",ei[ei.URL=4]="URL",ei[ei.RESOURCE_URL=5]="RESOURCE_URL",ei))();function Cd(e){const t=Xo();return t?cd(t.sanitize(ei.HTML,e)||""):co(e,"HTML")?cd(Rr(e)):bd(ki(),K(e))}function Ed(e){const t=Xo();return t?t.sanitize(ei.STYLE,e)||"":co(e,"Style")?Rr(e):K(e)}function Ua(e){const t=Xo();return t?t.sanitize(ei.URL,e)||"":co(e,"URL")?Rr(e):Zo(K(e))}function Wa(e){const t=Xo();if(t)return dd(t.sanitize(ei.RESOURCE_URL,e)||"");if(co(e,"ResourceURL"))return dd(Rr(e));throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)")}function Dd(e){const t=Xo();if(t)return ud(t.sanitize(ei.SCRIPT,e)||"");if(co(e,"Script"))return ud(Rr(e));throw new Error("unsafe value used in a script context")}function Td(e){return lo(e[0])}function Md(e){return function O_(e){var t;return(null===(t=La())||void 0===t?void 0:t.createScriptURL(e))||e}(e[0])}function wd(e,t,n){return function J_(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?Wa:Ua}(t,n)(e)}function Xo(){const e=wt();return e&&e[12]}function yi(e){let t=Jo(e);if(t){if(Array.isArray(t)){const n=t;let r,o,a;if(function q_(e){return e&&e.constructor&&e.constructor.\u0275cmp}(e)){if(r=Pd(n,e),-1==r)throw new Error("The provided component was not found in the application");o=e}else if(function ey(e){return e&&e.constructor&&e.constructor.\u0275dir}(e)){if(r=function ny(e,t){let n=e[1].firstChild;for(;n;){const o=n.directiveEnd;for(let a=n.directiveStart;a<o;a++)if(e[a]===t)return n.index;n=ty(n)}return-1}(n,e),-1==r)throw new Error("The provided directive was not found in the application");a=Od(r,n,!1)}else if(r=Ad(n,e),-1==r)return null;const h=Ln(n[r]),g=Jo(h),E=g&&!Array.isArray(g)?g:za(n,r,h);if(o&&void 0===E.component&&(E.component=o,vi(E.component,E)),a&&void 0===E.directives){E.directives=a;for(let L=0;L<a.length;L++)vi(a[L],E)}vi(E.native,E),t=E}}else{const n=e;let r=n;for(;r=r.parentNode;){const o=Jo(r);if(o){let a;if(a=Array.isArray(o)?o:o.lView,!a)return null;const h=Ad(a,n);if(h>=0){const g=Ln(a[h]),E=za(a,h,g);vi(g,E),t=E;break}}}}return t||null}function za(e,t,n){return{lView:e,nodeIndex:t,native:n,component:void 0,directives:void 0,localRefs:void 0}}function Sd(e){let n,t=Jo(e);if(Array.isArray(t)){const r=Pd(t,e);n=Nt(r,t);const o=za(t,r,n[0]);o.component=e,vi(e,o),vi(o.native,o)}else n=Nt(t.nodeIndex,t.lView);return n}const Id="__ngContext__";function vi(e,t){e[Id]=t}function Jo(e){return e[Id]||null}function Ka(e){const t=Jo(e);return t?Array.isArray(t)?t:t.lView:null}function Ad(e,t){const n=e[1];for(let r=20;r<n.bindingStartIndex;r++)if(Ln(e[r])===t)return r;return-1}function ty(e){if(e.child)return e.child;if(e.next)return e.next;for(;e.parent&&!e.parent.next;)e=e.parent;return e.parent&&e.parent.next}function Pd(e,t){const n=e[1].components;if(n)for(let r=0;r<n.length;r++){const o=n[r];if(Nt(o,e)[8]===t)return o}else if(Nt(20,e)[8]===t)return 20;return-1}function Od(e,t,n){const r=t[1].data[e];let o=r.directiveStart;return 0==o?Ot:(!n&&2&r.flags&&o++,t.slice(o,r.directiveEnd))}const Ga="ngOriginalError";function Qa(e){return e[Ga]}function ly(e,...t){e.error(...t)}class qo{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t),r=function ay(e){return e&&e.ngErrorLogger||ly}(t);r(this._console,"ERROR",t),n&&r(this._console,"ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Qa(t);for(;n&&Qa(n);)n=Qa(n);return n||null}}const xd={name:"custom-elements"},Rd={name:"no-errors-schema"},cy=/^>|^->|<!--|-->|--!>|<!-$/g,uy=/(<|>)/;const kd=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Kt))();function Nd(e){return e.ownerDocument.defaultView}function Ld(e){return e.ownerDocument}function Bd(e){return e.ownerDocument.body}function br(e){return e instanceof Function?e():e}var Cr=(()=>((Cr=Cr||{})[Cr.Important=1]="Important",Cr[Cr.DashCase=2]="DashCase",Cr))();let Za;function Ya(e,t){return Za(e,t)}function es(e){const t=e[3];return Gn(t)?t[3]:t}function $d(e){return function Hd(e){let t=Kn(e)?e:Ka(e);for(;t&&!(512&t[2]);)t=es(t);return t}(e)[8]}function Xa(e){return Ud(e[13])}function Ja(e){return Ud(e[4])}function Ud(e){for(;null!==e&&!Gn(e);)e=e[4];return e}function ho(e,t,n,r,o){if(null!=r){let a,h=!1;Gn(r)?a=r:Kn(r)&&(h=!0,r=r[0]);const g=Ln(r);0===e&&null!==n?null==o?Zd(t,n,g):Gr(t,n,g,o||null,!0):1===e&&null!==n?Gr(t,n,g,o||null,!0):2===e?nh(t,g,h):3===e&&t.destroyNode(g),null!=a&&function Ay(e,t,n,r,o){const a=n[7];a!==Ln(n)&&ho(t,e,r,a,o);for(let g=10;g<n.length;g++){const E=n[g];ts(E[1],E,e,t,r,a)}}(t,e,a,n,o)}}function qa(e,t){return Rn(e)?e.createText(t):e.createTextNode(t)}function Wd(e,t,n){Rn(e)?e.setValue(t,n):t.textContent=n}function _y(e,t){return e.createComment(function Fd(e){return e.replace(cy,t=>t.replace(uy,"\u200b$1\u200b"))}(t))}function el(e,t,n){return Rn(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function zd(e,t){const n=e[9],r=n.indexOf(t),o=t[3];1024&t[2]&&(t[2]&=-1025,A(o,-1)),n.splice(r,1)}function tl(e,t){if(e.length<=10)return;const n=10+t,r=e[n];if(r){const o=r[17];null!==o&&o!==e&&zd(o,r),t>0&&(e[n-1][4]=r[4]);const a=xs(e,10+t);!function yy(e,t){ts(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(r[1],r);const h=a[19];null!==h&&h.detachView(a[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function Kd(e,t){if(!(256&t[2])){const n=t[11];Rn(n)&&n.destroyNode&&ts(e,t,n,3,null,null),function Cy(e){let t=e[13];if(!t)return nl(e[1],e);for(;t;){let n=null;if(Kn(t))n=t[13];else{const r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)Kn(t)&&nl(t[1],t),t=t[3];null===t&&(t=e),Kn(t)&&nl(t[1],t),n=t&&t[4]}t=n}}(t)}}function nl(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function My(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r<n.length;r+=2){const o=t[n[r]];if(!(o instanceof Bo)){const a=n[r+1];if(Array.isArray(a))for(let h=0;h<a.length;h+=2){const g=o[a[h]],E=a[h+1];ti(4,g,E);try{E.call(g)}finally{ti(5,g,E)}}else{ti(4,o,a);try{a.call(o)}finally{ti(5,o,a)}}}}}(e,t),function Ty(e,t){const n=e.cleanup,r=t[7];let o=-1;if(null!==n)for(let a=0;a<n.length-1;a+=2)if("string"==typeof n[a]){const h=n[a+1],g="function"==typeof h?h(t):Ln(t[h]),E=r[o=n[a+2]],L=n[a+3];"boolean"==typeof L?g.removeEventListener(n[a],E,L):L>=0?r[o=L]():r[o=-L].unsubscribe(),a+=2}else{const h=r[o=n[a+1]];n[a].call(h)}if(null!==r){for(let a=o+1;a<r.length;a++)r[a]();t[7]=null}}(e,t),1===t[1].type&&Rn(t[11])&&t[11].destroy();const n=t[17];if(null!==n&&Gn(t[3])){n!==t[3]&&zd(n,t);const r=t[19];null!==r&&r.detachView(e)}}}function Gd(e,t,n){return Qd(e,t.parent,n)}function Qd(e,t,n){let r=t;for(;null!==r&&40&r.type;)r=(t=r).parent;if(null===r)return n[0];if(2&r.flags){const o=e.data[r.directiveStart].encapsulation;if(o===mt.None||o===mt.Emulated)return null}return te(r,n)}function Gr(e,t,n,r,o){Rn(e)?e.insertBefore(t,n,r,o):t.insertBefore(n,r,o)}function Zd(e,t,n){Rn(e)?e.appendChild(t,n):t.appendChild(n)}function Yd(e,t,n,r,o){null!==r?Gr(e,t,n,r,o):Zd(e,t,n)}function Vs(e,t){return Rn(e)?e.parentNode(t):t.parentNode}function Xd(e,t,n){return qd(e,t,n)}function Jd(e,t,n){return 40&e.type?te(e,n):null}let il,qd=Jd;function eh(e,t){qd=e,il=t}function Hs(e,t,n,r){const o=Gd(e,r,t),a=t[11],g=Xd(r.parent||t[6],r,t);if(null!=o)if(Array.isArray(n))for(let E=0;E<n.length;E++)Yd(a,o,n[E],g,!1);else Yd(a,o,n,g,!1);void 0!==il&&il(a,r,t,n,o)}function $s(e,t){if(null!==t){const n=t.type;if(3&n)return te(t,e);if(4&n)return rl(-1,e[t.index]);if(8&n){const r=t.child;if(null!==r)return $s(e,r);{const o=e[t.index];return Gn(o)?rl(-1,o):Ln(o)}}if(32&n)return Ya(t,e)()||Ln(e[t.index]);{const r=th(e,t);return null!==r?Array.isArray(r)?r[0]:$s(es(e[16]),r):$s(e,t.next)}}return null}function th(e,t){return null!==t?e[16][6].projection[t.projection]:null}function rl(e,t){const n=10+e+1;if(n<t.length){const r=t[n],o=r[1].firstChild;if(null!==o)return $s(r,o)}return t[7]}function nh(e,t,n){const r=Vs(e,t);r&&function wy(e,t,n,r){Rn(e)?e.removeChild(t,n,r):t.removeChild(n)}(e,r,t,n)}function ol(e,t,n,r,o,a,h){for(;null!=n;){const g=r[n.index],E=n.type;if(h&&0===t&&(g&&vi(Ln(g),r),n.flags|=4),64!=(64&n.flags))if(8&E)ol(e,t,n.child,r,o,a,!1),ho(t,e,o,g,a);else if(32&E){const L=Ya(n,r);let W;for(;W=L();)ho(t,e,o,W,a);ho(t,e,o,g,a)}else 16&E?ih(e,t,r,n,o,a):ho(t,e,o,g,a);n=h?n.projectionNext:n.next}}function ts(e,t,n,r,o,a){ol(n,r,e.firstChild,t,o,a,!1)}function ih(e,t,n,r,o,a){const h=n[16],E=h[6].projection[r.projection];if(Array.isArray(E))for(let L=0;L<E.length;L++)ho(t,e,o,E[L],a);else ol(e,t,E,h[3],o,a,!0)}function rh(e,t,n){Rn(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function sl(e,t,n){Rn(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}function oh(e,t,n){let r=e.length;for(;;){const o=e.indexOf(t,n);if(-1===o)return o;if(0===o||e.charCodeAt(o-1)<=32){const a=t.length;if(o+a===r||e.charCodeAt(o+a)<=32)return o}n=o+1}}const sh="ng-template";function Oy(e,t,n){let r=0;for(;r<e.length;){let o=e[r++];if(n&&"class"===o){if(o=e[r],-1!==oh(o.toLowerCase(),t,0))return!0}else if(1===o){for(;r<e.length&&"string"==typeof(o=e[r++]);)if(o.toLowerCase()===t)return!0;return!1}}return!1}function ah(e){return 4===e.type&&e.value!==sh}function xy(e,t,n){return t===(4!==e.type||n?e.value:sh)}function Ry(e,t,n){let r=4;const o=e.attrs||[],a=function Ny(e){for(let t=0;t<e.length;t++)if(Bu(e[t]))return t;return e.length}(o);let h=!1;for(let g=0;g<t.length;g++){const E=t[g];if("number"!=typeof E){if(!h)if(4&r){if(r=2|1&r,""!==E&&!xy(e,E,n)||""===E&&1===t.length){if(cr(r))return!1;h=!0}}else{const L=8&r?E:t[++g];if(8&r&&null!==e.attrs){if(!Oy(e.attrs,L,n)){if(cr(r))return!1;h=!0}continue}const ye=Fy(8&r?"class":E,o,ah(e),n);if(-1===ye){if(cr(r))return!1;h=!0;continue}if(""!==L){let We;We=ye>a?"":o[ye+1].toLowerCase();const rt=8&r?We:null;if(rt&&-1!==oh(rt,L,0)||2&r&&L!==We){if(cr(r))return!1;h=!0}}}}else{if(!h&&!cr(r)&&!cr(E))return!1;if(h&&cr(E))continue;h=!1,r=E|1&r}}return cr(r)||h}function cr(e){return 0==(1&e)}function Fy(e,t,n,r){if(null===t)return-1;let o=0;if(r||!n){let a=!1;for(;o<t.length;){const h=t[o];if(h===e)return o;if(3===h||6===h)a=!0;else{if(1===h||2===h){let g=t[++o];for(;"string"==typeof g;)g=t[++o];continue}if(4===h)break;if(0===h){o+=4;continue}}o+=a?1:2}return-1}return function Ly(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const r=e[n];if("number"==typeof r)return-1;if(r===t)return n;n++}return-1}(t,e)}function lh(e,t,n=!1){for(let r=0;r<t.length;r++)if(Ry(e,t[r],n))return!0;return!1}function By(e,t){e:for(let n=0;n<t.length;n++){const r=t[n];if(e.length===r.length){for(let o=0;o<e.length;o++)if(e[o]!==r[o])continue e;return!0}}return!1}function ch(e,t){return e?":not("+t.trim()+")":t}function jy(e){let t=e[0],n=1,r=2,o="",a=!1;for(;n<e.length;){let h=e[n];if("string"==typeof h)if(2&r){const g=e[++n];o+="["+h+(g.length>0?'="'+g+'"':"")+"]"}else 8&r?o+="."+h:4&r&&(o+=" "+h);else""!==o&&!cr(h)&&(t+=ch(a,o),o=""),r=h,a=a||!cr(r);n++}return""!==o&&(t+=ch(a,o)),t}const pn={};function uh(e){dh(j(),wt(),sn()+e,Ft())}function dh(e,t,n,r){if(!r)if(3==(3&t[2])){const a=e.preOrderCheckHooks;null!==a&&Li(t,a,n)}else{const a=e.preOrderHooks;null!==a&&Ji(t,a,0,n)}jn(n)}function Us(e,t){return e<<17|t<<2}function ur(e){return e>>17&32767}function al(e){return 2|e}function Fr(e){return(131068&e)>>2}function ll(e,t){return-131069&e|t<<2}function cl(e){return 1|e}const _l=(()=>Promise.resolve(null))();function Eh(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;r<n.length;r+=2){const o=n[r],a=n[r+1];if(-1!==a){const h=e.data[a];Ct(o),h.contentQueries(2,t[a],a)}}}function ns(e,t,n,r,o,a,h,g,E,L){const W=t.blueprint.slice();return W[0]=o,W[2]=140|r,F(W),W[3]=W[15]=e,W[8]=n,W[10]=h||e&&e[10],W[11]=g||e&&e[11],W[12]=E||e&&e[12]||null,W[9]=L||e&&e[9]||null,W[6]=a,W[16]=2==t.type?e[16]:W,W}function fo(e,t,n,r,o){let a=e.data[t];if(null===a)a=yl(e,t,n,r,o),function q(){return v.lFrame.inI18n}()&&(a.flags|=64);else if(64&a.type){a.type=n,a.value=r,a.attrs=o;const h=V();a.injectorIndex=null===h?-1:h.injectorIndex}return ae(a,!0),a}function yl(e,t,n,r,o){const a=D(),h=Fe(),E=e.data[t]=function iv(e,t,n,r,o,a){return{type:n,index:r,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:o,attrs:a,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,h?a:a&&a.parent,n,t,r,o);return null===e.firstChild&&(e.firstChild=E),null!==a&&(h?null==a.child&&null!==E.parent&&(a.child=E):null===a.next&&(a.next=E)),E}function po(e,t,n,r){if(0===n)return-1;const o=t.length;for(let a=0;a<n;a++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function is(e,t,n){Yt(t);try{const r=e.viewQuery;null!==r&&Sl(1,r,n);const o=e.template;null!==o&&Dh(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Eh(e,t),e.staticViewQueries&&Sl(2,e.viewQuery,n);const a=e.components;null!==a&&function ev(e,t){for(let n=0;n<t.length;n++)Cv(e,t[n])}(t,a)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[2]&=-5,Pt()}}function mo(e,t,n,r){const o=t[2];if(256==(256&o))return;Yt(t);const a=Ft();try{F(t),en(e.bindingStartIndex),null!==n&&Dh(e,t,n,2,r);const h=3==(3&o);if(!a)if(h){const L=e.preOrderCheckHooks;null!==L&&Li(t,L,null)}else{const L=e.preOrderHooks;null!==L&&Ji(t,L,0,null),Ur(t,0)}if(function vv(e){for(let t=Xa(e);null!==t;t=Ja(t)){if(!t[2])continue;const n=t[9];for(let r=0;r<n.length;r++){const o=n[r],a=o[3];0==(1024&o[2])&&A(a,1),o[2]|=1024}}}(t),function yv(e){for(let t=Xa(e);null!==t;t=Ja(t))for(let n=10;n<t.length;n++){const r=t[n],o=r[1];Tn(r)&&mo(o,r,o.template,r[8])}}(t),null!==e.contentQueries&&Eh(e,t),!a)if(h){const L=e.contentCheckHooks;null!==L&&Li(t,L)}else{const L=e.contentHooks;null!==L&&Ji(t,L,1),Ur(t,1)}!function Jy(e,t){const n=e.hostBindingOpCodes;if(null!==n)try{for(let r=0;r<n.length;r++){const o=n[r];if(o<0)jn(~o);else{const a=o,h=n[++r],g=n[++r];Z(h,a),g(2,t[a])}}}finally{jn(-1)}}(e,t);const g=e.components;null!==g&&function qy(e,t){for(let n=0;n<t.length;n++)bv(e,t[n])}(t,g);const E=e.viewQuery;if(null!==E&&Sl(2,E,r),!a)if(h){const L=e.viewCheckHooks;null!==L&&Li(t,L)}else{const L=e.viewHooks;null!==L&&Ji(t,L,2),Ur(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),a||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,A(t[3],-1))}finally{Pt()}}function tv(e,t,n,r){const o=t[10],a=!Ft(),h=Dn(t);try{a&&!h&&o.begin&&o.begin(),h&&is(e,t,r),mo(e,t,n,r)}finally{a&&!h&&o.end&&o.end()}}function Dh(e,t,n,r,o){const a=sn(),h=2&r;try{jn(-1),h&&t.length>20&&dh(e,t,20,Ft()),ti(h?2:0,o),n(r,o)}finally{jn(a),ti(h?3:1,o)}}function Th(e,t,n){if(Ci(t)){const o=t.directiveEnd;for(let a=t.directiveStart;a<o;a++){const h=e.data[a];h.contentQueries&&h.contentQueries(1,n[a],a)}}}function vl(e,t,n){!qn()||(function uv(e,t,n,r){const o=n.directiveStart,a=n.directiveEnd;e.firstCreatePass||Vo(n,t),vi(r,t);const h=n.initialInputs;for(let g=o;g<a;g++){const E=e.data[g],L=Wn(E);L&&mv(t,n,E);const W=Ho(t,e,g,n);vi(W,t),null!==h&&gv(0,g-o,W,E,0,h),L&&(Nt(n.index,t)[8]=W)}}(e,t,n,te(n,t)),128==(128&n.flags)&&function dv(e,t,n){const r=n.directiveStart,o=n.directiveEnd,h=n.index,g=function ee(){return v.lFrame.currentDirectiveIndex}();try{jn(h);for(let E=r;E<o;E++){const L=e.data[E],W=t[E];Oe(E),(null!==L.hostBindings||0!==L.hostVars||null!==L.hostAttrs)&&xh(L,W)}}finally{jn(-1),Oe(g)}}(e,t,n))}function bl(e,t,n=te){const r=t.localNames;if(null!==r){let o=t.index+1;for(let a=0;a<r.length;a+=2){const h=r[a+1],g=-1===h?n(t,e):e[h];e[o++]=g}}}function Mh(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=Ks(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function Ks(e,t,n,r,o,a,h,g,E,L){const W=20+r,ye=W+o,We=function nv(e,t){const n=[];for(let r=0;r<t;r++)n.push(r<e?null:pn);return n}(W,ye),rt="function"==typeof L?L():L;return We[1]={type:e,blueprint:We,template:n,queries:null,viewQuery:g,declTNode:t,data:We.slice().fill(null,W),bindingStartIndex:W,expandoStartIndex:ye,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof a?a():a,pipeRegistry:"function"==typeof h?h():h,firstChild:null,schemas:E,consts:rt,incompleteFirstPass:!1}}function Sh(e,t,n){if(Rn(e))return e.selectRootElement(t,n===mt.ShadowDom);let r="string"==typeof t?e.querySelector(t):t;return r.textContent="",r}function Ih(e,t,n,r){const o=Bh(t);null===n?o.push(r):(o.push(n),e.firstCreatePass&&jh(e).push(r,o.length-1))}function Ah(e,t,n){for(let r in e)if(e.hasOwnProperty(r)){const o=e[r];(n=null===n?{}:n).hasOwnProperty(r)?n[r].push(t,o):n[r]=[t,o]}return n}function ji(e,t,n,r,o,a,h,g){const E=te(t,n);let W,L=t.inputs;!g&&null!=L&&(W=L[r])?($h(e,n,W,r,o),Mi(t)&&function sv(e,t){const n=Nt(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3&t.type&&(r=function ov(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),o=null!=h?h(o,t.value||"",r):o,Rn(a)?a.setProperty(E,r,o):Ea(r)||(E.setProperty?E.setProperty(r,o):E[r]=o))}function Cl(e,t,n,r){let o=!1;if(qn()){const a=function hv(e,t,n){const r=e.directiveRegistry;let o=null;if(r)for(let a=0;a<r.length;a++){const h=r[a];lh(n,h.selectors,!1)&&(o||(o=[]),As(Vo(n,t),e,h.type),Wn(h)?(Rh(e,n),o.unshift(h)):o.push(h))}return o}(e,t,n),h=null===r?null:{"":-1};if(null!==a){o=!0,Fh(n,e.data.length,a.length);for(let W=0;W<a.length;W++){const ye=a[W];ye.providersResolver&&ye.providersResolver(ye)}let g=!1,E=!1,L=po(e,t,a.length,null);for(let W=0;W<a.length;W++){const ye=a[W];n.mergedAttrs=ws(n.mergedAttrs,ye.hostAttrs),kh(e,n,t,L,ye),pv(L,ye,h),null!==ye.contentQueries&&(n.flags|=8),(null!==ye.hostBindings||null!==ye.hostAttrs||0!==ye.hostVars)&&(n.flags|=128);const We=ye.type.prototype;!g&&(We.ngOnChanges||We.ngOnInit||We.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index),g=!0),!E&&(We.ngOnChanges||We.ngDoCheck)&&((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index),E=!0),L++}!function rv(e,t){const r=t.directiveEnd,o=e.data,a=t.attrs,h=[];let g=null,E=null;for(let L=t.directiveStart;L<r;L++){const W=o[L],ye=W.inputs,We=null===a||ah(t)?null:_v(ye,a);h.push(We),g=Ah(ye,L,g),E=Ah(W.outputs,L,E)}null!==g&&(g.hasOwnProperty("class")&&(t.flags|=16),g.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=h,t.inputs=g,t.outputs=E}(e,n)}h&&function fv(e,t,n){if(t){const r=e.localNames=[];for(let o=0;o<t.length;o+=2){const a=n[t[o+1]];if(null==a)throw new B(-301,`Export of name '${t[o+1]}' not found!`);r.push(t[o],a)}}}(n,r,h)}return n.mergedAttrs=ws(n.mergedAttrs,n.attrs),o}function Oh(e,t,n,r,o,a){const h=a.hostBindings;if(h){let g=e.hostBindingOpCodes;null===g&&(g=e.hostBindingOpCodes=[]);const E=~t.index;(function cv(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(g)!=E&&g.push(E),g.push(r,o,h)}}function xh(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Rh(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function pv(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Wn(t)&&(n[""]=e)}}function Fh(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function kh(e,t,n,r,o){e.data[r]=o;const a=o.factory||(o.factory=fi(o.type)),h=new Bo(a,Wn(o),null);e.blueprint[r]=h,n[r]=h,Oh(e,t,0,r,po(e,n,o.hostVars,pn),o)}function mv(e,t,n){const r=te(t,e),o=Mh(n),a=e[10],h=Gs(e,ns(e,o,null,n.onPush?64:16,r,t,a,a.createRenderer(r,n),null,null));e[t.index]=h}function Er(e,t,n,r,o,a){const h=te(e,t);El(t[11],h,a,e.value,n,r,o)}function El(e,t,n,r,o,a,h){if(null==a)Rn(e)?e.removeAttribute(t,o,n):t.removeAttribute(o);else{const g=null==h?K(a):h(a,r||"",o);Rn(e)?e.setAttribute(t,o,g,n):n?t.setAttributeNS(n,o,g):t.setAttribute(o,g)}}function gv(e,t,n,r,o,a){const h=a[t];if(null!==h){const g=r.setInput;for(let E=0;E<h.length;){const L=h[E++],W=h[E++],ye=h[E++];null!==g?r.setInput(n,ye,L,W):n[W]=ye}}}function _v(e,t){let n=null,r=0;for(;r<t.length;){const o=t[r];if(0!==o)if(5!==o){if("number"==typeof o)break;e.hasOwnProperty(o)&&(null===n&&(n=[]),n.push(o,e[o],t[r+1])),r+=2}else r+=2;else r+=4}return n}function Nh(e,t,n,r){return new Array(e,!0,!1,t,null,0,r,n,null,null)}function bv(e,t){const n=Nt(t,e);if(Tn(n)){const r=n[1];80&n[2]?mo(r,n,r.template,n[8]):n[5]>0&&Dl(n)}}function Dl(e){for(let r=Xa(e);null!==r;r=Ja(r))for(let o=10;o<r.length;o++){const a=r[o];if(1024&a[2]){const h=a[1];mo(h,a,h.template,a[8])}else a[5]>0&&Dl(a)}const n=e[1].components;if(null!==n)for(let r=0;r<n.length;r++){const o=Nt(n[r],e);Tn(o)&&o[5]>0&&Dl(o)}}function Cv(e,t){const n=Nt(t,e),r=n[1];(function Ev(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])})(r,n),is(r,n,n[8])}function Gs(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function Tl(e){for(;e;){e[2]|=64;const t=es(e);if(Sr(e)&&!t)return e;e=t}return null}function Ml(e){for(let t=0;t<e.components.length;t++){const n=e.components[t],r=Ka(n),o=r[1];tv(o,r,o.template,n)}}function wl(e,t,n){const r=t[10];r.begin&&r.begin();try{mo(e,t,e.template,n)}catch(o){throw Hh(t,o),o}finally{r.end&&r.end()}}function Lh(e){Ml(e[8])}function Sl(e,t,n){Ct(0),t(e,n)}const wv=_l;function Bh(e){return e[7]||(e[7]=[])}function jh(e){return e.cleanup||(e.cleanup=[])}function Vh(e,t,n){return(null===e||Wn(e))&&(n=function x(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}function Hh(e,t){const n=e[9],r=n?n.get(qo,null):null;r&&r.handleError(t)}function $h(e,t,n,r,o){for(let a=0;a<n.length;){const h=n[a++],g=n[a++],E=t[h],L=e.data[h];null!==L.setInput?L.setInput(E,o,r,g):E[g]=o}}function kr(e,t,n){const r=R(t,e);Wd(e[11],r,n)}function Qs(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,a=0;if(null!==t)for(let h=0;h<t.length;h++){const g=t[h];"number"==typeof g?a=g:1==a?o=p(o,g):2==a&&(r=p(r,g+": "+t[++h]+";"))}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function Uh(e){const t=Sd(e);wl(t[1],t,e)}function Wh(e){!function Dv(e,t){if(0===e.flags&&e.clean==_l){let r;e.flags|=t,e.clean=new Promise(o=>r=o),e.scheduler(()=>{if(1&e.flags&&(e.flags&=-2,Ml(e)),2&e.flags){e.flags&=-3;const o=e.playerHandler;o&&o.flushPlayers()}e.clean=_l,r(null)})}}(Tl(Sd(e))[8],1)}const Zs=new Yn("INJECTOR",-1);class zh{get(t,n=Vr){if(n===Vr){const r=new Error(`NullInjectorError: No provider for ${T(t)}!`);throw r.name="NullInjectorError",r}return n}}const Il=new Yn("Set Injector scope."),rs={},Sv={};let Al;function Kh(){return void 0===Al&&(Al=new zh),Al}function Pl(e,t=null,n=null,r){const o=Gh(e,t,n,r);return o._resolveInjectorDefTypes(),o}function Gh(e,t=null,n=null,r){return new Iv(e,n,t||Kh(),r)}class Iv{constructor(t,n,r,o=null){this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const a=[];n&&yr(n,g=>this.processProvider(g,t,n)),yr([t],g=>this.processInjectorType(g,[],a)),this.records.set(Zs,go(void 0,this));const h=this.records.get(Il);this.scope=null!=h?h.value:null,this.source=o||("object"==typeof t?null:T(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,n=Vr,r=k.Default){this.assertNotDestroyed();const o=Ra(this),a=se(void 0);try{if(!(r&k.SkipSelf)){let g=this.records.get(t);if(void 0===g){const E=function Nv(e){return"function"==typeof e||"object"==typeof e&&e instanceof Yn}(t)&&Ee(t);g=E&&this.injectableDefInScope(E)?go(Ol(t),rs):null,this.records.set(t,g)}if(null!=g)return this.hydrate(t,g)}return(r&k.Self?Kh():this.parent).get(t,n=r&k.Optional&&n===Vr?null:n)}catch(h){if("NullInjectorError"===h.name){if((h[Fs]=h[Fs]||[]).unshift(T(t)),o)throw h;return function D_(e,t,n,r){const o=e[Fs];throw t[nd]&&o.unshift(t[nd]),e.message=function T_(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let o=T(t);if(Array.isArray(t))o=t.map(T).join(" -> ");else if("object"==typeof t){let a=[];for(let h in t)if(t.hasOwnProperty(h)){let g=t[h];a.push(h+":"+("string"==typeof g?JSON.stringify(g):T(g)))}o=`{${a.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(__,"\n ")}`}("\n"+e.message,o,n,r),e.ngTokenPath=o,e[Fs]=null,e}(h,t,"R3InjectorError",this.source)}throw h}finally{se(a),Ra(o)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((r,o)=>t.push(T(o))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,n,r){if(!(t=O(t)))return!1;let o=pt(t);const a=null==o&&t.ngModule||void 0,h=void 0===a?t:a,g=-1!==r.indexOf(h);if(void 0!==a&&(o=pt(a)),null==o)return!1;if(null!=o.imports&&!g){let W;r.push(h);try{yr(o.imports,ye=>{this.processInjectorType(ye,n,r)&&(void 0===W&&(W=[]),W.push(ye))})}finally{}if(void 0!==W)for(let ye=0;ye<W.length;ye++){const{ngModule:We,providers:rt}=W[ye];yr(rt,yt=>this.processProvider(yt,We,rt||Ot))}}this.injectorDefTypes.add(h);const E=fi(h)||(()=>new h);this.records.set(h,go(E,rs));const L=o.providers;if(null!=L&&!g){const W=t;yr(L,ye=>this.processProvider(ye,W,L))}return void 0!==a&&void 0!==t.providers}processProvider(t,n,r){let o=_o(t=O(t))?t:O(t&&t.provide);const a=function Pv(e,t,n){return Zh(e)?go(void 0,e.useValue):go(Qh(e),rs)}(t);if(_o(t)||!0!==t.multi)this.records.get(o);else{let h=this.records.get(o);h||(h=go(void 0,rs,!0),h.factory=()=>ka(h.multi),this.records.set(o,h)),o=t,h.multi.push(t)}this.records.set(o,a)}hydrate(t,n){return n.value===rs&&(n.value=Sv,n.value=n.factory()),"object"==typeof n.value&&n.value&&function kv(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this.onDestroy.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=O(t.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function Ol(e){const t=Ee(e),n=null!==t?t.factory:fi(e);if(null!==n)return n;if(e instanceof Yn)throw new Error(`Token ${T(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function Av(e){const t=e.length;if(t>0){const r=Wo(t,"?");throw new Error(`Can't resolve all parameters for ${T(e)}: (${r.join(", ")}).`)}const n=function ge(e){const t=e&&(e[Tt]||e[dt]);if(t){const n=function Xe(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Error("unreachable")}function Qh(e,t,n){let r;if(_o(e)){const o=O(e);return fi(o)||Ol(o)}if(Zh(e))r=()=>O(e.useValue);else if(function xv(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...ka(e.deps||[]));else if(function Ov(e){return!(!e||!e.useExisting)}(e))r=()=>si(O(e.useExisting));else{const o=O(e&&(e.useClass||e.provide));if(!function Fv(e){return!!e.deps}(e))return fi(o)||Ol(o);r=()=>new o(...ka(e.deps))}return r}function go(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Zh(e){return null!==e&&"object"==typeof e&&v_ in e}function _o(e){return"function"==typeof e}let Vi=(()=>{class e{static create(n,r){var o;if(Array.isArray(n))return Pl({name:""},r,n,"");{const a=null!==(o=n.name)&&void 0!==o?o:"";return Pl({name:a},n.parent,n.providers,a)}}}return e.THROW_IF_NOT_FOUND=Vr,e.NULL=new zh,e.\u0275prov=qe({token:e,providedIn:"any",factory:()=>si(Zs)}),e.__NG_ELEMENT_ID__=-1,e})();function xl(e){Fl(e);const t=yi(e);return null===t?null:(void 0===t.component&&(t.component=function iy(e,t){const n=t[1].data[e];return 2&n.flags?t[n.directiveStart]:null}(t.nodeIndex,t.lView)),t.component)}function Yh(e){Fl(e);const t=yi(e);return null===t?null:t.lView[8]}function Xh(e){const t=yi(e);if(null===t)return null;let r,n=t.lView;for(;2===n[1].type&&(r=es(n));)n=r;return 512&n[2]?null:n[8]}function Jh(e){return[...$d(e).components]}function qh(e){const t=yi(e);return null===t?Vi.NULL:new eo(t.lView[1].data[t.nodeIndex],t.lView)}function ef(e){if(e instanceof Text)return[];const t=yi(e);if(null===t)return[];const n=t.lView,r=n[1],o=t.nodeIndex;return(null==r?void 0:r.data[o])?(void 0===t.directives&&(t.directives=Od(o,n,!1)),null===t.directives?[]:[...t.directives]):[]}function Bv(e){const{constructor:t}=e;if(!t)throw new Error("Unable to find the instance constructor");const n=Be(t);if(n)return{inputs:n.inputs,outputs:n.outputs,encapsulation:n.encapsulation,changeDetection:n.onPush?ve.OnPush:ve.Default};const r=ft(t);return r?{inputs:r.inputs,outputs:r.outputs}:null}function Rl(e){return yi(e).native}function tf(e){Fl(e);const t=yi(e);if(null===t)return[];const n=t.lView,o=n[7],a=n[1].cleanup,h=[];if(a&&o)for(let g=0;g<a.length;){const E=a[g++],L=a[g++];if("string"==typeof E){const W=E,ye=Ln(n[L]),We=o[a[g++]],rt=a[g++],yt="boolean"==typeof rt||rt>=0?"dom":"output",xt="boolean"==typeof rt&&rt;e==ye&&h.push({element:e,name:W,callback:We,useCapture:xt,type:yt})}}return h.sort(Vv),h}function Vv(e,t){return e.name==t.name?0:e.name<t.name?-1:1}function Hv(e){return void 0!==e.type&&void 0!==e.template&&void 0!==e.declaredInputs}function Fl(e){if("undefined"!=typeof Element&&!(e instanceof Element))throw new Error("Expecting instance of DOM Element")}function $v(e){Wh(e),Jh(e).forEach(t=>Uh(t))}let rf=!1;function Uv(){rf||(rf=!0,er("\u0275setProfiler",Zi),er("getDirectiveMetadata",Bv),er("getComponent",xl),er("getContext",Yh),er("getListeners",tf),er("getOwningComponent",Xh),er("getHostElement",Rl),er("getInjector",qh),er("getRootComponents",Jh),er("getDirectives",ef),er("applyChanges",$v))}function er(e,t){if("undefined"==typeof COMPILED||!COMPILED){const n=Kt;if(n){let r=n.ng;r||(r=n.ng={}),r[e]=t}}}function Wv(e,t={}){const n=t.rendererFactory||sr,r=t.sanitizer||null,o=Be(e);o.type!=e&&(o.type=e);const a=o.selectors[0][0],g=Sh(n.createRenderer(null,null),t.host||a,o.encapsulation),E=o.onPush?576:528,L=lf(t.scheduler,t.playerHandler),W=n.createRenderer(g,o),ye=Ks(0,null,null,1,0,null,null,null,null,null),We=ns(null,ye,L,E,null,null,n,W,null,t.injector||null);let rt;Yt(We);try{n.begin&&n.begin(),rt=af(sf(g,o,We,n,W,r),o,We,L,t.hostFeatures||null),is(ye,We,null),mo(ye,We,null,null)}finally{Pt(),n.end&&n.end()}return rt}function sf(e,t,n,r,o,a){const h=n[1];n[20]=e;const E=fo(h,20,2,"#host",null),L=E.mergedAttrs=t.hostAttrs;null!==L&&(Qs(E,L,!0),null!==e&&(Ms(o,e,L),null!==E.classes&&sl(o,e,E.classes),null!==E.styles&&rh(o,e,E.styles)));const W=r.createRenderer(e,t),ye=ns(n,Mh(t),null,t.onPush?64:16,n[20],E,r,W,a||null,null);return h.firstCreatePass&&(As(Vo(E,n),h,t.type),Rh(h,E),Fh(E,n.length,1)),Gs(n,ye),n[20]=ye}function af(e,t,n,r,o){const a=n[1],h=function lv(e,t,n){const r=f();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),kh(e,r,t,po(e,t,1,null),n));const o=Ho(t,e,r.directiveStart,r);vi(o,t);const a=te(r,t);return a&&vi(a,t),o}(a,n,t);if(r.components.push(h),e[8]=h,o&&o.forEach(E=>E(h,t)),t.contentQueries){const E=f();t.contentQueries(1,h,E.directiveStart)}const g=f();return!a.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(jn(g.index),Oh(n[1],g,0,g.directiveStart,g.directiveEnd,t),xh(t,h)),h}function lf(e,t){return{components:[],scheduler:e||kd,clean:wv,playerHandler:t||null,flags:0}}function cf(e,t){Xi(Ka(e)[1],f())}function zv(e){return $d(e).clean}function uf(e){return Object.getPrototypeOf(e.prototype).constructor}function kl(e){let t=uf(e.type),n=!0;const r=[e];for(;t;){let o;if(Wn(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");o=t.\u0275dir}if(o){if(n){r.push(o);const h=e;h.inputs=Nl(e.inputs),h.declaredInputs=Nl(e.declaredInputs),h.outputs=Nl(e.outputs);const g=o.hostBindings;g&&Zv(e,g);const E=o.viewQuery,L=o.contentQueries;if(E&&Gv(e,E),L&&Qv(e,L),C(e.inputs,o.inputs),C(e.declaredInputs,o.declaredInputs),C(e.outputs,o.outputs),Wn(o)&&o.data.animation){const W=e.data;W.animation=(W.animation||[]).concat(o.data.animation)}}const a=o.features;if(a)for(let h=0;h<a.length;h++){const g=a[h];g&&g.ngInherit&&g(e),g===kl&&(n=!1)}}t=Object.getPrototypeOf(t)}!function Kv(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){const o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=ws(o.hostAttrs,n=ws(n,o.hostAttrs))}}(r)}function Nl(e){return e===Qt?{}:e===Ot?[]:e}function Gv(e,t){const n=e.viewQuery;e.viewQuery=n?(r,o)=>{t(r,o),n(r,o)}:t}function Qv(e,t){const n=e.contentQueries;e.contentQueries=n?(r,o,a)=>{t(r,o,a),n(r,o,a)}:t}function Zv(e,t){const n=e.hostBindings;e.hostBindings=n?(r,o)=>{t(r,o),n(r,o)}:t}const Yv=["providersResolver"],Xv=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function df(e){let n,t=uf(e.type);n=Wn(e)?t.\u0275cmp:t.\u0275dir;const r=e;for(const o of Yv)r[o]=n[o];if(Wn(n))for(const o of Xv)r[o]=n[o]}let Ys=null;function yo(){if(!Ys){const e=Kt.Symbol;if(e&&e.iterator)Ys=e.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let n=0;n<t.length;++n){const r=t[n];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(Ys=r)}}}return Ys}function hf(e,t){const n=os(e),r=os(t);return n&&r?function Jv(e,t,n){const r=e[yo()](),o=t[yo()]();for(;;){const a=r.next(),h=o.next();if(a.done&&h.done)return!0;if(a.done||h.done||!n(a.value,h.value))return!1}}(e,t,hf):!(n||!e||"object"!=typeof e&&"function"!=typeof e||r||!t||"object"!=typeof t&&"function"!=typeof t)||Object.is(e,t)}function os(e){return!!Ll(e)&&(Array.isArray(e)||!(e instanceof Map)&&yo()in e)}function Ll(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Dr(e,t,n){return e[t]=n}function ss(e,t){return e[t]}function bi(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Qr(e,t,n,r){const o=bi(e,t,n);return bi(e,t+1,r)||o}function Xs(e,t,n,r,o){const a=Qr(e,t,n,r);return bi(e,t+2,o)||a}function tr(e,t,n,r,o,a){const h=Qr(e,t,n,r);return Qr(e,t+2,o,a)||h}function Bl(e,t,n,r){const o=wt();return bi(o,nn(),t)&&(j(),Er(Pn(),o,e,t,n,r)),Bl}function vo(e,t){let n=!1,r=dn();for(let a=1;a<t.length;a+=2)n=bi(e,r++,t[a])||n;if(en(r),!n)return pn;let o=t[0];for(let a=1;a<t.length;a+=2)o+=K(t[a])+t[a+1];return o}function bo(e,t,n,r){return bi(e,nn(),n)?t+K(n)+r:pn}function Co(e,t,n,r,o,a){const g=Qr(e,dn(),n,o);return hn(2),g?t+K(n)+r+K(o)+a:pn}function Eo(e,t,n,r,o,a,h,g){const L=Xs(e,dn(),n,o,h);return hn(3),L?t+K(n)+r+K(o)+a+K(h)+g:pn}function Do(e,t,n,r,o,a,h,g,E,L){const ye=tr(e,dn(),n,o,h,E);return hn(4),ye?t+K(n)+r+K(o)+a+K(h)+g+K(E)+L:pn}function To(e,t,n,r,o,a,h,g,E,L,W,ye){const We=dn();let rt=tr(e,We,n,o,h,E);return rt=bi(e,We+4,W)||rt,hn(5),rt?t+K(n)+r+K(o)+a+K(h)+g+K(E)+L+K(W)+ye:pn}function Mo(e,t,n,r,o,a,h,g,E,L,W,ye,We,rt){const yt=dn();let xt=tr(e,yt,n,o,h,E);return xt=Qr(e,yt+4,W,We)||xt,hn(6),xt?t+K(n)+r+K(o)+a+K(h)+g+K(E)+L+K(W)+ye+K(We)+rt:pn}function wo(e,t,n,r,o,a,h,g,E,L,W,ye,We,rt,yt,xt){const Lt=dn();let Zt=tr(e,Lt,n,o,h,E);return Zt=Xs(e,Lt+4,W,We,yt)||Zt,hn(7),Zt?t+K(n)+r+K(o)+a+K(h)+g+K(E)+L+K(W)+ye+K(We)+rt+K(yt)+xt:pn}function So(e,t,n,r,o,a,h,g,E,L,W,ye,We,rt,yt,xt,Lt,Zt){const Mt=dn();let tn=tr(e,Mt,n,o,h,E);return tn=tr(e,Mt+4,W,We,yt,Lt)||tn,hn(8),tn?t+K(n)+r+K(o)+a+K(h)+g+K(E)+L+K(W)+ye+K(We)+rt+K(yt)+xt+K(Lt)+Zt:pn}function jl(e,t,n,r,o,a){const h=wt(),g=bo(h,t,n,r);return g!==pn&&Er(Pn(),h,e,g,o,a),jl}function Vl(e,t,n,r,o,a,h,g){const E=wt(),L=Co(E,t,n,r,o,a);return L!==pn&&Er(Pn(),E,e,L,h,g),Vl}function Hl(e,t,n,r,o,a,h,g,E,L){const W=wt(),ye=Eo(W,t,n,r,o,a,h,g);return ye!==pn&&Er(Pn(),W,e,ye,E,L),Hl}function $l(e,t,n,r,o,a,h,g,E,L,W,ye){const We=wt(),rt=Do(We,t,n,r,o,a,h,g,E,L);return rt!==pn&&Er(Pn(),We,e,rt,W,ye),$l}function Ul(e,t,n,r,o,a,h,g,E,L,W,ye,We,rt){const yt=wt(),xt=To(yt,t,n,r,o,a,h,g,E,L,W,ye);return xt!==pn&&Er(Pn(),yt,e,xt,We,rt),Ul}function Wl(e,t,n,r,o,a,h,g,E,L,W,ye,We,rt,yt,xt){const Lt=wt(),Zt=Mo(Lt,t,n,r,o,a,h,g,E,L,W,ye,We,rt);return Zt!==pn&&Er(Pn(),Lt,e,Zt,yt,xt),Wl}function zl(e,t,n,r,o,a,h,g,E,L,W,ye,We,rt,yt,xt,Lt,Zt){const Mt=wt(),tn=wo(Mt,t,n,r,o,a,h,g,E,L,W,ye,We,rt,yt,xt);return tn!==pn&&Er(Pn(),Mt,e,tn,Lt,Zt),zl}function Kl(e,t,n,r,o,a,h,g,E,L,W,ye,We,rt,yt,xt,Lt,Zt,Mt,tn){const Cn=wt(),Fn=So(Cn,t,n,r,o,a,h,g,E,L,W,ye,We,rt,yt,xt,Lt,Zt);return Fn!==pn&&Er(Pn(),Cn,e,Fn,Mt,tn),Kl}function Gl(e,t,n,r){const o=wt(),a=vo(o,t);return a!==pn&&Er(Pn(),o,e,a,n,r),Gl}function ff(e,t,n,r,o,a,h,g){const E=wt(),L=j(),W=e+20,ye=L.firstCreatePass?function eb(e,t,n,r,o,a,h,g,E){const L=t.consts,W=fo(t,e,4,h||null,un(L,g));Cl(t,n,W,un(L,E)),Xi(t,W);const ye=W.tViews=Ks(2,W,r,o,a,t.directiveRegistry,t.pipeRegistry,null,t.schemas,L);return null!==t.queries&&(t.queries.template(t,W),ye.queries=t.queries.embeddedTView(W)),W}(W,L,E,t,n,r,o,a,h):L.data[W];ae(ye,!1);const We=E[11].createComment("");Hs(L,E,We,ye),vi(We,E),Gs(E,E[W]=Nh(We,E,We,ye)),hi(ye)&&vl(L,E,ye),null!=h&&bl(E,ye,g)}function pf(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function mf(e){return Dt(function gt(){return v.lFrame.contextLView}(),20+e)}const gf={\u0275\u0275defineInjectable:qe,\u0275\u0275defineInjector:he,\u0275\u0275inject:si,\u0275\u0275invalidFactoryDep:Fa,resolveForwardRef:O};const nb=b({provide:String,useValue:b});function _f(e){return void 0!==e.useClass}function yf(e){return void 0!==e.useFactory}const sb=ro("Injectable",void 0,void 0,void 0,(e,t)=>function tb(e,t){let n=null,r=null;e.hasOwnProperty(Tt)||Object.defineProperty(e,Tt,{get:()=>(null===n&&(n=ri().compileInjectable(gf,`ng:///${e.name}/\u0275prov.js`,function ob(e,t){const n=t||{providedIn:null},r={name:e.name,type:e,typeArgumentCount:0,providedIn:n.providedIn};return(_f(n)||yf(n))&&void 0!==n.deps&&(r.deps=od(n.deps)),_f(n)?r.useClass=n.useClass:function ib(e){return nb in e}(n)?r.useValue=n.useValue:yf(n)?r.useFactory=n.useFactory:function rb(e){return void 0!==e.useExisting}(n)&&(r.useExisting=n.useExisting),r}(e,t))),n)}),e.hasOwnProperty(Se)||Object.defineProperty(e,Se,{get:()=>{if(null===r){const o=ri();r=o.compileFactory(gf,`ng:///${e.name}/\u0275fac.js`,{name:e.name,type:e,typeArgumentCount:0,deps:Ns(e),target:o.FactoryTarget.Injectable})}return r},configurable:!0})}(e,t));function Ql(e){return e.length>1?" ("+function ab(e){const t=[];for(let n=0;n<e.length;++n){if(t.indexOf(e[n])>-1)return t.push(e[n]),t;t.push(e[n])}return t}(e.slice().reverse()).map(r=>T(r.token)).join(" -> ")+")":""}function Zl(e,t,n,r){const o=[t],a=n(o),h=r?function sy(e,t){const n=`${e} caused by: ${t instanceof Error?t.message:t}`,r=Error(n);return r[Ga]=t,r}(a,r):Error(a);return h.addKey=lb,h.keys=o,h.injectors=[e],h.constructResolvingMessage=n,h[Ga]=r,h}function lb(e,t){this.injectors.push(e),this.keys.push(t),this.message=this.constructResolvingMessage(this.keys)}function vf(e,t){const n=[];for(let r=0,o=t.length;r<o;r++){const a=t[r];n.push(a&&0!=a.length?a.map(T).join(" "):"?")}return Error("Cannot resolve all parameters for '"+T(e)+"'("+n.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+T(e)+"' is decorated with Injectable.")}function pb(e,t){return Error(`Cannot mix multi providers and regular providers, got: ${e} ${t}`)}class Nr{constructor(t,n){if(this.token=t,this.id=n,!t)throw new Error("Token must be defined!");this.displayName=T(this.token)}static get(t){return bf.get(O(t))}static get numberOfKeys(){return bf.numberOfKeys}}class mb{constructor(){this._allKeys=new Map}get(t){if(t instanceof Nr)return t;if(this._allKeys.has(t))return this._allKeys.get(t);const n=new Nr(t,Nr.numberOfKeys);return this._allKeys.set(t,n),n}get numberOfKeys(){return this._allKeys.size}}const bf=new mb;class gb{constructor(t){this.reflectionCapabilities=t}updateCapabilities(t){this.reflectionCapabilities=t}factory(t){return this.reflectionCapabilities.factory(t)}parameters(t){return this.reflectionCapabilities.parameters(t)}annotations(t){return this.reflectionCapabilities.annotations(t)}propMetadata(t){return this.reflectionCapabilities.propMetadata(t)}hasLifecycleHook(t,n){return this.reflectionCapabilities.hasLifecycleHook(t,n)}getter(t){return this.reflectionCapabilities.getter(t)}setter(t){return this.reflectionCapabilities.setter(t)}method(t){return this.reflectionCapabilities.method(t)}importUri(t){return this.reflectionCapabilities.importUri(t)}resourceUri(t){return this.reflectionCapabilities.resourceUri(t)}resolveIdentifier(t,n,r,o){return this.reflectionCapabilities.resolveIdentifier(t,n,r,o)}resolveEnum(t,n){return this.reflectionCapabilities.resolveEnum(t,n)}}const Cf=new gb(new Pa);class Js{constructor(t,n,r){this.key=t,this.optional=n,this.visibility=r}static fromKey(t){return new Js(t,!1,null)}}const _b=[];class Ef{constructor(t,n,r){this.key=t,this.resolvedFactories=n,this.multiProvider=r,this.resolvedFactory=this.resolvedFactories[0]}}class Df{constructor(t,n){this.factory=t,this.dependencies=n}}function yb(e){let t,n;if(e.useClass){const r=O(e.useClass);t=Cf.factory(r),n=Mf(r)}else e.useExisting?(t=r=>r,n=[Js.fromKey(Nr.get(e.useExisting))]):e.useFactory?(t=e.useFactory,n=function Eb(e,t){if(t){const n=t.map(r=>[r]);return t.map(r=>wf(e,r,n))}return Mf(e)}(e.useFactory,e.deps)):(t=()=>e.useValue,n=_b);return new Df(t,n)}function vb(e){return new Ef(Nr.get(e.provide),[yb(e)],e.multi||!1)}function bb(e){const r=function Cb(e,t){for(let n=0;n<e.length;n++){const r=e[n],o=t.get(r.key.id);if(o){if(r.multiProvider!==o.multiProvider)throw pb(o,r);if(r.multiProvider)for(let a=0;a<r.resolvedFactories.length;a++)o.resolvedFactories.push(r.resolvedFactories[a]);else t.set(r.key.id,r)}else{let a;a=r.multiProvider?new Ef(r.key,r.resolvedFactories.slice(),r.multiProvider):r,t.set(r.key.id,a)}}return t}(Tf(e,[]).map(vb),new Map);return Array.from(r.values())}function Tf(e,t){return e.forEach(n=>{if(n instanceof Os)t.push({provide:n,useClass:n});else if(n&&"object"==typeof n&&void 0!==n.provide)t.push(n);else{if(!Array.isArray(n))throw function hb(e){return Error(`Invalid provider - only instances of Provider and Type are allowed, got: ${e}`)}(n);Tf(n,t)}}),t}function Mf(e){const t=Cf.parameters(e);if(!t)return[];if(t.some(n=>null==n))throw vf(e,t);return t.map(n=>wf(e,n,t))}function wf(e,t,n){let r=null,o=!1;if(!Array.isArray(t))return Yl(t instanceof Go?t.token:t,o,null);let a=null;for(let h=0;h<t.length;++h){const g=t[h];g instanceof Os?r=g:g instanceof Go?r=g.token:g instanceof Wr?o=!0:g instanceof ks||g instanceof zr?a=g:g instanceof Yn&&(r=g)}if(r=O(r),null!=r)return Yl(r,o,a);throw vf(e,n)}function Yl(e,t,n){return new Js(Nr.get(e),t,n)}const as={};class Io{static resolve(t){return bb(t)}static resolveAndCreate(t,n){const r=Io.resolve(t);return Io.fromResolvedProviders(r,n)}static fromResolvedProviders(t,n){return new Db(t,n)}}let Db=(()=>{class e{constructor(n,r){this._constructionCounter=0,this._providers=n,this.parent=r||null;const o=n.length;this.keyIds=[],this.objs=[];for(let a=0;a<o;a++)this.keyIds[a]=n[a].key.id,this.objs[a]=as}get(n,r=Vr){return this._getByKey(Nr.get(n),null,r)}resolveAndCreateChild(n){const r=Io.resolve(n);return this.createChildFromResolved(r)}createChildFromResolved(n){const r=new e(n);return r.parent=this,r}resolveAndInstantiate(n){return this.instantiateResolved(Io.resolve([n])[0])}instantiateResolved(n){return this._instantiateProvider(n)}getProviderAtIndex(n){if(n<0||n>=this._providers.length)throw function fb(e){return Error(`Index ${e} is out-of-bounds.`)}(n);return this._providers[n]}_new(n){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw function ub(e,t){return Zl(e,t,function(n){return`Cannot instantiate cyclic dependency!${Ql(n)}`})}(this,n.key);return this._instantiateProvider(n)}_getMaxNumberOfObjects(){return this.objs.length}_instantiateProvider(n){if(n.multiProvider){const r=[];for(let o=0;o<n.resolvedFactories.length;++o)r[o]=this._instantiate(n,n.resolvedFactories[o]);return r}return this._instantiate(n,n.resolvedFactories[0])}_instantiate(n,r){const o=r.factory;let a,h;try{a=r.dependencies.map(g=>this._getByReflectiveDependency(g))}catch(g){throw g.addKey&&g.addKey(this,n.key),g}try{h=o(...a)}catch(g){throw function db(e,t,n,r){return Zl(e,r,function(o){const a=T(o[0].token);return`${t.message}: Error during instantiation of ${a}!${Ql(o)}.`},t)}(this,g,0,n.key)}return h}_getByReflectiveDependency(n){return this._getByKey(n.key,n.visibility,n.optional?null:Vr)}_getByKey(n,r,o){return n===e.INJECTOR_KEY?this:r instanceof ks?this._getByKeySelf(n,o):this._getByKeyDefault(n,o,r)}_getObjByKeyId(n){for(let r=0;r<this.keyIds.length;r++)if(this.keyIds[r]===n)return this.objs[r]===as&&(this.objs[r]=this._new(this._providers[r])),this.objs[r];return as}_throwOrNull(n,r){if(r!==Vr)return r;throw function cb(e,t){return Zl(e,t,function(n){return`No provider for ${T(n[0].token)}!${Ql(n)}`})}(this,n)}_getByKeySelf(n,r){const o=this._getObjByKeyId(n.id);return o!==as?o:this._throwOrNull(n,r)}_getByKeyDefault(n,r,o){let a;for(a=o instanceof zr?this.parent:this;a instanceof e;){const h=a,g=h._getObjByKeyId(n.id);if(g!==as)return g;a=h.parent}return null!==a?a.get(n.token,r):this._throwOrNull(n,r)}get displayName(){return`ReflectiveInjector(providers: [${function Tb(e,t){const n=[];for(let r=0;r<e._providers.length;++r)n[r]=t(e.getProviderAtIndex(r));return n}(this,r=>' "'+r.key.displayName+'" ').join(", ")}])`}toString(){return this.displayName}}return e.INJECTOR_KEY=Nr.get(Vi),e})();function ls(e,t=k.Default){const n=wt();return null===n?si(e,t):zu(f(),n,O(e),t)}function Sf(){throw new Error("invalid")}function Xl(e,t,n){const r=wt();return bi(r,nn(),t)&&ji(j(),Pn(),r,e,t,r[11],n,!1),Xl}function Jl(e,t,n,r,o){const h=o?"class":"style";$h(e,n,t.inputs[h],h,r)}function ql(e,t,n,r){const o=wt(),a=j(),h=20+e,g=o[11],E=o[h]=el(g,t,function ba(){return v.lFrame.currentNamespace}()),L=a.firstCreatePass?function Mb(e,t,n,r,o,a,h){const g=t.consts,L=fo(t,e,2,o,un(g,a));return Cl(t,n,L,un(g,h)),null!==L.attrs&&Qs(L,L.attrs,!1),null!==L.mergedAttrs&&Qs(L,L.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,L),L}(h,a,o,0,t,n,r):a.data[h];ae(L,!0);const W=L.mergedAttrs;null!==W&&Ms(g,E,W);const ye=L.classes;null!==ye&&sl(g,E,ye);const We=L.styles;null!==We&&rh(g,E,We),64!=(64&L.flags)&&Hs(a,o,E,L),0===function ut(){return v.lFrame.elementDepthCount}()&&vi(E,o),function $t(){v.lFrame.elementDepthCount++}(),hi(L)&&(vl(a,o,L),Th(a,L,o)),null!==r&&bl(o,L)}function ec(){let e=f();Fe()?je():(e=e.parent,ae(e,!1));const t=e;!function An(){v.lFrame.elementDepthCount--}();const n=j();n.firstCreatePass&&(Xi(n,e),Ci(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function Qg(e){return 0!=(16&e.flags)}(t)&&Jl(n,t,wt(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function Zg(e){return 0!=(32&e.flags)}(t)&&Jl(n,t,wt(),t.stylesWithoutHost,!1)}function If(e,t,n,r){ql(e,t,n,r),ec()}function tc(e,t,n){const r=wt(),o=j(),a=e+20,h=o.firstCreatePass?function wb(e,t,n,r,o){const a=t.consts,h=un(a,r),g=fo(t,e,8,"ng-container",h);return null!==h&&Qs(g,h,!0),Cl(t,n,g,un(a,o)),null!==t.queries&&t.queries.elementStart(t,g),g}(a,o,r,t,n):o.data[a];ae(h,!0);const g=r[a]=r[11].createComment("");Hs(o,r,g,h),vi(g,r),hi(h)&&(vl(o,r,h),Th(o,h,r)),null!=n&&bl(r,h)}function nc(){let e=f();const t=j();Fe()?je():(e=e.parent,ae(e,!1)),t.firstCreatePass&&(Xi(t,e),Ci(e)&&t.queries.elementEnd(e))}function Af(e,t,n){tc(e,t,n),nc()}function Pf(){return wt()}function ic(e){return!!e&&"function"==typeof e.then}function Of(e){return!!e&&"function"==typeof e.subscribe}const xf=Of;function rc(e,t,n,r){const o=wt(),a=j(),h=f();return Rf(a,o,o[11],h,e,t,!!n,r),rc}function oc(e,t){const n=f(),r=wt(),o=j();return Rf(o,r,Vh(Ne(o.data),n,r),n,e,t,!1),oc}function Rf(e,t,n,r,o,a,h,g){const E=hi(r),W=e.firstCreatePass&&jh(e),ye=t[8],We=Bh(t);let rt=!0;if(3&r.type||g){const Lt=te(r,t),Zt=g?g(Lt):Lt,Mt=We.length,tn=g?Cn=>g(Ln(Cn[r.index])):r.index;if(Rn(n)){let Cn=null;if(!g&&E&&(Cn=function Sb(e,t,n,r){const o=e.cleanup;if(null!=o)for(let a=0;a<o.length-1;a+=2){const h=o[a];if(h===n&&o[a+1]===r){const g=t[7],E=o[a+2];return g.length>E?g[E]:null}"string"==typeof h&&(a+=2)}return null}(e,t,o,r.index)),null!==Cn)(Cn.__ngLastListenerFn__||Cn).__ngNextListenerFn__=a,Cn.__ngLastListenerFn__=a,rt=!1;else{a=sc(r,t,ye,a,!1);const Fn=n.listen(Zt,o,a);We.push(a,Fn),W&&W.push(o,tn,Mt,Mt+1)}}else a=sc(r,t,ye,a,!0),Zt.addEventListener(o,a,h),We.push(a),W&&W.push(o,tn,Mt,h)}else a=sc(r,t,ye,a,!1);const yt=r.outputs;let xt;if(rt&&null!==yt&&(xt=yt[o])){const Lt=xt.length;if(Lt)for(let Zt=0;Zt<Lt;Zt+=2){const $i=t[xt[Zt]][xt[Zt+1]].subscribe(a),Xr=We.length;We.push(a,$i),W&&W.push(o,r.index,Xr,-(Xr+1))}}}function Ff(e,t,n,r){try{return ti(6,t,n),!1!==n(r)}catch(o){return Hh(e,o),!1}finally{ti(7,t,n)}}function sc(e,t,n,r,o){return function a(h){if(h===Function)return r;const g=2&e.flags?Nt(e.index,t):t;0==(32&t[2])&&Tl(g);let E=Ff(t,n,r,h),L=a.__ngNextListenerFn__;for(;L;)E=Ff(t,n,L,h)&&E,L=L.__ngNextListenerFn__;return o&&!1===E&&(h.preventDefault(),h.returnValue=!1),E}}function kf(e=1){return function kt(e){return(v.lFrame.contextLView=function Jt(e,t){for(;e>0;)t=t[15],e--;return t}(e,v.lFrame.contextLView))[8]}(e)}function Ib(e,t){let n=null;const r=function ky(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e);for(let o=0;o<t.length;o++){const a=t[o];if("*"!==a){if(null===r?lh(e,a,!0):By(r,a))return o}else n=o}return n}function Nf(e){const t=wt()[16][6];if(!t.projection){const r=t.projection=Wo(e?e.length:1,null),o=r.slice();let a=t.child;for(;null!==a;){const h=e?Ib(a,e):0;null!==h&&(o[h]?o[h].projectionNext=a:r[h]=a,o[h]=a),a=a.next}}}function Lf(e,t=0,n){const r=wt(),o=j(),a=fo(o,20+e,16,null,n||null);null===a.projection&&(a.projection=t),je(),64!=(64&a.flags)&&function Iy(e,t,n){ih(t[11],0,t,n,Gd(e,n,t),Xd(n.parent||t[6],n,t))}(o,r,a)}function ac(e,t,n){return qs(e,"",t,"",n),ac}function qs(e,t,n,r,o){const a=wt(),h=bo(a,t,n,r);return h!==pn&&ji(j(),Pn(),a,e,h,a[11],o,!1),qs}function lc(e,t,n,r,o,a,h){const g=wt(),E=Co(g,t,n,r,o,a);return E!==pn&&ji(j(),Pn(),g,e,E,g[11],h,!1),lc}function cc(e,t,n,r,o,a,h,g,E){const L=wt(),W=Eo(L,t,n,r,o,a,h,g);return W!==pn&&ji(j(),Pn(),L,e,W,L[11],E,!1),cc}function uc(e,t,n,r,o,a,h,g,E,L,W){const ye=wt(),We=Do(ye,t,n,r,o,a,h,g,E,L);return We!==pn&&ji(j(),Pn(),ye,e,We,ye[11],W,!1),uc}function dc(e,t,n,r,o,a,h,g,E,L,W,ye,We){const rt=wt(),yt=To(rt,t,n,r,o,a,h,g,E,L,W,ye);return yt!==pn&&ji(j(),Pn(),rt,e,yt,rt[11],We,!1),dc}function hc(e,t,n,r,o,a,h,g,E,L,W,ye,We,rt,yt){const xt=wt(),Lt=Mo(xt,t,n,r,o,a,h,g,E,L,W,ye,We,rt);return Lt!==pn&&ji(j(),Pn(),xt,e,Lt,xt[11],yt,!1),hc}function fc(e,t,n,r,o,a,h,g,E,L,W,ye,We,rt,yt,xt,Lt){const Zt=wt(),Mt=wo(Zt,t,n,r,o,a,h,g,E,L,W,ye,We,rt,yt,xt);return Mt!==pn&&ji(j(),Pn(),Zt,e,Mt,Zt[11],Lt,!1),fc}function pc(e,t,n,r,o,a,h,g,E,L,W,ye,We,rt,yt,xt,Lt,Zt,Mt){const tn=wt(),Cn=So(tn,t,n,r,o,a,h,g,E,L,W,ye,We,rt,yt,xt,Lt,Zt);return Cn!==pn&&ji(j(),Pn(),tn,e,Cn,tn[11],Mt,!1),pc}function mc(e,t,n){const r=wt(),o=vo(r,t);return o!==pn&&ji(j(),Pn(),r,e,o,r[11],n,!1),mc}function Bf(e,t,n,r,o){const a=e[n+1],h=null===t;let g=r?ur(a):Fr(a),E=!1;for(;0!==g&&(!1===E||h);){const W=e[g+1];Ob(e[g],t)&&(E=!0,e[g+1]=r?cl(W):al(W)),g=r?ur(W):Fr(W)}E&&(e[n+1]=r?al(a):cl(a))}function Ob(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&so(e,t)>=0}const oi={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function jf(e){return e.substring(oi.key,oi.keyEnd)}function xb(e){return e.substring(oi.value,oi.valueEnd)}function Vf(e,t){const n=oi.textEnd;return n===t?-1:(t=oi.keyEnd=function kb(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,oi.key=t,n),Ao(e,t,n))}function Hf(e,t){const n=oi.textEnd;let r=oi.key=Ao(e,t,n);return n===r?-1:(r=oi.keyEnd=function Nb(e,t,n){let r;for(;t<n&&(45===(r=e.charCodeAt(t))||95===r||(-33&r)>=65&&(-33&r)<=90||r>=48&&r<=57);)t++;return t}(e,r,n),r=Uf(e,r,n),r=oi.value=Ao(e,r,n),r=oi.valueEnd=function Lb(e,t,n){let r=-1,o=-1,a=-1,h=t,g=h;for(;h<n;){const E=e.charCodeAt(h++);if(59===E)return g;34===E||39===E?g=h=Wf(e,E,h,n):t===h-4&&85===a&&82===o&&76===r&&40===E?g=h=Wf(e,41,h,n):E>32&&(g=h),a=o,o=r,r=-33&E}return g}(e,r,n),Uf(e,r,n))}function $f(e){oi.key=0,oi.keyEnd=0,oi.value=0,oi.valueEnd=0,oi.textEnd=e.length}function Ao(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function Uf(e,t,n,r){return(t=Ao(e,t,n))<n&&t++,t}function Wf(e,t,n,r){let o=-1,a=n;for(;a<r;){const h=e.charCodeAt(a++);if(h==t&&92!==o)return a;o=92==h&&92===o?0:h}throw new Error}function gc(e,t,n){return hr(e,t,n,!1),gc}function _c(e,t){return hr(e,t,null,!0),_c}function dr(e){fr(Qf,Bb,e,!1)}function Bb(e,t){for(let n=function Fb(e){return $f(e),Hf(e,Ao(e,0,oi.textEnd))}(t);n>=0;n=Hf(t,n))Qf(e,jf(t),xb(t))}function zf(e){fr(Bi,Tr,e,!0)}function Tr(e,t){for(let n=function Rb(e){return $f(e),Vf(e,Ao(e,0,oi.textEnd))}(t);n>=0;n=Vf(t,n))Bi(e,jf(t),!0)}function hr(e,t,n,r){const o=wt(),a=j(),h=hn(2);a.firstUpdatePass&&Gf(a,e,h,r),t!==pn&&bi(o,h,t)&&Zf(a,a.data[sn()],o,o[11],e,o[h+1]=function zb(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=T(Rr(e)))),e}(t,n),r,h)}function fr(e,t,n,r){const o=j(),a=hn(2);o.firstUpdatePass&&Gf(o,null,a,r);const h=wt();if(n!==pn&&bi(h,a,n)){const g=o.data[sn()];if(Xf(g,r)&&!Kf(o,a)){let E=r?g.classesWithoutHost:g.stylesWithoutHost;null!==E&&(n=p(E,n||"")),Jl(o,g,h,n,r)}else!function Wb(e,t,n,r,o,a,h,g){o===pn&&(o=Ot);let E=0,L=0,W=0<o.length?o[0]:null,ye=0<a.length?a[0]:null;for(;null!==W||null!==ye;){const We=E<o.length?o[E+1]:void 0,rt=L<a.length?a[L+1]:void 0;let xt,yt=null;W===ye?(E+=2,L+=2,We!==rt&&(yt=ye,xt=rt)):null===ye||null!==W&&W<ye?(E+=2,yt=W):(L+=2,yt=ye,xt=rt),null!==yt&&Zf(e,t,n,r,yt,xt,h,g),W=E<o.length?o[E]:null,ye=L<a.length?a[L]:null}}(o,g,h,h[11],h[a+1],h[a+1]=function Ub(e,t,n){if(null==n||""===n)return Ot;const r=[],o=Rr(n);if(Array.isArray(o))for(let a=0;a<o.length;a++)e(r,o[a],!0);else if("object"==typeof o)for(const a in o)o.hasOwnProperty(a)&&e(r,a,o[a]);else"string"==typeof o&&t(r,o);return r}(e,t,n),r,a)}}function Kf(e,t){return t>=e.expandoStartIndex}function Gf(e,t,n,r){const o=e.data;if(null===o[n+1]){const a=o[sn()],h=Kf(e,n);Xf(a,r)&&null===t&&!h&&(t=!1),t=function jb(e,t,n,r){const o=Ne(e);let a=r?t.residualClasses:t.residualStyles;if(null===o)0===(r?t.classBindings:t.styleBindings)&&(n=cs(n=yc(null,e,t,n,r),t.attrs,r),a=null);else{const h=t.directiveStylingLast;if(-1===h||e[h]!==o)if(n=yc(o,e,t,n,r),null===a){let E=function Vb(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==Fr(r))return e[ur(r)]}(e,t,r);void 0!==E&&Array.isArray(E)&&(E=yc(null,e,t,E[1],r),E=cs(E,t.attrs,r),function Hb(e,t,n,r){e[ur(n?t.classBindings:t.styleBindings)]=r}(e,t,r,E))}else a=function $b(e,t,n){let r;const o=t.directiveEnd;for(let a=1+t.directiveStylingLast;a<o;a++)r=cs(r,e[a].hostAttrs,n);return cs(r,t.attrs,n)}(e,t,r)}return void 0!==a&&(r?t.residualClasses=a:t.residualStyles=a),n}(o,a,t,r),function Ab(e,t,n,r,o,a){let h=a?t.classBindings:t.styleBindings,g=ur(h),E=Fr(h);e[r]=n;let W,L=!1;if(Array.isArray(n)){const ye=n;W=ye[1],(null===W||so(ye,W)>0)&&(L=!0)}else W=n;if(o)if(0!==E){const We=ur(e[g+1]);e[r+1]=Us(We,g),0!==We&&(e[We+1]=ll(e[We+1],r)),e[g+1]=function $y(e,t){return 131071&e|t<<17}(e[g+1],r)}else e[r+1]=Us(g,0),0!==g&&(e[g+1]=ll(e[g+1],r)),g=r;else e[r+1]=Us(E,0),0===g?g=r:e[E+1]=ll(e[E+1],r),E=r;L&&(e[r+1]=al(e[r+1])),Bf(e,W,r,!0),Bf(e,W,r,!1),function Pb(e,t,n,r,o){const a=o?e.residualClasses:e.residualStyles;null!=a&&"string"==typeof t&&so(a,t)>=0&&(n[r+1]=cl(n[r+1]))}(t,W,e,r,a),h=Us(g,E),a?t.classBindings=h:t.styleBindings=h}(o,a,t,n,h,r)}}function yc(e,t,n,r,o){let a=null;const h=n.directiveEnd;let g=n.directiveStylingLast;for(-1===g?g=n.directiveStart:g++;g<h&&(a=t[g],r=cs(r,a.hostAttrs,o),a!==e);)g++;return null!==e&&(n.directiveStylingLast=g),r}function cs(e,t,n){const r=n?1:2;let o=-1;if(null!==t)for(let a=0;a<t.length;a++){const h=t[a];"number"==typeof h?o=h:o===r&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),Bi(e,h,!!n||t[++a]))}return void 0===e?null:e}function Qf(e,t,n){Bi(e,t,Rr(n))}function Zf(e,t,n,r,o,a,h,g){if(!(3&t.type))return;const E=e.data,L=E[g+1];ea(function ph(e){return 1==(1&e)}(L)?Yf(E,t,n,o,Fr(L),h):void 0)||(ea(a)||function fh(e){return 2==(2&e)}(L)&&(a=Yf(E,null,n,o,g,h)),function Py(e,t,n,r,o){const a=Rn(e);if(t)o?a?e.addClass(n,r):n.classList.add(r):a?e.removeClass(n,r):n.classList.remove(r);else{let h=-1===r.indexOf("-")?void 0:Cr.DashCase;if(null==o)a?e.removeStyle(n,r,h):n.style.removeProperty(r);else{const g="string"==typeof o&&o.endsWith("!important");g&&(o=o.slice(0,-10),h|=Cr.Important),a?e.setStyle(n,r,o,h):n.style.setProperty(r,o,g?"important":"")}}}(r,h,R(sn(),n),o,a))}function Yf(e,t,n,r,o,a){const h=null===t;let g;for(;o>0;){const E=e[o],L=Array.isArray(E),W=L?E[1]:E,ye=null===W;let We=n[o+1];We===pn&&(We=ye?Ot:void 0);let rt=ye?Aa(We,r):W===r?We:void 0;if(L&&!ea(rt)&&(rt=Aa(E,r)),ea(rt)&&(g=rt,h))return g;const yt=e[o+1];o=h?ur(yt):Fr(yt)}if(null!==t){let E=a?t.residualClasses:t.residualStyles;null!=E&&(g=Aa(E,r))}return g}function ea(e){return void 0!==e}function Xf(e,t){return 0!=(e.flags&(t?16:32))}function Jf(e,t=""){const n=wt(),r=j(),o=e+20,a=r.firstCreatePass?fo(r,o,1,t,null):r.data[o],h=n[o]=qa(n[11],t);Hs(r,n,h,a),ae(a,!1)}function vc(e){return ta("",e,""),vc}function ta(e,t,n){const r=wt(),o=bo(r,e,t,n);return o!==pn&&kr(r,sn(),o),ta}function bc(e,t,n,r,o){const a=wt(),h=Co(a,e,t,n,r,o);return h!==pn&&kr(a,sn(),h),bc}function Cc(e,t,n,r,o,a,h){const g=wt(),E=Eo(g,e,t,n,r,o,a,h);return E!==pn&&kr(g,sn(),E),Cc}function Ec(e,t,n,r,o,a,h,g,E){const L=wt(),W=Do(L,e,t,n,r,o,a,h,g,E);return W!==pn&&kr(L,sn(),W),Ec}function Dc(e,t,n,r,o,a,h,g,E,L,W){const ye=wt(),We=To(ye,e,t,n,r,o,a,h,g,E,L,W);return We!==pn&&kr(ye,sn(),We),Dc}function Tc(e,t,n,r,o,a,h,g,E,L,W,ye,We){const rt=wt(),yt=Mo(rt,e,t,n,r,o,a,h,g,E,L,W,ye,We);return yt!==pn&&kr(rt,sn(),yt),Tc}function Mc(e,t,n,r,o,a,h,g,E,L,W,ye,We,rt,yt){const xt=wt(),Lt=wo(xt,e,t,n,r,o,a,h,g,E,L,W,ye,We,rt,yt);return Lt!==pn&&kr(xt,sn(),Lt),Mc}function wc(e,t,n,r,o,a,h,g,E,L,W,ye,We,rt,yt,xt,Lt){const Zt=wt(),Mt=So(Zt,e,t,n,r,o,a,h,g,E,L,W,ye,We,rt,yt,xt,Lt);return Mt!==pn&&kr(Zt,sn(),Mt),wc}function Sc(e){const t=wt(),n=vo(t,e);return n!==pn&&kr(t,sn(),n),Sc}function qf(e,t,n){fr(Bi,Tr,bo(wt(),e,t,n),!0)}function ep(e,t,n,r,o){fr(Bi,Tr,Co(wt(),e,t,n,r,o),!0)}function tp(e,t,n,r,o,a,h){fr(Bi,Tr,Eo(wt(),e,t,n,r,o,a,h),!0)}function np(e,t,n,r,o,a,h,g,E){fr(Bi,Tr,Do(wt(),e,t,n,r,o,a,h,g,E),!0)}function ip(e,t,n,r,o,a,h,g,E,L,W){fr(Bi,Tr,To(wt(),e,t,n,r,o,a,h,g,E,L,W),!0)}function rp(e,t,n,r,o,a,h,g,E,L,W,ye,We){fr(Bi,Tr,Mo(wt(),e,t,n,r,o,a,h,g,E,L,W,ye,We),!0)}function op(e,t,n,r,o,a,h,g,E,L,W,ye,We,rt,yt){fr(Bi,Tr,wo(wt(),e,t,n,r,o,a,h,g,E,L,W,ye,We,rt,yt),!0)}function sp(e,t,n,r,o,a,h,g,E,L,W,ye,We,rt,yt,xt,Lt){fr(Bi,Tr,So(wt(),e,t,n,r,o,a,h,g,E,L,W,ye,We,rt,yt,xt,Lt),!0)}function ap(e){fr(Bi,Tr,vo(wt(),e),!0)}function lp(e,t,n){dr(bo(wt(),e,t,n))}function cp(e,t,n,r,o){dr(Co(wt(),e,t,n,r,o))}function up(e,t,n,r,o,a,h){dr(Eo(wt(),e,t,n,r,o,a,h))}function dp(e,t,n,r,o,a,h,g,E){dr(Do(wt(),e,t,n,r,o,a,h,g,E))}function hp(e,t,n,r,o,a,h,g,E,L,W){dr(To(wt(),e,t,n,r,o,a,h,g,E,L,W))}function fp(e,t,n,r,o,a,h,g,E,L,W,ye,We){dr(Mo(wt(),e,t,n,r,o,a,h,g,E,L,W,ye,We))}function pp(e,t,n,r,o,a,h,g,E,L,W,ye,We,rt,yt){dr(wo(wt(),e,t,n,r,o,a,h,g,E,L,W,ye,We,rt,yt))}function mp(e,t,n,r,o,a,h,g,E,L,W,ye,We,rt,yt,xt,Lt){dr(So(wt(),e,t,n,r,o,a,h,g,E,L,W,ye,We,rt,yt,xt,Lt))}function gp(e){dr(vo(wt(),e))}function Ic(e,t,n,r,o){return hr(e,bo(wt(),t,n,r),o,!1),Ic}function Ac(e,t,n,r,o,a,h){return hr(e,Co(wt(),t,n,r,o,a),h,!1),Ac}function Pc(e,t,n,r,o,a,h,g,E){return hr(e,Eo(wt(),t,n,r,o,a,h,g),E,!1),Pc}function Oc(e,t,n,r,o,a,h,g,E,L,W){return hr(e,Do(wt(),t,n,r,o,a,h,g,E,L),W,!1),Oc}function xc(e,t,n,r,o,a,h,g,E,L,W,ye,We){return hr(e,To(wt(),t,n,r,o,a,h,g,E,L,W,ye),We,!1),xc}function Rc(e,t,n,r,o,a,h,g,E,L,W,ye,We,rt,yt){return hr(e,Mo(wt(),t,n,r,o,a,h,g,E,L,W,ye,We,rt),yt,!1),Rc}function Fc(e,t,n,r,o,a,h,g,E,L,W,ye,We,rt,yt,xt,Lt){return hr(e,wo(wt(),t,n,r,o,a,h,g,E,L,W,ye,We,rt,yt,xt),Lt,!1),Fc}function kc(e,t,n,r,o,a,h,g,E,L,W,ye,We,rt,yt,xt,Lt,Zt,Mt){return hr(e,So(wt(),t,n,r,o,a,h,g,E,L,W,ye,We,rt,yt,xt,Lt,Zt),Mt,!1),kc}function Nc(e,t,n){return hr(e,vo(wt(),t),n,!1),Nc}function Lc(e,t,n){const r=wt();return bi(r,nn(),t)&&ji(j(),Pn(),r,e,t,r[11],n,!0),Lc}function Bc(e,t,n){const r=wt();if(bi(r,nn(),t)){const a=j(),h=Pn();ji(a,h,r,e,t,Vh(Ne(a.data),h,r),n,!0)}return Bc}const Zr=void 0;var Gb=["en",[["a","p"],["AM","PM"],Zr],[["AM","PM"],Zr,Zr],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Zr,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Zr,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Zr,"{1} 'at' {0}",Zr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Kb(e){const n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}];let Po={};function Qb(e,t,n){"string"!=typeof t&&(n=t,t=e[rn.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),Po[t]=e,n&&(Po[t][rn.ExtraData]=n)}function jc(e){const t=function Xb(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=yp(t);if(n)return n;const r=t.split("-")[0];if(n=yp(r),n)return n;if("en"===r)return Gb;throw new Error(`Missing locale data for the locale "${e}".`)}function Zb(e){return jc(e)[rn.CurrencyCode]||null}function _p(e){return jc(e)[rn.PluralCase]}function yp(e){return e in Po||(Po[e]=Kt.ng&&Kt.ng.common&&Kt.ng.common.locales&&Kt.ng.common.locales[e]),Po[e]}function Yb(){Po={}}var rn=(()=>((rn=rn||{})[rn.LocaleId=0]="LocaleId",rn[rn.DayPeriodsFormat=1]="DayPeriodsFormat",rn[rn.DayPeriodsStandalone=2]="DayPeriodsStandalone",rn[rn.DaysFormat=3]="DaysFormat",rn[rn.DaysStandalone=4]="DaysStandalone",rn[rn.MonthsFormat=5]="MonthsFormat",rn[rn.MonthsStandalone=6]="MonthsStandalone",rn[rn.Eras=7]="Eras",rn[rn.FirstDayOfWeek=8]="FirstDayOfWeek",rn[rn.WeekendRange=9]="WeekendRange",rn[rn.DateFormat=10]="DateFormat",rn[rn.TimeFormat=11]="TimeFormat",rn[rn.DateTimeFormat=12]="DateTimeFormat",rn[rn.NumberSymbols=13]="NumberSymbols",rn[rn.NumberFormats=14]="NumberFormats",rn[rn.CurrencyCode=15]="CurrencyCode",rn[rn.CurrencySymbol=16]="CurrencySymbol",rn[rn.CurrencyName=17]="CurrencyName",rn[rn.Currencies=18]="Currencies",rn[rn.Directionality=19]="Directionality",rn[rn.PluralCase=20]="PluralCase",rn[rn.ExtraData=21]="ExtraData",rn))();const Jb=["zero","one","two","few","many"],us="en-US",na={marker:"element"},ia={marker:"ICU"};var Xn=(()=>((Xn=Xn||{})[Xn.SHIFT=2]="SHIFT",Xn[Xn.APPEND_EAGERLY=1]="APPEND_EAGERLY",Xn[Xn.COMMENT=2]="COMMENT",Xn))();let vp=us;function bp(e){(function Te(e,t){null==e&&Ge(t,e,null,"!=")})(e,"Expected localeId to be defined"),"string"==typeof e&&(vp=e.toLowerCase().replace(/_/g,"-"))}function Cp(e,t,n){const r=t.insertBeforeIndex,o=Array.isArray(r)?r[0]:r;return null===o?Jd(e,0,n):Ln(n[o])}function Ep(e,t,n,r,o){const a=t.insertBeforeIndex;if(Array.isArray(a)){let h=r,g=null;if(3&t.type||(g=h,h=o),null!==h&&0==(2&t.flags))for(let E=1;E<a.length;E++)Gr(e,h,n[a[E]],g,!1)}}function Dp(e,t){if(e.push(t),e.length>1)for(let n=e.length-2;n>=0;n--){const r=e[n];Tp(r)||nC(r,t)&&null===iC(r)&&rC(r,t.index)}}function Tp(e){return!(64&e.type)}function nC(e,t){return Tp(t)||e.index>t.index}function iC(e){const t=e.insertBeforeIndex;return Array.isArray(t)?t[0]:t}function rC(e,t){const n=e.insertBeforeIndex;Array.isArray(n)?n[0]=t:(eh(Cp,Ep),e.insertBeforeIndex=t)}function ds(e,t){const n=e.data[t];return null===n||"string"==typeof n?null:n.hasOwnProperty("currentCaseLViewIndex")?n:n.value}function aC(e,t,n){const r=yl(e,n,64,null,null);return Dp(t,r),r}function ra(e,t){const n=t[e.currentCaseLViewIndex];return null===n?n:n<0?~n:n}function Mp(e){return e>>>17}function wp(e){return(131070&e)>>>1}let hs=0,fs=0;function Ip(e,t,n,r){const o=n[11];let h,a=null;for(let g=0;g<t.length;g++){const E=t[g];if("string"==typeof E){const L=t[++g];null===n[L]&&(n[L]=qa(o,E))}else if("number"==typeof E)switch(1&E){case 0:const L=Mp(E);let W,ye;if(null===a&&(a=L,h=Vs(o,r)),L===a?(W=r,ye=h):(W=null,ye=Ln(n[L])),null!==ye){const xt=wp(E);Gr(o,ye,n[xt],W,!1);const Zt=ds(e,xt);if(null!==Zt&&"object"==typeof Zt){const Mt=ra(Zt,n);null!==Mt&&Ip(e,Zt.create[Mt],n,n[Zt.anchorIdx])}}break;case 1:const rt=t[++g],yt=t[++g];El(o,R(E>>>1,n),null,null,rt,yt,null);break;default:throw new Error(`Unable to determine the type of mutate operation for "${E}"`)}else switch(E){case ia:const L=t[++g],W=t[++g];null===n[W]&&vi(n[W]=_y(o,L),n);break;case na:const ye=t[++g],We=t[++g];null===n[We]&&vi(n[We]=el(o,ye,null),n)}}}function Ap(e,t,n,r,o){for(let a=0;a<n.length;a++){const h=n[a],g=n[++a];if(h&o){let E="";for(let L=a+1;L<=a+g;L++){const W=n[L];if("string"==typeof W)E+=W;else if("number"==typeof W)if(W<0)E+=K(t[r-W]);else{const ye=W>>>2;switch(3&W){case 1:const We=n[++L],rt=n[++L],yt=e.data[ye];"string"==typeof yt?El(t[11],t[ye],null,yt,We,E,rt):ji(e,yt,t,We,E,t[11],rt,!1);break;case 0:const xt=t[ye];null!==xt&&Wd(t[11],xt,E);break;case 2:hC(e,ds(e,ye),t,E);break;case 3:Pp(e,ds(e,ye),r,t)}}}}else{const E=n[a+1];if(E>0&&3==(3&E)){const W=ds(e,E>>>2);t[W.currentCaseLViewIndex]<0&&Pp(e,W,r,t)}}a+=g}}function Pp(e,t,n,r){let o=r[t.currentCaseLViewIndex];if(null!==o){let a=hs;o<0&&(o=r[t.currentCaseLViewIndex]=~o,a=-1),Ap(e,r,t.update[o],n,a)}}function hC(e,t,n,r){const o=function fC(e,t){let n=e.cases.indexOf(t);if(-1===n)switch(e.type){case 1:{const r=function qb(e,t){const n=_p(t)(parseInt(e,10)),r=Jb[n];return void 0!==r?r:"other"}(t,function tC(){return vp}());n=e.cases.indexOf(r),-1===n&&"other"!==r&&(n=e.cases.indexOf("other"));break}case 0:n=e.cases.indexOf("other")}return-1===n?null:n}(t,r);if(ra(t,n)!==o&&(Op(e,t,n),n[t.currentCaseLViewIndex]=null===o?null:~o,null!==o)){const h=n[t.anchorIdx];h&&Ip(e,t.create[o],n,h)}}function Op(e,t,n){let r=ra(t,n);if(null!==r){const o=t.remove[r];for(let a=0;a<o.length;a++){const h=o[a];if(h>0){const g=R(h,n);null!==g&&nh(n[11],g)}else Op(e,ds(e,~h),n)}}}function pC(){const e=[];let n,r,t=-1;function a(g,E){t=0;const L=ra(g,E);r=null!==L?g.remove[L]:Ot}function h(){if(t<r.length){const g=r[t++];return g>0?n[g]:(e.push(t,r),a(n[1].data[~g],n),h())}return 0===e.length?null:(r=e.pop(),t=e.pop(),h())}return function o(g,E){for(n=E;e.length;)e.pop();return a(g.value,E),h}}const oa=/\ufffd(\d+):?\d*\ufffd/gi,mC=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,gC=/\ufffd(\d+)\ufffd/,Rp=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,_C=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,yC=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,vC=/\uE500/g;function Fp(e,t,n,r,o,a,h){const g=po(e,r,1,null);let E=g<<Xn.SHIFT,L=V();t===L&&(L=null),null===L&&(E|=Xn.APPEND_EAGERLY),h&&(E|=Xn.COMMENT,function gy(e){void 0===Za&&(Za=e())}(pC)),o.push(E,null===a?"":a);const W=yl(e,g,h?32:1,null===a?"":a,null);Dp(n,W);const ye=W.index;return ae(W,!1),null!==L&&t!==L&&function sC(e,t){let n=e.insertBeforeIndex;null===n?(eh(Cp,Ep),n=e.insertBeforeIndex=[null,t]):(function X(e,t,n){e!=t&&Ge(n,e,t,"==")}(Array.isArray(n),!0,"Expecting array here"),n.push(t))}(L,ye),W}function EC(e,t,n,r,o,a,h){const g=h.match(oa),E=Fp(e,t,n,a,r,g?null:h,!1);g&&Oo(o,h,E.index,null,0,null)}function Oo(e,t,n,r,o,a){const h=e.length,g=h+1;e.push(null,null);const E=h+2,L=t.split(oa);let W=0;for(let ye=0;ye<L.length;ye++){const We=L[ye];if(1&ye){const rt=o+parseInt(We,10);e.push(-1-rt),W|=kp(rt)}else""!==We&&e.push(We)}return e.push(n<<2|(r?1:0)),r&&e.push(r,a),e[h]=W,e[g]=e.length-E,W}function TC(e){let t=0;for(let n=0;n<e.length;n++){const r=e[n];"number"==typeof r&&r<0&&t++}return t}function kp(e){return 1<<Math.min(e,31)}function Np(e){let t,a,n="",r=0,o=!1;for(;null!==(t=_C.exec(e));)o?t[0]===`\ufffd/*${a}\ufffd`&&(r=t.index,o=!1):(n+=e.substring(r,t.index+t[0].length),a=t[1],o=!0);return n+=e.substr(r),n}function Lp(e,t,n,r,o,a){let h=0;const g={type:o.type,currentCaseLViewIndex:po(e,t,1,null),anchorIdx:a,cases:[],create:[],remove:[],update:[]};(function PC(e,t,n){e.push(kp(t.mainBinding),2,-1-t.mainBinding,n<<2|2)})(n,o,a),function oC(e,t,n){const r=e.data[t];null===r?e.data[t]=n:r.value=n}(e,a,g);const E=o.values;for(let L=0;L<E.length;L++){const W=E[L],ye=[];for(let We=0;We<W.length;We++){const rt=W[We];if("string"!=typeof rt){const yt=ye.push(rt)-1;W[We]=`\x3c!--\ufffd${yt}\ufffd--\x3e`}}h=IC(e,g,t,n,r,o.cases[L],W.join(""),ye)|h}h&&function OC(e,t,n){e.push(t,1,n<<2|3)}(n,h,a)}function SC(e){const t=[],n=[];let r=1,o=0;const a=Vc(e=e.replace(Rp,function(h,g,E){return r="select"===E?0:1,o=parseInt(g.substr(1),10),""}));for(let h=0;h<a.length;){let g=a[h++].trim();1===r&&(g=g.replace(/\s*(?:=)?(\w+)\s*/,"$1")),g.length&&t.push(g);const E=Vc(a[h++]);t.length>n.length&&n.push(E)}return{type:r,mainBinding:o,cases:t,values:n}}function Vc(e){if(!e)return[];let t=0;const n=[],r=[],o=/[{}]/g;let a;for(o.lastIndex=0;a=o.exec(e);){const g=a.index;if("}"==a[0]){if(n.pop(),0==n.length){const E=e.substring(t,g);Rp.test(E)?r.push(SC(E)):r.push(E),t=g+1}}else{if(0==n.length){const E=e.substring(t,g);r.push(E),t=g+1}n.push("{")}}const h=e.substring(t);return r.push(h),r}function IC(e,t,n,r,o,a,h,g){const E=[],L=[],W=[];t.cases.push(a),t.create.push(E),t.remove.push(L),t.update.push(W);const We=fd(ki()).getInertBodyElement(h),rt=$a(We)||We;return rt?Bp(e,t,n,r,E,L,W,rt,o,g,0):0}function Bp(e,t,n,r,o,a,h,g,E,L,W){let ye=0,We=g.firstChild;for(;We;){const rt=po(e,n,1,null);switch(We.nodeType){case Node.ELEMENT_NODE:const yt=We,xt=yt.tagName.toLowerCase();if(ja.hasOwnProperty(xt)){Hc(o,na,xt,E,rt),e.data[rt]=xt;const tn=yt.attributes;for(let Cn=0;Cn<tn.length;Cn++){const Fn=tn.item(Cn),$i=Fn.name.toLowerCase();Fn.value.match(oa)?yd.hasOwnProperty($i)&&Oo(h,Fn.value,rt,Fn.name,0,Va[$i]?Zo:Ha[$i]?pd:null):xC(o,rt,Fn)}ye=Bp(e,t,n,r,o,a,h,We,rt,L,W+1)|ye,jp(a,rt,W)}break;case Node.TEXT_NODE:const Lt=We.textContent||"",Zt=Lt.match(oa);Hc(o,null,Zt?"":Lt,E,rt),jp(a,rt,W),Zt&&(ye=Oo(h,Lt,rt,null,0,null)|ye);break;case Node.COMMENT_NODE:const Mt=gC.exec(We.textContent||"");if(Mt){const Cn=L[parseInt(Mt[1],10)];Hc(o,ia,"",E,rt),Lp(e,n,r,E,Cn,rt),AC(a,rt,W)}}We=We.nextSibling}return ye}function jp(e,t,n){0===n&&e.push(t)}function AC(e,t,n){0===n&&(e.push(~t),e.push(t))}function Hc(e,t,n,r,o){null!==t&&e.push(t),e.push(n,o,function lC(e,t,n){return e|t<<17|n<<1}(0,r,o))}function xC(e,t,n){e.push(t<<1|1,n.name,n.value)}const RC=/\[(\ufffd.+?\ufffd?)\]/,FC=/\[(\ufffd.+?\ufffd?)\]|(\ufffd\/?\*\d+:\d+\ufffd)/g,kC=/({\s*)(VAR_(PLURAL|SELECT)(_\d+)?)(\s*,)/g,NC=/{([A-Z0-9_]+)}/g,LC=/\ufffdI18N_EXP_(ICU(_\d+)?)\ufffd/g,BC=/\/\*/,jC=/\d+\:(\d+)/;function $c(e,t,n=-1){const r=j(),o=wt(),a=20+e,h=un(r.consts,t),g=V();r.firstCreatePass&&function CC(e,t,n,r,o,a){const h=V(),g=[],E=[],L=[[]];o=function wC(e,t){if(function MC(e){return-1===e}(t))return Np(e);{const n=e.indexOf(`:${t}\ufffd`)+2+t.toString().length,r=e.search(new RegExp(`\ufffd\\/\\*\\d+:${t}\ufffd`));return Np(e.substring(n,r))}}(o,a);const W=function bC(e){return e.replace(vC," ")}(o).split(yC);for(let ye=0;ye<W.length;ye++){let We=W[ye];if(0==(1&ye)){const rt=Vc(We);for(let yt=0;yt<rt.length;yt++){let xt=rt[yt];if(0==(1&yt)){const Lt=xt;""!==Lt&&EC(e,h,L[0],g,E,n,Lt)}else{const Lt=xt;if("object"!=typeof Lt)throw new Error(`Unable to parse ICU expression in "${o}" message.`);Lp(e,n,E,t,Lt,Fp(e,h,L[0],n,g,"",!0).index)}}}else{const rt=47===We.charCodeAt(0),xt=(We.charCodeAt(rt?1:0),20+Number.parseInt(We.substring(rt?2:1)));if(rt)L.shift(),ae(V(),!1);else{const Lt=aC(e,L[0],xt);L.unshift([]),ae(Lt,!0)}}}e.data[r]={create:g,update:E}}(r,null===g?0:g.index,o,a,h,n);const E=r.data[a],W=Qd(r,g===o[6]?null:g,o);(function dC(e,t,n,r){const o=e[11];for(let a=0;a<t.length;a++){const h=t[a++],g=t[a],E=(h&Xn.COMMENT)===Xn.COMMENT,L=(h&Xn.APPEND_EAGERLY)===Xn.APPEND_EAGERLY,W=h>>>Xn.SHIFT;let ye=e[W];null===ye&&(ye=e[W]=E?o.createComment(g):qa(o,g)),L&&null!==n&&Gr(o,n,ye,r,!1)}})(o,E.create,W,g&&8&g.type?o[g.index]:null),$(!0)}function Uc(){$(!1)}function Hp(e,t,n){$c(e,t,n),Uc()}function $p(e,t){const n=j();!function DC(e,t,n){const o=f().index,a=[];if(e.firstCreatePass&&null===e.data[t]){for(let h=0;h<n.length;h+=2){const g=n[h],E=n[h+1];if(""!==E){if(mC.test(E))throw new Error(`ICU expressions are not supported in attributes. Message: "${E}".`);Oo(a,E,o,g,TC(a),null)}}e.data[t]=a}}(n,e+20,un(n.consts,t))}function Wc(e){return function cC(e){e&&(hs|=1<<Math.min(fs,31)),fs++}(bi(wt(),nn(),e)),Wc}function Up(e){!function uC(e,t,n){if(fs>0){const r=e.data[n];Ap(e,t,Array.isArray(r)?r:r.update,dn()-fs-1,hs)}hs=0,fs=0}(j(),wt(),e+20)}function Wp(e,t={}){return function VC(e,t={}){let n=e;if(RC.test(e)){const r={},o=[0];n=n.replace(FC,(a,h,g)=>{const E=h||g,L=r[E]||[];if(L.length||(E.split("|").forEach(xt=>{const Lt=xt.match(jC),Zt=Lt?parseInt(Lt[1],10):0,Mt=BC.test(xt);L.push([Zt,Mt,xt])}),r[E]=L),!L.length)throw new Error(`i18n postprocess: unmatched placeholder - ${E}`);const W=o[o.length-1];let ye=0;for(let xt=0;xt<L.length;xt++)if(L[xt][0]===W){ye=xt;break}const[We,rt,yt]=L[ye];return rt?o.pop():W!==We&&o.push(We),L.splice(ye,1),yt})}return Object.keys(t).length&&(n=n.replace(kC,(r,o,a,h,g,E)=>t.hasOwnProperty(a)?`${o}${t[a]}${E}`:r),n=n.replace(NC,(r,o)=>t.hasOwnProperty(o)?t[o]:r),n=n.replace(LC,(r,o)=>{if(t.hasOwnProperty(o)){const a=t[o];if(!a.length)throw new Error(`i18n postprocess: unmatched ICU - ${r} with key: ${o}`);return a.shift()}return r})),n}(e,t)}function zc(e,t,n,r,o){if(e=O(e),Array.isArray(e))for(let a=0;a<e.length;a++)zc(e[a],t,n,r,o);else{const a=j(),h=wt();let g=_o(e)?e:O(e.provide),E=Qh(e);const L=f(),W=1048575&L.providerIndexes,ye=L.directiveStart,We=L.providerIndexes>>20;if(_o(e)||!e.multi){const rt=new Bo(E,o,ls),yt=Gc(g,t,o?W:W+We,ye);-1===yt?(As(Vo(L,h),a,g),Kc(a,e,t.length),t.push(g),L.directiveStart++,L.directiveEnd++,o&&(L.providerIndexes+=1048576),n.push(rt),h.push(rt)):(n[yt]=rt,h[yt]=rt)}else{const rt=Gc(g,t,W+We,ye),yt=Gc(g,t,W,W+We),xt=rt>=0&&n[rt],Lt=yt>=0&&n[yt];if(o&&!Lt||!o&&!xt){As(Vo(L,h),a,g);const Zt=function WC(e,t,n,r,o){const a=new Bo(e,n,ls);return a.multi=[],a.index=t,a.componentProviders=0,zp(a,o,r&&!n),a}(o?UC:$C,n.length,o,r,E);!o&&Lt&&(n[yt].providerFactory=Zt),Kc(a,e,t.length,0),t.push(g),L.directiveStart++,L.directiveEnd++,o&&(L.providerIndexes+=1048576),n.push(Zt),h.push(Zt)}else Kc(a,e,rt>-1?rt:yt,zp(n[o?yt:rt],E,!o&&r));!o&&r&&Lt&&n[yt].componentProviders++}}}function Kc(e,t,n,r){const o=_o(t),a=function Rv(e){return!!e.useClass}(t);if(o||a){const E=(a?O(t.useClass):t).prototype.ngOnDestroy;if(E){const L=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){const W=L.indexOf(n);-1===W?L.push(n,[r,E]):L[W+1].push(r,E)}else L.push(n,E)}}}function zp(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Gc(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return-1}function $C(e,t,n,r){return Qc(this.multi,[])}function UC(e,t,n,r){const o=this.multi;let a;if(this.providerFactory){const h=this.providerFactory.componentProviders,g=Ho(n,n[1],this.providerFactory.index,r);a=g.slice(0,h),Qc(o,a);for(let E=h;E<g.length;E++)a.push(g[E])}else a=[],Qc(o,a);return a}function Qc(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function Kp(e,t=[]){return n=>{n.providersResolver=(r,o)=>function HC(e,t,n){const r=j();if(r.firstCreatePass){const o=Wn(e);zc(n,r.data,r.blueprint,o,!0),zc(t,r.data,r.blueprint,o,!1)}}(r,o?o(e):e,t)}}class Gp{}class sa{}class KC{resolveComponentFactory(t){throw function zC(e){const t=Error(`No component factory found for ${T(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let ms=(()=>{class e{}return e.NULL=new KC,e})();function GC(){return xo(f(),wt())}function xo(e,t){return new gs(te(e,t))}let gs=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=GC,e})();function QC(e){return e instanceof gs?e.nativeElement:e}class Zp{}let ZC=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function XC(){const e=wt(),n=Nt(f().index,e);return function YC(e){return e[11]}(Kn(n)?n:e)}(),e})(),Yp=(()=>{class e{}return e.\u0275prov=qe({token:e,providedIn:"root",factory:()=>null}),e})();class Xp{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Jp=new Xp("13.1.2"),aa={};function la(e,t,n,r,o=!1){for(;null!==n;){const a=t[n.index];if(null!==a&&r.push(Ln(a)),Gn(a))for(let g=10;g<a.length;g++){const E=a[g],L=E[1].firstChild;null!==L&&la(E[1],E,L,r)}const h=n.type;if(8&h)la(e,t,n.child,r);else if(32&h){const g=Ya(n,t);let E;for(;E=g();)r.push(E)}else if(16&h){const g=th(t,n);if(Array.isArray(g))r.push(...g);else{const E=es(t[16]);la(E[1],E,g,r,!0)}}n=o?n.projectionNext:n.next}return r}class Ro{constructor(t,n){this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const t=this._lView,n=t[1];return la(n,t,n.firstChild,[])}get context(){return this._lView[8]}set context(t){this._lView[8]=t}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[3];if(Gn(t)){const n=t[8],r=n?n.indexOf(this):-1;r>-1&&(tl(t,r),xs(n,r))}this._attachedToViewContainer=!1}Kd(this._lView[1],this._lView)}onDestroy(t){Ih(this._lView[1],this._lView,null,t)}markForCheck(){Tl(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){wl(this._lView[1],this._lView,this.context)}checkNoChanges(){!function Tv(e,t,n){Gt(!0);try{wl(e,t,n)}finally{Gt(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function by(e,t){ts(e,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class JC extends Ro{constructor(t){super(t),this._view=t}detectChanges(){Lh(this._view)}checkNoChanges(){!function Mv(e){Gt(!0);try{Lh(e)}finally{Gt(!1)}}(this._view)}get context(){return null}}class qp extends ms{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=Be(t);return new ca(n,this.ngModule)}}function em(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}const e0=new Yn("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>kd});class ca extends sa{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function Vy(e){return e.map(jy).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return em(this.componentDef.inputs)}get outputs(){return em(this.componentDef.outputs)}create(t,n,r,o){const a=(o=o||this.ngModule)?function t0(e,t){return{get:(n,r,o)=>{const a=e.get(n,aa,o);return a!==aa||r===aa?a:t.get(n,r,o)}}}(t,o.injector):t,h=a.get(Zp,sr),g=a.get(Yp,null),E=h.createRenderer(null,this.componentDef),L=this.componentDef.selectors[0][0]||"div",W=r?Sh(E,r,this.componentDef.encapsulation):el(h.createRenderer(null,this.componentDef),L,function qC(e){const t=e.toLowerCase();return"svg"===t?Ri:"math"===t?or:null}(L)),ye=this.componentDef.onPush?576:528,We=lf(),rt=Ks(0,null,null,1,0,null,null,null,null,null),yt=ns(null,rt,We,ye,null,null,h,E,g,a);let xt,Lt;Yt(yt);try{const Zt=sf(W,this.componentDef,yt,h,E);if(W)if(r)Ms(E,W,["ng-version",Jp.full]);else{const{attrs:Mt,classes:tn}=function Hy(e){const t=[],n=[];let r=1,o=2;for(;r<e.length;){let a=e[r];if("string"==typeof a)2===o?""!==a&&t.push(a,e[++r]):8===o&&n.push(a);else{if(!cr(o))break;o=a}r++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]);Mt&&Ms(E,W,Mt),tn&&tn.length>0&&sl(E,W,tn.join(" "))}if(Lt=ht(rt,20),void 0!==n){const Mt=Lt.projection=[];for(let tn=0;tn<this.ngContentSelectors.length;tn++){const Cn=n[tn];Mt.push(null!=Cn?Array.from(Cn):null)}}xt=af(Zt,this.componentDef,yt,We,[cf]),is(rt,yt,null)}finally{Pt()}return new tm(this.componentType,xt,xo(Lt,yt),yt,Lt)}}class tm extends Gp{constructor(t,n,r,o,a){super(),this.location=r,this._rootLView=o,this._tNode=a,this.instance=n,this.hostView=this.changeDetectorRef=new JC(o),this.componentType=t}get injector(){return new eo(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function nm(e,t,n,r){return ie(()=>{const o=e;null!==t&&(o.hasOwnProperty("decorators")&&void 0!==o.decorators?o.decorators.push(...t):o.decorators=t),null!==n&&(o.ctorParameters=n),null!==r&&(o.propDecorators=o.hasOwnProperty("propDecorators")&&void 0!==o.propDecorators?Object.assign(Object.assign({},o.propDecorators),r):r)})}class Fo{}class im{}const ko=new Map;function om(e){const t=new Set;!function n(r){const o=Bt(r,!0),a=o.id;if(null!==a){(function rm(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${T(t)} vs ${T(t.name)}`)})(a,ko.get(a),r),ko.set(a,r)}const h=br(o.imports);for(const g of h)t.has(g)||(t.add(g),n(g))}(e)}function sm(e){return ko.get(e)||Et[e]}function r0(e,t){return new Zc(e,null!=t?t:null)}class Zc extends Fo{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new qp(this);const r=Bt(t);this._bootstrapComponents=br(r.bootstrap),this._r3Injector=Gh(t,n,[{provide:Fo,useValue:this},{provide:ms,useValue:this.componentFactoryResolver}],T(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,n=Vi.THROW_IF_NOT_FOUND,r=k.Default){return t===Vi||t===Fo||t===Zs?this:this._r3Injector.get(t,n,r)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class ua extends im{constructor(t){super(),this.moduleType=t,null!==Bt(t)&&om(t)}create(t){return new Zc(this.moduleType,t)}}function am(e,t,n){const r=Xt()+e,o=wt();return o[r]===pn?Dr(o,r,n?t.call(n):t()):ss(o,r)}function lm(e,t,n,r){return _m(wt(),Xt(),e,t,n,r)}function cm(e,t,n,r,o){return ym(wt(),Xt(),e,t,n,r,o)}function um(e,t,n,r,o,a){return vm(wt(),Xt(),e,t,n,r,o,a)}function dm(e,t,n,r,o,a,h){return bm(wt(),Xt(),e,t,n,r,o,a,h)}function hm(e,t,n,r,o,a,h,g){const E=Xt()+e,L=wt(),W=tr(L,E,n,r,o,a);return bi(L,E+4,h)||W?Dr(L,E+5,g?t.call(g,n,r,o,a,h):t(n,r,o,a,h)):ss(L,E+5)}function fm(e,t,n,r,o,a,h,g,E){const L=Xt()+e,W=wt(),ye=tr(W,L,n,r,o,a);return Qr(W,L+4,h,g)||ye?Dr(W,L+6,E?t.call(E,n,r,o,a,h,g):t(n,r,o,a,h,g)):ss(W,L+6)}function pm(e,t,n,r,o,a,h,g,E,L){const W=Xt()+e,ye=wt();let We=tr(ye,W,n,r,o,a);return Xs(ye,W+4,h,g,E)||We?Dr(ye,W+7,L?t.call(L,n,r,o,a,h,g,E):t(n,r,o,a,h,g,E)):ss(ye,W+7)}function mm(e,t,n,r,o,a,h,g,E,L,W){const ye=Xt()+e,We=wt(),rt=tr(We,ye,n,r,o,a);return tr(We,ye+4,h,g,E,L)||rt?Dr(We,ye+8,W?t.call(W,n,r,o,a,h,g,E,L):t(n,r,o,a,h,g,E,L)):ss(We,ye+8)}function gm(e,t,n,r){return Cm(wt(),Xt(),e,t,n,r)}function _s(e,t){const n=e[t];return n===pn?void 0:n}function _m(e,t,n,r,o,a){const h=t+n;return bi(e,h,o)?Dr(e,h+1,a?r.call(a,o):r(o)):_s(e,h+1)}function ym(e,t,n,r,o,a,h){const g=t+n;return Qr(e,g,o,a)?Dr(e,g+2,h?r.call(h,o,a):r(o,a)):_s(e,g+2)}function vm(e,t,n,r,o,a,h,g){const E=t+n;return Xs(e,E,o,a,h)?Dr(e,E+3,g?r.call(g,o,a,h):r(o,a,h)):_s(e,E+3)}function bm(e,t,n,r,o,a,h,g,E){const L=t+n;return tr(e,L,o,a,h,g)?Dr(e,L+4,E?r.call(E,o,a,h,g):r(o,a,h,g)):_s(e,L+4)}function Cm(e,t,n,r,o,a){let h=t+n,g=!1;for(let E=0;E<o.length;E++)bi(e,h++,o[E])&&(g=!0);return g?Dr(e,h,r.apply(a,o)):_s(e,h)}function Em(e,t){const n=j();let r;const o=e+20;n.firstCreatePass?(r=function o0(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}}(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(o,r.onDestroy)):r=n.data[o];const a=r.factory||(r.factory=fi(r.type)),h=se(ls);try{const g=Ss(!1),E=a();return Ss(g),pf(n,wt(),o,E),E}finally{se(h)}}function Dm(e,t,n){const r=e+20,o=wt(),a=Dt(o,r);return ys(o,r)?_m(o,Xt(),t,a.transform,n,a):a.transform(n)}function Tm(e,t,n,r){const o=e+20,a=wt(),h=Dt(a,o);return ys(a,o)?ym(a,Xt(),t,h.transform,n,r,h):h.transform(n,r)}function Mm(e,t,n,r,o){const a=e+20,h=wt(),g=Dt(h,a);return ys(h,a)?vm(h,Xt(),t,g.transform,n,r,o,g):g.transform(n,r,o)}function wm(e,t,n,r,o,a){const h=e+20,g=wt(),E=Dt(g,h);return ys(g,h)?bm(g,Xt(),t,E.transform,n,r,o,a,E):E.transform(n,r,o,a)}function Sm(e,t,n){const r=e+20,o=wt(),a=Dt(o,r);return ys(o,r)?Cm(o,Xt(),t,a.transform,n,a):a.transform.apply(a,n)}function ys(e,t){return e[1].data[t].pure}function Yc(e){return t=>{setTimeout(e,void 0,t)}}const Mr=class s0 extends i.x{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){var o,a,h;let g=t,E=n||(()=>null),L=r;if(t&&"object"==typeof t){const ye=t;g=null===(o=ye.next)||void 0===o?void 0:o.bind(ye),E=null===(a=ye.error)||void 0===a?void 0:a.bind(ye),L=null===(h=ye.complete)||void 0===h?void 0:h.bind(ye)}this.__isAsync&&(E=Yc(E),g&&(g=Yc(g)),L&&(L=Yc(L)));const W=super.subscribe({next:g,error:E,complete:L});return t instanceof d.w0&&t.add(W),W}};function a0(){return this._results[yo()]()}class da{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=yo(),r=da.prototype;r[n]||(r[n]=a0)}get changes(){return this._changes||(this._changes=new Mr)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){const r=this;r.dirty=!1;const o=qi(t);(this._changesDetected=!function l_(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let o=e[r],a=t[r];if(n&&(o=n(o),a=n(a)),a!==o)return!1}return!0}(r._results,o,n))&&(r._results=o,r.length=o.length,r.last=o[this.length-1],r.first=o[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;let vs=(()=>{class e{}return e.__NG_ELEMENT_ID__=u0,e})();const l0=vs,c0=class extends l0{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}createEmbeddedView(t){const n=this._declarationTContainer.tViews,r=ns(this._declarationLView,n,t,16,null,n.declTNode,null,null,null,null);r[17]=this._declarationLView[this._declarationTContainer.index];const a=this._declarationLView[19];return null!==a&&(r[19]=a.createEmbeddedView(n)),is(n,r,t),new Ro(r)}};function u0(){return ha(f(),wt())}function ha(e,t){return 4&e.type?new c0(t,e,xo(e,t)):null}let fa=(()=>{class e{}return e.__NG_ELEMENT_ID__=d0,e})();function d0(){return Pm(f(),wt())}const h0=fa,Im=class extends h0{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return xo(this._hostTNode,this._hostLView)}get injector(){return new eo(this._hostTNode,this._hostLView)}get parentInjector(){const t=Is(this._hostTNode,this._hostLView);if(Vu(t)){const n=qr(t,this._hostLView),r=Jr(t);return new eo(n[1].data[r+8],n)}return new eo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=Am(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,r){const o=t.createEmbeddedView(n||{});return this.insert(o,r),o}createComponent(t,n,r,o,a){const h=t&&!Uo(t);let g;if(h)g=n;else{const ye=n||{};g=ye.index,r=ye.injector,o=ye.projectableNodes,a=ye.ngModuleRef}const E=h?t:new ca(Be(t)),L=r||this.parentInjector;if(!a&&null==E.ngModule&&L){const ye=L.get(Fo,null);ye&&(a=ye)}const W=E.create(L,o,void 0,a);return this.insert(W.hostView,g),W}insert(t,n){const r=t._lView,o=r[1];if(function In(e){return Gn(e[3])}(r)){const W=this.indexOf(t);if(-1!==W)this.detach(W);else{const ye=r[3],We=new Im(ye,ye[6],ye[3]);We.detach(We.indexOf(t))}}const a=this._adjustIndex(n),h=this._lContainer;!function Ey(e,t,n,r){const o=10+r,a=n.length;r>0&&(n[o-1][4]=t),r<a-10?(t[4]=n[o],Ju(n,10+r,t)):(n.push(t),t[4]=null),t[3]=n;const h=t[17];null!==h&&n!==h&&function Dy(e,t){const n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(h,t);const g=t[19];null!==g&&g.insertView(e),t[2]|=128}(o,r,h,a);const g=rl(a,h),E=r[11],L=Vs(E,h[7]);return null!==L&&function vy(e,t,n,r,o,a){r[0]=o,r[6]=t,ts(e,r,n,1,o,a)}(o,h[6],E,r,L,g),t.attachToViewContainerRef(),Ju(Xc(h),a,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=Am(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),r=tl(this._lContainer,n);r&&(xs(Xc(this._lContainer),n),Kd(r[1],r))}detach(t){const n=this._adjustIndex(t,-1),r=tl(this._lContainer,n);return r&&null!=xs(Xc(this._lContainer),n)?new Ro(r):null}_adjustIndex(t,n=0){return null==t?this.length+n:t}};function Am(e){return e[8]}function Xc(e){return e[8]||(e[8]=[])}function Pm(e,t){let n;const r=t[e.index];if(Gn(r))n=r;else{let o;if(8&e.type)o=Ln(r);else{const a=t[11];o=a.createComment("");const h=te(e,t);Gr(a,Vs(a,h),o,function Sy(e,t){return Rn(e)?e.nextSibling(t):t.nextSibling}(a,h),!1)}t[e.index]=n=Nh(r,t,o,e),Gs(t,n)}return new Im(n,e,t)}class Jc{constructor(t){this.queryList=t,this.matches=null}clone(){return new Jc(this.queryList)}setDirty(){this.queryList.setDirty()}}class qc{constructor(t=[]){this.queries=t}createEmbeddedView(t){const n=t.queries;if(null!==n){const r=null!==t.contentQueries?t.contentQueries[0]:n.length,o=[];for(let a=0;a<r;a++){const h=n.getByIndex(a);o.push(this.queries[h.indexInDeclarationView].clone())}return new qc(o)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)null!==jm(t,n).matches&&this.queries[n].setDirty()}}class Om{constructor(t,n,r=null){this.predicate=t,this.flags=n,this.read=r}}class eu{constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){const o=null!==n?n.length:0,a=this.getByIndex(r).embeddedTView(t,o);a&&(a.indexInDeclarationView=r,null!==n?n.push(a):n=[a])}return null!==n?new eu(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class tu{constructor(t,n=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new tu(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const n=this._declarationNodeIndex;let r=t.parent;for(;null!==r&&8&r.type&&r.index!==n;)r=r.parent;return n===(null!==r?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){const r=this.metadata.predicate;if(Array.isArray(r))for(let o=0;o<r.length;o++){const a=r[o];this.matchTNodeWithReadOption(t,n,m0(n,a)),this.matchTNodeWithReadOption(t,n,Ps(n,t,a,!1,!1))}else r===vs?4&n.type&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,Ps(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(null!==r){const o=this.metadata.read;if(null!==o)if(o===gs||o===fa||o===vs&&4&n.type)this.addMatch(n.index,-2);else{const a=Ps(n,t,o,!1,!1);null!==a&&this.addMatch(n.index,a)}else this.addMatch(n.index,r)}}addMatch(t,n){null===this.matches?this.matches=[t,n]:this.matches.push(t,n)}}function m0(e,t){const n=e.localNames;if(null!==n)for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1];return null}function _0(e,t,n,r){return-1===n?function g0(e,t){return 11&e.type?xo(e,t):4&e.type?ha(e,t):null}(t,e):-2===n?function y0(e,t,n){return n===gs?xo(t,e):n===vs?ha(t,e):n===fa?Pm(t,e):void 0}(e,t,r):Ho(e,e[1],n,t)}function xm(e,t,n,r){const o=t[19].queries[r];if(null===o.matches){const a=e.data,h=n.matches,g=[];for(let E=0;E<h.length;E+=2){const L=h[E];g.push(L<0?null:_0(t,a[L],h[E+1],n.metadata.read))}o.matches=g}return o.matches}function nu(e,t,n,r){const o=e.queries.getByIndex(n),a=o.matches;if(null!==a){const h=xm(e,t,o,n);for(let g=0;g<a.length;g+=2){const E=a[g];if(E>0)r.push(h[g/2]);else{const L=a[g+1],W=t[-E];for(let ye=10;ye<W.length;ye++){const We=W[ye];We[17]===We[3]&&nu(We[1],We,L,r)}if(null!==W[9]){const ye=W[9];for(let We=0;We<ye.length;We++){const rt=ye[We];nu(rt[1],rt,L,r)}}}}}return r}function Rm(e){const t=wt(),n=j(),r=nt();Ct(r+1);const o=jm(n,r);if(e.dirty&&Dn(t)===(2==(2&o.metadata.flags))){if(null===o.matches)e.reset([]);else{const a=o.crossesNgTemplate?nu(n,t,r,[]):xm(n,t,o,r);e.reset(a,QC),e.notifyOnChanges()}return!0}return!1}function Fm(e,t,n){const r=j();r.firstCreatePass&&(Bm(r,new Om(e,t,n),-1),2==(2&t)&&(r.staticViewQueries=!0)),Lm(r,wt(),t)}function km(e,t,n,r){const o=j();if(o.firstCreatePass){const a=f();Bm(o,new Om(t,n,r),a.index),function b0(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(o,e),2==(2&n)&&(o.staticContentQueries=!0)}Lm(o,wt(),n)}function Nm(){return function v0(e,t){return e[19].queries[t].queryList}(wt(),nt())}function Lm(e,t,n){const r=new da(4==(4&n));Ih(e,t,r,r.destroy),null===t[19]&&(t[19]=new qc),t[19].queries.push(new Jc(r))}function Bm(e,t,n){null===e.queries&&(e.queries=new eu),e.queries.track(new tu(t,n))}function jm(e,t){return e.queries.getByIndex(t)}function Vm(e,t){return ha(e,t)}const Ti=(()=>({\u0275\u0275attribute:Bl,\u0275\u0275attributeInterpolate1:jl,\u0275\u0275attributeInterpolate2:Vl,\u0275\u0275attributeInterpolate3:Hl,\u0275\u0275attributeInterpolate4:$l,\u0275\u0275attributeInterpolate5:Ul,\u0275\u0275attributeInterpolate6:Wl,\u0275\u0275attributeInterpolate7:zl,\u0275\u0275attributeInterpolate8:Kl,\u0275\u0275attributeInterpolateV:Gl,\u0275\u0275defineComponent:I,\u0275\u0275defineDirective:$e,\u0275\u0275defineInjectable:qe,\u0275\u0275defineInjector:he,\u0275\u0275defineNgModule:Ut,\u0275\u0275definePipe:le,\u0275\u0275directiveInject:ls,\u0275\u0275getInheritedFactory:Zu,\u0275\u0275inject:si,\u0275\u0275injectAttribute:Sa,\u0275\u0275invalidFactory:Sf,\u0275\u0275invalidFactoryDep:Fa,\u0275\u0275templateRefExtractor:Vm,\u0275\u0275NgOnChangesFeature:pi,\u0275\u0275ProvidersFeature:Kp,\u0275\u0275CopyDefinitionFeature:df,\u0275\u0275InheritDefinitionFeature:kl,\u0275\u0275nextContext:kf,\u0275\u0275namespaceHTML:Vn,\u0275\u0275namespaceMathML:lr,\u0275\u0275namespaceSVG:_i,\u0275\u0275enableBindings:gi,\u0275\u0275disableBindings:Ni,\u0275\u0275elementStart:ql,\u0275\u0275elementEnd:ec,\u0275\u0275element:If,\u0275\u0275elementContainerStart:tc,\u0275\u0275elementContainerEnd:nc,\u0275\u0275elementContainer:Af,\u0275\u0275pureFunction0:am,\u0275\u0275pureFunction1:lm,\u0275\u0275pureFunction2:cm,\u0275\u0275pureFunction3:um,\u0275\u0275pureFunction4:dm,\u0275\u0275pureFunction5:hm,\u0275\u0275pureFunction6:fm,\u0275\u0275pureFunction7:pm,\u0275\u0275pureFunction8:mm,\u0275\u0275pureFunctionV:gm,\u0275\u0275getCurrentView:Pf,\u0275\u0275restoreView:c,\u0275\u0275listener:rc,\u0275\u0275projection:Lf,\u0275\u0275syntheticHostProperty:Bc,\u0275\u0275syntheticHostListener:oc,\u0275\u0275pipeBind1:Dm,\u0275\u0275pipeBind2:Tm,\u0275\u0275pipeBind3:Mm,\u0275\u0275pipeBind4:wm,\u0275\u0275pipeBindV:Sm,\u0275\u0275projectionDef:Nf,\u0275\u0275hostProperty:Lc,\u0275\u0275property:Xl,\u0275\u0275propertyInterpolate:ac,\u0275\u0275propertyInterpolate1:qs,\u0275\u0275propertyInterpolate2:lc,\u0275\u0275propertyInterpolate3:cc,\u0275\u0275propertyInterpolate4:uc,\u0275\u0275propertyInterpolate5:dc,\u0275\u0275propertyInterpolate6:hc,\u0275\u0275propertyInterpolate7:fc,\u0275\u0275propertyInterpolate8:pc,\u0275\u0275propertyInterpolateV:mc,\u0275\u0275pipe:Em,\u0275\u0275queryRefresh:Rm,\u0275\u0275viewQuery:Fm,\u0275\u0275loadQuery:Nm,\u0275\u0275contentQuery:km,\u0275\u0275reference:mf,\u0275\u0275classMap:zf,\u0275\u0275classMapInterpolate1:qf,\u0275\u0275classMapInterpolate2:ep,\u0275\u0275classMapInterpolate3:tp,\u0275\u0275classMapInterpolate4:np,\u0275\u0275classMapInterpolate5:ip,\u0275\u0275classMapInterpolate6:rp,\u0275\u0275classMapInterpolate7:op,\u0275\u0275classMapInterpolate8:sp,\u0275\u0275classMapInterpolateV:ap,\u0275\u0275styleMap:dr,\u0275\u0275styleMapInterpolate1:lp,\u0275\u0275styleMapInterpolate2:cp,\u0275\u0275styleMapInterpolate3:up,\u0275\u0275styleMapInterpolate4:dp,\u0275\u0275styleMapInterpolate5:hp,\u0275\u0275styleMapInterpolate6:fp,\u0275\u0275styleMapInterpolate7:pp,\u0275\u0275styleMapInterpolate8:mp,\u0275\u0275styleMapInterpolateV:gp,\u0275\u0275styleProp:gc,\u0275\u0275stylePropInterpolate1:Ic,\u0275\u0275stylePropInterpolate2:Ac,\u0275\u0275stylePropInterpolate3:Pc,\u0275\u0275stylePropInterpolate4:Oc,\u0275\u0275stylePropInterpolate5:xc,\u0275\u0275stylePropInterpolate6:Rc,\u0275\u0275stylePropInterpolate7:Fc,\u0275\u0275stylePropInterpolate8:kc,\u0275\u0275stylePropInterpolateV:Nc,\u0275\u0275classProp:_c,\u0275\u0275advance:uh,\u0275\u0275template:ff,\u0275\u0275text:Jf,\u0275\u0275textInterpolate:vc,\u0275\u0275textInterpolate1:ta,\u0275\u0275textInterpolate2:bc,\u0275\u0275textInterpolate3:Cc,\u0275\u0275textInterpolate4:Ec,\u0275\u0275textInterpolate5:Dc,\u0275\u0275textInterpolate6:Tc,\u0275\u0275textInterpolate7:Mc,\u0275\u0275textInterpolate8:wc,\u0275\u0275textInterpolateV:Sc,\u0275\u0275i18n:Hp,\u0275\u0275i18nAttributes:$p,\u0275\u0275i18nExp:Wc,\u0275\u0275i18nStart:$c,\u0275\u0275i18nEnd:Uc,\u0275\u0275i18nApply:Up,\u0275\u0275i18nPostprocess:Wp,\u0275\u0275resolveWindow:Nd,\u0275\u0275resolveDocument:Ld,\u0275\u0275resolveBody:Bd,\u0275\u0275setComponentScope:M,\u0275\u0275setNgModuleScope:gn,\u0275\u0275sanitizeHtml:Cd,\u0275\u0275sanitizeStyle:Ed,\u0275\u0275sanitizeResourceUrl:Wa,\u0275\u0275sanitizeScript:Dd,\u0275\u0275sanitizeUrl:Ua,\u0275\u0275sanitizeUrlOrResourceUrl:wd,\u0275\u0275trustConstantHtml:Td,\u0275\u0275trustConstantResourceUrl:Md,forwardRef:P,resolveForwardRef:O}))();let No=null;function D0(){No=null}const bs=[];let iu=!1;function Hm(){if(!iu){iu=!0;try{for(let e=bs.length-1;e>=0;e--){const{moduleType:t,ngModule:n}=bs[e];n.declarations&&n.declarations.every($m)&&(bs.splice(e,1),w0(t,n))}}finally{iu=!1}}}function $m(e){return Array.isArray(e)?e.every($m):!!O(e)}function Um(e,t={}){Wm(e,t),function T0(e,t){bs.push({moduleType:e,ngModule:t})}(e,t)}function Wm(e,t,n=!1){const r=qi(t.declarations||Ot);let o=null;Object.defineProperty(e,Qe,{configurable:!0,get:()=>(null===o&&(o=ri().compileNgModule(Ti,`ng:///${e.name}/\u0275mod.js`,{type:e,bootstrap:qi(t.bootstrap||Ot).map(O),declarations:r.map(O),imports:qi(t.imports||Ot).map(O).map(Qm),exports:qi(t.exports||Ot).map(O).map(Qm),schemas:t.schemas?qi(t.schemas):null,id:t.id||null}),o.schemas||(o.schemas=[])),o)});let a=null;Object.defineProperty(e,Se,{get:()=>{if(null===a){const g=ri();a=g.compileFactory(Ti,`ng:///${e.name}/\u0275fac.js`,{name:e.name,type:e,deps:Ns(e),target:g.FactoryTarget.NgModule,typeArgumentCount:0})}return a},configurable:!1});let h=null;Object.defineProperty(e,Rt,{get:()=>{if(null===h){const g={name:e.name,type:e,providers:t.providers||Ot,imports:[(t.imports||Ot).map(O),(t.exports||Ot).map(O)]};h=ri().compileInjector(Ti,`ng:///${e.name}/\u0275inj.js`,g)}return h},configurable:!1})}let pa=new WeakMap,ou=new WeakMap;function M0(){pa=new WeakMap,ou=new WeakMap,bs.length=0}function w0(e,t){const n=qi(t.declarations||Ot),r=Cs(e);n.forEach(o=>{o.hasOwnProperty(bn)?su(Be(o),r):!o.hasOwnProperty(at)&&!o.hasOwnProperty(Ke)&&(o.ngSelectorScope=e)})}function su(e,t){e.directiveDefs=()=>Array.from(t.compilation.directives).map(n=>n.hasOwnProperty(bn)?Be(n):ft(n)).filter(n=>!!n),e.pipeDefs=()=>Array.from(t.compilation.pipes).map(n=>Vt(n)),e.schemas=t.schemas,e.tView=null}function Cs(e){if(!au(e))throw new Error(`${e.name} does not have a module def (\u0275mod property)`);const t=Bt(e);if(null!==t.transitiveCompileScopes)return t.transitiveCompileScopes;const n={schemas:t.schemas||null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set}};return br(t.imports).forEach(r=>{const o=r;if(!au(o))throw new Error(`Importing ${o.name} which does not have a \u0275mod property`);const a=Cs(o);a.exported.directives.forEach(h=>n.compilation.directives.add(h)),a.exported.pipes.forEach(h=>n.compilation.pipes.add(h))}),br(t.declarations).forEach(r=>{Vt(r)?n.compilation.pipes.add(r):n.compilation.directives.add(r)}),br(t.exports).forEach(r=>{const o=r;if(au(o)){const a=Cs(o);a.exported.directives.forEach(h=>{n.compilation.directives.add(h),n.exported.directives.add(h)}),a.exported.pipes.forEach(h=>{n.compilation.pipes.add(h),n.exported.pipes.add(h)})}else Vt(o)?n.exported.pipes.add(o):n.exported.directives.add(o)}),t.transitiveCompileScopes=n,n}function Qm(e){return function S0(e){return void 0!==e.ngModule}(e)?e.ngModule:e}function au(e){return!!Bt(e)}let lu=0;function Zm(e,t){let n=null;(function w_(e,t){ad(t)&&(ao.set(e,t),Qo.add(e))})(e,t),Xm(e,t),Object.defineProperty(e,bn,{get:()=>{if(null===n){const r=ri();if(ad(t)){const L=[`Component '${e.name}' is not resolved:`];throw t.templateUrl&&L.push(` - templateUrl: ${t.templateUrl}`),t.styleUrls&&t.styleUrls.length&&L.push(` - styleUrls: ${JSON.stringify(t.styleUrls)}`),L.push("Did you run and wait for 'resolveComponentResources()'?"),new Error(L.join("\n"))}const o=function E0(){return No}();let a=t.preserveWhitespaces;void 0===a&&(a=null!==o&&void 0!==o.preserveWhitespaces&&o.preserveWhitespaces);let h=t.encapsulation;void 0===h&&(h=null!==o&&void 0!==o.defaultEncapsulation?o.defaultEncapsulation:mt.Emulated);const g=t.templateUrl||`ng:///${e.name}/template.html`,E=Object.assign(Object.assign({},Jm(e,t)),{typeSourceSpan:r.createParseSourceSpan("Component",e.name,g),template:t.template||"",preserveWhitespaces:a,styles:t.styles||Ot,animations:t.animations,directives:[],changeDetection:t.changeDetection,pipes:new Map,encapsulation:h,interpolation:t.interpolation,viewProviders:t.viewProviders||null});lu++;try{E.usesInheritance&&qm(e),n=r.compileComponent(Ti,g,E)}finally{lu--}if(0===lu&&Hm(),function I0(e){return void 0!==e.ngSelectorScope}(e)){const L=Cs(e.ngSelectorScope);su(n,L)}}return n},configurable:!1})}function cu(e,t){let n=null;Xm(e,t||{}),Object.defineProperty(e,at,{get:()=>{if(null===n){const r=Ym(e,t||{});n=ri().compileDirective(Ti,r.sourceMapUrl,r.metadata)}return n},configurable:!1})}function Ym(e,t){const n=e&&e.name,r=`ng:///${n}/\u0275dir.js`,o=ri(),a=Jm(e,t);return a.typeSourceSpan=o.createParseSourceSpan("Directive",n,r),a.usesInheritance&&qm(e),{metadata:a,sourceMapUrl:r}}function Xm(e,t){let n=null;Object.defineProperty(e,Se,{get:()=>{if(null===n){const r=Ym(e,t),o=ri();n=o.compileFactory(Ti,`ng:///${e.name}/\u0275fac.js`,{name:r.metadata.name,type:r.metadata.type,typeArgumentCount:0,deps:Ns(e),target:o.FactoryTarget.Directive})}return n},configurable:!1})}function A0(e){return Object.getPrototypeOf(e.prototype)===Object.prototype}function Jm(e,t){const n=Na(),r=n.ownPropMetadata(e);return{name:e.name,type:e,selector:void 0!==t.selector?t.selector:null,host:t.host||Qt,propMetadata:r,inputs:t.inputs||Ot,outputs:t.outputs||Ot,queries:eg(e,r,tg),lifecycle:{usesOnChanges:n.hasLifecycleHook(e,"ngOnChanges")},typeSourceSpan:null,usesInheritance:!A0(e),exportAs:x0(t.exportAs),providers:t.providers||null,viewQueries:eg(e,r,ng)}}function qm(e){const t=Object.prototype;let n=Object.getPrototypeOf(e.prototype).constructor;for(;n&&n!==t;)!ft(n)&&!Be(n)&&F0(n)&&cu(n,null),n=Object.getPrototypeOf(n)}function P0(e){return"string"==typeof e?rg(e):O(e)}function O0(e,t){return{propertyName:e,predicate:P0(t.selector),descendants:t.descendants,first:t.first,read:t.read?t.read:null,static:!!t.static,emitDistinctChangesOnly:!!t.emitDistinctChangesOnly}}function eg(e,t,n){const r=[];for(const o in t)if(t.hasOwnProperty(o)){const a=t[o];a.forEach(h=>{if(n(h)){if(!h.selector)throw new Error(`Can't construct a query for the property "${o}" of "${re(e)}" since the query selector wasn't defined.`);if(a.some(ig))throw new Error("Cannot combine @Input decorators with query decorators");r.push(O0(o,h))}})}return r}function x0(e){return void 0===e?null:rg(e)}function tg(e){const t=e.ngMetadataName;return"ContentChild"===t||"ContentChildren"===t}function ng(e){const t=e.ngMetadataName;return"ViewChild"===t||"ViewChildren"===t}function ig(e){return"Input"===e.ngMetadataName}function rg(e){return e.split(",").map(t=>t.trim())}const R0=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function F0(e){const t=Na();if(R0.some(r=>t.hasLifecycleHook(e,r)))return!0;const n=t.propMetadata(e);for(const r in n){const o=n[r];for(let a=0;a<o.length;a++){const h=o[a],g=h.ngMetadataName;if(ig(h)||tg(h)||ng(h)||"Output"===g||"HostBinding"===g||"HostListener"===g)return!0}}return!1}function og(e,t){let n=null,r=null;Object.defineProperty(e,Se,{get:()=>{if(null===r){const o=sg(e,t),a=ri();r=a.compileFactory(Ti,`ng:///${o.name}/\u0275fac.js`,{name:o.name,type:o.type,typeArgumentCount:0,deps:Ns(e),target:a.FactoryTarget.Pipe})}return r},configurable:!1}),Object.defineProperty(e,Ke,{get:()=>{if(null===n){const o=sg(e,t);n=ri().compilePipe(Ti,`ng:///${o.name}/\u0275pipe.js`,o)}return n},configurable:!1})}function sg(e,t){return{type:e,name:e.name,pipeName:t.name,pure:void 0===t.pure||t.pure}}const ag=ro("Directive",(e={})=>e,void 0,void 0,(e,t)=>cu(e,t)),k0=ro("Component",(e={})=>Object.assign({changeDetection:ve.Default},e),ag,void 0,(e,t)=>Zm(e,t)),N0=ro("Pipe",e=>Object.assign({pure:!0},e),void 0,void 0,(e,t)=>og(e,t)),L0=jr("Input",e=>({bindingPropertyName:e})),B0=jr("Output",e=>({bindingPropertyName:e})),j0=jr("HostBinding",e=>({hostPropertyName:e})),V0=jr("HostListener",(e,t)=>({eventName:e,args:t})),H0=ro("NgModule",e=>e,void 0,void 0,(e,t)=>Um(e,t));function ma(...e){}const uu=new Yn("Application Initializer");let Lo=(()=>{class e{constructor(n){this.appInits=n,this.resolve=ma,this.reject=ma,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,o)=>{this.resolve=r,this.reject=o})}runInitializers(){if(this.initialized)return;const n=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let o=0;o<this.appInits.length;o++){const a=this.appInits[o]();if(ic(a))n.push(a);else if(xf(a)){const h=new Promise((g,E)=>{a.subscribe({complete:g,error:E})});n.push(h)}}Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),0===n.length&&r(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(si(uu,8))},e.\u0275prov=qe({token:e,factory:e.\u0275fac}),e})();const lg=new Yn("AppId"),cg={provide:lg,useFactory:function $0(){return`${du()}${du()}${du()}`},deps:[]};function du(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const ug=new Yn("Platform Initializer"),dg=new Yn("Platform ID"),hg=new Yn("appBootstrapListener"),U0=new Yn("Application Packages Root URL");let fg=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=qe({token:e,factory:e.\u0275fac}),e})();const ga=new Yn("LocaleId"),pg=new Yn("DefaultCurrencyCode"),W0=new Yn("Translations"),z0=new Yn("TranslationsFormat");var wr=(()=>((wr=wr||{})[wr.Error=0]="Error",wr[wr.Warning=1]="Warning",wr[wr.Ignore=2]="Ignore",wr))();class mg{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let hu=(()=>{class e{compileModuleSync(n){return new ua(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),a=br(Bt(n).declarations).reduce((h,g)=>{const E=Be(g);return E&&h.push(new ca(E)),h},[]);return new mg(r,a)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=qe({token:e,factory:e.\u0275fac}),e})();const gg=new Yn("compilerOptions");class K0{}const G0=(()=>Promise.resolve(0))();function fu(e){"undefined"==typeof Zone?G0.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Hi{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Mr(!1),this.onMicrotaskEmpty=new Mr(!1),this.onStable=new Mr(!1),this.onError=new Mr(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function Q0(){let e=Kt.requestAnimationFrame,t=Kt.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function X0(e){const t=()=>{!function Y0(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Kt,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,mu(e),e.isCheckStableRunning=!0,pu(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),mu(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,a,h,g)=>{try{return _g(e),n.invokeTask(o,a,h,g)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===a.type||e.shouldCoalesceRunChangeDetection)&&t(),yg(e)}},onInvoke:(n,r,o,a,h,g,E)=>{try{return _g(e),n.invoke(o,a,h,g,E)}finally{e.shouldCoalesceRunChangeDetection&&t(),yg(e)}},onHasTask:(n,r,o,a)=>{n.hasTask(o,a),r===o&&("microTask"==a.change?(e._hasPendingMicrotasks=a.microTask,mu(e),pu(e)):"macroTask"==a.change&&(e.hasPendingMacrotasks=a.macroTask))},onHandleError:(n,r,o,a)=>(n.handleError(o,a),e.runOutsideAngular(()=>e.onError.emit(a)),!1)})}(o)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Hi.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Hi.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){const a=this._inner,h=a.scheduleEventTask("NgZoneEvent: "+o,t,Z0,ma,ma);try{return a.runTask(h,n,r)}finally{a.cancelTask(h)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const Z0={};function pu(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 mu(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function _g(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function yg(e){e._nesting--,pu(e)}class vg{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Mr,this.onMicrotaskEmpty=new Mr,this.onStable=new Mr,this.onError=new Mr}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}}let bg=(()=>{class e{constructor(n){this._ngZone=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?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:()=>{Hi.assertNotInAngularZone(),fu(()=>{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())fu(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,o){let a=-1;r&&r>0&&(a=setTimeout(()=>{this._callbacks=this._callbacks.filter(h=>h.timeoutId!==a),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:a,updateCb:o})}whenStable(n,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(n,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(n,r,o){return[]}}return e.\u0275fac=function(n){return new(n||e)(si(Hi))},e.\u0275prov=qe({token:e,factory:e.\u0275fac}),e})(),gu=(()=>{class e{constructor(){this._applications=new Map,_u.addToWindow(this)}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return _u.findTestabilityInTree(this,n,r)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=qe({token:e,factory:e.\u0275fac}),e})();class J0{addToWindow(t){}findTestabilityInTree(t,n,r){return null}}function q0(e){_u=e}let pr,_u=new J0;function Cg(e,t,n){const r=new ua(n);return Promise.resolve(r)}function Eg(e){return e.isBoundToModule}const yu=new Yn("AllowMultipleToken");class eE{constructor(t,n){this.name=t,this.token=n}}function Dg(e){if(pr&&!pr.destroyed&&!pr.injector.get(yu,!1))throw new B(400,"");pr=e.get(bu);const t=e.get(ug,null);return t&&t.forEach(n=>n()),pr}function Tg(e,t,n=[]){const r=`Platform: ${t}`,o=new Yn(r);return(a=[])=>{let h=vu();if(!h||h.injector.get(yu,!1))if(e)e(n.concat(a).concat({provide:o,useValue:!0}));else{const g=n.concat(a).concat({provide:o,useValue:!0},{provide:Il,useValue:"platform"});Dg(Vi.create({providers:g,name:r}))}return Mg()}}function Mg(e){const t=vu();if(!t)throw new B(401,"");return t}function tE(){pr&&!pr.destroyed&&pr.destroy()}function vu(){return pr&&!pr.destroyed?pr:null}let bu=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const g=function nE(e,t){let n;return n="noop"===e?new vg:("zone.js"===e?void 0:e)||new Hi({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),n}(r?r.ngZone:void 0,{ngZoneEventCoalescing:r&&r.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:r&&r.ngZoneRunCoalescing||!1}),E=[{provide:Hi,useValue:g}];return g.run(()=>{const L=Vi.create({providers:E,parent:this.injector,name:n.moduleType.name}),W=n.create(L),ye=W.injector.get(qo,null);if(!ye)throw new B(402,"");return g.runOutsideAngular(()=>{const We=g.onError.subscribe({next:rt=>{ye.handleError(rt)}});W.onDestroy(()=>{Cu(this._modules,W),We.unsubscribe()})}),function iE(e,t,n){try{const r=n();return ic(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(ye,g,()=>{const We=W.injector.get(Lo);return We.runInitializers(),We.donePromise.then(()=>(bp(W.injector.get(ga,us)||us),this._moduleDoBootstrap(W),W))})})}bootstrapModule(n,r=[]){const o=wg({},r);return Cg(0,0,n).then(a=>this.bootstrapModuleFactory(a,o))}_moduleDoBootstrap(n){const r=n.injector.get(Es);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new B(403,"");n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new B(404,"");this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(si(Vi))},e.\u0275prov=qe({token:e,factory:e.\u0275fac}),e})();function wg(e,t){return Array.isArray(t)?t.reduce(wg,e):Object.assign(Object.assign({},e),t)}let Es=(()=>{class e{constructor(n,r,o,a,h){this._zone=n,this._injector=r,this._exceptionHandler=o,this._componentFactoryResolver=a,this._initStatus=h,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const g=new _.y(L=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{L.next(this._stable),L.complete()})}),E=new _.y(L=>{let W;this._zone.runOutsideAngular(()=>{W=this._zone.onStable.subscribe(()=>{Hi.assertNotInAngularZone(),fu(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,L.next(!0))})})});const ye=this._zone.onUnstable.subscribe(()=>{Hi.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{L.next(!1)}))});return()=>{W.unsubscribe(),ye.unsubscribe()}});this.isStable=(0,u.T)(g,E.pipe((0,s.B)()))}bootstrap(n,r){if(!this._initStatus.done)throw new B(405,"");let o;o=n instanceof sa?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(o.componentType);const a=Eg(o)?void 0:this._injector.get(Fo),g=o.create(Vi.NULL,[],r||o.selector,a),E=g.location.nativeElement,L=g.injector.get(bg,null),W=L&&g.injector.get(gu);return L&&W&&W.registerApplication(E,L),g.onDestroy(()=>{this.detachView(g.hostView),Cu(this.components,g),W&&W.unregisterApplication(E)}),this._loadComponent(g),g}tick(){if(this._runningTick)throw new B(101,"");try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;Cu(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(hg,[]).concat(this._bootstrapListeners).forEach(o=>o(n))}ngOnDestroy(){this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(n){return new(n||e)(si(Hi),si(Vi),si(qo),si(ms),si(Lo))},e.\u0275prov=qe({token:e,factory:e.\u0275fac}),e})();function Cu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let Ig=!0,Ag=!1;function oE(){return Ag=!0,Ig}function sE(){if(Ag)throw new Error("Cannot enable prod mode after platform setup.");Ig=!1}function aE(e){const t=sm(e);if(!t)throw Pg(e);return new ua(t)}function lE(e){const t=sm(e);if(!t)throw Pg(e);return t}function Pg(e){return new Error(`No module with ID ${e} loaded`)}let Og=(()=>{class e{}return e.__NG_ELEMENT_ID__=xg,e})();function xg(e){return function cE(e,t,n){if(Mi(e)&&!n){const r=Nt(e.index,t);return new Ro(r,r)}return 47&e.type?new Ro(t[16],t):null}(f(),wt(),16==(16&e))}class Rg extends Og{}class uE extends Rg{}class dE{constructor(t,n){this.name=t,this.callback=n}}function hE(e){return e.map(t=>t.nativeElement)}class Eu{constructor(t){this.nativeNode=t}get parent(){const t=this.nativeNode.parentNode;return t?new Ds(t):null}get injector(){return qh(this.nativeNode)}get componentInstance(){const t=this.nativeNode;return t&&(xl(t)||Xh(t))}get context(){return xl(this.nativeNode)||Yh(this.nativeNode)}get listeners(){return tf(this.nativeNode).filter(t=>"dom"===t.type)}get references(){return function jv(e){const t=yi(e);return null===t?{}:(void 0===t.localRefs&&(t.localRefs=function ry(e,t){const n=e[1].data[t];if(n&&n.localNames){const r={};let o=n.index+1;for(let a=0;a<n.localNames.length;a+=2)r[n.localNames[a]]=e[o],o++;return r}return null}(t.lView,t.nodeIndex)),t.localRefs||{})}(this.nativeNode)}get providerTokens(){return function Lv(e){const t=yi(e);if(null===t)return[];const r=t.lView[1],o=r.data[t.nodeIndex],a=[],g=o.directiveEnd;for(let E=1048575&o.providerIndexes;E<g;E++){let L=r.data[E];Hv(L)&&(L=L.type),a.push(L)}return a}(this.nativeNode)}}class Ds extends Eu{constructor(t){super(t)}get nativeElement(){return this.nativeNode.nodeType==Node.ELEMENT_NODE?this.nativeNode:null}get name(){const t=yi(this.nativeNode);return null!==t?t.lView[1].data[t.nodeIndex].value:this.nativeNode.nodeName}get properties(){const t=yi(this.nativeNode);if(null===t)return{};const n=t.lView,r=n[1].data,o=r[t.nodeIndex],a={};return function fE(e,t){if(e){let n=Object.getPrototypeOf(e);const r=Node.prototype;for(;null!==n&&n!==r;){const o=Object.getOwnPropertyDescriptors(n);for(let a in o)if(!a.startsWith("__")&&!a.startsWith("on")){const h=e[a];pE(h)&&(t[a]=h)}n=Object.getPrototypeOf(n)}}}(this.nativeElement,a),function mE(e,t,n,r){let o=t.propertyBindings;if(null!==o)for(let a=0;a<o.length;a++){const h=o[a],E=r[h].split("\ufffd"),L=E[0];if(E.length>1){let W=E[1];for(let ye=1;ye<E.length-1;ye++)W+=K(n[h+ye-1])+E[ye+1];e[L]=W}else e[L]=n[h]}}(a,o,n,r),a}get attributes(){const t={},n=this.nativeElement;if(!n)return t;const r=yi(n);if(null===r)return{};const a=r.lView[1].data[r.nodeIndex].attrs,h=[];if(a){let E=0;for(;E<a.length;){const L=a[E];if("string"!=typeof L)break;t[L]=a[E+1],h.push(L.toLowerCase()),E+=2}}const g=n.attributes;for(let E=0;E<g.length;E++){const L=g[E],W=L.name.toLowerCase();-1===h.indexOf(W)&&(t[W]=L.value)}return t}get styles(){return this.nativeElement&&this.nativeElement.style?this.nativeElement.style:{}}get classes(){const t={},r=this.nativeElement.className;return("string"!=typeof r?r.baseVal.split(" "):r.split(" ")).forEach(a=>t[a]=!0),t}get childNodes(){const t=this.nativeNode.childNodes,n=[];for(let r=0;r<t.length;r++)n.push(Su(t[r]));return n}get children(){const t=this.nativeElement;if(!t)return[];const n=t.children,r=[];for(let o=0;o<n.length;o++)r.push(Su(n[o]));return r}query(t){return this.queryAll(t)[0]||null}queryAll(t){const n=[];return Fg(this,t,n,!0),n}queryAllNodes(t){const n=[];return Fg(this,t,n,!1),n}triggerEventHandler(t,n){const r=this.nativeNode,o=[];this.listeners.forEach(a=>{if(a.name===t){const h=a.callback;h.call(r,n),o.push(h)}}),"function"==typeof r.eventListeners&&r.eventListeners(t).forEach(a=>{if(-1!==a.toString().indexOf("__ngUnwrap__")){const h=a("__ngUnwrap__");return-1===o.indexOf(h)&&h.call(r,n)}})}}function pE(e){return"string"==typeof e||"boolean"==typeof e||"number"==typeof e||null===e}function Fg(e,t,n,r){const o=yi(e.nativeNode);null!==o?Yr(o.lView[1].data[o.nodeIndex],o.lView,t,n,r,e.nativeNode):Tu(e.nativeNode,t,n,r)}function Yr(e,t,n,r,o,a){const h=function ze(e,t){const n=null===e?-1:e.index;return-1!==n?Ln(t[n]):null}(e,t);if(11&e.type){if(Du(h,n,r,o,a),Mi(e)){const E=Nt(e.index,t);E&&E[1].firstChild&&Yr(E[1].firstChild,E,n,r,o,a)}else e.child&&Yr(e.child,t,n,r,o,a),h&&Tu(h,n,r,o);const g=t[e.index];Gn(g)&&kg(g,n,r,o,a)}else if(4&e.type){const g=t[e.index];Du(g[7],n,r,o,a),kg(g,n,r,o,a)}else if(16&e.type){const g=t[16],L=g[6].projection[e.projection];if(Array.isArray(L))for(let W of L)Du(W,n,r,o,a);else if(L){const W=g[3];Yr(W[1].data[L.index],W,n,r,o,a)}}else e.child&&Yr(e.child,t,n,r,o,a);if(a!==h){const g=4&e.flags?e.projectionNext:e.next;g&&Yr(g,t,n,r,o,a)}}function kg(e,t,n,r,o){for(let a=10;a<e.length;a++){const h=e[a],g=h[1].firstChild;g&&Yr(g,h,t,n,r,o)}}function Du(e,t,n,r,o){if(o!==e){const a=_a(e);if(!a)return;(r&&a instanceof Ds&&t(a)&&-1===n.indexOf(a)||!r&&t(a)&&-1===n.indexOf(a))&&n.push(a)}}function Tu(e,t,n,r){const o=e.childNodes,a=o.length;for(let h=0;h<a;h++){const g=o[h],E=_a(g);E&&((r&&E instanceof Ds&&t(E)&&-1===n.indexOf(E)||!r&&t(E)&&-1===n.indexOf(E))&&n.push(E),Tu(g,t,n,r))}}const wu="__ng_debug__";function Su(e){return e instanceof Node?(e.hasOwnProperty(wu)||(e[wu]=e.nodeType==Node.ELEMENT_NODE?new Ds(e):new Eu(e)),e[wu]):null}const _a=Su,_E=function gE(e){return null},yE=Eu,vE=Ds;class Ng{constructor(){}supports(t){return os(t)}create(t){return new Lg(t)}}const bE=(e,t)=>t;class Lg{constructor(t){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=t||bE}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,a=null;for(;n||r;){const h=!r||n&&n.currentIndex<jg(r,o,a)?n:r,g=jg(h,o,a),E=h.currentIndex;if(h===r)o--,r=r._nextRemoved;else if(n=n._next,null==h.previousIndex)o++;else{a||(a=[]);const L=g-o,W=E-o;if(L!=W){for(let We=0;We<L;We++){const rt=We<a.length?a[We]:a[We]=0,yt=rt+We;W<=yt&&yt<L&&(a[We]=rt+1)}a[h.previousIndex]=W-L}}g!==E&&t(h,g,E)}}forEachPreviousItem(t){let n;for(n=this._previousItHead;null!==n;n=n._nextPrevious)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}forEachMovedItem(t){let n;for(n=this._movesHead;null!==n;n=n._nextMoved)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;null!==n;n=n._nextIdentityChange)t(n)}diff(t){if(null==t&&(t=[]),!os(t))throw new Error(`Error trying to diff '${T(t)}'. Only arrays and iterables are allowed`);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let o,a,h,n=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let g=0;g<this.length;g++)a=t[g],h=this._trackByFn(g,a),null!==n&&Object.is(n.trackById,h)?(r&&(n=this._verifyReinsertion(n,a,h,g)),Object.is(n.item,a)||this._addIdentityChange(n,a)):(n=this._mismatch(n,a,h,g),r=!0),n=n._next}else o=0,function qv(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[yo()]();let r;for(;!(r=n.next()).done;)t(r.value)}}(t,g=>{h=this._trackByFn(o,g),null!==n&&Object.is(n.trackById,h)?(r&&(n=this._verifyReinsertion(n,g,h,o)),Object.is(n.item,g)||this._addIdentityChange(n,g)):(n=this._mismatch(n,g,h,o),r=!0),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let a;return null===t?a=this._itTail:(a=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,a,o)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,o))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,a,o)):t=this._addAfter(new CE(n,r),a,o),t}_verifyReinsertion(t,n,r,o){let a=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==a?t=this._reinsertAfter(a,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}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(t,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const o=t._prevRemoved,a=t._nextRemoved;return null===o?this._removalsHead=a:o._nextRemoved=a,null===a?this._removalsTail=o:a._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const o=null===n?this._itHead:n._next;return t._next=o,t._prev=n,null===o?this._itTail=t:o._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new Bg),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Bg),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class CE{constructor(t,n){this.item=t,this.trackById=n,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 EE{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class Bg{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new EE,this.map.set(n,r)),r.add(t)}get(t,n){const o=this.map.get(t);return o?o.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function jg(e,t,n){const r=e.previousIndex;if(null===r)return r;let o=0;return n&&r<n.length&&(o=n[r]),r+t+o}class Vg{constructor(){}supports(t){return t instanceof Map||Ll(t)}create(){return new DE}}class DE{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let n;for(n=this._mapHead;null!==n;n=n._next)t(n)}forEachPreviousItem(t){let n;for(n=this._previousMapHead;null!==n;n=n._nextPrevious)t(n)}forEachChangedItem(t){let n;for(n=this._changesHead;null!==n;n=n._nextChanged)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}diff(t){if(t){if(!(t instanceof Map||Ll(t)))throw new Error(`Error trying to diff '${T(t)}'. Only maps and objects are allowed`)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._mapHead;if(this._appendAfter=null,this._forEach(t,(r,o)=>{if(n&&n.key===o)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const a=this._getOrCreateRecordForKey(o,r);n=this._insertBeforeOrAppend(n,a)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;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(t,n){if(t){const r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const o=this._records.get(t);this._maybeAddToChanges(o,n);const a=o._prev,h=o._next;return a&&(a._next=h),h&&(h._prev=a),o._next=null,o._prev=null,o}const r=new TE(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}}class TE{constructor(t){this.key=t,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 Hg(){return new ya([new Ng])}let ya=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(null!=r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||Hg()),deps:[[e,new zr,new Wr]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(null!=r)return r;throw new Error(`Cannot find a differ supporting object '${n}' of type '${function ME(e){return e.name||typeof e}(n)}'`)}}return e.\u0275prov=qe({token:e,providedIn:"root",factory:Hg}),e})();function $g(){return new va([new Vg])}let va=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||$g()),deps:[[e,new zr,new Wr]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(r)return r;throw new Error(`Cannot find a differ supporting object '${n}'`)}}return e.\u0275prov=qe({token:e,providedIn:"root",factory:$g}),e})();const wE=[new Vg],Ug=new ya([new Ng]),Wg=new va(wE),IE=Tg(null,"core",[{provide:dg,useValue:"unknown"},{provide:bu,deps:[Vi]},{provide:gu,deps:[]},{provide:fg,deps:[]}]),RE=[{provide:Es,useClass:Es,deps:[Hi,Vi,qo,ms,Lo]},{provide:e0,deps:[Hi],useFactory:function FE(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(n){t.push(n)}}},{provide:Lo,useClass:Lo,deps:[[new Wr,uu]]},{provide:hu,useClass:hu,deps:[]},cg,{provide:ya,useFactory:function AE(){return Ug},deps:[]},{provide:va,useFactory:function PE(){return Wg},deps:[]},{provide:ga,useFactory:function OE(e){return e||function xE(){return"undefined"!=typeof $localize&&$localize.locale||us}()},deps:[[new Go(ga),new Wr,new zr]]},{provide:pg,useValue:"USD"}];let kE=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(si(Es))},e.\u0275mod=Ut({type:e}),e.\u0275inj=he({providers:RE}),e})();const NE=!0;function LE(e){return ri().compileDirectiveDeclaration(Ti,`ng:///${e.type.name}/\u0275fac.js`,e)}function BE(e){var t,n;nm(e.type,e.decorators,null!==(t=e.ctorParameters)&&void 0!==t?t:null,null!==(n=e.propDecorators)&&void 0!==n?n:null)}function jE(e){return ri().compileComponentDeclaration(Ti,`ng:///${e.type.name}/\u0275cmp.js`,e)}function VE(e){return ri(function HE(e){switch(e){case ii.Directive:return"directive";case ii.Component:return"component";case ii.Injectable:return"injectable";case ii.Pipe:return"pipe";case ii.NgModule:return"NgModule"}}(e.target)).compileFactoryDeclaration(Ti,`ng:///${e.type.name}/\u0275fac.js`,e)}function $E(e){return ri().compileInjectableDeclaration(Ti,`ng:///${e.type.name}/\u0275prov.js`,e)}function UE(e){return ri().compileInjectorDeclaration(Ti,`ng:///${e.type.name}/\u0275inj.js`,e)}function WE(e){return ri().compileNgModuleDeclaration(Ti,`ng:///${e.type.name}/\u0275mod.js`,e)}function zE(e){return ri().compilePipeDeclaration(Ti,`ng:///${e.type.name}/\u0275pipe.js`,e)}},3075:(Le,m,l)=>{"use strict";l.r(m),l.d(m,{AbstractControl:()=>jt,AbstractControlDirective:()=>Xe,AbstractFormGroupDirective:()=>Un,COMPOSITION_BUFFER_MODE:()=>S,CheckboxControlValueAccessor:()=>y,CheckboxRequiredValidator:()=>ki,ControlContainer:()=>Tt,DefaultValueAccessor:()=>N,EmailValidator:()=>Rn,FormArray:()=>Ht,FormArrayName:()=>Di,FormBuilder:()=>In,FormControl:()=>qt,FormControlDirective:()=>Wi,FormControlName:()=>Ki,FormGroup:()=>vn,FormGroupDirective:()=>wi,FormGroupName:()=>ci,FormsModule:()=>Nt,MaxLengthValidator:()=>x,MaxValidator:()=>Zi,MinLengthValidator:()=>ar,MinValidator:()=>Ri,NG_ASYNC_VALIDATORS:()=>re,NG_VALIDATORS:()=>K,NG_VALUE_ACCESSOR:()=>T,NgControl:()=>pt,NgControlStatus:()=>k,NgControlStatusGroup:()=>ne,NgForm:()=>Hn,NgModel:()=>Gn,NgModelGroup:()=>ni,NgSelectOption:()=>_r,NumberValueAccessor:()=>hi,PatternValidator:()=>R,RadioControlValueAccessor:()=>Qn,RangeValueAccessor:()=>Ei,ReactiveFormsModule:()=>Dn,RequiredValidator:()=>Yi,SelectControlValueAccessor:()=>Ii,SelectMultipleControlValueAccessor:()=>mi,VERSION:()=>un,Validators:()=>pe,\u0275InternalFormsSharedModule:()=>Dt,\u0275NgNoValidate:()=>Ci,\u0275NgSelectMultipleOption:()=>ir});var i=l(5e3),d=l(9808),_=l(188),u=l(4128),s=l(4004);let b=(()=>{class F{constructor(v,J){this._renderer=v,this._elementRef=J,this.onChange=ut=>{},this.onTouched=()=>{}}setProperty(v,J){this._renderer.setProperty(this._elementRef.nativeElement,v,J)}registerOnTouched(v){this.onTouched=v}registerOnChange(v){this.onChange=v}setDisabledState(v){this.setProperty("disabled",v)}}return F.\u0275fac=function(v){return new(v||F)(i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(i.ElementRef))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F}),F})(),C=(()=>{class F extends b{}return F.\u0275fac=function(){let A;return function(J){return(A||(A=i.\u0275\u0275getInheritedFactory(F)))(J||F)}}(),F.\u0275dir=i.\u0275\u0275defineDirective({type:F,features:[i.\u0275\u0275InheritDefinitionFeature]}),F})();const T=new i.InjectionToken("NgValueAccessor"),p={provide:T,useExisting:(0,i.forwardRef)(()=>y),multi:!0};let y=(()=>{class F extends C{writeValue(v){this.setProperty("checked",v)}}return F.\u0275fac=function(){let A;return function(J){return(A||(A=i.\u0275\u0275getInheritedFactory(F)))(J||F)}}(),F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(v,J){1&v&&i.\u0275\u0275listener("change",function($t){return J.onChange($t.target.checked)})("blur",function(){return J.onTouched()})},features:[i.\u0275\u0275ProvidersFeature([p]),i.\u0275\u0275InheritDefinitionFeature]}),F})();const P={provide:T,useExisting:(0,i.forwardRef)(()=>N),multi:!0},S=new i.InjectionToken("CompositionEventMode");let N=(()=>{class F extends b{constructor(v,J,ut){super(v,J),this._compositionMode=ut,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function O(){const F=(0,d.\u0275getDOM)()?(0,d.\u0275getDOM)().getUserAgent():"";return/android (\d+)/.test(F.toLowerCase())}())}writeValue(v){this.setProperty("value",null==v?"":v)}_handleInput(v){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(v)}_compositionStart(){this._composing=!0}_compositionEnd(v){this._composing=!1,this._compositionMode&&this.onChange(v)}}return F.\u0275fac=function(v){return new(v||F)(i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(S,8))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,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(v,J){1&v&&i.\u0275\u0275listener("input",function($t){return J._handleInput($t.target.value)})("blur",function(){return J.onTouched()})("compositionstart",function(){return J._compositionStart()})("compositionend",function($t){return J._compositionEnd($t.target.value)})},features:[i.\u0275\u0275ProvidersFeature([P]),i.\u0275\u0275InheritDefinitionFeature]}),F})();function B(F){return null==F||0===F.length}function ce(F){return null!=F&&"number"==typeof F.length}const K=new i.InjectionToken("NgValidators"),re=new i.InjectionToken("NgAsyncValidators"),Me=/^(?=.{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 pe{static min(A){return be(A)}static max(A){return ue(A)}static required(A){return xe(A)}static requiredTrue(A){return He(A)}static email(A){return et(A)}static minLength(A){return ct(A)}static maxLength(A){return X(A)}static pattern(A){return me(A)}static nullValidator(A){return null}static compose(A){return Te(A)}static composeAsync(A){return vt(A)}}function be(F){return A=>{if(B(A.value)||B(F))return null;const v=parseFloat(A.value);return!isNaN(v)&&v<F?{min:{min:F,actual:A.value}}:null}}function ue(F){return A=>{if(B(A.value)||B(F))return null;const v=parseFloat(A.value);return!isNaN(v)&&v>F?{max:{max:F,actual:A.value}}:null}}function xe(F){return B(F.value)?{required:!0}:null}function He(F){return!0===F.value?null:{required:!0}}function et(F){return B(F.value)||Me.test(F.value)?null:{email:!0}}function ct(F){return A=>B(A.value)||!ce(A.value)?null:A.value.length<F?{minlength:{requiredLength:F,actualLength:A.value.length}}:null}function X(F){return A=>ce(A.value)&&A.value.length>F?{maxlength:{requiredLength:F,actualLength:A.value.length}}:null}function me(F){if(!F)return z;let A,v;return"string"==typeof F?(v="","^"!==F.charAt(0)&&(v+="^"),v+=F,"$"!==F.charAt(F.length-1)&&(v+="$"),A=new RegExp(v)):(v=F.toString(),A=F),J=>{if(B(J.value))return null;const ut=J.value;return A.test(ut)?null:{pattern:{requiredPattern:v,actualValue:ut}}}}function z(F){return null}function oe(F){return null!=F}function ke(F){const A=(0,i.\u0275isPromise)(F)?(0,_.D)(F):F;return(0,i.\u0275isObservable)(A),A}function de(F){let A={};return F.forEach(v=>{A=null!=v?Object.assign(Object.assign({},A),v):A}),0===Object.keys(A).length?null:A}function Ue(F,A){return A.map(v=>v(F))}function Je(F){return F.map(A=>function fe(F){return!F.validate}(A)?A:v=>A.validate(v))}function Te(F){if(!F)return null;const A=F.filter(oe);return 0==A.length?null:function(v){return de(Ue(v,A))}}function Ge(F){return null!=F?Te(Je(F)):null}function vt(F){if(!F)return null;const A=F.filter(oe);return 0==A.length?null:function(v){const J=Ue(v,A).map(ke);return(0,u.D)(J).pipe((0,s.U)(de))}}function St(F){return null!=F?vt(Je(F)):null}function Re(F,A){return null===F?[A]:Array.isArray(F)?[...F,A]:[F,A]}function qe(F){return F._rawValidators}function Y(F){return F._rawAsyncValidators}function he(F){return F?Array.isArray(F)?F:[F]:[]}function Ee(F,A){return Array.isArray(F)?F.includes(A):F===A}function Ie(F,A){const v=he(A);return he(F).forEach(ut=>{Ee(v,ut)||v.push(ut)}),v}function ge(F,A){return he(A).filter(v=>!Ee(F,v))}class Xe{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(A){this._rawValidators=A||[],this._composedValidatorFn=Ge(this._rawValidators)}_setAsyncValidators(A){this._rawAsyncValidators=A||[],this._composedAsyncValidatorFn=St(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(A){this._onDestroyCallbacks.push(A)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(A=>A()),this._onDestroyCallbacks=[]}reset(A){this.control&&this.control.reset(A)}hasError(A,v){return!!this.control&&this.control.hasError(A,v)}getError(A,v){return this.control?this.control.getError(A,v):null}}class pt extends Xe{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Tt extends Xe{get formDirective(){return null}get path(){return null}}class Rt{constructor(A){this._cd=A}is(A){var v,J,ut;return"submitted"===A?!!(null===(v=this._cd)||void 0===v?void 0:v.submitted):!!(null===(ut=null===(J=this._cd)||void 0===J?void 0:J.control)||void 0===ut?void 0:ut[A])}}let k=(()=>{class F extends Rt{constructor(v){super(v)}}return F.\u0275fac=function(v){return new(v||F)(i.\u0275\u0275directiveInject(pt,2))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(v,J){2&v&&i.\u0275\u0275classProp("ng-untouched",J.is("untouched"))("ng-touched",J.is("touched"))("ng-pristine",J.is("pristine"))("ng-dirty",J.is("dirty"))("ng-valid",J.is("valid"))("ng-invalid",J.is("invalid"))("ng-pending",J.is("pending"))},features:[i.\u0275\u0275InheritDefinitionFeature]}),F})(),ne=(()=>{class F extends Rt{constructor(v){super(v)}}return F.\u0275fac=function(v){return new(v||F)(i.\u0275\u0275directiveInject(Tt,10))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(v,J){2&v&&i.\u0275\u0275classProp("ng-untouched",J.is("untouched"))("ng-touched",J.is("touched"))("ng-pristine",J.is("pristine"))("ng-dirty",J.is("dirty"))("ng-valid",J.is("valid"))("ng-invalid",J.is("invalid"))("ng-pending",J.is("pending"))("ng-submitted",J.is("submitted"))},features:[i.\u0275\u0275InheritDefinitionFeature]}),F})();function Qt(F,A){return[...A.path,F]}function Ot(F,A){Qe(F,A),A.valueAccessor.writeValue(F.value),function De(F,A){A.valueAccessor.registerOnChange(v=>{F._pendingValue=v,F._pendingChange=!0,F._pendingDirty=!0,"change"===F.updateOn&&I(F,A)})}(F,A),function M(F,A){const v=(J,ut)=>{A.valueAccessor.writeValue(J),ut&&A.viewToModelUpdate(J)};F.registerOnChange(v),A._registerOnDestroy(()=>{F._unregisterOnChange(v)})}(F,A),function w(F,A){A.valueAccessor.registerOnTouched(()=>{F._pendingTouched=!0,"blur"===F.updateOn&&F._pendingChange&&I(F,A),"submit"!==F.updateOn&&F.markAsTouched()})}(F,A),function Ke(F,A){if(A.valueAccessor.setDisabledState){const v=J=>{A.valueAccessor.setDisabledState(J)};F.registerOnDisabledChange(v),A._registerOnDestroy(()=>{F._unregisterOnDisabledChange(v)})}}(F,A)}function bn(F,A,v=!0){const J=()=>{};A.valueAccessor&&(A.valueAccessor.registerOnChange(J),A.valueAccessor.registerOnTouched(J)),Se(F,A),F&&(A._invokeOnDestroyCallbacks(),F._registerOnCollectionChange(()=>{}))}function at(F,A){F.forEach(v=>{v.registerOnValidatorChange&&v.registerOnValidatorChange(A)})}function Qe(F,A){const v=qe(F);null!==A.validator?F.setValidators(Re(v,A.validator)):"function"==typeof v&&F.setValidators([v]);const J=Y(F);null!==A.asyncValidator?F.setAsyncValidators(Re(J,A.asyncValidator)):"function"==typeof J&&F.setAsyncValidators([J]);const ut=()=>F.updateValueAndValidity();at(A._rawValidators,ut),at(A._rawAsyncValidators,ut)}function Se(F,A){let v=!1;if(null!==F){if(null!==A.validator){const ut=qe(F);if(Array.isArray(ut)&&ut.length>0){const $t=ut.filter(An=>An!==A.validator);$t.length!==ut.length&&(v=!0,F.setValidators($t))}}if(null!==A.asyncValidator){const ut=Y(F);if(Array.isArray(ut)&&ut.length>0){const $t=ut.filter(An=>An!==A.asyncValidator);$t.length!==ut.length&&(v=!0,F.setAsyncValidators($t))}}}const J=()=>{};return at(A._rawValidators,J),at(A._rawAsyncValidators,J),v}function I(F,A){F._pendingDirty&&F.markAsDirty(),F.setValue(F._pendingValue,{emitModelToViewChange:!1}),A.viewToModelUpdate(F._pendingValue),F._pendingChange=!1}function G(F,A){Qe(F,A)}function gn(F,A){if(!F.hasOwnProperty("model"))return!1;const v=F.model;return!!v.isFirstChange()||!Object.is(A,v.currentValue)}function $e(F,A){F._syncPendingControls(),A.forEach(v=>{const J=v.control;"submit"===J.updateOn&&J._pendingChange&&(v.viewToModelUpdate(J._pendingValue),J._pendingChange=!1)})}function le(F,A){if(!A)return null;let v,J,ut;return Array.isArray(A),A.forEach($t=>{$t.constructor===N?v=$t:function Ve(F){return Object.getPrototypeOf(F.constructor)===C}($t)?J=$t:ut=$t}),ut||J||v||null}function Be(F,A){const v=F.indexOf(A);v>-1&&F.splice(v,1)}const Bt="VALID",fn="INVALID",En="PENDING",$n="DISABLED";function Jn(F){return(H(F)?F.validators:F)||null}function Nn(F){return Array.isArray(F)?Ge(F):F||null}function zn(F,A){return(H(A)?A.asyncValidators:F)||null}function Bn(F){return Array.isArray(F)?St(F):F||null}function H(F){return null!=F&&!Array.isArray(F)&&"object"==typeof F}const we=F=>F instanceof qt,U=F=>F instanceof vn,Ae=F=>F instanceof Ht;function tt(F){return we(F)?F.value:F.getRawValue()}function lt(F,A){const v=U(F),J=F.controls;if(!(v?Object.keys(J):J).length)throw new i.\u0275RuntimeError(1e3,"");if(!J[A])throw new i.\u0275RuntimeError(1001,"")}function At(F,A){U(F),F._forEachChild((J,ut)=>{if(void 0===A[ut])throw new i.\u0275RuntimeError(1002,"")})}class jt{constructor(A,v){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=A,this._rawAsyncValidators=v,this._composedValidatorFn=Nn(this._rawValidators),this._composedAsyncValidatorFn=Bn(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(A){this._rawValidators=this._composedValidatorFn=A}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(A){this._rawAsyncValidators=this._composedAsyncValidatorFn=A}get parent(){return this._parent}get valid(){return this.status===Bt}get invalid(){return this.status===fn}get pending(){return this.status==En}get disabled(){return this.status===$n}get enabled(){return this.status!==$n}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(A){this._rawValidators=A,this._composedValidatorFn=Nn(A)}setAsyncValidators(A){this._rawAsyncValidators=A,this._composedAsyncValidatorFn=Bn(A)}addValidators(A){this.setValidators(Ie(A,this._rawValidators))}addAsyncValidators(A){this.setAsyncValidators(Ie(A,this._rawAsyncValidators))}removeValidators(A){this.setValidators(ge(A,this._rawValidators))}removeAsyncValidators(A){this.setAsyncValidators(ge(A,this._rawAsyncValidators))}hasValidator(A){return Ee(this._rawValidators,A)}hasAsyncValidator(A){return Ee(this._rawAsyncValidators,A)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(A={}){this.touched=!0,this._parent&&!A.onlySelf&&this._parent.markAsTouched(A)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(A=>A.markAllAsTouched())}markAsUntouched(A={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(v=>{v.markAsUntouched({onlySelf:!0})}),this._parent&&!A.onlySelf&&this._parent._updateTouched(A)}markAsDirty(A={}){this.pristine=!1,this._parent&&!A.onlySelf&&this._parent.markAsDirty(A)}markAsPristine(A={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(v=>{v.markAsPristine({onlySelf:!0})}),this._parent&&!A.onlySelf&&this._parent._updatePristine(A)}markAsPending(A={}){this.status=En,!1!==A.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!A.onlySelf&&this._parent.markAsPending(A)}disable(A={}){const v=this._parentMarkedDirty(A.onlySelf);this.status=$n,this.errors=null,this._forEachChild(J=>{J.disable(Object.assign(Object.assign({},A),{onlySelf:!0}))}),this._updateValue(),!1!==A.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},A),{skipPristineCheck:v})),this._onDisabledChange.forEach(J=>J(!0))}enable(A={}){const v=this._parentMarkedDirty(A.onlySelf);this.status=Bt,this._forEachChild(J=>{J.enable(Object.assign(Object.assign({},A),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:A.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},A),{skipPristineCheck:v})),this._onDisabledChange.forEach(J=>J(!1))}_updateAncestors(A){this._parent&&!A.onlySelf&&(this._parent.updateValueAndValidity(A),A.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(A){this._parent=A}updateValueAndValidity(A={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Bt||this.status===En)&&this._runAsyncValidator(A.emitEvent)),!1!==A.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!A.onlySelf&&this._parent.updateValueAndValidity(A)}_updateTreeValidity(A={emitEvent:!0}){this._forEachChild(v=>v._updateTreeValidity(A)),this.updateValueAndValidity({onlySelf:!0,emitEvent:A.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?$n:Bt}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(A){if(this.asyncValidator){this.status=En,this._hasOwnPendingAsyncValidator=!0;const v=ke(this.asyncValidator(this));this._asyncValidationSubscription=v.subscribe(J=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(J,{emitEvent:A})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(A,v={}){this.errors=A,this._updateControlsErrors(!1!==v.emitEvent)}get(A){return function di(F,A,v){if(null==A||(Array.isArray(A)||(A=A.split(v)),Array.isArray(A)&&0===A.length))return null;let J=F;return A.forEach(ut=>{J=U(J)?J.controls.hasOwnProperty(ut)?J.controls[ut]:null:Ae(J)&&J.at(ut)||null}),J}(this,A,".")}getError(A,v){const J=v?this.get(v):this;return J&&J.errors?J.errors[A]:null}hasError(A,v){return!!this.getError(A,v)}get root(){let A=this;for(;A._parent;)A=A._parent;return A}_updateControlsErrors(A){this.status=this._calculateStatus(),A&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(A)}_initObservables(){this.valueChanges=new i.EventEmitter,this.statusChanges=new i.EventEmitter}_calculateStatus(){return this._allControlsDisabled()?$n:this.errors?fn:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(En)?En:this._anyControlsHaveStatus(fn)?fn:Bt}_anyControlsHaveStatus(A){return this._anyControls(v=>v.status===A)}_anyControlsDirty(){return this._anyControls(A=>A.dirty)}_anyControlsTouched(){return this._anyControls(A=>A.touched)}_updatePristine(A={}){this.pristine=!this._anyControlsDirty(),this._parent&&!A.onlySelf&&this._parent._updatePristine(A)}_updateTouched(A={}){this.touched=this._anyControlsTouched(),this._parent&&!A.onlySelf&&this._parent._updateTouched(A)}_isBoxedValue(A){return"object"==typeof A&&null!==A&&2===Object.keys(A).length&&"value"in A&&"disabled"in A}_registerOnCollectionChange(A){this._onCollectionChange=A}_setUpdateStrategy(A){H(A)&&null!=A.updateOn&&(this._updateOn=A.updateOn)}_parentMarkedDirty(A){return!A&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class qt extends jt{constructor(A=null,v,J){super(Jn(v),zn(J,v)),this._onChange=[],this._pendingChange=!1,this._applyFormState(A),this._setUpdateStrategy(v),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(A,v={}){this.value=this._pendingValue=A,this._onChange.length&&!1!==v.emitModelToViewChange&&this._onChange.forEach(J=>J(this.value,!1!==v.emitViewToModelChange)),this.updateValueAndValidity(v)}patchValue(A,v={}){this.setValue(A,v)}reset(A=null,v={}){this._applyFormState(A),this.markAsPristine(v),this.markAsUntouched(v),this.setValue(this.value,v),this._pendingChange=!1}_updateValue(){}_anyControls(A){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(A){this._onChange.push(A)}_unregisterOnChange(A){Be(this._onChange,A)}registerOnDisabledChange(A){this._onDisabledChange.push(A)}_unregisterOnDisabledChange(A){Be(this._onDisabledChange,A)}_forEachChild(A){}_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(A){this._isBoxedValue(A)?(this.value=this._pendingValue=A.value,A.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=A}}class vn extends jt{constructor(A,v,J){super(Jn(v),zn(J,v)),this.controls=A,this._initObservables(),this._setUpdateStrategy(v),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(A,v){return this.controls[A]?this.controls[A]:(this.controls[A]=v,v.setParent(this),v._registerOnCollectionChange(this._onCollectionChange),v)}addControl(A,v,J={}){this.registerControl(A,v),this.updateValueAndValidity({emitEvent:J.emitEvent}),this._onCollectionChange()}removeControl(A,v={}){this.controls[A]&&this.controls[A]._registerOnCollectionChange(()=>{}),delete this.controls[A],this.updateValueAndValidity({emitEvent:v.emitEvent}),this._onCollectionChange()}setControl(A,v,J={}){this.controls[A]&&this.controls[A]._registerOnCollectionChange(()=>{}),delete this.controls[A],v&&this.registerControl(A,v),this.updateValueAndValidity({emitEvent:J.emitEvent}),this._onCollectionChange()}contains(A){return this.controls.hasOwnProperty(A)&&this.controls[A].enabled}setValue(A,v={}){At(this,A),Object.keys(A).forEach(J=>{lt(this,J),this.controls[J].setValue(A[J],{onlySelf:!0,emitEvent:v.emitEvent})}),this.updateValueAndValidity(v)}patchValue(A,v={}){null!=A&&(Object.keys(A).forEach(J=>{this.controls[J]&&this.controls[J].patchValue(A[J],{onlySelf:!0,emitEvent:v.emitEvent})}),this.updateValueAndValidity(v))}reset(A={},v={}){this._forEachChild((J,ut)=>{J.reset(A[ut],{onlySelf:!0,emitEvent:v.emitEvent})}),this._updatePristine(v),this._updateTouched(v),this.updateValueAndValidity(v)}getRawValue(){return this._reduceChildren({},(A,v,J)=>(A[J]=tt(v),A))}_syncPendingControls(){let A=this._reduceChildren(!1,(v,J)=>!!J._syncPendingControls()||v);return A&&this.updateValueAndValidity({onlySelf:!0}),A}_forEachChild(A){Object.keys(this.controls).forEach(v=>{const J=this.controls[v];J&&A(J,v)})}_setUpControls(){this._forEachChild(A=>{A.setParent(this),A._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(A){for(const v of Object.keys(this.controls)){const J=this.controls[v];if(this.contains(v)&&A(J))return!0}return!1}_reduceValue(){return this._reduceChildren({},(A,v,J)=>((v.enabled||this.disabled)&&(A[J]=v.value),A))}_reduceChildren(A,v){let J=A;return this._forEachChild((ut,$t)=>{J=v(J,ut,$t)}),J}_allControlsDisabled(){for(const A of Object.keys(this.controls))if(this.controls[A].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class Ht extends jt{constructor(A,v,J){super(Jn(v),zn(J,v)),this.controls=A,this._initObservables(),this._setUpdateStrategy(v),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(A){return this.controls[A]}push(A,v={}){this.controls.push(A),this._registerControl(A),this.updateValueAndValidity({emitEvent:v.emitEvent}),this._onCollectionChange()}insert(A,v,J={}){this.controls.splice(A,0,v),this._registerControl(v),this.updateValueAndValidity({emitEvent:J.emitEvent})}removeAt(A,v={}){this.controls[A]&&this.controls[A]._registerOnCollectionChange(()=>{}),this.controls.splice(A,1),this.updateValueAndValidity({emitEvent:v.emitEvent})}setControl(A,v,J={}){this.controls[A]&&this.controls[A]._registerOnCollectionChange(()=>{}),this.controls.splice(A,1),v&&(this.controls.splice(A,0,v),this._registerControl(v)),this.updateValueAndValidity({emitEvent:J.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(A,v={}){At(this,A),A.forEach((J,ut)=>{lt(this,ut),this.at(ut).setValue(J,{onlySelf:!0,emitEvent:v.emitEvent})}),this.updateValueAndValidity(v)}patchValue(A,v={}){null!=A&&(A.forEach((J,ut)=>{this.at(ut)&&this.at(ut).patchValue(J,{onlySelf:!0,emitEvent:v.emitEvent})}),this.updateValueAndValidity(v))}reset(A=[],v={}){this._forEachChild((J,ut)=>{J.reset(A[ut],{onlySelf:!0,emitEvent:v.emitEvent})}),this._updatePristine(v),this._updateTouched(v),this.updateValueAndValidity(v)}getRawValue(){return this.controls.map(A=>tt(A))}clear(A={}){this.controls.length<1||(this._forEachChild(v=>v._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:A.emitEvent}))}_syncPendingControls(){let A=this.controls.reduce((v,J)=>!!J._syncPendingControls()||v,!1);return A&&this.updateValueAndValidity({onlySelf:!0}),A}_forEachChild(A){this.controls.forEach((v,J)=>{A(v,J)})}_updateValue(){this.value=this.controls.filter(A=>A.enabled||this.disabled).map(A=>A.value)}_anyControls(A){return this.controls.some(v=>v.enabled&&A(v))}_setUpControls(){this._forEachChild(A=>this._registerControl(A))}_allControlsDisabled(){for(const A of this.controls)if(A.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(A){A.setParent(this),A._registerOnCollectionChange(this._onCollectionChange)}}const On={provide:Tt,useExisting:(0,i.forwardRef)(()=>Hn)},cn=(()=>Promise.resolve(null))();let Hn=(()=>{class F extends Tt{constructor(v,J){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new i.EventEmitter,this.form=new vn({},Ge(v),St(J))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(v){cn.then(()=>{const J=this._findContainer(v.path);v.control=J.registerControl(v.name,v.control),Ot(v.control,v),v.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(v)})}getControl(v){return this.form.get(v.path)}removeControl(v){cn.then(()=>{const J=this._findContainer(v.path);J&&J.removeControl(v.name),Be(this._directives,v)})}addFormGroup(v){cn.then(()=>{const J=this._findContainer(v.path),ut=new vn({});G(ut,v),J.registerControl(v.name,ut),ut.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(v){cn.then(()=>{const J=this._findContainer(v.path);J&&J.removeControl(v.name)})}getFormGroup(v){return this.form.get(v.path)}updateModel(v,J){cn.then(()=>{this.form.get(v.path).setValue(J)})}setValue(v){this.control.setValue(v)}onSubmit(v){return this.submitted=!0,$e(this.form,this._directives),this.ngSubmit.emit(v),!1}onReset(){this.resetForm()}resetForm(v){this.form.reset(v),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(v){return v.pop(),v.length?this.form.get(v):this.form}}return F.\u0275fac=function(v){return new(v||F)(i.\u0275\u0275directiveInject(K,10),i.\u0275\u0275directiveInject(re,10))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(v,J){1&v&&i.\u0275\u0275listener("submit",function($t){return J.onSubmit($t)})("reset",function(){return J.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.\u0275\u0275ProvidersFeature([On]),i.\u0275\u0275InheritDefinitionFeature]}),F})(),Un=(()=>{class F extends Tt{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Qt(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return F.\u0275fac=function(){let A;return function(J){return(A||(A=i.\u0275\u0275getInheritedFactory(F)))(J||F)}}(),F.\u0275dir=i.\u0275\u0275defineDirective({type:F,features:[i.\u0275\u0275InheritDefinitionFeature]}),F})();const mn={provide:Tt,useExisting:(0,i.forwardRef)(()=>ni)};let ni=(()=>{class F extends Un{constructor(v,J,ut){super(),this._parent=v,this._setValidators(J),this._setAsyncValidators(ut)}_checkParentType(){}}return F.\u0275fac=function(v){return new(v||F)(i.\u0275\u0275directiveInject(Tt,5),i.\u0275\u0275directiveInject(K,10),i.\u0275\u0275directiveInject(re,10))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[i.\u0275\u0275ProvidersFeature([mn]),i.\u0275\u0275InheritDefinitionFeature]}),F})();const li={provide:pt,useExisting:(0,i.forwardRef)(()=>Gn)},Kn=(()=>Promise.resolve(null))();let Gn=(()=>{class F extends pt{constructor(v,J,ut,$t){super(),this.control=new qt,this._registered=!1,this.update=new i.EventEmitter,this._parent=v,this._setValidators(J),this._setAsyncValidators(ut),this.valueAccessor=le(0,$t)}ngOnChanges(v){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in v&&this._updateDisabled(v),gn(v,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?Qt(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(v){this.viewModel=v,this.update.emit(v)}_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(){Ot(this.control,this),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(v){Kn.then(()=>{this.control.setValue(v,{emitViewToModelChange:!1})})}_updateDisabled(v){const J=v.isDisabled.currentValue,ut=""===J||J&&"false"!==J;Kn.then(()=>{ut&&!this.control.disabled?this.control.disable():!ut&&this.control.disabled&&this.control.enable()})}}return F.\u0275fac=function(v){return new(v||F)(i.\u0275\u0275directiveInject(Tt,9),i.\u0275\u0275directiveInject(K,10),i.\u0275\u0275directiveInject(re,10),i.\u0275\u0275directiveInject(T,10))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[i.\u0275\u0275ProvidersFeature([li]),i.\u0275\u0275InheritDefinitionFeature,i.\u0275\u0275NgOnChangesFeature]}),F})(),Ci=(()=>{class F{}return F.\u0275fac=function(v){return new(v||F)},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),F})();const Mi={provide:T,useExisting:(0,i.forwardRef)(()=>hi),multi:!0};let hi=(()=>{class F extends C{writeValue(v){this.setProperty("value",null==v?"":v)}registerOnChange(v){this.onChange=J=>{v(""==J?null:parseFloat(J))}}}return F.\u0275fac=function(){let A;return function(J){return(A||(A=i.\u0275\u0275getInheritedFactory(F)))(J||F)}}(),F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(v,J){1&v&&i.\u0275\u0275listener("input",function($t){return J.onChange($t.target.value)})("blur",function(){return J.onTouched()})},features:[i.\u0275\u0275ProvidersFeature([Mi]),i.\u0275\u0275InheritDefinitionFeature]}),F})();const Wn={provide:T,useExisting:(0,i.forwardRef)(()=>Qn),multi:!0};let nr=(()=>{class F{}return F.\u0275fac=function(v){return new(v||F)},F.\u0275mod=i.\u0275\u0275defineNgModule({type:F}),F.\u0275inj=i.\u0275\u0275defineInjector({}),F})(),mr=(()=>{class F{constructor(){this._accessors=[]}add(v,J){this._accessors.push([v,J])}remove(v){for(let J=this._accessors.length-1;J>=0;--J)if(this._accessors[J][1]===v)return void this._accessors.splice(J,1)}select(v){this._accessors.forEach(J=>{this._isSameGroup(J,v)&&J[1]!==v&&J[1].fireUncheck(v.value)})}_isSameGroup(v,J){return!!v[0].control&&v[0]._parent===J._control._parent&&v[1].name===J.name}}return F.\u0275fac=function(v){return new(v||F)},F.\u0275prov=i.\u0275\u0275defineInjectable({token:F,factory:F.\u0275fac,providedIn:nr}),F})(),Qn=(()=>{class F extends C{constructor(v,J,ut,$t){super(v,J),this._registry=ut,this._injector=$t,this.onChange=()=>{}}ngOnInit(){this._control=this._injector.get(pt),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(v){this._state=v===this.value,this.setProperty("checked",this._state)}registerOnChange(v){this._fn=v,this.onChange=()=>{v(this.value),this._registry.select(this)}}fireUncheck(v){this.writeValue(v)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return F.\u0275fac=function(v){return new(v||F)(i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(mr),i.\u0275\u0275directiveInject(i.Injector))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(v,J){1&v&&i.\u0275\u0275listener("change",function(){return J.onChange()})("blur",function(){return J.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[i.\u0275\u0275ProvidersFeature([Wn]),i.\u0275\u0275InheritDefinitionFeature]}),F})();const Zn={provide:T,useExisting:(0,i.forwardRef)(()=>Ei),multi:!0};let Ei=(()=>{class F extends C{writeValue(v){this.setProperty("value",parseFloat(v))}registerOnChange(v){this.onChange=J=>{v(""==J?null:parseFloat(J))}}}return F.\u0275fac=function(){let A;return function(J){return(A||(A=i.\u0275\u0275getInheritedFactory(F)))(J||F)}}(),F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(v,J){1&v&&i.\u0275\u0275listener("change",function($t){return J.onChange($t.target.value)})("input",function($t){return J.onChange($t.target.value)})("blur",function(){return J.onTouched()})},features:[i.\u0275\u0275ProvidersFeature([Zn]),i.\u0275\u0275InheritDefinitionFeature]}),F})();const Ui=new i.InjectionToken("NgModelWithFormControlWarning"),Lr={provide:pt,useExisting:(0,i.forwardRef)(()=>Wi)};let Wi=(()=>{class F extends pt{constructor(v,J,ut,$t){super(),this._ngModelWarningConfig=$t,this.update=new i.EventEmitter,this._ngModelWarningSent=!1,this._setValidators(v),this._setAsyncValidators(J),this.valueAccessor=le(0,ut)}set isDisabled(v){}ngOnChanges(v){if(this._isControlChanged(v)){const J=v.form.previousValue;J&&bn(J,this,!1),Ot(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}gn(v,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&bn(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(v){this.viewModel=v,this.update.emit(v)}_isControlChanged(v){return v.hasOwnProperty("form")}}return F._ngModelWarningSentOnce=!1,F.\u0275fac=function(v){return new(v||F)(i.\u0275\u0275directiveInject(K,10),i.\u0275\u0275directiveInject(re,10),i.\u0275\u0275directiveInject(T,10),i.\u0275\u0275directiveInject(Ui,8))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[i.\u0275\u0275ProvidersFeature([Lr]),i.\u0275\u0275InheritDefinitionFeature,i.\u0275\u0275NgOnChangesFeature]}),F})();const Ir={provide:Tt,useExisting:(0,i.forwardRef)(()=>wi)};let wi=(()=>{class F extends Tt{constructor(v,J){super(),this.validators=v,this.asyncValidators=J,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new i.EventEmitter,this._setValidators(v),this._setAsyncValidators(J)}ngOnChanges(v){this._checkFormPresent(),v.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Se(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(v){const J=this.form.get(v.path);return Ot(J,v),J.updateValueAndValidity({emitEvent:!1}),this.directives.push(v),J}getControl(v){return this.form.get(v.path)}removeControl(v){bn(v.control||null,v,!1),Be(this.directives,v)}addFormGroup(v){this._setUpFormContainer(v)}removeFormGroup(v){this._cleanUpFormContainer(v)}getFormGroup(v){return this.form.get(v.path)}addFormArray(v){this._setUpFormContainer(v)}removeFormArray(v){this._cleanUpFormContainer(v)}getFormArray(v){return this.form.get(v.path)}updateModel(v,J){this.form.get(v.path).setValue(J)}onSubmit(v){return this.submitted=!0,$e(this.form,this.directives),this.ngSubmit.emit(v),!1}onReset(){this.resetForm()}resetForm(v){this.form.reset(v),this.submitted=!1}_updateDomValue(){this.directives.forEach(v=>{const J=v.control,ut=this.form.get(v.path);J!==ut&&(bn(J||null,v),we(ut)&&(Ot(ut,v),v.control=ut))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(v){const J=this.form.get(v.path);G(J,v),J.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(v){if(this.form){const J=this.form.get(v.path);J&&function ot(F,A){return Se(F,A)}(J,v)&&J.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Qe(this.form,this),this._oldForm&&Se(this._oldForm,this)}_checkFormPresent(){}}return F.\u0275fac=function(v){return new(v||F)(i.\u0275\u0275directiveInject(K,10),i.\u0275\u0275directiveInject(re,10))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","formGroup",""]],hostBindings:function(v,J){1&v&&i.\u0275\u0275listener("submit",function($t){return J.onSubmit($t)})("reset",function(){return J.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.\u0275\u0275ProvidersFeature([Ir]),i.\u0275\u0275InheritDefinitionFeature,i.\u0275\u0275NgOnChangesFeature]}),F})();const zi={provide:Tt,useExisting:(0,i.forwardRef)(()=>ci)};let ci=(()=>{class F extends Un{constructor(v,J,ut){super(),this._parent=v,this._setValidators(J),this._setAsyncValidators(ut)}_checkParentType(){Ar(this._parent)}}return F.\u0275fac=function(v){return new(v||F)(i.\u0275\u0275directiveInject(Tt,13),i.\u0275\u0275directiveInject(K,10),i.\u0275\u0275directiveInject(re,10))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[i.\u0275\u0275ProvidersFeature([zi]),i.\u0275\u0275InheritDefinitionFeature]}),F})();const gr={provide:Tt,useExisting:(0,i.forwardRef)(()=>Di)};let Di=(()=>{class F extends Tt{constructor(v,J,ut){super(),this._parent=v,this._setValidators(J),this._setAsyncValidators(ut)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return Qt(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){Ar(this._parent)}}return F.\u0275fac=function(v){return new(v||F)(i.\u0275\u0275directiveInject(Tt,13),i.\u0275\u0275directiveInject(K,10),i.\u0275\u0275directiveInject(re,10))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[i.\u0275\u0275ProvidersFeature([gr]),i.\u0275\u0275InheritDefinitionFeature]}),F})();function Ar(F){return!(F instanceof ci||F instanceof wi||F instanceof Di)}const Pr={provide:pt,useExisting:(0,i.forwardRef)(()=>Ki)};let Ki=(()=>{class F extends pt{constructor(v,J,ut,$t,An){super(),this._ngModelWarningConfig=An,this._added=!1,this.update=new i.EventEmitter,this._ngModelWarningSent=!1,this._parent=v,this._setValidators(J),this._setAsyncValidators(ut),this.valueAccessor=le(0,$t)}set isDisabled(v){}ngOnChanges(v){this._added||this._setUpControl(),gn(v,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(v){this.viewModel=v,this.update.emit(v)}get path(){return Qt(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.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return F._ngModelWarningSentOnce=!1,F.\u0275fac=function(v){return new(v||F)(i.\u0275\u0275directiveInject(Tt,13),i.\u0275\u0275directiveInject(K,10),i.\u0275\u0275directiveInject(re,10),i.\u0275\u0275directiveInject(T,10),i.\u0275\u0275directiveInject(Ui,8))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[i.\u0275\u0275ProvidersFeature([Pr]),i.\u0275\u0275InheritDefinitionFeature,i.\u0275\u0275NgOnChangesFeature]}),F})();const Si={provide:T,useExisting:(0,i.forwardRef)(()=>Ii),multi:!0};function Gi(F,A){return null==F?`${A}`:(A&&"object"==typeof A&&(A="Object"),`${F}: ${A}`.slice(0,50))}let Ii=(()=>{class F extends C{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(v){this._compareWith=v}writeValue(v){this.value=v;const J=this._getOptionId(v);null==J&&this.setProperty("selectedIndex",-1);const ut=Gi(J,v);this.setProperty("value",ut)}registerOnChange(v){this.onChange=J=>{this.value=this._getOptionValue(J),v(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(v){for(const J of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(J),v))return J;return null}_getOptionValue(v){const J=function Or(F){return F.split(":")[0]}(v);return this._optionMap.has(J)?this._optionMap.get(J):v}}return F.\u0275fac=function(){let A;return function(J){return(A||(A=i.\u0275\u0275getInheritedFactory(F)))(J||F)}}(),F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(v,J){1&v&&i.\u0275\u0275listener("change",function($t){return J.onChange($t.target.value)})("blur",function(){return J.onTouched()})},inputs:{compareWith:"compareWith"},features:[i.\u0275\u0275ProvidersFeature([Si]),i.\u0275\u0275InheritDefinitionFeature]}),F})(),_r=(()=>{class F{constructor(v,J,ut){this._element=v,this._renderer=J,this._select=ut,this._select&&(this.id=this._select._registerOption())}set ngValue(v){null!=this._select&&(this._select._optionMap.set(this.id,v),this._setElementValue(Gi(this.id,v)),this._select.writeValue(this._select.value))}set value(v){this._setElementValue(v),this._select&&this._select.writeValue(this._select.value)}_setElementValue(v){this._renderer.setProperty(this._element.nativeElement,"value",v)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return F.\u0275fac=function(v){return new(v||F)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(Ii,9))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),F})();const fi={provide:T,useExisting:(0,i.forwardRef)(()=>mi),multi:!0};function Ai(F,A){return null==F?`${A}`:("string"==typeof A&&(A=`'${A}'`),A&&"object"==typeof A&&(A="Object"),`${F}: ${A}`.slice(0,50))}let mi=(()=>{class F extends C{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(v){this._compareWith=v}writeValue(v){let J;if(this.value=v,Array.isArray(v)){const ut=v.map($t=>this._getOptionId($t));J=($t,An)=>{$t._setSelected(ut.indexOf(An.toString())>-1)}}else J=(ut,$t)=>{ut._setSelected(!1)};this._optionMap.forEach(J)}registerOnChange(v){this.onChange=J=>{const ut=[],$t=J.selectedOptions;if(void 0!==$t){const An=$t;for(let qn=0;qn<An.length;qn++){const Ni=this._getOptionValue(An[qn].value);ut.push(Ni)}}else{const An=J.options;for(let qn=0;qn<An.length;qn++){const gi=An[qn];if(gi.selected){const Ni=this._getOptionValue(gi.value);ut.push(Ni)}}}this.value=ut,v(ut)}}_registerOption(v){const J=(this._idCounter++).toString();return this._optionMap.set(J,v),J}_getOptionId(v){for(const J of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(J)._value,v))return J;return null}_getOptionValue(v){const J=function pi(F){return F.split(":")[0]}(v);return this._optionMap.has(J)?this._optionMap.get(J)._value:v}}return F.\u0275fac=function(){let A;return function(J){return(A||(A=i.\u0275\u0275getInheritedFactory(F)))(J||F)}}(),F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(v,J){1&v&&i.\u0275\u0275listener("change",function($t){return J.onChange($t.target)})("blur",function(){return J.onTouched()})},inputs:{compareWith:"compareWith"},features:[i.\u0275\u0275ProvidersFeature([fi]),i.\u0275\u0275InheritDefinitionFeature]}),F})(),ir=(()=>{class F{constructor(v,J,ut){this._element=v,this._renderer=J,this._select=ut,this._select&&(this.id=this._select._registerOption(this))}set ngValue(v){null!=this._select&&(this._value=v,this._setElementValue(Ai(this.id,v)),this._select.writeValue(this._select.value))}set value(v){this._select?(this._value=v,this._setElementValue(Ai(this.id,v)),this._select.writeValue(this._select.value)):this._setElementValue(v)}_setElementValue(v){this._renderer.setProperty(this._element.nativeElement,"value",v)}_setSelected(v){this._renderer.setProperty(this._element.nativeElement,"selected",v)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return F.\u0275fac=function(v){return new(v||F)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(mi,9))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),F})();function rr(F){return"number"==typeof F?F:parseInt(F,10)}function Pi(F){return"number"==typeof F?F:parseFloat(F)}let Oi=(()=>{class F{constructor(){this._validator=z}ngOnChanges(v){if(this.inputName in v){const J=this.normalizeInput(v[this.inputName].currentValue);this._enabled=this.enabled(J),this._validator=this._enabled?this.createValidator(J):z,this._onChange&&this._onChange()}}validate(v){return this._validator(v)}registerOnValidatorChange(v){this._onChange=v}enabled(v){return null!=v}}return F.\u0275fac=function(v){return new(v||F)},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,features:[i.\u0275\u0275NgOnChangesFeature]}),F})();const xi={provide:K,useExisting:(0,i.forwardRef)(()=>Zi),multi:!0};let Zi=(()=>{class F extends Oi{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=v=>Pi(v),this.createValidator=v=>ue(v)}}return F.\u0275fac=function(){let A;return function(J){return(A||(A=i.\u0275\u0275getInheritedFactory(F)))(J||F)}}(),F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(v,J){2&v&&i.\u0275\u0275attribute("max",J._enabled?J.max:null)},inputs:{max:"max"},features:[i.\u0275\u0275ProvidersFeature([xi]),i.\u0275\u0275InheritDefinitionFeature]}),F})();const ti={provide:K,useExisting:(0,i.forwardRef)(()=>Ri),multi:!0};let Ri=(()=>{class F extends Oi{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=v=>Pi(v),this.createValidator=v=>be(v)}}return F.\u0275fac=function(){let A;return function(J){return(A||(A=i.\u0275\u0275getInheritedFactory(F)))(J||F)}}(),F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(v,J){2&v&&i.\u0275\u0275attribute("min",J._enabled?J.min:null)},inputs:{min:"min"},features:[i.\u0275\u0275ProvidersFeature([ti]),i.\u0275\u0275InheritDefinitionFeature]}),F})();const or={provide:K,useExisting:(0,i.forwardRef)(()=>Yi),multi:!0},Fi={provide:K,useExisting:(0,i.forwardRef)(()=>ki),multi:!0};let Yi=(()=>{class F{constructor(){this._required=!1}get required(){return this._required}set required(v){this._required=null!=v&&!1!==v&&"false"!=`${v}`,this._onChange&&this._onChange()}validate(v){return this.required?xe(v):null}registerOnValidatorChange(v){this._onChange=v}}return F.\u0275fac=function(v){return new(v||F)},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(v,J){2&v&&i.\u0275\u0275attribute("required",J.required?"":null)},inputs:{required:"required"},features:[i.\u0275\u0275ProvidersFeature([or])]}),F})(),ki=(()=>{class F extends Yi{validate(v){return this.required?He(v):null}}return F.\u0275fac=function(){let A;return function(J){return(A||(A=i.\u0275\u0275getInheritedFactory(F)))(J||F)}}(),F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(v,J){2&v&&i.\u0275\u0275attribute("required",J.required?"":null)},features:[i.\u0275\u0275ProvidersFeature([Fi]),i.\u0275\u0275InheritDefinitionFeature]}),F})();const xr={provide:K,useExisting:(0,i.forwardRef)(()=>Rn),multi:!0};let Rn=(()=>{class F{constructor(){this._enabled=!1}set email(v){this._enabled=""===v||!0===v||"true"===v,this._onChange&&this._onChange()}validate(v){return this._enabled?et(v):null}registerOnValidatorChange(v){this._onChange=v}}return F.\u0275fac=function(v){return new(v||F)},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[i.\u0275\u0275ProvidersFeature([xr])]}),F})();const sr={provide:K,useExisting:(0,i.forwardRef)(()=>ar),multi:!0};let ar=(()=>{class F extends Oi{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=v=>rr(v),this.createValidator=v=>ct(v)}}return F.\u0275fac=function(){let A;return function(J){return(A||(A=i.\u0275\u0275getInheritedFactory(F)))(J||F)}}(),F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(v,J){2&v&&i.\u0275\u0275attribute("minlength",J._enabled?J.minlength:null)},inputs:{minlength:"minlength"},features:[i.\u0275\u0275ProvidersFeature([sr]),i.\u0275\u0275InheritDefinitionFeature]}),F})();const Ln={provide:K,useExisting:(0,i.forwardRef)(()=>x),multi:!0};let x=(()=>{class F extends Oi{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=v=>rr(v),this.createValidator=v=>X(v)}}return F.\u0275fac=function(){let A;return function(J){return(A||(A=i.\u0275\u0275getInheritedFactory(F)))(J||F)}}(),F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(v,J){2&v&&i.\u0275\u0275attribute("maxlength",J._enabled?J.maxlength:null)},inputs:{maxlength:"maxlength"},features:[i.\u0275\u0275ProvidersFeature([Ln]),i.\u0275\u0275InheritDefinitionFeature]}),F})();const Q={provide:K,useExisting:(0,i.forwardRef)(()=>R),multi:!0};let R=(()=>{class F{constructor(){this._validator=z}ngOnChanges(v){"pattern"in v&&(this._createValidator(),this._onChange&&this._onChange())}validate(v){return this._validator(v)}registerOnValidatorChange(v){this._onChange=v}_createValidator(){this._validator=me(this.pattern)}}return F.\u0275fac=function(v){return new(v||F)},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(v,J){2&v&&i.\u0275\u0275attribute("pattern",J.pattern?J.pattern:null)},inputs:{pattern:"pattern"},features:[i.\u0275\u0275ProvidersFeature([Q]),i.\u0275\u0275NgOnChangesFeature]}),F})(),Dt=(()=>{class F{}return F.\u0275fac=function(v){return new(v||F)},F.\u0275mod=i.\u0275\u0275defineNgModule({type:F}),F.\u0275inj=i.\u0275\u0275defineInjector({imports:[[nr]]}),F})(),Nt=(()=>{class F{}return F.\u0275fac=function(v){return new(v||F)},F.\u0275mod=i.\u0275\u0275defineNgModule({type:F}),F.\u0275inj=i.\u0275\u0275defineInjector({imports:[Dt]}),F})(),Dn=(()=>{class F{static withConfig(v){return{ngModule:F,providers:[{provide:Ui,useValue:v.warnOnNgModelWithFormControl}]}}}return F.\u0275fac=function(v){return new(v||F)},F.\u0275mod=i.\u0275\u0275defineNgModule({type:F}),F.\u0275inj=i.\u0275\u0275defineInjector({imports:[Dt]}),F})(),In=(()=>{class F{group(v,J=null){const ut=this._reduceControls(v);let qn,$t=null,An=null;return null!=J&&(function Tn(F){return void 0!==F.asyncValidators||void 0!==F.validators||void 0!==F.updateOn}(J)?($t=null!=J.validators?J.validators:null,An=null!=J.asyncValidators?J.asyncValidators:null,qn=null!=J.updateOn?J.updateOn:void 0):($t=null!=J.validator?J.validator:null,An=null!=J.asyncValidator?J.asyncValidator:null)),new vn(ut,{asyncValidators:An,updateOn:qn,validators:$t})}control(v,J,ut){return new qt(v,J,ut)}array(v,J,ut){const $t=v.map(An=>this._createControl(An));return new Ht($t,J,ut)}_reduceControls(v){const J={};return Object.keys(v).forEach(ut=>{J[ut]=this._createControl(v[ut])}),J}_createControl(v){return we(v)||U(v)||Ae(v)?v:Array.isArray(v)?this.control(v[0],v.length>1?v[1]:null,v.length>2?v[2]:null):this.control(v)}}return F.\u0275fac=function(v){return new(v||F)},F.\u0275prov=i.\u0275\u0275defineInjectable({token:F,factory:F.\u0275fac,providedIn:Dn}),F})();const un=new i.Version("13.1.2")},7423:(Le,m,l)=>{"use strict";l.r(m),l.d(m,{MatAnchor:()=>O,MatButton:()=>P,MatButtonModule:()=>S});var i=l(5e3),d=l(508),_=l(6360),u=l(5664);const s=["mat-button",""],b=["*"],p=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],y=(0,d.pj)((0,d.Id)((0,d.Kr)(class{constructor(N){this._elementRef=N}})));let P=(()=>{class N extends y{constructor(ce,K,re){super(ce),this._focusMonitor=K,this._animationMode=re,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const Me of p)this._hasHostAttributes(Me)&&this._getHostElement().classList.add(Me);ce.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(ce,K){ce?this._focusMonitor.focusVia(this._getHostElement(),ce,K):this._getHostElement().focus(K)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...ce){return ce.some(K=>this._getHostElement().hasAttribute(K))}}return N.\u0275fac=function(ce){return new(ce||N)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(u.tE),i.\u0275\u0275directiveInject(_.ANIMATION_MODULE_TYPE,8))},N.\u0275cmp=i.\u0275\u0275defineComponent({type:N,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(ce,K){if(1&ce&&i.\u0275\u0275viewQuery(d.wG,5),2&ce){let re;i.\u0275\u0275queryRefresh(re=i.\u0275\u0275loadQuery())&&(K.ripple=re.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(ce,K){2&ce&&(i.\u0275\u0275attribute("disabled",K.disabled||null),i.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===K._animationMode)("mat-button-disabled",K.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[i.\u0275\u0275InheritDefinitionFeature],attrs:s,ngContentSelectors:b,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(ce,K){1&ce&&(i.\u0275\u0275projectionDef(),i.\u0275\u0275elementStart(0,"span",0),i.\u0275\u0275projection(1),i.\u0275\u0275elementEnd(),i.\u0275\u0275element(2,"span",1),i.\u0275\u0275element(3,"span",2)),2&ce&&(i.\u0275\u0275advance(2),i.\u0275\u0275classProp("mat-button-ripple-round",K.isRoundButton||K.isIconButton),i.\u0275\u0275property("matRippleDisabled",K._isRippleDisabled())("matRippleCentered",K.isIconButton)("matRippleTrigger",K._getHostElement()))},directives:[d.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),N})(),O=(()=>{class N extends P{constructor(ce,K,re){super(K,ce,re)}_haltDisabledEvents(ce){this.disabled&&(ce.preventDefault(),ce.stopImmediatePropagation())}}return N.\u0275fac=function(ce){return new(ce||N)(i.\u0275\u0275directiveInject(u.tE),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(_.ANIMATION_MODULE_TYPE,8))},N.\u0275cmp=i.\u0275\u0275defineComponent({type:N,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:7,hostBindings:function(ce,K){1&ce&&i.\u0275\u0275listener("click",function(Me){return K._haltDisabledEvents(Me)}),2&ce&&(i.\u0275\u0275attribute("tabindex",K.disabled?-1:K.tabIndex||0)("disabled",K.disabled||null)("aria-disabled",K.disabled.toString()),i.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===K._animationMode)("mat-button-disabled",K.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[i.\u0275\u0275InheritDefinitionFeature],attrs:s,ngContentSelectors:b,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(ce,K){1&ce&&(i.\u0275\u0275projectionDef(),i.\u0275\u0275elementStart(0,"span",0),i.\u0275\u0275projection(1),i.\u0275\u0275elementEnd(),i.\u0275\u0275element(2,"span",1),i.\u0275\u0275element(3,"span",2)),2&ce&&(i.\u0275\u0275advance(2),i.\u0275\u0275classProp("mat-button-ripple-round",K.isRoundButton||K.isIconButton),i.\u0275\u0275property("matRippleDisabled",K._isRippleDisabled())("matRippleCentered",K.isIconButton)("matRippleTrigger",K._getHostElement()))},directives:[d.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),N})(),S=(()=>{class N{}return N.\u0275fac=function(ce){return new(ce||N)},N.\u0275mod=i.\u0275\u0275defineNgModule({type:N}),N.\u0275inj=i.\u0275\u0275defineInjector({imports:[[d.si,d.BQ],d.BQ]}),N})()},9417:(Le,m,l)=>{"use strict";l.r(m),l.d(m,{MAT_CHIPS_DEFAULT_OPTIONS:()=>an,MAT_CHIP_AVATAR:()=>it,MAT_CHIP_REMOVE:()=>Ye,MAT_CHIP_TRAILING_ICON:()=>mt,MatChip:()=>Kt,MatChipAvatar:()=>zt,MatChipInput:()=>Ot,MatChipList:()=>Qe,MatChipListChange:()=>Ke,MatChipRemove:()=>Mn,MatChipSelectionChange:()=>ve,MatChipTrailingIcon:()=>on,MatChipsModule:()=>De});var i=l(1159),d=l(5e3),_=l(508),u=l(3191),s=l(9808),b=l(6360),C=l(6758),T=l(6451),p=l(5698),y=l(2722),P=l(8675),O=l(925),S=l(5664),N=l(449),B=l(3075);l(1777);let Ge=(()=>{class w{}return w.\u0275fac=function(M){return new(M||w)},w.\u0275dir=d.\u0275\u0275defineDirective({type:w}),w})();var _e=l(226);const ie=["*"];class ve{constructor(I,M,G=!1){this.source=I,this.selected=M,this.isUserInput=G}}const Ye=new d.InjectionToken("MatChipRemove"),it=new d.InjectionToken("MatChipAvatar"),mt=new d.InjectionToken("MatChipTrailingIcon");class _t{constructor(I){this._elementRef=I}}const It=(0,_.sb)((0,_.pj)((0,_.Kr)(_t),"primary"),-1);let zt=(()=>{class w{}return w.\u0275fac=function(M){return new(M||w)},w.\u0275dir=d.\u0275\u0275defineDirective({type:w,selectors:[["mat-chip-avatar"],["","matChipAvatar",""]],hostAttrs:[1,"mat-chip-avatar"],features:[d.\u0275\u0275ProvidersFeature([{provide:it,useExisting:w}])]}),w})(),on=(()=>{class w{}return w.\u0275fac=function(M){return new(M||w)},w.\u0275dir=d.\u0275\u0275defineDirective({type:w,selectors:[["mat-chip-trailing-icon"],["","matChipTrailingIcon",""]],hostAttrs:[1,"mat-chip-trailing-icon"],features:[d.\u0275\u0275ProvidersFeature([{provide:mt,useExisting:w}])]}),w})(),Kt=(()=>{class w extends It{constructor(M,G,ot,Et,Ut,gn,Ve,$e){super(M),this._ngZone=G,this._changeDetectorRef=Ut,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new C.x,this._onBlur=new C.x,this.selectionChange=new d.EventEmitter,this.destroyed=new d.EventEmitter,this.removed=new d.EventEmitter,this._addHostClassName(),this._chipRippleTarget=gn.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new _.IR(this,G,this._chipRippleTarget,ot),this._chipRipple.setupTriggerEvents(M),this.rippleConfig=Et||{},this._animationsDisabled="NoopAnimations"===Ve,this.tabIndex=null!=$e&&parseInt($e)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(M){const G=(0,u.Ig)(M);G!==this._selected&&(this._selected=G,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(M){this._value=M}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(M){this._selectable=(0,u.Ig)(M)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(M){this._disabled=(0,u.Ig)(M)}get removable(){return this._removable}set removable(M){this._removable=(0,u.Ig)(M)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const M="mat-basic-chip",G=this._elementRef.nativeElement;G.hasAttribute(M)||G.tagName.toLowerCase()===M?G.classList.add(M):G.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}toggleSelected(M=!1){return this._selected=!this.selected,this._dispatchSelectionChange(M),this._changeDetectorRef.markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(M){this.disabled?M.preventDefault():M.stopPropagation()}_handleKeydown(M){if(!this.disabled)switch(M.keyCode){case i.yY:case i.ZH:this.remove(),M.preventDefault();break;case i.L_:this.selectable&&this.toggleSelected(!0),M.preventDefault()}}_blur(){this._ngZone.onStable.pipe((0,p.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(M=!1){this.selectionChange.emit({source:this,isUserInput:M,selected:this._selected})}}return w.\u0275fac=function(M){return new(M||w)(d.\u0275\u0275directiveInject(d.ElementRef),d.\u0275\u0275directiveInject(d.NgZone),d.\u0275\u0275directiveInject(O.t4),d.\u0275\u0275directiveInject(_.Y2,8),d.\u0275\u0275directiveInject(d.ChangeDetectorRef),d.\u0275\u0275directiveInject(s.DOCUMENT),d.\u0275\u0275directiveInject(b.ANIMATION_MODULE_TYPE,8),d.\u0275\u0275injectAttribute("tabindex"))},w.\u0275dir=d.\u0275\u0275defineDirective({type:w,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(M,G,ot){if(1&M&&(d.\u0275\u0275contentQuery(ot,it,5),d.\u0275\u0275contentQuery(ot,mt,5),d.\u0275\u0275contentQuery(ot,Ye,5)),2&M){let Et;d.\u0275\u0275queryRefresh(Et=d.\u0275\u0275loadQuery())&&(G.avatar=Et.first),d.\u0275\u0275queryRefresh(Et=d.\u0275\u0275loadQuery())&&(G.trailingIcon=Et.first),d.\u0275\u0275queryRefresh(Et=d.\u0275\u0275loadQuery())&&(G.removeIcon=Et.first)}},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(M,G){1&M&&d.\u0275\u0275listener("click",function(Et){return G._handleClick(Et)})("keydown",function(Et){return G._handleKeydown(Et)})("focus",function(){return G.focus()})("blur",function(){return G._blur()}),2&M&&(d.\u0275\u0275attribute("tabindex",G.disabled?null:G.tabIndex)("disabled",G.disabled||null)("aria-disabled",G.disabled.toString())("aria-selected",G.ariaSelected),d.\u0275\u0275classProp("mat-chip-selected",G.selected)("mat-chip-with-avatar",G.avatar)("mat-chip-with-trailing-icon",G.trailingIcon||G.removeIcon)("mat-chip-disabled",G.disabled)("_mat-animation-noopable",G._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[d.\u0275\u0275InheritDefinitionFeature]}),w})(),Mn=(()=>{class w{constructor(M,G){this._parentChip=M,"BUTTON"===G.nativeElement.nodeName&&G.nativeElement.setAttribute("type","button")}_handleClick(M){const G=this._parentChip;G.removable&&!G.disabled&&G.remove(),M.stopPropagation()}}return w.\u0275fac=function(M){return new(M||w)(d.\u0275\u0275directiveInject(Kt),d.\u0275\u0275directiveInject(d.ElementRef))},w.\u0275dir=d.\u0275\u0275defineDirective({type:w,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(M,G){1&M&&d.\u0275\u0275listener("click",function(Et){return G._handleClick(Et)})},features:[d.\u0275\u0275ProvidersFeature([{provide:Ye,useExisting:w}])]}),w})();const an=new d.InjectionToken("mat-chips-default-options");let Qt=0,Ot=(()=>{class w{constructor(M,G){this._elementRef=M,this._defaultOptions=G,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new d.EventEmitter,this.placeholder="",this.id="mat-chip-list-input-"+Qt++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement}set chipList(M){M&&(this._chipList=M,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(M){this._addOnBlur=(0,u.Ig)(M)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(M){this._disabled=(0,u.Ig)(M)}get empty(){return!this.inputElement.value}ngOnChanges(){this._chipList.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(M){if(M){if(M.keyCode===i.Mf&&!(0,i.Vb)(M,"shiftKey")&&this._chipList._allowFocusEscape(),M.keyCode===i.ZH&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void M.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(M)}_keyup(M){!this._focusLastChipOnBackspace&&M.keyCode===i.ZH&&this.empty&&(this._focusLastChipOnBackspace=!0,M.preventDefault())}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}_focus(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipList.stateChanges.next()}_emitChipEnd(M){!this.inputElement.value&&!!M&&this._chipList._keydown(M),(!M||this._isSeparatorKey(M))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),null==M||M.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(M){this.inputElement.focus(M)}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}_isSeparatorKey(M){return!(0,i.Vb)(M)&&new Set(this.separatorKeyCodes).has(M.keyCode)}}return w.\u0275fac=function(M){return new(M||w)(d.\u0275\u0275directiveInject(d.ElementRef),d.\u0275\u0275directiveInject(an))},w.\u0275dir=d.\u0275\u0275defineDirective({type:w,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(M,G){1&M&&d.\u0275\u0275listener("keydown",function(Et){return G._keydown(Et)})("keyup",function(Et){return G._keyup(Et)})("blur",function(){return G._blur()})("focus",function(){return G._focus()})("input",function(){return G._onInput()}),2&M&&(d.\u0275\u0275hostProperty("id",G.id),d.\u0275\u0275attribute("disabled",G.disabled||null)("placeholder",G.placeholder||null)("aria-invalid",G._chipList&&G._chipList.ngControl?G._chipList.ngControl.invalid:null)("aria-required",G._chipList&&G._chipList.required||null))},inputs:{chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[d.\u0275\u0275NgOnChangesFeature]}),w})();const bn=(0,_.FD)(class{constructor(w,I,M,G){this._defaultErrorStateMatcher=w,this._parentForm=I,this._parentFormGroup=M,this.ngControl=G}});let at=0;class Ke{constructor(I,M){this.source=I,this.value=M}}let Qe=(()=>{class w extends bn{constructor(M,G,ot,Et,Ut,gn,Ve){super(gn,Et,Ut,Ve),this._elementRef=M,this._changeDetectorRef=G,this._dir=ot,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new C.x,this._uid="mat-chip-list-"+at++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=($e,le)=>$e===le,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new d.EventEmitter,this.valueChange=new d.EventEmitter,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){var M,G;return this.multiple?(null===(M=this._selectionModel)||void 0===M?void 0:M.selected)||[]:null===(G=this._selectionModel)||void 0===G?void 0:G.selected[0]}get role(){return this.empty?null:"listbox"}get multiple(){return this._multiple}set multiple(M){this._multiple=(0,u.Ig)(M),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(M){this._compareWith=M,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(M){this.writeValue(M),this._value=M}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){var M,G,ot,Et;return null!==(Et=null!==(M=this._required)&&void 0!==M?M:null===(ot=null===(G=this.ngControl)||void 0===G?void 0:G.control)||void 0===ot?void 0:ot.hasValidator(B.Validators.required))&&void 0!==Et&&Et}set required(M){this._required=(0,u.Ig)(M),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(M){this._placeholder=M,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(M){this._disabled=(0,u.Ig)(M),this._syncChipsState()}get selectable(){return this._selectable}set selectable(M){this._selectable=(0,u.Ig)(M),this.chips&&this.chips.forEach(G=>G.chipListSelectable=this._selectable)}set tabIndex(M){this._userTabIndex=M,this._tabIndex=M}get chipSelectionChanges(){return(0,T.T)(...this.chips.map(M=>M.selectionChange))}get chipFocusChanges(){return(0,T.T)(...this.chips.map(M=>M._onFocus))}get chipBlurChanges(){return(0,T.T)(...this.chips.map(M=>M._onBlur))}get chipRemoveChanges(){return(0,T.T)(...this.chips.map(M=>M.destroyed))}ngAfterContentInit(){this._keyManager=new S.Em(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe((0,y.R)(this._destroyed)).subscribe(M=>this._keyManager.withHorizontalOrientation(M)),this._keyManager.tabOut.pipe((0,y.R)(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe((0,P.O)(null),(0,y.R)(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new N.Ov(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(M){this._chipInput=M,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",M.id)}setDescribedByIds(M){this._ariaDescribedby=M.join(" ")}writeValue(M){this.chips&&this._setSelectionByValue(M,!1)}registerOnChange(M){this._onChange=M}registerOnTouched(M){this._onTouched=M}setDisabledState(M){this.disabled=M,this.stateChanges.next()}onContainerClick(M){this._originatesFromChip(M)||this.focus()}focus(M){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(M),this.stateChanges.next()))}_focusInput(M){this._chipInput&&this._chipInput.focus(M)}_keydown(M){const G=M.target;G&&G.classList.contains("mat-chip")&&(this._keyManager.onKeydown(M),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const M=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(M)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(M){return M>=0&&M<this.chips.length}_setSelectionByValue(M,G=!0){if(this._clearSelection(),this.chips.forEach(ot=>ot.deselect()),Array.isArray(M))M.forEach(ot=>this._selectValue(ot,G)),this._sortValues();else{const ot=this._selectValue(M,G);ot&&G&&this._keyManager.setActiveItem(ot)}}_selectValue(M,G=!0){const ot=this.chips.find(Et=>null!=Et.value&&this._compareWith(Et.value,M));return ot&&(G?ot.selectViaInteraction():ot.select(),this._selectionModel.select(ot)),ot}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(M){this._selectionModel.clear(),this.chips.forEach(G=>{G!==M&&G.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(M=>{M.selected&&this._selectionModel.select(M)}),this.stateChanges.next())}_propagateChanges(M){let G=null;G=Array.isArray(this.selected)?this.selected.map(ot=>ot.value):this.selected?this.selected.value:M,this._value=G,this.change.emit(new Ke(this,G)),this.valueChange.emit(G),this._onChange(G),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(M=>{M.source.selected?this._selectionModel.select(M.source):this._selectionModel.deselect(M.source),this.multiple||this.chips.forEach(G=>{!this._selectionModel.isSelected(G)&&G.selected&&G.deselect()}),M.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(M=>{let G=this.chips.toArray().indexOf(M.chip);this._isValidIndex(G)&&this._keyManager.updateActiveItem(G),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(M=>{const G=M.chip,ot=this.chips.toArray().indexOf(M.chip);this._isValidIndex(ot)&&G._hasFocus&&(this._lastDestroyedChipIndex=ot)})}_originatesFromChip(M){let G=M.target;for(;G&&G!==this._elementRef.nativeElement;){if(G.classList.contains("mat-chip"))return!0;G=G.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(M=>M._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(M=>{M._chipListDisabled=this._disabled,M._chipListMultiple=this.multiple})}}return w.\u0275fac=function(M){return new(M||w)(d.\u0275\u0275directiveInject(d.ElementRef),d.\u0275\u0275directiveInject(d.ChangeDetectorRef),d.\u0275\u0275directiveInject(_e.Is,8),d.\u0275\u0275directiveInject(B.NgForm,8),d.\u0275\u0275directiveInject(B.FormGroupDirective,8),d.\u0275\u0275directiveInject(_.rD),d.\u0275\u0275directiveInject(B.NgControl,10))},w.\u0275cmp=d.\u0275\u0275defineComponent({type:w,selectors:[["mat-chip-list"]],contentQueries:function(M,G,ot){if(1&M&&d.\u0275\u0275contentQuery(ot,Kt,5),2&M){let Et;d.\u0275\u0275queryRefresh(Et=d.\u0275\u0275loadQuery())&&(G.chips=Et)}},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(M,G){1&M&&d.\u0275\u0275listener("focus",function(){return G.focus()})("blur",function(){return G._blur()})("keydown",function(Et){return G._keydown(Et)}),2&M&&(d.\u0275\u0275hostProperty("id",G._uid),d.\u0275\u0275attribute("tabindex",G.disabled?null:G._tabIndex)("aria-describedby",G._ariaDescribedby||null)("aria-required",G.role?G.required:null)("aria-disabled",G.disabled.toString())("aria-invalid",G.errorState)("aria-multiselectable",G.multiple)("role",G.role)("aria-orientation",G.ariaOrientation),d.\u0275\u0275classProp("mat-chip-list-disabled",G.disabled)("mat-chip-list-invalid",G.errorState)("mat-chip-list-required",G.required))},inputs:{errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[d.\u0275\u0275ProvidersFeature([{provide:Ge,useExisting:w}]),d.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:ie,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(M,G){1&M&&(d.\u0275\u0275projectionDef(),d.\u0275\u0275elementStart(0,"div",0),d.\u0275\u0275projection(1),d.\u0275\u0275elementEnd())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.cdk-high-contrast-active .mat-standard-chip.mat-chip-selected{outline-width:3px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),w})(),De=(()=>{class w{}return w.\u0275fac=function(M){return new(M||w)},w.\u0275mod=d.\u0275\u0275defineNgModule({type:w}),w.\u0275inj=d.\u0275\u0275defineInjector({providers:[_.rD,{provide:an,useValue:{separatorKeyCodes:[i.K5]}}],imports:[[_.BQ]]}),w})()},508:(Le,m,l)=>{"use strict";l.d(m,{rD:()=>Y,Y2:()=>se,BQ:()=>be,wG:()=>Ce,si:()=>_e,IR:()=>k,pj:()=>ct,Kr:()=>X,Id:()=>et,FD:()=>z,sb:()=>me});var i=l(5e3),d=l(226),u=l(9808),s=l(925),b=l(5664),C=l(3191),T=l(6758),p=l(6360);const pe=new i.InjectionToken("mat-sanity-checks",{providedIn:"root",factory:function Me(){return!0}});let be=(()=>{class at{constructor(Qe,Se,De){this._sanityChecks=Se,this._document=De,this._hasDoneGlobalChecks=!1,Qe._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(Qe){return!(0,s.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[Qe])}}return at.\u0275fac=function(Qe){return new(Qe||at)(i.\u0275\u0275inject(b.qm),i.\u0275\u0275inject(pe,8),i.\u0275\u0275inject(u.DOCUMENT))},at.\u0275mod=i.\u0275\u0275defineNgModule({type:at}),at.\u0275inj=i.\u0275\u0275defineInjector({imports:[[d.vT],d.vT]}),at})();function et(at){return class extends at{constructor(...Ke){super(...Ke),this._disabled=!1}get disabled(){return this._disabled}set disabled(Ke){this._disabled=(0,C.Ig)(Ke)}}}function ct(at,Ke){return class extends at{constructor(...Qe){super(...Qe),this.defaultColor=Ke,this.color=Ke}get color(){return this._color}set color(Qe){const Se=Qe||this.defaultColor;Se!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),Se&&this._elementRef.nativeElement.classList.add(`mat-${Se}`),this._color=Se)}}}function X(at){return class extends at{constructor(...Ke){super(...Ke),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(Ke){this._disableRipple=(0,C.Ig)(Ke)}}}function me(at,Ke=0){return class extends at{constructor(...Qe){super(...Qe),this._tabIndex=Ke,this.defaultTabIndex=Ke}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(Qe){this._tabIndex=null!=Qe?(0,C.su)(Qe):this.defaultTabIndex}}}function z(at){return class extends at{constructor(...Ke){super(...Ke),this.stateChanges=new T.x,this.errorState=!1}updateErrorState(){const Ke=this.errorState,w=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);w!==Ke&&(this.errorState=w,this.stateChanges.next())}}}let Y=(()=>{class at{isErrorState(Qe,Se){return!!(Qe&&Qe.invalid&&(Qe.touched||Se&&Se.submitted))}}return at.\u0275fac=function(Qe){return new(Qe||at)},at.\u0275prov=i.\u0275\u0275defineInjectable({token:at,factory:at.\u0275fac,providedIn:"root"}),at})();class Xe{constructor(Ke,Qe,Se){this._renderer=Ke,this.element=Qe,this.config=Se,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const pt={enterDuration:225,exitDuration:150},Rt=(0,s.i$)({passive:!0}),dt=["mousedown","touchstart"],Ze=["mouseup","mouseleave","touchend","touchcancel"];class k{constructor(Ke,Qe,Se,De){this._target=Ke,this._ngZone=Qe,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,De.isBrowser&&(this._containerElement=(0,C.fI)(Se))}fadeInRipple(Ke,Qe,Se={}){const De=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),w=Object.assign(Object.assign({},pt),Se.animation);Se.centered&&(Ke=De.left+De.width/2,Qe=De.top+De.height/2);const I=Se.radius||function Pe(at,Ke,Qe){const Se=Math.max(Math.abs(at-Qe.left),Math.abs(at-Qe.right)),De=Math.max(Math.abs(Ke-Qe.top),Math.abs(Ke-Qe.bottom));return Math.sqrt(Se*Se+De*De)}(Ke,Qe,De),M=Ke-De.left,G=Qe-De.top,ot=w.enterDuration,Et=document.createElement("div");Et.classList.add("mat-ripple-element"),Et.style.left=M-I+"px",Et.style.top=G-I+"px",Et.style.height=2*I+"px",Et.style.width=2*I+"px",null!=Se.color&&(Et.style.backgroundColor=Se.color),Et.style.transitionDuration=`${ot}ms`,this._containerElement.appendChild(Et),function ne(at){window.getComputedStyle(at).getPropertyValue("opacity")}(Et),Et.style.transform="scale(1)";const Ut=new Xe(this,Et,Se);return Ut.state=0,this._activeRipples.add(Ut),Se.persistent||(this._mostRecentTransientRipple=Ut),this._runTimeoutOutsideZone(()=>{const gn=Ut===this._mostRecentTransientRipple;Ut.state=1,!Se.persistent&&(!gn||!this._isPointerDown)&&Ut.fadeOut()},ot),Ut}fadeOutRipple(Ke){const Qe=this._activeRipples.delete(Ke);if(Ke===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!Qe)return;const Se=Ke.element,De=Object.assign(Object.assign({},pt),Ke.config.animation);Se.style.transitionDuration=`${De.exitDuration}ms`,Se.style.opacity="0",Ke.state=2,this._runTimeoutOutsideZone(()=>{Ke.state=3,Se.remove()},De.exitDuration)}fadeOutAll(){this._activeRipples.forEach(Ke=>Ke.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(Ke=>{Ke.config.persistent||Ke.fadeOut()})}setupTriggerEvents(Ke){const Qe=(0,C.fI)(Ke);!Qe||Qe===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=Qe,this._registerEvents(dt))}handleEvent(Ke){"mousedown"===Ke.type?this._onMousedown(Ke):"touchstart"===Ke.type?this._onTouchStart(Ke):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Ze),this._pointerUpEventsRegistered=!0)}_onMousedown(Ke){const Qe=(0,b.X6)(Ke),Se=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!Qe&&!Se&&(this._isPointerDown=!0,this.fadeInRipple(Ke.clientX,Ke.clientY,this._target.rippleConfig))}_onTouchStart(Ke){if(!this._target.rippleDisabled&&!(0,b.yG)(Ke)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const Qe=Ke.changedTouches;for(let Se=0;Se<Qe.length;Se++)this.fadeInRipple(Qe[Se].clientX,Qe[Se].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._activeRipples.forEach(Ke=>{!Ke.config.persistent&&(1===Ke.state||Ke.config.terminateOnPointerUp&&0===Ke.state)&&Ke.fadeOut()}))}_runTimeoutOutsideZone(Ke,Qe=0){this._ngZone.runOutsideAngular(()=>setTimeout(Ke,Qe))}_registerEvents(Ke){this._ngZone.runOutsideAngular(()=>{Ke.forEach(Qe=>{this._triggerElement.addEventListener(Qe,this,Rt)})})}_removeTriggerEvents(){this._triggerElement&&(dt.forEach(Ke=>{this._triggerElement.removeEventListener(Ke,this,Rt)}),this._pointerUpEventsRegistered&&Ze.forEach(Ke=>{this._triggerElement.removeEventListener(Ke,this,Rt)}))}}const se=new i.InjectionToken("mat-ripple-global-options");let Ce=(()=>{class at{constructor(Qe,Se,De,w,I){this._elementRef=Qe,this._animationMode=I,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=w||{},this._rippleRenderer=new k(this,Se,Qe,De)}get disabled(){return this._disabled}set disabled(Qe){Qe&&this.fadeOutAllNonPersistent(),this._disabled=Qe,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(Qe){this._trigger=Qe,this._setupTriggerEventsIfEnabled()}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:Object.assign(Object.assign(Object.assign({},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(Qe,Se=0,De){return"number"==typeof Qe?this._rippleRenderer.fadeInRipple(Qe,Se,Object.assign(Object.assign({},this.rippleConfig),De)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),Qe))}}return at.\u0275fac=function(Qe){return new(Qe||at)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.NgZone),i.\u0275\u0275directiveInject(s.t4),i.\u0275\u0275directiveInject(se,8),i.\u0275\u0275directiveInject(p.ANIMATION_MODULE_TYPE,8))},at.\u0275dir=i.\u0275\u0275defineDirective({type:at,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(Qe,Se){2&Qe&&i.\u0275\u0275classProp("mat-ripple-unbounded",Se.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"]}),at})(),_e=(()=>{class at{}return at.\u0275fac=function(Qe){return new(Qe||at)},at.\u0275mod=i.\u0275\u0275defineNgModule({type:at}),at.\u0275inj=i.\u0275\u0275defineInjector({imports:[[be,s.ud],be]}),at})()},8966:(Le,m,l)=>{"use strict";l.r(m),l.d(m,{MAT_DIALOG_DATA:()=>me,MAT_DIALOG_DEFAULT_OPTIONS:()=>z,MAT_DIALOG_SCROLL_STRATEGY:()=>oe,MAT_DIALOG_SCROLL_STRATEGY_FACTORY:()=>ke,MAT_DIALOG_SCROLL_STRATEGY_PROVIDER:()=>Ue,MAT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY:()=>de,MatDialog:()=>Je,MatDialogActions:()=>qe,MatDialogClose:()=>vt,MatDialogConfig:()=>pe,MatDialogContainer:()=>He,MatDialogContent:()=>Re,MatDialogModule:()=>he,MatDialogRef:()=>ct,MatDialogTitle:()=>St,_MatDialogBase:()=>fe,_MatDialogContainerBase:()=>xe,_closeDialogVia:()=>X,matDialogAnimations:()=>be,throwMatDialogContentAlreadyAttachedError:()=>ue});var i=l(1314),d=l(7429),_=l(5e3),u=l(508),s=l(226),b=l(6758),C=l(9770),T=l(6921),p=l(9646),y=l(9300),P=l(5698),O=l(8675),S=l(925),N=l(9808),B=l(1777),ce=l(5664),K=l(1159),re=l(6360);function Me(Ee,Ie){}class pe{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0}}const be={dialogContainer:(0,B.X$)("dialogContainer",[(0,B.SB)("void, exit",(0,B.oB)({opacity:0,transform:"scale(0.7)"})),(0,B.SB)("enter",(0,B.oB)({transform:"none"})),(0,B.eR)("* => enter",(0,B.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,B.oB)({transform:"none",opacity:1}))),(0,B.eR)("* => void, * => exit",(0,B.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,B.oB)({opacity:0})))])};function ue(){throw Error("Attempting to attach dialog content after content is already attached")}let xe=(()=>{class Ee extends d.en{constructor(ge,Xe,pt,Tt,Rt,dt,Ze,k){super(),this._elementRef=ge,this._focusTrapFactory=Xe,this._changeDetectorRef=pt,this._config=Rt,this._interactivityChecker=dt,this._ngZone=Ze,this._focusMonitor=k,this._animationStateChanged=new _.EventEmitter,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=ne=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(ne)),this._ariaLabelledBy=Rt.ariaLabelledBy||null,this._document=Tt}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement()}attachComponentPortal(ge){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(ge)}attachTemplatePortal(ge){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(ge)}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(ge,Xe){this._interactivityChecker.isFocusable(ge)||(ge.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{ge.addEventListener("blur",()=>ge.removeAttribute("tabindex")),ge.addEventListener("mousedown",()=>ge.removeAttribute("tabindex"))})),ge.focus(Xe)}_focusByCssSelector(ge,Xe){let pt=this._elementRef.nativeElement.querySelector(ge);pt&&this._forceFocus(pt,Xe)}_trapFocus(){const ge=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||ge.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(Xe=>{Xe||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const ge=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&ge&&"function"==typeof ge.focus){const Xe=(0,S.ht)(),pt=this._elementRef.nativeElement;(!Xe||Xe===this._document.body||Xe===pt||pt.contains(Xe))&&(this._focusMonitor?(this._focusMonitor.focusVia(ge,this._closeInteractionType),this._closeInteractionType=null):ge.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,S.ht)())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const ge=this._elementRef.nativeElement,Xe=(0,S.ht)();return ge===Xe||ge.contains(Xe)}}return Ee.\u0275fac=function(ge){return new(ge||Ee)(_.\u0275\u0275directiveInject(_.ElementRef),_.\u0275\u0275directiveInject(ce.qV),_.\u0275\u0275directiveInject(_.ChangeDetectorRef),_.\u0275\u0275directiveInject(N.DOCUMENT,8),_.\u0275\u0275directiveInject(pe),_.\u0275\u0275directiveInject(ce.ic),_.\u0275\u0275directiveInject(_.NgZone),_.\u0275\u0275directiveInject(ce.tE))},Ee.\u0275dir=_.\u0275\u0275defineDirective({type:Ee,viewQuery:function(ge,Xe){if(1&ge&&_.\u0275\u0275viewQuery(d.Pl,7),2&ge){let pt;_.\u0275\u0275queryRefresh(pt=_.\u0275\u0275loadQuery())&&(Xe._portalOutlet=pt.first)}},features:[_.\u0275\u0275InheritDefinitionFeature]}),Ee})(),He=(()=>{class Ee extends xe{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:ge,totalTime:Xe}){"enter"===ge?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:Xe})):"exit"===ge&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:Xe}))}_onAnimationStart({toState:ge,totalTime:Xe}){"enter"===ge?this._animationStateChanged.next({state:"opening",totalTime:Xe}):("exit"===ge||"void"===ge)&&this._animationStateChanged.next({state:"closing",totalTime:Xe})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return Ee.\u0275fac=function(){let Ie;return function(Xe){return(Ie||(Ie=_.\u0275\u0275getInheritedFactory(Ee)))(Xe||Ee)}}(),Ee.\u0275cmp=_.\u0275\u0275defineComponent({type:Ee,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(ge,Xe){1&ge&&_.\u0275\u0275syntheticHostListener("@dialogContainer.start",function(Tt){return Xe._onAnimationStart(Tt)})("@dialogContainer.done",function(Tt){return Xe._onAnimationDone(Tt)}),2&ge&&(_.\u0275\u0275hostProperty("id",Xe._id),_.\u0275\u0275attribute("role",Xe._config.role)("aria-labelledby",Xe._config.ariaLabel?null:Xe._ariaLabelledBy)("aria-label",Xe._config.ariaLabel)("aria-describedby",Xe._config.ariaDescribedBy||null),_.\u0275\u0275syntheticHostProperty("@dialogContainer",Xe._state))},features:[_.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(ge,Xe){1&ge&&_.\u0275\u0275template(0,Me,0,0,"ng-template",0)},directives:[d.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[be.dialogContainer]}}),Ee})(),et=0;class ct{constructor(Ie,ge,Xe="mat-dialog-"+et++){this._overlayRef=Ie,this._containerInstance=ge,this.id=Xe,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new b.x,this._afterClosed=new b.x,this._beforeClosed=new b.x,this._state=0,ge._id=Xe,ge._animationStateChanged.pipe((0,y.h)(pt=>"opened"===pt.state),(0,P.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),ge._animationStateChanged.pipe((0,y.h)(pt=>"closed"===pt.state),(0,P.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),Ie.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),Ie.keydownEvents().pipe((0,y.h)(pt=>pt.keyCode===K.hY&&!this.disableClose&&!(0,K.Vb)(pt))).subscribe(pt=>{pt.preventDefault(),X(this,"keyboard")}),Ie.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():X(this,"mouse")})}close(Ie){this._result=Ie,this._containerInstance._animationStateChanged.pipe((0,y.h)(ge=>"closing"===ge.state),(0,P.q)(1)).subscribe(ge=>{this._beforeClosed.next(Ie),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),ge.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(Ie){let ge=this._getPositionStrategy();return Ie&&(Ie.left||Ie.right)?Ie.left?ge.left(Ie.left):ge.right(Ie.right):ge.centerHorizontally(),Ie&&(Ie.top||Ie.bottom)?Ie.top?ge.top(Ie.top):ge.bottom(Ie.bottom):ge.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(Ie="",ge=""){return this._overlayRef.updateSize({width:Ie,height:ge}),this._overlayRef.updatePosition(),this}addPanelClass(Ie){return this._overlayRef.addPanelClass(Ie),this}removePanelClass(Ie){return this._overlayRef.removePanelClass(Ie),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function X(Ee,Ie,ge){return void 0!==Ee._containerInstance&&(Ee._containerInstance._closeInteractionType=Ie),Ee.close(ge)}const me=new _.InjectionToken("MatDialogData"),z=new _.InjectionToken("mat-dialog-default-options"),oe=new _.InjectionToken("mat-dialog-scroll-strategy");function ke(Ee){return()=>Ee.scrollStrategies.block()}function de(Ee){return()=>Ee.scrollStrategies.block()}const Ue={provide:oe,deps:[i.aV],useFactory:de};let fe=(()=>{class Ee{constructor(ge,Xe,pt,Tt,Rt,dt,Ze,k,ne,Pe){this._overlay=ge,this._injector=Xe,this._defaultOptions=pt,this._parentDialog=Tt,this._overlayContainer=Rt,this._dialogRefConstructor=Ze,this._dialogContainerType=k,this._dialogDataToken=ne,this._animationMode=Pe,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new b.x,this._afterOpenedAtThisLevel=new b.x,this._ariaHiddenElements=new Map,this._dialogAnimatingOpen=!1,this.afterAllClosed=(0,C.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,O.O)(void 0))),this._scrollStrategy=dt}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const ge=this._parentDialog;return ge?ge._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(ge,Xe){if(Xe=function Te(Ee,Ie){return Object.assign(Object.assign({},Ie),Ee)}(Xe,this._defaultOptions||new pe),Xe.id&&this.getDialogById(Xe.id),this._dialogAnimatingOpen)return this._lastDialogRef;const pt=this._createOverlay(Xe),Tt=this._attachDialogContainer(pt,Xe);if("NoopAnimations"!==this._animationMode){const dt=Tt._animationStateChanged.subscribe(Ze=>{"opening"===Ze.state&&(this._dialogAnimatingOpen=!0),"opened"===Ze.state&&(this._dialogAnimatingOpen=!1,dt.unsubscribe())});this._animationStateSubscriptions||(this._animationStateSubscriptions=new T.w0),this._animationStateSubscriptions.add(dt)}const Rt=this._attachDialogContent(ge,Tt,pt,Xe);return this._lastDialogRef=Rt,this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(Rt),Rt.afterClosed().subscribe(()=>this._removeOpenDialog(Rt)),this.afterOpened.next(Rt),Tt._initializeWithAttachedContent(),Rt}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(ge){return this.openDialogs.find(Xe=>Xe.id===ge)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._animationStateSubscriptions&&this._animationStateSubscriptions.unsubscribe()}_createOverlay(ge){const Xe=this._getOverlayConfig(ge);return this._overlay.create(Xe)}_getOverlayConfig(ge){const Xe=new i.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:ge.scrollStrategy||this._scrollStrategy(),panelClass:ge.panelClass,hasBackdrop:ge.hasBackdrop,direction:ge.direction,minWidth:ge.minWidth,minHeight:ge.minHeight,maxWidth:ge.maxWidth,maxHeight:ge.maxHeight,disposeOnNavigation:ge.closeOnNavigation});return ge.backdropClass&&(Xe.backdropClass=ge.backdropClass),Xe}_attachDialogContainer(ge,Xe){const Tt=_.Injector.create({parent:Xe&&Xe.viewContainerRef&&Xe.viewContainerRef.injector||this._injector,providers:[{provide:pe,useValue:Xe}]}),Rt=new d.C5(this._dialogContainerType,Xe.viewContainerRef,Tt,Xe.componentFactoryResolver);return ge.attach(Rt).instance}_attachDialogContent(ge,Xe,pt,Tt){const Rt=new this._dialogRefConstructor(pt,Xe,Tt.id);if(ge instanceof _.TemplateRef)Xe.attachTemplatePortal(new d.UE(ge,null,{$implicit:Tt.data,dialogRef:Rt}));else{const dt=this._createInjector(Tt,Rt,Xe),Ze=Xe.attachComponentPortal(new d.C5(ge,Tt.viewContainerRef,dt));Rt.componentInstance=Ze.instance}return Rt.updateSize(Tt.width,Tt.height).updatePosition(Tt.position),Rt}_createInjector(ge,Xe,pt){const Tt=ge&&ge.viewContainerRef&&ge.viewContainerRef.injector,Rt=[{provide:this._dialogContainerType,useValue:pt},{provide:this._dialogDataToken,useValue:ge.data},{provide:this._dialogRefConstructor,useValue:Xe}];return ge.direction&&(!Tt||!Tt.get(s.Is,null,_.InjectFlags.Optional))&&Rt.push({provide:s.Is,useValue:{value:ge.direction,change:(0,p.of)()}}),_.Injector.create({parent:Tt||this._injector,providers:Rt})}_removeOpenDialog(ge){const Xe=this.openDialogs.indexOf(ge);Xe>-1&&(this.openDialogs.splice(Xe,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((pt,Tt)=>{pt?Tt.setAttribute("aria-hidden",pt):Tt.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const ge=this._overlayContainer.getContainerElement();if(ge.parentElement){const Xe=ge.parentElement.children;for(let pt=Xe.length-1;pt>-1;pt--){let Tt=Xe[pt];Tt!==ge&&"SCRIPT"!==Tt.nodeName&&"STYLE"!==Tt.nodeName&&!Tt.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(Tt,Tt.getAttribute("aria-hidden")),Tt.setAttribute("aria-hidden","true"))}}}_closeDialogs(ge){let Xe=ge.length;for(;Xe--;)ge[Xe].close()}}return Ee.\u0275fac=function(ge){_.\u0275\u0275invalidFactory()},Ee.\u0275dir=_.\u0275\u0275defineDirective({type:Ee}),Ee})(),Je=(()=>{class Ee extends fe{constructor(ge,Xe,pt,Tt,Rt,dt,Ze,k){super(ge,Xe,Tt,dt,Ze,Rt,ct,He,me,k)}}return Ee.\u0275fac=function(ge){return new(ge||Ee)(_.\u0275\u0275inject(i.aV),_.\u0275\u0275inject(_.Injector),_.\u0275\u0275inject(N.Location,8),_.\u0275\u0275inject(z,8),_.\u0275\u0275inject(oe),_.\u0275\u0275inject(Ee,12),_.\u0275\u0275inject(i.Xj),_.\u0275\u0275inject(re.ANIMATION_MODULE_TYPE,8))},Ee.\u0275prov=_.\u0275\u0275defineInjectable({token:Ee,factory:Ee.\u0275fac}),Ee})(),Ge=0,vt=(()=>{class Ee{constructor(ge,Xe,pt){this.dialogRef=ge,this._elementRef=Xe,this._dialog=pt,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=Y(this._elementRef,this._dialog.openDialogs))}ngOnChanges(ge){const Xe=ge._matDialogClose||ge._matDialogCloseResult;Xe&&(this.dialogResult=Xe.currentValue)}_onButtonClick(ge){X(this.dialogRef,0===ge.screenX&&0===ge.screenY?"keyboard":"mouse",this.dialogResult)}}return Ee.\u0275fac=function(ge){return new(ge||Ee)(_.\u0275\u0275directiveInject(ct,8),_.\u0275\u0275directiveInject(_.ElementRef),_.\u0275\u0275directiveInject(Je))},Ee.\u0275dir=_.\u0275\u0275defineDirective({type:Ee,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(ge,Xe){1&ge&&_.\u0275\u0275listener("click",function(Tt){return Xe._onButtonClick(Tt)}),2&ge&&_.\u0275\u0275attribute("aria-label",Xe.ariaLabel||null)("type",Xe.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[_.\u0275\u0275NgOnChangesFeature]}),Ee})(),St=(()=>{class Ee{constructor(ge,Xe,pt){this._dialogRef=ge,this._elementRef=Xe,this._dialog=pt,this.id="mat-dialog-title-"+Ge++}ngOnInit(){this._dialogRef||(this._dialogRef=Y(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const ge=this._dialogRef._containerInstance;ge&&!ge._ariaLabelledBy&&(ge._ariaLabelledBy=this.id)})}}return Ee.\u0275fac=function(ge){return new(ge||Ee)(_.\u0275\u0275directiveInject(ct,8),_.\u0275\u0275directiveInject(_.ElementRef),_.\u0275\u0275directiveInject(Je))},Ee.\u0275dir=_.\u0275\u0275defineDirective({type:Ee,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(ge,Xe){2&ge&&_.\u0275\u0275hostProperty("id",Xe.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),Ee})(),Re=(()=>{class Ee{}return Ee.\u0275fac=function(ge){return new(ge||Ee)},Ee.\u0275dir=_.\u0275\u0275defineDirective({type:Ee,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),Ee})(),qe=(()=>{class Ee{}return Ee.\u0275fac=function(ge){return new(ge||Ee)},Ee.\u0275dir=_.\u0275\u0275defineDirective({type:Ee,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),Ee})();function Y(Ee,Ie){let ge=Ee.nativeElement.parentElement;for(;ge&&!ge.classList.contains("mat-dialog-container");)ge=ge.parentElement;return ge?Ie.find(Xe=>Xe.id===ge.id):null}let he=(()=>{class Ee{}return Ee.\u0275fac=function(ge){return new(ge||Ee)},Ee.\u0275mod=_.\u0275\u0275defineNgModule({type:Ee}),Ee.\u0275inj=_.\u0275\u0275defineInjector({providers:[Je,Ue],imports:[[i.U8,d.eL,u.BQ],u.BQ]}),Ee})()},5245:(Le,m,l)=>{"use strict";l.r(m),l.d(m,{ICON_REGISTRY_PROVIDER:()=>me,ICON_REGISTRY_PROVIDER_FACTORY:()=>X,MAT_ICON_LOCATION:()=>Ue,MAT_ICON_LOCATION_FACTORY:()=>fe,MatIcon:()=>vt,MatIconModule:()=>St,MatIconRegistry:()=>ct,getMatIconFailedToSanitizeLiteralError:()=>He,getMatIconFailedToSanitizeUrlError:()=>xe,getMatIconNameNotFoundError:()=>be,getMatIconNoHttpProviderError:()=>ue});var i=l(5e3),d=l(508),_=l(3191),u=l(9808),s=l(9646),b=l(2843),C=l(4128),T=l(6921),p=l(8505),y=l(4004),P=l(262),O=l(8746),S=l(3099),N=l(5698),B=l(520),ce=l(2313);const K=["*"];let re;function pe(Re){var qe;return(null===(qe=function Me(){if(void 0===re&&(re=null,"undefined"!=typeof window)){const Re=window;void 0!==Re.trustedTypes&&(re=Re.trustedTypes.createPolicy("angular#components",{createHTML:qe=>qe}))}return re}())||void 0===qe?void 0:qe.createHTML(Re))||Re}function be(Re){return Error(`Unable to find icon with the name "${Re}"`)}function ue(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}function xe(Re){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${Re}".`)}function He(Re){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${Re}".`)}class et{constructor(qe,Y,he){this.url=qe,this.svgText=Y,this.options=he}}let ct=(()=>{class Re{constructor(Y,he,Ee,Ie){this._httpClient=Y,this._sanitizer=he,this._errorHandler=Ie,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=Ee}addSvgIcon(Y,he,Ee){return this.addSvgIconInNamespace("",Y,he,Ee)}addSvgIconLiteral(Y,he,Ee){return this.addSvgIconLiteralInNamespace("",Y,he,Ee)}addSvgIconInNamespace(Y,he,Ee,Ie){return this._addSvgIconConfig(Y,he,new et(Ee,null,Ie))}addSvgIconResolver(Y){return this._resolvers.push(Y),this}addSvgIconLiteralInNamespace(Y,he,Ee,Ie){const ge=this._sanitizer.sanitize(i.SecurityContext.HTML,Ee);if(!ge)throw He(Ee);const Xe=pe(ge);return this._addSvgIconConfig(Y,he,new et("",Xe,Ie))}addSvgIconSet(Y,he){return this.addSvgIconSetInNamespace("",Y,he)}addSvgIconSetLiteral(Y,he){return this.addSvgIconSetLiteralInNamespace("",Y,he)}addSvgIconSetInNamespace(Y,he,Ee){return this._addSvgIconSetConfig(Y,new et(he,null,Ee))}addSvgIconSetLiteralInNamespace(Y,he,Ee){const Ie=this._sanitizer.sanitize(i.SecurityContext.HTML,he);if(!Ie)throw He(he);const ge=pe(Ie);return this._addSvgIconSetConfig(Y,new et("",ge,Ee))}registerFontClassAlias(Y,he=Y){return this._fontCssClassesByAlias.set(Y,he),this}classNameForFontAlias(Y){return this._fontCssClassesByAlias.get(Y)||Y}setDefaultFontSetClass(Y){return this._defaultFontSetClass=Y,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(Y){const he=this._sanitizer.sanitize(i.SecurityContext.RESOURCE_URL,Y);if(!he)throw xe(Y);const Ee=this._cachedIconsByUrl.get(he);return Ee?(0,s.of)(z(Ee)):this._loadSvgIconFromConfig(new et(Y,null)).pipe((0,p.b)(Ie=>this._cachedIconsByUrl.set(he,Ie)),(0,y.U)(Ie=>z(Ie)))}getNamedSvgIcon(Y,he=""){const Ee=oe(he,Y);let Ie=this._svgIconConfigs.get(Ee);if(Ie)return this._getSvgFromConfig(Ie);if(Ie=this._getIconConfigFromResolvers(he,Y),Ie)return this._svgIconConfigs.set(Ee,Ie),this._getSvgFromConfig(Ie);const ge=this._iconSetConfigs.get(he);return ge?this._getSvgFromIconSetConfigs(Y,ge):(0,b._)(be(Ee))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(Y){return Y.svgText?(0,s.of)(z(this._svgElementFromConfig(Y))):this._loadSvgIconFromConfig(Y).pipe((0,y.U)(he=>z(he)))}_getSvgFromIconSetConfigs(Y,he){const Ee=this._extractIconWithNameFromAnySet(Y,he);if(Ee)return(0,s.of)(Ee);const Ie=he.filter(ge=>!ge.svgText).map(ge=>this._loadSvgIconSetFromConfig(ge).pipe((0,P.K)(Xe=>{const Tt=`Loading icon set URL: ${this._sanitizer.sanitize(i.SecurityContext.RESOURCE_URL,ge.url)} failed: ${Xe.message}`;return this._errorHandler.handleError(new Error(Tt)),(0,s.of)(null)})));return(0,C.D)(Ie).pipe((0,y.U)(()=>{const ge=this._extractIconWithNameFromAnySet(Y,he);if(!ge)throw be(Y);return ge}))}_extractIconWithNameFromAnySet(Y,he){for(let Ee=he.length-1;Ee>=0;Ee--){const Ie=he[Ee];if(Ie.svgText&&Ie.svgText.toString().indexOf(Y)>-1){const ge=this._svgElementFromConfig(Ie),Xe=this._extractSvgIconFromSet(ge,Y,Ie.options);if(Xe)return Xe}}return null}_loadSvgIconFromConfig(Y){return this._fetchIcon(Y).pipe((0,p.b)(he=>Y.svgText=he),(0,y.U)(()=>this._svgElementFromConfig(Y)))}_loadSvgIconSetFromConfig(Y){return Y.svgText?(0,s.of)(null):this._fetchIcon(Y).pipe((0,p.b)(he=>Y.svgText=he))}_extractSvgIconFromSet(Y,he,Ee){const Ie=Y.querySelector(`[id="${he}"]`);if(!Ie)return null;const ge=Ie.cloneNode(!0);if(ge.removeAttribute("id"),"svg"===ge.nodeName.toLowerCase())return this._setSvgAttributes(ge,Ee);if("symbol"===ge.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(ge),Ee);const Xe=this._svgElementFromString(pe("<svg></svg>"));return Xe.appendChild(ge),this._setSvgAttributes(Xe,Ee)}_svgElementFromString(Y){const he=this._document.createElement("DIV");he.innerHTML=Y;const Ee=he.querySelector("svg");if(!Ee)throw Error("<svg> tag not found");return Ee}_toSvgElement(Y){const he=this._svgElementFromString(pe("<svg></svg>")),Ee=Y.attributes;for(let Ie=0;Ie<Ee.length;Ie++){const{name:ge,value:Xe}=Ee[Ie];"id"!==ge&&he.setAttribute(ge,Xe)}for(let Ie=0;Ie<Y.childNodes.length;Ie++)Y.childNodes[Ie].nodeType===this._document.ELEMENT_NODE&&he.appendChild(Y.childNodes[Ie].cloneNode(!0));return he}_setSvgAttributes(Y,he){return Y.setAttribute("fit",""),Y.setAttribute("height","100%"),Y.setAttribute("width","100%"),Y.setAttribute("preserveAspectRatio","xMidYMid meet"),Y.setAttribute("focusable","false"),he&&he.viewBox&&Y.setAttribute("viewBox",he.viewBox),Y}_fetchIcon(Y){var he;const{url:Ee,options:Ie}=Y,ge=null!==(he=null==Ie?void 0:Ie.withCredentials)&&void 0!==he&&he;if(!this._httpClient)throw ue();if(null==Ee)throw Error(`Cannot fetch icon from URL "${Ee}".`);const Xe=this._sanitizer.sanitize(i.SecurityContext.RESOURCE_URL,Ee);if(!Xe)throw xe(Ee);const pt=this._inProgressUrlFetches.get(Xe);if(pt)return pt;const Tt=this._httpClient.get(Xe,{responseType:"text",withCredentials:ge}).pipe((0,y.U)(Rt=>pe(Rt)),(0,O.x)(()=>this._inProgressUrlFetches.delete(Xe)),(0,S.B)());return this._inProgressUrlFetches.set(Xe,Tt),Tt}_addSvgIconConfig(Y,he,Ee){return this._svgIconConfigs.set(oe(Y,he),Ee),this}_addSvgIconSetConfig(Y,he){const Ee=this._iconSetConfigs.get(Y);return Ee?Ee.push(he):this._iconSetConfigs.set(Y,[he]),this}_svgElementFromConfig(Y){if(!Y.svgElement){const he=this._svgElementFromString(Y.svgText);this._setSvgAttributes(he,Y.options),Y.svgElement=he}return Y.svgElement}_getIconConfigFromResolvers(Y,he){for(let Ee=0;Ee<this._resolvers.length;Ee++){const Ie=this._resolvers[Ee](he,Y);if(Ie)return ke(Ie)?new et(Ie.url,null,Ie.options):new et(Ie,null)}}}return Re.\u0275fac=function(Y){return new(Y||Re)(i.\u0275\u0275inject(B.HttpClient,8),i.\u0275\u0275inject(ce.DomSanitizer),i.\u0275\u0275inject(u.DOCUMENT,8),i.\u0275\u0275inject(i.ErrorHandler))},Re.\u0275prov=i.\u0275\u0275defineInjectable({token:Re,factory:Re.\u0275fac,providedIn:"root"}),Re})();function X(Re,qe,Y,he,Ee){return Re||new ct(qe,Y,Ee,he)}const me={provide:ct,deps:[[new i.Optional,new i.SkipSelf,ct],[new i.Optional,B.HttpClient],ce.DomSanitizer,i.ErrorHandler,[new i.Optional,u.DOCUMENT]],useFactory:X};function z(Re){return Re.cloneNode(!0)}function oe(Re,qe){return Re+":"+qe}function ke(Re){return!(!Re.url||!Re.options)}const de=(0,d.pj)(class{constructor(Re){this._elementRef=Re}}),Ue=new i.InjectionToken("mat-icon-location",{providedIn:"root",factory:fe});function fe(){const Re=(0,i.inject)(u.DOCUMENT),qe=Re?Re.location:null;return{getPathname:()=>qe?qe.pathname+qe.search:""}}const Je=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Te=Je.map(Re=>`[${Re}]`).join(", "),Ge=/^url\(['"]?#(.*?)['"]?\)$/;let vt=(()=>{class Re extends de{constructor(Y,he,Ee,Ie,ge){super(Y),this._iconRegistry=he,this._location=Ie,this._errorHandler=ge,this._inline=!1,this._currentIconFetch=T.w0.EMPTY,Ee||Y.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(Y){this._inline=(0,_.Ig)(Y)}get svgIcon(){return this._svgIcon}set svgIcon(Y){Y!==this._svgIcon&&(Y?this._updateSvgIcon(Y):this._svgIcon&&this._clearSvgElement(),this._svgIcon=Y)}get fontSet(){return this._fontSet}set fontSet(Y){const he=this._cleanupFontValue(Y);he!==this._fontSet&&(this._fontSet=he,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(Y){const he=this._cleanupFontValue(Y);he!==this._fontIcon&&(this._fontIcon=he,this._updateFontIconClasses())}_splitIconName(Y){if(!Y)return["",""];const he=Y.split(":");switch(he.length){case 1:return["",he[0]];case 2:return he;default:throw Error(`Invalid icon name: "${Y}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const Y=this._elementsWithExternalReferences;if(Y&&Y.size){const he=this._location.getPathname();he!==this._previousPath&&(this._previousPath=he,this._prependPathToReferences(he))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(Y){this._clearSvgElement();const he=Y.querySelectorAll("style");for(let Ie=0;Ie<he.length;Ie++)he[Ie].textContent+=" ";const Ee=this._location.getPathname();this._previousPath=Ee,this._cacheChildrenWithExternalReferences(Y),this._prependPathToReferences(Ee),this._elementRef.nativeElement.appendChild(Y)}_clearSvgElement(){const Y=this._elementRef.nativeElement;let he=Y.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();he--;){const Ee=Y.childNodes[he];(1!==Ee.nodeType||"svg"===Ee.nodeName.toLowerCase())&&Ee.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const Y=this._elementRef.nativeElement,he=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();he!=this._previousFontSetClass&&(this._previousFontSetClass&&Y.classList.remove(this._previousFontSetClass),he&&Y.classList.add(he),this._previousFontSetClass=he),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&Y.classList.remove(this._previousFontIconClass),this.fontIcon&&Y.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(Y){return"string"==typeof Y?Y.trim().split(" ")[0]:Y}_prependPathToReferences(Y){const he=this._elementsWithExternalReferences;he&&he.forEach((Ee,Ie)=>{Ee.forEach(ge=>{Ie.setAttribute(ge.name,`url('${Y}#${ge.value}')`)})})}_cacheChildrenWithExternalReferences(Y){const he=Y.querySelectorAll(Te),Ee=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let Ie=0;Ie<he.length;Ie++)Je.forEach(ge=>{const Xe=he[Ie],pt=Xe.getAttribute(ge),Tt=pt?pt.match(Ge):null;if(Tt){let Rt=Ee.get(Xe);Rt||(Rt=[],Ee.set(Xe,Rt)),Rt.push({name:ge,value:Tt[1]})}})}_updateSvgIcon(Y){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),Y){const[he,Ee]=this._splitIconName(Y);he&&(this._svgNamespace=he),Ee&&(this._svgName=Ee),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(Ee,he).pipe((0,N.q)(1)).subscribe(Ie=>this._setSvgElement(Ie),Ie=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${he}:${Ee}! ${Ie.message}`))})}}}return Re.\u0275fac=function(Y){return new(Y||Re)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(ct),i.\u0275\u0275injectAttribute("aria-hidden"),i.\u0275\u0275directiveInject(Ue),i.\u0275\u0275directiveInject(i.ErrorHandler))},Re.\u0275cmp=i.\u0275\u0275defineComponent({type:Re,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(Y,he){2&Y&&(i.\u0275\u0275attribute("data-mat-icon-type",he._usingFontIcon()?"font":"svg")("data-mat-icon-name",he._svgName||he.fontIcon)("data-mat-icon-namespace",he._svgNamespace||he.fontSet),i.\u0275\u0275classProp("mat-icon-inline",he.inline)("mat-icon-no-color","primary"!==he.color&&"accent"!==he.color&&"warn"!==he.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[i.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:K,decls:1,vars:0,template:function(Y,he){1&Y&&(i.\u0275\u0275projectionDef(),i.\u0275\u0275projection(0))},styles:[".mat-icon{-webkit-user-select:none;-moz-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),Re})(),St=(()=>{class Re{}return Re.\u0275fac=function(Y){return new(Y||Re)},Re.\u0275mod=i.\u0275\u0275defineNgModule({type:Re}),Re.\u0275inj=i.\u0275\u0275defineInjector({imports:[[d.BQ],d.BQ]}),Re})()},2181:(Le,m,l)=>{"use strict";l.r(m),l.d(m,{MAT_MENU_CONTENT:()=>ke,MAT_MENU_DEFAULT_OPTIONS:()=>qe,MAT_MENU_PANEL:()=>vt,MAT_MENU_SCROLL_STRATEGY:()=>ge,MatMenu:()=>Ie,MatMenuContent:()=>Ue,MatMenuItem:()=>Re,MatMenuModule:()=>k,MatMenuTrigger:()=>Ze,_MatMenuBase:()=>Ee,_MatMenuContentBase:()=>de,_MatMenuTriggerBase:()=>dt,fadeInItems:()=>z,matMenuAnimations:()=>me,transformMenu:()=>oe});var i=l(5664),d=l(3191),_=l(1159),u=l(5e3),s=l(6758),b=l(6921),C=l(6451),T=l(9646),p=l(3101),y=l(8675),P=l(3900),O=l(5698),S=l(9300),N=l(2722),B=l(4326),ce=l(1777),K=l(7429),re=l(9808),Me=l(508),pe=l(1314),be=l(925),ue=l(226),xe=l(9071);const He=["mat-menu-item",""];function et(ne,Pe){1&ne&&(u.\u0275\u0275namespaceSVG(),u.\u0275\u0275elementStart(0,"svg",2),u.\u0275\u0275element(1,"polygon",3),u.\u0275\u0275elementEnd())}const ct=["*"];function X(ne,Pe){if(1&ne){const se=u.\u0275\u0275getCurrentView();u.\u0275\u0275elementStart(0,"div",0),u.\u0275\u0275listener("keydown",function(_e){return u.\u0275\u0275restoreView(se),u.\u0275\u0275nextContext()._handleKeydown(_e)})("click",function(){return u.\u0275\u0275restoreView(se),u.\u0275\u0275nextContext().closed.emit("click")})("@transformMenu.start",function(_e){return u.\u0275\u0275restoreView(se),u.\u0275\u0275nextContext()._onAnimationStart(_e)})("@transformMenu.done",function(_e){return u.\u0275\u0275restoreView(se),u.\u0275\u0275nextContext()._onAnimationDone(_e)}),u.\u0275\u0275elementStart(1,"div",1),u.\u0275\u0275projection(2),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd()}if(2&ne){const se=u.\u0275\u0275nextContext();u.\u0275\u0275property("id",se.panelId)("ngClass",se._classList)("@transformMenu",se._panelAnimationState),u.\u0275\u0275attribute("aria-label",se.ariaLabel||null)("aria-labelledby",se.ariaLabelledby||null)("aria-describedby",se.ariaDescribedby||null)}}const me={transformMenu:(0,ce.X$)("transformMenu",[(0,ce.SB)("void",(0,ce.oB)({opacity:0,transform:"scale(0.8)"})),(0,ce.eR)("void => enter",(0,ce.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,ce.oB)({opacity:1,transform:"scale(1)"}))),(0,ce.eR)("* => void",(0,ce.jt)("100ms 25ms linear",(0,ce.oB)({opacity:0})))]),fadeInItems:(0,ce.X$)("fadeInItems",[(0,ce.SB)("showing",(0,ce.oB)({opacity:1})),(0,ce.eR)("void => *",[(0,ce.oB)({opacity:0}),(0,ce.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},z=me.fadeInItems,oe=me.transformMenu,ke=new u.InjectionToken("MatMenuContent");let de=(()=>{class ne{constructor(se,Ce,_e,ie,ve,Ye,it){this._template=se,this._componentFactoryResolver=Ce,this._appRef=_e,this._injector=ie,this._viewContainerRef=ve,this._document=Ye,this._changeDetectorRef=it,this._attached=new s.x}attach(se={}){var Ce;this._portal||(this._portal=new K.UE(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new K.u0(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));const _e=this._template.elementRef.nativeElement;_e.parentNode.insertBefore(this._outlet.outletElement,_e),null===(Ce=this._changeDetectorRef)||void 0===Ce||Ce.markForCheck(),this._portal.attach(this._outlet,se),this._attached.next()}detach(){this._portal.isAttached&&this._portal.detach()}ngOnDestroy(){this._outlet&&this._outlet.dispose()}}return ne.\u0275fac=function(se){return new(se||ne)(u.\u0275\u0275directiveInject(u.TemplateRef),u.\u0275\u0275directiveInject(u.ComponentFactoryResolver),u.\u0275\u0275directiveInject(u.ApplicationRef),u.\u0275\u0275directiveInject(u.Injector),u.\u0275\u0275directiveInject(u.ViewContainerRef),u.\u0275\u0275directiveInject(re.DOCUMENT),u.\u0275\u0275directiveInject(u.ChangeDetectorRef))},ne.\u0275dir=u.\u0275\u0275defineDirective({type:ne}),ne})(),Ue=(()=>{class ne extends de{}return ne.\u0275fac=function(){let Pe;return function(Ce){return(Pe||(Pe=u.\u0275\u0275getInheritedFactory(ne)))(Ce||ne)}}(),ne.\u0275dir=u.\u0275\u0275defineDirective({type:ne,selectors:[["ng-template","matMenuContent",""]],features:[u.\u0275\u0275ProvidersFeature([{provide:ke,useExisting:ne}]),u.\u0275\u0275InheritDefinitionFeature]}),ne})();const vt=new u.InjectionToken("MAT_MENU_PANEL"),St=(0,Me.Kr)((0,Me.Id)(class{}));let Re=(()=>{class ne extends St{constructor(se,Ce,_e,ie,ve){var Ye;super(),this._elementRef=se,this._focusMonitor=_e,this._parentMenu=ie,this._changeDetectorRef=ve,this.role="menuitem",this._hovered=new s.x,this._focused=new s.x,this._highlighted=!1,this._triggersSubmenu=!1,null===(Ye=null==ie?void 0:ie.addItem)||void 0===Ye||Ye.call(ie,this)}focus(se,Ce){this._focusMonitor&&se?this._focusMonitor.focusVia(this._getHostElement(),se,Ce):this._getHostElement().focus(Ce),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(se){this.disabled&&(se.preventDefault(),se.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var se;const Ce=this._elementRef.nativeElement.cloneNode(!0),_e=Ce.querySelectorAll("mat-icon, .material-icons");for(let ie=0;ie<_e.length;ie++)_e[ie].remove();return(null===(se=Ce.textContent)||void 0===se?void 0:se.trim())||""}_setHighlighted(se){var Ce;this._highlighted=se,null===(Ce=this._changeDetectorRef)||void 0===Ce||Ce.markForCheck()}}return ne.\u0275fac=function(se){return new(se||ne)(u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(re.DOCUMENT),u.\u0275\u0275directiveInject(i.tE),u.\u0275\u0275directiveInject(vt,8),u.\u0275\u0275directiveInject(u.ChangeDetectorRef))},ne.\u0275cmp=u.\u0275\u0275defineComponent({type:ne,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(se,Ce){1&se&&u.\u0275\u0275listener("click",function(ie){return Ce._checkDisabled(ie)})("mouseenter",function(){return Ce._handleMouseEnter()}),2&se&&(u.\u0275\u0275attribute("role",Ce.role)("tabindex",Ce._getTabIndex())("aria-disabled",Ce.disabled.toString())("disabled",Ce.disabled||null),u.\u0275\u0275classProp("mat-menu-item",!0)("mat-menu-item-highlighted",Ce._highlighted)("mat-menu-item-submenu-trigger",Ce._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[u.\u0275\u0275InheritDefinitionFeature],attrs:He,ngContentSelectors:ct,decls:3,vars:3,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-menu-submenu-icon","viewBox","0 0 5 10","focusable","false",4,"ngIf"],["viewBox","0 0 5 10","focusable","false",1,"mat-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(se,Ce){1&se&&(u.\u0275\u0275projectionDef(),u.\u0275\u0275projection(0),u.\u0275\u0275element(1,"div",0),u.\u0275\u0275template(2,et,2,0,"svg",1)),2&se&&(u.\u0275\u0275advance(1),u.\u0275\u0275property("matRippleDisabled",Ce.disableRipple||Ce.disabled)("matRippleTrigger",Ce._getHostElement()),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",Ce._triggersSubmenu))},directives:[Me.wG,re.NgIf],encapsulation:2,changeDetection:0}),ne})();const qe=new u.InjectionToken("mat-menu-default-options",{providedIn:"root",factory:function Y(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let he=0,Ee=(()=>{class ne{constructor(se,Ce,_e){this._elementRef=se,this._ngZone=Ce,this._defaultOptions=_e,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new u.QueryList,this._tabSubscription=b.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new s.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new u.EventEmitter,this.close=this.closed,this.panelId="mat-menu-panel-"+he++}get xPosition(){return this._xPosition}set xPosition(se){this._xPosition=se,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(se){this._yPosition=se,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(se){this._overlapTrigger=(0,d.Ig)(se)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(se){this._hasBackdrop=(0,d.Ig)(se)}set panelClass(se){const Ce=this._previousPanelClass;Ce&&Ce.length&&Ce.split(" ").forEach(_e=>{this._classList[_e]=!1}),this._previousPanelClass=se,se&&se.length&&(se.split(" ").forEach(_e=>{this._classList[_e]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(se){this.panelClass=se}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new i.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,y.O)(this._directDescendantItems),(0,P.w)(se=>(0,C.T)(...se.map(Ce=>Ce._focused)))).subscribe(se=>this._keyManager.updateActiveItem(se))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,y.O)(this._directDescendantItems),(0,P.w)(Ce=>(0,C.T)(...Ce.map(_e=>_e._hovered))))}addItem(se){}removeItem(se){}_handleKeydown(se){const Ce=se.keyCode,_e=this._keyManager;switch(Ce){case _.hY:(0,_.Vb)(se)||(se.preventDefault(),this.closed.emit("keydown"));break;case _.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case _.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:(Ce===_.LH||Ce===_.JH)&&_e.setFocusOrigin("keyboard"),_e.onKeydown(se)}}focusFirstItem(se="program"){this.lazyContent?this._ngZone.onStable.pipe((0,O.q)(1)).subscribe(()=>this._focusFirstItem(se)):this._focusFirstItem(se)}_focusFirstItem(se){const Ce=this._keyManager;if(Ce.setFocusOrigin(se).setFirstItemActive(),!Ce.activeItem&&this._directDescendantItems.length){let _e=this._directDescendantItems.first._getHostElement().parentElement;for(;_e;){if("menu"===_e.getAttribute("role")){_e.focus();break}_e=_e.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(se){const Ce=Math.min(this._baseElevation+se,24),_e=`${this._elevationPrefix}${Ce}`,ie=Object.keys(this._classList).find(ve=>ve.startsWith(this._elevationPrefix));(!ie||ie===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[_e]=!0,this._previousElevation=_e)}setPositionClasses(se=this.xPosition,Ce=this.yPosition){const _e=this._classList;_e["mat-menu-before"]="before"===se,_e["mat-menu-after"]="after"===se,_e["mat-menu-above"]="above"===Ce,_e["mat-menu-below"]="below"===Ce}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(se){this._animationDone.next(se),this._isAnimating=!1}_onAnimationStart(se){this._isAnimating=!0,"enter"===se.toState&&0===this._keyManager.activeItemIndex&&(se.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,y.O)(this._allItems)).subscribe(se=>{this._directDescendantItems.reset(se.filter(Ce=>Ce._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return ne.\u0275fac=function(se){return new(se||ne)(u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(u.NgZone),u.\u0275\u0275directiveInject(qe))},ne.\u0275dir=u.\u0275\u0275defineDirective({type:ne,contentQueries:function(se,Ce,_e){if(1&se&&(u.\u0275\u0275contentQuery(_e,ke,5),u.\u0275\u0275contentQuery(_e,Re,5),u.\u0275\u0275contentQuery(_e,Re,4)),2&se){let ie;u.\u0275\u0275queryRefresh(ie=u.\u0275\u0275loadQuery())&&(Ce.lazyContent=ie.first),u.\u0275\u0275queryRefresh(ie=u.\u0275\u0275loadQuery())&&(Ce._allItems=ie),u.\u0275\u0275queryRefresh(ie=u.\u0275\u0275loadQuery())&&(Ce.items=ie)}},viewQuery:function(se,Ce){if(1&se&&u.\u0275\u0275viewQuery(u.TemplateRef,5),2&se){let _e;u.\u0275\u0275queryRefresh(_e=u.\u0275\u0275loadQuery())&&(Ce.templateRef=_e.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),ne})(),Ie=(()=>{class ne extends Ee{constructor(se,Ce,_e){super(se,Ce,_e),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return ne.\u0275fac=function(se){return new(se||ne)(u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(u.NgZone),u.\u0275\u0275directiveInject(qe))},ne.\u0275cmp=u.\u0275\u0275defineComponent({type:ne,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(se,Ce){2&se&&u.\u0275\u0275attribute("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[u.\u0275\u0275ProvidersFeature([{provide:vt,useExisting:ne}]),u.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:ct,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(se,Ce){1&se&&(u.\u0275\u0275projectionDef(),u.\u0275\u0275template(0,X,3,6,"ng-template"))},directives:[re.NgClass],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[me.transformMenu,me.fadeInItems]},changeDetection:0}),ne})();const ge=new u.InjectionToken("mat-menu-scroll-strategy"),pt={provide:ge,deps:[pe.aV],useFactory:function Xe(ne){return()=>ne.scrollStrategies.reposition()}},Rt=(0,be.i$)({passive:!0});let dt=(()=>{class ne{constructor(se,Ce,_e,ie,ve,Ye,it,mt){this._overlay=se,this._element=Ce,this._viewContainerRef=_e,this._menuItemInstance=Ye,this._dir=it,this._focusMonitor=mt,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=b.w0.EMPTY,this._hoverSubscription=b.w0.EMPTY,this._menuCloseSubscription=b.w0.EMPTY,this._handleTouchStart=_t=>{(0,i.yG)(_t)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new u.EventEmitter,this.onMenuOpen=this.menuOpened,this.menuClosed=new u.EventEmitter,this.onMenuClose=this.menuClosed,this._scrollStrategy=ie,this._parentMaterialMenu=ve instanceof Ee?ve:void 0,Ce.nativeElement.addEventListener("touchstart",this._handleTouchStart,Rt),Ye&&(Ye._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(se){this.menu=se}get menu(){return this._menu}set menu(se){se!==this._menu&&(this._menu=se,this._menuCloseSubscription.unsubscribe(),se&&(this._menuCloseSubscription=se.close.subscribe(Ce=>{this._destroyMenu(Ce),("click"===Ce||"tab"===Ce)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(Ce)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Rt),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const se=this._createOverlay(),Ce=se.getConfig();this._setPosition(Ce.positionStrategy),Ce.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,se.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof Ee&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(se,Ce){this._focusMonitor&&se?this._focusMonitor.focusVia(this._element,se,Ce):this._element.nativeElement.focus(Ce)}updatePosition(){var se;null===(se=this._overlayRef)||void 0===se||se.updatePosition()}_destroyMenu(se){if(!this._overlayRef||!this.menuOpen)return;const Ce=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===se||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,Ce instanceof Ee?(Ce._resetAnimation(),Ce.lazyContent?Ce._animationDone.pipe((0,S.h)(_e=>"void"===_e.toState),(0,O.q)(1),(0,N.R)(Ce.lazyContent._attached)).subscribe({next:()=>Ce.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),Ce.lazyContent&&Ce.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let se=0,Ce=this.menu.parentMenu;for(;Ce;)se++,Ce=Ce.parentMenu;this.menu.setElevation(se)}}_setIsMenuOpen(se){this._menuOpen=se,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(se)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const se=this._getOverlayConfig();this._subscribeToPositions(se.positionStrategy),this._overlayRef=this._overlay.create(se),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new pe.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(se){this.menu.setPositionClasses&&se.positionChanges.subscribe(Ce=>{this.menu.setPositionClasses("start"===Ce.connectionPair.overlayX?"after":"before","top"===Ce.connectionPair.overlayY?"below":"above")})}_setPosition(se){let[Ce,_e]="before"===this.menu.xPosition?["end","start"]:["start","end"],[ie,ve]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[Ye,it]=[ie,ve],[mt,_t]=[Ce,_e],It=0;this.triggersSubmenu()?(_t=Ce="before"===this.menu.xPosition?"start":"end",_e=mt="end"===Ce?"start":"end",It="bottom"===ie?8:-8):this.menu.overlapTrigger||(Ye="top"===ie?"bottom":"top",it="top"===ve?"bottom":"top"),se.withPositions([{originX:Ce,originY:Ye,overlayX:mt,overlayY:ie,offsetY:It},{originX:_e,originY:Ye,overlayX:_t,overlayY:ie,offsetY:It},{originX:Ce,originY:it,overlayX:mt,overlayY:ve,offsetY:-It},{originX:_e,originY:it,overlayX:_t,overlayY:ve,offsetY:-It}])}_menuClosingActions(){const se=this._overlayRef.backdropClick(),Ce=this._overlayRef.detachments(),_e=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,T.of)(),ie=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,S.h)(ve=>ve!==this._menuItemInstance),(0,S.h)(()=>this._menuOpen)):(0,T.of)();return(0,C.T)(se,_e,ie,Ce)}_handleMousedown(se){(0,i.X6)(se)||(this._openedBy=0===se.button?"mouse":void 0,this.triggersSubmenu()&&se.preventDefault())}_handleKeydown(se){const Ce=se.keyCode;(Ce===_.K5||Ce===_.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(Ce===_.SV&&"ltr"===this.dir||Ce===_.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(se){this.triggersSubmenu()?(se.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,S.h)(se=>se===this._menuItemInstance&&!se.disabled),(0,B.g)(0,p.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Ee&&this.menu._isAnimating?this.menu._animationDone.pipe((0,O.q)(1),(0,B.g)(0,p.E),(0,N.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new K.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}return ne.\u0275fac=function(se){return new(se||ne)(u.\u0275\u0275directiveInject(pe.aV),u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(u.ViewContainerRef),u.\u0275\u0275directiveInject(ge),u.\u0275\u0275directiveInject(vt,8),u.\u0275\u0275directiveInject(Re,10),u.\u0275\u0275directiveInject(ue.Is,8),u.\u0275\u0275directiveInject(i.tE))},ne.\u0275dir=u.\u0275\u0275defineDirective({type:ne,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(se,Ce){1&se&&u.\u0275\u0275listener("click",function(ie){return Ce._handleClick(ie)})("mousedown",function(ie){return Ce._handleMousedown(ie)})("keydown",function(ie){return Ce._handleKeydown(ie)}),2&se&&u.\u0275\u0275attribute("aria-expanded",Ce.menuOpen||null)("aria-controls",Ce.menuOpen?Ce.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),ne})(),Ze=(()=>{class ne extends dt{}return ne.\u0275fac=function(){let Pe;return function(Ce){return(Pe||(Pe=u.\u0275\u0275getInheritedFactory(ne)))(Ce||ne)}}(),ne.\u0275dir=u.\u0275\u0275defineDirective({type:ne,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[u.\u0275\u0275InheritDefinitionFeature]}),ne})(),k=(()=>{class ne{}return ne.\u0275fac=function(se){return new(se||ne)},ne.\u0275mod=u.\u0275\u0275defineNgModule({type:ne}),ne.\u0275inj=u.\u0275\u0275defineInjector({providers:[pt],imports:[[re.CommonModule,Me.BQ,Me.si,pe.U8],xe.ZD,Me.BQ]}),ne})()},2075:(Le,m,l)=>{"use strict";l.r(m),l.d(m,{MatCell:()=>$e,MatCellDef:()=>G,MatColumnDef:()=>Ut,MatFooterCell:()=>Ve,MatFooterCellDef:()=>Et,MatFooterRow:()=>Bt,MatFooterRowDef:()=>Be,MatHeaderCell:()=>gn,MatHeaderCellDef:()=>ot,MatHeaderRow:()=>Vt,MatHeaderRowDef:()=>le,MatNoDataRow:()=>En,MatRecycleRows:()=>I,MatRow:()=>fn,MatRowDef:()=>ft,MatTable:()=>M,MatTableDataSource:()=>Bn,MatTableModule:()=>Jn,MatTextColumn:()=>$n,_MatTableDataSource:()=>zn});var i=l(5e3),d=l(3191),_=l(449),u=l(9808),s=l(6758),b=l(188),C=l(1135),T=l(5191),p=l(9646),y=l(2722),P=l(5698),O=l(226),S=l(925),N=l(9071);const B=[[["caption"]],[["colgroup"],["col"]]],ce=["caption","colgroup, col"];function K(H,we){if(1&H&&(i.\u0275\u0275elementStart(0,"th",3),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&H){const U=i.\u0275\u0275nextContext();i.\u0275\u0275styleProp("text-align",U.justify),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",U.headerText," ")}}function re(H,we){if(1&H&&(i.\u0275\u0275elementStart(0,"td",4),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&H){const U=we.$implicit,Ae=i.\u0275\u0275nextContext();i.\u0275\u0275styleProp("text-align",Ae.justify),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",Ae.dataAccessor(U,Ae.name)," ")}}function Me(H){return class extends H{constructor(...we){super(...we),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(we){const U=this._sticky;this._sticky=(0,d.Ig)(we),this._hasStickyChanged=U!==this._sticky}hasStickyChanged(){const we=this._hasStickyChanged;return this._hasStickyChanged=!1,we}resetStickyChanged(){this._hasStickyChanged=!1}}}const pe=new i.InjectionToken("CDK_TABLE"),be=new i.InjectionToken("text-column-options");let ue=(()=>{class H{constructor(U){this.template=U}}return H.\u0275fac=function(U){return new(U||H)(i.\u0275\u0275directiveInject(i.TemplateRef))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","cdkCellDef",""]]}),H})(),xe=(()=>{class H{constructor(U){this.template=U}}return H.\u0275fac=function(U){return new(U||H)(i.\u0275\u0275directiveInject(i.TemplateRef))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","cdkHeaderCellDef",""]]}),H})(),He=(()=>{class H{constructor(U){this.template=U}}return H.\u0275fac=function(U){return new(U||H)(i.\u0275\u0275directiveInject(i.TemplateRef))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","cdkFooterCellDef",""]]}),H})();class et{}const ct=Me(et);let X=(()=>{class H extends ct{constructor(U){super(),this._table=U,this._stickyEnd=!1}get name(){return this._name}set name(U){this._setNameInput(U)}get stickyEnd(){return this._stickyEnd}set stickyEnd(U){const Ae=this._stickyEnd;this._stickyEnd=(0,d.Ig)(U),this._hasStickyChanged=Ae!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(U){U&&(this._name=U,this.cssClassFriendlyName=U.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return H.\u0275fac=function(U){return new(U||H)(i.\u0275\u0275directiveInject(pe,8))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","cdkColumnDef",""]],contentQueries:function(U,Ae,tt){if(1&U&&(i.\u0275\u0275contentQuery(tt,ue,5),i.\u0275\u0275contentQuery(tt,xe,5),i.\u0275\u0275contentQuery(tt,He,5)),2&U){let lt;i.\u0275\u0275queryRefresh(lt=i.\u0275\u0275loadQuery())&&(Ae.cell=lt.first),i.\u0275\u0275queryRefresh(lt=i.\u0275\u0275loadQuery())&&(Ae.headerCell=lt.first),i.\u0275\u0275queryRefresh(lt=i.\u0275\u0275loadQuery())&&(Ae.footerCell=lt.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[i.\u0275\u0275ProvidersFeature([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature]}),H})();class me{constructor(we,U){U.nativeElement.classList.add(...we._columnCssClassName)}}let z=(()=>{class H extends me{constructor(U,Ae){super(U,Ae)}}return H.\u0275fac=function(U){return new(U||H)(i.\u0275\u0275directiveInject(X),i.\u0275\u0275directiveInject(i.ElementRef))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[i.\u0275\u0275InheritDefinitionFeature]}),H})(),oe=(()=>{class H extends me{constructor(U,Ae){var tt;if(super(U,Ae),1===(null===(tt=U._table)||void 0===tt?void 0:tt._elementRef.nativeElement.nodeType)){const lt=U._table._elementRef.nativeElement.getAttribute("role");Ae.nativeElement.setAttribute("role","grid"===lt||"treegrid"===lt?"gridcell":"cell")}}}return H.\u0275fac=function(U){return new(U||H)(i.\u0275\u0275directiveInject(X),i.\u0275\u0275directiveInject(i.ElementRef))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[i.\u0275\u0275InheritDefinitionFeature]}),H})(),ke=(()=>{class H extends me{constructor(U,Ae){var tt;if(super(U,Ae),1===(null===(tt=U._table)||void 0===tt?void 0:tt._elementRef.nativeElement.nodeType)){const lt=U._table._elementRef.nativeElement.getAttribute("role");Ae.nativeElement.setAttribute("role","grid"===lt||"treegrid"===lt?"gridcell":"cell")}}}return H.\u0275fac=function(U){return new(U||H)(i.\u0275\u0275directiveInject(X),i.\u0275\u0275directiveInject(i.ElementRef))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[i.\u0275\u0275InheritDefinitionFeature]}),H})();class de{constructor(){this.tasks=[],this.endTasks=[]}}const Ue=new i.InjectionToken("_COALESCED_STYLE_SCHEDULER");let fe=(()=>{class H{constructor(U){this._ngZone=U,this._currentSchedule=null,this._destroyed=new s.x}schedule(U){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(U)}scheduleEnd(U){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(U)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new de,this._getScheduleObservable().pipe((0,y.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const U=this._currentSchedule;this._currentSchedule=new de;for(const Ae of U.tasks)Ae();for(const Ae of U.endTasks)Ae()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,b.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,P.q)(1))}}return H.\u0275fac=function(U){return new(U||H)(i.\u0275\u0275inject(i.NgZone))},H.\u0275prov=i.\u0275\u0275defineInjectable({token:H,factory:H.\u0275fac}),H})(),Te=(()=>{class H{constructor(U,Ae){this.template=U,this._differs=Ae}ngOnChanges(U){if(!this._columnsDiffer){const Ae=U.columns&&U.columns.currentValue||[];this._columnsDiffer=this._differs.find(Ae).create(),this._columnsDiffer.diff(Ae)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(U){return this instanceof St?U.headerCell.template:this instanceof Y?U.footerCell.template:U.cell.template}}return H.\u0275fac=function(U){return new(U||H)(i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(i.IterableDiffers))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,features:[i.\u0275\u0275NgOnChangesFeature]}),H})();class Ge extends Te{}const vt=Me(Ge);let St=(()=>{class H extends vt{constructor(U,Ae,tt){super(U,Ae),this._table=tt}ngOnChanges(U){super.ngOnChanges(U)}}return H.\u0275fac=function(U){return new(U||H)(i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(i.IterableDiffers),i.\u0275\u0275directiveInject(pe,8))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[i.\u0275\u0275InheritDefinitionFeature,i.\u0275\u0275NgOnChangesFeature]}),H})();class Re extends Te{}const qe=Me(Re);let Y=(()=>{class H extends qe{constructor(U,Ae,tt){super(U,Ae),this._table=tt}ngOnChanges(U){super.ngOnChanges(U)}}return H.\u0275fac=function(U){return new(U||H)(i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(i.IterableDiffers),i.\u0275\u0275directiveInject(pe,8))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[i.\u0275\u0275InheritDefinitionFeature,i.\u0275\u0275NgOnChangesFeature]}),H})(),he=(()=>{class H extends Te{constructor(U,Ae,tt){super(U,Ae),this._table=tt}}return H.\u0275fac=function(U){return new(U||H)(i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(i.IterableDiffers),i.\u0275\u0275directiveInject(pe,8))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[i.\u0275\u0275InheritDefinitionFeature]}),H})(),Ee=(()=>{class H{constructor(U){this._viewContainer=U,H.mostRecentCellOutlet=this}ngOnDestroy(){H.mostRecentCellOutlet===this&&(H.mostRecentCellOutlet=null)}}return H.mostRecentCellOutlet=null,H.\u0275fac=function(U){return new(U||H)(i.\u0275\u0275directiveInject(i.ViewContainerRef))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","cdkCellOutlet",""]]}),H})(),Ie=(()=>{class H{}return H.\u0275fac=function(U){return new(U||H)},H.\u0275cmp=i.\u0275\u0275defineComponent({type:H,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(U,Ae){1&U&&i.\u0275\u0275elementContainer(0,0)},directives:[Ee],encapsulation:2}),H})(),ge=(()=>{class H{}return H.\u0275fac=function(U){return new(U||H)},H.\u0275cmp=i.\u0275\u0275defineComponent({type:H,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(U,Ae){1&U&&i.\u0275\u0275elementContainer(0,0)},directives:[Ee],encapsulation:2}),H})(),Xe=(()=>{class H{}return H.\u0275fac=function(U){return new(U||H)},H.\u0275cmp=i.\u0275\u0275defineComponent({type:H,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(U,Ae){1&U&&i.\u0275\u0275elementContainer(0,0)},directives:[Ee],encapsulation:2}),H})(),pt=(()=>{class H{constructor(U){this.templateRef=U,this._contentClassName="cdk-no-data-row"}}return H.\u0275fac=function(U){return new(U||H)(i.\u0275\u0275directiveInject(i.TemplateRef))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["ng-template","cdkNoDataRow",""]]}),H})();const Tt=["top","bottom","left","right"];class Rt{constructor(we,U,Ae,tt,lt=!0,At=!0,jt){this._isNativeHtmlTable=we,this._stickCellCss=U,this.direction=Ae,this._coalescedStyleScheduler=tt,this._isBrowser=lt,this._needsPositionStickyOnElement=At,this._positionListener=jt,this._cachedCellWidths=[],this._borderCellCss={top:`${U}-border-elem-top`,bottom:`${U}-border-elem-bottom`,left:`${U}-border-elem-left`,right:`${U}-border-elem-right`}}clearStickyPositioning(we,U){const Ae=[];for(const tt of we)if(tt.nodeType===tt.ELEMENT_NODE){Ae.push(tt);for(let lt=0;lt<tt.children.length;lt++)Ae.push(tt.children[lt])}this._coalescedStyleScheduler.schedule(()=>{for(const tt of Ae)this._removeStickyStyle(tt,U)})}updateStickyColumns(we,U,Ae,tt=!0){if(!we.length||!this._isBrowser||!U.some(cn=>cn)&&!Ae.some(cn=>cn))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const lt=we[0],At=lt.children.length,jt=this._getCellWidths(lt,tt),qt=this._getStickyStartColumnPositions(jt,U),vn=this._getStickyEndColumnPositions(jt,Ae),Ht=U.lastIndexOf(!0),On=Ae.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const cn="rtl"===this.direction,Hn=cn?"right":"left",Un=cn?"left":"right";for(const Sn of we)for(let kn=0;kn<At;kn++){const ai=Sn.children[kn];U[kn]&&this._addStickyStyle(ai,Hn,qt[kn],kn===Ht),Ae[kn]&&this._addStickyStyle(ai,Un,vn[kn],kn===On)}this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:-1===Ht?[]:jt.slice(0,Ht+1).map((Sn,kn)=>U[kn]?Sn:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===On?[]:jt.slice(On).map((Sn,kn)=>Ae[kn+On]?Sn:null).reverse()}))})}stickRows(we,U,Ae){if(!this._isBrowser)return;const tt="bottom"===Ae?we.slice().reverse():we,lt="bottom"===Ae?U.slice().reverse():U,At=[],jt=[],qt=[];for(let Ht=0,On=0;Ht<tt.length;Ht++){if(!lt[Ht])continue;At[Ht]=On;const cn=tt[Ht];qt[Ht]=this._isNativeHtmlTable?Array.from(cn.children):[cn];const Hn=cn.getBoundingClientRect().height;On+=Hn,jt[Ht]=Hn}const vn=lt.lastIndexOf(!0);this._coalescedStyleScheduler.schedule(()=>{var Ht,On;for(let cn=0;cn<tt.length;cn++){if(!lt[cn])continue;const Hn=At[cn],Un=cn===vn;for(const Sn of qt[cn])this._addStickyStyle(Sn,Ae,Hn,Un)}"top"===Ae?null===(Ht=this._positionListener)||void 0===Ht||Ht.stickyHeaderRowsUpdated({sizes:jt,offsets:At,elements:qt}):null===(On=this._positionListener)||void 0===On||On.stickyFooterRowsUpdated({sizes:jt,offsets:At,elements:qt})})}updateStickyFooterContainer(we,U){if(!this._isNativeHtmlTable)return;const Ae=we.querySelector("tfoot");this._coalescedStyleScheduler.schedule(()=>{U.some(tt=>!tt)?this._removeStickyStyle(Ae,["bottom"]):this._addStickyStyle(Ae,"bottom",0,!1)})}_removeStickyStyle(we,U){for(const tt of U)we.style[tt]="",we.classList.remove(this._borderCellCss[tt]);Tt.some(tt=>-1===U.indexOf(tt)&&we.style[tt])?we.style.zIndex=this._getCalculatedZIndex(we):(we.style.zIndex="",this._needsPositionStickyOnElement&&(we.style.position=""),we.classList.remove(this._stickCellCss))}_addStickyStyle(we,U,Ae,tt){we.classList.add(this._stickCellCss),tt&&we.classList.add(this._borderCellCss[U]),we.style[U]=`${Ae}px`,we.style.zIndex=this._getCalculatedZIndex(we),this._needsPositionStickyOnElement&&(we.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(we){const U={top:100,bottom:10,left:1,right:1};let Ae=0;for(const tt of Tt)we.style[tt]&&(Ae+=U[tt]);return Ae?`${Ae}`:""}_getCellWidths(we,U=!0){if(!U&&this._cachedCellWidths.length)return this._cachedCellWidths;const Ae=[],tt=we.children;for(let lt=0;lt<tt.length;lt++)Ae.push(tt[lt].getBoundingClientRect().width);return this._cachedCellWidths=Ae,Ae}_getStickyStartColumnPositions(we,U){const Ae=[];let tt=0;for(let lt=0;lt<we.length;lt++)U[lt]&&(Ae[lt]=tt,tt+=we[lt]);return Ae}_getStickyEndColumnPositions(we,U){const Ae=[];let tt=0;for(let lt=we.length;lt>0;lt--)U[lt]&&(Ae[lt]=tt,tt+=we[lt]);return Ae}}const ie=new i.InjectionToken("CDK_SPL");let Ye=(()=>{class H{constructor(U,Ae){this.viewContainer=U,this.elementRef=Ae}}return H.\u0275fac=function(U){return new(U||H)(i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.ElementRef))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","rowOutlet",""]]}),H})(),it=(()=>{class H{constructor(U,Ae){this.viewContainer=U,this.elementRef=Ae}}return H.\u0275fac=function(U){return new(U||H)(i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.ElementRef))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","headerRowOutlet",""]]}),H})(),mt=(()=>{class H{constructor(U,Ae){this.viewContainer=U,this.elementRef=Ae}}return H.\u0275fac=function(U){return new(U||H)(i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.ElementRef))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","footerRowOutlet",""]]}),H})(),_t=(()=>{class H{constructor(U,Ae){this.viewContainer=U,this.elementRef=Ae}}return H.\u0275fac=function(U){return new(U||H)(i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.ElementRef))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","noDataRowOutlet",""]]}),H})(),on=(()=>{class H{constructor(U,Ae,tt,lt,At,jt,qt,vn,Ht,On,cn,Hn){this._differs=U,this._changeDetectorRef=Ae,this._elementRef=tt,this._dir=At,this._platform=qt,this._viewRepeater=vn,this._coalescedStyleScheduler=Ht,this._viewportRuler=On,this._stickyPositioningListener=cn,this._ngZone=Hn,this._onDestroy=new s.x,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new i.EventEmitter,this.viewChange=new C.X({start:0,end:Number.MAX_VALUE}),lt||this._elementRef.nativeElement.setAttribute("role","table"),this._document=jt,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(U){this._trackByFn=U}get dataSource(){return this._dataSource}set dataSource(U){this._dataSource!==U&&this._switchDataSource(U)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(U){this._multiTemplateDataRows=(0,d.Ig)(U),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(U){this._fixedLayout=(0,d.Ig)(U),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((U,Ae)=>this.trackBy?this.trackBy(Ae.dataIndex,Ae.data):Ae),this._viewportRuler.change().pipe((0,y.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const Ae=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||Ae,this._forceRecalculateCellWidths=Ae,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),(0,_.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const U=this._dataDiffer.diff(this._renderRows);if(!U)return this._updateNoDataRow(),void this.contentChanged.next();const Ae=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(U,Ae,(tt,lt,At)=>this._getEmbeddedViewArgs(tt.item,At),tt=>tt.item.data,tt=>{1===tt.operation&&tt.context&&this._renderCellTemplateForItem(tt.record.item.rowDef,tt.context)}),this._updateRowIndexContext(),U.forEachIdentityChange(tt=>{Ae.get(tt.currentIndex).context.$implicit=tt.item.data}),this._updateNoDataRow(),this._ngZone&&i.NgZone.isInAngularZone()?this._ngZone.onStable.pipe((0,P.q)(1),(0,y.R)(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(U){this._customColumnDefs.add(U)}removeColumnDef(U){this._customColumnDefs.delete(U)}addRowDef(U){this._customRowDefs.add(U)}removeRowDef(U){this._customRowDefs.delete(U)}addHeaderRowDef(U){this._customHeaderRowDefs.add(U),this._headerRowDefChanged=!0}removeHeaderRowDef(U){this._customHeaderRowDefs.delete(U),this._headerRowDefChanged=!0}addFooterRowDef(U){this._customFooterRowDefs.add(U),this._footerRowDefChanged=!0}removeFooterRowDef(U){this._customFooterRowDefs.delete(U),this._footerRowDefChanged=!0}setNoDataRow(U){this._customNoDataRow=U}updateStickyHeaderRowStyles(){const U=this._getRenderedRows(this._headerRowOutlet),tt=this._elementRef.nativeElement.querySelector("thead");tt&&(tt.style.display=U.length?"":"none");const lt=this._headerRowDefs.map(At=>At.sticky);this._stickyStyler.clearStickyPositioning(U,["top"]),this._stickyStyler.stickRows(U,lt,"top"),this._headerRowDefs.forEach(At=>At.resetStickyChanged())}updateStickyFooterRowStyles(){const U=this._getRenderedRows(this._footerRowOutlet),tt=this._elementRef.nativeElement.querySelector("tfoot");tt&&(tt.style.display=U.length?"":"none");const lt=this._footerRowDefs.map(At=>At.sticky);this._stickyStyler.clearStickyPositioning(U,["bottom"]),this._stickyStyler.stickRows(U,lt,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,lt),this._footerRowDefs.forEach(At=>At.resetStickyChanged())}updateStickyColumnStyles(){const U=this._getRenderedRows(this._headerRowOutlet),Ae=this._getRenderedRows(this._rowOutlet),tt=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...U,...Ae,...tt],["left","right"]),this._stickyColumnStylesNeedReset=!1),U.forEach((lt,At)=>{this._addStickyColumnStyles([lt],this._headerRowDefs[At])}),this._rowDefs.forEach(lt=>{const At=[];for(let jt=0;jt<Ae.length;jt++)this._renderRows[jt].rowDef===lt&&At.push(Ae[jt]);this._addStickyColumnStyles(At,lt)}),tt.forEach((lt,At)=>{this._addStickyColumnStyles([lt],this._footerRowDefs[At])}),Array.from(this._columnDefsByName.values()).forEach(lt=>lt.resetStickyChanged())}_getAllRenderRows(){const U=[],Ae=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let tt=0;tt<this._data.length;tt++){let lt=this._data[tt];const At=this._getRenderRowsForData(lt,tt,Ae.get(lt));this._cachedRenderRowsMap.has(lt)||this._cachedRenderRowsMap.set(lt,new WeakMap);for(let jt=0;jt<At.length;jt++){let qt=At[jt];const vn=this._cachedRenderRowsMap.get(qt.data);vn.has(qt.rowDef)?vn.get(qt.rowDef).push(qt):vn.set(qt.rowDef,[qt]),U.push(qt)}}return U}_getRenderRowsForData(U,Ae,tt){return this._getRowDefs(U,Ae).map(At=>{const jt=tt&&tt.has(At)?tt.get(At):[];if(jt.length){const qt=jt.shift();return qt.dataIndex=Ae,qt}return{data:U,rowDef:At,dataIndex:Ae}})}_cacheColumnDefs(){this._columnDefsByName.clear(),Kt(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(Ae=>{this._columnDefsByName.has(Ae.name),this._columnDefsByName.set(Ae.name,Ae)})}_cacheRowDefs(){this._headerRowDefs=Kt(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Kt(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Kt(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const U=this._rowDefs.filter(Ae=>!Ae.when);this._defaultRowDef=U[0]}_renderUpdatedColumns(){const U=(At,jt)=>At||!!jt.getColumnsDiff(),Ae=this._rowDefs.reduce(U,!1);Ae&&this._forceRenderDataRows();const tt=this._headerRowDefs.reduce(U,!1);tt&&this._forceRenderHeaderRows();const lt=this._footerRowDefs.reduce(U,!1);return lt&&this._forceRenderFooterRows(),Ae||tt||lt}_switchDataSource(U){this._data=[],(0,_.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),U||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=U}_observeRenderChanges(){if(!this.dataSource)return;let U;(0,_.Z9)(this.dataSource)?U=this.dataSource.connect(this):(0,T.b)(this.dataSource)?U=this.dataSource:Array.isArray(this.dataSource)&&(U=(0,p.of)(this.dataSource)),this._renderChangeSubscription=U.pipe((0,y.R)(this._onDestroy)).subscribe(Ae=>{this._data=Ae||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((U,Ae)=>this._renderRow(this._headerRowOutlet,U,Ae)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((U,Ae)=>this._renderRow(this._footerRowOutlet,U,Ae)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(U,Ae){const tt=Array.from(Ae.columns||[]).map(jt=>this._columnDefsByName.get(jt)),lt=tt.map(jt=>jt.sticky),At=tt.map(jt=>jt.stickyEnd);this._stickyStyler.updateStickyColumns(U,lt,At,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(U){const Ae=[];for(let tt=0;tt<U.viewContainer.length;tt++){const lt=U.viewContainer.get(tt);Ae.push(lt.rootNodes[0])}return Ae}_getRowDefs(U,Ae){if(1==this._rowDefs.length)return[this._rowDefs[0]];let tt=[];if(this.multiTemplateDataRows)tt=this._rowDefs.filter(lt=>!lt.when||lt.when(Ae,U));else{let lt=this._rowDefs.find(At=>At.when&&At.when(Ae,U))||this._defaultRowDef;lt&&tt.push(lt)}return tt}_getEmbeddedViewArgs(U,Ae){return{templateRef:U.rowDef.template,context:{$implicit:U.data},index:Ae}}_renderRow(U,Ae,tt,lt={}){const At=U.viewContainer.createEmbeddedView(Ae.template,lt,tt);return this._renderCellTemplateForItem(Ae,lt),At}_renderCellTemplateForItem(U,Ae){for(let tt of this._getCellTemplates(U))Ee.mostRecentCellOutlet&&Ee.mostRecentCellOutlet._viewContainer.createEmbeddedView(tt,Ae);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const U=this._rowOutlet.viewContainer;for(let Ae=0,tt=U.length;Ae<tt;Ae++){const At=U.get(Ae).context;At.count=tt,At.first=0===Ae,At.last=Ae===tt-1,At.even=Ae%2==0,At.odd=!At.even,this.multiTemplateDataRows?(At.dataIndex=this._renderRows[Ae].dataIndex,At.renderIndex=Ae):At.index=this._renderRows[Ae].dataIndex}}_getCellTemplates(U){return U&&U.columns?Array.from(U.columns,Ae=>{const tt=this._columnDefsByName.get(Ae);return U.extractCellTemplate(tt)}):[]}_applyNativeTableSections(){const U=this._document.createDocumentFragment(),Ae=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const tt of Ae){const lt=this._document.createElement(tt.tag);lt.setAttribute("role","rowgroup");for(const At of tt.outlets)lt.appendChild(At.elementRef.nativeElement);U.appendChild(lt)}this._elementRef.nativeElement.appendChild(U)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const U=(Ae,tt)=>Ae||tt.hasStickyChanged();this._headerRowDefs.reduce(U,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(U,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(U,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new Rt(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,p.of)()).pipe((0,y.R)(this._onDestroy)).subscribe(Ae=>{this._stickyStyler.direction=Ae,this.updateStickyColumnStyles()})}_getOwnDefs(U){return U.filter(Ae=>!Ae._table||Ae._table===this)}_updateNoDataRow(){const U=this._customNoDataRow||this._noDataRow;if(!U)return;const Ae=0===this._rowOutlet.viewContainer.length;if(Ae===this._isShowingNoDataRow)return;const tt=this._noDataRowOutlet.viewContainer;if(Ae){const lt=tt.createEmbeddedView(U.templateRef),At=lt.rootNodes[0];1===lt.rootNodes.length&&(null==At?void 0:At.nodeType)===this._document.ELEMENT_NODE&&(At.setAttribute("role","row"),At.classList.add(U._contentClassName))}else tt.clear();this._isShowingNoDataRow=Ae}}return H.\u0275fac=function(U){return new(U||H)(i.\u0275\u0275directiveInject(i.IterableDiffers),i.\u0275\u0275directiveInject(i.ChangeDetectorRef),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275injectAttribute("role"),i.\u0275\u0275directiveInject(O.Is,8),i.\u0275\u0275directiveInject(u.DOCUMENT),i.\u0275\u0275directiveInject(S.t4),i.\u0275\u0275directiveInject(_.k),i.\u0275\u0275directiveInject(Ue),i.\u0275\u0275directiveInject(N.rL),i.\u0275\u0275directiveInject(ie,12),i.\u0275\u0275directiveInject(i.NgZone,8))},H.\u0275cmp=i.\u0275\u0275defineComponent({type:H,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(U,Ae,tt){if(1&U&&(i.\u0275\u0275contentQuery(tt,pt,5),i.\u0275\u0275contentQuery(tt,X,5),i.\u0275\u0275contentQuery(tt,he,5),i.\u0275\u0275contentQuery(tt,St,5),i.\u0275\u0275contentQuery(tt,Y,5)),2&U){let lt;i.\u0275\u0275queryRefresh(lt=i.\u0275\u0275loadQuery())&&(Ae._noDataRow=lt.first),i.\u0275\u0275queryRefresh(lt=i.\u0275\u0275loadQuery())&&(Ae._contentColumnDefs=lt),i.\u0275\u0275queryRefresh(lt=i.\u0275\u0275loadQuery())&&(Ae._contentRowDefs=lt),i.\u0275\u0275queryRefresh(lt=i.\u0275\u0275loadQuery())&&(Ae._contentHeaderRowDefs=lt),i.\u0275\u0275queryRefresh(lt=i.\u0275\u0275loadQuery())&&(Ae._contentFooterRowDefs=lt)}},viewQuery:function(U,Ae){if(1&U&&(i.\u0275\u0275viewQuery(Ye,7),i.\u0275\u0275viewQuery(it,7),i.\u0275\u0275viewQuery(mt,7),i.\u0275\u0275viewQuery(_t,7)),2&U){let tt;i.\u0275\u0275queryRefresh(tt=i.\u0275\u0275loadQuery())&&(Ae._rowOutlet=tt.first),i.\u0275\u0275queryRefresh(tt=i.\u0275\u0275loadQuery())&&(Ae._headerRowOutlet=tt.first),i.\u0275\u0275queryRefresh(tt=i.\u0275\u0275loadQuery())&&(Ae._footerRowOutlet=tt.first),i.\u0275\u0275queryRefresh(tt=i.\u0275\u0275loadQuery())&&(Ae._noDataRowOutlet=tt.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(U,Ae){2&U&&i.\u0275\u0275classProp("cdk-table-fixed-layout",Ae.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[i.\u0275\u0275ProvidersFeature([{provide:pe,useExisting:H},{provide:_.k,useClass:_.yy},{provide:Ue,useClass:fe},{provide:ie,useValue:null}])],ngContentSelectors:ce,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(U,Ae){1&U&&(i.\u0275\u0275projectionDef(B),i.\u0275\u0275projection(0),i.\u0275\u0275projection(1,1),i.\u0275\u0275elementContainer(2,0),i.\u0275\u0275elementContainer(3,1),i.\u0275\u0275elementContainer(4,2),i.\u0275\u0275elementContainer(5,3))},directives:[it,Ye,_t,mt],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),H})();function Kt(H,we){return H.concat(Array.from(we))}let Mn=(()=>{class H{constructor(U,Ae){this._table=U,this._options=Ae,this.justify="start",this._options=Ae||{}}get name(){return this._name}set name(U){this._name=U,this._syncColumnDefName()}ngOnInit(){this._syncColumnDefName(),void 0===this.headerText&&(this.headerText=this._createDefaultHeaderText()),this.dataAccessor||(this.dataAccessor=this._options.defaultDataAccessor||((U,Ae)=>U[Ae])),this._table&&(this.columnDef.cell=this.cell,this.columnDef.headerCell=this.headerCell,this._table.addColumnDef(this.columnDef))}ngOnDestroy(){this._table&&this._table.removeColumnDef(this.columnDef)}_createDefaultHeaderText(){const U=this.name;return this._options&&this._options.defaultHeaderTextTransform?this._options.defaultHeaderTextTransform(U):U[0].toUpperCase()+U.slice(1)}_syncColumnDefName(){this.columnDef&&(this.columnDef.name=this.name)}}return H.\u0275fac=function(U){return new(U||H)(i.\u0275\u0275directiveInject(on,8),i.\u0275\u0275directiveInject(be,8))},H.\u0275cmp=i.\u0275\u0275defineComponent({type:H,selectors:[["cdk-text-column"]],viewQuery:function(U,Ae){if(1&U&&(i.\u0275\u0275viewQuery(X,7),i.\u0275\u0275viewQuery(ue,7),i.\u0275\u0275viewQuery(xe,7)),2&U){let tt;i.\u0275\u0275queryRefresh(tt=i.\u0275\u0275loadQuery())&&(Ae.columnDef=tt.first),i.\u0275\u0275queryRefresh(tt=i.\u0275\u0275loadQuery())&&(Ae.cell=tt.first),i.\u0275\u0275queryRefresh(tt=i.\u0275\u0275loadQuery())&&(Ae.headerCell=tt.first)}},inputs:{name:"name",headerText:"headerText",dataAccessor:"dataAccessor",justify:"justify"},decls:3,vars:0,consts:[["cdkColumnDef",""],["cdk-header-cell","",3,"text-align",4,"cdkHeaderCellDef"],["cdk-cell","",3,"text-align",4,"cdkCellDef"],["cdk-header-cell",""],["cdk-cell",""]],template:function(U,Ae){1&U&&(i.\u0275\u0275elementContainerStart(0,0),i.\u0275\u0275template(1,K,2,3,"th",1),i.\u0275\u0275template(2,re,2,3,"td",2),i.\u0275\u0275elementContainerEnd())},directives:[X,xe,ue,z,ke],encapsulation:2}),H})(),Qt=(()=>{class H{}return H.\u0275fac=function(U){return new(U||H)},H.\u0275mod=i.\u0275\u0275defineNgModule({type:H}),H.\u0275inj=i.\u0275\u0275defineInjector({imports:[[N.Cl]]}),H})();var Ot=l(508),bn=l(6451),at=l(9841),Ke=l(4004);const Qe=[[["caption"]],[["colgroup"],["col"]]],Se=["caption","colgroup, col"];function De(H,we){if(1&H&&(i.\u0275\u0275elementStart(0,"th",3),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&H){const U=i.\u0275\u0275nextContext();i.\u0275\u0275styleProp("text-align",U.justify),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",U.headerText," ")}}function w(H,we){if(1&H&&(i.\u0275\u0275elementStart(0,"td",4),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&H){const U=we.$implicit,Ae=i.\u0275\u0275nextContext();i.\u0275\u0275styleProp("text-align",Ae.justify),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",Ae.dataAccessor(U,Ae.name)," ")}}let I=(()=>{class H{}return H.\u0275fac=function(U){return new(U||H)},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["mat-table","recycleRows",""],["table","mat-table","","recycleRows",""]],features:[i.\u0275\u0275ProvidersFeature([{provide:_.k,useClass:_.eX}])]}),H})(),M=(()=>{class H extends on{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return H.\u0275fac=function(){let we;return function(Ae){return(we||(we=i.\u0275\u0275getInheritedFactory(H)))(Ae||H)}}(),H.\u0275cmp=i.\u0275\u0275defineComponent({type:H,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(U,Ae){2&U&&i.\u0275\u0275classProp("mat-table-fixed-layout",Ae.fixedLayout)},exportAs:["matTable"],features:[i.\u0275\u0275ProvidersFeature([{provide:_.k,useClass:_.yy},{provide:on,useExisting:H},{provide:pe,useExisting:H},{provide:Ue,useClass:fe},{provide:ie,useValue:null}]),i.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:Se,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(U,Ae){1&U&&(i.\u0275\u0275projectionDef(Qe),i.\u0275\u0275projection(0),i.\u0275\u0275projection(1,1),i.\u0275\u0275elementContainer(2,0),i.\u0275\u0275elementContainer(3,1),i.\u0275\u0275elementContainer(4,2),i.\u0275\u0275elementContainer(5,3))},directives:[it,Ye,_t,mt],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),H})(),G=(()=>{class H extends ue{}return H.\u0275fac=function(){let we;return function(Ae){return(we||(we=i.\u0275\u0275getInheritedFactory(H)))(Ae||H)}}(),H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","matCellDef",""]],features:[i.\u0275\u0275ProvidersFeature([{provide:ue,useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature]}),H})(),ot=(()=>{class H extends xe{}return H.\u0275fac=function(){let we;return function(Ae){return(we||(we=i.\u0275\u0275getInheritedFactory(H)))(Ae||H)}}(),H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","matHeaderCellDef",""]],features:[i.\u0275\u0275ProvidersFeature([{provide:xe,useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature]}),H})(),Et=(()=>{class H extends He{}return H.\u0275fac=function(){let we;return function(Ae){return(we||(we=i.\u0275\u0275getInheritedFactory(H)))(Ae||H)}}(),H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","matFooterCellDef",""]],features:[i.\u0275\u0275ProvidersFeature([{provide:He,useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature]}),H})(),Ut=(()=>{class H extends X{get name(){return this._name}set name(U){this._setNameInput(U)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return H.\u0275fac=function(){let we;return function(Ae){return(we||(we=i.\u0275\u0275getInheritedFactory(H)))(Ae||H)}}(),H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[i.\u0275\u0275ProvidersFeature([{provide:X,useExisting:H},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature]}),H})(),gn=(()=>{class H extends z{}return H.\u0275fac=function(){let we;return function(Ae){return(we||(we=i.\u0275\u0275getInheritedFactory(H)))(Ae||H)}}(),H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[i.\u0275\u0275InheritDefinitionFeature]}),H})(),Ve=(()=>{class H extends oe{}return H.\u0275fac=function(){let we;return function(Ae){return(we||(we=i.\u0275\u0275getInheritedFactory(H)))(Ae||H)}}(),H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[i.\u0275\u0275InheritDefinitionFeature]}),H})(),$e=(()=>{class H extends ke{}return H.\u0275fac=function(){let we;return function(Ae){return(we||(we=i.\u0275\u0275getInheritedFactory(H)))(Ae||H)}}(),H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[i.\u0275\u0275InheritDefinitionFeature]}),H})(),le=(()=>{class H extends St{}return H.\u0275fac=function(){let we;return function(Ae){return(we||(we=i.\u0275\u0275getInheritedFactory(H)))(Ae||H)}}(),H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[i.\u0275\u0275ProvidersFeature([{provide:St,useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature]}),H})(),Be=(()=>{class H extends Y{}return H.\u0275fac=function(){let we;return function(Ae){return(we||(we=i.\u0275\u0275getInheritedFactory(H)))(Ae||H)}}(),H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[i.\u0275\u0275ProvidersFeature([{provide:Y,useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature]}),H})(),ft=(()=>{class H extends he{}return H.\u0275fac=function(){let we;return function(Ae){return(we||(we=i.\u0275\u0275getInheritedFactory(H)))(Ae||H)}}(),H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[i.\u0275\u0275ProvidersFeature([{provide:he,useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature]}),H})(),Vt=(()=>{class H extends Ie{}return H.\u0275fac=function(){let we;return function(Ae){return(we||(we=i.\u0275\u0275getInheritedFactory(H)))(Ae||H)}}(),H.\u0275cmp=i.\u0275\u0275defineComponent({type:H,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[i.\u0275\u0275ProvidersFeature([{provide:Ie,useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(U,Ae){1&U&&i.\u0275\u0275elementContainer(0,0)},directives:[Ee],encapsulation:2}),H})(),Bt=(()=>{class H extends ge{}return H.\u0275fac=function(){let we;return function(Ae){return(we||(we=i.\u0275\u0275getInheritedFactory(H)))(Ae||H)}}(),H.\u0275cmp=i.\u0275\u0275defineComponent({type:H,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[i.\u0275\u0275ProvidersFeature([{provide:ge,useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(U,Ae){1&U&&i.\u0275\u0275elementContainer(0,0)},directives:[Ee],encapsulation:2}),H})(),fn=(()=>{class H extends Xe{}return H.\u0275fac=function(){let we;return function(Ae){return(we||(we=i.\u0275\u0275getInheritedFactory(H)))(Ae||H)}}(),H.\u0275cmp=i.\u0275\u0275defineComponent({type:H,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[i.\u0275\u0275ProvidersFeature([{provide:Xe,useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(U,Ae){1&U&&i.\u0275\u0275elementContainer(0,0)},directives:[Ee],encapsulation:2}),H})(),En=(()=>{class H extends pt{constructor(){super(...arguments),this._contentClassName="mat-no-data-row"}}return H.\u0275fac=function(){let we;return function(Ae){return(we||(we=i.\u0275\u0275getInheritedFactory(H)))(Ae||H)}}(),H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["ng-template","matNoDataRow",""]],features:[i.\u0275\u0275ProvidersFeature([{provide:pt,useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature]}),H})(),$n=(()=>{class H extends Mn{}return H.\u0275fac=function(){let we;return function(Ae){return(we||(we=i.\u0275\u0275getInheritedFactory(H)))(Ae||H)}}(),H.\u0275cmp=i.\u0275\u0275defineComponent({type:H,selectors:[["mat-text-column"]],features:[i.\u0275\u0275InheritDefinitionFeature],decls:3,vars:0,consts:[["matColumnDef",""],["mat-header-cell","",3,"text-align",4,"matHeaderCellDef"],["mat-cell","",3,"text-align",4,"matCellDef"],["mat-header-cell",""],["mat-cell",""]],template:function(U,Ae){1&U&&(i.\u0275\u0275elementContainerStart(0,0),i.\u0275\u0275template(1,De,2,3,"th",1),i.\u0275\u0275template(2,w,2,3,"td",2),i.\u0275\u0275elementContainerEnd())},directives:[Ut,ot,G,gn,$e],encapsulation:2}),H})(),Jn=(()=>{class H{}return H.\u0275fac=function(U){return new(U||H)},H.\u0275mod=i.\u0275\u0275defineNgModule({type:H}),H.\u0275inj=i.\u0275\u0275defineInjector({imports:[[Qt,Ot.BQ],Ot.BQ]}),H})();class zn extends _.o2{constructor(we=[]){super(),this._renderData=new C.X([]),this._filter=new C.X(""),this._internalPageChanges=new s.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(U,Ae)=>{const tt=U[Ae];if((0,d.t6)(tt)){const lt=Number(tt);return lt<9007199254740991?lt:tt}return tt},this.sortData=(U,Ae)=>{const tt=Ae.active,lt=Ae.direction;return tt&&""!=lt?U.sort((At,jt)=>{let qt=this.sortingDataAccessor(At,tt),vn=this.sortingDataAccessor(jt,tt);const Ht=typeof qt,On=typeof vn;Ht!==On&&("number"===Ht&&(qt+=""),"number"===On&&(vn+=""));let cn=0;return null!=qt&&null!=vn?qt>vn?cn=1:qt<vn&&(cn=-1):null!=qt?cn=1:null!=vn&&(cn=-1),cn*("asc"==lt?1:-1)}):U},this.filterPredicate=(U,Ae)=>{const tt=Object.keys(U).reduce((At,jt)=>At+U[jt]+"\u25ec","").toLowerCase(),lt=Ae.trim().toLowerCase();return-1!=tt.indexOf(lt)},this._data=new C.X(we),this._updateChangeSubscription()}get data(){return this._data.value}set data(we){this._data.next(we),this._renderChangesSubscription||this._filterData(we)}get filter(){return this._filter.value}set filter(we){this._filter.next(we),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(we){this._sort=we,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(we){this._paginator=we,this._updateChangeSubscription()}_updateChangeSubscription(){var we;const U=this._sort?(0,bn.T)(this._sort.sortChange,this._sort.initialized):(0,p.of)(null),Ae=this._paginator?(0,bn.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,p.of)(null),lt=(0,at.a)([this._data,this._filter]).pipe((0,Ke.U)(([qt])=>this._filterData(qt))),At=(0,at.a)([lt,U]).pipe((0,Ke.U)(([qt])=>this._orderData(qt))),jt=(0,at.a)([At,Ae]).pipe((0,Ke.U)(([qt])=>this._pageData(qt)));null===(we=this._renderChangesSubscription)||void 0===we||we.unsubscribe(),this._renderChangesSubscription=jt.subscribe(qt=>this._renderData.next(qt))}_filterData(we){return this.filteredData=null==this.filter||""===this.filter?we:we.filter(U=>this.filterPredicate(U,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(we){return this.sort?this.sortData(we.slice(),this.sort):we}_pageData(we){if(!this.paginator)return we;const U=this.paginator.pageIndex*this.paginator.pageSize;return we.slice(U,U+this.paginator.pageSize)}_updatePaginator(we){Promise.resolve().then(()=>{const U=this.paginator;if(U&&(U.length=we,U.pageIndex>0)){const Ae=Math.ceil(U.length/U.pageSize)-1||0,tt=Math.min(U.pageIndex,Ae);tt!==U.pageIndex&&(U.pageIndex=tt,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var we;null===(we=this._renderChangesSubscription)||void 0===we||we.unsubscribe(),this._renderChangesSubscription=null}}class Bn extends zn{}},3251:(Le,m,l)=>{"use strict";l.r(m),l.d(m,{MAT_TAB:()=>Xe,MAT_TABS_CONFIG:()=>se,MAT_TAB_GROUP:()=>Rt,MatInkBar:()=>he,MatTab:()=>dt,MatTabBody:()=>Pe,MatTabBodyPortal:()=>k,MatTabChangeEvent:()=>on,MatTabContent:()=>Ie,MatTabGroup:()=>an,MatTabHeader:()=>It,MatTabLabel:()=>pt,MatTabLabelWrapper:()=>_e,MatTabLink:()=>Ke,MatTabNav:()=>Ot,MatTabsModule:()=>Qe,_MAT_INK_BAR_POSITIONER:()=>qe,_MatTabBodyBase:()=>ne,_MatTabGroupBase:()=>Mn,_MatTabHeaderBase:()=>_t,_MatTabLinkBase:()=>at,_MatTabNavBase:()=>Qt,matTabsAnimations:()=>Ze});var i=l(5664),d=l(7144),_=l(7429),u=l(9808),s=l(5e3),b=l(508),C=l(6360),T=l(6758),p=l(6921),y=l(4968),P=l(9646),O=l(6451),S=l(2805),N=l(1777),B=l(8675),ce=l(1884),K=l(2722),re=l(226),Me=l(3191),pe=l(1159),be=l(925),ue=l(9071);function xe(Se,De){1&Se&&s.\u0275\u0275projection(0)}const He=["*"];function et(Se,De){}const ct=function(Se){return{animationDuration:Se}},X=function(Se,De){return{value:Se,params:De}},me=["tabListContainer"],z=["tabList"],oe=["tabListInner"],ke=["nextPaginator"],de=["previousPaginator"],Ue=["tabBodyWrapper"],fe=["tabHeader"];function Je(Se,De){}function Te(Se,De){if(1&Se&&s.\u0275\u0275template(0,Je,0,0,"ng-template",9),2&Se){const w=s.\u0275\u0275nextContext().$implicit;s.\u0275\u0275property("cdkPortalOutlet",w.templateLabel)}}function Ge(Se,De){if(1&Se&&s.\u0275\u0275text(0),2&Se){const w=s.\u0275\u0275nextContext().$implicit;s.\u0275\u0275textInterpolate(w.textLabel)}}function vt(Se,De){if(1&Se){const w=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"div",6),s.\u0275\u0275listener("click",function(){const M=s.\u0275\u0275restoreView(w),G=M.$implicit,ot=M.index,Et=s.\u0275\u0275nextContext(),Ut=s.\u0275\u0275reference(1);return Et._handleClick(G,Ut,ot)})("cdkFocusChange",function(M){const ot=s.\u0275\u0275restoreView(w).index;return s.\u0275\u0275nextContext()._tabFocusChanged(M,ot)}),s.\u0275\u0275elementStart(1,"div",7),s.\u0275\u0275template(2,Te,1,1,"ng-template",8),s.\u0275\u0275template(3,Ge,1,1,"ng-template",8),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd()}if(2&Se){const w=De.$implicit,I=De.index,M=s.\u0275\u0275nextContext();s.\u0275\u0275classProp("mat-tab-label-active",M.selectedIndex==I),s.\u0275\u0275property("id",M._getTabLabelId(I))("disabled",w.disabled)("matRippleDisabled",w.disabled||M.disableRipple),s.\u0275\u0275attribute("tabIndex",M._getTabIndex(w,I))("aria-posinset",I+1)("aria-setsize",M._tabs.length)("aria-controls",M._getTabContentId(I))("aria-selected",M.selectedIndex==I)("aria-label",w.ariaLabel||null)("aria-labelledby",!w.ariaLabel&&w.ariaLabelledby?w.ariaLabelledby:null),s.\u0275\u0275advance(2),s.\u0275\u0275property("ngIf",w.templateLabel),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngIf",!w.templateLabel)}}function St(Se,De){if(1&Se){const w=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"mat-tab-body",10),s.\u0275\u0275listener("_onCentered",function(){return s.\u0275\u0275restoreView(w),s.\u0275\u0275nextContext()._removeTabBodyWrapperHeight()})("_onCentering",function(M){return s.\u0275\u0275restoreView(w),s.\u0275\u0275nextContext()._setTabBodyWrapperHeight(M)}),s.\u0275\u0275elementEnd()}if(2&Se){const w=De.$implicit,I=De.index,M=s.\u0275\u0275nextContext();s.\u0275\u0275classProp("mat-tab-body-active",M.selectedIndex===I),s.\u0275\u0275property("id",M._getTabContentId(I))("content",w.content)("position",w.position)("origin",w.origin)("animationDuration",M.animationDuration),s.\u0275\u0275attribute("tabindex",null!=M.contentTabIndex&&M.selectedIndex===I?M.contentTabIndex:null)("aria-labelledby",M._getTabLabelId(I))}}const Re=["mat-tab-nav-bar",""],qe=new s.InjectionToken("MatInkBarPositioner",{providedIn:"root",factory:function Y(){return De=>({left:De?(De.offsetLeft||0)+"px":"0",width:De?(De.offsetWidth||0)+"px":"0"})}});let he=(()=>{class Se{constructor(w,I,M,G){this._elementRef=w,this._ngZone=I,this._inkBarPositioner=M,this._animationMode=G}alignToElement(w){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(w))}):this._setStyles(w)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(w){const I=this._inkBarPositioner(w),M=this._elementRef.nativeElement;M.style.left=I.left,M.style.width=I.width}}return Se.\u0275fac=function(w){return new(w||Se)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(qe),s.\u0275\u0275directiveInject(C.ANIMATION_MODULE_TYPE,8))},Se.\u0275dir=s.\u0275\u0275defineDirective({type:Se,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(w,I){2&w&&s.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===I._animationMode)}}),Se})();const Ee=new s.InjectionToken("MatTabContent");let Ie=(()=>{class Se{constructor(w){this.template=w}}return Se.\u0275fac=function(w){return new(w||Se)(s.\u0275\u0275directiveInject(s.TemplateRef))},Se.\u0275dir=s.\u0275\u0275defineDirective({type:Se,selectors:[["","matTabContent",""]],features:[s.\u0275\u0275ProvidersFeature([{provide:Ee,useExisting:Se}])]}),Se})();const ge=new s.InjectionToken("MatTabLabel"),Xe=new s.InjectionToken("MAT_TAB");let pt=(()=>{class Se extends _.ig{constructor(w,I,M){super(w,I),this._closestTab=M}}return Se.\u0275fac=function(w){return new(w||Se)(s.\u0275\u0275directiveInject(s.TemplateRef),s.\u0275\u0275directiveInject(s.ViewContainerRef),s.\u0275\u0275directiveInject(Xe,8))},Se.\u0275dir=s.\u0275\u0275defineDirective({type:Se,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[s.\u0275\u0275ProvidersFeature([{provide:ge,useExisting:Se}]),s.\u0275\u0275InheritDefinitionFeature]}),Se})();const Tt=(0,b.Id)(class{}),Rt=new s.InjectionToken("MAT_TAB_GROUP");let dt=(()=>{class Se extends Tt{constructor(w,I){super(),this._viewContainerRef=w,this._closestTabGroup=I,this.textLabel="",this._contentPortal=null,this._stateChanges=new T.x,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(w){this._setTemplateLabelInput(w)}get content(){return this._contentPortal}ngOnChanges(w){(w.hasOwnProperty("textLabel")||w.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new _.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(w){w&&w._closestTab===this&&(this._templateLabel=w)}}return Se.\u0275fac=function(w){return new(w||Se)(s.\u0275\u0275directiveInject(s.ViewContainerRef),s.\u0275\u0275directiveInject(Rt,8))},Se.\u0275cmp=s.\u0275\u0275defineComponent({type:Se,selectors:[["mat-tab"]],contentQueries:function(w,I,M){if(1&w&&(s.\u0275\u0275contentQuery(M,ge,5),s.\u0275\u0275contentQuery(M,Ee,7,s.TemplateRef)),2&w){let G;s.\u0275\u0275queryRefresh(G=s.\u0275\u0275loadQuery())&&(I.templateLabel=G.first),s.\u0275\u0275queryRefresh(G=s.\u0275\u0275loadQuery())&&(I._explicitContent=G.first)}},viewQuery:function(w,I){if(1&w&&s.\u0275\u0275viewQuery(s.TemplateRef,7),2&w){let M;s.\u0275\u0275queryRefresh(M=s.\u0275\u0275loadQuery())&&(I._implicitContent=M.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[s.\u0275\u0275ProvidersFeature([{provide:Xe,useExisting:Se}]),s.\u0275\u0275InheritDefinitionFeature,s.\u0275\u0275NgOnChangesFeature],ngContentSelectors:He,decls:1,vars:0,template:function(w,I){1&w&&(s.\u0275\u0275projectionDef(),s.\u0275\u0275template(0,xe,1,0,"ng-template"))},encapsulation:2}),Se})();const Ze={translateTab:(0,N.X$)("translateTab",[(0,N.SB)("center, void, left-origin-center, right-origin-center",(0,N.oB)({transform:"none"})),(0,N.SB)("left",(0,N.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),(0,N.SB)("right",(0,N.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),(0,N.eR)("* => left, * => right, left => center, right => center",(0,N.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,N.eR)("void => left-origin-center",[(0,N.oB)({transform:"translate3d(-100%, 0, 0)"}),(0,N.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,N.eR)("void => right-origin-center",[(0,N.oB)({transform:"translate3d(100%, 0, 0)"}),(0,N.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let k=(()=>{class Se extends _.Pl{constructor(w,I,M,G){super(w,I,G),this._host=M,this._centeringSub=p.w0.EMPTY,this._leavingSub=p.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,B.O)(this._host._isCenterPosition(this._host._position))).subscribe(w=>{w&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return Se.\u0275fac=function(w){return new(w||Se)(s.\u0275\u0275directiveInject(s.ComponentFactoryResolver),s.\u0275\u0275directiveInject(s.ViewContainerRef),s.\u0275\u0275directiveInject((0,s.forwardRef)(()=>Pe)),s.\u0275\u0275directiveInject(u.DOCUMENT))},Se.\u0275dir=s.\u0275\u0275defineDirective({type:Se,selectors:[["","matTabBodyHost",""]],features:[s.\u0275\u0275InheritDefinitionFeature]}),Se})(),ne=(()=>{class Se{constructor(w,I,M){this._elementRef=w,this._dir=I,this._dirChangeSubscription=p.w0.EMPTY,this._translateTabComplete=new T.x,this._onCentering=new s.EventEmitter,this._beforeCentering=new s.EventEmitter,this._afterLeavingCenter=new s.EventEmitter,this._onCentered=new s.EventEmitter(!0),this.animationDuration="500ms",I&&(this._dirChangeSubscription=I.change.subscribe(G=>{this._computePositionAnimationState(G),M.markForCheck()})),this._translateTabComplete.pipe((0,ce.x)((G,ot)=>G.fromState===ot.fromState&&G.toState===ot.toState)).subscribe(G=>{this._isCenterPosition(G.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(G.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(w){this._positionIndex=w,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(w){const I=this._isCenterPosition(w.toState);this._beforeCentering.emit(I),I&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(w){return"center"==w||"left-origin-center"==w||"right-origin-center"==w}_computePositionAnimationState(w=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==w?"left":"right":this._positionIndex>0?"ltr"==w?"right":"left":"center"}_computePositionFromOrigin(w){const I=this._getLayoutDirection();return"ltr"==I&&w<=0||"rtl"==I&&w>0?"left-origin-center":"right-origin-center"}}return Se.\u0275fac=function(w){return new(w||Se)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(re.Is,8),s.\u0275\u0275directiveInject(s.ChangeDetectorRef))},Se.\u0275dir=s.\u0275\u0275defineDirective({type:Se,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),Se})(),Pe=(()=>{class Se extends ne{constructor(w,I,M){super(w,I,M)}}return Se.\u0275fac=function(w){return new(w||Se)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(re.Is,8),s.\u0275\u0275directiveInject(s.ChangeDetectorRef))},Se.\u0275cmp=s.\u0275\u0275defineComponent({type:Se,selectors:[["mat-tab-body"]],viewQuery:function(w,I){if(1&w&&s.\u0275\u0275viewQuery(_.Pl,5),2&w){let M;s.\u0275\u0275queryRefresh(M=s.\u0275\u0275loadQuery())&&(I._portalHost=M.first)}},hostAttrs:[1,"mat-tab-body"],features:[s.\u0275\u0275InheritDefinitionFeature],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(w,I){1&w&&(s.\u0275\u0275elementStart(0,"div",0,1),s.\u0275\u0275listener("@translateTab.start",function(G){return I._onTranslateTabStarted(G)})("@translateTab.done",function(G){return I._translateTabComplete.next(G)}),s.\u0275\u0275template(2,et,0,0,"ng-template",2),s.\u0275\u0275elementEnd()),2&w&&s.\u0275\u0275property("@translateTab",s.\u0275\u0275pureFunction2(3,X,I._position,s.\u0275\u0275pureFunction1(1,ct,I.animationDuration)))},directives:[k],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[Ze.translateTab]}}),Se})();const se=new s.InjectionToken("MAT_TABS_CONFIG"),Ce=(0,b.Id)(class{});let _e=(()=>{class Se extends Ce{constructor(w){super(),this.elementRef=w}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return Se.\u0275fac=function(w){return new(w||Se)(s.\u0275\u0275directiveInject(s.ElementRef))},Se.\u0275dir=s.\u0275\u0275defineDirective({type:Se,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(w,I){2&w&&(s.\u0275\u0275attribute("aria-disabled",!!I.disabled),s.\u0275\u0275classProp("mat-tab-disabled",I.disabled))},inputs:{disabled:"disabled"},features:[s.\u0275\u0275InheritDefinitionFeature]}),Se})();const ie=(0,be.i$)({passive:!0});let mt=(()=>{class Se{constructor(w,I,M,G,ot,Et,Ut){this._elementRef=w,this._changeDetectorRef=I,this._viewportRuler=M,this._dir=G,this._ngZone=ot,this._platform=Et,this._animationMode=Ut,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new T.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new T.x,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new s.EventEmitter,this.indexFocused=new s.EventEmitter,ot.runOutsideAngular(()=>{(0,y.R)(w.nativeElement,"mouseleave").pipe((0,K.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(w){w=(0,Me.su)(w),this._selectedIndex!=w&&(this._selectedIndexChanged=!0,this._selectedIndex=w,this._keyManager&&this._keyManager.updateActiveItem(w))}ngAfterViewInit(){(0,y.R)(this._previousPaginator.nativeElement,"touchstart",ie).pipe((0,K.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,y.R)(this._nextPaginator.nativeElement,"touchstart",ie).pipe((0,K.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const w=this._dir?this._dir.change:(0,P.of)("ltr"),I=this._viewportRuler.change(150),M=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new i.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(M):M(),(0,O.T)(w,I,this._items.changes).pipe((0,K.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>Promise.resolve().then(M)),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,K.R)(this._destroyed)).subscribe(G=>{this.indexFocused.emit(G),this._setTabFocus(G)})}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(w){if(!(0,pe.Vb)(w))switch(w.keyCode){case pe.K5:case pe.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(w));break;default:this._keyManager.onKeydown(w)}}_onContentChanges(){const w=this._elementRef.nativeElement.textContent;w!==this._currentTextContent&&(this._currentTextContent=w||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(w){!this._isValidIndex(w)||this.focusIndex===w||!this._keyManager||this._keyManager.setActiveItem(w)}_isValidIndex(w){if(!this._items)return!0;const I=this._items?this._items.toArray()[w]:null;return!!I&&!I.disabled}_setTabFocus(w){if(this._showPaginationControls&&this._scrollToLabel(w),this._items&&this._items.length){this._items.toArray()[w].focus();const I=this._tabListContainer.nativeElement;I.scrollLeft="ltr"==this._getLayoutDirection()?0:I.scrollWidth-I.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const w=this.scrollDistance,I="ltr"===this._getLayoutDirection()?-w:w;this._tabList.nativeElement.style.transform=`translateX(${Math.round(I)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(w){this._scrollTo(w)}_scrollHeader(w){return this._scrollTo(this._scrollDistance+("before"==w?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(w){this._stopInterval(),this._scrollHeader(w)}_scrollToLabel(w){if(this.disablePagination)return;const I=this._items?this._items.toArray()[w]:null;if(!I)return;const M=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:G,offsetWidth:ot}=I.elementRef.nativeElement;let Et,Ut;"ltr"==this._getLayoutDirection()?(Et=G,Ut=Et+ot):(Ut=this._tabListInner.nativeElement.offsetWidth-G,Et=Ut-ot);const gn=this.scrollDistance,Ve=this.scrollDistance+M;Et<gn?this.scrollDistance-=gn-Et+60:Ut>Ve&&(this.scrollDistance+=Ut-Ve+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const w=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;w||(this.scrollDistance=0),w!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=w}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const w=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,I=w?w.elementRef.nativeElement:null;I?this._inkBar.alignToElement(I):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(w,I){I&&null!=I.button&&0!==I.button||(this._stopInterval(),(0,S.H)(650,100).pipe((0,K.R)((0,O.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:M,distance:G}=this._scrollHeader(w);(0===G||G>=M)&&this._stopInterval()}))}_scrollTo(w){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const I=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(I,w)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:I,distance:this._scrollDistance}}}return Se.\u0275fac=function(w){return new(w||Se)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(ue.rL),s.\u0275\u0275directiveInject(re.Is,8),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(be.t4),s.\u0275\u0275directiveInject(C.ANIMATION_MODULE_TYPE,8))},Se.\u0275dir=s.\u0275\u0275defineDirective({type:Se,inputs:{disablePagination:"disablePagination"}}),Se})(),_t=(()=>{class Se extends mt{constructor(w,I,M,G,ot,Et,Ut){super(w,I,M,G,ot,Et,Ut),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(w){this._disableRipple=(0,Me.Ig)(w)}_itemSelected(w){w.preventDefault()}}return Se.\u0275fac=function(w){return new(w||Se)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(ue.rL),s.\u0275\u0275directiveInject(re.Is,8),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(be.t4),s.\u0275\u0275directiveInject(C.ANIMATION_MODULE_TYPE,8))},Se.\u0275dir=s.\u0275\u0275defineDirective({type:Se,inputs:{disableRipple:"disableRipple"},features:[s.\u0275\u0275InheritDefinitionFeature]}),Se})(),It=(()=>{class Se extends _t{constructor(w,I,M,G,ot,Et,Ut){super(w,I,M,G,ot,Et,Ut)}}return Se.\u0275fac=function(w){return new(w||Se)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(ue.rL),s.\u0275\u0275directiveInject(re.Is,8),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(be.t4),s.\u0275\u0275directiveInject(C.ANIMATION_MODULE_TYPE,8))},Se.\u0275cmp=s.\u0275\u0275defineComponent({type:Se,selectors:[["mat-tab-header"]],contentQueries:function(w,I,M){if(1&w&&s.\u0275\u0275contentQuery(M,_e,4),2&w){let G;s.\u0275\u0275queryRefresh(G=s.\u0275\u0275loadQuery())&&(I._items=G)}},viewQuery:function(w,I){if(1&w&&(s.\u0275\u0275viewQuery(he,7),s.\u0275\u0275viewQuery(me,7),s.\u0275\u0275viewQuery(z,7),s.\u0275\u0275viewQuery(oe,7),s.\u0275\u0275viewQuery(ke,5),s.\u0275\u0275viewQuery(de,5)),2&w){let M;s.\u0275\u0275queryRefresh(M=s.\u0275\u0275loadQuery())&&(I._inkBar=M.first),s.\u0275\u0275queryRefresh(M=s.\u0275\u0275loadQuery())&&(I._tabListContainer=M.first),s.\u0275\u0275queryRefresh(M=s.\u0275\u0275loadQuery())&&(I._tabList=M.first),s.\u0275\u0275queryRefresh(M=s.\u0275\u0275loadQuery())&&(I._tabListInner=M.first),s.\u0275\u0275queryRefresh(M=s.\u0275\u0275loadQuery())&&(I._nextPaginator=M.first),s.\u0275\u0275queryRefresh(M=s.\u0275\u0275loadQuery())&&(I._previousPaginator=M.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(w,I){2&w&&s.\u0275\u0275classProp("mat-tab-header-pagination-controls-enabled",I._showPaginationControls)("mat-tab-header-rtl","rtl"==I._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[s.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:He,decls:14,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(w,I){1&w&&(s.\u0275\u0275projectionDef(),s.\u0275\u0275elementStart(0,"div",0,1),s.\u0275\u0275listener("click",function(){return I._handlePaginatorClick("before")})("mousedown",function(G){return I._handlePaginatorPress("before",G)})("touchend",function(){return I._stopInterval()}),s.\u0275\u0275element(2,"div",2),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(3,"div",3,4),s.\u0275\u0275listener("keydown",function(G){return I._handleKeydown(G)}),s.\u0275\u0275elementStart(5,"div",5,6),s.\u0275\u0275listener("cdkObserveContent",function(){return I._onContentChanges()}),s.\u0275\u0275elementStart(7,"div",7,8),s.\u0275\u0275projection(9),s.\u0275\u0275elementEnd(),s.\u0275\u0275element(10,"mat-ink-bar"),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(11,"div",9,10),s.\u0275\u0275listener("mousedown",function(G){return I._handlePaginatorPress("after",G)})("click",function(){return I._handlePaginatorClick("after")})("touchend",function(){return I._stopInterval()}),s.\u0275\u0275element(13,"div",2),s.\u0275\u0275elementEnd()),2&w&&(s.\u0275\u0275classProp("mat-tab-header-pagination-disabled",I._disableScrollBefore),s.\u0275\u0275property("matRippleDisabled",I._disableScrollBefore||I.disableRipple),s.\u0275\u0275advance(5),s.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===I._animationMode),s.\u0275\u0275advance(6),s.\u0275\u0275classProp("mat-tab-header-pagination-disabled",I._disableScrollAfter),s.\u0275\u0275property("matRippleDisabled",I._disableScrollAfter||I.disableRipple))},directives:[b.wG,d.wD,he],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n"],encapsulation:2}),Se})(),zt=0;class on{}const Kt=(0,b.pj)((0,b.Kr)(class{constructor(Se){this._elementRef=Se}}),"primary");let Mn=(()=>{class Se extends Kt{constructor(w,I,M,G){var ot;super(w),this._changeDetectorRef=I,this._animationMode=G,this._tabs=new s.QueryList,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=p.w0.EMPTY,this._tabLabelSubscription=p.w0.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new s.EventEmitter,this.focusChange=new s.EventEmitter,this.animationDone=new s.EventEmitter,this.selectedTabChange=new s.EventEmitter(!0),this._groupId=zt++,this.animationDuration=M&&M.animationDuration?M.animationDuration:"500ms",this.disablePagination=!(!M||null==M.disablePagination)&&M.disablePagination,this.dynamicHeight=!(!M||null==M.dynamicHeight)&&M.dynamicHeight,this.contentTabIndex=null!==(ot=null==M?void 0:M.contentTabIndex)&&void 0!==ot?ot:null}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(w){this._dynamicHeight=(0,Me.Ig)(w)}get selectedIndex(){return this._selectedIndex}set selectedIndex(w){this._indexToSelect=(0,Me.su)(w,null)}get animationDuration(){return this._animationDuration}set animationDuration(w){this._animationDuration=/^\d+$/.test(w+"")?w+"ms":w}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(w){this._contentTabIndex=(0,Me.su)(w,null)}get backgroundColor(){return this._backgroundColor}set backgroundColor(w){const I=this._elementRef.nativeElement;I.classList.remove(`mat-background-${this.backgroundColor}`),w&&I.classList.add(`mat-background-${w}`),this._backgroundColor=w}ngAfterContentChecked(){const w=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=w){const I=null==this._selectedIndex;if(!I){this.selectedTabChange.emit(this._createChangeEvent(w));const M=this._tabBodyWrapper.nativeElement;M.style.minHeight=M.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((M,G)=>M.isActive=G===w),I||(this.selectedIndexChange.emit(w),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((I,M)=>{I.position=M-w,null!=this._selectedIndex&&0==I.position&&!I.origin&&(I.origin=w-this._selectedIndex)}),this._selectedIndex!==w&&(this._selectedIndex=w,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const I=this._tabs.toArray();for(let M=0;M<I.length;M++)if(I[M].isActive){this._indexToSelect=this._selectedIndex=M;break}}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,B.O)(this._allTabs)).subscribe(w=>{this._tabs.reset(w.filter(I=>I._closestTabGroup===this||!I._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}focusTab(w){const I=this._tabHeader;I&&(I.focusIndex=w)}_focusChanged(w){this.focusChange.emit(this._createChangeEvent(w))}_createChangeEvent(w){const I=new on;return I.index=w,this._tabs&&this._tabs.length&&(I.tab=this._tabs.toArray()[w]),I}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,O.T)(...this._tabs.map(w=>w._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(w){return Math.min(this._tabs.length-1,Math.max(w||0,0))}_getTabLabelId(w){return`mat-tab-label-${this._groupId}-${w}`}_getTabContentId(w){return`mat-tab-content-${this._groupId}-${w}`}_setTabBodyWrapperHeight(w){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const I=this._tabBodyWrapper.nativeElement;I.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(I.style.height=w+"px")}_removeTabBodyWrapperHeight(){const w=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=w.clientHeight,w.style.height="",this.animationDone.emit()}_handleClick(w,I,M){w.disabled||(this.selectedIndex=I.focusIndex=M)}_getTabIndex(w,I){return w.disabled?null:this.selectedIndex===I?0:-1}_tabFocusChanged(w,I){w&&"mouse"!==w&&"touch"!==w&&(this._tabHeader.focusIndex=I)}}return Se.\u0275fac=function(w){return new(w||Se)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(se,8),s.\u0275\u0275directiveInject(C.ANIMATION_MODULE_TYPE,8))},Se.\u0275dir=s.\u0275\u0275defineDirective({type:Se,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[s.\u0275\u0275InheritDefinitionFeature]}),Se})(),an=(()=>{class Se extends Mn{constructor(w,I,M,G){super(w,I,M,G)}}return Se.\u0275fac=function(w){return new(w||Se)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(se,8),s.\u0275\u0275directiveInject(C.ANIMATION_MODULE_TYPE,8))},Se.\u0275cmp=s.\u0275\u0275defineComponent({type:Se,selectors:[["mat-tab-group"]],contentQueries:function(w,I,M){if(1&w&&s.\u0275\u0275contentQuery(M,dt,5),2&w){let G;s.\u0275\u0275queryRefresh(G=s.\u0275\u0275loadQuery())&&(I._allTabs=G)}},viewQuery:function(w,I){if(1&w&&(s.\u0275\u0275viewQuery(Ue,5),s.\u0275\u0275viewQuery(fe,5)),2&w){let M;s.\u0275\u0275queryRefresh(M=s.\u0275\u0275loadQuery())&&(I._tabBodyWrapper=M.first),s.\u0275\u0275queryRefresh(M=s.\u0275\u0275loadQuery())&&(I._tabHeader=M.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(w,I){2&w&&s.\u0275\u0275classProp("mat-tab-group-dynamic-height",I.dynamicHeight)("mat-tab-group-inverted-header","below"===I.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[s.\u0275\u0275ProvidersFeature([{provide:Rt,useExisting:Se}]),s.\u0275\u0275InheritDefinitionFeature],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(w,I){1&w&&(s.\u0275\u0275elementStart(0,"mat-tab-header",0,1),s.\u0275\u0275listener("indexFocused",function(G){return I._focusChanged(G)})("selectFocusedIndex",function(G){return I.selectedIndex=G}),s.\u0275\u0275template(2,vt,4,14,"div",2),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(3,"div",3,4),s.\u0275\u0275template(5,St,1,9,"mat-tab-body",5),s.\u0275\u0275elementEnd()),2&w&&(s.\u0275\u0275property("selectedIndex",I.selectedIndex||0)("disableRipple",I.disableRipple)("disablePagination",I.disablePagination),s.\u0275\u0275advance(2),s.\u0275\u0275property("ngForOf",I._tabs),s.\u0275\u0275advance(1),s.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===I._animationMode),s.\u0275\u0275advance(2),s.\u0275\u0275property("ngForOf",I._tabs))},directives:[It,u.NgForOf,_e,b.wG,i.kH,u.NgIf,_.Pl,Pe],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),Se})(),Qt=(()=>{class Se extends mt{constructor(w,I,M,G,ot,Et,Ut){super(w,G,ot,I,M,Et,Ut),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(w){const I=this._elementRef.nativeElement.classList;I.remove(`mat-background-${this.backgroundColor}`),w&&I.add(`mat-background-${w}`),this._backgroundColor=w}get disableRipple(){return this._disableRipple}set disableRipple(w){this._disableRipple=(0,Me.Ig)(w)}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe((0,B.O)(null),(0,K.R)(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(){if(!this._items)return;const w=this._items.toArray();for(let I=0;I<w.length;I++)if(w[I].active)return this.selectedIndex=I,void this._changeDetectorRef.markForCheck();this.selectedIndex=-1,this._inkBar.hide()}}return Se.\u0275fac=function(w){return new(w||Se)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(re.Is,8),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(ue.rL),s.\u0275\u0275directiveInject(be.t4),s.\u0275\u0275directiveInject(C.ANIMATION_MODULE_TYPE,8))},Se.\u0275dir=s.\u0275\u0275defineDirective({type:Se,inputs:{backgroundColor:"backgroundColor",disableRipple:"disableRipple",color:"color"},features:[s.\u0275\u0275InheritDefinitionFeature]}),Se})(),Ot=(()=>{class Se extends Qt{constructor(w,I,M,G,ot,Et,Ut){super(w,I,M,G,ot,Et,Ut)}}return Se.\u0275fac=function(w){return new(w||Se)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(re.Is,8),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(ue.rL),s.\u0275\u0275directiveInject(be.t4),s.\u0275\u0275directiveInject(C.ANIMATION_MODULE_TYPE,8))},Se.\u0275cmp=s.\u0275\u0275defineComponent({type:Se,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(w,I,M){if(1&w&&s.\u0275\u0275contentQuery(M,Ke,5),2&w){let G;s.\u0275\u0275queryRefresh(G=s.\u0275\u0275loadQuery())&&(I._items=G)}},viewQuery:function(w,I){if(1&w&&(s.\u0275\u0275viewQuery(he,7),s.\u0275\u0275viewQuery(me,7),s.\u0275\u0275viewQuery(z,7),s.\u0275\u0275viewQuery(oe,7),s.\u0275\u0275viewQuery(ke,5),s.\u0275\u0275viewQuery(de,5)),2&w){let M;s.\u0275\u0275queryRefresh(M=s.\u0275\u0275loadQuery())&&(I._inkBar=M.first),s.\u0275\u0275queryRefresh(M=s.\u0275\u0275loadQuery())&&(I._tabListContainer=M.first),s.\u0275\u0275queryRefresh(M=s.\u0275\u0275loadQuery())&&(I._tabList=M.first),s.\u0275\u0275queryRefresh(M=s.\u0275\u0275loadQuery())&&(I._tabListInner=M.first),s.\u0275\u0275queryRefresh(M=s.\u0275\u0275loadQuery())&&(I._nextPaginator=M.first),s.\u0275\u0275queryRefresh(M=s.\u0275\u0275loadQuery())&&(I._previousPaginator=M.first)}},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:10,hostBindings:function(w,I){2&w&&s.\u0275\u0275classProp("mat-tab-header-pagination-controls-enabled",I._showPaginationControls)("mat-tab-header-rtl","rtl"==I._getLayoutDirection())("mat-primary","warn"!==I.color&&"accent"!==I.color)("mat-accent","accent"===I.color)("mat-warn","warn"===I.color)},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[s.\u0275\u0275InheritDefinitionFeature],attrs:Re,ngContentSelectors:He,decls:14,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-link-container",3,"keydown"],["tabListContainer",""],[1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-links"],["tabListInner",""],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(w,I){1&w&&(s.\u0275\u0275projectionDef(),s.\u0275\u0275elementStart(0,"div",0,1),s.\u0275\u0275listener("click",function(){return I._handlePaginatorClick("before")})("mousedown",function(G){return I._handlePaginatorPress("before",G)})("touchend",function(){return I._stopInterval()}),s.\u0275\u0275element(2,"div",2),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(3,"div",3,4),s.\u0275\u0275listener("keydown",function(G){return I._handleKeydown(G)}),s.\u0275\u0275elementStart(5,"div",5,6),s.\u0275\u0275listener("cdkObserveContent",function(){return I._onContentChanges()}),s.\u0275\u0275elementStart(7,"div",7,8),s.\u0275\u0275projection(9),s.\u0275\u0275elementEnd(),s.\u0275\u0275element(10,"mat-ink-bar"),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(11,"div",9,10),s.\u0275\u0275listener("mousedown",function(G){return I._handlePaginatorPress("after",G)})("click",function(){return I._handlePaginatorClick("after")})("touchend",function(){return I._stopInterval()}),s.\u0275\u0275element(13,"div",2),s.\u0275\u0275elementEnd()),2&w&&(s.\u0275\u0275classProp("mat-tab-header-pagination-disabled",I._disableScrollBefore),s.\u0275\u0275property("matRippleDisabled",I._disableScrollBefore||I.disableRipple),s.\u0275\u0275advance(5),s.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===I._animationMode),s.\u0275\u0275advance(6),s.\u0275\u0275classProp("mat-tab-header-pagination-disabled",I._disableScrollAfter),s.\u0275\u0275property("matRippleDisabled",I._disableScrollAfter||I.disableRipple))},directives:[b.wG,d.wD,he],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-link:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}@media(max-width: 599px){.mat-tab-link{min-width:72px}}\n"],encapsulation:2}),Se})();const bn=(0,b.sb)((0,b.Kr)((0,b.Id)(class{})));let at=(()=>{class Se extends bn{constructor(w,I,M,G,ot,Et){super(),this._tabNavBar=w,this.elementRef=I,this._focusMonitor=ot,this._isActive=!1,this.rippleConfig=M||{},this.tabIndex=parseInt(G)||0,"NoopAnimations"===Et&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}get active(){return this._isActive}set active(w){const I=(0,Me.Ig)(w);I!==this._isActive&&(this._isActive=I,this._tabNavBar.updateActiveLink())}get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}focus(){this.elementRef.nativeElement.focus()}ngAfterViewInit(){this._focusMonitor.monitor(this.elementRef)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this.elementRef)}_handleFocus(){this._tabNavBar.focusIndex=this._tabNavBar._items.toArray().indexOf(this)}}return Se.\u0275fac=function(w){return new(w||Se)(s.\u0275\u0275directiveInject(Qt),s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(b.Y2,8),s.\u0275\u0275injectAttribute("tabindex"),s.\u0275\u0275directiveInject(i.tE),s.\u0275\u0275directiveInject(C.ANIMATION_MODULE_TYPE,8))},Se.\u0275dir=s.\u0275\u0275defineDirective({type:Se,inputs:{active:"active"},features:[s.\u0275\u0275InheritDefinitionFeature]}),Se})(),Ke=(()=>{class Se extends at{constructor(w,I,M,G,ot,Et,Ut,gn){super(w,I,ot,Et,Ut,gn),this._tabLinkRipple=new b.IR(this,M,I,G),this._tabLinkRipple.setupTriggerEvents(I.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}return Se.\u0275fac=function(w){return new(w||Se)(s.\u0275\u0275directiveInject(Ot),s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(be.t4),s.\u0275\u0275directiveInject(b.Y2,8),s.\u0275\u0275injectAttribute("tabindex"),s.\u0275\u0275directiveInject(i.tE),s.\u0275\u0275directiveInject(C.ANIMATION_MODULE_TYPE,8))},Se.\u0275dir=s.\u0275\u0275defineDirective({type:Se,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:7,hostBindings:function(w,I){1&w&&s.\u0275\u0275listener("focus",function(){return I._handleFocus()}),2&w&&(s.\u0275\u0275attribute("aria-current",I.active?"page":null)("aria-disabled",I.disabled)("tabIndex",I.tabIndex),s.\u0275\u0275classProp("mat-tab-disabled",I.disabled)("mat-tab-label-active",I.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[s.\u0275\u0275InheritDefinitionFeature]}),Se})(),Qe=(()=>{class Se{}return Se.\u0275fac=function(w){return new(w||Se)},Se.\u0275mod=s.\u0275\u0275defineNgModule({type:Se}),Se.\u0275inj=s.\u0275\u0275defineInjector({imports:[[u.CommonModule,b.BQ,_.eL,b.si,d.Q8,i.rt],b.BQ]}),Se})()},7238:(Le,m,l)=>{"use strict";l.r(m),l.d(m,{MAT_TOOLTIP_DEFAULT_OPTIONS:()=>X,MAT_TOOLTIP_DEFAULT_OPTIONS_FACTORY:()=>me,MAT_TOOLTIP_SCROLL_STRATEGY:()=>He,MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY:()=>et,MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER:()=>ct,MatTooltip:()=>oe,MatTooltipModule:()=>Ue,SCROLL_THROTTLE_MS:()=>re,TOOLTIP_PANEL_CLASS:()=>Me,TooltipComponent:()=>de,_MatTooltipBase:()=>z,_TooltipComponentBase:()=>ke,getMatTooltipInvalidPositionError:()=>xe,matTooltipAnimations:()=>K});var i=l(1314),d=l(5664),_=l(9808),u=l(5e3),s=l(508),b=l(9071),C=l(3191),T=l(1159),p=l(5113),y=l(925),P=l(7429),O=l(6758),S=l(2722),N=l(5698),B=l(1777),ce=l(226);const K={tooltipState:(0,B.X$)("state",[(0,B.SB)("initial, void, hidden",(0,B.oB)({opacity:0,transform:"scale(0)"})),(0,B.SB)("visible",(0,B.oB)({transform:"scale(1)"})),(0,B.eR)("* => visible",(0,B.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,B.F4)([(0,B.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,B.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,B.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,B.eR)("* => hidden",(0,B.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,B.oB)({opacity:0})))])},re=20,Me="mat-tooltip-panel",pe="tooltip-panel",be=(0,y.i$)({passive:!0});function xe(fe){return Error(`Tooltip position "${fe}" is invalid.`)}const He=new u.InjectionToken("mat-tooltip-scroll-strategy");function et(fe){return()=>fe.scrollStrategies.reposition({scrollThrottle:re})}const ct={provide:He,deps:[i.aV],useFactory:et},X=new u.InjectionToken("mat-tooltip-default-options",{providedIn:"root",factory:me});function me(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}let z=(()=>{class fe{constructor(Te,Ge,vt,St,Re,qe,Y,he,Ee,Ie,ge,Xe){this._overlay=Te,this._elementRef=Ge,this._scrollDispatcher=vt,this._viewContainerRef=St,this._ngZone=Re,this._platform=qe,this._ariaDescriber=Y,this._focusMonitor=he,this._dir=Ie,this._defaultOptions=ge,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new O.x,this._handleKeydown=pt=>{this._isTooltipVisible()&&pt.keyCode===T.hY&&!(0,T.Vb)(pt)&&(pt.preventDefault(),pt.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=Ee,this._document=Xe,ge&&(ge.position&&(this.position=ge.position),ge.touchGestures&&(this.touchGestures=ge.touchGestures)),Ie.change.pipe((0,S.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),Re.runOutsideAngular(()=>{Ge.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(Te){var Ge;Te!==this._position&&(this._position=Te,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(Ge=this._tooltipInstance)||void 0===Ge||Ge.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(Te){this._disabled=(0,C.Ig)(Te),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(Te){this._showDelay=(0,C.su)(Te)}get hideDelay(){return this._hideDelay}set hideDelay(Te){this._hideDelay=(0,C.su)(Te)}get message(){return this._message}set message(Te){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=Te?String(Te).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(Te){this._tooltipClass=Te,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,S.R)(this._destroyed)).subscribe(Te=>{Te?"keyboard"===Te&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const Te=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),Te.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([Ge,vt])=>{Te.removeEventListener(Ge,vt,be)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(Te,this.message,"tooltip"),this._focusMonitor.stopMonitoring(Te)}show(Te=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const Ge=this._createOverlay();this._detach(),this._portal=this._portal||new P.C5(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=Ge.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe((0,S.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(Te)}hide(Te=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(Te)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const Te=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),Ge=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(Te);return Ge.positionChanges.pipe((0,S.R)(this._destroyed)).subscribe(vt=>{this._updateCurrentPositionClass(vt.connectionPair),this._tooltipInstance&&vt.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:Ge,panelClass:`${this._cssClassPrefix}-${pe}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,S.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,S.R)(this._destroyed)).subscribe(()=>{var vt;return null===(vt=this._tooltipInstance)||void 0===vt?void 0:vt._handleBodyInteraction()}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(Te){const Ge=Te.getConfig().positionStrategy,vt=this._getOrigin(),St=this._getOverlayPosition();Ge.withPositions([this._addOffset(Object.assign(Object.assign({},vt.main),St.main)),this._addOffset(Object.assign(Object.assign({},vt.fallback),St.fallback))])}_addOffset(Te){return Te}_getOrigin(){const Te=!this._dir||"ltr"==this._dir.value,Ge=this.position;let vt;"above"==Ge||"below"==Ge?vt={originX:"center",originY:"above"==Ge?"top":"bottom"}:"before"==Ge||"left"==Ge&&Te||"right"==Ge&&!Te?vt={originX:"start",originY:"center"}:("after"==Ge||"right"==Ge&&Te||"left"==Ge&&!Te)&&(vt={originX:"end",originY:"center"});const{x:St,y:Re}=this._invertPosition(vt.originX,vt.originY);return{main:vt,fallback:{originX:St,originY:Re}}}_getOverlayPosition(){const Te=!this._dir||"ltr"==this._dir.value,Ge=this.position;let vt;"above"==Ge?vt={overlayX:"center",overlayY:"bottom"}:"below"==Ge?vt={overlayX:"center",overlayY:"top"}:"before"==Ge||"left"==Ge&&Te||"right"==Ge&&!Te?vt={overlayX:"end",overlayY:"center"}:("after"==Ge||"right"==Ge&&Te||"left"==Ge&&!Te)&&(vt={overlayX:"start",overlayY:"center"});const{x:St,y:Re}=this._invertPosition(vt.overlayX,vt.overlayY);return{main:vt,fallback:{overlayX:St,overlayY:Re}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,N.q)(1),(0,S.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(Te){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=Te,this._tooltipInstance._markForCheck())}_invertPosition(Te,Ge){return"above"===this.position||"below"===this.position?"top"===Ge?Ge="bottom":"bottom"===Ge&&(Ge="top"):"end"===Te?Te="start":"start"===Te&&(Te="end"),{x:Te,y:Ge}}_updateCurrentPositionClass(Te){const{overlayY:Ge,originX:vt,originY:St}=Te;let Re;if(Re="center"===Ge?this._dir&&"rtl"===this._dir.value?"end"===vt?"left":"right":"start"===vt?"left":"right":"bottom"===Ge&&"top"===St?"above":"below",Re!==this._currentPosition){const qe=this._overlayRef;if(qe){const Y=`${this._cssClassPrefix}-${pe}-`;qe.removePanelClass(Y+this._currentPosition),qe.addPanelClass(Y+Re)}this._currentPosition=Re}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const Te=[];if(this._platformSupportsMouseEvents())Te.push(["mouseleave",()=>this.hide()],["wheel",Ge=>this._wheelListener(Ge)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const Ge=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};Te.push(["touchend",Ge],["touchcancel",Ge])}this._addListeners(Te),this._passiveListeners.push(...Te)}_addListeners(Te){Te.forEach(([Ge,vt])=>{this._elementRef.nativeElement.addEventListener(Ge,vt,be)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(Te){if(this._isTooltipVisible()){const Ge=this._document.elementFromPoint(Te.clientX,Te.clientY),vt=this._elementRef.nativeElement;Ge!==vt&&!vt.contains(Ge)&&this.hide()}}_disableNativeGesturesIfNecessary(){const Te=this.touchGestures;if("off"!==Te){const Ge=this._elementRef.nativeElement,vt=Ge.style;("on"===Te||"INPUT"!==Ge.nodeName&&"TEXTAREA"!==Ge.nodeName)&&(vt.userSelect=vt.msUserSelect=vt.webkitUserSelect=vt.MozUserSelect="none"),("on"===Te||!Ge.draggable)&&(vt.webkitUserDrag="none"),vt.touchAction="none",vt.webkitTapHighlightColor="transparent"}}}return fe.\u0275fac=function(Te){u.\u0275\u0275invalidFactory()},fe.\u0275dir=u.\u0275\u0275defineDirective({type:fe,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),fe})(),oe=(()=>{class fe extends z{constructor(Te,Ge,vt,St,Re,qe,Y,he,Ee,Ie,ge,Xe){super(Te,Ge,vt,St,Re,qe,Y,he,Ee,Ie,ge,Xe),this._tooltipComponent=de}}return fe.\u0275fac=function(Te){return new(Te||fe)(u.\u0275\u0275directiveInject(i.aV),u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(b.mF),u.\u0275\u0275directiveInject(u.ViewContainerRef),u.\u0275\u0275directiveInject(u.NgZone),u.\u0275\u0275directiveInject(y.t4),u.\u0275\u0275directiveInject(d.$s),u.\u0275\u0275directiveInject(d.tE),u.\u0275\u0275directiveInject(He),u.\u0275\u0275directiveInject(ce.Is,8),u.\u0275\u0275directiveInject(X,8),u.\u0275\u0275directiveInject(_.DOCUMENT))},fe.\u0275dir=u.\u0275\u0275defineDirective({type:fe,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[u.\u0275\u0275InheritDefinitionFeature]}),fe})(),ke=(()=>{class fe{constructor(Te){this._changeDetectorRef=Te,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new O.x}show(Te){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},Te)}hide(Te){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},Te)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(Te){const Ge=Te.toState;"hidden"===Ge&&!this.isVisible()&&this._onHide.next(),("visible"===Ge||"hidden"===Ge)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return fe.\u0275fac=function(Te){return new(Te||fe)(u.\u0275\u0275directiveInject(u.ChangeDetectorRef))},fe.\u0275dir=u.\u0275\u0275defineDirective({type:fe}),fe})(),de=(()=>{class fe extends ke{constructor(Te,Ge){super(Te),this._breakpointObserver=Ge,this._isHandset=this._breakpointObserver.observe(p.Breakpoints.Handset)}}return fe.\u0275fac=function(Te){return new(Te||fe)(u.\u0275\u0275directiveInject(u.ChangeDetectorRef),u.\u0275\u0275directiveInject(p.BreakpointObserver))},fe.\u0275cmp=u.\u0275\u0275defineComponent({type:fe,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(Te,Ge){2&Te&&u.\u0275\u0275styleProp("zoom","visible"===Ge._visibility?1:null)},features:[u.\u0275\u0275InheritDefinitionFeature],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(Te,Ge){if(1&Te&&(u.\u0275\u0275elementStart(0,"div",0),u.\u0275\u0275listener("@state.start",function(){return Ge._animationStart()})("@state.done",function(St){return Ge._animationDone(St)}),u.\u0275\u0275pipe(1,"async"),u.\u0275\u0275text(2),u.\u0275\u0275elementEnd()),2&Te){let vt;u.\u0275\u0275classProp("mat-tooltip-handset",null==(vt=u.\u0275\u0275pipeBind1(1,5,Ge._isHandset))?null:vt.matches),u.\u0275\u0275property("ngClass",Ge.tooltipClass)("@state",Ge._visibility),u.\u0275\u0275advance(2),u.\u0275\u0275textInterpolate(Ge.message)}},directives:[_.NgClass],pipes:[_.AsyncPipe],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[K.tooltipState]},changeDetection:0}),fe})(),Ue=(()=>{class fe{}return fe.\u0275fac=function(Te){return new(Te||fe)},fe.\u0275mod=u.\u0275\u0275defineNgModule({type:fe}),fe.\u0275inj=u.\u0275\u0275defineInjector({providers:[ct],imports:[[d.rt,_.CommonModule,i.U8,s.BQ],s.BQ,b.ZD]}),fe})()},6360:(Le,m,l)=>{"use strict";l.r(m),l.d(m,{ANIMATION_MODULE_TYPE:()=>$t,BrowserAnimationsModule:()=>Ni,NoopAnimationsModule:()=>wt,\u0275AnimationRenderer:()=>In,\u0275AnimationRendererFactory:()=>Dn,\u0275BrowserAnimationBuilder:()=>R,\u0275BrowserAnimationFactory:()=>te,\u0275InjectableAnimationEngine:()=>A});var i=l(5e3),d=l(2313),_=l(1777);function u(){return"undefined"!=typeof window&&void 0!==window.document}function s(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function b(j){switch(j.length){case 0:return new _.ZN;case 1:return j[0];default:return new _.ZE(j)}}function C(j,c,f,D,V={},ae={}){const Fe=[],je=[];let st=-1,gt=null;if(D.forEach(Ft=>{const Gt=Ft.offset,Xt=Gt==st,dn=Xt&&gt||{};Object.keys(Ft).forEach(en=>{let nn=en,hn=Ft[en];if("offset"!==en)switch(nn=c.normalizePropertyName(nn,Fe),hn){case _.k1:hn=V[en];break;case _.l3:hn=ae[en];break;default:hn=c.normalizeStyleValue(en,nn,hn,Fe)}dn[nn]=hn}),Xt||je.push(dn),gt=dn,st=Gt}),Fe.length){const Ft="\n - ";throw new Error(`Unable to animate due to the following errors:${Ft}${Fe.join(Ft)}`)}return je}function T(j,c,f,D){switch(c){case"start":j.onStart(()=>D(f&&p(f,"start",j)));break;case"done":j.onDone(()=>D(f&&p(f,"done",j)));break;case"destroy":j.onDestroy(()=>D(f&&p(f,"destroy",j)))}}function p(j,c,f){const D=f.totalTime,ae=y(j.element,j.triggerName,j.fromState,j.toState,c||j.phaseName,null==D?j.totalTime:D,!!f.disabled),Fe=j._data;return null!=Fe&&(ae._data=Fe),ae}function y(j,c,f,D,V="",ae=0,Fe){return{element:j,triggerName:c,fromState:f,toState:D,phaseName:V,totalTime:ae,disabled:!!Fe}}function P(j,c,f){let D;return j instanceof Map?(D=j.get(c),D||j.set(c,D=f)):(D=j[c],D||(D=j[c]=f)),D}function O(j){const c=j.indexOf(":");return[j.substring(1,c),j.substr(c+1)]}let S=(j,c)=>!1,N=(j,c,f)=>[];(s()||"undefined"!=typeof Element)&&(S=u()?(j,c)=>{for(;c&&c!==document.documentElement;){if(c===j)return!0;c=c.parentNode||c.host}return!1}:(j,c)=>j.contains(c),N=(j,c,f)=>{let D=[];if(f){const V=j.querySelectorAll(c);for(let ae=0;ae<V.length;ae++)D.push(V[ae])}else{const V=j.querySelector(c);V&&D.push(V)}return D});let K=null,re=!1;function Me(j){K||(K=function pe(){return"undefined"!=typeof document?document.body:null}()||{},re=!!K.style&&"WebkitAppearance"in K.style);let c=!0;return K.style&&!function ce(j){return"ebkit"==j.substring(1,6)}(j)&&(c=j in K.style,!c&&re&&(c="Webkit"+j.charAt(0).toUpperCase()+j.substr(1)in K.style)),c}const be=S,ue=N;function xe(j){const c={};return Object.keys(j).forEach(f=>{const D=f.replace(/([a-z])([A-Z])/g,"$1-$2");c[D]=j[f]}),c}let He=(()=>{class j{validateStyleProperty(f){return Me(f)}matchesElement(f,D){return!1}containsElement(f,D){return be(f,D)}query(f,D,V){return ue(f,D,V)}computeStyle(f,D,V){return V||""}animate(f,D,V,ae,Fe,je=[],st){return new _.ZN(V,ae)}}return j.\u0275fac=function(f){return new(f||j)},j.\u0275prov=i.\u0275\u0275defineInjectable({token:j,factory:j.\u0275fac}),j})(),et=(()=>{class j{}return j.NOOP=new He,j})();const z="ng-enter",oe="ng-leave",ke="ng-trigger",de=".ng-trigger",Ue="ng-animating",fe=".ng-animating";function Je(j){if("number"==typeof j)return j;const c=j.match(/^(-?[\.\d]+)(m?s)/);return!c||c.length<2?0:Te(parseFloat(c[1]),c[2])}function Te(j,c){return"s"===c?1e3*j:j}function Ge(j,c,f){return j.hasOwnProperty("duration")?j:function vt(j,c,f){let V,ae=0,Fe="";if("string"==typeof j){const je=j.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===je)return c.push(`The provided timing value "${j}" is invalid.`),{duration:0,delay:0,easing:""};V=Te(parseFloat(je[1]),je[2]);const st=je[3];null!=st&&(ae=Te(parseFloat(st),je[4]));const gt=je[5];gt&&(Fe=gt)}else V=j;if(!f){let je=!1,st=c.length;V<0&&(c.push("Duration values below 0 are not allowed for this animation step."),je=!0),ae<0&&(c.push("Delay values below 0 are not allowed for this animation step."),je=!0),je&&c.splice(st,0,`The provided timing value "${j}" is invalid.`)}return{duration:V,delay:ae,easing:Fe}}(j,c,f)}function St(j,c={}){return Object.keys(j).forEach(f=>{c[f]=j[f]}),c}function qe(j,c,f={}){if(c)for(let D in j)f[D]=j[D];else St(j,f);return f}function Y(j,c,f){return f?c+":"+f+";":""}function he(j){let c="";for(let f=0;f<j.style.length;f++){const D=j.style.item(f);c+=Y(0,D,j.style.getPropertyValue(D))}for(const f in j.style)j.style.hasOwnProperty(f)&&!f.startsWith("_")&&(c+=Y(0,ne(f),j.style[f]));j.setAttribute("style",c)}function Ee(j,c,f){j.style&&(Object.keys(c).forEach(D=>{const V=k(D);f&&!f.hasOwnProperty(D)&&(f[D]=j.style[V]),j.style[V]=c[D]}),s()&&he(j))}function Ie(j,c){j.style&&(Object.keys(c).forEach(f=>{const D=k(f);j.style[D]=""}),s()&&he(j))}function ge(j){return Array.isArray(j)?1==j.length?j[0]:(0,_.vP)(j):j}const pt=new RegExp("{{\\s*(.+?)\\s*}}","g");function Tt(j){let c=[];if("string"==typeof j){let f;for(;f=pt.exec(j);)c.push(f[1]);pt.lastIndex=0}return c}function Rt(j,c,f){const D=j.toString(),V=D.replace(pt,(ae,Fe)=>{let je=c[Fe];return c.hasOwnProperty(Fe)||(f.push(`Please provide a value for the animation param ${Fe}`),je=""),je.toString()});return V==D?j:V}function dt(j){const c=[];let f=j.next();for(;!f.done;)c.push(f.value),f=j.next();return c}const Ze=/-+([a-z0-9])/g;function k(j){return j.replace(Ze,(...c)=>c[1].toUpperCase())}function ne(j){return j.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Pe(j,c){return 0===j||0===c}function se(j,c,f){const D=Object.keys(f);if(D.length&&c.length){let ae=c[0],Fe=[];if(D.forEach(je=>{ae.hasOwnProperty(je)||Fe.push(je),ae[je]=f[je]}),Fe.length)for(var V=1;V<c.length;V++){let je=c[V];Fe.forEach(function(st){je[st]=_e(j,st)})}}return c}function Ce(j,c,f){switch(c.type){case 7:return j.visitTrigger(c,f);case 0:return j.visitState(c,f);case 1:return j.visitTransition(c,f);case 2:return j.visitSequence(c,f);case 3:return j.visitGroup(c,f);case 4:return j.visitAnimate(c,f);case 5:return j.visitKeyframes(c,f);case 6:return j.visitStyle(c,f);case 8:return j.visitReference(c,f);case 9:return j.visitAnimateChild(c,f);case 10:return j.visitAnimateRef(c,f);case 11:return j.visitQuery(c,f);case 12:return j.visitStagger(c,f);default:throw new Error(`Unable to resolve animation metadata node #${c.type}`)}}function _e(j,c){return window.getComputedStyle(j)[c]}function ve(j,c){const f=[];return"string"==typeof j?j.split(/\s*,\s*/).forEach(D=>function Ye(j,c,f){if(":"==j[0]){const st=function it(j,c){switch(j){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(f,D)=>parseFloat(D)>parseFloat(f);case":decrement":return(f,D)=>parseFloat(D)<parseFloat(f);default:return c.push(`The transition alias value "${j}" is not supported`),"* => *"}}(j,f);if("function"==typeof st)return void c.push(st);j=st}const D=j.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==D||D.length<4)return f.push(`The provided transition expression "${j}" is not supported`),c;const V=D[1],ae=D[2],Fe=D[3];c.push(It(V,Fe));"<"==ae[0]&&!("*"==V&&"*"==Fe)&&c.push(It(Fe,V))}(D,f,c)):f.push(j),f}const mt=new Set(["true","1"]),_t=new Set(["false","0"]);function It(j,c){const f=mt.has(j)||_t.has(j),D=mt.has(c)||_t.has(c);return(V,ae)=>{let Fe="*"==j||j==V,je="*"==c||c==ae;return!Fe&&f&&"boolean"==typeof V&&(Fe=V?mt.has(j):_t.has(j)),!je&&D&&"boolean"==typeof ae&&(je=ae?mt.has(c):_t.has(c)),Fe&&je}}const on=new RegExp("s*:selfs*,?","g");function Kt(j,c,f){return new an(j).build(c,f)}class an{constructor(c){this._driver=c}build(c,f){const D=new bn(f);return this._resetContextStyleTimingState(D),Ce(this,ge(c),D)}_resetContextStyleTimingState(c){c.currentQuerySelector="",c.collectedStyles={},c.collectedStyles[""]={},c.currentTime=0}visitTrigger(c,f){let D=f.queryCount=0,V=f.depCount=0;const ae=[],Fe=[];return"@"==c.name.charAt(0)&&f.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),c.definitions.forEach(je=>{if(this._resetContextStyleTimingState(f),0==je.type){const st=je,gt=st.name;gt.toString().split(/\s*,\s*/).forEach(Ft=>{st.name=Ft,ae.push(this.visitState(st,f))}),st.name=gt}else if(1==je.type){const st=this.visitTransition(je,f);D+=st.queryCount,V+=st.depCount,Fe.push(st)}else f.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:c.name,states:ae,transitions:Fe,queryCount:D,depCount:V,options:null}}visitState(c,f){const D=this.visitStyle(c.styles,f),V=c.options&&c.options.params||null;if(D.containsDynamicStyles){const ae=new Set,Fe=V||{};if(D.styles.forEach(je=>{if(Ke(je)){const st=je;Object.keys(st).forEach(gt=>{Tt(st[gt]).forEach(Ft=>{Fe.hasOwnProperty(Ft)||ae.add(Ft)})})}}),ae.size){const je=dt(ae.values());f.errors.push(`state("${c.name}", ...) must define default values for all the following style substitutions: ${je.join(", ")}`)}}return{type:0,name:c.name,style:D,options:V?{params:V}:null}}visitTransition(c,f){f.queryCount=0,f.depCount=0;const D=Ce(this,ge(c.animation),f);return{type:1,matchers:ve(c.expr,f.errors),animation:D,queryCount:f.queryCount,depCount:f.depCount,options:Se(c.options)}}visitSequence(c,f){return{type:2,steps:c.steps.map(D=>Ce(this,D,f)),options:Se(c.options)}}visitGroup(c,f){const D=f.currentTime;let V=0;const ae=c.steps.map(Fe=>{f.currentTime=D;const je=Ce(this,Fe,f);return V=Math.max(V,f.currentTime),je});return f.currentTime=V,{type:3,steps:ae,options:Se(c.options)}}visitAnimate(c,f){const D=function Qe(j,c){let f=null;if(j.hasOwnProperty("duration"))f=j;else if("number"==typeof j)return De(Ge(j,c).duration,0,"");const D=j;if(D.split(/\s+/).some(ae=>"{"==ae.charAt(0)&&"{"==ae.charAt(1))){const ae=De(0,0,"");return ae.dynamic=!0,ae.strValue=D,ae}return f=f||Ge(D,c),De(f.duration,f.delay,f.easing)}(c.timings,f.errors);f.currentAnimateTimings=D;let V,ae=c.styles?c.styles:(0,_.oB)({});if(5==ae.type)V=this.visitKeyframes(ae,f);else{let Fe=c.styles,je=!1;if(!Fe){je=!0;const gt={};D.easing&&(gt.easing=D.easing),Fe=(0,_.oB)(gt)}f.currentTime+=D.duration+D.delay;const st=this.visitStyle(Fe,f);st.isEmptyStep=je,V=st}return f.currentAnimateTimings=null,{type:4,timings:D,style:V,options:null}}visitStyle(c,f){const D=this._makeStyleAst(c,f);return this._validateStyleAst(D,f),D}_makeStyleAst(c,f){const D=[];Array.isArray(c.styles)?c.styles.forEach(Fe=>{"string"==typeof Fe?Fe==_.l3?D.push(Fe):f.errors.push(`The provided style string value ${Fe} is not allowed.`):D.push(Fe)}):D.push(c.styles);let V=!1,ae=null;return D.forEach(Fe=>{if(Ke(Fe)){const je=Fe,st=je.easing;if(st&&(ae=st,delete je.easing),!V)for(let gt in je)if(je[gt].toString().indexOf("{{")>=0){V=!0;break}}}),{type:6,styles:D,easing:ae,offset:c.offset,containsDynamicStyles:V,options:null}}_validateStyleAst(c,f){const D=f.currentAnimateTimings;let V=f.currentTime,ae=f.currentTime;D&&ae>0&&(ae-=D.duration+D.delay),c.styles.forEach(Fe=>{"string"!=typeof Fe&&Object.keys(Fe).forEach(je=>{if(!this._driver.validateStyleProperty(je))return void f.errors.push(`The provided animation property "${je}" is not a supported CSS property for animations`);const st=f.collectedStyles[f.currentQuerySelector],gt=st[je];let Ft=!0;gt&&(ae!=V&&ae>=gt.startTime&&V<=gt.endTime&&(f.errors.push(`The CSS property "${je}" that exists between the times of "${gt.startTime}ms" and "${gt.endTime}ms" is also being animated in a parallel animation between the times of "${ae}ms" and "${V}ms"`),Ft=!1),ae=gt.startTime),Ft&&(st[je]={startTime:ae,endTime:V}),f.options&&function Xe(j,c,f){const D=c.params||{},V=Tt(j);V.length&&V.forEach(ae=>{D.hasOwnProperty(ae)||f.push(`Unable to resolve the local animation param ${ae} in the given list of values`)})}(Fe[je],f.options,f.errors)})})}visitKeyframes(c,f){const D={type:5,styles:[],options:null};if(!f.currentAnimateTimings)return f.errors.push("keyframes() must be placed inside of a call to animate()"),D;let ae=0;const Fe=[];let je=!1,st=!1,gt=0;const Ft=c.steps.map(q=>{const $=this._makeStyleAst(q,f);let Z=null!=$.offset?$.offset:function at(j){if("string"==typeof j)return null;let c=null;if(Array.isArray(j))j.forEach(f=>{if(Ke(f)&&f.hasOwnProperty("offset")){const D=f;c=parseFloat(D.offset),delete D.offset}});else if(Ke(j)&&j.hasOwnProperty("offset")){const f=j;c=parseFloat(f.offset),delete f.offset}return c}($.styles),ee=0;return null!=Z&&(ae++,ee=$.offset=Z),st=st||ee<0||ee>1,je=je||ee<gt,gt=ee,Fe.push(ee),$});st&&f.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),je&&f.errors.push("Please ensure that all keyframe offsets are in order");const Gt=c.steps.length;let Xt=0;ae>0&&ae<Gt?f.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==ae&&(Xt=1/(Gt-1));const dn=Gt-1,en=f.currentTime,nn=f.currentAnimateTimings,hn=nn.duration;return Ft.forEach((q,$)=>{const Z=Xt>0?$==dn?1:Xt*$:Fe[$],ee=Z*hn;f.currentTime=en+nn.delay+ee,nn.duration=ee,this._validateStyleAst(q,f),q.offset=Z,D.styles.push(q)}),D}visitReference(c,f){return{type:8,animation:Ce(this,ge(c.animation),f),options:Se(c.options)}}visitAnimateChild(c,f){return f.depCount++,{type:9,options:Se(c.options)}}visitAnimateRef(c,f){return{type:10,animation:this.visitReference(c.animation,f),options:Se(c.options)}}visitQuery(c,f){const D=f.currentQuerySelector,V=c.options||{};f.queryCount++,f.currentQuery=c;const[ae,Fe]=function Qt(j){const c=!!j.split(/\s*,\s*/).find(f=>":self"==f);return c&&(j=j.replace(on,"")),j=j.replace(/@\*/g,de).replace(/@\w+/g,f=>de+"-"+f.substr(1)).replace(/:animating/g,fe),[j,c]}(c.selector);f.currentQuerySelector=D.length?D+" "+ae:ae,P(f.collectedStyles,f.currentQuerySelector,{});const je=Ce(this,ge(c.animation),f);return f.currentQuery=null,f.currentQuerySelector=D,{type:11,selector:ae,limit:V.limit||0,optional:!!V.optional,includeSelf:Fe,animation:je,originalSelector:c.selector,options:Se(c.options)}}visitStagger(c,f){f.currentQuery||f.errors.push("stagger() can only be used inside of query()");const D="full"===c.timings?{duration:0,delay:0,easing:"full"}:Ge(c.timings,f.errors,!0);return{type:12,animation:Ce(this,ge(c.animation),f),timings:D,options:null}}}class bn{constructor(c){this.errors=c,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function Ke(j){return!Array.isArray(j)&&"object"==typeof j}function Se(j){return j?(j=St(j)).params&&(j.params=function Ot(j){return j?St(j):null}(j.params)):j={},j}function De(j,c,f){return{duration:j,delay:c,easing:f}}function w(j,c,f,D,V,ae,Fe=null,je=!1){return{type:1,element:j,keyframes:c,preStyleProps:f,postStyleProps:D,duration:V,delay:ae,totalTime:V+ae,easing:Fe,subTimeline:je}}class I{constructor(){this._map=new Map}get(c){return this._map.get(c)||[]}append(c,f){let D=this._map.get(c);D||this._map.set(c,D=[]),D.push(...f)}has(c){return this._map.has(c)}clear(){this._map.clear()}}const ot=new RegExp(":enter","g"),Ut=new RegExp(":leave","g");function gn(j,c,f,D,V,ae={},Fe={},je,st,gt=[]){return(new Ve).buildKeyframes(j,c,f,D,V,ae,Fe,je,st,gt)}class Ve{buildKeyframes(c,f,D,V,ae,Fe,je,st,gt,Ft=[]){gt=gt||new I;const Gt=new le(c,f,gt,V,ae,Ft,[]);Gt.options=st,Gt.currentTimeline.setStyles([Fe],null,Gt.errors,st),Ce(this,D,Gt);const Xt=Gt.timelines.filter(dn=>dn.containsAnimation());if(Xt.length&&Object.keys(je).length){const dn=Xt[Xt.length-1];dn.allowOnlyTimelineStyles()||dn.setStyles([je],null,Gt.errors,st)}return Xt.length?Xt.map(dn=>dn.buildKeyframes()):[w(f,[],[],[],0,0,"",!1)]}visitTrigger(c,f){}visitState(c,f){}visitTransition(c,f){}visitAnimateChild(c,f){const D=f.subInstructions.get(f.element);if(D){const V=f.createSubContext(c.options),ae=f.currentTimeline.currentTime,Fe=this._visitSubInstructions(D,V,V.options);ae!=Fe&&f.transformIntoNewTimeline(Fe)}f.previousNode=c}visitAnimateRef(c,f){const D=f.createSubContext(c.options);D.transformIntoNewTimeline(),this.visitReference(c.animation,D),f.transformIntoNewTimeline(D.currentTimeline.currentTime),f.previousNode=c}_visitSubInstructions(c,f,D){let ae=f.currentTimeline.currentTime;const Fe=null!=D.duration?Je(D.duration):null,je=null!=D.delay?Je(D.delay):null;return 0!==Fe&&c.forEach(st=>{const gt=f.appendInstructionToTimeline(st,Fe,je);ae=Math.max(ae,gt.duration+gt.delay)}),ae}visitReference(c,f){f.updateOptions(c.options,!0),Ce(this,c.animation,f),f.previousNode=c}visitSequence(c,f){const D=f.subContextCount;let V=f;const ae=c.options;if(ae&&(ae.params||ae.delay)&&(V=f.createSubContext(ae),V.transformIntoNewTimeline(),null!=ae.delay)){6==V.previousNode.type&&(V.currentTimeline.snapshotCurrentStyles(),V.previousNode=$e);const Fe=Je(ae.delay);V.delayNextStep(Fe)}c.steps.length&&(c.steps.forEach(Fe=>Ce(this,Fe,V)),V.currentTimeline.applyStylesToKeyframe(),V.subContextCount>D&&V.transformIntoNewTimeline()),f.previousNode=c}visitGroup(c,f){const D=[];let V=f.currentTimeline.currentTime;const ae=c.options&&c.options.delay?Je(c.options.delay):0;c.steps.forEach(Fe=>{const je=f.createSubContext(c.options);ae&&je.delayNextStep(ae),Ce(this,Fe,je),V=Math.max(V,je.currentTimeline.currentTime),D.push(je.currentTimeline)}),D.forEach(Fe=>f.currentTimeline.mergeTimelineCollectedStyles(Fe)),f.transformIntoNewTimeline(V),f.previousNode=c}_visitTiming(c,f){if(c.dynamic){const D=c.strValue;return Ge(f.params?Rt(D,f.params,f.errors):D,f.errors)}return{duration:c.duration,delay:c.delay,easing:c.easing}}visitAnimate(c,f){const D=f.currentAnimateTimings=this._visitTiming(c.timings,f),V=f.currentTimeline;D.delay&&(f.incrementTime(D.delay),V.snapshotCurrentStyles());const ae=c.style;5==ae.type?this.visitKeyframes(ae,f):(f.incrementTime(D.duration),this.visitStyle(ae,f),V.applyStylesToKeyframe()),f.currentAnimateTimings=null,f.previousNode=c}visitStyle(c,f){const D=f.currentTimeline,V=f.currentAnimateTimings;!V&&D.getCurrentStyleProperties().length&&D.forwardFrame();const ae=V&&V.easing||c.easing;c.isEmptyStep?D.applyEmptyStep(ae):D.setStyles(c.styles,ae,f.errors,f.options),f.previousNode=c}visitKeyframes(c,f){const D=f.currentAnimateTimings,V=f.currentTimeline.duration,ae=D.duration,je=f.createSubContext().currentTimeline;je.easing=D.easing,c.styles.forEach(st=>{je.forwardTime((st.offset||0)*ae),je.setStyles(st.styles,st.easing,f.errors,f.options),je.applyStylesToKeyframe()}),f.currentTimeline.mergeTimelineCollectedStyles(je),f.transformIntoNewTimeline(V+ae),f.previousNode=c}visitQuery(c,f){const D=f.currentTimeline.currentTime,V=c.options||{},ae=V.delay?Je(V.delay):0;ae&&(6===f.previousNode.type||0==D&&f.currentTimeline.getCurrentStyleProperties().length)&&(f.currentTimeline.snapshotCurrentStyles(),f.previousNode=$e);let Fe=D;const je=f.invokeQuery(c.selector,c.originalSelector,c.limit,c.includeSelf,!!V.optional,f.errors);f.currentQueryTotal=je.length;let st=null;je.forEach((gt,Ft)=>{f.currentQueryIndex=Ft;const Gt=f.createSubContext(c.options,gt);ae&&Gt.delayNextStep(ae),gt===f.element&&(st=Gt.currentTimeline),Ce(this,c.animation,Gt),Gt.currentTimeline.applyStylesToKeyframe(),Fe=Math.max(Fe,Gt.currentTimeline.currentTime)}),f.currentQueryIndex=0,f.currentQueryTotal=0,f.transformIntoNewTimeline(Fe),st&&(f.currentTimeline.mergeTimelineCollectedStyles(st),f.currentTimeline.snapshotCurrentStyles()),f.previousNode=c}visitStagger(c,f){const D=f.parentContext,V=f.currentTimeline,ae=c.timings,Fe=Math.abs(ae.duration),je=Fe*(f.currentQueryTotal-1);let st=Fe*f.currentQueryIndex;switch(ae.duration<0?"reverse":ae.easing){case"reverse":st=je-st;break;case"full":st=D.currentStaggerTime}const Ft=f.currentTimeline;st&&Ft.delayNextStep(st);const Gt=Ft.currentTime;Ce(this,c.animation,f),f.previousNode=c,D.currentStaggerTime=V.currentTime-Gt+(V.startTime-D.currentTimeline.startTime)}}const $e={};class le{constructor(c,f,D,V,ae,Fe,je,st){this._driver=c,this.element=f,this.subInstructions=D,this._enterClassName=V,this._leaveClassName=ae,this.errors=Fe,this.timelines=je,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=$e,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=st||new Be(this._driver,f,0),je.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(c,f){if(!c)return;const D=c;let V=this.options;null!=D.duration&&(V.duration=Je(D.duration)),null!=D.delay&&(V.delay=Je(D.delay));const ae=D.params;if(ae){let Fe=V.params;Fe||(Fe=this.options.params={}),Object.keys(ae).forEach(je=>{(!f||!Fe.hasOwnProperty(je))&&(Fe[je]=Rt(ae[je],Fe,this.errors))})}}_copyOptions(){const c={};if(this.options){const f=this.options.params;if(f){const D=c.params={};Object.keys(f).forEach(V=>{D[V]=f[V]})}}return c}createSubContext(c=null,f,D){const V=f||this.element,ae=new le(this._driver,V,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(V,D||0));return ae.previousNode=this.previousNode,ae.currentAnimateTimings=this.currentAnimateTimings,ae.options=this._copyOptions(),ae.updateOptions(c),ae.currentQueryIndex=this.currentQueryIndex,ae.currentQueryTotal=this.currentQueryTotal,ae.parentContext=this,this.subContextCount++,ae}transformIntoNewTimeline(c){return this.previousNode=$e,this.currentTimeline=this.currentTimeline.fork(this.element,c),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(c,f,D){const V={duration:null!=f?f:c.duration,delay:this.currentTimeline.currentTime+(null!=D?D:0)+c.delay,easing:""},ae=new ft(this._driver,c.element,c.keyframes,c.preStyleProps,c.postStyleProps,V,c.stretchStartingKeyframe);return this.timelines.push(ae),V}incrementTime(c){this.currentTimeline.forwardTime(this.currentTimeline.duration+c)}delayNextStep(c){c>0&&this.currentTimeline.delayNextStep(c)}invokeQuery(c,f,D,V,ae,Fe){let je=[];if(V&&je.push(this.element),c.length>0){c=(c=c.replace(ot,"."+this._enterClassName)).replace(Ut,"."+this._leaveClassName);let gt=this._driver.query(this.element,c,1!=D);0!==D&&(gt=D<0?gt.slice(gt.length+D,gt.length):gt.slice(0,D)),je.push(...gt)}return!ae&&0==je.length&&Fe.push(`\`query("${f}")\` returned zero elements. (Use \`query("${f}", { optional: true })\` if you wish to allow this.)`),je}}class Be{constructor(c,f,D,V){this._driver=c,this.element=f,this.startTime=D,this._elementTimelineStylesLookup=V,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(f),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(f,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(c){const f=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||f?(this.forwardTime(this.currentTime+c),f&&this.snapshotCurrentStyles()):this.startTime+=c}fork(c,f){return this.applyStylesToKeyframe(),new Be(this._driver,c,f||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(c){this.applyStylesToKeyframe(),this.duration=c,this._loadKeyframe()}_updateStyle(c,f){this._localTimelineStyles[c]=f,this._globalTimelineStyles[c]=f,this._styleSummary[c]={time:this.currentTime,value:f}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(c){c&&(this._previousKeyframe.easing=c),Object.keys(this._globalTimelineStyles).forEach(f=>{this._backFill[f]=this._globalTimelineStyles[f]||_.l3,this._currentKeyframe[f]=_.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(c,f,D,V){f&&(this._previousKeyframe.easing=f);const ae=V&&V.params||{},Fe=function Bt(j,c){const f={};let D;return j.forEach(V=>{"*"===V?(D=D||Object.keys(c),D.forEach(ae=>{f[ae]=_.l3})):qe(V,!1,f)}),f}(c,this._globalTimelineStyles);Object.keys(Fe).forEach(je=>{const st=Rt(Fe[je],ae,D);this._pendingStyles[je]=st,this._localTimelineStyles.hasOwnProperty(je)||(this._backFill[je]=this._globalTimelineStyles.hasOwnProperty(je)?this._globalTimelineStyles[je]:_.l3),this._updateStyle(je,st)})}applyStylesToKeyframe(){const c=this._pendingStyles,f=Object.keys(c);0!=f.length&&(this._pendingStyles={},f.forEach(D=>{this._currentKeyframe[D]=c[D]}),Object.keys(this._localTimelineStyles).forEach(D=>{this._currentKeyframe.hasOwnProperty(D)||(this._currentKeyframe[D]=this._localTimelineStyles[D])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(c=>{const f=this._localTimelineStyles[c];this._pendingStyles[c]=f,this._updateStyle(c,f)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const c=[];for(let f in this._currentKeyframe)c.push(f);return c}mergeTimelineCollectedStyles(c){Object.keys(c._styleSummary).forEach(f=>{const D=this._styleSummary[f],V=c._styleSummary[f];(!D||V.time>D.time)&&this._updateStyle(f,V.value)})}buildKeyframes(){this.applyStylesToKeyframe();const c=new Set,f=new Set,D=1===this._keyframes.size&&0===this.duration;let V=[];this._keyframes.forEach((je,st)=>{const gt=qe(je,!0);Object.keys(gt).forEach(Ft=>{const Gt=gt[Ft];Gt==_.k1?c.add(Ft):Gt==_.l3&&f.add(Ft)}),D||(gt.offset=st/this.duration),V.push(gt)});const ae=c.size?dt(c.values()):[],Fe=f.size?dt(f.values()):[];if(D){const je=V[0],st=St(je);je.offset=0,st.offset=1,V=[je,st]}return w(this.element,V,ae,Fe,this.duration,this.startTime,this.easing,!1)}}class ft extends Be{constructor(c,f,D,V,ae,Fe,je=!1){super(c,f,Fe.delay),this.keyframes=D,this.preStyleProps=V,this.postStyleProps=ae,this._stretchStartingKeyframe=je,this.timings={duration:Fe.duration,delay:Fe.delay,easing:Fe.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let c=this.keyframes,{delay:f,duration:D,easing:V}=this.timings;if(this._stretchStartingKeyframe&&f){const ae=[],Fe=D+f,je=f/Fe,st=qe(c[0],!1);st.offset=0,ae.push(st);const gt=qe(c[0],!1);gt.offset=Vt(je),ae.push(gt);const Ft=c.length-1;for(let Gt=1;Gt<=Ft;Gt++){let Xt=qe(c[Gt],!1);Xt.offset=Vt((f+Xt.offset*D)/Fe),ae.push(Xt)}D=Fe,f=0,V="",c=ae}return w(this.element,c,this.preStyleProps,this.postStyleProps,D,f,V,!0)}}function Vt(j,c=3){const f=Math.pow(10,c-1);return Math.round(j*f)/f}class En{}class di extends En{normalizePropertyName(c,f){return k(c)}normalizeStyleValue(c,f,D,V){let ae="";const Fe=D.toString().trim();if(Jn[f]&&0!==D&&"0"!==D)if("number"==typeof D)ae="px";else{const je=D.match(/^[+-]?[\d\.]+([a-z]*)$/);je&&0==je[1].length&&V.push(`Please provide a CSS unit value for ${c}:${D}`)}return Fe+ae}}const Jn=(()=>function Nn(j){const c={};return j.forEach(f=>c[f]=!0),c}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function zn(j,c,f,D,V,ae,Fe,je,st,gt,Ft,Gt,Xt){return{type:0,element:j,triggerName:c,isRemovalTransition:V,fromState:f,fromStyles:ae,toState:D,toStyles:Fe,timelines:je,queriedElements:st,preStyleProps:gt,postStyleProps:Ft,totalTime:Gt,errors:Xt}}const Bn={};class H{constructor(c,f,D){this._triggerName=c,this.ast=f,this._stateStyles=D}match(c,f,D,V){return function we(j,c,f,D,V){return j.some(ae=>ae(c,f,D,V))}(this.ast.matchers,c,f,D,V)}buildStyles(c,f,D){const V=this._stateStyles["*"],ae=this._stateStyles[c],Fe=V?V.buildStyles(f,D):{};return ae?ae.buildStyles(f,D):Fe}build(c,f,D,V,ae,Fe,je,st,gt,Ft){const Gt=[],Xt=this.ast.options&&this.ast.options.params||Bn,en=this.buildStyles(D,je&&je.params||Bn,Gt),nn=st&&st.params||Bn,hn=this.buildStyles(V,nn,Gt),q=new Set,$=new Map,Z=new Map,ee="void"===V,Oe={params:Object.assign(Object.assign({},Xt),nn)},Ne=Ft?[]:gn(c,f,this.ast.animation,ae,Fe,en,hn,Oe,gt,Gt);let nt=0;if(Ne.forEach(bt=>{nt=Math.max(bt.duration+bt.delay,nt)}),Gt.length)return zn(f,this._triggerName,D,V,ee,en,hn,[],[],$,Z,nt,Gt);Ne.forEach(bt=>{const Wt=bt.element,Yt=P($,Wt,{});bt.preStyleProps.forEach(ln=>Yt[ln]=!0);const yn=P(Z,Wt,{});bt.postStyleProps.forEach(ln=>yn[ln]=!0),Wt!==f&&q.add(Wt)});const Ct=dt(q.values());return zn(f,this._triggerName,D,V,ee,en,hn,Ne,Ct,$,Z,nt)}}class U{constructor(c,f,D){this.styles=c,this.defaultParams=f,this.normalizer=D}buildStyles(c,f){const D={},V=St(this.defaultParams);return Object.keys(c).forEach(ae=>{const Fe=c[ae];null!=Fe&&(V[ae]=Fe)}),this.styles.styles.forEach(ae=>{if("string"!=typeof ae){const Fe=ae;Object.keys(Fe).forEach(je=>{let st=Fe[je];st.length>1&&(st=Rt(st,V,f));const gt=this.normalizer.normalizePropertyName(je,f);st=this.normalizer.normalizeStyleValue(je,gt,st,f),D[gt]=st})}}),D}}class tt{constructor(c,f,D){this.name=c,this.ast=f,this._normalizer=D,this.transitionFactories=[],this.states={},f.states.forEach(V=>{this.states[V.name]=new U(V.style,V.options&&V.options.params||{},D)}),At(this.states,"true","1"),At(this.states,"false","0"),f.transitions.forEach(V=>{this.transitionFactories.push(new H(c,V,this.states))}),this.fallbackTransition=function lt(j,c,f){return new H(j,{type:1,animation:{type:2,steps:[],options:null},matchers:[(Fe,je)=>!0],options:null,queryCount:0,depCount:0},c)}(c,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(c,f,D,V){return this.transitionFactories.find(Fe=>Fe.match(c,f,D,V))||null}matchStyles(c,f,D){return this.fallbackTransition.buildStyles(c,f,D)}}function At(j,c,f){j.hasOwnProperty(c)?j.hasOwnProperty(f)||(j[f]=j[c]):j.hasOwnProperty(f)&&(j[c]=j[f])}const jt=new I;class qt{constructor(c,f,D){this.bodyNode=c,this._driver=f,this._normalizer=D,this._animations={},this._playersById={},this.players=[]}register(c,f){const D=[],V=Kt(this._driver,f,D);if(D.length)throw new Error(`Unable to build the animation due to the following errors: ${D.join("\n")}`);this._animations[c]=V}_buildPlayer(c,f,D){const V=c.element,ae=C(0,this._normalizer,0,c.keyframes,f,D);return this._driver.animate(V,ae,c.duration,c.delay,c.easing,[],!0)}create(c,f,D={}){const V=[],ae=this._animations[c];let Fe;const je=new Map;if(ae?(Fe=gn(this._driver,f,ae,z,oe,{},{},D,jt,V),Fe.forEach(Ft=>{const Gt=P(je,Ft.element,{});Ft.postStyleProps.forEach(Xt=>Gt[Xt]=null)})):(V.push("The requested animation doesn't exist or has already been destroyed"),Fe=[]),V.length)throw new Error(`Unable to create the animation due to the following errors: ${V.join("\n")}`);je.forEach((Ft,Gt)=>{Object.keys(Ft).forEach(Xt=>{Ft[Xt]=this._driver.computeStyle(Gt,Xt,_.l3)})});const gt=b(Fe.map(Ft=>{const Gt=je.get(Ft.element);return this._buildPlayer(Ft,{},Gt)}));return this._playersById[c]=gt,gt.onDestroy(()=>this.destroy(c)),this.players.push(gt),gt}destroy(c){const f=this._getPlayer(c);f.destroy(),delete this._playersById[c];const D=this.players.indexOf(f);D>=0&&this.players.splice(D,1)}_getPlayer(c){const f=this._playersById[c];if(!f)throw new Error(`Unable to find the timeline player referenced by ${c}`);return f}listen(c,f,D,V){const ae=y(f,"","","");return T(this._getPlayer(c),D,ae,V),()=>{}}command(c,f,D,V){if("register"==D)return void this.register(c,V[0]);if("create"==D)return void this.create(c,f,V[0]||{});const ae=this._getPlayer(c);switch(D){case"play":ae.play();break;case"pause":ae.pause();break;case"reset":ae.reset();break;case"restart":ae.restart();break;case"finish":ae.finish();break;case"init":ae.init();break;case"setPosition":ae.setPosition(parseFloat(V[0]));break;case"destroy":this.destroy(c)}}}const vn="ng-animate-queued",On="ng-animate-disabled",Sn=[],kn={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ai={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},xn="__ng_removed";class mn{constructor(c,f=""){this.namespaceId=f;const D=c&&c.hasOwnProperty("value");if(this.value=function hi(j){return null!=j?j:null}(D?c.value:c),D){const ae=St(c);delete ae.value,this.options=ae}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(c){const f=c.params;if(f){const D=this.options.params;Object.keys(f).forEach(V=>{null==D[V]&&(D[V]=f[V])})}}}const ni="void",li=new mn(ni);class Kn{constructor(c,f,D){this.id=c,this.hostElement=f,this._engine=D,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+c,Zn(f,this._hostClassName)}listen(c,f,D,V){if(!this._triggers.hasOwnProperty(f))throw new Error(`Unable to listen on the animation trigger event "${D}" because the animation trigger "${f}" doesn't exist!`);if(null==D||0==D.length)throw new Error(`Unable to listen on the animation trigger "${f}" because the provided event is undefined!`);if(!function Sr(j){return"start"==j||"done"==j}(D))throw new Error(`The provided animation trigger event "${D}" for the animation trigger "${f}" is not supported!`);const ae=P(this._elementListeners,c,[]),Fe={name:f,phase:D,callback:V};ae.push(Fe);const je=P(this._engine.statesByElement,c,{});return je.hasOwnProperty(f)||(Zn(c,ke),Zn(c,ke+"-"+f),je[f]=li),()=>{this._engine.afterFlush(()=>{const st=ae.indexOf(Fe);st>=0&&ae.splice(st,1),this._triggers[f]||delete je[f]})}}register(c,f){return!this._triggers[c]&&(this._triggers[c]=f,!0)}_getTrigger(c){const f=this._triggers[c];if(!f)throw new Error(`The provided animation trigger "${c}" has not been registered!`);return f}trigger(c,f,D,V=!0){const ae=this._getTrigger(f),Fe=new Ci(this.id,f,c);let je=this._engine.statesByElement.get(c);je||(Zn(c,ke),Zn(c,ke+"-"+f),this._engine.statesByElement.set(c,je={}));let st=je[f];const gt=new mn(D,this.id);if(!(D&&D.hasOwnProperty("value"))&&st&&gt.absorbOptions(st.options),je[f]=gt,st||(st=li),gt.value!==ni&&st.value===gt.value){if(!function Ir(j,c){const f=Object.keys(j),D=Object.keys(c);if(f.length!=D.length)return!1;for(let V=0;V<f.length;V++){const ae=f[V];if(!c.hasOwnProperty(ae)||j[ae]!==c[ae])return!1}return!0}(st.params,gt.params)){const nn=[],hn=ae.matchStyles(st.value,st.params,nn),q=ae.matchStyles(gt.value,gt.params,nn);nn.length?this._engine.reportError(nn):this._engine.afterFlush(()=>{Ie(c,hn),Ee(c,q)})}return}const Xt=P(this._engine.playersByElement,c,[]);Xt.forEach(nn=>{nn.namespaceId==this.id&&nn.triggerName==f&&nn.queued&&nn.destroy()});let dn=ae.matchTransition(st.value,gt.value,c,gt.params),en=!1;if(!dn){if(!V)return;dn=ae.fallbackTransition,en=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:c,triggerName:f,transition:dn,fromState:st,toState:gt,player:Fe,isFallbackTransition:en}),en||(Zn(c,vn),Fe.onStart(()=>{Ei(c,vn)})),Fe.onDone(()=>{let nn=this.players.indexOf(Fe);nn>=0&&this.players.splice(nn,1);const hn=this._engine.playersByElement.get(c);if(hn){let q=hn.indexOf(Fe);q>=0&&hn.splice(q,1)}}),this.players.push(Fe),Xt.push(Fe),Fe}deregister(c){delete this._triggers[c],this._engine.statesByElement.forEach((f,D)=>{delete f[c]}),this._elementListeners.forEach((f,D)=>{this._elementListeners.set(D,f.filter(V=>V.name!=c))})}clearElementCache(c){this._engine.statesByElement.delete(c),this._elementListeners.delete(c);const f=this._engine.playersByElement.get(c);f&&(f.forEach(D=>D.destroy()),this._engine.playersByElement.delete(c))}_signalRemovalForInnerTriggers(c,f){const D=this._engine.driver.query(c,de,!0);D.forEach(V=>{if(V[xn])return;const ae=this._engine.fetchNamespacesByElement(V);ae.size?ae.forEach(Fe=>Fe.triggerLeaveAnimation(V,f,!1,!0)):this.clearElementCache(V)}),this._engine.afterFlushAnimationsDone(()=>D.forEach(V=>this.clearElementCache(V)))}triggerLeaveAnimation(c,f,D,V){const ae=this._engine.statesByElement.get(c),Fe=new Map;if(ae){const je=[];if(Object.keys(ae).forEach(st=>{if(Fe.set(st,ae[st].value),this._triggers[st]){const gt=this.trigger(c,st,ni,V);gt&&je.push(gt)}}),je.length)return this._engine.markElementAsRemoved(this.id,c,!0,f,Fe),D&&b(je).onDone(()=>this._engine.processLeaveNode(c)),!0}return!1}prepareLeaveAnimationListeners(c){const f=this._elementListeners.get(c),D=this._engine.statesByElement.get(c);if(f&&D){const V=new Set;f.forEach(ae=>{const Fe=ae.name;if(V.has(Fe))return;V.add(Fe);const st=this._triggers[Fe].fallbackTransition,gt=D[Fe]||li,Ft=new mn(ni),Gt=new Ci(this.id,Fe,c);this._engine.totalQueuedPlayers++,this._queue.push({element:c,triggerName:Fe,transition:st,fromState:gt,toState:Ft,player:Gt,isFallbackTransition:!0})})}}removeNode(c,f){const D=this._engine;if(c.childElementCount&&this._signalRemovalForInnerTriggers(c,f),this.triggerLeaveAnimation(c,f,!0))return;let V=!1;if(D.totalAnimations){const ae=D.players.length?D.playersByQueriedElement.get(c):[];if(ae&&ae.length)V=!0;else{let Fe=c;for(;Fe=Fe.parentNode;)if(D.statesByElement.get(Fe)){V=!0;break}}}if(this.prepareLeaveAnimationListeners(c),V)D.markElementAsRemoved(this.id,c,!1,f);else{const ae=c[xn];(!ae||ae===kn)&&(D.afterFlush(()=>this.clearElementCache(c)),D.destroyInnerAnimations(c),D._onRemovalComplete(c,f))}}insertNode(c,f){Zn(c,this._hostClassName)}drainQueuedTransitions(c){const f=[];return this._queue.forEach(D=>{const V=D.player;if(V.destroyed)return;const ae=D.element,Fe=this._elementListeners.get(ae);Fe&&Fe.forEach(je=>{if(je.name==D.triggerName){const st=y(ae,D.triggerName,D.fromState.value,D.toState.value);st._data=c,T(D.player,je.phase,st,je.callback)}}),V.markedForDestroy?this._engine.afterFlush(()=>{V.destroy()}):f.push(D)}),this._queue=[],f.sort((D,V)=>{const ae=D.transition.ast.depCount,Fe=V.transition.ast.depCount;return 0==ae||0==Fe?ae-Fe:this._engine.driver.containsElement(D.element,V.element)?1:-1})}destroy(c){this.players.forEach(f=>f.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,c)}elementContainsData(c){let f=!1;return this._elementListeners.has(c)&&(f=!0),f=!!this._queue.find(D=>D.element===c)||f,f}}class Gn{constructor(c,f,D){this.bodyNode=c,this.driver=f,this._normalizer=D,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(V,ae)=>{}}_onRemovalComplete(c,f){this.onRemovalComplete(c,f)}get queuedPlayers(){const c=[];return this._namespaceList.forEach(f=>{f.players.forEach(D=>{D.queued&&c.push(D)})}),c}createNamespace(c,f){const D=new Kn(c,f,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,f)?this._balanceNamespaceList(D,f):(this.newHostElements.set(f,D),this.collectEnterElement(f)),this._namespaceLookup[c]=D}_balanceNamespaceList(c,f){const D=this._namespaceList.length-1;if(D>=0){let V=!1;for(let ae=D;ae>=0;ae--)if(this.driver.containsElement(this._namespaceList[ae].hostElement,f)){this._namespaceList.splice(ae+1,0,c),V=!0;break}V||this._namespaceList.splice(0,0,c)}else this._namespaceList.push(c);return this.namespacesByHostElement.set(f,c),c}register(c,f){let D=this._namespaceLookup[c];return D||(D=this.createNamespace(c,f)),D}registerTrigger(c,f,D){let V=this._namespaceLookup[c];V&&V.register(f,D)&&this.totalAnimations++}destroy(c,f){if(!c)return;const D=this._fetchNamespace(c);this.afterFlush(()=>{this.namespacesByHostElement.delete(D.hostElement),delete this._namespaceLookup[c];const V=this._namespaceList.indexOf(D);V>=0&&this._namespaceList.splice(V,1)}),this.afterFlushAnimationsDone(()=>D.destroy(f))}_fetchNamespace(c){return this._namespaceLookup[c]}fetchNamespacesByElement(c){const f=new Set,D=this.statesByElement.get(c);if(D){const V=Object.keys(D);for(let ae=0;ae<V.length;ae++){const Fe=D[V[ae]].namespaceId;if(Fe){const je=this._fetchNamespace(Fe);je&&f.add(je)}}}return f}trigger(c,f,D,V){if(Wn(f)){const ae=this._fetchNamespace(c);if(ae)return ae.trigger(f,D,V),!0}return!1}insertNode(c,f,D,V){if(!Wn(f))return;const ae=f[xn];if(ae&&ae.setForRemoval){ae.setForRemoval=!1,ae.setForMove=!0;const Fe=this.collectedLeaveElements.indexOf(f);Fe>=0&&this.collectedLeaveElements.splice(Fe,1)}if(c){const Fe=this._fetchNamespace(c);Fe&&Fe.insertNode(f,D)}V&&this.collectEnterElement(f)}collectEnterElement(c){this.collectedEnterElements.push(c)}markElementAsDisabled(c,f){f?this.disabledNodes.has(c)||(this.disabledNodes.add(c),Zn(c,On)):this.disabledNodes.has(c)&&(this.disabledNodes.delete(c),Ei(c,On))}removeNode(c,f,D,V){if(Wn(f)){const ae=c?this._fetchNamespace(c):null;if(ae?ae.removeNode(f,V):this.markElementAsRemoved(c,f,!1,V),D){const Fe=this.namespacesByHostElement.get(f);Fe&&Fe.id!==c&&Fe.removeNode(f,V)}}else this._onRemovalComplete(f,V)}markElementAsRemoved(c,f,D,V,ae){this.collectedLeaveElements.push(f),f[xn]={namespaceId:c,setForRemoval:V,hasAnimation:D,removedBeforeQueried:!1,previousTriggersValues:ae}}listen(c,f,D,V,ae){return Wn(f)?this._fetchNamespace(c).listen(f,D,V,ae):()=>{}}_buildInstruction(c,f,D,V,ae){return c.transition.build(this.driver,c.element,c.fromState.value,c.toState.value,D,V,c.fromState.options,c.toState.options,f,ae)}destroyInnerAnimations(c){let f=this.driver.query(c,de,!0);f.forEach(D=>this.destroyActiveAnimationsForElement(D)),0!=this.playersByQueriedElement.size&&(f=this.driver.query(c,fe,!0),f.forEach(D=>this.finishActiveQueriedAnimationOnElement(D)))}destroyActiveAnimationsForElement(c){const f=this.playersByElement.get(c);f&&f.forEach(D=>{D.queued?D.markedForDestroy=!0:D.destroy()})}finishActiveQueriedAnimationOnElement(c){const f=this.playersByQueriedElement.get(c);f&&f.forEach(D=>D.finish())}whenRenderingDone(){return new Promise(c=>{if(this.players.length)return b(this.players).onDone(()=>c());c()})}processLeaveNode(c){var f;const D=c[xn];if(D&&D.setForRemoval){if(c[xn]=kn,D.namespaceId){this.destroyInnerAnimations(c);const V=this._fetchNamespace(D.namespaceId);V&&V.clearElementCache(c)}this._onRemovalComplete(c,D.setForRemoval)}(null===(f=c.classList)||void 0===f?void 0:f.contains(On))&&this.markElementAsDisabled(c,!1),this.driver.query(c,".ng-animate-disabled",!0).forEach(V=>{this.markElementAsDisabled(V,!1)})}flush(c=-1){let f=[];if(this.newHostElements.size&&(this.newHostElements.forEach((D,V)=>this._balanceNamespaceList(D,V)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let D=0;D<this.collectedEnterElements.length;D++)Zn(this.collectedEnterElements[D],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const D=[];try{f=this._flushAnimations(D,c)}finally{for(let V=0;V<D.length;V++)D[V]()}}else for(let D=0;D<this.collectedLeaveElements.length;D++)this.processLeaveNode(this.collectedLeaveElements[D]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(D=>D()),this._flushFns=[],this._whenQuietFns.length){const D=this._whenQuietFns;this._whenQuietFns=[],f.length?b(f).onDone(()=>{D.forEach(V=>V())}):D.forEach(V=>V())}}reportError(c){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${c.join("\n")}`)}_flushAnimations(c,f){const D=new I,V=[],ae=new Map,Fe=[],je=new Map,st=new Map,gt=new Map,Ft=new Set;this.disabledNodes.forEach(Pt=>{Ft.add(Pt);const kt=this.driver.query(Pt,".ng-animate-queued",!0);for(let Jt=0;Jt<kt.length;Jt++)Ft.add(kt[Jt])});const Gt=this.bodyNode,Xt=Array.from(this.statesByElement.keys()),dn=Qn(Xt,this.collectedEnterElements),en=new Map;let nn=0;dn.forEach((Pt,kt)=>{const Jt=z+nn++;en.set(kt,Jt),Pt.forEach(sn=>Zn(sn,Jt))});const hn=[],q=new Set,$=new Set;for(let Pt=0;Pt<this.collectedLeaveElements.length;Pt++){const kt=this.collectedLeaveElements[Pt],Jt=kt[xn];Jt&&Jt.setForRemoval&&(hn.push(kt),q.add(kt),Jt.hasAnimation?this.driver.query(kt,".ng-star-inserted",!0).forEach(sn=>q.add(sn)):$.add(kt))}const Z=new Map,ee=Qn(Xt,Array.from(q));ee.forEach((Pt,kt)=>{const Jt=oe+nn++;Z.set(kt,Jt),Pt.forEach(sn=>Zn(sn,Jt))}),c.push(()=>{dn.forEach((Pt,kt)=>{const Jt=en.get(kt);Pt.forEach(sn=>Ei(sn,Jt))}),ee.forEach((Pt,kt)=>{const Jt=Z.get(kt);Pt.forEach(sn=>Ei(sn,Jt))}),hn.forEach(Pt=>{this.processLeaveNode(Pt)})});const Oe=[],Ne=[];for(let Pt=this._namespaceList.length-1;Pt>=0;Pt--)this._namespaceList[Pt].drainQueuedTransitions(f).forEach(Jt=>{const sn=Jt.player,jn=Jt.element;if(Oe.push(sn),this.collectedEnterElements.length){const ui=jn[xn];if(ui&&ui.setForMove){if(ui.previousTriggersValues&&ui.previousTriggersValues.has(Jt.triggerName)){const Xi=ui.previousTriggersValues.get(Jt.triggerName),Li=this.statesByElement.get(Jt.element);Li&&Li[Jt.triggerName]&&(Li[Jt.triggerName].value=Xi)}return void sn.destroy()}}const Pn=!Gt||!this.driver.containsElement(Gt,jn),_i=Z.get(jn),lr=en.get(jn),Vn=this._buildInstruction(Jt,D,lr,_i,Pn);if(Vn.errors&&Vn.errors.length)return void Ne.push(Vn);if(Pn)return sn.onStart(()=>Ie(jn,Vn.fromStyles)),sn.onDestroy(()=>Ee(jn,Vn.toStyles)),void V.push(sn);if(Jt.isFallbackTransition)return sn.onStart(()=>Ie(jn,Vn.fromStyles)),sn.onDestroy(()=>Ee(jn,Vn.toStyles)),void V.push(sn);const Ts=[];Vn.timelines.forEach(ui=>{ui.stretchStartingKeyframe=!0,this.disabledNodes.has(ui.element)||Ts.push(ui)}),Vn.timelines=Ts,D.append(jn,Vn.timelines),Fe.push({instruction:Vn,player:sn,element:jn}),Vn.queriedElements.forEach(ui=>P(je,ui,[]).push(sn)),Vn.preStyleProps.forEach((ui,Xi)=>{const Li=Object.keys(ui);if(Li.length){let Ji=st.get(Xi);Ji||st.set(Xi,Ji=new Set),Li.forEach(Ur=>Ji.add(Ur))}}),Vn.postStyleProps.forEach((ui,Xi)=>{const Li=Object.keys(ui);let Ji=gt.get(Xi);Ji||gt.set(Xi,Ji=new Set),Li.forEach(Ur=>Ji.add(Ur))})});if(Ne.length){const Pt=[];Ne.forEach(kt=>{Pt.push(`@${kt.triggerName} has failed due to:\n`),kt.errors.forEach(Jt=>Pt.push(`- ${Jt}\n`))}),Oe.forEach(kt=>kt.destroy()),this.reportError(Pt)}const nt=new Map,Ct=new Map;Fe.forEach(Pt=>{const kt=Pt.element;D.has(kt)&&(Ct.set(kt,kt),this._beforeAnimationBuild(Pt.player.namespaceId,Pt.instruction,nt))}),V.forEach(Pt=>{const kt=Pt.element;this._getPreviousPlayers(kt,!1,Pt.namespaceId,Pt.triggerName,null).forEach(sn=>{P(nt,kt,[]).push(sn),sn.destroy()})});const bt=hn.filter(Pt=>wi(Pt,st,gt)),Wt=new Map;mr(Wt,this.driver,$,gt,_.l3).forEach(Pt=>{wi(Pt,st,gt)&&bt.push(Pt)});const yn=new Map;dn.forEach((Pt,kt)=>{mr(yn,this.driver,new Set(Pt),st,_.k1)}),bt.forEach(Pt=>{const kt=Wt.get(Pt),Jt=yn.get(Pt);Wt.set(Pt,Object.assign(Object.assign({},kt),Jt))});const ln=[],wn=[],_n={};Fe.forEach(Pt=>{const{element:kt,player:Jt,instruction:sn}=Pt;if(D.has(kt)){if(Ft.has(kt))return Jt.onDestroy(()=>Ee(kt,sn.toStyles)),Jt.disabled=!0,Jt.overrideTotalTime(sn.totalTime),void V.push(Jt);let jn=_n;if(Ct.size>1){let _i=kt;const lr=[];for(;_i=_i.parentNode;){const Vn=Ct.get(_i);if(Vn){jn=Vn;break}lr.push(_i)}lr.forEach(Vn=>Ct.set(Vn,jn))}const Pn=this._buildAnimation(Jt.namespaceId,sn,nt,ae,yn,Wt);if(Jt.setRealPlayer(Pn),jn===_n)ln.push(Jt);else{const _i=this.playersByElement.get(jn);_i&&_i.length&&(Jt.parentPlayer=b(_i)),V.push(Jt)}}else Ie(kt,sn.fromStyles),Jt.onDestroy(()=>Ee(kt,sn.toStyles)),wn.push(Jt),Ft.has(kt)&&V.push(Jt)}),wn.forEach(Pt=>{const kt=ae.get(Pt.element);if(kt&&kt.length){const Jt=b(kt);Pt.setRealPlayer(Jt)}}),V.forEach(Pt=>{Pt.parentPlayer?Pt.syncPlayerEvents(Pt.parentPlayer):Pt.destroy()});for(let Pt=0;Pt<hn.length;Pt++){const kt=hn[Pt],Jt=kt[xn];if(Ei(kt,oe),Jt&&Jt.hasAnimation)continue;let sn=[];if(je.size){let Pn=je.get(kt);Pn&&Pn.length&&sn.push(...Pn);let _i=this.driver.query(kt,fe,!0);for(let lr=0;lr<_i.length;lr++){let Vn=je.get(_i[lr]);Vn&&Vn.length&&sn.push(...Vn)}}const jn=sn.filter(Pn=>!Pn.destroyed);jn.length?Ui(this,kt,jn):this.processLeaveNode(kt)}return hn.length=0,ln.forEach(Pt=>{this.players.push(Pt),Pt.onDone(()=>{Pt.destroy();const kt=this.players.indexOf(Pt);this.players.splice(kt,1)}),Pt.play()}),ln}elementContainsData(c,f){let D=!1;const V=f[xn];return V&&V.setForRemoval&&(D=!0),this.playersByElement.has(f)&&(D=!0),this.playersByQueriedElement.has(f)&&(D=!0),this.statesByElement.has(f)&&(D=!0),this._fetchNamespace(c).elementContainsData(f)||D}afterFlush(c){this._flushFns.push(c)}afterFlushAnimationsDone(c){this._whenQuietFns.push(c)}_getPreviousPlayers(c,f,D,V,ae){let Fe=[];if(f){const je=this.playersByQueriedElement.get(c);je&&(Fe=je)}else{const je=this.playersByElement.get(c);if(je){const st=!ae||ae==ni;je.forEach(gt=>{gt.queued||!st&&gt.triggerName!=V||Fe.push(gt)})}}return(D||V)&&(Fe=Fe.filter(je=>!(D&&D!=je.namespaceId||V&&V!=je.triggerName))),Fe}_beforeAnimationBuild(c,f,D){const ae=f.element,Fe=f.isRemovalTransition?void 0:c,je=f.isRemovalTransition?void 0:f.triggerName;for(const st of f.timelines){const gt=st.element,Ft=gt!==ae,Gt=P(D,gt,[]);this._getPreviousPlayers(gt,Ft,Fe,je,f.toState).forEach(dn=>{const en=dn.getRealPlayer();en.beforeDestroy&&en.beforeDestroy(),dn.destroy(),Gt.push(dn)})}Ie(ae,f.fromStyles)}_buildAnimation(c,f,D,V,ae,Fe){const je=f.triggerName,st=f.element,gt=[],Ft=new Set,Gt=new Set,Xt=f.timelines.map(en=>{const nn=en.element;Ft.add(nn);const hn=nn[xn];if(hn&&hn.removedBeforeQueried)return new _.ZN(en.duration,en.delay);const q=nn!==st,$=function Lr(j){const c=[];return Wi(j,c),c}((D.get(nn)||Sn).map(nt=>nt.getRealPlayer())).filter(nt=>!!nt.element&&nt.element===nn),Z=ae.get(nn),ee=Fe.get(nn),Oe=C(0,this._normalizer,0,en.keyframes,Z,ee),Ne=this._buildPlayer(en,Oe,$);if(en.subTimeline&&V&&Gt.add(nn),q){const nt=new Ci(c,je,nn);nt.setRealPlayer(Ne),gt.push(nt)}return Ne});gt.forEach(en=>{P(this.playersByQueriedElement,en.element,[]).push(en),en.onDone(()=>function Mi(j,c,f){let D;if(j instanceof Map){if(D=j.get(c),D){if(D.length){const V=D.indexOf(f);D.splice(V,1)}0==D.length&&j.delete(c)}}else if(D=j[c],D){if(D.length){const V=D.indexOf(f);D.splice(V,1)}0==D.length&&delete j[c]}return D}(this.playersByQueriedElement,en.element,en))}),Ft.forEach(en=>Zn(en,Ue));const dn=b(Xt);return dn.onDestroy(()=>{Ft.forEach(en=>Ei(en,Ue)),Ee(st,f.toStyles)}),Gt.forEach(en=>{P(V,en,[]).push(dn)}),dn}_buildPlayer(c,f,D){return f.length>0?this.driver.animate(c.element,f,c.duration,c.delay,c.easing,D):new _.ZN(c.duration,c.delay)}}class Ci{constructor(c,f,D){this.namespaceId=c,this.triggerName=f,this.element=D,this._player=new _.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(c){this._containsRealPlayer||(this._player=c,Object.keys(this._queuedCallbacks).forEach(f=>{this._queuedCallbacks[f].forEach(D=>T(c,f,void 0,D))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(c.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(c){this.totalTime=c}syncPlayerEvents(c){const f=this._player;f.triggerCallback&&c.onStart(()=>f.triggerCallback("start")),c.onDone(()=>this.finish()),c.onDestroy(()=>this.destroy())}_queueEvent(c,f){P(this._queuedCallbacks,c,[]).push(f)}onDone(c){this.queued&&this._queueEvent("done",c),this._player.onDone(c)}onStart(c){this.queued&&this._queueEvent("start",c),this._player.onStart(c)}onDestroy(c){this.queued&&this._queueEvent("destroy",c),this._player.onDestroy(c)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(c){this.queued||this._player.setPosition(c)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(c){const f=this._player;f.triggerCallback&&f.triggerCallback(c)}}function Wn(j){return j&&1===j.nodeType}function nr(j,c){const f=j.style.display;return j.style.display=null!=c?c:"none",f}function mr(j,c,f,D,V){const ae=[];f.forEach(st=>ae.push(nr(st)));const Fe=[];D.forEach((st,gt)=>{const Ft={};st.forEach(Gt=>{const Xt=Ft[Gt]=c.computeStyle(gt,Gt,V);(!Xt||0==Xt.length)&&(gt[xn]=ai,Fe.push(gt))}),j.set(gt,Ft)});let je=0;return f.forEach(st=>nr(st,ae[je++])),Fe}function Qn(j,c){const f=new Map;if(j.forEach(je=>f.set(je,[])),0==c.length)return f;const V=new Set(c),ae=new Map;function Fe(je){if(!je)return 1;let st=ae.get(je);if(st)return st;const gt=je.parentNode;return st=f.has(gt)?gt:V.has(gt)?1:Fe(gt),ae.set(je,st),st}return c.forEach(je=>{const st=Fe(je);1!==st&&f.get(st).push(je)}),f}function Zn(j,c){var f;null===(f=j.classList)||void 0===f||f.add(c)}function Ei(j,c){var f;null===(f=j.classList)||void 0===f||f.remove(c)}function Ui(j,c,f){b(f).onDone(()=>j.processLeaveNode(c))}function Wi(j,c){for(let f=0;f<j.length;f++){const D=j[f];D instanceof _.ZE?Wi(D.players,c):c.push(D)}}function wi(j,c,f){const D=f.get(j);if(!D)return!1;let V=c.get(j);return V?D.forEach(ae=>V.add(ae)):c.set(j,D),f.delete(j),!0}class zi{constructor(c,f,D){this.bodyNode=c,this._driver=f,this._normalizer=D,this._triggerCache={},this.onRemovalComplete=(V,ae)=>{},this._transitionEngine=new Gn(c,f,D),this._timelineEngine=new qt(c,f,D),this._transitionEngine.onRemovalComplete=(V,ae)=>this.onRemovalComplete(V,ae)}registerTrigger(c,f,D,V,ae){const Fe=c+"-"+V;let je=this._triggerCache[Fe];if(!je){const st=[],gt=Kt(this._driver,ae,st);if(st.length)throw new Error(`The animation trigger "${V}" has failed to build due to the following errors:\n - ${st.join("\n - ")}`);je=function Ae(j,c,f){return new tt(j,c,f)}(V,gt,this._normalizer),this._triggerCache[Fe]=je}this._transitionEngine.registerTrigger(f,V,je)}register(c,f){this._transitionEngine.register(c,f)}destroy(c,f){this._transitionEngine.destroy(c,f)}onInsert(c,f,D,V){this._transitionEngine.insertNode(c,f,D,V)}onRemove(c,f,D,V){this._transitionEngine.removeNode(c,f,V||!1,D)}disableAnimations(c,f){this._transitionEngine.markElementAsDisabled(c,f)}process(c,f,D,V){if("@"==D.charAt(0)){const[ae,Fe]=O(D);this._timelineEngine.command(ae,f,Fe,V)}else this._transitionEngine.trigger(c,f,D,V)}listen(c,f,D,V,ae){if("@"==D.charAt(0)){const[Fe,je]=O(D);return this._timelineEngine.listen(Fe,f,je,ae)}return this._transitionEngine.listen(c,f,D,V,ae)}flush(c=-1){this._transitionEngine.flush(c)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function ci(j,c){let f=null,D=null;return Array.isArray(c)&&c.length?(f=Di(c[0]),c.length>1&&(D=Di(c[c.length-1]))):c&&(f=Di(c)),f||D?new gr(j,f,D):null}let gr=(()=>{class j{constructor(f,D,V){this._element=f,this._startStyles=D,this._endStyles=V,this._state=0;let ae=j.initialStylesByElement.get(f);ae||j.initialStylesByElement.set(f,ae={}),this._initialStyles=ae}start(){this._state<1&&(this._startStyles&&Ee(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ee(this._element,this._initialStyles),this._endStyles&&(Ee(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(j.initialStylesByElement.delete(this._element),this._startStyles&&(Ie(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ie(this._element,this._endStyles),this._endStyles=null),Ee(this._element,this._initialStyles),this._state=3)}}return j.initialStylesByElement=new WeakMap,j})();function Di(j){let c=null;const f=Object.keys(j);for(let D=0;D<f.length;D++){const V=f[D];Ar(V)&&(c=c||{},c[V]=j[V])}return c}function Ar(j){return"display"===j||"position"===j}const Ki="animation",Si="animationend";class Or{constructor(c,f,D,V,ae,Fe,je){this._element=c,this._name=f,this._duration=D,this._delay=V,this._easing=ae,this._fillMode=Fe,this._onDoneFn=je,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=st=>this._handleCallback(st)}apply(){(function _r(j,c){const f=ir(j,"").trim();let D=0;f.length&&(D=function rr(j,c){let f=0;for(let D=0;D<j.length;D++)j.charAt(D)===c&&f++;return f}(f,",")+1,c=`${f}, ${c}`),mi(j,"",c)})(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),Qi(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){Ii(this._element,this._name,"paused")}resume(){Ii(this._element,this._name,"running")}setPosition(c){const f=Ai(this._element,this._name);this._position=c*this._duration,mi(this._element,"Delay",`-${this._position}ms`,f)}getPosition(){return this._position}_handleCallback(c){const f=c._ngTestManualTimestamp||Date.now(),D=1e3*parseFloat(c.elapsedTime.toFixed(3));c.animationName==this._name&&Math.max(f-this._startTime,0)>=this._delay&&D>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Qi(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function fi(j,c){const D=ir(j,"").split(","),V=pi(D,c);V>=0&&(D.splice(V,1),mi(j,"",D.join(",")))}(this._element,this._name))}}function Ii(j,c,f){mi(j,"PlayState",f,Ai(j,c))}function Ai(j,c){const f=ir(j,"");return f.indexOf(",")>0?pi(f.split(","),c):pi([f],c)}function pi(j,c){for(let f=0;f<j.length;f++)if(j[f].indexOf(c)>=0)return f;return-1}function Qi(j,c,f){f?j.removeEventListener(Si,c):j.addEventListener(Si,c)}function mi(j,c,f,D){const V=Ki+c;if(null!=D){const ae=j.style[V];if(ae.length){const Fe=ae.split(",");Fe[D]=f,f=Fe.join(",")}}j.style[V]=f}function ir(j,c){return j.style[Ki+c]||""}class xi{constructor(c,f,D,V,ae,Fe,je,st){this.element=c,this.keyframes=f,this.animationName=D,this._duration=V,this._delay=ae,this._finalStyles=je,this._specialStyles=st,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=Fe||"linear",this.totalTime=V+ae,this._buildStyler()}onStart(c){this._onStartFns.push(c)}onDone(c){this._onDoneFns.push(c)}onDestroy(c){this._onDestroyFns.push(c)}destroy(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(c=>c()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(c=>c()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(c=>c()),this._onStartFns=[]}finish(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(c){this._styler.setPosition(c)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Or(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(c){const f="start"==c?this._onStartFns:this._onDoneFns;f.forEach(D=>D()),f.length=0}beforeDestroy(){this.init();const c={};if(this.hasStarted()){const f=this._state>=3;Object.keys(this._finalStyles).forEach(D=>{"offset"!=D&&(c[D]=f?this._finalStyles[D]:_e(this.element,D))})}this.currentSnapshot=c}}class Zi extends _.ZN{constructor(c,f){super(),this.element=c,this._startingStyles={},this.__initialized=!1,this._styles=xe(f)}init(){this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(c=>{this._startingStyles[c]=this.element.style[c]}),super.init())}play(){!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(c=>this.element.style.setProperty(c,this._styles[c])),super.play())}destroy(){!this._startingStyles||(Object.keys(this._startingStyles).forEach(c=>{const f=this._startingStyles[c];f?this.element.style.setProperty(c,f):this.element.style.removeProperty(c)}),this._startingStyles=null,super.destroy())}}class or{constructor(){this._count=0}validateStyleProperty(c){return Me(c)}matchesElement(c,f){return!1}containsElement(c,f){return be(c,f)}query(c,f,D){return ue(c,f,D)}computeStyle(c,f,D){return window.getComputedStyle(c)[f]}buildKeyframeElement(c,f,D){D=D.map(je=>xe(je));let V=`@keyframes ${f} {\n`,ae="";D.forEach(je=>{ae=" ";const st=parseFloat(je.offset);V+=`${ae}${100*st}% {\n`,ae+=" ",Object.keys(je).forEach(gt=>{const Ft=je[gt];switch(gt){case"offset":return;case"easing":return void(Ft&&(V+=`${ae}animation-timing-function: ${Ft};\n`));default:return void(V+=`${ae}${gt}: ${Ft};\n`)}}),V+=`${ae}}\n`}),V+="}\n";const Fe=document.createElement("style");return Fe.textContent=V,Fe}animate(c,f,D,V,ae,Fe=[],je){const st=Fe.filter(hn=>hn instanceof xi),gt={};Pe(D,V)&&st.forEach(hn=>{let q=hn.currentSnapshot;Object.keys(q).forEach($=>gt[$]=q[$])});const Ft=function Yi(j){let c={};return j&&(Array.isArray(j)?j:[j]).forEach(D=>{Object.keys(D).forEach(V=>{"offset"==V||"easing"==V||(c[V]=D[V])})}),c}(f=se(c,f,gt));if(0==D)return new Zi(c,Ft);const Gt="gen_css_kf_"+this._count++,Xt=this.buildKeyframeElement(c,Gt,f);(function Fi(j){var c;const f=null===(c=j.getRootNode)||void 0===c?void 0:c.call(j);return"undefined"!=typeof ShadowRoot&&f instanceof ShadowRoot?f:document.head})(c).appendChild(Xt);const en=ci(c,f),nn=new xi(c,f,Gt,D,V,ae,Ft,en);return nn.onDestroy(()=>function ki(j){j.parentNode.removeChild(j)}(Xt)),nn}}class sr{constructor(c,f,D,V){this.element=c,this.keyframes=f,this.options=D,this._specialStyles=V,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=D.duration,this._delay=D.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(c=>c()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const c=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,c,this.options),this._finalKeyframe=c.length?c[c.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(c,f,D){return c.animate(f,D)}onStart(c){this._onStartFns.push(c)}onDone(c){this._onDoneFns.push(c)}onDestroy(c){this._onDestroyFns.push(c)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(c=>c()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(c=>c()),this._onDestroyFns=[])}setPosition(c){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=c*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const c={};if(this.hasStarted()){const f=this._finalKeyframe;Object.keys(f).forEach(D=>{"offset"!=D&&(c[D]=this._finished?f[D]:_e(this.element,D))})}this.currentSnapshot=c}triggerCallback(c){const f="start"==c?this._onStartFns:this._onDoneFns;f.forEach(D=>D()),f.length=0}}class ar{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(x().toString()),this._cssKeyframesDriver=new or}validateStyleProperty(c){return Me(c)}matchesElement(c,f){return!1}containsElement(c,f){return be(c,f)}query(c,f,D){return ue(c,f,D)}computeStyle(c,f,D){return window.getComputedStyle(c)[f]}overrideWebAnimationsSupport(c){this._isNativeImpl=c}animate(c,f,D,V,ae,Fe=[],je){if(!je&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(c,f,D,V,ae,Fe);const Ft={duration:D,delay:V,fill:0==V?"both":"forwards"};ae&&(Ft.easing=ae);const Gt={},Xt=Fe.filter(en=>en instanceof sr);Pe(D,V)&&Xt.forEach(en=>{let nn=en.currentSnapshot;Object.keys(nn).forEach(hn=>Gt[hn]=nn[hn])});const dn=ci(c,f=se(c,f=f.map(en=>qe(en,!1)),Gt));return new sr(c,f,Ft,dn)}}function x(){return u()&&Element.prototype.animate||{}}var Q=l(9808);let R=(()=>{class j extends _._j{constructor(f,D){super(),this._nextAnimationId=0,this._renderer=f.createRenderer(D.body,{id:"0",encapsulation:i.ViewEncapsulation.None,styles:[],data:{animation:[]}})}build(f){const D=this._nextAnimationId.toString();this._nextAnimationId++;const V=Array.isArray(f)?(0,_.vP)(f):f;return ht(this._renderer,null,D,"register",[V]),new te(D,this._renderer)}}return j.\u0275fac=function(f){return new(f||j)(i.\u0275\u0275inject(i.RendererFactory2),i.\u0275\u0275inject(Q.DOCUMENT))},j.\u0275prov=i.\u0275\u0275defineInjectable({token:j,factory:j.\u0275fac}),j})();class te extends _.LC{constructor(c,f){super(),this._id=c,this._renderer=f}create(c,f){return new ze(this._id,c,f||{},this._renderer)}}class ze{constructor(c,f,D,V){this.id=c,this.element=f,this._renderer=V,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",D)}_listen(c,f){return this._renderer.listen(this.element,`@@${this.id}:${c}`,f)}_command(c,...f){return ht(this._renderer,this.element,this.id,c,f)}onDone(c){this._listen("done",c)}onStart(c){this._listen("start",c)}onDestroy(c){this._listen("destroy",c)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(c){this._command("setPosition",c)}getPosition(){var c,f;return null!==(f=null===(c=this._renderer.engine.players[+this.id])||void 0===c?void 0:c.getPosition())&&void 0!==f?f:0}}function ht(j,c,f,D,V){return j.setProperty(c,`@@${f}:${D}`,V)}const Nt="@.disabled";let Dn=(()=>{class j{constructor(f,D,V){this.delegate=f,this.engine=D,this._zone=V,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),D.onRemovalComplete=(ae,Fe)=>{const je=null==Fe?void 0:Fe.parentNode(ae);je&&Fe.removeChild(je,ae)}}createRenderer(f,D){const ae=this.delegate.createRenderer(f,D);if(!(f&&D&&D.data&&D.data.animation)){let Ft=this._rendererCache.get(ae);return Ft||(Ft=new Tn("",ae,this.engine),this._rendererCache.set(ae,Ft)),Ft}const Fe=D.id,je=D.id+"-"+this._currentId;this._currentId++,this.engine.register(je,f);const st=Ft=>{Array.isArray(Ft)?Ft.forEach(st):this.engine.registerTrigger(Fe,je,f,Ft.name,Ft)};return D.data.animation.forEach(st),new In(this,je,ae,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(f,D,V){f>=0&&f<this._microtaskId?this._zone.run(()=>D(V)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(ae=>{const[Fe,je]=ae;Fe(je)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([D,V]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return j.\u0275fac=function(f){return new(f||j)(i.\u0275\u0275inject(i.RendererFactory2),i.\u0275\u0275inject(zi),i.\u0275\u0275inject(i.NgZone))},j.\u0275prov=i.\u0275\u0275defineInjectable({token:j,factory:j.\u0275fac}),j})();class Tn{constructor(c,f,D){this.namespaceId=c,this.delegate=f,this.engine=D,this.destroyNode=this.delegate.destroyNode?V=>f.destroyNode(V):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(c,f){return this.delegate.createElement(c,f)}createComment(c){return this.delegate.createComment(c)}createText(c){return this.delegate.createText(c)}appendChild(c,f){this.delegate.appendChild(c,f),this.engine.onInsert(this.namespaceId,f,c,!1)}insertBefore(c,f,D,V=!0){this.delegate.insertBefore(c,f,D),this.engine.onInsert(this.namespaceId,f,c,V)}removeChild(c,f,D){this.engine.onRemove(this.namespaceId,f,this.delegate,D)}selectRootElement(c,f){return this.delegate.selectRootElement(c,f)}parentNode(c){return this.delegate.parentNode(c)}nextSibling(c){return this.delegate.nextSibling(c)}setAttribute(c,f,D,V){this.delegate.setAttribute(c,f,D,V)}removeAttribute(c,f,D){this.delegate.removeAttribute(c,f,D)}addClass(c,f){this.delegate.addClass(c,f)}removeClass(c,f){this.delegate.removeClass(c,f)}setStyle(c,f,D,V){this.delegate.setStyle(c,f,D,V)}removeStyle(c,f,D){this.delegate.removeStyle(c,f,D)}setProperty(c,f,D){"@"==f.charAt(0)&&f==Nt?this.disableAnimations(c,!!D):this.delegate.setProperty(c,f,D)}setValue(c,f){this.delegate.setValue(c,f)}listen(c,f,D){return this.delegate.listen(c,f,D)}disableAnimations(c,f){this.engine.disableAnimations(c,f)}}class In extends Tn{constructor(c,f,D,V){super(f,D,V),this.factory=c,this.namespaceId=f}setProperty(c,f,D){"@"==f.charAt(0)?"."==f.charAt(1)&&f==Nt?this.disableAnimations(c,D=void 0===D||!!D):this.engine.process(this.namespaceId,c,f.substr(1),D):this.delegate.setProperty(c,f,D)}listen(c,f,D){if("@"==f.charAt(0)){const V=function un(j){switch(j){case"body":return document.body;case"document":return document;case"window":return window;default:return j}}(c);let ae=f.substr(1),Fe="";return"@"!=ae.charAt(0)&&([ae,Fe]=function F(j){const c=j.indexOf(".");return[j.substring(0,c),j.substr(c+1)]}(ae)),this.engine.listen(this.namespaceId,V,ae,Fe,je=>{this.factory.scheduleListenerCallback(je._data||-1,D,je)})}return this.delegate.listen(c,f,D)}}let A=(()=>{class j extends zi{constructor(f,D,V){super(f.body,D,V)}ngOnDestroy(){this.flush()}}return j.\u0275fac=function(f){return new(f||j)(i.\u0275\u0275inject(Q.DOCUMENT),i.\u0275\u0275inject(et),i.\u0275\u0275inject(En))},j.\u0275prov=i.\u0275\u0275defineInjectable({token:j,factory:j.\u0275fac}),j})();const $t=new i.InjectionToken("AnimationModuleType"),An=[{provide:_._j,useClass:R},{provide:En,useFactory:function J(){return new di}},{provide:zi,useClass:A},{provide:i.RendererFactory2,useFactory:function ut(j,c,f){return new Dn(j,c,f)},deps:[d.\u0275DomRendererFactory2,zi,i.NgZone]}],qn=[{provide:et,useFactory:function v(){return function Ln(){return"function"==typeof x()}()?new ar:new or}},{provide:$t,useValue:"BrowserAnimations"},...An],gi=[{provide:et,useClass:He},{provide:$t,useValue:"NoopAnimations"},...An];let Ni=(()=>{class j{static withConfig(f){return{ngModule:j,providers:f.disableAnimations?gi:qn}}}return j.\u0275fac=function(f){return new(f||j)},j.\u0275mod=i.\u0275\u0275defineNgModule({type:j}),j.\u0275inj=i.\u0275\u0275defineInjector({providers:qn,imports:[d.BrowserModule]}),j})(),wt=(()=>{class j{}return j.\u0275fac=function(f){return new(f||j)},j.\u0275mod=i.\u0275\u0275defineNgModule({type:j}),j.\u0275inj=i.\u0275\u0275defineInjector({providers:gi,imports:[d.BrowserModule]}),j})()},2313:(Le,m,l)=>{"use strict";l.r(m),l.d(m,{\u0275getDOM:()=>i.\u0275getDOM,BrowserModule:()=>dt,BrowserTransferStateModule:()=>at,By:()=>Ke,DomSanitizer:()=>ot,EVENT_MANAGER_PLUGINS:()=>N,EventManager:()=>B,HAMMER_GESTURE_CONFIG:()=>De,HAMMER_LOADER:()=>w,HammerGestureConfig:()=>I,HammerModule:()=>G,Meta:()=>k,Title:()=>se,TransferState:()=>Ot,VERSION:()=>gn,disableDebugTools:()=>Kt,enableDebugTools:()=>on,makeStateKey:()=>Qt,platformBrowser:()=>Tt,\u0275BrowserDomAdapter:()=>u,\u0275BrowserGetTestability:()=>O,\u0275DomEventsPlugin:()=>Ge,\u0275DomRendererFactory2:()=>ke,\u0275DomSanitizerImpl:()=>Ut,\u0275DomSharedStylesHost:()=>re,\u0275HammerGesturesPlugin:()=>M,\u0275INTERNAL_BROWSER_PLATFORM_PROVIDERS:()=>pt,\u0275KeyEventsPlugin:()=>he,\u0275NAMESPACE_URIS:()=>pe,\u0275SharedStylesHost:()=>K,\u0275TRANSITION_ID:()=>p,\u0275escapeHtml:()=>Mn,\u0275flattenStyles:()=>me,\u0275initDomAdapter:()=>Ie,\u0275shimContentAttribute:()=>ct,\u0275shimHostAttribute:()=>X});var i=l(9808),d=l(5e3);class _ extends i.\u0275DomAdapter{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class u extends _{static makeCurrent(){(0,i.\u0275setRootDomAdapter)(new u)}onAndCancel($e,le,Be){return $e.addEventListener(le,Be,!1),()=>{$e.removeEventListener(le,Be,!1)}}dispatchEvent($e,le){$e.dispatchEvent(le)}remove($e){$e.parentNode&&$e.parentNode.removeChild($e)}createElement($e,le){return(le=le||this.getDefaultDocument()).createElement($e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode($e){return $e.nodeType===Node.ELEMENT_NODE}isShadowRoot($e){return $e instanceof DocumentFragment}getGlobalEventTarget($e,le){return"window"===le?window:"document"===le?$e:"body"===le?$e.body:null}getBaseHref($e){const le=function b(){return s=s||document.querySelector("base"),s?s.getAttribute("href"):null}();return null==le?null:function T(Ve){C=C||document.createElement("a"),C.setAttribute("href",Ve);const $e=C.pathname;return"/"===$e.charAt(0)?$e:`/${$e}`}(le)}resetBaseElement(){s=null}getUserAgent(){return window.navigator.userAgent}getCookie($e){return(0,i.\u0275parseCookieValue)(document.cookie,$e)}}let C,s=null;const p=new d.InjectionToken("TRANSITION_ID"),P=[{provide:d.APP_INITIALIZER,useFactory:function y(Ve,$e,le){return()=>{le.get(d.ApplicationInitStatus).donePromise.then(()=>{const Be=(0,i.\u0275getDOM)(),ft=$e.querySelectorAll(`style[ng-transition="${Ve}"]`);for(let Vt=0;Vt<ft.length;Vt++)Be.remove(ft[Vt])})}},deps:[p,i.DOCUMENT,d.Injector],multi:!0}];class O{static init(){(0,d.setTestabilityGetter)(new O)}addToWindow($e){d.\u0275global.getAngularTestability=(Be,ft=!0)=>{const Vt=$e.findTestabilityInTree(Be,ft);if(null==Vt)throw new Error("Could not find testability for element.");return Vt},d.\u0275global.getAllAngularTestabilities=()=>$e.getAllTestabilities(),d.\u0275global.getAllAngularRootElements=()=>$e.getAllRootElements(),d.\u0275global.frameworkStabilizers||(d.\u0275global.frameworkStabilizers=[]),d.\u0275global.frameworkStabilizers.push(Be=>{const ft=d.\u0275global.getAllAngularTestabilities();let Vt=ft.length,Bt=!1;const fn=function(En){Bt=Bt||En,Vt--,0==Vt&&Be(Bt)};ft.forEach(function(En){En.whenStable(fn)})})}findTestabilityInTree($e,le,Be){if(null==le)return null;const ft=$e.getTestability(le);return null!=ft?ft:Be?(0,i.\u0275getDOM)().isShadowRoot(le)?this.findTestabilityInTree($e,le.host,!0):this.findTestabilityInTree($e,le.parentElement,!0):null}}let S=(()=>{class Ve{build(){return new XMLHttpRequest}}return Ve.\u0275fac=function(le){return new(le||Ve)},Ve.\u0275prov=d.\u0275\u0275defineInjectable({token:Ve,factory:Ve.\u0275fac}),Ve})();const N=new d.InjectionToken("EventManagerPlugins");let B=(()=>{class Ve{constructor(le,Be){this._zone=Be,this._eventNameToPlugin=new Map,le.forEach(ft=>ft.manager=this),this._plugins=le.slice().reverse()}addEventListener(le,Be,ft){return this._findPluginFor(Be).addEventListener(le,Be,ft)}addGlobalEventListener(le,Be,ft){return this._findPluginFor(Be).addGlobalEventListener(le,Be,ft)}getZone(){return this._zone}_findPluginFor(le){const Be=this._eventNameToPlugin.get(le);if(Be)return Be;const ft=this._plugins;for(let Vt=0;Vt<ft.length;Vt++){const Bt=ft[Vt];if(Bt.supports(le))return this._eventNameToPlugin.set(le,Bt),Bt}throw new Error(`No event manager plugin found for event ${le}`)}}return Ve.\u0275fac=function(le){return new(le||Ve)(d.\u0275\u0275inject(N),d.\u0275\u0275inject(d.NgZone))},Ve.\u0275prov=d.\u0275\u0275defineInjectable({token:Ve,factory:Ve.\u0275fac}),Ve})();class ce{constructor($e){this._doc=$e}addGlobalEventListener($e,le,Be){const ft=(0,i.\u0275getDOM)().getGlobalEventTarget(this._doc,$e);if(!ft)throw new Error(`Unsupported event target ${ft} for event ${le}`);return this.addEventListener(ft,le,Be)}}let K=(()=>{class Ve{constructor(){this._stylesSet=new Set}addStyles(le){const Be=new Set;le.forEach(ft=>{this._stylesSet.has(ft)||(this._stylesSet.add(ft),Be.add(ft))}),this.onStylesAdded(Be)}onStylesAdded(le){}getAllStyles(){return Array.from(this._stylesSet)}}return Ve.\u0275fac=function(le){return new(le||Ve)},Ve.\u0275prov=d.\u0275\u0275defineInjectable({token:Ve,factory:Ve.\u0275fac}),Ve})(),re=(()=>{class Ve extends K{constructor(le){super(),this._doc=le,this._hostNodes=new Map,this._hostNodes.set(le.head,[])}_addStylesToHost(le,Be,ft){le.forEach(Vt=>{const Bt=this._doc.createElement("style");Bt.textContent=Vt,ft.push(Be.appendChild(Bt))})}addHost(le){const Be=[];this._addStylesToHost(this._stylesSet,le,Be),this._hostNodes.set(le,Be)}removeHost(le){const Be=this._hostNodes.get(le);Be&&Be.forEach(Me),this._hostNodes.delete(le)}onStylesAdded(le){this._hostNodes.forEach((Be,ft)=>{this._addStylesToHost(le,ft,Be)})}ngOnDestroy(){this._hostNodes.forEach(le=>le.forEach(Me))}}return Ve.\u0275fac=function(le){return new(le||Ve)(d.\u0275\u0275inject(i.DOCUMENT))},Ve.\u0275prov=d.\u0275\u0275defineInjectable({token:Ve,factory:Ve.\u0275fac}),Ve})();function Me(Ve){(0,i.\u0275getDOM)().remove(Ve)}const pe={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/"},be=/%COMP%/g;function ct(Ve){return"_ngcontent-%COMP%".replace(be,Ve)}function X(Ve){return"_nghost-%COMP%".replace(be,Ve)}function me(Ve,$e,le){for(let Be=0;Be<$e.length;Be++){let ft=$e[Be];Array.isArray(ft)?me(Ve,ft,le):(ft=ft.replace(be,Ve),le.push(ft))}return le}function z(Ve){return $e=>{if("__ngUnwrap__"===$e)return Ve;!1===Ve($e)&&($e.preventDefault(),$e.returnValue=!1)}}let ke=(()=>{class Ve{constructor(le,Be,ft){this.eventManager=le,this.sharedStylesHost=Be,this.appId=ft,this.rendererByCompId=new Map,this.defaultRenderer=new de(le)}createRenderer(le,Be){if(!le||!Be)return this.defaultRenderer;switch(Be.encapsulation){case d.ViewEncapsulation.Emulated:{let ft=this.rendererByCompId.get(Be.id);return ft||(ft=new Je(this.eventManager,this.sharedStylesHost,Be,this.appId),this.rendererByCompId.set(Be.id,ft)),ft.applyToHost(le),ft}case 1:case d.ViewEncapsulation.ShadowDom:return new Te(this.eventManager,this.sharedStylesHost,le,Be);default:if(!this.rendererByCompId.has(Be.id)){const ft=me(Be.id,Be.styles,[]);this.sharedStylesHost.addStyles(ft),this.rendererByCompId.set(Be.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return Ve.\u0275fac=function(le){return new(le||Ve)(d.\u0275\u0275inject(B),d.\u0275\u0275inject(re),d.\u0275\u0275inject(d.APP_ID))},Ve.\u0275prov=d.\u0275\u0275defineInjectable({token:Ve,factory:Ve.\u0275fac}),Ve})();class de{constructor($e){this.eventManager=$e,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement($e,le){return le?document.createElementNS(pe[le]||le,$e):document.createElement($e)}createComment($e){return document.createComment($e)}createText($e){return document.createTextNode($e)}appendChild($e,le){$e.appendChild(le)}insertBefore($e,le,Be){$e&&$e.insertBefore(le,Be)}removeChild($e,le){$e&&$e.removeChild(le)}selectRootElement($e,le){let Be="string"==typeof $e?document.querySelector($e):$e;if(!Be)throw new Error(`The selector "${$e}" did not match any elements`);return le||(Be.textContent=""),Be}parentNode($e){return $e.parentNode}nextSibling($e){return $e.nextSibling}setAttribute($e,le,Be,ft){if(ft){le=ft+":"+le;const Vt=pe[ft];Vt?$e.setAttributeNS(Vt,le,Be):$e.setAttribute(le,Be)}else $e.setAttribute(le,Be)}removeAttribute($e,le,Be){if(Be){const ft=pe[Be];ft?$e.removeAttributeNS(ft,le):$e.removeAttribute(`${Be}:${le}`)}else $e.removeAttribute(le)}addClass($e,le){$e.classList.add(le)}removeClass($e,le){$e.classList.remove(le)}setStyle($e,le,Be,ft){ft&(d.RendererStyleFlags2.DashCase|d.RendererStyleFlags2.Important)?$e.style.setProperty(le,Be,ft&d.RendererStyleFlags2.Important?"important":""):$e.style[le]=Be}removeStyle($e,le,Be){Be&d.RendererStyleFlags2.DashCase?$e.style.removeProperty(le):$e.style[le]=""}setProperty($e,le,Be){$e[le]=Be}setValue($e,le){$e.nodeValue=le}listen($e,le,Be){return"string"==typeof $e?this.eventManager.addGlobalEventListener($e,le,z(Be)):this.eventManager.addEventListener($e,le,z(Be))}}class Je extends de{constructor($e,le,Be,ft){super($e),this.component=Be;const Vt=me(ft+"-"+Be.id,Be.styles,[]);le.addStyles(Vt),this.contentAttr=ct(ft+"-"+Be.id),this.hostAttr=X(ft+"-"+Be.id)}applyToHost($e){super.setAttribute($e,this.hostAttr,"")}createElement($e,le){const Be=super.createElement($e,le);return super.setAttribute(Be,this.contentAttr,""),Be}}class Te extends de{constructor($e,le,Be,ft){super($e),this.sharedStylesHost=le,this.hostEl=Be,this.shadowRoot=Be.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Vt=me(ft.id,ft.styles,[]);for(let Bt=0;Bt<Vt.length;Bt++){const fn=document.createElement("style");fn.textContent=Vt[Bt],this.shadowRoot.appendChild(fn)}}nodeOrShadowRoot($e){return $e===this.hostEl?this.shadowRoot:$e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild($e,le){return super.appendChild(this.nodeOrShadowRoot($e),le)}insertBefore($e,le,Be){return super.insertBefore(this.nodeOrShadowRoot($e),le,Be)}removeChild($e,le){return super.removeChild(this.nodeOrShadowRoot($e),le)}parentNode($e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot($e)))}}let Ge=(()=>{class Ve extends ce{constructor(le){super(le)}supports(le){return!0}addEventListener(le,Be,ft){return le.addEventListener(Be,ft,!1),()=>this.removeEventListener(le,Be,ft)}removeEventListener(le,Be,ft){return le.removeEventListener(Be,ft)}}return Ve.\u0275fac=function(le){return new(le||Ve)(d.\u0275\u0275inject(i.DOCUMENT))},Ve.\u0275prov=d.\u0275\u0275defineInjectable({token:Ve,factory:Ve.\u0275fac}),Ve})();const vt=["alt","control","meta","shift"],Re={"\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"},qe={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Y={alt:Ve=>Ve.altKey,control:Ve=>Ve.ctrlKey,meta:Ve=>Ve.metaKey,shift:Ve=>Ve.shiftKey};let he=(()=>{class Ve extends ce{constructor(le){super(le)}supports(le){return null!=Ve.parseEventName(le)}addEventListener(le,Be,ft){const Vt=Ve.parseEventName(Be),Bt=Ve.eventCallback(Vt.fullKey,ft,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,i.\u0275getDOM)().onAndCancel(le,Vt.domEventName,Bt))}static parseEventName(le){const Be=le.toLowerCase().split("."),ft=Be.shift();if(0===Be.length||"keydown"!==ft&&"keyup"!==ft)return null;const Vt=Ve._normalizeKey(Be.pop());let Bt="";if(vt.forEach(En=>{const $n=Be.indexOf(En);$n>-1&&(Be.splice($n,1),Bt+=En+".")}),Bt+=Vt,0!=Be.length||0===Vt.length)return null;const fn={};return fn.domEventName=ft,fn.fullKey=Bt,fn}static getEventFullKey(le){let Be="",ft=function Ee(Ve){let $e=Ve.key;if(null==$e){if($e=Ve.keyIdentifier,null==$e)return"Unidentified";$e.startsWith("U+")&&($e=String.fromCharCode(parseInt($e.substring(2),16)),3===Ve.location&&qe.hasOwnProperty($e)&&($e=qe[$e]))}return Re[$e]||$e}(le);return ft=ft.toLowerCase()," "===ft?ft="space":"."===ft&&(ft="dot"),vt.forEach(Vt=>{Vt!=ft&&Y[Vt](le)&&(Be+=Vt+".")}),Be+=ft,Be}static eventCallback(le,Be,ft){return Vt=>{Ve.getEventFullKey(Vt)===le&&ft.runGuarded(()=>Be(Vt))}}static _normalizeKey(le){return"esc"===le?"escape":le}}return Ve.\u0275fac=function(le){return new(le||Ve)(d.\u0275\u0275inject(i.DOCUMENT))},Ve.\u0275prov=d.\u0275\u0275defineInjectable({token:Ve,factory:Ve.\u0275fac}),Ve})();function Ie(){u.makeCurrent(),O.init()}const pt=[{provide:d.PLATFORM_ID,useValue:i.\u0275PLATFORM_BROWSER_ID},{provide:d.PLATFORM_INITIALIZER,useValue:Ie,multi:!0},{provide:i.DOCUMENT,useFactory:function Xe(){return(0,d.\u0275setDocument)(document),document},deps:[]}],Tt=(0,d.createPlatformFactory)(d.platformCore,"browser",pt),Rt=[{provide:d.\u0275INJECTOR_SCOPE,useValue:"root"},{provide:d.ErrorHandler,useFactory:function ge(){return new d.ErrorHandler},deps:[]},{provide:N,useClass:Ge,multi:!0,deps:[i.DOCUMENT,d.NgZone,d.PLATFORM_ID]},{provide:N,useClass:he,multi:!0,deps:[i.DOCUMENT]},{provide:ke,useClass:ke,deps:[B,re,d.APP_ID]},{provide:d.RendererFactory2,useExisting:ke},{provide:K,useExisting:re},{provide:re,useClass:re,deps:[i.DOCUMENT]},{provide:d.Testability,useClass:d.Testability,deps:[d.NgZone]},{provide:B,useClass:B,deps:[N,d.NgZone]},{provide:i.XhrFactory,useClass:S,deps:[]}];let dt=(()=>{class Ve{constructor(le){if(le)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(le){return{ngModule:Ve,providers:[{provide:d.APP_ID,useValue:le.appId},{provide:p,useExisting:d.APP_ID},P]}}}return Ve.\u0275fac=function(le){return new(le||Ve)(d.\u0275\u0275inject(Ve,12))},Ve.\u0275mod=d.\u0275\u0275defineNgModule({type:Ve}),Ve.\u0275inj=d.\u0275\u0275defineInjector({providers:Rt,imports:[i.CommonModule,d.ApplicationModule]}),Ve})(),k=(()=>{class Ve{constructor(le){this._doc=le,this._dom=(0,i.\u0275getDOM)()}addTag(le,Be=!1){return le?this._getOrCreateElement(le,Be):null}addTags(le,Be=!1){return le?le.reduce((ft,Vt)=>(Vt&&ft.push(this._getOrCreateElement(Vt,Be)),ft),[]):[]}getTag(le){return le&&this._doc.querySelector(`meta[${le}]`)||null}getTags(le){if(!le)return[];const Be=this._doc.querySelectorAll(`meta[${le}]`);return Be?[].slice.call(Be):[]}updateTag(le,Be){if(!le)return null;Be=Be||this._parseSelector(le);const ft=this.getTag(Be);return ft?this._setMetaElementAttributes(le,ft):this._getOrCreateElement(le,!0)}removeTag(le){this.removeTagElement(this.getTag(le))}removeTagElement(le){le&&this._dom.remove(le)}_getOrCreateElement(le,Be=!1){if(!Be){const Bt=this._parseSelector(le),fn=this.getTags(Bt).filter(En=>this._containsAttributes(le,En))[0];if(void 0!==fn)return fn}const ft=this._dom.createElement("meta");return this._setMetaElementAttributes(le,ft),this._doc.getElementsByTagName("head")[0].appendChild(ft),ft}_setMetaElementAttributes(le,Be){return Object.keys(le).forEach(ft=>Be.setAttribute(this._getMetaKeyMap(ft),le[ft])),Be}_parseSelector(le){const Be=le.name?"name":"property";return`${Be}="${le[Be]}"`}_containsAttributes(le,Be){return Object.keys(le).every(ft=>Be.getAttribute(this._getMetaKeyMap(ft))===le[ft])}_getMetaKeyMap(le){return ne[le]||le}}return Ve.\u0275fac=function(le){return new(le||Ve)(d.\u0275\u0275inject(i.DOCUMENT))},Ve.\u0275prov=d.\u0275\u0275defineInjectable({token:Ve,factory:function(le){let Be=null;return Be=le?new le:function Ze(){return new k((0,d.\u0275\u0275inject)(i.DOCUMENT))}(),Be},providedIn:"root"}),Ve})();const ne={httpEquiv:"http-equiv"};let se=(()=>{class Ve{constructor(le){this._doc=le}getTitle(){return this._doc.title}setTitle(le){this._doc.title=le||""}}return Ve.\u0275fac=function(le){return new(le||Ve)(d.\u0275\u0275inject(i.DOCUMENT))},Ve.\u0275prov=d.\u0275\u0275defineInjectable({token:Ve,factory:function(le){let Be=null;return Be=le?new le:function Pe(){return new se((0,d.\u0275\u0275inject)(i.DOCUMENT))}(),Be},providedIn:"root"}),Ve})();function Ye(Ve,$e){"undefined"!=typeof COMPILED&&COMPILED||((d.\u0275global.ng=d.\u0275global.ng||{})[Ve]=$e)}const it="undefined"!=typeof window&&window||{};class mt{constructor($e,le){this.msPerTick=$e,this.numTicks=le}}class _t{constructor($e){this.appRef=$e.injector.get(d.ApplicationRef)}timeChangeDetection($e){const le=$e&&$e.record,Be="Change Detection",ft=null!=it.console.profile;le&&ft&&it.console.profile(Be);const Vt=It();let Bt=0;for(;Bt<5||It()-Vt<500;)this.appRef.tick(),Bt++;const fn=It();le&&ft&&it.console.profileEnd(Be);const En=(fn-Vt)/Bt;return it.console.log(`ran ${Bt} change detection cycles`),it.console.log(`${En.toFixed(2)} ms per check`),new mt(En,Bt)}}function It(){return it.performance&&it.performance.now?it.performance.now():(new Date).getTime()}const zt="profiler";function on(Ve){return Ye(zt,new _t(Ve)),Ve}function Kt(){Ye(zt,null)}function Mn(Ve){const $e={"&":"&a;",'"':"&q;","'":"&s;","<":"&l;",">":"&g;"};return Ve.replace(/[&"'<>]/g,le=>$e[le])}function Qt(Ve){return Ve}let Ot=(()=>{class Ve{constructor(){this.store={},this.onSerializeCallbacks={}}static init(le){const Be=new Ve;return Be.store=le,Be}get(le,Be){return void 0!==this.store[le]?this.store[le]:Be}set(le,Be){this.store[le]=Be}remove(le){delete this.store[le]}hasKey(le){return this.store.hasOwnProperty(le)}onSerialize(le,Be){this.onSerializeCallbacks[le]=Be}toJson(){for(const le in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(le))try{this.store[le]=this.onSerializeCallbacks[le]()}catch(Be){console.warn("Exception in onSerialize callback: ",Be)}return JSON.stringify(this.store)}}return Ve.\u0275fac=function(le){return new(le||Ve)},Ve.\u0275prov=d.\u0275\u0275defineInjectable({token:Ve,factory:Ve.\u0275fac}),Ve})();function bn(Ve,$e){const le=Ve.getElementById($e+"-state");let Be={};if(le&&le.textContent)try{Be=JSON.parse(function an(Ve){const $e={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"};return Ve.replace(/&[^;]+;/g,le=>$e[le])}(le.textContent))}catch(ft){console.warn("Exception while restoring TransferState for app "+$e,ft)}return Ot.init(Be)}let at=(()=>{class Ve{}return Ve.\u0275fac=function(le){return new(le||Ve)},Ve.\u0275mod=d.\u0275\u0275defineNgModule({type:Ve}),Ve.\u0275inj=d.\u0275\u0275defineInjector({providers:[{provide:Ot,useFactory:bn,deps:[i.DOCUMENT,d.APP_ID]}]}),Ve})();class Ke{static all(){return()=>!0}static css($e){return le=>null!=le.nativeElement&&function Qe(Ve,$e){return!!(0,i.\u0275getDOM)().isElementNode(Ve)&&(Ve.matches&&Ve.matches($e)||Ve.msMatchesSelector&&Ve.msMatchesSelector($e)||Ve.webkitMatchesSelector&&Ve.webkitMatchesSelector($e))}(le.nativeElement,$e)}static directive($e){return le=>-1!==le.providerTokens.indexOf($e)}}const Se={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0,doubletap:!0},De=new d.InjectionToken("HammerGestureConfig"),w=new d.InjectionToken("HammerLoader");let I=(()=>{class Ve{constructor(){this.events=[],this.overrides={}}buildHammer(le){const Be=new Hammer(le,this.options);Be.get("pinch").set({enable:!0}),Be.get("rotate").set({enable:!0});for(const ft in this.overrides)Be.get(ft).set(this.overrides[ft]);return Be}}return Ve.\u0275fac=function(le){return new(le||Ve)},Ve.\u0275prov=d.\u0275\u0275defineInjectable({token:Ve,factory:Ve.\u0275fac}),Ve})(),M=(()=>{class Ve extends ce{constructor(le,Be,ft,Vt){super(le),this._config=Be,this.console=ft,this.loader=Vt,this._loaderPromise=null}supports(le){return!(!Se.hasOwnProperty(le.toLowerCase())&&!this.isCustomEvent(le)||!window.Hammer&&!this.loader)}addEventListener(le,Be,ft){const Vt=this.manager.getZone();if(Be=Be.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||this.loader();let Bt=!1,fn=()=>{Bt=!0};return this._loaderPromise.then(()=>{window.Hammer?Bt||(fn=this.addEventListener(le,Be,ft)):fn=()=>{}}).catch(()=>{fn=()=>{}}),()=>{fn()}}return Vt.runOutsideAngular(()=>{const Bt=this._config.buildHammer(le),fn=function(En){Vt.runGuarded(function(){ft(En)})};return Bt.on(Be,fn),()=>{Bt.off(Be,fn),"function"==typeof Bt.destroy&&Bt.destroy()}})}isCustomEvent(le){return this._config.events.indexOf(le)>-1}}return Ve.\u0275fac=function(le){return new(le||Ve)(d.\u0275\u0275inject(i.DOCUMENT),d.\u0275\u0275inject(De),d.\u0275\u0275inject(d.\u0275Console),d.\u0275\u0275inject(w,8))},Ve.\u0275prov=d.\u0275\u0275defineInjectable({token:Ve,factory:Ve.\u0275fac}),Ve})(),G=(()=>{class Ve{}return Ve.\u0275fac=function(le){return new(le||Ve)},Ve.\u0275mod=d.\u0275\u0275defineNgModule({type:Ve}),Ve.\u0275inj=d.\u0275\u0275defineInjector({providers:[{provide:N,useClass:M,multi:!0,deps:[i.DOCUMENT,De,d.\u0275Console,[new d.Optional,w]]},{provide:De,useClass:I,deps:[]}]}),Ve})(),ot=(()=>{class Ve{}return Ve.\u0275fac=function(le){return new(le||Ve)},Ve.\u0275prov=d.\u0275\u0275defineInjectable({token:Ve,factory:function(le){let Be=null;return Be=le?new(le||Ve):d.\u0275\u0275inject(Ut),Be},providedIn:"root"}),Ve})(),Ut=(()=>{class Ve extends ot{constructor(le){super(),this._doc=le}sanitize(le,Be){if(null==Be)return null;switch(le){case d.SecurityContext.NONE:return Be;case d.SecurityContext.HTML:return(0,d.\u0275allowSanitizationBypassAndThrow)(Be,"HTML")?(0,d.\u0275unwrapSafeValue)(Be):(0,d.\u0275_sanitizeHtml)(this._doc,String(Be)).toString();case d.SecurityContext.STYLE:return(0,d.\u0275allowSanitizationBypassAndThrow)(Be,"Style")?(0,d.\u0275unwrapSafeValue)(Be):Be;case d.SecurityContext.SCRIPT:if((0,d.\u0275allowSanitizationBypassAndThrow)(Be,"Script"))return(0,d.\u0275unwrapSafeValue)(Be);throw new Error("unsafe value used in a script context");case d.SecurityContext.URL:return(0,d.\u0275getSanitizationBypassType)(Be),(0,d.\u0275allowSanitizationBypassAndThrow)(Be,"URL")?(0,d.\u0275unwrapSafeValue)(Be):(0,d.\u0275_sanitizeUrl)(String(Be));case d.SecurityContext.RESOURCE_URL:if((0,d.\u0275allowSanitizationBypassAndThrow)(Be,"ResourceURL"))return(0,d.\u0275unwrapSafeValue)(Be);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${le} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(le){return(0,d.\u0275bypassSanitizationTrustHtml)(le)}bypassSecurityTrustStyle(le){return(0,d.\u0275bypassSanitizationTrustStyle)(le)}bypassSecurityTrustScript(le){return(0,d.\u0275bypassSanitizationTrustScript)(le)}bypassSecurityTrustUrl(le){return(0,d.\u0275bypassSanitizationTrustUrl)(le)}bypassSecurityTrustResourceUrl(le){return(0,d.\u0275bypassSanitizationTrustResourceUrl)(le)}}return Ve.\u0275fac=function(le){return new(le||Ve)(d.\u0275\u0275inject(i.DOCUMENT))},Ve.\u0275prov=d.\u0275\u0275defineInjectable({token:Ve,factory:function(le){let Be=null;return Be=le?new le:function Et(Ve){return new Ut(Ve.get(i.DOCUMENT))}(d.\u0275\u0275inject(d.Injector)),Be},providedIn:"root"}),Ve})();const gn=new d.Version("13.1.2")},107:(Le,m,l)=>{"use strict";l.r(m),l.d(m,{MONACO_PATH:()=>O,MonacoDiffEditorComponent:()=>ce,MonacoEditorComponent:()=>B,MonacoEditorLoaderDirective:()=>N,MonacoEditorLoaderService:()=>S,MonacoEditorModule:()=>K});var i=l(5e3),d=l(2722),_=l(9300),u=l(5698),s=l(1135),b=l(6758),C=l(655),T=l(3075);const p=["editor"],y=["diffEditor"],O="MONACO_PATH";let S=(()=>{class re{constructor(pe,be){this.ngZone=pe,this.monacoPathConfig=be,this.isMonacoLoaded$=new s.X(!1),this._monacoPath="assets/monaco-editor/min/vs",window.monacoEditorAlreadyInitialized?pe.run(()=>this.isMonacoLoaded$.next(!0)):(window.monacoEditorAlreadyInitialized=!0,this.monacoPathConfig&&(this.monacoPath=this.monacoPathConfig),this.loadMonaco())}set monacoPath(pe){pe&&(this._monacoPath=pe)}loadMonaco(){const pe=()=>{let He=this._monacoPath;window.amdRequire=window.require;const et=!!this.nodeRequire,ct=He.includes("http");et&&(window.require=this.nodeRequire,ct||(He=window.require("path").resolve(window.__dirname,this._monacoPath))),window.amdRequire.config({paths:{vs:He}}),window.amdRequire(["vs/editor/editor.main"],()=>{this.ngZone.run(()=>this.isMonacoLoaded$.next(!0))},X=>console.error("Error loading monaco-editor: ",X))};if(window.amdRequire)return pe();window.require&&(this.addElectronFixScripts(),this.nodeRequire=window.require);const xe=document.createElement("script");xe.type="text/javascript",xe.src=`${this._monacoPath}/loader.js`,xe.addEventListener("load",pe),document.body.appendChild(xe)}addElectronFixScripts(){const pe=document.createElement("script"),be=document.createTextNode("self.module = undefined;"),ue=document.createTextNode("self.process.browser = true;");pe.appendChild(be),pe.appendChild(ue),document.body.appendChild(pe)}}return re.\u0275fac=function(pe){return new(pe||re)(i.\u0275\u0275inject(i.NgZone),i.\u0275\u0275inject(O,8))},re.\u0275prov=i.\u0275\u0275defineInjectable({token:re,factory:re.\u0275fac,providedIn:"root"}),re})(),N=(()=>{class re{constructor(pe,be,ue){this.templateRef=pe,this.viewContainer=be,this.monacoEditorLoaderService=ue,this.isMonacoLoaded$=this.monacoEditorLoaderService.isMonacoLoaded$.asObservable(),this.destroyed$=new b.x}ngOnInit(){this.isMonacoLoaded$.pipe((0,d.R)(this.destroyed$)).subscribe(pe=>{if(!pe)return this.viewContainer.clear();this.viewContainer.createEmbeddedView(this.templateRef)})}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}}return re.\u0275fac=function(pe){return new(pe||re)(i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(S))},re.\u0275dir=i.\u0275\u0275defineDirective({type:re,selectors:[["","ngxLoadMonacoEditor",""]]}),re})(),B=(()=>{class re{constructor(pe){this.monacoLoader=pe,this.init=new i.EventEmitter,this.onTouched=()=>{},this.onErrorStatusChange=()=>{},this.propagateChange=()=>{}}get model(){return this.editor&&this.editor.getModel()}get modelMarkers(){return this.model&&monaco.editor.getModelMarkers({resource:this.model.uri})}ngOnInit(){this.monacoLoader.isMonacoLoaded$.pipe((0,_.h)(pe=>pe),(0,u.q)(1)).subscribe(()=>{this.initEditor()})}ngOnChanges(pe){if(this.editor&&pe.options&&!pe.options.firstChange){const be=pe.options.currentValue,{language:ue,theme:xe}=be,He=(0,C.__rest)(be,["language","theme"]),{language:et,theme:ct}=pe.options.previousValue;et!==ue&&monaco.editor.setModelLanguage(this.editor.getModel(),this.options&&this.options.language?this.options.language:"text"),ct!==xe&&monaco.editor.setTheme(xe),this.editor.updateOptions(He)}if(this.editor&&pe.uri){const be=pe.uri.currentValue,ue=pe.uri.previousValue;if(ue&&!be||!ue&&be||be&&ue&&be.path!==ue.path){const xe=this.editor.getValue();let He;this.modelUriInstance&&this.modelUriInstance.dispose(),be&&(He=monaco.editor.getModels().find(et=>et.uri.path===be.path)),this.modelUriInstance=He||monaco.editor.createModel(xe,this.options.language||"text",this.uri),this.editor.setModel(this.modelUriInstance)}}}writeValue(pe){this.value=pe,this.editor&&pe?this.editor.setValue(pe):this.editor&&this.editor.setValue("")}registerOnChange(pe){this.propagateChange=pe}registerOnTouched(pe){this.onTouched=pe}validate(){return this.parsedError?{monaco:{value:this.parsedError.split("|")}}:null}registerOnValidatorChange(pe){this.onErrorStatusChange=pe}initEditor(){const pe={value:[this.value].join("\n"),language:"text",automaticLayout:!0,scrollBeyondLastLine:!1,theme:"vc"};this.editor=monaco.editor.create(this.editorContent.nativeElement,this.options?Object.assign(Object.assign({},pe),this.options):pe),this.registerEditorListeners(),this.init.emit(this.editor)}registerEditorListeners(){this.editor.onDidChangeModelContent(()=>{this.propagateChange(this.editor.getValue())}),this.editor.onDidChangeModelDecorations(()=>{const pe=this.modelMarkers.map(({message:ue})=>ue).join("|");this.parsedError!==pe&&(this.parsedError=pe,this.onErrorStatusChange())}),this.editor.onDidBlurEditorText(()=>{this.onTouched()})}ngOnDestroy(){this.editor&&this.editor.dispose()}}return re.\u0275fac=function(pe){return new(pe||re)(i.\u0275\u0275directiveInject(S))},re.\u0275cmp=i.\u0275\u0275defineComponent({type:re,selectors:[["ngx-monaco-editor"]],viewQuery:function(pe,be){if(1&pe&&i.\u0275\u0275viewQuery(p,7),2&pe){let ue;i.\u0275\u0275queryRefresh(ue=i.\u0275\u0275loadQuery())&&(be.editorContent=ue.first)}},inputs:{options:"options",uri:"uri"},outputs:{init:"init"},features:[i.\u0275\u0275ProvidersFeature([{provide:T.NG_VALUE_ACCESSOR,useExisting:(0,i.forwardRef)(()=>re),multi:!0},{provide:T.NG_VALIDATORS,useExisting:(0,i.forwardRef)(()=>re),multi:!0}]),i.\u0275\u0275NgOnChangesFeature],decls:4,vars:0,consts:[["fxFlex","",1,"editor-container"],["container",""],[1,"monaco-editor"],["editor",""]],template:function(pe,be){1&pe&&(i.\u0275\u0275elementStart(0,"div",0,1),i.\u0275\u0275element(2,"div",2,3),i.\u0275\u0275elementEnd())},styles:[".monaco-editor[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0}.editor-container[_ngcontent-%COMP%]{overflow:hidden;position:relative;display:table;width:100%;height:100%;min-width:0}"],changeDetection:0}),re})(),ce=(()=>{class re{constructor(pe){this.monacoLoader=pe,this.init=new i.EventEmitter}ngOnInit(){this.container=this.editorContent.nativeElement,this.monacoLoader.isMonacoLoaded$.pipe((0,_.h)(pe=>pe),(0,u.q)(1)).subscribe(()=>{this.initMonaco()})}ngOnChanges(pe){if(this.editor&&(pe.code&&!pe.code.firstChange||pe.modified&&!pe.modified.firstChange)){const be=monaco.editor.createModel(this.modified),ue=monaco.editor.createModel(this.original);this.editor.setModel({original:ue,modified:be})}this.editor&&pe.options&&!pe.options.firstChange&&(pe.options.previousValue.theme!==pe.options.currentValue.theme&&monaco.editor.setTheme(pe.options.currentValue.theme),this.editor.updateOptions(pe.options.currentValue))}initMonaco(){let pe={readOnly:!0,automaticLayout:!0,theme:"vc"};this.options&&(pe=Object.assign({},pe,this.options)),this.editor=monaco.editor.createDiffEditor(this.container,pe);const be=monaco.editor.createModel(this.original),ue=monaco.editor.createModel(this.modified);this.editor.setModel({original:be,modified:ue}),this.editor.layout(),this.init.emit(this.editor)}ngOnDestroy(){this.editor&&this.editor.dispose()}}return re.\u0275fac=function(pe){return new(pe||re)(i.\u0275\u0275directiveInject(S))},re.\u0275cmp=i.\u0275\u0275defineComponent({type:re,selectors:[["ngx-monaco-diff-editor"]],viewQuery:function(pe,be){if(1&pe&&i.\u0275\u0275viewQuery(y,7),2&pe){let ue;i.\u0275\u0275queryRefresh(ue=i.\u0275\u0275loadQuery())&&(be.editorContent=ue.first)}},inputs:{original:"original",modified:"modified",options:"options"},outputs:{init:"init"},features:[i.\u0275\u0275NgOnChangesFeature],decls:4,vars:0,consts:[["fxFlex","",1,"editor-container"],["container",""],[1,"monaco-editor"],["diffEditor",""]],template:function(pe,be){1&pe&&(i.\u0275\u0275elementStart(0,"div",0,1),i.\u0275\u0275element(2,"div",2,3),i.\u0275\u0275elementEnd())},styles:[".monaco-editor[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0}.editor-container[_ngcontent-%COMP%]{overflow:hidden;position:relative;display:table;width:100%;height:100%;min-width:0}"],changeDetection:0}),re})(),K=(()=>{class re{}return re.\u0275fac=function(pe){return new(pe||re)},re.\u0275mod=i.\u0275\u0275defineNgModule({type:re}),re.\u0275inj=i.\u0275\u0275defineInjector({imports:[[]]}),re})()},1430:(Le,m,l)=>{"use strict";l.r(m),l.d(m,{ANGULAR_SPLIT_DEFAULT_OPTIONS:()=>xe,AngularSplitModule:()=>ct,SplitAreaDirective:()=>et,SplitComponent:()=>He});var i=l(5e3),d=l(9808),_=l(6758),u=l(9751),s=l(8372);const b=["gutterEls"];function C(X,me){if(1&X){const z=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"div",2,3),i.\u0275\u0275listener("mousedown",function(ke){i.\u0275\u0275restoreView(z);const de=i.\u0275\u0275nextContext().index;return i.\u0275\u0275nextContext().startDragging(ke,2*de+1,de+1)})("touchstart",function(ke){i.\u0275\u0275restoreView(z);const de=i.\u0275\u0275nextContext().index;return i.\u0275\u0275nextContext().startDragging(ke,2*de+1,de+1)})("mouseup",function(ke){i.\u0275\u0275restoreView(z);const de=i.\u0275\u0275nextContext().index;return i.\u0275\u0275nextContext().clickGutter(ke,de+1)})("touchend",function(ke){i.\u0275\u0275restoreView(z);const de=i.\u0275\u0275nextContext().index;return i.\u0275\u0275nextContext().clickGutter(ke,de+1)}),i.\u0275\u0275element(2,"div",4),i.\u0275\u0275elementEnd()}if(2&X){const z=i.\u0275\u0275nextContext().index,oe=i.\u0275\u0275nextContext();i.\u0275\u0275styleProp("flex-basis",oe.gutterSize,"px")("order",2*z+1)}}function T(X,me){1&X&&i.\u0275\u0275template(0,C,3,4,"div",1),2&X&&i.\u0275\u0275property("ngIf",!1===me.last)}const p=["*"];function y(X){return void 0!==X.changedTouches&&X.changedTouches.length>0?{x:X.changedTouches[0].clientX,y:X.changedTouches[0].clientY}:void 0!==X.clientX&&void 0!==X.clientY?{x:X.clientX,y:X.clientY}:null}function P(X,me,z){return Math.abs(X.x-me.x)<=z&&Math.abs(X.y-me.y)<=z}function O(X,me){const z=X.nativeElement.getBoundingClientRect();return"horizontal"===me?z.width:z.height}function S(X){return"boolean"==typeof X?X:"false"!==X}function N(X,me){return null==X?me:(X=Number(X),!isNaN(X)&&X>=0?X:me)}function B(X,me){if("percent"===X){const z=me.reduce((oe,ke)=>null!==ke?oe+ke:oe,0);return me.every(oe=>null!==oe)&&z>99.9&&z<100.1}if("pixel"===X)return 1===me.filter(z=>null===z).length}function ce(X){return null===X.size?null:!0===X.component.lockSize?X.size:null===X.component.minSize?null:X.component.minSize>X.size?X.size:X.component.minSize}function K(X){return null===X.size?null:!0===X.component.lockSize?X.size:null===X.component.maxSize?null:X.component.maxSize<X.size?X.size:X.component.maxSize}function re(X,me,z,oe){return me.reduce((ke,de)=>{const Ue=function Me(X,me,z,oe){return 0===z?{areaSnapshot:me,pixelAbsorb:0,percentAfterAbsorption:me.sizePercentAtStart,pixelRemain:0}:0===me.sizePixelAtStart&&z<0?{areaSnapshot:me,pixelAbsorb:0,percentAfterAbsorption:0,pixelRemain:z}:"percent"===X?function pe(X,me,z){const ke=(X.sizePixelAtStart+me)/z*100;if(me>0){if(null!==X.area.maxSize&&ke>X.area.maxSize){const de=X.area.maxSize/100*z;return{areaSnapshot:X,pixelAbsorb:de,percentAfterAbsorption:X.area.maxSize,pixelRemain:X.sizePixelAtStart+me-de}}return{areaSnapshot:X,pixelAbsorb:me,percentAfterAbsorption:ke>100?100:ke,pixelRemain:0}}if(me<0){if(null!==X.area.minSize&&ke<X.area.minSize){const de=X.area.minSize/100*z;return{areaSnapshot:X,pixelAbsorb:de,percentAfterAbsorption:X.area.minSize,pixelRemain:X.sizePixelAtStart+me-de}}return ke<0?{areaSnapshot:X,pixelAbsorb:-X.sizePixelAtStart,percentAfterAbsorption:0,pixelRemain:me+X.sizePixelAtStart}:{areaSnapshot:X,pixelAbsorb:me,percentAfterAbsorption:ke,pixelRemain:0}}}(me,z,oe):"pixel"===X?function be(X,me,z){const oe=X.sizePixelAtStart+me;return me>0?null!==X.area.maxSize&&oe>X.area.maxSize?{areaSnapshot:X,pixelAbsorb:X.area.maxSize-X.sizePixelAtStart,percentAfterAbsorption:-1,pixelRemain:oe-X.area.maxSize}:{areaSnapshot:X,pixelAbsorb:me,percentAfterAbsorption:-1,pixelRemain:0}:me<0?null!==X.area.minSize&&oe<X.area.minSize?{areaSnapshot:X,pixelAbsorb:X.area.minSize+me-oe,percentAfterAbsorption:-1,pixelRemain:oe-X.area.minSize}:oe<0?{areaSnapshot:X,pixelAbsorb:-X.sizePixelAtStart,percentAfterAbsorption:-1,pixelRemain:me+X.sizePixelAtStart}:{areaSnapshot:X,pixelAbsorb:me,percentAfterAbsorption:-1,pixelRemain:0}:void 0}(me,z):void 0}(X,de,ke.remain,oe);return ke.list.push(Ue),ke.remain=Ue.pixelRemain,ke},{remain:z,list:[]})}function ue(X,me){"percent"===X?me.areaSnapshot.area.size=me.percentAfterAbsorption:"pixel"===X&&null!==me.areaSnapshot.area.size&&(me.areaSnapshot.area.size=me.areaSnapshot.sizePixelAtStart+me.pixelAbsorb)}const xe=new i.InjectionToken("angular-split-global-config");let He=(()=>{class X{constructor(z,oe,ke,de,Ue){this.ngZone=z,this.elRef=oe,this.cdRef=ke,this.renderer=de,this.gutterClickDeltaPx=2,this._config={direction:"horizontal",unit:"percent",gutterSize:11,gutterStep:1,restrictMove:!1,useTransition:!1,disabled:!1,dir:"ltr",gutterDblClickDuration:0},this.dragStart=new i.EventEmitter(!1),this.dragEnd=new i.EventEmitter(!1),this.gutterClick=new i.EventEmitter(!1),this.gutterDblClick=new i.EventEmitter(!1),this.dragProgressSubject=new _.x,this.dragProgress$=this.dragProgressSubject.asObservable(),this.isDragging=!1,this.isWaitingClear=!1,this.isWaitingInitialMove=!1,this.dragListeners=[],this.snapshot=null,this.startPoint=null,this.endPoint=null,this.displayedAreas=[],this.hiddenAreas=[],this._clickTimeout=null,this.direction=this._direction,this._config=Ue?Object.assign(this._config,Ue):this._config,Object.keys(this._config).forEach(fe=>{this[fe]=this._config[fe]})}set direction(z){this._direction="vertical"===z?"vertical":"horizontal",this.renderer.addClass(this.elRef.nativeElement,`as-${this._direction}`),this.renderer.removeClass(this.elRef.nativeElement,"as-"+("vertical"===this._direction?"horizontal":"vertical")),this.build(!1,!1)}get direction(){return this._direction}set unit(z){this._unit="pixel"===z?"pixel":"percent",this.renderer.addClass(this.elRef.nativeElement,`as-${this._unit}`),this.renderer.removeClass(this.elRef.nativeElement,"as-"+("pixel"===this._unit?"percent":"pixel")),this.build(!1,!0)}get unit(){return this._unit}set gutterSize(z){this._gutterSize=N(z,11),this.build(!1,!1)}get gutterSize(){return this._gutterSize}set gutterStep(z){this._gutterStep=N(z,1)}get gutterStep(){return this._gutterStep}set restrictMove(z){this._restrictMove=S(z)}get restrictMove(){return this._restrictMove}set useTransition(z){this._useTransition=S(z),this._useTransition?this.renderer.addClass(this.elRef.nativeElement,"as-transition"):this.renderer.removeClass(this.elRef.nativeElement,"as-transition")}get useTransition(){return this._useTransition}set disabled(z){this._disabled=S(z),this._disabled?this.renderer.addClass(this.elRef.nativeElement,"as-disabled"):this.renderer.removeClass(this.elRef.nativeElement,"as-disabled")}get disabled(){return this._disabled}set dir(z){this._dir="rtl"===z?"rtl":"ltr",this.renderer.setAttribute(this.elRef.nativeElement,"dir",this._dir)}get dir(){return this._dir}set gutterDblClickDuration(z){this._gutterDblClickDuration=N(z,0)}get gutterDblClickDuration(){return this._gutterDblClickDuration}get transitionEnd(){return new u.y(z=>this.transitionEndSubscriber=z).pipe((0,s.b)(20))}ngAfterViewInit(){this.ngZone.runOutsideAngular(()=>{setTimeout(()=>this.renderer.addClass(this.elRef.nativeElement,"as-init"))})}getNbGutters(){return 0===this.displayedAreas.length?0:this.displayedAreas.length-1}addArea(z){const oe={component:z,order:0,size:0,minSize:null,maxSize:null,sizeBeforeCollapse:null,gutterBeforeCollapse:0};!0===z.visible?(this.displayedAreas.push(oe),this.build(!0,!0)):this.hiddenAreas.push(oe)}removeArea(z){if(this.displayedAreas.some(oe=>oe.component===z)){const oe=this.displayedAreas.find(ke=>ke.component===z);this.displayedAreas.splice(this.displayedAreas.indexOf(oe),1),this.build(!0,!0)}else if(this.hiddenAreas.some(oe=>oe.component===z)){const oe=this.hiddenAreas.find(ke=>ke.component===z);this.hiddenAreas.splice(this.hiddenAreas.indexOf(oe),1)}}updateArea(z,oe,ke){!0===z.visible&&this.build(oe,ke)}showArea(z){const oe=this.hiddenAreas.find(de=>de.component===z);if(void 0===oe)return;const ke=this.hiddenAreas.splice(this.hiddenAreas.indexOf(oe),1);this.displayedAreas.push(...ke),this.build(!0,!0)}hideArea(z){const oe=this.displayedAreas.find(de=>de.component===z);if(void 0===oe)return;const ke=this.displayedAreas.splice(this.displayedAreas.indexOf(oe),1);ke.forEach(de=>{de.order=0,de.size=0}),this.hiddenAreas.push(...ke),this.build(!0,!0)}getVisibleAreaSizes(){return this.displayedAreas.map(z=>null===z.size?"*":z.size)}setVisibleAreaSizes(z){if(z.length!==this.displayedAreas.length)return!1;const oe=z.map(de=>N(de,null));return!1!==B(this.unit,oe)&&(this.displayedAreas.forEach((de,Ue)=>de.component._size=oe[Ue]),this.build(!1,!0),!0)}build(z,oe){if(this.stopDragging(),!0===z&&(this.displayedAreas.every(ke=>null!==ke.component.order)&&this.displayedAreas.sort((ke,de)=>ke.component.order-de.component.order),this.displayedAreas.forEach((ke,de)=>{ke.order=2*de,ke.component.setStyleOrder(ke.order)})),!0===oe){const ke=B(this.unit,this.displayedAreas.map(de=>de.component.size));switch(this.unit){case"percent":{const de=100/this.displayedAreas.length;this.displayedAreas.forEach(Ue=>{Ue.size=ke?Ue.component.size:de,Ue.minSize=ce(Ue),Ue.maxSize=K(Ue)});break}case"pixel":if(ke)this.displayedAreas.forEach(de=>{de.size=de.component.size,de.minSize=ce(de),de.maxSize=K(de)});else{const de=this.displayedAreas.filter(Ue=>null===Ue.component.size);if(0===de.length&&this.displayedAreas.length>0)this.displayedAreas.forEach((Ue,fe)=>{Ue.size=0===fe?null:Ue.component.size,Ue.minSize=0===fe?null:ce(Ue),Ue.maxSize=0===fe?null:K(Ue)});else if(de.length>1){let Ue=!1;this.displayedAreas.forEach(fe=>{null===fe.component.size?!1===Ue?(fe.size=null,fe.minSize=null,fe.maxSize=null,Ue=!0):(fe.size=100,fe.minSize=null,fe.maxSize=null):(fe.size=fe.component.size,fe.minSize=ce(fe),fe.maxSize=K(fe))})}}}}this.refreshStyleSizes(),this.cdRef.markForCheck()}refreshStyleSizes(){if("percent"===this.unit)if(1===this.displayedAreas.length)this.displayedAreas[0].component.setStyleFlex(0,0,"100%",!1,!1);else{const z=this.getNbGutters()*this.gutterSize;this.displayedAreas.forEach(oe=>{oe.component.setStyleFlex(0,0,`calc( ${oe.size}% - ${oe.size/100*z}px )`,null!==oe.minSize&&oe.minSize===oe.size,null!==oe.maxSize&&oe.maxSize===oe.size)})}else"pixel"===this.unit&&this.displayedAreas.forEach(z=>{null===z.size?z.component.setStyleFlex(1,1,1===this.displayedAreas.length?"100%":"auto",!1,!1):1===this.displayedAreas.length?z.component.setStyleFlex(0,0,"100%",!1,!1):z.component.setStyleFlex(0,0,`${z.size}px`,null!==z.minSize&&z.minSize===z.size,null!==z.maxSize&&z.maxSize===z.size)})}clickGutter(z,oe){const ke=y(z);this.startPoint&&P(this.startPoint,ke,this.gutterClickDeltaPx)&&(!this.isDragging||this.isWaitingInitialMove)&&(null!==this._clickTimeout?(window.clearTimeout(this._clickTimeout),this._clickTimeout=null,this.notify("dblclick",oe),this.stopDragging()):this._clickTimeout=window.setTimeout(()=>{this._clickTimeout=null,this.notify("click",oe),this.stopDragging()},this.gutterDblClickDuration))}startDragging(z,oe,ke){z.preventDefault(),z.stopPropagation(),this.startPoint=y(z),null!==this.startPoint&&!0!==this.disabled&&!0!==this.isWaitingClear&&(this.snapshot={gutterNum:ke,lastSteppedOffset:0,allAreasSizePixel:O(this.elRef,this.direction)-this.getNbGutters()*this.gutterSize,allInvolvedAreasSizePercent:100,areasBeforeGutter:[],areasAfterGutter:[]},this.displayedAreas.forEach(de=>{const Ue={area:de,sizePixelAtStart:O(de.component.elRef,this.direction),sizePercentAtStart:"percent"===this.unit?de.size:-1};de.order<oe?!0===this.restrictMove?this.snapshot.areasBeforeGutter=[Ue]:this.snapshot.areasBeforeGutter.unshift(Ue):de.order>oe&&(!0===this.restrictMove?0===this.snapshot.areasAfterGutter.length&&(this.snapshot.areasAfterGutter=[Ue]):this.snapshot.areasAfterGutter.push(Ue))}),this.snapshot.allInvolvedAreasSizePercent=[...this.snapshot.areasBeforeGutter,...this.snapshot.areasAfterGutter].reduce((de,Ue)=>de+Ue.sizePercentAtStart,0),0!==this.snapshot.areasBeforeGutter.length&&0!==this.snapshot.areasAfterGutter.length&&(this.dragListeners.push(this.renderer.listen("document","mouseup",this.stopDragging.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchend",this.stopDragging.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchcancel",this.stopDragging.bind(this))),this.ngZone.runOutsideAngular(()=>{this.dragListeners.push(this.renderer.listen("document","mousemove",this.dragEvent.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchmove",this.dragEvent.bind(this)))}),this.displayedAreas.forEach(de=>de.component.lockEvents()),this.isDragging=!0,this.isWaitingInitialMove=!0))}dragEvent(z){z.preventDefault(),z.stopPropagation();const oe=y(z);if(null!==this._clickTimeout&&!P(this.startPoint,oe,this.gutterClickDeltaPx)&&(window.clearTimeout(this._clickTimeout),this._clickTimeout=null),!1===this.isDragging||(this.endPoint=y(z),null===this.endPoint))return;if(this.isWaitingInitialMove){if(this.startPoint.x===this.endPoint.x&&this.startPoint.y===this.endPoint.y)return;this.ngZone.run(()=>{this.isWaitingInitialMove=!1,this.renderer.addClass(this.elRef.nativeElement,"as-dragging"),this.renderer.addClass(this.gutterEls.toArray()[this.snapshot.gutterNum-1].nativeElement,"as-dragged"),this.notify("start",this.snapshot.gutterNum)})}let ke="horizontal"===this.direction?this.startPoint.x-this.endPoint.x:this.startPoint.y-this.endPoint.y;"rtl"===this.dir&&(ke=-ke);const de=Math.round(ke/this.gutterStep)*this.gutterStep;if(de===this.snapshot.lastSteppedOffset)return;this.snapshot.lastSteppedOffset=de;let Ue=re(this.unit,this.snapshot.areasBeforeGutter,-de,this.snapshot.allAreasSizePixel),fe=re(this.unit,this.snapshot.areasAfterGutter,de,this.snapshot.allAreasSizePixel);if(0!==Ue.remain&&0!==fe.remain?Math.abs(Ue.remain)===Math.abs(fe.remain)||(Math.abs(Ue.remain)>Math.abs(fe.remain)?fe=re(this.unit,this.snapshot.areasAfterGutter,de+Ue.remain,this.snapshot.allAreasSizePixel):Ue=re(this.unit,this.snapshot.areasBeforeGutter,-(de-fe.remain),this.snapshot.allAreasSizePixel)):0!==Ue.remain?fe=re(this.unit,this.snapshot.areasAfterGutter,de+Ue.remain,this.snapshot.allAreasSizePixel):0!==fe.remain&&(Ue=re(this.unit,this.snapshot.areasBeforeGutter,-(de-fe.remain),this.snapshot.allAreasSizePixel)),"percent"===this.unit){const Je=[...Ue.list,...fe.list],Te=Je.find(Ge=>0!==Ge.percentAfterAbsorption&&Ge.percentAfterAbsorption!==Ge.areaSnapshot.area.minSize&&Ge.percentAfterAbsorption!==Ge.areaSnapshot.area.maxSize);Te&&(Te.percentAfterAbsorption=this.snapshot.allInvolvedAreasSizePercent-Je.filter(Ge=>Ge!==Te).reduce((Ge,vt)=>Ge+vt.percentAfterAbsorption,0))}Ue.list.forEach(Je=>ue(this.unit,Je)),fe.list.forEach(Je=>ue(this.unit,Je)),this.refreshStyleSizes(),this.notify("progress",this.snapshot.gutterNum)}stopDragging(z){if(z&&(z.preventDefault(),z.stopPropagation()),!1!==this.isDragging){for(this.displayedAreas.forEach(oe=>oe.component.unlockEvents());this.dragListeners.length>0;){const oe=this.dragListeners.pop();oe&&oe()}this.isDragging=!1,!1===this.isWaitingInitialMove&&this.notify("end",this.snapshot.gutterNum),this.renderer.removeClass(this.elRef.nativeElement,"as-dragging"),this.renderer.removeClass(this.gutterEls.toArray()[this.snapshot.gutterNum-1].nativeElement,"as-dragged"),this.snapshot=null,this.isWaitingClear=!0,this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{this.startPoint=null,this.endPoint=null,this.isWaitingClear=!1})})}}notify(z,oe){const ke=this.getVisibleAreaSizes();"start"===z?this.dragStart.emit({gutterNum:oe,sizes:ke}):"end"===z?this.dragEnd.emit({gutterNum:oe,sizes:ke}):"click"===z?this.gutterClick.emit({gutterNum:oe,sizes:ke}):"dblclick"===z?this.gutterDblClick.emit({gutterNum:oe,sizes:ke}):"transitionEnd"===z?this.transitionEndSubscriber&&this.ngZone.run(()=>this.transitionEndSubscriber.next(ke)):"progress"===z&&this.dragProgressSubject.next({gutterNum:oe,sizes:ke})}ngOnDestroy(){this.stopDragging()}collapseArea(z,oe,ke){const de=this.displayedAreas.find(Je=>Je.component===z);if(void 0===de)return;const Ue="right"===ke?1:-1;de.sizeBeforeCollapse||(de.sizeBeforeCollapse=de.size,de.gutterBeforeCollapse=Ue),de.size=oe;const fe=this.gutterEls.find(Je=>Je.nativeElement.style.order===`${de.order+Ue}`);fe&&this.renderer.addClass(fe.nativeElement,"as-split-gutter-collapsed"),this.updateArea(z,!1,!1)}expandArea(z){const oe=this.displayedAreas.find(de=>de.component===z);if(void 0===oe||!oe.sizeBeforeCollapse)return;oe.size=oe.sizeBeforeCollapse,oe.sizeBeforeCollapse=null;const ke=this.gutterEls.find(de=>de.nativeElement.style.order===`${oe.order+oe.gutterBeforeCollapse}`);ke&&this.renderer.removeClass(ke.nativeElement,"as-split-gutter-collapsed"),this.updateArea(z,!1,!1)}}return X.\u0275fac=function(z){return new(z||X)(i.\u0275\u0275directiveInject(i.NgZone),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.ChangeDetectorRef),i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(xe,8))},X.\u0275cmp=i.\u0275\u0275defineComponent({type:X,selectors:[["as-split"]],viewQuery:function(z,oe){if(1&z&&i.\u0275\u0275viewQuery(b,5),2&z){let ke;i.\u0275\u0275queryRefresh(ke=i.\u0275\u0275loadQuery())&&(oe.gutterEls=ke)}},inputs:{direction:"direction",unit:"unit",gutterSize:"gutterSize",gutterStep:"gutterStep",restrictMove:"restrictMove",useTransition:"useTransition",disabled:"disabled",dir:"dir",gutterDblClickDuration:"gutterDblClickDuration",gutterClickDeltaPx:"gutterClickDeltaPx"},outputs:{transitionEnd:"transitionEnd",dragStart:"dragStart",dragEnd:"dragEnd",gutterClick:"gutterClick",gutterDblClick:"gutterDblClick"},exportAs:["asSplit"],ngContentSelectors:p,decls:2,vars:1,consts:[["ngFor","",3,"ngForOf"],["class","as-split-gutter",3,"flex-basis","order","mousedown","touchstart","mouseup","touchend",4,"ngIf"],[1,"as-split-gutter",3,"mousedown","touchstart","mouseup","touchend"],["gutterEls",""],[1,"as-split-gutter-icon"]],template:function(z,oe){1&z&&(i.\u0275\u0275projectionDef(),i.\u0275\u0275projection(0),i.\u0275\u0275template(1,T,1,1,"ng-template",0)),2&z&&(i.\u0275\u0275advance(1),i.\u0275\u0275property("ngForOf",oe.displayedAreas))},directives:[d.NgForOf,d.NgIf],styles:["[_nghost-%COMP%]{display:flex;flex-wrap:nowrap;justify-content:flex-start;align-items:stretch;overflow:hidden;width:100%;height:100%}[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{flex-grow:0;flex-shrink:0;background-color:#eee;display:flex;align-items:center;justify-content:center}[_nghost-%COMP%] > .as-split-gutter.as-split-gutter-collapsed[_ngcontent-%COMP%]{flex-basis:1px!important;pointer-events:none}[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] > .as-split-gutter-icon[_ngcontent-%COMP%]{width:100%;height:100%;background-position:center center;background-repeat:no-repeat}[_nghost-%COMP%] >.as-split-area{flex-grow:0;flex-shrink:0;overflow-x:hidden;overflow-y:auto}[_nghost-%COMP%] >.as-split-area.as-hidden{flex:0 1 0px!important;overflow-x:hidden;overflow-y:hidden}.as-horizontal[_nghost-%COMP%]{flex-direction:row}.as-horizontal[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{flex-direction:row;cursor:col-resize;height:100%}.as-horizontal[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] > .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==)}.as-horizontal[_nghost-%COMP%] >.as-split-area{height:100%}.as-vertical[_nghost-%COMP%]{flex-direction:column}.as-vertical[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{flex-direction:column;cursor:row-resize;width:100%}.as-vertical[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAFCAMAAABl/6zIAAAABlBMVEUAAADMzMzIT8AyAAAAAXRSTlMAQObYZgAAABRJREFUeAFjYGRkwIMJSeMHlBkOABP7AEGzSuPKAAAAAElFTkSuQmCC)}.as-vertical[_nghost-%COMP%] >.as-split-area{width:100%}.as-vertical[_nghost-%COMP%] >.as-split-area.as-hidden{max-width:0}.as-disabled[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{cursor:default}.as-disabled[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url()}.as-transition.as-init[_nghost-%COMP%]:not(.as-dragging) > .as-split-gutter[_ngcontent-%COMP%], .as-transition.as-init[_nghost-%COMP%]:not(.as-dragging) >.as-split-area{transition:flex-basis .3s}"],changeDetection:0}),X})(),et=(()=>{class X{constructor(z,oe,ke,de){this.ngZone=z,this.elRef=oe,this.renderer=ke,this.split=de,this._order=null,this._size=null,this._minSize=null,this._maxSize=null,this._lockSize=!1,this._visible=!0,this.lockListeners=[],this.renderer.addClass(this.elRef.nativeElement,"as-split-area")}set order(z){this._order=N(z,null),this.split.updateArea(this,!0,!1)}get order(){return this._order}set size(z){this._size=N(z,null),this.split.updateArea(this,!1,!0)}get size(){return this._size}set minSize(z){this._minSize=N(z,null),this.split.updateArea(this,!1,!0)}get minSize(){return this._minSize}set maxSize(z){this._maxSize=N(z,null),this.split.updateArea(this,!1,!0)}get maxSize(){return this._maxSize}set lockSize(z){this._lockSize=S(z),this.split.updateArea(this,!1,!0)}get lockSize(){return this._lockSize}set visible(z){this._visible=S(z),this._visible?(this.split.showArea(this),this.renderer.removeClass(this.elRef.nativeElement,"as-hidden")):(this.split.hideArea(this),this.renderer.addClass(this.elRef.nativeElement,"as-hidden"))}get visible(){return this._visible}ngOnInit(){this.split.addArea(this),this.ngZone.runOutsideAngular(()=>{this.transitionListener=this.renderer.listen(this.elRef.nativeElement,"transitionend",z=>{"flex-basis"===z.propertyName&&this.split.notify("transitionEnd",-1)})})}setStyleOrder(z){this.renderer.setStyle(this.elRef.nativeElement,"order",z)}setStyleFlex(z,oe,ke,de,Ue){this.renderer.setStyle(this.elRef.nativeElement,"flex-grow",z),this.renderer.setStyle(this.elRef.nativeElement,"flex-shrink",oe),this.renderer.setStyle(this.elRef.nativeElement,"flex-basis",ke),!0===de?this.renderer.addClass(this.elRef.nativeElement,"as-min"):this.renderer.removeClass(this.elRef.nativeElement,"as-min"),!0===Ue?this.renderer.addClass(this.elRef.nativeElement,"as-max"):this.renderer.removeClass(this.elRef.nativeElement,"as-max")}lockEvents(){this.ngZone.runOutsideAngular(()=>{this.lockListeners.push(this.renderer.listen(this.elRef.nativeElement,"selectstart",()=>!1)),this.lockListeners.push(this.renderer.listen(this.elRef.nativeElement,"dragstart",()=>!1))})}unlockEvents(){for(;this.lockListeners.length>0;){const z=this.lockListeners.pop();z&&z()}}ngOnDestroy(){this.unlockEvents(),this.transitionListener&&this.transitionListener(),this.split.removeArea(this)}collapse(z=0,oe="right"){this.split.collapseArea(this,z,oe)}expand(){this.split.expandArea(this)}}return X.\u0275fac=function(z){return new(z||X)(i.\u0275\u0275directiveInject(i.NgZone),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(He))},X.\u0275dir=i.\u0275\u0275defineDirective({type:X,selectors:[["as-split-area"],["","as-split-area",""]],inputs:{order:"order",size:"size",minSize:"minSize",maxSize:"maxSize",lockSize:"lockSize",visible:"visible"},exportAs:["asSplitArea"]}),X})(),ct=(()=>{class X{static forRoot(){return console.warn("AngularSplitModule.forRoot() is deprecated and will be removed in v6"),{ngModule:X,providers:[]}}static forChild(){return console.warn("AngularSplitModule.forChild() is deprecated and will be removed in v6"),{ngModule:X,providers:[]}}}return X.\u0275fac=function(z){return new(z||X)},X.\u0275mod=i.\u0275\u0275defineNgModule({type:X}),X.\u0275inj=i.\u0275\u0275defineInjector({imports:[[d.CommonModule]]}),X})()},2290:(Le,m,l)=>{"use strict";l.r(m),l.d(m,{BasePortalHost:()=>ue,ComponentPortal:()=>be,DefaultGlobalConfig:()=>fe,DefaultNoAnimationsGlobalConfig:()=>vt,DefaultNoComponentGlobalConfig:()=>He,Overlay:()=>ke,OverlayContainer:()=>oe,OverlayRef:()=>z,TOAST_CONFIG:()=>et,Toast:()=>Ue,ToastContainerDirective:()=>Me,ToastContainerModule:()=>pe,ToastInjector:()=>X,ToastNoAnimation:()=>Ge,ToastNoAnimationModule:()=>St,ToastPackage:()=>xe,ToastRef:()=>ct,ToastrComponentlessModule:()=>Te,ToastrModule:()=>Je,ToastrService:()=>de});var i=l(5e3),d=l(1777),_=l(6758),u=l(9808),s=l(2313);const b=["toast-component",""];function C(Re,qe){if(1&Re){const Y=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"button",5),i.\u0275\u0275listener("click",function(){return i.\u0275\u0275restoreView(Y),i.\u0275\u0275nextContext().remove()}),i.\u0275\u0275elementStart(1,"span",6),i.\u0275\u0275text(2,"\xd7"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementEnd()}}function T(Re,qe){if(1&Re&&(i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275text(1),i.\u0275\u0275elementContainerEnd()),2&Re){const Y=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1("[",Y.duplicatesCount+1,"]")}}function p(Re,qe){if(1&Re&&(i.\u0275\u0275elementStart(0,"div"),i.\u0275\u0275text(1),i.\u0275\u0275template(2,T,2,1,"ng-container",4),i.\u0275\u0275elementEnd()),2&Re){const Y=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(Y.options.titleClass),i.\u0275\u0275attribute("aria-label",Y.title),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",Y.title," "),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",Y.duplicatesCount)}}function y(Re,qe){if(1&Re&&i.\u0275\u0275element(0,"div",7),2&Re){const Y=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(Y.options.messageClass),i.\u0275\u0275property("innerHTML",Y.message,i.\u0275\u0275sanitizeHtml)}}function P(Re,qe){if(1&Re&&(i.\u0275\u0275elementStart(0,"div",8),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&Re){const Y=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(Y.options.messageClass),i.\u0275\u0275attribute("aria-label",Y.message),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",Y.message," ")}}function O(Re,qe){if(1&Re&&(i.\u0275\u0275elementStart(0,"div"),i.\u0275\u0275element(1,"div",9),i.\u0275\u0275elementEnd()),2&Re){const Y=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275styleProp("width",Y.width+"%")}}function S(Re,qe){if(1&Re){const Y=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"button",5),i.\u0275\u0275listener("click",function(){return i.\u0275\u0275restoreView(Y),i.\u0275\u0275nextContext().remove()}),i.\u0275\u0275elementStart(1,"span",6),i.\u0275\u0275text(2,"\xd7"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementEnd()}}function N(Re,qe){if(1&Re&&(i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275text(1),i.\u0275\u0275elementContainerEnd()),2&Re){const Y=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1("[",Y.duplicatesCount+1,"]")}}function B(Re,qe){if(1&Re&&(i.\u0275\u0275elementStart(0,"div"),i.\u0275\u0275text(1),i.\u0275\u0275template(2,N,2,1,"ng-container",4),i.\u0275\u0275elementEnd()),2&Re){const Y=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(Y.options.titleClass),i.\u0275\u0275attribute("aria-label",Y.title),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",Y.title," "),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",Y.duplicatesCount)}}function ce(Re,qe){if(1&Re&&i.\u0275\u0275element(0,"div",7),2&Re){const Y=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(Y.options.messageClass),i.\u0275\u0275property("innerHTML",Y.message,i.\u0275\u0275sanitizeHtml)}}function K(Re,qe){if(1&Re&&(i.\u0275\u0275elementStart(0,"div",8),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&Re){const Y=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(Y.options.messageClass),i.\u0275\u0275attribute("aria-label",Y.message),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",Y.message," ")}}function re(Re,qe){if(1&Re&&(i.\u0275\u0275elementStart(0,"div"),i.\u0275\u0275element(1,"div",9),i.\u0275\u0275elementEnd()),2&Re){const Y=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275styleProp("width",Y.width+"%")}}let Me=(()=>{class Re{constructor(Y){this.el=Y}getContainerElement(){return this.el.nativeElement}}return Re.\u0275fac=function(Y){return new(Y||Re)(i.\u0275\u0275directiveInject(i.ElementRef))},Re.\u0275dir=i.\u0275\u0275defineDirective({type:Re,selectors:[["","toastContainer",""]],exportAs:["toastContainer"]}),Re})(),pe=(()=>{class Re{}return Re.\u0275fac=function(Y){return new(Y||Re)},Re.\u0275mod=i.\u0275\u0275defineNgModule({type:Re}),Re.\u0275inj=i.\u0275\u0275defineInjector({}),Re})();class be{constructor(qe,Y){this.component=qe,this.injector=Y}attach(qe,Y){return this._attachedHost=qe,qe.attach(this,Y)}detach(){const qe=this._attachedHost;if(qe)return this._attachedHost=void 0,qe.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(qe){this._attachedHost=qe}}class ue{attach(qe,Y){return this._attachedPortal=qe,this.attachComponentPortal(qe,Y)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(qe){this._disposeFn=qe}}class xe{constructor(qe,Y,he,Ee,Ie,ge){this.toastId=qe,this.config=Y,this.message=he,this.title=Ee,this.toastType=Ie,this.toastRef=ge,this._onTap=new _.x,this._onAction=new _.x,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(qe){this._onAction.next(qe)}onAction(){return this._onAction.asObservable()}}const He={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing",payload:null},et=new i.InjectionToken("ToastConfig");class ct{constructor(qe){this._overlayRef=qe,this.duplicatesCount=0,this._afterClosed=new _.x,this._activate=new _.x,this._manualClose=new _.x,this._resetTimeout=new _.x,this._countDuplicate=new _.x}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(qe,Y){qe&&this._resetTimeout.next(),Y&&this._countDuplicate.next(++this.duplicatesCount)}}class X{constructor(qe,Y){this._toastPackage=qe,this._parentInjector=Y}get(qe,Y,he){return qe===xe?this._toastPackage:this._parentInjector.get(qe,Y,he)}}class me extends ue{constructor(qe,Y,he){super(),this._hostDomElement=qe,this._componentFactoryResolver=Y,this._appRef=he}attachComponentPortal(qe,Y){const he=this._componentFactoryResolver.resolveComponentFactory(qe.component);let Ee;return Ee=he.create(qe.injector),this._appRef.attachView(Ee.hostView),this.setDisposeFn(()=>{this._appRef.detachView(Ee.hostView),Ee.destroy()}),Y?this._hostDomElement.insertBefore(this._getComponentRootNode(Ee),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(Ee)),Ee}_getComponentRootNode(qe){return qe.hostView.rootNodes[0]}}class z{constructor(qe){this._portalHost=qe}attach(qe,Y=!0){return this._portalHost.attach(qe,Y)}detach(){return this._portalHost.detach()}}let oe=(()=>{class Re{constructor(Y){this._document=Y}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const Y=this._document.createElement("div");Y.classList.add("overlay-container"),this._document.body.appendChild(Y),this._containerElement=Y}}return Re.\u0275fac=function(Y){return new(Y||Re)(i.\u0275\u0275inject(u.DOCUMENT))},Re.\u0275prov=i.\u0275\u0275defineInjectable({token:Re,factory:Re.\u0275fac,providedIn:"root"}),Re})(),ke=(()=>{class Re{constructor(Y,he,Ee,Ie){this._overlayContainer=Y,this._componentFactoryResolver=he,this._appRef=Ee,this._document=Ie,this._paneElements=new Map}create(Y,he){return this._createOverlayRef(this.getPaneElement(Y,he))}getPaneElement(Y="",he){return this._paneElements.get(he)||this._paneElements.set(he,{}),this._paneElements.get(he)[Y]||(this._paneElements.get(he)[Y]=this._createPaneElement(Y,he)),this._paneElements.get(he)[Y]}_createPaneElement(Y,he){const Ee=this._document.createElement("div");return Ee.id="toast-container",Ee.classList.add(Y),Ee.classList.add("toast-container"),he?he.getContainerElement().appendChild(Ee):this._overlayContainer.getContainerElement().appendChild(Ee),Ee}_createPortalHost(Y){return new me(Y,this._componentFactoryResolver,this._appRef)}_createOverlayRef(Y){return new z(this._createPortalHost(Y))}}return Re.\u0275fac=function(Y){return new(Y||Re)(i.\u0275\u0275inject(oe),i.\u0275\u0275inject(i.ComponentFactoryResolver),i.\u0275\u0275inject(i.ApplicationRef),i.\u0275\u0275inject(u.DOCUMENT))},Re.\u0275prov=i.\u0275\u0275defineInjectable({token:Re,factory:Re.\u0275fac,providedIn:"root"}),Re})(),de=(()=>{class Re{constructor(Y,he,Ee,Ie,ge){this.overlay=he,this._injector=Ee,this.sanitizer=Ie,this.ngZone=ge,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig=Object.assign(Object.assign({},Y.default),Y.config),Y.config.iconClasses&&(this.toastrConfig.iconClasses=Object.assign(Object.assign({},Y.default.iconClasses),Y.config.iconClasses))}show(Y,he,Ee={},Ie=""){return this._preBuildNotification(Ie,Y,he,this.applyConfig(Ee))}success(Y,he,Ee={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",Y,he,this.applyConfig(Ee))}error(Y,he,Ee={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",Y,he,this.applyConfig(Ee))}info(Y,he,Ee={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",Y,he,this.applyConfig(Ee))}warning(Y,he,Ee={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",Y,he,this.applyConfig(Ee))}clear(Y){for(const he of this.toasts)if(void 0!==Y){if(he.toastId===Y)return void he.toastRef.manualClose()}else he.toastRef.manualClose()}remove(Y){const he=this._findToast(Y);if(!he||(he.activeToast.toastRef.close(),this.toasts.splice(he.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActive<this.toastrConfig.maxOpened&&this.toasts[this.currentlyActive]){const Ee=this.toasts[this.currentlyActive].toastRef;Ee.isInactive()||(this.currentlyActive=this.currentlyActive+1,Ee.activate())}return!0}findDuplicate(Y="",he="",Ee,Ie){const{includeTitleDuplicates:ge}=this.toastrConfig;for(const Xe of this.toasts){const pt=ge&&Xe.title===Y;if((!ge||pt)&&Xe.message===he)return Xe.toastRef.onDuplicate(Ee,Ie),Xe}return null}applyConfig(Y={}){return Object.assign(Object.assign({},this.toastrConfig),Y)}_findToast(Y){for(let he=0;he<this.toasts.length;he++)if(this.toasts[he].toastId===Y)return{index:he,activeToast:this.toasts[he]};return null}_preBuildNotification(Y,he,Ee,Ie){return Ie.onActivateTick?this.ngZone.run(()=>this._buildNotification(Y,he,Ee,Ie)):this._buildNotification(Y,he,Ee,Ie)}_buildNotification(Y,he,Ee,Ie){if(!Ie.toastComponent)throw new Error("toastComponent required");const ge=this.findDuplicate(Ee,he,this.toastrConfig.resetTimeoutOnDuplicate&&Ie.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&Ee||he)&&this.toastrConfig.preventDuplicates&&null!==ge)return ge;this.previousToastMessage=he;let Xe=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(Xe=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const pt=this.overlay.create(Ie.positionClass,this.overlayContainer);this.index=this.index+1;let Tt=he;he&&Ie.enableHtml&&(Tt=this.sanitizer.sanitize(i.SecurityContext.HTML,he));const Rt=new ct(pt),dt=new xe(this.index,Ie,Tt,Ee,Y,Rt),Ze=new X(dt,this._injector),k=new be(Ie.toastComponent,Ze),ne=pt.attach(k,this.toastrConfig.newestOnTop);Rt.componentInstance=ne.instance;const Pe={toastId:this.index,title:Ee||"",message:he||"",toastRef:Rt,onShown:Rt.afterActivate(),onHidden:Rt.afterClosed(),onTap:dt.onTap(),onAction:dt.onAction(),portal:ne};return Xe||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{Pe.toastRef.activate()})),this.toasts.push(Pe),Pe}}return Re.\u0275fac=function(Y){return new(Y||Re)(i.\u0275\u0275inject(et),i.\u0275\u0275inject(ke),i.\u0275\u0275inject(i.Injector),i.\u0275\u0275inject(s.DomSanitizer),i.\u0275\u0275inject(i.NgZone))},Re.\u0275prov=i.\u0275\u0275defineInjectable({token:Re,factory:Re.\u0275fac,providedIn:"root"}),Re})(),Ue=(()=>{class Re{constructor(Y,he,Ee){this.toastrService=Y,this.toastPackage=he,this.ngZone=Ee,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},this.message=he.message,this.title=he.title,this.options=he.config,this.originalTimeout=he.config.timeOut,this.toastClasses=`${he.toastType} ${he.config.toastClass}`,this.sub=he.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=he.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=he.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=he.toastRef.countDuplicate().subscribe(Ie=>{this.duplicatesCount=Ie})}get displayStyle(){if("inactive"===this.state.value)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state=Object.assign(Object.assign({},this.state),{value:"active"}),!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const Y=(new Date).getTime();this.width=(this.hideTime-Y)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state=Object.assign(Object.assign({},this.state),{value:"active"}),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state=Object.assign(Object.assign({},this.state),{value:"removed"}),this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state.value||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(Y,he){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(Y),he)):this.timeout=setTimeout(()=>Y(),he)}outsideInterval(Y,he){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(Y),he)):this.intervalId=setInterval(()=>Y(),he)}runInsideAngular(Y){this.ngZone?this.ngZone.run(()=>Y()):Y()}}return Re.\u0275fac=function(Y){return new(Y||Re)(i.\u0275\u0275directiveInject(de),i.\u0275\u0275directiveInject(xe),i.\u0275\u0275directiveInject(i.NgZone))},Re.\u0275cmp=i.\u0275\u0275defineComponent({type:Re,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(Y,he){1&Y&&i.\u0275\u0275listener("click",function(){return he.tapToast()})("mouseenter",function(){return he.stickAround()})("mouseleave",function(){return he.delayedHideToast()}),2&Y&&(i.\u0275\u0275syntheticHostProperty("@flyInOut",he.state),i.\u0275\u0275classMap(he.toastClasses),i.\u0275\u0275styleProp("display",he.displayStyle))},attrs:b,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alertdialog","aria-live","polite",3,"innerHTML"],["role","alertdialog","aria-live","polite"],[1,"toast-progress"]],template:function(Y,he){1&Y&&(i.\u0275\u0275template(0,C,3,0,"button",0),i.\u0275\u0275template(1,p,3,5,"div",1),i.\u0275\u0275template(2,y,1,3,"div",2),i.\u0275\u0275template(3,P,2,4,"div",3),i.\u0275\u0275template(4,O,2,2,"div",4)),2&Y&&(i.\u0275\u0275property("ngIf",he.options.closeButton),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",he.title),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",he.message&&he.options.enableHtml),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",he.message&&!he.options.enableHtml),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",he.options.progressBar))},directives:[u.NgIf],encapsulation:2,data:{animation:[(0,d.X$)("flyInOut",[(0,d.SB)("inactive",(0,d.oB)({opacity:0})),(0,d.SB)("active",(0,d.oB)({opacity:1})),(0,d.SB)("removed",(0,d.oB)({opacity:0})),(0,d.eR)("inactive => active",(0,d.jt)("{{ easeTime }}ms {{ easing }}")),(0,d.eR)("active => removed",(0,d.jt)("{{ easeTime }}ms {{ easing }}"))])]}}),Re})();const fe=Object.assign(Object.assign({},He),{toastComponent:Ue});let Je=(()=>{class Re{static forRoot(Y={}){return{ngModule:Re,providers:[{provide:et,useValue:{default:fe,config:Y}}]}}}return Re.\u0275fac=function(Y){return new(Y||Re)},Re.\u0275mod=i.\u0275\u0275defineNgModule({type:Re}),Re.\u0275inj=i.\u0275\u0275defineInjector({imports:[[u.CommonModule]]}),Re})(),Te=(()=>{class Re{static forRoot(Y={}){return{ngModule:Je,providers:[{provide:et,useValue:{default:He,config:Y}}]}}}return Re.\u0275fac=function(Y){return new(Y||Re)},Re.\u0275mod=i.\u0275\u0275defineNgModule({type:Re}),Re.\u0275inj=i.\u0275\u0275defineInjector({imports:[[u.CommonModule]]}),Re})(),Ge=(()=>{class Re{constructor(Y,he,Ee){this.toastrService=Y,this.toastPackage=he,this.appRef=Ee,this.width=-1,this.toastClasses="",this.state="inactive",this.message=he.message,this.title=he.title,this.options=he.config,this.originalTimeout=he.config.timeOut,this.toastClasses=`${he.toastType} ${he.config.toastClass}`,this.sub=he.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=he.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=he.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=he.toastRef.countDuplicate().subscribe(Ie=>{this.duplicatesCount=Ie})}get displayStyle(){if("inactive"===this.state)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state="active",!(!0===this.options.disableTimeOut||"timeOut"===this.options.disableTimeOut)&&this.options.timeOut&&(this.timeout=setTimeout(()=>{this.remove()},this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))),this.options.onActivateTick&&this.appRef.tick()}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const Y=(new Date).getTime();this.width=(this.hideTime-Y)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state="active",this.options.timeOut=this.originalTimeout,this.timeout=setTimeout(()=>this.remove(),this.originalTimeout),this.hideTime=(new Date).getTime()+(this.originalTimeout||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))}remove(){"removed"!==this.state&&(clearTimeout(this.timeout),this.state="removed",this.timeout=setTimeout(()=>this.toastrService.remove(this.toastPackage.toastId)))}tapToast(){"removed"!==this.state&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state||(this.timeout=setTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10)))}}return Re.\u0275fac=function(Y){return new(Y||Re)(i.\u0275\u0275directiveInject(de),i.\u0275\u0275directiveInject(xe),i.\u0275\u0275directiveInject(i.ApplicationRef))},Re.\u0275cmp=i.\u0275\u0275defineComponent({type:Re,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(Y,he){1&Y&&i.\u0275\u0275listener("click",function(){return he.tapToast()})("mouseenter",function(){return he.stickAround()})("mouseleave",function(){return he.delayedHideToast()}),2&Y&&(i.\u0275\u0275classMap(he.toastClasses),i.\u0275\u0275styleProp("display",he.displayStyle))},attrs:b,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["role","alert","aria-live","polite",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert","aria-live","polite",3,"innerHTML"],["role","alert","aria-live","polite"],[1,"toast-progress"]],template:function(Y,he){1&Y&&(i.\u0275\u0275template(0,S,3,0,"button",0),i.\u0275\u0275template(1,B,3,5,"div",1),i.\u0275\u0275template(2,ce,1,3,"div",2),i.\u0275\u0275template(3,K,2,4,"div",3),i.\u0275\u0275template(4,re,2,2,"div",4)),2&Y&&(i.\u0275\u0275property("ngIf",he.options.closeButton),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",he.title),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",he.message&&he.options.enableHtml),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",he.message&&!he.options.enableHtml),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",he.options.progressBar))},directives:[u.NgIf],encapsulation:2}),Re})();const vt=Object.assign(Object.assign({},He),{toastComponent:Ge});let St=(()=>{class Re{static forRoot(Y={}){return{ngModule:Re,providers:[{provide:et,useValue:{default:vt,config:Y}}]}}}return Re.\u0275fac=function(Y){return new(Y||Re)},Re.\u0275mod=i.\u0275\u0275defineNgModule({type:Re}),Re.\u0275inj=i.\u0275\u0275defineInjector({imports:[[u.CommonModule]]}),Re})()}},Le=>{Le(Le.s=4431)}]);