@sdkgen/playground 0.0.0-dev.20220113215121 → 0.0.0-dev.20220119163338

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.
@@ -0,0 +1 @@
1
+ (self.webpackChunksdkgen_playground=self.webpackChunksdkgen_playground||[]).push([[179],{4602:function(Le,_){"use strict";var w,l=this&&this.__extends||(w=function(I,h){return(w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,M){A.__proto__=M}||function(A,M){for(var b in M)Object.prototype.hasOwnProperty.call(M,b)&&(A[b]=M[b])})(I,h)},function(I,h){if("function"!=typeof h&&null!==h)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");function A(){this.constructor=I}w(I,h),I.prototype=null===h?Object.create(h):(A.prototype=h.prototype,new A)}),i=this&&this.__spreadArray||function(w,I,h){if(h||2===arguments.length)for(var b,A=0,M=I.length;A<M;A++)(b||!(A in I))&&(b||(b=Array.prototype.slice.call(I,0,A)),b[A]=I[A]);return w.concat(b||Array.prototype.slice.call(I))};Object.defineProperty(_,"__esModule",{value:!0}),_.decode=_.encode=void 0;var u=["string","email","phone","html","xml"],g=i(["json","bool","url","int","uint","float","money","hex","uuid","base64","void"],u,!0),c=function(w){function I(h,A,M){var R;try{R=JSON.stringify(M)}catch(V){R=String(M)}return w.call(this,"Invalid type at '".concat(h,"', expected ").concat(A,", got ").concat(R))||this}return l(I,w),I}(Error);function s(w,I,h){if("json"===I)return null==h?null:JSON.parse(JSON.stringify(h));if("bool"===I){if("boolean"!=typeof h)throw new c(w,I,h);return h}if(u.indexOf(I)>=0){if("string"!=typeof h)throw new c(w,I,h);return h}if("hex"===I){if("string"!=typeof h||!/^(?:[A-Fa-f0-9]{2})*$/u.test(h))throw new c(w,I,h);return h.toLowerCase()}if("uuid"===I){if("string"!=typeof h||!/^[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(h))throw new c(w,I,h);return h.toLowerCase()}if("base64"===I){var A=!0;try{atob(h)}catch(b){A=!1}if("string"!=typeof h||!A)throw new c(w,I,h);return h}if("int"===I){if("number"!=typeof h||(0|h)!==h)throw new c(w,I,h);return h}if("uint"===I){if("number"!=typeof h||(0|h)!==h||h<0)throw new c(w,I,h);return h}if("float"===I){if("number"!=typeof h)throw new c(w,I,h);return h}if("money"===I){if("number"!=typeof h||!Number.isInteger(h))throw new c(w,I,h);return h}if("url"===I){var M=void 0;if("string"==typeof h)try{M=new URL(h)}catch(b){}if(!M)throw new c(w,I,h);return M.toString()}if("void"===I)return null;throw new Error("Unknown type '".concat(I,"' at '").concat(w,"'"))}_.encode=function y(w,I,h,A){if("string"==typeof h&&!h.endsWith("?")&&"void"!==h&&null==A)throw new Error("Invalid type at '".concat(I,"', cannot be null"));if(Array.isArray(h)){for(var M=0,b=h;M<b.length;M++){var R=b[M];if(R===A)return A;if(Array.isArray(A)&&2===A.length&&R===A[0])return A[0];if(Array.isArray(R)&&2===R.length){if(R[0]===A)return[A,y(w,"".concat(I,".").concat(R[0]),R[1],{})];if(Array.isArray(A)&&2===A.length&&R[0]===A[0])return[A[0],y(w,"".concat(I,".").concat(R[0]),R[1],A[1])]}}throw new c(I,h,A)}if("object"==typeof h){if("object"!=typeof A)throw new c(I,h,A);for(var V={},fe=0,$=Object.keys(h);fe<$.length;fe++){var ie=$[fe];V[ie]=y(w,"".concat(I,".").concat(ie),h[ie],A[ie])}return V}if(h.endsWith("?"))return null==A?null:y(w,I,h.slice(0,h.length-1),A);if(h.endsWith("[]")){if(!Array.isArray(A))throw new c(I,h,A);return A.map(function(pe,_e){return y(w,"".concat(I,"[").concat(_e,"]"),h.slice(0,h.length-2),pe)})}if(g.indexOf(h)>=0)return s(I,h,A);if("bytes"===h){if(!(A instanceof ArrayBuffer))throw new c(I,h,A);return btoa(String.fromCharCode.apply(String,new Uint8Array(A)))}if("bigint"===h){if("bigint"!=typeof A)throw new c(I,h,A);return A.toString()}if("cpf"===h){if("string"!=typeof A)throw new c(I,h,A);return A}if("cnpj"===h){if("string"!=typeof A)throw new c(I,h,A);return A}if("date"===h){if((!(A instanceof Date)||isNaN(A.getTime()))&&("string"!=typeof A||!/^[0-9]{4}-[01][0-9]-[0123][0-9]$/u.test(A)))throw new c(I,h,A);return"string"==typeof A?new Date(A).toISOString().split("T")[0]:A.toISOString().split("T")[0]}if("datetime"===h){if((!(A instanceof Date)||isNaN(A.getTime()))&&("string"!=typeof A||!/^[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(A)))throw new c(I,h,A);return("string"==typeof A?new Date(A):A).toISOString().replace("Z","")}var we=w[h];if(we)return y(w,I,we,A);throw new Error("Unknown type '".concat(h,"' at '").concat(I,"'"))},_.decode=function E(w,I,h,A){if("string"==typeof h&&!h.endsWith("?")&&"void"!==h&&null==A)throw new Error("Invalid type at '".concat(I,"', cannot be null"));if(Array.isArray(h)){for(var M=0,b=h;M<b.length;M++){var R=b[M];if(R===A)return A;if(Array.isArray(A)&&2===A.length&&R===A[0])return A[0];if(Array.isArray(R)&&2===R.length){if(R[0]===A)return[A,E(w,"".concat(I,".").concat(R[0]),R[1],{})];if(Array.isArray(A)&&2===A.length&&R[0]===A[0])return[A[0],E(w,"".concat(I,".").concat(R[0]),R[1],A[1])]}}throw new c(I,h,A)}if("object"==typeof h){if("object"!=typeof A)throw new c(I,h,A);for(var V={},fe=0,$=Object.keys(h);fe<$.length;fe++){var ie=$[fe];V[ie]=E(w,"".concat(I,".").concat(ie),h[ie],A[ie])}return V}if(h.endsWith("?"))return null==A?null:E(w,I,h.slice(0,h.length-1),A);if(h.endsWith("[]")){if(!Array.isArray(A))throw new c(I,h,A);return A.map(function(Fe,Je){return E(w,"".concat(I,"[").concat(Je,"]"),h.slice(0,h.length-2),Fe)})}if(g.indexOf(h)>=0)return s(I,h,A);if("bytes"!==h){if("bigint"===h){if("number"!=typeof A&&("string"!=typeof A||!/^-?[0-9]+$/u.test(A)))throw new c(I,h,A);return BigInt(A)}if("cpf"===h){if("string"!=typeof A)throw new c(I,h,A);return A}if("cnpj"===h){if("string"!=typeof A)throw new c(I,h,A);return A}if("date"===h){if("string"!=typeof A||!/^[0-9]{4}-[01][0-9]-[0123][0-9]$/u.test(A))throw new c(I,h,A);var we=parseInt(A.split("-")[2],10),pe=parseInt(A.split("-")[1],10)-1,_e=parseInt(A.split("-")[0],10),le=new Date(_e,pe,we);if(le.getFullYear()!==_e||le.getMonth()!==pe||le.getDate()!==we)throw new c(I,h,A);return le}if("datetime"===h){if("string"!=typeof A||!/^[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(A))throw new c(I,h,A);return new Date("".concat(A.endsWith("Z")?A:A.concat("Z")))}var De=w[h];if(De)return E(w,I,De,A);throw new Error("Unknown type '".concat(h,"' at '").concat(I,"'"))}if("string"!=typeof A)throw new c(I,"".concat(h," (base 64)"),A);try{return Uint8Array.from(atob(A),function(Fe){return Fe.charCodeAt(0)})}catch(Fe){throw new c(I,"".concat(h," (base 64)"),A)}}},2837:function(Le,_){"use strict";var g,l=this&&this.__extends||(g=function(c,s){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,E){y.__proto__=E}||function(y,E){for(var w in E)Object.prototype.hasOwnProperty.call(E,w)&&(y[w]=E[w])})(c,s)},function(c,s){if("function"!=typeof s&&null!==s)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function y(){this.constructor=c}g(c,s),c.prototype=null===s?Object.create(s):(y.prototype=s.prototype,new y)});Object.defineProperty(_,"__esModule",{value:!0}),_.SdkgenErrorWithData=_.SdkgenError=void 0;var i=function(g){function c(){return null!==g&&g.apply(this,arguments)||this}return l(c,g),Object.defineProperty(c.prototype,"type",{get:function(){return this.constructor.name},enumerable:!1,configurable:!0}),c.prototype.toJSON=function(){return{message:this.message,type:this.type}},c}(Error);_.SdkgenError=i;var u=function(g){function c(s,y){var E=g.call(this,s)||this;return E.data=y,E}return l(c,g),c.prototype.toJSON=function(){return{data:this.data,message:this.message,type:this.type}},c}(i);_.SdkgenErrorWithData=u},2062:function(Le,_,l){"use strict";var i=this&&this.__awaiter||function(I,h,A,M){return new(A||(A=Promise))(function(R,V){function fe(we){try{ie(M.next(we))}catch(pe){V(pe)}}function $(we){try{ie(M.throw(we))}catch(pe){V(pe)}}function ie(we){we.done?R(we.value):function b(R){return R instanceof A?R:new A(function(V){V(R)})}(we.value).then(fe,$)}ie((M=M.apply(I,h||[])).next())})},u=this&&this.__generator||function(I,h){var M,b,R,V,A={label:0,sent:function(){if(1&R[0])throw R[1];return R[1]},trys:[],ops:[]};return V={next:fe(0),throw:fe(1),return:fe(2)},"function"==typeof Symbol&&(V[Symbol.iterator]=function(){return this}),V;function fe(ie){return function(we){return function $(ie){if(M)throw new TypeError("Generator is already executing.");for(;A;)try{if(M=1,b&&(R=2&ie[0]?b.return:ie[0]?b.throw||((R=b.return)&&R.call(b),0):b.next)&&!(R=R.call(b,ie[1])).done)return R;switch(b=0,R&&(ie=[2&ie[0],R.value]),ie[0]){case 0:case 1:R=ie;break;case 4:return A.label++,{value:ie[1],done:!1};case 5:A.label++,b=ie[1],ie=[0];continue;case 7:ie=A.ops.pop(),A.trys.pop();continue;default:if(!(R=(R=A.trys).length>0&&R[R.length-1])&&(6===ie[0]||2===ie[0])){A=0;continue}if(3===ie[0]&&(!R||ie[1]>R[0]&&ie[1]<R[3])){A.label=ie[1];break}if(6===ie[0]&&A.label<R[1]){A.label=R[1],R=ie;break}if(R&&A.label<R[2]){A.label=R[2],A.ops.push(ie);break}R[2]&&A.ops.pop(),A.trys.pop();continue}ie=h.call(I,A)}catch(we){ie=[6,we],b=0}finally{M=R=0}if(5&ie[0])throw ie[1];return{value:ie[0]?ie[1]:void 0,done:!0}}([ie,we])}}};Object.defineProperty(_,"__esModule",{value:!0}),_.SdkgenHttpClient=void 0;var g=l(4602);function c(I){for(var h="",A=0;A<2*I;++A)h+="0123456789abcdef"[Math.floor(16*Math.random())];return h}var s=c(20);function y(){try{var I=localStorage.getItem("deviceId");return I||(I=s,localStorage.setItem("deviceId",I)),I}catch(h){}return s}function E(I,h){return h in I}var w=function(){function I(h,A,M){this.astJson=A,this.errClasses=M,this.extra=new Map,this.successHook=function(){},this.errorHook=function(){},this.baseUrl=h}return I.prototype.makeRequest=function(h,A){var M,b;return i(this,void 0,void 0,function(){var R,V,fe,$,ie,we=this;return u(this,function(pe){switch(pe.label){case 0:if(!(R=this.astJson.functionTable[h]))throw new Error("Unknown function ".concat(h));return V={},this.extra.forEach(function(_e,le){V[le]=_e}),fe={args:(0,g.encode)(this.astJson.typeTable,"".concat(h,".args"),R.args,A),deviceInfo:{id:y(),language:navigator.language,platform:{browserUserAgent:navigator.userAgent},timezone:"object"==typeof Intl?Intl.DateTimeFormat().resolvedOptions().timeZone:null,type:"web",version:null!==(b=null===(M=document.currentScript)||void 0===M?void 0:M.getAttribute("src"))&&void 0!==b?b:""},extra:V,name:h,requestId:c(16),version:3},[4,new Promise(function(_e,le){var De=new XMLHttpRequest;De.open("POST","".concat(we.baseUrl,"/").concat(h)),De.setRequestHeader("Content-Type","application/sdkgen"),De.onreadystatechange=function(){if(4===De.readyState)try{var Fe=JSON.parse(De.responseText);try{E(Fe,"error")&&Fe.error?(le(Fe.error),we.errorHook(Fe.error,h,A)):_e(E(Fe,"result")?Fe.result:null)}catch(ot){var Je={message:"".concat(ot),type:"Fatal"};le(Je),we.errorHook(Je,h,A)}}catch(ot){le(Je={message:"Falha de conex\xe3o com o servidor",type:"Fatal"}),we.errorHook(Je,h,A)}},De.send(JSON.stringify(fe))}).catch(function(_e){if(we.errorHook(_e,h,A),E(_e,"type")&&E(_e,"message")&&"string"==typeof _e.type&&"string"==typeof _e.message){var le=we.errClasses[_e.type];if(le){var De=we.astJson.errors.find(function(Fe){return Array.isArray(Fe)?Fe[0]===_e.type:Fe===_e.type});if(De)throw Array.isArray(De)&&E(_e,"data")?new le(_e.message,(0,g.decode)(we.astJson.typeTable,"".concat(le.name,".data"),De[1],_e.data)):new le(_e.message,void 0)}throw new we.errClasses.Fatal("".concat(_e.type,": ").concat(_e.message))}throw _e})];case 1:return $=pe.sent(),ie=(0,g.decode)(this.astJson.typeTable,"".concat(h,".ret"),R.ret,$),this.successHook(ie,h,A),[2,ie]}})})},I}();_.SdkgenHttpClient=w},4539:function(Le,_,l){"use strict";var i=this&&this.__createBinding||(Object.create?function(g,c,s,y){void 0===y&&(y=s),Object.defineProperty(g,y,{enumerable:!0,get:function(){return c[s]}})}:function(g,c,s,y){void 0===y&&(y=s),g[y]=c[s]}),u=this&&this.__exportStar||function(g,c){for(var s in g)"default"!==s&&!Object.prototype.hasOwnProperty.call(c,s)&&i(c,g,s)};Object.defineProperty(_,"__esModule",{value:!0}),u(l(2837),_),u(l(2062),_)},3905:(Le,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.generateCSharpServerSource=void 0;const i=l(6676),u=l(4510);_.generateCSharpServerSource=function g(c){let s="using System;\nusing System.Collections.Generic;\nusing System.Globalization;\nusing System.Numerics;\nusing System.Text.Json;\nusing System.Threading.Tasks;\nusing static Sdkgen.Runtime;\nusing static Sdkgen.Context;\nusing static Sdkgen.Helpers;\n\nnamespace SdkgenGenerated\n{\n public abstract class Api : BaseApi\n {";for(const y of c.operations){const E=y.returnType instanceof i.VoidPrimitiveType?"":`<${(0,u.generateTypeName)(y.returnType)}>`;s+=`\n public virtual Task${E} ${(0,u.capitalize)(y.name)}(${["Context ctx",...y.args.map(w=>`${(0,u.generateTypeName)(w.type)} ${(0,u.ident)(w.name)}`)].join(", ")})\n {\n return Task.FromException${E}(new FatalException("Function '${y.name}' not implemented."));\n }\n`}s+="\n public async Task ExecuteFunction(Context context_, Utf8JsonWriter resultWriter_)\n {\n switch (context_.Name)\n {";for(const y of c.operations){s+=`\n case ${JSON.stringify(y.name)}:\n {`;for(const E of y.args)s+=`\n JsonElement ${E.name}Json_;\n if (!context_.Args.TryGetValue(${JSON.stringify(E.name)}, out ${E.name}Json_))\n {\n ${E.type instanceof i.OptionalType?`${E.name}Json_ = new JsonElement();`:`throw new FatalException("'${y.name}().args.${E.name}' must be set to a value of type ${E.type.name}.");`}\n }\n ${(0,u.generateTypeName)(E.type)} ${(0,u.ident)(E.name)};\n ${(0,u.decodeType)(E.type,`${E.name}Json_`,`"${y.name}().args.${E.name}"`,(0,u.ident)(E.name)).replace(/\n/gu,"\n ")}`;s+=y.returnType instanceof i.VoidPrimitiveType?`\n await ${(0,u.capitalize)(y.name)}(${["context_",...y.args.map(E=>(0,u.ident)(E.name))].join(", ")});\n resultWriter_.WriteNullValue();`:`\n var result_ = await ${(0,u.capitalize)(y.name)}(${["context_",...y.args.map(E=>(0,u.ident)(E.name))].join(", ")});\n ${(0,u.encodeType)(y.returnType,"result_",`"${y.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 y of c.structTypes)s+=(0,u.generateStruct)(y);for(const y of c.enumTypes)s+=(0,u.generateEnum)(y);s+=`\n public string GetAstJson() => @"${JSON.stringify((0,i.astToJson)(c),null,4).replace(/"/gu,'""').replace(/\n/gu,"\n ")}";\n }\n`;for(const y of c.errors)s+=`\n public class ${y.name}Exception : SdkgenException\n {\n public ${y.name}Exception(string message, Exception? inner = null) : base("${y.name}", message, inner) { }\n }\n`;return s+="\n}\n",s}},4510:(Le,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.generateEnum=_.generateStruct=_.encodeType=_.decodeType=_.generateTypeName=_.capitalize=_.ident=void 0;const i=l(6676),u=["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"],g=[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],c=[i.BigIntPrimitiveType,i.DatePrimitiveType,i.DateTimePrimitiveType,i.FloatPrimitiveType,i.IntPrimitiveType,i.MoneyPrimitiveType,i.UIntPrimitiveType];function s(M){return u.includes(M)?`@${M}`:M}function y(M){return M[0].toUpperCase()+M.slice(1)}function E(M){switch(M.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`${E(M.base)}?`;case i.ArrayType:return`List<${E(M.base)}>`;case i.StructType:case i.EnumType:return M.name;case i.TypeReference:return E(M.type);default:throw new Error(`BUG: generateTypeName with ${M.constructor.name}`)}}function w(M,b,R,V,fe=1,$=!0){switch(M.constructor){case i.IntPrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.Number || !${b}.TryGetInt32(out ${V}))\n {\n throw new FatalException($"'{${R}}' must be an integer");\n }\n `.replace(/\n {16}/gu,"\n").trim();case i.UIntPrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.Number || !${b}.TryGetUInt32(out ${V}))\n {\n throw new FatalException($"'{${R}}' must be an unsigned integer.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case i.MoneyPrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.Number || !${b}.TryGetDecimal(out ${V}) || ${V} % 1 != 0)\n {\n throw new FatalException($"'{${R}}' must be an integer amount of cents.");\n }\n ${V} /= 100;\n `.replace(/\n {16}/gu,"\n").trim();case i.FloatPrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.Number || !${b}.TryGetDouble(out ${V}))\n {\n throw new FatalException($"'{${R}}' must be a floating-point number.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case i.BigIntPrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.String || !BigInteger.TryParse(${b}.GetString(), out ${V}))\n {\n throw new FatalException($"'{${R}}' must be an arbitrarily large integer in a string.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case i.StringPrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${R}}' must be a string.");\n }\n ${V} = ${b}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.HtmlPrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${R}}' must be a valid HTML string.");\n }\n ${V} = ${b}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.CpfPrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${R}}' must be a valid CPF string.");\n }\n ${V} = ${b}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.CnpjPrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${R}}' must be a valid CNPJ string.");\n }\n ${V} = ${b}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.EmailPrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${R}}' must be a valid email.");\n }\n ${V} = ${b}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.UrlPrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${R}}' must be a valid URL string.");\n }\n ${V} = ${b}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.UuidPrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${R}}' must be a valid UUID.");\n }\n ${V} = ${b}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.HexPrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${R}}' must be a valid hex string.");\n }\n ${V} = ${b}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.Base64PrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${R}}' must be a base64 string.");\n }\n ${V} = ${b}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.XmlPrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${R}}' must be a XML string.");\n }\n ${V} = ${b}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.BoolPrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.True && ${b}.ValueKind != JsonValueKind.False)\n {\n throw new FatalException($"'{${R}}' must be either true or false.");\n }\n ${V} = ${b}.GetBoolean();\n `.replace(/\n {16}/gu,"\n").trim();case i.BytesPrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${R}}' must be a string.");\n }\n try\n {\n ${V} = Convert.FromBase64String(${b}.GetString());\n }\n catch (FormatException)\n {\n throw new FatalException($"'{${R}}' must be a base64 string.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case i.TypeReference:return w(M.type,b,R,V,fe);case i.OptionalType:if(c.includes(M.base.constructor)){const ie=`${V.replace(/[^0-9a-zA-Z]/gu,"")}Tmp`;return`\n if (${b}.ValueKind == JsonValueKind.Null || ${b}.ValueKind == JsonValueKind.Undefined)\n {\n ${V} = null;\n }\n else\n {\n ${E(M.base)} ${ie};\n ${w(M.base,b,R,ie,fe,!1).replace(/\n/gu,"\n ")}\n ${V} = ${ie};\n }\n `.replace(/\n {20}/gu,"\n").trim()}return`\n if (${b}.ValueKind == JsonValueKind.Null || ${b}.ValueKind == JsonValueKind.Undefined)\n {\n ${V} = null;\n }\n else\n {\n ${w(M.base,b,R,V,fe,!1).replace(/\n/gu,"\n ")}\n }\n `.replace(/\n {20}/gu,"\n").trim();case i.EnumType:case i.StructType:return`${V} = Decode${M.name}(${b}, ${R});`;case i.JsonPrimitiveType:return $?`\n if (${b}.ValueKind == JsonValueKind.Null || ${b}.ValueKind == JsonValueKind.Undefined)\n {\n throw new FatalException($"'{${R}}' can't be null.");\n }\n ${V} = ${b};\n `.replace(/\n {16}/gu,"\n").trim():`${V} = ${b};`;case i.DateTimePrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.String || !(DateTime.TryParseExact(${b}.GetString(), "yyyy-MM-ddTHH:mm:ss.FFFFFFF", CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal | DateTimeStyles.AssumeUniversal, out ${V}) || DateTime.TryParseExact(${b}.GetString(), "yyyy-MM-ddTHH:mm:ss.FFFFFFF'Z'", CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal | DateTimeStyles.AssumeUniversal, out ${V})))\n {\n throw new FatalException($"'{${R}}' must be a datetime.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case i.DatePrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.String || !(DateTime.TryParseExact(${b}.GetString(), "yyyy-MM-dd", CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal | DateTimeStyles.AssumeUniversal, out ${V})))\n {\n throw new FatalException($"'{${R}}' must be a date.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case i.ArrayType:return`\n if (${b}.ValueKind != JsonValueKind.Array)\n {\n throw new FatalException($"'{${R}}' must be a date.");\n }\n ${V} = new ${E(M)}();\n for (var i${fe} = 0; i${fe} < ${b}.GetArrayLength(); ++i${fe})\n {\n ${E(M.base)} element${fe};\n ${w(M.base,`${b}[i${fe}]`,`$"{${R}}[{i${fe}}]"`,`element${fe}`,fe+1).replace(/\n/gu,"\n ")}\n ${V}.Add(element${fe});\n }\n `.replace(/\n {16}/gu,"\n").trim();default:throw new Error(`BUG: decodeType with ${M.constructor.name}`)}}function I(M,b,R,V=1){switch(M.constructor){case i.StringPrimitiveType:return`resultWriter_.WriteStringValue(${b});`;case i.FloatPrimitiveType:case i.UIntPrimitiveType:case i.IntPrimitiveType:return`resultWriter_.WriteNumberValue(${b});`;case i.MoneyPrimitiveType:return`resultWriter_.WriteNumberValue(Math.Round(${b} * 100));`;case i.BigIntPrimitiveType:return`resultWriter_.WriteStringValue(${b}.ToString());`;case i.BoolPrimitiveType:return`resultWriter_.WriteBooleanValue(${b});`;case i.BytesPrimitiveType:return`resultWriter_.WriteStringValue(Convert.ToBase64String(${b}));`;case i.DateTimePrimitiveType:return`resultWriter_.WriteStringValue(${b}.ToString("yyyy-MM-ddTHH:mm:ss.FFFFFF'Z'"));`;case i.DatePrimitiveType:return`resultWriter_.WriteStringValue(${b}.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(${b});`;case i.OptionalType:{let fe=M.base;for(;fe instanceof i.TypeReference;)fe=fe.type;return`\n if (${b} == null)\n {\n resultWriter_.WriteNullValue();\n }\n else\n {\n ${I(fe,g.includes(fe.constructor)?b:`${b}.Value`,R,V).replace(/\n/gu,"\n ")}\n }`.replace(/\n {16}/gu,"\n").trim()}case i.TypeReference:return I(M.type,b,R,V);case i.EnumType:case i.StructType:return`Encode${M.name}(${b}, resultWriter_, ${R});`;case i.JsonPrimitiveType:return`${b}.WriteTo(resultWriter_);`;case i.ArrayType:return`\n resultWriter_.WriteStartArray();\n for (var i${V} = 0; i${V} < ${b}.Count; ++i${V})\n {\n ${I(M.base,`${b}[i${V}]`,`$"{${R}}[{i${V}}]"`,V+1).replace(/\n/gu,"\n ")}\n }\n resultWriter_.WriteEndArray();\n `.replace(/\n {16}/gu,"\n").trim();default:throw new Error(`BUG: encodeType with ${M.constructor.name}`)}}_.ident=s,_.capitalize=y,_.generateTypeName=E,_.decodeType=w,_.encodeType=I,_.generateStruct=function h(M){return`\n public class ${M.name}\n {${M.fields.map(b=>`\n public ${E(b.type)} ${y(b.name)};`).join("")}\n public ${M.name}(${M.fields.map(b=>`${E(b.type)} ${s(b.name)}`).join(", ")})\n {${M.fields.map(b=>`\n ${y(b.name)} = ${s(b.name)};`).join("")}\n }\n }\n\n ${M.name} Decode${M.name}(JsonElement json_, string path_)\n {\n if (json_.ValueKind != JsonValueKind.Object)\n {\n throw new FatalException($"'{path_}' must be an object.");\n }\n${M.fields.map(b=>` JsonElement ${b.name}Json_;\n if (!json_.TryGetProperty(${JSON.stringify(b.name)}, out ${b.name}Json_))\n {\n ${b.type instanceof i.OptionalType?`${b.name}Json_ = new JsonElement();`:`throw new FatalException($"'{path_}.${b.name}' must be set to a value of type ${b.type.name}.");`}\n }\n ${E(b.type)} ${s(b.name)};\n ${w(b.type,`${b.name}Json_`,`$"{path_}.${b.name}"`,s(b.name)).replace(/\n/gu,"\n ")}`).join("\n")}\n return new ${M.name}(${M.fields.map(b=>s(b.name)).join(", ")});\n }\n\n void Encode${M.name}(${M.name} obj_, Utf8JsonWriter resultWriter_, string path_)\n {\n resultWriter_.WriteStartObject();\n ${M.fields.map(b=>`resultWriter_.WritePropertyName(${JSON.stringify(b.name)});\n ${I(b.type,`obj_.${y(b.name)}`,`$"{path_}.${b.name}"`).replace(/\n/gu,"\n ")}`).join("\n ")}\n resultWriter_.WriteEndObject();\n }\n`},_.generateEnum=function A(M){return`\n public enum ${M.name}\n {${M.values.map(({value:b})=>`\n ${y(b)}`).join(",\n ")}\n }\n\n ${M.name} Decode${M.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();${M.values.map(({value:b})=>`\n if (value == "${b}")\n {\n return ${M.name}.${y(b)};\n }`).join("")}\n throw new FatalException($"'{path_}' must be one of: (${M.values.map(({value:b})=>`'${b}'`).join(", ")}).");\n }\n\n void Encode${M.name}(${M.name} obj_, Utf8JsonWriter resultWriter_, string path_)\n {${M.values.map(({value:b})=>`\n if (obj_ == ${M.name}.${y(b)})\n {\n resultWriter_.WriteStringValue("${b}");\n }`).join("")}\n }\n`}},7179:function(Le,_,l){"use strict";var i=this&&this.__createBinding||(Object.create?function(g,c,s,y){void 0===y&&(y=s),Object.defineProperty(g,y,{enumerable:!0,get:function(){return c[s]}})}:function(g,c,s,y){void 0===y&&(y=s),g[y]=c[s]}),u=this&&this.__exportStar||function(g,c){for(var s in g)"default"!==s&&!Object.prototype.hasOwnProperty.call(c,s)&&i(c,g,s)};Object.defineProperty(_,"__esModule",{value:!0}),u(l(3905),_)},1911:(Le,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.generateDartClientSource=void 0;const i=l(6676),u=l(5235);_.generateDartClientSource=function g(c){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 y of c.enumTypes)s+=(0,u.generateEnum)(y),s+="\n";for(const y of c.structTypes)s+=(0,u.generateClass)(y),s+="\n";for(const y of c.errors)s+=(0,u.generateErrorClass)(y),s+="\n";s+=`class ApiClient extends SdkgenHttpClient {\n ApiClient(String baseUrl, [BuildContext? context]) : super(baseUrl, context, _typeTable, _fnTable, _errTable);\n${c.operations.filter(y=>y.annotations.every(E=>!(E instanceof i.HiddenAnnotation))).map(y=>`\n ${y.returnType instanceof i.VoidPrimitiveType?"Future<void> ":`Future<${(0,u.generateTypeName)(y.returnType)}> `}${y.name}(${0===y.args.length?"":`{${y.args.map(E=>`${E.type instanceof i.OptionalType?"":"required "}${(0,u.generateTypeName)(E.type)} ${(0,u.mangle)(E.name)}`).join(", ")}}`}) async { ${y.returnType instanceof i.VoidPrimitiveType?"":"return "}${(0,u.cast)(`await makeRequest('${y.name}', {${y.args.map(E=>`'${E.name}': ${(0,u.mangle)(E.name)}`).join(", ")}})`,y.returnType)}; }`).join("")}\n}\n\n`,s+="var _typeTable = {\n";for(const y of c.structTypes){s+=` '${y.name}': StructTypeDescription(\n`,s+=` ${y.name},\n`,s+=" {\n";for(const E of y.fields)s+=` '${E.name}': '${E.type.name}',\n`;s+=" },\n",s+=` (Map fields) => ${y.name}(\n`;for(const E of y.fields)s+=` ${(0,u.mangle)(E.name)}: ${(0,u.cast)(`fields['${E.name}']`,E.type)},\n`;s+=" ),\n",s+=` (${y.name} obj) => ({\n`;for(const E of y.fields)s+=` '${E.name}': obj.${(0,u.mangle)(E.name)},\n`;s+=" }),\n",s+=" ),\n"}for(const y of c.enumTypes)s+=` '${y.name}': EnumTypeDescription(${y.name}, ${y.name}.values, [\n ${y.values.map(E=>`'${E.value}'`).join(",\n ")}\n ]),\n`;s+="};\n\n",s+="var _fnTable = {\n";for(const y of c.operations){s+=` '${y.name}': FunctionDescription('${y.returnType.name}', {\n`;for(const E of y.args)s+=` '${E.name}': '${E.type.name}',\n`;s+=" }),\n"}s+="};\n\n",s+="var _errTable = {\n";for(const y of c.errors)s+=` '${y.name}': SdkgenErrorDescription('${y.dataType.name}', (msg, data) => ${y.name}(msg${y.dataType instanceof i.VoidPrimitiveType?"":", data"})),\n`;return s+="};\n",s}},5235:(Le,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.generateClass=_.cast=_.generateErrorClass=_.generateTypeName=_.generateEnum=_.mangle=void 0;const i=l(6676);function u(M){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(M)?`$${M}`:M}function c(M){switch(M.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`${c(M.base)}?`;case i.ArrayType:return`List<${c(M.base)}>`;case i.StructType:case i.EnumType:return M.name;case i.TypeReference:return c(M.type);default:throw new Error(`BUG: generateTypeName with ${M.constructor.name}`)}}_.mangle=u,_.generateEnum=function g(M){return`enum ${M.name} {\n ${M.values.map(b=>b.value).join(",\n ")}\n}\n`},_.generateTypeName=c,_.generateErrorClass=function s(M){if(M.dataType instanceof i.VoidPrimitiveType)return`class ${M.name} extends SdkgenError {\n ${M.name}(String msg) : super(msg);\n}\n`;const b=c(M.dataType);return`class ${M.name} extends SdkgenErrorWithData<${b}> {\n ${M.name}(String msg, ${b} data) : super(msg, data);\n}\n`},_.cast=function y(M,b){return b instanceof i.OptionalType?`${M} == null ? null : ${y(M,b.base)}`:b instanceof i.ArrayType?`(${M} as List).map((e) => ${y("e",b.base)}).toList()`:b instanceof i.VoidPrimitiveType?M:b instanceof i.FloatPrimitiveType?`(${M} as num).toDouble()`:b instanceof i.MoneyPrimitiveType?`${M} as int`:`${M} as ${c(b)}`},_.generateClass=function A(M){return`class ${M.name} {\n ${M.fields.map(b=>`final ${c(b.type)} ${u(b.name)};`).join("\n ")}\n\n${function E(M){let b=` ${M.name}({\n`;for(const R of M.fields)b+=R.type instanceof i.OptionalType?" ":" required ",b+=`this.${u(R.name)},\n`;return b+=" });\n",b}(M)}\n${function w(M){let b=" bool operator ==(other){\n";return b+=" if (identical(this, other)) return true;\n",b+=` return ${[`other is ${M.name}`,...M.fields.map(R=>`${u(R.name)} == other.${u(R.name)}`)].join(" && ")};\n`,b+=" }\n",b}(M)}\n${function I(M){return` @override\n int get hashCode => hashList([${M.fields.map(b=>u(b.name)).join(", ")}]);\n`}(M)}\n${function h(M){return` String toString() {\n return '${M.name} { ${M.fields.map(b=>`${b.name}: $${u(b.name).startsWith("$")?`{${u(b.name)}}`:u(b.name)}`).join(", ")} }';\n }\n`}(M)}}\n`}},1823:function(Le,_,l){"use strict";var i=this&&this.__createBinding||(Object.create?function(g,c,s,y){void 0===y&&(y=s),Object.defineProperty(g,y,{enumerable:!0,get:function(){return c[s]}})}:function(g,c,s,y){void 0===y&&(y=s),g[y]=c[s]}),u=this&&this.__exportStar||function(g,c){for(var s in g)"default"!==s&&!Object.prototype.hasOwnProperty.call(c,s)&&i(c,g,s)};Object.defineProperty(_,"__esModule",{value:!0}),u(l(1911),_)},196:(Le,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.generateFSharpServerSource=void 0;const i=l(6676),u=l(8735);_.generateFSharpServerSource=function g(c){let s="module rec SdkgenGenerated\nopen Sdkgen.Runtime\nopen Sdkgen.Helpers\nopen Sdkgen.Context\nopen System.Threading.Tasks\nopen System.Text.Json\nopen System\nopen System.Globalization\nopen FSharp.Control.Tasks.V2.ContextInsensitive\n";for(const y of c.errors)s+=`\ntype ${y.name}Exception =\n inherit SdkgenException\n\n new(message: string) = {\n inherit SdkgenException("${y.name}", message, null)\n }\n\n new(message: string, inner: Exception) = {\n inherit SdkgenException("${y.name}", message, inner)\n }\n`;for(const y of c.enumTypes)s+=`\n${(0,u.generateEnum)(y)}\n`;for(const y of c.structTypes)s+=`\n${(0,u.generateStruct)(y)}\n`;s+="\ntype Api() =";for(const y of c.operations){const E=y.returnType instanceof i.VoidPrimitiveType?"":`<${(0,u.generateTypeName)(y.returnType)}>`,w=y.args.length>0?`{| ${y.args.map(I=>`${I.name}: ${(0,u.generateTypeName)(I.type)};`).join("")} |} ->`:"";s+=`\n member val ${(0,u.capitalize)(y.name)}: Context -> ${w} Task${E} =\n fun _ -> (raise (FatalException("Function '${y.name}' not implemented.")))\n with get, set\n `}s+="\n interface BaseApi with\n member __.ExecuteFunction(context_: Context, resultWriter_: Utf8JsonWriter) : Task =\n task {\n match context_.Name with";for(const y of c.operations){s+=`\n | ${JSON.stringify(y.name)} ->`;for(const E of y.args)s+=`\n let ${E.name}Json_ =\n match context_.Args.TryGetValue(${JSON.stringify(E.name)}) with\n | true, v -> v\n | _ -> raise (FatalException("'${y.name}().args.${E.name}' must be set to a value of type ${E.type.name}."))\n\n let ${(0,u.ident)(E.name)} =\n ${(0,u.decodeType)(E.type,`${E.name}Json_`,`"${y.name}().args.${E.name}"`,(0,u.ident)(E.name)).replace(/\n/gu,"\n ")}`;s+=y.returnType instanceof i.VoidPrimitiveType?`\n\n do! (__.${(0,u.capitalize)(y.name)} context_ ${y.args.length>0?"{|":""} ${y.args.map(E=>`${E.name} = ${(0,u.ident)(E.name)}`).join("; ")} ${y.args.length>0?"|}":""})\n `:`\n\n let! result_ = (__.${(0,u.capitalize)(y.name)} context_ ${y.args.length>0?"{|":""} ${y.args.map(E=>`${E.name} = ${(0,u.ident)(E.name)}`).join("; ")} ${y.args.length>0?"|}":""})\n ${(0,u.encodeType)(y.returnType,"result_",`"${y.name}().ret"`,1,!1).replace(/\n/gu,"\n ")}`}return s+="\n\n | _ -> raise (FatalException($\"Unknown function '{context_.Name}'.\"))\n } :> Task",s+=`\n member __.GetAstJson() = """${JSON.stringify((0,i.astToJson)(c),null,4).replace(/\n/gu,"\n ")}""";`,s}},8735:(Le,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.generateEnum=_.generateStruct=_.encodeType=_.decodeType=_.generateTypeName=_.capitalize=_.ident=void 0;const i=l(6676),u=["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","type","end","id"],c=[i.BigIntPrimitiveType,i.DatePrimitiveType,i.DateTimePrimitiveType,i.FloatPrimitiveType,i.IntPrimitiveType,i.MoneyPrimitiveType,i.UIntPrimitiveType,i.ArrayType];function s(M){return u.includes(M)?`${M}'`:M}function y(M){return M[0].toUpperCase()+M.slice(1)}function E(M){switch(M.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"bigint";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.UuidPrimitiveType:return"Guid";case i.CpfPrimitiveType:case i.CnpjPrimitiveType:case i.EmailPrimitiveType:case i.HtmlPrimitiveType:case i.UrlPrimitiveType: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`${E(M.base)} option`;case i.ArrayType:return`${E(M.base)} list`;case i.StructType:case i.EnumType:return M.name;case i.TypeReference:return E(M.type);default:throw new Error(`BUG: generateTypeName with ${M.constructor.name}`)}}function w(M,b,R,V,fe=1,$=!0){switch(M.constructor){case i.IntPrimitiveType:return`\n decodeInt32 ${b} ${R}\n `.replace(/\n {16}/gu,"\n").trim();case i.UIntPrimitiveType:return`\n decodeUInt32 ${b} ${R}\n `.replace(/\n {16}/gu,"\n").trim();case i.MoneyPrimitiveType:return`\n (decodeMoney ${b} ${R}) / 100m\n `.replace(/\n {16}/gu,"\n").trim();case i.FloatPrimitiveType:return`\n decodeFloat ${b} ${R}\n `.replace(/\n {16}/gu,"\n").trim();case i.BigIntPrimitiveType:return`\n decodeBigInt ${b} ${R}\n `.replace(/\n {16}/gu,"\n").trim();case i.StringPrimitiveType:return`\n decodeString ${b} ${R}\n `.replace(/\n {16}/gu,"\n").trim();case i.HtmlPrimitiveType:return`\n decodeHtml ${b} ${R}\n `.replace(/\n {16}/gu,"\n").trim();case i.CpfPrimitiveType:return`\n decodeCpf ${b} ${R}\n `.replace(/\n {16}/gu,"\n").trim();case i.CnpjPrimitiveType:return`\n decodeCnpj ${b} ${R}\n `.replace(/\n {16}/gu,"\n").trim();case i.EmailPrimitiveType:return`\n decodeEmail ${b} ${R}\n `.replace(/\n {16}/gu,"\n").trim();case i.UrlPrimitiveType:return`\n decodeUrl ${b} ${R}\n `.replace(/\n {16}/gu,"\n").trim();case i.UuidPrimitiveType:return`\n decodeUuid ${b} ${R}\n `.replace(/\n {16}/gu,"\n").trim();case i.HexPrimitiveType:return`\n decodeHex ${b} ${R}\n `.replace(/\n {16}/gu,"\n").trim();case i.Base64PrimitiveType:return`\n decodeBase64 ${b} ${R}\n `.replace(/\n {16}/gu,"\n").trim();case i.XmlPrimitiveType:return`\n decodeXml ${b} ${R}\n `.replace(/\n {16}/gu,"\n").trim();case i.BoolPrimitiveType:return`\n decodeBool ${b} ${R}\n `.replace(/\n {16}/gu,"\n").trim();case i.BytesPrimitiveType:return`\n decodeBytes ${b} ${R}\n `.replace(/\n {16}/gu,"\n").trim();case i.TypeReference:return w(M.type,b,R,V,fe);case i.OptionalType:return c.includes(M.base.constructor)?`match ${b}.ValueKind with\n | JsonValueKind.Null | JsonValueKind.Undefined -> None\n | _ ->\n (${w(M.base,b,R,V,fe,!1).replace(/\n/gu,"\n ")}) |> Some\n `.replace(/\n {16}/gu,"\n").trim():M.base instanceof i.OptionalType||M.base instanceof i.ArrayType?`\n (>.>) decodeOptional ${w(M.base,b,R,V,fe,!1)}\n `.replace(/\n {16}/gu,"\n").trim():`\n decodeOptional ${w(M.base,b,R,V,fe,!1)}\n `.replace(/\n {16}/gu,"\n").trim();case i.EnumType:case i.StructType:return`Decode${M.name} ${b} ${R}`;case i.JsonPrimitiveType:return $?`\n ${b}\n `.replace(/\n {16}/gu,"\n").trim():`${V} <- ${b}`;case i.DateTimePrimitiveType:return`\n decodeDateTime ${b} ${R}\n `.replace(/\n {16}/gu,"\n").trim();case i.DatePrimitiveType:return`\n decodeDate ${b} ${R}\n `.replace(/\n {16}/gu,"\n").trim();case i.ArrayType:return`\n match ${b}.ValueKind with\n | JsonValueKind.Array ->\n let mutable list_ = List.empty\n for i1 in 0 .. (${b}.GetArrayLength() - 1) do\n let item = ${b}.[i1]\n let partialResult =\n ${w(M.base,`${b}.[i1]`,`${R.slice(0,-1)}.{i1}"`,V,fe,!1).replace(/\n/gu,"\n ")}\n list_ <- list_ |> List.append [ partialResult ]\n list_\n | _ -> raise (FatalException(${R.slice(0,-1)} must be an array."))\n `.replace(/\n {16}/gu,"\n").trim();default:throw new Error(`BUG: decodeType with ${M.constructor.name}`)}}function I(M,b,R,V=1,fe=!0){switch(M.constructor){case i.StringPrimitiveType:return`resultWriter_.WriteStringValue(${b})`;case i.FloatPrimitiveType:case i.UIntPrimitiveType:case i.IntPrimitiveType:return`resultWriter_.WriteNumberValue(${b})`;case i.MoneyPrimitiveType:return`resultWriter_.WriteNumberValue(int (Math.Round(${b} * 100m)))`;case i.BigIntPrimitiveType:return`resultWriter_.WriteStringValue(${b}.ToString())`;case i.BoolPrimitiveType:return`resultWriter_.WriteBooleanValue(${b})`;case i.BytesPrimitiveType:return`resultWriter_.WriteStringValue(Convert.ToBase64String(${b}))`;case i.DateTimePrimitiveType:return`resultWriter_.WriteStringValue(${b}.ToString("yyyy-MM-ddTHH:mm:ss.FFFFFF'Z'"))`;case i.DatePrimitiveType:return`resultWriter_.WriteStringValue(${b}.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(${b})`;case i.OptionalType:{let $=M.base;for(;$ instanceof i.TypeReference;)$=$.type;return`\n if (${b}.IsNone) then\n resultWriter_.WriteNullValue()\n else\n ${I($,`${b}.Value`,R,V,fe)}\n `.replace(/\n {14}/gu,"\n").trim()}case i.TypeReference:return I(M.type,b,R,V,fe);case i.EnumType:case i.StructType:return`Encode${M.name} ${b} resultWriter_ ${R}`;case i.JsonPrimitiveType:return`${b}.WriteTo(resultWriter_)`;case i.ArrayType:return`\n resultWriter_.WriteStartArray()\n for i${V} in 0..${b}.Length - 1 do\n ${I(M.base,`${b}.[i${V}]`,`${R}`,V+1).replace(/\n/gu,"\n ")}\n resultWriter_.WriteEndArray()\n `.replace(/\n {14}/gu,"\n").trim();default:throw new Error(`BUG: encodeType with ${M.constructor.name}`)}}_.ident=s,_.capitalize=y,_.generateTypeName=E,_.decodeType=w,_.encodeType=I,_.generateStruct=function h(M){return`\ntype ${M.name} = {\n ${M.fields.map(b=>`${y(b.name)}: ${E(b.type)}`).join(";\n ")}\n} with\n static member Create (${M.fields.map(b=>`${s(b.name)}: ${E(b.type)}`).join(", ")}): ${M.name} =\n { ${M.fields.map(b=>`${y(b.name)} = ${s(b.name)}`).join("; ")} }\n\nlet Decode${M.name} (json_: JsonElement) (path_: string): ${M.name} =\n if (json_.ValueKind <> JsonValueKind.Object) then raise (FatalException($"'{path_}' must be an object."))\n ${M.fields.map(b=>`\n let ${b.name}Json_ = decodeJsonElementStrict ${JSON.stringify(b.name)} json_ $"{path_}.${b.name}"\n let ${s(b.name)} =\n ${w(b.type,`${b.name}Json_`,`$"{path_}.${b.name}"`,s(b.name)).replace(/\n/gu,"\n ")}\n `).join("")}\n { ${M.fields.map(b=>`${y(b.name)} = ${s(b.name)}`).join("; ")} }\n\nlet Encode${M.name} (obj_: ${M.name}) (resultWriter_: Utf8JsonWriter) (path_: string) =\n resultWriter_.WriteStartObject()\n ${M.fields.map(b=>`\n resultWriter_.WritePropertyName(${JSON.stringify(b.name)})\n ${I(b.type,`obj_.${y(b.name)}`,`$"{path_}.${b.name}"`).replace(/\n/gu,"\n ")}`).join("\n")}\n resultWriter_.WriteEndObject()`},_.generateEnum=function A(M){return`\ntype ${M.name} =\n ${M.values.map(({value:b})=>`| ${y(b)}`).join("\n ")}\n\nlet Decode${M.name} (json_: JsonElement) (path_: string): ${M.name} =\n if (json_.ValueKind <> JsonValueKind.String) then raise (FatalException($"'{path_}' must be a string."))\n match json_.GetString() with\n ${M.values.map(({value:b})=>`| "${b}" -> ${M.name}.${y(b)}`).join("\n ")}\n | _ -> raise (FatalException($"'{path_}' must be one of: (${M.values.map(({value:b})=>`'${b}'`).join(", ")})."))\n\nlet Encode${M.name} (obj_: ${M.name}) (resultWriter_: Utf8JsonWriter) (path_: string) =\n match obj_ with\n ${M.values.map(({value:b})=>`| ${M.name}.${y(b)} -> resultWriter_.WriteStringValue("${b}")`).join("\n ")}\n\n`}},2863:function(Le,_,l){"use strict";var i=this&&this.__createBinding||(Object.create?function(g,c,s,y){void 0===y&&(y=s),Object.defineProperty(g,y,{enumerable:!0,get:function(){return c[s]}})}:function(g,c,s,y){void 0===y&&(y=s),g[y]=c[s]}),u=this&&this.__exportStar||function(g,c){for(var s in g)"default"!==s&&!Object.prototype.hasOwnProperty.call(c,s)&&i(c,g,s)};Object.defineProperty(_,"__esModule",{value:!0}),u(l(196),_)},9409:(Le,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.generateAndroidClientSource=void 0;const i=l(6676),u=l(7250);_.generateAndroidClientSource=function g(c,s){let y='@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 I of c.enumTypes)y+=` ${(0,u.generateEnum)(I)}`,y+="\n";y+=" open class Error(val message: String? = null)\n",y+=" data class Response<T>(val error: Error?, val data: T?, val stats: CallStats?)\n\n";for(const I of c.structTypes)y+=` ${(0,u.generateClass)(I)}\n`;const E=[],w=new i.ErrorNode("Connection",new i.VoidPrimitiveType);E.push(w.name),y+=` ${(0,u.generateErrorClass)(w)}`;for(const I of c.errors)y+=` ${(0,u.generateErrorClass)(I)}`,E.push(I.name);return E.length>0&&(y+=`\n enum class ErrorType {\n ${E.join(",\n ")};\n\n fun type(): Class<out ApiClient.Error> {\n return when (this) {\n ${E.map(I=>`${I} -> ApiClient.${I}::class.java`).join("\n ")}\n else -> ApiClient.Error::class.java\n }\n }\n }\n\n`),y+=" private val sdkgenIOScope = CoroutineScope(IO + SupervisorJob())\n\n",y+=c.operations.filter(I=>I.annotations.every(h=>!(h instanceof i.HiddenAnnotation))).map(I=>{let h="";const A=[];A.push("timeoutMillis: Long? = null"),s&&A.push(`callback: ((response: Response<${(0,u.generateKotlinTypeName)(I.returnType)}>) -> Unit)? = null`);const M=I.args.map(b=>`${(0,u.mangle)(b.name)}: ${(0,u.generateKotlinTypeName)(b.type)}`).concat(A);return h+=` fun ${(0,u.mangle)(I.name)}(\n ${M.join(",\n ")}\n ): Deferred<Response<out ${(0,u.generateKotlinTypeName)(I.returnType)}>> = sdkgenIOScope.async {\n`,I.args.length>0?(h+=" val bodyArgs = JsonObject().apply {\n",h+=I.args.map(b=>` ${(0,u.generateJsonAddRepresentation)(b.type,b.name)}`).join("\n"),h+="\n }\n"):h+=" val bodyArgs: JsonObject? = null",h+="\n",h+=` val call = makeRequest("${I.name}", bodyArgs, timeoutMillis)\n`,h+=` val response: Response<${(0,u.generateKotlinTypeName)(I.returnType)}> = handleCallResponse(call)\n`,s&&(h+=" withContext(Dispatchers.Main) { callback?.invoke(response) } \n"),h+=" return@async response\n",h+=" }\n",h}).join("\n"),y+='\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',y+="}\n",y}},7250:(Le,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.generateErrorClass=_.generateClass=_.getAnnotation=_.generateEnum=_.generateJsonAddRepresentation=_.mangle=_.generateKotlinTypeName=void 0;const i=l(6676);function u(I){switch(I.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`${u(I.base)}?`;case i.ArrayType:return`ArrayList<${u(I.base)}>`;case i.StructType:case i.EnumType:return I.name;case i.TypeReference:return u(I.type);default:throw new Error(`BUG: generateKotlinTypeName with ${I.constructor.name}`)}}function g(I){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(I)?`_${I}`:I}function y(I,h){let A="";switch(h&&h!==g(h)&&(A+=` @SerializedName("${h}")\n`),I.constructor){case i.DatePrimitiveType:A+=" @JsonAdapter(DateAdapter::class)\n";break;case i.DateTimePrimitiveType:A+=" @JsonAdapter(DateTimeAdapter::class)\n";break;case i.ArrayType:case i.OptionalType:A+=y(I.base)}return A}_.generateKotlinTypeName=u,_.mangle=g,_.generateJsonAddRepresentation=function c(I,h){switch(I.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("${h}", ${g(h)})`;case i.OptionalType:return c(I.base,h);case i.DatePrimitiveType:return`addProperty("${h}", ${g(h)}?.let { DateAdapter.sdf.format(it.time)}) `;case i.DateTimePrimitiveType:return`addProperty("${h}", ${g(h)}?.let { DateTimeAdapter.sdf.format(it.time)})`;case i.ArrayType:case i.StructType:case i.EnumType:case i.TypeReference:case i.JsonPrimitiveType:return`add("${h}", gson.toJsonTree(${g(h)}))`;case i.VoidPrimitiveType:return"";case i.BytesPrimitiveType:return`addProperty("${h}", Base64.encodeToString(${g(h)}, Base64.NO_WRAP))`;default:throw new Error(`BUG: No result found for generateJsonRepresentation with ${I.constructor.name}`)}},_.generateEnum=function s(I){let h="@Parcelize \n";return h+=` enum class ${I.name} : Parcelable { ${I.values.map(A=>g(A.value)).join(", ")} }\n`,h},_.getAnnotation=y,_.generateClass=function E(I){let h="@Parcelize\n";return h+=` data class ${I.name}(\n${I.fields.map(A=>{let M=y(A.type,A.name);return M+=` var ${g(A.name)}: ${u(A.type)}${A.type.constructor===i.OptionalType?" = null":""}`,M}).join(",\n")}\n ) : Parcelable\n`,h},_.generateErrorClass=function w(I){return`class ${I.name}(message: String) : Error(message)\n`}},7402:function(Le,_,l){"use strict";var i=this&&this.__createBinding||(Object.create?function(g,c,s,y){void 0===y&&(y=s),Object.defineProperty(g,y,{enumerable:!0,get:function(){return c[s]}})}:function(g,c,s,y){void 0===y&&(y=s),g[y]=c[s]}),u=this&&this.__exportStar||function(g,c){for(var s in g)"default"!==s&&!Object.prototype.hasOwnProperty.call(c,s)&&i(c,g,s)};Object.defineProperty(_,"__esModule",{value:!0}),u(l(9409),_)},1942:function(Le,_,l){"use strict";var i=this&&this.__rest||function(Re,ve){var Ye={};for(var ht in Re)Object.prototype.hasOwnProperty.call(Re,ht)&&ve.indexOf(ht)<0&&(Ye[ht]=Re[ht]);if(null!=Re&&"function"==typeof Object.getOwnPropertySymbols){var bt=0;for(ht=Object.getOwnPropertySymbols(Re);bt<ht.length;bt++)ve.indexOf(ht[bt])<0&&Object.prototype.propertyIsEnumerable.call(Re,ht[bt])&&(Ye[ht[bt]]=Re[ht[bt]])}return Ye};Object.defineProperty(_,"__esModule",{value:!0}),_.AstRoot=_.FunctionOperation=_.TypeDefinition=_.StructType=_.TypeReference=_.Spread=_.Field=_.EnumType=_.EnumValue=_.ArrayType=_.OptionalType=_.JsonPrimitiveType=_.XmlPrimitiveType=_.Base64PrimitiveType=_.HtmlPrimitiveType=_.HexPrimitiveType=_.UuidPrimitiveType=_.UrlPrimitiveType=_.EmailPrimitiveType=_.CnpjPrimitiveType=_.CpfPrimitiveType=_.MoneyPrimitiveType=_.VoidPrimitiveType=_.BytesPrimitiveType=_.BoolPrimitiveType=_.DateTimePrimitiveType=_.DatePrimitiveType=_.BigIntPrimitiveType=_.FloatPrimitiveType=_.UIntPrimitiveType=_.IntPrimitiveType=_.StringPrimitiveType=_.PrimitiveType=_.HiddenAnnotation=_.RestAnnotation=_.ArgDescriptionAnnotation=_.ThrowsAnnotation=_.DescriptionAnnotation=_.Annotation=_.ErrorNode=_.Type=_.AstNode=void 0;const u=l(9037);class g{constructor(){this.location=new u.TokenLocation,Object.defineProperty(this,"location",{enumerable:!1})}at(ve){return this.location=ve.location,this}atLocation(ve){return this.location=ve,this}}_.AstNode=g;class c extends g{toJSON(){const ve=Object.assign({},this);return i(ve,["name"])}}_.Type=c,_.ErrorNode=class s extends g{constructor(ve,Ye){super(),this.name=ve,this.dataType=Ye}};class y extends g{}_.Annotation=y,_.DescriptionAnnotation=class E extends y{constructor(ve){super(),this.text=ve}},_.ThrowsAnnotation=class w extends y{constructor(ve){super(),this.error=ve}},_.ArgDescriptionAnnotation=class I extends y{constructor(ve,Ye){super(),this.argName=ve,this.text=Ye}},_.RestAnnotation=class h extends y{constructor(ve,Ye,ht,bt,Ot,lt){super(),this.method=ve,this.path=Ye,this.pathVariables=ht,this.queryVariables=bt,this.headers=Ot,this.bodyVariable=lt}},_.HiddenAnnotation=class A extends y{};class M extends c{}_.PrimitiveType=M,_.StringPrimitiveType=class b extends M{constructor(){super(...arguments),this.name="string"}},_.IntPrimitiveType=class R extends M{constructor(){super(...arguments),this.name="int"}},_.UIntPrimitiveType=class V extends M{constructor(){super(...arguments),this.name="uint"}},_.FloatPrimitiveType=class fe extends M{constructor(){super(...arguments),this.name="float"}},_.BigIntPrimitiveType=class $ extends M{constructor(){super(...arguments),this.name="bigint"}},_.DatePrimitiveType=class ie extends M{constructor(){super(...arguments),this.name="date"}},_.DateTimePrimitiveType=class we extends M{constructor(){super(...arguments),this.name="datetime"}},_.BoolPrimitiveType=class pe extends M{constructor(){super(...arguments),this.name="bool"}},_.BytesPrimitiveType=class _e extends M{constructor(){super(...arguments),this.name="bytes"}},_.VoidPrimitiveType=class le extends M{constructor(){super(...arguments),this.name="void"}},_.MoneyPrimitiveType=class De extends M{constructor(){super(...arguments),this.name="money"}},_.CpfPrimitiveType=class Fe extends M{constructor(){super(...arguments),this.name="cpf"}},_.CnpjPrimitiveType=class Je extends M{constructor(){super(...arguments),this.name="cnpj"}},_.EmailPrimitiveType=class ot extends M{constructor(){super(...arguments),this.name="email"}},_.UrlPrimitiveType=class q extends M{constructor(){super(...arguments),this.name="url"}},_.UuidPrimitiveType=class Pe extends M{constructor(){super(...arguments),this.name="uuid"}},_.HexPrimitiveType=class J extends M{constructor(){super(...arguments),this.name="hex"}},_.HtmlPrimitiveType=class ce extends M{constructor(){super(...arguments),this.name="html"}},_.Base64PrimitiveType=class Se extends M{constructor(){super(...arguments),this.name="base64"}},_.XmlPrimitiveType=class re extends M{constructor(){super(...arguments),this.name="xml"}},_.JsonPrimitiveType=class Ke extends M{constructor(){super(...arguments),this.name="json"}},_.OptionalType=class ge extends c{constructor(ve){super(),this.base=ve}get name(){return`${this.base.name}?`}},_.ArrayType=class it extends c{constructor(ve){super(),this.base=ve}get name(){return`${this.base.name}[]`}},_.EnumValue=class ye extends g{constructor(ve){super(),this.value=ve,this.annotations=[],this.struct=null}},_.EnumType=class He extends c{constructor(ve){super(),this.values=ve}get hasStructValues(){return this.values.some(ve=>null!==ve.struct)}},_.Field=class dt extends g{constructor(ve,Ye,ht=!1){super(),this.name=ve,this.type=Ye,this.secret=ht,this.annotations=[]}},_.Spread=class Et extends g{constructor(ve){super(),this.typeReference=ve}},_.TypeReference=class ke extends c{constructor(ve){super(),this.name=ve}},_.StructType=class Ze extends c{constructor(ve){super(),this.fieldsAndSpreads=ve,this.fields=[]}},_.TypeDefinition=class Z extends g{constructor(ve,Ye){super(),this.name=ve,this.type=Ye,this.annotations=[]}},_.FunctionOperation=class me extends g{constructor(ve,Ye,ht){super(),this.name=ve,this.fieldsAndSpreads=Ye,this.returnType=ht,this.annotations=[],this.args=[]}},_.AstRoot=class Me{constructor(ve=[],Ye=[],ht=[]){this.typeDefinitions=ve,this.operations=Ye,this.errors=ht,this.structTypes=[],this.enumTypes=[],this.warnings=[]}}},9747:(Le,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.compatibilityIssues=void 0;const i=l(1942);function u(s,y,E,w){var I,h;if(E instanceof i.TypeReference)u(s,y,E.type,w);else if(w instanceof i.TypeReference)u(s,y,E,w.type);else if(E instanceof i.OptionalType||!(w instanceof i.OptionalType))if(E instanceof i.OptionalType&&w instanceof i.OptionalType)u(s,y,E.base,w.base);else{if(E instanceof i.OptionalType&&!(w instanceof i.OptionalType))return y.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 u(s,y,E.base,w);if(E instanceof i.ArrayType&&w instanceof i.ArrayType)u(s,y,E.base,w.base);else if(E instanceof i.StructType&&w instanceof i.StructType)for(const A of w.fields){const M=E.fields.find(b=>b.name===A.name);if(M)u(`${s}.${M.name}`,y,M.type,A.type);else{if(A.type instanceof i.OptionalType)continue;y.push(`${s}.${A.name} didn't exist before and isn't optional. Make it optional.`)}}else if(!(E instanceof i.UIntPrimitiveType&&w instanceof i.IntPrimitiveType||E instanceof i.IntPrimitiveType&&w instanceof i.FloatPrimitiveType||E instanceof i.MoneyPrimitiveType&&w instanceof i.IntPrimitiveType||E instanceof i.MoneyPrimitiveType&&w instanceof i.UIntPrimitiveType||E instanceof i.UIntPrimitiveType&&w instanceof i.BigIntPrimitiveType||E instanceof i.IntPrimitiveType&&w instanceof i.BigIntPrimitiveType||E instanceof i.MoneyPrimitiveType&&w instanceof i.BigIntPrimitiveType||E instanceof i.BigIntPrimitiveType&&w instanceof i.StringPrimitiveType||E instanceof i.UuidPrimitiveType&&w instanceof i.StringPrimitiveType||E instanceof i.XmlPrimitiveType&&w instanceof i.StringPrimitiveType||E instanceof i.DatePrimitiveType&&w instanceof i.StringPrimitiveType||E instanceof i.DateTimePrimitiveType&&w instanceof i.StringPrimitiveType||E instanceof i.CpfPrimitiveType&&w instanceof i.StringPrimitiveType||E instanceof i.CnpjPrimitiveType&&w instanceof i.StringPrimitiveType||E instanceof i.HexPrimitiveType&&w instanceof i.StringPrimitiveType||E instanceof i.HtmlPrimitiveType&&w instanceof i.StringPrimitiveType||E instanceof i.Base64PrimitiveType&&w instanceof i.StringPrimitiveType||E instanceof i.BytesPrimitiveType&&w instanceof i.StringPrimitiveType||E instanceof i.BytesPrimitiveType&&w instanceof i.Base64PrimitiveType||E instanceof i.UrlPrimitiveType&&w instanceof i.StringPrimitiveType||E instanceof i.EmailPrimitiveType&&w instanceof i.StringPrimitiveType||E instanceof i.EnumType&&w instanceof i.StringPrimitiveType)){if(E instanceof i.EnumType&&w instanceof i.EnumType){for(const A of E.values){const M=w.values.find(b=>b.value===A.value);M?u(`${s}.${A.value}`,y,null!==(I=A.struct)&&void 0!==I?I:new i.StructType([]),null!==(h=M.struct)&&void 0!==h?h:new i.StructType([])):y.push(`The enum at ${s} used to accept the value "${A.value}" that doesn't exist now. Clients that send it will fail.`)}return}E.constructor.name!==w.constructor.name&&y.push(`${s} was ${E.name} and now it is ${w.name}. They are not compatible.`)}}else u(s,y,E,w.base)}function g(s,y,E,w){var I,h;if(E instanceof i.TypeReference)g(s,y,E.type,w);else if(w instanceof i.TypeReference)g(s,y,E,w.type);else if(!(E instanceof i.OptionalType)||w instanceof i.OptionalType)if(E instanceof i.OptionalType&&w instanceof i.OptionalType)g(s,y,E.base,w.base);else{if(!(E instanceof i.OptionalType)&&w instanceof i.OptionalType)return y.push(`${s} wasn't optional, but now it is. If the client receives a null, it will crash. Remove the optional annotation.`),void g(s,y,E,w.base);if(E instanceof i.ArrayType&&w instanceof i.ArrayType)g(s,y,E.base,w.base);else if(E instanceof i.StructType&&w instanceof i.StructType)for(const A of E.fields){const M=w.fields.find(b=>b.name===A.name);if(M)g(`${s}.${A.name}`,y,A.type,M.type);else{if(A.type instanceof i.OptionalType)continue;y.push(`${s}.${A.name} used to exist with type ${A.type.name}, but it's now missing. Add it back.`)}}else if(!(E instanceof i.IntPrimitiveType&&w instanceof i.UIntPrimitiveType||E instanceof i.FloatPrimitiveType&&w instanceof i.IntPrimitiveType||E instanceof i.IntPrimitiveType&&w instanceof i.MoneyPrimitiveType||E instanceof i.UIntPrimitiveType&&w instanceof i.MoneyPrimitiveType||E instanceof i.BigIntPrimitiveType&&w instanceof i.UIntPrimitiveType||E instanceof i.BigIntPrimitiveType&&w instanceof i.IntPrimitiveType||E instanceof i.BigIntPrimitiveType&&w instanceof i.MoneyPrimitiveType||E instanceof i.StringPrimitiveType&&w instanceof i.BigIntPrimitiveType||E instanceof i.StringPrimitiveType&&w instanceof i.UuidPrimitiveType||E instanceof i.StringPrimitiveType&&w instanceof i.XmlPrimitiveType||E instanceof i.StringPrimitiveType&&w instanceof i.DatePrimitiveType||E instanceof i.StringPrimitiveType&&w instanceof i.DateTimePrimitiveType||E instanceof i.StringPrimitiveType&&w instanceof i.CpfPrimitiveType||E instanceof i.StringPrimitiveType&&w instanceof i.CnpjPrimitiveType||E instanceof i.StringPrimitiveType&&w instanceof i.HexPrimitiveType||E instanceof i.StringPrimitiveType&&w instanceof i.HtmlPrimitiveType||E instanceof i.StringPrimitiveType&&w instanceof i.Base64PrimitiveType||E instanceof i.StringPrimitiveType&&w instanceof i.BytesPrimitiveType||E instanceof i.Base64PrimitiveType&&w instanceof i.BytesPrimitiveType||E instanceof i.StringPrimitiveType&&w instanceof i.UrlPrimitiveType||E instanceof i.StringPrimitiveType&&w instanceof i.EmailPrimitiveType||E instanceof i.StringPrimitiveType&&w instanceof i.EnumType)){if(E instanceof i.EnumType&&w instanceof i.EnumType){for(const A of w.values){const M=E.values.find(b=>b.value===A.value);M?g(`${s}.${A.value}`,y,null!==(I=M.struct)&&void 0!==I?I:new i.StructType([]),null!==(h=A.struct)&&void 0!==h?h:new i.StructType([])):y.push(`The enum at ${s} now has the value "${A.value}" that didn't exist before. Client will crash if it receives it`)}return}E.constructor.name!==w.constructor.name&&y.push(`${s} was ${E.name} and now it is ${w.name}. They are not compatible.`)}}else g(s,y,E.base,w)}_.compatibilityIssues=function c(s,y){const E=[];for(const w of s.operations){const I=y.operations.find(h=>h.name===w.name);if(I){g(`${w.name}.ret`,E,w.returnType,I.returnType);for(const h of I.args){const A=w.args.find(M=>M.name===h.name);if(A)u(`${w.name}.args.${A.name}`,E,A.type,h.type);else{if(h.type instanceof i.OptionalType)continue;E.push(`${w.name}.args.${h.name} didn't exist before and isn't optional. Make it optional.`)}}}else E.push(`function ${w.name} used to exist, but it's now missing. Add it back.`)}for(const w of s.errors){const I=y.errors.find(h=>h.name===w.name);!I||g(`${w.name}.data`,E,w.dataType,I.dataType)}return E}},6676:function(Le,_,l){"use strict";var i=this&&this.__createBinding||(Object.create?function(c,s,y,E){void 0===E&&(E=y),Object.defineProperty(c,E,{enumerable:!0,get:function(){return s[y]}})}:function(c,s,y,E){void 0===E&&(E=y),c[E]=s[y]}),u=this&&this.__exportStar||function(c,s){for(var y in c)"default"!==y&&!Object.prototype.hasOwnProperty.call(s,y)&&i(s,c,y)};Object.defineProperty(_,"__esModule",{value:!0}),_.jsonToAst=_.astToJson=void 0,u(l(1942),_),u(l(9747),_);var g=l(1557);Object.defineProperty(_,"astToJson",{enumerable:!0,get:function(){return g.astToJson}}),Object.defineProperty(_,"jsonToAst",{enumerable:!0,get:function(){return g.jsonToAst}}),u(l(8053),_),u(l(2701),_),u(l(9037),_)},1557:(Le,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.jsonToAst=_.astToJson=void 0;const i=l(1942),u=l(6088),g=l(6569);function c(w){if(w instanceof i.DescriptionAnnotation)return{type:"description",value:w.text};if(w instanceof i.ThrowsAnnotation)return{type:"throws",value:w.error};if(w instanceof i.RestAnnotation)return{type:"rest",value:{bodyVariable:w.bodyVariable,headers:[...w.headers.entries()].sort(([I],[h])=>I.localeCompare(h)),method:w.method,path:w.path,pathVariables:[...w.pathVariables].sort((I,h)=>I.localeCompare(h)),queryVariables:[...w.queryVariables].sort((I,h)=>I.localeCompare(h))}};if(w instanceof i.HiddenAnnotation)return{type:"hidden",value:null};throw new Error(`BUG: annotationToJson with ${w.constructor.name}`)}function s(w){switch(w.type){case"description":return new i.DescriptionAnnotation(w.value);case"throws":return new i.ThrowsAnnotation(w.value);case"rest":{const{method:I,path:h,pathVariables:A,queryVariables:M,headers:b,bodyVariable:R}=w.value;return new i.RestAnnotation(I,h,A,M,new Map(b),R)}case"hidden":return new i.HiddenAnnotation;default:throw new Error(`BUG: annotationFromJson with ${w.type}`)}}_.astToJson=function y(w){var I,h,A;const M={},b={};function R($){return $ instanceof i.ArrayType?`${R($.base)}[]`:$ instanceof i.OptionalType?`${R($.base)}?`:$.name}for(const{name:$,fields:ie}of w.structTypes){b[$]={};const we=b[$];for(const pe of ie){we[pe.name]=R(pe.type);for(const _e of pe.annotations)if(_e instanceof i.DescriptionAnnotation){const le=`type.${$}.${pe.name}`;null!==(I=M[le])&&void 0!==I||(M[le]=[]),M[le].push(c(_e))}}}for(const{name:$,values:ie}of w.enumTypes)b[$]=ie.map(we=>we.struct?[we.value,we.struct.name]:we.value);for(const{name:$,type:ie}of w.typeDefinitions)ie instanceof i.StructType||ie instanceof i.EnumType||(b[$]=R(ie));const V={};for(const $ of w.operations){const ie={};for(const we of $.args){ie[we.name]=R(we.type);for(const pe of we.annotations)if(pe instanceof i.DescriptionAnnotation){const _e=`fn.${$.name}.${we.name}`;null!==(h=M[_e])&&void 0!==h||(M[_e]=[]),M[_e].push(c(pe))}}V[$.name]={args:ie,ret:R($.returnType)};for(const we of $.annotations){const pe=`fn.${$.name}`;null!==(A=M[pe])&&void 0!==A||(M[pe]=[]),M[pe].push(c(we))}}return{annotations:M,errors:w.errors.map($=>$.dataType instanceof i.VoidPrimitiveType?$.name:[$.name,$.dataType.name]),functionTable:V,typeTable:b}},_.jsonToAst=function E(w){var I,h;const A=[],M=[],b=[];function R($,ie){var we;if("string"==typeof $){const _e=g.primitiveToAstClass.get($);return _e?new _e:$.endsWith("?")?new i.OptionalType(R($.slice(0,$.length-1))):$.endsWith("[]")?new i.ArrayType(R($.slice(0,$.length-2))):new i.TypeReference($)}if(Array.isArray($))return new i.EnumType($.map(_e=>{if(Array.isArray(_e)){const[le,De]=_e,Fe=new i.EnumValue(le);return b.push([Fe,De]),Fe}return new i.EnumValue(_e)}));const pe=[];for(const _e of Object.keys($)){const le=new i.Field(_e,R($[_e]));if(ie){const De=`type.${ie}.${_e}`;for(const Fe of null!==(we=w.annotations[De])&&void 0!==we?we:[])le.annotations.push(s(Fe))}pe.push(le)}return new i.StructType(pe)}for(const[$,ie]of Object.entries(w.typeTable)){const we=R(ie,$);M.push(new i.TypeDefinition($,we))}for(const[$,ie]of Object.entries(w.functionTable)){const we=Object.keys(ie.args).map(le=>{var De;const Fe=new i.Field(le,R(ie.args[le])),Je=`fn.${$}.${le}`;for(const ot of null!==(De=w.annotations[Je])&&void 0!==De?De:[])Fe.annotations.push(s(ot));return Fe}),pe=new i.FunctionOperation($,we,R(ie.ret)),_e=`fn.${$}`;for(const le of null!==(I=w.annotations[_e])&&void 0!==I?I:[])pe.annotations.push(s(le));A.push(pe)}for(const[$,ie]of b){const we=null===(h=M.find(pe=>pe.name===ie))||void 0===h?void 0:h.type;we instanceof i.StructType&&($.struct=we)}const V=w.errors.map($=>Array.isArray($)?new i.ErrorNode($[0],R($[1])):new i.ErrorNode($,new i.VoidPrimitiveType)),fe=new i.AstRoot(M,A,V);return(0,u.analyse)(fe),fe}},8053:(Le,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.Lexer=_.LexerError=void 0;const i=l(9037);class u extends Error{}_.LexerError=u;class g{constructor(s,y="-"){this.source=s,this.filename=y,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 y="\\",E=this.startPos+1;for(;"\\"===y[y.length-1];){for(y=y.slice(0,y.length-1).trim();!["\0","\n"].includes(this.nextChar()););y=`${y} ${this.source.substring(E,this.pos).trim()}`.trim(),E=this.pos+1}s=new i.AnnotationToken(y.trim());break}case'"':{const y=[];e:for(;;)switch(this.nextChar()){case"\0":break e;case"\\":switch(this.nextChar()){case"\0":break e;case"n":y.push("\n");break;case"t":y.push("\t");break;default:y.push(this.currentChar())}break;case'"':this.nextChar(),s=new i.StringLiteralToken(y.join(""));break e;default:y.push(this.currentChar())}break}default:if(/[a-zA-Z_]/u.test(this.currentChar())){for(;/[a-zA-Z0-9_]/u.test(this.nextChar()););const y=this.source.substring(this.startPos,this.pos);switch(y){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=g.PRIMITIVES.has(y)?new i.PrimitiveTypeToken(y):new i.IdentifierToken(y)}}}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 u(`Unexpected end of file at ${this.filename}`):new u(`Unexpected character ${JSON.stringify(this.currentChar())} at ${this.filename}:${this.line}:${this.column}`)}}_.Lexer=g,g.PRIMITIVES=new Set(["bool","int","uint","float","bigint","string","date","datetime","bytes","money","cpf","cnpj","email","html","url","uuid","hex","base64","xml","void","json"]),g.KEYWORDS=new Set([...g.PRIMITIVES,"error","enum","type","import","get","function","fn","true","false"])},2701:(Le,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.Parser=_.ParserError=void 0;const i=l(1942),u=l(8053),g=l(7145),c=l(6088),s=l(9037),y=l(6569);class E extends Error{}_.ParserError=E,_.Parser=class w{constructor(h){this.token=null,this.annotations=[],this.warnings=[],this.readFileSync=()=>{throw"Not implemented"};try{this.readFileSync=Object(function(){var M=new Error("Cannot find module 'fs'");throw M.code="MODULE_NOT_FOUND",M}())}catch(A){}this.lexers=h instanceof u.Lexer?[h]:[new u.Lexer(this.readFileSync(h).toString(),h)],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(h){if(!this.token)throw new E(`Expected ${Object.keys(h).map(M=>M.replace("Token","")).join(" or ")}, but found end of file`);const A=this.token.constructor.name;if(A in h)return h[A](this.token);if(h.IdentifierToken){const M=this.token.maybeAsIdentifier();if(M instanceof s.IdentifierToken)return h.IdentifierToken(M)}throw new E(`Expected ${Object.keys(h).map(M=>M.replace("Token","")).join(" or ")} at ${this.token.location}, but found ${this.token}`)}expect(h){if(null===this.token)throw new E(`Expected ${h.name.replace("Token","")}, but found end of file`);if(this.token instanceof h)return this.token;if(h===s.IdentifierToken){const A=this.token.maybeAsIdentifier();if(A instanceof s.IdentifierToken)return A}throw new E(`Expected ${h.name.replace("Token","")} at ${this.token.location}, but found ${this.token}`)}parse(){const h=[],A=[],M=[];for(this.warnings=[];this.token;)this.acceptAnnotations(),this.multiExpect({ErrorKeywordToken:()=>{M.push(this.parseError())},FnKeywordToken:()=>{h.push(this.parseOperation())},ImportKeywordToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken();const R=this.expect(s.StringLiteralToken),V=R.location.filename.replace(/[^/\\]+$/u,`${R.value}.sdkgen`);this.lexers.push(new u.Lexer(this.readFileSync(V).toString(),V)),this.nextToken()},TypeKeywordToken:()=>{A.push(this.parseTypeDefinition())}});const b=new i.AstRoot(A,h,M);return b.warnings=this.warnings,(0,c.analyse)(b),b}acceptAnnotations(){for(;this.token instanceof s.AnnotationToken;){const h=this.token.value.split(" "),A=this.token.value.slice(h[0].length).trim();switch(h[0]){case"description":this.annotations.push(new i.DescriptionAnnotation(A).at(this.token));break;case"arg":this.annotations.push(new i.ArgDescriptionAnnotation(h[1],this.token.value.slice(h[0].length+1+h[1].length).trim()).at(this.token));break;case"throws":this.annotations.push(new i.ThrowsAnnotation(A).at(this.token));break;case"rest":try{this.annotations.push((0,g.parseRestAnnotation)(A).at(this.token))}catch(M){throw new E(`${M instanceof Error?M.message:M} at ${this.token.location}`)}break;case"hidden":if(""!==A)throw new E("@hidden annotation doesn't take any argument");this.annotations.push((new i.HiddenAnnotation).at(this.token));break;default:throw new E(`Unknown annotation '${h[0]}' at ${this.token.location}`)}this.nextToken()}}checkCannotHaveAnnotationsHere(){if(this.annotations.length>0)throw new E(`Cannot have annotations at ${this.annotations[0].location}`)}parseTypeDefinition(){const h=this.expect(s.TypeKeywordToken);this.nextToken();const A=this.expect(s.IdentifierToken),M=A.value;if(!/[A-Z]/u.test(M[0]))throw new E(`The custom type name must start with an uppercase letter, but found ${JSON.stringify(M)} at ${A.location}`);this.nextToken();const{annotations:b}=this;this.annotations=[];const R=this.parseType(),V=new i.TypeDefinition(M,R).at(h);return V.annotations=b,V}parseError(){this.checkCannotHaveAnnotationsHere();const h=this.expect(s.ErrorKeywordToken);this.nextToken();const A=this.expect(s.IdentifierToken),M=A.value;if(!/[A-Z]/u.test(M[0]))throw new E(`Error name must start with an uppercase letter, but found ${JSON.stringify(M)} at ${A.location}`);this.nextToken();let b=new i.VoidPrimitiveType;return(this.token instanceof s.CurlyOpenSymbolToken||this.token instanceof s.EnumKeywordToken||this.token instanceof s.IdentifierToken||this.token instanceof s.PrimitiveTypeToken)&&(b=this.parseType()),new i.ErrorNode(M,b).at(h)}parseOperation(){let{annotations:h}=this;this.annotations=[],this.expect(s.FnKeywordToken),this.nextToken();const A=this.expect(s.IdentifierToken).value;this.nextToken(),this.expect(s.ParensOpenSymbolToken),this.nextToken();const M=new Set,b=[];let V,R=!1;for(;!R;)this.acceptAnnotations(),this.multiExpect({ParensCloseSymbolToken:ie=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),R=!0,V=ie},IdentifierToken:()=>{const ie=this.parseField();if(M.has(ie.name))throw new E(`Cannot redeclare argument '${ie.name}'`);M.add(ie.name),b.push(ie),this.multiExpect({ParensCloseSymbolToken:we=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),R=!0,V=we},CommaSymbolToken:()=>this.nextToken()})},SpreadSymbolToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken();const ie=this.expect(s.IdentifierToken);if(this.nextToken(),!/[A-Z]/u.test(ie.value[0]))throw new E(`Expected a type but found ${JSON.stringify(ie.value)} at ${ie.location}`);b.push(new i.Spread(new i.TypeReference(ie.value).at(ie)).at(ie)),this.multiExpect({ParensCloseSymbolToken:we=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),R=!0,V=we},CommaSymbolToken:()=>this.nextToken()})}});for(const ie of h)if(ie instanceof i.ArgDescriptionAnnotation){const we=b.find(pe=>pe instanceof i.Field&&pe.name===ie.argName);if(!we)throw new E(`Argument '${ie.argName}' not found, at ${ie.location}`);we.annotations.push(new i.DescriptionAnnotation(ie.text).atLocation(ie.location))}h=h.filter(ie=>!(ie instanceof i.ArgDescriptionAnnotation));let fe=(new i.VoidPrimitiveType).at(V);this.token instanceof s.ColonSymbolToken&&(this.nextToken(),fe=this.parseType());const $=new i.FunctionOperation(A,b,fe);return $.annotations=h,$}parseEnum(){this.checkCannotHaveAnnotationsHere();const h=this.expect(s.EnumKeywordToken);this.nextToken(),this.expect(s.CurlyOpenSymbolToken),this.nextToken();const A=new i.EnumType([]).at(h);let M=!1;for(;!M;)this.acceptAnnotations(),this.multiExpect({CurlyCloseSymbolToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),M=!0},IdentifierToken:b=>{const R=new i.EnumValue(b.value).at(b);if(R.annotations=this.annotations,this.annotations=[],A.values.push(R),this.nextToken(),!(this.token instanceof s.ParensOpenSymbolToken))return;this.nextToken();const V=new Set,fe=[];for(;this.token&&this.token.maybeAsIdentifier()instanceof s.IdentifierToken;){const $=this.parseField();if("tag"===$.name&&($.name="_tag"),V.has($.name))throw new E(`Cannot redeclare argument '${$.name}'`);if(V.add($.name),fe.push($),!(this.token instanceof s.CommaSymbolToken))break;this.nextToken()}R.struct=new i.StructType(fe).atLocation(R.location),this.expect(s.ParensCloseSymbolToken),this.nextToken()}});return A}parseField(){const h=this.expect(s.IdentifierToken);this.nextToken(),this.expect(s.ColonSymbolToken),this.nextToken();const{annotations:A}=this;this.annotations=[];const M=this.parseType(),b=new i.Field(h.value,M).at(h);for(b.annotations=A;this.token instanceof s.ExclamationMarkSymbolToken;){if("secret"!==(this.nextToken(),this.expect(s.IdentifierToken).value))throw new E(`Unknown field mark !${this.token.value} at ${this.token.location}`);b.secret=!0,this.nextToken()}return b}parseStruct(){const h=this.expect(s.CurlyOpenSymbolToken);this.nextToken();const A=[],M=new Set;let b=!1;for(;!b;)this.acceptAnnotations(),this.multiExpect({CurlyCloseSymbolToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),b=!0},IdentifierToken:()=>{const R=this.parseField();if(M.has(R.name))throw new E(`Cannot redeclare field '${R.name}'`);M.add(R.name),A.push(R)},SpreadSymbolToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken();const R=this.expect(s.IdentifierToken);if(this.nextToken(),!/[A-Z]/u.test(R.value[0]))throw new E(`Expected a type but found ${JSON.stringify(R.value)} at ${R.location}`);A.push(new i.Spread(new i.TypeReference(R.value).at(R)).at(R))}});return new i.StructType(A).at(h)}parseType(){this.checkCannotHaveAnnotationsHere();let h=this.multiExpect({CurlyOpenSymbolToken:()=>this.parseStruct(),EnumKeywordToken:()=>this.parseEnum(),IdentifierToken:A=>{if(this.nextToken(),!/[A-Z]/u.test(A.value[0]))throw new E(`Expected a type but found ${JSON.stringify(A.value)} at ${A.location}`);return new i.TypeReference(A.value).at(A)},PrimitiveTypeToken:A=>{this.nextToken();const M=y.primitiveToAstClass.get(A.value);if(M)return(new M).at(A);throw new E(`BUG! Should handle primitive ${A.value}`)}});for(;this.token instanceof s.ArraySymbolToken||this.token instanceof s.OptionalSymbolToken;)this.multiExpect({ArraySymbolToken:A=>h=new i.ArrayType(h).at(A),OptionalSymbolToken:A=>h=new i.OptionalType(h).at(A)}),this.nextToken();return h}}},7145:(Le,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.parseRestAnnotation=void 0;const i=l(1942);function c(y){var E;const w=/\{(?<name>\w+)\}/gu,I=[];let h;for(;null!==(h=w.exec(y));)(null===(E=h.groups)||void 0===E?void 0:E.name)&&I.push(h.groups.name);return I}_.parseRestAnnotation=function s(y){const E=y.split(" "),w=E[0].toUpperCase();if(!["GET","POST","PUT","DELETE","PATCH"].includes(w))throw new Error(`Unsupported method '${w}'`);let I=E[1];if(!I.startsWith("/"))throw new Error("Invalid path");let h=[];if(I.includes("?")){const[V,...fe]=I.split("?");I=V;const $=fe.join("?");if(!/^\{\w+\}(?:&\{\w+\})*$/u.test($))throw new Error("Invalid querystring on path");h=c($)}const A=c(I),M=E.slice(2).join(" "),b=function u(y){var E;const w=/\[header (?<header>[^()<>@,;:\\"/[\]?={}\s\t]+): \{(?<name>\w+)\}\]/gu,I=new Map;let h;for(;null!==(h=w.exec(y));)(null===(E=h.groups)||void 0===E?void 0:E.header)&&h.groups.name&&I.set(h.groups.header.toLowerCase(),h.groups.name);return I}(M),R=function g(y){var E;const w=/\[body \{(?<name>\w+)\}\]/u.exec(y);return(null===(E=null==w?void 0:w.groups)||void 0===E?void 0:E.name)?w.groups.name:null}(M);return new i.RestAnnotation(w,I,A,h,b,R)}},7629:(Le,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.CheckMultipleDeclarationVisitor=void 0;const i=l(1942),u=l(3154);_.CheckMultipleDeclarationVisitor=class g extends u.Visitor{constructor(){super(...arguments),this.nameToType=new Map}visit(s){if(s instanceof i.TypeDefinition){const y=this.nameToType.get(s.name);if(y&&JSON.stringify(y)!==JSON.stringify(s.type))throw new u.SemanticError(`Type '${s.name}' at ${s.location} is defined multiple times (also at ${y.location})`);this.nameToType.set(s.name,s.type)}super.visit(s)}}},6153:(Le,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.GiveStructAndEnumNamesVisitor=void 0;const i=l(1942),u=l(3154);_.GiveStructAndEnumNamesVisitor=class g extends u.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.EnumValue)this.path.push(s.value),super.visit(s),this.path.pop();else if(s instanceof i.StructType||s instanceof i.EnumType){s.name=this.path.map(E=>E[0].toUpperCase()+E.slice(1)).join("");const y=this.names.get(s.name);if(y&&JSON.stringify(y.type)!==JSON.stringify(s))throw new u.SemanticError(`The name of the type '${this.path.join(".")}' at ${s.location} will conflict with '${y.path.join(".")}' at ${y.type.location}`);this.names.set(s.name,{path:[...this.path],type:s}),super.visit(s)}else super.visit(s)}}},9471:(Le,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.MatchTypeDefinitionsVisitor=void 0;const i=l(1942),u=l(3154);_.MatchTypeDefinitionsVisitor=class g extends u.Visitor{visit(s){if(s instanceof i.TypeReference){const y=this.root.typeDefinitions.find(E=>E.name===s.name);if(void 0===y)throw new u.SemanticError(`Could not find type '${s.name}' at ${s.location}`);s.type=y.type}super.visit(s)}}},4612:(Le,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.CheckDontReturnSecretVisitor=void 0;const i=l(1942),u=l(3154);_.CheckDontReturnSecretVisitor=class g extends u.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 u.SemanticError(`Can't return a secret value at ${this.path.join(".")} at ${s.location}`);super.visit(s),this.path.pop()}else super.visit(s)}}},4978:(Le,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.ExpandSpreadsVisitor=void 0;const i=l(1942),u=l(3154);_.ExpandSpreadsVisitor=class g extends u.Visitor{constructor(){super(...arguments),this.processed=new Set}expandSpread(s,y){const E=new Map;for(const w of y){let I;if(w instanceof i.Field)I=[w];else{const h=w.typeReference.type;if(!(h instanceof i.StructType))throw new u.SemanticError(`A spread operator can't refer to something that is not a struct, in '${w.typeReference.name}' at ${w.location}.`);this.visit(h),I=h.fields}for(const h of I){const A=E.get(h.name);A?s[A]=h:(E.set(h.name,s.length),s.push(h))}}}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=[])}}},9866:(Le,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.CheckEmptyStructOrEnumVisitor=void 0;const i=l(1942),u=l(3154);_.CheckEmptyStructOrEnumVisitor=class g extends u.Visitor{visit(s){if(super.visit(s),s instanceof i.EnumType&&0===s.values.length)throw new u.SemanticError(`Enum '${s.name}' at ${s.location} is empty`);if(s instanceof i.StructType&&0===s.fields.length)throw new u.SemanticError(`Struct '${s.name}' at ${s.location} is empty`)}}},4647:(Le,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.ValidateRecursiveTypes=void 0;const i=l(1942),u=l(3154);_.ValidateRecursiveTypes=class g extends u.Visitor{visit(s){if(super.visit(s),s instanceof i.TypeDefinition&&this.isRecursiveType(s,s.type)){if(!(s.type instanceof i.StructType||s.type instanceof i.EnumType))throw new u.SemanticError(`Type '${s.name}' at ${s.location} is recursive but is not an struct`);if(this.isInfinitelyRecursiveType(s,s.type))throw new u.SemanticError(`Type '${s.name}' at ${s.location} is infinitely recursive`)}}isRecursiveType(s,y){return y instanceof i.TypeReference?s.name===y.name:y instanceof i.ArrayType||y instanceof i.OptionalType?this.isRecursiveType(s,y.base):y instanceof i.StructType?y.fields.some(E=>this.isRecursiveType(s,E.type)):y instanceof i.EnumType&&y.values.some(E=>E.struct&&this.isRecursiveType(s,E.struct))}isInfinitelyRecursiveType(s,y){return y instanceof i.TypeReference?y.name===s.name:y instanceof i.StructType?y.fields.some(E=>this.isInfinitelyRecursiveType(s,E.type)):y instanceof i.EnumType&&y.values.every(E=>E.struct&&this.isInfinitelyRecursiveType(s,E.struct))}}},2060:(Le,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.CollectStructAndEnumTypesVisitor=void 0;const i=l(1942),u=l(3154);_.CollectStructAndEnumTypesVisitor=class g extends u.Visitor{visit(s){super.visit(s),s instanceof i.StructType?this.root.structTypes.push(s):s instanceof i.EnumType&&this.root.enumTypes.push(s)}}},4212:(Le,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.ValidateAnnotationsVisitor=void 0;const i=l(1942),u=l(3154);function c(y){return y instanceof i.TypeReference?c(y.type):y}_.ValidateAnnotationsVisitor=class s extends u.Visitor{visit(E){if(E instanceof i.EnumValue){for(const w of E.annotations)if(!(w instanceof i.DescriptionAnnotation))throw new u.SemanticError(`Cannot have @${w.constructor.name.replace("Annotation","").toLowerCase()} at ${w.location}`)}else if(E instanceof i.TypeDefinition){for(const w of E.annotations)if(!(w instanceof i.DescriptionAnnotation))throw new u.SemanticError(`Cannot have @${w.constructor.name.replace("Annotation","").toLowerCase()} at ${w.location}`)}else if(E instanceof i.Field){for(const w of E.annotations)if(!(w instanceof i.DescriptionAnnotation))throw new u.SemanticError(`Cannot have @${w.constructor.name.replace("Annotation","").toLowerCase()} at ${w.location}`)}else if(E instanceof i.FunctionOperation)for(const w of E.annotations)if(!(w instanceof i.DescriptionAnnotation))if(w instanceof i.ThrowsAnnotation){if(!this.root.errors.some(I=>I.name===w.error))throw new u.SemanticError(`Unknown error type '${w.error}' at ${w.location}`)}else if(w instanceof i.RestAnnotation){const I=[...w.pathVariables,...w.queryVariables,...w.headers.values()];if(I.length!==new Set(I).size)throw new u.SemanticError(`Arguments must appear only once for rest annotation at ${w.location}`);for(const h of I){const A=E.args.find(b=>b.name===h);if(!A)throw new u.SemanticError(`Argument '${h}' not found at ${w.location}`);if(w.pathVariables.includes(h)&&A.type instanceof i.OptionalType)throw new u.SemanticError(`The path argument '${h}' can't be nullable at ${w.location}`);if(!((y=c(A.type instanceof i.OptionalType?A.type.base:A.type))instanceof i.BoolPrimitiveType||y instanceof i.IntPrimitiveType||y instanceof i.UIntPrimitiveType||y instanceof i.BigIntPrimitiveType||y instanceof i.FloatPrimitiveType||y instanceof i.StringPrimitiveType||y instanceof i.DatePrimitiveType||y instanceof i.DateTimePrimitiveType||y instanceof i.MoneyPrimitiveType||y instanceof i.CpfPrimitiveType||y instanceof i.CnpjPrimitiveType||y instanceof i.UuidPrimitiveType||y instanceof i.HexPrimitiveType||y instanceof i.Base64PrimitiveType||y instanceof i.EnumType))throw new u.SemanticError(`Argument '${h}' can't have type '${A.type.name}' for rest annotation at ${w.location}`)}for(const h of E.args)if(!I.includes(h.name)&&w.bodyVariable!==h.name)throw new u.SemanticError(`Argument '${h.name}' is missing from the rest annotation at ${w.location}`);if("GET"===w.method&&E.returnType instanceof i.VoidPrimitiveType)throw new u.SemanticError(`A GET rest endpoint must return something at ${w.location}`)}else if(!(w instanceof i.HiddenAnnotation))throw new u.SemanticError(`Cannot have @${w.constructor.name.replace("Annotation","").toLowerCase()} at ${w.location}`);var y}}},6088:(Le,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.analyse=void 0;const i=l(1942),u=l(7629),g=l(6153),c=l(9471),s=l(4612),y=l(4978),E=l(9866),w=l(4647),I=l(2060),h=l(4212);_.analyse=function A(M){M.errors.some(b=>"Fatal"===b.name)||M.errors.push(new i.ErrorNode("Fatal",new i.VoidPrimitiveType)),new u.CheckMultipleDeclarationVisitor(M).process(),new g.GiveStructAndEnumNamesVisitor(M).process(),new c.MatchTypeDefinitionsVisitor(M).process(),new s.CheckDontReturnSecretVisitor(M).process(),new y.ExpandSpreadsVisitor(M).process(),new E.CheckEmptyStructOrEnumVisitor(M).process(),new w.ValidateRecursiveTypes(M).process(),new I.CollectStructAndEnumTypesVisitor(M).process(),new h.ValidateAnnotationsVisitor(M).process()}},3154:(Le,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.Visitor=_.SemanticError=void 0;const i=l(1942);class u extends Error{}_.SemanticError=u,_.Visitor=class g{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 y of s.args)this.visit(y);for(const y of s.fieldsAndSpreads)this.visit(y);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 y of s.fields)this.visit(y);for(const y of s.fieldsAndSpreads)this.visit(y)}else if(s instanceof i.EnumType)for(const y of s.values)this.visit(y);else s instanceof i.EnumValue?s.struct&&this.visit(s.struct):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,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.PrimitiveTypeToken=_.FalseKeywordToken=_.TrueKeywordToken=_.ErrorKeywordToken=_.FnKeywordToken=_.EnumKeywordToken=_.TypeKeywordToken=_.ImportKeywordToken=_.AnnotationToken=_.SpreadSymbolToken=_.CommaSymbolToken=_.ArraySymbolToken=_.OptionalSymbolToken=_.ColonSymbolToken=_.ParensCloseSymbolToken=_.ParensOpenSymbolToken=_.CurlyCloseSymbolToken=_.CurlyOpenSymbolToken=_.ExclamationMarkSymbolToken=_.EqualSymbolToken=_.StringLiteralToken=_.IdentifierToken=_.Token=_.TokenLocation=void 0;class l{constructor(){this.filename="?",this.line=0,this.column=0}toString(){return`${this.filename}:${this.line}:${this.column}`}}_.TokenLocation=l;class i{constructor(Je=""){this.value=Je,this.location=new l,Object.defineProperty(this,"location",{enumerable:!1})}maybeAsIdentifier(){return this}toString(){const Je=this.constructor.name.replace("Token","");return""===this.value?Je:`${Je}(${JSON.stringify(this.value)})`}}_.Token=i;class u extends i{}_.IdentifierToken=u,_.StringLiteralToken=class g extends i{},_.EqualSymbolToken=class c extends i{},_.ExclamationMarkSymbolToken=class s extends i{},_.CurlyOpenSymbolToken=class y extends i{},_.CurlyCloseSymbolToken=class E extends i{},_.ParensOpenSymbolToken=class w extends i{},_.ParensCloseSymbolToken=class I extends i{},_.ColonSymbolToken=class h extends i{},_.OptionalSymbolToken=class A extends i{},_.ArraySymbolToken=class M extends i{},_.CommaSymbolToken=class b extends i{},_.SpreadSymbolToken=class R extends i{},_.AnnotationToken=class V extends i{},_.ImportKeywordToken=class fe extends i{maybeAsIdentifier(){return new u("import")}},_.TypeKeywordToken=class $ extends i{maybeAsIdentifier(){return new u("type")}},_.EnumKeywordToken=class ie extends i{maybeAsIdentifier(){return new u("enum")}},_.FnKeywordToken=class we extends i{maybeAsIdentifier(){return new u("fn")}},_.ErrorKeywordToken=class pe extends i{maybeAsIdentifier(){return new u("error")}},_.TrueKeywordToken=class _e extends i{maybeAsIdentifier(){return new u("true")}},_.FalseKeywordToken=class le extends i{maybeAsIdentifier(){return new u("false")}},_.PrimitiveTypeToken=class De extends i{maybeAsIdentifier(){return new u(this.value)}}},6569:(Le,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.primitiveToAstClass=void 0;const i=l(1942);_.primitiveToAstClass=new Map,_.primitiveToAstClass.set("string",i.StringPrimitiveType),_.primitiveToAstClass.set("int",i.IntPrimitiveType),_.primitiveToAstClass.set("uint",i.UIntPrimitiveType),_.primitiveToAstClass.set("date",i.DatePrimitiveType),_.primitiveToAstClass.set("datetime",i.DateTimePrimitiveType),_.primitiveToAstClass.set("float",i.FloatPrimitiveType),_.primitiveToAstClass.set("bigint",i.BigIntPrimitiveType),_.primitiveToAstClass.set("bool",i.BoolPrimitiveType),_.primitiveToAstClass.set("bytes",i.BytesPrimitiveType),_.primitiveToAstClass.set("money",i.MoneyPrimitiveType),_.primitiveToAstClass.set("cpf",i.CpfPrimitiveType),_.primitiveToAstClass.set("cnpj",i.CnpjPrimitiveType),_.primitiveToAstClass.set("email",i.EmailPrimitiveType),_.primitiveToAstClass.set("html",i.HtmlPrimitiveType),_.primitiveToAstClass.set("url",i.UrlPrimitiveType),_.primitiveToAstClass.set("uuid",i.UuidPrimitiveType),_.primitiveToAstClass.set("hex",i.HexPrimitiveType),_.primitiveToAstClass.set("base64",i.Base64PrimitiveType),_.primitiveToAstClass.set("xml",i.XmlPrimitiveType),_.primitiveToAstClass.set("json",i.JsonPrimitiveType),_.primitiveToAstClass.set("void",i.VoidPrimitiveType)},5041:(Le,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.AppComponent=void 0;const i=l(655),u=l(3075),g=l(7179),c=l(1823),s=l(2863),y=l(7402),E=l(7295),w=l(2911),I=l(4327),h=(0,i.__importStar)(l(5e3)),A=(0,i.__importStar)(l(6395)),M=(0,i.__importStar)(l(2313)),b=(0,i.__importStar)(l(5245)),R=(0,i.__importStar)(l(107)),V=(0,i.__importStar)(l(2253)),fe=(0,i.__importStar)(l(9808)),$=(0,i.__importStar)(l(2181)),ie=(0,i.__importStar)(l(3251)),we=(0,i.__importStar)(l(5585)),pe=(0,i.__importStar)(l(7423)),_e=(0,i.__importStar)(l(7238)),le=(0,i.__importStar)(l(4264)),De=(0,i.__importStar)(l(7822));function Fe(ge,it){1&ge&&(h.\u0275\u0275elementContainerStart(0),h.\u0275\u0275text(1,"Editor Avan\xe7ado"),h.\u0275\u0275elementContainerEnd())}function Je(ge,it){if(1&ge&&(h.\u0275\u0275elementContainerStart(0),h.\u0275\u0275elementStart(1,"span",20),h.\u0275\u0275text(2),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementContainerEnd()),2&ge){const ye=h.\u0275\u0275nextContext(2).$implicit;h.\u0275\u0275advance(2),h.\u0275\u0275textInterpolate1("\u25b6\xa0",ye.function,"")}}function ot(ge,it){if(1&ge){const ye=h.\u0275\u0275getCurrentView();h.\u0275\u0275elementStart(0,"span",17),h.\u0275\u0275template(1,Fe,2,0,"ng-container",18),h.\u0275\u0275template(2,Je,3,1,"ng-container",18),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(3,"button",19),h.\u0275\u0275listener("click",function(){h.\u0275\u0275restoreView(ye);const dt=h.\u0275\u0275nextContext().$implicit;return h.\u0275\u0275nextContext(2).closeTab(dt)}),h.\u0275\u0275elementStart(4,"mat-icon"),h.\u0275\u0275text(5,"close"),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementEnd()}if(2&ge){const ye=h.\u0275\u0275nextContext().$implicit;h.\u0275\u0275property("ngSwitch",ye.type),h.\u0275\u0275advance(1),h.\u0275\u0275property("ngSwitchCase","advanced"),h.\u0275\u0275advance(1),h.\u0275\u0275property("ngSwitchCase","simple")}}function q(ge,it){1&ge&&(h.\u0275\u0275elementContainerStart(0),h.\u0275\u0275element(1,"app-tab-editor"),h.\u0275\u0275elementContainerEnd())}function Pe(ge,it){if(1&ge&&(h.\u0275\u0275elementContainerStart(0),h.\u0275\u0275element(1,"app-simple-call",21),h.\u0275\u0275elementContainerEnd()),2&ge){const ye=h.\u0275\u0275nextContext().$implicit;h.\u0275\u0275advance(1),h.\u0275\u0275property("fn",ye.function)}}function J(ge,it){if(1&ge&&(h.\u0275\u0275elementStart(0,"mat-tab"),h.\u0275\u0275template(1,ot,6,3,"ng-template",16),h.\u0275\u0275elementContainerStart(2,17),h.\u0275\u0275template(3,q,2,0,"ng-container",18),h.\u0275\u0275template(4,Pe,2,1,"ng-container",18),h.\u0275\u0275elementContainerEnd(),h.\u0275\u0275elementEnd()),2&ge){const ye=it.$implicit;h.\u0275\u0275advance(2),h.\u0275\u0275property("ngSwitch",ye.type),h.\u0275\u0275advance(1),h.\u0275\u0275property("ngSwitchCase","advanced"),h.\u0275\u0275advance(1),h.\u0275\u0275property("ngSwitchCase","simple")}}function ce(ge,it){if(1&ge){const ye=h.\u0275\u0275getCurrentView();h.\u0275\u0275elementStart(0,"button",22),h.\u0275\u0275listener("click",function(){return h.\u0275\u0275restoreView(ye),h.\u0275\u0275nextContext(2).addAdvancedTab()}),h.\u0275\u0275elementStart(1,"mat-icon"),h.\u0275\u0275text(2,"add_circle"),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementEnd()}}function Se(ge,it){if(1&ge&&(h.\u0275\u0275elementStart(0,"button",23),h.\u0275\u0275elementStart(1,"mat-icon"),h.\u0275\u0275text(2,"download"),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementEnd()),2&ge){h.\u0275\u0275nextContext(2);const ye=h.\u0275\u0275reference(5);h.\u0275\u0275property("matMenuTriggerFor",ye)}}function re(ge,it){if(1&ge){const ye=h.\u0275\u0275getCurrentView();h.\u0275\u0275elementStart(0,"mat-tab-group",11),h.\u0275\u0275listener("selectedIndexChange",function(dt){return h.\u0275\u0275restoreView(ye),h.\u0275\u0275nextContext().selected.setValue(dt)}),h.\u0275\u0275elementStart(1,"mat-tab",12),h.\u0275\u0275elementStart(2,"app-tab-home",13),h.\u0275\u0275listener("runFunction",function(dt){return h.\u0275\u0275restoreView(ye),h.\u0275\u0275nextContext().addSimpleTab(dt)}),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementEnd(),h.\u0275\u0275template(3,J,5,3,"mat-tab",14),h.\u0275\u0275elementStart(4,"mat-tab",15),h.\u0275\u0275template(5,ce,3,0,"ng-template",16),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(6,"mat-tab",15),h.\u0275\u0275template(7,Se,3,1,"ng-template",16),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementEnd()}if(2&ge){const ye=h.\u0275\u0275nextContext();h.\u0275\u0275property("selectedIndex",ye.selected.value),h.\u0275\u0275advance(3),h.\u0275\u0275property("ngForOf",ye.tabs)}}class Ke{constructor(it,ye,He){this.sdkgen=it,this.domSanitizer=ye,this.matIconRegistry=He,this.selected=new u.FormControl(0),this.tabs=[{id:0,type:"advanced"}],this.tabIndex=1;for(const dt of["typescript","dot-net","kotlin","swift","dart"])this.matIconRegistry.addSvgIcon(dt,this.domSanitizer.bypassSecurityTrustResourceUrl(`assets/${dt}.svg`))}ngOnInit(){this.state$=this.sdkgen.state$.subscribe(it=>{this.state=null!=it?it:void 0})}ngOnDestroy(){var it;null===(it=this.state$)||void 0===it||it.unsubscribe()}addSimpleTab(it){this.tabs.push({id:this.tabIndex++,function:it,type:"simple"}),this.selected.setValue(this.tabs.length)}addAdvancedTab(){this.tabs.push({id:this.tabIndex++,type:"advanced"}),this.selected.setValue(this.tabs.length)}closeTab(it){this.tabs.splice(this.tabs.indexOf(it),1),this.selected.setValue(0)}downloadTarget(it){if(!this.state)return;let ye,He;switch(it){case"typescript_nodeserver":ye=(0,w.generateNodeServerSource)(this.state.astRoot),He="node-server.ts";break;case"typescript_nodeclient":ye=(0,w.generateNodeClientSource)(this.state.astRoot),He="node-client.ts";break;case"typescript_web":ye=(0,w.generateBrowserClientSource)(this.state.astRoot),He="web-client.ts";break;case"typescript_interfaces":ye=(0,w.generateTypescriptInterfaces)(this.state.astRoot),He="interfaces.ts";break;case"flutter":ye=(0,c.generateDartClientSource)(this.state.astRoot),He="flutter-client.dart";break;case"csharp_server":ye=(0,g.generateCSharpServerSource)(this.state.astRoot),He="csharp-server.cs";break;case"fsharp_server":ye=(0,s.generateFSharpServerSource)(this.state.astRoot),He="fsharp-server.fs";break;case"kotlin_android":ye=(0,y.generateAndroidClientSource)(this.state.astRoot,!0),He="android-client.kt";break;case"kotlin_android_without_callbacks":ye=(0,y.generateAndroidClientSource)(this.state.astRoot,!1),He="android-client-no-callbacks.kt";break;case"swift_ios":ye=(0,E.generateSwiftClientSource)(this.state.astRoot,!1),He="ios-client.swift";break;case"rxswift_ios":ye=(0,E.generateSwiftClientSource)(this.state.astRoot,!0),He="ios-client-rx.swift"}(0,I.saveAs)(new Blob([ye],{type:"application/octet-stream"}),He)}}_.AppComponent=Ke,Ke.\u0275fac=function(it){return new(it||Ke)(h.\u0275\u0275directiveInject(A.SdkgenService),h.\u0275\u0275directiveInject(M.DomSanitizer),h.\u0275\u0275directiveInject(b.MatIconRegistry))},Ke.\u0275cmp=h.\u0275\u0275defineComponent({type:Ke,selectors:[["app-root"]],decls:46,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(it,ye){1&it&&(h.\u0275\u0275element(0,"ngx-monaco-editor",0),h.\u0275\u0275element(1,"app-tab-nav"),h.\u0275\u0275template(2,re,8,2,"mat-tab-group",1),h.\u0275\u0275pipe(3,"async"),h.\u0275\u0275elementStart(4,"mat-menu",null,2),h.\u0275\u0275element(6,"div",3),h.\u0275\u0275elementStart(7,"button",4),h.\u0275\u0275text(8,"Cliente"),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(9,"button",5),h.\u0275\u0275listener("click",function(){return ye.downloadTarget("typescript_nodeclient")}),h.\u0275\u0275element(10,"mat-icon",6),h.\u0275\u0275text(11,"Node.js"),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(12,"button",5),h.\u0275\u0275listener("click",function(){return ye.downloadTarget("typescript_web")}),h.\u0275\u0275element(13,"mat-icon",6),h.\u0275\u0275text(14,"Web"),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(15,"button",5),h.\u0275\u0275listener("click",function(){return ye.downloadTarget("flutter")}),h.\u0275\u0275element(16,"mat-icon",7),h.\u0275\u0275text(17,"Flutter"),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(18,"button",5),h.\u0275\u0275listener("click",function(){return ye.downloadTarget("kotlin_android")}),h.\u0275\u0275element(19,"mat-icon",8),h.\u0275\u0275text(20,"Android"),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(21,"button",5),h.\u0275\u0275listener("click",function(){return ye.downloadTarget("kotlin_android_without_callbacks")}),h.\u0275\u0275element(22,"mat-icon",8),h.\u0275\u0275text(23,"Android (sem callbacks)"),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(24,"button",5),h.\u0275\u0275listener("click",function(){return ye.downloadTarget("swift_ios")}),h.\u0275\u0275element(25,"mat-icon",9),h.\u0275\u0275text(26,"iOS"),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(27,"button",5),h.\u0275\u0275listener("click",function(){return ye.downloadTarget("rxswift_ios")}),h.\u0275\u0275element(28,"mat-icon",9),h.\u0275\u0275text(29,"iOS (Rx)"),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(30,"button",4),h.\u0275\u0275text(31,"Servidor"),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(32,"button",5),h.\u0275\u0275listener("click",function(){return ye.downloadTarget("typescript_nodeserver")}),h.\u0275\u0275element(33,"mat-icon",6),h.\u0275\u0275text(34,"Node.js"),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(35,"button",5),h.\u0275\u0275listener("click",function(){return ye.downloadTarget("csharp_server")}),h.\u0275\u0275element(36,"mat-icon",10),h.\u0275\u0275text(37,"C#"),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(38,"button",5),h.\u0275\u0275listener("click",function(){return ye.downloadTarget("fsharp_server")}),h.\u0275\u0275element(39,"mat-icon",10),h.\u0275\u0275text(40,"F#"),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(41,"button",4),h.\u0275\u0275text(42,"Outros"),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(43,"button",5),h.\u0275\u0275listener("click",function(){return ye.downloadTarget("typescript_interfaces")}),h.\u0275\u0275element(44,"mat-icon",6),h.\u0275\u0275text(45,"Interfaces"),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementEnd()),2&it&&(h.\u0275\u0275advance(2),h.\u0275\u0275property("ngIf",h.\u0275\u0275pipeBind1(3,1,ye.sdkgen.state$)))},directives:[R.MonacoEditorComponent,V.TabNavComponent,fe.NgIf,$.MatMenu,$.MatMenuItem,b.MatIcon,ie.MatTabGroup,ie.MatTab,we.TabHomeComponent,fe.NgForOf,ie.MatTabLabel,fe.NgSwitch,fe.NgSwitchCase,pe.MatButton,_e.MatTooltip,le.TabEditorComponent,De.SimpleCallComponent,$.MatMenuTrigger],pipes:[fe.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,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.AppModule=void 0;const i=l(655),u=l(520),g=l(3075),c=l(7423),s=l(9417),y=l(508),E=l(8966),w=l(5245),I=l(2181),h=l(2075),A=l(3251),M=l(7238),b=l(2313),R=l(6360),V=l(107),fe=l(1430),$=l(5109),ie=l(2290),we=l(5041),pe=(0,i.__importStar)(l(5e3));(0,i.__importStar)(l(2290));class le{}_.AppModule=le,le.\u0275fac=function(Fe){return new(Fe||le)},le.\u0275mod=pe.\u0275\u0275defineNgModule({type:le,bootstrap:[we.AppComponent]}),le.\u0275inj=pe.\u0275\u0275defineInjector({providers:[{provide:V.MONACO_PATH,useValue:"assets/vs"}],imports:[[b.BrowserModule,g.FormsModule,g.ReactiveFormsModule,V.MonacoEditorModule,R.BrowserAnimationsModule,$.NgxJsonViewerModule,ie.ToastrModule.forRoot(),fe.AngularSplitModule,u.HttpClientModule,c.MatButtonModule,s.MatChipsModule,E.MatDialogModule,w.MatIconModule,I.MatMenuModule,y.MatRippleModule,h.MatTableModule,A.MatTabsModule,M.MatTooltipModule]]})},8495:(Le,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.ConsoleComponent=void 0;const i=l(655),u=l(9972),g=(0,i.__importStar)(l(5e3)),c=(0,i.__importStar)(l(7423)),s=(0,i.__importStar)(l(5245)),y=(0,i.__importStar)(l(9808)),E=(0,i.__importStar)(l(5109));function w(R,V){1&R&&(g.\u0275\u0275elementContainerStart(0),g.\u0275\u0275text(1,"info_outline"),g.\u0275\u0275elementContainerEnd())}function I(R,V){1&R&&(g.\u0275\u0275elementContainerStart(0),g.\u0275\u0275text(1,"error"),g.\u0275\u0275elementContainerEnd())}function h(R,V){1&R&&(g.\u0275\u0275elementContainerStart(0),g.\u0275\u0275text(1,"public"),g.\u0275\u0275elementContainerEnd())}function A(R,V){if(1&R&&g.\u0275\u0275element(0,"ngx-json-viewer",6),2&R){const fe=g.\u0275\u0275nextContext().$implicit;g.\u0275\u0275property("json",fe.details)("expanded",!1)}}function M(R,V){if(1&R&&(g.\u0275\u0275elementStart(0,"li",2),g.\u0275\u0275elementStart(1,"mat-icon",3),g.\u0275\u0275template(2,w,2,0,"ng-container",4),g.\u0275\u0275template(3,I,2,0,"ng-container",4),g.\u0275\u0275template(4,h,2,0,"ng-container",4),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(5,"span"),g.\u0275\u0275text(6),g.\u0275\u0275elementEnd(),g.\u0275\u0275template(7,A,1,2,"ngx-json-viewer",5),g.\u0275\u0275elementEnd()),2&R){const fe=V.$implicit,$=g.\u0275\u0275nextContext();g.\u0275\u0275property("ngClass",fe.type),g.\u0275\u0275advance(1),g.\u0275\u0275property("ngSwitch",fe.type)("ngClass",fe.type),g.\u0275\u0275advance(1),g.\u0275\u0275property("ngSwitchCase",$.itemTypes.INFO),g.\u0275\u0275advance(1),g.\u0275\u0275property("ngSwitchCase",$.itemTypes.ERROR),g.\u0275\u0275advance(1),g.\u0275\u0275property("ngSwitchCase",$.itemTypes.NETWORK),g.\u0275\u0275advance(2),g.\u0275\u0275textInterpolate(fe.message),g.\u0275\u0275advance(1),g.\u0275\u0275property("ngIf",fe.details)}}class b{constructor(){this.itemTypes=u.ConsoleItemType,this.items=[]}}_.ConsoleComponent=b,b.\u0275fac=function(V){return new(V||b)},b.\u0275cmp=g.\u0275\u0275defineComponent({type:b,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(V,fe){1&V&&(g.\u0275\u0275elementStart(0,"header"),g.\u0275\u0275elementStart(1,"strong"),g.\u0275\u0275text(2,"CONSOLE"),g.\u0275\u0275elementEnd(),g.\u0275\u0275element(3,"s"),g.\u0275\u0275elementStart(4,"button",0),g.\u0275\u0275listener("click",function(){return fe.items.splice(0,fe.items.length)}),g.\u0275\u0275elementStart(5,"mat-icon"),g.\u0275\u0275text(6,"delete"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(7,"ul"),g.\u0275\u0275template(8,M,8,8,"li",1),g.\u0275\u0275elementEnd()),2&V&&(g.\u0275\u0275advance(8),g.\u0275\u0275property("ngForOf",fe.items))},directives:[c.MatButton,s.MatIcon,y.NgForOf,y.NgClass,y.NgSwitch,y.NgSwitchCase,y.NgIf,E.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%] 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,_)=>{"use strict";var i;Object.defineProperty(_,"__esModule",{value:!0}),_.ConsoleItemType=void 0,(i=_.ConsoleItemType||(_.ConsoleItemType={})).INFO="info",i.ERROR="error",i.NETWORK="network"},4814:(Le,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.DialogAboutComponent=void 0;const i=l(655),u=l(4147),g=(0,i.__importStar)(l(5e3)),c=(0,i.__importStar)(l(8966)),s=(0,i.__importStar)(l(9417)),y=(0,i.__importStar)(l(7423)),E=(0,i.__importStar)(l(5245)),w=(0,i.__importStar)(l(9808));function I(A,M){if(1&A&&(g.\u0275\u0275elementStart(0,"a",6),g.\u0275\u0275elementStart(1,"mat-chip",2),g.\u0275\u0275elementStart(2,"span",7),g.\u0275\u0275text(3),g.\u0275\u0275elementEnd(),g.\u0275\u0275element(4,"s"),g.\u0275\u0275elementStart(5,"span",8),g.\u0275\u0275text(6),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementEnd()),2&A){const b=M.$implicit;g.\u0275\u0275property("href","https://www.npmjs.com/package/"+b[0]+"/v/"+b[1],g.\u0275\u0275sanitizeUrl),g.\u0275\u0275advance(1),g.\u0275\u0275property("disableRipple",!0),g.\u0275\u0275advance(2),g.\u0275\u0275textInterpolate(b[0]),g.\u0275\u0275advance(3),g.\u0275\u0275textInterpolate(b[1])}}class h{constructor(){this.version=u.version,this.dependencies=Object.entries(u.dependencies).filter(([M])=>M.startsWith("@sdkgen"))}}_.DialogAboutComponent=h,h.\u0275fac=function(M){return new(M||h)},h.\u0275cmp=g.\u0275\u0275defineComponent({type:h,selectors:[["app-dialog-about"]],decls:17,vars:5,consts:[["mat-dialog-title",""],[3,"selectable"],[3,"disableRipple"],["mat-icon-button","","mat-dialog-close","","tabindex","-1"],[1,"mat-chip-list-stacked",3,"selectable"],["target","_blank","rel","external noopener noreferrer",3,"href",4,"ngFor","ngForOf"],["target","_blank","rel","external noopener noreferrer",3,"href"],[1,"dependency-name"],[1,"dependency-version"]],template:function(M,b){1&M&&(g.\u0275\u0275elementStart(0,"header"),g.\u0275\u0275elementStart(1,"h1",0),g.\u0275\u0275text(2,"sdkgen Playground"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(3,"mat-chip-list",1),g.\u0275\u0275elementStart(4,"mat-chip",2),g.\u0275\u0275text(5),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementEnd(),g.\u0275\u0275element(6,"s"),g.\u0275\u0275elementStart(7,"button",3),g.\u0275\u0275elementStart(8,"mat-icon"),g.\u0275\u0275text(9,"close"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(10,"p"),g.\u0275\u0275text(11,"Ferramenta para explorar e invocar APIs feitas com sdkgen."),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(12,"section"),g.\u0275\u0275elementStart(13,"h4"),g.\u0275\u0275text(14,"Depend\xeancias"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(15,"mat-chip-list",4),g.\u0275\u0275template(16,I,7,4,"a",5),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementEnd()),2&M&&(g.\u0275\u0275advance(3),g.\u0275\u0275property("selectable",!1),g.\u0275\u0275advance(1),g.\u0275\u0275property("disableRipple",!0),g.\u0275\u0275advance(1),g.\u0275\u0275textInterpolate(b.version),g.\u0275\u0275advance(10),g.\u0275\u0275property("selectable",!1),g.\u0275\u0275advance(1),g.\u0275\u0275property("ngForOf",b.dependencies))},directives:[c.MatDialogTitle,s.MatChipList,s.MatChip,y.MatButton,c.MatDialogClose,E.MatIcon,w.NgForOf],styles:["header[_ngcontent-%COMP%]{display:flex;border-bottom:1px solid rgba(255,255,255,.2);padding-bottom:5px}header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], header[_ngcontent-%COMP%] button[_ngcontent-%COMP%], header[_ngcontent-%COMP%] mat-chip-list[_ngcontent-%COMP%]{display:inline;align-self:center}header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{display:flex;margin:0 10px 0 0}header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:20px}section[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-weight:500}section[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:100%}section[_ngcontent-%COMP%] .mat-chip[_ngcontent-%COMP%]{padding:0;overflow:hidden;cursor:pointer}section[_ngcontent-%COMP%] .dependency-name[_ngcontent-%COMP%]{padding:7px 12px}section[_ngcontent-%COMP%] .dependency-version[_ngcontent-%COMP%]{float:right;background:rgba(0,0,0,.15);padding:7px 12px;height:100%}"]})},4211:(Le,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.FilterPipe=void 0;const u=(0,l(655).__importStar)(l(5e3));class g{transform(s,y){if(!s)return[];if(!y)return s;const E=y.toLocaleLowerCase();return s.filter(w=>JSON.stringify(w).toLocaleLowerCase().includes(E))}}_.FilterPipe=g,g.\u0275fac=function(s){return new(s||g)},g.\u0275pipe=u.\u0275\u0275definePipe({name:"appFilter",type:g,pure:!0})},7120:(Le,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.ResponsiveService=void 0;const i=l(655),u=(0,i.__importStar)(l(5e3)),g=(0,i.__importStar)(l(5113));class c{constructor(y){this.observer=y}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)"])}}_.ResponsiveService=c,c.\u0275fac=function(y){return new(y||c)(u.\u0275\u0275inject(g.BreakpointObserver))},c.\u0275prov=u.\u0275\u0275defineInjectable({token:c,factory:c.\u0275fac,providedIn:"root"})},9435:(Le,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.getTypeDoc=_.getTypeLabels=_.getConstructorName=_.primitiveTypesExamples=_.primitiveTypes=void 0;const i=l(6676),u=l(6395);function g(y){switch(y.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 y.constructor.name}}_.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?."},_.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}']},_.getConstructorName=g,_.getTypeLabels=function c(y){const E=[];switch(y.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:E.push("Primitivo");break;case i.OptionalType:E.push("Opcional"),E.push(...c(y.base));break;case i.TypeReference:E.push(...c(y.type));break;case i.ArrayType:E.push("Array"),E.push(...c(y.base));break;case i.EnumType:E.push("Enum");break;default:console.error("No labels for",g(y))}return E},_.getTypeDoc=function s(y){var E,w,I;switch(y.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:_.primitiveTypes[g(y)],shortDescription:_.primitiveTypes[g(y)],examples:_.primitiveTypesExamples[g(y)]};case i.OptionalType:{const b=s(y.base);return Object.assign(Object.assign({},b),{longDescription:b.longDescription,shortDescription:`(opcional) ${b.shortDescription}`,examples:["null",...null!==(E=b.examples)&&void 0!==E?E:[]]})}case i.TypeReference:return s(y.type);case i.ArrayType:{const b=s(y.base);return Object.assign(Object.assign({},b),{longDescription:b.longDescription,shortDescription:`(array) ${b.shortDescription}`,examples:["[]",...null!==(I=null===(w=b.examples)||void 0===w?void 0:w.map(R=>`[${R}]`))&&void 0!==I?I:[]]})}case i.EnumType:const h=y,A=h.values.slice(0,3),M=A.map(b=>b.struct?`${b.value}: ${JSON.stringify((new u.SdkgenService).buildJsonObject(b.struct.fields),null,2)}`:b.value);return{longDescription:"enum representa um conjunto limitado de possibilidades de valores, similar as enumera\xe7\xf5es em outras linguagens.",shortDescription:`(enum) ${A.map(b=>`${b.value}${b.struct?"(\u2026)":""}`).join(", ")}${A.length>3?"\u2026":""}`,examples:M,isEnum:!0,isStruct:!0,structFields:h.values.map(b=>{var R;return{name:b.value,type:b.struct,description:null===(R=b.annotations.find(V=>V instanceof i.DescriptionAnnotation))||void 0===R?void 0:R.text,secret:!1}})};case i.StructType:return{longDescription:"",shortDescription:`(objeto complexo) ${y.fields.slice(0,3).map(b=>b.name).join(", ")}\u2026`,isStruct:!0,structFields:y.fields.map(b=>{var R;return{name:b.name,description:null===(R=b.annotations.find(V=>V instanceof i.DescriptionAnnotation))||void 0===R?void 0:R.text,type:b.type,secret:b.secret}}),examples:[JSON.stringify((new u.SdkgenService).buildJsonObject(y.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,_=new Set){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: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 _.has(i.name)?{}:this.buildJsonObject(i.fields,new Set([..._,i.name]));case parser_1.OptionalType:return null;case parser_1.TypeReference:return l(i.type);case parser_1.ArrayType:return[l(i.base),l(i.base),l(i.base)];case parser_1.EnumType:return i.values[0].value;default:return null}};return Le.reduce((i,u)=>(i[u.name]=l(u.type),i),{})}getTypeScriptCode(Le,_){return`await client.${Le}(${JSON.stringify(_,null,2)});\n`}buildKotlinString(Le,_=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,_+1)}\n${" ".repeat(_+1)})`;case parser_1.OptionalType:return"null";case parser_1.TypeReference:return l(i.type);case parser_1.ArrayType:_++;const u=l(i.base);return _--,`arrayOf(\n${" ".repeat(_+2)}${u},\n${" ".repeat(_+2)}${u}\n${" ".repeat(_+1)})`;case parser_1.EnumType:return`"${i.values[0].value}"`;default:return"<>()"}};return Le.map(i=>`${" ".repeat(_+1)}${l(i.type)}`).join(",\n")}getKotlinCode(Le,_){return 0===_.length?`client.${Le}().await();`:`client.${Le}(\n${this.buildKotlinString(_)}\n).await();`}getDartCode(Le,_){return'print("todo");'}getSwiftCode(Le,_){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,_)=>["baseUrl","extra","successHook","errorHook","makeRequest"].includes(_.toString())?clientInstance[_.toString()]:function(){var l=_asyncToGenerator(function*(i){return clientInstance.makeRequest(_.toString(),i)});return function(i){return l.apply(this,arguments)}}()})}}exports.SdkgenService=SdkgenService,SdkgenService.\u0275fac=function Le(_){return new(_||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,_){var l;const i=null===(l=Le.operations.find(u=>u.name===_))||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(_){return new(_||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(_,l){1&_&&(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(u){return l.selected.setValue(u)}),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(u){return l.code=u}),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&_&&(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 _=`${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(u=>u.uri.toString().endsWith("client.d.ts"));l?l.setValue(_):monaco.editor.createModel(_,"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(_){return new(_||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(_,l){1&_&&(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(u){return l.code=u}),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&_&&(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,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.TabHomeComponent=void 0;const i=l(655),u=l(5e3),g=l(9435),c=l(5281),s=(0,i.__importStar)(l(5e3)),y=(0,i.__importStar)(l(6395)),E=(0,i.__importStar)(l(8966)),w=(0,i.__importStar)(l(7120)),I=(0,i.__importStar)(l(1430)),h=(0,i.__importStar)(l(3075)),A=(0,i.__importStar)(l(9808)),M=(0,i.__importStar)(l(7238)),b=(0,i.__importStar)(l(7423)),R=(0,i.__importStar)(l(5245)),V=(0,i.__importStar)(l(3251)),fe=(0,i.__importStar)(l(107)),$=(0,i.__importStar)(l(9417)),ie=(0,i.__importStar)(l(2075)),we=(0,i.__importStar)(l(4211));function pe(lt,Qe){if(1&lt&&(s.\u0275\u0275elementStart(0,"span",8),s.\u0275\u0275text(1),s.\u0275\u0275elementEnd()),2&lt){const N=s.\u0275\u0275nextContext().$implicit;s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(N.description)}}const _e=function(lt){return{active:lt}};function le(lt,Qe){if(1&lt){const N=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"li",5),s.\u0275\u0275listener("click",function(){const ue=s.\u0275\u0275restoreView(N).$implicit;return s.\u0275\u0275nextContext().selectedFunction=ue}),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&lt){const N=Qe.$implicit,ae=s.\u0275\u0275nextContext();s.\u0275\u0275property("ngClass",s.\u0275\u0275pureFunction1(3,_e,(null==ae.selectedFunction?null:ae.selectedFunction.name)===N.name)),s.\u0275\u0275advance(2),s.\u0275\u0275textInterpolate(N.name),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngIf",N.description)}}function De(lt,Qe){1&lt&&s.\u0275\u0275element(0,"span")}function Fe(lt,Qe){if(1&lt){const N=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 ue=s.\u0275\u0275restoreView(N).$implicit;return s.\u0275\u0275nextContext(2).showDocumentation(ue.rawType)}),s.\u0275\u0275text(9),s.\u0275\u0275elementEnd(),s.\u0275\u0275template(10,De,1,0,"span",38),s.\u0275\u0275elementEnd()}if(2&lt){const N=Qe.$implicit,ae=Qe.index;s.\u0275\u0275nextContext();const Oe=s.\u0275\u0275reference(18),ue=s.\u0275\u0275reference(20),Te=s.\u0275\u0275nextContext();s.\u0275\u0275advance(4),s.\u0275\u0275textInterpolate(N.name),s.\u0275\u0275advance(4),s.\u0275\u0275property("matTooltip",Te.getTooltip(N.rawType)),s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(N.type),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngIf",ae!=Te.selectedFunction.args.length-1)("ngIfThen",Oe)("ngIfElse",ue)}}function Je(lt,Qe){1&lt&&s.\u0275\u0275text(0,",")}function ot(lt,Qe){1&lt&&s.\u0275\u0275element(0,"br")}function q(lt,Qe){if(1&lt){const N=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"u",29),s.\u0275\u0275listener("click",function(){s.\u0275\u0275restoreView(N);const Oe=s.\u0275\u0275nextContext().$implicit;return s.\u0275\u0275nextContext(3).showDocumentation(Oe.dataType)}),s.\u0275\u0275text(1),s.\u0275\u0275elementEnd()}if(2&lt){const N=s.\u0275\u0275nextContext().$implicit,ae=s.\u0275\u0275nextContext(3);s.\u0275\u0275property("matTooltip",ae.getTooltip(N.dataType)),s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate1("(",N.dataType.name,")")}}function Pe(lt,Qe){if(1&lt&&(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,q,2,2,"u",43),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd()),2&lt){const N=Qe.$implicit;s.\u0275\u0275property("disableRipple",!0),s.\u0275\u0275advance(2),s.\u0275\u0275textInterpolate(N.name),s.\u0275\u0275advance(3),s.\u0275\u0275textInterpolate1("",N.type," "),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngIf",N.dataType&&"void"!==N.dataType.name)}}function J(lt,Qe){if(1&lt&&(s.\u0275\u0275elementStart(0,"section",39),s.\u0275\u0275elementStart(1,"mat-chip-list",40),s.\u0275\u0275template(2,Pe,7,4,"mat-chip",41),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd()),2&lt){const N=s.\u0275\u0275nextContext(2);s.\u0275\u0275advance(1),s.\u0275\u0275property("selectable",!1),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngForOf",N.selectedFunction.labels)}}function ce(lt,Qe){if(1&lt&&(s.\u0275\u0275elementStart(0,"p"),s.\u0275\u0275text(1),s.\u0275\u0275elementEnd()),2&lt){const N=s.\u0275\u0275nextContext(2);s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(N.selectedFunction.description)}}function Se(lt,Qe){1&lt&&(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 re(lt,Qe){1&lt&&(s.\u0275\u0275elementStart(0,"p",44),s.\u0275\u0275text(1,"Esta fun\xe7\xe3o n\xe3o possui argumentos."),s.\u0275\u0275elementEnd())}function Ke(lt,Qe){1&lt&&(s.\u0275\u0275elementStart(0,"th",54),s.\u0275\u0275text(1,"Nome"),s.\u0275\u0275elementEnd())}function ge(lt,Qe){if(1&lt&&(s.\u0275\u0275elementStart(0,"td",55),s.\u0275\u0275text(1),s.\u0275\u0275elementEnd()),2&lt){const N=Qe.$implicit;s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(N.name)}}function it(lt,Qe){1&lt&&(s.\u0275\u0275elementStart(0,"th",54),s.\u0275\u0275text(1,"Tipo"),s.\u0275\u0275elementEnd())}function ye(lt,Qe){if(1&lt){const N=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"td",55),s.\u0275\u0275elementStart(1,"u",29),s.\u0275\u0275listener("click",function(){const ue=s.\u0275\u0275restoreView(N).$implicit;return s.\u0275\u0275nextContext(3).showDocumentation(ue.rawType)}),s.\u0275\u0275text(2),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd()}if(2&lt){const N=Qe.$implicit,ae=s.\u0275\u0275nextContext(3);s.\u0275\u0275advance(1),s.\u0275\u0275property("matTooltip",ae.getTooltip(N.rawType)),s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(N.type)}}function He(lt,Qe){1&lt&&(s.\u0275\u0275elementStart(0,"th",54),s.\u0275\u0275text(1,"Descri\xe7\xe3o"),s.\u0275\u0275elementEnd())}function dt(lt,Qe){if(1&lt&&(s.\u0275\u0275elementStart(0,"td",56),s.\u0275\u0275text(1),s.\u0275\u0275elementEnd()),2&lt){const N=Qe.$implicit;s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(N.description||"-")}}function Et(lt,Qe){1&lt&&s.\u0275\u0275element(0,"tr",57)}function ke(lt,Qe){1&lt&&s.\u0275\u0275element(0,"tr",58)}function Ze(lt,Qe){if(1&lt&&(s.\u0275\u0275elementStart(0,"table",45),s.\u0275\u0275elementContainerStart(1,46),s.\u0275\u0275template(2,Ke,2,0,"th",47),s.\u0275\u0275template(3,ge,2,1,"td",48),s.\u0275\u0275elementContainerEnd(),s.\u0275\u0275elementContainerStart(4,49),s.\u0275\u0275template(5,it,2,0,"th",47),s.\u0275\u0275template(6,ye,3,2,"td",48),s.\u0275\u0275elementContainerEnd(),s.\u0275\u0275elementContainerStart(7,50),s.\u0275\u0275template(8,He,2,0,"th",47),s.\u0275\u0275template(9,dt,2,1,"td",51),s.\u0275\u0275elementContainerEnd(),s.\u0275\u0275template(10,Et,1,0,"tr",52),s.\u0275\u0275template(11,ke,1,0,"tr",53),s.\u0275\u0275elementEnd()),2&lt){const N=s.\u0275\u0275nextContext(2);s.\u0275\u0275property("dataSource",N.selectedFunction.args),s.\u0275\u0275advance(10),s.\u0275\u0275property("matHeaderRowDef",N.argumentsTableColumns),s.\u0275\u0275advance(1),s.\u0275\u0275property("matRowDefColumns",N.argumentsTableColumns)}}function Z(lt,Qe){1&lt&&(s.\u0275\u0275elementStart(0,"span",59),s.\u0275\u0275text(1,"Dart"),s.\u0275\u0275elementEnd())}function me(lt,Qe){1&lt&&(s.\u0275\u0275elementStart(0,"span",59),s.\u0275\u0275text(1,"Swift"),s.\u0275\u0275elementEnd())}const Me=function(){return{theme:"vs-dark",language:"javascript"}},Re=function(){return{theme:"vs-dark",language:"kotlin"}},ve=function(){return{theme:"vs-dark",language:"dart"}},Ye=function(){return{theme:"vs-dark",language:"swift"}};function ht(lt,Qe){if(1&lt){const N=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,Fe,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(N);const Oe=s.\u0275\u0275nextContext();return Oe.showDocumentation(Oe.selectedFunction.returns.rawType)}),s.\u0275\u0275text(16),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd(),s.\u0275\u0275template(17,Je,1,0,"ng-template",null,16,s.\u0275\u0275templateRefExtractor),s.\u0275\u0275template(19,ot,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(N),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,J,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,ce,2,1,"p",22),s.\u0275\u0275template(32,Se,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,re,2,0,"p",23),s.\u0275\u0275elementStart(37,"div",25),s.\u0275\u0275template(38,Ze,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(N);const Oe=s.\u0275\u0275nextContext();return Oe.showDocumentation(Oe.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,Z,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,me,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&lt){const N=s.\u0275\u0275nextContext();s.\u0275\u0275advance(8),s.\u0275\u0275textInterpolate(N.selectedFunction.name),s.\u0275\u0275advance(2),s.\u0275\u0275property("ngForOf",N.selectedFunction.args),s.\u0275\u0275advance(5),s.\u0275\u0275property("matTooltip",N.getTooltip(N.selectedFunction.returns.rawType)),s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(N.selectedFunction.returns.type),s.\u0275\u0275advance(10),s.\u0275\u0275property("ngIf",N.selectedFunction.labels.length>0),s.\u0275\u0275advance(4),s.\u0275\u0275property("ngSwitch",!!N.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",N.selectedFunction.args.length),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngSwitchCase",0),s.\u0275\u0275advance(7),s.\u0275\u0275property("matTooltip",N.getTooltip(N.selectedFunction.returns.rawType)),s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(N.selectedFunction.returns.type),s.\u0275\u0275advance(5),s.\u0275\u0275property("options",s.\u0275\u0275pureFunction0(20,Me))("ngModel",N.selectedFunction.examples.typeScript),s.\u0275\u0275advance(2),s.\u0275\u0275property("options",s.\u0275\u0275pureFunction0(21,Re))("ngModel",N.selectedFunction.examples.kotlin),s.\u0275\u0275advance(3),s.\u0275\u0275property("options",s.\u0275\u0275pureFunction0(22,ve))("ngModel",N.selectedFunction.examples.dart),s.\u0275\u0275advance(3),s.\u0275\u0275property("options",s.\u0275\u0275pureFunction0(23,Ye))("ngModel",N.selectedFunction.examples.swift)}}const bt=function(){return{standalone:!0}};class Ot{constructor(Qe,N,ae){this.sdkgen=Qe,this.dialog=N,this.responsive=ae,this.isBelowMd=!1,this.runFunction=new u.EventEmitter,this.searchText="",this.argumentsTableColumns=["name","type","description"],this.editorOptions={theme:"vs-dark",language:"javascript"}}ngOnInit(){this.state$=this.sdkgen.state$.subscribe(Qe=>{!Qe||(this.selectedFunction=void 0,this.fnTable=Qe.astRoot.operations.sort((N,ae)=>N.name.localeCompare(ae.name)).map(N=>{var ae,Oe,ue;const Te=Qe.astJson.annotations[`fn.${N.name}`],be=this.sdkgen.buildJsonObject(N.args);return(null==Te?void 0:Te.find(se=>"hidden"===se.type))?null:{name:N.name,description:null===(ae=null==Te?void 0:Te.find(se=>"description"===se.type))||void 0===ae?void 0:ae.value,args:N.args.map(({name:se,type:Ce})=>{var Ge,tt,ft;return{name:se,description:null===(ft=[...null!==(Ge=Qe.astJson.annotations[`type.${Ce}.${se}`])&&void 0!==Ge?Ge:[],...null!==(tt=Qe.astJson.annotations[`fn.${N.name}.${se}`])&&void 0!==tt?tt:[]].find(wt=>"description"===wt.type))||void 0===ft?void 0:ft.value,type:Ce.name,rawType:Ce}}),argsStr:N.args.map(se=>`${se.name}: ${se.type.name}`).join(", "),argsFields:N.args,returns:{type:N.returnType.name,rawType:N.returnType},labels:null!==(Oe=null==Te?void 0:Te.filter(se=>["rest","throws"].includes(se.type)).map(se=>{var Ce;return"rest"===se.type?{name:"REST",type:`${se.value.method} ${se.value.path}`}:"throws"===se.type?{name:"THROWS",type:se.value,dataType:null===(Ce=Qe.astRoot.errors.find(Ge=>Ge.name===se.value))||void 0===Ce?void 0:Ce.dataType}:{name:"?",type:"?"}}))&&void 0!==Oe?Oe:[],throws:null===(ue=null==Te?void 0:Te.find(se=>"throws"===se.type))||void 0===ue?void 0:ue.value,examples:{typeScript:this.sdkgen.getTypeScriptCode(N.name,be),kotlin:this.sdkgen.getKotlinCode(N.name,N.args),dart:this.sdkgen.getDartCode(N.name,be),swift:this.sdkgen.getSwiftCode(N.name,be)}}}).filter(N=>Boolean(N)))})}ngOnDestroy(){var Qe,N;null===(Qe=this.state$)||void 0===Qe||Qe.unsubscribe(),null===(N=this.responsive$)||void 0===N||N.unsubscribe()}ngAfterViewInit(){this.responsive$=this.responsive.isBelowMd().subscribe(Qe=>{this.isBelowMd=Qe.matches})}addSimpleCallTab(){var Qe;this.runFunction.emit(null===(Qe=this.selectedFunction)||void 0===Qe?void 0:Qe.name)}getTooltip(Qe){return(0,g.getTypeDoc)(Qe).shortDescription}showDocumentation(Qe){this.dialog.open(c.TypeDetailsComponent,{position:{right:"0",top:"0",bottom:"0"},data:{type:Qe},height:"100vh",panelClass:["dialog-no-border-radius","dialog-responsive"]})}}_.TabHomeComponent=Ot,Ot.\u0275fac=function(Qe){return new(Qe||Ot)(s.\u0275\u0275directiveInject(y.SdkgenService),s.\u0275\u0275directiveInject(E.MatDialog),s.\u0275\u0275directiveInject(w.ResponsiveService))},Ot.\u0275cmp=s.\u0275\u0275defineComponent({type:Ot,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(Qe,N){1&Qe&&(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(Oe){return N.searchText=Oe}),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(6,"ul"),s.\u0275\u0275template(7,le,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,ht,58,24,"article",4),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd()),2&Qe&&(s.\u0275\u0275property("direction",N.isBelowMd?"vertical":"horizontal"),s.\u0275\u0275advance(1),s.\u0275\u0275property("size",N.isBelowMd?130:350),s.\u0275\u0275advance(4),s.\u0275\u0275property("ngModel",N.searchText)("ngModelOptions",s.\u0275\u0275pureFunction0(9,bt)),s.\u0275\u0275advance(2),s.\u0275\u0275property("ngForOf",s.\u0275\u0275pipeBind2(8,6,N.fnTable,N.searchText)),s.\u0275\u0275advance(3),s.\u0275\u0275property("ngIf",N.selectedFunction))},directives:[I.SplitComponent,I.SplitAreaDirective,h.\u0275NgNoValidate,h.NgControlStatusGroup,h.NgForm,h.DefaultValueAccessor,h.NgControlStatus,h.NgModel,A.NgForOf,A.NgIf,A.NgClass,M.MatTooltip,b.MatButton,R.MatIcon,A.NgSwitch,A.NgSwitchCase,A.NgSwitchDefault,V.MatTabGroup,V.MatTab,fe.MonacoEditorComponent,V.MatTabLabel,$.MatChipList,$.MatChip,ie.MatTable,ie.MatColumnDef,ie.MatHeaderCellDef,ie.MatCellDef,ie.MatHeaderRowDef,ie.MatRowDef,ie.MatHeaderCell,ie.MatCell,ie.MatHeaderRow,ie.MatRow],pipes:[we.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%] .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,_,l)=>{"use strict";var i=l(8926).default;Object.defineProperty(_,"__esModule",{value:!0}),_.TabNavComponent=void 0;const u=l(655),g=l(3075),c=l(6676),s=l(4814),y=(0,u.__importStar)(l(5e3)),E=(0,u.__importStar)(l(6395)),w=(0,u.__importStar)(l(2290)),I=(0,u.__importStar)(l(8966)),h=(0,u.__importStar)(l(3075)),A=(0,u.__importStar)(l(508)),M=(0,u.__importStar)(l(9808)),b=(0,u.__importStar)(l(7423)),R=(0,u.__importStar)(l(5245));function V(ie,we){1&ie&&(y.\u0275\u0275elementContainerStart(0),y.\u0275\u0275elementStart(1,"mat-icon",6),y.\u0275\u0275text(2,"loop"),y.\u0275\u0275elementEnd(),y.\u0275\u0275elementContainerEnd())}function fe(ie,we){1&ie&&(y.\u0275\u0275elementContainerStart(0),y.\u0275\u0275elementStart(1,"mat-icon"),y.\u0275\u0275text(2,"arrow_forward"),y.\u0275\u0275elementEnd(),y.\u0275\u0275elementContainerEnd())}class ${constructor(we,pe,_e){this.sdkgen=we,this.toastr=pe,this.dialog=_e,this.loading=!1,this.url=new g.FormControl("")}ngOnInit(){fetch("/ast.json").then(we=>{we.ok&&(this.url.setValue(`${window.location.protocol}//${window.location.host}`),this.loadUrl())}).catch(()=>{})}loadUrl(we){var pe=this;return i(function*(){null==we||we.preventDefault();try{pe.loading=!0,/^https?:\/\//.test(pe.url.value)||pe.url.setValue(`https://${pe.url.value}`);const _e=new URL(pe.url.value);_e.pathname+=(/\/$/u.test(_e.pathname)?"":"/")+"ast.json";const le=_e.toString();console.debug("astUrl",le);const De=yield fetch(le).then(Fe=>Fe.ok?Fe.json():Fe);if(De instanceof Response)throw De instanceof Error?De:new Error(De.statusText);if(!De.errors||!De.functionTable||!De.typeTable)throw new Error("Invalid AST");for(;"undefined"==typeof monaco;)yield new Promise(Fe=>setTimeout(Fe,250));console.debug("astJson",De),pe.sdkgen.state$.next({astJson:De,astRoot:(0,c.jsonToAst)(De),url:pe.url.value})}catch(_e){pe.toastr.error(_e instanceof Error?_e.message:JSON.stringify(_e),"Erro ao carregar AST",{positionClass:"toast-bottom-right"})}finally{pe.loading=!1}})()}openAbout(){this.dialog.open(s.DialogAboutComponent)}}_.TabNavComponent=$,$.\u0275fac=function(we){return new(we||$)(y.\u0275\u0275directiveInject(E.SdkgenService),y.\u0275\u0275directiveInject(w.ToastrService),y.\u0275\u0275directiveInject(I.MatDialog))},$.\u0275cmp=y.\u0275\u0275defineComponent({type:$,selectors:[["app-tab-nav"]],decls:9,vars:6,consts:[["src","assets/polvinho.png"],[3,"submit"],["placeholder","Digite uma URL aqui para conectar",3,"formControl","readonly"],["mat-ripple","","type","submit",3,"disabled","ngSwitch"],[4,"ngSwitchCase"],["mat-icon-button","",3,"click"],[1,"loader"]],template:function(we,pe){1&we&&(y.\u0275\u0275element(0,"img",0),y.\u0275\u0275elementStart(1,"form",1),y.\u0275\u0275listener("submit",function(le){return pe.loadUrl(le)}),y.\u0275\u0275element(2,"input",2),y.\u0275\u0275elementStart(3,"button",3),y.\u0275\u0275template(4,V,3,0,"ng-container",4),y.\u0275\u0275template(5,fe,3,0,"ng-container",4),y.\u0275\u0275elementEnd(),y.\u0275\u0275elementEnd(),y.\u0275\u0275elementStart(6,"button",5),y.\u0275\u0275listener("click",function(){return pe.openAbout()}),y.\u0275\u0275elementStart(7,"mat-icon"),y.\u0275\u0275text(8,"info"),y.\u0275\u0275elementEnd(),y.\u0275\u0275elementEnd()),2&we&&(y.\u0275\u0275advance(2),y.\u0275\u0275property("formControl",pe.url)("readonly",pe.loading),y.\u0275\u0275advance(1),y.\u0275\u0275property("disabled",pe.loading)("ngSwitch",pe.loading),y.\u0275\u0275advance(1),y.\u0275\u0275property("ngSwitchCase",!0),y.\u0275\u0275advance(1),y.\u0275\u0275property("ngSwitchCase",!1))},directives:[h.\u0275NgNoValidate,h.NgControlStatusGroup,h.NgForm,h.DefaultValueAccessor,h.NgControlStatus,h.FormControlDirective,A.MatRipple,M.NgSwitch,M.NgSwitchCase,b.MatButton,R.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;cursor:pointer}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,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.TypeDetailsComponent=void 0;const i=l(655),u=l(8966),g=l(9435),c=(0,i.__importStar)(l(5e3)),s=(0,i.__importStar)(l(8966)),y=(0,i.__importStar)(l(9808)),E=(0,i.__importStar)(l(9417)),w=(0,i.__importStar)(l(7423)),I=(0,i.__importStar)(l(5245)),h=(0,i.__importStar)(l(2075)),A=(0,i.__importStar)(l(7238));function M(ce,Se){1&ce&&(c.\u0275\u0275elementStart(0,"button",6),c.\u0275\u0275elementStart(1,"mat-icon"),c.\u0275\u0275text(2,"arrow_back"),c.\u0275\u0275elementEnd(),c.\u0275\u0275elementEnd())}function b(ce,Se){if(1&ce&&(c.\u0275\u0275elementStart(0,"mat-chip",7),c.\u0275\u0275text(1),c.\u0275\u0275elementEnd()),2&ce){const re=Se.$implicit;c.\u0275\u0275property("disableRipple",!0),c.\u0275\u0275advance(1),c.\u0275\u0275textInterpolate(re)}}function R(ce,Se){1&ce&&(c.\u0275\u0275elementStart(0,"button",8),c.\u0275\u0275elementStart(1,"mat-icon"),c.\u0275\u0275text(2,"close"),c.\u0275\u0275elementEnd(),c.\u0275\u0275elementEnd())}function V(ce,Se){1&ce&&(c.\u0275\u0275elementStart(0,"th",20),c.\u0275\u0275text(1,"Nome"),c.\u0275\u0275elementEnd())}function fe(ce,Se){if(1&ce&&(c.\u0275\u0275elementStart(0,"td",21),c.\u0275\u0275text(1),c.\u0275\u0275elementEnd()),2&ce){const re=Se.$implicit;c.\u0275\u0275advance(1),c.\u0275\u0275textInterpolate(re.name)}}function $(ce,Se){1&ce&&(c.\u0275\u0275elementStart(0,"th",20),c.\u0275\u0275text(1,"Tipo"),c.\u0275\u0275elementEnd())}function ie(ce,Se){1&ce&&(c.\u0275\u0275elementStart(0,"span"),c.\u0275\u0275text(1,"-"),c.\u0275\u0275elementEnd())}function we(ce,Se){if(1&ce){const re=c.\u0275\u0275getCurrentView();c.\u0275\u0275elementStart(0,"u",25),c.\u0275\u0275listener("click",function(){c.\u0275\u0275restoreView(re);const ge=c.\u0275\u0275nextContext().$implicit;return c.\u0275\u0275nextContext(2).showDocumentation(ge.type)}),c.\u0275\u0275text(1),c.\u0275\u0275elementEnd()}if(2&ce){const re=c.\u0275\u0275nextContext().$implicit,Ke=c.\u0275\u0275nextContext(2);c.\u0275\u0275property("matTooltip",Ke.getTooltip(re.type)),c.\u0275\u0275advance(1),c.\u0275\u0275textInterpolate(re.type.name)}}function pe(ce,Se){1&ce&&(c.\u0275\u0275elementStart(0,"td",22),c.\u0275\u0275template(1,ie,2,0,"span",23),c.\u0275\u0275template(2,we,2,2,"u",24),c.\u0275\u0275elementEnd()),2&ce&&(c.\u0275\u0275property("ngSwitch",Se.$implicit.type),c.\u0275\u0275advance(1),c.\u0275\u0275property("ngSwitchCase",null))}function _e(ce,Se){1&ce&&(c.\u0275\u0275elementStart(0,"th",20),c.\u0275\u0275text(1,"Descri\xe7\xe3o"),c.\u0275\u0275elementEnd())}function le(ce,Se){if(1&ce&&(c.\u0275\u0275elementStart(0,"td",26),c.\u0275\u0275text(1),c.\u0275\u0275elementEnd()),2&ce){const re=Se.$implicit;c.\u0275\u0275advance(1),c.\u0275\u0275textInterpolate(re.description||"-")}}function De(ce,Se){1&ce&&c.\u0275\u0275element(0,"tr",27)}function Fe(ce,Se){1&ce&&c.\u0275\u0275element(0,"tr",28)}const Je=function(){return[]};function ot(ce,Se){if(1&ce&&(c.\u0275\u0275elementStart(0,"section"),c.\u0275\u0275elementStart(1,"div",9),c.\u0275\u0275elementStart(2,"table",10),c.\u0275\u0275elementContainerStart(3,11),c.\u0275\u0275template(4,V,2,0,"th",12),c.\u0275\u0275template(5,fe,2,1,"td",13),c.\u0275\u0275elementContainerEnd(),c.\u0275\u0275elementContainerStart(6,14),c.\u0275\u0275template(7,$,2,0,"th",12),c.\u0275\u0275template(8,pe,3,2,"td",15),c.\u0275\u0275elementContainerEnd(),c.\u0275\u0275elementContainerStart(9,16),c.\u0275\u0275template(10,_e,2,0,"th",12),c.\u0275\u0275template(11,le,2,1,"td",17),c.\u0275\u0275elementContainerEnd(),c.\u0275\u0275template(12,De,1,0,"tr",18),c.\u0275\u0275template(13,Fe,1,0,"tr",19),c.\u0275\u0275elementEnd(),c.\u0275\u0275elementEnd(),c.\u0275\u0275elementEnd()),2&ce){const re=c.\u0275\u0275nextContext();let Ke;c.\u0275\u0275advance(2),c.\u0275\u0275property("dataSource",null!==(Ke=null==re.typeDoc?null:re.typeDoc.structFields)&&void 0!==Ke?Ke:c.\u0275\u0275pureFunction0(3,Je)),c.\u0275\u0275advance(10),c.\u0275\u0275property("matHeaderRowDef",re.argumentsTableColumns),c.\u0275\u0275advance(1),c.\u0275\u0275property("matRowDefColumns",re.argumentsTableColumns)}}function q(ce,Se){if(1&ce&&(c.\u0275\u0275elementStart(0,"li"),c.\u0275\u0275elementStart(1,"code",1),c.\u0275\u0275text(2),c.\u0275\u0275elementEnd(),c.\u0275\u0275elementEnd()),2&ce){const re=Se.$implicit;c.\u0275\u0275advance(2),c.\u0275\u0275textInterpolate(re)}}function Pe(ce,Se){if(1&ce&&(c.\u0275\u0275elementStart(0,"section"),c.\u0275\u0275elementStart(1,"h3"),c.\u0275\u0275text(2,"Exemplos"),c.\u0275\u0275elementEnd(),c.\u0275\u0275elementStart(3,"ul"),c.\u0275\u0275template(4,q,3,1,"li",29),c.\u0275\u0275elementEnd(),c.\u0275\u0275elementEnd()),2&ce){const re=c.\u0275\u0275nextContext();c.\u0275\u0275advance(4),c.\u0275\u0275property("ngForOf",null==re.typeDoc?null:re.typeDoc.examples)}}class J{constructor(Se,re,Ke){this.dialogRef=Se,this.data=re,this.dialog=Ke,this.labels=[],this.argumentsTableColumns=["name","type","description"]}ngOnInit(){this.labels=(0,g.getTypeLabels)(this.data.type),this.typeDoc=(0,g.getTypeDoc)(this.data.type)}getTooltip(Se){return(0,g.getTypeDoc)(Se).shortDescription}showDocumentation(Se){this.dialog.open(J,{position:{right:"0"},data:{type:Se,subdialog:!0},height:"100vh",panelClass:["dialog-no-border-radius","dialog-responsive"]})}}_.TypeDetailsComponent=J,J.\u0275fac=function(Se){return new(Se||J)(c.\u0275\u0275directiveInject(s.MatDialogRef),c.\u0275\u0275directiveInject(u.MAT_DIALOG_DATA),c.\u0275\u0275directiveInject(s.MatDialog))},J.\u0275cmp=c.\u0275\u0275defineComponent({type:J,selectors:[["app-type-details"]],decls:11,vars:8,consts:[["class","back-button","mat-icon-button","","mat-dialog-close","","tabindex","-1",4,"ngIf"],[1,"mono"],[3,"selectable"],["color","primary",3,"disableRipple",4,"ngFor","ngForOf"],["class","close-button","mat-icon-button","","mat-dialog-close","","tabindex","-1",4,"ngIf"],[4,"ngIf"],["mat-icon-button","","mat-dialog-close","","tabindex","-1",1,"back-button"],["color","primary",3,"disableRipple"],["mat-icon-button","","mat-dialog-close","","tabindex","-1",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"],["class","mono","mat-cell","",3,"ngSwitch",4,"matCellDef"],["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","",1,"mono",3,"ngSwitch"],[4,"ngSwitchCase"],[3,"matTooltip","click",4,"ngSwitchDefault"],[3,"matTooltip","click"],["mat-cell",""],["mat-header-row",""],["mat-row",""],[4,"ngFor","ngForOf"]],template:function(Se,re){1&Se&&(c.\u0275\u0275elementStart(0,"h1"),c.\u0275\u0275template(1,M,3,0,"button",0),c.\u0275\u0275elementStart(2,"span",1),c.\u0275\u0275text(3),c.\u0275\u0275elementEnd(),c.\u0275\u0275elementStart(4,"mat-chip-list",2),c.\u0275\u0275template(5,b,2,2,"mat-chip",3),c.\u0275\u0275elementEnd(),c.\u0275\u0275template(6,R,3,0,"button",4),c.\u0275\u0275elementEnd(),c.\u0275\u0275elementStart(7,"p"),c.\u0275\u0275text(8),c.\u0275\u0275elementEnd(),c.\u0275\u0275template(9,ot,14,4,"section",5),c.\u0275\u0275template(10,Pe,5,1,"section",5)),2&Se&&(c.\u0275\u0275advance(1),c.\u0275\u0275property("ngIf",re.data.subdialog),c.\u0275\u0275advance(2),c.\u0275\u0275textInterpolate(re.data.type.name),c.\u0275\u0275advance(1),c.\u0275\u0275property("selectable",!1),c.\u0275\u0275advance(1),c.\u0275\u0275property("ngForOf",re.labels),c.\u0275\u0275advance(1),c.\u0275\u0275property("ngIf",!re.data.subdialog),c.\u0275\u0275advance(2),c.\u0275\u0275textInterpolate(null==re.typeDoc?null:re.typeDoc.longDescription),c.\u0275\u0275advance(1),c.\u0275\u0275property("ngIf",(null==re.typeDoc?null:re.typeDoc.isStruct)&&(null==re.typeDoc?null:re.typeDoc.structFields)),c.\u0275\u0275advance(1),c.\u0275\u0275property("ngIf",null==re.typeDoc||null==re.typeDoc.examples?null:re.typeDoc.examples.length))},directives:[y.NgIf,E.MatChipList,y.NgForOf,w.MatButton,s.MatDialogClose,I.MatIcon,E.MatChip,h.MatTable,h.MatColumnDef,h.MatHeaderCellDef,h.MatCellDef,h.MatHeaderRowDef,h.MatRowDef,h.MatHeaderCell,h.MatCell,y.NgSwitch,y.NgSwitchCase,y.NgSwitchDefault,A.MatTooltip,h.MatHeaderRow,h.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,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.unwrap=_.wrapper=void 0,_.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',_.unwrap="\n XMLHttpRequest.prototype.open = window.___originalXmlHttpRequestOpen;\n console.log = window.___originalConsoleLog;\n console.error = window.___originalConsoleError;\n"},2340:(Le,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.environment=void 0,_.environment={production:!0}},4431:(Le,_,l)=>{"use strict";const g=(0,l(655).__importStar)(l(2313)),c=l(5e3),s=l(6747);l(2340).environment.production&&(0,c.enableProdMode)(),g.platformBrowser().bootstrapModule(s.AppModule).catch(E=>console.error(E))},4327:function(Le,_){var u;void 0!==(u=function(){"use strict";function c(h,A,M){var b=new XMLHttpRequest;b.open("GET",h),b.responseType="blob",b.onload=function(){I(b.response,A,M)},b.onerror=function(){console.error("could not download file")},b.send()}function s(h){var A=new XMLHttpRequest;A.open("HEAD",h,!1);try{A.send()}catch(M){}return 200<=A.status&&299>=A.status}function y(h){try{h.dispatchEvent(new MouseEvent("click"))}catch(M){var A=document.createEvent("MouseEvents");A.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),h.dispatchEvent(A)}}var E="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,w=E.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),I=E.saveAs||("object"!=typeof window||window!==E?function(){}:"download"in HTMLAnchorElement.prototype&&!w?function(h,A,M){var b=E.URL||E.webkitURL,R=document.createElement("a");R.download=A=A||h.name||"download",R.rel="noopener","string"==typeof h?(R.href=h,R.origin===location.origin?y(R):s(R.href)?c(h,A,M):y(R,R.target="_blank")):(R.href=b.createObjectURL(h),setTimeout(function(){b.revokeObjectURL(R.href)},4e4),setTimeout(function(){y(R)},0))}:"msSaveOrOpenBlob"in navigator?function(h,A,M){if(A=A||h.name||"download","string"!=typeof h)navigator.msSaveOrOpenBlob(function g(h,A){return void 0===A?A={autoBom:!1}:"object"!=typeof A&&(console.warn("Deprecated: Expected third argument to be a object"),A={autoBom:!A}),A.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(h.type)?new Blob(["\ufeff",h],{type:h.type}):h}(h,M),A);else if(s(h))c(h,A,M);else{var b=document.createElement("a");b.href=h,b.target="_blank",setTimeout(function(){y(b)})}}:function(h,A,M,b){if((b=b||open("","_blank"))&&(b.document.title=b.document.body.innerText="downloading..."),"string"==typeof h)return c(h,A,M);var R="application/octet-stream"===h.type,V=/constructor/i.test(E.HTMLElement)||E.safari,fe=/CriOS\/[\d]+/.test(navigator.userAgent);if((fe||R&&V||w)&&"undefined"!=typeof FileReader){var $=new FileReader;$.onloadend=function(){var pe=$.result;pe=fe?pe:pe.replace(/^data:[^;]*;/,"data:attachment/file;"),b?b.location.href=pe:location=pe,b=null},$.readAsDataURL(h)}else{var ie=E.URL||E.webkitURL,we=ie.createObjectURL(h);b?b.location=we:location.href=we,b=null,setTimeout(function(){ie.revokeObjectURL(we)},4e4)}});E.saveAs=I.saveAs=I,Le.exports=I}.apply(_,[]))&&(Le.exports=u)},5109:(Le,_,l)=>{"use strict";l.r(_),l.d(_,{NgxJsonViewerComponent:()=>I,NgxJsonViewerModule:()=>h});var i=l(9808),u=l(5e3);function g(A,M){1&A&&u.\u0275\u0275element(0,"div",9)}function c(A,M){if(1&A&&(u.\u0275\u0275elementStart(0,"span",10),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&A){const b=u.\u0275\u0275nextContext().$implicit;u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate(b.description)}}function s(A,M){if(1&A&&(u.\u0275\u0275elementStart(0,"section",11),u.\u0275\u0275element(1,"ngx-json-viewer",12),u.\u0275\u0275elementEnd()),2&A){const b=u.\u0275\u0275nextContext().$implicit,R=u.\u0275\u0275nextContext();u.\u0275\u0275advance(1),u.\u0275\u0275property("json",b.value)("expanded",R.expanded)("depth",R.depth)("_currentDepth",R._currentDepth)}}const y=function(A){return["segment",A]},E=function(A,M){return{"segment-main":!0,expandable:A,expanded:M}};function w(A,M){if(1&A){const b=u.\u0275\u0275getCurrentView();u.\u0275\u0275elementStart(0,"section",2),u.\u0275\u0275elementStart(1,"section",3),u.\u0275\u0275listener("click",function(){const fe=u.\u0275\u0275restoreView(b).$implicit;return u.\u0275\u0275nextContext().toggle(fe)}),u.\u0275\u0275template(2,g,1,0,"div",4),u.\u0275\u0275elementStart(3,"span",5),u.\u0275\u0275text(4),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(5,"span",6),u.\u0275\u0275text(6,": "),u.\u0275\u0275elementEnd(),u.\u0275\u0275template(7,c,2,1,"span",7),u.\u0275\u0275elementEnd(),u.\u0275\u0275template(8,s,2,4,"section",8),u.\u0275\u0275elementEnd()}if(2&A){const b=M.$implicit,R=u.\u0275\u0275nextContext();u.\u0275\u0275property("ngClass",u.\u0275\u0275pureFunction1(6,y,"segment-type-"+b.type)),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngClass",u.\u0275\u0275pureFunction2(8,E,R.isExpandable(b),b.expanded)),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",R.isExpandable(b)),u.\u0275\u0275advance(2),u.\u0275\u0275textInterpolate(b.key),u.\u0275\u0275advance(3),u.\u0275\u0275property("ngIf",!b.expanded||!R.isExpandable(b)),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",b.expanded&&R.isExpandable(b))}}let I=(()=>{class A{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(b=>{this.segments.push(this.parseKeyValue(b,this.json[b]))}):this.segments.push(this.parseKeyValue(`(${typeof this.json})`,this.json))}isExpandable(b){return"object"===b.type||"array"===b.type}toggle(b){this.isExpandable(b)&&(b.expanded=!b.expanded)}parseKeyValue(b,R){const V={key:b,value:R,type:void 0,description:""+R,expanded:this.isExpanded()};switch(typeof V.value){case"number":V.type="number";break;case"boolean":V.type="boolean";break;case"function":V.type="function";break;case"string":V.type="string",V.description='"'+V.value+'"';break;case"undefined":V.type="undefined",V.description="undefined";break;case"object":null===V.value?(V.type="null",V.description="null"):Array.isArray(V.value)?(V.type="array",V.description="Array["+V.value.length+"] "+JSON.stringify(V.value)):V.value instanceof Date?V.type="date":(V.type="object",V.description="Object "+JSON.stringify(V.value))}return V}isExpanded(){return this.expanded&&!(this.depth>-1&&this._currentDepth>=this.depth)}decycle(b){const R=new WeakMap;return function V(fe,$){let ie,we;return"object"!=typeof fe||null===fe||fe instanceof Boolean||fe instanceof Date||fe instanceof Number||fe instanceof RegExp||fe instanceof String?fe:(ie=R.get(fe),void 0!==ie?{$ref:ie}:(R.set(fe,$),Array.isArray(fe)?(we=[],fe.forEach(function(pe,_e){we[_e]=V(pe,$+"["+_e+"]")})):(we={},Object.keys(fe).forEach(function(pe){we[pe]=V(fe[pe],$+"["+JSON.stringify(pe)+"]")})),we))}(b,"$")}}return A.\u0275fac=function(b){return new(b||A)},A.\u0275cmp=u.\u0275\u0275defineComponent({type:A,selectors:[["ngx-json-viewer"]],inputs:{expanded:"expanded",depth:"depth",_currentDepth:"_currentDepth",json:"json"},features:[u.\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(b,R){1&b&&(u.\u0275\u0275elementStart(0,"section",0),u.\u0275\u0275template(1,w,9,11,"section",1),u.\u0275\u0275elementEnd()),2&b&&(u.\u0275\u0275advance(1),u.\u0275\u0275property("ngForOf",R.segments))},directives:[i.NgForOf,i.NgClass,i.NgIf,A],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}']}),A})(),h=(()=>{class A{}return A.\u0275fac=function(b){return new(b||A)},A.\u0275mod=u.\u0275\u0275defineNgModule({type:A}),A.\u0275inj=u.\u0275\u0275defineInjector({imports:[[i.CommonModule]]}),A})()},9802:(Le,_,l)=>{"use strict";l.r(_),l.d(_,{ArgumentOutOfRangeError:()=>ve,AsyncSubject:()=>$,BehaviorSubject:()=>R.X,ConnectableObservable:()=>y,EMPTY:()=>Se.E,EmptyError:()=>me,NEVER:()=>m,NotFoundError:()=>Ye,Notification:()=>ye,NotificationKind:()=>it,ObjectUnsubscribedError:()=>ht.N,Observable:()=>i.y,ReplaySubject:()=>fe,Scheduler:()=>J.b,SequenceError:()=>bt,Subject:()=>b.x,Subscriber:()=>ce.Lv,Subscription:()=>u.w0,TimeoutError:()=>N,UnsubscriptionError:()=>ue.B,VirtualAction:()=>Pe,VirtualTimeScheduler:()=>q,animationFrame:()=>ot.r,animationFrameScheduler:()=>ot.Z,animationFrames:()=>h,asap:()=>ie.e,asapScheduler:()=>ie.E,async:()=>we.P,asyncScheduler:()=>we.z,audit:()=>di.U,auditTime:()=>Xn.e,bindCallback:()=>tt,bindNodeCallback:()=>ft,buffer:()=>Nn,bufferCount:()=>Bn,bufferTime:()=>H,bufferToggle:()=>Ie,bufferWhen:()=>W,catchError:()=>Ae.K,combineAll:()=>On,combineLatest:()=>pt.a,combineLatestAll:()=>jt,combineLatestWith:()=>$n,concat:()=>wt.z,concatAll:()=>Un.u,concatMap:()=>Sn.b,concatMapTo:()=>kn,concatWith:()=>xn,config:()=>Hn.v,connect:()=>li,connectable:()=>Bt,count:()=>Kn,debounce:()=>Gn,debounceTime:()=>Ci.b,defaultIfEmpty:()=>wi,defer:()=>$t.P,delay:()=>hi.g,delayWhen:()=>Wn.j,dematerialize:()=>Sr,distinct:()=>nr,distinctUntilChanged:()=>mr.x,distinctUntilKeyChanged:()=>Qn,elementAt:()=>Lr,empty:()=>Se.c,endWith:()=>Wi,every:()=>Ir,exhaust:()=>zi,exhaustAll:()=>Mi,exhaustMap:()=>gr,expand:()=>Pr,filter:()=>Be.h,finalize:()=>Ar.x,find:()=>Ki,findIndex:()=>Gi,first:()=>Or,firstValueFrom:()=>Re,flatMap:()=>Oi,forkJoin:()=>En.D,from:()=>rn.D,fromEvent:()=>Wt.R,fromEventPattern:()=>Mt,generate:()=>Qt,groupBy:()=>Ii,identity:()=>ke.y,ignoreElements:()=>fi.l,iif:()=>on,interval:()=>oe,isEmpty:()=>Pi,isObservable:()=>Ze.b,last:()=>Qi,lastValueFrom:()=>Me,map:()=>ci.U,mapTo:()=>mi.h,materialize:()=>ir,max:()=>rr,merge:()=>z.T,mergeAll:()=>Ai.J,mergeMap:()=>Xe.z,mergeMapTo:()=>xi,mergeScan:()=>Zi,mergeWith:()=>Ri,min:()=>or,multicast:()=>Fi,never:()=>C,noop:()=>Et.Z,observable:()=>E.L,observeOn:()=>Ce.Q,of:()=>re.of,onErrorResumeNext:()=>Dt,pairs:()=>zt,pairwise:()=>Yi,partition:()=>Ve,pipe:()=>dt.z,pluck:()=>ki,publish:()=>xr,publishBehavior:()=>Rn,publishLast:()=>sr,publishReplay:()=>ar,queue:()=>Je,queueScheduler:()=>Fe,race:()=>he,raceWith:()=>Ln,range:()=>ut,reduce:()=>St,refCount:()=>s,repeat:()=>x,repeatWhen:()=>Q,retry:()=>F,retryWhen:()=>ne,sample:()=>ze,sampleTime:()=>ct,scan:()=>vt,scheduled:()=>Dn.x,sequenceEqual:()=>Rt,share:()=>wn.B,shareReplay:()=>In,single:()=>cn,skip:()=>k.T,skipLast:()=>O,skipUntil:()=>D,skipWhile:()=>X,startWith:()=>at.O,subscribeOn:()=>be.R,switchAll:()=>Pn,switchMap:()=>Vt.w,switchMapTo:()=>qn,switchScan:()=>gi,take:()=>Ui.q,takeLast:()=>pi,takeUntil:()=>Ni.R,takeWhile:()=>Tt,tap:()=>B.b,throttle:()=>p,throttleTime:()=>P,throwError:()=>Ke._,throwIfEmpty:()=>Zn,timeInterval:()=>j,timeout:()=>ae,timeoutWith:()=>Ne,timer:()=>yn.H,timestamp:()=>Ue,toArray:()=>Jt,using:()=>Lt,window:()=>rt,windowCount:()=>mt,windowTime:()=>At,windowToggle:()=>Ut,windowWhen:()=>Zt,withLatestFrom:()=>un,zip:()=>hn,zipAll:()=>Xt,zipWith:()=>dn});var i=l(9751),u=l(6921),g=l(4482),c=l(5403);function s(){return(0,g.e)((ee,U)=>{let Y=null;ee._refCount++;const te=new c.Q(U,void 0,void 0,void 0,()=>{if(!ee||ee._refCount<=0||0<--ee._refCount)return void(Y=null);const xe=ee._connection,je=Y;Y=null,xe&&(!je||xe===je)&&xe.unsubscribe(),U.unsubscribe()});ee.subscribe(te),te.closed||(Y=ee.connect())})}class y extends i.y{constructor(U,Y){super(),this.source=U,this.subjectFactory=Y,this._subject=null,this._refCount=0,this._connection=null,(0,g.A)(U)&&(this.lift=U.lift)}_subscribe(U){return this.getSubject().subscribe(U)}getSubject(){const U=this._subject;return(!U||U.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:U}=this;this._subject=this._connection=null,null==U||U.unsubscribe()}connect(){let U=this._connection;if(!U){U=this._connection=new u.w0;const Y=this.getSubject();U.add(this.source.subscribe(new c.Q(Y,void 0,()=>{this._teardown(),Y.complete()},te=>{this._teardown(),Y.error(te)},()=>this._teardown()))),U.closed&&(this._connection=null,U=u.w0.EMPTY)}return U}refCount(){return s()(this)}}var E=l(8822);const w={now:()=>(w.delegate||performance).now(),delegate:void 0};var I=l(3399);function h(ee){return ee?A(ee):M}function A(ee){const{schedule:U}=I.l;return new i.y(Y=>{const te=new u.w0,xe=ee||w,je=xe.now(),et=yt=>{const _t=xe.now();Y.next({timestamp:ee?_t:yt,elapsed:_t-je}),Y.closed||te.add(U(et))};return te.add(U(et)),te})}const M=A();var b=l(6758),R=l(1135),V=l(6063);class fe extends b.x{constructor(U=1/0,Y=1/0,te=V.l){super(),this._bufferSize=U,this._windowTime=Y,this._timestampProvider=te,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=Y===1/0,this._bufferSize=Math.max(1,U),this._windowTime=Math.max(1,Y)}next(U){const{isStopped:Y,_buffer:te,_infiniteTimeWindow:xe,_timestampProvider:je,_windowTime:et}=this;Y||(te.push(U),!xe&&te.push(je.now()+et)),this._trimBuffer(),super.next(U)}_subscribe(U){this._throwIfClosed(),this._trimBuffer();const Y=this._innerSubscribe(U),{_infiniteTimeWindow:te,_buffer:xe}=this,je=xe.slice();for(let et=0;et<je.length&&!U.closed;et+=te?1:2)U.next(je[et]);return this._checkFinalizedStatuses(U),Y}_trimBuffer(){const{_bufferSize:U,_timestampProvider:Y,_buffer:te,_infiniteTimeWindow:xe}=this,je=(xe?1:2)*U;if(U<1/0&&je<te.length&&te.splice(0,te.length-je),!xe){const et=Y.now();let yt=0;for(let _t=1;_t<te.length&&te[_t]<=et;_t+=2)yt=_t;yt&&te.splice(0,yt+1)}}}class $ extends b.x{constructor(){super(...arguments),this._value=null,this._hasValue=!1,this._isComplete=!1}_checkFinalizedStatuses(U){const{hasError:Y,_hasValue:te,_value:xe,thrownError:je,isStopped:et,_isComplete:yt}=this;Y?U.error(je):(et||yt)&&(te&&U.next(xe),U.complete())}next(U){this.isStopped||(this._value=U,this._hasValue=!0)}complete(){const{_hasValue:U,_value:Y,_isComplete:te}=this;te||(this._isComplete=!0,U&&super.next(Y),super.complete())}}var ie=l(3101),we=l(4986),pe=l(4408),le=l(8950);const Fe=new class De extends le.v{}(class _e extends pe.o{constructor(U,Y){super(U,Y),this.scheduler=U,this.work=Y}schedule(U,Y=0){return Y>0?super.schedule(U,Y):(this.delay=Y,this.state=U,this.scheduler.flush(this),this)}execute(U,Y){return Y>0||this.closed?super.execute(U,Y):this._execute(U,Y)}requestAsyncId(U,Y,te=0){return null!=te&&te>0||null==te&&this.delay>0?super.requestAsyncId(U,Y,te):U.flush(this)}}),Je=Fe;var ot=l(29);let q=(()=>{class ee extends le.v{constructor(Y=Pe,te=1/0){super(Y,()=>this.frame),this.maxFrames=te,this.frame=0,this.index=-1}flush(){const{actions:Y,maxFrames:te}=this;let xe,je;for(;(je=Y[0])&&je.delay<=te&&(Y.shift(),this.frame=je.delay,!(xe=je.execute(je.state,je.delay))););if(xe){for(;je=Y.shift();)je.unsubscribe();throw xe}}}return ee.frameTimeFactor=10,ee})();class Pe extends pe.o{constructor(U,Y,te=(U.index+=1)){super(U,Y),this.scheduler=U,this.work=Y,this.index=te,this.active=!0,this.index=U.index=te}schedule(U,Y=0){if(Number.isFinite(Y)){if(!this.id)return super.schedule(U,Y);this.active=!1;const te=new Pe(this.scheduler,this.work);return this.add(te),te.schedule(U,Y)}return u.w0.EMPTY}requestAsyncId(U,Y,te=0){this.delay=U.frame+te;const{actions:xe}=U;return xe.push(this),xe.sort(Pe.sortActions),!0}recycleAsyncId(U,Y,te=0){}_execute(U,Y){if(!0===this.active)return super._execute(U,Y)}static sortActions(U,Y){return U.delay===Y.delay?U.index===Y.index?0:U.index>Y.index?1:-1:U.delay>Y.delay?1:-1}}var J=l(6646),ce=l(930),Se=l(515),re=l(9646),Ke=l(2843),ge=l(576),it=(()=>{return(ee=it||(it={})).NEXT="N",ee.ERROR="E",ee.COMPLETE="C",it;var ee})();class ye{constructor(U,Y,te){this.kind=U,this.value=Y,this.error=te,this.hasValue="N"===U}observe(U){return He(this,U)}do(U,Y,te){const{kind:xe,value:je,error:et}=this;return"N"===xe?null==U?void 0:U(je):"E"===xe?null==Y?void 0:Y(et):null==te?void 0:te()}accept(U,Y,te){var xe;return(0,ge.m)(null===(xe=U)||void 0===xe?void 0:xe.next)?this.observe(U):this.do(U,Y,te)}toObservable(){const{kind:U,value:Y,error:te}=this,xe="N"===U?(0,re.of)(Y):"E"===U?(0,Ke._)(()=>te):"C"===U?Se.E:0;if(!xe)throw new TypeError(`Unexpected notification kind ${U}`);return xe}static createNext(U){return new ye("N",U)}static createError(U){return new ye("E",void 0,U)}static createComplete(){return ye.completeNotification}}function He(ee,U){var Y,te,xe;const{kind:je,value:et,error:yt}=ee;if("string"!=typeof je)throw new TypeError('Invalid notification, missing "kind"');"N"===je?null===(Y=U.next)||void 0===Y||Y.call(U,et):"E"===je?null===(te=U.error)||void 0===te||te.call(U,yt):null===(xe=U.complete)||void 0===xe||xe.call(U)}ye.completeNotification=new ye("C");var dt=l(9635),Et=l(5032),ke=l(4671),Ze=l(5191),Z=l(3888);const me=(0,Z.d)(ee=>function(){ee(this),this.name="EmptyError",this.message="no elements in sequence"});function Me(ee,U){const Y="object"==typeof U;return new Promise((te,xe)=>{let et,je=!1;ee.subscribe({next:yt=>{et=yt,je=!0},error:xe,complete:()=>{je?te(et):Y?te(U.defaultValue):xe(new me)}})})}function Re(ee,U){const Y="object"==typeof U;return new Promise((te,xe)=>{const je=new ce.Hp({next:et=>{te(et),je.unsubscribe()},error:xe,complete:()=>{Y?te(U.defaultValue):xe(new me)}});ee.subscribe(je)})}const ve=(0,Z.d)(ee=>function(){ee(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}),Ye=(0,Z.d)(ee=>function(Y){ee(this),this.name="NotFoundError",this.message=Y});var ht=l(7448);const bt=(0,Z.d)(ee=>function(Y){ee(this),this.name="SequenceError",this.message=Y});var Ot=l(1165),lt=l(8421),Qe=l(9672);const N=(0,Z.d)(ee=>function(Y=null){ee(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=Y});function ae(ee,U){const{first:Y,each:te,with:xe=Oe,scheduler:je=(null!=U?U:we.z),meta:et=null}=(0,Ot.q)(ee)?{first:ee}:"number"==typeof ee?{each:ee}:ee;if(null==Y&&null==te)throw new TypeError("No timeout provided.");return(0,g.e)((yt,_t)=>{let Ht,Gt,_n=null,an=0;const Mn=gn=>{Gt=(0,Qe.f)(_t,je,()=>{try{Ht.unsubscribe(),(0,lt.Xf)(xe({meta:et,lastValue:_n,seen:an})).subscribe(_t)}catch(It){_t.error(It)}},gn)};Ht=yt.subscribe(new c.Q(_t,gn=>{null==Gt||Gt.unsubscribe(),an++,_t.next(_n=gn),te>0&&Mn(te)},void 0,void 0,()=>{(null==Gt?void 0:Gt.closed)||null==Gt||Gt.unsubscribe(),_n=null})),Mn(null!=Y?"number"==typeof Y?Y:+Y-je.now():te)})}function Oe(ee){throw new N(ee)}var ue=l(7896),Te=l(3532),be=l(9468),se=l(3268),Ce=l(5363);function Ge(ee,U,Y,te){if(Y){if(!(0,Te.K)(Y))return function(...xe){return Ge(ee,U,te).apply(this,xe).pipe((0,se.Z)(Y))};te=Y}return te?function(...xe){return Ge(ee,U).apply(this,xe).pipe((0,be.R)(te),(0,Ce.Q)(te))}:function(...xe){const je=new $;let et=!0;return new i.y(yt=>{const _t=je.subscribe(yt);if(et){et=!1;let Ht=!1,Gt=!1;U.apply(this,[...xe,(..._n)=>{if(ee){const an=_n.shift();if(null!=an)return void je.error(an)}je.next(1<_n.length?_n:_n[0]),Gt=!0,Ht&&je.complete()}]),Gt&&je.complete(),Ht=!0}return _t})}}function tt(ee,U,Y){return Ge(!1,ee,U,Y)}function ft(ee,U,Y){return Ge(!0,ee,U,Y)}var pt=l(9841),wt=l(1350),$t=l(9770);const en={connector:()=>new b.x,resetOnDisconnect:!0};function Bt(ee,U=en){let Y=null;const{connector:te,resetOnDisconnect:xe=!0}=U;let je=te();const et=new i.y(yt=>je.subscribe(yt));return et.connect=()=>((!Y||Y.closed)&&(Y=(0,$t.P)(()=>ee).subscribe(je),xe&&Y.add(()=>je=te())),Y),et}var En=l(4128),rn=l(188),Wt=l(4968);function Mt(ee,U,Y){return Y?Mt(ee,U).pipe((0,se.Z)(Y)):new i.y(te=>{const xe=(...et)=>te.next(1===et.length?et[0]:et),je=ee(xe);return(0,ge.m)(U)?()=>U(xe,je):void 0})}var bn=l(6340);function Qt(ee,U,Y,te,xe){let je,et;function*yt(){for(let _t=et;!U||U(_t);_t=Y(_t))yield je(_t)}return 1===arguments.length?({initialState:et,condition:U,iterate:Y,resultSelector:je=ke.y,scheduler:xe}=ee):(et=ee,!te||(0,Te.K)(te)?(je=ke.y,xe=te):je=te),(0,$t.P)(xe?()=>(0,bn.Q)(yt(),xe):yt)}function on(ee,U,Y){return(0,$t.P)(()=>ee()?U:Y)}var yn=l(2805);function oe(ee=0,U=we.z){return ee<0&&(ee=0),(0,yn.H)(ee,ee,U)}var z=l(6451);const m=new i.y(Et.Z);function C(){return m}const{isArray:T}=Array;function K(ee){return 1===ee.length&&T(ee[0])?ee[0]:ee}function Dt(...ee){return function qe(...ee){const U=K(ee);return(0,g.e)((Y,te)=>{const xe=[Y,...U],je=()=>{if(!te.closed)if(xe.length>0){let et;try{et=(0,lt.Xf)(xe.shift())}catch(_t){return void je()}const yt=new c.Q(te,void 0,Et.Z,Et.Z);te.add(et.subscribe(yt)),yt.add(je)}else te.complete()};je()})}(K(ee))(Se.E)}function zt(ee,U){return(0,rn.D)(Object.entries(ee),U)}function pn(ee,U){return(Y,te)=>!ee.call(U,Y,te)}var Be=l(9300);function Ve(ee,U,Y){return[(0,Be.h)(U,Y)((0,lt.Xf)(ee)),(0,Be.h)(pn(U,Y))((0,lt.Xf)(ee))]}function he(...ee){return 1===(ee=K(ee)).length?(0,lt.Xf)(ee[0]):new i.y($e(ee))}function $e(ee){return U=>{let Y=[];for(let te=0;Y&&!U.closed&&te<ee.length;te++)Y.push((0,lt.Xf)(ee[te]).subscribe(new c.Q(U,xe=>{if(Y){for(let je=0;je<Y.length;je++)je!==te&&Y[je].unsubscribe();Y=null}U.next(xe)})))}}function ut(ee,U,Y){if(null==U&&(U=ee,ee=0),U<=0)return Se.E;const te=U+ee;return new i.y(Y?xe=>{let je=ee;return Y.schedule(function(){je<te?(xe.next(je++),this.schedule()):xe.complete()})}:xe=>{let je=ee;for(;je<te&&!xe.closed;)xe.next(je++);xe.complete()})}function Lt(ee,U){return new i.y(Y=>{const te=ee(),xe=U(te);return(xe?(0,lt.Xf)(xe):Se.E).subscribe(Y),()=>{te&&te.unsubscribe()}})}var kt=l(3269);function hn(...ee){const U=(0,kt.jO)(ee),Y=K(ee);return Y.length?new i.y(te=>{let xe=Y.map(()=>[]),je=Y.map(()=>!1);te.add(()=>{xe=je=null});for(let et=0;!te.closed&&et<Y.length;et++)(0,lt.Xf)(Y[et]).subscribe(new c.Q(te,yt=>{if(xe[et].push(yt),xe.every(_t=>_t.length)){const _t=xe.map(Ht=>Ht.shift());te.next(U?U(..._t):_t),xe.some((Ht,Gt)=>!Ht.length&&je[Gt])&&te.complete()}},()=>{je[et]=!0,!xe[et].length&&te.complete()}));return()=>{xe=je=null}}):Se.E}var Dn=l(3762),Hn=l(2416),di=l(5615),Xn=l(453);function Nn(ee){return(0,g.e)((U,Y)=>{let te=[];return U.subscribe(new c.Q(Y,xe=>te.push(xe),()=>{Y.next(te),Y.complete()})),ee.subscribe(new c.Q(Y,()=>{const xe=te;te=[],Y.next(xe)},Et.Z)),()=>{te=null}})}var zn=l(8737);function Bn(ee,U=null){return U=null!=U?U:ee,(0,g.e)((Y,te)=>{let xe=[],je=0;Y.subscribe(new c.Q(te,et=>{let yt=null;je++%U==0&&xe.push([]);for(const _t of xe)_t.push(et),ee<=_t.length&&(yt=null!=yt?yt:[],yt.push(_t));if(yt)for(const _t of yt)(0,zn.P)(xe,_t),te.next(_t)},()=>{for(const et of xe)te.next(et);te.complete()},void 0,()=>{xe=null}))})}function H(ee,...U){var Y,te;const xe=null!==(Y=(0,kt.yG)(U))&&void 0!==Y?Y:we.z,je=null!==(te=U[0])&&void 0!==te?te:null,et=U[1]||1/0;return(0,g.e)((yt,_t)=>{let Ht=[],Gt=!1;const _n=gn=>{const{buffer:It,subs:xt}=gn;xt.unsubscribe(),(0,zn.P)(Ht,gn),_t.next(It),Gt&&an()},an=()=>{if(Ht){const gn=new u.w0;_t.add(gn);const xt={buffer:[],subs:gn};Ht.push(xt),(0,Qe.f)(gn,xe,()=>_n(xt),ee)}};null!==je&&je>=0?(0,Qe.f)(_t,xe,an,je,!0):Gt=!0,an();const Mn=new c.Q(_t,gn=>{const It=Ht.slice();for(const xt of It){const{buffer:Yt}=xt;Yt.push(gn),et<=Yt.length&&_n(xt)}},()=>{for(;null==Ht?void 0:Ht.length;)_t.next(Ht.shift().buffer);null==Mn||Mn.unsubscribe(),_t.complete(),_t.unsubscribe()},void 0,()=>Ht=null);yt.subscribe(Mn)})}function Ie(ee,U){return(0,g.e)((Y,te)=>{const xe=[];(0,lt.Xf)(ee).subscribe(new c.Q(te,je=>{const et=[];xe.push(et);const yt=new u.w0;yt.add((0,lt.Xf)(U(je)).subscribe(new c.Q(te,()=>{(0,zn.P)(xe,et),te.next(et),yt.unsubscribe()},Et.Z)))},Et.Z)),Y.subscribe(new c.Q(te,je=>{for(const et of xe)et.push(je)},()=>{for(;xe.length>0;)te.next(xe.shift());te.complete()}))})}function W(ee){return(0,g.e)((U,Y)=>{let te=null,xe=null;const je=()=>{null==xe||xe.unsubscribe();const et=te;te=[],et&&Y.next(et),(0,lt.Xf)(ee()).subscribe(xe=new c.Q(Y,je,Et.Z))};je(),U.subscribe(new c.Q(Y,et=>null==te?void 0:te.push(et),()=>{te&&Y.next(te),Y.complete()},void 0,()=>te=xe=null))})}var Ae=l(262),Xe=l(6099);function st(ee,U,Y,te,xe){return(je,et)=>{let yt=Y,_t=U,Ht=0;je.subscribe(new c.Q(et,Gt=>{const _n=Ht++;_t=yt?ee(_t,Gt,_n):(yt=!0,Gt),te&&et.next(_t)},xe&&(()=>{yt&&et.next(_t),et.complete()})))}}function St(ee,U){return(0,g.e)(st(ee,U,arguments.length>=2,!1,!0))}const Nt=(ee,U)=>(ee.push(U),ee);function Jt(){return(0,g.e)((ee,U)=>{St(Nt,[])(ee).subscribe(U)})}function vn(ee,U){return(0,dt.z)(Jt(),(0,Xe.z)(Y=>ee(Y)),U?(0,se.Z)(U):ke.y)}function jt(ee){return vn(pt.a,ee)}const On=jt;function ln(...ee){const U=(0,kt.jO)(ee);return U?(0,dt.z)(ln(...ee),(0,se.Z)(U)):(0,g.e)((Y,te)=>{(0,pt.l)([Y,...K(ee)])(te)})}function $n(...ee){return ln(...ee)}var Un=l(7886),Sn=l(4351);function kn(ee,U){return(0,ge.m)(U)?(0,Sn.b)(()=>ee,U):(0,Sn.b)(()=>ee)}function xn(...ee){return function ai(...ee){const U=(0,kt.yG)(ee);return(0,g.e)((Y,te)=>{(0,Un.u)()((0,rn.D)([Y,...ee],U)).subscribe(te)})}(...ee)}const ni={connector:()=>new b.x};function li(ee,U=ni){const{connector:Y}=U;return(0,g.e)((te,xe)=>{const je=Y();(0,rn.D)(ee(function mn(ee){return new i.y(U=>ee.subscribe(U))}(je))).subscribe(xe),xe.add(te.subscribe(je))})}function Kn(ee){return St((U,Y,te)=>!ee||ee(Y,te)?U+1:U,0)}function Gn(ee){return(0,g.e)((U,Y)=>{let te=!1,xe=null,je=null;const et=()=>{if(null==je||je.unsubscribe(),je=null,te){te=!1;const yt=xe;xe=null,Y.next(yt)}};U.subscribe(new c.Q(Y,yt=>{null==je||je.unsubscribe(),te=!0,xe=yt,je=new c.Q(Y,et,Et.Z),(0,lt.Xf)(ee(yt)).subscribe(je)},()=>{et(),Y.complete()},void 0,()=>{xe=je=null}))})}var Ci=l(8372);function wi(ee){return(0,g.e)((U,Y)=>{let te=!1;U.subscribe(new c.Q(Y,xe=>{te=!0,Y.next(xe)},()=>{te||Y.next(ee),Y.complete()}))})}var hi=l(4326),Wn=l(1260);function Sr(){return(0,g.e)((ee,U)=>{ee.subscribe(new c.Q(U,Y=>He(Y,U)))})}function nr(ee,U){return(0,g.e)((Y,te)=>{const xe=new Set;Y.subscribe(new c.Q(te,je=>{const et=ee?ee(je):je;xe.has(et)||(xe.add(et),te.next(je))})),null==U||U.subscribe(new c.Q(te,()=>xe.clear(),Et.Z))})}var mr=l(1884);function Qn(ee,U){return(0,mr.x)((Y,te)=>U?U(Y[ee],te[ee]):Y[ee]===te[ee])}function Zn(ee=Ei){return(0,g.e)((U,Y)=>{let te=!1;U.subscribe(new c.Q(Y,xe=>{te=!0,Y.next(xe)},()=>te?Y.complete():Y.error(ee())))})}function Ei(){return new me}var Ui=l(5698);function Lr(ee,U){if(ee<0)throw new ve;const Y=arguments.length>=2;return te=>te.pipe((0,Be.h)((xe,je)=>je===ee),(0,Ui.q)(1),Y?wi(U):Zn(()=>new ve))}function Wi(...ee){return U=>(0,wt.z)(U,(0,re.of)(...ee))}function Ir(ee,U){return(0,g.e)((Y,te)=>{let xe=0;Y.subscribe(new c.Q(te,je=>{ee.call(U,je,xe++,Y)||(te.next(!1),te.complete())},()=>{te.next(!0),te.complete()}))})}function Mi(){return(0,g.e)((ee,U)=>{let Y=!1,te=null;ee.subscribe(new c.Q(U,xe=>{te||(te=(0,lt.Xf)(xe).subscribe(new c.Q(U,void 0,()=>{te=null,Y&&U.complete()})))},()=>{Y=!0,!te&&U.complete()}))})}const zi=Mi;var ci=l(4004);function gr(ee,U){return U?Y=>Y.pipe(gr((te,xe)=>(0,lt.Xf)(ee(te,xe)).pipe((0,ci.U)((je,et)=>U(te,je,xe,et))))):(0,g.e)((Y,te)=>{let xe=0,je=null,et=!1;Y.subscribe(new c.Q(te,yt=>{je||(je=new c.Q(te,void 0,()=>{je=null,et&&te.complete()}),(0,lt.Xf)(ee(yt,xe++)).subscribe(je))},()=>{et=!0,!je&&te.complete()}))})}var Di=l(2733);function Pr(ee,U=1/0,Y){return U=(U||0)<1?1/0:U,(0,g.e)((te,xe)=>(0,Di.p)(te,xe,ee,U,void 0,!0,Y))}var Ar=l(8746);function Ki(ee,U){return(0,g.e)(Si(ee,U,"value"))}function Si(ee,U,Y){const te="index"===Y;return(xe,je)=>{let et=0;xe.subscribe(new c.Q(je,yt=>{const _t=et++;ee.call(U,yt,_t,xe)&&(je.next(te?_t:yt),je.complete())},()=>{je.next(te?-1:void 0),je.complete()}))}}function Gi(ee,U){return(0,g.e)(Si(ee,U,"index"))}function Or(ee,U){const Y=arguments.length>=2;return te=>te.pipe(ee?(0,Be.h)((xe,je)=>ee(xe,je,te)):ke.y,(0,Ui.q)(1),Y?wi(U):Zn(()=>new me))}function Ii(ee,U,Y,te){return(0,g.e)((xe,je)=>{let et;U&&"function"!=typeof U?({duration:Y,element:et,connector:te}=U):et=U;const yt=new Map,_t=an=>{yt.forEach(an),an(je)},Ht=an=>_t(Mn=>Mn.error(an)),Gt=new _r(je,an=>{try{const Mn=ee(an);let gn=yt.get(Mn);if(!gn){yt.set(Mn,gn=te?te():new b.x);const It=function _n(an,Mn){const gn=new i.y(It=>{Gt.activeGroups++;const xt=Mn.subscribe(It);return()=>{xt.unsubscribe(),0==--Gt.activeGroups&&Gt.teardownAttempted&&Gt.unsubscribe()}});return gn.key=an,gn}(Mn,gn);if(je.next(It),Y){const xt=new c.Q(gn,()=>{gn.complete(),null==xt||xt.unsubscribe()},void 0,void 0,()=>yt.delete(Mn));Gt.add((0,lt.Xf)(Y(It)).subscribe(xt))}}gn.next(et?et(an):an)}catch(Mn){Ht(Mn)}},()=>_t(an=>an.complete()),Ht,()=>yt.clear());xe.subscribe(Gt)})}class _r extends c.Q{constructor(){super(...arguments),this.activeGroups=0,this.teardownAttempted=!1}unsubscribe(){this.teardownAttempted=!0,0===this.activeGroups&&super.unsubscribe()}}var fi=l(8502);function Pi(){return(0,g.e)((ee,U)=>{ee.subscribe(new c.Q(U,()=>{U.next(!1),U.complete()},()=>{U.next(!0),U.complete()}))})}function pi(ee){return ee<=0?()=>Se.E:(0,g.e)((U,Y)=>{let te=[];U.subscribe(new c.Q(Y,xe=>{te.push(xe),ee<te.length&&te.shift()},()=>{for(const xe of te)Y.next(xe);Y.complete()},void 0,()=>{te=null}))})}function Qi(ee,U){const Y=arguments.length>=2;return te=>te.pipe(ee?(0,Be.h)((xe,je)=>ee(xe,je,te)):ke.y,pi(1),Y?wi(U):Zn(()=>new me))}var mi=l(9718);function ir(){return(0,g.e)((ee,U)=>{ee.subscribe(new c.Q(U,Y=>{U.next(ye.createNext(Y))},()=>{U.next(ye.createComplete()),U.complete()},Y=>{U.next(ye.createError(Y)),U.complete()}))})}function rr(ee){return St((0,ge.m)(ee)?(U,Y)=>ee(U,Y)>0?U:Y:(U,Y)=>U>Y?U:Y)}var Ai=l(8189);const Oi=Xe.z;function xi(ee,U,Y=1/0){return(0,ge.m)(U)?(0,Xe.z)(()=>ee,U,Y):("number"==typeof U&&(Y=U),(0,Xe.z)(()=>ee,Y))}function Zi(ee,U,Y=1/0){return(0,g.e)((te,xe)=>{let je=U;return(0,Di.p)(te,xe,(et,yt)=>ee(je,et,yt),Y,et=>{je=et},!1,void 0,()=>je=null)})}function Ri(...ee){return function ti(...ee){const U=(0,kt.yG)(ee),Y=(0,kt._6)(ee,1/0);return ee=K(ee),(0,g.e)((te,xe)=>{(0,Ai.J)(Y)((0,rn.D)([te,...ee],U)).subscribe(xe)})}(...ee)}function or(ee){return St((0,ge.m)(ee)?(U,Y)=>ee(U,Y)<0?U:Y:(U,Y)=>U<Y?U:Y)}function Fi(ee,U){const Y=(0,ge.m)(ee)?ee:()=>ee;return(0,ge.m)(U)?li(U,{connector:Y}):te=>new y(te,Y)}function Yi(){return(0,g.e)((ee,U)=>{let Y,te=!1;ee.subscribe(new c.Q(U,xe=>{const je=Y;Y=xe,te&&U.next([je,xe]),te=!0}))})}function ki(...ee){const U=ee.length;if(0===U)throw new Error("list of properties cannot be empty.");return(0,ci.U)(Y=>{let te=Y;for(let xe=0;xe<U;xe++){const je=null==te?void 0:te[ee[xe]];if(void 0===je)return;te=je}return te})}function xr(ee){return ee?U=>li(ee)(U):U=>Fi(new b.x)(U)}function Rn(ee){return U=>{const Y=new R.X(ee);return new y(U,()=>Y)}}function sr(){return ee=>{const U=new $;return new y(ee,()=>U)}}function ar(ee,U,Y,te){Y&&!(0,ge.m)(Y)&&(te=Y);const xe=(0,ge.m)(Y)?Y:void 0;return je=>Fi(new fe(ee,U,te),xe)(je)}function Ln(...ee){return ee.length?(0,g.e)((U,Y)=>{$e([U,...ee])(Y)}):ke.y}function x(ee){let Y,U=1/0;return null!=ee&&("object"==typeof ee?({count:U=1/0,delay:Y}=ee):U=ee),U<=0?()=>Se.E:(0,g.e)((te,xe)=>{let et,je=0;const yt=()=>{if(null==et||et.unsubscribe(),et=null,null!=Y){const Ht="number"==typeof Y?(0,yn.H)(Y):(0,lt.Xf)(Y(je)),Gt=new c.Q(xe,()=>{Gt.unsubscribe(),_t()});Ht.subscribe(Gt)}else _t()},_t=()=>{let Ht=!1;et=te.subscribe(new c.Q(xe,void 0,()=>{++je<U?et?yt():Ht=!0:xe.complete()})),Ht&&yt()};_t()})}function Q(ee){return(0,g.e)((U,Y)=>{let te,je,xe=!1,et=!1,yt=!1;const _t=()=>yt&&et&&(Y.complete(),!0),Gt=()=>{yt=!1,te=U.subscribe(new c.Q(Y,void 0,()=>{yt=!0,!_t()&&(je||(je=new b.x,ee(je).subscribe(new c.Q(Y,()=>{te?Gt():xe=!0},()=>{et=!0,_t()}))),je).next()})),xe&&(te.unsubscribe(),te=null,xe=!1,Gt())};Gt()})}function F(ee=1/0){let U;U=ee&&"object"==typeof ee?ee:{count:ee};const{count:Y=1/0,delay:te,resetOnSuccess:xe=!1}=U;return Y<=0?ke.y:(0,g.e)((je,et)=>{let _t,yt=0;const Ht=()=>{let Gt=!1;_t=je.subscribe(new c.Q(et,_n=>{xe&&(yt=0),et.next(_n)},void 0,_n=>{if(yt++<Y){const an=()=>{_t?(_t.unsubscribe(),_t=null,Ht()):Gt=!0};if(null!=te){const Mn="number"==typeof te?(0,yn.H)(te):(0,lt.Xf)(te(_n,yt)),gn=new c.Q(et,()=>{gn.unsubscribe(),an()},()=>{et.complete()});Mn.subscribe(gn)}else an()}else et.error(_n)})),Gt&&(_t.unsubscribe(),_t=null,Ht())};Ht()})}function ne(ee){return(0,g.e)((U,Y)=>{let te,je,xe=!1;const et=()=>{te=U.subscribe(new c.Q(Y,void 0,void 0,yt=>{je||(je=new b.x,ee(je).subscribe(new c.Q(Y,()=>te?et():xe=!0))),je&&je.next(yt)})),xe&&(te.unsubscribe(),te=null,xe=!1,et())};et()})}function ze(ee){return(0,g.e)((U,Y)=>{let te=!1,xe=null;U.subscribe(new c.Q(Y,et=>{te=!0,xe=et})),ee.subscribe(new c.Q(Y,()=>{if(te){te=!1;const et=xe;xe=null,Y.next(et)}},Et.Z))})}function ct(ee,U=we.z){return ze(oe(ee,U))}function vt(ee,U){return(0,g.e)(st(ee,U,arguments.length>=2,!0))}function Rt(ee,U=((Y,te)=>Y===te)){return(0,g.e)((Y,te)=>{const xe={buffer:[],complete:!1},je={buffer:[],complete:!1},et=_t=>{te.next(_t),te.complete()},yt=(_t,Ht)=>{const Gt=new c.Q(te,_n=>{const{buffer:an,complete:Mn}=Ht;0===an.length?Mn?et(!1):_t.buffer.push(_n):!U(_n,an.shift())&&et(!1)},()=>{_t.complete=!0;const{complete:_n,buffer:an}=Ht;_n&&et(0===an.length),null==Gt||Gt.unsubscribe()});return Gt};Y.subscribe(yt(xe,je)),ee.subscribe(yt(je,xe))})}var wn=l(3099);function In(ee,U,Y){var te,xe;let je,et=!1;return ee&&"object"==typeof ee?(je=null!==(te=ee.bufferSize)&&void 0!==te?te:1/0,U=null!==(xe=ee.windowTime)&&void 0!==xe?xe:1/0,et=!!ee.refCount,Y=ee.scheduler):je=null!=ee?ee:1/0,(0,wn.B)({connector:()=>new fe(je,U,Y),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:et})}function cn(ee){return(0,g.e)((U,Y)=>{let xe,te=!1,je=!1,et=0;U.subscribe(new c.Q(Y,yt=>{je=!0,(!ee||ee(yt,et++,U))&&(te&&Y.error(new bt("Too many matching values")),te=!0,xe=yt)},()=>{te?(Y.next(xe),Y.complete()):Y.error(je?new Ye("No matching values"):new me)}))})}var k=l(5684);function O(ee){return ee<=0?ke.y:(0,g.e)((U,Y)=>{let te=new Array(ee),xe=0;return U.subscribe(new c.Q(Y,je=>{const et=xe++;if(et<ee)te[et]=je;else{const yt=et%ee,_t=te[yt];te[yt]=je,Y.next(_t)}})),()=>{te=null}})}function D(ee){return(0,g.e)((U,Y)=>{let te=!1;const xe=new c.Q(Y,()=>{null==xe||xe.unsubscribe(),te=!0},Et.Z);(0,lt.Xf)(ee).subscribe(xe),U.subscribe(new c.Q(Y,je=>te&&Y.next(je)))})}function X(ee){return(0,g.e)((U,Y)=>{let te=!1,xe=0;U.subscribe(new c.Q(Y,je=>(te||(te=!ee(je,xe++)))&&Y.next(je)))})}var at=l(8675),Vt=l(3900);function Pn(){return(0,Vt.w)(ke.y)}function qn(ee,U){return(0,ge.m)(U)?(0,Vt.w)(()=>ee,U):(0,Vt.w)(()=>ee)}function gi(ee,U){return(0,g.e)((Y,te)=>{let xe=U;return(0,Vt.w)((je,et)=>ee(xe,je,et),(je,et)=>(xe=et,et))(Y).subscribe(te),()=>{xe=null}})}var Ni=l(2722);function Tt(ee,U=!1){return(0,g.e)((Y,te)=>{let xe=0;Y.subscribe(new c.Q(te,je=>{const et=ee(je,xe++);(et||U)&&te.next(je),!et&&te.complete()}))})}var B=l(8505);const d={leading:!0,trailing:!1};function p(ee,U=d){return(0,g.e)((Y,te)=>{const{leading:xe,trailing:je}=U;let et=!1,yt=null,_t=null,Ht=!1;const Gt=()=>{null==_t||_t.unsubscribe(),_t=null,je&&(Mn(),Ht&&te.complete())},_n=()=>{_t=null,Ht&&te.complete()},an=gn=>_t=(0,lt.Xf)(ee(gn)).subscribe(new c.Q(te,Gt,_n)),Mn=()=>{if(et){et=!1;const gn=yt;yt=null,te.next(gn),!Ht&&an(gn)}};Y.subscribe(new c.Q(te,gn=>{et=!0,yt=gn,(!_t||_t.closed)&&(xe?Mn():an(gn))},()=>{Ht=!0,(!(je&&et&&_t)||_t.closed)&&te.complete()}))})}function P(ee,U=we.z,Y=d){const te=(0,yn.H)(ee,U);return p(()=>te,Y)}function j(ee=we.z){return U=>(0,$t.P)(()=>U.pipe(vt(({current:Y},te)=>({value:te,current:ee.now(),last:Y}),{current:ee.now(),value:void 0,last:void 0}),(0,ci.U)(({current:Y,last:te,value:xe})=>new de(xe,Y-te))))}class de{constructor(U,Y){this.value=U,this.interval=Y}}function Ne(ee,U,Y){let te,xe,je;if(Y=null!=Y?Y:we.P,(0,Ot.q)(ee)?te=ee:"number"==typeof ee&&(xe=ee),!U)throw new TypeError("No observable provided to switch to");if(je=()=>U,null==te&&null==xe)throw new TypeError("No timeout provided.");return ae({first:te,each:xe,scheduler:Y,with:je})}function Ue(ee=V.l){return(0,ci.U)(U=>({value:U,timestamp:ee.now()}))}function rt(ee){return(0,g.e)((U,Y)=>{let te=new b.x;Y.next(te.asObservable());const xe=je=>{te.error(je),Y.error(je)};return U.subscribe(new c.Q(Y,je=>null==te?void 0:te.next(je),()=>{te.complete(),Y.complete()},xe)),ee.subscribe(new c.Q(Y,()=>{te.complete(),Y.next(te=new b.x)},Et.Z,xe)),()=>{null==te||te.unsubscribe(),te=null}})}function mt(ee,U=0){const Y=U>0?U:ee;return(0,g.e)((te,xe)=>{let je=[new b.x],et=[],yt=0;xe.next(je[0].asObservable()),te.subscribe(new c.Q(xe,_t=>{for(const Gt of je)Gt.next(_t);const Ht=yt-ee+1;if(Ht>=0&&Ht%Y==0&&je.shift().complete(),++yt%Y==0){const Gt=new b.x;je.push(Gt),xe.next(Gt.asObservable())}},()=>{for(;je.length>0;)je.shift().complete();xe.complete()},_t=>{for(;je.length>0;)je.shift().error(_t);xe.error(_t)},()=>{et=null,je=null}))})}function At(ee,...U){var Y,te;const xe=null!==(Y=(0,kt.yG)(U))&&void 0!==Y?Y:we.z,je=null!==(te=U[0])&&void 0!==te?te:null,et=U[1]||1/0;return(0,g.e)((yt,_t)=>{let Ht=[],Gt=!1;const _n=It=>{const{window:xt,subs:Yt}=It;xt.complete(),Yt.unsubscribe(),(0,zn.P)(Ht,It),Gt&&an()},an=()=>{if(Ht){const It=new u.w0;_t.add(It);const xt=new b.x,Yt={window:xt,subs:It,seen:0};Ht.push(Yt),_t.next(xt.asObservable()),(0,Qe.f)(It,xe,()=>_n(Yt),ee)}};null!==je&&je>=0?(0,Qe.f)(_t,xe,an,je,!0):Gt=!0,an();const Mn=It=>Ht.slice().forEach(It),gn=It=>{Mn(({window:xt})=>It(xt)),It(_t),_t.unsubscribe()};return yt.subscribe(new c.Q(_t,It=>{Mn(xt=>{xt.window.next(It),et<=++xt.seen&&_n(xt)})},()=>gn(It=>It.complete()),It=>gn(xt=>xt.error(It)))),()=>{Ht=null}})}function Ut(ee,U){return(0,g.e)((Y,te)=>{const xe=[],je=et=>{for(;0<xe.length;)xe.shift().error(et);te.error(et)};(0,lt.Xf)(ee).subscribe(new c.Q(te,et=>{const yt=new b.x;xe.push(yt);const _t=new u.w0;let Gt;try{Gt=(0,lt.Xf)(U(et))}catch(_n){return void je(_n)}te.next(yt.asObservable()),_t.add(Gt.subscribe(new c.Q(te,()=>{(0,zn.P)(xe,yt),yt.complete(),_t.unsubscribe()},Et.Z,je)))},Et.Z)),Y.subscribe(new c.Q(te,et=>{const yt=xe.slice();for(const _t of yt)_t.next(et)},()=>{for(;0<xe.length;)xe.shift().complete();te.complete()},je,()=>{for(;0<xe.length;)xe.shift().unsubscribe()}))})}function Zt(ee){return(0,g.e)((U,Y)=>{let te,xe;const je=yt=>{te.error(yt),Y.error(yt)},et=()=>{let yt;null==xe||xe.unsubscribe(),null==te||te.complete(),te=new b.x,Y.next(te.asObservable());try{yt=(0,lt.Xf)(ee())}catch(_t){return void je(_t)}yt.subscribe(xe=new c.Q(Y,et,et,je))};et(),U.subscribe(new c.Q(Y,yt=>te.next(yt),()=>{te.complete(),Y.complete()},je,()=>{null==xe||xe.unsubscribe(),te=null}))})}function un(...ee){const U=(0,kt.jO)(ee);return(0,g.e)((Y,te)=>{const xe=ee.length,je=new Array(xe);let et=ee.map(()=>!1),yt=!1;for(let _t=0;_t<xe;_t++)(0,lt.Xf)(ee[_t]).subscribe(new c.Q(te,Ht=>{je[_t]=Ht,!yt&&!et[_t]&&(et[_t]=!0,(yt=et.every(ke.y))&&(et=null))},Et.Z));Y.subscribe(new c.Q(te,_t=>{if(yt){const Ht=[_t,...je];te.next(U?U(...Ht):Ht)}}))})}function Xt(ee){return vn(hn,ee)}function dn(...ee){return function tn(...ee){return(0,g.e)((U,Y)=>{hn(U,...ee).subscribe(Y)})}(...ee)}},1135:(Le,_,l)=>{"use strict";l.d(_,{X:()=>u});var i=l(6758);class u extends i.x{constructor(c){super(),this._value=c}get value(){return this.getValue()}_subscribe(c){const s=super._subscribe(c);return!s.closed&&c.next(this._value),s}getValue(){const{hasError:c,thrownError:s,_value:y}=this;if(c)throw s;return this._throwIfClosed(),y}next(c){super.next(this._value=c)}}},9751:(Le,_,l)=>{"use strict";l.d(_,{y:()=>w});var i=l(930),u=l(6921),g=l(8822),c=l(9635),s=l(2416),y=l(576),E=l(2806);let w=(()=>{class M{constructor(R){R&&(this._subscribe=R)}lift(R){const V=new M;return V.source=this,V.operator=R,V}subscribe(R,V,fe){const $=function A(M){return M&&M instanceof i.Lv||function h(M){return M&&(0,y.m)(M.next)&&(0,y.m)(M.error)&&(0,y.m)(M.complete)}(M)&&(0,u.Nn)(M)}(R)?R:new i.Hp(R,V,fe);return(0,E.x)(()=>{const{operator:ie,source:we}=this;$.add(ie?ie.call($,we):we?this._subscribe($):this._trySubscribe($))}),$}_trySubscribe(R){try{return this._subscribe(R)}catch(V){R.error(V)}}forEach(R,V){return new(V=I(V))((fe,$)=>{const ie=new i.Hp({next:we=>{try{R(we)}catch(pe){$(pe),ie.unsubscribe()}},error:$,complete:fe});this.subscribe(ie)})}_subscribe(R){var V;return null===(V=this.source)||void 0===V?void 0:V.subscribe(R)}[g.L](){return this}pipe(...R){return(0,c.U)(R)(this)}toPromise(R){return new(R=I(R))((V,fe)=>{let $;this.subscribe(ie=>$=ie,ie=>fe(ie),()=>V($))})}}return M.create=b=>new M(b),M})();function I(M){var b;return null!==(b=null!=M?M:s.v.Promise)&&void 0!==b?b:Promise}},6646:(Le,_,l)=>{"use strict";l.d(_,{b:()=>u});var i=l(6063);class u{constructor(c,s=u.now){this.schedulerActionCtor=c,this.now=s}schedule(c,s=0,y){return new this.schedulerActionCtor(this,c).schedule(y,s)}}u.now=i.l.now},6758:(Le,_,l)=>{"use strict";l.d(_,{x:()=>y});var i=l(9751),u=l(6921),g=l(7448),c=l(8737),s=l(2806);let y=(()=>{class w extends i.y{constructor(){super(),this.closed=!1,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(h){const A=new E(this,this);return A.operator=h,A}_throwIfClosed(){if(this.closed)throw new g.N}next(h){(0,s.x)(()=>{if(this._throwIfClosed(),!this.isStopped){const A=this.observers.slice();for(const M of A)M.next(h)}})}error(h){(0,s.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=h;const{observers:A}=this;for(;A.length;)A.shift().error(h)}})}complete(){(0,s.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:h}=this;for(;h.length;)h.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=null}get observed(){var h;return(null===(h=this.observers)||void 0===h?void 0:h.length)>0}_trySubscribe(h){return this._throwIfClosed(),super._trySubscribe(h)}_subscribe(h){return this._throwIfClosed(),this._checkFinalizedStatuses(h),this._innerSubscribe(h)}_innerSubscribe(h){const{hasError:A,isStopped:M,observers:b}=this;return A||M?u.Lc:(b.push(h),new u.w0(()=>(0,c.P)(b,h)))}_checkFinalizedStatuses(h){const{hasError:A,thrownError:M,isStopped:b}=this;A?h.error(M):b&&h.complete()}asObservable(){const h=new i.y;return h.source=this,h}}return w.create=(I,h)=>new E(I,h),w})();class E extends y{constructor(I,h){super(),this.destination=I,this.source=h}next(I){var h,A;null===(A=null===(h=this.destination)||void 0===h?void 0:h.next)||void 0===A||A.call(h,I)}error(I){var h,A;null===(A=null===(h=this.destination)||void 0===h?void 0:h.error)||void 0===A||A.call(h,I)}complete(){var I,h;null===(h=null===(I=this.destination)||void 0===I?void 0:I.complete)||void 0===h||h.call(I)}_subscribe(I){var h,A;return null!==(A=null===(h=this.source)||void 0===h?void 0:h.subscribe(I))&&void 0!==A?A:u.Lc}}},930:(Le,_,l)=>{"use strict";l.d(_,{Hp:()=>b,Lv:()=>M});var i=l(576),u=l(6921),g=l(2416),c=l(7849),s=l(5032);const y=I("C",void 0,void 0);function I(ie,we,pe){return{kind:ie,value:we,error:pe}}var h=l(3410),A=l(2806);class M extends u.w0{constructor(we){super(),this.isStopped=!1,we?(this.destination=we,(0,u.Nn)(we)&&we.add(this)):this.destination=$}static create(we,pe,_e){return new b(we,pe,_e)}next(we){this.isStopped?fe(function w(ie){return I("N",ie,void 0)}(we),this):this._next(we)}error(we){this.isStopped?fe(function E(ie){return I("E",void 0,ie)}(we),this):(this.isStopped=!0,this._error(we))}complete(){this.isStopped?fe(y,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(we){this.destination.next(we)}_error(we){try{this.destination.error(we)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}class b extends M{constructor(we,pe,_e){let le;if(super(),(0,i.m)(we))le=we;else if(we){let De;({next:le,error:pe,complete:_e}=we),this&&g.v.useDeprecatedNextContext?(De=Object.create(we),De.unsubscribe=()=>this.unsubscribe()):De=we,le=null==le?void 0:le.bind(De),pe=null==pe?void 0:pe.bind(De),_e=null==_e?void 0:_e.bind(De)}this.destination={next:le?R(le):s.Z,error:R(null!=pe?pe:V),complete:_e?R(_e):s.Z}}}function R(ie,we){return(...pe)=>{try{ie(...pe)}catch(_e){g.v.useDeprecatedSynchronousErrorHandling?(0,A.O)(_e):(0,c.h)(_e)}}}function V(ie){throw ie}function fe(ie,we){const{onStoppedNotification:pe}=g.v;pe&&h.z.setTimeout(()=>pe(ie,we))}const $={closed:!0,next:s.Z,error:V,complete:s.Z}},6921:(Le,_,l)=>{"use strict";l.d(_,{w0:()=>c,Lc:()=>s,Nn:()=>y});var i=l(576),u=l(7896),g=l(8737);class c{constructor(I){this.initialTeardown=I,this.closed=!1,this._parentage=null,this._teardowns=null}unsubscribe(){let I;if(!this.closed){this.closed=!0;const{_parentage:h}=this;if(h)if(this._parentage=null,Array.isArray(h))for(const b of h)b.remove(this);else h.remove(this);const{initialTeardown:A}=this;if((0,i.m)(A))try{A()}catch(b){I=b instanceof u.B?b.errors:[b]}const{_teardowns:M}=this;if(M){this._teardowns=null;for(const b of M)try{E(b)}catch(R){I=null!=I?I:[],R instanceof u.B?I=[...I,...R.errors]:I.push(R)}}if(I)throw new u.B(I)}}add(I){var h;if(I&&I!==this)if(this.closed)E(I);else{if(I instanceof c){if(I.closed||I._hasParent(this))return;I._addParent(this)}(this._teardowns=null!==(h=this._teardowns)&&void 0!==h?h:[]).push(I)}}_hasParent(I){const{_parentage:h}=this;return h===I||Array.isArray(h)&&h.includes(I)}_addParent(I){const{_parentage:h}=this;this._parentage=Array.isArray(h)?(h.push(I),h):h?[h,I]:I}_removeParent(I){const{_parentage:h}=this;h===I?this._parentage=null:Array.isArray(h)&&(0,g.P)(h,I)}remove(I){const{_teardowns:h}=this;h&&(0,g.P)(h,I),I instanceof c&&I._removeParent(this)}}c.EMPTY=(()=>{const w=new c;return w.closed=!0,w})();const s=c.EMPTY;function y(w){return w instanceof c||w&&"closed"in w&&(0,i.m)(w.remove)&&(0,i.m)(w.add)&&(0,i.m)(w.unsubscribe)}function E(w){(0,i.m)(w)?w():w.unsubscribe()}},2416:(Le,_,l)=>{"use strict";l.d(_,{v:()=>i});const i={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(Le,_,l)=>{"use strict";l.d(_,{a:()=>h,l:()=>A});var i=l(9751),u=l(4742),g=l(188),c=l(4671),s=l(3268),y=l(3269),E=l(1810),w=l(5403),I=l(9672);function h(...b){const R=(0,y.yG)(b),V=(0,y.jO)(b),{args:fe,keys:$}=(0,u.D)(b);if(0===fe.length)return(0,g.D)([],R);const ie=new i.y(A(fe,R,$?we=>(0,E.n)($,we):c.y));return V?ie.pipe((0,s.Z)(V)):ie}function A(b,R,V=c.y){return fe=>{M(R,()=>{const{length:$}=b,ie=new Array($);let we=$,pe=$;for(let _e=0;_e<$;_e++)M(R,()=>{const le=(0,g.D)(b[_e],R);let De=!1;le.subscribe(new w.Q(fe,Fe=>{ie[_e]=Fe,De||(De=!0,pe--),pe||fe.next(V(ie.slice()))},()=>{--we||fe.complete()}))},fe)},fe)}}function M(b,R,V){b?(0,I.f)(V,b,R):R()}},1350:(Le,_,l)=>{"use strict";l.d(_,{z:()=>c});var i=l(7886),u=l(3269),g=l(188);function c(...s){return(0,i.u)()((0,g.D)(s,(0,u.yG)(s)))}},9770:(Le,_,l)=>{"use strict";l.d(_,{P:()=>g});var i=l(9751),u=l(8421);function g(c){return new i.y(s=>{(0,u.Xf)(c()).subscribe(s)})}},515:(Le,_,l)=>{"use strict";l.d(_,{E:()=>u,c:()=>g});var i=l(9751);const u=new i.y(s=>s.complete());function g(s){return s?function c(s){return new i.y(y=>s.schedule(()=>y.complete()))}(s):u}},4128:(Le,_,l)=>{"use strict";l.d(_,{D:()=>w});var i=l(9751),u=l(4742),g=l(8421),c=l(3269),s=l(5403),y=l(3268),E=l(1810);function w(...I){const h=(0,c.jO)(I),{args:A,keys:M}=(0,u.D)(I),b=new i.y(R=>{const{length:V}=A;if(!V)return void R.complete();const fe=new Array(V);let $=V,ie=V;for(let we=0;we<V;we++){let pe=!1;(0,g.Xf)(A[we]).subscribe(new s.Q(R,_e=>{pe||(pe=!0,ie--),fe[we]=_e},()=>$--,void 0,()=>{(!$||!pe)&&(ie||R.next(M?(0,E.n)(M,fe):fe),R.complete())}))}});return h?b.pipe((0,y.Z)(h)):b}},188:(Le,_,l)=>{"use strict";l.d(_,{D:()=>g});var i=l(3762),u=l(8421);function g(c,s){return s?(0,i.x)(c,s):(0,u.Xf)(c)}},4968:(Le,_,l)=>{"use strict";l.d(_,{R:()=>h});var i=l(8421),u=l(9751),g=l(6099),c=l(1144),s=l(576),y=l(3268);const E=["addListener","removeListener"],w=["addEventListener","removeEventListener"],I=["on","off"];function h(V,fe,$,ie){if((0,s.m)($)&&(ie=$,$=void 0),ie)return h(V,fe,$).pipe((0,y.Z)(ie));const[we,pe]=function R(V){return(0,s.m)(V.addEventListener)&&(0,s.m)(V.removeEventListener)}(V)?w.map(_e=>le=>V[_e](fe,le,$)):function M(V){return(0,s.m)(V.addListener)&&(0,s.m)(V.removeListener)}(V)?E.map(A(V,fe)):function b(V){return(0,s.m)(V.on)&&(0,s.m)(V.off)}(V)?I.map(A(V,fe)):[];if(!we&&(0,c.z)(V))return(0,g.z)(_e=>h(_e,fe,$))((0,i.Xf)(V));if(!we)throw new TypeError("Invalid event target");return new u.y(_e=>{const le=(...De)=>_e.next(1<De.length?De:De[0]);return we(le),()=>pe(le)})}function A(V,fe){return $=>ie=>V[$](fe,ie)}},8421:(Le,_,l)=>{"use strict";l.d(_,{Xf:()=>b});var i=l(655),u=l(1144),g=l(8239),c=l(9751),s=l(3670),y=l(2206),E=l(4532),w=l(6495),I=l(3260),h=l(576),A=l(7849),M=l(8822);function b(_e){if(_e instanceof c.y)return _e;if(null!=_e){if((0,s.c)(_e))return function R(_e){return new c.y(le=>{const De=_e[M.L]();if((0,h.m)(De.subscribe))return De.subscribe(le);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(_e);if((0,u.z)(_e))return function V(_e){return new c.y(le=>{for(let De=0;De<_e.length&&!le.closed;De++)le.next(_e[De]);le.complete()})}(_e);if((0,g.t)(_e))return function fe(_e){return new c.y(le=>{_e.then(De=>{le.closed||(le.next(De),le.complete())},De=>le.error(De)).then(null,A.h)})}(_e);if((0,y.D)(_e))return ie(_e);if((0,w.T)(_e))return function $(_e){return new c.y(le=>{for(const De of _e)if(le.next(De),le.closed)return;le.complete()})}(_e);if((0,I.L)(_e))return function we(_e){return ie((0,I.Q)(_e))}(_e)}throw(0,E.z)(_e)}function ie(_e){return new c.y(le=>{(function pe(_e,le){var De,Fe,Je,ot;return(0,i.__awaiter)(this,void 0,void 0,function*(){try{for(De=(0,i.__asyncValues)(_e);!(Fe=yield De.next()).done;)if(le.next(Fe.value),le.closed)return}catch(q){Je={error:q}}finally{try{Fe&&!Fe.done&&(ot=De.return)&&(yield ot.call(De))}finally{if(Je)throw Je.error}}le.complete()})})(_e,le).catch(De=>le.error(De))})}},6451:(Le,_,l)=>{"use strict";l.d(_,{T:()=>y});var i=l(8189),u=l(8421),g=l(515),c=l(3269),s=l(188);function y(...E){const w=(0,c.yG)(E),I=(0,c._6)(E,1/0),h=E;return h.length?1===h.length?(0,u.Xf)(h[0]):(0,i.J)(I)((0,s.D)(h,w)):g.E}},9646:(Le,_,l)=>{"use strict";l.d(_,{of:()=>g});var i=l(3269),u=l(188);function g(...c){const s=(0,i.yG)(c);return(0,u.D)(c,s)}},2843:(Le,_,l)=>{"use strict";l.d(_,{_:()=>g});var i=l(9751),u=l(576);function g(c,s){const y=(0,u.m)(c)?c:()=>c,E=w=>w.error(y());return new i.y(s?w=>s.schedule(E,0,w):E)}},2805:(Le,_,l)=>{"use strict";l.d(_,{H:()=>s});var i=l(9751),u=l(4986),g=l(3532),c=l(1165);function s(y=0,E,w=u.P){let I=-1;return null!=E&&((0,g.K)(E)?w=E:I=E),new i.y(h=>{let A=(0,c.q)(y)?+y-w.now():y;A<0&&(A=0);let M=0;return w.schedule(function(){h.closed||(h.next(M++),0<=I?this.schedule(void 0,I):h.complete())},A)})}},5403:(Le,_,l)=>{"use strict";l.d(_,{Q:()=>u});var i=l(930);class u extends i.Lv{constructor(c,s,y,E,w){super(c),this.onFinalize=w,this._next=s?function(I){try{s(I)}catch(h){c.error(h)}}:super._next,this._error=E?function(I){try{E(I)}catch(h){c.error(h)}finally{this.unsubscribe()}}:super._error,this._complete=y?function(){try{y()}catch(I){c.error(I)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var c;const{closed:s}=this;super.unsubscribe(),!s&&(null===(c=this.onFinalize)||void 0===c||c.call(this))}}},5615:(Le,_,l)=>{"use strict";l.d(_,{U:()=>c});var i=l(4482),u=l(8421),g=l(5403);function c(s){return(0,i.e)((y,E)=>{let w=!1,I=null,h=null,A=!1;const M=()=>{if(null==h||h.unsubscribe(),h=null,w){w=!1;const R=I;I=null,E.next(R)}A&&E.complete()},b=()=>{h=null,A&&E.complete()};y.subscribe(new g.Q(E,R=>{w=!0,I=R,h||(0,u.Xf)(s(R)).subscribe(h=new g.Q(E,M,b))},()=>{A=!0,(!w||!h||h.closed)&&E.complete()}))})}},453:(Le,_,l)=>{"use strict";l.d(_,{e:()=>c});var i=l(4986),u=l(5615),g=l(2805);function c(s,y=i.z){return(0,u.U)(()=>(0,g.H)(s,y))}},262:(Le,_,l)=>{"use strict";l.d(_,{K:()=>c});var i=l(8421),u=l(5403),g=l(4482);function c(s){return(0,g.e)((y,E)=>{let h,w=null,I=!1;w=y.subscribe(new u.Q(E,void 0,void 0,A=>{h=(0,i.Xf)(s(A,c(s)(y))),w?(w.unsubscribe(),w=null,h.subscribe(E)):I=!0})),I&&(w.unsubscribe(),w=null,h.subscribe(E))})}},7886:(Le,_,l)=>{"use strict";l.d(_,{u:()=>u});var i=l(8189);function u(){return(0,i.J)(1)}},4351:(Le,_,l)=>{"use strict";l.d(_,{b:()=>g});var i=l(6099),u=l(576);function g(c,s){return(0,u.m)(s)?(0,i.z)(c,s,1):(0,i.z)(c,1)}},8372:(Le,_,l)=>{"use strict";l.d(_,{b:()=>c});var i=l(4986),u=l(4482),g=l(5403);function c(s,y=i.z){return(0,u.e)((E,w)=>{let I=null,h=null,A=null;const M=()=>{if(I){I.unsubscribe(),I=null;const R=h;h=null,w.next(R)}};function b(){const R=A+s,V=y.now();if(V<R)return I=this.schedule(void 0,R-V),void w.add(I);M()}E.subscribe(new g.Q(w,R=>{h=R,A=y.now(),I||(I=y.schedule(b,s),w.add(I))},()=>{M(),w.complete()},void 0,()=>{h=I=null}))})}},4326:(Le,_,l)=>{"use strict";l.d(_,{g:()=>c});var i=l(4986),u=l(1260),g=l(2805);function c(s,y=i.z){const E=(0,g.H)(s,y);return(0,u.j)(()=>E)}},1260:(Le,_,l)=>{"use strict";l.d(_,{j:()=>y});var i=l(1350),u=l(5698),g=l(8502),c=l(9718),s=l(6099);function y(E,w){return w?I=>(0,i.z)(w.pipe((0,u.q)(1),(0,g.l)()),I.pipe(y(E))):(0,s.z)((I,h)=>E(I,h).pipe((0,u.q)(1),(0,c.h)(I)))}},1884:(Le,_,l)=>{"use strict";l.d(_,{x:()=>c});var i=l(4671),u=l(4482),g=l(5403);function c(y,E=i.y){return y=null!=y?y:s,(0,u.e)((w,I)=>{let h,A=!0;w.subscribe(new g.Q(I,M=>{const b=E(M);(A||!y(h,b))&&(A=!1,h=b,I.next(M))}))})}function s(y,E){return y===E}},9300:(Le,_,l)=>{"use strict";l.d(_,{h:()=>g});var i=l(4482),u=l(5403);function g(c,s){return(0,i.e)((y,E)=>{let w=0;y.subscribe(new u.Q(E,I=>c.call(s,I,w++)&&E.next(I)))})}},8746:(Le,_,l)=>{"use strict";l.d(_,{x:()=>u});var i=l(4482);function u(g){return(0,i.e)((c,s)=>{try{c.subscribe(s)}finally{s.add(g)}})}},8502:(Le,_,l)=>{"use strict";l.d(_,{l:()=>c});var i=l(4482),u=l(5403),g=l(5032);function c(){return(0,i.e)((s,y)=>{s.subscribe(new u.Q(y,g.Z))})}},4004:(Le,_,l)=>{"use strict";l.d(_,{U:()=>g});var i=l(4482),u=l(5403);function g(c,s){return(0,i.e)((y,E)=>{let w=0;y.subscribe(new u.Q(E,I=>{E.next(c.call(s,I,w++))}))})}},9718:(Le,_,l)=>{"use strict";l.d(_,{h:()=>u});var i=l(4004);function u(g){return(0,i.U)(()=>g)}},8189:(Le,_,l)=>{"use strict";l.d(_,{J:()=>g});var i=l(6099),u=l(4671);function g(c=1/0){return(0,i.z)(u.y,c)}},2733:(Le,_,l)=>{"use strict";l.d(_,{p:()=>c});var i=l(8421),u=l(9672),g=l(5403);function c(s,y,E,w,I,h,A,M){const b=[];let R=0,V=0,fe=!1;const $=()=>{fe&&!b.length&&!R&&y.complete()},ie=pe=>R<w?we(pe):b.push(pe),we=pe=>{h&&y.next(pe),R++;let _e=!1;(0,i.Xf)(E(pe,V++)).subscribe(new g.Q(y,le=>{null==I||I(le),h?ie(le):y.next(le)},()=>{_e=!0},void 0,()=>{if(_e)try{for(R--;b.length&&R<w;){const le=b.shift();A?(0,u.f)(y,A,()=>we(le)):we(le)}$()}catch(le){y.error(le)}}))};return s.subscribe(new g.Q(y,ie,()=>{fe=!0,$()})),()=>{null==M||M()}}},6099:(Le,_,l)=>{"use strict";l.d(_,{z:()=>y});var i=l(4004),u=l(8421),g=l(4482),c=l(2733),s=l(576);function y(E,w,I=1/0){return(0,s.m)(w)?y((h,A)=>(0,i.U)((M,b)=>w(h,M,A,b))((0,u.Xf)(E(h,A))),I):("number"==typeof w&&(I=w),(0,g.e)((h,A)=>(0,c.p)(h,A,E,I)))}},5363:(Le,_,l)=>{"use strict";l.d(_,{Q:()=>c});var i=l(9672),u=l(4482),g=l(5403);function c(s,y=0){return(0,u.e)((E,w)=>{E.subscribe(new g.Q(w,I=>(0,i.f)(w,s,()=>w.next(I),y),()=>(0,i.f)(w,s,()=>w.complete(),y),I=>(0,i.f)(w,s,()=>w.error(I),y)))})}},3099:(Le,_,l)=>{"use strict";l.d(_,{B:()=>y});var i=l(188),u=l(5698),g=l(6758),c=l(930),s=l(4482);function y(w={}){const{connector:I=(()=>new g.x),resetOnError:h=!0,resetOnComplete:A=!0,resetOnRefCountZero:M=!0}=w;return b=>{let R=null,V=null,fe=null,$=0,ie=!1,we=!1;const pe=()=>{null==V||V.unsubscribe(),V=null},_e=()=>{pe(),R=fe=null,ie=we=!1},le=()=>{const De=R;_e(),null==De||De.unsubscribe()};return(0,s.e)((De,Fe)=>{$++,!we&&!ie&&pe();const Je=fe=null!=fe?fe:I();Fe.add(()=>{$--,0===$&&!we&&!ie&&(V=E(le,M))}),Je.subscribe(Fe),R||(R=new c.Hp({next:ot=>Je.next(ot),error:ot=>{we=!0,pe(),V=E(_e,h,ot),Je.error(ot)},complete:()=>{ie=!0,pe(),V=E(_e,A),Je.complete()}}),(0,i.D)(De).subscribe(R))})(b)}}function E(w,I,...h){return!0===I?(w(),null):!1===I?null:I(...h).pipe((0,u.q)(1)).subscribe(()=>w())}},5684:(Le,_,l)=>{"use strict";l.d(_,{T:()=>u});var i=l(9300);function u(g){return(0,i.h)((c,s)=>g<=s)}},8675:(Le,_,l)=>{"use strict";l.d(_,{O:()=>c});var i=l(1350),u=l(3269),g=l(4482);function c(...s){const y=(0,u.yG)(s);return(0,g.e)((E,w)=>{(y?(0,i.z)(s,E,y):(0,i.z)(s,E)).subscribe(w)})}},9468:(Le,_,l)=>{"use strict";l.d(_,{R:()=>u});var i=l(4482);function u(g,c=0){return(0,i.e)((s,y)=>{y.add(g.schedule(()=>s.subscribe(y),c))})}},3900:(Le,_,l)=>{"use strict";l.d(_,{w:()=>c});var i=l(8421),u=l(4482),g=l(5403);function c(s,y){return(0,u.e)((E,w)=>{let I=null,h=0,A=!1;const M=()=>A&&!I&&w.complete();E.subscribe(new g.Q(w,b=>{null==I||I.unsubscribe();let R=0;const V=h++;(0,i.Xf)(s(b,V)).subscribe(I=new g.Q(w,fe=>w.next(y?y(b,fe,V,R++):fe),()=>{I=null,M()}))},()=>{A=!0,M()}))})}},5698:(Le,_,l)=>{"use strict";l.d(_,{q:()=>c});var i=l(515),u=l(4482),g=l(5403);function c(s){return s<=0?()=>i.E:(0,u.e)((y,E)=>{let w=0;y.subscribe(new g.Q(E,I=>{++w<=s&&(E.next(I),s<=w&&E.complete())}))})}},2722:(Le,_,l)=>{"use strict";l.d(_,{R:()=>s});var i=l(4482),u=l(5403),g=l(8421),c=l(5032);function s(y){return(0,i.e)((E,w)=>{(0,g.Xf)(y).subscribe(new u.Q(w,()=>w.complete(),c.Z)),!w.closed&&E.subscribe(w)})}},8505:(Le,_,l)=>{"use strict";l.d(_,{b:()=>s});var i=l(576),u=l(4482),g=l(5403),c=l(4671);function s(y,E,w){const I=(0,i.m)(y)||E||w?{next:y,error:E,complete:w}:y;return I?(0,u.e)((h,A)=>{var M;null===(M=I.subscribe)||void 0===M||M.call(I);let b=!0;h.subscribe(new g.Q(A,R=>{var V;null===(V=I.next)||void 0===V||V.call(I,R),A.next(R)},()=>{var R;b=!1,null===(R=I.complete)||void 0===R||R.call(I),A.complete()},R=>{var V;b=!1,null===(V=I.error)||void 0===V||V.call(I,R),A.error(R)},()=>{var R,V;b&&(null===(R=I.unsubscribe)||void 0===R||R.call(I)),null===(V=I.finalize)||void 0===V||V.call(I)}))}):c.y}},6340:(Le,_,l)=>{"use strict";l.d(_,{Q:()=>s});var i=l(9751),u=l(2202),g=l(576),c=l(9672);function s(y,E){return new i.y(w=>{let I;return(0,c.f)(w,E,()=>{I=y[u.h](),(0,c.f)(w,E,()=>{let h,A;try{({value:h,done:A}=I.next())}catch(M){return void w.error(M)}A?w.complete():w.next(h)},0,!0)}),()=>(0,g.m)(null==I?void 0:I.return)&&I.return()})}},3762:(Le,_,l)=>{"use strict";l.d(_,{x:()=>we});var i=l(8421),u=l(5363),g=l(9468),y=l(9751),w=l(6340),I=l(9672);function h(pe,_e){if(!pe)throw new Error("Iterable cannot be null");return new y.y(le=>{(0,I.f)(le,_e,()=>{const De=pe[Symbol.asyncIterator]();(0,I.f)(le,_e,()=>{De.next().then(Fe=>{Fe.done?le.complete():le.next(Fe.value)})},0,!0)})})}var A=l(3670),M=l(8239),b=l(1144),R=l(6495),V=l(2206),fe=l(4532),$=l(3260);function we(pe,_e){if(null!=pe){if((0,A.c)(pe))return function c(pe,_e){return(0,i.Xf)(pe).pipe((0,g.R)(_e),(0,u.Q)(_e))}(pe,_e);if((0,b.z)(pe))return function E(pe,_e){return new y.y(le=>{let De=0;return _e.schedule(function(){De===pe.length?le.complete():(le.next(pe[De++]),le.closed||this.schedule())})})}(pe,_e);if((0,M.t)(pe))return function s(pe,_e){return(0,i.Xf)(pe).pipe((0,g.R)(_e),(0,u.Q)(_e))}(pe,_e);if((0,V.D)(pe))return h(pe,_e);if((0,R.T)(pe))return(0,w.Q)(pe,_e);if((0,$.L)(pe))return function ie(pe,_e){return h((0,$.Q)(pe),_e)}(pe,_e)}throw(0,fe.z)(pe)}},4408:(Le,_,l)=>{"use strict";l.d(_,{o:()=>s});var i=l(6921);class u extends i.w0{constructor(E,w){super()}schedule(E,w=0){return this}}const g={setInterval(...y){const{delegate:E}=g;return((null==E?void 0:E.setInterval)||setInterval)(...y)},clearInterval(y){const{delegate:E}=g;return((null==E?void 0:E.clearInterval)||clearInterval)(y)},delegate:void 0};var c=l(8737);class s extends u{constructor(E,w){super(E,w),this.scheduler=E,this.work=w,this.pending=!1}schedule(E,w=0){if(this.closed)return this;this.state=E;const I=this.id,h=this.scheduler;return null!=I&&(this.id=this.recycleAsyncId(h,I,w)),this.pending=!0,this.delay=w,this.id=this.id||this.requestAsyncId(h,this.id,w),this}requestAsyncId(E,w,I=0){return g.setInterval(E.flush.bind(E,this),I)}recycleAsyncId(E,w,I=0){if(null!=I&&this.delay===I&&!1===this.pending)return w;g.clearInterval(w)}execute(E,w){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const I=this._execute(E,w);if(I)return I;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(E,w){let h,I=!1;try{this.work(E)}catch(A){I=!0,h=A||new Error("Scheduled action threw falsy error")}if(I)return this.unsubscribe(),h}unsubscribe(){if(!this.closed){const{id:E,scheduler:w}=this,{actions:I}=w;this.work=this.state=this.scheduler=null,this.pending=!1,(0,c.P)(I,this),null!=E&&(this.id=this.recycleAsyncId(w,E,null)),this.delay=null,super.unsubscribe()}}}},8950:(Le,_,l)=>{"use strict";l.d(_,{v:()=>u});var i=l(6646);class u extends i.b{constructor(c,s=i.b.now){super(c,s),this.actions=[],this._active=!1,this._scheduled=void 0}flush(c){const{actions:s}=this;if(this._active)return void s.push(c);let y;this._active=!0;do{if(y=c.execute(c.state,c.delay))break}while(c=s.shift());if(this._active=!1,y){for(;c=s.shift();)c.unsubscribe();throw y}}}},29:(Le,_,l)=>{"use strict";l.d(_,{r:()=>E,Z:()=>y});var i=l(4408),u=l(3399),c=l(8950);const y=new class s extends c.v{flush(I){this._active=!0;const h=this._scheduled;this._scheduled=void 0;const{actions:A}=this;let M;I=I||A.shift();do{if(M=I.execute(I.state,I.delay))break}while((I=A[0])&&I.id===h&&A.shift());if(this._active=!1,M){for(;(I=A[0])&&I.id===h&&A.shift();)I.unsubscribe();throw M}}}(class g extends i.o{constructor(I,h){super(I,h),this.scheduler=I,this.work=h}requestAsyncId(I,h,A=0){return null!==A&&A>0?super.requestAsyncId(I,h,A):(I.actions.push(this),I._scheduled||(I._scheduled=u.l.requestAnimationFrame(()=>I.flush(void 0))))}recycleAsyncId(I,h,A=0){if(null!=A&&A>0||null==A&&this.delay>0)return super.recycleAsyncId(I,h,A);I.actions.some(M=>M.id===h)||(u.l.cancelAnimationFrame(h),I._scheduled=void 0)}}),E=y},3399:(Le,_,l)=>{"use strict";l.d(_,{l:()=>u});var i=l(6921);const u={schedule(g){let c=requestAnimationFrame,s=cancelAnimationFrame;const{delegate:y}=u;y&&(c=y.requestAnimationFrame,s=y.cancelAnimationFrame);const E=c(w=>{s=void 0,g(w)});return new i.w0(()=>null==s?void 0:s(E))},requestAnimationFrame(...g){const{delegate:c}=u;return((null==c?void 0:c.requestAnimationFrame)||requestAnimationFrame)(...g)},cancelAnimationFrame(...g){const{delegate:c}=u;return((null==c?void 0:c.cancelAnimationFrame)||cancelAnimationFrame)(...g)},delegate:void 0}},3101:(Le,_,l)=>{"use strict";l.d(_,{e:()=>V,E:()=>R});var i=l(4408);let g,u=1;const c={};function s(fe){return fe in c&&(delete c[fe],!0)}const y={setImmediate(fe){const $=u++;return c[$]=!0,g||(g=Promise.resolve()),g.then(()=>s($)&&fe()),$},clearImmediate(fe){s(fe)}},{setImmediate:w,clearImmediate:I}=y,h={setImmediate(...fe){const{delegate:$}=h;return((null==$?void 0:$.setImmediate)||w)(...fe)},clearImmediate(fe){const{delegate:$}=h;return((null==$?void 0:$.clearImmediate)||I)(fe)},delegate:void 0};var M=l(8950);const R=new class b extends M.v{flush($){this._active=!0;const ie=this._scheduled;this._scheduled=void 0;const{actions:we}=this;let pe;$=$||we.shift();do{if(pe=$.execute($.state,$.delay))break}while(($=we[0])&&$.id===ie&&we.shift());if(this._active=!1,pe){for(;($=we[0])&&$.id===ie&&we.shift();)$.unsubscribe();throw pe}}}(class A extends i.o{constructor($,ie){super($,ie),this.scheduler=$,this.work=ie}requestAsyncId($,ie,we=0){return null!==we&&we>0?super.requestAsyncId($,ie,we):($.actions.push(this),$._scheduled||($._scheduled=h.setImmediate($.flush.bind($,void 0))))}recycleAsyncId($,ie,we=0){if(null!=we&&we>0||null==we&&this.delay>0)return super.recycleAsyncId($,ie,we);$.actions.some(pe=>pe.id===ie)||(h.clearImmediate(ie),$._scheduled=void 0)}}),V=R},4986:(Le,_,l)=>{"use strict";l.d(_,{z:()=>g,P:()=>c});var i=l(4408);const g=new(l(8950).v)(i.o),c=g},6063:(Le,_,l)=>{"use strict";l.d(_,{l:()=>i});const i={now:()=>(i.delegate||Date).now(),delegate:void 0}},3410:(Le,_,l)=>{"use strict";l.d(_,{z:()=>i});const i={setTimeout(...u){const{delegate:g}=i;return((null==g?void 0:g.setTimeout)||setTimeout)(...u)},clearTimeout(u){const{delegate:g}=i;return((null==g?void 0:g.clearTimeout)||clearTimeout)(u)},delegate:void 0}},2202:(Le,_,l)=>{"use strict";l.d(_,{h:()=>u});const u=function i(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(Le,_,l)=>{"use strict";l.d(_,{L:()=>i});const i="function"==typeof Symbol&&Symbol.observable||"@@observable"},7448:(Le,_,l)=>{"use strict";l.d(_,{N:()=>u});const u=(0,l(3888).d)(g=>function(){g(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"})},7896:(Le,_,l)=>{"use strict";l.d(_,{B:()=>u});const u=(0,l(3888).d)(g=>function(s){g(this),this.message=s?`${s.length} errors occurred during unsubscription:\n${s.map((y,E)=>`${E+1}) ${y.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=s})},3269:(Le,_,l)=>{"use strict";l.d(_,{jO:()=>c,yG:()=>s,_6:()=>y});var i=l(576),u=l(3532);function g(E){return E[E.length-1]}function c(E){return(0,i.m)(g(E))?E.pop():void 0}function s(E){return(0,u.K)(g(E))?E.pop():void 0}function y(E,w){return"number"==typeof g(E)?E.pop():w}},4742:(Le,_,l)=>{"use strict";l.d(_,{D:()=>s});const{isArray:i}=Array,{getPrototypeOf:u,prototype:g,keys:c}=Object;function s(E){if(1===E.length){const w=E[0];if(i(w))return{args:w,keys:null};if(function y(E){return E&&"object"==typeof E&&u(E)===g}(w)){const I=c(w);return{args:I.map(h=>w[h]),keys:I}}}return{args:E,keys:null}}},8737:(Le,_,l)=>{"use strict";function i(u,g){if(u){const c=u.indexOf(g);0<=c&&u.splice(c,1)}}l.d(_,{P:()=>i})},3888:(Le,_,l)=>{"use strict";function i(u){const c=u(s=>{Error.call(s),s.stack=(new Error).stack});return c.prototype=Object.create(Error.prototype),c.prototype.constructor=c,c}l.d(_,{d:()=>i})},1810:(Le,_,l)=>{"use strict";function i(u,g){return u.reduce((c,s,y)=>(c[s]=g[y],c),{})}l.d(_,{n:()=>i})},2806:(Le,_,l)=>{"use strict";l.d(_,{x:()=>g,O:()=>c});var i=l(2416);let u=null;function g(s){if(i.v.useDeprecatedSynchronousErrorHandling){const y=!u;if(y&&(u={errorThrown:!1,error:null}),s(),y){const{errorThrown:E,error:w}=u;if(u=null,E)throw w}}else s()}function c(s){i.v.useDeprecatedSynchronousErrorHandling&&u&&(u.errorThrown=!0,u.error=s)}},9672:(Le,_,l)=>{"use strict";function i(u,g,c,s=0,y=!1){const E=g.schedule(function(){c(),y?u.add(this.schedule(null,s)):this.unsubscribe()},s);if(u.add(E),!y)return E}l.d(_,{f:()=>i})},4671:(Le,_,l)=>{"use strict";function i(u){return u}l.d(_,{y:()=>i})},1144:(Le,_,l)=>{"use strict";l.d(_,{z:()=>i});const i=u=>u&&"number"==typeof u.length&&"function"!=typeof u},2206:(Le,_,l)=>{"use strict";l.d(_,{D:()=>u});var i=l(576);function u(g){return Symbol.asyncIterator&&(0,i.m)(null==g?void 0:g[Symbol.asyncIterator])}},1165:(Le,_,l)=>{"use strict";function i(u){return u instanceof Date&&!isNaN(u)}l.d(_,{q:()=>i})},576:(Le,_,l)=>{"use strict";function i(u){return"function"==typeof u}l.d(_,{m:()=>i})},3670:(Le,_,l)=>{"use strict";l.d(_,{c:()=>g});var i=l(8822),u=l(576);function g(c){return(0,u.m)(c[i.L])}},6495:(Le,_,l)=>{"use strict";l.d(_,{T:()=>g});var i=l(2202),u=l(576);function g(c){return(0,u.m)(null==c?void 0:c[i.h])}},5191:(Le,_,l)=>{"use strict";l.d(_,{b:()=>g});var i=l(9751),u=l(576);function g(c){return!!c&&(c instanceof i.y||(0,u.m)(c.lift)&&(0,u.m)(c.subscribe))}},8239:(Le,_,l)=>{"use strict";l.d(_,{t:()=>u});var i=l(576);function u(g){return(0,i.m)(null==g?void 0:g.then)}},3260:(Le,_,l)=>{"use strict";l.d(_,{Q:()=>g,L:()=>c});var i=l(655),u=l(576);function g(s){return(0,i.__asyncGenerator)(this,arguments,function*(){const E=s.getReader();try{for(;;){const{value:w,done:I}=yield(0,i.__await)(E.read());if(I)return yield(0,i.__await)(void 0);yield yield(0,i.__await)(w)}}finally{E.releaseLock()}})}function c(s){return(0,u.m)(null==s?void 0:s.getReader)}},3532:(Le,_,l)=>{"use strict";l.d(_,{K:()=>u});var i=l(576);function u(g){return g&&(0,i.m)(g.schedule)}},4482:(Le,_,l)=>{"use strict";l.d(_,{A:()=>u,e:()=>g});var i=l(576);function u(c){return(0,i.m)(null==c?void 0:c.lift)}function g(c){return s=>{if(u(s))return s.lift(function(y){try{return c(y,this)}catch(E){this.error(E)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(Le,_,l)=>{"use strict";l.d(_,{Z:()=>c});var i=l(4004);const{isArray:u}=Array;function c(s){return(0,i.U)(y=>function g(s,y){return u(y)?s(...y):s(y)}(s,y))}},5032:(Le,_,l)=>{"use strict";function i(){}l.d(_,{Z:()=>i})},9635:(Le,_,l)=>{"use strict";l.d(_,{z:()=>u,U:()=>g});var i=l(4671);function u(...c){return g(c)}function g(c){return 0===c.length?i.y:1===c.length?c[0]:function(y){return c.reduce((E,w)=>w(E),y)}}},7849:(Le,_,l)=>{"use strict";l.d(_,{h:()=>g});var i=l(2416),u=l(3410);function g(c){u.z.setTimeout(()=>{const{onUnhandledError:s}=i.v;if(!s)throw c;s(c)})}},4532:(Le,_,l)=>{"use strict";function i(u){return new TypeError(`You provided ${null!==u&&"object"==typeof u?"an invalid object":`'${u}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}l.d(_,{z:()=>i})},3642:(Le,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.generateRxMethod=_.generateMethodSignature=_.generateErrorClass=_.generateClass=_.generateErrorType=_.generateEnum=_.generateJsonRepresentation=_.mangle=_.generateSwiftTypeName=void 0;const i=l(6676);function u(b){switch(b.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`${u(b.base)}?`;case i.ArrayType:return`[${u(b.base)}]`;case i.StructType:case i.EnumType:return`API.${b.name}`;case i.TypeReference:return u(b.type);default:throw new Error(`BUG: generateSwiftTypeName with ${b.constructor.name}`)}}function g(b){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(b)?`_${b}`:b}function c(b,R){switch(b.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`${R}`;case i.OptionalType:return`${R} == nil ? nil : ${c(b.base,`${R}!`)}`;case i.DatePrimitiveType:return`SdkgenHelper.encodeDate(date: ${R})`;case i.DateTimePrimitiveType:return`SdkgenHelper.encodeDateTime(date: ${R})`;case i.EnumType:return`${R}.rawValue`;case i.TypeReference:return`${c(b.type,`${R}`)}`;case i.StructType:return`${R}.toJSON()`;case i.ArrayType:return`${R}.map({ return ${c(b.base,"$0")} })`;case i.JsonPrimitiveType:return`try? ${R}.toJson()`;case i.VoidPrimitiveType:return"nil";case i.BytesPrimitiveType:return`${R}.base64EncodedString()`;default:throw new Error(`BUG: No result found for generateJsonRepresentation with ${b.constructor.name}`)}}_.generateSwiftTypeName=u,_.mangle=g,_.generateJsonRepresentation=c,_.generateEnum=function s(b){let R=` public enum ${b.name}: String, Codable {\n`;return R+=b.values.map(V=>` case ${g(V.value)} = "${V.value}"`).join("\n"),R+="\n }\n",R},_.generateErrorType=function y(b){let R=" public enum ErrorType: String, Codable {\n";return R+=b.map(V=>` case ${g(V)} = "${V}"`).join("\n"),R+="\n }\n",R},_.generateClass=function I(b){return` public struct ${b.name}: Codable {\n${b.fields.map(R=>` var ${g(R.name)}: ${u(R.type)}`).join("\n")}\n\n${function E(b){let R=" init(";return R+=b.fields.map(V=>`${g(V.name)}: ${u(V.type)}`).join(", "),R+=") {\n",R+=b.fields.map(V=>` self.${g(V.name)} = ${g(V.name)}`).join("\n"),R+="\n }\n",R}(b)}\n${function w(b){let R=" func toJSON() -> [String: Any] {\n";return R+=" var json = [String: Any]()\n",R+=b.fields.map(V=>` json["${g(V.name)}"] = ${c(V.type,V.name)}`).join("\n"),R+="\n return json",R+="\n }\n",R}(b)}\n }\n`},_.generateErrorClass=function h(){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"},_.generateMethodSignature=function A(b){const R=b.args.map(V=>`${g(V.name)}: ${u(V.type)}`).concat(["timeoutSeconds: Double?",`callback: ((_ result: ${b.returnType instanceof i.VoidPrimitiveType?"API.Result<API.NoReply>":`API.Result<${u(b.returnType)}>`}) -> Void)?`]);return` func ${g(b.name)}(${R.join(", ")})`},_.generateRxMethod=function M(b){const R=b.args.map(fe=>`${g(fe.name)}: ${u(fe.type)}`).concat(["timeoutSeconds: Double? = nil"]);let V=` static func ${g(b.name)}(${R.join(", ")}) -> ${b.returnType instanceof i.VoidPrimitiveType?"Observable<API.Result<API.NoReply>>":`Observable<API.Result<${u(b.returnType)}>>`} {\n`;return V+=" return Observable.create { observer -> Disposable in\n",V+=` API.calls.${g(b.name)}(${b.args.map(fe=>`${g(fe.name)}: ${g(fe.name)}`).concat(["timeoutSeconds: timeoutSeconds"]).join(", ")}) { result in \n`,V+=" observer.on(.next(result))\n",V+=" observer.on(.completed)\n",V+=" }\n",V+=" return Disposables.create()\n",V+=" }\n",V+=" }\n",V}},7295:function(Le,_,l){"use strict";var i=this&&this.__createBinding||(Object.create?function(g,c,s,y){void 0===y&&(y=s),Object.defineProperty(g,y,{enumerable:!0,get:function(){return c[s]}})}:function(g,c,s,y){void 0===y&&(y=s),g[y]=c[s]}),u=this&&this.__exportStar||function(g,c){for(var s in g)"default"!==s&&!Object.prototype.hasOwnProperty.call(c,s)&&i(c,g,s)};Object.defineProperty(_,"__esModule",{value:!0}),u(l(7636),_)},7636:(Le,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.generateSwiftClientSource=void 0;const i=l(6676),u=l(3642);_.generateSwiftClientSource=function g(c,s){let y="import Foundation\nimport SdkgenRuntime\n";y+=s?"import RxSwift\nimport RxCocoa\n\n":"\n",y+="protocol APICallsProtocol {\n",y+=c.operations.filter(I=>I.annotations.every(h=>!(h instanceof i.HiddenAnnotation))).map(I=>`${(0,u.generateMethodSignature)(I)}`).join("\n"),y+="\n}\n\n",y+='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 I of c.enumTypes)y+=(0,u.generateEnum)(I),y+="\n";for(const I of c.structTypes)y+=(0,u.generateClass)(I),y+="\n";const E=[],w=new i.ErrorNode("Connection",new i.VoidPrimitiveType);E.push(w.name);for(const I of c.errors)E.push(I.name);return E.length>0&&(y+=(0,u.generateErrorType)(E),y+="\n"),y+=(0,u.generateErrorClass)(),y+="\n",y+=" public enum Result<T> {\n case success(T)\n case failure(Failure)\n }\n\n",y+=" public class Calls: SdkgenHttpClient, APICallsProtocol {\n\n override init(baseUrl: String) {\n super.init(baseUrl: baseUrl)\n }\n\n",y+=c.operations.filter(I=>I.annotations.every(h=>!(h instanceof i.HiddenAnnotation))).map(I=>{let h="";return h+=` ${(0,u.generateMethodSignature)(I)} {\n`,I.args.length>0?(h+=" var jsonArgs = [String: Any]()\n",h+=I.args.map(A=>` jsonArgs["${(0,u.mangle)(A.name)}"] = ${(0,u.generateJsonRepresentation)(A.type,(0,u.mangle)(A.name))}`).join("\n")):h+=" let jsonArgs = [String: Any]()",h+="\n\n",h+=` request("${I.name}", jsonArgs, timeoutSeconds, completion: { (value: ${I.returnType instanceof i.VoidPrimitiveType?"API.NoReply":(0,u.generateSwiftTypeName)(I.returnType)}) in\n`,h+=" callback?(API.Result.success(value))\n",h+=" }, onError: { error in\n",h+=" callback?(API.Result.failure(API.Failure(message: error.message, code: error.code, type: error.type)))\n",h+=" })",h+="\n }\n",h}).join("\n"),y+=" }\n",y+="}\n",s&&(y+="\n",y+="extension API: ReactiveCompatible {}\n\n",y+="extension Reactive where Base: API {\n",y+=c.operations.filter(I=>I.annotations.every(h=>!(h instanceof i.HiddenAnnotation))).map(I=>`${(0,u.generateRxMethod)(I)}`).join("\n"),y+="}\n"),y}},8173:(Le,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.generateBrowserClientSource=void 0;const i=l(6676),u=l(5596);_.generateBrowserClientSource=function g(c){let s="";s+=`/* eslint-disable */\nimport { SdkgenError${c.errors.some(E=>!(E.dataType instanceof i.VoidPrimitiveType))?", SdkgenErrorWithData":""}, SdkgenHttpClient } from "@sdkgen/browser-runtime";\n\n`;for(const E of c.enumTypes)s+=(0,u.generateTypescriptEnum)(E),s+="\n";for(const E of c.structTypes)s+=(0,u.generateTypescriptInterface)(E,!0),s+="\n";for(const E of c.errors)s+=(0,u.generateTypescriptErrorClass)(E,!0),s+="\n";return s+=`export class ApiClient extends SdkgenHttpClient {\n constructor(baseUrl: string) {\n super(baseUrl, astJson, errClasses);\n }\n${c.operations.filter(E=>E.annotations.every(w=>!(w instanceof i.HiddenAnnotation))).map(E=>`\n ${E.name}(args${0===E.args.length?"?":""}: {${E.args.map(w=>`${w.name}${w.type.name.endsWith("?")?"?":""}: ${(0,u.generateTypescriptTypeName)(w.type,!0)}`).join(", ")}}): Promise<${(0,u.generateTypescriptTypeName)(E.returnType,!0)}> { return this.makeRequest("${E.name}", args || {}); }`).join("")}\n}\n\n`,s+=`const errClasses = {\n${c.errors.map(E=>` ${E.name}`).join(",\n")}\n};\n\n`,s+=`const astJson = ${JSON.stringify((0,i.astToJson)(c),null,4).replace(/"(?<key>\w+)":/gu,"$<key>:")} as const;\n`,s}},5596:(Le,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.clearForLogging=_.generateTypescriptErrorClass=_.generateTypescriptEnum=_.generateTypescriptInterface=_.generateTypescriptTypeName=void 0;const i=l(6676);function u(E,w){switch(E.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 w?"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`${u(E.base,w)} | null`;case i.ArrayType:{const{base:I}=E,h=u(I,w);return I instanceof i.OptionalType?`(${h})[]`:`${h}[]`}case i.StructType:case i.EnumType:return E.name;case i.TypeReference:return u(E.type,w);default:throw new Error(`BUG: generateTypescriptTypeName with ${E.constructor.name}`)}}_.generateTypescriptTypeName=u,_.generateTypescriptInterface=function g(E,w){return`export interface ${E.name} {\n${E.fields.map(I=>` ${I.name}: ${u(I.type,w)}`).join("\n")}\n}\n`},_.generateTypescriptEnum=function c(E){return E.hasStructValues?`export type ${E.name} = ${E.values.map(w=>w.struct?`({tag: "${w.value}"} & ${w.struct.name})`:`{tag: "${w.value}"}`).join(" | ")};\n`:`export type ${E.name} = ${E.values.map(w=>`"${w.value}"`).join(" | ")};\n`},_.generateTypescriptErrorClass=function s(E,w){return`export class ${E.name} extends ${E.dataType instanceof i.VoidPrimitiveType?"SdkgenError":`SdkgenErrorWithData<${u(E.dataType,w)}>`} {}\n`},_.clearForLogging=function y(E,w){switch(w.constructor){case i.TypeReference:return y(E,w.type);case i.OptionalType:{const I=y(E,w.base);return I?`if (${E} !== null && ${E} !== undefined) { ${I} }`:""}case i.ArrayType:{const I=y("el",w.base);return I?`for (const el of ${E}) { ${I} }`:""}case i.StructType:{const I=[];for(const h of w.fields)if(h.secret)I.push(`${E}.${h.name} = "<secret>";`);else{const A=y(`${E}.${h.name}`,h.type);A&&I.push(A)}return I.join(" ")}default:return""}}},2911:function(Le,_,l){"use strict";var i=this&&this.__createBinding||(Object.create?function(g,c,s,y){void 0===y&&(y=s),Object.defineProperty(g,y,{enumerable:!0,get:function(){return c[s]}})}:function(g,c,s,y){void 0===y&&(y=s),g[y]=c[s]}),u=this&&this.__exportStar||function(g,c){for(var s in g)"default"!==s&&!Object.prototype.hasOwnProperty.call(c,s)&&i(c,g,s)};Object.defineProperty(_,"__esModule",{value:!0}),u(l(8173),_),u(l(7538),_),u(l(1727),_),u(l(615),_)},7538:(Le,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.generateTypescriptInterfaces=void 0;const i=l(5596);_.generateTypescriptInterfaces=function u(g){let c="";for(const s of g.enumTypes)c+=(0,i.generateTypescriptEnum)(s);c+="\n";for(const s of g.structTypes)c+=(0,i.generateTypescriptInterface)(s,!1),c+="\n";return c}},1727:(Le,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.generateNodeClientSource=void 0;const i=l(6676),u=l(5596);_.generateNodeClientSource=function g(c){let s="";const y=c.errors.some(w=>!(w.dataType instanceof i.VoidPrimitiveType));s+=`/* eslint-disable */\nimport { Context, Fatal${c.errors.filter(w=>"Fatal"!==w.name).some(w=>w.dataType instanceof i.VoidPrimitiveType)?", SdkgenError":""}${y?", SdkgenErrorWithData":""}, SdkgenHttpClient } from "@sdkgen/node-runtime";\nimport { PartialDeep } from "type-fest";\nexport { Fatal } from "@sdkgen/node-runtime";\n\n`;for(const w of c.enumTypes)s+=(0,u.generateTypescriptEnum)(w),s+="\n";for(const w of c.structTypes)s+=(0,u.generateTypescriptInterface)(w,!1),s+="\n";for(const w of c.errors)"Fatal"!==w.name&&(s+=(0,u.generateTypescriptErrorClass)(w,!1),s+="\n");return s+=`export class ApiClient extends SdkgenHttpClient {\n constructor(baseUrl: string) {\n super(baseUrl, astJson, errClasses);\n }\n${c.operations.filter(w=>w.annotations.every(I=>!(I instanceof i.HiddenAnnotation))).map(w=>`\n ${w.name}(ctx: PartialDeep<Context> | null, args: {${w.args.map(I=>`${I.name}${I.type.name.endsWith("?")?"?":""}: ${(0,u.generateTypescriptTypeName)(I.type,!1)}`).join(", ")}}): Promise<${(0,u.generateTypescriptTypeName)(w.returnType,!1)}> { return this.makeRequest(ctx, "${w.name}", args); }`).join("")}\n}\n\n`,s+=`const errClasses = {\n${c.errors.map(w=>` ${w.name}`).join(",\n")}\n};\n\n`,s+=`const astJson = ${JSON.stringify((0,i.astToJson)(c),null,4).replace(/"(?<key>\w+)":/gu,"$<key>:")} as const;\n`,s}},615:(Le,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.generateNodeServerSource=void 0;const i=l(6676),u=l(5596);_.generateNodeServerSource=function g(c){let s="";const y=c.errors.some(w=>!(w.dataType instanceof i.VoidPrimitiveType));s+=`/* eslint-disable */\nimport { BaseApiConfig, Context, Fatal${c.errors.filter(w=>"Fatal"!==w.name).some(w=>w.dataType instanceof i.VoidPrimitiveType)?", SdkgenError":""}${y?", SdkgenErrorWithData":""} } from "@sdkgen/node-runtime";\nexport { Fatal } from "@sdkgen/node-runtime";\n\n`;for(const w of c.enumTypes)s+=(0,u.generateTypescriptEnum)(w),s+="\n";for(const w of c.structTypes)s+=(0,u.generateTypescriptInterface)(w,!1),s+="\n";for(const w of c.errors)"Fatal"!==w.name&&(s+=(0,u.generateTypescriptErrorClass)(w,!1),s+="\n");return s+=`export class ApiConfig<ExtraContextT> extends BaseApiConfig<ExtraContextT> {\n fn!: {${c.operations.map(w=>`\n ${w.name}: (ctx: Context & ExtraContextT, args: {${w.args.map(I=>`${I.name}: ${(0,u.generateTypescriptTypeName)(I.type,!1)}`).join(", ")}}) => Promise<${(0,u.generateTypescriptTypeName)(w.returnType,!1)}>`).join("")}\n }\n\n astJson = ${JSON.stringify((0,i.astToJson)(c),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 _(i,u,g,c,s,y,E){try{var w=i[y](E),I=w.value}catch(h){return void g(h)}w.done?u(I):Promise.resolve(I).then(c,s)}Le.exports=function l(i){return function(){var u=this,g=arguments;return new Promise(function(c,s){var y=i.apply(u,g);function E(I){_(y,c,s,E,w,"next",I)}function w(I){_(y,c,s,E,w,"throw",I)}E(void 0)})}},Le.exports.default=Le.exports,Le.exports.__esModule=!0},655:(Le,_,l)=>{"use strict";l.r(_),l.d(_,{__extends:()=>u,__assign:()=>g,__rest:()=>c,__decorate:()=>s,__param:()=>y,__metadata:()=>E,__awaiter:()=>w,__generator:()=>I,__createBinding:()=>h,__exportStar:()=>A,__values:()=>M,__read:()=>b,__spread:()=>R,__spreadArrays:()=>V,__spreadArray:()=>fe,__await:()=>$,__asyncGenerator:()=>ie,__asyncDelegator:()=>we,__asyncValues:()=>pe,__makeTemplateObject:()=>_e,__importStar:()=>De,__importDefault:()=>Fe,__classPrivateFieldGet:()=>Je,__classPrivateFieldSet:()=>ot});var i=function(q,Pe){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(J,ce){J.__proto__=ce}||function(J,ce){for(var Se in ce)Object.prototype.hasOwnProperty.call(ce,Se)&&(J[Se]=ce[Se])})(q,Pe)};function u(q,Pe){if("function"!=typeof Pe&&null!==Pe)throw new TypeError("Class extends value "+String(Pe)+" is not a constructor or null");function J(){this.constructor=q}i(q,Pe),q.prototype=null===Pe?Object.create(Pe):(J.prototype=Pe.prototype,new J)}var g=function(){return g=Object.assign||function(Pe){for(var J,ce=1,Se=arguments.length;ce<Se;ce++)for(var re in J=arguments[ce])Object.prototype.hasOwnProperty.call(J,re)&&(Pe[re]=J[re]);return Pe},g.apply(this,arguments)};function c(q,Pe){var J={};for(var ce in q)Object.prototype.hasOwnProperty.call(q,ce)&&Pe.indexOf(ce)<0&&(J[ce]=q[ce]);if(null!=q&&"function"==typeof Object.getOwnPropertySymbols){var Se=0;for(ce=Object.getOwnPropertySymbols(q);Se<ce.length;Se++)Pe.indexOf(ce[Se])<0&&Object.prototype.propertyIsEnumerable.call(q,ce[Se])&&(J[ce[Se]]=q[ce[Se]])}return J}function s(q,Pe,J,ce){var Ke,Se=arguments.length,re=Se<3?Pe:null===ce?ce=Object.getOwnPropertyDescriptor(Pe,J):ce;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)re=Reflect.decorate(q,Pe,J,ce);else for(var ge=q.length-1;ge>=0;ge--)(Ke=q[ge])&&(re=(Se<3?Ke(re):Se>3?Ke(Pe,J,re):Ke(Pe,J))||re);return Se>3&&re&&Object.defineProperty(Pe,J,re),re}function y(q,Pe){return function(J,ce){Pe(J,ce,q)}}function E(q,Pe){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(q,Pe)}function w(q,Pe,J,ce){return new(J||(J=Promise))(function(re,Ke){function ge(He){try{ye(ce.next(He))}catch(dt){Ke(dt)}}function it(He){try{ye(ce.throw(He))}catch(dt){Ke(dt)}}function ye(He){He.done?re(He.value):function Se(re){return re instanceof J?re:new J(function(Ke){Ke(re)})}(He.value).then(ge,it)}ye((ce=ce.apply(q,Pe||[])).next())})}function I(q,Pe){var ce,Se,re,Ke,J={label:0,sent:function(){if(1&re[0])throw re[1];return re[1]},trys:[],ops:[]};return Ke={next:ge(0),throw:ge(1),return:ge(2)},"function"==typeof Symbol&&(Ke[Symbol.iterator]=function(){return this}),Ke;function ge(ye){return function(He){return function it(ye){if(ce)throw new TypeError("Generator is already executing.");for(;J;)try{if(ce=1,Se&&(re=2&ye[0]?Se.return:ye[0]?Se.throw||((re=Se.return)&&re.call(Se),0):Se.next)&&!(re=re.call(Se,ye[1])).done)return re;switch(Se=0,re&&(ye=[2&ye[0],re.value]),ye[0]){case 0:case 1:re=ye;break;case 4:return J.label++,{value:ye[1],done:!1};case 5:J.label++,Se=ye[1],ye=[0];continue;case 7:ye=J.ops.pop(),J.trys.pop();continue;default:if(!(re=(re=J.trys).length>0&&re[re.length-1])&&(6===ye[0]||2===ye[0])){J=0;continue}if(3===ye[0]&&(!re||ye[1]>re[0]&&ye[1]<re[3])){J.label=ye[1];break}if(6===ye[0]&&J.label<re[1]){J.label=re[1],re=ye;break}if(re&&J.label<re[2]){J.label=re[2],J.ops.push(ye);break}re[2]&&J.ops.pop(),J.trys.pop();continue}ye=Pe.call(q,J)}catch(He){ye=[6,He],Se=0}finally{ce=re=0}if(5&ye[0])throw ye[1];return{value:ye[0]?ye[1]:void 0,done:!0}}([ye,He])}}}var h=Object.create?function(q,Pe,J,ce){void 0===ce&&(ce=J),Object.defineProperty(q,ce,{enumerable:!0,get:function(){return Pe[J]}})}:function(q,Pe,J,ce){void 0===ce&&(ce=J),q[ce]=Pe[J]};function A(q,Pe){for(var J in q)"default"!==J&&!Object.prototype.hasOwnProperty.call(Pe,J)&&h(Pe,q,J)}function M(q){var Pe="function"==typeof Symbol&&Symbol.iterator,J=Pe&&q[Pe],ce=0;if(J)return J.call(q);if(q&&"number"==typeof q.length)return{next:function(){return q&&ce>=q.length&&(q=void 0),{value:q&&q[ce++],done:!q}}};throw new TypeError(Pe?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(q,Pe){var J="function"==typeof Symbol&&q[Symbol.iterator];if(!J)return q;var Se,Ke,ce=J.call(q),re=[];try{for(;(void 0===Pe||Pe-- >0)&&!(Se=ce.next()).done;)re.push(Se.value)}catch(ge){Ke={error:ge}}finally{try{Se&&!Se.done&&(J=ce.return)&&J.call(ce)}finally{if(Ke)throw Ke.error}}return re}function R(){for(var q=[],Pe=0;Pe<arguments.length;Pe++)q=q.concat(b(arguments[Pe]));return q}function V(){for(var q=0,Pe=0,J=arguments.length;Pe<J;Pe++)q+=arguments[Pe].length;var ce=Array(q),Se=0;for(Pe=0;Pe<J;Pe++)for(var re=arguments[Pe],Ke=0,ge=re.length;Ke<ge;Ke++,Se++)ce[Se]=re[Ke];return ce}function fe(q,Pe,J){if(J||2===arguments.length)for(var re,ce=0,Se=Pe.length;ce<Se;ce++)(re||!(ce in Pe))&&(re||(re=Array.prototype.slice.call(Pe,0,ce)),re[ce]=Pe[ce]);return q.concat(re||Array.prototype.slice.call(Pe))}function $(q){return this instanceof $?(this.v=q,this):new $(q)}function ie(q,Pe,J){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Se,ce=J.apply(q,Pe||[]),re=[];return Se={},Ke("next"),Ke("throw"),Ke("return"),Se[Symbol.asyncIterator]=function(){return this},Se;function Ke(Et){ce[Et]&&(Se[Et]=function(ke){return new Promise(function(Ze,Z){re.push([Et,ke,Ze,Z])>1||ge(Et,ke)})})}function ge(Et,ke){try{!function it(Et){Et.value instanceof $?Promise.resolve(Et.value.v).then(ye,He):dt(re[0][2],Et)}(ce[Et](ke))}catch(Ze){dt(re[0][3],Ze)}}function ye(Et){ge("next",Et)}function He(Et){ge("throw",Et)}function dt(Et,ke){Et(ke),re.shift(),re.length&&ge(re[0][0],re[0][1])}}function we(q){var Pe,J;return Pe={},ce("next"),ce("throw",function(Se){throw Se}),ce("return"),Pe[Symbol.iterator]=function(){return this},Pe;function ce(Se,re){Pe[Se]=q[Se]?function(Ke){return(J=!J)?{value:$(q[Se](Ke)),done:"return"===Se}:re?re(Ke):Ke}:re}}function pe(q){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var J,Pe=q[Symbol.asyncIterator];return Pe?Pe.call(q):(q=M(q),J={},ce("next"),ce("throw"),ce("return"),J[Symbol.asyncIterator]=function(){return this},J);function ce(re){J[re]=q[re]&&function(Ke){return new Promise(function(ge,it){!function Se(re,Ke,ge,it){Promise.resolve(it).then(function(ye){re({value:ye,done:ge})},Ke)}(ge,it,(Ke=q[re](Ke)).done,Ke.value)})}}}function _e(q,Pe){return Object.defineProperty?Object.defineProperty(q,"raw",{value:Pe}):q.raw=Pe,q}var le=Object.create?function(q,Pe){Object.defineProperty(q,"default",{enumerable:!0,value:Pe})}:function(q,Pe){q.default=Pe};function De(q){if(q&&q.__esModule)return q;var Pe={};if(null!=q)for(var J in q)"default"!==J&&Object.prototype.hasOwnProperty.call(q,J)&&h(Pe,q,J);return le(Pe,q),Pe}function Fe(q){return q&&q.__esModule?q:{default:q}}function Je(q,Pe,J,ce){if("a"===J&&!ce)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof Pe?q!==Pe||!ce:!Pe.has(q))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===J?ce:"a"===J?ce.call(q):ce?ce.value:Pe.get(q)}function ot(q,Pe,J,ce,Se){if("m"===ce)throw new TypeError("Private method is not writable");if("a"===ce&&!Se)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof Pe?q!==Pe||!Se:!Pe.has(q))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===ce?Se.call(q,J):Se?Se.value=J:Pe.set(q,J),J}},1777:(Le,_,l)=>{"use strict";l.d(_,{l3:()=>g,_j:()=>i,LC:()=>u,ZN:()=>ie,jt:()=>s,F4:()=>h,vP:()=>E,SB:()=>I,oB:()=>w,eR:()=>A,X$:()=>c,ZE:()=>we,k1:()=>pe});class i{}class u{}const g="*";function c(_e,le){return{type:7,name:_e,definitions:le,options:{}}}function s(_e,le=null){return{type:4,styles:le,timings:_e}}function E(_e,le=null){return{type:2,steps:_e,options:le}}function w(_e){return{type:6,styles:_e,offset:null}}function I(_e,le,De){return{type:0,name:_e,styles:le,options:De}}function h(_e){return{type:5,steps:_e}}function A(_e,le,De=null){return{type:1,expr:_e,animation:le,options:De}}function $(_e){Promise.resolve(null).then(_e)}class ie{constructor(le=0,De=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=le+De}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(le=>le()),this._onDoneFns=[])}onStart(le){this._onStartFns.push(le)}onDone(le){this._onDoneFns.push(le)}onDestroy(le){this._onDestroyFns.push(le)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){$(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(le=>le()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(le=>le()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(le){this._position=this.totalTime?le*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(le){const De="start"==le?this._onStartFns:this._onDoneFns;De.forEach(Fe=>Fe()),De.length=0}}class we{constructor(le){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=le;let De=0,Fe=0,Je=0;const ot=this.players.length;0==ot?$(()=>this._onFinish()):this.players.forEach(q=>{q.onDone(()=>{++De==ot&&this._onFinish()}),q.onDestroy(()=>{++Fe==ot&&this._onDestroy()}),q.onStart(()=>{++Je==ot&&this._onStart()})}),this.totalTime=this.players.reduce((q,Pe)=>Math.max(q,Pe.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(le=>le()),this._onDoneFns=[])}init(){this.players.forEach(le=>le.init())}onStart(le){this._onStartFns.push(le)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(le=>le()),this._onStartFns=[])}onDone(le){this._onDoneFns.push(le)}onDestroy(le){this._onDestroyFns.push(le)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(le=>le.play())}pause(){this.players.forEach(le=>le.pause())}restart(){this.players.forEach(le=>le.restart())}finish(){this._onFinish(),this.players.forEach(le=>le.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(le=>le.destroy()),this._onDestroyFns.forEach(le=>le()),this._onDestroyFns=[])}reset(){this.players.forEach(le=>le.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(le){const De=le*this.totalTime;this.players.forEach(Fe=>{const Je=Fe.totalTime?Math.min(1,De/Fe.totalTime):1;Fe.setPosition(Je)})}getPosition(){const le=this.players.reduce((De,Fe)=>null===De||Fe.totalTime>De.totalTime?Fe:De,null);return null!=le?le.getPosition():0}beforeDestroy(){this.players.forEach(le=>{le.beforeDestroy&&le.beforeDestroy()})}triggerCallback(le){const De="start"==le?this._onStartFns:this._onDoneFns;De.forEach(Fe=>Fe()),De.length=0}}const pe="!"},5664:(Le,_,l)=>{"use strict";l.d(_,{rt:()=>oe,$s:()=>J,kH:()=>Mt,Em:()=>ge,tE:()=>Wt,qV:()=>Ot,qm:()=>yn,ic:()=>ye,X6:()=>Te,yG:()=>be});var i=l(9808),u=l(5e3),g=l(6758),c=l(6921),s=l(1135),y=l(9646),E=l(1159),w=l(8505),I=l(8372),h=l(9300),A=l(4004),M=l(5698),b=l(5684),R=l(1884),V=l(2722),fe=l(3191),$=l(925),ie=l(7144);function le(z,m){return(z.getAttribute(m)||"").match(/\S+/g)||[]}const De="cdk-describedby-message-container",Fe="cdk-describedby-message",Je="cdk-describedby-host";let ot=0;const q=new Map;let Pe=null,J=(()=>{class z{constructor(C){this._document=C}describe(C,T,K){if(!this._canBeDescribed(C,T))return;const qe=ce(T,K);"string"!=typeof T?(Se(T),q.set(qe,{messageElement:T,referenceCount:0})):q.has(qe)||this._createMessageElement(T,K),this._isElementDescribedByMessage(C,qe)||this._addMessageReference(C,qe)}removeDescription(C,T,K){if(!T||!this._isElementNode(C))return;const qe=ce(T,K);if(this._isElementDescribedByMessage(C,qe)&&this._removeMessageReference(C,qe),"string"==typeof T){const Dt=q.get(qe);Dt&&0===Dt.referenceCount&&this._deleteMessageElement(qe)}Pe&&0===Pe.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const C=this._document.querySelectorAll(`[${Je}]`);for(let T=0;T<C.length;T++)this._removeCdkDescribedByReferenceIds(C[T]),C[T].removeAttribute(Je);Pe&&this._deleteMessagesContainer(),q.clear()}_createMessageElement(C,T){const K=this._document.createElement("div");Se(K),K.textContent=C,T&&K.setAttribute("role",T),this._createMessagesContainer(),Pe.appendChild(K),q.set(ce(C,T),{messageElement:K,referenceCount:0})}_deleteMessageElement(C){var T;const K=q.get(C);null===(T=null==K?void 0:K.messageElement)||void 0===T||T.remove(),q.delete(C)}_createMessagesContainer(){if(!Pe){const C=this._document.getElementById(De);null==C||C.remove(),Pe=this._document.createElement("div"),Pe.id=De,Pe.style.visibility="hidden",Pe.classList.add("cdk-visually-hidden"),this._document.body.appendChild(Pe)}}_deleteMessagesContainer(){Pe&&(Pe.remove(),Pe=null)}_removeCdkDescribedByReferenceIds(C){const T=le(C,"aria-describedby").filter(K=>0!=K.indexOf(Fe));C.setAttribute("aria-describedby",T.join(" "))}_addMessageReference(C,T){const K=q.get(T);(function pe(z,m,C){const T=le(z,m);T.some(K=>K.trim()==C.trim())||(T.push(C.trim()),z.setAttribute(m,T.join(" ")))})(C,"aria-describedby",K.messageElement.id),C.setAttribute(Je,""),K.referenceCount++}_removeMessageReference(C,T){const K=q.get(T);K.referenceCount--,function _e(z,m,C){const K=le(z,m).filter(qe=>qe!=C.trim());K.length?z.setAttribute(m,K.join(" ")):z.removeAttribute(m)}(C,"aria-describedby",K.messageElement.id),C.removeAttribute(Je)}_isElementDescribedByMessage(C,T){const K=le(C,"aria-describedby"),qe=q.get(T),Dt=qe&&qe.messageElement.id;return!!Dt&&-1!=K.indexOf(Dt)}_canBeDescribed(C,T){if(!this._isElementNode(C))return!1;if(T&&"object"==typeof T)return!0;const K=null==T?"":`${T}`.trim(),qe=C.getAttribute("aria-label");return!(!K||qe&&qe.trim()===K)}_isElementNode(C){return C.nodeType===this._document.ELEMENT_NODE}}return z.\u0275fac=function(C){return new(C||z)(u.\u0275\u0275inject(i.DOCUMENT))},z.\u0275prov=u.\u0275\u0275defineInjectable({token:z,factory:z.\u0275fac,providedIn:"root"}),z})();function ce(z,m){return"string"==typeof z?`${m||""}/${z}`:z}function Se(z){z.id||(z.id=`${Fe}-${ot++}`)}class ge extends class re{constructor(m){this._items=m,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new g.x,this._typeaheadSubscription=c.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=C=>C.disabled,this._pressedLetters=[],this.tabOut=new g.x,this.change=new g.x,m instanceof u.QueryList&&m.changes.subscribe(C=>{if(this._activeItem){const K=C.toArray().indexOf(this._activeItem);K>-1&&K!==this._activeItemIndex&&(this._activeItemIndex=K)}})}skipPredicate(m){return this._skipPredicateFn=m,this}withWrap(m=!0){return this._wrap=m,this}withVerticalOrientation(m=!0){return this._vertical=m,this}withHorizontalOrientation(m){return this._horizontal=m,this}withAllowedModifierKeys(m){return this._allowedModifierKeys=m,this}withTypeAhead(m=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,w.b)(C=>this._pressedLetters.push(C)),(0,I.b)(m),(0,h.h)(()=>this._pressedLetters.length>0),(0,A.U)(()=>this._pressedLetters.join(""))).subscribe(C=>{const T=this._getItemsArray();for(let K=1;K<T.length+1;K++){const qe=(this._activeItemIndex+K)%T.length,Dt=T[qe];if(!this._skipPredicateFn(Dt)&&0===Dt.getLabel().toUpperCase().trim().indexOf(C)){this.setActiveItem(qe);break}}this._pressedLetters=[]}),this}withHomeAndEnd(m=!0){return this._homeAndEnd=m,this}setActiveItem(m){const C=this._activeItem;this.updateActiveItem(m),this._activeItem!==C&&this.change.next(this._activeItemIndex)}onKeydown(m){const C=m.keyCode,K=["altKey","ctrlKey","metaKey","shiftKey"].every(qe=>!m[qe]||this._allowedModifierKeys.indexOf(qe)>-1);switch(C){case E.Mf:return void this.tabOut.next();case E.JH:if(this._vertical&&K){this.setNextItemActive();break}return;case E.LH:if(this._vertical&&K){this.setPreviousItemActive();break}return;case E.SV:if(this._horizontal&&K){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case E.oh:if(this._horizontal&&K){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case E.Sd:if(this._homeAndEnd&&K){this.setFirstItemActive();break}return;case E.uR:if(this._homeAndEnd&&K){this.setLastItemActive();break}return;default:return void((K||(0,E.Vb)(m,"shiftKey"))&&(m.key&&1===m.key.length?this._letterKeyStream.next(m.key.toLocaleUpperCase()):(C>=E.A&&C<=E.Z||C>=E.xE&&C<=E.aO)&&this._letterKeyStream.next(String.fromCharCode(C))))}this._pressedLetters=[],m.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(m){const C=this._getItemsArray(),T="number"==typeof m?m:C.indexOf(m),K=C[T];this._activeItem=null==K?null:K,this._activeItemIndex=T}_setActiveItemByDelta(m){this._wrap?this._setActiveInWrapMode(m):this._setActiveInDefaultMode(m)}_setActiveInWrapMode(m){const C=this._getItemsArray();for(let T=1;T<=C.length;T++){const K=(this._activeItemIndex+m*T+C.length)%C.length;if(!this._skipPredicateFn(C[K]))return void this.setActiveItem(K)}}_setActiveInDefaultMode(m){this._setActiveItemByIndex(this._activeItemIndex+m,m)}_setActiveItemByIndex(m,C){const T=this._getItemsArray();if(T[m]){for(;this._skipPredicateFn(T[m]);)if(!T[m+=C])return;this.setActiveItem(m)}}_getItemsArray(){return this._items instanceof u.QueryList?this._items.toArray():this._items}}{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(m){return this._origin=m,this}setActiveItem(m){super.setActiveItem(m),this.activeItem&&this.activeItem.focus(this._origin)}}let ye=(()=>{class z{constructor(C){this._platform=C}isDisabled(C){return C.hasAttribute("disabled")}isVisible(C){return function dt(z){return!!(z.offsetWidth||z.offsetHeight||"function"==typeof z.getClientRects&&z.getClientRects().length)}(C)&&"visible"===getComputedStyle(C).visibility}isTabbable(C){if(!this._platform.isBrowser)return!1;const T=function He(z){try{return z.frameElement}catch(m){return null}}(function ht(z){return z.ownerDocument&&z.ownerDocument.defaultView||window}(C));if(T&&(-1===Re(T)||!this.isVisible(T)))return!1;let K=C.nodeName.toLowerCase(),qe=Re(C);return C.hasAttribute("contenteditable")?-1!==qe:!("iframe"===K||"object"===K||this._platform.WEBKIT&&this._platform.IOS&&!function ve(z){let m=z.nodeName.toLowerCase(),C="input"===m&&z.type;return"text"===C||"password"===C||"select"===m||"textarea"===m}(C))&&("audio"===K?!!C.hasAttribute("controls")&&-1!==qe:"video"===K?-1!==qe&&(null!==qe||this._platform.FIREFOX||C.hasAttribute("controls")):C.tabIndex>=0)}isFocusable(C,T){return function Ye(z){return!function ke(z){return function Z(z){return"input"==z.nodeName.toLowerCase()}(z)&&"hidden"==z.type}(z)&&(function Et(z){let m=z.nodeName.toLowerCase();return"input"===m||"select"===m||"button"===m||"textarea"===m}(z)||function Ze(z){return function me(z){return"a"==z.nodeName.toLowerCase()}(z)&&z.hasAttribute("href")}(z)||z.hasAttribute("contenteditable")||Me(z))}(C)&&!this.isDisabled(C)&&((null==T?void 0:T.ignoreVisibility)||this.isVisible(C))}}return z.\u0275fac=function(C){return new(C||z)(u.\u0275\u0275inject($.t4))},z.\u0275prov=u.\u0275\u0275defineInjectable({token:z,factory:z.\u0275fac,providedIn:"root"}),z})();function Me(z){if(!z.hasAttribute("tabindex")||void 0===z.tabIndex)return!1;let m=z.getAttribute("tabindex");return!(!m||isNaN(parseInt(m,10)))}function Re(z){if(!Me(z))return null;const m=parseInt(z.getAttribute("tabindex")||"",10);return isNaN(m)?-1:m}class bt{constructor(m,C,T,K,qe=!1){this._element=m,this._checker=C,this._ngZone=T,this._document=K,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,qe||this.attachAnchors()}get enabled(){return this._enabled}set enabled(m){this._enabled=m,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(m,this._startAnchor),this._toggleAnchorTabIndex(m,this._endAnchor))}destroy(){const m=this._startAnchor,C=this._endAnchor;m&&(m.removeEventListener("focus",this.startAnchorListener),m.remove()),C&&(C.removeEventListener("focus",this.endAnchorListener),C.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(m){return new Promise(C=>{this._executeOnStable(()=>C(this.focusInitialElement(m)))})}focusFirstTabbableElementWhenReady(m){return new Promise(C=>{this._executeOnStable(()=>C(this.focusFirstTabbableElement(m)))})}focusLastTabbableElementWhenReady(m){return new Promise(C=>{this._executeOnStable(()=>C(this.focusLastTabbableElement(m)))})}_getRegionBoundary(m){const C=this._element.querySelectorAll(`[cdk-focus-region-${m}], [cdkFocusRegion${m}], [cdk-focus-${m}]`);return"start"==m?C.length?C[0]:this._getFirstTabbableElement(this._element):C.length?C[C.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(m){const C=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(C){if(!this._checker.isFocusable(C)){const T=this._getFirstTabbableElement(C);return null==T||T.focus(m),!!T}return C.focus(m),!0}return this.focusFirstTabbableElement(m)}focusFirstTabbableElement(m){const C=this._getRegionBoundary("start");return C&&C.focus(m),!!C}focusLastTabbableElement(m){const C=this._getRegionBoundary("end");return C&&C.focus(m),!!C}hasAttached(){return this._hasAttached}_getFirstTabbableElement(m){if(this._checker.isFocusable(m)&&this._checker.isTabbable(m))return m;const C=m.children;for(let T=0;T<C.length;T++){const K=C[T].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(C[T]):null;if(K)return K}return null}_getLastTabbableElement(m){if(this._checker.isFocusable(m)&&this._checker.isTabbable(m))return m;const C=m.children;for(let T=C.length-1;T>=0;T--){const K=C[T].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(C[T]):null;if(K)return K}return null}_createAnchor(){const m=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,m),m.classList.add("cdk-visually-hidden"),m.classList.add("cdk-focus-trap-anchor"),m.setAttribute("aria-hidden","true"),m}_toggleAnchorTabIndex(m,C){m?C.setAttribute("tabindex","0"):C.removeAttribute("tabindex")}toggleAnchors(m){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(m,this._startAnchor),this._toggleAnchorTabIndex(m,this._endAnchor))}_executeOnStable(m){this._ngZone.isStable?m():this._ngZone.onStable.pipe((0,M.q)(1)).subscribe(m)}}let Ot=(()=>{class z{constructor(C,T,K){this._checker=C,this._ngZone=T,this._document=K}create(C,T=!1){return new bt(C,this._checker,this._ngZone,this._document,T)}}return z.\u0275fac=function(C){return new(C||z)(u.\u0275\u0275inject(ye),u.\u0275\u0275inject(u.NgZone),u.\u0275\u0275inject(i.DOCUMENT))},z.\u0275prov=u.\u0275\u0275defineInjectable({token:z,factory:z.\u0275fac,providedIn:"root"}),z})();function Te(z){return 0===z.offsetX&&0===z.offsetY}function be(z){const m=z.touches&&z.touches[0]||z.changedTouches&&z.changedTouches[0];return!(!m||-1!==m.identifier||null!=m.radiusX&&1!==m.radiusX||null!=m.radiusY&&1!==m.radiusY)}const se=new u.InjectionToken("cdk-input-modality-detector-options"),Ce={ignoreKeys:[E.zL,E.jx,E.b2,E.MW,E.JU]},tt=(0,$.i$)({passive:!0,capture:!0});let ft=(()=>{class z{constructor(C,T,K,qe){this._platform=C,this._mostRecentTarget=null,this._modality=new s.X(null),this._lastTouchMs=0,this._onKeydown=Dt=>{var zt,pn;(null===(pn=null===(zt=this._options)||void 0===zt?void 0:zt.ignoreKeys)||void 0===pn?void 0:pn.some(Be=>Be===Dt.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=(0,$.sA)(Dt))},this._onMousedown=Dt=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Te(Dt)?"keyboard":"mouse"),this._mostRecentTarget=(0,$.sA)(Dt))},this._onTouchstart=Dt=>{be(Dt)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,$.sA)(Dt))},this._options=Object.assign(Object.assign({},Ce),qe),this.modalityDetected=this._modality.pipe((0,b.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,R.x)()),C.isBrowser&&T.runOutsideAngular(()=>{K.addEventListener("keydown",this._onKeydown,tt),K.addEventListener("mousedown",this._onMousedown,tt),K.addEventListener("touchstart",this._onTouchstart,tt)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,tt),document.removeEventListener("mousedown",this._onMousedown,tt),document.removeEventListener("touchstart",this._onTouchstart,tt))}}return z.\u0275fac=function(C){return new(C||z)(u.\u0275\u0275inject($.t4),u.\u0275\u0275inject(u.NgZone),u.\u0275\u0275inject(i.DOCUMENT),u.\u0275\u0275inject(se,8))},z.\u0275prov=u.\u0275\u0275defineInjectable({token:z,factory:z.\u0275fac,providedIn:"root"}),z})();const En=new u.InjectionToken("cdk-focus-monitor-default-options"),rn=(0,$.i$)({passive:!0,capture:!0});let Wt=(()=>{class z{constructor(C,T,K,qe,Dt){this._ngZone=C,this._platform=T,this._inputModalityDetector=K,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 g.x,this._rootNodeFocusAndBlurListener=zt=>{const pn=(0,$.sA)(zt),Be="focus"===zt.type?this._onFocus:this._onBlur;for(let Ve=pn;Ve;Ve=Ve.parentElement)Be.call(this,zt,Ve)},this._document=qe,this._detectionMode=(null==Dt?void 0:Dt.detectionMode)||0}monitor(C,T=!1){const K=(0,fe.fI)(C);if(!this._platform.isBrowser||1!==K.nodeType)return(0,y.of)(null);const qe=(0,$.kV)(K)||this._getDocument(),Dt=this._elementInfo.get(K);if(Dt)return T&&(Dt.checkChildren=!0),Dt.subject;const zt={checkChildren:T,subject:new g.x,rootNode:qe};return this._elementInfo.set(K,zt),this._registerGlobalListeners(zt),zt.subject}stopMonitoring(C){const T=(0,fe.fI)(C),K=this._elementInfo.get(T);K&&(K.subject.complete(),this._setClasses(T),this._elementInfo.delete(T),this._removeGlobalListeners(K))}focusVia(C,T,K){const qe=(0,fe.fI)(C);qe===this._getDocument().activeElement?this._getClosestElementsInfo(qe).forEach(([zt,pn])=>this._originChanged(zt,T,pn)):(this._setOrigin(T),"function"==typeof qe.focus&&qe.focus(K))}ngOnDestroy(){this._elementInfo.forEach((C,T)=>this.stopMonitoring(T))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(C){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(C)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(C){return 1===this._detectionMode||!!(null==C?void 0:C.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(C,T){C.classList.toggle("cdk-focused",!!T),C.classList.toggle("cdk-touch-focused","touch"===T),C.classList.toggle("cdk-keyboard-focused","keyboard"===T),C.classList.toggle("cdk-mouse-focused","mouse"===T),C.classList.toggle("cdk-program-focused","program"===T)}_setOrigin(C,T=!1){this._ngZone.runOutsideAngular(()=>{this._origin=C,this._originFromTouchInteraction="touch"===C&&T,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(C,T){const K=this._elementInfo.get(T),qe=(0,$.sA)(C);!K||!K.checkChildren&&T!==qe||this._originChanged(T,this._getFocusOrigin(qe),K)}_onBlur(C,T){const K=this._elementInfo.get(T);!K||K.checkChildren&&C.relatedTarget instanceof Node&&T.contains(C.relatedTarget)||(this._setClasses(T),this._emitOrigin(K.subject,null))}_emitOrigin(C,T){this._ngZone.run(()=>C.next(T))}_registerGlobalListeners(C){if(!this._platform.isBrowser)return;const T=C.rootNode,K=this._rootNodeFocusListenerCount.get(T)||0;K||this._ngZone.runOutsideAngular(()=>{T.addEventListener("focus",this._rootNodeFocusAndBlurListener,rn),T.addEventListener("blur",this._rootNodeFocusAndBlurListener,rn)}),this._rootNodeFocusListenerCount.set(T,K+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,V.R)(this._stopInputModalityDetector)).subscribe(qe=>{this._setOrigin(qe,!0)}))}_removeGlobalListeners(C){const T=C.rootNode;if(this._rootNodeFocusListenerCount.has(T)){const K=this._rootNodeFocusListenerCount.get(T);K>1?this._rootNodeFocusListenerCount.set(T,K-1):(T.removeEventListener("focus",this._rootNodeFocusAndBlurListener,rn),T.removeEventListener("blur",this._rootNodeFocusAndBlurListener,rn),this._rootNodeFocusListenerCount.delete(T))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(C,T,K){this._setClasses(C,T),this._emitOrigin(K.subject,T),this._lastFocusOrigin=T}_getClosestElementsInfo(C){const T=[];return this._elementInfo.forEach((K,qe)=>{(qe===C||K.checkChildren&&qe.contains(C))&&T.push([qe,K])}),T}}return z.\u0275fac=function(C){return new(C||z)(u.\u0275\u0275inject(u.NgZone),u.\u0275\u0275inject($.t4),u.\u0275\u0275inject(ft),u.\u0275\u0275inject(i.DOCUMENT,8),u.\u0275\u0275inject(En,8))},z.\u0275prov=u.\u0275\u0275defineInjectable({token:z,factory:z.\u0275fac,providedIn:"root"}),z})(),Mt=(()=>{class z{constructor(C,T){this._elementRef=C,this._focusMonitor=T,this.cdkFocusChange=new u.EventEmitter}ngAfterViewInit(){const C=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(C,1===C.nodeType&&C.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(T=>this.cdkFocusChange.emit(T))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return z.\u0275fac=function(C){return new(C||z)(u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(Wt))},z.\u0275dir=u.\u0275\u0275defineDirective({type:z,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),z})();const bn="cdk-high-contrast-black-on-white",Qt="cdk-high-contrast-white-on-black",on="cdk-high-contrast-active";let yn=(()=>{class z{constructor(C,T){this._platform=C,this._document=T}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const C=this._document.createElement("div");C.style.backgroundColor="rgb(1,2,3)",C.style.position="absolute",this._document.body.appendChild(C);const T=this._document.defaultView||window,K=T&&T.getComputedStyle?T.getComputedStyle(C):null,qe=(K&&K.backgroundColor||"").replace(/ /g,"");switch(C.remove(),qe){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 C=this._document.body.classList;C.remove(on),C.remove(bn),C.remove(Qt),this._hasCheckedHighContrastMode=!0;const T=this.getHighContrastMode();1===T?(C.add(on),C.add(bn)):2===T&&(C.add(on),C.add(Qt))}}}return z.\u0275fac=function(C){return new(C||z)(u.\u0275\u0275inject($.t4),u.\u0275\u0275inject(i.DOCUMENT))},z.\u0275prov=u.\u0275\u0275defineInjectable({token:z,factory:z.\u0275fac,providedIn:"root"}),z})(),oe=(()=>{class z{constructor(C){C._applyBodyHighContrastModeCssClasses()}}return z.\u0275fac=function(C){return new(C||z)(u.\u0275\u0275inject(yn))},z.\u0275mod=u.\u0275\u0275defineNgModule({type:z}),z.\u0275inj=u.\u0275\u0275defineInjector({imports:[[$.ud,ie.Q8]]}),z})()},226:(Le,_,l)=>{"use strict";l.d(_,{vT:()=>I,Is:()=>E});var i=l(5e3),u=l(9808);const g=new i.InjectionToken("cdk-dir-doc",{providedIn:"root",factory:function c(){return(0,i.inject)(u.DOCUMENT)}}),s=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let E=(()=>{class h{constructor(M){if(this.value="ltr",this.change=new i.EventEmitter,M){const R=M.documentElement?M.documentElement.dir:null;this.value=function y(h){const A=(null==h?void 0:h.toLowerCase())||"";return"auto"===A&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?s.test(navigator.language)?"rtl":"ltr":"rtl"===A?"rtl":"ltr"}((M.body?M.body.dir:null)||R||"ltr")}}ngOnDestroy(){this.change.complete()}}return h.\u0275fac=function(M){return new(M||h)(i.\u0275\u0275inject(g,8))},h.\u0275prov=i.\u0275\u0275defineInjectable({token:h,factory:h.\u0275fac,providedIn:"root"}),h})(),I=(()=>{class h{}return h.\u0275fac=function(M){return new(M||h)},h.\u0275mod=i.\u0275\u0275defineNgModule({type:h}),h.\u0275inj=i.\u0275\u0275defineInjector({}),h})()},3191:(Le,_,l)=>{"use strict";l.d(_,{t6:()=>c,Eq:()=>s,Ig:()=>u,HM:()=>y,fI:()=>E,su:()=>g});var i=l(5e3);function u(I){return null!=I&&"false"!=`${I}`}function g(I,h=0){return c(I)?Number(I):h}function c(I){return!isNaN(parseFloat(I))&&!isNaN(Number(I))}function s(I){return Array.isArray(I)?I:[I]}function y(I){return null==I?"":"string"==typeof I?I:`${I}px`}function E(I){return I instanceof i.ElementRef?I.nativeElement:I}},449:(Le,_,l)=>{"use strict";l.d(_,{o2:()=>g,Ov:()=>w,yy:()=>y,eX:()=>E,k:()=>A,Z9:()=>c});var i=l(6758),u=l(5e3);class g{}function c(M){return M&&"function"==typeof M.connect}class y{applyChanges(b,R,V,fe,$){b.forEachOperation((ie,we,pe)=>{let _e,le;if(null==ie.previousIndex){const De=V(ie,we,pe);_e=R.createEmbeddedView(De.templateRef,De.context,De.index),le=1}else null==pe?(R.remove(we),le=3):(_e=R.get(we),R.move(_e,pe),le=2);$&&$({context:null==_e?void 0:_e.context,operation:le,record:ie})})}detach(){}}class E{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(b,R,V,fe,$){b.forEachOperation((ie,we,pe)=>{let _e,le;null==ie.previousIndex?(_e=this._insertView(()=>V(ie,we,pe),pe,R,fe(ie)),le=_e?1:0):null==pe?(this._detachAndCacheView(we,R),le=3):(_e=this._moveView(we,pe,R,fe(ie)),le=2),$&&$({context:null==_e?void 0:_e.context,operation:le,record:ie})})}detach(){for(const b of this._viewCache)b.destroy();this._viewCache=[]}_insertView(b,R,V,fe){const $=this._insertViewFromCache(R,V);if($)return void($.context.$implicit=fe);const ie=b();return V.createEmbeddedView(ie.templateRef,ie.context,ie.index)}_detachAndCacheView(b,R){const V=R.detach(b);this._maybeCacheView(V,R)}_moveView(b,R,V,fe){const $=V.get(b);return V.move($,R),$.context.$implicit=fe,$}_maybeCacheView(b,R){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(b);else{const V=R.indexOf(b);-1===V?b.destroy():R.remove(V)}}_insertViewFromCache(b,R){const V=this._viewCache.pop();return V&&R.insert(V,b),V||null}}class w{constructor(b=!1,R,V=!0){this._multiple=b,this._emitChanges=V,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new i.x,R&&R.length&&(b?R.forEach(fe=>this._markSelected(fe)):this._markSelected(R[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...b){this._verifyValueAssignment(b),b.forEach(R=>this._markSelected(R)),this._emitChangeEvent()}deselect(...b){this._verifyValueAssignment(b),b.forEach(R=>this._unmarkSelected(R)),this._emitChangeEvent()}toggle(b){this.isSelected(b)?this.deselect(b):this.select(b)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(b){return this._selection.has(b)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(b){this._multiple&&this.selected&&this._selected.sort(b)}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(b){this.isSelected(b)||(this._multiple||this._unmarkAll(),this._selection.add(b),this._emitChanges&&this._selectedToEmit.push(b))}_unmarkSelected(b){this.isSelected(b)&&(this._selection.delete(b),this._emitChanges&&this._deselectedToEmit.push(b))}_unmarkAll(){this.isEmpty()||this._selection.forEach(b=>this._unmarkSelected(b))}_verifyValueAssignment(b){}}const A=new u.InjectionToken("_ViewRepeater")},1159:(Le,_,l)=>{"use strict";l.d(_,{A:()=>Et,zL:()=>w,ZH:()=>u,jx:()=>E,yY:()=>Fe,JH:()=>pe,uR:()=>V,K5:()=>s,hY:()=>A,Sd:()=>fe,oh:()=>$,b2:()=>ai,MW:()=>wt,aO:()=>ge,SV:()=>we,JU:()=>y,L_:()=>M,Mf:()=>g,LH:()=>ie,Z:()=>pt,xE:()=>Je,Vb:()=>xn});const u=8,g=9,s=13,y=16,E=17,w=18,A=27,M=32,V=35,fe=36,$=37,ie=38,we=39,pe=40,Fe=46,Je=48,ge=57,Et=65,pt=90,wt=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,_,l)=>{"use strict";l.r(_),l.d(_,{BreakpointObserver:()=>pe,Breakpoints:()=>le,LayoutModule:()=>R,MediaMatcher:()=>$});var i=l(5e3),u=l(3191),g=l(6758),c=l(9841),s=l(1350),y=l(9751),E=l(5698),w=l(5684),I=l(8372),h=l(4004),A=l(8675),M=l(2722),b=l(925);let R=(()=>{class De{}return De.\u0275fac=function(Je){return new(Je||De)},De.\u0275mod=i.\u0275\u0275defineNgModule({type:De}),De.\u0275inj=i.\u0275\u0275defineInjector({}),De})();const V=new Set;let fe,$=(()=>{class De{constructor(Je){this._platform=Je,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):we}matchMedia(Je){return(this._platform.WEBKIT||this._platform.BLINK)&&function ie(De){if(!V.has(De))try{fe||(fe=document.createElement("style"),fe.setAttribute("type","text/css"),document.head.appendChild(fe)),fe.sheet&&(fe.sheet.insertRule(`@media ${De} {body{ }}`,0),V.add(De))}catch(Fe){console.error(Fe)}}(Je),this._matchMedia(Je)}}return De.\u0275fac=function(Je){return new(Je||De)(i.\u0275\u0275inject(b.t4))},De.\u0275prov=i.\u0275\u0275defineInjectable({token:De,factory:De.\u0275fac,providedIn:"root"}),De})();function we(De){return{matches:"all"===De||""===De,media:De,addListener:()=>{},removeListener:()=>{}}}let pe=(()=>{class De{constructor(Je,ot){this._mediaMatcher=Je,this._zone=ot,this._queries=new Map,this._destroySubject=new g.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(Je){return _e((0,u.Eq)(Je)).some(q=>this._registerQuery(q).mql.matches)}observe(Je){const q=_e((0,u.Eq)(Je)).map(J=>this._registerQuery(J).observable);let Pe=(0,c.a)(q);return Pe=(0,s.z)(Pe.pipe((0,E.q)(1)),Pe.pipe((0,w.T)(1),(0,I.b)(0))),Pe.pipe((0,h.U)(J=>{const ce={matches:!1,breakpoints:{}};return J.forEach(({matches:Se,query:re})=>{ce.matches=ce.matches||Se,ce.breakpoints[re]=Se}),ce}))}_registerQuery(Je){if(this._queries.has(Je))return this._queries.get(Je);const ot=this._mediaMatcher.matchMedia(Je),Pe={observable:new y.y(J=>{const ce=Se=>this._zone.run(()=>J.next(Se));return ot.addListener(ce),()=>{ot.removeListener(ce)}}).pipe((0,A.O)(ot),(0,h.U)(({matches:J})=>({query:Je,matches:J})),(0,M.R)(this._destroySubject)),mql:ot};return this._queries.set(Je,Pe),Pe}}return De.\u0275fac=function(Je){return new(Je||De)(i.\u0275\u0275inject($),i.\u0275\u0275inject(i.NgZone))},De.\u0275prov=i.\u0275\u0275defineInjectable({token:De,factory:De.\u0275fac,providedIn:"root"}),De})();function _e(De){return De.map(Fe=>Fe.split(",")).reduce((Fe,Je)=>Fe.concat(Je)).map(Fe=>Fe.trim())}const le={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,_,l)=>{"use strict";l.d(_,{wD:()=>w,Q8:()=>I});var i=l(3191),u=l(5e3),g=l(9751),c=l(6758),s=l(8372);let y=(()=>{class h{create(M){return"undefined"==typeof MutationObserver?null:new MutationObserver(M)}}return h.\u0275fac=function(M){return new(M||h)},h.\u0275prov=u.\u0275\u0275defineInjectable({token:h,factory:h.\u0275fac,providedIn:"root"}),h})(),E=(()=>{class h{constructor(M){this._mutationObserverFactory=M,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((M,b)=>this._cleanupObserver(b))}observe(M){const b=(0,i.fI)(M);return new g.y(R=>{const fe=this._observeElement(b).subscribe(R);return()=>{fe.unsubscribe(),this._unobserveElement(b)}})}_observeElement(M){if(this._observedElements.has(M))this._observedElements.get(M).count++;else{const b=new c.x,R=this._mutationObserverFactory.create(V=>b.next(V));R&&R.observe(M,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(M,{observer:R,stream:b,count:1})}return this._observedElements.get(M).stream}_unobserveElement(M){this._observedElements.has(M)&&(this._observedElements.get(M).count--,this._observedElements.get(M).count||this._cleanupObserver(M))}_cleanupObserver(M){if(this._observedElements.has(M)){const{observer:b,stream:R}=this._observedElements.get(M);b&&b.disconnect(),R.complete(),this._observedElements.delete(M)}}}return h.\u0275fac=function(M){return new(M||h)(u.\u0275\u0275inject(y))},h.\u0275prov=u.\u0275\u0275defineInjectable({token:h,factory:h.\u0275fac,providedIn:"root"}),h})(),w=(()=>{class h{constructor(M,b,R){this._contentObserver=M,this._elementRef=b,this._ngZone=R,this.event=new u.EventEmitter,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(M){this._disabled=(0,i.Ig)(M),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(M){this._debounce=(0,i.su)(M),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const M=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?M.pipe((0,s.b)(this.debounce)):M).subscribe(this.event)})}_unsubscribe(){var M;null===(M=this._currentSubscription)||void 0===M||M.unsubscribe()}}return h.\u0275fac=function(M){return new(M||h)(u.\u0275\u0275directiveInject(E),u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(u.NgZone))},h.\u0275dir=u.\u0275\u0275defineDirective({type:h,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),h})(),I=(()=>{class h{}return h.\u0275fac=function(M){return new(M||h)},h.\u0275mod=u.\u0275\u0275defineNgModule({type:h}),h.\u0275inj=u.\u0275\u0275defineInjector({providers:[y]}),h})()},1314:(Le,_,l)=>{"use strict";l.d(_,{aV:()=>me,X_:()=>le,Xj:()=>J,U8:()=>Ot});var i=l(9071),u=l(9808),g=l(5e3),c=l(3191),s=l(925),y=l(226),E=l(7429),w=l(6758),I=l(6921),h=l(6451),A=l(5698),M=l(2722);const b=(0,s.Mq)();class R{constructor(N,ae){this._viewportRuler=N,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=ae}attach(){}enable(){if(this._canBeEnabled()){const N=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=N.style.left||"",this._previousHTMLStyles.top=N.style.top||"",N.style.left=(0,c.HM)(-this._previousScrollPosition.left),N.style.top=(0,c.HM)(-this._previousScrollPosition.top),N.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const N=this._document.documentElement,Oe=N.style,ue=this._document.body.style,Te=Oe.scrollBehavior||"",be=ue.scrollBehavior||"";this._isEnabled=!1,Oe.left=this._previousHTMLStyles.left,Oe.top=this._previousHTMLStyles.top,N.classList.remove("cdk-global-scrollblock"),b&&(Oe.scrollBehavior=ue.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),b&&(Oe.scrollBehavior=Te,ue.scrollBehavior=be)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const ae=this._document.body,Oe=this._viewportRuler.getViewportSize();return ae.scrollHeight>Oe.height||ae.scrollWidth>Oe.width}}class fe{constructor(N,ae,Oe,ue){this._scrollDispatcher=N,this._ngZone=ae,this._viewportRuler=Oe,this._config=ue,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(N){this._overlayRef=N}enable(){if(this._scrollSubscription)return;const N=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=N.subscribe(()=>{const ae=this._viewportRuler.getViewportScrollPosition().top;Math.abs(ae-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=N.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class ${enable(){}disable(){}attach(){}}function ie(Qe,N){return N.some(ae=>Qe.bottom<ae.top||Qe.top>ae.bottom||Qe.right<ae.left||Qe.left>ae.right)}function we(Qe,N){return N.some(ae=>Qe.top<ae.top||Qe.bottom>ae.bottom||Qe.left<ae.left||Qe.right>ae.right)}class pe{constructor(N,ae,Oe,ue){this._scrollDispatcher=N,this._viewportRuler=ae,this._ngZone=Oe,this._config=ue,this._scrollSubscription=null}attach(N){this._overlayRef=N}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const ae=this._overlayRef.overlayElement.getBoundingClientRect(),{width:Oe,height:ue}=this._viewportRuler.getViewportSize();ie(ae,[{width:Oe,height:ue,bottom:ue,right:Oe,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 _e=(()=>{class Qe{constructor(ae,Oe,ue,Te){this._scrollDispatcher=ae,this._viewportRuler=Oe,this._ngZone=ue,this.noop=()=>new $,this.close=be=>new fe(this._scrollDispatcher,this._ngZone,this._viewportRuler,be),this.block=()=>new R(this._viewportRuler,this._document),this.reposition=be=>new pe(this._scrollDispatcher,this._viewportRuler,this._ngZone,be),this._document=Te}}return Qe.\u0275fac=function(ae){return new(ae||Qe)(g.\u0275\u0275inject(i.mF),g.\u0275\u0275inject(i.rL),g.\u0275\u0275inject(g.NgZone),g.\u0275\u0275inject(u.DOCUMENT))},Qe.\u0275prov=g.\u0275\u0275defineInjectable({token:Qe,factory:Qe.\u0275fac,providedIn:"root"}),Qe})();class le{constructor(N){if(this.scrollStrategy=new $,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,N){const ae=Object.keys(N);for(const Oe of ae)void 0!==N[Oe]&&(this[Oe]=N[Oe])}}}class Je{constructor(N,ae){this.connectionPair=N,this.scrollableViewProperties=ae}}class Pe{constructor(N,ae,Oe,ue,Te,be,se,Ce,Ge){this._portalOutlet=N,this._host=ae,this._pane=Oe,this._config=ue,this._ngZone=Te,this._keyboardDispatcher=be,this._document=se,this._location=Ce,this._outsideClickDispatcher=Ge,this._backdropElement=null,this._backdropClick=new w.x,this._attachments=new w.x,this._detachments=new w.x,this._locationChanges=I.w0.EMPTY,this._backdropClickHandler=tt=>this._backdropClick.next(tt),this._keydownEvents=new w.x,this._outsidePointerEvents=new w.x,ue.scrollStrategy&&(this._scrollStrategy=ue.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=ue.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(N){let ae=this._portalOutlet.attach(N);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,A.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),ae}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const N=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),N}dispose(){var N;const ae=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===(N=this._host)||void 0===N||N.remove(),this._previousHostParent=this._pane=this._host=null,ae&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(N){N!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=N,this.hasAttached()&&(N.attach(this),this.updatePosition()))}updateSize(N){this._config=Object.assign(Object.assign({},this._config),N),this._updateElementSize()}setDirection(N){this._config=Object.assign(Object.assign({},this._config),{direction:N}),this._updateElementDirection()}addPanelClass(N){this._pane&&this._toggleClasses(this._pane,N,!0)}removePanelClass(N){this._pane&&this._toggleClasses(this._pane,N,!1)}getDirection(){const N=this._config.direction;return N?"string"==typeof N?N:N.value:"ltr"}updateScrollStrategy(N){N!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=N,this.hasAttached()&&(N.attach(this),N.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const N=this._pane.style;N.width=(0,c.HM)(this._config.width),N.height=(0,c.HM)(this._config.height),N.minWidth=(0,c.HM)(this._config.minWidth),N.minHeight=(0,c.HM)(this._config.minHeight),N.maxWidth=(0,c.HM)(this._config.maxWidth),N.maxHeight=(0,c.HM)(this._config.maxHeight)}_togglePointerEvents(N){this._pane.style.pointerEvents=N?"":"none"}_attachBackdrop(){const N="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._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(N)})}):this._backdropElement.classList.add(N)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const N=this._backdropElement;if(!N)return;let ae;const Oe=()=>{N&&(N.removeEventListener("click",this._backdropClickHandler),N.removeEventListener("transitionend",Oe),this._disposeBackdrop(N)),this._config.backdropClass&&this._toggleClasses(N,this._config.backdropClass,!1),clearTimeout(ae)};N.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{N.addEventListener("transitionend",Oe)}),N.style.pointerEvents="none",ae=this._ngZone.runOutsideAngular(()=>setTimeout(Oe,500))}_toggleClasses(N,ae,Oe){const ue=(0,c.Eq)(ae||[]).filter(Te=>!!Te);ue.length&&(Oe?N.classList.add(...ue):N.classList.remove(...ue))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const N=this._ngZone.onStable.pipe((0,M.R)((0,h.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()),N.unsubscribe())})})}_disposeScrollStrategy(){const N=this._scrollStrategy;N&&(N.disable(),N.detach&&N.detach())}_disposeBackdrop(N){N&&(N.remove(),this._backdropElement===N&&(this._backdropElement=null))}}let J=(()=>{class Qe{constructor(ae,Oe){this._platform=Oe,this._document=ae}ngOnDestroy(){var ae;null===(ae=this._containerElement)||void 0===ae||ae.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const ae="cdk-overlay-container";if(this._platform.isBrowser||(0,s.Oy)()){const ue=this._document.querySelectorAll(`.${ae}[platform="server"], .${ae}[platform="test"]`);for(let Te=0;Te<ue.length;Te++)ue[Te].remove()}const Oe=this._document.createElement("div");Oe.classList.add(ae),(0,s.Oy)()?Oe.setAttribute("platform","test"):this._platform.isBrowser||Oe.setAttribute("platform","server"),this._document.body.appendChild(Oe),this._containerElement=Oe}}return Qe.\u0275fac=function(ae){return new(ae||Qe)(g.\u0275\u0275inject(u.DOCUMENT),g.\u0275\u0275inject(s.t4))},Qe.\u0275prov=g.\u0275\u0275defineInjectable({token:Qe,factory:Qe.\u0275fac,providedIn:"root"}),Qe})();const ce="cdk-overlay-connected-position-bounding-box",Se=/([A-Za-z%]+)$/;class re{constructor(N,ae,Oe,ue,Te){this._viewportRuler=ae,this._document=Oe,this._platform=ue,this._overlayContainer=Te,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 w.x,this._resizeSubscription=I.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(N)}get positions(){return this._preferredPositions}attach(N){this._validatePositions(),N.hostElement.classList.add(ce),this._overlayRef=N,this._boundingBox=N.hostElement,this._pane=N.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const N=this._originRect,ae=this._overlayRect,Oe=this._viewportRect,ue=this._containerRect,Te=[];let be;for(let se of this._preferredPositions){let Ce=this._getOriginPoint(N,ue,se),Ge=this._getOverlayPoint(Ce,ae,se),tt=this._getOverlayFit(Ge,ae,Oe,se);if(tt.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(se,Ce);this._canFitWithFlexibleDimensions(tt,Ge,Oe)?Te.push({position:se,origin:Ce,overlayRect:ae,boundingBoxRect:this._calculateBoundingBoxRect(Ce,se)}):(!be||be.overlayFit.visibleArea<tt.visibleArea)&&(be={overlayFit:tt,overlayPoint:Ge,originPoint:Ce,position:se,overlayRect:ae})}if(Te.length){let se=null,Ce=-1;for(const Ge of Te){const tt=Ge.boundingBoxRect.width*Ge.boundingBoxRect.height*(Ge.position.weight||1);tt>Ce&&(Ce=tt,se=Ge)}return this._isPushed=!1,void this._applyPosition(se.position,se.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(be.position,be.originPoint);this._applyPosition(be.position,be.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Ke(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(ce),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 N=this._lastPosition||this._preferredPositions[0],ae=this._getOriginPoint(this._originRect,this._containerRect,N);this._applyPosition(N,ae)}}withScrollableContainers(N){return this._scrollables=N,this}withPositions(N){return this._preferredPositions=N,-1===N.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(N){return this._viewportMargin=N,this}withFlexibleDimensions(N=!0){return this._hasFlexibleDimensions=N,this}withGrowAfterOpen(N=!0){return this._growAfterOpen=N,this}withPush(N=!0){return this._canPush=N,this}withLockedPosition(N=!0){return this._positionLocked=N,this}setOrigin(N){return this._origin=N,this}withDefaultOffsetX(N){return this._offsetX=N,this}withDefaultOffsetY(N){return this._offsetY=N,this}withTransformOriginOn(N){return this._transformOriginSelector=N,this}_getOriginPoint(N,ae,Oe){let ue,Te;if("center"==Oe.originX)ue=N.left+N.width/2;else{const be=this._isRtl()?N.right:N.left,se=this._isRtl()?N.left:N.right;ue="start"==Oe.originX?be:se}return ae.left<0&&(ue-=ae.left),Te="center"==Oe.originY?N.top+N.height/2:"top"==Oe.originY?N.top:N.bottom,ae.top<0&&(Te-=ae.top),{x:ue,y:Te}}_getOverlayPoint(N,ae,Oe){let ue,Te;return ue="center"==Oe.overlayX?-ae.width/2:"start"===Oe.overlayX?this._isRtl()?-ae.width:0:this._isRtl()?0:-ae.width,Te="center"==Oe.overlayY?-ae.height/2:"top"==Oe.overlayY?0:-ae.height,{x:N.x+ue,y:N.y+Te}}_getOverlayFit(N,ae,Oe,ue){const Te=it(ae);let{x:be,y:se}=N,Ce=this._getOffset(ue,"x"),Ge=this._getOffset(ue,"y");Ce&&(be+=Ce),Ge&&(se+=Ge);let pt=0-se,wt=se+Te.height-Oe.height,$t=this._subtractOverflows(Te.width,0-be,be+Te.width-Oe.width),en=this._subtractOverflows(Te.height,pt,wt),Bt=$t*en;return{visibleArea:Bt,isCompletelyWithinViewport:Te.width*Te.height===Bt,fitsInViewportVertically:en===Te.height,fitsInViewportHorizontally:$t==Te.width}}_canFitWithFlexibleDimensions(N,ae,Oe){if(this._hasFlexibleDimensions){const ue=Oe.bottom-ae.y,Te=Oe.right-ae.x,be=ge(this._overlayRef.getConfig().minHeight),se=ge(this._overlayRef.getConfig().minWidth),Ge=N.fitsInViewportHorizontally||null!=se&&se<=Te;return(N.fitsInViewportVertically||null!=be&&be<=ue)&&Ge}return!1}_pushOverlayOnScreen(N,ae,Oe){if(this._previousPushAmount&&this._positionLocked)return{x:N.x+this._previousPushAmount.x,y:N.y+this._previousPushAmount.y};const ue=it(ae),Te=this._viewportRect,be=Math.max(N.x+ue.width-Te.width,0),se=Math.max(N.y+ue.height-Te.height,0),Ce=Math.max(Te.top-Oe.top-N.y,0),Ge=Math.max(Te.left-Oe.left-N.x,0);let tt=0,ft=0;return tt=ue.width<=Te.width?Ge||-be:N.x<this._viewportMargin?Te.left-Oe.left-N.x:0,ft=ue.height<=Te.height?Ce||-se:N.y<this._viewportMargin?Te.top-Oe.top-N.y:0,this._previousPushAmount={x:tt,y:ft},{x:N.x+tt,y:N.y+ft}}_applyPosition(N,ae){if(this._setTransformOrigin(N),this._setOverlayElementStyles(ae,N),this._setBoundingBoxStyles(ae,N),N.panelClass&&this._addPanelClasses(N.panelClass),this._lastPosition=N,this._positionChanges.observers.length){const Oe=this._getScrollVisibility(),ue=new Je(N,Oe);this._positionChanges.next(ue)}this._isInitialRender=!1}_setTransformOrigin(N){if(!this._transformOriginSelector)return;const ae=this._boundingBox.querySelectorAll(this._transformOriginSelector);let Oe,ue=N.overlayY;Oe="center"===N.overlayX?"center":this._isRtl()?"start"===N.overlayX?"right":"left":"start"===N.overlayX?"left":"right";for(let Te=0;Te<ae.length;Te++)ae[Te].style.transformOrigin=`${Oe} ${ue}`}_calculateBoundingBoxRect(N,ae){const Oe=this._viewportRect,ue=this._isRtl();let Te,be,se,tt,ft,pt;if("top"===ae.overlayY)be=N.y,Te=Oe.height-be+this._viewportMargin;else if("bottom"===ae.overlayY)se=Oe.height-N.y+2*this._viewportMargin,Te=Oe.height-se+this._viewportMargin;else{const wt=Math.min(Oe.bottom-N.y+Oe.top,N.y),$t=this._lastBoundingBoxSize.height;Te=2*wt,be=N.y-wt,Te>$t&&!this._isInitialRender&&!this._growAfterOpen&&(be=N.y-$t/2)}if("end"===ae.overlayX&&!ue||"start"===ae.overlayX&&ue)pt=Oe.width-N.x+this._viewportMargin,tt=N.x-this._viewportMargin;else if("start"===ae.overlayX&&!ue||"end"===ae.overlayX&&ue)ft=N.x,tt=Oe.right-N.x;else{const wt=Math.min(Oe.right-N.x+Oe.left,N.x),$t=this._lastBoundingBoxSize.width;tt=2*wt,ft=N.x-wt,tt>$t&&!this._isInitialRender&&!this._growAfterOpen&&(ft=N.x-$t/2)}return{top:be,left:ft,bottom:se,right:pt,width:tt,height:Te}}_setBoundingBoxStyles(N,ae){const Oe=this._calculateBoundingBoxRect(N,ae);!this._isInitialRender&&!this._growAfterOpen&&(Oe.height=Math.min(Oe.height,this._lastBoundingBoxSize.height),Oe.width=Math.min(Oe.width,this._lastBoundingBoxSize.width));const ue={};if(this._hasExactPosition())ue.top=ue.left="0",ue.bottom=ue.right=ue.maxHeight=ue.maxWidth="",ue.width=ue.height="100%";else{const Te=this._overlayRef.getConfig().maxHeight,be=this._overlayRef.getConfig().maxWidth;ue.height=(0,c.HM)(Oe.height),ue.top=(0,c.HM)(Oe.top),ue.bottom=(0,c.HM)(Oe.bottom),ue.width=(0,c.HM)(Oe.width),ue.left=(0,c.HM)(Oe.left),ue.right=(0,c.HM)(Oe.right),ue.alignItems="center"===ae.overlayX?"center":"end"===ae.overlayX?"flex-end":"flex-start",ue.justifyContent="center"===ae.overlayY?"center":"bottom"===ae.overlayY?"flex-end":"flex-start",Te&&(ue.maxHeight=(0,c.HM)(Te)),be&&(ue.maxWidth=(0,c.HM)(be))}this._lastBoundingBoxSize=Oe,Ke(this._boundingBox.style,ue)}_resetBoundingBoxStyles(){Ke(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Ke(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(N,ae){const Oe={},ue=this._hasExactPosition(),Te=this._hasFlexibleDimensions,be=this._overlayRef.getConfig();if(ue){const tt=this._viewportRuler.getViewportScrollPosition();Ke(Oe,this._getExactOverlayY(ae,N,tt)),Ke(Oe,this._getExactOverlayX(ae,N,tt))}else Oe.position="static";let se="",Ce=this._getOffset(ae,"x"),Ge=this._getOffset(ae,"y");Ce&&(se+=`translateX(${Ce}px) `),Ge&&(se+=`translateY(${Ge}px)`),Oe.transform=se.trim(),be.maxHeight&&(ue?Oe.maxHeight=(0,c.HM)(be.maxHeight):Te&&(Oe.maxHeight="")),be.maxWidth&&(ue?Oe.maxWidth=(0,c.HM)(be.maxWidth):Te&&(Oe.maxWidth="")),Ke(this._pane.style,Oe)}_getExactOverlayY(N,ae,Oe){let ue={top:"",bottom:""},Te=this._getOverlayPoint(ae,this._overlayRect,N);return this._isPushed&&(Te=this._pushOverlayOnScreen(Te,this._overlayRect,Oe)),"bottom"===N.overlayY?ue.bottom=this._document.documentElement.clientHeight-(Te.y+this._overlayRect.height)+"px":ue.top=(0,c.HM)(Te.y),ue}_getExactOverlayX(N,ae,Oe){let be,ue={left:"",right:""},Te=this._getOverlayPoint(ae,this._overlayRect,N);return this._isPushed&&(Te=this._pushOverlayOnScreen(Te,this._overlayRect,Oe)),be=this._isRtl()?"end"===N.overlayX?"left":"right":"end"===N.overlayX?"right":"left","right"===be?ue.right=this._document.documentElement.clientWidth-(Te.x+this._overlayRect.width)+"px":ue.left=(0,c.HM)(Te.x),ue}_getScrollVisibility(){const N=this._getOriginRect(),ae=this._pane.getBoundingClientRect(),Oe=this._scrollables.map(ue=>ue.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:we(N,Oe),isOriginOutsideView:ie(N,Oe),isOverlayClipped:we(ae,Oe),isOverlayOutsideView:ie(ae,Oe)}}_subtractOverflows(N,...ae){return ae.reduce((Oe,ue)=>Oe-Math.max(ue,0),N)}_getNarrowedViewportRect(){const N=this._document.documentElement.clientWidth,ae=this._document.documentElement.clientHeight,Oe=this._viewportRuler.getViewportScrollPosition();return{top:Oe.top+this._viewportMargin,left:Oe.left+this._viewportMargin,right:Oe.left+N-this._viewportMargin,bottom:Oe.top+ae-this._viewportMargin,width:N-2*this._viewportMargin,height:ae-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(N,ae){return"x"===ae?null==N.offsetX?this._offsetX:N.offsetX:null==N.offsetY?this._offsetY:N.offsetY}_validatePositions(){}_addPanelClasses(N){this._pane&&(0,c.Eq)(N).forEach(ae=>{""!==ae&&-1===this._appliedPanelClasses.indexOf(ae)&&(this._appliedPanelClasses.push(ae),this._pane.classList.add(ae))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(N=>{this._pane.classList.remove(N)}),this._appliedPanelClasses=[])}_getOriginRect(){const N=this._origin;if(N instanceof g.ElementRef)return N.nativeElement.getBoundingClientRect();if(N instanceof Element)return N.getBoundingClientRect();const ae=N.width||0,Oe=N.height||0;return{top:N.y,bottom:N.y+Oe,left:N.x,right:N.x+ae,height:Oe,width:ae}}}function Ke(Qe,N){for(let ae in N)N.hasOwnProperty(ae)&&(Qe[ae]=N[ae]);return Qe}function ge(Qe){if("number"!=typeof Qe&&null!=Qe){const[N,ae]=Qe.split(Se);return ae&&"px"!==ae?null:parseFloat(N)}return Qe||null}function it(Qe){return{top:Math.floor(Qe.top),right:Math.floor(Qe.right),bottom:Math.floor(Qe.bottom),left:Math.floor(Qe.left),width:Math.floor(Qe.width),height:Math.floor(Qe.height)}}const ye="cdk-global-overlay-wrapper";class He{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(N){const ae=N.getConfig();this._overlayRef=N,this._width&&!ae.width&&N.updateSize({width:this._width}),this._height&&!ae.height&&N.updateSize({height:this._height}),N.hostElement.classList.add(ye),this._isDisposed=!1}top(N=""){return this._bottomOffset="",this._topOffset=N,this._alignItems="flex-start",this}left(N=""){return this._rightOffset="",this._leftOffset=N,this._justifyContent="flex-start",this}bottom(N=""){return this._topOffset="",this._bottomOffset=N,this._alignItems="flex-end",this}right(N=""){return this._leftOffset="",this._rightOffset=N,this._justifyContent="flex-end",this}width(N=""){return this._overlayRef?this._overlayRef.updateSize({width:N}):this._width=N,this}height(N=""){return this._overlayRef?this._overlayRef.updateSize({height:N}):this._height=N,this}centerHorizontally(N=""){return this.left(N),this._justifyContent="center",this}centerVertically(N=""){return this.top(N),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const N=this._overlayRef.overlayElement.style,ae=this._overlayRef.hostElement.style,Oe=this._overlayRef.getConfig(),{width:ue,height:Te,maxWidth:be,maxHeight:se}=Oe,Ce=!("100%"!==ue&&"100vw"!==ue||be&&"100%"!==be&&"100vw"!==be),Ge=!("100%"!==Te&&"100vh"!==Te||se&&"100%"!==se&&"100vh"!==se);N.position=this._cssPosition,N.marginLeft=Ce?"0":this._leftOffset,N.marginTop=Ge?"0":this._topOffset,N.marginBottom=this._bottomOffset,N.marginRight=this._rightOffset,Ce?ae.justifyContent="flex-start":"center"===this._justifyContent?ae.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?ae.justifyContent="flex-end":"flex-end"===this._justifyContent&&(ae.justifyContent="flex-start"):ae.justifyContent=this._justifyContent,ae.alignItems=Ge?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const N=this._overlayRef.overlayElement.style,ae=this._overlayRef.hostElement,Oe=ae.style;ae.classList.remove(ye),Oe.justifyContent=Oe.alignItems=N.marginTop=N.marginBottom=N.marginLeft=N.marginRight=N.position="",this._overlayRef=null,this._isDisposed=!0}}let dt=(()=>{class Qe{constructor(ae,Oe,ue,Te){this._viewportRuler=ae,this._document=Oe,this._platform=ue,this._overlayContainer=Te}global(){return new He}flexibleConnectedTo(ae){return new re(ae,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return Qe.\u0275fac=function(ae){return new(ae||Qe)(g.\u0275\u0275inject(i.rL),g.\u0275\u0275inject(u.DOCUMENT),g.\u0275\u0275inject(s.t4),g.\u0275\u0275inject(J))},Qe.\u0275prov=g.\u0275\u0275defineInjectable({token:Qe,factory:Qe.\u0275fac,providedIn:"root"}),Qe})(),Et=(()=>{class Qe{constructor(ae){this._attachedOverlays=[],this._document=ae}ngOnDestroy(){this.detach()}add(ae){this.remove(ae),this._attachedOverlays.push(ae)}remove(ae){const Oe=this._attachedOverlays.indexOf(ae);Oe>-1&&this._attachedOverlays.splice(Oe,1),0===this._attachedOverlays.length&&this.detach()}}return Qe.\u0275fac=function(ae){return new(ae||Qe)(g.\u0275\u0275inject(u.DOCUMENT))},Qe.\u0275prov=g.\u0275\u0275defineInjectable({token:Qe,factory:Qe.\u0275fac,providedIn:"root"}),Qe})(),ke=(()=>{class Qe extends Et{constructor(ae){super(ae),this._keydownListener=Oe=>{const ue=this._attachedOverlays;for(let Te=ue.length-1;Te>-1;Te--)if(ue[Te]._keydownEvents.observers.length>0){ue[Te]._keydownEvents.next(Oe);break}}}add(ae){super.add(ae),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 Qe.\u0275fac=function(ae){return new(ae||Qe)(g.\u0275\u0275inject(u.DOCUMENT))},Qe.\u0275prov=g.\u0275\u0275defineInjectable({token:Qe,factory:Qe.\u0275fac,providedIn:"root"}),Qe})(),Ze=(()=>{class Qe extends Et{constructor(ae,Oe){super(ae),this._platform=Oe,this._cursorStyleIsSet=!1,this._pointerDownListener=ue=>{this._pointerDownEventTarget=(0,s.sA)(ue)},this._clickListener=ue=>{const Te=(0,s.sA)(ue),be="click"===ue.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:Te;this._pointerDownEventTarget=null;const se=this._attachedOverlays.slice();for(let Ce=se.length-1;Ce>-1;Ce--){const Ge=se[Ce];if(!(Ge._outsidePointerEvents.observers.length<1)&&Ge.hasAttached()){if(Ge.overlayElement.contains(Te)||Ge.overlayElement.contains(be))break;Ge._outsidePointerEvents.next(ue)}}}}add(ae){if(super.add(ae),!this._isAttached){const Oe=this._document.body;Oe.addEventListener("pointerdown",this._pointerDownListener,!0),Oe.addEventListener("click",this._clickListener,!0),Oe.addEventListener("auxclick",this._clickListener,!0),Oe.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=Oe.style.cursor,Oe.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const ae=this._document.body;ae.removeEventListener("pointerdown",this._pointerDownListener,!0),ae.removeEventListener("click",this._clickListener,!0),ae.removeEventListener("auxclick",this._clickListener,!0),ae.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(ae.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return Qe.\u0275fac=function(ae){return new(ae||Qe)(g.\u0275\u0275inject(u.DOCUMENT),g.\u0275\u0275inject(s.t4))},Qe.\u0275prov=g.\u0275\u0275defineInjectable({token:Qe,factory:Qe.\u0275fac,providedIn:"root"}),Qe})(),Z=0,me=(()=>{class Qe{constructor(ae,Oe,ue,Te,be,se,Ce,Ge,tt,ft,pt){this.scrollStrategies=ae,this._overlayContainer=Oe,this._componentFactoryResolver=ue,this._positionBuilder=Te,this._keyboardDispatcher=be,this._injector=se,this._ngZone=Ce,this._document=Ge,this._directionality=tt,this._location=ft,this._outsideClickDispatcher=pt}create(ae){const Oe=this._createHostElement(),ue=this._createPaneElement(Oe),Te=this._createPortalOutlet(ue),be=new le(ae);return be.direction=be.direction||this._directionality.value,new Pe(Te,Oe,ue,be,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(ae){const Oe=this._document.createElement("div");return Oe.id="cdk-overlay-"+Z++,Oe.classList.add("cdk-overlay-pane"),ae.appendChild(Oe),Oe}_createHostElement(){const ae=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(ae),ae}_createPortalOutlet(ae){return this._appRef||(this._appRef=this._injector.get(g.ApplicationRef)),new E.u0(ae,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return Qe.\u0275fac=function(ae){return new(ae||Qe)(g.\u0275\u0275inject(_e),g.\u0275\u0275inject(J),g.\u0275\u0275inject(g.ComponentFactoryResolver),g.\u0275\u0275inject(dt),g.\u0275\u0275inject(ke),g.\u0275\u0275inject(g.Injector),g.\u0275\u0275inject(g.NgZone),g.\u0275\u0275inject(u.DOCUMENT),g.\u0275\u0275inject(y.Is),g.\u0275\u0275inject(u.Location),g.\u0275\u0275inject(Ze))},Qe.\u0275prov=g.\u0275\u0275defineInjectable({token:Qe,factory:Qe.\u0275fac}),Qe})();const bt={provide:new g.InjectionToken("cdk-connected-overlay-scroll-strategy"),deps:[me],useFactory:function ht(Qe){return()=>Qe.scrollStrategies.reposition()}};let Ot=(()=>{class Qe{}return Qe.\u0275fac=function(ae){return new(ae||Qe)},Qe.\u0275mod=g.\u0275\u0275defineNgModule({type:Qe}),Qe.\u0275inj=g.\u0275\u0275defineInjector({providers:[me,bt],imports:[[y.vT,E.eL,i.Cl],i.Cl]}),Qe})()},925:(Le,_,l)=>{"use strict";l.d(_,{t4:()=>c,ud:()=>s,sA:()=>pe,ht:()=>we,kV:()=>ie,Oy:()=>_e,i$:()=>A,Mq:()=>R});var i=l(5e3),u=l(9808);let g;try{g="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(le){g=!1}let I,b,fe,c=(()=>{class le{constructor(Fe){this._platformId=Fe,this.isBrowser=this._platformId?(0,u.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&&!g)&&"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 le.\u0275fac=function(Fe){return new(Fe||le)(i.\u0275\u0275inject(i.PLATFORM_ID))},le.\u0275prov=i.\u0275\u0275defineInjectable({token:le,factory:le.\u0275fac,providedIn:"root"}),le})(),s=(()=>{class le{}return le.\u0275fac=function(Fe){return new(Fe||le)},le.\u0275mod=i.\u0275\u0275defineNgModule({type:le}),le.\u0275inj=i.\u0275\u0275defineInjector({}),le})();function A(le){return function h(){if(null==I&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>I=!0}))}finally{I=I||!1}return I}()?le:!!le.capture}function R(){if(null==b){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return b=!1,b;if("scrollBehavior"in document.documentElement.style)b=!0;else{const le=Element.prototype.scrollTo;b=!!le&&!/\{\s*\[native code\]\s*\}/.test(le.toString())}}return b}function ie(le){if(function $(){if(null==fe){const le="undefined"!=typeof document?document.head:null;fe=!(!le||!le.createShadowRoot&&!le.attachShadow)}return fe}()){const De=le.getRootNode?le.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&De instanceof ShadowRoot)return De}return null}function we(){let le="undefined"!=typeof document&&document?document.activeElement:null;for(;le&&le.shadowRoot;){const De=le.shadowRoot.activeElement;if(De===le)break;le=De}return le}function pe(le){return le.composedPath?le.composedPath()[0]:le.target}function _e(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},7429:(Le,_,l)=>{"use strict";l.d(_,{en:()=>b,ig:()=>$,Pl:()=>we,C5:()=>h,u0:()=>V,eL:()=>_e,UE:()=>A});var i=l(5e3),u=l(9808);class I{attach(Fe){return this._attachedHost=Fe,Fe.attach(this)}detach(){let Fe=this._attachedHost;null!=Fe&&(this._attachedHost=null,Fe.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(Fe){this._attachedHost=Fe}}class h extends I{constructor(Fe,Je,ot,q){super(),this.component=Fe,this.viewContainerRef=Je,this.injector=ot,this.componentFactoryResolver=q}}class A extends I{constructor(Fe,Je,ot){super(),this.templateRef=Fe,this.viewContainerRef=Je,this.context=ot}get origin(){return this.templateRef.elementRef}attach(Fe,Je=this.context){return this.context=Je,super.attach(Fe)}detach(){return this.context=void 0,super.detach()}}class M extends I{constructor(Fe){super(),this.element=Fe instanceof i.ElementRef?Fe.nativeElement:Fe}}class b{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(Fe){return Fe instanceof h?(this._attachedPortal=Fe,this.attachComponentPortal(Fe)):Fe instanceof A?(this._attachedPortal=Fe,this.attachTemplatePortal(Fe)):this.attachDomPortal&&Fe instanceof M?(this._attachedPortal=Fe,this.attachDomPortal(Fe)):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(Fe){this._disposeFn=Fe}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class V extends b{constructor(Fe,Je,ot,q,Pe){super(),this.outletElement=Fe,this._componentFactoryResolver=Je,this._appRef=ot,this._defaultInjector=q,this.attachDomPortal=J=>{const ce=J.element,Se=this._document.createComment("dom-portal");ce.parentNode.insertBefore(Se,ce),this.outletElement.appendChild(ce),this._attachedPortal=J,super.setDisposeFn(()=>{Se.parentNode&&Se.parentNode.replaceChild(ce,Se)})},this._document=Pe}attachComponentPortal(Fe){const ot=(Fe.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Fe.component);let q;return Fe.viewContainerRef?(q=Fe.viewContainerRef.createComponent(ot,Fe.viewContainerRef.length,Fe.injector||Fe.viewContainerRef.injector),this.setDisposeFn(()=>q.destroy())):(q=ot.create(Fe.injector||this._defaultInjector),this._appRef.attachView(q.hostView),this.setDisposeFn(()=>{this._appRef.detachView(q.hostView),q.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(q)),this._attachedPortal=Fe,q}attachTemplatePortal(Fe){let Je=Fe.viewContainerRef,ot=Je.createEmbeddedView(Fe.templateRef,Fe.context);return ot.rootNodes.forEach(q=>this.outletElement.appendChild(q)),ot.detectChanges(),this.setDisposeFn(()=>{let q=Je.indexOf(ot);-1!==q&&Je.remove(q)}),this._attachedPortal=Fe,ot}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(Fe){return Fe.hostView.rootNodes[0]}}let $=(()=>{class De extends A{constructor(Je,ot){super(Je,ot)}}return De.\u0275fac=function(Je){return new(Je||De)(i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(i.ViewContainerRef))},De.\u0275dir=i.\u0275\u0275defineDirective({type:De,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[i.\u0275\u0275InheritDefinitionFeature]}),De})(),we=(()=>{class De extends b{constructor(Je,ot,q){super(),this._componentFactoryResolver=Je,this._viewContainerRef=ot,this._isInitialized=!1,this.attached=new i.EventEmitter,this.attachDomPortal=Pe=>{const J=Pe.element,ce=this._document.createComment("dom-portal");Pe.setAttachedHost(this),J.parentNode.insertBefore(ce,J),this._getRootNode().appendChild(J),this._attachedPortal=Pe,super.setDisposeFn(()=>{ce.parentNode&&ce.parentNode.replaceChild(J,ce)})},this._document=q}get portal(){return this._attachedPortal}set portal(Je){this.hasAttached()&&!Je&&!this._isInitialized||(this.hasAttached()&&super.detach(),Je&&super.attach(Je),this._attachedPortal=Je||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(Je){Je.setAttachedHost(this);const ot=null!=Je.viewContainerRef?Je.viewContainerRef:this._viewContainerRef,Pe=(Je.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Je.component),J=ot.createComponent(Pe,ot.length,Je.injector||ot.injector);return ot!==this._viewContainerRef&&this._getRootNode().appendChild(J.hostView.rootNodes[0]),super.setDisposeFn(()=>J.destroy()),this._attachedPortal=Je,this._attachedRef=J,this.attached.emit(J),J}attachTemplatePortal(Je){Je.setAttachedHost(this);const ot=this._viewContainerRef.createEmbeddedView(Je.templateRef,Je.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=Je,this._attachedRef=ot,this.attached.emit(ot),ot}_getRootNode(){const Je=this._viewContainerRef.element.nativeElement;return Je.nodeType===Je.ELEMENT_NODE?Je:Je.parentNode}}return De.\u0275fac=function(Je){return new(Je||De)(i.\u0275\u0275directiveInject(i.ComponentFactoryResolver),i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(u.DOCUMENT))},De.\u0275dir=i.\u0275\u0275defineDirective({type:De,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.\u0275\u0275InheritDefinitionFeature]}),De})(),_e=(()=>{class De{}return De.\u0275fac=function(Je){return new(Je||De)},De.\u0275mod=i.\u0275\u0275defineNgModule({type:De}),De.\u0275inj=i.\u0275\u0275defineInjector({}),De})()},9071:(Le,_,l)=>{"use strict";l.d(_,{ZD:()=>ce,mF:()=>_e,Cl:()=>Se,rL:()=>Fe});var i=l(3191),u=l(5e3),g=l(6758),c=l(9646),s=l(9751),y=l(4968),I=(l(29),l(3101),l(453)),h=l(9300),A=l(9808),M=l(925),b=l(226);let _e=(()=>{class re{constructor(ge,it,ye){this._ngZone=ge,this._platform=it,this._scrolled=new g.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=ye}register(ge){this.scrollContainers.has(ge)||this.scrollContainers.set(ge,ge.elementScrolled().subscribe(()=>this._scrolled.next(ge)))}deregister(ge){const it=this.scrollContainers.get(ge);it&&(it.unsubscribe(),this.scrollContainers.delete(ge))}scrolled(ge=20){return this._platform.isBrowser?new s.y(it=>{this._globalSubscription||this._addGlobalListener();const ye=ge>0?this._scrolled.pipe((0,I.e)(ge)).subscribe(it):this._scrolled.subscribe(it);return this._scrolledCount++,()=>{ye.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,c.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((ge,it)=>this.deregister(it)),this._scrolled.complete()}ancestorScrolled(ge,it){const ye=this.getAncestorScrollContainers(ge);return this.scrolled(it).pipe((0,h.h)(He=>!He||ye.indexOf(He)>-1))}getAncestorScrollContainers(ge){const it=[];return this.scrollContainers.forEach((ye,He)=>{this._scrollableContainsElement(He,ge)&&it.push(He)}),it}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(ge,it){let ye=(0,i.fI)(it),He=ge.getElementRef().nativeElement;do{if(ye==He)return!0}while(ye=ye.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const ge=this._getWindow();return(0,y.R)(ge.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return re.\u0275fac=function(ge){return new(ge||re)(u.\u0275\u0275inject(u.NgZone),u.\u0275\u0275inject(M.t4),u.\u0275\u0275inject(A.DOCUMENT,8))},re.\u0275prov=u.\u0275\u0275defineInjectable({token:re,factory:re.\u0275fac,providedIn:"root"}),re})(),Fe=(()=>{class re{constructor(ge,it,ye){this._platform=ge,this._change=new g.x,this._changeListener=He=>{this._change.next(He)},this._document=ye,it.runOutsideAngular(()=>{if(ge.isBrowser){const He=this._getWindow();He.addEventListener("resize",this._changeListener),He.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const ge=this._getWindow();ge.removeEventListener("resize",this._changeListener),ge.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const ge={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),ge}getViewportRect(){const ge=this.getViewportScrollPosition(),{width:it,height:ye}=this.getViewportSize();return{top:ge.top,left:ge.left,bottom:ge.top+ye,right:ge.left+it,height:ye,width:it}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const ge=this._document,it=this._getWindow(),ye=ge.documentElement,He=ye.getBoundingClientRect();return{top:-He.top||ge.body.scrollTop||it.scrollY||ye.scrollTop||0,left:-He.left||ge.body.scrollLeft||it.scrollX||ye.scrollLeft||0}}change(ge=20){return ge>0?this._change.pipe((0,I.e)(ge)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const ge=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:ge.innerWidth,height:ge.innerHeight}:{width:0,height:0}}}return re.\u0275fac=function(ge){return new(ge||re)(u.\u0275\u0275inject(M.t4),u.\u0275\u0275inject(u.NgZone),u.\u0275\u0275inject(A.DOCUMENT,8))},re.\u0275prov=u.\u0275\u0275defineInjectable({token:re,factory:re.\u0275fac,providedIn:"root"}),re})(),ce=(()=>{class re{}return re.\u0275fac=function(ge){return new(ge||re)},re.\u0275mod=u.\u0275\u0275defineNgModule({type:re}),re.\u0275inj=u.\u0275\u0275defineInjector({}),re})(),Se=(()=>{class re{}return re.\u0275fac=function(ge){return new(ge||re)},re.\u0275mod=u.\u0275\u0275defineNgModule({type:re}),re.\u0275inj=u.\u0275\u0275defineInjector({imports:[[b.vT,M.ud,ce],b.vT,ce]}),re})()},9808:(Le,_,l)=>{"use strict";l.r(_),l.d(_,{APP_BASE_HREF:()=>we,AsyncPipe:()=>Wi,CommonModule:()=>rr,CurrencyPipe:()=>Pi,DATE_PIPE_DEFAULT_TIMEZONE:()=>gr,DOCUMENT:()=>E,DatePipe:()=>Di,DecimalPipe:()=>_r,FormStyle:()=>J,FormatWidth:()=>Se,HashLocationStrategy:()=>_e,I18nPluralPipe:()=>Ar,I18nSelectPipe:()=>Ki,JsonPipe:()=>Si,KeyValuePipe:()=>Or,LOCATION_INITIALIZED:()=>h,Location:()=>le,LocationStrategy:()=>$,LowerCasePipe:()=>Ir,NgClass:()=>ln,NgComponentOutlet:()=>$n,NgForOf:()=>Sn,NgForOfContext:()=>Un,NgIf:()=>xn,NgIfContext:()=>mn,NgLocaleLocalization:()=>vn,NgLocalization:()=>Nt,NgPlural:()=>hi,NgPluralCase:()=>Wn,NgStyle:()=>Sr,NgSwitch:()=>Kn,NgSwitchCase:()=>Gn,NgSwitchDefault:()=>Ci,NgTemplateOutlet:()=>nr,NumberFormatStyle:()=>q,NumberSymbol:()=>re,PathLocationStrategy:()=>pe,PercentPipe:()=>fi,PlatformLocation:()=>w,Plural:()=>Pe,SlicePipe:()=>mi,TitleCasePipe:()=>zi,TranslationWidth:()=>ce,UpperCasePipe:()=>ci,VERSION:()=>Yi,ViewportScroller:()=>ki,WeekDay:()=>Ke,XhrFactory:()=>Ln,formatCurrency:()=>Bn,formatDate:()=>$t,formatNumber:()=>Ie,formatPercent:()=>H,getCurrencySymbol:()=>Te,getLocaleCurrencyCode:()=>ht,getLocaleCurrencyName:()=>Ye,getLocaleCurrencySymbol:()=>ve,getLocaleDateFormat:()=>Ze,getLocaleDateTimeFormat:()=>me,getLocaleDayNames:()=>ye,getLocaleDayPeriods:()=>it,getLocaleDirection:()=>ae,getLocaleEraNames:()=>dt,getLocaleExtraDayPeriodRules:()=>Qe,getLocaleExtraDayPeriods:()=>N,getLocaleFirstDayOfWeek:()=>Et,getLocaleId:()=>ge,getLocaleMonthNames:()=>He,getLocaleNumberFormat:()=>Re,getLocaleNumberSymbol:()=>Me,getLocalePluralCase:()=>Ot,getLocaleTimeFormat:()=>Z,getLocaleWeekEndRange:()=>ke,getNumberOfCurrencyDigits:()=>se,isPlatformBrowser:()=>ti,isPlatformServer:()=>Ri,isPlatformWorkerApp:()=>or,isPlatformWorkerUi:()=>Fi,registerLocaleData:()=>jt,\u0275BrowserPlatformLocation:()=>A,\u0275DomAdapter:()=>y,\u0275NullViewportScroller:()=>ar,\u0275PLATFORM_BROWSER_ID:()=>Ai,\u0275PLATFORM_SERVER_ID:()=>Oi,\u0275PLATFORM_WORKER_APP_ID:()=>xi,\u0275PLATFORM_WORKER_UI_ID:()=>Zi,\u0275getDOM:()=>g,\u0275parseCookieValue:()=>On,\u0275setRootDomAdapter:()=>s});var i=l(5e3);let u=null;function g(){return u}function s(x){u||(u=x)}class y{}const E=new i.InjectionToken("DocumentToken");let w=(()=>{class x{historyGo(F){throw new Error("Not implemented")}}return x.\u0275fac=function(F){return new(F||x)},x.\u0275prov=i.\u0275\u0275defineInjectable({token:x,factory:function(){return function I(){return(0,i.\u0275\u0275inject)(A)}()},providedIn:"platform"}),x})();const h=new i.InjectionToken("Location Initialized");let A=(()=>{class x extends w{constructor(F){super(),this._doc=F,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return g().getBaseHref(this._doc)}onPopState(F){const ne=g().getGlobalEventTarget(this._doc,"window");return ne.addEventListener("popstate",F,!1),()=>ne.removeEventListener("popstate",F)}onHashChange(F){const ne=g().getGlobalEventTarget(this._doc,"window");return ne.addEventListener("hashchange",F,!1),()=>ne.removeEventListener("hashchange",F)}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(F){this.location.pathname=F}pushState(F,ne,ze){M()?this._history.pushState(F,ne,ze):this.location.hash=ze}replaceState(F,ne,ze){M()?this._history.replaceState(F,ne,ze):this.location.hash=ze}forward(){this._history.forward()}back(){this._history.back()}historyGo(F=0){this._history.go(F)}getState(){return this._history.state}}return x.\u0275fac=function(F){return new(F||x)(i.\u0275\u0275inject(E))},x.\u0275prov=i.\u0275\u0275defineInjectable({token:x,factory:function(){return function b(){return new A((0,i.\u0275\u0275inject)(E))}()},providedIn:"platform"}),x})();function M(){return!!window.history.pushState}function R(x,Q){if(0==x.length)return Q;if(0==Q.length)return x;let F=0;return x.endsWith("/")&&F++,Q.startsWith("/")&&F++,2==F?x+Q.substring(1):1==F?x+Q:x+"/"+Q}function V(x){const Q=x.match(/#|\?|$/),F=Q&&Q.index||x.length;return x.slice(0,F-("/"===x[F-1]?1:0))+x.slice(F)}function fe(x){return x&&"?"!==x[0]?"?"+x:x}let $=(()=>{class x{historyGo(F){throw new Error("Not implemented")}}return x.\u0275fac=function(F){return new(F||x)},x.\u0275prov=i.\u0275\u0275defineInjectable({token:x,factory:function(){return function ie(x){const Q=(0,i.\u0275\u0275inject)(E).location;return new pe((0,i.\u0275\u0275inject)(w),Q&&Q.origin||"")}()},providedIn:"root"}),x})();const we=new i.InjectionToken("appBaseHref");let pe=(()=>{class x extends ${constructor(F,ne){if(super(),this._platformLocation=F,this._removeListenerFns=[],null==ne&&(ne=this._platformLocation.getBaseHrefFromDOM()),null==ne)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=ne}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(F){this._removeListenerFns.push(this._platformLocation.onPopState(F),this._platformLocation.onHashChange(F))}getBaseHref(){return this._baseHref}prepareExternalUrl(F){return R(this._baseHref,F)}path(F=!1){const ne=this._platformLocation.pathname+fe(this._platformLocation.search),ze=this._platformLocation.hash;return ze&&F?`${ne}${ze}`:ne}pushState(F,ne,ze,ct){const vt=this.prepareExternalUrl(ze+fe(ct));this._platformLocation.pushState(F,ne,vt)}replaceState(F,ne,ze,ct){const vt=this.prepareExternalUrl(ze+fe(ct));this._platformLocation.replaceState(F,ne,vt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(F=0){var ne,ze;null===(ze=(ne=this._platformLocation).historyGo)||void 0===ze||ze.call(ne,F)}}return x.\u0275fac=function(F){return new(F||x)(i.\u0275\u0275inject(w),i.\u0275\u0275inject(we,8))},x.\u0275prov=i.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac}),x})(),_e=(()=>{class x extends ${constructor(F,ne){super(),this._platformLocation=F,this._baseHref="",this._removeListenerFns=[],null!=ne&&(this._baseHref=ne)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(F){this._removeListenerFns.push(this._platformLocation.onPopState(F),this._platformLocation.onHashChange(F))}getBaseHref(){return this._baseHref}path(F=!1){let ne=this._platformLocation.hash;return null==ne&&(ne="#"),ne.length>0?ne.substring(1):ne}prepareExternalUrl(F){const ne=R(this._baseHref,F);return ne.length>0?"#"+ne:ne}pushState(F,ne,ze,ct){let vt=this.prepareExternalUrl(ze+fe(ct));0==vt.length&&(vt=this._platformLocation.pathname),this._platformLocation.pushState(F,ne,vt)}replaceState(F,ne,ze,ct){let vt=this.prepareExternalUrl(ze+fe(ct));0==vt.length&&(vt=this._platformLocation.pathname),this._platformLocation.replaceState(F,ne,vt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(F=0){var ne,ze;null===(ze=(ne=this._platformLocation).historyGo)||void 0===ze||ze.call(ne,F)}}return x.\u0275fac=function(F){return new(F||x)(i.\u0275\u0275inject(w),i.\u0275\u0275inject(we,8))},x.\u0275prov=i.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac}),x})(),le=(()=>{class x{constructor(F,ne){this._subject=new i.EventEmitter,this._urlChangeListeners=[],this._platformStrategy=F;const ze=this._platformStrategy.getBaseHref();this._platformLocation=ne,this._baseHref=V(Je(ze)),this._platformStrategy.onPopState(ct=>{this._subject.emit({url:this.path(!0),pop:!0,state:ct.state,type:ct.type})})}path(F=!1){return this.normalize(this._platformStrategy.path(F))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(F,ne=""){return this.path()==this.normalize(F+fe(ne))}normalize(F){return x.stripTrailingSlash(function Fe(x,Q){return x&&Q.startsWith(x)?Q.substring(x.length):Q}(this._baseHref,Je(F)))}prepareExternalUrl(F){return F&&"/"!==F[0]&&(F="/"+F),this._platformStrategy.prepareExternalUrl(F)}go(F,ne="",ze=null){this._platformStrategy.pushState(ze,"",F,ne),this._notifyUrlChangeListeners(this.prepareExternalUrl(F+fe(ne)),ze)}replaceState(F,ne="",ze=null){this._platformStrategy.replaceState(ze,"",F,ne),this._notifyUrlChangeListeners(this.prepareExternalUrl(F+fe(ne)),ze)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(F=0){var ne,ze;null===(ze=(ne=this._platformStrategy).historyGo)||void 0===ze||ze.call(ne,F)}onUrlChange(F){this._urlChangeListeners.push(F),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(ne=>{this._notifyUrlChangeListeners(ne.url,ne.state)}))}_notifyUrlChangeListeners(F="",ne){this._urlChangeListeners.forEach(ze=>ze(F,ne))}subscribe(F,ne,ze){return this._subject.subscribe({next:F,error:ne,complete:ze})}}return x.normalizeQueryParams=fe,x.joinWithSlash=R,x.stripTrailingSlash=V,x.\u0275fac=function(F){return new(F||x)(i.\u0275\u0275inject($),i.\u0275\u0275inject(w))},x.\u0275prov=i.\u0275\u0275defineInjectable({token:x,factory:function(){return function De(){return new le((0,i.\u0275\u0275inject)($),(0,i.\u0275\u0275inject)(w))}()},providedIn:"root"}),x})();function Je(x){return x.replace(/\/index.html$/,"")}const ot={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 q=(()=>((q=q||{})[q.Decimal=0]="Decimal",q[q.Percent=1]="Percent",q[q.Currency=2]="Currency",q[q.Scientific=3]="Scientific",q))(),Pe=(()=>((Pe=Pe||{})[Pe.Zero=0]="Zero",Pe[Pe.One=1]="One",Pe[Pe.Two=2]="Two",Pe[Pe.Few=3]="Few",Pe[Pe.Many=4]="Many",Pe[Pe.Other=5]="Other",Pe))(),J=(()=>((J=J||{})[J.Format=0]="Format",J[J.Standalone=1]="Standalone",J))(),ce=(()=>((ce=ce||{})[ce.Narrow=0]="Narrow",ce[ce.Abbreviated=1]="Abbreviated",ce[ce.Wide=2]="Wide",ce[ce.Short=3]="Short",ce))(),Se=(()=>((Se=Se||{})[Se.Short=0]="Short",Se[Se.Medium=1]="Medium",Se[Se.Long=2]="Long",Se[Se.Full=3]="Full",Se))(),re=(()=>((re=re||{})[re.Decimal=0]="Decimal",re[re.Group=1]="Group",re[re.List=2]="List",re[re.PercentSign=3]="PercentSign",re[re.PlusSign=4]="PlusSign",re[re.MinusSign=5]="MinusSign",re[re.Exponential=6]="Exponential",re[re.SuperscriptingExponent=7]="SuperscriptingExponent",re[re.PerMille=8]="PerMille",re[re.Infinity=9]="Infinity",re[re.NaN=10]="NaN",re[re.TimeSeparator=11]="TimeSeparator",re[re.CurrencyDecimal=12]="CurrencyDecimal",re[re.CurrencyGroup=13]="CurrencyGroup",re))(),Ke=(()=>((Ke=Ke||{})[Ke.Sunday=0]="Sunday",Ke[Ke.Monday=1]="Monday",Ke[Ke.Tuesday=2]="Tuesday",Ke[Ke.Wednesday=3]="Wednesday",Ke[Ke.Thursday=4]="Thursday",Ke[Ke.Friday=5]="Friday",Ke[Ke.Saturday=6]="Saturday",Ke))();function ge(x){return(0,i.\u0275findLocaleData)(x)[i.\u0275LocaleDataIndex.LocaleId]}function it(x,Q,F){const ne=(0,i.\u0275findLocaleData)(x),ct=Oe([ne[i.\u0275LocaleDataIndex.DayPeriodsFormat],ne[i.\u0275LocaleDataIndex.DayPeriodsStandalone]],Q);return Oe(ct,F)}function ye(x,Q,F){const ne=(0,i.\u0275findLocaleData)(x),ct=Oe([ne[i.\u0275LocaleDataIndex.DaysFormat],ne[i.\u0275LocaleDataIndex.DaysStandalone]],Q);return Oe(ct,F)}function He(x,Q,F){const ne=(0,i.\u0275findLocaleData)(x),ct=Oe([ne[i.\u0275LocaleDataIndex.MonthsFormat],ne[i.\u0275LocaleDataIndex.MonthsStandalone]],Q);return Oe(ct,F)}function dt(x,Q){return Oe((0,i.\u0275findLocaleData)(x)[i.\u0275LocaleDataIndex.Eras],Q)}function Et(x){return(0,i.\u0275findLocaleData)(x)[i.\u0275LocaleDataIndex.FirstDayOfWeek]}function ke(x){return(0,i.\u0275findLocaleData)(x)[i.\u0275LocaleDataIndex.WeekendRange]}function Ze(x,Q){return Oe((0,i.\u0275findLocaleData)(x)[i.\u0275LocaleDataIndex.DateFormat],Q)}function Z(x,Q){return Oe((0,i.\u0275findLocaleData)(x)[i.\u0275LocaleDataIndex.TimeFormat],Q)}function me(x,Q){return Oe((0,i.\u0275findLocaleData)(x)[i.\u0275LocaleDataIndex.DateTimeFormat],Q)}function Me(x,Q){const F=(0,i.\u0275findLocaleData)(x),ne=F[i.\u0275LocaleDataIndex.NumberSymbols][Q];if(void 0===ne){if(Q===re.CurrencyDecimal)return F[i.\u0275LocaleDataIndex.NumberSymbols][re.Decimal];if(Q===re.CurrencyGroup)return F[i.\u0275LocaleDataIndex.NumberSymbols][re.Group]}return ne}function Re(x,Q){return(0,i.\u0275findLocaleData)(x)[i.\u0275LocaleDataIndex.NumberFormats][Q]}function ve(x){return(0,i.\u0275findLocaleData)(x)[i.\u0275LocaleDataIndex.CurrencySymbol]||null}function Ye(x){return(0,i.\u0275findLocaleData)(x)[i.\u0275LocaleDataIndex.CurrencyName]||null}function ht(x){return(0,i.\u0275getLocaleCurrencyCode)(x)}const Ot=i.\u0275getLocalePluralCase;function lt(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 Qe(x){const Q=(0,i.\u0275findLocaleData)(x);return lt(Q),(Q[i.\u0275LocaleDataIndex.ExtraData][2]||[]).map(ne=>"string"==typeof ne?ue(ne):[ue(ne[0]),ue(ne[1])])}function N(x,Q,F){const ne=(0,i.\u0275findLocaleData)(x);lt(ne);const ct=Oe([ne[i.\u0275LocaleDataIndex.ExtraData][0],ne[i.\u0275LocaleDataIndex.ExtraData][1]],Q)||[];return Oe(ct,F)||[]}function ae(x){return(0,i.\u0275findLocaleData)(x)[i.\u0275LocaleDataIndex.Directionality]}function Oe(x,Q){for(let F=Q;F>-1;F--)if(void 0!==x[F])return x[F];throw new Error("Locale data API: locale data undefined")}function ue(x){const[Q,F]=x.split(":");return{hours:+Q,minutes:+F}}function Te(x,Q,F="en"){const ne=function bt(x){return(0,i.\u0275findLocaleData)(x)[i.\u0275LocaleDataIndex.Currencies]}(F)[x]||ot[x]||[],ze=ne[1];return"narrow"===Q&&"string"==typeof ze?ze:ne[0]||x}function se(x){let Q;const F=ot[x];return F&&(Q=F[2]),"number"==typeof Q?Q:2}const Ce=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ge={},tt=/((?:[^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 ft=(()=>((ft=ft||{})[ft.Short=0]="Short",ft[ft.ShortGMT=1]="ShortGMT",ft[ft.Long=2]="Long",ft[ft.Extended=3]="Extended",ft))(),pt=(()=>((pt=pt||{})[pt.FullYear=0]="FullYear",pt[pt.Month=1]="Month",pt[pt.Date=2]="Date",pt[pt.Hours=3]="Hours",pt[pt.Minutes=4]="Minutes",pt[pt.Seconds=5]="Seconds",pt[pt.FractionalSeconds=6]="FractionalSeconds",pt[pt.Day=7]="Day",pt))(),wt=(()=>((wt=wt||{})[wt.DayPeriods=0]="DayPeriods",wt[wt.Days=1]="Days",wt[wt.Months=2]="Months",wt[wt.Eras=3]="Eras",wt))();function $t(x,Q,F,ne){let ze=function Ve(x){if($e(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,ct=1,vt=1]=x.split("-").map(Rt=>+Rt);return en(ze,ct-1,vt)}const F=parseFloat(x);if(!isNaN(x-F))return new Date(F);let ne;if(ne=x.match(Ce))return function he(x){const Q=new Date(0);let F=0,ne=0;const ze=x[8]?Q.setUTCFullYear:Q.setFullYear,ct=x[8]?Q.setUTCHours:Q.setHours;x[9]&&(F=Number(x[9]+x[10]),ne=Number(x[9]+x[11])),ze.call(Q,Number(x[1]),Number(x[2])-1,Number(x[3]));const vt=Number(x[4]||0)-F,Rt=Number(x[5]||0)-ne,Tn=Number(x[6]||0),wn=Math.floor(1e3*parseFloat("0."+(x[7]||0)));return ct.call(Q,vt,Rt,Tn,wn),Q}(ne)}const Q=new Date(x);if(!$e(Q))throw new Error(`Unable to convert "${x}" into a date`);return Q}(x);Q=Bt(F,Q)||Q;let Rt,vt=[];for(;Q;){if(Rt=tt.exec(Q),!Rt){vt.push(Q);break}{vt=vt.concat(Rt.slice(1));const In=vt.pop();if(!In)break;Q=In}}let Tn=ze.getTimezoneOffset();ne&&(Tn=zt(ne,Tn),ze=function Be(x,Q,F){const ne=F?-1:1,ze=x.getTimezoneOffset();return function pn(x,Q){return(x=new Date(x.getTime())).setMinutes(x.getMinutes()+Q),x}(x,ne*(zt(Q,ze)-ze))}(ze,ne,!0));let wn="";return vt.forEach(In=>{const cn=function Dt(x){if(qe[x])return qe[x];let Q;switch(x){case"G":case"GG":case"GGG":Q=Qt(wt.Eras,ce.Abbreviated);break;case"GGGG":Q=Qt(wt.Eras,ce.Wide);break;case"GGGGG":Q=Qt(wt.Eras,ce.Narrow);break;case"y":Q=Mt(pt.FullYear,1,0,!1,!0);break;case"yy":Q=Mt(pt.FullYear,2,0,!0,!0);break;case"yyy":Q=Mt(pt.FullYear,3,0,!1,!0);break;case"yyyy":Q=Mt(pt.FullYear,4,0,!1,!0);break;case"Y":Q=K(1);break;case"YY":Q=K(2,!0);break;case"YYY":Q=K(3);break;case"YYYY":Q=K(4);break;case"M":case"L":Q=Mt(pt.Month,1,1);break;case"MM":case"LL":Q=Mt(pt.Month,2,1);break;case"MMM":Q=Qt(wt.Months,ce.Abbreviated);break;case"MMMM":Q=Qt(wt.Months,ce.Wide);break;case"MMMMM":Q=Qt(wt.Months,ce.Narrow);break;case"LLL":Q=Qt(wt.Months,ce.Abbreviated,J.Standalone);break;case"LLLL":Q=Qt(wt.Months,ce.Wide,J.Standalone);break;case"LLLLL":Q=Qt(wt.Months,ce.Narrow,J.Standalone);break;case"w":Q=T(1);break;case"ww":Q=T(2);break;case"W":Q=T(1,!0);break;case"d":Q=Mt(pt.Date,1);break;case"dd":Q=Mt(pt.Date,2);break;case"c":case"cc":Q=Mt(pt.Day,1);break;case"ccc":Q=Qt(wt.Days,ce.Abbreviated,J.Standalone);break;case"cccc":Q=Qt(wt.Days,ce.Wide,J.Standalone);break;case"ccccc":Q=Qt(wt.Days,ce.Narrow,J.Standalone);break;case"cccccc":Q=Qt(wt.Days,ce.Short,J.Standalone);break;case"E":case"EE":case"EEE":Q=Qt(wt.Days,ce.Abbreviated);break;case"EEEE":Q=Qt(wt.Days,ce.Wide);break;case"EEEEE":Q=Qt(wt.Days,ce.Narrow);break;case"EEEEEE":Q=Qt(wt.Days,ce.Short);break;case"a":case"aa":case"aaa":Q=Qt(wt.DayPeriods,ce.Abbreviated);break;case"aaaa":Q=Qt(wt.DayPeriods,ce.Wide);break;case"aaaaa":Q=Qt(wt.DayPeriods,ce.Narrow);break;case"b":case"bb":case"bbb":Q=Qt(wt.DayPeriods,ce.Abbreviated,J.Standalone,!0);break;case"bbbb":Q=Qt(wt.DayPeriods,ce.Wide,J.Standalone,!0);break;case"bbbbb":Q=Qt(wt.DayPeriods,ce.Narrow,J.Standalone,!0);break;case"B":case"BB":case"BBB":Q=Qt(wt.DayPeriods,ce.Abbreviated,J.Format,!0);break;case"BBBB":Q=Qt(wt.DayPeriods,ce.Wide,J.Format,!0);break;case"BBBBB":Q=Qt(wt.DayPeriods,ce.Narrow,J.Format,!0);break;case"h":Q=Mt(pt.Hours,1,-12);break;case"hh":Q=Mt(pt.Hours,2,-12);break;case"H":Q=Mt(pt.Hours,1);break;case"HH":Q=Mt(pt.Hours,2);break;case"m":Q=Mt(pt.Minutes,1);break;case"mm":Q=Mt(pt.Minutes,2);break;case"s":Q=Mt(pt.Seconds,1);break;case"ss":Q=Mt(pt.Seconds,2);break;case"S":Q=Mt(pt.FractionalSeconds,1);break;case"SS":Q=Mt(pt.FractionalSeconds,2);break;case"SSS":Q=Mt(pt.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":Q=yn(ft.Short);break;case"ZZZZZ":Q=yn(ft.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":Q=yn(ft.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":Q=yn(ft.Long);break;default:return null}return qe[x]=Q,Q}(In);wn+=cn?cn(ze,F,Tn):"''"===In?"'":In.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),wn}function en(x,Q,F){const ne=new Date(0);return ne.setFullYear(x,Q,F),ne.setHours(0,0,0),ne}function Bt(x,Q){const F=ge(x);if(Ge[F]=Ge[F]||{},Ge[F][Q])return Ge[F][Q];let ne="";switch(Q){case"shortDate":ne=Ze(x,Se.Short);break;case"mediumDate":ne=Ze(x,Se.Medium);break;case"longDate":ne=Ze(x,Se.Long);break;case"fullDate":ne=Ze(x,Se.Full);break;case"shortTime":ne=Z(x,Se.Short);break;case"mediumTime":ne=Z(x,Se.Medium);break;case"longTime":ne=Z(x,Se.Long);break;case"fullTime":ne=Z(x,Se.Full);break;case"short":const ze=Bt(x,"shortTime"),ct=Bt(x,"shortDate");ne=En(me(x,Se.Short),[ze,ct]);break;case"medium":const vt=Bt(x,"mediumTime"),Rt=Bt(x,"mediumDate");ne=En(me(x,Se.Medium),[vt,Rt]);break;case"long":const Tn=Bt(x,"longTime"),wn=Bt(x,"longDate");ne=En(me(x,Se.Long),[Tn,wn]);break;case"full":const In=Bt(x,"fullTime"),cn=Bt(x,"fullDate");ne=En(me(x,Se.Full),[In,cn])}return ne&&(Ge[F][Q]=ne),ne}function En(x,Q){return Q&&(x=x.replace(/\{([^}]+)}/g,function(F,ne){return null!=Q&&ne in Q?Q[ne]:F})),x}function rn(x,Q,F="-",ne,ze){let ct="";(x<0||ze&&x<=0)&&(ze?x=1-x:(x=-x,ct=F));let vt=String(x);for(;vt.length<Q;)vt="0"+vt;return ne&&(vt=vt.substr(vt.length-Q)),ct+vt}function Mt(x,Q,F=0,ne=!1,ze=!1){return function(ct,vt){let Rt=function bn(x,Q){switch(x){case pt.FullYear:return Q.getFullYear();case pt.Month:return Q.getMonth();case pt.Date:return Q.getDate();case pt.Hours:return Q.getHours();case pt.Minutes:return Q.getMinutes();case pt.Seconds:return Q.getSeconds();case pt.FractionalSeconds:return Q.getMilliseconds();case pt.Day:return Q.getDay();default:throw new Error(`Unknown DateType value "${x}".`)}}(x,ct);if((F>0||Rt>-F)&&(Rt+=F),x===pt.Hours)0===Rt&&-12===F&&(Rt=12);else if(x===pt.FractionalSeconds)return function Wt(x,Q){return rn(x,3).substr(0,Q)}(Rt,Q);const Tn=Me(vt,re.MinusSign);return rn(Rt,Q,Tn,ne,ze)}}function Qt(x,Q,F=J.Format,ne=!1){return function(ze,ct){return function on(x,Q,F,ne,ze,ct){switch(F){case wt.Months:return He(Q,ze,ne)[x.getMonth()];case wt.Days:return ye(Q,ze,ne)[x.getDay()];case wt.DayPeriods:const vt=x.getHours(),Rt=x.getMinutes();if(ct){const wn=Qe(Q),In=N(Q,ze,ne),cn=wn.findIndex(k=>{if(Array.isArray(k)){const[O,D]=k,X=vt>=O.hours&&Rt>=O.minutes,at=vt<D.hours||vt===D.hours&&Rt<D.minutes;if(O.hours<D.hours){if(X&&at)return!0}else if(X||at)return!0}else if(k.hours===vt&&k.minutes===Rt)return!0;return!1});if(-1!==cn)return In[cn]}return it(Q,ze,ne)[vt<12?0:1];case wt.Eras:return dt(Q,ne)[x.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${F}`)}}(ze,ct,x,Q,F,ne)}}function yn(x){return function(Q,F,ne){const ze=-1*ne,ct=Me(F,re.MinusSign),vt=ze>0?Math.floor(ze/60):Math.ceil(ze/60);switch(x){case ft.Short:return(ze>=0?"+":"")+rn(vt,2,ct)+rn(Math.abs(ze%60),2,ct);case ft.ShortGMT:return"GMT"+(ze>=0?"+":"")+rn(vt,1,ct);case ft.Long:return"GMT"+(ze>=0?"+":"")+rn(vt,2,ct)+":"+rn(Math.abs(ze%60),2,ct);case ft.Extended:return 0===ne?"Z":(ze>=0?"+":"")+rn(vt,2,ct)+":"+rn(Math.abs(ze%60),2,ct);default:throw new Error(`Unknown zone width "${x}"`)}}}function C(x){return en(x.getFullYear(),x.getMonth(),x.getDate()+(4-x.getDay()))}function T(x,Q=!1){return function(F,ne){let ze;if(Q){const ct=new Date(F.getFullYear(),F.getMonth(),1).getDay()-1,vt=F.getDate();ze=1+Math.floor((vt+ct)/7)}else{const ct=C(F),vt=function m(x){const Q=en(x,0,1).getDay();return en(x,0,1+(Q<=4?4:11)-Q)}(ct.getFullYear()),Rt=ct.getTime()-vt.getTime();ze=1+Math.round(Rt/6048e5)}return rn(ze,x,Me(ne,re.MinusSign))}}function K(x,Q=!1){return function(F,ne){return rn(C(F).getFullYear(),x,Me(ne,re.MinusSign),Q)}}const qe={};function zt(x,Q){x=x.replace(/:/g,"");const F=Date.parse("Jan 01, 1970 00:00:00 "+x)/6e4;return isNaN(F)?Q:F}function $e(x){return x instanceof Date&&!isNaN(x.valueOf())}const ut=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function zn(x,Q,F,ne,ze,ct,vt=!1){let Rt="",Tn=!1;if(isFinite(x)){let wn=function Xe(x){let ne,ze,ct,vt,Rt,Q=Math.abs(x)+"",F=0;for((ze=Q.indexOf("."))>-1&&(Q=Q.replace(".","")),(ct=Q.search(/e/i))>0?(ze<0&&(ze=ct),ze+=+Q.slice(ct+1),Q=Q.substring(0,ct)):ze<0&&(ze=Q.length),ct=0;"0"===Q.charAt(ct);ct++);if(ct===(Rt=Q.length))ne=[0],ze=1;else{for(Rt--;"0"===Q.charAt(Rt);)Rt--;for(ze-=ct,ne=[],vt=0;ct<=Rt;ct++,vt++)ne[vt]=Number(Q.charAt(ct))}return ze>22&&(ne=ne.splice(0,21),F=ze-1,ze=1),{digits:ne,exponent:F,integerLen:ze}}(x);vt&&(wn=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}(wn));let In=Q.minInt,cn=Q.minFrac,k=Q.maxFrac;if(ct){const Pn=ct.match(ut);if(null===Pn)throw new Error(`${ct} is not a valid digit info`);const qn=Pn[1],gi=Pn[3],Ni=Pn[5];null!=qn&&(In=St(qn)),null!=gi&&(cn=St(gi)),null!=Ni?k=St(Ni):null!=gi&&cn>k&&(k=cn)}!function st(x,Q,F){if(Q>F)throw new Error(`The minimum number of digits after fraction (${Q}) is higher than the maximum (${F}).`);let ne=x.digits,ze=ne.length-x.integerLen;const ct=Math.min(Math.max(Q,ze),F);let vt=ct+x.integerLen,Rt=ne[vt];if(vt>0){ne.splice(Math.max(x.integerLen,vt));for(let cn=vt;cn<ne.length;cn++)ne[cn]=0}else{ze=Math.max(0,ze),x.integerLen=1,ne.length=Math.max(1,vt=ct+1),ne[0]=0;for(let cn=1;cn<vt;cn++)ne[cn]=0}if(Rt>=5)if(vt-1<0){for(let cn=0;cn>vt;cn--)ne.unshift(0),x.integerLen++;ne.unshift(1),x.integerLen++}else ne[vt-1]++;for(;ze<Math.max(0,ct);ze++)ne.push(0);let Tn=0!==ct;const wn=Q+x.integerLen,In=ne.reduceRight(function(cn,k,O,D){return D[O]=(k+=cn)<10?k:k-10,Tn&&(0===D[O]&&O>=wn?D.pop():Tn=!1),k>=10?1:0},0);In&&(ne.unshift(In),x.integerLen++)}(wn,cn,k);let O=wn.digits,D=wn.integerLen;const X=wn.exponent;let at=[];for(Tn=O.every(Pn=>!Pn);D<In;D++)O.unshift(0);for(;D<0;D++)O.unshift(0);D>0?at=O.splice(D,O.length):(at=O,O=[0]);const Vt=[];for(O.length>=Q.lgSize&&Vt.unshift(O.splice(-Q.lgSize,O.length).join(""));O.length>Q.gSize;)Vt.unshift(O.splice(-Q.gSize,O.length).join(""));O.length&&Vt.unshift(O.join("")),Rt=Vt.join(Me(F,ne)),at.length&&(Rt+=Me(F,ze)+at.join("")),X&&(Rt+=Me(F,re.Exponential)+"+"+X)}else Rt=Me(F,re.Infinity);return Rt=x<0&&!Tn?Q.negPre+Rt+Q.negSuf:Q.posPre+Rt+Q.posSuf,Rt}function Bn(x,Q,F,ne,ze){const vt=W(Re(Q,q.Currency),Me(Q,re.MinusSign));return vt.minFrac=se(ne),vt.maxFrac=vt.minFrac,zn(x,vt,Q,re.CurrencyGroup,re.CurrencyDecimal,ze).replace("\xa4",F).replace("\xa4","").trim()}function H(x,Q,F){return zn(x,W(Re(Q,q.Percent),Me(Q,re.MinusSign)),Q,re.Group,re.Decimal,F,!0).replace(new RegExp("%","g"),Me(Q,re.PercentSign))}function Ie(x,Q,F){return zn(x,W(Re(Q,q.Decimal),Me(Q,re.MinusSign)),Q,re.Group,re.Decimal,F)}function W(x,Q="-"){const F={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},ne=x.split(";"),ze=ne[0],ct=ne[1],vt=-1!==ze.indexOf(".")?ze.split("."):[ze.substring(0,ze.lastIndexOf("0")+1),ze.substring(ze.lastIndexOf("0")+1)],Rt=vt[0],Tn=vt[1]||"";F.posPre=Rt.substr(0,Rt.indexOf("#"));for(let In=0;In<Tn.length;In++){const cn=Tn.charAt(In);"0"===cn?F.minFrac=F.maxFrac=In+1:"#"===cn?F.maxFrac=In+1:F.posSuf+=cn}const wn=Rt.split(",");if(F.gSize=wn[1]?wn[1].length:0,F.lgSize=wn[2]||wn[1]?(wn[2]||wn[1]).length:0,ct){const In=ze.length-F.posPre.length-F.posSuf.length,cn=ct.indexOf("#");F.negPre=ct.substr(0,cn).replace(/'/g,""),F.negSuf=ct.substr(cn+In).replace(/'/g,"")}else F.negPre=Q+F.posPre,F.negSuf=F.posSuf;return F}function St(x){const Q=parseInt(x);if(isNaN(Q))throw new Error("Invalid integer literal when parsing "+x);return Q}class Nt{}function Jt(x,Q,F,ne){let ze=`=${x}`;if(Q.indexOf(ze)>-1||(ze=F.getPluralCategory(x,ne),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 Nt{constructor(F){super(),this.locale=F}getPluralCategory(F,ne){switch(Ot(ne||this.locale)(F)){case Pe.Zero:return"zero";case Pe.One:return"one";case Pe.Two:return"two";case Pe.Few:return"few";case Pe.Many:return"many";default:return"other"}}}return x.\u0275fac=function(F){return new(F||x)(i.\u0275\u0275inject(i.LOCALE_ID))},x.\u0275prov=i.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac}),x})();function jt(x,Q,F){return(0,i.\u0275registerLocaleData)(x,Q,F)}function On(x,Q){Q=encodeURIComponent(Q);for(const F of x.split(";")){const ne=F.indexOf("="),[ze,ct]=-1==ne?[F,""]:[F.slice(0,ne),F.slice(ne+1)];if(ze.trim()===Q)return decodeURIComponent(ct)}return null}let ln=(()=>{class x{constructor(F,ne,ze,ct){this._iterableDiffers=F,this._keyValueDiffers=ne,this._ngEl=ze,this._renderer=ct,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(F){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof F?F.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(F){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof F?F.split(/\s+/):F,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 F=this._iterableDiffer.diff(this._rawClass);F&&this._applyIterableChanges(F)}else if(this._keyValueDiffer){const F=this._keyValueDiffer.diff(this._rawClass);F&&this._applyKeyValueChanges(F)}}_applyKeyValueChanges(F){F.forEachAddedItem(ne=>this._toggleClass(ne.key,ne.currentValue)),F.forEachChangedItem(ne=>this._toggleClass(ne.key,ne.currentValue)),F.forEachRemovedItem(ne=>{ne.previousValue&&this._toggleClass(ne.key,!1)})}_applyIterableChanges(F){F.forEachAddedItem(ne=>{if("string"!=typeof ne.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,i.\u0275stringify)(ne.item)}`);this._toggleClass(ne.item,!0)}),F.forEachRemovedItem(ne=>this._toggleClass(ne.item,!1))}_applyClasses(F){F&&(Array.isArray(F)||F instanceof Set?F.forEach(ne=>this._toggleClass(ne,!0)):Object.keys(F).forEach(ne=>this._toggleClass(ne,!!F[ne])))}_removeClasses(F){F&&(Array.isArray(F)||F instanceof Set?F.forEach(ne=>this._toggleClass(ne,!1)):Object.keys(F).forEach(ne=>this._toggleClass(ne,!1)))}_toggleClass(F,ne){(F=F.trim())&&F.split(/\s+/g).forEach(ze=>{ne?this._renderer.addClass(this._ngEl.nativeElement,ze):this._renderer.removeClass(this._ngEl.nativeElement,ze)})}}return x.\u0275fac=function(F){return new(F||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})(),$n=(()=>{class x{constructor(F){this._viewContainerRef=F,this._componentRef=null,this._moduleRef=null}ngOnChanges(F){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){const ne=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(F.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){const vt=ne.get(i.NgModuleRef);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(vt.injector)}else this._moduleRef=null;const ct=(this._moduleRef?this._moduleRef.componentFactoryResolver:ne.get(i.ComponentFactoryResolver)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(ct,this._viewContainerRef.length,ne,this.ngComponentOutletContent)}}ngOnDestroy(){this._moduleRef&&this._moduleRef.destroy()}}return x.\u0275fac=function(F){return new(F||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,F,ne,ze){this.$implicit=Q,this.ngForOf=F,this.index=ne,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(F,ne,ze){this._viewContainer=F,this._template=ne,this._differs=ze,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(F){this._ngForOf=F,this._ngForOfDirty=!0}set ngForTrackBy(F){this._trackByFn=F}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(F){F&&(this._template=F)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const F=this._ngForOf;!this._differ&&F&&(this._differ=this._differs.find(F).create(this.ngForTrackBy))}if(this._differ){const F=this._differ.diff(this._ngForOf);F&&this._applyChanges(F)}}_applyChanges(F){const ne=this._viewContainer;F.forEachOperation((ze,ct,vt)=>{if(null==ze.previousIndex)ne.createEmbeddedView(this._template,new Un(ze.item,this._ngForOf,-1,-1),null===vt?void 0:vt);else if(null==vt)ne.remove(null===ct?void 0:ct);else if(null!==ct){const Rt=ne.get(ct);ne.move(Rt,vt),kn(Rt,ze)}});for(let ze=0,ct=ne.length;ze<ct;ze++){const Rt=ne.get(ze).context;Rt.index=ze,Rt.count=ct,Rt.ngForOf=this._ngForOf}F.forEachIdentityChange(ze=>{kn(ne.get(ze.currentIndex),ze)})}static ngTemplateContextGuard(F,ne){return!0}}return x.\u0275fac=function(F){return new(F||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(F,ne){this._viewContainer=F,this._context=new mn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=ne}set ngIf(F){this._context.$implicit=this._context.ngIf=F,this._updateView()}set ngIfThen(F){ni("ngIfThen",F),this._thenTemplateRef=F,this._thenViewRef=null,this._updateView()}set ngIfElse(F){ni("ngIfElse",F),this._elseTemplateRef=F,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(F,ne){return!0}}return x.\u0275fac=function(F){return new(F||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,F){this._viewContainerRef=Q,this._templateRef=F,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(F){this._ngSwitch=F,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(F){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(F)}_matchCase(F){const ne=F==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||ne,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),ne}_updateDefaultCases(F){if(this._defaultViews&&F!==this._defaultUsed){this._defaultUsed=F;for(let ne=0;ne<this._defaultViews.length;ne++)this._defaultViews[ne].enforceState(F)}}}return x.\u0275fac=function(F){return new(F||x)},x.\u0275dir=i.\u0275\u0275defineDirective({type:x,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),x})(),Gn=(()=>{class x{constructor(F,ne,ze){this.ngSwitch=ze,ze._addCase(),this._view=new li(F,ne)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return x.\u0275fac=function(F){return new(F||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(F,ne,ze){ze._addDefault(new li(F,ne))}}return x.\u0275fac=function(F){return new(F||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(F){this._localization=F,this._caseViews={}}set ngPlural(F){this._switchValue=F,this._updateView()}addCase(F,ne){this._caseViews[F]=ne}_updateView(){this._clearViews();const F=Object.keys(this._caseViews),ne=Jt(this._switchValue,F,this._localization);this._activateView(this._caseViews[ne])}_clearViews(){this._activeView&&this._activeView.destroy()}_activateView(F){F&&(this._activeView=F,this._activeView.create())}}return x.\u0275fac=function(F){return new(F||x)(i.\u0275\u0275directiveInject(Nt))},x.\u0275dir=i.\u0275\u0275defineDirective({type:x,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"}}),x})(),Wn=(()=>{class x{constructor(F,ne,ze,ct){this.value=F;const vt=!isNaN(Number(F));ct.addCase(vt?`=${F}`:F,new li(ze,ne))}}return x.\u0275fac=function(F){return new(F||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(F,ne,ze){this._ngEl=F,this._differs=ne,this._renderer=ze,this._ngStyle=null,this._differ=null}set ngStyle(F){this._ngStyle=F,!this._differ&&F&&(this._differ=this._differs.find(F).create())}ngDoCheck(){if(this._differ){const F=this._differ.diff(this._ngStyle);F&&this._applyChanges(F)}}_setStyle(F,ne){const[ze,ct]=F.split(".");null!=(ne=null!=ne&&ct?`${ne}${ct}`:ne)?this._renderer.setStyle(this._ngEl.nativeElement,ze,ne):this._renderer.removeStyle(this._ngEl.nativeElement,ze)}_applyChanges(F){F.forEachRemovedItem(ne=>this._setStyle(ne.key,null)),F.forEachAddedItem(ne=>this._setStyle(ne.key,ne.currentValue)),F.forEachChangedItem(ne=>this._setStyle(ne.key,ne.currentValue))}}return x.\u0275fac=function(F){return new(F||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(F){this._viewContainerRef=F,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(F){if(F.ngTemplateOutlet){const ne=this._viewContainerRef;this._viewRef&&ne.remove(ne.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?ne.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&F.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return x.\u0275fac=function(F){return new(F||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,F){return Q.subscribe({next:F,error:ne=>{throw ne}})}dispose(Q){Q.unsubscribe()}onDestroy(Q){Q.unsubscribe()}}class Ei{createSubscription(Q,F){return Q.then(F,ne=>{throw ne})}dispose(Q){}onDestroy(Q){}}const Ui=new Ei,Lr=new Zn;let Wi=(()=>{class x{constructor(F){this._ref=F,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(F){return this._obj?F!==this._obj?(this._dispose(),this.transform(F)):this._latestValue:(F&&this._subscribe(F),this._latestValue)}_subscribe(F){this._obj=F,this._strategy=this._selectStrategy(F),this._subscription=this._strategy.createSubscription(F,ne=>this._updateLatestValue(F,ne))}_selectStrategy(F){if((0,i.\u0275isPromise)(F))return Ui;if((0,i.\u0275isSubscribable)(F))return Lr;throw Qn(x,F)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(F,ne){F===this._obj&&(this._latestValue=ne,this._ref.markForCheck())}}return x.\u0275fac=function(F){return new(F||x)(i.\u0275\u0275directiveInject(i.ChangeDetectorRef,16))},x.\u0275pipe=i.\u0275\u0275definePipe({name:"async",type:x,pure:!1}),x})(),Ir=(()=>{class x{transform(F){if(null==F)return null;if("string"!=typeof F)throw Qn(x,F);return F.toLowerCase()}}return x.\u0275fac=function(F){return new(F||x)},x.\u0275pipe=i.\u0275\u0275definePipe({name:"lowercase",type:x,pure:!0}),x})();const Mi=/(?:[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(F){if(null==F)return null;if("string"!=typeof F)throw Qn(x,F);return F.replace(Mi,ne=>ne[0].toUpperCase()+ne.substr(1).toLowerCase())}}return x.\u0275fac=function(F){return new(F||x)},x.\u0275pipe=i.\u0275\u0275definePipe({name:"titlecase",type:x,pure:!0}),x})(),ci=(()=>{class x{transform(F){if(null==F)return null;if("string"!=typeof F)throw Qn(x,F);return F.toUpperCase()}}return x.\u0275fac=function(F){return new(F||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(F,ne){this.locale=F,this.defaultTimezone=ne}transform(F,ne="mediumDate",ze,ct){var vt;if(null==F||""===F||F!=F)return null;try{return $t(F,ne,ct||this.locale,null!==(vt=null!=ze?ze:this.defaultTimezone)&&void 0!==vt?vt:void 0)}catch(Rt){throw Qn(x,Rt.message)}}}return x.\u0275fac=function(F){return new(F||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 Pr=/#/g;let Ar=(()=>{class x{constructor(F){this._localization=F}transform(F,ne,ze){if(null==F)return"";if("object"!=typeof ne||null===ne)throw Qn(x,ne);return ne[Jt(F,Object.keys(ne),this._localization,ze)].replace(Pr,F.toString())}}return x.\u0275fac=function(F){return new(F||x)(i.\u0275\u0275directiveInject(Nt,16))},x.\u0275pipe=i.\u0275\u0275definePipe({name:"i18nPlural",type:x,pure:!0}),x})(),Ki=(()=>{class x{transform(F,ne){if(null==F)return"";if("object"!=typeof ne||"string"!=typeof F)throw Qn(x,ne);return ne.hasOwnProperty(F)?ne[F]:ne.hasOwnProperty("other")?ne.other:""}}return x.\u0275fac=function(F){return new(F||x)},x.\u0275pipe=i.\u0275\u0275definePipe({name:"i18nSelect",type:x,pure:!0}),x})(),Si=(()=>{class x{transform(F){return JSON.stringify(F,null,2)}}return x.\u0275fac=function(F){return new(F||x)},x.\u0275pipe=i.\u0275\u0275definePipe({name:"json",type:x,pure:!1}),x})(),Or=(()=>{class x{constructor(F){this.differs=F,this.keyValues=[],this.compareFn=Ii}transform(F,ne=Ii){if(!F||!(F instanceof Map)&&"object"!=typeof F)return null;this.differ||(this.differ=this.differs.find(F).create());const ze=this.differ.diff(F),ct=ne!==this.compareFn;return ze&&(this.keyValues=[],ze.forEachItem(vt=>{this.keyValues.push(function Gi(x,Q){return{key:x,value:Q}}(vt.key,vt.currentValue))})),(ze||ct)&&(this.keyValues.sort(ne),this.compareFn=ne),this.keyValues}}return x.\u0275fac=function(F){return new(F||x)(i.\u0275\u0275directiveInject(i.KeyValueDiffers,16))},x.\u0275pipe=i.\u0275\u0275definePipe({name:"keyvalue",type:x,pure:!1}),x})();function Ii(x,Q){const F=x.key,ne=Q.key;if(F===ne)return 0;if(void 0===F)return 1;if(void 0===ne)return-1;if(null===F)return 1;if(null===ne)return-1;if("string"==typeof F&&"string"==typeof ne)return F<ne?-1:1;if("number"==typeof F&&"number"==typeof ne)return F-ne;if("boolean"==typeof F&&"boolean"==typeof ne)return F<ne?-1:1;const ze=String(F),ct=String(ne);return ze==ct?0:ze<ct?-1:1}let _r=(()=>{class x{constructor(F){this._locale=F}transform(F,ne,ze){if(!pi(F))return null;ze=ze||this._locale;try{return Ie(Qi(F),ze,ne)}catch(ct){throw Qn(x,ct.message)}}}return x.\u0275fac=function(F){return new(F||x)(i.\u0275\u0275directiveInject(i.LOCALE_ID,16))},x.\u0275pipe=i.\u0275\u0275definePipe({name:"number",type:x,pure:!0}),x})(),fi=(()=>{class x{constructor(F){this._locale=F}transform(F,ne,ze){if(!pi(F))return null;ze=ze||this._locale;try{return H(Qi(F),ze,ne)}catch(ct){throw Qn(x,ct.message)}}}return x.\u0275fac=function(F){return new(F||x)(i.\u0275\u0275directiveInject(i.LOCALE_ID,16))},x.\u0275pipe=i.\u0275\u0275definePipe({name:"percent",type:x,pure:!0}),x})(),Pi=(()=>{class x{constructor(F,ne="USD"){this._locale=F,this._defaultCurrencyCode=ne}transform(F,ne=this._defaultCurrencyCode,ze="symbol",ct,vt){if(!pi(F))return null;vt=vt||this._locale,"boolean"==typeof ze&&(ze=ze?"symbol":"code");let Rt=ne||this._defaultCurrencyCode;"code"!==ze&&(Rt="symbol"===ze||"symbol-narrow"===ze?Te(Rt,"symbol"===ze?"wide":"narrow",vt):ze);try{return Bn(Qi(F),vt,Rt,ne,ct)}catch(Tn){throw Qn(x,Tn.message)}}}return x.\u0275fac=function(F){return new(F||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(F,ne,ze){if(null==F)return null;if(!this.supports(F))throw Qn(x,F);return F.slice(ne,ze)}supports(F){return"string"==typeof F||Array.isArray(F)}}return x.\u0275fac=function(F){return new(F||x)},x.\u0275pipe=i.\u0275\u0275definePipe({name:"slice",type:x,pure:!1}),x})(),rr=(()=>{class x{}return x.\u0275fac=function(F){return new(F||x)},x.\u0275mod=i.\u0275\u0275defineNgModule({type:x}),x.\u0275inj=i.\u0275\u0275defineInjector({providers:[{provide:Nt,useClass:vn}]}),x})();const Ai="browser",Oi="server",xi="browserWorkerApp",Zi="browserWorkerUi";function ti(x){return x===Ai}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)(E),window)}),x})();class xr{constructor(Q,F){this.document=Q,this.window=F,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 F=function sr(x,Q){const F=x.getElementById(Q)||x.getElementsByName(Q)[0];if(F)return F;if("function"==typeof x.createTreeWalker&&x.body&&(x.body.createShadowRoot||x.body.attachShadow)){const ne=x.createTreeWalker(x.body,NodeFilter.SHOW_ELEMENT);let ze=ne.currentNode;for(;ze;){const ct=ze.shadowRoot;if(ct){const vt=ct.getElementById(Q)||ct.querySelector(`[name="${Q}"]`);if(vt)return vt}ze=ne.nextNode()}}return null}(this.document,Q);F&&(this.scrollToElement(F),this.attemptFocus(F))}setHistoryScrollRestoration(Q){if(this.supportScrollRestoration()){const F=this.window.history;F&&F.scrollRestoration&&(F.scrollRestoration=Q)}}scrollToElement(Q){const F=Q.getBoundingClientRect(),ne=F.left+this.window.pageXOffset,ze=F.top+this.window.pageYOffset,ct=this.offset();this.window.scrollTo(ne-ct[0],ze-ct[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,_,l)=>{"use strict";l.r(_),l.d(_,{HTTP_INTERCEPTORS:()=>ge,HttpBackend:()=>I,HttpClient:()=>re,HttpClientJsonpModule:()=>ue,HttpClientModule:()=>Oe,HttpClientXsrfModule:()=>ae,HttpContext:()=>we,HttpContextToken:()=>ie,HttpErrorResponse:()=>ce,HttpEventType:()=>ot,HttpHandler:()=>w,HttpHeaderResponse:()=>Pe,HttpHeaders:()=>h,HttpParams:()=>$,HttpRequest:()=>Je,HttpResponse:()=>J,HttpResponseBase:()=>q,HttpUrlEncodingCodec:()=>A,HttpXhrBackend:()=>Re,HttpXsrfTokenExtractor:()=>ht,JsonpClientBackend:()=>Ze,JsonpInterceptor:()=>Z,XhrFactory:()=>Te,\u0275HttpInterceptingHandler:()=>lt});var i=l(9808),u=l(5e3),g=l(9646),c=l(9751),s=l(4351),y=l(9300),E=l(4004);class w{}class I{}class h{constructor(se){this.normalizedNames=new Map,this.lazyUpdate=null,se?this.lazyInit="string"==typeof se?()=>{this.headers=new Map,se.split("\n").forEach(Ce=>{const Ge=Ce.indexOf(":");if(Ge>0){const tt=Ce.slice(0,Ge),ft=tt.toLowerCase(),pt=Ce.slice(Ge+1).trim();this.maybeSetNormalizedName(tt,ft),this.headers.has(ft)?this.headers.get(ft).push(pt):this.headers.set(ft,[pt])}})}:()=>{this.headers=new Map,Object.keys(se).forEach(Ce=>{let Ge=se[Ce];const tt=Ce.toLowerCase();"string"==typeof Ge&&(Ge=[Ge]),Ge.length>0&&(this.headers.set(tt,Ge),this.maybeSetNormalizedName(Ce,tt))})}:this.headers=new Map}has(se){return this.init(),this.headers.has(se.toLowerCase())}get(se){this.init();const Ce=this.headers.get(se.toLowerCase());return Ce&&Ce.length>0?Ce[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(se){return this.init(),this.headers.get(se.toLowerCase())||null}append(se,Ce){return this.clone({name:se,value:Ce,op:"a"})}set(se,Ce){return this.clone({name:se,value:Ce,op:"s"})}delete(se,Ce){return this.clone({name:se,value:Ce,op:"d"})}maybeSetNormalizedName(se,Ce){this.normalizedNames.has(Ce)||this.normalizedNames.set(Ce,se)}init(){this.lazyInit&&(this.lazyInit instanceof h?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(se=>this.applyUpdate(se)),this.lazyUpdate=null))}copyFrom(se){se.init(),Array.from(se.headers.keys()).forEach(Ce=>{this.headers.set(Ce,se.headers.get(Ce)),this.normalizedNames.set(Ce,se.normalizedNames.get(Ce))})}clone(se){const Ce=new h;return Ce.lazyInit=this.lazyInit&&this.lazyInit instanceof h?this.lazyInit:this,Ce.lazyUpdate=(this.lazyUpdate||[]).concat([se]),Ce}applyUpdate(se){const Ce=se.name.toLowerCase();switch(se.op){case"a":case"s":let Ge=se.value;if("string"==typeof Ge&&(Ge=[Ge]),0===Ge.length)return;this.maybeSetNormalizedName(se.name,Ce);const tt=("a"===se.op?this.headers.get(Ce):void 0)||[];tt.push(...Ge),this.headers.set(Ce,tt);break;case"d":const ft=se.value;if(ft){let pt=this.headers.get(Ce);if(!pt)return;pt=pt.filter(wt=>-1===ft.indexOf(wt)),0===pt.length?(this.headers.delete(Ce),this.normalizedNames.delete(Ce)):this.headers.set(Ce,pt)}else this.headers.delete(Ce),this.normalizedNames.delete(Ce)}}forEach(se){this.init(),Array.from(this.normalizedNames.keys()).forEach(Ce=>se(this.normalizedNames.get(Ce),this.headers.get(Ce)))}}class A{encodeKey(se){return V(se)}encodeValue(se){return V(se)}decodeKey(se){return decodeURIComponent(se)}decodeValue(se){return decodeURIComponent(se)}}const b=/%(\d[a-f0-9])/gi,R={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function V(be){return encodeURIComponent(be).replace(b,(se,Ce)=>{var Ge;return null!==(Ge=R[Ce])&&void 0!==Ge?Ge:se})}function fe(be){return`${be}`}class ${constructor(se={}){if(this.updates=null,this.cloneFrom=null,this.encoder=se.encoder||new A,se.fromString){if(se.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function M(be,se){const Ce=new Map;return be.length>0&&be.replace(/^\?/,"").split("&").forEach(tt=>{const ft=tt.indexOf("="),[pt,wt]=-1==ft?[se.decodeKey(tt),""]:[se.decodeKey(tt.slice(0,ft)),se.decodeValue(tt.slice(ft+1))],$t=Ce.get(pt)||[];$t.push(wt),Ce.set(pt,$t)}),Ce}(se.fromString,this.encoder)}else se.fromObject?(this.map=new Map,Object.keys(se.fromObject).forEach(Ce=>{const Ge=se.fromObject[Ce];this.map.set(Ce,Array.isArray(Ge)?Ge:[Ge])})):this.map=null}has(se){return this.init(),this.map.has(se)}get(se){this.init();const Ce=this.map.get(se);return Ce?Ce[0]:null}getAll(se){return this.init(),this.map.get(se)||null}keys(){return this.init(),Array.from(this.map.keys())}append(se,Ce){return this.clone({param:se,value:Ce,op:"a"})}appendAll(se){const Ce=[];return Object.keys(se).forEach(Ge=>{const tt=se[Ge];Array.isArray(tt)?tt.forEach(ft=>{Ce.push({param:Ge,value:ft,op:"a"})}):Ce.push({param:Ge,value:tt,op:"a"})}),this.clone(Ce)}set(se,Ce){return this.clone({param:se,value:Ce,op:"s"})}delete(se,Ce){return this.clone({param:se,value:Ce,op:"d"})}toString(){return this.init(),this.keys().map(se=>{const Ce=this.encoder.encodeKey(se);return this.map.get(se).map(Ge=>Ce+"="+this.encoder.encodeValue(Ge)).join("&")}).filter(se=>""!==se).join("&")}clone(se){const Ce=new $({encoder:this.encoder});return Ce.cloneFrom=this.cloneFrom||this,Ce.updates=(this.updates||[]).concat(se),Ce}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(se=>this.map.set(se,this.cloneFrom.map.get(se))),this.updates.forEach(se=>{switch(se.op){case"a":case"s":const Ce=("a"===se.op?this.map.get(se.param):void 0)||[];Ce.push(fe(se.value)),this.map.set(se.param,Ce);break;case"d":if(void 0===se.value){this.map.delete(se.param);break}{let Ge=this.map.get(se.param)||[];const tt=Ge.indexOf(fe(se.value));-1!==tt&&Ge.splice(tt,1),Ge.length>0?this.map.set(se.param,Ge):this.map.delete(se.param)}}}),this.cloneFrom=this.updates=null)}}class ie{constructor(se){this.defaultValue=se}}class we{constructor(){this.map=new Map}set(se,Ce){return this.map.set(se,Ce),this}get(se){return this.map.has(se)||this.map.set(se,se.defaultValue()),this.map.get(se)}delete(se){return this.map.delete(se),this}has(se){return this.map.has(se)}keys(){return this.map.keys()}}function _e(be){return"undefined"!=typeof ArrayBuffer&&be instanceof ArrayBuffer}function le(be){return"undefined"!=typeof Blob&&be instanceof Blob}function De(be){return"undefined"!=typeof FormData&&be instanceof FormData}class Je{constructor(se,Ce,Ge,tt){let ft;if(this.url=Ce,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=se.toUpperCase(),function pe(be){switch(be){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||tt?(this.body=void 0!==Ge?Ge:null,ft=tt):ft=Ge,ft&&(this.reportProgress=!!ft.reportProgress,this.withCredentials=!!ft.withCredentials,ft.responseType&&(this.responseType=ft.responseType),ft.headers&&(this.headers=ft.headers),ft.context&&(this.context=ft.context),ft.params&&(this.params=ft.params)),this.headers||(this.headers=new h),this.context||(this.context=new we),this.params){const pt=this.params.toString();if(0===pt.length)this.urlWithParams=Ce;else{const wt=Ce.indexOf("?");this.urlWithParams=Ce+(-1===wt?"?":wt<Ce.length-1?"&":"")+pt}}else this.params=new $,this.urlWithParams=Ce}serializeBody(){return null===this.body?null:_e(this.body)||le(this.body)||De(this.body)||function Fe(be){return"undefined"!=typeof URLSearchParams&&be instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof $?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||De(this.body)?null:le(this.body)?this.body.type||null:_e(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof $?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(se={}){var Ce;const Ge=se.method||this.method,tt=se.url||this.url,ft=se.responseType||this.responseType,pt=void 0!==se.body?se.body:this.body,wt=void 0!==se.withCredentials?se.withCredentials:this.withCredentials,$t=void 0!==se.reportProgress?se.reportProgress:this.reportProgress;let en=se.headers||this.headers,Bt=se.params||this.params;const En=null!==(Ce=se.context)&&void 0!==Ce?Ce:this.context;return void 0!==se.setHeaders&&(en=Object.keys(se.setHeaders).reduce((rn,Wt)=>rn.set(Wt,se.setHeaders[Wt]),en)),se.setParams&&(Bt=Object.keys(se.setParams).reduce((rn,Wt)=>rn.set(Wt,se.setParams[Wt]),Bt)),new Je(Ge,tt,pt,{params:Bt,headers:en,context:En,reportProgress:$t,responseType:ft,withCredentials:wt})}}var ot=(()=>((ot=ot||{})[ot.Sent=0]="Sent",ot[ot.UploadProgress=1]="UploadProgress",ot[ot.ResponseHeader=2]="ResponseHeader",ot[ot.DownloadProgress=3]="DownloadProgress",ot[ot.Response=4]="Response",ot[ot.User=5]="User",ot))();class q{constructor(se,Ce=200,Ge="OK"){this.headers=se.headers||new h,this.status=void 0!==se.status?se.status:Ce,this.statusText=se.statusText||Ge,this.url=se.url||null,this.ok=this.status>=200&&this.status<300}}class Pe extends q{constructor(se={}){super(se),this.type=ot.ResponseHeader}clone(se={}){return new Pe({headers:se.headers||this.headers,status:void 0!==se.status?se.status:this.status,statusText:se.statusText||this.statusText,url:se.url||this.url||void 0})}}class J extends q{constructor(se={}){super(se),this.type=ot.Response,this.body=void 0!==se.body?se.body:null}clone(se={}){return new J({body:void 0!==se.body?se.body:this.body,headers:se.headers||this.headers,status:void 0!==se.status?se.status:this.status,statusText:se.statusText||this.statusText,url:se.url||this.url||void 0})}}class ce extends q{constructor(se){super(se,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${se.url||"(unknown url)"}`:`Http failure response for ${se.url||"(unknown url)"}: ${se.status} ${se.statusText}`,this.error=se.error||null}}function Se(be,se){return{body:se,headers:be.headers,context:be.context,observe:be.observe,params:be.params,reportProgress:be.reportProgress,responseType:be.responseType,withCredentials:be.withCredentials}}let re=(()=>{class be{constructor(Ce){this.handler=Ce}request(Ce,Ge,tt={}){let ft;if(Ce instanceof Je)ft=Ce;else{let $t,en;$t=tt.headers instanceof h?tt.headers:new h(tt.headers),tt.params&&(en=tt.params instanceof $?tt.params:new $({fromObject:tt.params})),ft=new Je(Ce,Ge,void 0!==tt.body?tt.body:null,{headers:$t,context:tt.context,params:en,reportProgress:tt.reportProgress,responseType:tt.responseType||"json",withCredentials:tt.withCredentials})}const pt=(0,g.of)(ft).pipe((0,s.b)($t=>this.handler.handle($t)));if(Ce instanceof Je||"events"===tt.observe)return pt;const wt=pt.pipe((0,y.h)($t=>$t instanceof J));switch(tt.observe||"body"){case"body":switch(ft.responseType){case"arraybuffer":return wt.pipe((0,E.U)($t=>{if(null!==$t.body&&!($t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return $t.body}));case"blob":return wt.pipe((0,E.U)($t=>{if(null!==$t.body&&!($t.body instanceof Blob))throw new Error("Response is not a Blob.");return $t.body}));case"text":return wt.pipe((0,E.U)($t=>{if(null!==$t.body&&"string"!=typeof $t.body)throw new Error("Response is not a string.");return $t.body}));default:return wt.pipe((0,E.U)($t=>$t.body))}case"response":return wt;default:throw new Error(`Unreachable: unhandled observe type ${tt.observe}}`)}}delete(Ce,Ge={}){return this.request("DELETE",Ce,Ge)}get(Ce,Ge={}){return this.request("GET",Ce,Ge)}head(Ce,Ge={}){return this.request("HEAD",Ce,Ge)}jsonp(Ce,Ge){return this.request("JSONP",Ce,{params:(new $).append(Ge,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Ce,Ge={}){return this.request("OPTIONS",Ce,Ge)}patch(Ce,Ge,tt={}){return this.request("PATCH",Ce,Se(tt,Ge))}post(Ce,Ge,tt={}){return this.request("POST",Ce,Se(tt,Ge))}put(Ce,Ge,tt={}){return this.request("PUT",Ce,Se(tt,Ge))}}return be.\u0275fac=function(Ce){return new(Ce||be)(u.\u0275\u0275inject(w))},be.\u0275prov=u.\u0275\u0275defineInjectable({token:be,factory:be.\u0275fac}),be})();class Ke{constructor(se,Ce){this.next=se,this.interceptor=Ce}handle(se){return this.interceptor.intercept(se,this.next)}}const ge=new u.InjectionToken("HTTP_INTERCEPTORS");let it=(()=>{class be{intercept(Ce,Ge){return Ge.handle(Ce)}}return be.\u0275fac=function(Ce){return new(Ce||be)},be.\u0275prov=u.\u0275\u0275defineInjectable({token:be,factory:be.\u0275fac}),be})(),ye=0;class ke{}let Ze=(()=>{class be{constructor(Ce,Ge){this.callbackMap=Ce,this.document=Ge,this.resolvedPromise=Promise.resolve()}nextCallback(){return"ng_jsonp_callback_"+ye++}handle(Ce){if("JSONP"!==Ce.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==Ce.responseType)throw new Error("JSONP requests must use Json response type.");return new c.y(Ge=>{const tt=this.nextCallback(),ft=Ce.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,`=${tt}$1`),pt=this.document.createElement("script");pt.src=ft;let wt=null,$t=!1,en=!1;this.callbackMap[tt]=Wt=>{delete this.callbackMap[tt],!en&&(wt=Wt,$t=!0)};const Bt=()=>{pt.parentNode&&pt.parentNode.removeChild(pt),delete this.callbackMap[tt]},En=Wt=>{en||this.resolvedPromise.then(()=>{Bt(),$t?(Ge.next(new J({body:wt,status:200,statusText:"OK",url:ft})),Ge.complete()):Ge.error(new ce({url:ft,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")}))})},rn=Wt=>{en||(Bt(),Ge.error(new ce({error:Wt,status:0,statusText:"JSONP Error",url:ft})))};return pt.addEventListener("load",En),pt.addEventListener("error",rn),this.document.body.appendChild(pt),Ge.next({type:ot.Sent}),()=>{en=!0,pt.removeEventListener("load",En),pt.removeEventListener("error",rn),Bt()}})}}return be.\u0275fac=function(Ce){return new(Ce||be)(u.\u0275\u0275inject(ke),u.\u0275\u0275inject(i.DOCUMENT))},be.\u0275prov=u.\u0275\u0275defineInjectable({token:be,factory:be.\u0275fac}),be})(),Z=(()=>{class be{constructor(Ce){this.jsonp=Ce}intercept(Ce,Ge){return"JSONP"===Ce.method?this.jsonp.handle(Ce):Ge.handle(Ce)}}return be.\u0275fac=function(Ce){return new(Ce||be)(u.\u0275\u0275inject(Ze))},be.\u0275prov=u.\u0275\u0275defineInjectable({token:be,factory:be.\u0275fac}),be})();const me=/^\)\]\}',?\n/;let Re=(()=>{class be{constructor(Ce){this.xhrFactory=Ce}handle(Ce){if("JSONP"===Ce.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new c.y(Ge=>{const tt=this.xhrFactory.build();if(tt.open(Ce.method,Ce.urlWithParams),Ce.withCredentials&&(tt.withCredentials=!0),Ce.headers.forEach((Wt,Mt)=>tt.setRequestHeader(Wt,Mt.join(","))),Ce.headers.has("Accept")||tt.setRequestHeader("Accept","application/json, text/plain, */*"),!Ce.headers.has("Content-Type")){const Wt=Ce.detectContentTypeHeader();null!==Wt&&tt.setRequestHeader("Content-Type",Wt)}if(Ce.responseType){const Wt=Ce.responseType.toLowerCase();tt.responseType="json"!==Wt?Wt:"text"}const ft=Ce.serializeBody();let pt=null;const wt=()=>{if(null!==pt)return pt;const Wt=1223===tt.status?204:tt.status,Mt=tt.statusText||"OK",bn=new h(tt.getAllResponseHeaders()),Qt=function Me(be){return"responseURL"in be&&be.responseURL?be.responseURL:/^X-Request-URL:/m.test(be.getAllResponseHeaders())?be.getResponseHeader("X-Request-URL"):null}(tt)||Ce.url;return pt=new Pe({headers:bn,status:Wt,statusText:Mt,url:Qt}),pt},$t=()=>{let{headers:Wt,status:Mt,statusText:bn,url:Qt}=wt(),on=null;204!==Mt&&(on=void 0===tt.response?tt.responseText:tt.response),0===Mt&&(Mt=on?200:0);let yn=Mt>=200&&Mt<300;if("json"===Ce.responseType&&"string"==typeof on){const oe=on;on=on.replace(me,"");try{on=""!==on?JSON.parse(on):null}catch(z){on=oe,yn&&(yn=!1,on={error:z,text:on})}}yn?(Ge.next(new J({body:on,headers:Wt,status:Mt,statusText:bn,url:Qt||void 0})),Ge.complete()):Ge.error(new ce({error:on,headers:Wt,status:Mt,statusText:bn,url:Qt||void 0}))},en=Wt=>{const{url:Mt}=wt(),bn=new ce({error:Wt,status:tt.status||0,statusText:tt.statusText||"Unknown Error",url:Mt||void 0});Ge.error(bn)};let Bt=!1;const En=Wt=>{Bt||(Ge.next(wt()),Bt=!0);let Mt={type:ot.DownloadProgress,loaded:Wt.loaded};Wt.lengthComputable&&(Mt.total=Wt.total),"text"===Ce.responseType&&!!tt.responseText&&(Mt.partialText=tt.responseText),Ge.next(Mt)},rn=Wt=>{let Mt={type:ot.UploadProgress,loaded:Wt.loaded};Wt.lengthComputable&&(Mt.total=Wt.total),Ge.next(Mt)};return tt.addEventListener("load",$t),tt.addEventListener("error",en),tt.addEventListener("timeout",en),tt.addEventListener("abort",en),Ce.reportProgress&&(tt.addEventListener("progress",En),null!==ft&&tt.upload&&tt.upload.addEventListener("progress",rn)),tt.send(ft),Ge.next({type:ot.Sent}),()=>{tt.removeEventListener("error",en),tt.removeEventListener("abort",en),tt.removeEventListener("load",$t),tt.removeEventListener("timeout",en),Ce.reportProgress&&(tt.removeEventListener("progress",En),null!==ft&&tt.upload&&tt.upload.removeEventListener("progress",rn)),tt.readyState!==tt.DONE&&tt.abort()}})}}return be.\u0275fac=function(Ce){return new(Ce||be)(u.\u0275\u0275inject(i.XhrFactory))},be.\u0275prov=u.\u0275\u0275defineInjectable({token:be,factory:be.\u0275fac}),be})();const ve=new u.InjectionToken("XSRF_COOKIE_NAME"),Ye=new u.InjectionToken("XSRF_HEADER_NAME");class ht{}let bt=(()=>{class be{constructor(Ce,Ge,tt){this.doc=Ce,this.platform=Ge,this.cookieName=tt,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Ce=this.doc.cookie||"";return Ce!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,i.\u0275parseCookieValue)(Ce,this.cookieName),this.lastCookieString=Ce),this.lastToken}}return be.\u0275fac=function(Ce){return new(Ce||be)(u.\u0275\u0275inject(i.DOCUMENT),u.\u0275\u0275inject(u.PLATFORM_ID),u.\u0275\u0275inject(ve))},be.\u0275prov=u.\u0275\u0275defineInjectable({token:be,factory:be.\u0275fac}),be})(),Ot=(()=>{class be{constructor(Ce,Ge){this.tokenService=Ce,this.headerName=Ge}intercept(Ce,Ge){const tt=Ce.url.toLowerCase();if("GET"===Ce.method||"HEAD"===Ce.method||tt.startsWith("http://")||tt.startsWith("https://"))return Ge.handle(Ce);const ft=this.tokenService.getToken();return null!==ft&&!Ce.headers.has(this.headerName)&&(Ce=Ce.clone({headers:Ce.headers.set(this.headerName,ft)})),Ge.handle(Ce)}}return be.\u0275fac=function(Ce){return new(Ce||be)(u.\u0275\u0275inject(ht),u.\u0275\u0275inject(Ye))},be.\u0275prov=u.\u0275\u0275defineInjectable({token:be,factory:be.\u0275fac}),be})(),lt=(()=>{class be{constructor(Ce,Ge){this.backend=Ce,this.injector=Ge,this.chain=null}handle(Ce){if(null===this.chain){const Ge=this.injector.get(ge,[]);this.chain=Ge.reduceRight((tt,ft)=>new Ke(tt,ft),this.backend)}return this.chain.handle(Ce)}}return be.\u0275fac=function(Ce){return new(Ce||be)(u.\u0275\u0275inject(I),u.\u0275\u0275inject(u.Injector))},be.\u0275prov=u.\u0275\u0275defineInjectable({token:be,factory:be.\u0275fac}),be})();function N(){return"object"==typeof window?window:{}}let ae=(()=>{class be{static disable(){return{ngModule:be,providers:[{provide:Ot,useClass:it}]}}static withOptions(Ce={}){return{ngModule:be,providers:[Ce.cookieName?{provide:ve,useValue:Ce.cookieName}:[],Ce.headerName?{provide:Ye,useValue:Ce.headerName}:[]]}}}return be.\u0275fac=function(Ce){return new(Ce||be)},be.\u0275mod=u.\u0275\u0275defineNgModule({type:be}),be.\u0275inj=u.\u0275\u0275defineInjector({providers:[Ot,{provide:ge,useExisting:Ot,multi:!0},{provide:ht,useClass:bt},{provide:ve,useValue:"XSRF-TOKEN"},{provide:Ye,useValue:"X-XSRF-TOKEN"}]}),be})(),Oe=(()=>{class be{}return be.\u0275fac=function(Ce){return new(Ce||be)},be.\u0275mod=u.\u0275\u0275defineNgModule({type:be}),be.\u0275inj=u.\u0275\u0275defineInjector({providers:[re,{provide:w,useClass:lt},Re,{provide:I,useExisting:Re}],imports:[[ae.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),be})(),ue=(()=>{class be{}return be.\u0275fac=function(Ce){return new(Ce||be)},be.\u0275mod=u.\u0275\u0275defineNgModule({type:be}),be.\u0275inj=u.\u0275\u0275defineInjector({providers:[Ze,{provide:ke,useFactory:N},{provide:ge,useClass:Z,multi:!0}]}),be})();const Te=i.XhrFactory},5e3:(Le,_,l)=>{"use strict";l.r(_),l.d(_,{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:()=>Ce,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:()=>wr,Host:()=>id,HostBinding:()=>j0,HostListener:()=>V0,INJECTOR:()=>Zs,Inject:()=>Go,InjectFlags:()=>N,Injectable:()=>sb,InjectionToken:()=>Yn,Injector:()=>Vi,Input:()=>L0,IterableDiffers:()=>ya,KeyValueDiffers:()=>va,LOCALE_ID:()=>ga,MissingTranslationStrategy:()=>Mr,ModuleWithComponentFactories:()=>mg,NO_ERRORS_SCHEMA:()=>Rd,NgModule:()=>$0,NgModuleFactory:()=>im,NgModuleRef:()=>Fo,NgProbeToken:()=>eE,NgZone:()=>$i,Optional:()=>Wr,Output:()=>B0,PACKAGE_ROOT_URL:()=>U0,PLATFORM_ID:()=>dg,PLATFORM_INITIALIZER:()=>ug,Pipe:()=>N0,PlatformRef:()=>bu,Query:()=>Ho,QueryList:()=>da,ReflectiveInjector:()=>Io,ReflectiveKey:()=>Nr,Renderer2:()=>ZC,RendererFactory2:()=>Zp,RendererStyleFlags2:()=>Cr,ResolvedReflectiveFactory:()=>Df,Sanitizer:()=>Yp,SecurityContext:()=>ei,Self:()=>ks,SimpleChange:()=>Pi,SkipSelf:()=>zr,TRANSLATIONS:()=>W0,TRANSLATIONS_FORMAT:()=>z0,TemplateRef:()=>vs,Testability:()=>bg,TestabilityRegistry:()=>gu,Type:()=>Os,VERSION:()=>Xp,Version:()=>Jp,ViewChild:()=>a_,ViewChildren:()=>s_,ViewContainerRef:()=>fa,ViewEncapsulation:()=>ft,ViewRef:()=>Rg,asNativeElements:()=>hE,assertPlatform:()=>wg,createNgModuleRef:()=>r0,createPlatform:()=>Dg,createPlatformFactory:()=>Tg,defineInjectable:()=>Z,destroyPlatform:()=>tE,enableProdMode:()=>sE,forwardRef:()=>A,getDebugNode:()=>_a,getModuleFactory:()=>aE,getNgModuleById:()=>lE,getPlatform:()=>vu,inject:()=>C_,isDevMode:()=>oE,platformCore:()=>IE,resolveForwardRef:()=>M,setTestabilityGetter:()=>q0,\u0275ALLOW_MULTIPLE_PLATFORMS:()=>yu,\u0275APP_ID_RANDOM_PROVIDER:()=>cg,\u0275ChangeDetectorStatus:()=>Ge,\u0275ComponentFactory:()=>sa,\u0275Console:()=>fg,\u0275DEFAULT_LOCALE_ID:()=>us,\u0275INJECTOR_SCOPE:()=>Il,\u0275LifecycleHooksFeature:()=>cf,\u0275LocaleDataIndex:()=>nn,\u0275NG_COMP_DEF:()=>bn,\u0275NG_DIR_DEF:()=>Qt,\u0275NG_ELEMENT_ID:()=>z,\u0275NG_INJ_DEF:()=>Ot,\u0275NG_MOD_DEF:()=>yn,\u0275NG_PIPE_DEF:()=>on,\u0275NG_PROV_DEF:()=>bt,\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR:()=>aa,\u0275NO_CHANGE:()=>fn,\u0275NgModuleFactory:()=>ua,\u0275NoopNgZone:()=>vg,\u0275ReflectionCapabilities:()=>Aa,\u0275Render3ComponentFactory:()=>ca,\u0275Render3ComponentRef:()=>tm,\u0275Render3NgModuleRef:()=>Zc,\u0275RuntimeError:()=>V,\u0275ViewRef:()=>Ro,\u0275_sanitizeHtml:()=>bd,\u0275_sanitizeUrl:()=>Zo,\u0275allowSanitizationBypassAndThrow:()=>co,\u0275bypassSanitizationTrustHtml:()=>L_,\u0275bypassSanitizationTrustResourceUrl:()=>$_,\u0275bypassSanitizationTrustScript:()=>j_,\u0275bypassSanitizationTrustStyle:()=>B_,\u0275bypassSanitizationTrustUrl:()=>V_,\u0275clearResolutionOfComponentResourcesQueue:()=>ld,\u0275compileComponent:()=>Zm,\u0275compileDirective:()=>cu,\u0275compileNgModule:()=>Um,\u0275compileNgModuleDefs:()=>Wm,\u0275compileNgModuleFactory:()=>Cg,\u0275compilePipe:()=>og,\u0275createInjector:()=>Al,\u0275defaultIterableDiffers:()=>Ug,\u0275defaultKeyValueDiffers:()=>Wg,\u0275detectChanges:()=>Uh,\u0275devModeEqual:()=>hf,\u0275findLocaleData:()=>jc,\u0275flushModuleScopingQueueAsMuchAsPossible:()=>$m,\u0275getDebugNode:()=>_a,\u0275getDebugNodeR2:()=>_E,\u0275getDirectives:()=>ef,\u0275getHostElement:()=>Rl,\u0275getInjectableDef:()=>Me,\u0275getLContext:()=>yi,\u0275getLocaleCurrencyCode:()=>Zb,\u0275getLocalePluralCase:()=>_p,\u0275getSanitizationBypassType:()=>hd,\u0275global:()=>Bt,\u0275injectChangeDetectorRef:()=>xg,\u0275isBoundToModule:()=>Eg,\u0275isDefaultChangeDetectionStrategy:()=>tt,\u0275isListLikeIterable:()=>os,\u0275isObservable:()=>xf,\u0275isPromise:()=>ic,\u0275isSubscribable:()=>Of,\u0275ivyEnabled:()=>NE,\u0275makeDecorator:()=>ro,\u0275markDirty:()=>Wh,\u0275noSideEffects:()=>se,\u0275patchComponentDefWithScope:()=>su,\u0275publishDefaultGlobalUtils:()=>Uv,\u0275publishGlobalUtil:()=>er,\u0275registerLocaleData:()=>Qb,\u0275registerNgModuleType:()=>om,\u0275renderComponent:()=>Wv,\u0275resetCompiledComponents:()=>w0,\u0275resetJitOptions:()=>D0,\u0275resolveComponentResources:()=>sd,\u0275setClassMetadata:()=>nm,\u0275setCurrentInjector:()=>Ra,\u0275setDocument:()=>Yi,\u0275setLocaleId:()=>bp,\u0275store:()=>pf,\u0275stringify:()=>w,\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:()=>$l,\u0275\u0275attributeInterpolate4:()=>Hl,\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:()=>C,\u0275\u0275defineDirective:()=>Ve,\u0275\u0275defineInjectable:()=>Ze,\u0275\u0275defineInjector:()=>me,\u0275\u0275defineNgModule:()=>zt,\u0275\u0275definePipe:()=>he,\u0275\u0275directiveInject:()=>ls,\u0275\u0275disableBindings:()=>Ni,\u0275\u0275element:()=>If,\u0275\u0275elementContainer:()=>Pf,\u0275\u0275elementContainerEnd:()=>nc,\u0275\u0275elementContainerStart:()=>tc,\u0275\u0275elementEnd:()=>ec,\u0275\u0275elementStart:()=>ql,\u0275\u0275enableBindings:()=>gi,\u0275\u0275getCurrentView:()=>Af,\u0275\u0275getInheritedFactory:()=>Zu,\u0275\u0275hostProperty:()=>Lc,\u0275\u0275i18n:()=>$p,\u0275\u0275i18nApply:()=>Up,\u0275\u0275i18nAttributes:()=>Hp,\u0275\u0275i18nEnd:()=>Uc,\u0275\u0275i18nExp:()=>Wc,\u0275\u0275i18nPostprocess:()=>Wp,\u0275\u0275i18nStart:()=>Hc,\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:()=>HE,\u0275\u0275ngDeclareInjector:()=>UE,\u0275\u0275ngDeclareNgModule:()=>WE,\u0275\u0275ngDeclarePipe:()=>zE,\u0275\u0275pipe:()=>Em,\u0275\u0275pipeBind1:()=>Dm,\u0275\u0275pipeBind2:()=>Tm,\u0275\u0275pipeBind3:()=>wm,\u0275\u0275pipeBind4:()=>Mm,\u0275\u0275pipeBindV:()=>Sm,\u0275\u0275projection:()=>Lf,\u0275\u0275projectionDef:()=>Nf,\u0275\u0275property:()=>Jl,\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:()=>d,\u0275\u0275sanitizeHtml:()=>Cd,\u0275\u0275sanitizeResourceUrl:()=>Wa,\u0275\u0275sanitizeScript:()=>Dd,\u0275\u0275sanitizeStyle:()=>Ed,\u0275\u0275sanitizeUrl:()=>Ua,\u0275\u0275sanitizeUrlOrResourceUrl:()=>Md,\u0275\u0275setComponentScope:()=>T,\u0275\u0275setNgModuleScope:()=>pn,\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:()=>Pc,\u0275\u0275stylePropInterpolate3:()=>Ac,\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:()=>Xf,\u0275\u0275textInterpolate:()=>vc,\u0275\u0275textInterpolate1:()=>ta,\u0275\u0275textInterpolate2:()=>bc,\u0275\u0275textInterpolate3:()=>Cc,\u0275\u0275textInterpolate4:()=>Ec,\u0275\u0275textInterpolate5:()=>Dc,\u0275\u0275textInterpolate6:()=>Tc,\u0275\u0275textInterpolate7:()=>wc,\u0275\u0275textInterpolate8:()=>Mc,\u0275\u0275textInterpolateV:()=>Sc,\u0275\u0275trustConstantHtml:()=>Td,\u0275\u0275trustConstantResourceUrl:()=>wd,\u0275\u0275viewQuery:()=>Fm});var i=l(6758),u=l(6921),g=l(9751),c=l(6451),s=l(3099);function y(e){for(let t in e)if(e[t]===y)return t;throw Error("Could not find renamed property on target object.")}function E(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function w(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(w).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 I(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const h=y({__forward_ref__:y});function A(e){return e.__forward_ref__=A,e.toString=function(){return w(this())},e}function M(e){return b(e)?e():e}function b(e){return"function"==typeof e&&e.hasOwnProperty(h)&&e.__forward_ref__===A}class V extends Error{constructor(t,n){super(function fe(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function $(e){return"string"==typeof e?e:null==e?"":String(e)}function ie(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():$(e)}function le(e,t){const n=t?` in ${t}`:"";throw new V(-201,`No provider for ${ie(e)} found${n}`)}function He(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}function Ze(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}const Z=Ze;function me(e){return{providers:e.providers||[],imports:e.imports||[]}}function Me(e){return Re(e,bt)||Re(e,lt)}function Re(e,t){return e.hasOwnProperty(t)?e[t]:null}function ht(e){return e&&(e.hasOwnProperty(Ot)||e.hasOwnProperty(Qe))?e[Ot]:null}const bt=y({\u0275prov:y}),Ot=y({\u0275inj:y}),lt=y({ngInjectableDef:y}),Qe=y({ngInjectorDef:y});var N=(()=>((N=N||{})[N.Default=0]="Default",N[N.Host=1]="Host",N[N.Self=2]="Self",N[N.SkipSelf=4]="SkipSelf",N[N.Optional=8]="Optional",N))();let ae;function ue(e){const t=ae;return ae=e,t}function Te(e,t,n){const r=Me(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&N.Optional?null:void 0!==t?t:void le(w(e),"Injector")}function se(e){return{toString:e}.toString()}var Ce=(()=>((Ce=Ce||{})[Ce.OnPush=0]="OnPush",Ce[Ce.Default=1]="Default",Ce))(),Ge=(()=>((Ge=Ge||{})[Ge.CheckOnce=0]="CheckOnce",Ge[Ge.Checked=1]="Checked",Ge[Ge.CheckAlways=2]="CheckAlways",Ge[Ge.Detached=3]="Detached",Ge[Ge.Errored=4]="Errored",Ge[Ge.Destroyed=5]="Destroyed",Ge))();function tt(e){return null==e||e===Ce.Default}var ft=(()=>{return(e=ft||(ft={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",ft;var e})();const pt="undefined"!=typeof globalThis&&globalThis,wt="undefined"!=typeof window&&window,$t="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Bt=pt||"undefined"!=typeof global&&global||wt||$t,Wt={},Mt=[],bn=y({\u0275cmp:y}),Qt=y({\u0275dir:y}),on=y({\u0275pipe:y}),yn=y({\u0275mod:y}),oe=y({\u0275fac:y}),z=y({__NG_ELEMENT_ID__:y});let m=0;function C(e){return se(()=>{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===Ce.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||Mt,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||ft.Emulated,id:"c",styles:e.styles||Mt,_:null,setInput:null,schemas:e.schemas||null,tView:null},o=e.directives,a=e.features,f=e.pipes;return r.id+=m++,r.inputs=Be(e.inputs,n),r.outputs=Be(e.outputs),a&&a.forEach(v=>v(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(K):null,r.pipeDefs=f?()=>("function"==typeof f?f():f).map(qe):null,r})}function T(e,t,n){const r=e.\u0275cmp;r.directiveDefs=()=>t.map(K),r.pipeDefs=()=>n.map(qe)}function K(e){return $e(e)||ut(e)}function qe(e){return Lt(e)}const Dt={};function zt(e){return se(()=>{const t={type:e.type,bootstrap:e.bootstrap||Mt,declarations:e.declarations||Mt,imports:e.imports||Mt,exports:e.exports||Mt,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(Dt[e.id]=e.type),t})}function pn(e,t){return se(()=>{const n=kt(e,!0);n.declarations=t.declarations||Mt,n.imports=t.imports||Mt,n.exports=t.exports||Mt})}function Be(e,t){if(null==e)return Wt;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 Ve=C;function he(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function $e(e){return e[bn]||null}function ut(e){return e[Qt]||null}function Lt(e){return e[on]||null}function kt(e,t){const n=e[yn]||null;if(!n&&!0===t)throw new Error(`Type ${w(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 wi(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(oe)?e[oe]:null}class Pi{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=Ai(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===Wt)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=Ai(e)||function Oi(e,t){return e[rr]=t}(e,{previous:Wt,current:null}),a=o.current||(o.current={}),f=o.previous,v=this.declaredInputs[n],S=f[v];a[v]=new Pi(S&&S.currentValue,t,f===Wt),e[r]=t}pi.ngInherit=!0;const rr="__ngSimpleChanges__";function Ai(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 F(e,t){return Ln(t[e])}function ne(e,t){return Ln(t[e.index])}function ct(e,t){return e.data[t]}function vt(e,t){return e[t]}function Rt(e,t){const n=t[e];return Kn(n)?n:n[0]}function Tn(e){return 4==(4&e[2])}function wn(e){return 128==(128&e[2])}function cn(e,t){return null==t?null:e[t]}function k(e){e[18]=0}function O(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 D={lFrame:an(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function qn(){return D.bindingsEnabled}function gi(){D.bindingsEnabled=!0}function Ni(){D.bindingsEnabled=!1}function Tt(){return D.lFrame.lView}function B(){return D.lFrame.tView}function d(e){return D.lFrame.contextLView=e,e[8]}function p(){let e=P();for(;null!==e&&64===e.type;)e=e.parent;return e}function P(){return D.lFrame.currentTNode}function j(){const e=D.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function de(e,t){const n=D.lFrame;n.currentTNode=e,n.isParent=t}function Ne(){return D.lFrame.isParent}function Ue(){D.lFrame.isParent=!1}function At(){return D.isInCheckNoChangesMode}function Ut(e){D.isInCheckNoChangesMode=e}function Zt(){const e=D.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function un(){return D.lFrame.bindingIndex}function Xt(e){return D.lFrame.bindingIndex=e}function tn(){return D.lFrame.bindingIndex++}function dn(e){const t=D.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function U(e){D.lFrame.inI18n=e}function Y(e,t){const n=D.lFrame;n.bindingIndex=n.bindingRootIndex=e,xe(t)}function xe(e){D.lFrame.currentDirectiveIndex=e}function je(e){const t=D.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function et(){return D.lFrame.currentQueryIndex}function yt(e){D.lFrame.currentQueryIndex=e}function _t(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function Ht(e,t,n){if(n&N.SkipSelf){let o=t,a=e;for(;!(o=o.parent,null!==o||n&N.Host||(o=_t(a),null===o||(a=a[15],10&o.type))););if(null===o)return!1;t=o,e=a}const r=D.lFrame=_n();return r.currentTNode=t,r.lView=e,!0}function Gt(e){const t=_n(),n=e[1];D.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function _n(){const e=D.lFrame,t=null===e?null:e.child;return null===t?an(e):t}function an(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 Mn(){const e=D.lFrame;return D.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const gn=Mn;function It(){const e=Mn();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 D.lFrame.selectedIndex}function jn(e){D.lFrame.selectedIndex=e}function An(){const e=D.lFrame;return ct(e.tView,e.selectedIndex)}function _i(){D.lFrame.currentNamespace=Ri}function lr(){D.lFrame.currentNamespace=or}function Vn(){!function Ts(){D.lFrame.currentNamespace=null}()}function Ji(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){const a=e.data[n].type.prototype,{ngAfterContentInit:f,ngAfterContentChecked:v,ngAfterViewInit:S,ngAfterViewChecked:L,ngOnDestroy:G}=a;f&&(e.contentHooks||(e.contentHooks=[])).push(-n,f),v&&((e.contentHooks||(e.contentHooks=[])).push(n,v),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,v)),S&&(e.viewHooks||(e.viewHooks=[])).push(-n,S),L&&((e.viewHooks||(e.viewHooks=[])).push(n,L),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,L)),null!=G&&(e.destroyHooks||(e.destroyHooks=[])).push(n,G)}}function Li(e,t,n){Lu(e,t,3,n)}function Xi(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,f=t.length-1;let v=0;for(let S=void 0!==r?65535&e[18]:0;S<f;S++)if("number"==typeof t[S+1]){if(v=t[S],null!=r&&v>=r)break}else t[S]<0&&(e[18]+=65536),(v<a||-1==a)&&(zg(e,n,t,S),e[18]=(4294901760&e[18])+S+2),S++}function zg(e,t,n,r){const o=n[r]<0,a=n[r+1],v=e[o?-n[r]:n[r]];if(o){if(e[2]>>11<e[18]>>16&&(3&e[2])===t){e[2]+=2048,ti(4,v,a);try{a.call(v)}finally{ti(5,v,a)}}}else{ti(4,v,a);try{a.call(v)}finally{ti(5,v,a)}}}class Bo{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function ws(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 f=n[o++],v=n[o++],S=n[o++];r?e.setAttribute(t,v,S,f):t.setAttributeNS(f,v,S)}else{const f=a,v=n[++o];Ea(f)?r&&e.setProperty(t,f,v):r?e.setAttribute(t,f,v):t.setAttribute(f,v),o++}}return o}function Bu(e){return 3===e||4===e||6===e}function Ea(e){return 64===e.charCodeAt(0)}function Ms(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,f=e.length;if(-1===t)f=-1;else for(;a<e.length;){const v=e[a++];if("number"==typeof v){if(v===t){f=-1;break}if(v>t){f=a-1;break}}}for(;a<e.length;){const v=e[a];if("number"==typeof v)break;if(v===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!==f&&(e.splice(f,0,t),a=f+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 Xr(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 Jg=0;function Vo(e,t){const n=wa(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 f=Xr(o),v=qr(o,t),S=v[1].data;for(let L=0;L<8;L++)t[a+L]=v[f+L]|S[f+L]}return t[a+8]=o,a}function Ta(e,t){e.push(0,0,0,0,0,0,0,0,t)}function wa(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],f=a.type;if(r=2===f?a.declTNode:1===f?o[6]:null,null===r)return-1;if(n++,o=o[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function Ps(e,t,n){!function Xg(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(z)&&(r=n[z]),null==r&&(r=n[z]=Jg++);const o=255&r;t.data[e+(o>>5)]|=1<<o}(e,t,n)}function Uu(e,t,n){if(n&N.Optional)return e;le(t,"NodeInjector")}function Wu(e,t,n,r){if(n&N.Optional&&void 0===r&&(r=null),0==(n&(N.Self|N.Host))){const o=e[9],a=ue(void 0);try{return o?o.get(t,r,n&N.Optional):Te(t,r,n&N.Optional)}finally{ue(a)}}return Uu(r,t,n)}function zu(e,t,n,r=N.Default,o){if(null!==e){const a=function n_(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(z)?e[z]:void 0;return"number"==typeof t?t>=0?255&t:e_:t}(n);if("function"==typeof a){if(!Ht(t,e,r))return r&N.Host?Uu(o,n,r):Wu(t,n,r,o);try{const f=a(r);if(null!=f||r&N.Optional)return f;le(n)}finally{gn()}}else if("number"==typeof a){let f=null,v=wa(e,t),S=-1,L=r&N.Host?t[16][6]:null;for((-1===v||r&N.SkipSelf)&&(S=-1===v?Is(e,t):t[v+8],-1!==S&&Qu(r,!1)?(f=t[1],v=Xr(S),t=qr(S,t)):v=-1);-1!==v;){const G=t[1];if(Gu(a,v,G.data)){const Ee=t_(v,t,n,f,r,L);if(Ee!==Ku)return Ee}S=t[v+8],-1!==S&&Qu(r,t[1].data[v+8]===L)&&Gu(a,v,t)?(f=G,v=Xr(S),t=qr(S,t)):v=-1}}}return Wu(t,n,r,o)}const Ku={};function e_(){return new eo(p(),Tt())}function t_(e,t,n,r,o,a){const f=t[1],v=f.data[e+8],G=As(v,f,n,null==r?wi(v)&&Da:r!=f&&0!=(3&v.type),o&N.Host&&a===v);return null!==G?$o(t,f,G,v):Ku}function As(e,t,n,r,o){const a=e.providerIndexes,f=t.data,v=1048575&a,S=e.directiveStart,G=a>>20,We=o?v+G:e.directiveEnd;for(let nt=r?v:v+G;nt<We;nt++){const gt=f[nt];if(nt<S&&n===gt||nt>=S&&gt.type===n)return nt}if(o){const nt=f[S];if(nt&&Wn(nt)&&nt.type===n)return S}return null}function $o(e,t,n,r){let o=e[n];const a=t.data;if(function Kg(e){return e instanceof Bo}(o)){const f=o;f.resolving&&function we(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new V(-200,`Circular dependency in DI detected for ${e}${n}`)}(ie(a[n]));const v=Ss(f.canSeeViewProviders);f.resolving=!0;const S=f.injectImpl?ue(f.injectImpl):null;Ht(e,r,N.Default);try{o=e[n]=f.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 f=Qi(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,f),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,f)}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!==S&&ue(S),Ss(v),f.resolving=!1,gn()}}return o}function Gu(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function Qu(e,t){return!(e&N.Self||e&N.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 se(()=>{const t=e.prototype.constructor,n=t[oe]||Ma(t),r=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){const a=o[oe]||Ma(o);if(a&&a!==n)return a;o=Object.getPrototypeOf(o)}return a=>new a})}function Ma(e){return b(e)?()=>{const t=Ma(M(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}(p(),e)}const to="__annotations__",no="__parameters__",io="__prop__metadata__";function ro(e,t,n,r,o){return se(()=>{const a=Ia(t);function f(...v){if(this instanceof f)return a.call(this,...v),this;const S=new f(...v);return function(G){return o&&o(G,...v),(G.hasOwnProperty(to)?G[to]:Object.defineProperty(G,to,{value:[]})[to]).push(S),r&&r(G),G}}return n&&(f.prototype=Object.create(n.prototype)),f.prototype.ngMetadataName=e,f.annotationCls=f,f})}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 se(()=>{const r=Ia(t);function o(...a){if(this instanceof o)return r.apply(this,a),this;const f=new o(...a);return v.annotation=f,v;function v(S,L,G){const Ee=S.hasOwnProperty(no)?S[no]:Object.defineProperty(S,no,{value:[]})[no];for(;Ee.length<=G;)Ee.push(null);return(Ee[G]=Ee[G]||[]).push(f),S}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}function jr(e,t,n,r){return se(()=>{const o=Ia(t);function a(...f){if(this instanceof a)return o.apply(this,f),this;const v=new a(...f);return function S(L,G){const Ee=L.constructor,We=Ee.hasOwnProperty(io)?Ee[io]:Object.defineProperty(Ee,io,{value:{}})[io];We[G]=We.hasOwnProperty(G)&&We[G]||[],We[G].unshift(v),r&&r(L,G,...f)}}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=Ze({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}const i_=new Yn("AnalyzeForEntryComponents");class Ho{}const r_=jr("ContentChildren",(e,t={})=>Object.assign({selector:e,first:!1,isViewQuery:!1,descendants:!1,emitDistinctChangesOnly:!0},t),Ho),o_=jr("ContentChild",(e,t={})=>Object.assign({selector:e,first:!0,isViewQuery:!1,descendants:!0},t),Ho),s_=jr("ViewChildren",(e,t={})=>Object.assign({selector:e,first:!1,isViewQuery:!0,descendants:!0,emitDistinctChangesOnly:!0},t),Ho),a_=jr("ViewChild",(e,t)=>Object.assign({selector:e,first:!0,isViewQuery:!0,descendants:!0},t),Ho);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=Bt.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 Xu(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 Pa(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),f=e[a<<n];if(t===f)return a<<n;f>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 Aa{constructor(t){this._reflect=t||Bt.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 v="function"==typeof o?o():o,S=v.map(G=>G&&G.type),L=v.map(G=>G&&Oa(G.decorators));return this._zipTypesAndAnnotations(S,L)}const a=t.hasOwnProperty(no)&&t[no],f=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",t);return f||a?this._zipTypesAndAnnotations(f,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(f=>{r[f]=a[f]})}const o=this._ownPropMetadata(t,n);return o&&Object.keys(o).forEach(a=>{const f=[];r.hasOwnProperty(a)&&f.push(...r[a]),f.push(...o[a]),r[a]=f}),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:`./${w(t)}`}resourceUri(t){return`./${w(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_=y({provide:String,useValue:y});let zo;function Ra(e){const t=zo;return zo=e,t}function b_(e,t=N.Default){if(void 0===zo)throw new Error("inject() must be called from an injection context");return null===zo?Te(e,void 0,t):zo.get(e,t&N.Optional?null:void 0,t)}function si(e,t=N.Default){return(function Oe(){return ae}()||b_)(M(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=M(e[n]);if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");let o,a=N.Default;for(let f=0;f<r.length;f++){const v=r[f],S=E_(v);"number"==typeof S?-1===S?o=v.token:a|=S:o=v}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 Aa}function Ns(e){return od(Na().parameters(e))}function od(e){return e.map(t=>function w_(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 f=e(o);n.set(o,a=f.then(I_))}return a}return ao.forEach((o,a)=>{const f=[];o.templateUrl&&f.push(r(o.templateUrl).then(Ee=>{o.template=Ee}));const v=o.styleUrls,S=o.styles||(o.styles=[]),L=o.styles.length;v&&v.forEach((Ee,We)=>{S.push(""),f.push(r(Ee).then(nt=>{S[L+We]=nt,v.splice(v.indexOf(Ee),1),0==v.length&&(o.styleUrls=void 0)}))});const G=Promise.all(f).then(()=>function P_(e){Qo.delete(e)}(a));t.push(G)}),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,Bt.trustedTypes))try{Ls=Bt.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,Bt.trustedTypes))try{Bs=Bt.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 $_(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 H_(t):t}class H_{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 f=n.item(o).name;("xmlns:ns1"===f||0===f.indexOf("ns1:"))&&t.removeAttribute(f)}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"),$a=vr("srcset"),yd=Yo(Va,$a,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),f=a.name,v=f.toLowerCase();if(!yd.hasOwnProperty(v)){this.sanitizedSomething=!0;continue}let S=a.value;Va[v]&&(S=Zo(S)),$a[v]&&(S=pd(S)),this.buf.push(" ",f,'="',vd(S),'"')}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(Ha(n)||n))}finally{if(n){const r=Ha(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function Ha(e){return"content"in e&&function J_(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=Jo();return t?cd(t.sanitize(ei.HTML,e)||""):co(e,"HTML")?cd(Rr(e)):bd(ki(),$(e))}function Ed(e){const t=Jo();return t?t.sanitize(ei.STYLE,e)||"":co(e,"Style")?Rr(e):$(e)}function Ua(e){const t=Jo();return t?t.sanitize(ei.URL,e)||"":co(e,"URL")?Rr(e):Zo($(e))}function Wa(e){const t=Jo();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=Jo();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 wd(e){return function O_(e){var t;return(null===(t=La())||void 0===t?void 0:t.createScriptURL(e))||e}(e[0])}function Md(e,t,n){return function X_(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 Jo(){const e=Tt();return e&&e[12]}function yi(e){let t=Xo(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=Ad(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=Pd(n,e),-1==r)return null;const f=Ln(n[r]),v=Xo(f),S=v&&!Array.isArray(v)?v:za(n,r,f);if(o&&void 0===S.component&&(S.component=o,vi(S.component,S)),a&&void 0===S.directives){S.directives=a;for(let L=0;L<a.length;L++)vi(a[L],S)}vi(S.native,S),t=S}}else{const n=e;let r=n;for(;r=r.parentNode;){const o=Xo(r);if(o){let a;if(a=Array.isArray(o)?o:o.lView,!a)return null;const f=Pd(a,n);if(f>=0){const v=Ln(a[f]),S=za(a,f,v);vi(v,S),t=S;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=Xo(e);if(Array.isArray(t)){const r=Ad(t,e);n=Rt(r,t);const o=za(t,r,n[0]);o.component=e,vi(e,o),vi(o.native,o)}else n=Rt(t.nodeIndex,t.lView);return n}const Id="__ngContext__";function vi(e,t){e[Id]=t}function Xo(e){return e[Id]||null}function Ka(e){const t=Xo(e);return t?Array.isArray(t)?t:t.lView:null}function Pd(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 Ad(e,t){const n=e[1].components;if(n)for(let r=0;r<n.length;r++){const o=n[r];if(Rt(o,e)[8]===t)return o}else if(Rt(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?Mt:(!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(Bt))();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 Hd(e){return function $d(e){let t=Kn(e)?e:Ka(e);for(;t&&!(512&t[2]);)t=es(t);return t}(e)[8]}function Ja(e){return Ud(e[13])}function Xa(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,f=!1;Gn(r)?a=r:Kn(r)&&(f=!0,r=r[0]);const v=Ln(r);0===e&&null!==n?null==o?Zd(t,n,v):Gr(t,n,v,o||null,!0):1===e&&null!==n?Gr(t,n,v,o||null,!0):2===e?nh(t,v,f):3===e&&t.destroyNode(v),null!=a&&function Py(e,t,n,r,o){const a=n[7];a!==Ln(n)&&ho(t,e,r,a,o);for(let v=10;v<n.length;v++){const S=n[v];ts(S[1],S,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,O(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 f=a[19];null!==f&&f.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 wy(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 f=0;f<a.length;f+=2){const v=o[a[f]],S=a[f+1];ti(4,v,S);try{S.call(v)}finally{ti(5,v,S)}}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 f=n[a+1],v="function"==typeof f?f(t):Ln(t[f]),S=r[o=n[a+2]],L=n[a+3];"boolean"==typeof L?v.removeEventListener(n[a],S,L):L>=0?r[o=L]():r[o=-L].unsubscribe(),a+=2}else{const f=r[o=n[a+1]];n[a].call(f)}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===ft.None||o===ft.Emulated)return null}return ne(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 Jd(e,t,n){return qd(e,t,n)}function Xd(e,t,n){return 40&e.type?ne(e,n):null}let il,qd=Xd;function eh(e,t){qd=e,il=t}function $s(e,t,n,r){const o=Gd(e,r,t),a=t[11],v=Jd(r.parent||t[6],r,t);if(null!=o)if(Array.isArray(n))for(let S=0;S<n.length;S++)Yd(a,o,n[S],v,!1);else Yd(a,o,n,v,!1);void 0!==il&&il(a,r,t,n,o)}function Hs(e,t){if(null!==t){const n=t.type;if(3&n)return ne(t,e);if(4&n)return rl(-1,e[t.index]);if(8&n){const r=t.child;if(null!==r)return Hs(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]:Hs(es(e[16]),r):Hs(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 Hs(r,o)}return t[7]}function nh(e,t,n){const r=Vs(e,t);r&&function My(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,f){for(;null!=n;){const v=r[n.index],S=n.type;if(f&&0===t&&(v&&vi(Ln(v),r),n.flags|=4),64!=(64&n.flags))if(8&S)ol(e,t,n.child,r,o,a,!1),ho(t,e,o,v,a);else if(32&S){const L=Ya(n,r);let G;for(;G=L();)ho(t,e,o,G,a);ho(t,e,o,v,a)}else 16&S?ih(e,t,r,n,o,a):ho(t,e,o,v,a);n=f?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 f=n[16],S=f[6].projection[r.projection];if(Array.isArray(S))for(let L=0;L<S.length;L++)ho(t,e,o,S[L],a);else ol(e,t,S,f[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 f=!1;for(let v=0;v<t.length;v++){const S=t[v];if("number"!=typeof S){if(!f)if(4&r){if(r=2|1&r,""!==S&&!xy(e,S,n)||""===S&&1===t.length){if(cr(r))return!1;f=!0}}else{const L=8&r?S:t[++v];if(8&r&&null!==e.attrs){if(!Oy(e.attrs,L,n)){if(cr(r))return!1;f=!0}continue}const Ee=Fy(8&r?"class":S,o,ah(e),n);if(-1===Ee){if(cr(r))return!1;f=!0;continue}if(""!==L){let We;We=Ee>a?"":o[Ee+1].toLowerCase();const nt=8&r?We:null;if(nt&&-1!==oh(nt,L,0)||2&r&&L!==We){if(cr(r))return!1;f=!0}}}}else{if(!f&&!cr(r)&&!cr(S))return!1;if(f&&cr(S))continue;f=!1,r=S|1&r}}return cr(r)||f}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 f=t[o];if(f===e)return o;if(3===f||6===f)a=!0;else{if(1===f||2===f){let v=t[++o];for(;"string"==typeof v;)v=t[++o];continue}if(4===f)break;if(0===f){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 f=e[n];if("string"==typeof f)if(2&r){const v=e[++n];o+="["+f+(v.length>0?'="'+v+'"':"")+"]"}else 8&r?o+="."+f:4&r&&(o+=" "+f);else""!==o&&!cr(f)&&(t+=ch(a,o),o=""),r=f,a=a||!cr(r);n++}return""!==o&&(t+=ch(a,o)),t}const fn={};function uh(e){dh(B(),Tt(),sn()+e,At())}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&&Xi(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 f=e.data[a];yt(o),f.contentQueries(2,t[a],a)}}}function ns(e,t,n,r,o,a,f,v,S,L){const G=t.blueprint.slice();return G[0]=o,G[2]=140|r,k(G),G[3]=G[15]=e,G[8]=n,G[10]=f||e&&e[10],G[11]=v||e&&e[11],G[12]=S||e&&e[12]||null,G[9]=L||e&&e[9]||null,G[6]=a,G[16]=2==t.type?e[16]:G,G}function fo(e,t,n,r,o){let a=e.data[t];if(null===a)a=yl(e,t,n,r,o),function ee(){return D.lFrame.inI18n}()&&(a.flags|=64);else if(64&a.type){a.type=n,a.value=r,a.attrs=o;const f=j();a.injectorIndex=null===f?-1:f.injectorIndex}return de(a,!0),a}function yl(e,t,n,r,o){const a=P(),f=Ne(),S=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,f?a:a&&a.parent,n,t,r,o);return null===e.firstChild&&(e.firstChild=S),null!==a&&(f?null==a.child&&null!==S.parent&&(a.child=S):null===a.next&&(a.next=S)),S}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){Gt(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,It()}}function mo(e,t,n,r){const o=t[2];if(256==(256&o))return;Gt(t);const a=At();try{k(t),Xt(e.bindingStartIndex),null!==n&&Dh(e,t,n,2,r);const f=3==(3&o);if(!a)if(f){const L=e.preOrderCheckHooks;null!==L&&Li(t,L,null)}else{const L=e.preOrderHooks;null!==L&&Xi(t,L,0,null),Ur(t,0)}if(function vv(e){for(let t=Ja(e);null!==t;t=Xa(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])&&O(a,1),o[2]|=1024}}}(t),function yv(e){for(let t=Ja(e);null!==t;t=Xa(t))for(let n=10;n<t.length;n++){const r=t[n],o=r[1];wn(r)&&mo(o,r,o.template,r[8])}}(t),null!==e.contentQueries&&Eh(e,t),!a)if(f){const L=e.contentCheckHooks;null!==L&&Li(t,L)}else{const L=e.contentHooks;null!==L&&Xi(t,L,1),Ur(t,1)}!function Xy(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,f=n[++r],v=n[++r];Y(f,a),v(2,t[a])}}}finally{jn(-1)}}(e,t);const v=e.components;null!==v&&function qy(e,t){for(let n=0;n<t.length;n++)bv(e,t[n])}(t,v);const S=e.viewQuery;if(null!==S&&Sl(2,S,r),!a)if(f){const L=e.viewCheckHooks;null!==L&&Li(t,L)}else{const L=e.viewHooks;null!==L&&Xi(t,L,2),Ur(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),a||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,O(t[3],-1))}finally{It()}}function tv(e,t,n,r){const o=t[10],a=!At(),f=Tn(t);try{a&&!f&&o.begin&&o.begin(),f&&is(e,t,r),mo(e,t,n,r)}finally{a&&!f&&o.end&&o.end()}}function Dh(e,t,n,r,o){const a=sn(),f=2&r;try{jn(-1),f&&t.length>20&&dh(e,t,20,At()),ti(f?2:0,o),n(r,o)}finally{jn(a),ti(f?3:1,o)}}function Th(e,t,n){if(Ci(t)){const o=t.directiveEnd;for(let a=t.directiveStart;a<o;a++){const f=e.data[a];f.contentQueries&&f.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 f=n.initialInputs;for(let v=o;v<a;v++){const S=e.data[v],L=Wn(S);L&&mv(t,n,S);const G=$o(t,e,v,n);vi(G,t),null!==f&&gv(0,v-o,G,S,0,f),L&&(Rt(n.index,t)[8]=G)}}(e,t,n,ne(n,t)),128==(128&n.flags)&&function dv(e,t,n){const r=n.directiveStart,o=n.directiveEnd,f=n.index,v=function te(){return D.lFrame.currentDirectiveIndex}();try{jn(f);for(let S=r;S<o;S++){const L=e.data[S],G=t[S];xe(S),(null!==L.hostBindings||0!==L.hostVars||null!==L.hostAttrs)&&xh(L,G)}}finally{jn(-1),xe(v)}}(e,t,n))}function bl(e,t,n=ne){const r=t.localNames;if(null!==r){let o=t.index+1;for(let a=0;a<r.length;a+=2){const f=r[a+1],v=-1===f?n(t,e):e[f];e[o++]=v}}}function wh(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,f,v,S,L){const G=20+r,Ee=G+o,We=function nv(e,t){const n=[];for(let r=0;r<t;r++)n.push(r<e?null:fn);return n}(G,Ee),nt="function"==typeof L?L():L;return We[1]={type:e,blueprint:We,template:n,queries:null,viewQuery:v,declTNode:t,data:We.slice().fill(null,G),bindingStartIndex:G,expandoStartIndex:Ee,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 f?f():f,firstChild:null,schemas:S,consts:nt,incompleteFirstPass:!1}}function Sh(e,t,n){if(Rn(e))return e.selectRootElement(t,n===ft.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 Ph(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,f,v){const S=ne(t,n);let G,L=t.inputs;!v&&null!=L&&(G=L[r])?(Hh(e,n,G,r,o),wi(t)&&function sv(e,t){const n=Rt(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!=f?f(o,t.value||"",r):o,Rn(a)?a.setProperty(S,r,o):Ea(r)||(S.setProperty?S.setProperty(r,o):S[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 f=r[a];lh(n,f.selectors,!1)&&(o||(o=[]),Ps(Vo(n,t),e,f.type),Wn(f)?(Rh(e,n),o.unshift(f)):o.push(f))}return o}(e,t,n),f=null===r?null:{"":-1};if(null!==a){o=!0,Fh(n,e.data.length,a.length);for(let G=0;G<a.length;G++){const Ee=a[G];Ee.providersResolver&&Ee.providersResolver(Ee)}let v=!1,S=!1,L=po(e,t,a.length,null);for(let G=0;G<a.length;G++){const Ee=a[G];n.mergedAttrs=Ms(n.mergedAttrs,Ee.hostAttrs),kh(e,n,t,L,Ee),pv(L,Ee,f),null!==Ee.contentQueries&&(n.flags|=8),(null!==Ee.hostBindings||null!==Ee.hostAttrs||0!==Ee.hostVars)&&(n.flags|=128);const We=Ee.type.prototype;!v&&(We.ngOnChanges||We.ngOnInit||We.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index),v=!0),!S&&(We.ngOnChanges||We.ngDoCheck)&&((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index),S=!0),L++}!function rv(e,t){const r=t.directiveEnd,o=e.data,a=t.attrs,f=[];let v=null,S=null;for(let L=t.directiveStart;L<r;L++){const G=o[L],Ee=G.inputs,We=null===a||ah(t)?null:_v(Ee,a);f.push(We),v=Ph(Ee,L,v),S=Ph(G.outputs,L,S)}null!==v&&(v.hasOwnProperty("class")&&(t.flags|=16),v.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=f,t.inputs=v,t.outputs=S}(e,n)}f&&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 V(-301,`Export of name '${t[o+1]}' not found!`);r.push(t[o],a)}}}(n,r,f)}return n.mergedAttrs=Ms(n.mergedAttrs,n.attrs),o}function Oh(e,t,n,r,o,a){const f=a.hostBindings;if(f){let v=e.hostBindingOpCodes;null===v&&(v=e.hostBindingOpCodes=[]);const S=~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})(v)!=S&&v.push(S),v.push(r,o,f)}}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)),f=new Bo(a,Wn(o),null);e.blueprint[r]=f,n[r]=f,Oh(e,t,0,r,po(e,n,o.hostVars,fn),o)}function mv(e,t,n){const r=ne(t,e),o=wh(n),a=e[10],f=Gs(e,ns(e,o,null,n.onPush?64:16,r,t,a,a.createRenderer(r,n),null,null));e[t.index]=f}function Er(e,t,n,r,o,a){const f=ne(e,t);El(t[11],f,a,e.value,n,r,o)}function El(e,t,n,r,o,a,f){if(null==a)Rn(e)?e.removeAttribute(t,o,n):t.removeAttribute(o);else{const v=null==f?$(a):f(a,r||"",o);Rn(e)?e.setAttribute(t,o,v,n):n?t.setAttributeNS(n,o,v):t.setAttribute(o,v)}}function gv(e,t,n,r,o,a){const f=a[t];if(null!==f){const v=r.setInput;for(let S=0;S<f.length;){const L=f[S++],G=f[S++],Ee=f[S++];null!==v?r.setInput(n,Ee,L,G):n[G]=Ee}}}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=Rt(t,e);if(wn(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=Ja(e);null!==r;r=Xa(r))for(let o=10;o<r.length;o++){const a=r[o];if(1024&a[2]){const f=a[1];mo(f,a,f.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=Rt(n[r],e);wn(o)&&o[5]>0&&Dl(o)}}function Cv(e,t){const n=Rt(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 wl(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 Ml(e,t,n){const r=t[10];r.begin&&r.begin();try{mo(e,t,e.template,n)}catch(o){throw $h(t,o),o}finally{r.end&&r.end()}}function Lh(e){wl(e[8])}function Sl(e,t,n){yt(0),t(e,n)}const Mv=_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 $h(e,t){const n=e[9],r=n?n.get(qo,null):null;r&&r.handleError(t)}function Hh(e,t,n,r,o){for(let a=0;a<n.length;){const f=n[a++],v=n[a++],S=t[f],L=e.data[f];null!==L.setInput?L.setInput(S,o,r,v):S[v]=o}}function kr(e,t,n){const r=F(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 f=0;f<t.length;f++){const v=t[f];"number"==typeof v?a=v:1==a?o=I(o,v):2==a&&(r=I(r,v+": "+t[++f]+";"))}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function Uh(e){const t=Sd(e);Ml(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,wl(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 ${w(t)}!`);throw r.name="NullInjectorError",r}return n}}const Il=new Yn("Set Injector scope."),rs={},Sv={};let Pl;function Kh(){return void 0===Pl&&(Pl=new zh),Pl}function Al(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,v=>this.processProvider(v,t,n)),yr([t],v=>this.processInjectorType(v,[],a)),this.records.set(Zs,go(void 0,this));const f=this.records.get(Il);this.scope=null!=f?f.value:null,this.source=o||("object"==typeof t?null:w(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=N.Default){this.assertNotDestroyed();const o=Ra(this),a=ue(void 0);try{if(!(r&N.SkipSelf)){let v=this.records.get(t);if(void 0===v){const S=function Nv(e){return"function"==typeof e||"object"==typeof e&&e instanceof Yn}(t)&&Me(t);v=S&&this.injectableDefInScope(S)?go(Ol(t),rs):null,this.records.set(t,v)}if(null!=v)return this.hydrate(t,v)}return(r&N.Self?Kh():this.parent).get(t,n=r&N.Optional&&n===Vr?null:n)}catch(f){if("NullInjectorError"===f.name){if((f[Fs]=f[Fs]||[]).unshift(w(t)),o)throw f;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=w(t);if(Array.isArray(t))o=t.map(w).join(" -> ");else if("object"==typeof t){let a=[];for(let f in t)if(t.hasOwnProperty(f)){let v=t[f];a.push(f+":"+("string"==typeof v?JSON.stringify(v):w(v)))}o=`{${a.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(__,"\n ")}`}("\n"+e.message,o,n,r),e.ngTokenPath=o,e[Fs]=null,e}(f,t,"R3InjectorError",this.source)}throw f}finally{ue(a),Ra(o)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((r,o)=>t.push(w(o))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,n,r){if(!(t=M(t)))return!1;let o=ht(t);const a=null==o&&t.ngModule||void 0,f=void 0===a?t:a,v=-1!==r.indexOf(f);if(void 0!==a&&(o=ht(a)),null==o)return!1;if(null!=o.imports&&!v){let G;r.push(f);try{yr(o.imports,Ee=>{this.processInjectorType(Ee,n,r)&&(void 0===G&&(G=[]),G.push(Ee))})}finally{}if(void 0!==G)for(let Ee=0;Ee<G.length;Ee++){const{ngModule:We,providers:nt}=G[Ee];yr(nt,gt=>this.processProvider(gt,We,nt||Mt))}}this.injectorDefTypes.add(f);const S=fi(f)||(()=>new f);this.records.set(f,go(S,rs));const L=o.providers;if(null!=L&&!v){const G=t;yr(L,Ee=>this.processProvider(Ee,G,L))}return void 0!==a&&void 0!==t.providers}processProvider(t,n,r){let o=_o(t=M(t))?t:M(t&&t.provide);const a=function Av(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 f=this.records.get(o);f||(f=go(void 0,rs,!0),f.factory=()=>ka(f.multi),this.records.set(o,f)),o=t,f.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=M(t.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function Ol(e){const t=Me(e),n=null!==t?t.factory:fi(e);if(null!==n)return n;if(e instanceof Yn)throw new Error(`Token ${w(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function Pv(e){const t=e.length;if(t>0){const r=Wo(t,"?");throw new Error(`Can't resolve all parameters for ${w(e)}: (${r.join(", ")}).`)}const n=function ve(e){const t=e&&(e[bt]||e[lt]);if(t){const n=function Ye(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=M(e);return fi(o)||Ol(o)}if(Zh(e))r=()=>M(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(M(e.useExisting));else{const o=M(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 Al({name:""},r,n,"");{const a=null!==(o=n.name)&&void 0!==o?o:"";return Al({name:a},n.parent,n.providers,a)}}}return e.THROW_IF_NOT_FOUND=Vr,e.NULL=new zh,e.\u0275prov=Ze({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 Jh(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 Xh(e){return[...Hd(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=$e(t);if(n)return{inputs:n.inputs,outputs:n.outputs,encapsulation:n.encapsulation,changeDetection:n.onPush?Ce.OnPush:Ce.Default};const r=ut(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,f=[];if(a&&o)for(let v=0;v<a.length;){const S=a[v++],L=a[v++];if("string"==typeof S){const G=S,Ee=Ln(n[L]),We=o[a[v++]],nt=a[v++],gt="boolean"==typeof nt||nt>=0?"dom":"output",Pt="boolean"==typeof nt&&nt;e==Ee&&f.push({element:e,name:G,callback:We,useCapture:Pt,type:gt})}}return f.sort(Vv),f}function Vv(e,t){return e.name==t.name?0:e.name<t.name?-1:1}function $v(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 Hv(e){Wh(e),Xh(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",Jh),er("getHostElement",Rl),er("getInjector",qh),er("getRootComponents",Xh),er("getDirectives",ef),er("applyChanges",Hv))}function er(e,t){if("undefined"==typeof COMPILED||!COMPILED){const n=Bt;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=$e(e);o.type!=e&&(o.type=e);const a=o.selectors[0][0],v=Sh(n.createRenderer(null,null),t.host||a,o.encapsulation),S=o.onPush?576:528,L=lf(t.scheduler,t.playerHandler),G=n.createRenderer(v,o),Ee=Ks(0,null,null,1,0,null,null,null,null,null),We=ns(null,Ee,L,S,null,null,n,G,null,t.injector||null);let nt;Gt(We);try{n.begin&&n.begin(),nt=af(sf(v,o,We,n,G,r),o,We,L,t.hostFeatures||null),is(Ee,We,null),mo(Ee,We,null,null)}finally{It(),n.end&&n.end()}return nt}function sf(e,t,n,r,o,a){const f=n[1];n[20]=e;const S=fo(f,20,2,"#host",null),L=S.mergedAttrs=t.hostAttrs;null!==L&&(Qs(S,L,!0),null!==e&&(ws(o,e,L),null!==S.classes&&sl(o,e,S.classes),null!==S.styles&&rh(o,e,S.styles)));const G=r.createRenderer(e,t),Ee=ns(n,wh(t),null,t.onPush?64:16,n[20],S,r,G,a||null,null);return f.firstCreatePass&&(Ps(Vo(S,n),f,t.type),Rh(f,S),Fh(S,n.length,1)),Gs(n,Ee),n[20]=Ee}function af(e,t,n,r,o){const a=n[1],f=function lv(e,t,n){const r=p();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),kh(e,r,t,po(e,t,1,null),n));const o=$o(t,e,r.directiveStart,r);vi(o,t);const a=ne(r,t);return a&&vi(a,t),o}(a,n,t);if(r.components.push(f),e[8]=f,o&&o.forEach(S=>S(f,t)),t.contentQueries){const S=p();t.contentQueries(1,f,S.directiveStart)}const v=p();return!a.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(jn(v.index),Oh(n[1],v,0,v.directiveStart,v.directiveEnd,t),xh(t,f)),f}function lf(e,t){return{components:[],scheduler:e||kd,clean:Mv,playerHandler:t||null,flags:0}}function cf(e,t){Ji(Ka(e)[1],p())}function zv(e){return Hd(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 f=e;f.inputs=Nl(e.inputs),f.declaredInputs=Nl(e.declaredInputs),f.outputs=Nl(e.outputs);const v=o.hostBindings;v&&Zv(e,v);const S=o.viewQuery,L=o.contentQueries;if(S&&Gv(e,S),L&&Qv(e,L),E(e.inputs,o.inputs),E(e.declaredInputs,o.declaredInputs),E(e.outputs,o.outputs),Wn(o)&&o.data.animation){const G=e.data;G.animation=(G.animation||[]).concat(o.data.animation)}}const a=o.features;if(a)for(let f=0;f<a.length;f++){const v=a[f];v&&v.ngInherit&&v(e),v===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=Ms(o.hostAttrs,n=Ms(n,o.hostAttrs))}}(r)}function Nl(e){return e===Wt?{}:e===Mt?[]: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"],Jv=["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 Jv)r[o]=n[o]}let Ys=null;function yo(){if(!Ys){const e=Bt.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 Xv(e,t,n){const r=e[yo()](),o=t[yo()]();for(;;){const a=r.next(),f=o.next();if(a.done&&f.done)return!0;if(a.done||f.done||!n(a.value,f.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 Js(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 f=Qr(e,t,n,r);return Qr(e,t+2,o,a)||f}function Bl(e,t,n,r){const o=Tt();return bi(o,tn(),t)&&(B(),Er(An(),o,e,t,n,r)),Bl}function vo(e,t){let n=!1,r=un();for(let a=1;a<t.length;a+=2)n=bi(e,r++,t[a])||n;if(Xt(r),!n)return fn;let o=t[0];for(let a=1;a<t.length;a+=2)o+=$(t[a])+t[a+1];return o}function bo(e,t,n,r){return bi(e,tn(),n)?t+$(n)+r:fn}function Co(e,t,n,r,o,a){const v=Qr(e,un(),n,o);return dn(2),v?t+$(n)+r+$(o)+a:fn}function Eo(e,t,n,r,o,a,f,v){const L=Js(e,un(),n,o,f);return dn(3),L?t+$(n)+r+$(o)+a+$(f)+v:fn}function Do(e,t,n,r,o,a,f,v,S,L){const Ee=tr(e,un(),n,o,f,S);return dn(4),Ee?t+$(n)+r+$(o)+a+$(f)+v+$(S)+L:fn}function To(e,t,n,r,o,a,f,v,S,L,G,Ee){const We=un();let nt=tr(e,We,n,o,f,S);return nt=bi(e,We+4,G)||nt,dn(5),nt?t+$(n)+r+$(o)+a+$(f)+v+$(S)+L+$(G)+Ee:fn}function wo(e,t,n,r,o,a,f,v,S,L,G,Ee,We,nt){const gt=un();let Pt=tr(e,gt,n,o,f,S);return Pt=Qr(e,gt+4,G,We)||Pt,dn(6),Pt?t+$(n)+r+$(o)+a+$(f)+v+$(S)+L+$(G)+Ee+$(We)+nt:fn}function Mo(e,t,n,r,o,a,f,v,S,L,G,Ee,We,nt,gt,Pt){const Ft=un();let Kt=tr(e,Ft,n,o,f,S);return Kt=Js(e,Ft+4,G,We,gt)||Kt,dn(7),Kt?t+$(n)+r+$(o)+a+$(f)+v+$(S)+L+$(G)+Ee+$(We)+nt+$(gt)+Pt:fn}function So(e,t,n,r,o,a,f,v,S,L,G,Ee,We,nt,gt,Pt,Ft,Kt){const Ct=un();let qt=tr(e,Ct,n,o,f,S);return qt=tr(e,Ct+4,G,We,gt,Ft)||qt,dn(8),qt?t+$(n)+r+$(o)+a+$(f)+v+$(S)+L+$(G)+Ee+$(We)+nt+$(gt)+Pt+$(Ft)+Kt:fn}function jl(e,t,n,r,o,a){const f=Tt(),v=bo(f,t,n,r);return v!==fn&&Er(An(),f,e,v,o,a),jl}function Vl(e,t,n,r,o,a,f,v){const S=Tt(),L=Co(S,t,n,r,o,a);return L!==fn&&Er(An(),S,e,L,f,v),Vl}function $l(e,t,n,r,o,a,f,v,S,L){const G=Tt(),Ee=Eo(G,t,n,r,o,a,f,v);return Ee!==fn&&Er(An(),G,e,Ee,S,L),$l}function Hl(e,t,n,r,o,a,f,v,S,L,G,Ee){const We=Tt(),nt=Do(We,t,n,r,o,a,f,v,S,L);return nt!==fn&&Er(An(),We,e,nt,G,Ee),Hl}function Ul(e,t,n,r,o,a,f,v,S,L,G,Ee,We,nt){const gt=Tt(),Pt=To(gt,t,n,r,o,a,f,v,S,L,G,Ee);return Pt!==fn&&Er(An(),gt,e,Pt,We,nt),Ul}function Wl(e,t,n,r,o,a,f,v,S,L,G,Ee,We,nt,gt,Pt){const Ft=Tt(),Kt=wo(Ft,t,n,r,o,a,f,v,S,L,G,Ee,We,nt);return Kt!==fn&&Er(An(),Ft,e,Kt,gt,Pt),Wl}function zl(e,t,n,r,o,a,f,v,S,L,G,Ee,We,nt,gt,Pt,Ft,Kt){const Ct=Tt(),qt=Mo(Ct,t,n,r,o,a,f,v,S,L,G,Ee,We,nt,gt,Pt);return qt!==fn&&Er(An(),Ct,e,qt,Ft,Kt),zl}function Kl(e,t,n,r,o,a,f,v,S,L,G,Ee,We,nt,gt,Pt,Ft,Kt,Ct,qt){const Cn=Tt(),Fn=So(Cn,t,n,r,o,a,f,v,S,L,G,Ee,We,nt,gt,Pt,Ft,Kt);return Fn!==fn&&Er(An(),Cn,e,Fn,Ct,qt),Kl}function Gl(e,t,n,r){const o=Tt(),a=vo(o,t);return a!==fn&&Er(An(),o,e,a,n,r),Gl}function ff(e,t,n,r,o,a,f,v){const S=Tt(),L=B(),G=e+20,Ee=L.firstCreatePass?function eb(e,t,n,r,o,a,f,v,S){const L=t.consts,G=fo(t,e,4,f||null,cn(L,v));Cl(t,n,G,cn(L,S)),Ji(t,G);const Ee=G.tViews=Ks(2,G,r,o,a,t.directiveRegistry,t.pipeRegistry,null,t.schemas,L);return null!==t.queries&&(t.queries.template(t,G),Ee.queries=t.queries.embeddedTView(G)),G}(G,L,S,t,n,r,o,a,f):L.data[G];de(Ee,!1);const We=S[11].createComment("");$s(L,S,We,Ee),vi(We,S),Gs(S,S[G]=Nh(We,S,We,Ee)),hi(Ee)&&vl(L,S,Ee),null!=f&&bl(S,Ee,v)}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 vt(function mt(){return D.lFrame.contextLView}(),20+e)}const gf={\u0275\u0275defineInjectable:Ze,\u0275\u0275defineInjector:me,\u0275\u0275inject:si,\u0275\u0275invalidFactoryDep:Fa,resolveForwardRef:M};const nb=y({provide:String,useValue:y});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(bt)||Object.defineProperty(e,bt,{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(oe)||Object.defineProperty(e,oe,{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=>w(r.token)).join(" -> ")+")":""}function Zl(e,t,n,r){const o=[t],a=n(o),f=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 f.addKey=lb,f.keys=o,f.injectors=[e],f.constructResolvingMessage=n,f[Ga]=r,f}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(w).join(" "):"?")}return Error("Cannot resolve all parameters for '"+w(e)+"'("+n.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+w(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=w(this.token)}static get(t){return bf.get(M(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 Aa);class Xs{constructor(t,n,r){this.key=t,this.optional=n,this.visibility=r}static fromKey(t){return new Xs(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=M(e.useClass);t=Cf.factory(r),n=wf(r)}else e.useExisting?(t=r=>r,n=[Xs.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=>Mf(e,r,n))}return wf(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 wf(e){const t=Cf.parameters(e);if(!t)return[];if(t.some(n=>null==n))throw vf(e,t);return t.map(n=>Mf(e,n,t))}function Mf(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 f=0;f<t.length;++f){const v=t[f];v instanceof Os?r=v:v instanceof Go?r=v.token:v instanceof Wr?o=!0:v instanceof ks||v instanceof zr?a=v:v instanceof Yn&&(r=v)}if(r=M(r),null!=r)return Yl(r,o,a);throw vf(e,n)}function Yl(e,t,n){return new Xs(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,f;try{a=r.dependencies.map(v=>this._getByReflectiveDependency(v))}catch(v){throw v.addKey&&v.addKey(this,n.key),v}try{f=o(...a)}catch(v){throw function db(e,t,n,r){return Zl(e,r,function(o){const a=w(o[0].token);return`${t.message}: Error during instantiation of ${a}!${Ql(o)}.`},t)}(this,v,0,n.key)}return f}_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 ${w(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 f=a,v=f._getObjByKeyId(n.id);if(v!==as)return v;a=f.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=N.Default){const n=Tt();return null===n?si(e,t):zu(p(),n,M(e),t)}function Sf(){throw new Error("invalid")}function Jl(e,t,n){const r=Tt();return bi(r,tn(),t)&&ji(B(),An(),r,e,t,r[11],n,!1),Jl}function Xl(e,t,n,r,o){const f=o?"class":"style";Hh(e,n,t.inputs[f],f,r)}function ql(e,t,n,r){const o=Tt(),a=B(),f=20+e,v=o[11],S=o[f]=el(v,t,function ba(){return D.lFrame.currentNamespace}()),L=a.firstCreatePass?function wb(e,t,n,r,o,a,f){const v=t.consts,L=fo(t,e,2,o,cn(v,a));return Cl(t,n,L,cn(v,f)),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}(f,a,o,0,t,n,r):a.data[f];de(L,!0);const G=L.mergedAttrs;null!==G&&ws(v,S,G);const Ee=L.classes;null!==Ee&&sl(v,S,Ee);const We=L.styles;null!==We&&rh(v,S,We),64!=(64&L.flags)&&$s(a,o,S,L),0===function at(){return D.lFrame.elementDepthCount}()&&vi(S,o),function Vt(){D.lFrame.elementDepthCount++}(),hi(L)&&(vl(a,o,L),Th(a,L,o)),null!==r&&bl(o,L)}function ec(){let e=p();Ne()?Ue():(e=e.parent,de(e,!1));const t=e;!function Pn(){D.lFrame.elementDepthCount--}();const n=B();n.firstCreatePass&&(Ji(n,e),Ci(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function Qg(e){return 0!=(16&e.flags)}(t)&&Xl(n,t,Tt(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function Zg(e){return 0!=(32&e.flags)}(t)&&Xl(n,t,Tt(),t.stylesWithoutHost,!1)}function If(e,t,n,r){ql(e,t,n,r),ec()}function tc(e,t,n){const r=Tt(),o=B(),a=e+20,f=o.firstCreatePass?function Mb(e,t,n,r,o){const a=t.consts,f=cn(a,r),v=fo(t,e,8,"ng-container",f);return null!==f&&Qs(v,f,!0),Cl(t,n,v,cn(a,o)),null!==t.queries&&t.queries.elementStart(t,v),v}(a,o,r,t,n):o.data[a];de(f,!0);const v=r[a]=r[11].createComment("");$s(o,r,v,f),vi(v,r),hi(f)&&(vl(o,r,f),Th(o,f,r)),null!=n&&bl(r,f)}function nc(){let e=p();const t=B();Ne()?Ue():(e=e.parent,de(e,!1)),t.firstCreatePass&&(Ji(t,e),Ci(e)&&t.queries.elementEnd(e))}function Pf(e,t,n){tc(e,t,n),nc()}function Af(){return Tt()}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=Tt(),a=B(),f=p();return Rf(a,o,o[11],f,e,t,!!n,r),rc}function oc(e,t){const n=p(),r=Tt(),o=B();return Rf(o,r,Vh(je(o.data),n,r),n,e,t,!1),oc}function Rf(e,t,n,r,o,a,f,v){const S=hi(r),G=e.firstCreatePass&&jh(e),Ee=t[8],We=Bh(t);let nt=!0;if(3&r.type||v){const Ft=ne(r,t),Kt=v?v(Ft):Ft,Ct=We.length,qt=v?Cn=>v(Ln(Cn[r.index])):r.index;if(Rn(n)){let Cn=null;if(!v&&S&&(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 f=o[a];if(f===n&&o[a+1]===r){const v=t[7],S=o[a+2];return v.length>S?v[S]:null}"string"==typeof f&&(a+=2)}return null}(e,t,o,r.index)),null!==Cn)(Cn.__ngLastListenerFn__||Cn).__ngNextListenerFn__=a,Cn.__ngLastListenerFn__=a,nt=!1;else{a=sc(r,t,Ee,a,!1);const Fn=n.listen(Kt,o,a);We.push(a,Fn),G&&G.push(o,qt,Ct,Ct+1)}}else a=sc(r,t,Ee,a,!0),Kt.addEventListener(o,a,f),We.push(a),G&&G.push(o,qt,Ct,f)}else a=sc(r,t,Ee,a,!1);const gt=r.outputs;let Pt;if(nt&&null!==gt&&(Pt=gt[o])){const Ft=Pt.length;if(Ft)for(let Kt=0;Kt<Ft;Kt+=2){const Hi=t[Pt[Kt]][Pt[Kt+1]].subscribe(a),Jr=We.length;We.push(a,Hi),G&&G.push(o,r.index,Jr,-(Jr+1))}}}function Ff(e,t,n,r){try{return ti(6,t,n),!1!==n(r)}catch(o){return $h(e,o),!1}finally{ti(7,t,n)}}function sc(e,t,n,r,o){return function a(f){if(f===Function)return r;const v=2&e.flags?Rt(e.index,t):t;0==(32&t[2])&&Tl(v);let S=Ff(t,n,r,f),L=a.__ngNextListenerFn__;for(;L;)S=Ff(t,n,L,f)&&S,L=L.__ngNextListenerFn__;return o&&!1===S&&(f.preventDefault(),f.returnValue=!1),S}}function kf(e=1){return function xt(e){return(D.lFrame.contextLView=function Yt(e,t){for(;e>0;)t=t[15],e--;return t}(e,D.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=Tt()[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 f=e?Ib(a,e):0;null!==f&&(o[f]?o[f].projectionNext=a:r[f]=a,o[f]=a),a=a.next}}}function Lf(e,t=0,n){const r=Tt(),o=B(),a=fo(o,20+e,16,null,n||null);null===a.projection&&(a.projection=t),Ue(),64!=(64&a.flags)&&function Iy(e,t,n){ih(t[11],0,t,n,Gd(e,n,t),Jd(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=Tt(),f=bo(a,t,n,r);return f!==fn&&ji(B(),An(),a,e,f,a[11],o,!1),qs}function lc(e,t,n,r,o,a,f){const v=Tt(),S=Co(v,t,n,r,o,a);return S!==fn&&ji(B(),An(),v,e,S,v[11],f,!1),lc}function cc(e,t,n,r,o,a,f,v,S){const L=Tt(),G=Eo(L,t,n,r,o,a,f,v);return G!==fn&&ji(B(),An(),L,e,G,L[11],S,!1),cc}function uc(e,t,n,r,o,a,f,v,S,L,G){const Ee=Tt(),We=Do(Ee,t,n,r,o,a,f,v,S,L);return We!==fn&&ji(B(),An(),Ee,e,We,Ee[11],G,!1),uc}function dc(e,t,n,r,o,a,f,v,S,L,G,Ee,We){const nt=Tt(),gt=To(nt,t,n,r,o,a,f,v,S,L,G,Ee);return gt!==fn&&ji(B(),An(),nt,e,gt,nt[11],We,!1),dc}function hc(e,t,n,r,o,a,f,v,S,L,G,Ee,We,nt,gt){const Pt=Tt(),Ft=wo(Pt,t,n,r,o,a,f,v,S,L,G,Ee,We,nt);return Ft!==fn&&ji(B(),An(),Pt,e,Ft,Pt[11],gt,!1),hc}function fc(e,t,n,r,o,a,f,v,S,L,G,Ee,We,nt,gt,Pt,Ft){const Kt=Tt(),Ct=Mo(Kt,t,n,r,o,a,f,v,S,L,G,Ee,We,nt,gt,Pt);return Ct!==fn&&ji(B(),An(),Kt,e,Ct,Kt[11],Ft,!1),fc}function pc(e,t,n,r,o,a,f,v,S,L,G,Ee,We,nt,gt,Pt,Ft,Kt,Ct){const qt=Tt(),Cn=So(qt,t,n,r,o,a,f,v,S,L,G,Ee,We,nt,gt,Pt,Ft,Kt);return Cn!==fn&&ji(B(),An(),qt,e,Cn,qt[11],Ct,!1),pc}function mc(e,t,n){const r=Tt(),o=vo(r,t);return o!==fn&&ji(B(),An(),r,e,o,r[11],n,!1),mc}function Bf(e,t,n,r,o){const a=e[n+1],f=null===t;let v=r?ur(a):Fr(a),S=!1;for(;0!==v&&(!1===S||f);){const G=e[v+1];Ob(e[v],t)&&(S=!0,e[v+1]=r?cl(G):al(G)),v=r?ur(G):Fr(G)}S&&(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),Po(e,t,n))}function $f(e,t){const n=oi.textEnd;let r=oi.key=Po(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=Po(e,r,n),r=oi.valueEnd=function Lb(e,t,n){let r=-1,o=-1,a=-1,f=t,v=f;for(;f<n;){const S=e.charCodeAt(f++);if(59===S)return v;34===S||39===S?v=f=Wf(e,S,f,n):t===f-4&&85===a&&82===o&&76===r&&40===S?v=f=Wf(e,41,f,n):S>32&&(v=f),a=o,o=r,r=-33&S}return v}(e,r,n),Uf(e,r,n))}function Hf(e){oi.key=0,oi.keyEnd=0,oi.value=0,oi.valueEnd=0,oi.textEnd=e.length}function Po(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function Uf(e,t,n,r){return(t=Po(e,t,n))<n&&t++,t}function Wf(e,t,n,r){let o=-1,a=n;for(;a<r;){const f=e.charCodeAt(a++);if(f==t&&92!==o)return a;o=92==f&&92===o?0:f}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 Hf(e),$f(e,Po(e,0,oi.textEnd))}(t);n>=0;n=$f(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 Hf(e),Vf(e,Po(e,0,oi.textEnd))}(t);n>=0;n=Vf(t,n))Bi(e,jf(t),!0)}function hr(e,t,n,r){const o=Tt(),a=B(),f=dn(2);a.firstUpdatePass&&Gf(a,e,f,r),t!==fn&&bi(o,f,t)&&Zf(a,a.data[sn()],o,o[11],e,o[f+1]=function zb(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=w(Rr(e)))),e}(t,n),r,f)}function fr(e,t,n,r){const o=B(),a=dn(2);o.firstUpdatePass&&Gf(o,null,a,r);const f=Tt();if(n!==fn&&bi(f,a,n)){const v=o.data[sn()];if(Jf(v,r)&&!Kf(o,a)){let S=r?v.classesWithoutHost:v.stylesWithoutHost;null!==S&&(n=I(S,n||"")),Xl(o,v,f,n,r)}else!function Wb(e,t,n,r,o,a,f,v){o===fn&&(o=Mt);let S=0,L=0,G=0<o.length?o[0]:null,Ee=0<a.length?a[0]:null;for(;null!==G||null!==Ee;){const We=S<o.length?o[S+1]:void 0,nt=L<a.length?a[L+1]:void 0;let Pt,gt=null;G===Ee?(S+=2,L+=2,We!==nt&&(gt=Ee,Pt=nt)):null===Ee||null!==G&&G<Ee?(S+=2,gt=G):(L+=2,gt=Ee,Pt=nt),null!==gt&&Zf(e,t,n,r,gt,Pt,f,v),G=S<o.length?o[S]:null,Ee=L<a.length?a[L]:null}}(o,v,f,f[11],f[a+1],f[a+1]=function Ub(e,t,n){if(null==n||""===n)return Mt;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()],f=Kf(e,n);Jf(a,r)&&null===t&&!f&&(t=!1),t=function jb(e,t,n,r){const o=je(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 f=t.directiveStylingLast;if(-1===f||e[f]!==o)if(n=yc(o,e,t,n,r),null===a){let S=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!==S&&Array.isArray(S)&&(S=yc(null,e,t,S[1],r),S=cs(S,t.attrs,r),function $b(e,t,n,r){e[ur(n?t.classBindings:t.styleBindings)]=r}(e,t,r,S))}else a=function Hb(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 Pb(e,t,n,r,o,a){let f=a?t.classBindings:t.styleBindings,v=ur(f),S=Fr(f);e[r]=n;let G,L=!1;if(Array.isArray(n)){const Ee=n;G=Ee[1],(null===G||so(Ee,G)>0)&&(L=!0)}else G=n;if(o)if(0!==S){const We=ur(e[v+1]);e[r+1]=Us(We,v),0!==We&&(e[We+1]=ll(e[We+1],r)),e[v+1]=function Hy(e,t){return 131071&e|t<<17}(e[v+1],r)}else e[r+1]=Us(v,0),0!==v&&(e[v+1]=ll(e[v+1],r)),v=r;else e[r+1]=Us(S,0),0===v?v=r:e[S+1]=ll(e[S+1],r),S=r;L&&(e[r+1]=al(e[r+1])),Bf(e,G,r,!0),Bf(e,G,r,!1),function Ab(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,G,e,r,a),f=Us(v,S),a?t.classBindings=f:t.styleBindings=f}(o,a,t,n,f,r)}}function yc(e,t,n,r,o){let a=null;const f=n.directiveEnd;let v=n.directiveStylingLast;for(-1===v?v=n.directiveStart:v++;v<f&&(a=t[v],r=cs(r,a.hostAttrs,o),a!==e);)v++;return null!==e&&(n.directiveStylingLast=v),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 f=t[a];"number"==typeof f?o=f:o===r&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),Bi(e,f,!!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,f,v){if(!(3&t.type))return;const S=e.data,L=S[v+1];ea(function ph(e){return 1==(1&e)}(L)?Yf(S,t,n,o,Fr(L),f):void 0)||(ea(a)||function fh(e){return 2==(2&e)}(L)&&(a=Yf(S,null,n,o,v,f)),function Ay(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 f=-1===r.indexOf("-")?void 0:Cr.DashCase;if(null==o)a?e.removeStyle(n,r,f):n.style.removeProperty(r);else{const v="string"==typeof o&&o.endsWith("!important");v&&(o=o.slice(0,-10),f|=Cr.Important),a?e.setStyle(n,r,o,f):n.style.setProperty(r,o,v?"important":"")}}}(r,f,F(sn(),n),o,a))}function Yf(e,t,n,r,o,a){const f=null===t;let v;for(;o>0;){const S=e[o],L=Array.isArray(S),G=L?S[1]:S,Ee=null===G;let We=n[o+1];We===fn&&(We=Ee?Mt:void 0);let nt=Ee?Pa(We,r):G===r?We:void 0;if(L&&!ea(nt)&&(nt=Pa(S,r)),ea(nt)&&(v=nt,f))return v;const gt=e[o+1];o=f?ur(gt):Fr(gt)}if(null!==t){let S=a?t.residualClasses:t.residualStyles;null!=S&&(v=Pa(S,r))}return v}function ea(e){return void 0!==e}function Jf(e,t){return 0!=(e.flags&(t?16:32))}function Xf(e,t=""){const n=Tt(),r=B(),o=e+20,a=r.firstCreatePass?fo(r,o,1,t,null):r.data[o],f=n[o]=qa(n[11],t);$s(r,n,f,a),de(a,!1)}function vc(e){return ta("",e,""),vc}function ta(e,t,n){const r=Tt(),o=bo(r,e,t,n);return o!==fn&&kr(r,sn(),o),ta}function bc(e,t,n,r,o){const a=Tt(),f=Co(a,e,t,n,r,o);return f!==fn&&kr(a,sn(),f),bc}function Cc(e,t,n,r,o,a,f){const v=Tt(),S=Eo(v,e,t,n,r,o,a,f);return S!==fn&&kr(v,sn(),S),Cc}function Ec(e,t,n,r,o,a,f,v,S){const L=Tt(),G=Do(L,e,t,n,r,o,a,f,v,S);return G!==fn&&kr(L,sn(),G),Ec}function Dc(e,t,n,r,o,a,f,v,S,L,G){const Ee=Tt(),We=To(Ee,e,t,n,r,o,a,f,v,S,L,G);return We!==fn&&kr(Ee,sn(),We),Dc}function Tc(e,t,n,r,o,a,f,v,S,L,G,Ee,We){const nt=Tt(),gt=wo(nt,e,t,n,r,o,a,f,v,S,L,G,Ee,We);return gt!==fn&&kr(nt,sn(),gt),Tc}function wc(e,t,n,r,o,a,f,v,S,L,G,Ee,We,nt,gt){const Pt=Tt(),Ft=Mo(Pt,e,t,n,r,o,a,f,v,S,L,G,Ee,We,nt,gt);return Ft!==fn&&kr(Pt,sn(),Ft),wc}function Mc(e,t,n,r,o,a,f,v,S,L,G,Ee,We,nt,gt,Pt,Ft){const Kt=Tt(),Ct=So(Kt,e,t,n,r,o,a,f,v,S,L,G,Ee,We,nt,gt,Pt,Ft);return Ct!==fn&&kr(Kt,sn(),Ct),Mc}function Sc(e){const t=Tt(),n=vo(t,e);return n!==fn&&kr(t,sn(),n),Sc}function qf(e,t,n){fr(Bi,Tr,bo(Tt(),e,t,n),!0)}function ep(e,t,n,r,o){fr(Bi,Tr,Co(Tt(),e,t,n,r,o),!0)}function tp(e,t,n,r,o,a,f){fr(Bi,Tr,Eo(Tt(),e,t,n,r,o,a,f),!0)}function np(e,t,n,r,o,a,f,v,S){fr(Bi,Tr,Do(Tt(),e,t,n,r,o,a,f,v,S),!0)}function ip(e,t,n,r,o,a,f,v,S,L,G){fr(Bi,Tr,To(Tt(),e,t,n,r,o,a,f,v,S,L,G),!0)}function rp(e,t,n,r,o,a,f,v,S,L,G,Ee,We){fr(Bi,Tr,wo(Tt(),e,t,n,r,o,a,f,v,S,L,G,Ee,We),!0)}function op(e,t,n,r,o,a,f,v,S,L,G,Ee,We,nt,gt){fr(Bi,Tr,Mo(Tt(),e,t,n,r,o,a,f,v,S,L,G,Ee,We,nt,gt),!0)}function sp(e,t,n,r,o,a,f,v,S,L,G,Ee,We,nt,gt,Pt,Ft){fr(Bi,Tr,So(Tt(),e,t,n,r,o,a,f,v,S,L,G,Ee,We,nt,gt,Pt,Ft),!0)}function ap(e){fr(Bi,Tr,vo(Tt(),e),!0)}function lp(e,t,n){dr(bo(Tt(),e,t,n))}function cp(e,t,n,r,o){dr(Co(Tt(),e,t,n,r,o))}function up(e,t,n,r,o,a,f){dr(Eo(Tt(),e,t,n,r,o,a,f))}function dp(e,t,n,r,o,a,f,v,S){dr(Do(Tt(),e,t,n,r,o,a,f,v,S))}function hp(e,t,n,r,o,a,f,v,S,L,G){dr(To(Tt(),e,t,n,r,o,a,f,v,S,L,G))}function fp(e,t,n,r,o,a,f,v,S,L,G,Ee,We){dr(wo(Tt(),e,t,n,r,o,a,f,v,S,L,G,Ee,We))}function pp(e,t,n,r,o,a,f,v,S,L,G,Ee,We,nt,gt){dr(Mo(Tt(),e,t,n,r,o,a,f,v,S,L,G,Ee,We,nt,gt))}function mp(e,t,n,r,o,a,f,v,S,L,G,Ee,We,nt,gt,Pt,Ft){dr(So(Tt(),e,t,n,r,o,a,f,v,S,L,G,Ee,We,nt,gt,Pt,Ft))}function gp(e){dr(vo(Tt(),e))}function Ic(e,t,n,r,o){return hr(e,bo(Tt(),t,n,r),o,!1),Ic}function Pc(e,t,n,r,o,a,f){return hr(e,Co(Tt(),t,n,r,o,a),f,!1),Pc}function Ac(e,t,n,r,o,a,f,v,S){return hr(e,Eo(Tt(),t,n,r,o,a,f,v),S,!1),Ac}function Oc(e,t,n,r,o,a,f,v,S,L,G){return hr(e,Do(Tt(),t,n,r,o,a,f,v,S,L),G,!1),Oc}function xc(e,t,n,r,o,a,f,v,S,L,G,Ee,We){return hr(e,To(Tt(),t,n,r,o,a,f,v,S,L,G,Ee),We,!1),xc}function Rc(e,t,n,r,o,a,f,v,S,L,G,Ee,We,nt,gt){return hr(e,wo(Tt(),t,n,r,o,a,f,v,S,L,G,Ee,We,nt),gt,!1),Rc}function Fc(e,t,n,r,o,a,f,v,S,L,G,Ee,We,nt,gt,Pt,Ft){return hr(e,Mo(Tt(),t,n,r,o,a,f,v,S,L,G,Ee,We,nt,gt,Pt),Ft,!1),Fc}function kc(e,t,n,r,o,a,f,v,S,L,G,Ee,We,nt,gt,Pt,Ft,Kt,Ct){return hr(e,So(Tt(),t,n,r,o,a,f,v,S,L,G,Ee,We,nt,gt,Pt,Ft,Kt),Ct,!1),kc}function Nc(e,t,n){return hr(e,vo(Tt(),t),n,!1),Nc}function Lc(e,t,n){const r=Tt();return bi(r,tn(),t)&&ji(B(),An(),r,e,t,r[11],n,!0),Lc}function Bc(e,t,n){const r=Tt();if(bi(r,tn(),t)){const a=B(),f=An();ji(a,f,r,e,t,Vh(je(a.data),f,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 Ao={};function Qb(e,t,n){"string"!=typeof t&&(n=t,t=e[nn.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),Ao[t]=e,n&&(Ao[t][nn.ExtraData]=n)}function jc(e){const t=function Jb(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)[nn.CurrencyCode]||null}function _p(e){return jc(e)[nn.PluralCase]}function yp(e){return e in Ao||(Ao[e]=Bt.ng&&Bt.ng.common&&Bt.ng.common.locales&&Bt.ng.common.locales[e]),Ao[e]}function Yb(){Ao={}}var nn=(()=>((nn=nn||{})[nn.LocaleId=0]="LocaleId",nn[nn.DayPeriodsFormat=1]="DayPeriodsFormat",nn[nn.DayPeriodsStandalone=2]="DayPeriodsStandalone",nn[nn.DaysFormat=3]="DaysFormat",nn[nn.DaysStandalone=4]="DaysStandalone",nn[nn.MonthsFormat=5]="MonthsFormat",nn[nn.MonthsStandalone=6]="MonthsStandalone",nn[nn.Eras=7]="Eras",nn[nn.FirstDayOfWeek=8]="FirstDayOfWeek",nn[nn.WeekendRange=9]="WeekendRange",nn[nn.DateFormat=10]="DateFormat",nn[nn.TimeFormat=11]="TimeFormat",nn[nn.DateTimeFormat=12]="DateTimeFormat",nn[nn.NumberSymbols=13]="NumberSymbols",nn[nn.NumberFormats=14]="NumberFormats",nn[nn.CurrencyCode=15]="CurrencyCode",nn[nn.CurrencySymbol=16]="CurrencySymbol",nn[nn.CurrencyName=17]="CurrencyName",nn[nn.Currencies=18]="Currencies",nn[nn.Directionality=19]="Directionality",nn[nn.PluralCase=20]="PluralCase",nn[nn.ExtraData=21]="ExtraData",nn))();const Xb=["zero","one","two","few","many"],us="en-US",na={marker:"element"},ia={marker:"ICU"};var Jn=(()=>((Jn=Jn||{})[Jn.SHIFT=2]="SHIFT",Jn[Jn.APPEND_EAGERLY=1]="APPEND_EAGERLY",Jn[Jn.COMMENT=2]="COMMENT",Jn))();let vp=us;function bp(e){(function ye(e,t){null==e&&He(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?Xd(e,0,n):Ln(n[o])}function Ep(e,t,n,r,o){const a=t.insertBeforeIndex;if(Array.isArray(a)){let f=r,v=null;if(3&t.type||(v=f,f=o),null!==f&&0==(2&t.flags))for(let S=1;S<a.length;S++)Gr(e,f,n[a[S]],v,!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 wp(e){return e>>>17}function Mp(e){return(131070&e)>>>1}let hs=0,fs=0;function Ip(e,t,n,r){const o=n[11];let f,a=null;for(let v=0;v<t.length;v++){const S=t[v];if("string"==typeof S){const L=t[++v];null===n[L]&&(n[L]=qa(o,S))}else if("number"==typeof S)switch(1&S){case 0:const L=wp(S);let G,Ee;if(null===a&&(a=L,f=Vs(o,r)),L===a?(G=r,Ee=f):(G=null,Ee=Ln(n[L])),null!==Ee){const Pt=Mp(S);Gr(o,Ee,n[Pt],G,!1);const Kt=ds(e,Pt);if(null!==Kt&&"object"==typeof Kt){const Ct=ra(Kt,n);null!==Ct&&Ip(e,Kt.create[Ct],n,n[Kt.anchorIdx])}}break;case 1:const nt=t[++v],gt=t[++v];El(o,F(S>>>1,n),null,null,nt,gt,null);break;default:throw new Error(`Unable to determine the type of mutate operation for "${S}"`)}else switch(S){case ia:const L=t[++v],G=t[++v];null===n[G]&&vi(n[G]=_y(o,L),n);break;case na:const Ee=t[++v],We=t[++v];null===n[We]&&vi(n[We]=el(o,Ee,null),n)}}}function Pp(e,t,n,r,o){for(let a=0;a<n.length;a++){const f=n[a],v=n[++a];if(f&o){let S="";for(let L=a+1;L<=a+v;L++){const G=n[L];if("string"==typeof G)S+=G;else if("number"==typeof G)if(G<0)S+=$(t[r-G]);else{const Ee=G>>>2;switch(3&G){case 1:const We=n[++L],nt=n[++L],gt=e.data[Ee];"string"==typeof gt?El(t[11],t[Ee],null,gt,We,S,nt):ji(e,gt,t,We,S,t[11],nt,!1);break;case 0:const Pt=t[Ee];null!==Pt&&Wd(t[11],Pt,S);break;case 2:hC(e,ds(e,Ee),t,S);break;case 3:Ap(e,ds(e,Ee),r,t)}}}}else{const S=n[a+1];if(S>0&&3==(3&S)){const G=ds(e,S>>>2);t[G.currentCaseLViewIndex]<0&&Ap(e,G,r,t)}}a+=v}}function Ap(e,t,n,r){let o=r[t.currentCaseLViewIndex];if(null!==o){let a=hs;o<0&&(o=r[t.currentCaseLViewIndex]=~o,a=-1),Pp(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=Xb[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 f=n[t.anchorIdx];f&&Ip(e,t.create[o],n,f)}}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 f=o[a];if(f>0){const v=F(f,n);null!==v&&nh(n[11],v)}else Op(e,ds(e,~f),n)}}}function pC(){const e=[];let n,r,t=-1;function a(v,S){t=0;const L=ra(v,S);r=null!==L?v.remove[L]:Mt}function f(){if(t<r.length){const v=r[t++];return v>0?n[v]:(e.push(t,r),a(n[1].data[~v],n),f())}return 0===e.length?null:(r=e.pop(),t=e.pop(),f())}return function o(v,S){for(n=S;e.length;)e.pop();return a(v.value,S),f}}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,f){const v=po(e,r,1,null);let S=v<<Jn.SHIFT,L=j();t===L&&(L=null),null===L&&(S|=Jn.APPEND_EAGERLY),f&&(S|=Jn.COMMENT,function gy(e){void 0===Za&&(Za=e())}(pC)),o.push(S,null===a?"":a);const G=yl(e,v,f?32:1,null===a?"":a,null);Dp(n,G);const Ee=G.index;return de(G,!1),null!==L&&t!==L&&function sC(e,t){let n=e.insertBeforeIndex;null===n?(eh(Cp,Ep),n=e.insertBeforeIndex=[null,t]):(function q(e,t,n){e!=t&&He(n,e,t,"==")}(Array.isArray(n),!0,"Expecting array here"),n.push(t))}(L,Ee),G}function EC(e,t,n,r,o,a,f){const v=f.match(oa),S=Fp(e,t,n,a,r,v?null:f,!1);v&&Oo(o,f,S.index,null,0,null)}function Oo(e,t,n,r,o,a){const f=e.length,v=f+1;e.push(null,null);const S=f+2,L=t.split(oa);let G=0;for(let Ee=0;Ee<L.length;Ee++){const We=L[Ee];if(1&Ee){const nt=o+parseInt(We,10);e.push(-1-nt),G|=kp(nt)}else""!==We&&e.push(We)}return e.push(n<<2|(r?1:0)),r&&e.push(r,a),e[f]=G,e[v]=e.length-S,G}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 f=0;const v={type:o.type,currentCaseLViewIndex:po(e,t,1,null),anchorIdx:a,cases:[],create:[],remove:[],update:[]};(function AC(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,v);const S=o.values;for(let L=0;L<S.length;L++){const G=S[L],Ee=[];for(let We=0;We<G.length;We++){const nt=G[We];if("string"!=typeof nt){const gt=Ee.push(nt)-1;G[We]=`\x3c!--\ufffd${gt}\ufffd--\x3e`}}f=IC(e,v,t,n,r,o.cases[L],G.join(""),Ee)|f}f&&function OC(e,t,n){e.push(t,1,n<<2|3)}(n,f,a)}function SC(e){const t=[],n=[];let r=1,o=0;const a=Vc(e=e.replace(Rp,function(f,v,S){return r="select"===S?0:1,o=parseInt(v.substr(1),10),""}));for(let f=0;f<a.length;){let v=a[f++].trim();1===r&&(v=v.replace(/\s*(?:=)?(\w+)\s*/,"$1")),v.length&&t.push(v);const S=Vc(a[f++]);t.length>n.length&&n.push(S)}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 v=a.index;if("}"==a[0]){if(n.pop(),0==n.length){const S=e.substring(t,v);Rp.test(S)?r.push(SC(S)):r.push(S),t=v+1}}else{if(0==n.length){const S=e.substring(t,v);r.push(S),t=v+1}n.push("{")}}const f=e.substring(t);return r.push(f),r}function IC(e,t,n,r,o,a,f,v){const S=[],L=[],G=[];t.cases.push(a),t.create.push(S),t.remove.push(L),t.update.push(G);const We=fd(ki()).getInertBodyElement(f),nt=Ha(We)||We;return nt?Bp(e,t,n,r,S,L,G,nt,o,v,0):0}function Bp(e,t,n,r,o,a,f,v,S,L,G){let Ee=0,We=v.firstChild;for(;We;){const nt=po(e,n,1,null);switch(We.nodeType){case Node.ELEMENT_NODE:const gt=We,Pt=gt.tagName.toLowerCase();if(ja.hasOwnProperty(Pt)){$c(o,na,Pt,S,nt),e.data[nt]=Pt;const qt=gt.attributes;for(let Cn=0;Cn<qt.length;Cn++){const Fn=qt.item(Cn),Hi=Fn.name.toLowerCase();Fn.value.match(oa)?yd.hasOwnProperty(Hi)&&Oo(f,Fn.value,nt,Fn.name,0,Va[Hi]?Zo:$a[Hi]?pd:null):xC(o,nt,Fn)}Ee=Bp(e,t,n,r,o,a,f,We,nt,L,G+1)|Ee,jp(a,nt,G)}break;case Node.TEXT_NODE:const Ft=We.textContent||"",Kt=Ft.match(oa);$c(o,null,Kt?"":Ft,S,nt),jp(a,nt,G),Kt&&(Ee=Oo(f,Ft,nt,null,0,null)|Ee);break;case Node.COMMENT_NODE:const Ct=gC.exec(We.textContent||"");if(Ct){const Cn=L[parseInt(Ct[1],10)];$c(o,ia,"",S,nt),Lp(e,n,r,S,Cn,nt),PC(a,nt,G)}}We=We.nextSibling}return Ee}function jp(e,t,n){0===n&&e.push(t)}function PC(e,t,n){0===n&&(e.push(~t),e.push(t))}function $c(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 Hc(e,t,n=-1){const r=B(),o=Tt(),a=20+e,f=cn(r.consts,t),v=j();r.firstCreatePass&&function CC(e,t,n,r,o,a){const f=j(),v=[],S=[],L=[[]];o=function MC(e,t){if(function wC(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 G=function bC(e){return e.replace(vC," ")}(o).split(yC);for(let Ee=0;Ee<G.length;Ee++){let We=G[Ee];if(0==(1&Ee)){const nt=Vc(We);for(let gt=0;gt<nt.length;gt++){let Pt=nt[gt];if(0==(1&gt)){const Ft=Pt;""!==Ft&&EC(e,f,L[0],v,S,n,Ft)}else{const Ft=Pt;if("object"!=typeof Ft)throw new Error(`Unable to parse ICU expression in "${o}" message.`);Lp(e,n,S,t,Ft,Fp(e,f,L[0],n,v,"",!0).index)}}}else{const nt=47===We.charCodeAt(0),Pt=(We.charCodeAt(nt?1:0),20+Number.parseInt(We.substring(nt?2:1)));if(nt)L.shift(),de(j(),!1);else{const Ft=aC(e,L[0],Pt);L.unshift([]),de(Ft,!0)}}}e.data[r]={create:v,update:S}}(r,null===v?0:v.index,o,a,f,n);const S=r.data[a],G=Qd(r,v===o[6]?null:v,o);(function dC(e,t,n,r){const o=e[11];for(let a=0;a<t.length;a++){const f=t[a++],v=t[a],S=(f&Jn.COMMENT)===Jn.COMMENT,L=(f&Jn.APPEND_EAGERLY)===Jn.APPEND_EAGERLY,G=f>>>Jn.SHIFT;let Ee=e[G];null===Ee&&(Ee=e[G]=S?o.createComment(v):qa(o,v)),L&&null!==n&&Gr(o,n,Ee,r,!1)}})(o,S.create,G,v&&8&v.type?o[v.index]:null),U(!0)}function Uc(){U(!1)}function $p(e,t,n){Hc(e,t,n),Uc()}function Hp(e,t){const n=B();!function DC(e,t,n){const o=p().index,a=[];if(e.firstCreatePass&&null===e.data[t]){for(let f=0;f<n.length;f+=2){const v=n[f],S=n[f+1];if(""!==S){if(mC.test(S))throw new Error(`ICU expressions are not supported in attributes. Message: "${S}".`);Oo(a,S,o,v,TC(a),null)}}e.data[t]=a}}(n,e+20,cn(n.consts,t))}function Wc(e){return function cC(e){e&&(hs|=1<<Math.min(fs,31)),fs++}(bi(Tt(),tn(),e)),Wc}function Up(e){!function uC(e,t,n){if(fs>0){const r=e.data[n];Pp(e,t,Array.isArray(r)?r:r.update,un()-fs-1,hs)}hs=0,fs=0}(B(),Tt(),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,f,v)=>{const S=f||v,L=r[S]||[];if(L.length||(S.split("|").forEach(Pt=>{const Ft=Pt.match(jC),Kt=Ft?parseInt(Ft[1],10):0,Ct=BC.test(Pt);L.push([Kt,Ct,Pt])}),r[S]=L),!L.length)throw new Error(`i18n postprocess: unmatched placeholder - ${S}`);const G=o[o.length-1];let Ee=0;for(let Pt=0;Pt<L.length;Pt++)if(L[Pt][0]===G){Ee=Pt;break}const[We,nt,gt]=L[Ee];return nt?o.pop():G!==We&&o.push(We),L.splice(Ee,1),gt})}return Object.keys(t).length&&(n=n.replace(kC,(r,o,a,f,v,S)=>t.hasOwnProperty(a)?`${o}${t[a]}${S}`: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=M(e),Array.isArray(e))for(let a=0;a<e.length;a++)zc(e[a],t,n,r,o);else{const a=B(),f=Tt();let v=_o(e)?e:M(e.provide),S=Qh(e);const L=p(),G=1048575&L.providerIndexes,Ee=L.directiveStart,We=L.providerIndexes>>20;if(_o(e)||!e.multi){const nt=new Bo(S,o,ls),gt=Gc(v,t,o?G:G+We,Ee);-1===gt?(Ps(Vo(L,f),a,v),Kc(a,e,t.length),t.push(v),L.directiveStart++,L.directiveEnd++,o&&(L.providerIndexes+=1048576),n.push(nt),f.push(nt)):(n[gt]=nt,f[gt]=nt)}else{const nt=Gc(v,t,G+We,Ee),gt=Gc(v,t,G,G+We),Pt=nt>=0&&n[nt],Ft=gt>=0&&n[gt];if(o&&!Ft||!o&&!Pt){Ps(Vo(L,f),a,v);const Kt=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:HC,n.length,o,r,S);!o&&Ft&&(n[gt].providerFactory=Kt),Kc(a,e,t.length,0),t.push(v),L.directiveStart++,L.directiveEnd++,o&&(L.providerIndexes+=1048576),n.push(Kt),f.push(Kt)}else Kc(a,e,nt>-1?nt:gt,zp(n[o?gt:nt],S,!o&&r));!o&&r&&Ft&&n[gt].componentProviders++}}}function Kc(e,t,n,r){const o=_o(t),a=function Rv(e){return!!e.useClass}(t);if(o||a){const S=(a?M(t.useClass):t).prototype.ngOnDestroy;if(S){const L=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){const G=L.indexOf(n);-1===G?L.push(n,[r,S]):L[G+1].push(r,S)}else L.push(n,S)}}}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 HC(e,t,n,r){return Qc(this.multi,[])}function UC(e,t,n,r){const o=this.multi;let a;if(this.providerFactory){const f=this.providerFactory.componentProviders,v=$o(n,n[1],this.providerFactory.index,r);a=v.slice(0,f),Qc(o,a);for(let S=f;S<v.length;S++)a.push(v[S])}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 $C(e,t,n){const r=B();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 ${w(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(p(),Tt())}function xo(e,t){return new gs(ne(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 JC(){const e=Tt(),n=Rt(p().index,e);return function YC(e){return e[11]}(Kn(n)?n:e)}(),e})(),Yp=(()=>{class e{}return e.\u0275prov=Ze({token:e,providedIn:"root",factory:()=>null}),e})();class Jp{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Xp=new Jp("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 v=10;v<a.length;v++){const S=a[v],L=S[1].firstChild;null!==L&&la(S[1],S,L,r)}const f=n.type;if(8&f)la(e,t,n.child,r);else if(32&f){const v=Ya(n,t);let S;for(;S=v();)r.push(S)}else if(16&f){const v=th(t,n);if(Array.isArray(v))r.push(...v);else{const S=es(t[16]);la(S[1],S,v,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(){Ml(this._lView[1],this._lView,this.context)}checkNoChanges(){!function Tv(e,t,n){Ut(!0);try{Ml(e,t,n)}finally{Ut(!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 XC extends Ro{constructor(t){super(t),this._view=t}detectChanges(){Lh(this._view)}checkNoChanges(){!function wv(e){Ut(!0);try{Lh(e)}finally{Ut(!1)}}(this._view)}get context(){return null}}class qp extends ms{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=$e(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,f=a.get(Zp,sr),v=a.get(Yp,null),S=f.createRenderer(null,this.componentDef),L=this.componentDef.selectors[0][0]||"div",G=r?Sh(S,r,this.componentDef.encapsulation):el(f.createRenderer(null,this.componentDef),L,function qC(e){const t=e.toLowerCase();return"svg"===t?Ri:"math"===t?or:null}(L)),Ee=this.componentDef.onPush?576:528,We=lf(),nt=Ks(0,null,null,1,0,null,null,null,null,null),gt=ns(null,nt,We,Ee,null,null,f,S,v,a);let Pt,Ft;Gt(gt);try{const Kt=sf(G,this.componentDef,gt,f,S);if(G)if(r)ws(S,G,["ng-version",Xp.full]);else{const{attrs:Ct,classes:qt}=function $y(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]);Ct&&ws(S,G,Ct),qt&&qt.length>0&&sl(S,G,qt.join(" "))}if(Ft=ct(nt,20),void 0!==n){const Ct=Ft.projection=[];for(let qt=0;qt<this.ngContentSelectors.length;qt++){const Cn=n[qt];Ct.push(null!=Cn?Array.from(Cn):null)}}Pt=af(Kt,this.componentDef,gt,We,[cf]),is(nt,gt,null)}finally{It()}return new tm(this.componentType,Pt,xo(Ft,gt),gt,Ft)}}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 XC(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 se(()=>{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=kt(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} - ${w(t)} vs ${w(t.name)}`)})(a,ko.get(a),r),ko.set(a,r)}const f=br(o.imports);for(const v of f)t.has(v)||(t.add(v),n(v))}(e)}function sm(e){return ko.get(e)||Dt[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=kt(t);this._bootstrapComponents=br(r.bootstrap),this._r3Injector=Gh(t,n,[{provide:Fo,useValue:this},{provide:ms,useValue:this.componentFactoryResolver}],w(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,n=Vi.THROW_IF_NOT_FOUND,r=N.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!==kt(t)&&om(t)}create(t){return new Zc(this.moduleType,t)}}function am(e,t,n){const r=Zt()+e,o=Tt();return o[r]===fn?Dr(o,r,n?t.call(n):t()):ss(o,r)}function lm(e,t,n,r){return _m(Tt(),Zt(),e,t,n,r)}function cm(e,t,n,r,o){return ym(Tt(),Zt(),e,t,n,r,o)}function um(e,t,n,r,o,a){return vm(Tt(),Zt(),e,t,n,r,o,a)}function dm(e,t,n,r,o,a,f){return bm(Tt(),Zt(),e,t,n,r,o,a,f)}function hm(e,t,n,r,o,a,f,v){const S=Zt()+e,L=Tt(),G=tr(L,S,n,r,o,a);return bi(L,S+4,f)||G?Dr(L,S+5,v?t.call(v,n,r,o,a,f):t(n,r,o,a,f)):ss(L,S+5)}function fm(e,t,n,r,o,a,f,v,S){const L=Zt()+e,G=Tt(),Ee=tr(G,L,n,r,o,a);return Qr(G,L+4,f,v)||Ee?Dr(G,L+6,S?t.call(S,n,r,o,a,f,v):t(n,r,o,a,f,v)):ss(G,L+6)}function pm(e,t,n,r,o,a,f,v,S,L){const G=Zt()+e,Ee=Tt();let We=tr(Ee,G,n,r,o,a);return Js(Ee,G+4,f,v,S)||We?Dr(Ee,G+7,L?t.call(L,n,r,o,a,f,v,S):t(n,r,o,a,f,v,S)):ss(Ee,G+7)}function mm(e,t,n,r,o,a,f,v,S,L,G){const Ee=Zt()+e,We=Tt(),nt=tr(We,Ee,n,r,o,a);return tr(We,Ee+4,f,v,S,L)||nt?Dr(We,Ee+8,G?t.call(G,n,r,o,a,f,v,S,L):t(n,r,o,a,f,v,S,L)):ss(We,Ee+8)}function gm(e,t,n,r){return Cm(Tt(),Zt(),e,t,n,r)}function _s(e,t){const n=e[t];return n===fn?void 0:n}function _m(e,t,n,r,o,a){const f=t+n;return bi(e,f,o)?Dr(e,f+1,a?r.call(a,o):r(o)):_s(e,f+1)}function ym(e,t,n,r,o,a,f){const v=t+n;return Qr(e,v,o,a)?Dr(e,v+2,f?r.call(f,o,a):r(o,a)):_s(e,v+2)}function vm(e,t,n,r,o,a,f,v){const S=t+n;return Js(e,S,o,a,f)?Dr(e,S+3,v?r.call(v,o,a,f):r(o,a,f)):_s(e,S+3)}function bm(e,t,n,r,o,a,f,v,S){const L=t+n;return tr(e,L,o,a,f,v)?Dr(e,L+4,S?r.call(S,o,a,f,v):r(o,a,f,v)):_s(e,L+4)}function Cm(e,t,n,r,o,a){let f=t+n,v=!1;for(let S=0;S<o.length;S++)bi(e,f++,o[S])&&(v=!0);return v?Dr(e,f,r.apply(a,o)):_s(e,f)}function Em(e,t){const n=B();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)),f=ue(ls);try{const v=Ss(!1),S=a();return Ss(v),pf(n,Tt(),o,S),S}finally{ue(f)}}function Dm(e,t,n){const r=e+20,o=Tt(),a=vt(o,r);return ys(o,r)?_m(o,Zt(),t,a.transform,n,a):a.transform(n)}function Tm(e,t,n,r){const o=e+20,a=Tt(),f=vt(a,o);return ys(a,o)?ym(a,Zt(),t,f.transform,n,r,f):f.transform(n,r)}function wm(e,t,n,r,o){const a=e+20,f=Tt(),v=vt(f,a);return ys(f,a)?vm(f,Zt(),t,v.transform,n,r,o,v):v.transform(n,r,o)}function Mm(e,t,n,r,o,a){const f=e+20,v=Tt(),S=vt(v,f);return ys(v,f)?bm(v,Zt(),t,S.transform,n,r,o,a,S):S.transform(n,r,o,a)}function Sm(e,t,n){const r=e+20,o=Tt(),a=vt(o,r);return ys(o,r)?Cm(o,Zt(),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 wr=class s0 extends i.x{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){var o,a,f;let v=t,S=n||(()=>null),L=r;if(t&&"object"==typeof t){const Ee=t;v=null===(o=Ee.next)||void 0===o?void 0:o.bind(Ee),S=null===(a=Ee.error)||void 0===a?void 0:a.bind(Ee),L=null===(f=Ee.complete)||void 0===f?void 0:f.bind(Ee)}this.__isAsync&&(S=Yc(S),v&&(v=Yc(v)),L&&(L=Yc(L)));const G=super.subscribe({next:v,error:S,complete:L});return t instanceof u.w0&&t.add(G),G}};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 wr)}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(p(),Tt())}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 Am(p(),Tt())}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=Xr(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=Pm(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 f=t&&!Uo(t);let v;if(f)v=n;else{const Ee=n||{};v=Ee.index,r=Ee.injector,o=Ee.projectableNodes,a=Ee.ngModuleRef}const S=f?t:new ca($e(t)),L=r||this.parentInjector;if(!a&&null==S.ngModule&&L){const Ee=L.get(Fo,null);Ee&&(a=Ee)}const G=S.create(L,o,void 0,a);return this.insert(G.hostView,v),G}insert(t,n){const r=t._lView,o=r[1];if(function In(e){return Gn(e[3])}(r)){const G=this.indexOf(t);if(-1!==G)this.detach(G);else{const Ee=r[3],We=new Im(Ee,Ee[6],Ee[3]);We.detach(We.indexOf(t))}}const a=this._adjustIndex(n),f=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],Xu(n,10+r,t)):(n.push(t),t[4]=null),t[3]=n;const f=t[17];null!==f&&n!==f&&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)}(f,t);const v=t[19];null!==v&&v.insertView(e),t[2]|=128}(o,r,f,a);const v=rl(a,f),S=r[11],L=Vs(S,f[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,f[6],S,r,L,v),t.attachToViewContainerRef(),Xu(Jc(f),a,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=Pm(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),r=tl(this._lContainer,n);r&&(xs(Jc(this._lContainer),n),Kd(r[1],r))}detach(t){const n=this._adjustIndex(t,-1),r=tl(this._lContainer,n);return r&&null!=xs(Jc(this._lContainer),n)?new Ro(r):null}_adjustIndex(t,n=0){return null==t?this.length+n:t}};function Pm(e){return e[8]}function Jc(e){return e[8]||(e[8]=[])}function Am(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 f=ne(e,t);Gr(a,Vs(a,f),o,function Sy(e,t){return Rn(e)?e.nextSibling(t):t.nextSibling}(a,f),!1)}t[e.index]=n=Nh(r,t,o,e),Gs(t,n)}return new Im(n,e,t)}class Xc{constructor(t){this.queryList=t,this.matches=null}clone(){return new Xc(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 f=n.getByIndex(a);o.push(this.queries[f.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,As(n,t,a,!1,!1))}else r===vs?4&n.type&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,As(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=As(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?Am(t,e):void 0}(e,t,r):$o(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,f=n.matches,v=[];for(let S=0;S<f.length;S+=2){const L=f[S];v.push(L<0?null:_0(t,a[L],f[S+1],n.metadata.read))}o.matches=v}return o.matches}function nu(e,t,n,r){const o=e.queries.getByIndex(n),a=o.matches;if(null!==a){const f=xm(e,t,o,n);for(let v=0;v<a.length;v+=2){const S=a[v];if(S>0)r.push(f[v/2]);else{const L=a[v+1],G=t[-S];for(let Ee=10;Ee<G.length;Ee++){const We=G[Ee];We[17]===We[3]&&nu(We[1],We,L,r)}if(null!==G[9]){const Ee=G[9];for(let We=0;We<Ee.length;We++){const nt=Ee[We];nu(nt[1],nt,L,r)}}}}}return r}function Rm(e){const t=Tt(),n=B(),r=et();yt(r+1);const o=jm(n,r);if(e.dirty&&Tn(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=B();r.firstCreatePass&&(Bm(r,new Om(e,t,n),-1),2==(2&t)&&(r.staticViewQueries=!0)),Lm(r,Tt(),t)}function km(e,t,n,r){const o=B();if(o.firstCreatePass){const a=p();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,Tt(),n)}function Nm(){return function v0(e,t){return e[19].queries[t].queryList}(Tt(),et())}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 Xc(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:$l,\u0275\u0275attributeInterpolate4:Hl,\u0275\u0275attributeInterpolate5:Ul,\u0275\u0275attributeInterpolate6:Wl,\u0275\u0275attributeInterpolate7:zl,\u0275\u0275attributeInterpolate8:Kl,\u0275\u0275attributeInterpolateV:Gl,\u0275\u0275defineComponent:C,\u0275\u0275defineDirective:Ve,\u0275\u0275defineInjectable:Ze,\u0275\u0275defineInjector:me,\u0275\u0275defineNgModule:zt,\u0275\u0275definePipe:he,\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:Pf,\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:Af,\u0275\u0275restoreView:d,\u0275\u0275listener:rc,\u0275\u0275projection:Lf,\u0275\u0275syntheticHostProperty:Bc,\u0275\u0275syntheticHostListener:oc,\u0275\u0275pipeBind1:Dm,\u0275\u0275pipeBind2:Tm,\u0275\u0275pipeBind3:wm,\u0275\u0275pipeBind4:Mm,\u0275\u0275pipeBindV:Sm,\u0275\u0275projectionDef:Nf,\u0275\u0275hostProperty:Lc,\u0275\u0275property:Jl,\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:Pc,\u0275\u0275stylePropInterpolate3:Ac,\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:Xf,\u0275\u0275textInterpolate:vc,\u0275\u0275textInterpolate1:ta,\u0275\u0275textInterpolate2:bc,\u0275\u0275textInterpolate3:Cc,\u0275\u0275textInterpolate4:Ec,\u0275\u0275textInterpolate5:Dc,\u0275\u0275textInterpolate6:Tc,\u0275\u0275textInterpolate7:wc,\u0275\u0275textInterpolate8:Mc,\u0275\u0275textInterpolateV:Sc,\u0275\u0275i18n:$p,\u0275\u0275i18nAttributes:Hp,\u0275\u0275i18nExp:Wc,\u0275\u0275i18nStart:Hc,\u0275\u0275i18nEnd:Uc,\u0275\u0275i18nApply:Up,\u0275\u0275i18nPostprocess:Wp,\u0275\u0275resolveWindow:Nd,\u0275\u0275resolveDocument:Ld,\u0275\u0275resolveBody:Bd,\u0275\u0275setComponentScope:T,\u0275\u0275setNgModuleScope:pn,\u0275\u0275sanitizeHtml:Cd,\u0275\u0275sanitizeStyle:Ed,\u0275\u0275sanitizeResourceUrl:Wa,\u0275\u0275sanitizeScript:Dd,\u0275\u0275sanitizeUrl:Ua,\u0275\u0275sanitizeUrlOrResourceUrl:Md,\u0275\u0275trustConstantHtml:Td,\u0275\u0275trustConstantResourceUrl:wd,forwardRef:A,resolveForwardRef:M}))();let No=null;function D0(){No=null}const bs=[];let iu=!1;function $m(){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(Hm)&&(bs.splice(e,1),M0(t,n))}}finally{iu=!1}}}function Hm(e){return Array.isArray(e)?e.every(Hm):!!M(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||Mt);let o=null;Object.defineProperty(e,yn,{configurable:!0,get:()=>(null===o&&(o=ri().compileNgModule(Ti,`ng:///${e.name}/\u0275mod.js`,{type:e,bootstrap:qi(t.bootstrap||Mt).map(M),declarations:r.map(M),imports:qi(t.imports||Mt).map(M).map(Qm),exports:qi(t.exports||Mt).map(M).map(Qm),schemas:t.schemas?qi(t.schemas):null,id:t.id||null}),o.schemas||(o.schemas=[])),o)});let a=null;Object.defineProperty(e,oe,{get:()=>{if(null===a){const v=ri();a=v.compileFactory(Ti,`ng:///${e.name}/\u0275fac.js`,{name:e.name,type:e,deps:Ns(e),target:v.FactoryTarget.NgModule,typeArgumentCount:0})}return a},configurable:!1});let f=null;Object.defineProperty(e,Ot,{get:()=>{if(null===f){const v={name:e.name,type:e,providers:t.providers||Mt,imports:[(t.imports||Mt).map(M),(t.exports||Mt).map(M)]};f=ri().compileInjector(Ti,`ng:///${e.name}/\u0275inj.js`,v)}return f},configurable:!1})}let pa=new WeakMap,ou=new WeakMap;function w0(){pa=new WeakMap,ou=new WeakMap,bs.length=0}function M0(e,t){const n=qi(t.declarations||Mt),r=Cs(e);n.forEach(o=>{o.hasOwnProperty(bn)?su($e(o),r):!o.hasOwnProperty(Qt)&&!o.hasOwnProperty(on)&&(o.ngSelectorScope=e)})}function su(e,t){e.directiveDefs=()=>Array.from(t.compilation.directives).map(n=>n.hasOwnProperty(bn)?$e(n):ut(n)).filter(n=>!!n),e.pipeDefs=()=>Array.from(t.compilation.pipes).map(n=>Lt(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=kt(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(f=>n.compilation.directives.add(f)),a.exported.pipes.forEach(f=>n.compilation.pipes.add(f))}),br(t.declarations).forEach(r=>{Lt(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(f=>{n.compilation.directives.add(f),n.exported.directives.add(f)}),a.exported.pipes.forEach(f=>{n.compilation.pipes.add(f),n.exported.pipes.add(f)})}else Lt(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!!kt(e)}let lu=0;function Zm(e,t){let n=null;(function M_(e,t){ad(t)&&(ao.set(e,t),Qo.add(e))})(e,t),Jm(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 f=t.encapsulation;void 0===f&&(f=null!==o&&void 0!==o.defaultEncapsulation?o.defaultEncapsulation:ft.Emulated);const v=t.templateUrl||`ng:///${e.name}/template.html`,S=Object.assign(Object.assign({},Xm(e,t)),{typeSourceSpan:r.createParseSourceSpan("Component",e.name,v),template:t.template||"",preserveWhitespaces:a,styles:t.styles||Mt,animations:t.animations,directives:[],changeDetection:t.changeDetection,pipes:new Map,encapsulation:f,interpolation:t.interpolation,viewProviders:t.viewProviders||null});lu++;try{S.usesInheritance&&qm(e),n=r.compileComponent(Ti,v,S)}finally{lu--}if(0===lu&&$m(),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;Jm(e,t||{}),Object.defineProperty(e,Qt,{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=Xm(e,t);return a.typeSourceSpan=o.createParseSourceSpan("Directive",n,r),a.usesInheritance&&qm(e),{metadata:a,sourceMapUrl:r}}function Jm(e,t){let n=null;Object.defineProperty(e,oe,{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 P0(e){return Object.getPrototypeOf(e.prototype)===Object.prototype}function Xm(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||Wt,propMetadata:r,inputs:t.inputs||Mt,outputs:t.outputs||Mt,queries:eg(e,r,tg),lifecycle:{usesOnChanges:n.hasLifecycleHook(e,"ngOnChanges")},typeSourceSpan:null,usesInheritance:!P0(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;)!ut(n)&&!$e(n)&&F0(n)&&cu(n,null),n=Object.getPrototypeOf(n)}function A0(e){return"string"==typeof e?rg(e):M(e)}function O0(e,t){return{propertyName:e,predicate:A0(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(f=>{if(n(f)){if(!f.selector)throw new Error(`Can't construct a query for the property "${o}" of "${ie(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,f))}})}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 f=o[a],v=f.ngMetadataName;if(ig(f)||tg(f)||ng(f)||"Output"===v||"HostBinding"===v||"HostListener"===v)return!0}}return!1}function og(e,t){let n=null,r=null;Object.defineProperty(e,oe,{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,on,{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:Ce.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})),$0=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 f=new Promise((v,S)=>{a.subscribe({complete:v,error:S})});n.push(f)}}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=Ze({token:e,factory:e.\u0275fac}),e})();const lg=new Yn("AppId"),cg={provide:lg,useFactory:function H0(){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=Ze({token:e,factory:e.\u0275fac}),e})();const ga=new Yn("LocaleId"),pg=new Yn("DefaultCurrencyCode"),W0=new Yn("Translations"),z0=new Yn("TranslationsFormat");var Mr=(()=>((Mr=Mr||{})[Mr.Error=0]="Error",Mr[Mr.Warning=1]="Warning",Mr[Mr.Ignore=2]="Ignore",Mr))();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(kt(n).declarations).reduce((f,v)=>{const S=$e(v);return S&&f.push(new ca(S)),f},[]);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=Ze({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 $i{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new wr(!1),this.onMicrotaskEmpty=new wr(!1),this.onStable=new wr(!1),this.onError=new wr(!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=Bt.requestAnimationFrame,t=Bt.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 J0(e){const t=()=>{!function Y0(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Bt,()=>{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,f,v)=>{try{return _g(e),n.invokeTask(o,a,f,v)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===a.type||e.shouldCoalesceRunChangeDetection)&&t(),yg(e)}},onInvoke:(n,r,o,a,f,v,S)=>{try{return _g(e),n.invoke(o,a,f,v,S)}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(!$i.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if($i.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,f=a.scheduleEventTask("NgZoneEvent: "+o,t,Z0,ma,ma);try{return a.runTask(f,n,r)}finally{a.cancelTask(f)}}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 wr,this.onMicrotaskEmpty=new wr,this.onStable=new wr,this.onError=new wr}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:()=>{$i.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(f=>f.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($i))},e.\u0275prov=Ze({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=Ze({token:e,factory:e.\u0275fac}),e})();class X0{addToWindow(t){}findTestabilityInTree(t,n,r){return null}}function q0(e){_u=e}let pr,_u=new X0;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 V(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 f=vu();if(!f||f.injector.get(yu,!1))if(e)e(n.concat(a).concat({provide:o,useValue:!0}));else{const v=n.concat(a).concat({provide:o,useValue:!0},{provide:Il,useValue:"platform"});Dg(Vi.create({providers:v,name:r}))}return wg()}}function wg(e){const t=vu();if(!t)throw new V(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 v=function nE(e,t){let n;return n="noop"===e?new vg:("zone.js"===e?void 0:e)||new $i({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}),S=[{provide:$i,useValue:v}];return v.run(()=>{const L=Vi.create({providers:S,parent:this.injector,name:n.moduleType.name}),G=n.create(L),Ee=G.injector.get(qo,null);if(!Ee)throw new V(402,"");return v.runOutsideAngular(()=>{const We=v.onError.subscribe({next:nt=>{Ee.handleError(nt)}});G.onDestroy(()=>{Cu(this._modules,G),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}}(Ee,v,()=>{const We=G.injector.get(Lo);return We.runInitializers(),We.donePromise.then(()=>(bp(G.injector.get(ga,us)||us),this._moduleDoBootstrap(G),G))})})}bootstrapModule(n,r=[]){const o=Mg({},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 V(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 V(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=Ze({token:e,factory:e.\u0275fac}),e})();function Mg(e,t){return Array.isArray(t)?t.reduce(Mg,e):Object.assign(Object.assign({},e),t)}let Es=(()=>{class e{constructor(n,r,o,a,f){this._zone=n,this._injector=r,this._exceptionHandler=o,this._componentFactoryResolver=a,this._initStatus=f,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 v=new g.y(L=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{L.next(this._stable),L.complete()})}),S=new g.y(L=>{let G;this._zone.runOutsideAngular(()=>{G=this._zone.onStable.subscribe(()=>{$i.assertNotInAngularZone(),fu(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,L.next(!0))})})});const Ee=this._zone.onUnstable.subscribe(()=>{$i.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{L.next(!1)}))});return()=>{G.unsubscribe(),Ee.unsubscribe()}});this.isStable=(0,c.T)(v,S.pipe((0,s.B)()))}bootstrap(n,r){if(!this._initStatus.done)throw new V(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),v=o.create(Vi.NULL,[],r||o.selector,a),S=v.location.nativeElement,L=v.injector.get(bg,null),G=L&&v.injector.get(gu);return L&&G&&G.registerApplication(S,L),v.onDestroy(()=>{this.detachView(v.hostView),Cu(this.components,v),G&&G.unregisterApplication(S)}),this._loadComponent(v),v}tick(){if(this._runningTick)throw new V(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($i),si(Vi),si(qo),si(ms),si(Lo))},e.\u0275prov=Ze({token:e,factory:e.\u0275fac}),e})();function Cu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let Ig=!0,Pg=!1;function oE(){return Pg=!0,Ig}function sE(){if(Pg)throw new Error("Cannot enable prod mode after platform setup.");Ig=!1}function aE(e){const t=sm(e);if(!t)throw Ag(e);return new ua(t)}function lE(e){const t=sm(e);if(!t)throw Ag(e);return t}function Ag(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(wi(e)&&!n){const r=Rt(e.index,t);return new Ro(r,r)}return 47&e.type?new Ro(t[16],t):null}(p(),Tt(),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)||Jh(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=[],v=o.directiveEnd;for(let S=1048575&o.providerIndexes;S<v;S++){let L=r.data[S];$v(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 f=e[a];pE(f)&&(t[a]=f)}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 f=o[a],S=r[f].split("\ufffd"),L=S[0];if(S.length>1){let G=S[1];for(let Ee=1;Ee<S.length-1;Ee++)G+=$(n[f+Ee-1])+S[Ee+1];e[L]=G}else e[L]=n[f]}}(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,f=[];if(a){let S=0;for(;S<a.length;){const L=a[S];if("string"!=typeof L)break;t[L]=a[S+1],f.push(L.toLowerCase()),S+=2}}const v=n.attributes;for(let S=0;S<v.length;S++){const L=v[S],G=L.name.toLowerCase();-1===f.indexOf(G)&&(t[G]=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 f=a.callback;f.call(r,n),o.push(f)}}),"function"==typeof r.eventListeners&&r.eventListeners(t).forEach(a=>{if(-1!==a.toString().indexOf("__ngUnwrap__")){const f=a("__ngUnwrap__");return-1===o.indexOf(f)&&f.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 f=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(f,n,r,o,a),wi(e)){const S=Rt(e.index,t);S&&S[1].firstChild&&Yr(S[1].firstChild,S,n,r,o,a)}else e.child&&Yr(e.child,t,n,r,o,a),f&&Tu(f,n,r,o);const v=t[e.index];Gn(v)&&kg(v,n,r,o,a)}else if(4&e.type){const v=t[e.index];Du(v[7],n,r,o,a),kg(v,n,r,o,a)}else if(16&e.type){const v=t[16],L=v[6].projection[e.projection];if(Array.isArray(L))for(let G of L)Du(G,n,r,o,a);else if(L){const G=v[3];Yr(G[1].data[L.index],G,n,r,o,a)}}else e.child&&Yr(e.child,t,n,r,o,a);if(a!==f){const v=4&e.flags?e.projectionNext:e.next;v&&Yr(v,t,n,r,o,a)}}function kg(e,t,n,r,o){for(let a=10;a<e.length;a++){const f=e[a],v=f[1].firstChild;v&&Yr(v,f,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 f=0;f<a;f++){const v=o[f],S=_a(v);S&&((r&&S instanceof Ds&&t(S)&&-1===n.indexOf(S)||!r&&t(S)&&-1===n.indexOf(S))&&n.push(S),Tu(v,t,n,r))}}const Mu="__ng_debug__";function Su(e){return e instanceof Node?(e.hasOwnProperty(Mu)||(e[Mu]=e.nodeType==Node.ELEMENT_NODE?new Ds(e):new Eu(e)),e[Mu]):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 f=!r||n&&n.currentIndex<jg(r,o,a)?n:r,v=jg(f,o,a),S=f.currentIndex;if(f===r)o--,r=r._nextRemoved;else if(n=n._next,null==f.previousIndex)o++;else{a||(a=[]);const L=v-o,G=S-o;if(L!=G){for(let We=0;We<L;We++){const nt=We<a.length?a[We]:a[We]=0,gt=nt+We;G<=gt&&gt<L&&(a[We]=nt+1)}a[f.previousIndex]=G-L}}v!==S&&t(f,v,S)}}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 '${w(t)}'. Only arrays and iterables are allowed`);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let o,a,f,n=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let v=0;v<this.length;v++)a=t[v],f=this._trackByFn(v,a),null!==n&&Object.is(n.trackById,f)?(r&&(n=this._verifyReinsertion(n,a,f,v)),Object.is(n.item,a)||this._addIdentityChange(n,a)):(n=this._mismatch(n,a,f,v),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,v=>{f=this._trackByFn(o,v),null!==n&&Object.is(n.trackById,f)?(r&&(n=this._verifyReinsertion(n,v,f,o)),Object.is(n.item,v)||this._addIdentityChange(n,v)):(n=this._mismatch(n,v,f,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 '${w(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,f=o._next;return a&&(a._next=f),f&&(f._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 $g(){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||$g()),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 wE(e){return e.name||typeof e}(n)}'`)}}return e.\u0275prov=Ze({token:e,providedIn:"root",factory:$g}),e})();function Hg(){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||Hg()),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=Ze({token:e,providedIn:"root",factory:Hg}),e})();const ME=[new Vg],Ug=new ya([new Ng]),Wg=new va(ME),IE=Tg(null,"core",[{provide:dg,useValue:"unknown"},{provide:bu,deps:[Vi]},{provide:gu,deps:[]},{provide:fg,deps:[]}]),RE=[{provide:Es,useClass:Es,deps:[$i,Vi,qo,ms,Lo]},{provide:e0,deps:[$i],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 PE(){return Ug},deps:[]},{provide:va,useFactory:function AE(){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=zt({type:e}),e.\u0275inj=me({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 $E(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 HE(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,_,l)=>{"use strict";l.r(_),l.d(_,{AbstractControl:()=>Nt,AbstractControlDirective:()=>Ye,AbstractFormGroupDirective:()=>Un,COMPOSITION_BUFFER_MODE:()=>b,CheckboxControlValueAccessor:()=>h,CheckboxRequiredValidator:()=>ki,ControlContainer:()=>bt,DefaultValueAccessor:()=>R,EmailValidator:()=>Rn,FormArray:()=>jt,FormArrayName:()=>Di,FormBuilder:()=>In,FormControl:()=>Jt,FormControlDirective:()=>Wi,FormControlName:()=>Ki,FormGroup:()=>vn,FormGroupDirective:()=>Mi,FormGroupName:()=>ci,FormsModule:()=>Rt,MaxLengthValidator:()=>x,MaxValidator:()=>Zi,MinLengthValidator:()=>ar,MinValidator:()=>Ri,NG_ASYNC_VALIDATORS:()=>ie,NG_VALIDATORS:()=>$,NG_VALUE_ACCESSOR:()=>w,NgControl:()=>ht,NgControlStatus:()=>N,NgControlStatusGroup:()=>ae,NgForm:()=>$n,NgModel:()=>Gn,NgModelGroup:()=>ni,NgSelectOption:()=>_r,NumberValueAccessor:()=>hi,PatternValidator:()=>F,RadioControlValueAccessor:()=>Qn,RangeValueAccessor:()=>Ei,ReactiveFormsModule:()=>Tn,RequiredValidator:()=>Yi,SelectControlValueAccessor:()=>Ii,SelectMultipleControlValueAccessor:()=>mi,VERSION:()=>cn,Validators:()=>pe,\u0275InternalFormsSharedModule:()=>vt,\u0275NgNoValidate:()=>Ci,\u0275NgSelectMultipleOption:()=>ir});var i=l(5e3),u=l(9808),g=l(188),c=l(4128),s=l(4004);let y=(()=>{class k{constructor(D,X){this._renderer=D,this._elementRef=X,this.onChange=at=>{},this.onTouched=()=>{}}setProperty(D,X){this._renderer.setProperty(this._elementRef.nativeElement,D,X)}registerOnTouched(D){this.onTouched=D}registerOnChange(D){this.onChange=D}setDisabledState(D){this.setProperty("disabled",D)}}return k.\u0275fac=function(D){return new(D||k)(i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(i.ElementRef))},k.\u0275dir=i.\u0275\u0275defineDirective({type:k}),k})(),E=(()=>{class k extends y{}return k.\u0275fac=function(){let O;return function(X){return(O||(O=i.\u0275\u0275getInheritedFactory(k)))(X||k)}}(),k.\u0275dir=i.\u0275\u0275defineDirective({type:k,features:[i.\u0275\u0275InheritDefinitionFeature]}),k})();const w=new i.InjectionToken("NgValueAccessor"),I={provide:w,useExisting:(0,i.forwardRef)(()=>h),multi:!0};let h=(()=>{class k extends E{writeValue(D){this.setProperty("checked",D)}}return k.\u0275fac=function(){let O;return function(X){return(O||(O=i.\u0275\u0275getInheritedFactory(k)))(X||k)}}(),k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(D,X){1&D&&i.\u0275\u0275listener("change",function(Vt){return X.onChange(Vt.target.checked)})("blur",function(){return X.onTouched()})},features:[i.\u0275\u0275ProvidersFeature([I]),i.\u0275\u0275InheritDefinitionFeature]}),k})();const A={provide:w,useExisting:(0,i.forwardRef)(()=>R),multi:!0},b=new i.InjectionToken("CompositionEventMode");let R=(()=>{class k extends y{constructor(D,X,at){super(D,X),this._compositionMode=at,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function M(){const k=(0,u.\u0275getDOM)()?(0,u.\u0275getDOM)().getUserAgent():"";return/android (\d+)/.test(k.toLowerCase())}())}writeValue(D){this.setProperty("value",null==D?"":D)}_handleInput(D){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(D)}_compositionStart(){this._composing=!0}_compositionEnd(D){this._composing=!1,this._compositionMode&&this.onChange(D)}}return k.\u0275fac=function(D){return new(D||k)(i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(b,8))},k.\u0275dir=i.\u0275\u0275defineDirective({type:k,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(D,X){1&D&&i.\u0275\u0275listener("input",function(Vt){return X._handleInput(Vt.target.value)})("blur",function(){return X.onTouched()})("compositionstart",function(){return X._compositionStart()})("compositionend",function(Vt){return X._compositionEnd(Vt.target.value)})},features:[i.\u0275\u0275ProvidersFeature([A]),i.\u0275\u0275InheritDefinitionFeature]}),k})();function V(k){return null==k||0===k.length}function fe(k){return null!=k&&"number"==typeof k.length}const $=new i.InjectionToken("NgValidators"),ie=new i.InjectionToken("NgAsyncValidators"),we=/^(?=.{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(O){return _e(O)}static max(O){return le(O)}static required(O){return De(O)}static requiredTrue(O){return Fe(O)}static email(O){return Je(O)}static minLength(O){return ot(O)}static maxLength(O){return q(O)}static pattern(O){return Pe(O)}static nullValidator(O){return null}static compose(O){return ye(O)}static composeAsync(O){return dt(O)}}function _e(k){return O=>{if(V(O.value)||V(k))return null;const D=parseFloat(O.value);return!isNaN(D)&&D<k?{min:{min:k,actual:O.value}}:null}}function le(k){return O=>{if(V(O.value)||V(k))return null;const D=parseFloat(O.value);return!isNaN(D)&&D>k?{max:{max:k,actual:O.value}}:null}}function De(k){return V(k.value)?{required:!0}:null}function Fe(k){return!0===k.value?null:{required:!0}}function Je(k){return V(k.value)||we.test(k.value)?null:{email:!0}}function ot(k){return O=>V(O.value)||!fe(O.value)?null:O.value.length<k?{minlength:{requiredLength:k,actualLength:O.value.length}}:null}function q(k){return O=>fe(O.value)&&O.value.length>k?{maxlength:{requiredLength:k,actualLength:O.value.length}}:null}function Pe(k){if(!k)return J;let O,D;return"string"==typeof k?(D="","^"!==k.charAt(0)&&(D+="^"),D+=k,"$"!==k.charAt(k.length-1)&&(D+="$"),O=new RegExp(D)):(D=k.toString(),O=k),X=>{if(V(X.value))return null;const at=X.value;return O.test(at)?null:{pattern:{requiredPattern:D,actualValue:at}}}}function J(k){return null}function ce(k){return null!=k}function Se(k){const O=(0,i.\u0275isPromise)(k)?(0,g.D)(k):k;return(0,i.\u0275isObservable)(O),O}function re(k){let O={};return k.forEach(D=>{O=null!=D?Object.assign(Object.assign({},O),D):O}),0===Object.keys(O).length?null:O}function Ke(k,O){return O.map(D=>D(k))}function it(k){return k.map(O=>function ge(k){return!k.validate}(O)?O:D=>O.validate(D))}function ye(k){if(!k)return null;const O=k.filter(ce);return 0==O.length?null:function(D){return re(Ke(D,O))}}function He(k){return null!=k?ye(it(k)):null}function dt(k){if(!k)return null;const O=k.filter(ce);return 0==O.length?null:function(D){const X=Ke(D,O).map(Se);return(0,c.D)(X).pipe((0,s.U)(re))}}function Et(k){return null!=k?dt(it(k)):null}function ke(k,O){return null===k?[O]:Array.isArray(k)?[...k,O]:[k,O]}function Ze(k){return k._rawValidators}function Z(k){return k._rawAsyncValidators}function me(k){return k?Array.isArray(k)?k:[k]:[]}function Me(k,O){return Array.isArray(k)?k.includes(O):k===O}function Re(k,O){const D=me(O);return me(k).forEach(at=>{Me(D,at)||D.push(at)}),D}function ve(k,O){return me(O).filter(D=>!Me(k,D))}class Ye{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(O){this._rawValidators=O||[],this._composedValidatorFn=He(this._rawValidators)}_setAsyncValidators(O){this._rawAsyncValidators=O||[],this._composedAsyncValidatorFn=Et(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(O){this._onDestroyCallbacks.push(O)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(O=>O()),this._onDestroyCallbacks=[]}reset(O){this.control&&this.control.reset(O)}hasError(O,D){return!!this.control&&this.control.hasError(O,D)}getError(O,D){return this.control?this.control.getError(O,D):null}}class ht extends Ye{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class bt extends Ye{get formDirective(){return null}get path(){return null}}class Ot{constructor(O){this._cd=O}is(O){var D,X,at;return"submitted"===O?!!(null===(D=this._cd)||void 0===D?void 0:D.submitted):!!(null===(at=null===(X=this._cd)||void 0===X?void 0:X.control)||void 0===at?void 0:at[O])}}let N=(()=>{class k extends Ot{constructor(D){super(D)}}return k.\u0275fac=function(D){return new(D||k)(i.\u0275\u0275directiveInject(ht,2))},k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(D,X){2&D&&i.\u0275\u0275classProp("ng-untouched",X.is("untouched"))("ng-touched",X.is("touched"))("ng-pristine",X.is("pristine"))("ng-dirty",X.is("dirty"))("ng-valid",X.is("valid"))("ng-invalid",X.is("invalid"))("ng-pending",X.is("pending"))},features:[i.\u0275\u0275InheritDefinitionFeature]}),k})(),ae=(()=>{class k extends Ot{constructor(D){super(D)}}return k.\u0275fac=function(D){return new(D||k)(i.\u0275\u0275directiveInject(bt,10))},k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(D,X){2&D&&i.\u0275\u0275classProp("ng-untouched",X.is("untouched"))("ng-touched",X.is("touched"))("ng-pristine",X.is("pristine"))("ng-dirty",X.is("dirty"))("ng-valid",X.is("valid"))("ng-invalid",X.is("invalid"))("ng-pending",X.is("pending"))("ng-submitted",X.is("submitted"))},features:[i.\u0275\u0275InheritDefinitionFeature]}),k})();function Wt(k,O){return[...O.path,k]}function Mt(k,O){yn(k,O),O.valueAccessor.writeValue(k.value),function z(k,O){O.valueAccessor.registerOnChange(D=>{k._pendingValue=D,k._pendingChange=!0,k._pendingDirty=!0,"change"===k.updateOn&&C(k,O)})}(k,O),function T(k,O){const D=(X,at)=>{O.valueAccessor.writeValue(X),at&&O.viewToModelUpdate(X)};k.registerOnChange(D),O._registerOnDestroy(()=>{k._unregisterOnChange(D)})}(k,O),function m(k,O){O.valueAccessor.registerOnTouched(()=>{k._pendingTouched=!0,"blur"===k.updateOn&&k._pendingChange&&C(k,O),"submit"!==k.updateOn&&k.markAsTouched()})}(k,O),function on(k,O){if(O.valueAccessor.setDisabledState){const D=X=>{O.valueAccessor.setDisabledState(X)};k.registerOnDisabledChange(D),O._registerOnDestroy(()=>{k._unregisterOnDisabledChange(D)})}}(k,O)}function bn(k,O,D=!0){const X=()=>{};O.valueAccessor&&(O.valueAccessor.registerOnChange(X),O.valueAccessor.registerOnTouched(X)),oe(k,O),k&&(O._invokeOnDestroyCallbacks(),k._registerOnCollectionChange(()=>{}))}function Qt(k,O){k.forEach(D=>{D.registerOnValidatorChange&&D.registerOnValidatorChange(O)})}function yn(k,O){const D=Ze(k);null!==O.validator?k.setValidators(ke(D,O.validator)):"function"==typeof D&&k.setValidators([D]);const X=Z(k);null!==O.asyncValidator?k.setAsyncValidators(ke(X,O.asyncValidator)):"function"==typeof X&&k.setAsyncValidators([X]);const at=()=>k.updateValueAndValidity();Qt(O._rawValidators,at),Qt(O._rawAsyncValidators,at)}function oe(k,O){let D=!1;if(null!==k){if(null!==O.validator){const at=Ze(k);if(Array.isArray(at)&&at.length>0){const Vt=at.filter(Pn=>Pn!==O.validator);Vt.length!==at.length&&(D=!0,k.setValidators(Vt))}}if(null!==O.asyncValidator){const at=Z(k);if(Array.isArray(at)&&at.length>0){const Vt=at.filter(Pn=>Pn!==O.asyncValidator);Vt.length!==at.length&&(D=!0,k.setAsyncValidators(Vt))}}}const X=()=>{};return Qt(O._rawValidators,X),Qt(O._rawAsyncValidators,X),D}function C(k,O){k._pendingDirty&&k.markAsDirty(),k.setValue(k._pendingValue,{emitModelToViewChange:!1}),O.viewToModelUpdate(k._pendingValue),k._pendingChange=!1}function K(k,O){yn(k,O)}function pn(k,O){if(!k.hasOwnProperty("model"))return!1;const D=k.model;return!!D.isFirstChange()||!Object.is(O,D.currentValue)}function Ve(k,O){k._syncPendingControls(),O.forEach(D=>{const X=D.control;"submit"===X.updateOn&&X._pendingChange&&(D.viewToModelUpdate(X._pendingValue),X._pendingChange=!1)})}function he(k,O){if(!O)return null;let D,X,at;return Array.isArray(O),O.forEach(Vt=>{Vt.constructor===R?D=Vt:function Be(k){return Object.getPrototypeOf(k.constructor)===E}(Vt)?X=Vt:at=Vt}),at||X||D||null}function $e(k,O){const D=k.indexOf(O);D>-1&&k.splice(D,1)}const kt="VALID",hn="INVALID",Dn="PENDING",Hn="DISABLED";function Xn(k){return(H(k)?k.validators:k)||null}function Nn(k){return Array.isArray(k)?He(k):k||null}function zn(k,O){return(H(O)?O.asyncValidators:k)||null}function Bn(k){return Array.isArray(k)?Et(k):k||null}function H(k){return null!=k&&!Array.isArray(k)&&"object"==typeof k}const Ie=k=>k instanceof Jt,W=k=>k instanceof vn,Ae=k=>k instanceof jt;function Xe(k){return Ie(k)?k.value:k.getRawValue()}function st(k,O){const D=W(k),X=k.controls;if(!(D?Object.keys(X):X).length)throw new i.\u0275RuntimeError(1e3,"");if(!X[O])throw new i.\u0275RuntimeError(1001,"")}function St(k,O){W(k),k._forEachChild((X,at)=>{if(void 0===O[at])throw new i.\u0275RuntimeError(1002,"")})}class Nt{constructor(O,D){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=O,this._rawAsyncValidators=D,this._composedValidatorFn=Nn(this._rawValidators),this._composedAsyncValidatorFn=Bn(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(O){this._rawValidators=this._composedValidatorFn=O}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(O){this._rawAsyncValidators=this._composedAsyncValidatorFn=O}get parent(){return this._parent}get valid(){return this.status===kt}get invalid(){return this.status===hn}get pending(){return this.status==Dn}get disabled(){return this.status===Hn}get enabled(){return this.status!==Hn}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(O){this._rawValidators=O,this._composedValidatorFn=Nn(O)}setAsyncValidators(O){this._rawAsyncValidators=O,this._composedAsyncValidatorFn=Bn(O)}addValidators(O){this.setValidators(Re(O,this._rawValidators))}addAsyncValidators(O){this.setAsyncValidators(Re(O,this._rawAsyncValidators))}removeValidators(O){this.setValidators(ve(O,this._rawValidators))}removeAsyncValidators(O){this.setAsyncValidators(ve(O,this._rawAsyncValidators))}hasValidator(O){return Me(this._rawValidators,O)}hasAsyncValidator(O){return Me(this._rawAsyncValidators,O)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(O={}){this.touched=!0,this._parent&&!O.onlySelf&&this._parent.markAsTouched(O)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(O=>O.markAllAsTouched())}markAsUntouched(O={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(D=>{D.markAsUntouched({onlySelf:!0})}),this._parent&&!O.onlySelf&&this._parent._updateTouched(O)}markAsDirty(O={}){this.pristine=!1,this._parent&&!O.onlySelf&&this._parent.markAsDirty(O)}markAsPristine(O={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(D=>{D.markAsPristine({onlySelf:!0})}),this._parent&&!O.onlySelf&&this._parent._updatePristine(O)}markAsPending(O={}){this.status=Dn,!1!==O.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!O.onlySelf&&this._parent.markAsPending(O)}disable(O={}){const D=this._parentMarkedDirty(O.onlySelf);this.status=Hn,this.errors=null,this._forEachChild(X=>{X.disable(Object.assign(Object.assign({},O),{onlySelf:!0}))}),this._updateValue(),!1!==O.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},O),{skipPristineCheck:D})),this._onDisabledChange.forEach(X=>X(!0))}enable(O={}){const D=this._parentMarkedDirty(O.onlySelf);this.status=kt,this._forEachChild(X=>{X.enable(Object.assign(Object.assign({},O),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:O.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},O),{skipPristineCheck:D})),this._onDisabledChange.forEach(X=>X(!1))}_updateAncestors(O){this._parent&&!O.onlySelf&&(this._parent.updateValueAndValidity(O),O.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(O){this._parent=O}updateValueAndValidity(O={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===kt||this.status===Dn)&&this._runAsyncValidator(O.emitEvent)),!1!==O.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!O.onlySelf&&this._parent.updateValueAndValidity(O)}_updateTreeValidity(O={emitEvent:!0}){this._forEachChild(D=>D._updateTreeValidity(O)),this.updateValueAndValidity({onlySelf:!0,emitEvent:O.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Hn:kt}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(O){if(this.asyncValidator){this.status=Dn,this._hasOwnPendingAsyncValidator=!0;const D=Se(this.asyncValidator(this));this._asyncValidationSubscription=D.subscribe(X=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(X,{emitEvent:O})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(O,D={}){this.errors=O,this._updateControlsErrors(!1!==D.emitEvent)}get(O){return function di(k,O,D){if(null==O||(Array.isArray(O)||(O=O.split(D)),Array.isArray(O)&&0===O.length))return null;let X=k;return O.forEach(at=>{X=W(X)?X.controls.hasOwnProperty(at)?X.controls[at]:null:Ae(X)&&X.at(at)||null}),X}(this,O,".")}getError(O,D){const X=D?this.get(D):this;return X&&X.errors?X.errors[O]:null}hasError(O,D){return!!this.getError(O,D)}get root(){let O=this;for(;O._parent;)O=O._parent;return O}_updateControlsErrors(O){this.status=this._calculateStatus(),O&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(O)}_initObservables(){this.valueChanges=new i.EventEmitter,this.statusChanges=new i.EventEmitter}_calculateStatus(){return this._allControlsDisabled()?Hn:this.errors?hn:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Dn)?Dn:this._anyControlsHaveStatus(hn)?hn:kt}_anyControlsHaveStatus(O){return this._anyControls(D=>D.status===O)}_anyControlsDirty(){return this._anyControls(O=>O.dirty)}_anyControlsTouched(){return this._anyControls(O=>O.touched)}_updatePristine(O={}){this.pristine=!this._anyControlsDirty(),this._parent&&!O.onlySelf&&this._parent._updatePristine(O)}_updateTouched(O={}){this.touched=this._anyControlsTouched(),this._parent&&!O.onlySelf&&this._parent._updateTouched(O)}_isBoxedValue(O){return"object"==typeof O&&null!==O&&2===Object.keys(O).length&&"value"in O&&"disabled"in O}_registerOnCollectionChange(O){this._onCollectionChange=O}_setUpdateStrategy(O){H(O)&&null!=O.updateOn&&(this._updateOn=O.updateOn)}_parentMarkedDirty(O){return!O&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Jt extends Nt{constructor(O=null,D,X){super(Xn(D),zn(X,D)),this._onChange=[],this._pendingChange=!1,this._applyFormState(O),this._setUpdateStrategy(D),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(O,D={}){this.value=this._pendingValue=O,this._onChange.length&&!1!==D.emitModelToViewChange&&this._onChange.forEach(X=>X(this.value,!1!==D.emitViewToModelChange)),this.updateValueAndValidity(D)}patchValue(O,D={}){this.setValue(O,D)}reset(O=null,D={}){this._applyFormState(O),this.markAsPristine(D),this.markAsUntouched(D),this.setValue(this.value,D),this._pendingChange=!1}_updateValue(){}_anyControls(O){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(O){this._onChange.push(O)}_unregisterOnChange(O){$e(this._onChange,O)}registerOnDisabledChange(O){this._onDisabledChange.push(O)}_unregisterOnDisabledChange(O){$e(this._onDisabledChange,O)}_forEachChild(O){}_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(O){this._isBoxedValue(O)?(this.value=this._pendingValue=O.value,O.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=O}}class vn extends Nt{constructor(O,D,X){super(Xn(D),zn(X,D)),this.controls=O,this._initObservables(),this._setUpdateStrategy(D),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(O,D){return this.controls[O]?this.controls[O]:(this.controls[O]=D,D.setParent(this),D._registerOnCollectionChange(this._onCollectionChange),D)}addControl(O,D,X={}){this.registerControl(O,D),this.updateValueAndValidity({emitEvent:X.emitEvent}),this._onCollectionChange()}removeControl(O,D={}){this.controls[O]&&this.controls[O]._registerOnCollectionChange(()=>{}),delete this.controls[O],this.updateValueAndValidity({emitEvent:D.emitEvent}),this._onCollectionChange()}setControl(O,D,X={}){this.controls[O]&&this.controls[O]._registerOnCollectionChange(()=>{}),delete this.controls[O],D&&this.registerControl(O,D),this.updateValueAndValidity({emitEvent:X.emitEvent}),this._onCollectionChange()}contains(O){return this.controls.hasOwnProperty(O)&&this.controls[O].enabled}setValue(O,D={}){St(this,O),Object.keys(O).forEach(X=>{st(this,X),this.controls[X].setValue(O[X],{onlySelf:!0,emitEvent:D.emitEvent})}),this.updateValueAndValidity(D)}patchValue(O,D={}){null!=O&&(Object.keys(O).forEach(X=>{this.controls[X]&&this.controls[X].patchValue(O[X],{onlySelf:!0,emitEvent:D.emitEvent})}),this.updateValueAndValidity(D))}reset(O={},D={}){this._forEachChild((X,at)=>{X.reset(O[at],{onlySelf:!0,emitEvent:D.emitEvent})}),this._updatePristine(D),this._updateTouched(D),this.updateValueAndValidity(D)}getRawValue(){return this._reduceChildren({},(O,D,X)=>(O[X]=Xe(D),O))}_syncPendingControls(){let O=this._reduceChildren(!1,(D,X)=>!!X._syncPendingControls()||D);return O&&this.updateValueAndValidity({onlySelf:!0}),O}_forEachChild(O){Object.keys(this.controls).forEach(D=>{const X=this.controls[D];X&&O(X,D)})}_setUpControls(){this._forEachChild(O=>{O.setParent(this),O._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(O){for(const D of Object.keys(this.controls)){const X=this.controls[D];if(this.contains(D)&&O(X))return!0}return!1}_reduceValue(){return this._reduceChildren({},(O,D,X)=>((D.enabled||this.disabled)&&(O[X]=D.value),O))}_reduceChildren(O,D){let X=O;return this._forEachChild((at,Vt)=>{X=D(X,at,Vt)}),X}_allControlsDisabled(){for(const O of Object.keys(this.controls))if(this.controls[O].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class jt extends Nt{constructor(O,D,X){super(Xn(D),zn(X,D)),this.controls=O,this._initObservables(),this._setUpdateStrategy(D),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(O){return this.controls[O]}push(O,D={}){this.controls.push(O),this._registerControl(O),this.updateValueAndValidity({emitEvent:D.emitEvent}),this._onCollectionChange()}insert(O,D,X={}){this.controls.splice(O,0,D),this._registerControl(D),this.updateValueAndValidity({emitEvent:X.emitEvent})}removeAt(O,D={}){this.controls[O]&&this.controls[O]._registerOnCollectionChange(()=>{}),this.controls.splice(O,1),this.updateValueAndValidity({emitEvent:D.emitEvent})}setControl(O,D,X={}){this.controls[O]&&this.controls[O]._registerOnCollectionChange(()=>{}),this.controls.splice(O,1),D&&(this.controls.splice(O,0,D),this._registerControl(D)),this.updateValueAndValidity({emitEvent:X.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(O,D={}){St(this,O),O.forEach((X,at)=>{st(this,at),this.at(at).setValue(X,{onlySelf:!0,emitEvent:D.emitEvent})}),this.updateValueAndValidity(D)}patchValue(O,D={}){null!=O&&(O.forEach((X,at)=>{this.at(at)&&this.at(at).patchValue(X,{onlySelf:!0,emitEvent:D.emitEvent})}),this.updateValueAndValidity(D))}reset(O=[],D={}){this._forEachChild((X,at)=>{X.reset(O[at],{onlySelf:!0,emitEvent:D.emitEvent})}),this._updatePristine(D),this._updateTouched(D),this.updateValueAndValidity(D)}getRawValue(){return this.controls.map(O=>Xe(O))}clear(O={}){this.controls.length<1||(this._forEachChild(D=>D._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:O.emitEvent}))}_syncPendingControls(){let O=this.controls.reduce((D,X)=>!!X._syncPendingControls()||D,!1);return O&&this.updateValueAndValidity({onlySelf:!0}),O}_forEachChild(O){this.controls.forEach((D,X)=>{O(D,X)})}_updateValue(){this.value=this.controls.filter(O=>O.enabled||this.disabled).map(O=>O.value)}_anyControls(O){return this.controls.some(D=>D.enabled&&O(D))}_setUpControls(){this._forEachChild(O=>this._registerControl(O))}_allControlsDisabled(){for(const O of this.controls)if(O.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(O){O.setParent(this),O._registerOnCollectionChange(this._onCollectionChange)}}const On={provide:bt,useExisting:(0,i.forwardRef)(()=>$n)},ln=(()=>Promise.resolve(null))();let $n=(()=>{class k extends bt{constructor(D,X){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new i.EventEmitter,this.form=new vn({},He(D),Et(X))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(D){ln.then(()=>{const X=this._findContainer(D.path);D.control=X.registerControl(D.name,D.control),Mt(D.control,D),D.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(D)})}getControl(D){return this.form.get(D.path)}removeControl(D){ln.then(()=>{const X=this._findContainer(D.path);X&&X.removeControl(D.name),$e(this._directives,D)})}addFormGroup(D){ln.then(()=>{const X=this._findContainer(D.path),at=new vn({});K(at,D),X.registerControl(D.name,at),at.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(D){ln.then(()=>{const X=this._findContainer(D.path);X&&X.removeControl(D.name)})}getFormGroup(D){return this.form.get(D.path)}updateModel(D,X){ln.then(()=>{this.form.get(D.path).setValue(X)})}setValue(D){this.control.setValue(D)}onSubmit(D){return this.submitted=!0,Ve(this.form,this._directives),this.ngSubmit.emit(D),!1}onReset(){this.resetForm()}resetForm(D){this.form.reset(D),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(D){return D.pop(),D.length?this.form.get(D):this.form}}return k.\u0275fac=function(D){return new(D||k)(i.\u0275\u0275directiveInject($,10),i.\u0275\u0275directiveInject(ie,10))},k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(D,X){1&D&&i.\u0275\u0275listener("submit",function(Vt){return X.onSubmit(Vt)})("reset",function(){return X.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.\u0275\u0275ProvidersFeature([On]),i.\u0275\u0275InheritDefinitionFeature]}),k})(),Un=(()=>{class k extends bt{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Wt(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return k.\u0275fac=function(){let O;return function(X){return(O||(O=i.\u0275\u0275getInheritedFactory(k)))(X||k)}}(),k.\u0275dir=i.\u0275\u0275defineDirective({type:k,features:[i.\u0275\u0275InheritDefinitionFeature]}),k})();const mn={provide:bt,useExisting:(0,i.forwardRef)(()=>ni)};let ni=(()=>{class k extends Un{constructor(D,X,at){super(),this._parent=D,this._setValidators(X),this._setAsyncValidators(at)}_checkParentType(){}}return k.\u0275fac=function(D){return new(D||k)(i.\u0275\u0275directiveInject(bt,5),i.\u0275\u0275directiveInject($,10),i.\u0275\u0275directiveInject(ie,10))},k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[i.\u0275\u0275ProvidersFeature([mn]),i.\u0275\u0275InheritDefinitionFeature]}),k})();const li={provide:ht,useExisting:(0,i.forwardRef)(()=>Gn)},Kn=(()=>Promise.resolve(null))();let Gn=(()=>{class k extends ht{constructor(D,X,at,Vt){super(),this.control=new Jt,this._registered=!1,this.update=new i.EventEmitter,this._parent=D,this._setValidators(X),this._setAsyncValidators(at),this.valueAccessor=he(0,Vt)}ngOnChanges(D){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in D&&this._updateDisabled(D),pn(D,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?Wt(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(D){this.viewModel=D,this.update.emit(D)}_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(){Mt(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(D){Kn.then(()=>{this.control.setValue(D,{emitViewToModelChange:!1})})}_updateDisabled(D){const X=D.isDisabled.currentValue,at=""===X||X&&"false"!==X;Kn.then(()=>{at&&!this.control.disabled?this.control.disable():!at&&this.control.disabled&&this.control.enable()})}}return k.\u0275fac=function(D){return new(D||k)(i.\u0275\u0275directiveInject(bt,9),i.\u0275\u0275directiveInject($,10),i.\u0275\u0275directiveInject(ie,10),i.\u0275\u0275directiveInject(w,10))},k.\u0275dir=i.\u0275\u0275defineDirective({type:k,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]}),k})(),Ci=(()=>{class k{}return k.\u0275fac=function(D){return new(D||k)},k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),k})();const wi={provide:w,useExisting:(0,i.forwardRef)(()=>hi),multi:!0};let hi=(()=>{class k extends E{writeValue(D){this.setProperty("value",null==D?"":D)}registerOnChange(D){this.onChange=X=>{D(""==X?null:parseFloat(X))}}}return k.\u0275fac=function(){let O;return function(X){return(O||(O=i.\u0275\u0275getInheritedFactory(k)))(X||k)}}(),k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(D,X){1&D&&i.\u0275\u0275listener("input",function(Vt){return X.onChange(Vt.target.value)})("blur",function(){return X.onTouched()})},features:[i.\u0275\u0275ProvidersFeature([wi]),i.\u0275\u0275InheritDefinitionFeature]}),k})();const Wn={provide:w,useExisting:(0,i.forwardRef)(()=>Qn),multi:!0};let nr=(()=>{class k{}return k.\u0275fac=function(D){return new(D||k)},k.\u0275mod=i.\u0275\u0275defineNgModule({type:k}),k.\u0275inj=i.\u0275\u0275defineInjector({}),k})(),mr=(()=>{class k{constructor(){this._accessors=[]}add(D,X){this._accessors.push([D,X])}remove(D){for(let X=this._accessors.length-1;X>=0;--X)if(this._accessors[X][1]===D)return void this._accessors.splice(X,1)}select(D){this._accessors.forEach(X=>{this._isSameGroup(X,D)&&X[1]!==D&&X[1].fireUncheck(D.value)})}_isSameGroup(D,X){return!!D[0].control&&D[0]._parent===X._control._parent&&D[1].name===X.name}}return k.\u0275fac=function(D){return new(D||k)},k.\u0275prov=i.\u0275\u0275defineInjectable({token:k,factory:k.\u0275fac,providedIn:nr}),k})(),Qn=(()=>{class k extends E{constructor(D,X,at,Vt){super(D,X),this._registry=at,this._injector=Vt,this.onChange=()=>{}}ngOnInit(){this._control=this._injector.get(ht),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(D){this._state=D===this.value,this.setProperty("checked",this._state)}registerOnChange(D){this._fn=D,this.onChange=()=>{D(this.value),this._registry.select(this)}}fireUncheck(D){this.writeValue(D)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return k.\u0275fac=function(D){return new(D||k)(i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(mr),i.\u0275\u0275directiveInject(i.Injector))},k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(D,X){1&D&&i.\u0275\u0275listener("change",function(){return X.onChange()})("blur",function(){return X.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[i.\u0275\u0275ProvidersFeature([Wn]),i.\u0275\u0275InheritDefinitionFeature]}),k})();const Zn={provide:w,useExisting:(0,i.forwardRef)(()=>Ei),multi:!0};let Ei=(()=>{class k extends E{writeValue(D){this.setProperty("value",parseFloat(D))}registerOnChange(D){this.onChange=X=>{D(""==X?null:parseFloat(X))}}}return k.\u0275fac=function(){let O;return function(X){return(O||(O=i.\u0275\u0275getInheritedFactory(k)))(X||k)}}(),k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(D,X){1&D&&i.\u0275\u0275listener("change",function(Vt){return X.onChange(Vt.target.value)})("input",function(Vt){return X.onChange(Vt.target.value)})("blur",function(){return X.onTouched()})},features:[i.\u0275\u0275ProvidersFeature([Zn]),i.\u0275\u0275InheritDefinitionFeature]}),k})();const Ui=new i.InjectionToken("NgModelWithFormControlWarning"),Lr={provide:ht,useExisting:(0,i.forwardRef)(()=>Wi)};let Wi=(()=>{class k extends ht{constructor(D,X,at,Vt){super(),this._ngModelWarningConfig=Vt,this.update=new i.EventEmitter,this._ngModelWarningSent=!1,this._setValidators(D),this._setAsyncValidators(X),this.valueAccessor=he(0,at)}set isDisabled(D){}ngOnChanges(D){if(this._isControlChanged(D)){const X=D.form.previousValue;X&&bn(X,this,!1),Mt(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}pn(D,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(D){this.viewModel=D,this.update.emit(D)}_isControlChanged(D){return D.hasOwnProperty("form")}}return k._ngModelWarningSentOnce=!1,k.\u0275fac=function(D){return new(D||k)(i.\u0275\u0275directiveInject($,10),i.\u0275\u0275directiveInject(ie,10),i.\u0275\u0275directiveInject(w,10),i.\u0275\u0275directiveInject(Ui,8))},k.\u0275dir=i.\u0275\u0275defineDirective({type:k,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]}),k})();const Ir={provide:bt,useExisting:(0,i.forwardRef)(()=>Mi)};let Mi=(()=>{class k extends bt{constructor(D,X){super(),this.validators=D,this.asyncValidators=X,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new i.EventEmitter,this._setValidators(D),this._setAsyncValidators(X)}ngOnChanges(D){this._checkFormPresent(),D.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(oe(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(D){const X=this.form.get(D.path);return Mt(X,D),X.updateValueAndValidity({emitEvent:!1}),this.directives.push(D),X}getControl(D){return this.form.get(D.path)}removeControl(D){bn(D.control||null,D,!1),$e(this.directives,D)}addFormGroup(D){this._setUpFormContainer(D)}removeFormGroup(D){this._cleanUpFormContainer(D)}getFormGroup(D){return this.form.get(D.path)}addFormArray(D){this._setUpFormContainer(D)}removeFormArray(D){this._cleanUpFormContainer(D)}getFormArray(D){return this.form.get(D.path)}updateModel(D,X){this.form.get(D.path).setValue(X)}onSubmit(D){return this.submitted=!0,Ve(this.form,this.directives),this.ngSubmit.emit(D),!1}onReset(){this.resetForm()}resetForm(D){this.form.reset(D),this.submitted=!1}_updateDomValue(){this.directives.forEach(D=>{const X=D.control,at=this.form.get(D.path);X!==at&&(bn(X||null,D),Ie(at)&&(Mt(at,D),D.control=at))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(D){const X=this.form.get(D.path);K(X,D),X.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(D){if(this.form){const X=this.form.get(D.path);X&&function qe(k,O){return oe(k,O)}(X,D)&&X.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){yn(this.form,this),this._oldForm&&oe(this._oldForm,this)}_checkFormPresent(){}}return k.\u0275fac=function(D){return new(D||k)(i.\u0275\u0275directiveInject($,10),i.\u0275\u0275directiveInject(ie,10))},k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["","formGroup",""]],hostBindings:function(D,X){1&D&&i.\u0275\u0275listener("submit",function(Vt){return X.onSubmit(Vt)})("reset",function(){return X.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.\u0275\u0275ProvidersFeature([Ir]),i.\u0275\u0275InheritDefinitionFeature,i.\u0275\u0275NgOnChangesFeature]}),k})();const zi={provide:bt,useExisting:(0,i.forwardRef)(()=>ci)};let ci=(()=>{class k extends Un{constructor(D,X,at){super(),this._parent=D,this._setValidators(X),this._setAsyncValidators(at)}_checkParentType(){Pr(this._parent)}}return k.\u0275fac=function(D){return new(D||k)(i.\u0275\u0275directiveInject(bt,13),i.\u0275\u0275directiveInject($,10),i.\u0275\u0275directiveInject(ie,10))},k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[i.\u0275\u0275ProvidersFeature([zi]),i.\u0275\u0275InheritDefinitionFeature]}),k})();const gr={provide:bt,useExisting:(0,i.forwardRef)(()=>Di)};let Di=(()=>{class k extends bt{constructor(D,X,at){super(),this._parent=D,this._setValidators(X),this._setAsyncValidators(at)}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 Wt(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){Pr(this._parent)}}return k.\u0275fac=function(D){return new(D||k)(i.\u0275\u0275directiveInject(bt,13),i.\u0275\u0275directiveInject($,10),i.\u0275\u0275directiveInject(ie,10))},k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[i.\u0275\u0275ProvidersFeature([gr]),i.\u0275\u0275InheritDefinitionFeature]}),k})();function Pr(k){return!(k instanceof ci||k instanceof Mi||k instanceof Di)}const Ar={provide:ht,useExisting:(0,i.forwardRef)(()=>Ki)};let Ki=(()=>{class k extends ht{constructor(D,X,at,Vt,Pn){super(),this._ngModelWarningConfig=Pn,this._added=!1,this.update=new i.EventEmitter,this._ngModelWarningSent=!1,this._parent=D,this._setValidators(X),this._setAsyncValidators(at),this.valueAccessor=he(0,Vt)}set isDisabled(D){}ngOnChanges(D){this._added||this._setUpControl(),pn(D,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(D){this.viewModel=D,this.update.emit(D)}get path(){return Wt(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 k._ngModelWarningSentOnce=!1,k.\u0275fac=function(D){return new(D||k)(i.\u0275\u0275directiveInject(bt,13),i.\u0275\u0275directiveInject($,10),i.\u0275\u0275directiveInject(ie,10),i.\u0275\u0275directiveInject(w,10),i.\u0275\u0275directiveInject(Ui,8))},k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[i.\u0275\u0275ProvidersFeature([Ar]),i.\u0275\u0275InheritDefinitionFeature,i.\u0275\u0275NgOnChangesFeature]}),k})();const Si={provide:w,useExisting:(0,i.forwardRef)(()=>Ii),multi:!0};function Gi(k,O){return null==k?`${O}`:(O&&"object"==typeof O&&(O="Object"),`${k}: ${O}`.slice(0,50))}let Ii=(()=>{class k extends E{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(D){this._compareWith=D}writeValue(D){this.value=D;const X=this._getOptionId(D);null==X&&this.setProperty("selectedIndex",-1);const at=Gi(X,D);this.setProperty("value",at)}registerOnChange(D){this.onChange=X=>{this.value=this._getOptionValue(X),D(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(D){for(const X of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(X),D))return X;return null}_getOptionValue(D){const X=function Or(k){return k.split(":")[0]}(D);return this._optionMap.has(X)?this._optionMap.get(X):D}}return k.\u0275fac=function(){let O;return function(X){return(O||(O=i.\u0275\u0275getInheritedFactory(k)))(X||k)}}(),k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(D,X){1&D&&i.\u0275\u0275listener("change",function(Vt){return X.onChange(Vt.target.value)})("blur",function(){return X.onTouched()})},inputs:{compareWith:"compareWith"},features:[i.\u0275\u0275ProvidersFeature([Si]),i.\u0275\u0275InheritDefinitionFeature]}),k})(),_r=(()=>{class k{constructor(D,X,at){this._element=D,this._renderer=X,this._select=at,this._select&&(this.id=this._select._registerOption())}set ngValue(D){null!=this._select&&(this._select._optionMap.set(this.id,D),this._setElementValue(Gi(this.id,D)),this._select.writeValue(this._select.value))}set value(D){this._setElementValue(D),this._select&&this._select.writeValue(this._select.value)}_setElementValue(D){this._renderer.setProperty(this._element.nativeElement,"value",D)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return k.\u0275fac=function(D){return new(D||k)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(Ii,9))},k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),k})();const fi={provide:w,useExisting:(0,i.forwardRef)(()=>mi),multi:!0};function Pi(k,O){return null==k?`${O}`:("string"==typeof O&&(O=`'${O}'`),O&&"object"==typeof O&&(O="Object"),`${k}: ${O}`.slice(0,50))}let mi=(()=>{class k extends E{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(D){this._compareWith=D}writeValue(D){let X;if(this.value=D,Array.isArray(D)){const at=D.map(Vt=>this._getOptionId(Vt));X=(Vt,Pn)=>{Vt._setSelected(at.indexOf(Pn.toString())>-1)}}else X=(at,Vt)=>{at._setSelected(!1)};this._optionMap.forEach(X)}registerOnChange(D){this.onChange=X=>{const at=[],Vt=X.selectedOptions;if(void 0!==Vt){const Pn=Vt;for(let qn=0;qn<Pn.length;qn++){const Ni=this._getOptionValue(Pn[qn].value);at.push(Ni)}}else{const Pn=X.options;for(let qn=0;qn<Pn.length;qn++){const gi=Pn[qn];if(gi.selected){const Ni=this._getOptionValue(gi.value);at.push(Ni)}}}this.value=at,D(at)}}_registerOption(D){const X=(this._idCounter++).toString();return this._optionMap.set(X,D),X}_getOptionId(D){for(const X of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(X)._value,D))return X;return null}_getOptionValue(D){const X=function pi(k){return k.split(":")[0]}(D);return this._optionMap.has(X)?this._optionMap.get(X)._value:D}}return k.\u0275fac=function(){let O;return function(X){return(O||(O=i.\u0275\u0275getInheritedFactory(k)))(X||k)}}(),k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(D,X){1&D&&i.\u0275\u0275listener("change",function(Vt){return X.onChange(Vt.target)})("blur",function(){return X.onTouched()})},inputs:{compareWith:"compareWith"},features:[i.\u0275\u0275ProvidersFeature([fi]),i.\u0275\u0275InheritDefinitionFeature]}),k})(),ir=(()=>{class k{constructor(D,X,at){this._element=D,this._renderer=X,this._select=at,this._select&&(this.id=this._select._registerOption(this))}set ngValue(D){null!=this._select&&(this._value=D,this._setElementValue(Pi(this.id,D)),this._select.writeValue(this._select.value))}set value(D){this._select?(this._value=D,this._setElementValue(Pi(this.id,D)),this._select.writeValue(this._select.value)):this._setElementValue(D)}_setElementValue(D){this._renderer.setProperty(this._element.nativeElement,"value",D)}_setSelected(D){this._renderer.setProperty(this._element.nativeElement,"selected",D)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return k.\u0275fac=function(D){return new(D||k)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(mi,9))},k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),k})();function rr(k){return"number"==typeof k?k:parseInt(k,10)}function Ai(k){return"number"==typeof k?k:parseFloat(k)}let Oi=(()=>{class k{constructor(){this._validator=J}ngOnChanges(D){if(this.inputName in D){const X=this.normalizeInput(D[this.inputName].currentValue);this._enabled=this.enabled(X),this._validator=this._enabled?this.createValidator(X):J,this._onChange&&this._onChange()}}validate(D){return this._validator(D)}registerOnValidatorChange(D){this._onChange=D}enabled(D){return null!=D}}return k.\u0275fac=function(D){return new(D||k)},k.\u0275dir=i.\u0275\u0275defineDirective({type:k,features:[i.\u0275\u0275NgOnChangesFeature]}),k})();const xi={provide:$,useExisting:(0,i.forwardRef)(()=>Zi),multi:!0};let Zi=(()=>{class k extends Oi{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=D=>Ai(D),this.createValidator=D=>le(D)}}return k.\u0275fac=function(){let O;return function(X){return(O||(O=i.\u0275\u0275getInheritedFactory(k)))(X||k)}}(),k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(D,X){2&D&&i.\u0275\u0275attribute("max",X._enabled?X.max:null)},inputs:{max:"max"},features:[i.\u0275\u0275ProvidersFeature([xi]),i.\u0275\u0275InheritDefinitionFeature]}),k})();const ti={provide:$,useExisting:(0,i.forwardRef)(()=>Ri),multi:!0};let Ri=(()=>{class k extends Oi{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=D=>Ai(D),this.createValidator=D=>_e(D)}}return k.\u0275fac=function(){let O;return function(X){return(O||(O=i.\u0275\u0275getInheritedFactory(k)))(X||k)}}(),k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(D,X){2&D&&i.\u0275\u0275attribute("min",X._enabled?X.min:null)},inputs:{min:"min"},features:[i.\u0275\u0275ProvidersFeature([ti]),i.\u0275\u0275InheritDefinitionFeature]}),k})();const or={provide:$,useExisting:(0,i.forwardRef)(()=>Yi),multi:!0},Fi={provide:$,useExisting:(0,i.forwardRef)(()=>ki),multi:!0};let Yi=(()=>{class k{constructor(){this._required=!1}get required(){return this._required}set required(D){this._required=null!=D&&!1!==D&&"false"!=`${D}`,this._onChange&&this._onChange()}validate(D){return this.required?De(D):null}registerOnValidatorChange(D){this._onChange=D}}return k.\u0275fac=function(D){return new(D||k)},k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(D,X){2&D&&i.\u0275\u0275attribute("required",X.required?"":null)},inputs:{required:"required"},features:[i.\u0275\u0275ProvidersFeature([or])]}),k})(),ki=(()=>{class k extends Yi{validate(D){return this.required?Fe(D):null}}return k.\u0275fac=function(){let O;return function(X){return(O||(O=i.\u0275\u0275getInheritedFactory(k)))(X||k)}}(),k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(D,X){2&D&&i.\u0275\u0275attribute("required",X.required?"":null)},features:[i.\u0275\u0275ProvidersFeature([Fi]),i.\u0275\u0275InheritDefinitionFeature]}),k})();const xr={provide:$,useExisting:(0,i.forwardRef)(()=>Rn),multi:!0};let Rn=(()=>{class k{constructor(){this._enabled=!1}set email(D){this._enabled=""===D||!0===D||"true"===D,this._onChange&&this._onChange()}validate(D){return this._enabled?Je(D):null}registerOnValidatorChange(D){this._onChange=D}}return k.\u0275fac=function(D){return new(D||k)},k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[i.\u0275\u0275ProvidersFeature([xr])]}),k})();const sr={provide:$,useExisting:(0,i.forwardRef)(()=>ar),multi:!0};let ar=(()=>{class k extends Oi{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=D=>rr(D),this.createValidator=D=>ot(D)}}return k.\u0275fac=function(){let O;return function(X){return(O||(O=i.\u0275\u0275getInheritedFactory(k)))(X||k)}}(),k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(D,X){2&D&&i.\u0275\u0275attribute("minlength",X._enabled?X.minlength:null)},inputs:{minlength:"minlength"},features:[i.\u0275\u0275ProvidersFeature([sr]),i.\u0275\u0275InheritDefinitionFeature]}),k})();const Ln={provide:$,useExisting:(0,i.forwardRef)(()=>x),multi:!0};let x=(()=>{class k extends Oi{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=D=>rr(D),this.createValidator=D=>q(D)}}return k.\u0275fac=function(){let O;return function(X){return(O||(O=i.\u0275\u0275getInheritedFactory(k)))(X||k)}}(),k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(D,X){2&D&&i.\u0275\u0275attribute("maxlength",X._enabled?X.maxlength:null)},inputs:{maxlength:"maxlength"},features:[i.\u0275\u0275ProvidersFeature([Ln]),i.\u0275\u0275InheritDefinitionFeature]}),k})();const Q={provide:$,useExisting:(0,i.forwardRef)(()=>F),multi:!0};let F=(()=>{class k{constructor(){this._validator=J}ngOnChanges(D){"pattern"in D&&(this._createValidator(),this._onChange&&this._onChange())}validate(D){return this._validator(D)}registerOnValidatorChange(D){this._onChange=D}_createValidator(){this._validator=Pe(this.pattern)}}return k.\u0275fac=function(D){return new(D||k)},k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(D,X){2&D&&i.\u0275\u0275attribute("pattern",X.pattern?X.pattern:null)},inputs:{pattern:"pattern"},features:[i.\u0275\u0275ProvidersFeature([Q]),i.\u0275\u0275NgOnChangesFeature]}),k})(),vt=(()=>{class k{}return k.\u0275fac=function(D){return new(D||k)},k.\u0275mod=i.\u0275\u0275defineNgModule({type:k}),k.\u0275inj=i.\u0275\u0275defineInjector({imports:[[nr]]}),k})(),Rt=(()=>{class k{}return k.\u0275fac=function(D){return new(D||k)},k.\u0275mod=i.\u0275\u0275defineNgModule({type:k}),k.\u0275inj=i.\u0275\u0275defineInjector({imports:[vt]}),k})(),Tn=(()=>{class k{static withConfig(D){return{ngModule:k,providers:[{provide:Ui,useValue:D.warnOnNgModelWithFormControl}]}}}return k.\u0275fac=function(D){return new(D||k)},k.\u0275mod=i.\u0275\u0275defineNgModule({type:k}),k.\u0275inj=i.\u0275\u0275defineInjector({imports:[vt]}),k})(),In=(()=>{class k{group(D,X=null){const at=this._reduceControls(D);let qn,Vt=null,Pn=null;return null!=X&&(function wn(k){return void 0!==k.asyncValidators||void 0!==k.validators||void 0!==k.updateOn}(X)?(Vt=null!=X.validators?X.validators:null,Pn=null!=X.asyncValidators?X.asyncValidators:null,qn=null!=X.updateOn?X.updateOn:void 0):(Vt=null!=X.validator?X.validator:null,Pn=null!=X.asyncValidator?X.asyncValidator:null)),new vn(at,{asyncValidators:Pn,updateOn:qn,validators:Vt})}control(D,X,at){return new Jt(D,X,at)}array(D,X,at){const Vt=D.map(Pn=>this._createControl(Pn));return new jt(Vt,X,at)}_reduceControls(D){const X={};return Object.keys(D).forEach(at=>{X[at]=this._createControl(D[at])}),X}_createControl(D){return Ie(D)||W(D)||Ae(D)?D:Array.isArray(D)?this.control(D[0],D.length>1?D[1]:null,D.length>2?D[2]:null):this.control(D)}}return k.\u0275fac=function(D){return new(D||k)},k.\u0275prov=i.\u0275\u0275defineInjectable({token:k,factory:k.\u0275fac,providedIn:Tn}),k})();const cn=new i.Version("13.1.2")},7423:(Le,_,l)=>{"use strict";l.r(_),l.d(_,{MatAnchor:()=>M,MatButton:()=>A,MatButtonModule:()=>b});var i=l(5e3),u=l(508),g=l(6360),c=l(5664);const s=["mat-button",""],y=["*"],I=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],h=(0,u.mixinColor)((0,u.mixinDisabled)((0,u.mixinDisableRipple)(class{constructor(R){this._elementRef=R}})));let A=(()=>{class R extends h{constructor(fe,$,ie){super(fe),this._focusMonitor=$,this._animationMode=ie,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const we of I)this._hasHostAttributes(we)&&this._getHostElement().classList.add(we);fe.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(fe,$){fe?this._focusMonitor.focusVia(this._getHostElement(),fe,$):this._getHostElement().focus($)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...fe){return fe.some($=>this._getHostElement().hasAttribute($))}}return R.\u0275fac=function(fe){return new(fe||R)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(c.tE),i.\u0275\u0275directiveInject(g.ANIMATION_MODULE_TYPE,8))},R.\u0275cmp=i.\u0275\u0275defineComponent({type:R,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(fe,$){if(1&fe&&i.\u0275\u0275viewQuery(u.MatRipple,5),2&fe){let ie;i.\u0275\u0275queryRefresh(ie=i.\u0275\u0275loadQuery())&&($.ripple=ie.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(fe,$){2&fe&&(i.\u0275\u0275attribute("disabled",$.disabled||null),i.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===$._animationMode)("mat-button-disabled",$.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[i.\u0275\u0275InheritDefinitionFeature],attrs:s,ngContentSelectors:y,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(fe,$){1&fe&&(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&fe&&(i.\u0275\u0275advance(2),i.\u0275\u0275classProp("mat-button-ripple-round",$.isRoundButton||$.isIconButton),i.\u0275\u0275property("matRippleDisabled",$._isRippleDisabled())("matRippleCentered",$.isIconButton)("matRippleTrigger",$._getHostElement()))},directives:[u.MatRipple],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}),R})(),M=(()=>{class R extends A{constructor(fe,$,ie){super($,fe,ie)}_haltDisabledEvents(fe){this.disabled&&(fe.preventDefault(),fe.stopImmediatePropagation())}}return R.\u0275fac=function(fe){return new(fe||R)(i.\u0275\u0275directiveInject(c.tE),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(g.ANIMATION_MODULE_TYPE,8))},R.\u0275cmp=i.\u0275\u0275defineComponent({type:R,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(fe,$){1&fe&&i.\u0275\u0275listener("click",function(we){return $._haltDisabledEvents(we)}),2&fe&&(i.\u0275\u0275attribute("tabindex",$.disabled?-1:$.tabIndex||0)("disabled",$.disabled||null)("aria-disabled",$.disabled.toString()),i.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===$._animationMode)("mat-button-disabled",$.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[i.\u0275\u0275InheritDefinitionFeature],attrs:s,ngContentSelectors:y,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(fe,$){1&fe&&(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&fe&&(i.\u0275\u0275advance(2),i.\u0275\u0275classProp("mat-button-ripple-round",$.isRoundButton||$.isIconButton),i.\u0275\u0275property("matRippleDisabled",$._isRippleDisabled())("matRippleCentered",$.isIconButton)("matRippleTrigger",$._getHostElement()))},directives:[u.MatRipple],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}),R})(),b=(()=>{class R{}return R.\u0275fac=function(fe){return new(fe||R)},R.\u0275mod=i.\u0275\u0275defineNgModule({type:R}),R.\u0275inj=i.\u0275\u0275defineInjector({imports:[[u.MatRippleModule,u.MatCommonModule],u.MatCommonModule]}),R})()},9417:(Le,_,l)=>{"use strict";l.r(_),l.d(_,{MAT_CHIPS_DEFAULT_OPTIONS:()=>rn,MAT_CHIP_AVATAR:()=>tt,MAT_CHIP_REMOVE:()=>Ge,MAT_CHIP_TRAILING_ICON:()=>ft,MatChip:()=>Bt,MatChipAvatar:()=>$t,MatChipInput:()=>Mt,MatChipList:()=>yn,MatChipListChange:()=>on,MatChipRemove:()=>En,MatChipSelectionChange:()=>Ce,MatChipTrailingIcon:()=>en,MatChipsModule:()=>z});var i=l(1159),u=l(5e3),g=l(508),c=l(3191),s=l(9808),y=l(6360),E=l(6758),w=l(6451),I=l(5698),h=l(2722),A=l(8675),M=l(925),b=l(5664),R=l(449),V=l(3075);l(1777);let He=(()=>{class m{}return m.\u0275fac=function(T){return new(T||m)},m.\u0275dir=u.\u0275\u0275defineDirective({type:m}),m})();var be=l(226);const se=["*"];class Ce{constructor(C,T,K=!1){this.source=C,this.selected=T,this.isUserInput=K}}const Ge=new u.InjectionToken("MatChipRemove"),tt=new u.InjectionToken("MatChipAvatar"),ft=new u.InjectionToken("MatChipTrailingIcon");class pt{constructor(C){this._elementRef=C}}const wt=(0,g.mixinTabIndex)((0,g.mixinColor)((0,g.mixinDisableRipple)(pt),"primary"),-1);let $t=(()=>{class m{}return m.\u0275fac=function(T){return new(T||m)},m.\u0275dir=u.\u0275\u0275defineDirective({type:m,selectors:[["mat-chip-avatar"],["","matChipAvatar",""]],hostAttrs:[1,"mat-chip-avatar"],features:[u.\u0275\u0275ProvidersFeature([{provide:tt,useExisting:m}])]}),m})(),en=(()=>{class m{}return m.\u0275fac=function(T){return new(T||m)},m.\u0275dir=u.\u0275\u0275defineDirective({type:m,selectors:[["mat-chip-trailing-icon"],["","matChipTrailingIcon",""]],hostAttrs:[1,"mat-chip-trailing-icon"],features:[u.\u0275\u0275ProvidersFeature([{provide:ft,useExisting:m}])]}),m})(),Bt=(()=>{class m extends wt{constructor(T,K,qe,Dt,zt,pn,Be,Ve){super(T),this._ngZone=K,this._changeDetectorRef=zt,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 E.x,this._onBlur=new E.x,this.selectionChange=new u.EventEmitter,this.destroyed=new u.EventEmitter,this.removed=new u.EventEmitter,this._addHostClassName(),this._chipRippleTarget=pn.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new g.RippleRenderer(this,K,this._chipRippleTarget,qe),this._chipRipple.setupTriggerEvents(T),this.rippleConfig=Dt||{},this._animationsDisabled="NoopAnimations"===Be,this.tabIndex=null!=Ve&&parseInt(Ve)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(T){const K=(0,c.Ig)(T);K!==this._selected&&(this._selected=K,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(T){this._value=T}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(T){this._selectable=(0,c.Ig)(T)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(T){this._disabled=(0,c.Ig)(T)}get removable(){return this._removable}set removable(T){this._removable=(0,c.Ig)(T)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const T="mat-basic-chip",K=this._elementRef.nativeElement;K.hasAttribute(T)||K.tagName.toLowerCase()===T?K.classList.add(T):K.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(T=!1){return this._selected=!this.selected,this._dispatchSelectionChange(T),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(T){this.disabled?T.preventDefault():T.stopPropagation()}_handleKeydown(T){if(!this.disabled)switch(T.keyCode){case i.yY:case i.ZH:this.remove(),T.preventDefault();break;case i.L_:this.selectable&&this.toggleSelected(!0),T.preventDefault()}}_blur(){this._ngZone.onStable.pipe((0,I.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(T=!1){this.selectionChange.emit({source:this,isUserInput:T,selected:this._selected})}}return m.\u0275fac=function(T){return new(T||m)(u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(u.NgZone),u.\u0275\u0275directiveInject(M.t4),u.\u0275\u0275directiveInject(g.MAT_RIPPLE_GLOBAL_OPTIONS,8),u.\u0275\u0275directiveInject(u.ChangeDetectorRef),u.\u0275\u0275directiveInject(s.DOCUMENT),u.\u0275\u0275directiveInject(y.ANIMATION_MODULE_TYPE,8),u.\u0275\u0275injectAttribute("tabindex"))},m.\u0275dir=u.\u0275\u0275defineDirective({type:m,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(T,K,qe){if(1&T&&(u.\u0275\u0275contentQuery(qe,tt,5),u.\u0275\u0275contentQuery(qe,ft,5),u.\u0275\u0275contentQuery(qe,Ge,5)),2&T){let Dt;u.\u0275\u0275queryRefresh(Dt=u.\u0275\u0275loadQuery())&&(K.avatar=Dt.first),u.\u0275\u0275queryRefresh(Dt=u.\u0275\u0275loadQuery())&&(K.trailingIcon=Dt.first),u.\u0275\u0275queryRefresh(Dt=u.\u0275\u0275loadQuery())&&(K.removeIcon=Dt.first)}},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(T,K){1&T&&u.\u0275\u0275listener("click",function(Dt){return K._handleClick(Dt)})("keydown",function(Dt){return K._handleKeydown(Dt)})("focus",function(){return K.focus()})("blur",function(){return K._blur()}),2&T&&(u.\u0275\u0275attribute("tabindex",K.disabled?null:K.tabIndex)("disabled",K.disabled||null)("aria-disabled",K.disabled.toString())("aria-selected",K.ariaSelected),u.\u0275\u0275classProp("mat-chip-selected",K.selected)("mat-chip-with-avatar",K.avatar)("mat-chip-with-trailing-icon",K.trailingIcon||K.removeIcon)("mat-chip-disabled",K.disabled)("_mat-animation-noopable",K._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:[u.\u0275\u0275InheritDefinitionFeature]}),m})(),En=(()=>{class m{constructor(T,K){this._parentChip=T,"BUTTON"===K.nativeElement.nodeName&&K.nativeElement.setAttribute("type","button")}_handleClick(T){const K=this._parentChip;K.removable&&!K.disabled&&K.remove(),T.stopPropagation()}}return m.\u0275fac=function(T){return new(T||m)(u.\u0275\u0275directiveInject(Bt),u.\u0275\u0275directiveInject(u.ElementRef))},m.\u0275dir=u.\u0275\u0275defineDirective({type:m,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(T,K){1&T&&u.\u0275\u0275listener("click",function(Dt){return K._handleClick(Dt)})},features:[u.\u0275\u0275ProvidersFeature([{provide:Ge,useExisting:m}])]}),m})();const rn=new u.InjectionToken("mat-chips-default-options");let Wt=0,Mt=(()=>{class m{constructor(T,K){this._elementRef=T,this._defaultOptions=K,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new u.EventEmitter,this.placeholder="",this.id="mat-chip-list-input-"+Wt++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement}set chipList(T){T&&(this._chipList=T,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(T){this._addOnBlur=(0,c.Ig)(T)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(T){this._disabled=(0,c.Ig)(T)}get empty(){return!this.inputElement.value}ngOnChanges(){this._chipList.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(T){if(T){if(T.keyCode===i.Mf&&!(0,i.Vb)(T,"shiftKey")&&this._chipList._allowFocusEscape(),T.keyCode===i.ZH&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void T.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(T)}_keyup(T){!this._focusLastChipOnBackspace&&T.keyCode===i.ZH&&this.empty&&(this._focusLastChipOnBackspace=!0,T.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(T){!this.inputElement.value&&!!T&&this._chipList._keydown(T),(!T||this._isSeparatorKey(T))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),null==T||T.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(T){this.inputElement.focus(T)}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}_isSeparatorKey(T){return!(0,i.Vb)(T)&&new Set(this.separatorKeyCodes).has(T.keyCode)}}return m.\u0275fac=function(T){return new(T||m)(u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(rn))},m.\u0275dir=u.\u0275\u0275defineDirective({type:m,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(T,K){1&T&&u.\u0275\u0275listener("keydown",function(Dt){return K._keydown(Dt)})("keyup",function(Dt){return K._keyup(Dt)})("blur",function(){return K._blur()})("focus",function(){return K._focus()})("input",function(){return K._onInput()}),2&T&&(u.\u0275\u0275hostProperty("id",K.id),u.\u0275\u0275attribute("disabled",K.disabled||null)("placeholder",K.placeholder||null)("aria-invalid",K._chipList&&K._chipList.ngControl?K._chipList.ngControl.invalid:null)("aria-required",K._chipList&&K._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:[u.\u0275\u0275NgOnChangesFeature]}),m})();const bn=(0,g.mixinErrorState)(class{constructor(m,C,T,K){this._defaultErrorStateMatcher=m,this._parentForm=C,this._parentFormGroup=T,this.ngControl=K}});let Qt=0;class on{constructor(C,T){this.source=C,this.value=T}}let yn=(()=>{class m extends bn{constructor(T,K,qe,Dt,zt,pn,Be){super(pn,Dt,zt,Be),this._elementRef=T,this._changeDetectorRef=K,this._dir=qe,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new E.x,this._uid="mat-chip-list-"+Qt++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(Ve,he)=>Ve===he,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new u.EventEmitter,this.valueChange=new u.EventEmitter,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){var T,K;return this.multiple?(null===(T=this._selectionModel)||void 0===T?void 0:T.selected)||[]:null===(K=this._selectionModel)||void 0===K?void 0:K.selected[0]}get role(){return this.empty?null:"listbox"}get multiple(){return this._multiple}set multiple(T){this._multiple=(0,c.Ig)(T),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(T){this._compareWith=T,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(T){this.writeValue(T),this._value=T}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){var T,K,qe,Dt;return null!==(Dt=null!==(T=this._required)&&void 0!==T?T:null===(qe=null===(K=this.ngControl)||void 0===K?void 0:K.control)||void 0===qe?void 0:qe.hasValidator(V.Validators.required))&&void 0!==Dt&&Dt}set required(T){this._required=(0,c.Ig)(T),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(T){this._placeholder=T,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(T){this._disabled=(0,c.Ig)(T),this._syncChipsState()}get selectable(){return this._selectable}set selectable(T){this._selectable=(0,c.Ig)(T),this.chips&&this.chips.forEach(K=>K.chipListSelectable=this._selectable)}set tabIndex(T){this._userTabIndex=T,this._tabIndex=T}get chipSelectionChanges(){return(0,w.T)(...this.chips.map(T=>T.selectionChange))}get chipFocusChanges(){return(0,w.T)(...this.chips.map(T=>T._onFocus))}get chipBlurChanges(){return(0,w.T)(...this.chips.map(T=>T._onBlur))}get chipRemoveChanges(){return(0,w.T)(...this.chips.map(T=>T.destroyed))}ngAfterContentInit(){this._keyManager=new b.Em(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe((0,h.R)(this._destroyed)).subscribe(T=>this._keyManager.withHorizontalOrientation(T)),this._keyManager.tabOut.pipe((0,h.R)(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe((0,A.O)(null),(0,h.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 R.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(T){this._chipInput=T,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",T.id)}setDescribedByIds(T){this._ariaDescribedby=T.join(" ")}writeValue(T){this.chips&&this._setSelectionByValue(T,!1)}registerOnChange(T){this._onChange=T}registerOnTouched(T){this._onTouched=T}setDisabledState(T){this.disabled=T,this.stateChanges.next()}onContainerClick(T){this._originatesFromChip(T)||this.focus()}focus(T){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(T),this.stateChanges.next()))}_focusInput(T){this._chipInput&&this._chipInput.focus(T)}_keydown(T){const K=T.target;K&&K.classList.contains("mat-chip")&&(this._keyManager.onKeydown(T),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const T=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(T)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(T){return T>=0&&T<this.chips.length}_setSelectionByValue(T,K=!0){if(this._clearSelection(),this.chips.forEach(qe=>qe.deselect()),Array.isArray(T))T.forEach(qe=>this._selectValue(qe,K)),this._sortValues();else{const qe=this._selectValue(T,K);qe&&K&&this._keyManager.setActiveItem(qe)}}_selectValue(T,K=!0){const qe=this.chips.find(Dt=>null!=Dt.value&&this._compareWith(Dt.value,T));return qe&&(K?qe.selectViaInteraction():qe.select(),this._selectionModel.select(qe)),qe}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(T){this._selectionModel.clear(),this.chips.forEach(K=>{K!==T&&K.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(T=>{T.selected&&this._selectionModel.select(T)}),this.stateChanges.next())}_propagateChanges(T){let K=null;K=Array.isArray(this.selected)?this.selected.map(qe=>qe.value):this.selected?this.selected.value:T,this._value=K,this.change.emit(new on(this,K)),this.valueChange.emit(K),this._onChange(K),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(T=>{T.source.selected?this._selectionModel.select(T.source):this._selectionModel.deselect(T.source),this.multiple||this.chips.forEach(K=>{!this._selectionModel.isSelected(K)&&K.selected&&K.deselect()}),T.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(T=>{let K=this.chips.toArray().indexOf(T.chip);this._isValidIndex(K)&&this._keyManager.updateActiveItem(K),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(T=>{const K=T.chip,qe=this.chips.toArray().indexOf(T.chip);this._isValidIndex(qe)&&K._hasFocus&&(this._lastDestroyedChipIndex=qe)})}_originatesFromChip(T){let K=T.target;for(;K&&K!==this._elementRef.nativeElement;){if(K.classList.contains("mat-chip"))return!0;K=K.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(T=>T._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(T=>{T._chipListDisabled=this._disabled,T._chipListMultiple=this.multiple})}}return m.\u0275fac=function(T){return new(T||m)(u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(u.ChangeDetectorRef),u.\u0275\u0275directiveInject(be.Is,8),u.\u0275\u0275directiveInject(V.NgForm,8),u.\u0275\u0275directiveInject(V.FormGroupDirective,8),u.\u0275\u0275directiveInject(g.ErrorStateMatcher),u.\u0275\u0275directiveInject(V.NgControl,10))},m.\u0275cmp=u.\u0275\u0275defineComponent({type:m,selectors:[["mat-chip-list"]],contentQueries:function(T,K,qe){if(1&T&&u.\u0275\u0275contentQuery(qe,Bt,5),2&T){let Dt;u.\u0275\u0275queryRefresh(Dt=u.\u0275\u0275loadQuery())&&(K.chips=Dt)}},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(T,K){1&T&&u.\u0275\u0275listener("focus",function(){return K.focus()})("blur",function(){return K._blur()})("keydown",function(Dt){return K._keydown(Dt)}),2&T&&(u.\u0275\u0275hostProperty("id",K._uid),u.\u0275\u0275attribute("tabindex",K.disabled?null:K._tabIndex)("aria-describedby",K._ariaDescribedby||null)("aria-required",K.role?K.required:null)("aria-disabled",K.disabled.toString())("aria-invalid",K.errorState)("aria-multiselectable",K.multiple)("role",K.role)("aria-orientation",K.ariaOrientation),u.\u0275\u0275classProp("mat-chip-list-disabled",K.disabled)("mat-chip-list-invalid",K.errorState)("mat-chip-list-required",K.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:[u.\u0275\u0275ProvidersFeature([{provide:He,useExisting:m}]),u.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:se,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(T,K){1&T&&(u.\u0275\u0275projectionDef(),u.\u0275\u0275elementStart(0,"div",0),u.\u0275\u0275projection(1),u.\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}),m})(),z=(()=>{class m{}return m.\u0275fac=function(T){return new(T||m)},m.\u0275mod=u.\u0275\u0275defineNgModule({type:m}),m.\u0275inj=u.\u0275\u0275defineInjector({providers:[g.ErrorStateMatcher,{provide:rn,useValue:{separatorKeyCodes:[i.K5]}}],imports:[[g.MatCommonModule]]}),m})()},508:(Le,_,l)=>{"use strict";l.r(_),l.d(_,{AnimationCurves:()=>we,AnimationDurations:()=>pe,DateAdapter:()=>ye,ErrorStateMatcher:()=>Re,MATERIAL_SANITY_CHECKS:()=>De,MAT_DATE_FORMATS:()=>He,MAT_DATE_LOCALE:()=>ge,MAT_DATE_LOCALE_FACTORY:()=>it,MAT_NATIVE_DATE_FORMATS:()=>Ze,MAT_OPTGROUP:()=>Bt,MAT_OPTION_PARENT_COMPONENT:()=>pt,MAT_RIPPLE_GLOBAL_OPTIONS:()=>se,MatCommonModule:()=>Fe,MatLine:()=>ve,MatLineModule:()=>bt,MatNativeDateModule:()=>me,MatOptgroup:()=>En,MatOption:()=>bn,MatOptionModule:()=>yn,MatOptionSelectionChange:()=>Wt,MatPseudoCheckbox:()=>tt,MatPseudoCheckboxModule:()=>ft,MatRipple:()=>Ce,MatRippleModule:()=>Ge,NativeDateAdapter:()=>ke,NativeDateModule:()=>Z,RippleRef:()=>Ot,RippleRenderer:()=>ue,ShowOnDirtyErrorStateMatcher:()=>Me,VERSION:()=>ie,_MatOptgroupBase:()=>en,_MatOptionBase:()=>Mt,_countGroupLabelsBeforeOption:()=>Qt,_getOptionScrollPosition:()=>on,defaultRippleAnimationConfig:()=>lt,mixinColor:()=>J,mixinDisableRipple:()=>ce,mixinDisabled:()=>Pe,mixinErrorState:()=>re,mixinInitialized:()=>Ke,mixinTabIndex:()=>Se,setLines:()=>Ye});var i=l(5e3),u=l(226),c=l(9808),s=l(925),y=l(5664),E=l(3191),w=l(6758),I=l(9751),h=l(8675),A=l(6360),M=l(1159);const b=["*",[["mat-option"],["ng-container"]]],R=["*","mat-option, ng-container"];function V(oe,z){if(1&oe&&i.\u0275\u0275element(0,"mat-pseudo-checkbox",4),2&oe){const m=i.\u0275\u0275nextContext();i.\u0275\u0275property("state",m.selected?"checked":"unchecked")("disabled",m.disabled)}}function fe(oe,z){if(1&oe&&(i.\u0275\u0275elementStart(0,"span",5),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&oe){const m=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1("(",m.group.label,")")}}const $=["*"],ie=new i.Version("13.1.2");let we=(()=>{class oe{}return oe.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",oe.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",oe.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",oe.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",oe})(),pe=(()=>{class oe{}return oe.COMPLEX="375ms",oe.ENTERING="225ms",oe.EXITING="195ms",oe})();const De=new i.InjectionToken("mat-sanity-checks",{providedIn:"root",factory:function le(){return!0}});let Fe=(()=>{class oe{constructor(m,C,T){this._sanityChecks=C,this._document=T,this._hasDoneGlobalChecks=!1,m._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(m){return!(0,s.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[m])}}return oe.\u0275fac=function(m){return new(m||oe)(i.\u0275\u0275inject(y.qm),i.\u0275\u0275inject(De,8),i.\u0275\u0275inject(c.DOCUMENT))},oe.\u0275mod=i.\u0275\u0275defineNgModule({type:oe}),oe.\u0275inj=i.\u0275\u0275defineInjector({imports:[[u.vT],u.vT]}),oe})();function Pe(oe){return class extends oe{constructor(...z){super(...z),this._disabled=!1}get disabled(){return this._disabled}set disabled(z){this._disabled=(0,E.Ig)(z)}}}function J(oe,z){return class extends oe{constructor(...m){super(...m),this.defaultColor=z,this.color=z}get color(){return this._color}set color(m){const C=m||this.defaultColor;C!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),C&&this._elementRef.nativeElement.classList.add(`mat-${C}`),this._color=C)}}}function ce(oe){return class extends oe{constructor(...z){super(...z),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(z){this._disableRipple=(0,E.Ig)(z)}}}function Se(oe,z=0){return class extends oe{constructor(...m){super(...m),this._tabIndex=z,this.defaultTabIndex=z}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(m){this._tabIndex=null!=m?(0,E.su)(m):this.defaultTabIndex}}}function re(oe){return class extends oe{constructor(...z){super(...z),this.stateChanges=new w.x,this.errorState=!1}updateErrorState(){const z=this.errorState,K=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);K!==z&&(this.errorState=K,this.stateChanges.next())}}}function Ke(oe){return class extends oe{constructor(...z){super(...z),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new I.y(m=>{this._isInitialized?this._notifySubscriber(m):this._pendingSubscribers.push(m)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(z){z.next(),z.complete()}}}const ge=new i.InjectionToken("MAT_DATE_LOCALE",{providedIn:"root",factory:it});function it(){return(0,i.inject)(i.LOCALE_ID)}class ye{constructor(){this._localeChanges=new w.x,this.localeChanges=this._localeChanges}getValidDateOrNull(z){return this.isDateInstance(z)&&this.isValid(z)?z:null}deserialize(z){return null==z||this.isDateInstance(z)&&this.isValid(z)?z:this.invalid()}setLocale(z){this.locale=z,this._localeChanges.next()}compareDate(z,m){return this.getYear(z)-this.getYear(m)||this.getMonth(z)-this.getMonth(m)||this.getDate(z)-this.getDate(m)}sameDate(z,m){if(z&&m){let C=this.isValid(z),T=this.isValid(m);return C&&T?!this.compareDate(z,m):C==T}return z==m}clampDate(z,m,C){return m&&this.compareDate(z,m)<0?m:C&&this.compareDate(z,C)>0?C:z}}const He=new i.InjectionToken("mat-date-formats"),dt=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Et(oe,z){const m=Array(oe);for(let C=0;C<oe;C++)m[C]=z(C);return m}let ke=(()=>{class oe extends ye{constructor(m,C){super(),this.useUtcForDisplay=!1,super.setLocale(m)}getYear(m){return m.getFullYear()}getMonth(m){return m.getMonth()}getDate(m){return m.getDate()}getDayOfWeek(m){return m.getDay()}getMonthNames(m){const C=new Intl.DateTimeFormat(this.locale,{month:m,timeZone:"utc"});return Et(12,T=>this._format(C,new Date(2017,T,1)))}getDateNames(){const m=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Et(31,C=>this._format(m,new Date(2017,0,C+1)))}getDayOfWeekNames(m){const C=new Intl.DateTimeFormat(this.locale,{weekday:m,timeZone:"utc"});return Et(7,T=>this._format(C,new Date(2017,0,T+1)))}getYearName(m){const C=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(C,m)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(m){return this.getDate(this._createDateWithOverflow(this.getYear(m),this.getMonth(m)+1,0))}clone(m){return new Date(m.getTime())}createDate(m,C,T){let K=this._createDateWithOverflow(m,C,T);return K.getMonth(),K}today(){return new Date}parse(m){return"number"==typeof m?new Date(m):m?new Date(Date.parse(m)):null}format(m,C){if(!this.isValid(m))throw Error("NativeDateAdapter: Cannot format invalid date.");const T=new Intl.DateTimeFormat(this.locale,Object.assign(Object.assign({},C),{timeZone:"utc"}));return this._format(T,m)}addCalendarYears(m,C){return this.addCalendarMonths(m,12*C)}addCalendarMonths(m,C){let T=this._createDateWithOverflow(this.getYear(m),this.getMonth(m)+C,this.getDate(m));return this.getMonth(T)!=((this.getMonth(m)+C)%12+12)%12&&(T=this._createDateWithOverflow(this.getYear(T),this.getMonth(T),0)),T}addCalendarDays(m,C){return this._createDateWithOverflow(this.getYear(m),this.getMonth(m),this.getDate(m)+C)}toIso8601(m){return[m.getUTCFullYear(),this._2digit(m.getUTCMonth()+1),this._2digit(m.getUTCDate())].join("-")}deserialize(m){if("string"==typeof m){if(!m)return null;if(dt.test(m)){let C=new Date(m);if(this.isValid(C))return C}}return super.deserialize(m)}isDateInstance(m){return m instanceof Date}isValid(m){return!isNaN(m.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(m,C,T){const K=new Date;return K.setFullYear(m,C,T),K.setHours(0,0,0,0),K}_2digit(m){return("00"+m).slice(-2)}_format(m,C){const T=new Date;return T.setUTCFullYear(C.getFullYear(),C.getMonth(),C.getDate()),T.setUTCHours(C.getHours(),C.getMinutes(),C.getSeconds(),C.getMilliseconds()),m.format(T)}}return oe.\u0275fac=function(m){return new(m||oe)(i.\u0275\u0275inject(ge,8),i.\u0275\u0275inject(s.t4))},oe.\u0275prov=i.\u0275\u0275defineInjectable({token:oe,factory:oe.\u0275fac}),oe})();const Ze={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let Z=(()=>{class oe{}return oe.\u0275fac=function(m){return new(m||oe)},oe.\u0275mod=i.\u0275\u0275defineNgModule({type:oe}),oe.\u0275inj=i.\u0275\u0275defineInjector({providers:[{provide:ye,useClass:ke}],imports:[[s.ud]]}),oe})(),me=(()=>{class oe{}return oe.\u0275fac=function(m){return new(m||oe)},oe.\u0275mod=i.\u0275\u0275defineNgModule({type:oe}),oe.\u0275inj=i.\u0275\u0275defineInjector({providers:[{provide:He,useValue:Ze}],imports:[[Z]]}),oe})(),Me=(()=>{class oe{isErrorState(m,C){return!!(m&&m.invalid&&(m.dirty||C&&C.submitted))}}return oe.\u0275fac=function(m){return new(m||oe)},oe.\u0275prov=i.\u0275\u0275defineInjectable({token:oe,factory:oe.\u0275fac}),oe})(),Re=(()=>{class oe{isErrorState(m,C){return!!(m&&m.invalid&&(m.touched||C&&C.submitted))}}return oe.\u0275fac=function(m){return new(m||oe)},oe.\u0275prov=i.\u0275\u0275defineInjectable({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})(),ve=(()=>{class oe{}return oe.\u0275fac=function(m){return new(m||oe)},oe.\u0275dir=i.\u0275\u0275defineDirective({type:oe,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),oe})();function Ye(oe,z,m="mat"){oe.changes.pipe((0,h.O)(oe)).subscribe(({length:C})=>{ht(z,`${m}-2-line`,!1),ht(z,`${m}-3-line`,!1),ht(z,`${m}-multi-line`,!1),2===C||3===C?ht(z,`${m}-${C}-line`,!0):C>3&&ht(z,`${m}-multi-line`,!0)})}function ht(oe,z,m){oe.nativeElement.classList.toggle(z,m)}let bt=(()=>{class oe{}return oe.\u0275fac=function(m){return new(m||oe)},oe.\u0275mod=i.\u0275\u0275defineNgModule({type:oe}),oe.\u0275inj=i.\u0275\u0275defineInjector({imports:[[Fe],Fe]}),oe})();class Ot{constructor(z,m,C){this._renderer=z,this.element=m,this.config=C,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const lt={enterDuration:225,exitDuration:150},N=(0,s.i$)({passive:!0}),ae=["mousedown","touchstart"],Oe=["mouseup","mouseleave","touchend","touchcancel"];class ue{constructor(z,m,C,T){this._target=z,this._ngZone=m,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,T.isBrowser&&(this._containerElement=(0,E.fI)(C))}fadeInRipple(z,m,C={}){const T=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),K=Object.assign(Object.assign({},lt),C.animation);C.centered&&(z=T.left+T.width/2,m=T.top+T.height/2);const qe=C.radius||function be(oe,z,m){const C=Math.max(Math.abs(oe-m.left),Math.abs(oe-m.right)),T=Math.max(Math.abs(z-m.top),Math.abs(z-m.bottom));return Math.sqrt(C*C+T*T)}(z,m,T),Dt=z-T.left,zt=m-T.top,pn=K.enterDuration,Be=document.createElement("div");Be.classList.add("mat-ripple-element"),Be.style.left=Dt-qe+"px",Be.style.top=zt-qe+"px",Be.style.height=2*qe+"px",Be.style.width=2*qe+"px",null!=C.color&&(Be.style.backgroundColor=C.color),Be.style.transitionDuration=`${pn}ms`,this._containerElement.appendChild(Be),function Te(oe){window.getComputedStyle(oe).getPropertyValue("opacity")}(Be),Be.style.transform="scale(1)";const Ve=new Ot(this,Be,C);return Ve.state=0,this._activeRipples.add(Ve),C.persistent||(this._mostRecentTransientRipple=Ve),this._runTimeoutOutsideZone(()=>{const he=Ve===this._mostRecentTransientRipple;Ve.state=1,!C.persistent&&(!he||!this._isPointerDown)&&Ve.fadeOut()},pn),Ve}fadeOutRipple(z){const m=this._activeRipples.delete(z);if(z===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!m)return;const C=z.element,T=Object.assign(Object.assign({},lt),z.config.animation);C.style.transitionDuration=`${T.exitDuration}ms`,C.style.opacity="0",z.state=2,this._runTimeoutOutsideZone(()=>{z.state=3,C.remove()},T.exitDuration)}fadeOutAll(){this._activeRipples.forEach(z=>z.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(z=>{z.config.persistent||z.fadeOut()})}setupTriggerEvents(z){const m=(0,E.fI)(z);!m||m===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=m,this._registerEvents(ae))}handleEvent(z){"mousedown"===z.type?this._onMousedown(z):"touchstart"===z.type?this._onTouchStart(z):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Oe),this._pointerUpEventsRegistered=!0)}_onMousedown(z){const m=(0,y.X6)(z),C=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!m&&!C&&(this._isPointerDown=!0,this.fadeInRipple(z.clientX,z.clientY,this._target.rippleConfig))}_onTouchStart(z){if(!this._target.rippleDisabled&&!(0,y.yG)(z)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const m=z.changedTouches;for(let C=0;C<m.length;C++)this.fadeInRipple(m[C].clientX,m[C].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._activeRipples.forEach(z=>{!z.config.persistent&&(1===z.state||z.config.terminateOnPointerUp&&0===z.state)&&z.fadeOut()}))}_runTimeoutOutsideZone(z,m=0){this._ngZone.runOutsideAngular(()=>setTimeout(z,m))}_registerEvents(z){this._ngZone.runOutsideAngular(()=>{z.forEach(m=>{this._triggerElement.addEventListener(m,this,N)})})}_removeTriggerEvents(){this._triggerElement&&(ae.forEach(z=>{this._triggerElement.removeEventListener(z,this,N)}),this._pointerUpEventsRegistered&&Oe.forEach(z=>{this._triggerElement.removeEventListener(z,this,N)}))}}const se=new i.InjectionToken("mat-ripple-global-options");let Ce=(()=>{class oe{constructor(m,C,T,K,qe){this._elementRef=m,this._animationMode=qe,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=K||{},this._rippleRenderer=new ue(this,C,m,T)}get disabled(){return this._disabled}set disabled(m){m&&this.fadeOutAllNonPersistent(),this._disabled=m,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(m){this._trigger=m,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(m,C=0,T){return"number"==typeof m?this._rippleRenderer.fadeInRipple(m,C,Object.assign(Object.assign({},this.rippleConfig),T)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),m))}}return oe.\u0275fac=function(m){return new(m||oe)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.NgZone),i.\u0275\u0275directiveInject(s.t4),i.\u0275\u0275directiveInject(se,8),i.\u0275\u0275directiveInject(A.ANIMATION_MODULE_TYPE,8))},oe.\u0275dir=i.\u0275\u0275defineDirective({type:oe,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(m,C){2&m&&i.\u0275\u0275classProp("mat-ripple-unbounded",C.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"]}),oe})(),Ge=(()=>{class oe{}return oe.\u0275fac=function(m){return new(m||oe)},oe.\u0275mod=i.\u0275\u0275defineNgModule({type:oe}),oe.\u0275inj=i.\u0275\u0275defineInjector({imports:[[Fe,s.ud],Fe]}),oe})(),tt=(()=>{class oe{constructor(m){this._animationMode=m,this.state="unchecked",this.disabled=!1}}return oe.\u0275fac=function(m){return new(m||oe)(i.\u0275\u0275directiveInject(A.ANIMATION_MODULE_TYPE,8))},oe.\u0275cmp=i.\u0275\u0275defineComponent({type:oe,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(m,C){2&m&&i.\u0275\u0275classProp("mat-pseudo-checkbox-indeterminate","indeterminate"===C.state)("mat-pseudo-checkbox-checked","checked"===C.state)("mat-pseudo-checkbox-disabled",C.disabled)("_mat-animation-noopable","NoopAnimations"===C._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(m,C){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),oe})(),ft=(()=>{class oe{}return oe.\u0275fac=function(m){return new(m||oe)},oe.\u0275mod=i.\u0275\u0275defineNgModule({type:oe}),oe.\u0275inj=i.\u0275\u0275defineInjector({imports:[[Fe]]}),oe})();const pt=new i.InjectionToken("MAT_OPTION_PARENT_COMPONENT"),wt=Pe(class{});let $t=0,en=(()=>{class oe extends wt{constructor(m){var C;super(),this._labelId="mat-optgroup-label-"+$t++,this._inert=null!==(C=null==m?void 0:m.inertGroups)&&void 0!==C&&C}}return oe.\u0275fac=function(m){return new(m||oe)(i.\u0275\u0275directiveInject(pt,8))},oe.\u0275dir=i.\u0275\u0275defineDirective({type:oe,inputs:{label:"label"},features:[i.\u0275\u0275InheritDefinitionFeature]}),oe})();const Bt=new i.InjectionToken("MatOptgroup");let En=(()=>{class oe extends en{}return oe.\u0275fac=function(){let z;return function(C){return(z||(z=i.\u0275\u0275getInheritedFactory(oe)))(C||oe)}}(),oe.\u0275cmp=i.\u0275\u0275defineComponent({type:oe,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-optgroup"],hostVars:5,hostBindings:function(m,C){2&m&&(i.\u0275\u0275attribute("role",C._inert?null:"group")("aria-disabled",C._inert?null:C.disabled.toString())("aria-labelledby",C._inert?null:C._labelId),i.\u0275\u0275classProp("mat-optgroup-disabled",C.disabled))},inputs:{disabled:"disabled"},exportAs:["matOptgroup"],features:[i.\u0275\u0275ProvidersFeature([{provide:Bt,useExisting:oe}]),i.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:R,decls:4,vars:2,consts:[["aria-hidden","true",1,"mat-optgroup-label",3,"id"]],template:function(m,C){1&m&&(i.\u0275\u0275projectionDef(b),i.\u0275\u0275elementStart(0,"span",0),i.\u0275\u0275text(1),i.\u0275\u0275projection(2),i.\u0275\u0275elementEnd(),i.\u0275\u0275projection(3,1)),2&m&&(i.\u0275\u0275property("id",C._labelId),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1("",C.label," "))},styles:[".mat-optgroup-label{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%;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),oe})(),rn=0;class Wt{constructor(z,m=!1){this.source=z,this.isUserInput=m}}let Mt=(()=>{class oe{constructor(m,C,T,K){this._element=m,this._changeDetectorRef=C,this._parent=T,this.group=K,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+rn++,this.onSelectionChange=new i.EventEmitter,this._stateChanges=new w.x}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(m){this._disabled=(0,E.Ig)(m)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(m,C){const T=this._getHostElement();"function"==typeof T.focus&&T.focus(C)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(m){(m.keyCode===M.K5||m.keyCode===M.L_)&&!(0,M.Vb)(m)&&(this._selectViaInteraction(),m.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const m=this.viewValue;m!==this._mostRecentViewValue&&(this._mostRecentViewValue=m,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(m=!1){this.onSelectionChange.emit(new Wt(this,m))}}return oe.\u0275fac=function(m){i.\u0275\u0275invalidFactory()},oe.\u0275dir=i.\u0275\u0275defineDirective({type:oe,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),oe})(),bn=(()=>{class oe extends Mt{constructor(m,C,T,K){super(m,C,T,K)}}return oe.\u0275fac=function(m){return new(m||oe)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.ChangeDetectorRef),i.\u0275\u0275directiveInject(pt,8),i.\u0275\u0275directiveInject(Bt,8))},oe.\u0275cmp=i.\u0275\u0275defineComponent({type:oe,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(m,C){1&m&&i.\u0275\u0275listener("click",function(){return C._selectViaInteraction()})("keydown",function(K){return C._handleKeydown(K)}),2&m&&(i.\u0275\u0275hostProperty("id",C.id),i.\u0275\u0275attribute("tabindex",C._getTabIndex())("aria-selected",C._getAriaSelected())("aria-disabled",C.disabled.toString()),i.\u0275\u0275classProp("mat-selected",C.selected)("mat-option-multiple",C.multiple)("mat-active",C.active)("mat-option-disabled",C.disabled))},exportAs:["matOption"],features:[i.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:$,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(m,C){1&m&&(i.\u0275\u0275projectionDef(),i.\u0275\u0275template(0,V,1,2,"mat-pseudo-checkbox",0),i.\u0275\u0275elementStart(1,"span",1),i.\u0275\u0275projection(2),i.\u0275\u0275elementEnd(),i.\u0275\u0275template(3,fe,2,1,"span",2),i.\u0275\u0275element(4,"div",3)),2&m&&(i.\u0275\u0275property("ngIf",C.multiple),i.\u0275\u0275advance(3),i.\u0275\u0275property("ngIf",C.group&&C.group._inert),i.\u0275\u0275advance(1),i.\u0275\u0275property("matRippleTrigger",C._getHostElement())("matRippleDisabled",C.disabled||C.disableRipple))},directives:[c.NgIf,Ce,tt],styles:[".mat-option{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;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),oe})();function Qt(oe,z,m){if(m.length){let C=z.toArray(),T=m.toArray(),K=0;for(let qe=0;qe<oe+1;qe++)C[qe].group&&C[qe].group===T[K]&&K++;return K}return 0}function on(oe,z,m,C){return oe<m?oe:oe+z>m+C?Math.max(0,oe-C+z):m}let yn=(()=>{class oe{}return oe.\u0275fac=function(m){return new(m||oe)},oe.\u0275mod=i.\u0275\u0275defineNgModule({type:oe}),oe.\u0275inj=i.\u0275\u0275defineInjector({imports:[[Ge,c.CommonModule,Fe,ft]]}),oe})()},8966:(Le,_,l)=>{"use strict";l.r(_),l.d(_,{MAT_DIALOG_DATA:()=>Pe,MAT_DIALOG_DEFAULT_OPTIONS:()=>J,MAT_DIALOG_SCROLL_STRATEGY:()=>ce,MAT_DIALOG_SCROLL_STRATEGY_FACTORY:()=>Se,MAT_DIALOG_SCROLL_STRATEGY_PROVIDER:()=>Ke,MAT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY:()=>re,MatDialog:()=>it,MatDialogActions:()=>Ze,MatDialogClose:()=>dt,MatDialogConfig:()=>pe,MatDialogContainer:()=>Fe,MatDialogContent:()=>ke,MatDialogModule:()=>me,MatDialogRef:()=>ot,MatDialogTitle:()=>Et,_MatDialogBase:()=>ge,_MatDialogContainerBase:()=>De,_closeDialogVia:()=>q,matDialogAnimations:()=>_e,throwMatDialogContentAlreadyAttachedError:()=>le});var i=l(1314),u=l(7429),g=l(5e3),c=l(508),s=l(226),y=l(6758),E=l(9770),w=l(6921),I=l(9646),h=l(9300),A=l(5698),M=l(8675),b=l(925),R=l(9808),V=l(1777),fe=l(5664),$=l(1159),ie=l(6360);function we(Me,Re){}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 _e={dialogContainer:(0,V.X$)("dialogContainer",[(0,V.SB)("void, exit",(0,V.oB)({opacity:0,transform:"scale(0.7)"})),(0,V.SB)("enter",(0,V.oB)({transform:"none"})),(0,V.eR)("* => enter",(0,V.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,V.oB)({transform:"none",opacity:1}))),(0,V.eR)("* => void, * => exit",(0,V.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,V.oB)({opacity:0})))])};function le(){throw Error("Attempting to attach dialog content after content is already attached")}let De=(()=>{class Me extends u.en{constructor(ve,Ye,ht,bt,Ot,lt,Qe,N){super(),this._elementRef=ve,this._focusTrapFactory=Ye,this._changeDetectorRef=ht,this._config=Ot,this._interactivityChecker=lt,this._ngZone=Qe,this._focusMonitor=N,this._animationStateChanged=new g.EventEmitter,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=ae=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(ae)),this._ariaLabelledBy=Ot.ariaLabelledBy||null,this._document=bt}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement()}attachComponentPortal(ve){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(ve)}attachTemplatePortal(ve){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(ve)}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(ve,Ye){this._interactivityChecker.isFocusable(ve)||(ve.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{ve.addEventListener("blur",()=>ve.removeAttribute("tabindex")),ve.addEventListener("mousedown",()=>ve.removeAttribute("tabindex"))})),ve.focus(Ye)}_focusByCssSelector(ve,Ye){let ht=this._elementRef.nativeElement.querySelector(ve);ht&&this._forceFocus(ht,Ye)}_trapFocus(){const ve=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||ve.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(Ye=>{Ye||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 ve=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&ve&&"function"==typeof ve.focus){const Ye=(0,b.ht)(),ht=this._elementRef.nativeElement;(!Ye||Ye===this._document.body||Ye===ht||ht.contains(Ye))&&(this._focusMonitor?(this._focusMonitor.focusVia(ve,this._closeInteractionType),this._closeInteractionType=null):ve.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,b.ht)())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const ve=this._elementRef.nativeElement,Ye=(0,b.ht)();return ve===Ye||ve.contains(Ye)}}return Me.\u0275fac=function(ve){return new(ve||Me)(g.\u0275\u0275directiveInject(g.ElementRef),g.\u0275\u0275directiveInject(fe.qV),g.\u0275\u0275directiveInject(g.ChangeDetectorRef),g.\u0275\u0275directiveInject(R.DOCUMENT,8),g.\u0275\u0275directiveInject(pe),g.\u0275\u0275directiveInject(fe.ic),g.\u0275\u0275directiveInject(g.NgZone),g.\u0275\u0275directiveInject(fe.tE))},Me.\u0275dir=g.\u0275\u0275defineDirective({type:Me,viewQuery:function(ve,Ye){if(1&ve&&g.\u0275\u0275viewQuery(u.Pl,7),2&ve){let ht;g.\u0275\u0275queryRefresh(ht=g.\u0275\u0275loadQuery())&&(Ye._portalOutlet=ht.first)}},features:[g.\u0275\u0275InheritDefinitionFeature]}),Me})(),Fe=(()=>{class Me extends De{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:ve,totalTime:Ye}){"enter"===ve?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:Ye})):"exit"===ve&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:Ye}))}_onAnimationStart({toState:ve,totalTime:Ye}){"enter"===ve?this._animationStateChanged.next({state:"opening",totalTime:Ye}):("exit"===ve||"void"===ve)&&this._animationStateChanged.next({state:"closing",totalTime:Ye})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return Me.\u0275fac=function(){let Re;return function(Ye){return(Re||(Re=g.\u0275\u0275getInheritedFactory(Me)))(Ye||Me)}}(),Me.\u0275cmp=g.\u0275\u0275defineComponent({type:Me,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(ve,Ye){1&ve&&g.\u0275\u0275syntheticHostListener("@dialogContainer.start",function(bt){return Ye._onAnimationStart(bt)})("@dialogContainer.done",function(bt){return Ye._onAnimationDone(bt)}),2&ve&&(g.\u0275\u0275hostProperty("id",Ye._id),g.\u0275\u0275attribute("role",Ye._config.role)("aria-labelledby",Ye._config.ariaLabel?null:Ye._ariaLabelledBy)("aria-label",Ye._config.ariaLabel)("aria-describedby",Ye._config.ariaDescribedBy||null),g.\u0275\u0275syntheticHostProperty("@dialogContainer",Ye._state))},features:[g.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(ve,Ye){1&ve&&g.\u0275\u0275template(0,we,0,0,"ng-template",0)},directives:[u.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:[_e.dialogContainer]}}),Me})(),Je=0;class ot{constructor(Re,ve,Ye="mat-dialog-"+Je++){this._overlayRef=Re,this._containerInstance=ve,this.id=Ye,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new y.x,this._afterClosed=new y.x,this._beforeClosed=new y.x,this._state=0,ve._id=Ye,ve._animationStateChanged.pipe((0,h.h)(ht=>"opened"===ht.state),(0,A.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),ve._animationStateChanged.pipe((0,h.h)(ht=>"closed"===ht.state),(0,A.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),Re.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),Re.keydownEvents().pipe((0,h.h)(ht=>ht.keyCode===$.hY&&!this.disableClose&&!(0,$.Vb)(ht))).subscribe(ht=>{ht.preventDefault(),q(this,"keyboard")}),Re.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():q(this,"mouse")})}close(Re){this._result=Re,this._containerInstance._animationStateChanged.pipe((0,h.h)(ve=>"closing"===ve.state),(0,A.q)(1)).subscribe(ve=>{this._beforeClosed.next(Re),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),ve.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(Re){let ve=this._getPositionStrategy();return Re&&(Re.left||Re.right)?Re.left?ve.left(Re.left):ve.right(Re.right):ve.centerHorizontally(),Re&&(Re.top||Re.bottom)?Re.top?ve.top(Re.top):ve.bottom(Re.bottom):ve.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(Re="",ve=""){return this._overlayRef.updateSize({width:Re,height:ve}),this._overlayRef.updatePosition(),this}addPanelClass(Re){return this._overlayRef.addPanelClass(Re),this}removePanelClass(Re){return this._overlayRef.removePanelClass(Re),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function q(Me,Re,ve){return void 0!==Me._containerInstance&&(Me._containerInstance._closeInteractionType=Re),Me.close(ve)}const Pe=new g.InjectionToken("MatDialogData"),J=new g.InjectionToken("mat-dialog-default-options"),ce=new g.InjectionToken("mat-dialog-scroll-strategy");function Se(Me){return()=>Me.scrollStrategies.block()}function re(Me){return()=>Me.scrollStrategies.block()}const Ke={provide:ce,deps:[i.aV],useFactory:re};let ge=(()=>{class Me{constructor(ve,Ye,ht,bt,Ot,lt,Qe,N,ae,Oe){this._overlay=ve,this._injector=Ye,this._defaultOptions=ht,this._parentDialog=bt,this._overlayContainer=Ot,this._dialogRefConstructor=Qe,this._dialogContainerType=N,this._dialogDataToken=ae,this._animationMode=Oe,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new y.x,this._afterOpenedAtThisLevel=new y.x,this._ariaHiddenElements=new Map,this._dialogAnimatingOpen=!1,this.afterAllClosed=(0,E.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,M.O)(void 0))),this._scrollStrategy=lt}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const ve=this._parentDialog;return ve?ve._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(ve,Ye){if(Ye=function ye(Me,Re){return Object.assign(Object.assign({},Re),Me)}(Ye,this._defaultOptions||new pe),Ye.id&&this.getDialogById(Ye.id),this._dialogAnimatingOpen)return this._lastDialogRef;const ht=this._createOverlay(Ye),bt=this._attachDialogContainer(ht,Ye);if("NoopAnimations"!==this._animationMode){const lt=bt._animationStateChanged.subscribe(Qe=>{"opening"===Qe.state&&(this._dialogAnimatingOpen=!0),"opened"===Qe.state&&(this._dialogAnimatingOpen=!1,lt.unsubscribe())});this._animationStateSubscriptions||(this._animationStateSubscriptions=new w.w0),this._animationStateSubscriptions.add(lt)}const Ot=this._attachDialogContent(ve,bt,ht,Ye);return this._lastDialogRef=Ot,this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(Ot),Ot.afterClosed().subscribe(()=>this._removeOpenDialog(Ot)),this.afterOpened.next(Ot),bt._initializeWithAttachedContent(),Ot}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(ve){return this.openDialogs.find(Ye=>Ye.id===ve)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._animationStateSubscriptions&&this._animationStateSubscriptions.unsubscribe()}_createOverlay(ve){const Ye=this._getOverlayConfig(ve);return this._overlay.create(Ye)}_getOverlayConfig(ve){const Ye=new i.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:ve.scrollStrategy||this._scrollStrategy(),panelClass:ve.panelClass,hasBackdrop:ve.hasBackdrop,direction:ve.direction,minWidth:ve.minWidth,minHeight:ve.minHeight,maxWidth:ve.maxWidth,maxHeight:ve.maxHeight,disposeOnNavigation:ve.closeOnNavigation});return ve.backdropClass&&(Ye.backdropClass=ve.backdropClass),Ye}_attachDialogContainer(ve,Ye){const bt=g.Injector.create({parent:Ye&&Ye.viewContainerRef&&Ye.viewContainerRef.injector||this._injector,providers:[{provide:pe,useValue:Ye}]}),Ot=new u.C5(this._dialogContainerType,Ye.viewContainerRef,bt,Ye.componentFactoryResolver);return ve.attach(Ot).instance}_attachDialogContent(ve,Ye,ht,bt){const Ot=new this._dialogRefConstructor(ht,Ye,bt.id);if(ve instanceof g.TemplateRef)Ye.attachTemplatePortal(new u.UE(ve,null,{$implicit:bt.data,dialogRef:Ot}));else{const lt=this._createInjector(bt,Ot,Ye),Qe=Ye.attachComponentPortal(new u.C5(ve,bt.viewContainerRef,lt));Ot.componentInstance=Qe.instance}return Ot.updateSize(bt.width,bt.height).updatePosition(bt.position),Ot}_createInjector(ve,Ye,ht){const bt=ve&&ve.viewContainerRef&&ve.viewContainerRef.injector,Ot=[{provide:this._dialogContainerType,useValue:ht},{provide:this._dialogDataToken,useValue:ve.data},{provide:this._dialogRefConstructor,useValue:Ye}];return ve.direction&&(!bt||!bt.get(s.Is,null,g.InjectFlags.Optional))&&Ot.push({provide:s.Is,useValue:{value:ve.direction,change:(0,I.of)()}}),g.Injector.create({parent:bt||this._injector,providers:Ot})}_removeOpenDialog(ve){const Ye=this.openDialogs.indexOf(ve);Ye>-1&&(this.openDialogs.splice(Ye,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((ht,bt)=>{ht?bt.setAttribute("aria-hidden",ht):bt.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const ve=this._overlayContainer.getContainerElement();if(ve.parentElement){const Ye=ve.parentElement.children;for(let ht=Ye.length-1;ht>-1;ht--){let bt=Ye[ht];bt!==ve&&"SCRIPT"!==bt.nodeName&&"STYLE"!==bt.nodeName&&!bt.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(bt,bt.getAttribute("aria-hidden")),bt.setAttribute("aria-hidden","true"))}}}_closeDialogs(ve){let Ye=ve.length;for(;Ye--;)ve[Ye].close()}}return Me.\u0275fac=function(ve){g.\u0275\u0275invalidFactory()},Me.\u0275dir=g.\u0275\u0275defineDirective({type:Me}),Me})(),it=(()=>{class Me extends ge{constructor(ve,Ye,ht,bt,Ot,lt,Qe,N){super(ve,Ye,bt,lt,Qe,Ot,ot,Fe,Pe,N)}}return Me.\u0275fac=function(ve){return new(ve||Me)(g.\u0275\u0275inject(i.aV),g.\u0275\u0275inject(g.Injector),g.\u0275\u0275inject(R.Location,8),g.\u0275\u0275inject(J,8),g.\u0275\u0275inject(ce),g.\u0275\u0275inject(Me,12),g.\u0275\u0275inject(i.Xj),g.\u0275\u0275inject(ie.ANIMATION_MODULE_TYPE,8))},Me.\u0275prov=g.\u0275\u0275defineInjectable({token:Me,factory:Me.\u0275fac}),Me})(),He=0,dt=(()=>{class Me{constructor(ve,Ye,ht){this.dialogRef=ve,this._elementRef=Ye,this._dialog=ht,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=Z(this._elementRef,this._dialog.openDialogs))}ngOnChanges(ve){const Ye=ve._matDialogClose||ve._matDialogCloseResult;Ye&&(this.dialogResult=Ye.currentValue)}_onButtonClick(ve){q(this.dialogRef,0===ve.screenX&&0===ve.screenY?"keyboard":"mouse",this.dialogResult)}}return Me.\u0275fac=function(ve){return new(ve||Me)(g.\u0275\u0275directiveInject(ot,8),g.\u0275\u0275directiveInject(g.ElementRef),g.\u0275\u0275directiveInject(it))},Me.\u0275dir=g.\u0275\u0275defineDirective({type:Me,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(ve,Ye){1&ve&&g.\u0275\u0275listener("click",function(bt){return Ye._onButtonClick(bt)}),2&ve&&g.\u0275\u0275attribute("aria-label",Ye.ariaLabel||null)("type",Ye.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[g.\u0275\u0275NgOnChangesFeature]}),Me})(),Et=(()=>{class Me{constructor(ve,Ye,ht){this._dialogRef=ve,this._elementRef=Ye,this._dialog=ht,this.id="mat-dialog-title-"+He++}ngOnInit(){this._dialogRef||(this._dialogRef=Z(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const ve=this._dialogRef._containerInstance;ve&&!ve._ariaLabelledBy&&(ve._ariaLabelledBy=this.id)})}}return Me.\u0275fac=function(ve){return new(ve||Me)(g.\u0275\u0275directiveInject(ot,8),g.\u0275\u0275directiveInject(g.ElementRef),g.\u0275\u0275directiveInject(it))},Me.\u0275dir=g.\u0275\u0275defineDirective({type:Me,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(ve,Ye){2&ve&&g.\u0275\u0275hostProperty("id",Ye.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),Me})(),ke=(()=>{class Me{}return Me.\u0275fac=function(ve){return new(ve||Me)},Me.\u0275dir=g.\u0275\u0275defineDirective({type:Me,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),Me})(),Ze=(()=>{class Me{}return Me.\u0275fac=function(ve){return new(ve||Me)},Me.\u0275dir=g.\u0275\u0275defineDirective({type:Me,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),Me})();function Z(Me,Re){let ve=Me.nativeElement.parentElement;for(;ve&&!ve.classList.contains("mat-dialog-container");)ve=ve.parentElement;return ve?Re.find(Ye=>Ye.id===ve.id):null}let me=(()=>{class Me{}return Me.\u0275fac=function(ve){return new(ve||Me)},Me.\u0275mod=g.\u0275\u0275defineNgModule({type:Me}),Me.\u0275inj=g.\u0275\u0275defineInjector({providers:[it,Ke],imports:[[i.U8,u.eL,c.MatCommonModule],c.MatCommonModule]}),Me})()},5245:(Le,_,l)=>{"use strict";l.r(_),l.d(_,{ICON_REGISTRY_PROVIDER:()=>Pe,ICON_REGISTRY_PROVIDER_FACTORY:()=>q,MAT_ICON_LOCATION:()=>Ke,MAT_ICON_LOCATION_FACTORY:()=>ge,MatIcon:()=>dt,MatIconModule:()=>Et,MatIconRegistry:()=>ot,getMatIconFailedToSanitizeLiteralError:()=>Fe,getMatIconFailedToSanitizeUrlError:()=>De,getMatIconNameNotFoundError:()=>_e,getMatIconNoHttpProviderError:()=>le});var i=l(5e3),u=l(508),g=l(3191),c=l(9808),s=l(9646),y=l(2843),E=l(4128),w=l(6921),I=l(8505),h=l(4004),A=l(262),M=l(8746),b=l(3099),R=l(5698),V=l(520),fe=l(2313);const $=["*"];let ie;function pe(ke){var Ze;return(null===(Ze=function we(){if(void 0===ie&&(ie=null,"undefined"!=typeof window)){const ke=window;void 0!==ke.trustedTypes&&(ie=ke.trustedTypes.createPolicy("angular#components",{createHTML:Ze=>Ze}))}return ie}())||void 0===Ze?void 0:Ze.createHTML(ke))||ke}function _e(ke){return Error(`Unable to find icon with the name "${ke}"`)}function le(){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 De(ke){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${ke}".`)}function Fe(ke){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${ke}".`)}class Je{constructor(Ze,Z,me){this.url=Ze,this.svgText=Z,this.options=me}}let ot=(()=>{class ke{constructor(Z,me,Me,Re){this._httpClient=Z,this._sanitizer=me,this._errorHandler=Re,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=Me}addSvgIcon(Z,me,Me){return this.addSvgIconInNamespace("",Z,me,Me)}addSvgIconLiteral(Z,me,Me){return this.addSvgIconLiteralInNamespace("",Z,me,Me)}addSvgIconInNamespace(Z,me,Me,Re){return this._addSvgIconConfig(Z,me,new Je(Me,null,Re))}addSvgIconResolver(Z){return this._resolvers.push(Z),this}addSvgIconLiteralInNamespace(Z,me,Me,Re){const ve=this._sanitizer.sanitize(i.SecurityContext.HTML,Me);if(!ve)throw Fe(Me);const Ye=pe(ve);return this._addSvgIconConfig(Z,me,new Je("",Ye,Re))}addSvgIconSet(Z,me){return this.addSvgIconSetInNamespace("",Z,me)}addSvgIconSetLiteral(Z,me){return this.addSvgIconSetLiteralInNamespace("",Z,me)}addSvgIconSetInNamespace(Z,me,Me){return this._addSvgIconSetConfig(Z,new Je(me,null,Me))}addSvgIconSetLiteralInNamespace(Z,me,Me){const Re=this._sanitizer.sanitize(i.SecurityContext.HTML,me);if(!Re)throw Fe(me);const ve=pe(Re);return this._addSvgIconSetConfig(Z,new Je("",ve,Me))}registerFontClassAlias(Z,me=Z){return this._fontCssClassesByAlias.set(Z,me),this}classNameForFontAlias(Z){return this._fontCssClassesByAlias.get(Z)||Z}setDefaultFontSetClass(Z){return this._defaultFontSetClass=Z,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(Z){const me=this._sanitizer.sanitize(i.SecurityContext.RESOURCE_URL,Z);if(!me)throw De(Z);const Me=this._cachedIconsByUrl.get(me);return Me?(0,s.of)(J(Me)):this._loadSvgIconFromConfig(new Je(Z,null)).pipe((0,I.b)(Re=>this._cachedIconsByUrl.set(me,Re)),(0,h.U)(Re=>J(Re)))}getNamedSvgIcon(Z,me=""){const Me=ce(me,Z);let Re=this._svgIconConfigs.get(Me);if(Re)return this._getSvgFromConfig(Re);if(Re=this._getIconConfigFromResolvers(me,Z),Re)return this._svgIconConfigs.set(Me,Re),this._getSvgFromConfig(Re);const ve=this._iconSetConfigs.get(me);return ve?this._getSvgFromIconSetConfigs(Z,ve):(0,y._)(_e(Me))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(Z){return Z.svgText?(0,s.of)(J(this._svgElementFromConfig(Z))):this._loadSvgIconFromConfig(Z).pipe((0,h.U)(me=>J(me)))}_getSvgFromIconSetConfigs(Z,me){const Me=this._extractIconWithNameFromAnySet(Z,me);if(Me)return(0,s.of)(Me);const Re=me.filter(ve=>!ve.svgText).map(ve=>this._loadSvgIconSetFromConfig(ve).pipe((0,A.K)(Ye=>{const bt=`Loading icon set URL: ${this._sanitizer.sanitize(i.SecurityContext.RESOURCE_URL,ve.url)} failed: ${Ye.message}`;return this._errorHandler.handleError(new Error(bt)),(0,s.of)(null)})));return(0,E.D)(Re).pipe((0,h.U)(()=>{const ve=this._extractIconWithNameFromAnySet(Z,me);if(!ve)throw _e(Z);return ve}))}_extractIconWithNameFromAnySet(Z,me){for(let Me=me.length-1;Me>=0;Me--){const Re=me[Me];if(Re.svgText&&Re.svgText.toString().indexOf(Z)>-1){const ve=this._svgElementFromConfig(Re),Ye=this._extractSvgIconFromSet(ve,Z,Re.options);if(Ye)return Ye}}return null}_loadSvgIconFromConfig(Z){return this._fetchIcon(Z).pipe((0,I.b)(me=>Z.svgText=me),(0,h.U)(()=>this._svgElementFromConfig(Z)))}_loadSvgIconSetFromConfig(Z){return Z.svgText?(0,s.of)(null):this._fetchIcon(Z).pipe((0,I.b)(me=>Z.svgText=me))}_extractSvgIconFromSet(Z,me,Me){const Re=Z.querySelector(`[id="${me}"]`);if(!Re)return null;const ve=Re.cloneNode(!0);if(ve.removeAttribute("id"),"svg"===ve.nodeName.toLowerCase())return this._setSvgAttributes(ve,Me);if("symbol"===ve.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(ve),Me);const Ye=this._svgElementFromString(pe("<svg></svg>"));return Ye.appendChild(ve),this._setSvgAttributes(Ye,Me)}_svgElementFromString(Z){const me=this._document.createElement("DIV");me.innerHTML=Z;const Me=me.querySelector("svg");if(!Me)throw Error("<svg> tag not found");return Me}_toSvgElement(Z){const me=this._svgElementFromString(pe("<svg></svg>")),Me=Z.attributes;for(let Re=0;Re<Me.length;Re++){const{name:ve,value:Ye}=Me[Re];"id"!==ve&&me.setAttribute(ve,Ye)}for(let Re=0;Re<Z.childNodes.length;Re++)Z.childNodes[Re].nodeType===this._document.ELEMENT_NODE&&me.appendChild(Z.childNodes[Re].cloneNode(!0));return me}_setSvgAttributes(Z,me){return Z.setAttribute("fit",""),Z.setAttribute("height","100%"),Z.setAttribute("width","100%"),Z.setAttribute("preserveAspectRatio","xMidYMid meet"),Z.setAttribute("focusable","false"),me&&me.viewBox&&Z.setAttribute("viewBox",me.viewBox),Z}_fetchIcon(Z){var me;const{url:Me,options:Re}=Z,ve=null!==(me=null==Re?void 0:Re.withCredentials)&&void 0!==me&&me;if(!this._httpClient)throw le();if(null==Me)throw Error(`Cannot fetch icon from URL "${Me}".`);const Ye=this._sanitizer.sanitize(i.SecurityContext.RESOURCE_URL,Me);if(!Ye)throw De(Me);const ht=this._inProgressUrlFetches.get(Ye);if(ht)return ht;const bt=this._httpClient.get(Ye,{responseType:"text",withCredentials:ve}).pipe((0,h.U)(Ot=>pe(Ot)),(0,M.x)(()=>this._inProgressUrlFetches.delete(Ye)),(0,b.B)());return this._inProgressUrlFetches.set(Ye,bt),bt}_addSvgIconConfig(Z,me,Me){return this._svgIconConfigs.set(ce(Z,me),Me),this}_addSvgIconSetConfig(Z,me){const Me=this._iconSetConfigs.get(Z);return Me?Me.push(me):this._iconSetConfigs.set(Z,[me]),this}_svgElementFromConfig(Z){if(!Z.svgElement){const me=this._svgElementFromString(Z.svgText);this._setSvgAttributes(me,Z.options),Z.svgElement=me}return Z.svgElement}_getIconConfigFromResolvers(Z,me){for(let Me=0;Me<this._resolvers.length;Me++){const Re=this._resolvers[Me](me,Z);if(Re)return Se(Re)?new Je(Re.url,null,Re.options):new Je(Re,null)}}}return ke.\u0275fac=function(Z){return new(Z||ke)(i.\u0275\u0275inject(V.HttpClient,8),i.\u0275\u0275inject(fe.DomSanitizer),i.\u0275\u0275inject(c.DOCUMENT,8),i.\u0275\u0275inject(i.ErrorHandler))},ke.\u0275prov=i.\u0275\u0275defineInjectable({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})();function q(ke,Ze,Z,me,Me){return ke||new ot(Ze,Z,Me,me)}const Pe={provide:ot,deps:[[new i.Optional,new i.SkipSelf,ot],[new i.Optional,V.HttpClient],fe.DomSanitizer,i.ErrorHandler,[new i.Optional,c.DOCUMENT]],useFactory:q};function J(ke){return ke.cloneNode(!0)}function ce(ke,Ze){return ke+":"+Ze}function Se(ke){return!(!ke.url||!ke.options)}const re=(0,u.mixinColor)(class{constructor(ke){this._elementRef=ke}}),Ke=new i.InjectionToken("mat-icon-location",{providedIn:"root",factory:ge});function ge(){const ke=(0,i.inject)(c.DOCUMENT),Ze=ke?ke.location:null;return{getPathname:()=>Ze?Ze.pathname+Ze.search:""}}const it=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],ye=it.map(ke=>`[${ke}]`).join(", "),He=/^url\(['"]?#(.*?)['"]?\)$/;let dt=(()=>{class ke extends re{constructor(Z,me,Me,Re,ve){super(Z),this._iconRegistry=me,this._location=Re,this._errorHandler=ve,this._inline=!1,this._currentIconFetch=w.w0.EMPTY,Me||Z.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(Z){this._inline=(0,g.Ig)(Z)}get svgIcon(){return this._svgIcon}set svgIcon(Z){Z!==this._svgIcon&&(Z?this._updateSvgIcon(Z):this._svgIcon&&this._clearSvgElement(),this._svgIcon=Z)}get fontSet(){return this._fontSet}set fontSet(Z){const me=this._cleanupFontValue(Z);me!==this._fontSet&&(this._fontSet=me,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(Z){const me=this._cleanupFontValue(Z);me!==this._fontIcon&&(this._fontIcon=me,this._updateFontIconClasses())}_splitIconName(Z){if(!Z)return["",""];const me=Z.split(":");switch(me.length){case 1:return["",me[0]];case 2:return me;default:throw Error(`Invalid icon name: "${Z}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const Z=this._elementsWithExternalReferences;if(Z&&Z.size){const me=this._location.getPathname();me!==this._previousPath&&(this._previousPath=me,this._prependPathToReferences(me))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(Z){this._clearSvgElement();const me=Z.querySelectorAll("style");for(let Re=0;Re<me.length;Re++)me[Re].textContent+=" ";const Me=this._location.getPathname();this._previousPath=Me,this._cacheChildrenWithExternalReferences(Z),this._prependPathToReferences(Me),this._elementRef.nativeElement.appendChild(Z)}_clearSvgElement(){const Z=this._elementRef.nativeElement;let me=Z.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();me--;){const Me=Z.childNodes[me];(1!==Me.nodeType||"svg"===Me.nodeName.toLowerCase())&&Me.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const Z=this._elementRef.nativeElement,me=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();me!=this._previousFontSetClass&&(this._previousFontSetClass&&Z.classList.remove(this._previousFontSetClass),me&&Z.classList.add(me),this._previousFontSetClass=me),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&Z.classList.remove(this._previousFontIconClass),this.fontIcon&&Z.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(Z){return"string"==typeof Z?Z.trim().split(" ")[0]:Z}_prependPathToReferences(Z){const me=this._elementsWithExternalReferences;me&&me.forEach((Me,Re)=>{Me.forEach(ve=>{Re.setAttribute(ve.name,`url('${Z}#${ve.value}')`)})})}_cacheChildrenWithExternalReferences(Z){const me=Z.querySelectorAll(ye),Me=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let Re=0;Re<me.length;Re++)it.forEach(ve=>{const Ye=me[Re],ht=Ye.getAttribute(ve),bt=ht?ht.match(He):null;if(bt){let Ot=Me.get(Ye);Ot||(Ot=[],Me.set(Ye,Ot)),Ot.push({name:ve,value:bt[1]})}})}_updateSvgIcon(Z){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),Z){const[me,Me]=this._splitIconName(Z);me&&(this._svgNamespace=me),Me&&(this._svgName=Me),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(Me,me).pipe((0,R.q)(1)).subscribe(Re=>this._setSvgElement(Re),Re=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${me}:${Me}! ${Re.message}`))})}}}return ke.\u0275fac=function(Z){return new(Z||ke)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(ot),i.\u0275\u0275injectAttribute("aria-hidden"),i.\u0275\u0275directiveInject(Ke),i.\u0275\u0275directiveInject(i.ErrorHandler))},ke.\u0275cmp=i.\u0275\u0275defineComponent({type:ke,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(Z,me){2&Z&&(i.\u0275\u0275attribute("data-mat-icon-type",me._usingFontIcon()?"font":"svg")("data-mat-icon-name",me._svgName||me.fontIcon)("data-mat-icon-namespace",me._svgNamespace||me.fontSet),i.\u0275\u0275classProp("mat-icon-inline",me.inline)("mat-icon-no-color","primary"!==me.color&&"accent"!==me.color&&"warn"!==me.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[i.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:$,decls:1,vars:0,template:function(Z,me){1&Z&&(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}),ke})(),Et=(()=>{class ke{}return ke.\u0275fac=function(Z){return new(Z||ke)},ke.\u0275mod=i.\u0275\u0275defineNgModule({type:ke}),ke.\u0275inj=i.\u0275\u0275defineInjector({imports:[[u.MatCommonModule],u.MatCommonModule]}),ke})()},2181:(Le,_,l)=>{"use strict";l.r(_),l.d(_,{MAT_MENU_CONTENT:()=>Se,MAT_MENU_DEFAULT_OPTIONS:()=>Ze,MAT_MENU_PANEL:()=>dt,MAT_MENU_SCROLL_STRATEGY:()=>ve,MatMenu:()=>Re,MatMenuContent:()=>Ke,MatMenuItem:()=>ke,MatMenuModule:()=>N,MatMenuTrigger:()=>Qe,_MatMenuBase:()=>Me,_MatMenuContentBase:()=>re,_MatMenuTriggerBase:()=>lt,fadeInItems:()=>J,matMenuAnimations:()=>Pe,transformMenu:()=>ce});var i=l(5664),u=l(3191),g=l(1159),c=l(5e3),s=l(6758),y=l(6921),E=l(6451),w=l(9646),I=l(3101),h=l(8675),A=l(3900),M=l(5698),b=l(9300),R=l(2722),V=l(4326),fe=l(1777),$=l(7429),ie=l(9808),we=l(508),pe=l(1314),_e=l(925),le=l(226),De=l(9071);const Fe=["mat-menu-item",""];function Je(ae,Oe){1&ae&&(c.\u0275\u0275namespaceSVG(),c.\u0275\u0275elementStart(0,"svg",2),c.\u0275\u0275element(1,"polygon",3),c.\u0275\u0275elementEnd())}const ot=["*"];function q(ae,Oe){if(1&ae){const ue=c.\u0275\u0275getCurrentView();c.\u0275\u0275elementStart(0,"div",0),c.\u0275\u0275listener("keydown",function(be){return c.\u0275\u0275restoreView(ue),c.\u0275\u0275nextContext()._handleKeydown(be)})("click",function(){return c.\u0275\u0275restoreView(ue),c.\u0275\u0275nextContext().closed.emit("click")})("@transformMenu.start",function(be){return c.\u0275\u0275restoreView(ue),c.\u0275\u0275nextContext()._onAnimationStart(be)})("@transformMenu.done",function(be){return c.\u0275\u0275restoreView(ue),c.\u0275\u0275nextContext()._onAnimationDone(be)}),c.\u0275\u0275elementStart(1,"div",1),c.\u0275\u0275projection(2),c.\u0275\u0275elementEnd(),c.\u0275\u0275elementEnd()}if(2&ae){const ue=c.\u0275\u0275nextContext();c.\u0275\u0275property("id",ue.panelId)("ngClass",ue._classList)("@transformMenu",ue._panelAnimationState),c.\u0275\u0275attribute("aria-label",ue.ariaLabel||null)("aria-labelledby",ue.ariaLabelledby||null)("aria-describedby",ue.ariaDescribedby||null)}}const Pe={transformMenu:(0,fe.X$)("transformMenu",[(0,fe.SB)("void",(0,fe.oB)({opacity:0,transform:"scale(0.8)"})),(0,fe.eR)("void => enter",(0,fe.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,fe.oB)({opacity:1,transform:"scale(1)"}))),(0,fe.eR)("* => void",(0,fe.jt)("100ms 25ms linear",(0,fe.oB)({opacity:0})))]),fadeInItems:(0,fe.X$)("fadeInItems",[(0,fe.SB)("showing",(0,fe.oB)({opacity:1})),(0,fe.eR)("void => *",[(0,fe.oB)({opacity:0}),(0,fe.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},J=Pe.fadeInItems,ce=Pe.transformMenu,Se=new c.InjectionToken("MatMenuContent");let re=(()=>{class ae{constructor(ue,Te,be,se,Ce,Ge,tt){this._template=ue,this._componentFactoryResolver=Te,this._appRef=be,this._injector=se,this._viewContainerRef=Ce,this._document=Ge,this._changeDetectorRef=tt,this._attached=new s.x}attach(ue={}){var Te;this._portal||(this._portal=new $.UE(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new $.u0(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));const be=this._template.elementRef.nativeElement;be.parentNode.insertBefore(this._outlet.outletElement,be),null===(Te=this._changeDetectorRef)||void 0===Te||Te.markForCheck(),this._portal.attach(this._outlet,ue),this._attached.next()}detach(){this._portal.isAttached&&this._portal.detach()}ngOnDestroy(){this._outlet&&this._outlet.dispose()}}return ae.\u0275fac=function(ue){return new(ue||ae)(c.\u0275\u0275directiveInject(c.TemplateRef),c.\u0275\u0275directiveInject(c.ComponentFactoryResolver),c.\u0275\u0275directiveInject(c.ApplicationRef),c.\u0275\u0275directiveInject(c.Injector),c.\u0275\u0275directiveInject(c.ViewContainerRef),c.\u0275\u0275directiveInject(ie.DOCUMENT),c.\u0275\u0275directiveInject(c.ChangeDetectorRef))},ae.\u0275dir=c.\u0275\u0275defineDirective({type:ae}),ae})(),Ke=(()=>{class ae extends re{}return ae.\u0275fac=function(){let Oe;return function(Te){return(Oe||(Oe=c.\u0275\u0275getInheritedFactory(ae)))(Te||ae)}}(),ae.\u0275dir=c.\u0275\u0275defineDirective({type:ae,selectors:[["ng-template","matMenuContent",""]],features:[c.\u0275\u0275ProvidersFeature([{provide:Se,useExisting:ae}]),c.\u0275\u0275InheritDefinitionFeature]}),ae})();const dt=new c.InjectionToken("MAT_MENU_PANEL"),Et=(0,we.mixinDisableRipple)((0,we.mixinDisabled)(class{}));let ke=(()=>{class ae extends Et{constructor(ue,Te,be,se,Ce){var Ge;super(),this._elementRef=ue,this._focusMonitor=be,this._parentMenu=se,this._changeDetectorRef=Ce,this.role="menuitem",this._hovered=new s.x,this._focused=new s.x,this._highlighted=!1,this._triggersSubmenu=!1,null===(Ge=null==se?void 0:se.addItem)||void 0===Ge||Ge.call(se,this)}focus(ue,Te){this._focusMonitor&&ue?this._focusMonitor.focusVia(this._getHostElement(),ue,Te):this._getHostElement().focus(Te),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(ue){this.disabled&&(ue.preventDefault(),ue.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var ue;const Te=this._elementRef.nativeElement.cloneNode(!0),be=Te.querySelectorAll("mat-icon, .material-icons");for(let se=0;se<be.length;se++)be[se].remove();return(null===(ue=Te.textContent)||void 0===ue?void 0:ue.trim())||""}_setHighlighted(ue){var Te;this._highlighted=ue,null===(Te=this._changeDetectorRef)||void 0===Te||Te.markForCheck()}}return ae.\u0275fac=function(ue){return new(ue||ae)(c.\u0275\u0275directiveInject(c.ElementRef),c.\u0275\u0275directiveInject(ie.DOCUMENT),c.\u0275\u0275directiveInject(i.tE),c.\u0275\u0275directiveInject(dt,8),c.\u0275\u0275directiveInject(c.ChangeDetectorRef))},ae.\u0275cmp=c.\u0275\u0275defineComponent({type:ae,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(ue,Te){1&ue&&c.\u0275\u0275listener("click",function(se){return Te._checkDisabled(se)})("mouseenter",function(){return Te._handleMouseEnter()}),2&ue&&(c.\u0275\u0275attribute("role",Te.role)("tabindex",Te._getTabIndex())("aria-disabled",Te.disabled.toString())("disabled",Te.disabled||null),c.\u0275\u0275classProp("mat-menu-item",!0)("mat-menu-item-highlighted",Te._highlighted)("mat-menu-item-submenu-trigger",Te._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[c.\u0275\u0275InheritDefinitionFeature],attrs:Fe,ngContentSelectors:ot,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(ue,Te){1&ue&&(c.\u0275\u0275projectionDef(),c.\u0275\u0275projection(0),c.\u0275\u0275element(1,"div",0),c.\u0275\u0275template(2,Je,2,0,"svg",1)),2&ue&&(c.\u0275\u0275advance(1),c.\u0275\u0275property("matRippleDisabled",Te.disableRipple||Te.disabled)("matRippleTrigger",Te._getHostElement()),c.\u0275\u0275advance(1),c.\u0275\u0275property("ngIf",Te._triggersSubmenu))},directives:[we.MatRipple,ie.NgIf],encapsulation:2,changeDetection:0}),ae})();const Ze=new c.InjectionToken("mat-menu-default-options",{providedIn:"root",factory:function Z(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let me=0,Me=(()=>{class ae{constructor(ue,Te,be){this._elementRef=ue,this._ngZone=Te,this._defaultOptions=be,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new c.QueryList,this._tabSubscription=y.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 c.EventEmitter,this.close=this.closed,this.panelId="mat-menu-panel-"+me++}get xPosition(){return this._xPosition}set xPosition(ue){this._xPosition=ue,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(ue){this._yPosition=ue,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(ue){this._overlapTrigger=(0,u.Ig)(ue)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(ue){this._hasBackdrop=(0,u.Ig)(ue)}set panelClass(ue){const Te=this._previousPanelClass;Te&&Te.length&&Te.split(" ").forEach(be=>{this._classList[be]=!1}),this._previousPanelClass=ue,ue&&ue.length&&(ue.split(" ").forEach(be=>{this._classList[be]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(ue){this.panelClass=ue}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,h.O)(this._directDescendantItems),(0,A.w)(ue=>(0,E.T)(...ue.map(Te=>Te._focused)))).subscribe(ue=>this._keyManager.updateActiveItem(ue))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,h.O)(this._directDescendantItems),(0,A.w)(Te=>(0,E.T)(...Te.map(be=>be._hovered))))}addItem(ue){}removeItem(ue){}_handleKeydown(ue){const Te=ue.keyCode,be=this._keyManager;switch(Te){case g.hY:(0,g.Vb)(ue)||(ue.preventDefault(),this.closed.emit("keydown"));break;case g.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case g.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:(Te===g.LH||Te===g.JH)&&be.setFocusOrigin("keyboard"),be.onKeydown(ue)}}focusFirstItem(ue="program"){this.lazyContent?this._ngZone.onStable.pipe((0,M.q)(1)).subscribe(()=>this._focusFirstItem(ue)):this._focusFirstItem(ue)}_focusFirstItem(ue){const Te=this._keyManager;if(Te.setFocusOrigin(ue).setFirstItemActive(),!Te.activeItem&&this._directDescendantItems.length){let be=this._directDescendantItems.first._getHostElement().parentElement;for(;be;){if("menu"===be.getAttribute("role")){be.focus();break}be=be.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(ue){const Te=Math.min(this._baseElevation+ue,24),be=`${this._elevationPrefix}${Te}`,se=Object.keys(this._classList).find(Ce=>Ce.startsWith(this._elevationPrefix));(!se||se===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[be]=!0,this._previousElevation=be)}setPositionClasses(ue=this.xPosition,Te=this.yPosition){const be=this._classList;be["mat-menu-before"]="before"===ue,be["mat-menu-after"]="after"===ue,be["mat-menu-above"]="above"===Te,be["mat-menu-below"]="below"===Te}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(ue){this._animationDone.next(ue),this._isAnimating=!1}_onAnimationStart(ue){this._isAnimating=!0,"enter"===ue.toState&&0===this._keyManager.activeItemIndex&&(ue.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,h.O)(this._allItems)).subscribe(ue=>{this._directDescendantItems.reset(ue.filter(Te=>Te._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return ae.\u0275fac=function(ue){return new(ue||ae)(c.\u0275\u0275directiveInject(c.ElementRef),c.\u0275\u0275directiveInject(c.NgZone),c.\u0275\u0275directiveInject(Ze))},ae.\u0275dir=c.\u0275\u0275defineDirective({type:ae,contentQueries:function(ue,Te,be){if(1&ue&&(c.\u0275\u0275contentQuery(be,Se,5),c.\u0275\u0275contentQuery(be,ke,5),c.\u0275\u0275contentQuery(be,ke,4)),2&ue){let se;c.\u0275\u0275queryRefresh(se=c.\u0275\u0275loadQuery())&&(Te.lazyContent=se.first),c.\u0275\u0275queryRefresh(se=c.\u0275\u0275loadQuery())&&(Te._allItems=se),c.\u0275\u0275queryRefresh(se=c.\u0275\u0275loadQuery())&&(Te.items=se)}},viewQuery:function(ue,Te){if(1&ue&&c.\u0275\u0275viewQuery(c.TemplateRef,5),2&ue){let be;c.\u0275\u0275queryRefresh(be=c.\u0275\u0275loadQuery())&&(Te.templateRef=be.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"}}),ae})(),Re=(()=>{class ae extends Me{constructor(ue,Te,be){super(ue,Te,be),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return ae.\u0275fac=function(ue){return new(ue||ae)(c.\u0275\u0275directiveInject(c.ElementRef),c.\u0275\u0275directiveInject(c.NgZone),c.\u0275\u0275directiveInject(Ze))},ae.\u0275cmp=c.\u0275\u0275defineComponent({type:ae,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(ue,Te){2&ue&&c.\u0275\u0275attribute("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[c.\u0275\u0275ProvidersFeature([{provide:dt,useExisting:ae}]),c.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:ot,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(ue,Te){1&ue&&(c.\u0275\u0275projectionDef(),c.\u0275\u0275template(0,q,3,6,"ng-template"))},directives:[ie.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:[Pe.transformMenu,Pe.fadeInItems]},changeDetection:0}),ae})();const ve=new c.InjectionToken("mat-menu-scroll-strategy"),ht={provide:ve,deps:[pe.aV],useFactory:function Ye(ae){return()=>ae.scrollStrategies.reposition()}},Ot=(0,_e.i$)({passive:!0});let lt=(()=>{class ae{constructor(ue,Te,be,se,Ce,Ge,tt,ft){this._overlay=ue,this._element=Te,this._viewContainerRef=be,this._menuItemInstance=Ge,this._dir=tt,this._focusMonitor=ft,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=y.w0.EMPTY,this._hoverSubscription=y.w0.EMPTY,this._menuCloseSubscription=y.w0.EMPTY,this._handleTouchStart=pt=>{(0,i.yG)(pt)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new c.EventEmitter,this.onMenuOpen=this.menuOpened,this.menuClosed=new c.EventEmitter,this.onMenuClose=this.menuClosed,this._scrollStrategy=se,this._parentMaterialMenu=Ce instanceof Me?Ce:void 0,Te.nativeElement.addEventListener("touchstart",this._handleTouchStart,Ot),Ge&&(Ge._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(ue){this.menu=ue}get menu(){return this._menu}set menu(ue){ue!==this._menu&&(this._menu=ue,this._menuCloseSubscription.unsubscribe(),ue&&(this._menuCloseSubscription=ue.close.subscribe(Te=>{this._destroyMenu(Te),("click"===Te||"tab"===Te)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(Te)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Ot),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 ue=this._createOverlay(),Te=ue.getConfig();this._setPosition(Te.positionStrategy),Te.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,ue.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof Me&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(ue,Te){this._focusMonitor&&ue?this._focusMonitor.focusVia(this._element,ue,Te):this._element.nativeElement.focus(Te)}updatePosition(){var ue;null===(ue=this._overlayRef)||void 0===ue||ue.updatePosition()}_destroyMenu(ue){if(!this._overlayRef||!this.menuOpen)return;const Te=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===ue||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,Te instanceof Me?(Te._resetAnimation(),Te.lazyContent?Te._animationDone.pipe((0,b.h)(be=>"void"===be.toState),(0,M.q)(1),(0,R.R)(Te.lazyContent._attached)).subscribe({next:()=>Te.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),Te.lazyContent&&Te.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 ue=0,Te=this.menu.parentMenu;for(;Te;)ue++,Te=Te.parentMenu;this.menu.setElevation(ue)}}_setIsMenuOpen(ue){this._menuOpen=ue,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(ue)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const ue=this._getOverlayConfig();this._subscribeToPositions(ue.positionStrategy),this._overlayRef=this._overlay.create(ue),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(ue){this.menu.setPositionClasses&&ue.positionChanges.subscribe(Te=>{this.menu.setPositionClasses("start"===Te.connectionPair.overlayX?"after":"before","top"===Te.connectionPair.overlayY?"below":"above")})}_setPosition(ue){let[Te,be]="before"===this.menu.xPosition?["end","start"]:["start","end"],[se,Ce]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[Ge,tt]=[se,Ce],[ft,pt]=[Te,be],wt=0;this.triggersSubmenu()?(pt=Te="before"===this.menu.xPosition?"start":"end",be=ft="end"===Te?"start":"end",wt="bottom"===se?8:-8):this.menu.overlapTrigger||(Ge="top"===se?"bottom":"top",tt="top"===Ce?"bottom":"top"),ue.withPositions([{originX:Te,originY:Ge,overlayX:ft,overlayY:se,offsetY:wt},{originX:be,originY:Ge,overlayX:pt,overlayY:se,offsetY:wt},{originX:Te,originY:tt,overlayX:ft,overlayY:Ce,offsetY:-wt},{originX:be,originY:tt,overlayX:pt,overlayY:Ce,offsetY:-wt}])}_menuClosingActions(){const ue=this._overlayRef.backdropClick(),Te=this._overlayRef.detachments(),be=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,w.of)(),se=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,b.h)(Ce=>Ce!==this._menuItemInstance),(0,b.h)(()=>this._menuOpen)):(0,w.of)();return(0,E.T)(ue,be,se,Te)}_handleMousedown(ue){(0,i.X6)(ue)||(this._openedBy=0===ue.button?"mouse":void 0,this.triggersSubmenu()&&ue.preventDefault())}_handleKeydown(ue){const Te=ue.keyCode;(Te===g.K5||Te===g.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(Te===g.SV&&"ltr"===this.dir||Te===g.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(ue){this.triggersSubmenu()?(ue.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,b.h)(ue=>ue===this._menuItemInstance&&!ue.disabled),(0,V.g)(0,I.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Me&&this.menu._isAnimating?this.menu._animationDone.pipe((0,M.q)(1),(0,V.g)(0,I.E),(0,R.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new $.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}return ae.\u0275fac=function(ue){return new(ue||ae)(c.\u0275\u0275directiveInject(pe.aV),c.\u0275\u0275directiveInject(c.ElementRef),c.\u0275\u0275directiveInject(c.ViewContainerRef),c.\u0275\u0275directiveInject(ve),c.\u0275\u0275directiveInject(dt,8),c.\u0275\u0275directiveInject(ke,10),c.\u0275\u0275directiveInject(le.Is,8),c.\u0275\u0275directiveInject(i.tE))},ae.\u0275dir=c.\u0275\u0275defineDirective({type:ae,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(ue,Te){1&ue&&c.\u0275\u0275listener("click",function(se){return Te._handleClick(se)})("mousedown",function(se){return Te._handleMousedown(se)})("keydown",function(se){return Te._handleKeydown(se)}),2&ue&&c.\u0275\u0275attribute("aria-expanded",Te.menuOpen||null)("aria-controls",Te.menuOpen?Te.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"}}),ae})(),Qe=(()=>{class ae extends lt{}return ae.\u0275fac=function(){let Oe;return function(Te){return(Oe||(Oe=c.\u0275\u0275getInheritedFactory(ae)))(Te||ae)}}(),ae.\u0275dir=c.\u0275\u0275defineDirective({type:ae,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[c.\u0275\u0275InheritDefinitionFeature]}),ae})(),N=(()=>{class ae{}return ae.\u0275fac=function(ue){return new(ue||ae)},ae.\u0275mod=c.\u0275\u0275defineNgModule({type:ae}),ae.\u0275inj=c.\u0275\u0275defineInjector({providers:[ht],imports:[[ie.CommonModule,we.MatCommonModule,we.MatRippleModule,pe.U8],De.ZD,we.MatCommonModule]}),ae})()},2075:(Le,_,l)=>{"use strict";l.r(_),l.d(_,{MatCell:()=>Ve,MatCellDef:()=>K,MatColumnDef:()=>zt,MatFooterCell:()=>Be,MatFooterCellDef:()=>Dt,MatFooterRow:()=>kt,MatFooterRowDef:()=>$e,MatHeaderCell:()=>pn,MatHeaderCellDef:()=>qe,MatHeaderRow:()=>Lt,MatHeaderRowDef:()=>he,MatNoDataRow:()=>Dn,MatRecycleRows:()=>C,MatRow:()=>hn,MatRowDef:()=>ut,MatTable:()=>T,MatTableDataSource:()=>Bn,MatTableModule:()=>Xn,MatTextColumn:()=>Hn,_MatTableDataSource:()=>zn});var i=l(5e3),u=l(3191),g=l(449),c=l(9808),s=l(6758),y=l(188),E=l(1135),w=l(5191),I=l(9646),h=l(2722),A=l(5698),M=l(226),b=l(925),R=l(9071);const V=[[["caption"]],[["colgroup"],["col"]]],fe=["caption","colgroup, col"];function $(H,Ie){if(1&H&&(i.\u0275\u0275elementStart(0,"th",3),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&H){const W=i.\u0275\u0275nextContext();i.\u0275\u0275styleProp("text-align",W.justify),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",W.headerText," ")}}function ie(H,Ie){if(1&H&&(i.\u0275\u0275elementStart(0,"td",4),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&H){const W=Ie.$implicit,Ae=i.\u0275\u0275nextContext();i.\u0275\u0275styleProp("text-align",Ae.justify),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",Ae.dataAccessor(W,Ae.name)," ")}}function we(H){return class extends H{constructor(...Ie){super(...Ie),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(Ie){const W=this._sticky;this._sticky=(0,u.Ig)(Ie),this._hasStickyChanged=W!==this._sticky}hasStickyChanged(){const Ie=this._hasStickyChanged;return this._hasStickyChanged=!1,Ie}resetStickyChanged(){this._hasStickyChanged=!1}}}const pe=new i.InjectionToken("CDK_TABLE"),_e=new i.InjectionToken("text-column-options");let le=(()=>{class H{constructor(W){this.template=W}}return H.\u0275fac=function(W){return new(W||H)(i.\u0275\u0275directiveInject(i.TemplateRef))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","cdkCellDef",""]]}),H})(),De=(()=>{class H{constructor(W){this.template=W}}return H.\u0275fac=function(W){return new(W||H)(i.\u0275\u0275directiveInject(i.TemplateRef))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","cdkHeaderCellDef",""]]}),H})(),Fe=(()=>{class H{constructor(W){this.template=W}}return H.\u0275fac=function(W){return new(W||H)(i.\u0275\u0275directiveInject(i.TemplateRef))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","cdkFooterCellDef",""]]}),H})();class Je{}const ot=we(Je);let q=(()=>{class H extends ot{constructor(W){super(),this._table=W,this._stickyEnd=!1}get name(){return this._name}set name(W){this._setNameInput(W)}get stickyEnd(){return this._stickyEnd}set stickyEnd(W){const Ae=this._stickyEnd;this._stickyEnd=(0,u.Ig)(W),this._hasStickyChanged=Ae!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(W){W&&(this._name=W,this.cssClassFriendlyName=W.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return H.\u0275fac=function(W){return new(W||H)(i.\u0275\u0275directiveInject(pe,8))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","cdkColumnDef",""]],contentQueries:function(W,Ae,Xe){if(1&W&&(i.\u0275\u0275contentQuery(Xe,le,5),i.\u0275\u0275contentQuery(Xe,De,5),i.\u0275\u0275contentQuery(Xe,Fe,5)),2&W){let st;i.\u0275\u0275queryRefresh(st=i.\u0275\u0275loadQuery())&&(Ae.cell=st.first),i.\u0275\u0275queryRefresh(st=i.\u0275\u0275loadQuery())&&(Ae.headerCell=st.first),i.\u0275\u0275queryRefresh(st=i.\u0275\u0275loadQuery())&&(Ae.footerCell=st.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 Pe{constructor(Ie,W){W.nativeElement.classList.add(...Ie._columnCssClassName)}}let J=(()=>{class H extends Pe{constructor(W,Ae){super(W,Ae)}}return H.\u0275fac=function(W){return new(W||H)(i.\u0275\u0275directiveInject(q),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})(),ce=(()=>{class H extends Pe{constructor(W,Ae){var Xe;if(super(W,Ae),1===(null===(Xe=W._table)||void 0===Xe?void 0:Xe._elementRef.nativeElement.nodeType)){const st=W._table._elementRef.nativeElement.getAttribute("role");Ae.nativeElement.setAttribute("role","grid"===st||"treegrid"===st?"gridcell":"cell")}}}return H.\u0275fac=function(W){return new(W||H)(i.\u0275\u0275directiveInject(q),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})(),Se=(()=>{class H extends Pe{constructor(W,Ae){var Xe;if(super(W,Ae),1===(null===(Xe=W._table)||void 0===Xe?void 0:Xe._elementRef.nativeElement.nodeType)){const st=W._table._elementRef.nativeElement.getAttribute("role");Ae.nativeElement.setAttribute("role","grid"===st||"treegrid"===st?"gridcell":"cell")}}}return H.\u0275fac=function(W){return new(W||H)(i.\u0275\u0275directiveInject(q),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 re{constructor(){this.tasks=[],this.endTasks=[]}}const Ke=new i.InjectionToken("_COALESCED_STYLE_SCHEDULER");let ge=(()=>{class H{constructor(W){this._ngZone=W,this._currentSchedule=null,this._destroyed=new s.x}schedule(W){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(W)}scheduleEnd(W){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(W)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new re,this._getScheduleObservable().pipe((0,h.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const W=this._currentSchedule;this._currentSchedule=new re;for(const Ae of W.tasks)Ae();for(const Ae of W.endTasks)Ae()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,y.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,A.q)(1))}}return H.\u0275fac=function(W){return new(W||H)(i.\u0275\u0275inject(i.NgZone))},H.\u0275prov=i.\u0275\u0275defineInjectable({token:H,factory:H.\u0275fac}),H})(),ye=(()=>{class H{constructor(W,Ae){this.template=W,this._differs=Ae}ngOnChanges(W){if(!this._columnsDiffer){const Ae=W.columns&&W.columns.currentValue||[];this._columnsDiffer=this._differs.find(Ae).create(),this._columnsDiffer.diff(Ae)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(W){return this instanceof Et?W.headerCell.template:this instanceof Z?W.footerCell.template:W.cell.template}}return H.\u0275fac=function(W){return new(W||H)(i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(i.IterableDiffers))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,features:[i.\u0275\u0275NgOnChangesFeature]}),H})();class He extends ye{}const dt=we(He);let Et=(()=>{class H extends dt{constructor(W,Ae,Xe){super(W,Ae),this._table=Xe}ngOnChanges(W){super.ngOnChanges(W)}}return H.\u0275fac=function(W){return new(W||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 ke extends ye{}const Ze=we(ke);let Z=(()=>{class H extends Ze{constructor(W,Ae,Xe){super(W,Ae),this._table=Xe}ngOnChanges(W){super.ngOnChanges(W)}}return H.\u0275fac=function(W){return new(W||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})(),me=(()=>{class H extends ye{constructor(W,Ae,Xe){super(W,Ae),this._table=Xe}}return H.\u0275fac=function(W){return new(W||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})(),Me=(()=>{class H{constructor(W){this._viewContainer=W,H.mostRecentCellOutlet=this}ngOnDestroy(){H.mostRecentCellOutlet===this&&(H.mostRecentCellOutlet=null)}}return H.mostRecentCellOutlet=null,H.\u0275fac=function(W){return new(W||H)(i.\u0275\u0275directiveInject(i.ViewContainerRef))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","cdkCellOutlet",""]]}),H})(),Re=(()=>{class H{}return H.\u0275fac=function(W){return new(W||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(W,Ae){1&W&&i.\u0275\u0275elementContainer(0,0)},directives:[Me],encapsulation:2}),H})(),ve=(()=>{class H{}return H.\u0275fac=function(W){return new(W||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(W,Ae){1&W&&i.\u0275\u0275elementContainer(0,0)},directives:[Me],encapsulation:2}),H})(),Ye=(()=>{class H{}return H.\u0275fac=function(W){return new(W||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(W,Ae){1&W&&i.\u0275\u0275elementContainer(0,0)},directives:[Me],encapsulation:2}),H})(),ht=(()=>{class H{constructor(W){this.templateRef=W,this._contentClassName="cdk-no-data-row"}}return H.\u0275fac=function(W){return new(W||H)(i.\u0275\u0275directiveInject(i.TemplateRef))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["ng-template","cdkNoDataRow",""]]}),H})();const bt=["top","bottom","left","right"];class Ot{constructor(Ie,W,Ae,Xe,st=!0,St=!0,Nt){this._isNativeHtmlTable=Ie,this._stickCellCss=W,this.direction=Ae,this._coalescedStyleScheduler=Xe,this._isBrowser=st,this._needsPositionStickyOnElement=St,this._positionListener=Nt,this._cachedCellWidths=[],this._borderCellCss={top:`${W}-border-elem-top`,bottom:`${W}-border-elem-bottom`,left:`${W}-border-elem-left`,right:`${W}-border-elem-right`}}clearStickyPositioning(Ie,W){const Ae=[];for(const Xe of Ie)if(Xe.nodeType===Xe.ELEMENT_NODE){Ae.push(Xe);for(let st=0;st<Xe.children.length;st++)Ae.push(Xe.children[st])}this._coalescedStyleScheduler.schedule(()=>{for(const Xe of Ae)this._removeStickyStyle(Xe,W)})}updateStickyColumns(Ie,W,Ae,Xe=!0){if(!Ie.length||!this._isBrowser||!W.some(ln=>ln)&&!Ae.some(ln=>ln))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const st=Ie[0],St=st.children.length,Nt=this._getCellWidths(st,Xe),Jt=this._getStickyStartColumnPositions(Nt,W),vn=this._getStickyEndColumnPositions(Nt,Ae),jt=W.lastIndexOf(!0),On=Ae.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const ln="rtl"===this.direction,$n=ln?"right":"left",Un=ln?"left":"right";for(const Sn of Ie)for(let kn=0;kn<St;kn++){const ai=Sn.children[kn];W[kn]&&this._addStickyStyle(ai,$n,Jt[kn],kn===jt),Ae[kn]&&this._addStickyStyle(ai,Un,vn[kn],kn===On)}this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:-1===jt?[]:Nt.slice(0,jt+1).map((Sn,kn)=>W[kn]?Sn:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===On?[]:Nt.slice(On).map((Sn,kn)=>Ae[kn+On]?Sn:null).reverse()}))})}stickRows(Ie,W,Ae){if(!this._isBrowser)return;const Xe="bottom"===Ae?Ie.slice().reverse():Ie,st="bottom"===Ae?W.slice().reverse():W,St=[],Nt=[],Jt=[];for(let jt=0,On=0;jt<Xe.length;jt++){if(!st[jt])continue;St[jt]=On;const ln=Xe[jt];Jt[jt]=this._isNativeHtmlTable?Array.from(ln.children):[ln];const $n=ln.getBoundingClientRect().height;On+=$n,Nt[jt]=$n}const vn=st.lastIndexOf(!0);this._coalescedStyleScheduler.schedule(()=>{var jt,On;for(let ln=0;ln<Xe.length;ln++){if(!st[ln])continue;const $n=St[ln],Un=ln===vn;for(const Sn of Jt[ln])this._addStickyStyle(Sn,Ae,$n,Un)}"top"===Ae?null===(jt=this._positionListener)||void 0===jt||jt.stickyHeaderRowsUpdated({sizes:Nt,offsets:St,elements:Jt}):null===(On=this._positionListener)||void 0===On||On.stickyFooterRowsUpdated({sizes:Nt,offsets:St,elements:Jt})})}updateStickyFooterContainer(Ie,W){if(!this._isNativeHtmlTable)return;const Ae=Ie.querySelector("tfoot");this._coalescedStyleScheduler.schedule(()=>{W.some(Xe=>!Xe)?this._removeStickyStyle(Ae,["bottom"]):this._addStickyStyle(Ae,"bottom",0,!1)})}_removeStickyStyle(Ie,W){for(const Xe of W)Ie.style[Xe]="",Ie.classList.remove(this._borderCellCss[Xe]);bt.some(Xe=>-1===W.indexOf(Xe)&&Ie.style[Xe])?Ie.style.zIndex=this._getCalculatedZIndex(Ie):(Ie.style.zIndex="",this._needsPositionStickyOnElement&&(Ie.style.position=""),Ie.classList.remove(this._stickCellCss))}_addStickyStyle(Ie,W,Ae,Xe){Ie.classList.add(this._stickCellCss),Xe&&Ie.classList.add(this._borderCellCss[W]),Ie.style[W]=`${Ae}px`,Ie.style.zIndex=this._getCalculatedZIndex(Ie),this._needsPositionStickyOnElement&&(Ie.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(Ie){const W={top:100,bottom:10,left:1,right:1};let Ae=0;for(const Xe of bt)Ie.style[Xe]&&(Ae+=W[Xe]);return Ae?`${Ae}`:""}_getCellWidths(Ie,W=!0){if(!W&&this._cachedCellWidths.length)return this._cachedCellWidths;const Ae=[],Xe=Ie.children;for(let st=0;st<Xe.length;st++)Ae.push(Xe[st].getBoundingClientRect().width);return this._cachedCellWidths=Ae,Ae}_getStickyStartColumnPositions(Ie,W){const Ae=[];let Xe=0;for(let st=0;st<Ie.length;st++)W[st]&&(Ae[st]=Xe,Xe+=Ie[st]);return Ae}_getStickyEndColumnPositions(Ie,W){const Ae=[];let Xe=0;for(let st=Ie.length;st>0;st--)W[st]&&(Ae[st]=Xe,Xe+=Ie[st]);return Ae}}const se=new i.InjectionToken("CDK_SPL");let Ge=(()=>{class H{constructor(W,Ae){this.viewContainer=W,this.elementRef=Ae}}return H.\u0275fac=function(W){return new(W||H)(i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.ElementRef))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","rowOutlet",""]]}),H})(),tt=(()=>{class H{constructor(W,Ae){this.viewContainer=W,this.elementRef=Ae}}return H.\u0275fac=function(W){return new(W||H)(i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.ElementRef))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","headerRowOutlet",""]]}),H})(),ft=(()=>{class H{constructor(W,Ae){this.viewContainer=W,this.elementRef=Ae}}return H.\u0275fac=function(W){return new(W||H)(i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.ElementRef))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","footerRowOutlet",""]]}),H})(),pt=(()=>{class H{constructor(W,Ae){this.viewContainer=W,this.elementRef=Ae}}return H.\u0275fac=function(W){return new(W||H)(i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.ElementRef))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","noDataRowOutlet",""]]}),H})(),en=(()=>{class H{constructor(W,Ae,Xe,st,St,Nt,Jt,vn,jt,On,ln,$n){this._differs=W,this._changeDetectorRef=Ae,this._elementRef=Xe,this._dir=St,this._platform=Jt,this._viewRepeater=vn,this._coalescedStyleScheduler=jt,this._viewportRuler=On,this._stickyPositioningListener=ln,this._ngZone=$n,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 E.X({start:0,end:Number.MAX_VALUE}),st||this._elementRef.nativeElement.setAttribute("role","table"),this._document=Nt,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(W){this._trackByFn=W}get dataSource(){return this._dataSource}set dataSource(W){this._dataSource!==W&&this._switchDataSource(W)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(W){this._multiTemplateDataRows=(0,u.Ig)(W),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(W){this._fixedLayout=(0,u.Ig)(W),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((W,Ae)=>this.trackBy?this.trackBy(Ae.dataIndex,Ae.data):Ae),this._viewportRuler.change().pipe((0,h.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,g.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const W=this._dataDiffer.diff(this._renderRows);if(!W)return this._updateNoDataRow(),void this.contentChanged.next();const Ae=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(W,Ae,(Xe,st,St)=>this._getEmbeddedViewArgs(Xe.item,St),Xe=>Xe.item.data,Xe=>{1===Xe.operation&&Xe.context&&this._renderCellTemplateForItem(Xe.record.item.rowDef,Xe.context)}),this._updateRowIndexContext(),W.forEachIdentityChange(Xe=>{Ae.get(Xe.currentIndex).context.$implicit=Xe.item.data}),this._updateNoDataRow(),this._ngZone&&i.NgZone.isInAngularZone()?this._ngZone.onStable.pipe((0,A.q)(1),(0,h.R)(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(W){this._customColumnDefs.add(W)}removeColumnDef(W){this._customColumnDefs.delete(W)}addRowDef(W){this._customRowDefs.add(W)}removeRowDef(W){this._customRowDefs.delete(W)}addHeaderRowDef(W){this._customHeaderRowDefs.add(W),this._headerRowDefChanged=!0}removeHeaderRowDef(W){this._customHeaderRowDefs.delete(W),this._headerRowDefChanged=!0}addFooterRowDef(W){this._customFooterRowDefs.add(W),this._footerRowDefChanged=!0}removeFooterRowDef(W){this._customFooterRowDefs.delete(W),this._footerRowDefChanged=!0}setNoDataRow(W){this._customNoDataRow=W}updateStickyHeaderRowStyles(){const W=this._getRenderedRows(this._headerRowOutlet),Xe=this._elementRef.nativeElement.querySelector("thead");Xe&&(Xe.style.display=W.length?"":"none");const st=this._headerRowDefs.map(St=>St.sticky);this._stickyStyler.clearStickyPositioning(W,["top"]),this._stickyStyler.stickRows(W,st,"top"),this._headerRowDefs.forEach(St=>St.resetStickyChanged())}updateStickyFooterRowStyles(){const W=this._getRenderedRows(this._footerRowOutlet),Xe=this._elementRef.nativeElement.querySelector("tfoot");Xe&&(Xe.style.display=W.length?"":"none");const st=this._footerRowDefs.map(St=>St.sticky);this._stickyStyler.clearStickyPositioning(W,["bottom"]),this._stickyStyler.stickRows(W,st,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,st),this._footerRowDefs.forEach(St=>St.resetStickyChanged())}updateStickyColumnStyles(){const W=this._getRenderedRows(this._headerRowOutlet),Ae=this._getRenderedRows(this._rowOutlet),Xe=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...W,...Ae,...Xe],["left","right"]),this._stickyColumnStylesNeedReset=!1),W.forEach((st,St)=>{this._addStickyColumnStyles([st],this._headerRowDefs[St])}),this._rowDefs.forEach(st=>{const St=[];for(let Nt=0;Nt<Ae.length;Nt++)this._renderRows[Nt].rowDef===st&&St.push(Ae[Nt]);this._addStickyColumnStyles(St,st)}),Xe.forEach((st,St)=>{this._addStickyColumnStyles([st],this._footerRowDefs[St])}),Array.from(this._columnDefsByName.values()).forEach(st=>st.resetStickyChanged())}_getAllRenderRows(){const W=[],Ae=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let Xe=0;Xe<this._data.length;Xe++){let st=this._data[Xe];const St=this._getRenderRowsForData(st,Xe,Ae.get(st));this._cachedRenderRowsMap.has(st)||this._cachedRenderRowsMap.set(st,new WeakMap);for(let Nt=0;Nt<St.length;Nt++){let Jt=St[Nt];const vn=this._cachedRenderRowsMap.get(Jt.data);vn.has(Jt.rowDef)?vn.get(Jt.rowDef).push(Jt):vn.set(Jt.rowDef,[Jt]),W.push(Jt)}}return W}_getRenderRowsForData(W,Ae,Xe){return this._getRowDefs(W,Ae).map(St=>{const Nt=Xe&&Xe.has(St)?Xe.get(St):[];if(Nt.length){const Jt=Nt.shift();return Jt.dataIndex=Ae,Jt}return{data:W,rowDef:St,dataIndex:Ae}})}_cacheColumnDefs(){this._columnDefsByName.clear(),Bt(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(Ae=>{this._columnDefsByName.has(Ae.name),this._columnDefsByName.set(Ae.name,Ae)})}_cacheRowDefs(){this._headerRowDefs=Bt(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Bt(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Bt(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const W=this._rowDefs.filter(Ae=>!Ae.when);this._defaultRowDef=W[0]}_renderUpdatedColumns(){const W=(St,Nt)=>St||!!Nt.getColumnsDiff(),Ae=this._rowDefs.reduce(W,!1);Ae&&this._forceRenderDataRows();const Xe=this._headerRowDefs.reduce(W,!1);Xe&&this._forceRenderHeaderRows();const st=this._footerRowDefs.reduce(W,!1);return st&&this._forceRenderFooterRows(),Ae||Xe||st}_switchDataSource(W){this._data=[],(0,g.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),W||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=W}_observeRenderChanges(){if(!this.dataSource)return;let W;(0,g.Z9)(this.dataSource)?W=this.dataSource.connect(this):(0,w.b)(this.dataSource)?W=this.dataSource:Array.isArray(this.dataSource)&&(W=(0,I.of)(this.dataSource)),this._renderChangeSubscription=W.pipe((0,h.R)(this._onDestroy)).subscribe(Ae=>{this._data=Ae||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((W,Ae)=>this._renderRow(this._headerRowOutlet,W,Ae)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((W,Ae)=>this._renderRow(this._footerRowOutlet,W,Ae)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(W,Ae){const Xe=Array.from(Ae.columns||[]).map(Nt=>this._columnDefsByName.get(Nt)),st=Xe.map(Nt=>Nt.sticky),St=Xe.map(Nt=>Nt.stickyEnd);this._stickyStyler.updateStickyColumns(W,st,St,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(W){const Ae=[];for(let Xe=0;Xe<W.viewContainer.length;Xe++){const st=W.viewContainer.get(Xe);Ae.push(st.rootNodes[0])}return Ae}_getRowDefs(W,Ae){if(1==this._rowDefs.length)return[this._rowDefs[0]];let Xe=[];if(this.multiTemplateDataRows)Xe=this._rowDefs.filter(st=>!st.when||st.when(Ae,W));else{let st=this._rowDefs.find(St=>St.when&&St.when(Ae,W))||this._defaultRowDef;st&&Xe.push(st)}return Xe}_getEmbeddedViewArgs(W,Ae){return{templateRef:W.rowDef.template,context:{$implicit:W.data},index:Ae}}_renderRow(W,Ae,Xe,st={}){const St=W.viewContainer.createEmbeddedView(Ae.template,st,Xe);return this._renderCellTemplateForItem(Ae,st),St}_renderCellTemplateForItem(W,Ae){for(let Xe of this._getCellTemplates(W))Me.mostRecentCellOutlet&&Me.mostRecentCellOutlet._viewContainer.createEmbeddedView(Xe,Ae);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const W=this._rowOutlet.viewContainer;for(let Ae=0,Xe=W.length;Ae<Xe;Ae++){const St=W.get(Ae).context;St.count=Xe,St.first=0===Ae,St.last=Ae===Xe-1,St.even=Ae%2==0,St.odd=!St.even,this.multiTemplateDataRows?(St.dataIndex=this._renderRows[Ae].dataIndex,St.renderIndex=Ae):St.index=this._renderRows[Ae].dataIndex}}_getCellTemplates(W){return W&&W.columns?Array.from(W.columns,Ae=>{const Xe=this._columnDefsByName.get(Ae);return W.extractCellTemplate(Xe)}):[]}_applyNativeTableSections(){const W=this._document.createDocumentFragment(),Ae=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const Xe of Ae){const st=this._document.createElement(Xe.tag);st.setAttribute("role","rowgroup");for(const St of Xe.outlets)st.appendChild(St.elementRef.nativeElement);W.appendChild(st)}this._elementRef.nativeElement.appendChild(W)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const W=(Ae,Xe)=>Ae||Xe.hasStickyChanged();this._headerRowDefs.reduce(W,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(W,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(W,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new Ot(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,I.of)()).pipe((0,h.R)(this._onDestroy)).subscribe(Ae=>{this._stickyStyler.direction=Ae,this.updateStickyColumnStyles()})}_getOwnDefs(W){return W.filter(Ae=>!Ae._table||Ae._table===this)}_updateNoDataRow(){const W=this._customNoDataRow||this._noDataRow;if(!W)return;const Ae=0===this._rowOutlet.viewContainer.length;if(Ae===this._isShowingNoDataRow)return;const Xe=this._noDataRowOutlet.viewContainer;if(Ae){const st=Xe.createEmbeddedView(W.templateRef),St=st.rootNodes[0];1===st.rootNodes.length&&(null==St?void 0:St.nodeType)===this._document.ELEMENT_NODE&&(St.setAttribute("role","row"),St.classList.add(W._contentClassName))}else Xe.clear();this._isShowingNoDataRow=Ae}}return H.\u0275fac=function(W){return new(W||H)(i.\u0275\u0275directiveInject(i.IterableDiffers),i.\u0275\u0275directiveInject(i.ChangeDetectorRef),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275injectAttribute("role"),i.\u0275\u0275directiveInject(M.Is,8),i.\u0275\u0275directiveInject(c.DOCUMENT),i.\u0275\u0275directiveInject(b.t4),i.\u0275\u0275directiveInject(g.k),i.\u0275\u0275directiveInject(Ke),i.\u0275\u0275directiveInject(R.rL),i.\u0275\u0275directiveInject(se,12),i.\u0275\u0275directiveInject(i.NgZone,8))},H.\u0275cmp=i.\u0275\u0275defineComponent({type:H,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(W,Ae,Xe){if(1&W&&(i.\u0275\u0275contentQuery(Xe,ht,5),i.\u0275\u0275contentQuery(Xe,q,5),i.\u0275\u0275contentQuery(Xe,me,5),i.\u0275\u0275contentQuery(Xe,Et,5),i.\u0275\u0275contentQuery(Xe,Z,5)),2&W){let st;i.\u0275\u0275queryRefresh(st=i.\u0275\u0275loadQuery())&&(Ae._noDataRow=st.first),i.\u0275\u0275queryRefresh(st=i.\u0275\u0275loadQuery())&&(Ae._contentColumnDefs=st),i.\u0275\u0275queryRefresh(st=i.\u0275\u0275loadQuery())&&(Ae._contentRowDefs=st),i.\u0275\u0275queryRefresh(st=i.\u0275\u0275loadQuery())&&(Ae._contentHeaderRowDefs=st),i.\u0275\u0275queryRefresh(st=i.\u0275\u0275loadQuery())&&(Ae._contentFooterRowDefs=st)}},viewQuery:function(W,Ae){if(1&W&&(i.\u0275\u0275viewQuery(Ge,7),i.\u0275\u0275viewQuery(tt,7),i.\u0275\u0275viewQuery(ft,7),i.\u0275\u0275viewQuery(pt,7)),2&W){let Xe;i.\u0275\u0275queryRefresh(Xe=i.\u0275\u0275loadQuery())&&(Ae._rowOutlet=Xe.first),i.\u0275\u0275queryRefresh(Xe=i.\u0275\u0275loadQuery())&&(Ae._headerRowOutlet=Xe.first),i.\u0275\u0275queryRefresh(Xe=i.\u0275\u0275loadQuery())&&(Ae._footerRowOutlet=Xe.first),i.\u0275\u0275queryRefresh(Xe=i.\u0275\u0275loadQuery())&&(Ae._noDataRowOutlet=Xe.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(W,Ae){2&W&&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:g.k,useClass:g.yy},{provide:Ke,useClass:ge},{provide:se,useValue:null}])],ngContentSelectors:fe,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(W,Ae){1&W&&(i.\u0275\u0275projectionDef(V),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:[tt,Ge,pt,ft],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),H})();function Bt(H,Ie){return H.concat(Array.from(Ie))}let En=(()=>{class H{constructor(W,Ae){this._table=W,this._options=Ae,this.justify="start",this._options=Ae||{}}get name(){return this._name}set name(W){this._name=W,this._syncColumnDefName()}ngOnInit(){this._syncColumnDefName(),void 0===this.headerText&&(this.headerText=this._createDefaultHeaderText()),this.dataAccessor||(this.dataAccessor=this._options.defaultDataAccessor||((W,Ae)=>W[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 W=this.name;return this._options&&this._options.defaultHeaderTextTransform?this._options.defaultHeaderTextTransform(W):W[0].toUpperCase()+W.slice(1)}_syncColumnDefName(){this.columnDef&&(this.columnDef.name=this.name)}}return H.\u0275fac=function(W){return new(W||H)(i.\u0275\u0275directiveInject(en,8),i.\u0275\u0275directiveInject(_e,8))},H.\u0275cmp=i.\u0275\u0275defineComponent({type:H,selectors:[["cdk-text-column"]],viewQuery:function(W,Ae){if(1&W&&(i.\u0275\u0275viewQuery(q,7),i.\u0275\u0275viewQuery(le,7),i.\u0275\u0275viewQuery(De,7)),2&W){let Xe;i.\u0275\u0275queryRefresh(Xe=i.\u0275\u0275loadQuery())&&(Ae.columnDef=Xe.first),i.\u0275\u0275queryRefresh(Xe=i.\u0275\u0275loadQuery())&&(Ae.cell=Xe.first),i.\u0275\u0275queryRefresh(Xe=i.\u0275\u0275loadQuery())&&(Ae.headerCell=Xe.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(W,Ae){1&W&&(i.\u0275\u0275elementContainerStart(0,0),i.\u0275\u0275template(1,$,2,3,"th",1),i.\u0275\u0275template(2,ie,2,3,"td",2),i.\u0275\u0275elementContainerEnd())},directives:[q,De,le,J,Se],encapsulation:2}),H})(),Wt=(()=>{class H{}return H.\u0275fac=function(W){return new(W||H)},H.\u0275mod=i.\u0275\u0275defineNgModule({type:H}),H.\u0275inj=i.\u0275\u0275defineInjector({imports:[[R.Cl]]}),H})();var Mt=l(508),bn=l(6451),Qt=l(9841),on=l(4004);const yn=[[["caption"]],[["colgroup"],["col"]]],oe=["caption","colgroup, col"];function z(H,Ie){if(1&H&&(i.\u0275\u0275elementStart(0,"th",3),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&H){const W=i.\u0275\u0275nextContext();i.\u0275\u0275styleProp("text-align",W.justify),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",W.headerText," ")}}function m(H,Ie){if(1&H&&(i.\u0275\u0275elementStart(0,"td",4),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&H){const W=Ie.$implicit,Ae=i.\u0275\u0275nextContext();i.\u0275\u0275styleProp("text-align",Ae.justify),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",Ae.dataAccessor(W,Ae.name)," ")}}let C=(()=>{class H{}return H.\u0275fac=function(W){return new(W||H)},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["mat-table","recycleRows",""],["table","mat-table","","recycleRows",""]],features:[i.\u0275\u0275ProvidersFeature([{provide:g.k,useClass:g.eX}])]}),H})(),T=(()=>{class H extends en{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return H.\u0275fac=function(){let Ie;return function(Ae){return(Ie||(Ie=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(W,Ae){2&W&&i.\u0275\u0275classProp("mat-table-fixed-layout",Ae.fixedLayout)},exportAs:["matTable"],features:[i.\u0275\u0275ProvidersFeature([{provide:g.k,useClass:g.yy},{provide:en,useExisting:H},{provide:pe,useExisting:H},{provide:Ke,useClass:ge},{provide:se,useValue:null}]),i.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:oe,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(W,Ae){1&W&&(i.\u0275\u0275projectionDef(yn),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:[tt,Ge,pt,ft],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})(),K=(()=>{class H extends le{}return H.\u0275fac=function(){let Ie;return function(Ae){return(Ie||(Ie=i.\u0275\u0275getInheritedFactory(H)))(Ae||H)}}(),H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","matCellDef",""]],features:[i.\u0275\u0275ProvidersFeature([{provide:le,useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature]}),H})(),qe=(()=>{class H extends De{}return H.\u0275fac=function(){let Ie;return function(Ae){return(Ie||(Ie=i.\u0275\u0275getInheritedFactory(H)))(Ae||H)}}(),H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","matHeaderCellDef",""]],features:[i.\u0275\u0275ProvidersFeature([{provide:De,useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature]}),H})(),Dt=(()=>{class H extends Fe{}return H.\u0275fac=function(){let Ie;return function(Ae){return(Ie||(Ie=i.\u0275\u0275getInheritedFactory(H)))(Ae||H)}}(),H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","matFooterCellDef",""]],features:[i.\u0275\u0275ProvidersFeature([{provide:Fe,useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature]}),H})(),zt=(()=>{class H extends q{get name(){return this._name}set name(W){this._setNameInput(W)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return H.\u0275fac=function(){let Ie;return function(Ae){return(Ie||(Ie=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:q,useExisting:H},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature]}),H})(),pn=(()=>{class H extends J{}return H.\u0275fac=function(){let Ie;return function(Ae){return(Ie||(Ie=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})(),Be=(()=>{class H extends ce{}return H.\u0275fac=function(){let Ie;return function(Ae){return(Ie||(Ie=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})(),Ve=(()=>{class H extends Se{}return H.\u0275fac=function(){let Ie;return function(Ae){return(Ie||(Ie=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})(),he=(()=>{class H extends Et{}return H.\u0275fac=function(){let Ie;return function(Ae){return(Ie||(Ie=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:Et,useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature]}),H})(),$e=(()=>{class H extends Z{}return H.\u0275fac=function(){let Ie;return function(Ae){return(Ie||(Ie=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:Z,useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature]}),H})(),ut=(()=>{class H extends me{}return H.\u0275fac=function(){let Ie;return function(Ae){return(Ie||(Ie=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:me,useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature]}),H})(),Lt=(()=>{class H extends Re{}return H.\u0275fac=function(){let Ie;return function(Ae){return(Ie||(Ie=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:Re,useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(W,Ae){1&W&&i.\u0275\u0275elementContainer(0,0)},directives:[Me],encapsulation:2}),H})(),kt=(()=>{class H extends ve{}return H.\u0275fac=function(){let Ie;return function(Ae){return(Ie||(Ie=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:ve,useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(W,Ae){1&W&&i.\u0275\u0275elementContainer(0,0)},directives:[Me],encapsulation:2}),H})(),hn=(()=>{class H extends Ye{}return H.\u0275fac=function(){let Ie;return function(Ae){return(Ie||(Ie=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:Ye,useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(W,Ae){1&W&&i.\u0275\u0275elementContainer(0,0)},directives:[Me],encapsulation:2}),H})(),Dn=(()=>{class H extends ht{constructor(){super(...arguments),this._contentClassName="mat-no-data-row"}}return H.\u0275fac=function(){let Ie;return function(Ae){return(Ie||(Ie=i.\u0275\u0275getInheritedFactory(H)))(Ae||H)}}(),H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["ng-template","matNoDataRow",""]],features:[i.\u0275\u0275ProvidersFeature([{provide:ht,useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature]}),H})(),Hn=(()=>{class H extends En{}return H.\u0275fac=function(){let Ie;return function(Ae){return(Ie||(Ie=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(W,Ae){1&W&&(i.\u0275\u0275elementContainerStart(0,0),i.\u0275\u0275template(1,z,2,3,"th",1),i.\u0275\u0275template(2,m,2,3,"td",2),i.\u0275\u0275elementContainerEnd())},directives:[zt,qe,K,pn,Ve],encapsulation:2}),H})(),Xn=(()=>{class H{}return H.\u0275fac=function(W){return new(W||H)},H.\u0275mod=i.\u0275\u0275defineNgModule({type:H}),H.\u0275inj=i.\u0275\u0275defineInjector({imports:[[Wt,Mt.MatCommonModule],Mt.MatCommonModule]}),H})();class zn extends g.o2{constructor(Ie=[]){super(),this._renderData=new E.X([]),this._filter=new E.X(""),this._internalPageChanges=new s.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(W,Ae)=>{const Xe=W[Ae];if((0,u.t6)(Xe)){const st=Number(Xe);return st<9007199254740991?st:Xe}return Xe},this.sortData=(W,Ae)=>{const Xe=Ae.active,st=Ae.direction;return Xe&&""!=st?W.sort((St,Nt)=>{let Jt=this.sortingDataAccessor(St,Xe),vn=this.sortingDataAccessor(Nt,Xe);const jt=typeof Jt,On=typeof vn;jt!==On&&("number"===jt&&(Jt+=""),"number"===On&&(vn+=""));let ln=0;return null!=Jt&&null!=vn?Jt>vn?ln=1:Jt<vn&&(ln=-1):null!=Jt?ln=1:null!=vn&&(ln=-1),ln*("asc"==st?1:-1)}):W},this.filterPredicate=(W,Ae)=>{const Xe=Object.keys(W).reduce((St,Nt)=>St+W[Nt]+"\u25ec","").toLowerCase(),st=Ae.trim().toLowerCase();return-1!=Xe.indexOf(st)},this._data=new E.X(Ie),this._updateChangeSubscription()}get data(){return this._data.value}set data(Ie){this._data.next(Ie),this._renderChangesSubscription||this._filterData(Ie)}get filter(){return this._filter.value}set filter(Ie){this._filter.next(Ie),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(Ie){this._sort=Ie,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(Ie){this._paginator=Ie,this._updateChangeSubscription()}_updateChangeSubscription(){var Ie;const W=this._sort?(0,bn.T)(this._sort.sortChange,this._sort.initialized):(0,I.of)(null),Ae=this._paginator?(0,bn.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,I.of)(null),st=(0,Qt.a)([this._data,this._filter]).pipe((0,on.U)(([Jt])=>this._filterData(Jt))),St=(0,Qt.a)([st,W]).pipe((0,on.U)(([Jt])=>this._orderData(Jt))),Nt=(0,Qt.a)([St,Ae]).pipe((0,on.U)(([Jt])=>this._pageData(Jt)));null===(Ie=this._renderChangesSubscription)||void 0===Ie||Ie.unsubscribe(),this._renderChangesSubscription=Nt.subscribe(Jt=>this._renderData.next(Jt))}_filterData(Ie){return this.filteredData=null==this.filter||""===this.filter?Ie:Ie.filter(W=>this.filterPredicate(W,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(Ie){return this.sort?this.sortData(Ie.slice(),this.sort):Ie}_pageData(Ie){if(!this.paginator)return Ie;const W=this.paginator.pageIndex*this.paginator.pageSize;return Ie.slice(W,W+this.paginator.pageSize)}_updatePaginator(Ie){Promise.resolve().then(()=>{const W=this.paginator;if(W&&(W.length=Ie,W.pageIndex>0)){const Ae=Math.ceil(W.length/W.pageSize)-1||0,Xe=Math.min(W.pageIndex,Ae);Xe!==W.pageIndex&&(W.pageIndex=Xe,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var Ie;null===(Ie=this._renderChangesSubscription)||void 0===Ie||Ie.unsubscribe(),this._renderChangesSubscription=null}}class Bn extends zn{}},3251:(Le,_,l)=>{"use strict";l.r(_),l.d(_,{MAT_TAB:()=>Ye,MAT_TABS_CONFIG:()=>ue,MAT_TAB_GROUP:()=>Ot,MatInkBar:()=>me,MatTab:()=>lt,MatTabBody:()=>Oe,MatTabBodyPortal:()=>N,MatTabChangeEvent:()=>en,MatTabContent:()=>Re,MatTabGroup:()=>rn,MatTabHeader:()=>wt,MatTabLabel:()=>ht,MatTabLabelWrapper:()=>be,MatTabLink:()=>on,MatTabNav:()=>Mt,MatTabsModule:()=>yn,_MAT_INK_BAR_POSITIONER:()=>Ze,_MatTabBodyBase:()=>ae,_MatTabGroupBase:()=>En,_MatTabHeaderBase:()=>pt,_MatTabLinkBase:()=>Qt,_MatTabNavBase:()=>Wt,matTabsAnimations:()=>Qe});var i=l(5664),u=l(7144),g=l(7429),c=l(9808),s=l(5e3),y=l(508),E=l(6360),w=l(6758),I=l(6921),h=l(4968),A=l(9646),M=l(6451),b=l(2805),R=l(1777),V=l(8675),fe=l(1884),$=l(2722),ie=l(226),we=l(3191),pe=l(1159),_e=l(925),le=l(9071);function De(oe,z){1&oe&&s.\u0275\u0275projection(0)}const Fe=["*"];function Je(oe,z){}const ot=function(oe){return{animationDuration:oe}},q=function(oe,z){return{value:oe,params:z}},Pe=["tabListContainer"],J=["tabList"],ce=["tabListInner"],Se=["nextPaginator"],re=["previousPaginator"],Ke=["tabBodyWrapper"],ge=["tabHeader"];function it(oe,z){}function ye(oe,z){if(1&oe&&s.\u0275\u0275template(0,it,0,0,"ng-template",9),2&oe){const m=s.\u0275\u0275nextContext().$implicit;s.\u0275\u0275property("cdkPortalOutlet",m.templateLabel)}}function He(oe,z){if(1&oe&&s.\u0275\u0275text(0),2&oe){const m=s.\u0275\u0275nextContext().$implicit;s.\u0275\u0275textInterpolate(m.textLabel)}}function dt(oe,z){if(1&oe){const m=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"div",6),s.\u0275\u0275listener("click",function(){const T=s.\u0275\u0275restoreView(m),K=T.$implicit,qe=T.index,Dt=s.\u0275\u0275nextContext(),zt=s.\u0275\u0275reference(1);return Dt._handleClick(K,zt,qe)})("cdkFocusChange",function(T){const qe=s.\u0275\u0275restoreView(m).index;return s.\u0275\u0275nextContext()._tabFocusChanged(T,qe)}),s.\u0275\u0275elementStart(1,"div",7),s.\u0275\u0275template(2,ye,1,1,"ng-template",8),s.\u0275\u0275template(3,He,1,1,"ng-template",8),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd()}if(2&oe){const m=z.$implicit,C=z.index,T=s.\u0275\u0275nextContext();s.\u0275\u0275classProp("mat-tab-label-active",T.selectedIndex==C),s.\u0275\u0275property("id",T._getTabLabelId(C))("disabled",m.disabled)("matRippleDisabled",m.disabled||T.disableRipple),s.\u0275\u0275attribute("tabIndex",T._getTabIndex(m,C))("aria-posinset",C+1)("aria-setsize",T._tabs.length)("aria-controls",T._getTabContentId(C))("aria-selected",T.selectedIndex==C)("aria-label",m.ariaLabel||null)("aria-labelledby",!m.ariaLabel&&m.ariaLabelledby?m.ariaLabelledby:null),s.\u0275\u0275advance(2),s.\u0275\u0275property("ngIf",m.templateLabel),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngIf",!m.templateLabel)}}function Et(oe,z){if(1&oe){const m=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"mat-tab-body",10),s.\u0275\u0275listener("_onCentered",function(){return s.\u0275\u0275restoreView(m),s.\u0275\u0275nextContext()._removeTabBodyWrapperHeight()})("_onCentering",function(T){return s.\u0275\u0275restoreView(m),s.\u0275\u0275nextContext()._setTabBodyWrapperHeight(T)}),s.\u0275\u0275elementEnd()}if(2&oe){const m=z.$implicit,C=z.index,T=s.\u0275\u0275nextContext();s.\u0275\u0275classProp("mat-tab-body-active",T.selectedIndex===C),s.\u0275\u0275property("id",T._getTabContentId(C))("content",m.content)("position",m.position)("origin",m.origin)("animationDuration",T.animationDuration),s.\u0275\u0275attribute("tabindex",null!=T.contentTabIndex&&T.selectedIndex===C?T.contentTabIndex:null)("aria-labelledby",T._getTabLabelId(C))}}const ke=["mat-tab-nav-bar",""],Ze=new s.InjectionToken("MatInkBarPositioner",{providedIn:"root",factory:function Z(){return z=>({left:z?(z.offsetLeft||0)+"px":"0",width:z?(z.offsetWidth||0)+"px":"0"})}});let me=(()=>{class oe{constructor(m,C,T,K){this._elementRef=m,this._ngZone=C,this._inkBarPositioner=T,this._animationMode=K}alignToElement(m){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(m))}):this._setStyles(m)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(m){const C=this._inkBarPositioner(m),T=this._elementRef.nativeElement;T.style.left=C.left,T.style.width=C.width}}return oe.\u0275fac=function(m){return new(m||oe)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(Ze),s.\u0275\u0275directiveInject(E.ANIMATION_MODULE_TYPE,8))},oe.\u0275dir=s.\u0275\u0275defineDirective({type:oe,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(m,C){2&m&&s.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===C._animationMode)}}),oe})();const Me=new s.InjectionToken("MatTabContent");let Re=(()=>{class oe{constructor(m){this.template=m}}return oe.\u0275fac=function(m){return new(m||oe)(s.\u0275\u0275directiveInject(s.TemplateRef))},oe.\u0275dir=s.\u0275\u0275defineDirective({type:oe,selectors:[["","matTabContent",""]],features:[s.\u0275\u0275ProvidersFeature([{provide:Me,useExisting:oe}])]}),oe})();const ve=new s.InjectionToken("MatTabLabel"),Ye=new s.InjectionToken("MAT_TAB");let ht=(()=>{class oe extends g.ig{constructor(m,C,T){super(m,C),this._closestTab=T}}return oe.\u0275fac=function(m){return new(m||oe)(s.\u0275\u0275directiveInject(s.TemplateRef),s.\u0275\u0275directiveInject(s.ViewContainerRef),s.\u0275\u0275directiveInject(Ye,8))},oe.\u0275dir=s.\u0275\u0275defineDirective({type:oe,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[s.\u0275\u0275ProvidersFeature([{provide:ve,useExisting:oe}]),s.\u0275\u0275InheritDefinitionFeature]}),oe})();const bt=(0,y.mixinDisabled)(class{}),Ot=new s.InjectionToken("MAT_TAB_GROUP");let lt=(()=>{class oe extends bt{constructor(m,C){super(),this._viewContainerRef=m,this._closestTabGroup=C,this.textLabel="",this._contentPortal=null,this._stateChanges=new w.x,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(m){this._setTemplateLabelInput(m)}get content(){return this._contentPortal}ngOnChanges(m){(m.hasOwnProperty("textLabel")||m.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new g.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(m){m&&m._closestTab===this&&(this._templateLabel=m)}}return oe.\u0275fac=function(m){return new(m||oe)(s.\u0275\u0275directiveInject(s.ViewContainerRef),s.\u0275\u0275directiveInject(Ot,8))},oe.\u0275cmp=s.\u0275\u0275defineComponent({type:oe,selectors:[["mat-tab"]],contentQueries:function(m,C,T){if(1&m&&(s.\u0275\u0275contentQuery(T,ve,5),s.\u0275\u0275contentQuery(T,Me,7,s.TemplateRef)),2&m){let K;s.\u0275\u0275queryRefresh(K=s.\u0275\u0275loadQuery())&&(C.templateLabel=K.first),s.\u0275\u0275queryRefresh(K=s.\u0275\u0275loadQuery())&&(C._explicitContent=K.first)}},viewQuery:function(m,C){if(1&m&&s.\u0275\u0275viewQuery(s.TemplateRef,7),2&m){let T;s.\u0275\u0275queryRefresh(T=s.\u0275\u0275loadQuery())&&(C._implicitContent=T.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[s.\u0275\u0275ProvidersFeature([{provide:Ye,useExisting:oe}]),s.\u0275\u0275InheritDefinitionFeature,s.\u0275\u0275NgOnChangesFeature],ngContentSelectors:Fe,decls:1,vars:0,template:function(m,C){1&m&&(s.\u0275\u0275projectionDef(),s.\u0275\u0275template(0,De,1,0,"ng-template"))},encapsulation:2}),oe})();const Qe={translateTab:(0,R.X$)("translateTab",[(0,R.SB)("center, void, left-origin-center, right-origin-center",(0,R.oB)({transform:"none"})),(0,R.SB)("left",(0,R.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),(0,R.SB)("right",(0,R.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),(0,R.eR)("* => left, * => right, left => center, right => center",(0,R.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,R.eR)("void => left-origin-center",[(0,R.oB)({transform:"translate3d(-100%, 0, 0)"}),(0,R.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,R.eR)("void => right-origin-center",[(0,R.oB)({transform:"translate3d(100%, 0, 0)"}),(0,R.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let N=(()=>{class oe extends g.Pl{constructor(m,C,T,K){super(m,C,K),this._host=T,this._centeringSub=I.w0.EMPTY,this._leavingSub=I.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,V.O)(this._host._isCenterPosition(this._host._position))).subscribe(m=>{m&&!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 oe.\u0275fac=function(m){return new(m||oe)(s.\u0275\u0275directiveInject(s.ComponentFactoryResolver),s.\u0275\u0275directiveInject(s.ViewContainerRef),s.\u0275\u0275directiveInject((0,s.forwardRef)(()=>Oe)),s.\u0275\u0275directiveInject(c.DOCUMENT))},oe.\u0275dir=s.\u0275\u0275defineDirective({type:oe,selectors:[["","matTabBodyHost",""]],features:[s.\u0275\u0275InheritDefinitionFeature]}),oe})(),ae=(()=>{class oe{constructor(m,C,T){this._elementRef=m,this._dir=C,this._dirChangeSubscription=I.w0.EMPTY,this._translateTabComplete=new w.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",C&&(this._dirChangeSubscription=C.change.subscribe(K=>{this._computePositionAnimationState(K),T.markForCheck()})),this._translateTabComplete.pipe((0,fe.x)((K,qe)=>K.fromState===qe.fromState&&K.toState===qe.toState)).subscribe(K=>{this._isCenterPosition(K.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(K.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(m){this._positionIndex=m,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(m){const C=this._isCenterPosition(m.toState);this._beforeCentering.emit(C),C&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(m){return"center"==m||"left-origin-center"==m||"right-origin-center"==m}_computePositionAnimationState(m=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==m?"left":"right":this._positionIndex>0?"ltr"==m?"right":"left":"center"}_computePositionFromOrigin(m){const C=this._getLayoutDirection();return"ltr"==C&&m<=0||"rtl"==C&&m>0?"left-origin-center":"right-origin-center"}}return oe.\u0275fac=function(m){return new(m||oe)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(ie.Is,8),s.\u0275\u0275directiveInject(s.ChangeDetectorRef))},oe.\u0275dir=s.\u0275\u0275defineDirective({type:oe,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),oe})(),Oe=(()=>{class oe extends ae{constructor(m,C,T){super(m,C,T)}}return oe.\u0275fac=function(m){return new(m||oe)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(ie.Is,8),s.\u0275\u0275directiveInject(s.ChangeDetectorRef))},oe.\u0275cmp=s.\u0275\u0275defineComponent({type:oe,selectors:[["mat-tab-body"]],viewQuery:function(m,C){if(1&m&&s.\u0275\u0275viewQuery(g.Pl,5),2&m){let T;s.\u0275\u0275queryRefresh(T=s.\u0275\u0275loadQuery())&&(C._portalHost=T.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(m,C){1&m&&(s.\u0275\u0275elementStart(0,"div",0,1),s.\u0275\u0275listener("@translateTab.start",function(K){return C._onTranslateTabStarted(K)})("@translateTab.done",function(K){return C._translateTabComplete.next(K)}),s.\u0275\u0275template(2,Je,0,0,"ng-template",2),s.\u0275\u0275elementEnd()),2&m&&s.\u0275\u0275property("@translateTab",s.\u0275\u0275pureFunction2(3,q,C._position,s.\u0275\u0275pureFunction1(1,ot,C.animationDuration)))},directives:[N],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:[Qe.translateTab]}}),oe})();const ue=new s.InjectionToken("MAT_TABS_CONFIG"),Te=(0,y.mixinDisabled)(class{});let be=(()=>{class oe extends Te{constructor(m){super(),this.elementRef=m}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return oe.\u0275fac=function(m){return new(m||oe)(s.\u0275\u0275directiveInject(s.ElementRef))},oe.\u0275dir=s.\u0275\u0275defineDirective({type:oe,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(m,C){2&m&&(s.\u0275\u0275attribute("aria-disabled",!!C.disabled),s.\u0275\u0275classProp("mat-tab-disabled",C.disabled))},inputs:{disabled:"disabled"},features:[s.\u0275\u0275InheritDefinitionFeature]}),oe})();const se=(0,_e.i$)({passive:!0});let ft=(()=>{class oe{constructor(m,C,T,K,qe,Dt,zt){this._elementRef=m,this._changeDetectorRef=C,this._viewportRuler=T,this._dir=K,this._ngZone=qe,this._platform=Dt,this._animationMode=zt,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new w.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new w.x,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new s.EventEmitter,this.indexFocused=new s.EventEmitter,qe.runOutsideAngular(()=>{(0,h.R)(m.nativeElement,"mouseleave").pipe((0,$.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(m){m=(0,we.su)(m),this._selectedIndex!=m&&(this._selectedIndexChanged=!0,this._selectedIndex=m,this._keyManager&&this._keyManager.updateActiveItem(m))}ngAfterViewInit(){(0,h.R)(this._previousPaginator.nativeElement,"touchstart",se).pipe((0,$.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,h.R)(this._nextPaginator.nativeElement,"touchstart",se).pipe((0,$.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const m=this._dir?this._dir.change:(0,A.of)("ltr"),C=this._viewportRuler.change(150),T=()=>{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(T):T(),(0,M.T)(m,C,this._items.changes).pipe((0,$.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>Promise.resolve().then(T)),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,$.R)(this._destroyed)).subscribe(K=>{this.indexFocused.emit(K),this._setTabFocus(K)})}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(m){if(!(0,pe.Vb)(m))switch(m.keyCode){case pe.K5:case pe.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(m));break;default:this._keyManager.onKeydown(m)}}_onContentChanges(){const m=this._elementRef.nativeElement.textContent;m!==this._currentTextContent&&(this._currentTextContent=m||"",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(m){!this._isValidIndex(m)||this.focusIndex===m||!this._keyManager||this._keyManager.setActiveItem(m)}_isValidIndex(m){if(!this._items)return!0;const C=this._items?this._items.toArray()[m]:null;return!!C&&!C.disabled}_setTabFocus(m){if(this._showPaginationControls&&this._scrollToLabel(m),this._items&&this._items.length){this._items.toArray()[m].focus();const C=this._tabListContainer.nativeElement;C.scrollLeft="ltr"==this._getLayoutDirection()?0:C.scrollWidth-C.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const m=this.scrollDistance,C="ltr"===this._getLayoutDirection()?-m:m;this._tabList.nativeElement.style.transform=`translateX(${Math.round(C)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(m){this._scrollTo(m)}_scrollHeader(m){return this._scrollTo(this._scrollDistance+("before"==m?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(m){this._stopInterval(),this._scrollHeader(m)}_scrollToLabel(m){if(this.disablePagination)return;const C=this._items?this._items.toArray()[m]:null;if(!C)return;const T=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:K,offsetWidth:qe}=C.elementRef.nativeElement;let Dt,zt;"ltr"==this._getLayoutDirection()?(Dt=K,zt=Dt+qe):(zt=this._tabListInner.nativeElement.offsetWidth-K,Dt=zt-qe);const pn=this.scrollDistance,Be=this.scrollDistance+T;Dt<pn?this.scrollDistance-=pn-Dt+60:zt>Be&&(this.scrollDistance+=zt-Be+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const m=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;m||(this.scrollDistance=0),m!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=m}}_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 m=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,C=m?m.elementRef.nativeElement:null;C?this._inkBar.alignToElement(C):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(m,C){C&&null!=C.button&&0!==C.button||(this._stopInterval(),(0,b.H)(650,100).pipe((0,$.R)((0,M.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:T,distance:K}=this._scrollHeader(m);(0===K||K>=T)&&this._stopInterval()}))}_scrollTo(m){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const C=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(C,m)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:C,distance:this._scrollDistance}}}return oe.\u0275fac=function(m){return new(m||oe)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(le.rL),s.\u0275\u0275directiveInject(ie.Is,8),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(_e.t4),s.\u0275\u0275directiveInject(E.ANIMATION_MODULE_TYPE,8))},oe.\u0275dir=s.\u0275\u0275defineDirective({type:oe,inputs:{disablePagination:"disablePagination"}}),oe})(),pt=(()=>{class oe extends ft{constructor(m,C,T,K,qe,Dt,zt){super(m,C,T,K,qe,Dt,zt),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(m){this._disableRipple=(0,we.Ig)(m)}_itemSelected(m){m.preventDefault()}}return oe.\u0275fac=function(m){return new(m||oe)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(le.rL),s.\u0275\u0275directiveInject(ie.Is,8),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(_e.t4),s.\u0275\u0275directiveInject(E.ANIMATION_MODULE_TYPE,8))},oe.\u0275dir=s.\u0275\u0275defineDirective({type:oe,inputs:{disableRipple:"disableRipple"},features:[s.\u0275\u0275InheritDefinitionFeature]}),oe})(),wt=(()=>{class oe extends pt{constructor(m,C,T,K,qe,Dt,zt){super(m,C,T,K,qe,Dt,zt)}}return oe.\u0275fac=function(m){return new(m||oe)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(le.rL),s.\u0275\u0275directiveInject(ie.Is,8),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(_e.t4),s.\u0275\u0275directiveInject(E.ANIMATION_MODULE_TYPE,8))},oe.\u0275cmp=s.\u0275\u0275defineComponent({type:oe,selectors:[["mat-tab-header"]],contentQueries:function(m,C,T){if(1&m&&s.\u0275\u0275contentQuery(T,be,4),2&m){let K;s.\u0275\u0275queryRefresh(K=s.\u0275\u0275loadQuery())&&(C._items=K)}},viewQuery:function(m,C){if(1&m&&(s.\u0275\u0275viewQuery(me,7),s.\u0275\u0275viewQuery(Pe,7),s.\u0275\u0275viewQuery(J,7),s.\u0275\u0275viewQuery(ce,7),s.\u0275\u0275viewQuery(Se,5),s.\u0275\u0275viewQuery(re,5)),2&m){let T;s.\u0275\u0275queryRefresh(T=s.\u0275\u0275loadQuery())&&(C._inkBar=T.first),s.\u0275\u0275queryRefresh(T=s.\u0275\u0275loadQuery())&&(C._tabListContainer=T.first),s.\u0275\u0275queryRefresh(T=s.\u0275\u0275loadQuery())&&(C._tabList=T.first),s.\u0275\u0275queryRefresh(T=s.\u0275\u0275loadQuery())&&(C._tabListInner=T.first),s.\u0275\u0275queryRefresh(T=s.\u0275\u0275loadQuery())&&(C._nextPaginator=T.first),s.\u0275\u0275queryRefresh(T=s.\u0275\u0275loadQuery())&&(C._previousPaginator=T.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(m,C){2&m&&s.\u0275\u0275classProp("mat-tab-header-pagination-controls-enabled",C._showPaginationControls)("mat-tab-header-rtl","rtl"==C._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[s.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:Fe,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(m,C){1&m&&(s.\u0275\u0275projectionDef(),s.\u0275\u0275elementStart(0,"div",0,1),s.\u0275\u0275listener("click",function(){return C._handlePaginatorClick("before")})("mousedown",function(K){return C._handlePaginatorPress("before",K)})("touchend",function(){return C._stopInterval()}),s.\u0275\u0275element(2,"div",2),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(3,"div",3,4),s.\u0275\u0275listener("keydown",function(K){return C._handleKeydown(K)}),s.\u0275\u0275elementStart(5,"div",5,6),s.\u0275\u0275listener("cdkObserveContent",function(){return C._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(K){return C._handlePaginatorPress("after",K)})("click",function(){return C._handlePaginatorClick("after")})("touchend",function(){return C._stopInterval()}),s.\u0275\u0275element(13,"div",2),s.\u0275\u0275elementEnd()),2&m&&(s.\u0275\u0275classProp("mat-tab-header-pagination-disabled",C._disableScrollBefore),s.\u0275\u0275property("matRippleDisabled",C._disableScrollBefore||C.disableRipple),s.\u0275\u0275advance(5),s.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===C._animationMode),s.\u0275\u0275advance(6),s.\u0275\u0275classProp("mat-tab-header-pagination-disabled",C._disableScrollAfter),s.\u0275\u0275property("matRippleDisabled",C._disableScrollAfter||C.disableRipple))},directives:[y.MatRipple,u.wD,me],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}),oe})(),$t=0;class en{}const Bt=(0,y.mixinColor)((0,y.mixinDisableRipple)(class{constructor(oe){this._elementRef=oe}}),"primary");let En=(()=>{class oe extends Bt{constructor(m,C,T,K){var qe;super(m),this._changeDetectorRef=C,this._animationMode=K,this._tabs=new s.QueryList,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=I.w0.EMPTY,this._tabLabelSubscription=I.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=$t++,this.animationDuration=T&&T.animationDuration?T.animationDuration:"500ms",this.disablePagination=!(!T||null==T.disablePagination)&&T.disablePagination,this.dynamicHeight=!(!T||null==T.dynamicHeight)&&T.dynamicHeight,this.contentTabIndex=null!==(qe=null==T?void 0:T.contentTabIndex)&&void 0!==qe?qe:null}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(m){this._dynamicHeight=(0,we.Ig)(m)}get selectedIndex(){return this._selectedIndex}set selectedIndex(m){this._indexToSelect=(0,we.su)(m,null)}get animationDuration(){return this._animationDuration}set animationDuration(m){this._animationDuration=/^\d+$/.test(m+"")?m+"ms":m}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(m){this._contentTabIndex=(0,we.su)(m,null)}get backgroundColor(){return this._backgroundColor}set backgroundColor(m){const C=this._elementRef.nativeElement;C.classList.remove(`mat-background-${this.backgroundColor}`),m&&C.classList.add(`mat-background-${m}`),this._backgroundColor=m}ngAfterContentChecked(){const m=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=m){const C=null==this._selectedIndex;if(!C){this.selectedTabChange.emit(this._createChangeEvent(m));const T=this._tabBodyWrapper.nativeElement;T.style.minHeight=T.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((T,K)=>T.isActive=K===m),C||(this.selectedIndexChange.emit(m),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((C,T)=>{C.position=T-m,null!=this._selectedIndex&&0==C.position&&!C.origin&&(C.origin=m-this._selectedIndex)}),this._selectedIndex!==m&&(this._selectedIndex=m,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const C=this._tabs.toArray();for(let T=0;T<C.length;T++)if(C[T].isActive){this._indexToSelect=this._selectedIndex=T;break}}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,V.O)(this._allTabs)).subscribe(m=>{this._tabs.reset(m.filter(C=>C._closestTabGroup===this||!C._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}focusTab(m){const C=this._tabHeader;C&&(C.focusIndex=m)}_focusChanged(m){this.focusChange.emit(this._createChangeEvent(m))}_createChangeEvent(m){const C=new en;return C.index=m,this._tabs&&this._tabs.length&&(C.tab=this._tabs.toArray()[m]),C}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,M.T)(...this._tabs.map(m=>m._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(m){return Math.min(this._tabs.length-1,Math.max(m||0,0))}_getTabLabelId(m){return`mat-tab-label-${this._groupId}-${m}`}_getTabContentId(m){return`mat-tab-content-${this._groupId}-${m}`}_setTabBodyWrapperHeight(m){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const C=this._tabBodyWrapper.nativeElement;C.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(C.style.height=m+"px")}_removeTabBodyWrapperHeight(){const m=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=m.clientHeight,m.style.height="",this.animationDone.emit()}_handleClick(m,C,T){m.disabled||(this.selectedIndex=C.focusIndex=T)}_getTabIndex(m,C){return m.disabled?null:this.selectedIndex===C?0:-1}_tabFocusChanged(m,C){m&&"mouse"!==m&&"touch"!==m&&(this._tabHeader.focusIndex=C)}}return oe.\u0275fac=function(m){return new(m||oe)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(ue,8),s.\u0275\u0275directiveInject(E.ANIMATION_MODULE_TYPE,8))},oe.\u0275dir=s.\u0275\u0275defineDirective({type:oe,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]}),oe})(),rn=(()=>{class oe extends En{constructor(m,C,T,K){super(m,C,T,K)}}return oe.\u0275fac=function(m){return new(m||oe)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(ue,8),s.\u0275\u0275directiveInject(E.ANIMATION_MODULE_TYPE,8))},oe.\u0275cmp=s.\u0275\u0275defineComponent({type:oe,selectors:[["mat-tab-group"]],contentQueries:function(m,C,T){if(1&m&&s.\u0275\u0275contentQuery(T,lt,5),2&m){let K;s.\u0275\u0275queryRefresh(K=s.\u0275\u0275loadQuery())&&(C._allTabs=K)}},viewQuery:function(m,C){if(1&m&&(s.\u0275\u0275viewQuery(Ke,5),s.\u0275\u0275viewQuery(ge,5)),2&m){let T;s.\u0275\u0275queryRefresh(T=s.\u0275\u0275loadQuery())&&(C._tabBodyWrapper=T.first),s.\u0275\u0275queryRefresh(T=s.\u0275\u0275loadQuery())&&(C._tabHeader=T.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(m,C){2&m&&s.\u0275\u0275classProp("mat-tab-group-dynamic-height",C.dynamicHeight)("mat-tab-group-inverted-header","below"===C.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[s.\u0275\u0275ProvidersFeature([{provide:Ot,useExisting:oe}]),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(m,C){1&m&&(s.\u0275\u0275elementStart(0,"mat-tab-header",0,1),s.\u0275\u0275listener("indexFocused",function(K){return C._focusChanged(K)})("selectFocusedIndex",function(K){return C.selectedIndex=K}),s.\u0275\u0275template(2,dt,4,14,"div",2),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(3,"div",3,4),s.\u0275\u0275template(5,Et,1,9,"mat-tab-body",5),s.\u0275\u0275elementEnd()),2&m&&(s.\u0275\u0275property("selectedIndex",C.selectedIndex||0)("disableRipple",C.disableRipple)("disablePagination",C.disablePagination),s.\u0275\u0275advance(2),s.\u0275\u0275property("ngForOf",C._tabs),s.\u0275\u0275advance(1),s.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===C._animationMode),s.\u0275\u0275advance(2),s.\u0275\u0275property("ngForOf",C._tabs))},directives:[wt,c.NgForOf,be,y.MatRipple,i.kH,c.NgIf,g.Pl,Oe],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}),oe})(),Wt=(()=>{class oe extends ft{constructor(m,C,T,K,qe,Dt,zt){super(m,K,qe,C,T,Dt,zt),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(m){const C=this._elementRef.nativeElement.classList;C.remove(`mat-background-${this.backgroundColor}`),m&&C.add(`mat-background-${m}`),this._backgroundColor=m}get disableRipple(){return this._disableRipple}set disableRipple(m){this._disableRipple=(0,we.Ig)(m)}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe((0,V.O)(null),(0,$.R)(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(){if(!this._items)return;const m=this._items.toArray();for(let C=0;C<m.length;C++)if(m[C].active)return this.selectedIndex=C,void this._changeDetectorRef.markForCheck();this.selectedIndex=-1,this._inkBar.hide()}}return oe.\u0275fac=function(m){return new(m||oe)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(ie.Is,8),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(le.rL),s.\u0275\u0275directiveInject(_e.t4),s.\u0275\u0275directiveInject(E.ANIMATION_MODULE_TYPE,8))},oe.\u0275dir=s.\u0275\u0275defineDirective({type:oe,inputs:{backgroundColor:"backgroundColor",disableRipple:"disableRipple",color:"color"},features:[s.\u0275\u0275InheritDefinitionFeature]}),oe})(),Mt=(()=>{class oe extends Wt{constructor(m,C,T,K,qe,Dt,zt){super(m,C,T,K,qe,Dt,zt)}}return oe.\u0275fac=function(m){return new(m||oe)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(ie.Is,8),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(le.rL),s.\u0275\u0275directiveInject(_e.t4),s.\u0275\u0275directiveInject(E.ANIMATION_MODULE_TYPE,8))},oe.\u0275cmp=s.\u0275\u0275defineComponent({type:oe,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(m,C,T){if(1&m&&s.\u0275\u0275contentQuery(T,on,5),2&m){let K;s.\u0275\u0275queryRefresh(K=s.\u0275\u0275loadQuery())&&(C._items=K)}},viewQuery:function(m,C){if(1&m&&(s.\u0275\u0275viewQuery(me,7),s.\u0275\u0275viewQuery(Pe,7),s.\u0275\u0275viewQuery(J,7),s.\u0275\u0275viewQuery(ce,7),s.\u0275\u0275viewQuery(Se,5),s.\u0275\u0275viewQuery(re,5)),2&m){let T;s.\u0275\u0275queryRefresh(T=s.\u0275\u0275loadQuery())&&(C._inkBar=T.first),s.\u0275\u0275queryRefresh(T=s.\u0275\u0275loadQuery())&&(C._tabListContainer=T.first),s.\u0275\u0275queryRefresh(T=s.\u0275\u0275loadQuery())&&(C._tabList=T.first),s.\u0275\u0275queryRefresh(T=s.\u0275\u0275loadQuery())&&(C._tabListInner=T.first),s.\u0275\u0275queryRefresh(T=s.\u0275\u0275loadQuery())&&(C._nextPaginator=T.first),s.\u0275\u0275queryRefresh(T=s.\u0275\u0275loadQuery())&&(C._previousPaginator=T.first)}},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:10,hostBindings:function(m,C){2&m&&s.\u0275\u0275classProp("mat-tab-header-pagination-controls-enabled",C._showPaginationControls)("mat-tab-header-rtl","rtl"==C._getLayoutDirection())("mat-primary","warn"!==C.color&&"accent"!==C.color)("mat-accent","accent"===C.color)("mat-warn","warn"===C.color)},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[s.\u0275\u0275InheritDefinitionFeature],attrs:ke,ngContentSelectors:Fe,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(m,C){1&m&&(s.\u0275\u0275projectionDef(),s.\u0275\u0275elementStart(0,"div",0,1),s.\u0275\u0275listener("click",function(){return C._handlePaginatorClick("before")})("mousedown",function(K){return C._handlePaginatorPress("before",K)})("touchend",function(){return C._stopInterval()}),s.\u0275\u0275element(2,"div",2),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(3,"div",3,4),s.\u0275\u0275listener("keydown",function(K){return C._handleKeydown(K)}),s.\u0275\u0275elementStart(5,"div",5,6),s.\u0275\u0275listener("cdkObserveContent",function(){return C._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(K){return C._handlePaginatorPress("after",K)})("click",function(){return C._handlePaginatorClick("after")})("touchend",function(){return C._stopInterval()}),s.\u0275\u0275element(13,"div",2),s.\u0275\u0275elementEnd()),2&m&&(s.\u0275\u0275classProp("mat-tab-header-pagination-disabled",C._disableScrollBefore),s.\u0275\u0275property("matRippleDisabled",C._disableScrollBefore||C.disableRipple),s.\u0275\u0275advance(5),s.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===C._animationMode),s.\u0275\u0275advance(6),s.\u0275\u0275classProp("mat-tab-header-pagination-disabled",C._disableScrollAfter),s.\u0275\u0275property("matRippleDisabled",C._disableScrollAfter||C.disableRipple))},directives:[y.MatRipple,u.wD,me],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}),oe})();const bn=(0,y.mixinTabIndex)((0,y.mixinDisableRipple)((0,y.mixinDisabled)(class{})));let Qt=(()=>{class oe extends bn{constructor(m,C,T,K,qe,Dt){super(),this._tabNavBar=m,this.elementRef=C,this._focusMonitor=qe,this._isActive=!1,this.rippleConfig=T||{},this.tabIndex=parseInt(K)||0,"NoopAnimations"===Dt&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}get active(){return this._isActive}set active(m){const C=(0,we.Ig)(m);C!==this._isActive&&(this._isActive=C,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 oe.\u0275fac=function(m){return new(m||oe)(s.\u0275\u0275directiveInject(Wt),s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(y.MAT_RIPPLE_GLOBAL_OPTIONS,8),s.\u0275\u0275injectAttribute("tabindex"),s.\u0275\u0275directiveInject(i.tE),s.\u0275\u0275directiveInject(E.ANIMATION_MODULE_TYPE,8))},oe.\u0275dir=s.\u0275\u0275defineDirective({type:oe,inputs:{active:"active"},features:[s.\u0275\u0275InheritDefinitionFeature]}),oe})(),on=(()=>{class oe extends Qt{constructor(m,C,T,K,qe,Dt,zt,pn){super(m,C,qe,Dt,zt,pn),this._tabLinkRipple=new y.RippleRenderer(this,T,C,K),this._tabLinkRipple.setupTriggerEvents(C.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}return oe.\u0275fac=function(m){return new(m||oe)(s.\u0275\u0275directiveInject(Mt),s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(_e.t4),s.\u0275\u0275directiveInject(y.MAT_RIPPLE_GLOBAL_OPTIONS,8),s.\u0275\u0275injectAttribute("tabindex"),s.\u0275\u0275directiveInject(i.tE),s.\u0275\u0275directiveInject(E.ANIMATION_MODULE_TYPE,8))},oe.\u0275dir=s.\u0275\u0275defineDirective({type:oe,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:7,hostBindings:function(m,C){1&m&&s.\u0275\u0275listener("focus",function(){return C._handleFocus()}),2&m&&(s.\u0275\u0275attribute("aria-current",C.active?"page":null)("aria-disabled",C.disabled)("tabIndex",C.tabIndex),s.\u0275\u0275classProp("mat-tab-disabled",C.disabled)("mat-tab-label-active",C.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[s.\u0275\u0275InheritDefinitionFeature]}),oe})(),yn=(()=>{class oe{}return oe.\u0275fac=function(m){return new(m||oe)},oe.\u0275mod=s.\u0275\u0275defineNgModule({type:oe}),oe.\u0275inj=s.\u0275\u0275defineInjector({imports:[[c.CommonModule,y.MatCommonModule,g.eL,y.MatRippleModule,u.Q8,i.rt],y.MatCommonModule]}),oe})()},7238:(Le,_,l)=>{"use strict";l.r(_),l.d(_,{MAT_TOOLTIP_DEFAULT_OPTIONS:()=>q,MAT_TOOLTIP_DEFAULT_OPTIONS_FACTORY:()=>Pe,MAT_TOOLTIP_SCROLL_STRATEGY:()=>Fe,MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY:()=>Je,MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER:()=>ot,MatTooltip:()=>ce,MatTooltipModule:()=>Ke,SCROLL_THROTTLE_MS:()=>ie,TOOLTIP_PANEL_CLASS:()=>we,TooltipComponent:()=>re,_MatTooltipBase:()=>J,_TooltipComponentBase:()=>Se,getMatTooltipInvalidPositionError:()=>De,matTooltipAnimations:()=>$});var i=l(1314),u=l(5664),g=l(9808),c=l(5e3),s=l(508),y=l(9071),E=l(3191),w=l(1159),I=l(5113),h=l(925),A=l(7429),M=l(6758),b=l(2722),R=l(5698),V=l(1777),fe=l(226);const $={tooltipState:(0,V.X$)("state",[(0,V.SB)("initial, void, hidden",(0,V.oB)({opacity:0,transform:"scale(0)"})),(0,V.SB)("visible",(0,V.oB)({transform:"scale(1)"})),(0,V.eR)("* => visible",(0,V.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,V.F4)([(0,V.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,V.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,V.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,V.eR)("* => hidden",(0,V.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,V.oB)({opacity:0})))])},ie=20,we="mat-tooltip-panel",pe="tooltip-panel",_e=(0,h.i$)({passive:!0});function De(ge){return Error(`Tooltip position "${ge}" is invalid.`)}const Fe=new c.InjectionToken("mat-tooltip-scroll-strategy");function Je(ge){return()=>ge.scrollStrategies.reposition({scrollThrottle:ie})}const ot={provide:Fe,deps:[i.aV],useFactory:Je},q=new c.InjectionToken("mat-tooltip-default-options",{providedIn:"root",factory:Pe});function Pe(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}let J=(()=>{class ge{constructor(ye,He,dt,Et,ke,Ze,Z,me,Me,Re,ve,Ye){this._overlay=ye,this._elementRef=He,this._scrollDispatcher=dt,this._viewContainerRef=Et,this._ngZone=ke,this._platform=Ze,this._ariaDescriber=Z,this._focusMonitor=me,this._dir=Re,this._defaultOptions=ve,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 M.x,this._handleKeydown=ht=>{this._isTooltipVisible()&&ht.keyCode===w.hY&&!(0,w.Vb)(ht)&&(ht.preventDefault(),ht.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=Me,this._document=Ye,ve&&(ve.position&&(this.position=ve.position),ve.touchGestures&&(this.touchGestures=ve.touchGestures)),Re.change.pipe((0,b.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),ke.runOutsideAngular(()=>{He.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(ye){var He;ye!==this._position&&(this._position=ye,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(He=this._tooltipInstance)||void 0===He||He.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(ye){this._disabled=(0,E.Ig)(ye),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(ye){this._showDelay=(0,E.su)(ye)}get hideDelay(){return this._hideDelay}set hideDelay(ye){this._hideDelay=(0,E.su)(ye)}get message(){return this._message}set message(ye){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=ye?String(ye).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(ye){this._tooltipClass=ye,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,b.R)(this._destroyed)).subscribe(ye=>{ye?"keyboard"===ye&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const ye=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),ye.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([He,dt])=>{ye.removeEventListener(He,dt,_e)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(ye,this.message,"tooltip"),this._focusMonitor.stopMonitoring(ye)}show(ye=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const He=this._createOverlay();this._detach(),this._portal=this._portal||new A.C5(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=He.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe((0,b.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(ye)}hide(ye=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(ye)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const ye=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),He=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(ye);return He.positionChanges.pipe((0,b.R)(this._destroyed)).subscribe(dt=>{this._updateCurrentPositionClass(dt.connectionPair),this._tooltipInstance&&dt.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:He,panelClass:`${this._cssClassPrefix}-${pe}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,b.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,b.R)(this._destroyed)).subscribe(()=>{var dt;return null===(dt=this._tooltipInstance)||void 0===dt?void 0:dt._handleBodyInteraction()}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(ye){const He=ye.getConfig().positionStrategy,dt=this._getOrigin(),Et=this._getOverlayPosition();He.withPositions([this._addOffset(Object.assign(Object.assign({},dt.main),Et.main)),this._addOffset(Object.assign(Object.assign({},dt.fallback),Et.fallback))])}_addOffset(ye){return ye}_getOrigin(){const ye=!this._dir||"ltr"==this._dir.value,He=this.position;let dt;"above"==He||"below"==He?dt={originX:"center",originY:"above"==He?"top":"bottom"}:"before"==He||"left"==He&&ye||"right"==He&&!ye?dt={originX:"start",originY:"center"}:("after"==He||"right"==He&&ye||"left"==He&&!ye)&&(dt={originX:"end",originY:"center"});const{x:Et,y:ke}=this._invertPosition(dt.originX,dt.originY);return{main:dt,fallback:{originX:Et,originY:ke}}}_getOverlayPosition(){const ye=!this._dir||"ltr"==this._dir.value,He=this.position;let dt;"above"==He?dt={overlayX:"center",overlayY:"bottom"}:"below"==He?dt={overlayX:"center",overlayY:"top"}:"before"==He||"left"==He&&ye||"right"==He&&!ye?dt={overlayX:"end",overlayY:"center"}:("after"==He||"right"==He&&ye||"left"==He&&!ye)&&(dt={overlayX:"start",overlayY:"center"});const{x:Et,y:ke}=this._invertPosition(dt.overlayX,dt.overlayY);return{main:dt,fallback:{overlayX:Et,overlayY:ke}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,R.q)(1),(0,b.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(ye){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=ye,this._tooltipInstance._markForCheck())}_invertPosition(ye,He){return"above"===this.position||"below"===this.position?"top"===He?He="bottom":"bottom"===He&&(He="top"):"end"===ye?ye="start":"start"===ye&&(ye="end"),{x:ye,y:He}}_updateCurrentPositionClass(ye){const{overlayY:He,originX:dt,originY:Et}=ye;let ke;if(ke="center"===He?this._dir&&"rtl"===this._dir.value?"end"===dt?"left":"right":"start"===dt?"left":"right":"bottom"===He&&"top"===Et?"above":"below",ke!==this._currentPosition){const Ze=this._overlayRef;if(Ze){const Z=`${this._cssClassPrefix}-${pe}-`;Ze.removePanelClass(Z+this._currentPosition),Ze.addPanelClass(Z+ke)}this._currentPosition=ke}}_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 ye=[];if(this._platformSupportsMouseEvents())ye.push(["mouseleave",()=>this.hide()],["wheel",He=>this._wheelListener(He)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const He=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};ye.push(["touchend",He],["touchcancel",He])}this._addListeners(ye),this._passiveListeners.push(...ye)}_addListeners(ye){ye.forEach(([He,dt])=>{this._elementRef.nativeElement.addEventListener(He,dt,_e)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(ye){if(this._isTooltipVisible()){const He=this._document.elementFromPoint(ye.clientX,ye.clientY),dt=this._elementRef.nativeElement;He!==dt&&!dt.contains(He)&&this.hide()}}_disableNativeGesturesIfNecessary(){const ye=this.touchGestures;if("off"!==ye){const He=this._elementRef.nativeElement,dt=He.style;("on"===ye||"INPUT"!==He.nodeName&&"TEXTAREA"!==He.nodeName)&&(dt.userSelect=dt.msUserSelect=dt.webkitUserSelect=dt.MozUserSelect="none"),("on"===ye||!He.draggable)&&(dt.webkitUserDrag="none"),dt.touchAction="none",dt.webkitTapHighlightColor="transparent"}}}return ge.\u0275fac=function(ye){c.\u0275\u0275invalidFactory()},ge.\u0275dir=c.\u0275\u0275defineDirective({type:ge,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),ge})(),ce=(()=>{class ge extends J{constructor(ye,He,dt,Et,ke,Ze,Z,me,Me,Re,ve,Ye){super(ye,He,dt,Et,ke,Ze,Z,me,Me,Re,ve,Ye),this._tooltipComponent=re}}return ge.\u0275fac=function(ye){return new(ye||ge)(c.\u0275\u0275directiveInject(i.aV),c.\u0275\u0275directiveInject(c.ElementRef),c.\u0275\u0275directiveInject(y.mF),c.\u0275\u0275directiveInject(c.ViewContainerRef),c.\u0275\u0275directiveInject(c.NgZone),c.\u0275\u0275directiveInject(h.t4),c.\u0275\u0275directiveInject(u.$s),c.\u0275\u0275directiveInject(u.tE),c.\u0275\u0275directiveInject(Fe),c.\u0275\u0275directiveInject(fe.Is,8),c.\u0275\u0275directiveInject(q,8),c.\u0275\u0275directiveInject(g.DOCUMENT))},ge.\u0275dir=c.\u0275\u0275defineDirective({type:ge,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[c.\u0275\u0275InheritDefinitionFeature]}),ge})(),Se=(()=>{class ge{constructor(ye){this._changeDetectorRef=ye,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new M.x}show(ye){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},ye)}hide(ye){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},ye)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(ye){const He=ye.toState;"hidden"===He&&!this.isVisible()&&this._onHide.next(),("visible"===He||"hidden"===He)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return ge.\u0275fac=function(ye){return new(ye||ge)(c.\u0275\u0275directiveInject(c.ChangeDetectorRef))},ge.\u0275dir=c.\u0275\u0275defineDirective({type:ge}),ge})(),re=(()=>{class ge extends Se{constructor(ye,He){super(ye),this._breakpointObserver=He,this._isHandset=this._breakpointObserver.observe(I.Breakpoints.Handset)}}return ge.\u0275fac=function(ye){return new(ye||ge)(c.\u0275\u0275directiveInject(c.ChangeDetectorRef),c.\u0275\u0275directiveInject(I.BreakpointObserver))},ge.\u0275cmp=c.\u0275\u0275defineComponent({type:ge,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(ye,He){2&ye&&c.\u0275\u0275styleProp("zoom","visible"===He._visibility?1:null)},features:[c.\u0275\u0275InheritDefinitionFeature],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(ye,He){if(1&ye&&(c.\u0275\u0275elementStart(0,"div",0),c.\u0275\u0275listener("@state.start",function(){return He._animationStart()})("@state.done",function(Et){return He._animationDone(Et)}),c.\u0275\u0275pipe(1,"async"),c.\u0275\u0275text(2),c.\u0275\u0275elementEnd()),2&ye){let dt;c.\u0275\u0275classProp("mat-tooltip-handset",null==(dt=c.\u0275\u0275pipeBind1(1,5,He._isHandset))?null:dt.matches),c.\u0275\u0275property("ngClass",He.tooltipClass)("@state",He._visibility),c.\u0275\u0275advance(2),c.\u0275\u0275textInterpolate(He.message)}},directives:[g.NgClass],pipes:[g.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:[$.tooltipState]},changeDetection:0}),ge})(),Ke=(()=>{class ge{}return ge.\u0275fac=function(ye){return new(ye||ge)},ge.\u0275mod=c.\u0275\u0275defineNgModule({type:ge}),ge.\u0275inj=c.\u0275\u0275defineInjector({providers:[ot],imports:[[u.rt,g.CommonModule,i.U8,s.MatCommonModule],s.MatCommonModule,y.ZD]}),ge})()},6360:(Le,_,l)=>{"use strict";l.r(_),l.d(_,{ANIMATION_MODULE_TYPE:()=>Vt,BrowserAnimationsModule:()=>Ni,NoopAnimationsModule:()=>Tt,\u0275AnimationRenderer:()=>In,\u0275AnimationRendererFactory:()=>Tn,\u0275BrowserAnimationBuilder:()=>F,\u0275BrowserAnimationFactory:()=>ne,\u0275InjectableAnimationEngine:()=>O});var i=l(5e3),u=l(2313),g=l(1777);function c(){return"undefined"!=typeof window&&void 0!==window.document}function s(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function y(B){switch(B.length){case 0:return new g.ZN;case 1:return B[0];default:return new g.ZE(B)}}function E(B,d,p,P,j={},de={}){const Ne=[],Ue=[];let rt=-1,mt=null;if(P.forEach(At=>{const Ut=At.offset,Zt=Ut==rt,un=Zt&&mt||{};Object.keys(At).forEach(Xt=>{let tn=Xt,dn=At[Xt];if("offset"!==Xt)switch(tn=d.normalizePropertyName(tn,Ne),dn){case g.k1:dn=j[Xt];break;case g.l3:dn=de[Xt];break;default:dn=d.normalizeStyleValue(Xt,tn,dn,Ne)}un[tn]=dn}),Zt||Ue.push(un),mt=un,rt=Ut}),Ne.length){const At="\n - ";throw new Error(`Unable to animate due to the following errors:${At}${Ne.join(At)}`)}return Ue}function w(B,d,p,P){switch(d){case"start":B.onStart(()=>P(p&&I(p,"start",B)));break;case"done":B.onDone(()=>P(p&&I(p,"done",B)));break;case"destroy":B.onDestroy(()=>P(p&&I(p,"destroy",B)))}}function I(B,d,p){const P=p.totalTime,de=h(B.element,B.triggerName,B.fromState,B.toState,d||B.phaseName,null==P?B.totalTime:P,!!p.disabled),Ne=B._data;return null!=Ne&&(de._data=Ne),de}function h(B,d,p,P,j="",de=0,Ne){return{element:B,triggerName:d,fromState:p,toState:P,phaseName:j,totalTime:de,disabled:!!Ne}}function A(B,d,p){let P;return B instanceof Map?(P=B.get(d),P||B.set(d,P=p)):(P=B[d],P||(P=B[d]=p)),P}function M(B){const d=B.indexOf(":");return[B.substring(1,d),B.substr(d+1)]}let b=(B,d)=>!1,R=(B,d,p)=>[];(s()||"undefined"!=typeof Element)&&(b=c()?(B,d)=>{for(;d&&d!==document.documentElement;){if(d===B)return!0;d=d.parentNode||d.host}return!1}:(B,d)=>B.contains(d),R=(B,d,p)=>{let P=[];if(p){const j=B.querySelectorAll(d);for(let de=0;de<j.length;de++)P.push(j[de])}else{const j=B.querySelector(d);j&&P.push(j)}return P});let $=null,ie=!1;function we(B){$||($=function pe(){return"undefined"!=typeof document?document.body:null}()||{},ie=!!$.style&&"WebkitAppearance"in $.style);let d=!0;return $.style&&!function fe(B){return"ebkit"==B.substring(1,6)}(B)&&(d=B in $.style,!d&&ie&&(d="Webkit"+B.charAt(0).toUpperCase()+B.substr(1)in $.style)),d}const _e=b,le=R;function De(B){const d={};return Object.keys(B).forEach(p=>{const P=p.replace(/([a-z])([A-Z])/g,"$1-$2");d[P]=B[p]}),d}let Fe=(()=>{class B{validateStyleProperty(p){return we(p)}matchesElement(p,P){return!1}containsElement(p,P){return _e(p,P)}query(p,P,j){return le(p,P,j)}computeStyle(p,P,j){return j||""}animate(p,P,j,de,Ne,Ue=[],rt){return new g.ZN(j,de)}}return B.\u0275fac=function(p){return new(p||B)},B.\u0275prov=i.\u0275\u0275defineInjectable({token:B,factory:B.\u0275fac}),B})(),Je=(()=>{class B{}return B.NOOP=new Fe,B})();const J="ng-enter",ce="ng-leave",Se="ng-trigger",re=".ng-trigger",Ke="ng-animating",ge=".ng-animating";function it(B){if("number"==typeof B)return B;const d=B.match(/^(-?[\.\d]+)(m?s)/);return!d||d.length<2?0:ye(parseFloat(d[1]),d[2])}function ye(B,d){return"s"===d?1e3*B:B}function He(B,d,p){return B.hasOwnProperty("duration")?B:function dt(B,d,p){let j,de=0,Ne="";if("string"==typeof B){const Ue=B.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Ue)return d.push(`The provided timing value "${B}" is invalid.`),{duration:0,delay:0,easing:""};j=ye(parseFloat(Ue[1]),Ue[2]);const rt=Ue[3];null!=rt&&(de=ye(parseFloat(rt),Ue[4]));const mt=Ue[5];mt&&(Ne=mt)}else j=B;if(!p){let Ue=!1,rt=d.length;j<0&&(d.push("Duration values below 0 are not allowed for this animation step."),Ue=!0),de<0&&(d.push("Delay values below 0 are not allowed for this animation step."),Ue=!0),Ue&&d.splice(rt,0,`The provided timing value "${B}" is invalid.`)}return{duration:j,delay:de,easing:Ne}}(B,d,p)}function Et(B,d={}){return Object.keys(B).forEach(p=>{d[p]=B[p]}),d}function Ze(B,d,p={}){if(d)for(let P in B)p[P]=B[P];else Et(B,p);return p}function Z(B,d,p){return p?d+":"+p+";":""}function me(B){let d="";for(let p=0;p<B.style.length;p++){const P=B.style.item(p);d+=Z(0,P,B.style.getPropertyValue(P))}for(const p in B.style)B.style.hasOwnProperty(p)&&!p.startsWith("_")&&(d+=Z(0,ae(p),B.style[p]));B.setAttribute("style",d)}function Me(B,d,p){B.style&&(Object.keys(d).forEach(P=>{const j=N(P);p&&!p.hasOwnProperty(P)&&(p[P]=B.style[j]),B.style[j]=d[P]}),s()&&me(B))}function Re(B,d){B.style&&(Object.keys(d).forEach(p=>{const P=N(p);B.style[P]=""}),s()&&me(B))}function ve(B){return Array.isArray(B)?1==B.length?B[0]:(0,g.vP)(B):B}const ht=new RegExp("{{\\s*(.+?)\\s*}}","g");function bt(B){let d=[];if("string"==typeof B){let p;for(;p=ht.exec(B);)d.push(p[1]);ht.lastIndex=0}return d}function Ot(B,d,p){const P=B.toString(),j=P.replace(ht,(de,Ne)=>{let Ue=d[Ne];return d.hasOwnProperty(Ne)||(p.push(`Please provide a value for the animation param ${Ne}`),Ue=""),Ue.toString()});return j==P?B:j}function lt(B){const d=[];let p=B.next();for(;!p.done;)d.push(p.value),p=B.next();return d}const Qe=/-+([a-z0-9])/g;function N(B){return B.replace(Qe,(...d)=>d[1].toUpperCase())}function ae(B){return B.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Oe(B,d){return 0===B||0===d}function ue(B,d,p){const P=Object.keys(p);if(P.length&&d.length){let de=d[0],Ne=[];if(P.forEach(Ue=>{de.hasOwnProperty(Ue)||Ne.push(Ue),de[Ue]=p[Ue]}),Ne.length)for(var j=1;j<d.length;j++){let Ue=d[j];Ne.forEach(function(rt){Ue[rt]=be(B,rt)})}}return d}function Te(B,d,p){switch(d.type){case 7:return B.visitTrigger(d,p);case 0:return B.visitState(d,p);case 1:return B.visitTransition(d,p);case 2:return B.visitSequence(d,p);case 3:return B.visitGroup(d,p);case 4:return B.visitAnimate(d,p);case 5:return B.visitKeyframes(d,p);case 6:return B.visitStyle(d,p);case 8:return B.visitReference(d,p);case 9:return B.visitAnimateChild(d,p);case 10:return B.visitAnimateRef(d,p);case 11:return B.visitQuery(d,p);case 12:return B.visitStagger(d,p);default:throw new Error(`Unable to resolve animation metadata node #${d.type}`)}}function be(B,d){return window.getComputedStyle(B)[d]}function Ce(B,d){const p=[];return"string"==typeof B?B.split(/\s*,\s*/).forEach(P=>function Ge(B,d,p){if(":"==B[0]){const rt=function tt(B,d){switch(B){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(p,P)=>parseFloat(P)>parseFloat(p);case":decrement":return(p,P)=>parseFloat(P)<parseFloat(p);default:return d.push(`The transition alias value "${B}" is not supported`),"* => *"}}(B,p);if("function"==typeof rt)return void d.push(rt);B=rt}const P=B.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==P||P.length<4)return p.push(`The provided transition expression "${B}" is not supported`),d;const j=P[1],de=P[2],Ne=P[3];d.push(wt(j,Ne));"<"==de[0]&&!("*"==j&&"*"==Ne)&&d.push(wt(Ne,j))}(P,p,d)):p.push(B),p}const ft=new Set(["true","1"]),pt=new Set(["false","0"]);function wt(B,d){const p=ft.has(B)||pt.has(B),P=ft.has(d)||pt.has(d);return(j,de)=>{let Ne="*"==B||B==j,Ue="*"==d||d==de;return!Ne&&p&&"boolean"==typeof j&&(Ne=j?ft.has(B):pt.has(B)),!Ue&&P&&"boolean"==typeof de&&(Ue=de?ft.has(d):pt.has(d)),Ne&&Ue}}const en=new RegExp("s*:selfs*,?","g");function Bt(B,d,p){return new rn(B).build(d,p)}class rn{constructor(d){this._driver=d}build(d,p){const P=new bn(p);return this._resetContextStyleTimingState(P),Te(this,ve(d),P)}_resetContextStyleTimingState(d){d.currentQuerySelector="",d.collectedStyles={},d.collectedStyles[""]={},d.currentTime=0}visitTrigger(d,p){let P=p.queryCount=0,j=p.depCount=0;const de=[],Ne=[];return"@"==d.name.charAt(0)&&p.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),d.definitions.forEach(Ue=>{if(this._resetContextStyleTimingState(p),0==Ue.type){const rt=Ue,mt=rt.name;mt.toString().split(/\s*,\s*/).forEach(At=>{rt.name=At,de.push(this.visitState(rt,p))}),rt.name=mt}else if(1==Ue.type){const rt=this.visitTransition(Ue,p);P+=rt.queryCount,j+=rt.depCount,Ne.push(rt)}else p.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:d.name,states:de,transitions:Ne,queryCount:P,depCount:j,options:null}}visitState(d,p){const P=this.visitStyle(d.styles,p),j=d.options&&d.options.params||null;if(P.containsDynamicStyles){const de=new Set,Ne=j||{};if(P.styles.forEach(Ue=>{if(on(Ue)){const rt=Ue;Object.keys(rt).forEach(mt=>{bt(rt[mt]).forEach(At=>{Ne.hasOwnProperty(At)||de.add(At)})})}}),de.size){const Ue=lt(de.values());p.errors.push(`state("${d.name}", ...) must define default values for all the following style substitutions: ${Ue.join(", ")}`)}}return{type:0,name:d.name,style:P,options:j?{params:j}:null}}visitTransition(d,p){p.queryCount=0,p.depCount=0;const P=Te(this,ve(d.animation),p);return{type:1,matchers:Ce(d.expr,p.errors),animation:P,queryCount:p.queryCount,depCount:p.depCount,options:oe(d.options)}}visitSequence(d,p){return{type:2,steps:d.steps.map(P=>Te(this,P,p)),options:oe(d.options)}}visitGroup(d,p){const P=p.currentTime;let j=0;const de=d.steps.map(Ne=>{p.currentTime=P;const Ue=Te(this,Ne,p);return j=Math.max(j,p.currentTime),Ue});return p.currentTime=j,{type:3,steps:de,options:oe(d.options)}}visitAnimate(d,p){const P=function yn(B,d){let p=null;if(B.hasOwnProperty("duration"))p=B;else if("number"==typeof B)return z(He(B,d).duration,0,"");const P=B;if(P.split(/\s+/).some(de=>"{"==de.charAt(0)&&"{"==de.charAt(1))){const de=z(0,0,"");return de.dynamic=!0,de.strValue=P,de}return p=p||He(P,d),z(p.duration,p.delay,p.easing)}(d.timings,p.errors);p.currentAnimateTimings=P;let j,de=d.styles?d.styles:(0,g.oB)({});if(5==de.type)j=this.visitKeyframes(de,p);else{let Ne=d.styles,Ue=!1;if(!Ne){Ue=!0;const mt={};P.easing&&(mt.easing=P.easing),Ne=(0,g.oB)(mt)}p.currentTime+=P.duration+P.delay;const rt=this.visitStyle(Ne,p);rt.isEmptyStep=Ue,j=rt}return p.currentAnimateTimings=null,{type:4,timings:P,style:j,options:null}}visitStyle(d,p){const P=this._makeStyleAst(d,p);return this._validateStyleAst(P,p),P}_makeStyleAst(d,p){const P=[];Array.isArray(d.styles)?d.styles.forEach(Ne=>{"string"==typeof Ne?Ne==g.l3?P.push(Ne):p.errors.push(`The provided style string value ${Ne} is not allowed.`):P.push(Ne)}):P.push(d.styles);let j=!1,de=null;return P.forEach(Ne=>{if(on(Ne)){const Ue=Ne,rt=Ue.easing;if(rt&&(de=rt,delete Ue.easing),!j)for(let mt in Ue)if(Ue[mt].toString().indexOf("{{")>=0){j=!0;break}}}),{type:6,styles:P,easing:de,offset:d.offset,containsDynamicStyles:j,options:null}}_validateStyleAst(d,p){const P=p.currentAnimateTimings;let j=p.currentTime,de=p.currentTime;P&&de>0&&(de-=P.duration+P.delay),d.styles.forEach(Ne=>{"string"!=typeof Ne&&Object.keys(Ne).forEach(Ue=>{if(!this._driver.validateStyleProperty(Ue))return void p.errors.push(`The provided animation property "${Ue}" is not a supported CSS property for animations`);const rt=p.collectedStyles[p.currentQuerySelector],mt=rt[Ue];let At=!0;mt&&(de!=j&&de>=mt.startTime&&j<=mt.endTime&&(p.errors.push(`The CSS property "${Ue}" that exists between the times of "${mt.startTime}ms" and "${mt.endTime}ms" is also being animated in a parallel animation between the times of "${de}ms" and "${j}ms"`),At=!1),de=mt.startTime),At&&(rt[Ue]={startTime:de,endTime:j}),p.options&&function Ye(B,d,p){const P=d.params||{},j=bt(B);j.length&&j.forEach(de=>{P.hasOwnProperty(de)||p.push(`Unable to resolve the local animation param ${de} in the given list of values`)})}(Ne[Ue],p.options,p.errors)})})}visitKeyframes(d,p){const P={type:5,styles:[],options:null};if(!p.currentAnimateTimings)return p.errors.push("keyframes() must be placed inside of a call to animate()"),P;let de=0;const Ne=[];let Ue=!1,rt=!1,mt=0;const At=d.steps.map(ee=>{const U=this._makeStyleAst(ee,p);let Y=null!=U.offset?U.offset:function Qt(B){if("string"==typeof B)return null;let d=null;if(Array.isArray(B))B.forEach(p=>{if(on(p)&&p.hasOwnProperty("offset")){const P=p;d=parseFloat(P.offset),delete P.offset}});else if(on(B)&&B.hasOwnProperty("offset")){const p=B;d=parseFloat(p.offset),delete p.offset}return d}(U.styles),te=0;return null!=Y&&(de++,te=U.offset=Y),rt=rt||te<0||te>1,Ue=Ue||te<mt,mt=te,Ne.push(te),U});rt&&p.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),Ue&&p.errors.push("Please ensure that all keyframe offsets are in order");const Ut=d.steps.length;let Zt=0;de>0&&de<Ut?p.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==de&&(Zt=1/(Ut-1));const un=Ut-1,Xt=p.currentTime,tn=p.currentAnimateTimings,dn=tn.duration;return At.forEach((ee,U)=>{const Y=Zt>0?U==un?1:Zt*U:Ne[U],te=Y*dn;p.currentTime=Xt+tn.delay+te,tn.duration=te,this._validateStyleAst(ee,p),ee.offset=Y,P.styles.push(ee)}),P}visitReference(d,p){return{type:8,animation:Te(this,ve(d.animation),p),options:oe(d.options)}}visitAnimateChild(d,p){return p.depCount++,{type:9,options:oe(d.options)}}visitAnimateRef(d,p){return{type:10,animation:this.visitReference(d.animation,p),options:oe(d.options)}}visitQuery(d,p){const P=p.currentQuerySelector,j=d.options||{};p.queryCount++,p.currentQuery=d;const[de,Ne]=function Wt(B){const d=!!B.split(/\s*,\s*/).find(p=>":self"==p);return d&&(B=B.replace(en,"")),B=B.replace(/@\*/g,re).replace(/@\w+/g,p=>re+"-"+p.substr(1)).replace(/:animating/g,ge),[B,d]}(d.selector);p.currentQuerySelector=P.length?P+" "+de:de,A(p.collectedStyles,p.currentQuerySelector,{});const Ue=Te(this,ve(d.animation),p);return p.currentQuery=null,p.currentQuerySelector=P,{type:11,selector:de,limit:j.limit||0,optional:!!j.optional,includeSelf:Ne,animation:Ue,originalSelector:d.selector,options:oe(d.options)}}visitStagger(d,p){p.currentQuery||p.errors.push("stagger() can only be used inside of query()");const P="full"===d.timings?{duration:0,delay:0,easing:"full"}:He(d.timings,p.errors,!0);return{type:12,animation:Te(this,ve(d.animation),p),timings:P,options:null}}}class bn{constructor(d){this.errors=d,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 on(B){return!Array.isArray(B)&&"object"==typeof B}function oe(B){return B?(B=Et(B)).params&&(B.params=function Mt(B){return B?Et(B):null}(B.params)):B={},B}function z(B,d,p){return{duration:B,delay:d,easing:p}}function m(B,d,p,P,j,de,Ne=null,Ue=!1){return{type:1,element:B,keyframes:d,preStyleProps:p,postStyleProps:P,duration:j,delay:de,totalTime:j+de,easing:Ne,subTimeline:Ue}}class C{constructor(){this._map=new Map}get(d){return this._map.get(d)||[]}append(d,p){let P=this._map.get(d);P||this._map.set(d,P=[]),P.push(...p)}has(d){return this._map.has(d)}clear(){this._map.clear()}}const qe=new RegExp(":enter","g"),zt=new RegExp(":leave","g");function pn(B,d,p,P,j,de={},Ne={},Ue,rt,mt=[]){return(new Be).buildKeyframes(B,d,p,P,j,de,Ne,Ue,rt,mt)}class Be{buildKeyframes(d,p,P,j,de,Ne,Ue,rt,mt,At=[]){mt=mt||new C;const Ut=new he(d,p,mt,j,de,At,[]);Ut.options=rt,Ut.currentTimeline.setStyles([Ne],null,Ut.errors,rt),Te(this,P,Ut);const Zt=Ut.timelines.filter(un=>un.containsAnimation());if(Zt.length&&Object.keys(Ue).length){const un=Zt[Zt.length-1];un.allowOnlyTimelineStyles()||un.setStyles([Ue],null,Ut.errors,rt)}return Zt.length?Zt.map(un=>un.buildKeyframes()):[m(p,[],[],[],0,0,"",!1)]}visitTrigger(d,p){}visitState(d,p){}visitTransition(d,p){}visitAnimateChild(d,p){const P=p.subInstructions.get(p.element);if(P){const j=p.createSubContext(d.options),de=p.currentTimeline.currentTime,Ne=this._visitSubInstructions(P,j,j.options);de!=Ne&&p.transformIntoNewTimeline(Ne)}p.previousNode=d}visitAnimateRef(d,p){const P=p.createSubContext(d.options);P.transformIntoNewTimeline(),this.visitReference(d.animation,P),p.transformIntoNewTimeline(P.currentTimeline.currentTime),p.previousNode=d}_visitSubInstructions(d,p,P){let de=p.currentTimeline.currentTime;const Ne=null!=P.duration?it(P.duration):null,Ue=null!=P.delay?it(P.delay):null;return 0!==Ne&&d.forEach(rt=>{const mt=p.appendInstructionToTimeline(rt,Ne,Ue);de=Math.max(de,mt.duration+mt.delay)}),de}visitReference(d,p){p.updateOptions(d.options,!0),Te(this,d.animation,p),p.previousNode=d}visitSequence(d,p){const P=p.subContextCount;let j=p;const de=d.options;if(de&&(de.params||de.delay)&&(j=p.createSubContext(de),j.transformIntoNewTimeline(),null!=de.delay)){6==j.previousNode.type&&(j.currentTimeline.snapshotCurrentStyles(),j.previousNode=Ve);const Ne=it(de.delay);j.delayNextStep(Ne)}d.steps.length&&(d.steps.forEach(Ne=>Te(this,Ne,j)),j.currentTimeline.applyStylesToKeyframe(),j.subContextCount>P&&j.transformIntoNewTimeline()),p.previousNode=d}visitGroup(d,p){const P=[];let j=p.currentTimeline.currentTime;const de=d.options&&d.options.delay?it(d.options.delay):0;d.steps.forEach(Ne=>{const Ue=p.createSubContext(d.options);de&&Ue.delayNextStep(de),Te(this,Ne,Ue),j=Math.max(j,Ue.currentTimeline.currentTime),P.push(Ue.currentTimeline)}),P.forEach(Ne=>p.currentTimeline.mergeTimelineCollectedStyles(Ne)),p.transformIntoNewTimeline(j),p.previousNode=d}_visitTiming(d,p){if(d.dynamic){const P=d.strValue;return He(p.params?Ot(P,p.params,p.errors):P,p.errors)}return{duration:d.duration,delay:d.delay,easing:d.easing}}visitAnimate(d,p){const P=p.currentAnimateTimings=this._visitTiming(d.timings,p),j=p.currentTimeline;P.delay&&(p.incrementTime(P.delay),j.snapshotCurrentStyles());const de=d.style;5==de.type?this.visitKeyframes(de,p):(p.incrementTime(P.duration),this.visitStyle(de,p),j.applyStylesToKeyframe()),p.currentAnimateTimings=null,p.previousNode=d}visitStyle(d,p){const P=p.currentTimeline,j=p.currentAnimateTimings;!j&&P.getCurrentStyleProperties().length&&P.forwardFrame();const de=j&&j.easing||d.easing;d.isEmptyStep?P.applyEmptyStep(de):P.setStyles(d.styles,de,p.errors,p.options),p.previousNode=d}visitKeyframes(d,p){const P=p.currentAnimateTimings,j=p.currentTimeline.duration,de=P.duration,Ue=p.createSubContext().currentTimeline;Ue.easing=P.easing,d.styles.forEach(rt=>{Ue.forwardTime((rt.offset||0)*de),Ue.setStyles(rt.styles,rt.easing,p.errors,p.options),Ue.applyStylesToKeyframe()}),p.currentTimeline.mergeTimelineCollectedStyles(Ue),p.transformIntoNewTimeline(j+de),p.previousNode=d}visitQuery(d,p){const P=p.currentTimeline.currentTime,j=d.options||{},de=j.delay?it(j.delay):0;de&&(6===p.previousNode.type||0==P&&p.currentTimeline.getCurrentStyleProperties().length)&&(p.currentTimeline.snapshotCurrentStyles(),p.previousNode=Ve);let Ne=P;const Ue=p.invokeQuery(d.selector,d.originalSelector,d.limit,d.includeSelf,!!j.optional,p.errors);p.currentQueryTotal=Ue.length;let rt=null;Ue.forEach((mt,At)=>{p.currentQueryIndex=At;const Ut=p.createSubContext(d.options,mt);de&&Ut.delayNextStep(de),mt===p.element&&(rt=Ut.currentTimeline),Te(this,d.animation,Ut),Ut.currentTimeline.applyStylesToKeyframe(),Ne=Math.max(Ne,Ut.currentTimeline.currentTime)}),p.currentQueryIndex=0,p.currentQueryTotal=0,p.transformIntoNewTimeline(Ne),rt&&(p.currentTimeline.mergeTimelineCollectedStyles(rt),p.currentTimeline.snapshotCurrentStyles()),p.previousNode=d}visitStagger(d,p){const P=p.parentContext,j=p.currentTimeline,de=d.timings,Ne=Math.abs(de.duration),Ue=Ne*(p.currentQueryTotal-1);let rt=Ne*p.currentQueryIndex;switch(de.duration<0?"reverse":de.easing){case"reverse":rt=Ue-rt;break;case"full":rt=P.currentStaggerTime}const At=p.currentTimeline;rt&&At.delayNextStep(rt);const Ut=At.currentTime;Te(this,d.animation,p),p.previousNode=d,P.currentStaggerTime=j.currentTime-Ut+(j.startTime-P.currentTimeline.startTime)}}const Ve={};class he{constructor(d,p,P,j,de,Ne,Ue,rt){this._driver=d,this.element=p,this.subInstructions=P,this._enterClassName=j,this._leaveClassName=de,this.errors=Ne,this.timelines=Ue,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Ve,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=rt||new $e(this._driver,p,0),Ue.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(d,p){if(!d)return;const P=d;let j=this.options;null!=P.duration&&(j.duration=it(P.duration)),null!=P.delay&&(j.delay=it(P.delay));const de=P.params;if(de){let Ne=j.params;Ne||(Ne=this.options.params={}),Object.keys(de).forEach(Ue=>{(!p||!Ne.hasOwnProperty(Ue))&&(Ne[Ue]=Ot(de[Ue],Ne,this.errors))})}}_copyOptions(){const d={};if(this.options){const p=this.options.params;if(p){const P=d.params={};Object.keys(p).forEach(j=>{P[j]=p[j]})}}return d}createSubContext(d=null,p,P){const j=p||this.element,de=new he(this._driver,j,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(j,P||0));return de.previousNode=this.previousNode,de.currentAnimateTimings=this.currentAnimateTimings,de.options=this._copyOptions(),de.updateOptions(d),de.currentQueryIndex=this.currentQueryIndex,de.currentQueryTotal=this.currentQueryTotal,de.parentContext=this,this.subContextCount++,de}transformIntoNewTimeline(d){return this.previousNode=Ve,this.currentTimeline=this.currentTimeline.fork(this.element,d),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(d,p,P){const j={duration:null!=p?p:d.duration,delay:this.currentTimeline.currentTime+(null!=P?P:0)+d.delay,easing:""},de=new ut(this._driver,d.element,d.keyframes,d.preStyleProps,d.postStyleProps,j,d.stretchStartingKeyframe);return this.timelines.push(de),j}incrementTime(d){this.currentTimeline.forwardTime(this.currentTimeline.duration+d)}delayNextStep(d){d>0&&this.currentTimeline.delayNextStep(d)}invokeQuery(d,p,P,j,de,Ne){let Ue=[];if(j&&Ue.push(this.element),d.length>0){d=(d=d.replace(qe,"."+this._enterClassName)).replace(zt,"."+this._leaveClassName);let mt=this._driver.query(this.element,d,1!=P);0!==P&&(mt=P<0?mt.slice(mt.length+P,mt.length):mt.slice(0,P)),Ue.push(...mt)}return!de&&0==Ue.length&&Ne.push(`\`query("${p}")\` returned zero elements. (Use \`query("${p}", { optional: true })\` if you wish to allow this.)`),Ue}}class $e{constructor(d,p,P,j){this._driver=d,this.element=p,this.startTime=P,this._elementTimelineStylesLookup=j,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(p),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(p,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(d){const p=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||p?(this.forwardTime(this.currentTime+d),p&&this.snapshotCurrentStyles()):this.startTime+=d}fork(d,p){return this.applyStylesToKeyframe(),new $e(this._driver,d,p||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(d){this.applyStylesToKeyframe(),this.duration=d,this._loadKeyframe()}_updateStyle(d,p){this._localTimelineStyles[d]=p,this._globalTimelineStyles[d]=p,this._styleSummary[d]={time:this.currentTime,value:p}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(d){d&&(this._previousKeyframe.easing=d),Object.keys(this._globalTimelineStyles).forEach(p=>{this._backFill[p]=this._globalTimelineStyles[p]||g.l3,this._currentKeyframe[p]=g.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(d,p,P,j){p&&(this._previousKeyframe.easing=p);const de=j&&j.params||{},Ne=function kt(B,d){const p={};let P;return B.forEach(j=>{"*"===j?(P=P||Object.keys(d),P.forEach(de=>{p[de]=g.l3})):Ze(j,!1,p)}),p}(d,this._globalTimelineStyles);Object.keys(Ne).forEach(Ue=>{const rt=Ot(Ne[Ue],de,P);this._pendingStyles[Ue]=rt,this._localTimelineStyles.hasOwnProperty(Ue)||(this._backFill[Ue]=this._globalTimelineStyles.hasOwnProperty(Ue)?this._globalTimelineStyles[Ue]:g.l3),this._updateStyle(Ue,rt)})}applyStylesToKeyframe(){const d=this._pendingStyles,p=Object.keys(d);0!=p.length&&(this._pendingStyles={},p.forEach(P=>{this._currentKeyframe[P]=d[P]}),Object.keys(this._localTimelineStyles).forEach(P=>{this._currentKeyframe.hasOwnProperty(P)||(this._currentKeyframe[P]=this._localTimelineStyles[P])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(d=>{const p=this._localTimelineStyles[d];this._pendingStyles[d]=p,this._updateStyle(d,p)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const d=[];for(let p in this._currentKeyframe)d.push(p);return d}mergeTimelineCollectedStyles(d){Object.keys(d._styleSummary).forEach(p=>{const P=this._styleSummary[p],j=d._styleSummary[p];(!P||j.time>P.time)&&this._updateStyle(p,j.value)})}buildKeyframes(){this.applyStylesToKeyframe();const d=new Set,p=new Set,P=1===this._keyframes.size&&0===this.duration;let j=[];this._keyframes.forEach((Ue,rt)=>{const mt=Ze(Ue,!0);Object.keys(mt).forEach(At=>{const Ut=mt[At];Ut==g.k1?d.add(At):Ut==g.l3&&p.add(At)}),P||(mt.offset=rt/this.duration),j.push(mt)});const de=d.size?lt(d.values()):[],Ne=p.size?lt(p.values()):[];if(P){const Ue=j[0],rt=Et(Ue);Ue.offset=0,rt.offset=1,j=[Ue,rt]}return m(this.element,j,de,Ne,this.duration,this.startTime,this.easing,!1)}}class ut extends $e{constructor(d,p,P,j,de,Ne,Ue=!1){super(d,p,Ne.delay),this.keyframes=P,this.preStyleProps=j,this.postStyleProps=de,this._stretchStartingKeyframe=Ue,this.timings={duration:Ne.duration,delay:Ne.delay,easing:Ne.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let d=this.keyframes,{delay:p,duration:P,easing:j}=this.timings;if(this._stretchStartingKeyframe&&p){const de=[],Ne=P+p,Ue=p/Ne,rt=Ze(d[0],!1);rt.offset=0,de.push(rt);const mt=Ze(d[0],!1);mt.offset=Lt(Ue),de.push(mt);const At=d.length-1;for(let Ut=1;Ut<=At;Ut++){let Zt=Ze(d[Ut],!1);Zt.offset=Lt((p+Zt.offset*P)/Ne),de.push(Zt)}P=Ne,p=0,j="",d=de}return m(this.element,d,this.preStyleProps,this.postStyleProps,P,p,j,!0)}}function Lt(B,d=3){const p=Math.pow(10,d-1);return Math.round(B*p)/p}class Dn{}class di extends Dn{normalizePropertyName(d,p){return N(d)}normalizeStyleValue(d,p,P,j){let de="";const Ne=P.toString().trim();if(Xn[p]&&0!==P&&"0"!==P)if("number"==typeof P)de="px";else{const Ue=P.match(/^[+-]?[\d\.]+([a-z]*)$/);Ue&&0==Ue[1].length&&j.push(`Please provide a CSS unit value for ${d}:${P}`)}return Ne+de}}const Xn=(()=>function Nn(B){const d={};return B.forEach(p=>d[p]=!0),d}("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(B,d,p,P,j,de,Ne,Ue,rt,mt,At,Ut,Zt){return{type:0,element:B,triggerName:d,isRemovalTransition:j,fromState:p,fromStyles:de,toState:P,toStyles:Ne,timelines:Ue,queriedElements:rt,preStyleProps:mt,postStyleProps:At,totalTime:Ut,errors:Zt}}const Bn={};class H{constructor(d,p,P){this._triggerName=d,this.ast=p,this._stateStyles=P}match(d,p,P,j){return function Ie(B,d,p,P,j){return B.some(de=>de(d,p,P,j))}(this.ast.matchers,d,p,P,j)}buildStyles(d,p,P){const j=this._stateStyles["*"],de=this._stateStyles[d],Ne=j?j.buildStyles(p,P):{};return de?de.buildStyles(p,P):Ne}build(d,p,P,j,de,Ne,Ue,rt,mt,At){const Ut=[],Zt=this.ast.options&&this.ast.options.params||Bn,Xt=this.buildStyles(P,Ue&&Ue.params||Bn,Ut),tn=rt&&rt.params||Bn,dn=this.buildStyles(j,tn,Ut),ee=new Set,U=new Map,Y=new Map,te="void"===j,xe={params:Object.assign(Object.assign({},Zt),tn)},je=At?[]:pn(d,p,this.ast.animation,de,Ne,Xt,dn,xe,mt,Ut);let et=0;if(je.forEach(_t=>{et=Math.max(_t.duration+_t.delay,et)}),Ut.length)return zn(p,this._triggerName,P,j,te,Xt,dn,[],[],U,Y,et,Ut);je.forEach(_t=>{const Ht=_t.element,Gt=A(U,Ht,{});_t.preStyleProps.forEach(an=>Gt[an]=!0);const _n=A(Y,Ht,{});_t.postStyleProps.forEach(an=>_n[an]=!0),Ht!==p&&ee.add(Ht)});const yt=lt(ee.values());return zn(p,this._triggerName,P,j,te,Xt,dn,je,yt,U,Y,et)}}class W{constructor(d,p,P){this.styles=d,this.defaultParams=p,this.normalizer=P}buildStyles(d,p){const P={},j=Et(this.defaultParams);return Object.keys(d).forEach(de=>{const Ne=d[de];null!=Ne&&(j[de]=Ne)}),this.styles.styles.forEach(de=>{if("string"!=typeof de){const Ne=de;Object.keys(Ne).forEach(Ue=>{let rt=Ne[Ue];rt.length>1&&(rt=Ot(rt,j,p));const mt=this.normalizer.normalizePropertyName(Ue,p);rt=this.normalizer.normalizeStyleValue(Ue,mt,rt,p),P[mt]=rt})}}),P}}class Xe{constructor(d,p,P){this.name=d,this.ast=p,this._normalizer=P,this.transitionFactories=[],this.states={},p.states.forEach(j=>{this.states[j.name]=new W(j.style,j.options&&j.options.params||{},P)}),St(this.states,"true","1"),St(this.states,"false","0"),p.transitions.forEach(j=>{this.transitionFactories.push(new H(d,j,this.states))}),this.fallbackTransition=function st(B,d,p){return new H(B,{type:1,animation:{type:2,steps:[],options:null},matchers:[(Ne,Ue)=>!0],options:null,queryCount:0,depCount:0},d)}(d,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(d,p,P,j){return this.transitionFactories.find(Ne=>Ne.match(d,p,P,j))||null}matchStyles(d,p,P){return this.fallbackTransition.buildStyles(d,p,P)}}function St(B,d,p){B.hasOwnProperty(d)?B.hasOwnProperty(p)||(B[p]=B[d]):B.hasOwnProperty(p)&&(B[d]=B[p])}const Nt=new C;class Jt{constructor(d,p,P){this.bodyNode=d,this._driver=p,this._normalizer=P,this._animations={},this._playersById={},this.players=[]}register(d,p){const P=[],j=Bt(this._driver,p,P);if(P.length)throw new Error(`Unable to build the animation due to the following errors: ${P.join("\n")}`);this._animations[d]=j}_buildPlayer(d,p,P){const j=d.element,de=E(0,this._normalizer,0,d.keyframes,p,P);return this._driver.animate(j,de,d.duration,d.delay,d.easing,[],!0)}create(d,p,P={}){const j=[],de=this._animations[d];let Ne;const Ue=new Map;if(de?(Ne=pn(this._driver,p,de,J,ce,{},{},P,Nt,j),Ne.forEach(At=>{const Ut=A(Ue,At.element,{});At.postStyleProps.forEach(Zt=>Ut[Zt]=null)})):(j.push("The requested animation doesn't exist or has already been destroyed"),Ne=[]),j.length)throw new Error(`Unable to create the animation due to the following errors: ${j.join("\n")}`);Ue.forEach((At,Ut)=>{Object.keys(At).forEach(Zt=>{At[Zt]=this._driver.computeStyle(Ut,Zt,g.l3)})});const mt=y(Ne.map(At=>{const Ut=Ue.get(At.element);return this._buildPlayer(At,{},Ut)}));return this._playersById[d]=mt,mt.onDestroy(()=>this.destroy(d)),this.players.push(mt),mt}destroy(d){const p=this._getPlayer(d);p.destroy(),delete this._playersById[d];const P=this.players.indexOf(p);P>=0&&this.players.splice(P,1)}_getPlayer(d){const p=this._playersById[d];if(!p)throw new Error(`Unable to find the timeline player referenced by ${d}`);return p}listen(d,p,P,j){const de=h(p,"","","");return w(this._getPlayer(d),P,de,j),()=>{}}command(d,p,P,j){if("register"==P)return void this.register(d,j[0]);if("create"==P)return void this.create(d,p,j[0]||{});const de=this._getPlayer(d);switch(P){case"play":de.play();break;case"pause":de.pause();break;case"reset":de.reset();break;case"restart":de.restart();break;case"finish":de.finish();break;case"init":de.init();break;case"setPosition":de.setPosition(parseFloat(j[0]));break;case"destroy":this.destroy(d)}}}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(d,p=""){this.namespaceId=p;const P=d&&d.hasOwnProperty("value");if(this.value=function hi(B){return null!=B?B:null}(P?d.value:d),P){const de=Et(d);delete de.value,this.options=de}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(d){const p=d.params;if(p){const P=this.options.params;Object.keys(p).forEach(j=>{null==P[j]&&(P[j]=p[j])})}}}const ni="void",li=new mn(ni);class Kn{constructor(d,p,P){this.id=d,this.hostElement=p,this._engine=P,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+d,Zn(p,this._hostClassName)}listen(d,p,P,j){if(!this._triggers.hasOwnProperty(p))throw new Error(`Unable to listen on the animation trigger event "${P}" because the animation trigger "${p}" doesn't exist!`);if(null==P||0==P.length)throw new Error(`Unable to listen on the animation trigger "${p}" because the provided event is undefined!`);if(!function Sr(B){return"start"==B||"done"==B}(P))throw new Error(`The provided animation trigger event "${P}" for the animation trigger "${p}" is not supported!`);const de=A(this._elementListeners,d,[]),Ne={name:p,phase:P,callback:j};de.push(Ne);const Ue=A(this._engine.statesByElement,d,{});return Ue.hasOwnProperty(p)||(Zn(d,Se),Zn(d,Se+"-"+p),Ue[p]=li),()=>{this._engine.afterFlush(()=>{const rt=de.indexOf(Ne);rt>=0&&de.splice(rt,1),this._triggers[p]||delete Ue[p]})}}register(d,p){return!this._triggers[d]&&(this._triggers[d]=p,!0)}_getTrigger(d){const p=this._triggers[d];if(!p)throw new Error(`The provided animation trigger "${d}" has not been registered!`);return p}trigger(d,p,P,j=!0){const de=this._getTrigger(p),Ne=new Ci(this.id,p,d);let Ue=this._engine.statesByElement.get(d);Ue||(Zn(d,Se),Zn(d,Se+"-"+p),this._engine.statesByElement.set(d,Ue={}));let rt=Ue[p];const mt=new mn(P,this.id);if(!(P&&P.hasOwnProperty("value"))&&rt&&mt.absorbOptions(rt.options),Ue[p]=mt,rt||(rt=li),mt.value!==ni&&rt.value===mt.value){if(!function Ir(B,d){const p=Object.keys(B),P=Object.keys(d);if(p.length!=P.length)return!1;for(let j=0;j<p.length;j++){const de=p[j];if(!d.hasOwnProperty(de)||B[de]!==d[de])return!1}return!0}(rt.params,mt.params)){const tn=[],dn=de.matchStyles(rt.value,rt.params,tn),ee=de.matchStyles(mt.value,mt.params,tn);tn.length?this._engine.reportError(tn):this._engine.afterFlush(()=>{Re(d,dn),Me(d,ee)})}return}const Zt=A(this._engine.playersByElement,d,[]);Zt.forEach(tn=>{tn.namespaceId==this.id&&tn.triggerName==p&&tn.queued&&tn.destroy()});let un=de.matchTransition(rt.value,mt.value,d,mt.params),Xt=!1;if(!un){if(!j)return;un=de.fallbackTransition,Xt=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:d,triggerName:p,transition:un,fromState:rt,toState:mt,player:Ne,isFallbackTransition:Xt}),Xt||(Zn(d,vn),Ne.onStart(()=>{Ei(d,vn)})),Ne.onDone(()=>{let tn=this.players.indexOf(Ne);tn>=0&&this.players.splice(tn,1);const dn=this._engine.playersByElement.get(d);if(dn){let ee=dn.indexOf(Ne);ee>=0&&dn.splice(ee,1)}}),this.players.push(Ne),Zt.push(Ne),Ne}deregister(d){delete this._triggers[d],this._engine.statesByElement.forEach((p,P)=>{delete p[d]}),this._elementListeners.forEach((p,P)=>{this._elementListeners.set(P,p.filter(j=>j.name!=d))})}clearElementCache(d){this._engine.statesByElement.delete(d),this._elementListeners.delete(d);const p=this._engine.playersByElement.get(d);p&&(p.forEach(P=>P.destroy()),this._engine.playersByElement.delete(d))}_signalRemovalForInnerTriggers(d,p){const P=this._engine.driver.query(d,re,!0);P.forEach(j=>{if(j[xn])return;const de=this._engine.fetchNamespacesByElement(j);de.size?de.forEach(Ne=>Ne.triggerLeaveAnimation(j,p,!1,!0)):this.clearElementCache(j)}),this._engine.afterFlushAnimationsDone(()=>P.forEach(j=>this.clearElementCache(j)))}triggerLeaveAnimation(d,p,P,j){const de=this._engine.statesByElement.get(d),Ne=new Map;if(de){const Ue=[];if(Object.keys(de).forEach(rt=>{if(Ne.set(rt,de[rt].value),this._triggers[rt]){const mt=this.trigger(d,rt,ni,j);mt&&Ue.push(mt)}}),Ue.length)return this._engine.markElementAsRemoved(this.id,d,!0,p,Ne),P&&y(Ue).onDone(()=>this._engine.processLeaveNode(d)),!0}return!1}prepareLeaveAnimationListeners(d){const p=this._elementListeners.get(d),P=this._engine.statesByElement.get(d);if(p&&P){const j=new Set;p.forEach(de=>{const Ne=de.name;if(j.has(Ne))return;j.add(Ne);const rt=this._triggers[Ne].fallbackTransition,mt=P[Ne]||li,At=new mn(ni),Ut=new Ci(this.id,Ne,d);this._engine.totalQueuedPlayers++,this._queue.push({element:d,triggerName:Ne,transition:rt,fromState:mt,toState:At,player:Ut,isFallbackTransition:!0})})}}removeNode(d,p){const P=this._engine;if(d.childElementCount&&this._signalRemovalForInnerTriggers(d,p),this.triggerLeaveAnimation(d,p,!0))return;let j=!1;if(P.totalAnimations){const de=P.players.length?P.playersByQueriedElement.get(d):[];if(de&&de.length)j=!0;else{let Ne=d;for(;Ne=Ne.parentNode;)if(P.statesByElement.get(Ne)){j=!0;break}}}if(this.prepareLeaveAnimationListeners(d),j)P.markElementAsRemoved(this.id,d,!1,p);else{const de=d[xn];(!de||de===kn)&&(P.afterFlush(()=>this.clearElementCache(d)),P.destroyInnerAnimations(d),P._onRemovalComplete(d,p))}}insertNode(d,p){Zn(d,this._hostClassName)}drainQueuedTransitions(d){const p=[];return this._queue.forEach(P=>{const j=P.player;if(j.destroyed)return;const de=P.element,Ne=this._elementListeners.get(de);Ne&&Ne.forEach(Ue=>{if(Ue.name==P.triggerName){const rt=h(de,P.triggerName,P.fromState.value,P.toState.value);rt._data=d,w(P.player,Ue.phase,rt,Ue.callback)}}),j.markedForDestroy?this._engine.afterFlush(()=>{j.destroy()}):p.push(P)}),this._queue=[],p.sort((P,j)=>{const de=P.transition.ast.depCount,Ne=j.transition.ast.depCount;return 0==de||0==Ne?de-Ne:this._engine.driver.containsElement(P.element,j.element)?1:-1})}destroy(d){this.players.forEach(p=>p.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,d)}elementContainsData(d){let p=!1;return this._elementListeners.has(d)&&(p=!0),p=!!this._queue.find(P=>P.element===d)||p,p}}class Gn{constructor(d,p,P){this.bodyNode=d,this.driver=p,this._normalizer=P,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=(j,de)=>{}}_onRemovalComplete(d,p){this.onRemovalComplete(d,p)}get queuedPlayers(){const d=[];return this._namespaceList.forEach(p=>{p.players.forEach(P=>{P.queued&&d.push(P)})}),d}createNamespace(d,p){const P=new Kn(d,p,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,p)?this._balanceNamespaceList(P,p):(this.newHostElements.set(p,P),this.collectEnterElement(p)),this._namespaceLookup[d]=P}_balanceNamespaceList(d,p){const P=this._namespaceList.length-1;if(P>=0){let j=!1;for(let de=P;de>=0;de--)if(this.driver.containsElement(this._namespaceList[de].hostElement,p)){this._namespaceList.splice(de+1,0,d),j=!0;break}j||this._namespaceList.splice(0,0,d)}else this._namespaceList.push(d);return this.namespacesByHostElement.set(p,d),d}register(d,p){let P=this._namespaceLookup[d];return P||(P=this.createNamespace(d,p)),P}registerTrigger(d,p,P){let j=this._namespaceLookup[d];j&&j.register(p,P)&&this.totalAnimations++}destroy(d,p){if(!d)return;const P=this._fetchNamespace(d);this.afterFlush(()=>{this.namespacesByHostElement.delete(P.hostElement),delete this._namespaceLookup[d];const j=this._namespaceList.indexOf(P);j>=0&&this._namespaceList.splice(j,1)}),this.afterFlushAnimationsDone(()=>P.destroy(p))}_fetchNamespace(d){return this._namespaceLookup[d]}fetchNamespacesByElement(d){const p=new Set,P=this.statesByElement.get(d);if(P){const j=Object.keys(P);for(let de=0;de<j.length;de++){const Ne=P[j[de]].namespaceId;if(Ne){const Ue=this._fetchNamespace(Ne);Ue&&p.add(Ue)}}}return p}trigger(d,p,P,j){if(Wn(p)){const de=this._fetchNamespace(d);if(de)return de.trigger(p,P,j),!0}return!1}insertNode(d,p,P,j){if(!Wn(p))return;const de=p[xn];if(de&&de.setForRemoval){de.setForRemoval=!1,de.setForMove=!0;const Ne=this.collectedLeaveElements.indexOf(p);Ne>=0&&this.collectedLeaveElements.splice(Ne,1)}if(d){const Ne=this._fetchNamespace(d);Ne&&Ne.insertNode(p,P)}j&&this.collectEnterElement(p)}collectEnterElement(d){this.collectedEnterElements.push(d)}markElementAsDisabled(d,p){p?this.disabledNodes.has(d)||(this.disabledNodes.add(d),Zn(d,On)):this.disabledNodes.has(d)&&(this.disabledNodes.delete(d),Ei(d,On))}removeNode(d,p,P,j){if(Wn(p)){const de=d?this._fetchNamespace(d):null;if(de?de.removeNode(p,j):this.markElementAsRemoved(d,p,!1,j),P){const Ne=this.namespacesByHostElement.get(p);Ne&&Ne.id!==d&&Ne.removeNode(p,j)}}else this._onRemovalComplete(p,j)}markElementAsRemoved(d,p,P,j,de){this.collectedLeaveElements.push(p),p[xn]={namespaceId:d,setForRemoval:j,hasAnimation:P,removedBeforeQueried:!1,previousTriggersValues:de}}listen(d,p,P,j,de){return Wn(p)?this._fetchNamespace(d).listen(p,P,j,de):()=>{}}_buildInstruction(d,p,P,j,de){return d.transition.build(this.driver,d.element,d.fromState.value,d.toState.value,P,j,d.fromState.options,d.toState.options,p,de)}destroyInnerAnimations(d){let p=this.driver.query(d,re,!0);p.forEach(P=>this.destroyActiveAnimationsForElement(P)),0!=this.playersByQueriedElement.size&&(p=this.driver.query(d,ge,!0),p.forEach(P=>this.finishActiveQueriedAnimationOnElement(P)))}destroyActiveAnimationsForElement(d){const p=this.playersByElement.get(d);p&&p.forEach(P=>{P.queued?P.markedForDestroy=!0:P.destroy()})}finishActiveQueriedAnimationOnElement(d){const p=this.playersByQueriedElement.get(d);p&&p.forEach(P=>P.finish())}whenRenderingDone(){return new Promise(d=>{if(this.players.length)return y(this.players).onDone(()=>d());d()})}processLeaveNode(d){var p;const P=d[xn];if(P&&P.setForRemoval){if(d[xn]=kn,P.namespaceId){this.destroyInnerAnimations(d);const j=this._fetchNamespace(P.namespaceId);j&&j.clearElementCache(d)}this._onRemovalComplete(d,P.setForRemoval)}(null===(p=d.classList)||void 0===p?void 0:p.contains(On))&&this.markElementAsDisabled(d,!1),this.driver.query(d,".ng-animate-disabled",!0).forEach(j=>{this.markElementAsDisabled(j,!1)})}flush(d=-1){let p=[];if(this.newHostElements.size&&(this.newHostElements.forEach((P,j)=>this._balanceNamespaceList(P,j)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let P=0;P<this.collectedEnterElements.length;P++)Zn(this.collectedEnterElements[P],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const P=[];try{p=this._flushAnimations(P,d)}finally{for(let j=0;j<P.length;j++)P[j]()}}else for(let P=0;P<this.collectedLeaveElements.length;P++)this.processLeaveNode(this.collectedLeaveElements[P]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(P=>P()),this._flushFns=[],this._whenQuietFns.length){const P=this._whenQuietFns;this._whenQuietFns=[],p.length?y(p).onDone(()=>{P.forEach(j=>j())}):P.forEach(j=>j())}}reportError(d){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${d.join("\n")}`)}_flushAnimations(d,p){const P=new C,j=[],de=new Map,Ne=[],Ue=new Map,rt=new Map,mt=new Map,At=new Set;this.disabledNodes.forEach(It=>{At.add(It);const xt=this.driver.query(It,".ng-animate-queued",!0);for(let Yt=0;Yt<xt.length;Yt++)At.add(xt[Yt])});const Ut=this.bodyNode,Zt=Array.from(this.statesByElement.keys()),un=Qn(Zt,this.collectedEnterElements),Xt=new Map;let tn=0;un.forEach((It,xt)=>{const Yt=J+tn++;Xt.set(xt,Yt),It.forEach(sn=>Zn(sn,Yt))});const dn=[],ee=new Set,U=new Set;for(let It=0;It<this.collectedLeaveElements.length;It++){const xt=this.collectedLeaveElements[It],Yt=xt[xn];Yt&&Yt.setForRemoval&&(dn.push(xt),ee.add(xt),Yt.hasAnimation?this.driver.query(xt,".ng-star-inserted",!0).forEach(sn=>ee.add(sn)):U.add(xt))}const Y=new Map,te=Qn(Zt,Array.from(ee));te.forEach((It,xt)=>{const Yt=ce+tn++;Y.set(xt,Yt),It.forEach(sn=>Zn(sn,Yt))}),d.push(()=>{un.forEach((It,xt)=>{const Yt=Xt.get(xt);It.forEach(sn=>Ei(sn,Yt))}),te.forEach((It,xt)=>{const Yt=Y.get(xt);It.forEach(sn=>Ei(sn,Yt))}),dn.forEach(It=>{this.processLeaveNode(It)})});const xe=[],je=[];for(let It=this._namespaceList.length-1;It>=0;It--)this._namespaceList[It].drainQueuedTransitions(p).forEach(Yt=>{const sn=Yt.player,jn=Yt.element;if(xe.push(sn),this.collectedEnterElements.length){const ui=jn[xn];if(ui&&ui.setForMove){if(ui.previousTriggersValues&&ui.previousTriggersValues.has(Yt.triggerName)){const Ji=ui.previousTriggersValues.get(Yt.triggerName),Li=this.statesByElement.get(Yt.element);Li&&Li[Yt.triggerName]&&(Li[Yt.triggerName].value=Ji)}return void sn.destroy()}}const An=!Ut||!this.driver.containsElement(Ut,jn),_i=Y.get(jn),lr=Xt.get(jn),Vn=this._buildInstruction(Yt,P,lr,_i,An);if(Vn.errors&&Vn.errors.length)return void je.push(Vn);if(An)return sn.onStart(()=>Re(jn,Vn.fromStyles)),sn.onDestroy(()=>Me(jn,Vn.toStyles)),void j.push(sn);if(Yt.isFallbackTransition)return sn.onStart(()=>Re(jn,Vn.fromStyles)),sn.onDestroy(()=>Me(jn,Vn.toStyles)),void j.push(sn);const Ts=[];Vn.timelines.forEach(ui=>{ui.stretchStartingKeyframe=!0,this.disabledNodes.has(ui.element)||Ts.push(ui)}),Vn.timelines=Ts,P.append(jn,Vn.timelines),Ne.push({instruction:Vn,player:sn,element:jn}),Vn.queriedElements.forEach(ui=>A(Ue,ui,[]).push(sn)),Vn.preStyleProps.forEach((ui,Ji)=>{const Li=Object.keys(ui);if(Li.length){let Xi=rt.get(Ji);Xi||rt.set(Ji,Xi=new Set),Li.forEach(Ur=>Xi.add(Ur))}}),Vn.postStyleProps.forEach((ui,Ji)=>{const Li=Object.keys(ui);let Xi=mt.get(Ji);Xi||mt.set(Ji,Xi=new Set),Li.forEach(Ur=>Xi.add(Ur))})});if(je.length){const It=[];je.forEach(xt=>{It.push(`@${xt.triggerName} has failed due to:\n`),xt.errors.forEach(Yt=>It.push(`- ${Yt}\n`))}),xe.forEach(xt=>xt.destroy()),this.reportError(It)}const et=new Map,yt=new Map;Ne.forEach(It=>{const xt=It.element;P.has(xt)&&(yt.set(xt,xt),this._beforeAnimationBuild(It.player.namespaceId,It.instruction,et))}),j.forEach(It=>{const xt=It.element;this._getPreviousPlayers(xt,!1,It.namespaceId,It.triggerName,null).forEach(sn=>{A(et,xt,[]).push(sn),sn.destroy()})});const _t=dn.filter(It=>Mi(It,rt,mt)),Ht=new Map;mr(Ht,this.driver,U,mt,g.l3).forEach(It=>{Mi(It,rt,mt)&&_t.push(It)});const _n=new Map;un.forEach((It,xt)=>{mr(_n,this.driver,new Set(It),rt,g.k1)}),_t.forEach(It=>{const xt=Ht.get(It),Yt=_n.get(It);Ht.set(It,Object.assign(Object.assign({},xt),Yt))});const an=[],Mn=[],gn={};Ne.forEach(It=>{const{element:xt,player:Yt,instruction:sn}=It;if(P.has(xt)){if(At.has(xt))return Yt.onDestroy(()=>Me(xt,sn.toStyles)),Yt.disabled=!0,Yt.overrideTotalTime(sn.totalTime),void j.push(Yt);let jn=gn;if(yt.size>1){let _i=xt;const lr=[];for(;_i=_i.parentNode;){const Vn=yt.get(_i);if(Vn){jn=Vn;break}lr.push(_i)}lr.forEach(Vn=>yt.set(Vn,jn))}const An=this._buildAnimation(Yt.namespaceId,sn,et,de,_n,Ht);if(Yt.setRealPlayer(An),jn===gn)an.push(Yt);else{const _i=this.playersByElement.get(jn);_i&&_i.length&&(Yt.parentPlayer=y(_i)),j.push(Yt)}}else Re(xt,sn.fromStyles),Yt.onDestroy(()=>Me(xt,sn.toStyles)),Mn.push(Yt),At.has(xt)&&j.push(Yt)}),Mn.forEach(It=>{const xt=de.get(It.element);if(xt&&xt.length){const Yt=y(xt);It.setRealPlayer(Yt)}}),j.forEach(It=>{It.parentPlayer?It.syncPlayerEvents(It.parentPlayer):It.destroy()});for(let It=0;It<dn.length;It++){const xt=dn[It],Yt=xt[xn];if(Ei(xt,ce),Yt&&Yt.hasAnimation)continue;let sn=[];if(Ue.size){let An=Ue.get(xt);An&&An.length&&sn.push(...An);let _i=this.driver.query(xt,ge,!0);for(let lr=0;lr<_i.length;lr++){let Vn=Ue.get(_i[lr]);Vn&&Vn.length&&sn.push(...Vn)}}const jn=sn.filter(An=>!An.destroyed);jn.length?Ui(this,xt,jn):this.processLeaveNode(xt)}return dn.length=0,an.forEach(It=>{this.players.push(It),It.onDone(()=>{It.destroy();const xt=this.players.indexOf(It);this.players.splice(xt,1)}),It.play()}),an}elementContainsData(d,p){let P=!1;const j=p[xn];return j&&j.setForRemoval&&(P=!0),this.playersByElement.has(p)&&(P=!0),this.playersByQueriedElement.has(p)&&(P=!0),this.statesByElement.has(p)&&(P=!0),this._fetchNamespace(d).elementContainsData(p)||P}afterFlush(d){this._flushFns.push(d)}afterFlushAnimationsDone(d){this._whenQuietFns.push(d)}_getPreviousPlayers(d,p,P,j,de){let Ne=[];if(p){const Ue=this.playersByQueriedElement.get(d);Ue&&(Ne=Ue)}else{const Ue=this.playersByElement.get(d);if(Ue){const rt=!de||de==ni;Ue.forEach(mt=>{mt.queued||!rt&&mt.triggerName!=j||Ne.push(mt)})}}return(P||j)&&(Ne=Ne.filter(Ue=>!(P&&P!=Ue.namespaceId||j&&j!=Ue.triggerName))),Ne}_beforeAnimationBuild(d,p,P){const de=p.element,Ne=p.isRemovalTransition?void 0:d,Ue=p.isRemovalTransition?void 0:p.triggerName;for(const rt of p.timelines){const mt=rt.element,At=mt!==de,Ut=A(P,mt,[]);this._getPreviousPlayers(mt,At,Ne,Ue,p.toState).forEach(un=>{const Xt=un.getRealPlayer();Xt.beforeDestroy&&Xt.beforeDestroy(),un.destroy(),Ut.push(un)})}Re(de,p.fromStyles)}_buildAnimation(d,p,P,j,de,Ne){const Ue=p.triggerName,rt=p.element,mt=[],At=new Set,Ut=new Set,Zt=p.timelines.map(Xt=>{const tn=Xt.element;At.add(tn);const dn=tn[xn];if(dn&&dn.removedBeforeQueried)return new g.ZN(Xt.duration,Xt.delay);const ee=tn!==rt,U=function Lr(B){const d=[];return Wi(B,d),d}((P.get(tn)||Sn).map(et=>et.getRealPlayer())).filter(et=>!!et.element&&et.element===tn),Y=de.get(tn),te=Ne.get(tn),xe=E(0,this._normalizer,0,Xt.keyframes,Y,te),je=this._buildPlayer(Xt,xe,U);if(Xt.subTimeline&&j&&Ut.add(tn),ee){const et=new Ci(d,Ue,tn);et.setRealPlayer(je),mt.push(et)}return je});mt.forEach(Xt=>{A(this.playersByQueriedElement,Xt.element,[]).push(Xt),Xt.onDone(()=>function wi(B,d,p){let P;if(B instanceof Map){if(P=B.get(d),P){if(P.length){const j=P.indexOf(p);P.splice(j,1)}0==P.length&&B.delete(d)}}else if(P=B[d],P){if(P.length){const j=P.indexOf(p);P.splice(j,1)}0==P.length&&delete B[d]}return P}(this.playersByQueriedElement,Xt.element,Xt))}),At.forEach(Xt=>Zn(Xt,Ke));const un=y(Zt);return un.onDestroy(()=>{At.forEach(Xt=>Ei(Xt,Ke)),Me(rt,p.toStyles)}),Ut.forEach(Xt=>{A(j,Xt,[]).push(un)}),un}_buildPlayer(d,p,P){return p.length>0?this.driver.animate(d.element,p,d.duration,d.delay,d.easing,P):new g.ZN(d.duration,d.delay)}}class Ci{constructor(d,p,P){this.namespaceId=d,this.triggerName=p,this.element=P,this._player=new g.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(d){this._containsRealPlayer||(this._player=d,Object.keys(this._queuedCallbacks).forEach(p=>{this._queuedCallbacks[p].forEach(P=>w(d,p,void 0,P))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(d.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(d){this.totalTime=d}syncPlayerEvents(d){const p=this._player;p.triggerCallback&&d.onStart(()=>p.triggerCallback("start")),d.onDone(()=>this.finish()),d.onDestroy(()=>this.destroy())}_queueEvent(d,p){A(this._queuedCallbacks,d,[]).push(p)}onDone(d){this.queued&&this._queueEvent("done",d),this._player.onDone(d)}onStart(d){this.queued&&this._queueEvent("start",d),this._player.onStart(d)}onDestroy(d){this.queued&&this._queueEvent("destroy",d),this._player.onDestroy(d)}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(d){this.queued||this._player.setPosition(d)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(d){const p=this._player;p.triggerCallback&&p.triggerCallback(d)}}function Wn(B){return B&&1===B.nodeType}function nr(B,d){const p=B.style.display;return B.style.display=null!=d?d:"none",p}function mr(B,d,p,P,j){const de=[];p.forEach(rt=>de.push(nr(rt)));const Ne=[];P.forEach((rt,mt)=>{const At={};rt.forEach(Ut=>{const Zt=At[Ut]=d.computeStyle(mt,Ut,j);(!Zt||0==Zt.length)&&(mt[xn]=ai,Ne.push(mt))}),B.set(mt,At)});let Ue=0;return p.forEach(rt=>nr(rt,de[Ue++])),Ne}function Qn(B,d){const p=new Map;if(B.forEach(Ue=>p.set(Ue,[])),0==d.length)return p;const j=new Set(d),de=new Map;function Ne(Ue){if(!Ue)return 1;let rt=de.get(Ue);if(rt)return rt;const mt=Ue.parentNode;return rt=p.has(mt)?mt:j.has(mt)?1:Ne(mt),de.set(Ue,rt),rt}return d.forEach(Ue=>{const rt=Ne(Ue);1!==rt&&p.get(rt).push(Ue)}),p}function Zn(B,d){var p;null===(p=B.classList)||void 0===p||p.add(d)}function Ei(B,d){var p;null===(p=B.classList)||void 0===p||p.remove(d)}function Ui(B,d,p){y(p).onDone(()=>B.processLeaveNode(d))}function Wi(B,d){for(let p=0;p<B.length;p++){const P=B[p];P instanceof g.ZE?Wi(P.players,d):d.push(P)}}function Mi(B,d,p){const P=p.get(B);if(!P)return!1;let j=d.get(B);return j?P.forEach(de=>j.add(de)):d.set(B,P),p.delete(B),!0}class zi{constructor(d,p,P){this.bodyNode=d,this._driver=p,this._normalizer=P,this._triggerCache={},this.onRemovalComplete=(j,de)=>{},this._transitionEngine=new Gn(d,p,P),this._timelineEngine=new Jt(d,p,P),this._transitionEngine.onRemovalComplete=(j,de)=>this.onRemovalComplete(j,de)}registerTrigger(d,p,P,j,de){const Ne=d+"-"+j;let Ue=this._triggerCache[Ne];if(!Ue){const rt=[],mt=Bt(this._driver,de,rt);if(rt.length)throw new Error(`The animation trigger "${j}" has failed to build due to the following errors:\n - ${rt.join("\n - ")}`);Ue=function Ae(B,d,p){return new Xe(B,d,p)}(j,mt,this._normalizer),this._triggerCache[Ne]=Ue}this._transitionEngine.registerTrigger(p,j,Ue)}register(d,p){this._transitionEngine.register(d,p)}destroy(d,p){this._transitionEngine.destroy(d,p)}onInsert(d,p,P,j){this._transitionEngine.insertNode(d,p,P,j)}onRemove(d,p,P,j){this._transitionEngine.removeNode(d,p,j||!1,P)}disableAnimations(d,p){this._transitionEngine.markElementAsDisabled(d,p)}process(d,p,P,j){if("@"==P.charAt(0)){const[de,Ne]=M(P);this._timelineEngine.command(de,p,Ne,j)}else this._transitionEngine.trigger(d,p,P,j)}listen(d,p,P,j,de){if("@"==P.charAt(0)){const[Ne,Ue]=M(P);return this._timelineEngine.listen(Ne,p,Ue,de)}return this._transitionEngine.listen(d,p,P,j,de)}flush(d=-1){this._transitionEngine.flush(d)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function ci(B,d){let p=null,P=null;return Array.isArray(d)&&d.length?(p=Di(d[0]),d.length>1&&(P=Di(d[d.length-1]))):d&&(p=Di(d)),p||P?new gr(B,p,P):null}let gr=(()=>{class B{constructor(p,P,j){this._element=p,this._startStyles=P,this._endStyles=j,this._state=0;let de=B.initialStylesByElement.get(p);de||B.initialStylesByElement.set(p,de={}),this._initialStyles=de}start(){this._state<1&&(this._startStyles&&Me(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Me(this._element,this._initialStyles),this._endStyles&&(Me(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(B.initialStylesByElement.delete(this._element),this._startStyles&&(Re(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Re(this._element,this._endStyles),this._endStyles=null),Me(this._element,this._initialStyles),this._state=3)}}return B.initialStylesByElement=new WeakMap,B})();function Di(B){let d=null;const p=Object.keys(B);for(let P=0;P<p.length;P++){const j=p[P];Pr(j)&&(d=d||{},d[j]=B[j])}return d}function Pr(B){return"display"===B||"position"===B}const Ki="animation",Si="animationend";class Or{constructor(d,p,P,j,de,Ne,Ue){this._element=d,this._name=p,this._duration=P,this._delay=j,this._easing=de,this._fillMode=Ne,this._onDoneFn=Ue,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=rt=>this._handleCallback(rt)}apply(){(function _r(B,d){const p=ir(B,"").trim();let P=0;p.length&&(P=function rr(B,d){let p=0;for(let P=0;P<B.length;P++)B.charAt(P)===d&&p++;return p}(p,",")+1,d=`${p}, ${d}`),mi(B,"",d)})(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(d){const p=Pi(this._element,this._name);this._position=d*this._duration,mi(this._element,"Delay",`-${this._position}ms`,p)}getPosition(){return this._position}_handleCallback(d){const p=d._ngTestManualTimestamp||Date.now(),P=1e3*parseFloat(d.elapsedTime.toFixed(3));d.animationName==this._name&&Math.max(p-this._startTime,0)>=this._delay&&P>=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(B,d){const P=ir(B,"").split(","),j=pi(P,d);j>=0&&(P.splice(j,1),mi(B,"",P.join(",")))}(this._element,this._name))}}function Ii(B,d,p){mi(B,"PlayState",p,Pi(B,d))}function Pi(B,d){const p=ir(B,"");return p.indexOf(",")>0?pi(p.split(","),d):pi([p],d)}function pi(B,d){for(let p=0;p<B.length;p++)if(B[p].indexOf(d)>=0)return p;return-1}function Qi(B,d,p){p?B.removeEventListener(Si,d):B.addEventListener(Si,d)}function mi(B,d,p,P){const j=Ki+d;if(null!=P){const de=B.style[j];if(de.length){const Ne=de.split(",");Ne[P]=p,p=Ne.join(",")}}B.style[j]=p}function ir(B,d){return B.style[Ki+d]||""}class xi{constructor(d,p,P,j,de,Ne,Ue,rt){this.element=d,this.keyframes=p,this.animationName=P,this._duration=j,this._delay=de,this._finalStyles=Ue,this._specialStyles=rt,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=Ne||"linear",this.totalTime=j+de,this._buildStyler()}onStart(d){this._onStartFns.push(d)}onDone(d){this._onDoneFns.push(d)}onDestroy(d){this._onDestroyFns.push(d)}destroy(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(d=>d()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(d=>d()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(d=>d()),this._onStartFns=[]}finish(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(d){this._styler.setPosition(d)}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(d){const p="start"==d?this._onStartFns:this._onDoneFns;p.forEach(P=>P()),p.length=0}beforeDestroy(){this.init();const d={};if(this.hasStarted()){const p=this._state>=3;Object.keys(this._finalStyles).forEach(P=>{"offset"!=P&&(d[P]=p?this._finalStyles[P]:be(this.element,P))})}this.currentSnapshot=d}}class Zi extends g.ZN{constructor(d,p){super(),this.element=d,this._startingStyles={},this.__initialized=!1,this._styles=De(p)}init(){this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(d=>{this._startingStyles[d]=this.element.style[d]}),super.init())}play(){!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(d=>this.element.style.setProperty(d,this._styles[d])),super.play())}destroy(){!this._startingStyles||(Object.keys(this._startingStyles).forEach(d=>{const p=this._startingStyles[d];p?this.element.style.setProperty(d,p):this.element.style.removeProperty(d)}),this._startingStyles=null,super.destroy())}}class or{constructor(){this._count=0}validateStyleProperty(d){return we(d)}matchesElement(d,p){return!1}containsElement(d,p){return _e(d,p)}query(d,p,P){return le(d,p,P)}computeStyle(d,p,P){return window.getComputedStyle(d)[p]}buildKeyframeElement(d,p,P){P=P.map(Ue=>De(Ue));let j=`@keyframes ${p} {\n`,de="";P.forEach(Ue=>{de=" ";const rt=parseFloat(Ue.offset);j+=`${de}${100*rt}% {\n`,de+=" ",Object.keys(Ue).forEach(mt=>{const At=Ue[mt];switch(mt){case"offset":return;case"easing":return void(At&&(j+=`${de}animation-timing-function: ${At};\n`));default:return void(j+=`${de}${mt}: ${At};\n`)}}),j+=`${de}}\n`}),j+="}\n";const Ne=document.createElement("style");return Ne.textContent=j,Ne}animate(d,p,P,j,de,Ne=[],Ue){const rt=Ne.filter(dn=>dn instanceof xi),mt={};Oe(P,j)&&rt.forEach(dn=>{let ee=dn.currentSnapshot;Object.keys(ee).forEach(U=>mt[U]=ee[U])});const At=function Yi(B){let d={};return B&&(Array.isArray(B)?B:[B]).forEach(P=>{Object.keys(P).forEach(j=>{"offset"==j||"easing"==j||(d[j]=P[j])})}),d}(p=ue(d,p,mt));if(0==P)return new Zi(d,At);const Ut="gen_css_kf_"+this._count++,Zt=this.buildKeyframeElement(d,Ut,p);(function Fi(B){var d;const p=null===(d=B.getRootNode)||void 0===d?void 0:d.call(B);return"undefined"!=typeof ShadowRoot&&p instanceof ShadowRoot?p:document.head})(d).appendChild(Zt);const Xt=ci(d,p),tn=new xi(d,p,Ut,P,j,de,At,Xt);return tn.onDestroy(()=>function ki(B){B.parentNode.removeChild(B)}(Zt)),tn}}class sr{constructor(d,p,P,j){this.element=d,this.keyframes=p,this.options=P,this._specialStyles=j,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=P.duration,this._delay=P.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(d=>d()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const d=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,d,this.options),this._finalKeyframe=d.length?d[d.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(d,p,P){return d.animate(p,P)}onStart(d){this._onStartFns.push(d)}onDone(d){this._onDoneFns.push(d)}onDestroy(d){this._onDestroyFns.push(d)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(d=>d()),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(d=>d()),this._onDestroyFns=[])}setPosition(d){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=d*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const d={};if(this.hasStarted()){const p=this._finalKeyframe;Object.keys(p).forEach(P=>{"offset"!=P&&(d[P]=this._finished?p[P]:be(this.element,P))})}this.currentSnapshot=d}triggerCallback(d){const p="start"==d?this._onStartFns:this._onDoneFns;p.forEach(P=>P()),p.length=0}}class ar{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(x().toString()),this._cssKeyframesDriver=new or}validateStyleProperty(d){return we(d)}matchesElement(d,p){return!1}containsElement(d,p){return _e(d,p)}query(d,p,P){return le(d,p,P)}computeStyle(d,p,P){return window.getComputedStyle(d)[p]}overrideWebAnimationsSupport(d){this._isNativeImpl=d}animate(d,p,P,j,de,Ne=[],Ue){if(!Ue&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(d,p,P,j,de,Ne);const At={duration:P,delay:j,fill:0==j?"both":"forwards"};de&&(At.easing=de);const Ut={},Zt=Ne.filter(Xt=>Xt instanceof sr);Oe(P,j)&&Zt.forEach(Xt=>{let tn=Xt.currentSnapshot;Object.keys(tn).forEach(dn=>Ut[dn]=tn[dn])});const un=ci(d,p=ue(d,p=p.map(Xt=>Ze(Xt,!1)),Ut));return new sr(d,p,At,un)}}function x(){return c()&&Element.prototype.animate||{}}var Q=l(9808);let F=(()=>{class B extends g._j{constructor(p,P){super(),this._nextAnimationId=0,this._renderer=p.createRenderer(P.body,{id:"0",encapsulation:i.ViewEncapsulation.None,styles:[],data:{animation:[]}})}build(p){const P=this._nextAnimationId.toString();this._nextAnimationId++;const j=Array.isArray(p)?(0,g.vP)(p):p;return ct(this._renderer,null,P,"register",[j]),new ne(P,this._renderer)}}return B.\u0275fac=function(p){return new(p||B)(i.\u0275\u0275inject(i.RendererFactory2),i.\u0275\u0275inject(Q.DOCUMENT))},B.\u0275prov=i.\u0275\u0275defineInjectable({token:B,factory:B.\u0275fac}),B})();class ne extends g.LC{constructor(d,p){super(),this._id=d,this._renderer=p}create(d,p){return new ze(this._id,d,p||{},this._renderer)}}class ze{constructor(d,p,P,j){this.id=d,this.element=p,this._renderer=j,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",P)}_listen(d,p){return this._renderer.listen(this.element,`@@${this.id}:${d}`,p)}_command(d,...p){return ct(this._renderer,this.element,this.id,d,p)}onDone(d){this._listen("done",d)}onStart(d){this._listen("start",d)}onDestroy(d){this._listen("destroy",d)}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(d){this._command("setPosition",d)}getPosition(){var d,p;return null!==(p=null===(d=this._renderer.engine.players[+this.id])||void 0===d?void 0:d.getPosition())&&void 0!==p?p:0}}function ct(B,d,p,P,j){return B.setProperty(d,`@@${p}:${P}`,j)}const Rt="@.disabled";let Tn=(()=>{class B{constructor(p,P,j){this.delegate=p,this.engine=P,this._zone=j,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),P.onRemovalComplete=(de,Ne)=>{const Ue=null==Ne?void 0:Ne.parentNode(de);Ue&&Ne.removeChild(Ue,de)}}createRenderer(p,P){const de=this.delegate.createRenderer(p,P);if(!(p&&P&&P.data&&P.data.animation)){let At=this._rendererCache.get(de);return At||(At=new wn("",de,this.engine),this._rendererCache.set(de,At)),At}const Ne=P.id,Ue=P.id+"-"+this._currentId;this._currentId++,this.engine.register(Ue,p);const rt=At=>{Array.isArray(At)?At.forEach(rt):this.engine.registerTrigger(Ne,Ue,p,At.name,At)};return P.data.animation.forEach(rt),new In(this,Ue,de,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(p,P,j){p>=0&&p<this._microtaskId?this._zone.run(()=>P(j)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(de=>{const[Ne,Ue]=de;Ne(Ue)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([P,j]))}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 B.\u0275fac=function(p){return new(p||B)(i.\u0275\u0275inject(i.RendererFactory2),i.\u0275\u0275inject(zi),i.\u0275\u0275inject(i.NgZone))},B.\u0275prov=i.\u0275\u0275defineInjectable({token:B,factory:B.\u0275fac}),B})();class wn{constructor(d,p,P){this.namespaceId=d,this.delegate=p,this.engine=P,this.destroyNode=this.delegate.destroyNode?j=>p.destroyNode(j):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(d,p){return this.delegate.createElement(d,p)}createComment(d){return this.delegate.createComment(d)}createText(d){return this.delegate.createText(d)}appendChild(d,p){this.delegate.appendChild(d,p),this.engine.onInsert(this.namespaceId,p,d,!1)}insertBefore(d,p,P,j=!0){this.delegate.insertBefore(d,p,P),this.engine.onInsert(this.namespaceId,p,d,j)}removeChild(d,p,P){this.engine.onRemove(this.namespaceId,p,this.delegate,P)}selectRootElement(d,p){return this.delegate.selectRootElement(d,p)}parentNode(d){return this.delegate.parentNode(d)}nextSibling(d){return this.delegate.nextSibling(d)}setAttribute(d,p,P,j){this.delegate.setAttribute(d,p,P,j)}removeAttribute(d,p,P){this.delegate.removeAttribute(d,p,P)}addClass(d,p){this.delegate.addClass(d,p)}removeClass(d,p){this.delegate.removeClass(d,p)}setStyle(d,p,P,j){this.delegate.setStyle(d,p,P,j)}removeStyle(d,p,P){this.delegate.removeStyle(d,p,P)}setProperty(d,p,P){"@"==p.charAt(0)&&p==Rt?this.disableAnimations(d,!!P):this.delegate.setProperty(d,p,P)}setValue(d,p){this.delegate.setValue(d,p)}listen(d,p,P){return this.delegate.listen(d,p,P)}disableAnimations(d,p){this.engine.disableAnimations(d,p)}}class In extends wn{constructor(d,p,P,j){super(p,P,j),this.factory=d,this.namespaceId=p}setProperty(d,p,P){"@"==p.charAt(0)?"."==p.charAt(1)&&p==Rt?this.disableAnimations(d,P=void 0===P||!!P):this.engine.process(this.namespaceId,d,p.substr(1),P):this.delegate.setProperty(d,p,P)}listen(d,p,P){if("@"==p.charAt(0)){const j=function cn(B){switch(B){case"body":return document.body;case"document":return document;case"window":return window;default:return B}}(d);let de=p.substr(1),Ne="";return"@"!=de.charAt(0)&&([de,Ne]=function k(B){const d=B.indexOf(".");return[B.substring(0,d),B.substr(d+1)]}(de)),this.engine.listen(this.namespaceId,j,de,Ne,Ue=>{this.factory.scheduleListenerCallback(Ue._data||-1,P,Ue)})}return this.delegate.listen(d,p,P)}}let O=(()=>{class B extends zi{constructor(p,P,j){super(p.body,P,j)}ngOnDestroy(){this.flush()}}return B.\u0275fac=function(p){return new(p||B)(i.\u0275\u0275inject(Q.DOCUMENT),i.\u0275\u0275inject(Je),i.\u0275\u0275inject(Dn))},B.\u0275prov=i.\u0275\u0275defineInjectable({token:B,factory:B.\u0275fac}),B})();const Vt=new i.InjectionToken("AnimationModuleType"),Pn=[{provide:g._j,useClass:F},{provide:Dn,useFactory:function X(){return new di}},{provide:zi,useClass:O},{provide:i.RendererFactory2,useFactory:function at(B,d,p){return new Tn(B,d,p)},deps:[u.\u0275DomRendererFactory2,zi,i.NgZone]}],qn=[{provide:Je,useFactory:function D(){return function Ln(){return"function"==typeof x()}()?new ar:new or}},{provide:Vt,useValue:"BrowserAnimations"},...Pn],gi=[{provide:Je,useClass:Fe},{provide:Vt,useValue:"NoopAnimations"},...Pn];let Ni=(()=>{class B{static withConfig(p){return{ngModule:B,providers:p.disableAnimations?gi:qn}}}return B.\u0275fac=function(p){return new(p||B)},B.\u0275mod=i.\u0275\u0275defineNgModule({type:B}),B.\u0275inj=i.\u0275\u0275defineInjector({providers:qn,imports:[u.BrowserModule]}),B})(),Tt=(()=>{class B{}return B.\u0275fac=function(p){return new(p||B)},B.\u0275mod=i.\u0275\u0275defineNgModule({type:B}),B.\u0275inj=i.\u0275\u0275defineInjector({providers:gi,imports:[u.BrowserModule]}),B})()},2313:(Le,_,l)=>{"use strict";l.r(_),l.d(_,{\u0275getDOM:()=>i.\u0275getDOM,BrowserModule:()=>lt,BrowserTransferStateModule:()=>Qt,By:()=>on,DomSanitizer:()=>qe,EVENT_MANAGER_PLUGINS:()=>R,EventManager:()=>V,HAMMER_GESTURE_CONFIG:()=>z,HAMMER_LOADER:()=>m,HammerGestureConfig:()=>C,HammerModule:()=>K,Meta:()=>N,Title:()=>ue,TransferState:()=>Mt,VERSION:()=>pn,disableDebugTools:()=>Bt,enableDebugTools:()=>en,makeStateKey:()=>Wt,platformBrowser:()=>bt,\u0275BrowserDomAdapter:()=>c,\u0275BrowserGetTestability:()=>M,\u0275DomEventsPlugin:()=>He,\u0275DomRendererFactory2:()=>Se,\u0275DomSanitizerImpl:()=>zt,\u0275DomSharedStylesHost:()=>ie,\u0275HammerGesturesPlugin:()=>T,\u0275INTERNAL_BROWSER_PLATFORM_PROVIDERS:()=>ht,\u0275KeyEventsPlugin:()=>me,\u0275NAMESPACE_URIS:()=>pe,\u0275SharedStylesHost:()=>$,\u0275TRANSITION_ID:()=>I,\u0275escapeHtml:()=>En,\u0275flattenStyles:()=>Pe,\u0275initDomAdapter:()=>Re,\u0275shimContentAttribute:()=>ot,\u0275shimHostAttribute:()=>q});var i=l(9808),u=l(5e3);class g extends i.\u0275DomAdapter{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class c extends g{static makeCurrent(){(0,i.\u0275setRootDomAdapter)(new c)}onAndCancel(Ve,he,$e){return Ve.addEventListener(he,$e,!1),()=>{Ve.removeEventListener(he,$e,!1)}}dispatchEvent(Ve,he){Ve.dispatchEvent(he)}remove(Ve){Ve.parentNode&&Ve.parentNode.removeChild(Ve)}createElement(Ve,he){return(he=he||this.getDefaultDocument()).createElement(Ve)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Ve){return Ve.nodeType===Node.ELEMENT_NODE}isShadowRoot(Ve){return Ve instanceof DocumentFragment}getGlobalEventTarget(Ve,he){return"window"===he?window:"document"===he?Ve:"body"===he?Ve.body:null}getBaseHref(Ve){const he=function y(){return s=s||document.querySelector("base"),s?s.getAttribute("href"):null}();return null==he?null:function w(Be){E=E||document.createElement("a"),E.setAttribute("href",Be);const Ve=E.pathname;return"/"===Ve.charAt(0)?Ve:`/${Ve}`}(he)}resetBaseElement(){s=null}getUserAgent(){return window.navigator.userAgent}getCookie(Ve){return(0,i.\u0275parseCookieValue)(document.cookie,Ve)}}let E,s=null;const I=new u.InjectionToken("TRANSITION_ID"),A=[{provide:u.APP_INITIALIZER,useFactory:function h(Be,Ve,he){return()=>{he.get(u.ApplicationInitStatus).donePromise.then(()=>{const $e=(0,i.\u0275getDOM)(),ut=Ve.querySelectorAll(`style[ng-transition="${Be}"]`);for(let Lt=0;Lt<ut.length;Lt++)$e.remove(ut[Lt])})}},deps:[I,i.DOCUMENT,u.Injector],multi:!0}];class M{static init(){(0,u.setTestabilityGetter)(new M)}addToWindow(Ve){u.\u0275global.getAngularTestability=($e,ut=!0)=>{const Lt=Ve.findTestabilityInTree($e,ut);if(null==Lt)throw new Error("Could not find testability for element.");return Lt},u.\u0275global.getAllAngularTestabilities=()=>Ve.getAllTestabilities(),u.\u0275global.getAllAngularRootElements=()=>Ve.getAllRootElements(),u.\u0275global.frameworkStabilizers||(u.\u0275global.frameworkStabilizers=[]),u.\u0275global.frameworkStabilizers.push($e=>{const ut=u.\u0275global.getAllAngularTestabilities();let Lt=ut.length,kt=!1;const hn=function(Dn){kt=kt||Dn,Lt--,0==Lt&&$e(kt)};ut.forEach(function(Dn){Dn.whenStable(hn)})})}findTestabilityInTree(Ve,he,$e){if(null==he)return null;const ut=Ve.getTestability(he);return null!=ut?ut:$e?(0,i.\u0275getDOM)().isShadowRoot(he)?this.findTestabilityInTree(Ve,he.host,!0):this.findTestabilityInTree(Ve,he.parentElement,!0):null}}let b=(()=>{class Be{build(){return new XMLHttpRequest}}return Be.\u0275fac=function(he){return new(he||Be)},Be.\u0275prov=u.\u0275\u0275defineInjectable({token:Be,factory:Be.\u0275fac}),Be})();const R=new u.InjectionToken("EventManagerPlugins");let V=(()=>{class Be{constructor(he,$e){this._zone=$e,this._eventNameToPlugin=new Map,he.forEach(ut=>ut.manager=this),this._plugins=he.slice().reverse()}addEventListener(he,$e,ut){return this._findPluginFor($e).addEventListener(he,$e,ut)}addGlobalEventListener(he,$e,ut){return this._findPluginFor($e).addGlobalEventListener(he,$e,ut)}getZone(){return this._zone}_findPluginFor(he){const $e=this._eventNameToPlugin.get(he);if($e)return $e;const ut=this._plugins;for(let Lt=0;Lt<ut.length;Lt++){const kt=ut[Lt];if(kt.supports(he))return this._eventNameToPlugin.set(he,kt),kt}throw new Error(`No event manager plugin found for event ${he}`)}}return Be.\u0275fac=function(he){return new(he||Be)(u.\u0275\u0275inject(R),u.\u0275\u0275inject(u.NgZone))},Be.\u0275prov=u.\u0275\u0275defineInjectable({token:Be,factory:Be.\u0275fac}),Be})();class fe{constructor(Ve){this._doc=Ve}addGlobalEventListener(Ve,he,$e){const ut=(0,i.\u0275getDOM)().getGlobalEventTarget(this._doc,Ve);if(!ut)throw new Error(`Unsupported event target ${ut} for event ${he}`);return this.addEventListener(ut,he,$e)}}let $=(()=>{class Be{constructor(){this._stylesSet=new Set}addStyles(he){const $e=new Set;he.forEach(ut=>{this._stylesSet.has(ut)||(this._stylesSet.add(ut),$e.add(ut))}),this.onStylesAdded($e)}onStylesAdded(he){}getAllStyles(){return Array.from(this._stylesSet)}}return Be.\u0275fac=function(he){return new(he||Be)},Be.\u0275prov=u.\u0275\u0275defineInjectable({token:Be,factory:Be.\u0275fac}),Be})(),ie=(()=>{class Be extends ${constructor(he){super(),this._doc=he,this._hostNodes=new Map,this._hostNodes.set(he.head,[])}_addStylesToHost(he,$e,ut){he.forEach(Lt=>{const kt=this._doc.createElement("style");kt.textContent=Lt,ut.push($e.appendChild(kt))})}addHost(he){const $e=[];this._addStylesToHost(this._stylesSet,he,$e),this._hostNodes.set(he,$e)}removeHost(he){const $e=this._hostNodes.get(he);$e&&$e.forEach(we),this._hostNodes.delete(he)}onStylesAdded(he){this._hostNodes.forEach(($e,ut)=>{this._addStylesToHost(he,ut,$e)})}ngOnDestroy(){this._hostNodes.forEach(he=>he.forEach(we))}}return Be.\u0275fac=function(he){return new(he||Be)(u.\u0275\u0275inject(i.DOCUMENT))},Be.\u0275prov=u.\u0275\u0275defineInjectable({token:Be,factory:Be.\u0275fac}),Be})();function we(Be){(0,i.\u0275getDOM)().remove(Be)}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/"},_e=/%COMP%/g;function ot(Be){return"_ngcontent-%COMP%".replace(_e,Be)}function q(Be){return"_nghost-%COMP%".replace(_e,Be)}function Pe(Be,Ve,he){for(let $e=0;$e<Ve.length;$e++){let ut=Ve[$e];Array.isArray(ut)?Pe(Be,ut,he):(ut=ut.replace(_e,Be),he.push(ut))}return he}function J(Be){return Ve=>{if("__ngUnwrap__"===Ve)return Be;!1===Be(Ve)&&(Ve.preventDefault(),Ve.returnValue=!1)}}let Se=(()=>{class Be{constructor(he,$e,ut){this.eventManager=he,this.sharedStylesHost=$e,this.appId=ut,this.rendererByCompId=new Map,this.defaultRenderer=new re(he)}createRenderer(he,$e){if(!he||!$e)return this.defaultRenderer;switch($e.encapsulation){case u.ViewEncapsulation.Emulated:{let ut=this.rendererByCompId.get($e.id);return ut||(ut=new it(this.eventManager,this.sharedStylesHost,$e,this.appId),this.rendererByCompId.set($e.id,ut)),ut.applyToHost(he),ut}case 1:case u.ViewEncapsulation.ShadowDom:return new ye(this.eventManager,this.sharedStylesHost,he,$e);default:if(!this.rendererByCompId.has($e.id)){const ut=Pe($e.id,$e.styles,[]);this.sharedStylesHost.addStyles(ut),this.rendererByCompId.set($e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return Be.\u0275fac=function(he){return new(he||Be)(u.\u0275\u0275inject(V),u.\u0275\u0275inject(ie),u.\u0275\u0275inject(u.APP_ID))},Be.\u0275prov=u.\u0275\u0275defineInjectable({token:Be,factory:Be.\u0275fac}),Be})();class re{constructor(Ve){this.eventManager=Ve,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(Ve,he){return he?document.createElementNS(pe[he]||he,Ve):document.createElement(Ve)}createComment(Ve){return document.createComment(Ve)}createText(Ve){return document.createTextNode(Ve)}appendChild(Ve,he){Ve.appendChild(he)}insertBefore(Ve,he,$e){Ve&&Ve.insertBefore(he,$e)}removeChild(Ve,he){Ve&&Ve.removeChild(he)}selectRootElement(Ve,he){let $e="string"==typeof Ve?document.querySelector(Ve):Ve;if(!$e)throw new Error(`The selector "${Ve}" did not match any elements`);return he||($e.textContent=""),$e}parentNode(Ve){return Ve.parentNode}nextSibling(Ve){return Ve.nextSibling}setAttribute(Ve,he,$e,ut){if(ut){he=ut+":"+he;const Lt=pe[ut];Lt?Ve.setAttributeNS(Lt,he,$e):Ve.setAttribute(he,$e)}else Ve.setAttribute(he,$e)}removeAttribute(Ve,he,$e){if($e){const ut=pe[$e];ut?Ve.removeAttributeNS(ut,he):Ve.removeAttribute(`${$e}:${he}`)}else Ve.removeAttribute(he)}addClass(Ve,he){Ve.classList.add(he)}removeClass(Ve,he){Ve.classList.remove(he)}setStyle(Ve,he,$e,ut){ut&(u.RendererStyleFlags2.DashCase|u.RendererStyleFlags2.Important)?Ve.style.setProperty(he,$e,ut&u.RendererStyleFlags2.Important?"important":""):Ve.style[he]=$e}removeStyle(Ve,he,$e){$e&u.RendererStyleFlags2.DashCase?Ve.style.removeProperty(he):Ve.style[he]=""}setProperty(Ve,he,$e){Ve[he]=$e}setValue(Ve,he){Ve.nodeValue=he}listen(Ve,he,$e){return"string"==typeof Ve?this.eventManager.addGlobalEventListener(Ve,he,J($e)):this.eventManager.addEventListener(Ve,he,J($e))}}class it extends re{constructor(Ve,he,$e,ut){super(Ve),this.component=$e;const Lt=Pe(ut+"-"+$e.id,$e.styles,[]);he.addStyles(Lt),this.contentAttr=ot(ut+"-"+$e.id),this.hostAttr=q(ut+"-"+$e.id)}applyToHost(Ve){super.setAttribute(Ve,this.hostAttr,"")}createElement(Ve,he){const $e=super.createElement(Ve,he);return super.setAttribute($e,this.contentAttr,""),$e}}class ye extends re{constructor(Ve,he,$e,ut){super(Ve),this.sharedStylesHost=he,this.hostEl=$e,this.shadowRoot=$e.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Lt=Pe(ut.id,ut.styles,[]);for(let kt=0;kt<Lt.length;kt++){const hn=document.createElement("style");hn.textContent=Lt[kt],this.shadowRoot.appendChild(hn)}}nodeOrShadowRoot(Ve){return Ve===this.hostEl?this.shadowRoot:Ve}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(Ve,he){return super.appendChild(this.nodeOrShadowRoot(Ve),he)}insertBefore(Ve,he,$e){return super.insertBefore(this.nodeOrShadowRoot(Ve),he,$e)}removeChild(Ve,he){return super.removeChild(this.nodeOrShadowRoot(Ve),he)}parentNode(Ve){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(Ve)))}}let He=(()=>{class Be extends fe{constructor(he){super(he)}supports(he){return!0}addEventListener(he,$e,ut){return he.addEventListener($e,ut,!1),()=>this.removeEventListener(he,$e,ut)}removeEventListener(he,$e,ut){return he.removeEventListener($e,ut)}}return Be.\u0275fac=function(he){return new(he||Be)(u.\u0275\u0275inject(i.DOCUMENT))},Be.\u0275prov=u.\u0275\u0275defineInjectable({token:Be,factory:Be.\u0275fac}),Be})();const dt=["alt","control","meta","shift"],ke={"\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"},Ze={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"},Z={alt:Be=>Be.altKey,control:Be=>Be.ctrlKey,meta:Be=>Be.metaKey,shift:Be=>Be.shiftKey};let me=(()=>{class Be extends fe{constructor(he){super(he)}supports(he){return null!=Be.parseEventName(he)}addEventListener(he,$e,ut){const Lt=Be.parseEventName($e),kt=Be.eventCallback(Lt.fullKey,ut,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,i.\u0275getDOM)().onAndCancel(he,Lt.domEventName,kt))}static parseEventName(he){const $e=he.toLowerCase().split("."),ut=$e.shift();if(0===$e.length||"keydown"!==ut&&"keyup"!==ut)return null;const Lt=Be._normalizeKey($e.pop());let kt="";if(dt.forEach(Dn=>{const Hn=$e.indexOf(Dn);Hn>-1&&($e.splice(Hn,1),kt+=Dn+".")}),kt+=Lt,0!=$e.length||0===Lt.length)return null;const hn={};return hn.domEventName=ut,hn.fullKey=kt,hn}static getEventFullKey(he){let $e="",ut=function Me(Be){let Ve=Be.key;if(null==Ve){if(Ve=Be.keyIdentifier,null==Ve)return"Unidentified";Ve.startsWith("U+")&&(Ve=String.fromCharCode(parseInt(Ve.substring(2),16)),3===Be.location&&Ze.hasOwnProperty(Ve)&&(Ve=Ze[Ve]))}return ke[Ve]||Ve}(he);return ut=ut.toLowerCase()," "===ut?ut="space":"."===ut&&(ut="dot"),dt.forEach(Lt=>{Lt!=ut&&Z[Lt](he)&&($e+=Lt+".")}),$e+=ut,$e}static eventCallback(he,$e,ut){return Lt=>{Be.getEventFullKey(Lt)===he&&ut.runGuarded(()=>$e(Lt))}}static _normalizeKey(he){return"esc"===he?"escape":he}}return Be.\u0275fac=function(he){return new(he||Be)(u.\u0275\u0275inject(i.DOCUMENT))},Be.\u0275prov=u.\u0275\u0275defineInjectable({token:Be,factory:Be.\u0275fac}),Be})();function Re(){c.makeCurrent(),M.init()}const ht=[{provide:u.PLATFORM_ID,useValue:i.\u0275PLATFORM_BROWSER_ID},{provide:u.PLATFORM_INITIALIZER,useValue:Re,multi:!0},{provide:i.DOCUMENT,useFactory:function Ye(){return(0,u.\u0275setDocument)(document),document},deps:[]}],bt=(0,u.createPlatformFactory)(u.platformCore,"browser",ht),Ot=[{provide:u.\u0275INJECTOR_SCOPE,useValue:"root"},{provide:u.ErrorHandler,useFactory:function ve(){return new u.ErrorHandler},deps:[]},{provide:R,useClass:He,multi:!0,deps:[i.DOCUMENT,u.NgZone,u.PLATFORM_ID]},{provide:R,useClass:me,multi:!0,deps:[i.DOCUMENT]},{provide:Se,useClass:Se,deps:[V,ie,u.APP_ID]},{provide:u.RendererFactory2,useExisting:Se},{provide:$,useExisting:ie},{provide:ie,useClass:ie,deps:[i.DOCUMENT]},{provide:u.Testability,useClass:u.Testability,deps:[u.NgZone]},{provide:V,useClass:V,deps:[R,u.NgZone]},{provide:i.XhrFactory,useClass:b,deps:[]}];let lt=(()=>{class Be{constructor(he){if(he)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(he){return{ngModule:Be,providers:[{provide:u.APP_ID,useValue:he.appId},{provide:I,useExisting:u.APP_ID},A]}}}return Be.\u0275fac=function(he){return new(he||Be)(u.\u0275\u0275inject(Be,12))},Be.\u0275mod=u.\u0275\u0275defineNgModule({type:Be}),Be.\u0275inj=u.\u0275\u0275defineInjector({providers:Ot,imports:[i.CommonModule,u.ApplicationModule]}),Be})(),N=(()=>{class Be{constructor(he){this._doc=he,this._dom=(0,i.\u0275getDOM)()}addTag(he,$e=!1){return he?this._getOrCreateElement(he,$e):null}addTags(he,$e=!1){return he?he.reduce((ut,Lt)=>(Lt&&ut.push(this._getOrCreateElement(Lt,$e)),ut),[]):[]}getTag(he){return he&&this._doc.querySelector(`meta[${he}]`)||null}getTags(he){if(!he)return[];const $e=this._doc.querySelectorAll(`meta[${he}]`);return $e?[].slice.call($e):[]}updateTag(he,$e){if(!he)return null;$e=$e||this._parseSelector(he);const ut=this.getTag($e);return ut?this._setMetaElementAttributes(he,ut):this._getOrCreateElement(he,!0)}removeTag(he){this.removeTagElement(this.getTag(he))}removeTagElement(he){he&&this._dom.remove(he)}_getOrCreateElement(he,$e=!1){if(!$e){const kt=this._parseSelector(he),hn=this.getTags(kt).filter(Dn=>this._containsAttributes(he,Dn))[0];if(void 0!==hn)return hn}const ut=this._dom.createElement("meta");return this._setMetaElementAttributes(he,ut),this._doc.getElementsByTagName("head")[0].appendChild(ut),ut}_setMetaElementAttributes(he,$e){return Object.keys(he).forEach(ut=>$e.setAttribute(this._getMetaKeyMap(ut),he[ut])),$e}_parseSelector(he){const $e=he.name?"name":"property";return`${$e}="${he[$e]}"`}_containsAttributes(he,$e){return Object.keys(he).every(ut=>$e.getAttribute(this._getMetaKeyMap(ut))===he[ut])}_getMetaKeyMap(he){return ae[he]||he}}return Be.\u0275fac=function(he){return new(he||Be)(u.\u0275\u0275inject(i.DOCUMENT))},Be.\u0275prov=u.\u0275\u0275defineInjectable({token:Be,factory:function(he){let $e=null;return $e=he?new he:function Qe(){return new N((0,u.\u0275\u0275inject)(i.DOCUMENT))}(),$e},providedIn:"root"}),Be})();const ae={httpEquiv:"http-equiv"};let ue=(()=>{class Be{constructor(he){this._doc=he}getTitle(){return this._doc.title}setTitle(he){this._doc.title=he||""}}return Be.\u0275fac=function(he){return new(he||Be)(u.\u0275\u0275inject(i.DOCUMENT))},Be.\u0275prov=u.\u0275\u0275defineInjectable({token:Be,factory:function(he){let $e=null;return $e=he?new he:function Oe(){return new ue((0,u.\u0275\u0275inject)(i.DOCUMENT))}(),$e},providedIn:"root"}),Be})();function Ge(Be,Ve){"undefined"!=typeof COMPILED&&COMPILED||((u.\u0275global.ng=u.\u0275global.ng||{})[Be]=Ve)}const tt="undefined"!=typeof window&&window||{};class ft{constructor(Ve,he){this.msPerTick=Ve,this.numTicks=he}}class pt{constructor(Ve){this.appRef=Ve.injector.get(u.ApplicationRef)}timeChangeDetection(Ve){const he=Ve&&Ve.record,$e="Change Detection",ut=null!=tt.console.profile;he&&ut&&tt.console.profile($e);const Lt=wt();let kt=0;for(;kt<5||wt()-Lt<500;)this.appRef.tick(),kt++;const hn=wt();he&&ut&&tt.console.profileEnd($e);const Dn=(hn-Lt)/kt;return tt.console.log(`ran ${kt} change detection cycles`),tt.console.log(`${Dn.toFixed(2)} ms per check`),new ft(Dn,kt)}}function wt(){return tt.performance&&tt.performance.now?tt.performance.now():(new Date).getTime()}const $t="profiler";function en(Be){return Ge($t,new pt(Be)),Be}function Bt(){Ge($t,null)}function En(Be){const Ve={"&":"&a;",'"':"&q;","'":"&s;","<":"&l;",">":"&g;"};return Be.replace(/[&"'<>]/g,he=>Ve[he])}function Wt(Be){return Be}let Mt=(()=>{class Be{constructor(){this.store={},this.onSerializeCallbacks={}}static init(he){const $e=new Be;return $e.store=he,$e}get(he,$e){return void 0!==this.store[he]?this.store[he]:$e}set(he,$e){this.store[he]=$e}remove(he){delete this.store[he]}hasKey(he){return this.store.hasOwnProperty(he)}onSerialize(he,$e){this.onSerializeCallbacks[he]=$e}toJson(){for(const he in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(he))try{this.store[he]=this.onSerializeCallbacks[he]()}catch($e){console.warn("Exception in onSerialize callback: ",$e)}return JSON.stringify(this.store)}}return Be.\u0275fac=function(he){return new(he||Be)},Be.\u0275prov=u.\u0275\u0275defineInjectable({token:Be,factory:Be.\u0275fac}),Be})();function bn(Be,Ve){const he=Be.getElementById(Ve+"-state");let $e={};if(he&&he.textContent)try{$e=JSON.parse(function rn(Be){const Ve={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"};return Be.replace(/&[^;]+;/g,he=>Ve[he])}(he.textContent))}catch(ut){console.warn("Exception while restoring TransferState for app "+Ve,ut)}return Mt.init($e)}let Qt=(()=>{class Be{}return Be.\u0275fac=function(he){return new(he||Be)},Be.\u0275mod=u.\u0275\u0275defineNgModule({type:Be}),Be.\u0275inj=u.\u0275\u0275defineInjector({providers:[{provide:Mt,useFactory:bn,deps:[i.DOCUMENT,u.APP_ID]}]}),Be})();class on{static all(){return()=>!0}static css(Ve){return he=>null!=he.nativeElement&&function yn(Be,Ve){return!!(0,i.\u0275getDOM)().isElementNode(Be)&&(Be.matches&&Be.matches(Ve)||Be.msMatchesSelector&&Be.msMatchesSelector(Ve)||Be.webkitMatchesSelector&&Be.webkitMatchesSelector(Ve))}(he.nativeElement,Ve)}static directive(Ve){return he=>-1!==he.providerTokens.indexOf(Ve)}}const oe={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},z=new u.InjectionToken("HammerGestureConfig"),m=new u.InjectionToken("HammerLoader");let C=(()=>{class Be{constructor(){this.events=[],this.overrides={}}buildHammer(he){const $e=new Hammer(he,this.options);$e.get("pinch").set({enable:!0}),$e.get("rotate").set({enable:!0});for(const ut in this.overrides)$e.get(ut).set(this.overrides[ut]);return $e}}return Be.\u0275fac=function(he){return new(he||Be)},Be.\u0275prov=u.\u0275\u0275defineInjectable({token:Be,factory:Be.\u0275fac}),Be})(),T=(()=>{class Be extends fe{constructor(he,$e,ut,Lt){super(he),this._config=$e,this.console=ut,this.loader=Lt,this._loaderPromise=null}supports(he){return!(!oe.hasOwnProperty(he.toLowerCase())&&!this.isCustomEvent(he)||!window.Hammer&&!this.loader)}addEventListener(he,$e,ut){const Lt=this.manager.getZone();if($e=$e.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||this.loader();let kt=!1,hn=()=>{kt=!0};return this._loaderPromise.then(()=>{window.Hammer?kt||(hn=this.addEventListener(he,$e,ut)):hn=()=>{}}).catch(()=>{hn=()=>{}}),()=>{hn()}}return Lt.runOutsideAngular(()=>{const kt=this._config.buildHammer(he),hn=function(Dn){Lt.runGuarded(function(){ut(Dn)})};return kt.on($e,hn),()=>{kt.off($e,hn),"function"==typeof kt.destroy&&kt.destroy()}})}isCustomEvent(he){return this._config.events.indexOf(he)>-1}}return Be.\u0275fac=function(he){return new(he||Be)(u.\u0275\u0275inject(i.DOCUMENT),u.\u0275\u0275inject(z),u.\u0275\u0275inject(u.\u0275Console),u.\u0275\u0275inject(m,8))},Be.\u0275prov=u.\u0275\u0275defineInjectable({token:Be,factory:Be.\u0275fac}),Be})(),K=(()=>{class Be{}return Be.\u0275fac=function(he){return new(he||Be)},Be.\u0275mod=u.\u0275\u0275defineNgModule({type:Be}),Be.\u0275inj=u.\u0275\u0275defineInjector({providers:[{provide:R,useClass:T,multi:!0,deps:[i.DOCUMENT,z,u.\u0275Console,[new u.Optional,m]]},{provide:z,useClass:C,deps:[]}]}),Be})(),qe=(()=>{class Be{}return Be.\u0275fac=function(he){return new(he||Be)},Be.\u0275prov=u.\u0275\u0275defineInjectable({token:Be,factory:function(he){let $e=null;return $e=he?new(he||Be):u.\u0275\u0275inject(zt),$e},providedIn:"root"}),Be})(),zt=(()=>{class Be extends qe{constructor(he){super(),this._doc=he}sanitize(he,$e){if(null==$e)return null;switch(he){case u.SecurityContext.NONE:return $e;case u.SecurityContext.HTML:return(0,u.\u0275allowSanitizationBypassAndThrow)($e,"HTML")?(0,u.\u0275unwrapSafeValue)($e):(0,u.\u0275_sanitizeHtml)(this._doc,String($e)).toString();case u.SecurityContext.STYLE:return(0,u.\u0275allowSanitizationBypassAndThrow)($e,"Style")?(0,u.\u0275unwrapSafeValue)($e):$e;case u.SecurityContext.SCRIPT:if((0,u.\u0275allowSanitizationBypassAndThrow)($e,"Script"))return(0,u.\u0275unwrapSafeValue)($e);throw new Error("unsafe value used in a script context");case u.SecurityContext.URL:return(0,u.\u0275getSanitizationBypassType)($e),(0,u.\u0275allowSanitizationBypassAndThrow)($e,"URL")?(0,u.\u0275unwrapSafeValue)($e):(0,u.\u0275_sanitizeUrl)(String($e));case u.SecurityContext.RESOURCE_URL:if((0,u.\u0275allowSanitizationBypassAndThrow)($e,"ResourceURL"))return(0,u.\u0275unwrapSafeValue)($e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${he} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(he){return(0,u.\u0275bypassSanitizationTrustHtml)(he)}bypassSecurityTrustStyle(he){return(0,u.\u0275bypassSanitizationTrustStyle)(he)}bypassSecurityTrustScript(he){return(0,u.\u0275bypassSanitizationTrustScript)(he)}bypassSecurityTrustUrl(he){return(0,u.\u0275bypassSanitizationTrustUrl)(he)}bypassSecurityTrustResourceUrl(he){return(0,u.\u0275bypassSanitizationTrustResourceUrl)(he)}}return Be.\u0275fac=function(he){return new(he||Be)(u.\u0275\u0275inject(i.DOCUMENT))},Be.\u0275prov=u.\u0275\u0275defineInjectable({token:Be,factory:function(he){let $e=null;return $e=he?new he:function Dt(Be){return new zt(Be.get(i.DOCUMENT))}(u.\u0275\u0275inject(u.Injector)),$e},providedIn:"root"}),Be})();const pn=new u.Version("13.1.2")},107:(Le,_,l)=>{"use strict";l.r(_),l.d(_,{MONACO_PATH:()=>M,MonacoDiffEditorComponent:()=>fe,MonacoEditorComponent:()=>V,MonacoEditorLoaderDirective:()=>R,MonacoEditorLoaderService:()=>b,MonacoEditorModule:()=>$});var i=l(5e3),u=l(2722),g=l(9300),c=l(5698),s=l(1135),y=l(6758),E=l(655),w=l(3075);const I=["editor"],h=["diffEditor"],M="MONACO_PATH";let b=(()=>{class ie{constructor(pe,_e){this.ngZone=pe,this.monacoPathConfig=_e,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 Fe=this._monacoPath;window.amdRequire=window.require;const Je=!!this.nodeRequire,ot=Fe.includes("http");Je&&(window.require=this.nodeRequire,ot||(Fe=window.require("path").resolve(window.__dirname,this._monacoPath))),window.amdRequire.config({paths:{vs:Fe}}),window.amdRequire(["vs/editor/editor.main"],()=>{this.ngZone.run(()=>this.isMonacoLoaded$.next(!0))},q=>console.error("Error loading monaco-editor: ",q))};if(window.amdRequire)return pe();window.require&&(this.addElectronFixScripts(),this.nodeRequire=window.require);const De=document.createElement("script");De.type="text/javascript",De.src=`${this._monacoPath}/loader.js`,De.addEventListener("load",pe),document.body.appendChild(De)}addElectronFixScripts(){const pe=document.createElement("script"),_e=document.createTextNode("self.module = undefined;"),le=document.createTextNode("self.process.browser = true;");pe.appendChild(_e),pe.appendChild(le),document.body.appendChild(pe)}}return ie.\u0275fac=function(pe){return new(pe||ie)(i.\u0275\u0275inject(i.NgZone),i.\u0275\u0275inject(M,8))},ie.\u0275prov=i.\u0275\u0275defineInjectable({token:ie,factory:ie.\u0275fac,providedIn:"root"}),ie})(),R=(()=>{class ie{constructor(pe,_e,le){this.templateRef=pe,this.viewContainer=_e,this.monacoEditorLoaderService=le,this.isMonacoLoaded$=this.monacoEditorLoaderService.isMonacoLoaded$.asObservable(),this.destroyed$=new y.x}ngOnInit(){this.isMonacoLoaded$.pipe((0,u.R)(this.destroyed$)).subscribe(pe=>{if(!pe)return this.viewContainer.clear();this.viewContainer.createEmbeddedView(this.templateRef)})}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}}return ie.\u0275fac=function(pe){return new(pe||ie)(i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(b))},ie.\u0275dir=i.\u0275\u0275defineDirective({type:ie,selectors:[["","ngxLoadMonacoEditor",""]]}),ie})(),V=(()=>{class ie{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,g.h)(pe=>pe),(0,c.q)(1)).subscribe(()=>{this.initEditor()})}ngOnChanges(pe){if(this.editor&&pe.options&&!pe.options.firstChange){const _e=pe.options.currentValue,{language:le,theme:De}=_e,Fe=(0,E.__rest)(_e,["language","theme"]),{language:Je,theme:ot}=pe.options.previousValue;Je!==le&&monaco.editor.setModelLanguage(this.editor.getModel(),this.options&&this.options.language?this.options.language:"text"),ot!==De&&monaco.editor.setTheme(De),this.editor.updateOptions(Fe)}if(this.editor&&pe.uri){const _e=pe.uri.currentValue,le=pe.uri.previousValue;if(le&&!_e||!le&&_e||_e&&le&&_e.path!==le.path){const De=this.editor.getValue();let Fe;this.modelUriInstance&&this.modelUriInstance.dispose(),_e&&(Fe=monaco.editor.getModels().find(Je=>Je.uri.path===_e.path)),this.modelUriInstance=Fe||monaco.editor.createModel(De,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:le})=>le).join("|");this.parsedError!==pe&&(this.parsedError=pe,this.onErrorStatusChange())}),this.editor.onDidBlurEditorText(()=>{this.onTouched()})}ngOnDestroy(){this.editor&&this.editor.dispose()}}return ie.\u0275fac=function(pe){return new(pe||ie)(i.\u0275\u0275directiveInject(b))},ie.\u0275cmp=i.\u0275\u0275defineComponent({type:ie,selectors:[["ngx-monaco-editor"]],viewQuery:function(pe,_e){if(1&pe&&i.\u0275\u0275viewQuery(I,7),2&pe){let le;i.\u0275\u0275queryRefresh(le=i.\u0275\u0275loadQuery())&&(_e.editorContent=le.first)}},inputs:{options:"options",uri:"uri"},outputs:{init:"init"},features:[i.\u0275\u0275ProvidersFeature([{provide:w.NG_VALUE_ACCESSOR,useExisting:(0,i.forwardRef)(()=>ie),multi:!0},{provide:w.NG_VALIDATORS,useExisting:(0,i.forwardRef)(()=>ie),multi:!0}]),i.\u0275\u0275NgOnChangesFeature],decls:4,vars:0,consts:[["fxFlex","",1,"editor-container"],["container",""],[1,"monaco-editor"],["editor",""]],template:function(pe,_e){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}),ie})(),fe=(()=>{class ie{constructor(pe){this.monacoLoader=pe,this.init=new i.EventEmitter}ngOnInit(){this.container=this.editorContent.nativeElement,this.monacoLoader.isMonacoLoaded$.pipe((0,g.h)(pe=>pe),(0,c.q)(1)).subscribe(()=>{this.initMonaco()})}ngOnChanges(pe){if(this.editor&&(pe.code&&!pe.code.firstChange||pe.modified&&!pe.modified.firstChange)){const _e=monaco.editor.createModel(this.modified),le=monaco.editor.createModel(this.original);this.editor.setModel({original:le,modified:_e})}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 _e=monaco.editor.createModel(this.original),le=monaco.editor.createModel(this.modified);this.editor.setModel({original:_e,modified:le}),this.editor.layout(),this.init.emit(this.editor)}ngOnDestroy(){this.editor&&this.editor.dispose()}}return ie.\u0275fac=function(pe){return new(pe||ie)(i.\u0275\u0275directiveInject(b))},ie.\u0275cmp=i.\u0275\u0275defineComponent({type:ie,selectors:[["ngx-monaco-diff-editor"]],viewQuery:function(pe,_e){if(1&pe&&i.\u0275\u0275viewQuery(h,7),2&pe){let le;i.\u0275\u0275queryRefresh(le=i.\u0275\u0275loadQuery())&&(_e.editorContent=le.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,_e){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}),ie})(),$=(()=>{class ie{}return ie.\u0275fac=function(pe){return new(pe||ie)},ie.\u0275mod=i.\u0275\u0275defineNgModule({type:ie}),ie.\u0275inj=i.\u0275\u0275defineInjector({imports:[[]]}),ie})()},1430:(Le,_,l)=>{"use strict";l.r(_),l.d(_,{ANGULAR_SPLIT_DEFAULT_OPTIONS:()=>De,AngularSplitModule:()=>ot,SplitAreaDirective:()=>Je,SplitComponent:()=>Fe});var i=l(5e3),u=l(9808),g=l(6758),c=l(9751),s=l(8372);const y=["gutterEls"];function E(q,Pe){if(1&q){const J=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"div",2,3),i.\u0275\u0275listener("mousedown",function(Se){i.\u0275\u0275restoreView(J);const re=i.\u0275\u0275nextContext().index;return i.\u0275\u0275nextContext().startDragging(Se,2*re+1,re+1)})("touchstart",function(Se){i.\u0275\u0275restoreView(J);const re=i.\u0275\u0275nextContext().index;return i.\u0275\u0275nextContext().startDragging(Se,2*re+1,re+1)})("mouseup",function(Se){i.\u0275\u0275restoreView(J);const re=i.\u0275\u0275nextContext().index;return i.\u0275\u0275nextContext().clickGutter(Se,re+1)})("touchend",function(Se){i.\u0275\u0275restoreView(J);const re=i.\u0275\u0275nextContext().index;return i.\u0275\u0275nextContext().clickGutter(Se,re+1)}),i.\u0275\u0275element(2,"div",4),i.\u0275\u0275elementEnd()}if(2&q){const J=i.\u0275\u0275nextContext().index,ce=i.\u0275\u0275nextContext();i.\u0275\u0275styleProp("flex-basis",ce.gutterSize,"px")("order",2*J+1)}}function w(q,Pe){1&q&&i.\u0275\u0275template(0,E,3,4,"div",1),2&q&&i.\u0275\u0275property("ngIf",!1===Pe.last)}const I=["*"];function h(q){return void 0!==q.changedTouches&&q.changedTouches.length>0?{x:q.changedTouches[0].clientX,y:q.changedTouches[0].clientY}:void 0!==q.clientX&&void 0!==q.clientY?{x:q.clientX,y:q.clientY}:null}function A(q,Pe,J){return Math.abs(q.x-Pe.x)<=J&&Math.abs(q.y-Pe.y)<=J}function M(q,Pe){const J=q.nativeElement.getBoundingClientRect();return"horizontal"===Pe?J.width:J.height}function b(q){return"boolean"==typeof q?q:"false"!==q}function R(q,Pe){return null==q?Pe:(q=Number(q),!isNaN(q)&&q>=0?q:Pe)}function V(q,Pe){if("percent"===q){const J=Pe.reduce((ce,Se)=>null!==Se?ce+Se:ce,0);return Pe.every(ce=>null!==ce)&&J>99.9&&J<100.1}if("pixel"===q)return 1===Pe.filter(J=>null===J).length}function fe(q){return null===q.size?null:!0===q.component.lockSize?q.size:null===q.component.minSize?null:q.component.minSize>q.size?q.size:q.component.minSize}function $(q){return null===q.size?null:!0===q.component.lockSize?q.size:null===q.component.maxSize?null:q.component.maxSize<q.size?q.size:q.component.maxSize}function ie(q,Pe,J,ce){return Pe.reduce((Se,re)=>{const Ke=function we(q,Pe,J,ce){return 0===J?{areaSnapshot:Pe,pixelAbsorb:0,percentAfterAbsorption:Pe.sizePercentAtStart,pixelRemain:0}:0===Pe.sizePixelAtStart&&J<0?{areaSnapshot:Pe,pixelAbsorb:0,percentAfterAbsorption:0,pixelRemain:J}:"percent"===q?function pe(q,Pe,J){const Se=(q.sizePixelAtStart+Pe)/J*100;if(Pe>0){if(null!==q.area.maxSize&&Se>q.area.maxSize){const re=q.area.maxSize/100*J;return{areaSnapshot:q,pixelAbsorb:re,percentAfterAbsorption:q.area.maxSize,pixelRemain:q.sizePixelAtStart+Pe-re}}return{areaSnapshot:q,pixelAbsorb:Pe,percentAfterAbsorption:Se>100?100:Se,pixelRemain:0}}if(Pe<0){if(null!==q.area.minSize&&Se<q.area.minSize){const re=q.area.minSize/100*J;return{areaSnapshot:q,pixelAbsorb:re,percentAfterAbsorption:q.area.minSize,pixelRemain:q.sizePixelAtStart+Pe-re}}return Se<0?{areaSnapshot:q,pixelAbsorb:-q.sizePixelAtStart,percentAfterAbsorption:0,pixelRemain:Pe+q.sizePixelAtStart}:{areaSnapshot:q,pixelAbsorb:Pe,percentAfterAbsorption:Se,pixelRemain:0}}}(Pe,J,ce):"pixel"===q?function _e(q,Pe,J){const ce=q.sizePixelAtStart+Pe;return Pe>0?null!==q.area.maxSize&&ce>q.area.maxSize?{areaSnapshot:q,pixelAbsorb:q.area.maxSize-q.sizePixelAtStart,percentAfterAbsorption:-1,pixelRemain:ce-q.area.maxSize}:{areaSnapshot:q,pixelAbsorb:Pe,percentAfterAbsorption:-1,pixelRemain:0}:Pe<0?null!==q.area.minSize&&ce<q.area.minSize?{areaSnapshot:q,pixelAbsorb:q.area.minSize+Pe-ce,percentAfterAbsorption:-1,pixelRemain:ce-q.area.minSize}:ce<0?{areaSnapshot:q,pixelAbsorb:-q.sizePixelAtStart,percentAfterAbsorption:-1,pixelRemain:Pe+q.sizePixelAtStart}:{areaSnapshot:q,pixelAbsorb:Pe,percentAfterAbsorption:-1,pixelRemain:0}:void 0}(Pe,J):void 0}(q,re,Se.remain,ce);return Se.list.push(Ke),Se.remain=Ke.pixelRemain,Se},{remain:J,list:[]})}function le(q,Pe){"percent"===q?Pe.areaSnapshot.area.size=Pe.percentAfterAbsorption:"pixel"===q&&null!==Pe.areaSnapshot.area.size&&(Pe.areaSnapshot.area.size=Pe.areaSnapshot.sizePixelAtStart+Pe.pixelAbsorb)}const De=new i.InjectionToken("angular-split-global-config");let Fe=(()=>{class q{constructor(J,ce,Se,re,Ke){this.ngZone=J,this.elRef=ce,this.cdRef=Se,this.renderer=re,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 g.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=Ke?Object.assign(this._config,Ke):this._config,Object.keys(this._config).forEach(ge=>{this[ge]=this._config[ge]})}set direction(J){this._direction="vertical"===J?"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(J){this._unit="pixel"===J?"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(J){this._gutterSize=R(J,11),this.build(!1,!1)}get gutterSize(){return this._gutterSize}set gutterStep(J){this._gutterStep=R(J,1)}get gutterStep(){return this._gutterStep}set restrictMove(J){this._restrictMove=b(J)}get restrictMove(){return this._restrictMove}set useTransition(J){this._useTransition=b(J),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(J){this._disabled=b(J),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(J){this._dir="rtl"===J?"rtl":"ltr",this.renderer.setAttribute(this.elRef.nativeElement,"dir",this._dir)}get dir(){return this._dir}set gutterDblClickDuration(J){this._gutterDblClickDuration=R(J,0)}get gutterDblClickDuration(){return this._gutterDblClickDuration}get transitionEnd(){return new c.y(J=>this.transitionEndSubscriber=J).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(J){const ce={component:J,order:0,size:0,minSize:null,maxSize:null,sizeBeforeCollapse:null,gutterBeforeCollapse:0};!0===J.visible?(this.displayedAreas.push(ce),this.build(!0,!0)):this.hiddenAreas.push(ce)}removeArea(J){if(this.displayedAreas.some(ce=>ce.component===J)){const ce=this.displayedAreas.find(Se=>Se.component===J);this.displayedAreas.splice(this.displayedAreas.indexOf(ce),1),this.build(!0,!0)}else if(this.hiddenAreas.some(ce=>ce.component===J)){const ce=this.hiddenAreas.find(Se=>Se.component===J);this.hiddenAreas.splice(this.hiddenAreas.indexOf(ce),1)}}updateArea(J,ce,Se){!0===J.visible&&this.build(ce,Se)}showArea(J){const ce=this.hiddenAreas.find(re=>re.component===J);if(void 0===ce)return;const Se=this.hiddenAreas.splice(this.hiddenAreas.indexOf(ce),1);this.displayedAreas.push(...Se),this.build(!0,!0)}hideArea(J){const ce=this.displayedAreas.find(re=>re.component===J);if(void 0===ce)return;const Se=this.displayedAreas.splice(this.displayedAreas.indexOf(ce),1);Se.forEach(re=>{re.order=0,re.size=0}),this.hiddenAreas.push(...Se),this.build(!0,!0)}getVisibleAreaSizes(){return this.displayedAreas.map(J=>null===J.size?"*":J.size)}setVisibleAreaSizes(J){if(J.length!==this.displayedAreas.length)return!1;const ce=J.map(re=>R(re,null));return!1!==V(this.unit,ce)&&(this.displayedAreas.forEach((re,Ke)=>re.component._size=ce[Ke]),this.build(!1,!0),!0)}build(J,ce){if(this.stopDragging(),!0===J&&(this.displayedAreas.every(Se=>null!==Se.component.order)&&this.displayedAreas.sort((Se,re)=>Se.component.order-re.component.order),this.displayedAreas.forEach((Se,re)=>{Se.order=2*re,Se.component.setStyleOrder(Se.order)})),!0===ce){const Se=V(this.unit,this.displayedAreas.map(re=>re.component.size));switch(this.unit){case"percent":{const re=100/this.displayedAreas.length;this.displayedAreas.forEach(Ke=>{Ke.size=Se?Ke.component.size:re,Ke.minSize=fe(Ke),Ke.maxSize=$(Ke)});break}case"pixel":if(Se)this.displayedAreas.forEach(re=>{re.size=re.component.size,re.minSize=fe(re),re.maxSize=$(re)});else{const re=this.displayedAreas.filter(Ke=>null===Ke.component.size);if(0===re.length&&this.displayedAreas.length>0)this.displayedAreas.forEach((Ke,ge)=>{Ke.size=0===ge?null:Ke.component.size,Ke.minSize=0===ge?null:fe(Ke),Ke.maxSize=0===ge?null:$(Ke)});else if(re.length>1){let Ke=!1;this.displayedAreas.forEach(ge=>{null===ge.component.size?!1===Ke?(ge.size=null,ge.minSize=null,ge.maxSize=null,Ke=!0):(ge.size=100,ge.minSize=null,ge.maxSize=null):(ge.size=ge.component.size,ge.minSize=fe(ge),ge.maxSize=$(ge))})}}}}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 J=this.getNbGutters()*this.gutterSize;this.displayedAreas.forEach(ce=>{ce.component.setStyleFlex(0,0,`calc( ${ce.size}% - ${ce.size/100*J}px )`,null!==ce.minSize&&ce.minSize===ce.size,null!==ce.maxSize&&ce.maxSize===ce.size)})}else"pixel"===this.unit&&this.displayedAreas.forEach(J=>{null===J.size?J.component.setStyleFlex(1,1,1===this.displayedAreas.length?"100%":"auto",!1,!1):1===this.displayedAreas.length?J.component.setStyleFlex(0,0,"100%",!1,!1):J.component.setStyleFlex(0,0,`${J.size}px`,null!==J.minSize&&J.minSize===J.size,null!==J.maxSize&&J.maxSize===J.size)})}clickGutter(J,ce){const Se=h(J);this.startPoint&&A(this.startPoint,Se,this.gutterClickDeltaPx)&&(!this.isDragging||this.isWaitingInitialMove)&&(null!==this._clickTimeout?(window.clearTimeout(this._clickTimeout),this._clickTimeout=null,this.notify("dblclick",ce),this.stopDragging()):this._clickTimeout=window.setTimeout(()=>{this._clickTimeout=null,this.notify("click",ce),this.stopDragging()},this.gutterDblClickDuration))}startDragging(J,ce,Se){J.preventDefault(),J.stopPropagation(),this.startPoint=h(J),null!==this.startPoint&&!0!==this.disabled&&!0!==this.isWaitingClear&&(this.snapshot={gutterNum:Se,lastSteppedOffset:0,allAreasSizePixel:M(this.elRef,this.direction)-this.getNbGutters()*this.gutterSize,allInvolvedAreasSizePercent:100,areasBeforeGutter:[],areasAfterGutter:[]},this.displayedAreas.forEach(re=>{const Ke={area:re,sizePixelAtStart:M(re.component.elRef,this.direction),sizePercentAtStart:"percent"===this.unit?re.size:-1};re.order<ce?!0===this.restrictMove?this.snapshot.areasBeforeGutter=[Ke]:this.snapshot.areasBeforeGutter.unshift(Ke):re.order>ce&&(!0===this.restrictMove?0===this.snapshot.areasAfterGutter.length&&(this.snapshot.areasAfterGutter=[Ke]):this.snapshot.areasAfterGutter.push(Ke))}),this.snapshot.allInvolvedAreasSizePercent=[...this.snapshot.areasBeforeGutter,...this.snapshot.areasAfterGutter].reduce((re,Ke)=>re+Ke.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(re=>re.component.lockEvents()),this.isDragging=!0,this.isWaitingInitialMove=!0))}dragEvent(J){J.preventDefault(),J.stopPropagation();const ce=h(J);if(null!==this._clickTimeout&&!A(this.startPoint,ce,this.gutterClickDeltaPx)&&(window.clearTimeout(this._clickTimeout),this._clickTimeout=null),!1===this.isDragging||(this.endPoint=h(J),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 Se="horizontal"===this.direction?this.startPoint.x-this.endPoint.x:this.startPoint.y-this.endPoint.y;"rtl"===this.dir&&(Se=-Se);const re=Math.round(Se/this.gutterStep)*this.gutterStep;if(re===this.snapshot.lastSteppedOffset)return;this.snapshot.lastSteppedOffset=re;let Ke=ie(this.unit,this.snapshot.areasBeforeGutter,-re,this.snapshot.allAreasSizePixel),ge=ie(this.unit,this.snapshot.areasAfterGutter,re,this.snapshot.allAreasSizePixel);if(0!==Ke.remain&&0!==ge.remain?Math.abs(Ke.remain)===Math.abs(ge.remain)||(Math.abs(Ke.remain)>Math.abs(ge.remain)?ge=ie(this.unit,this.snapshot.areasAfterGutter,re+Ke.remain,this.snapshot.allAreasSizePixel):Ke=ie(this.unit,this.snapshot.areasBeforeGutter,-(re-ge.remain),this.snapshot.allAreasSizePixel)):0!==Ke.remain?ge=ie(this.unit,this.snapshot.areasAfterGutter,re+Ke.remain,this.snapshot.allAreasSizePixel):0!==ge.remain&&(Ke=ie(this.unit,this.snapshot.areasBeforeGutter,-(re-ge.remain),this.snapshot.allAreasSizePixel)),"percent"===this.unit){const it=[...Ke.list,...ge.list],ye=it.find(He=>0!==He.percentAfterAbsorption&&He.percentAfterAbsorption!==He.areaSnapshot.area.minSize&&He.percentAfterAbsorption!==He.areaSnapshot.area.maxSize);ye&&(ye.percentAfterAbsorption=this.snapshot.allInvolvedAreasSizePercent-it.filter(He=>He!==ye).reduce((He,dt)=>He+dt.percentAfterAbsorption,0))}Ke.list.forEach(it=>le(this.unit,it)),ge.list.forEach(it=>le(this.unit,it)),this.refreshStyleSizes(),this.notify("progress",this.snapshot.gutterNum)}stopDragging(J){if(J&&(J.preventDefault(),J.stopPropagation()),!1!==this.isDragging){for(this.displayedAreas.forEach(ce=>ce.component.unlockEvents());this.dragListeners.length>0;){const ce=this.dragListeners.pop();ce&&ce()}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(J,ce){const Se=this.getVisibleAreaSizes();"start"===J?this.dragStart.emit({gutterNum:ce,sizes:Se}):"end"===J?this.dragEnd.emit({gutterNum:ce,sizes:Se}):"click"===J?this.gutterClick.emit({gutterNum:ce,sizes:Se}):"dblclick"===J?this.gutterDblClick.emit({gutterNum:ce,sizes:Se}):"transitionEnd"===J?this.transitionEndSubscriber&&this.ngZone.run(()=>this.transitionEndSubscriber.next(Se)):"progress"===J&&this.dragProgressSubject.next({gutterNum:ce,sizes:Se})}ngOnDestroy(){this.stopDragging()}collapseArea(J,ce,Se){const re=this.displayedAreas.find(it=>it.component===J);if(void 0===re)return;const Ke="right"===Se?1:-1;re.sizeBeforeCollapse||(re.sizeBeforeCollapse=re.size,re.gutterBeforeCollapse=Ke),re.size=ce;const ge=this.gutterEls.find(it=>it.nativeElement.style.order===`${re.order+Ke}`);ge&&this.renderer.addClass(ge.nativeElement,"as-split-gutter-collapsed"),this.updateArea(J,!1,!1)}expandArea(J){const ce=this.displayedAreas.find(re=>re.component===J);if(void 0===ce||!ce.sizeBeforeCollapse)return;ce.size=ce.sizeBeforeCollapse,ce.sizeBeforeCollapse=null;const Se=this.gutterEls.find(re=>re.nativeElement.style.order===`${ce.order+ce.gutterBeforeCollapse}`);Se&&this.renderer.removeClass(Se.nativeElement,"as-split-gutter-collapsed"),this.updateArea(J,!1,!1)}}return q.\u0275fac=function(J){return new(J||q)(i.\u0275\u0275directiveInject(i.NgZone),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.ChangeDetectorRef),i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(De,8))},q.\u0275cmp=i.\u0275\u0275defineComponent({type:q,selectors:[["as-split"]],viewQuery:function(J,ce){if(1&J&&i.\u0275\u0275viewQuery(y,5),2&J){let Se;i.\u0275\u0275queryRefresh(Se=i.\u0275\u0275loadQuery())&&(ce.gutterEls=Se)}},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:I,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(J,ce){1&J&&(i.\u0275\u0275projectionDef(),i.\u0275\u0275projection(0),i.\u0275\u0275template(1,w,1,1,"ng-template",0)),2&J&&(i.\u0275\u0275advance(1),i.\u0275\u0275property("ngForOf",ce.displayedAreas))},directives:[u.NgForOf,u.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}),q})(),Je=(()=>{class q{constructor(J,ce,Se,re){this.ngZone=J,this.elRef=ce,this.renderer=Se,this.split=re,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(J){this._order=R(J,null),this.split.updateArea(this,!0,!1)}get order(){return this._order}set size(J){this._size=R(J,null),this.split.updateArea(this,!1,!0)}get size(){return this._size}set minSize(J){this._minSize=R(J,null),this.split.updateArea(this,!1,!0)}get minSize(){return this._minSize}set maxSize(J){this._maxSize=R(J,null),this.split.updateArea(this,!1,!0)}get maxSize(){return this._maxSize}set lockSize(J){this._lockSize=b(J),this.split.updateArea(this,!1,!0)}get lockSize(){return this._lockSize}set visible(J){this._visible=b(J),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",J=>{"flex-basis"===J.propertyName&&this.split.notify("transitionEnd",-1)})})}setStyleOrder(J){this.renderer.setStyle(this.elRef.nativeElement,"order",J)}setStyleFlex(J,ce,Se,re,Ke){this.renderer.setStyle(this.elRef.nativeElement,"flex-grow",J),this.renderer.setStyle(this.elRef.nativeElement,"flex-shrink",ce),this.renderer.setStyle(this.elRef.nativeElement,"flex-basis",Se),!0===re?this.renderer.addClass(this.elRef.nativeElement,"as-min"):this.renderer.removeClass(this.elRef.nativeElement,"as-min"),!0===Ke?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 J=this.lockListeners.pop();J&&J()}}ngOnDestroy(){this.unlockEvents(),this.transitionListener&&this.transitionListener(),this.split.removeArea(this)}collapse(J=0,ce="right"){this.split.collapseArea(this,J,ce)}expand(){this.split.expandArea(this)}}return q.\u0275fac=function(J){return new(J||q)(i.\u0275\u0275directiveInject(i.NgZone),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(Fe))},q.\u0275dir=i.\u0275\u0275defineDirective({type:q,selectors:[["as-split-area"],["","as-split-area",""]],inputs:{order:"order",size:"size",minSize:"minSize",maxSize:"maxSize",lockSize:"lockSize",visible:"visible"},exportAs:["asSplitArea"]}),q})(),ot=(()=>{class q{static forRoot(){return console.warn("AngularSplitModule.forRoot() is deprecated and will be removed in v6"),{ngModule:q,providers:[]}}static forChild(){return console.warn("AngularSplitModule.forChild() is deprecated and will be removed in v6"),{ngModule:q,providers:[]}}}return q.\u0275fac=function(J){return new(J||q)},q.\u0275mod=i.\u0275\u0275defineNgModule({type:q}),q.\u0275inj=i.\u0275\u0275defineInjector({imports:[[u.CommonModule]]}),q})()},2290:(Le,_,l)=>{"use strict";l.r(_),l.d(_,{BasePortalHost:()=>le,ComponentPortal:()=>_e,DefaultGlobalConfig:()=>ge,DefaultNoAnimationsGlobalConfig:()=>dt,DefaultNoComponentGlobalConfig:()=>Fe,Overlay:()=>Se,OverlayContainer:()=>ce,OverlayRef:()=>J,TOAST_CONFIG:()=>Je,Toast:()=>Ke,ToastContainerDirective:()=>we,ToastContainerModule:()=>pe,ToastInjector:()=>q,ToastNoAnimation:()=>He,ToastNoAnimationModule:()=>Et,ToastPackage:()=>De,ToastRef:()=>ot,ToastrComponentlessModule:()=>ye,ToastrModule:()=>it,ToastrService:()=>re});var i=l(5e3),u=l(1777),g=l(6758),c=l(9808),s=l(2313);const y=["toast-component",""];function E(ke,Ze){if(1&ke){const Z=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"button",5),i.\u0275\u0275listener("click",function(){return i.\u0275\u0275restoreView(Z),i.\u0275\u0275nextContext().remove()}),i.\u0275\u0275elementStart(1,"span",6),i.\u0275\u0275text(2,"\xd7"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementEnd()}}function w(ke,Ze){if(1&ke&&(i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275text(1),i.\u0275\u0275elementContainerEnd()),2&ke){const Z=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1("[",Z.duplicatesCount+1,"]")}}function I(ke,Ze){if(1&ke&&(i.\u0275\u0275elementStart(0,"div"),i.\u0275\u0275text(1),i.\u0275\u0275template(2,w,2,1,"ng-container",4),i.\u0275\u0275elementEnd()),2&ke){const Z=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(Z.options.titleClass),i.\u0275\u0275attribute("aria-label",Z.title),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",Z.title," "),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",Z.duplicatesCount)}}function h(ke,Ze){if(1&ke&&i.\u0275\u0275element(0,"div",7),2&ke){const Z=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(Z.options.messageClass),i.\u0275\u0275property("innerHTML",Z.message,i.\u0275\u0275sanitizeHtml)}}function A(ke,Ze){if(1&ke&&(i.\u0275\u0275elementStart(0,"div",8),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&ke){const Z=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(Z.options.messageClass),i.\u0275\u0275attribute("aria-label",Z.message),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",Z.message," ")}}function M(ke,Ze){if(1&ke&&(i.\u0275\u0275elementStart(0,"div"),i.\u0275\u0275element(1,"div",9),i.\u0275\u0275elementEnd()),2&ke){const Z=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275styleProp("width",Z.width+"%")}}function b(ke,Ze){if(1&ke){const Z=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"button",5),i.\u0275\u0275listener("click",function(){return i.\u0275\u0275restoreView(Z),i.\u0275\u0275nextContext().remove()}),i.\u0275\u0275elementStart(1,"span",6),i.\u0275\u0275text(2,"\xd7"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementEnd()}}function R(ke,Ze){if(1&ke&&(i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275text(1),i.\u0275\u0275elementContainerEnd()),2&ke){const Z=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1("[",Z.duplicatesCount+1,"]")}}function V(ke,Ze){if(1&ke&&(i.\u0275\u0275elementStart(0,"div"),i.\u0275\u0275text(1),i.\u0275\u0275template(2,R,2,1,"ng-container",4),i.\u0275\u0275elementEnd()),2&ke){const Z=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(Z.options.titleClass),i.\u0275\u0275attribute("aria-label",Z.title),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",Z.title," "),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",Z.duplicatesCount)}}function fe(ke,Ze){if(1&ke&&i.\u0275\u0275element(0,"div",7),2&ke){const Z=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(Z.options.messageClass),i.\u0275\u0275property("innerHTML",Z.message,i.\u0275\u0275sanitizeHtml)}}function $(ke,Ze){if(1&ke&&(i.\u0275\u0275elementStart(0,"div",8),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&ke){const Z=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(Z.options.messageClass),i.\u0275\u0275attribute("aria-label",Z.message),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",Z.message," ")}}function ie(ke,Ze){if(1&ke&&(i.\u0275\u0275elementStart(0,"div"),i.\u0275\u0275element(1,"div",9),i.\u0275\u0275elementEnd()),2&ke){const Z=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275styleProp("width",Z.width+"%")}}let we=(()=>{class ke{constructor(Z){this.el=Z}getContainerElement(){return this.el.nativeElement}}return ke.\u0275fac=function(Z){return new(Z||ke)(i.\u0275\u0275directiveInject(i.ElementRef))},ke.\u0275dir=i.\u0275\u0275defineDirective({type:ke,selectors:[["","toastContainer",""]],exportAs:["toastContainer"]}),ke})(),pe=(()=>{class ke{}return ke.\u0275fac=function(Z){return new(Z||ke)},ke.\u0275mod=i.\u0275\u0275defineNgModule({type:ke}),ke.\u0275inj=i.\u0275\u0275defineInjector({}),ke})();class _e{constructor(Ze,Z){this.component=Ze,this.injector=Z}attach(Ze,Z){return this._attachedHost=Ze,Ze.attach(this,Z)}detach(){const Ze=this._attachedHost;if(Ze)return this._attachedHost=void 0,Ze.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(Ze){this._attachedHost=Ze}}class le{attach(Ze,Z){return this._attachedPortal=Ze,this.attachComponentPortal(Ze,Z)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(Ze){this._disposeFn=Ze}}class De{constructor(Ze,Z,me,Me,Re,ve){this.toastId=Ze,this.config=Z,this.message=me,this.title=Me,this.toastType=Re,this.toastRef=ve,this._onTap=new g.x,this._onAction=new g.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(Ze){this._onAction.next(Ze)}onAction(){return this._onAction.asObservable()}}const Fe={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},Je=new i.InjectionToken("ToastConfig");class ot{constructor(Ze){this._overlayRef=Ze,this.duplicatesCount=0,this._afterClosed=new g.x,this._activate=new g.x,this._manualClose=new g.x,this._resetTimeout=new g.x,this._countDuplicate=new g.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(Ze,Z){Ze&&this._resetTimeout.next(),Z&&this._countDuplicate.next(++this.duplicatesCount)}}class q{constructor(Ze,Z){this._toastPackage=Ze,this._parentInjector=Z}get(Ze,Z,me){return Ze===De?this._toastPackage:this._parentInjector.get(Ze,Z,me)}}class Pe extends le{constructor(Ze,Z,me){super(),this._hostDomElement=Ze,this._componentFactoryResolver=Z,this._appRef=me}attachComponentPortal(Ze,Z){const me=this._componentFactoryResolver.resolveComponentFactory(Ze.component);let Me;return Me=me.create(Ze.injector),this._appRef.attachView(Me.hostView),this.setDisposeFn(()=>{this._appRef.detachView(Me.hostView),Me.destroy()}),Z?this._hostDomElement.insertBefore(this._getComponentRootNode(Me),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(Me)),Me}_getComponentRootNode(Ze){return Ze.hostView.rootNodes[0]}}class J{constructor(Ze){this._portalHost=Ze}attach(Ze,Z=!0){return this._portalHost.attach(Ze,Z)}detach(){return this._portalHost.detach()}}let ce=(()=>{class ke{constructor(Z){this._document=Z}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const Z=this._document.createElement("div");Z.classList.add("overlay-container"),this._document.body.appendChild(Z),this._containerElement=Z}}return ke.\u0275fac=function(Z){return new(Z||ke)(i.\u0275\u0275inject(c.DOCUMENT))},ke.\u0275prov=i.\u0275\u0275defineInjectable({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})(),Se=(()=>{class ke{constructor(Z,me,Me,Re){this._overlayContainer=Z,this._componentFactoryResolver=me,this._appRef=Me,this._document=Re,this._paneElements=new Map}create(Z,me){return this._createOverlayRef(this.getPaneElement(Z,me))}getPaneElement(Z="",me){return this._paneElements.get(me)||this._paneElements.set(me,{}),this._paneElements.get(me)[Z]||(this._paneElements.get(me)[Z]=this._createPaneElement(Z,me)),this._paneElements.get(me)[Z]}_createPaneElement(Z,me){const Me=this._document.createElement("div");return Me.id="toast-container",Me.classList.add(Z),Me.classList.add("toast-container"),me?me.getContainerElement().appendChild(Me):this._overlayContainer.getContainerElement().appendChild(Me),Me}_createPortalHost(Z){return new Pe(Z,this._componentFactoryResolver,this._appRef)}_createOverlayRef(Z){return new J(this._createPortalHost(Z))}}return ke.\u0275fac=function(Z){return new(Z||ke)(i.\u0275\u0275inject(ce),i.\u0275\u0275inject(i.ComponentFactoryResolver),i.\u0275\u0275inject(i.ApplicationRef),i.\u0275\u0275inject(c.DOCUMENT))},ke.\u0275prov=i.\u0275\u0275defineInjectable({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})(),re=(()=>{class ke{constructor(Z,me,Me,Re,ve){this.overlay=me,this._injector=Me,this.sanitizer=Re,this.ngZone=ve,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig=Object.assign(Object.assign({},Z.default),Z.config),Z.config.iconClasses&&(this.toastrConfig.iconClasses=Object.assign(Object.assign({},Z.default.iconClasses),Z.config.iconClasses))}show(Z,me,Me={},Re=""){return this._preBuildNotification(Re,Z,me,this.applyConfig(Me))}success(Z,me,Me={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",Z,me,this.applyConfig(Me))}error(Z,me,Me={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",Z,me,this.applyConfig(Me))}info(Z,me,Me={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",Z,me,this.applyConfig(Me))}warning(Z,me,Me={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",Z,me,this.applyConfig(Me))}clear(Z){for(const me of this.toasts)if(void 0!==Z){if(me.toastId===Z)return void me.toastRef.manualClose()}else me.toastRef.manualClose()}remove(Z){const me=this._findToast(Z);if(!me||(me.activeToast.toastRef.close(),this.toasts.splice(me.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 Me=this.toasts[this.currentlyActive].toastRef;Me.isInactive()||(this.currentlyActive=this.currentlyActive+1,Me.activate())}return!0}findDuplicate(Z="",me="",Me,Re){const{includeTitleDuplicates:ve}=this.toastrConfig;for(const Ye of this.toasts){const ht=ve&&Ye.title===Z;if((!ve||ht)&&Ye.message===me)return Ye.toastRef.onDuplicate(Me,Re),Ye}return null}applyConfig(Z={}){return Object.assign(Object.assign({},this.toastrConfig),Z)}_findToast(Z){for(let me=0;me<this.toasts.length;me++)if(this.toasts[me].toastId===Z)return{index:me,activeToast:this.toasts[me]};return null}_preBuildNotification(Z,me,Me,Re){return Re.onActivateTick?this.ngZone.run(()=>this._buildNotification(Z,me,Me,Re)):this._buildNotification(Z,me,Me,Re)}_buildNotification(Z,me,Me,Re){if(!Re.toastComponent)throw new Error("toastComponent required");const ve=this.findDuplicate(Me,me,this.toastrConfig.resetTimeoutOnDuplicate&&Re.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&Me||me)&&this.toastrConfig.preventDuplicates&&null!==ve)return ve;this.previousToastMessage=me;let Ye=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(Ye=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const ht=this.overlay.create(Re.positionClass,this.overlayContainer);this.index=this.index+1;let bt=me;me&&Re.enableHtml&&(bt=this.sanitizer.sanitize(i.SecurityContext.HTML,me));const Ot=new ot(ht),lt=new De(this.index,Re,bt,Me,Z,Ot),Qe=new q(lt,this._injector),N=new _e(Re.toastComponent,Qe),ae=ht.attach(N,this.toastrConfig.newestOnTop);Ot.componentInstance=ae.instance;const Oe={toastId:this.index,title:Me||"",message:me||"",toastRef:Ot,onShown:Ot.afterActivate(),onHidden:Ot.afterClosed(),onTap:lt.onTap(),onAction:lt.onAction(),portal:ae};return Ye||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{Oe.toastRef.activate()})),this.toasts.push(Oe),Oe}}return ke.\u0275fac=function(Z){return new(Z||ke)(i.\u0275\u0275inject(Je),i.\u0275\u0275inject(Se),i.\u0275\u0275inject(i.Injector),i.\u0275\u0275inject(s.DomSanitizer),i.\u0275\u0275inject(i.NgZone))},ke.\u0275prov=i.\u0275\u0275defineInjectable({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})(),Ke=(()=>{class ke{constructor(Z,me,Me){this.toastrService=Z,this.toastPackage=me,this.ngZone=Me,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},this.message=me.message,this.title=me.title,this.options=me.config,this.originalTimeout=me.config.timeOut,this.toastClasses=`${me.toastType} ${me.config.toastClass}`,this.sub=me.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=me.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=me.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=me.toastRef.countDuplicate().subscribe(Re=>{this.duplicatesCount=Re})}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 Z=(new Date).getTime();this.width=(this.hideTime-Z)/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(Z,me){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(Z),me)):this.timeout=setTimeout(()=>Z(),me)}outsideInterval(Z,me){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(Z),me)):this.intervalId=setInterval(()=>Z(),me)}runInsideAngular(Z){this.ngZone?this.ngZone.run(()=>Z()):Z()}}return ke.\u0275fac=function(Z){return new(Z||ke)(i.\u0275\u0275directiveInject(re),i.\u0275\u0275directiveInject(De),i.\u0275\u0275directiveInject(i.NgZone))},ke.\u0275cmp=i.\u0275\u0275defineComponent({type:ke,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(Z,me){1&Z&&i.\u0275\u0275listener("click",function(){return me.tapToast()})("mouseenter",function(){return me.stickAround()})("mouseleave",function(){return me.delayedHideToast()}),2&Z&&(i.\u0275\u0275syntheticHostProperty("@flyInOut",me.state),i.\u0275\u0275classMap(me.toastClasses),i.\u0275\u0275styleProp("display",me.displayStyle))},attrs:y,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(Z,me){1&Z&&(i.\u0275\u0275template(0,E,3,0,"button",0),i.\u0275\u0275template(1,I,3,5,"div",1),i.\u0275\u0275template(2,h,1,3,"div",2),i.\u0275\u0275template(3,A,2,4,"div",3),i.\u0275\u0275template(4,M,2,2,"div",4)),2&Z&&(i.\u0275\u0275property("ngIf",me.options.closeButton),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",me.title),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",me.message&&me.options.enableHtml),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",me.message&&!me.options.enableHtml),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",me.options.progressBar))},directives:[c.NgIf],encapsulation:2,data:{animation:[(0,u.X$)("flyInOut",[(0,u.SB)("inactive",(0,u.oB)({opacity:0})),(0,u.SB)("active",(0,u.oB)({opacity:1})),(0,u.SB)("removed",(0,u.oB)({opacity:0})),(0,u.eR)("inactive => active",(0,u.jt)("{{ easeTime }}ms {{ easing }}")),(0,u.eR)("active => removed",(0,u.jt)("{{ easeTime }}ms {{ easing }}"))])]}}),ke})();const ge=Object.assign(Object.assign({},Fe),{toastComponent:Ke});let it=(()=>{class ke{static forRoot(Z={}){return{ngModule:ke,providers:[{provide:Je,useValue:{default:ge,config:Z}}]}}}return ke.\u0275fac=function(Z){return new(Z||ke)},ke.\u0275mod=i.\u0275\u0275defineNgModule({type:ke}),ke.\u0275inj=i.\u0275\u0275defineInjector({imports:[[c.CommonModule]]}),ke})(),ye=(()=>{class ke{static forRoot(Z={}){return{ngModule:it,providers:[{provide:Je,useValue:{default:Fe,config:Z}}]}}}return ke.\u0275fac=function(Z){return new(Z||ke)},ke.\u0275mod=i.\u0275\u0275defineNgModule({type:ke}),ke.\u0275inj=i.\u0275\u0275defineInjector({imports:[[c.CommonModule]]}),ke})(),He=(()=>{class ke{constructor(Z,me,Me){this.toastrService=Z,this.toastPackage=me,this.appRef=Me,this.width=-1,this.toastClasses="",this.state="inactive",this.message=me.message,this.title=me.title,this.options=me.config,this.originalTimeout=me.config.timeOut,this.toastClasses=`${me.toastType} ${me.config.toastClass}`,this.sub=me.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=me.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=me.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=me.toastRef.countDuplicate().subscribe(Re=>{this.duplicatesCount=Re})}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 Z=(new Date).getTime();this.width=(this.hideTime-Z)/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 ke.\u0275fac=function(Z){return new(Z||ke)(i.\u0275\u0275directiveInject(re),i.\u0275\u0275directiveInject(De),i.\u0275\u0275directiveInject(i.ApplicationRef))},ke.\u0275cmp=i.\u0275\u0275defineComponent({type:ke,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(Z,me){1&Z&&i.\u0275\u0275listener("click",function(){return me.tapToast()})("mouseenter",function(){return me.stickAround()})("mouseleave",function(){return me.delayedHideToast()}),2&Z&&(i.\u0275\u0275classMap(me.toastClasses),i.\u0275\u0275styleProp("display",me.displayStyle))},attrs:y,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(Z,me){1&Z&&(i.\u0275\u0275template(0,b,3,0,"button",0),i.\u0275\u0275template(1,V,3,5,"div",1),i.\u0275\u0275template(2,fe,1,3,"div",2),i.\u0275\u0275template(3,$,2,4,"div",3),i.\u0275\u0275template(4,ie,2,2,"div",4)),2&Z&&(i.\u0275\u0275property("ngIf",me.options.closeButton),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",me.title),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",me.message&&me.options.enableHtml),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",me.message&&!me.options.enableHtml),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",me.options.progressBar))},directives:[c.NgIf],encapsulation:2}),ke})();const dt=Object.assign(Object.assign({},Fe),{toastComponent:He});let Et=(()=>{class ke{static forRoot(Z={}){return{ngModule:ke,providers:[{provide:Je,useValue:{default:dt,config:Z}}]}}}return ke.\u0275fac=function(Z){return new(Z||ke)},ke.\u0275mod=i.\u0275\u0275defineNgModule({type:ke}),ke.\u0275inj=i.\u0275\u0275defineInjector({imports:[[c.CommonModule]]}),ke})()},4147:Le=>{"use strict";Le.exports=JSON.parse('{"name":"@sdkgen/playground","version":"0.0.0-dev.20220119163338","description":"","main":"index.js","types":"index.d.ts","repository":{"type":"git","url":"git+https://github.com/sdkgen/sdkgen.git"},"publishConfig":{"access":"public"},"scripts":{"eslint:fix":"eslint --fix \'src/**/*.{t,j}s\'","eslint:check":"eslint \'src/**/*.{t,j}s\'","ng":"ng","start":"ng serve","build":"ng build","build:stats":"ng build --stats-json","analyze":"webpack-bundle-analyzer dist/stats.json","watch":"ng build --watch --configuration development"},"dependencies":{"@sdkgen/browser-runtime":"0.0.0-dev.20220119163338","@sdkgen/csharp-generator":"0.0.0-dev.20220119163338","@sdkgen/dart-generator":"0.0.0-dev.20220119163338","@sdkgen/fsharp-generator":"0.0.0-dev.20220119163338","@sdkgen/kotlin-generator":"0.0.0-dev.20220119163338","@sdkgen/parser":"0.0.0-dev.20220119163338","@sdkgen/swift-generator":"0.0.0-dev.20220119163338","@sdkgen/typescript-generator":"0.0.0-dev.20220119163338"},"devDependencies":{"@angular-devkit/build-angular":"~13.1.2","@angular/animations":"~13.1.2","@angular/cdk":"~13.1.2","@angular/cli":"~13.1.2","@angular/common":"~13.1.2","@angular/compiler":"~13.1.2","@angular/compiler-cli":"~13.1.2","@angular/core":"~13.1.2","@angular/forms":"~13.1.2","@angular/material":"~13.1.2","@angular/platform-browser":"~13.1.2","@angular/platform-browser-dynamic":"~13.1.2","@angular/router":"~13.1.2","@cubos/eslint-config":"^1.0.553260","@materia-ui/ngx-monaco-editor":"^6.0.0","@types/file-saver":"^2.0.3","@types/node":"^16.0.0","angular-split":"^13.0.0","file-saver":"^2.0.5","json":"^11.0.0","monaco-editor":"^0.31.1","ngx-json-viewer":"^3.0.2","ngx-toastr":"^14.2.1","rxjs":"~7.5.2","typescript":"~4.5.4","webpack-bundle-analyzer":"^4.5.0","zone.js":"~0.11.4"}}')}},Le=>{Le(Le.s=4431)}]);