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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +0,0 @@
1
- (self.webpackChunksdkgen_playground=self.webpackChunksdkgen_playground||[]).push([[179],{4602:function(Be,m){"use strict";var D,l=this&&this.__extends||(D=function(p,y){return(D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(I,O){I.__proto__=O}||function(I,O){for(var w in O)Object.prototype.hasOwnProperty.call(O,w)&&(I[w]=O[w])})(p,y)},function(p,y){if("function"!=typeof y&&null!==y)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");function I(){this.constructor=p}D(p,y),p.prototype=null===y?Object.create(y):(I.prototype=y.prototype,new I)}),i=this&&this.__spreadArray||function(D,p,y){if(y||2===arguments.length)for(var w,I=0,O=p.length;I<O;I++)(w||!(I in p))&&(w||(w=Array.prototype.slice.call(p,0,I)),w[I]=p[I]);return D.concat(w||Array.prototype.slice.call(p))};Object.defineProperty(m,"__esModule",{value:!0}),m.decode=m.encode=void 0;var d=["string","email","phone","html","xml"],_=i(["json","bool","url","int","uint","float","money","hex","uuid","base64","void"],d,!0),u=function(D){function p(y,I,O){var k;try{k=JSON.stringify(O)}catch(V){k=String(O)}return D.call(this,"Invalid type at '".concat(y,"', expected ").concat(I,", got ").concat(k))||this}return l(p,D),p}(Error);function s(D,p,y){if("json"===p)return null==y?null:JSON.parse(JSON.stringify(y));if("bool"===p){if("boolean"!=typeof y)throw new u(D,p,y);return y}if(d.indexOf(p)>=0){if("string"!=typeof y)throw new u(D,p,y);return y}if("hex"===p){if("string"!=typeof y||!/^(?:[A-Fa-f0-9]{2})*$/u.test(y))throw new u(D,p,y);return y.toLowerCase()}if("uuid"===p){if("string"!=typeof y||!/^[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{12}$/u.test(y))throw new u(D,p,y);return y.toLowerCase()}if("base64"===p){var I=!0;try{atob(y)}catch(w){I=!1}if("string"!=typeof y||!I)throw new u(D,p,y);return y}if("int"===p){if("number"!=typeof y||(0|y)!==y)throw new u(D,p,y);return y}if("uint"===p){if("number"!=typeof y||(0|y)!==y||y<0)throw new u(D,p,y);return y}if("float"===p){if("number"!=typeof y)throw new u(D,p,y);return y}if("money"===p){if("number"!=typeof y||!Number.isInteger(y))throw new u(D,p,y);return y}if("url"===p){var O=void 0;if("string"==typeof y)try{O=new URL(y)}catch(w){}if(!O)throw new u(D,p,y);return O.toString()}if("void"===p)return null;throw new Error("Unknown type '".concat(p,"' at '").concat(D,"'"))}m.encode=function v(D,p,y,I){if("string"==typeof y&&!y.endsWith("?")&&"void"!==y&&null==I)throw new Error("Invalid type at '".concat(p,"', cannot be null"));if(Array.isArray(y)){for(var O=0,w=y;O<w.length;O++){var k=w[O];if(k===I)return I;if(Array.isArray(I)&&2===I.length&&k===I[0])return I[0];if(Array.isArray(k)&&2===k.length){if(k[0]===I)return[I,v(D,"".concat(p,".").concat(k[0]),k[1],{})];if(Array.isArray(I)&&2===I.length&&k[0]===I[0])return[I[0],v(D,"".concat(p,".").concat(k[0]),k[1],I[1])]}}throw new u(p,y,I)}if("object"==typeof y){if("object"!=typeof I)throw new u(p,y,I);for(var V={},ue=0,$=Object.keys(y);ue<$.length;ue++){var ne=$[ue];V[ne]=v(D,"".concat(p,".").concat(ne),y[ne],I[ne])}return V}if(y.endsWith("?"))return null==I?null:v(D,p,y.slice(0,y.length-1),I);if(y.endsWith("[]")){if(!Array.isArray(I))throw new u(p,y,I);return I.map(function(fe,_e){return v(D,"".concat(p,"[").concat(_e,"]"),y.slice(0,y.length-2),fe)})}if(_.indexOf(y)>=0)return s(p,y,I);if("bytes"===y){if(!(I instanceof ArrayBuffer))throw new u(p,y,I);return btoa(String.fromCharCode.apply(String,new Uint8Array(I)))}if("bigint"===y){if("bigint"!=typeof I)throw new u(p,y,I);return I.toString()}if("cpf"===y){if("string"!=typeof I)throw new u(p,y,I);return I}if("cnpj"===y){if("string"!=typeof I)throw new u(p,y,I);return I}if("date"===y){if((!(I instanceof Date)||isNaN(I.getTime()))&&("string"!=typeof I||!/^[0-9]{4}-[01][0-9]-[0123][0-9]$/u.test(I)))throw new u(p,y,I);return"string"==typeof I?new Date(I).toISOString().split("T")[0]:I.toISOString().split("T")[0]}if("datetime"===y){if((!(I instanceof Date)||isNaN(I.getTime()))&&("string"!=typeof I||!/^[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(I)))throw new u(p,y,I);return("string"==typeof I?new Date(I):I).toISOString().replace("Z","")}var De=D[y];if(De)return v(D,p,De,I);throw new Error("Unknown type '".concat(y,"' at '").concat(p,"'"))},m.decode=function C(D,p,y,I){if("string"==typeof y&&!y.endsWith("?")&&"void"!==y&&null==I)throw new Error("Invalid type at '".concat(p,"', cannot be null"));if(Array.isArray(y)){for(var O=0,w=y;O<w.length;O++){var k=w[O];if(k===I)return I;if(Array.isArray(I)&&2===I.length&&k===I[0])return I[0];if(Array.isArray(k)&&2===k.length){if(k[0]===I)return[I,C(D,"".concat(p,".").concat(k[0]),k[1],{})];if(Array.isArray(I)&&2===I.length&&k[0]===I[0])return[I[0],C(D,"".concat(p,".").concat(k[0]),k[1],I[1])]}}throw new u(p,y,I)}if("object"==typeof y){if("object"!=typeof I)throw new u(p,y,I);for(var V={},ue=0,$=Object.keys(y);ue<$.length;ue++){var ne=$[ue];V[ne]=C(D,"".concat(p,".").concat(ne),y[ne],I[ne])}return V}if(y.endsWith("?"))return null==I?null:C(D,p,y.slice(0,y.length-1),I);if(y.endsWith("[]")){if(!Array.isArray(I))throw new u(p,y,I);return I.map(function(Le,Xe){return C(D,"".concat(p,"[").concat(Xe,"]"),y.slice(0,y.length-2),Le)})}if(_.indexOf(y)>=0)return s(p,y,I);if("bytes"!==y){if("bigint"===y){if("number"!=typeof I&&("string"!=typeof I||!/^-?[0-9]+$/u.test(I)))throw new u(p,y,I);return BigInt(I)}if("cpf"===y){if("string"!=typeof I)throw new u(p,y,I);return I}if("cnpj"===y){if("string"!=typeof I)throw new u(p,y,I);return I}if("date"===y){if("string"!=typeof I||!/^[0-9]{4}-[01][0-9]-[0123][0-9]$/u.test(I))throw new u(p,y,I);var De=parseInt(I.split("-")[2],10),fe=parseInt(I.split("-")[1],10)-1,_e=parseInt(I.split("-")[0],10),le=new Date(_e,fe,De);if(le.getFullYear()!==_e||le.getMonth()!==fe||le.getDate()!==De)throw new u(p,y,I);return le}if("datetime"===y){if("string"!=typeof I||!/^[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(I))throw new u(p,y,I);return new Date("".concat(I.endsWith("Z")?I:I.concat("Z")))}var Se=D[y];if(Se)return C(D,p,Se,I);throw new Error("Unknown type '".concat(y,"' at '").concat(p,"'"))}if("string"!=typeof I)throw new u(p,"".concat(y," (base 64)"),I);try{return Uint8Array.from(atob(I),function(Le){return Le.charCodeAt(0)})}catch(Le){throw new u(p,"".concat(y," (base 64)"),I)}}},2837:function(Be,m){"use strict";var _,l=this&&this.__extends||(_=function(u,s){return(_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,C){v.__proto__=C}||function(v,C){for(var D in C)Object.prototype.hasOwnProperty.call(C,D)&&(v[D]=C[D])})(u,s)},function(u,s){if("function"!=typeof s&&null!==s)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function v(){this.constructor=u}_(u,s),u.prototype=null===s?Object.create(s):(v.prototype=s.prototype,new v)});Object.defineProperty(m,"__esModule",{value:!0}),m.SdkgenErrorWithData=m.SdkgenError=void 0;var i=function(_){function u(){return null!==_&&_.apply(this,arguments)||this}return l(u,_),Object.defineProperty(u.prototype,"type",{get:function(){return this.constructor.name},enumerable:!1,configurable:!0}),u.prototype.toJSON=function(){return{message:this.message,type:this.type}},u}(Error);m.SdkgenError=i;var d=function(_){function u(s,v){var C=_.call(this,s)||this;return C.data=v,C}return l(u,_),u.prototype.toJSON=function(){return{data:this.data,message:this.message,type:this.type}},u}(i);m.SdkgenErrorWithData=d},2062:function(Be,m,l){"use strict";var i=this&&this.__awaiter||function(p,y,I,O){return new(I||(I=Promise))(function(k,V){function ue(De){try{ne(O.next(De))}catch(fe){V(fe)}}function $(De){try{ne(O.throw(De))}catch(fe){V(fe)}}function ne(De){De.done?k(De.value):function w(k){return k instanceof I?k:new I(function(V){V(k)})}(De.value).then(ue,$)}ne((O=O.apply(p,y||[])).next())})},d=this&&this.__generator||function(p,y){var O,w,k,V,I={label:0,sent:function(){if(1&k[0])throw k[1];return k[1]},trys:[],ops:[]};return V={next:ue(0),throw:ue(1),return:ue(2)},"function"==typeof Symbol&&(V[Symbol.iterator]=function(){return this}),V;function ue(ne){return function(De){return function $(ne){if(O)throw new TypeError("Generator is already executing.");for(;I;)try{if(O=1,w&&(k=2&ne[0]?w.return:ne[0]?w.throw||((k=w.return)&&k.call(w),0):w.next)&&!(k=k.call(w,ne[1])).done)return k;switch(w=0,k&&(ne=[2&ne[0],k.value]),ne[0]){case 0:case 1:k=ne;break;case 4:return I.label++,{value:ne[1],done:!1};case 5:I.label++,w=ne[1],ne=[0];continue;case 7:ne=I.ops.pop(),I.trys.pop();continue;default:if(!(k=(k=I.trys).length>0&&k[k.length-1])&&(6===ne[0]||2===ne[0])){I=0;continue}if(3===ne[0]&&(!k||ne[1]>k[0]&&ne[1]<k[3])){I.label=ne[1];break}if(6===ne[0]&&I.label<k[1]){I.label=k[1],k=ne;break}if(k&&I.label<k[2]){I.label=k[2],I.ops.push(ne);break}k[2]&&I.ops.pop(),I.trys.pop();continue}ne=y.call(p,I)}catch(De){ne=[6,De],w=0}finally{O=k=0}if(5&ne[0])throw ne[1];return{value:ne[0]?ne[1]:void 0,done:!0}}([ne,De])}}};Object.defineProperty(m,"__esModule",{value:!0}),m.SdkgenHttpClient=void 0;var _=l(4602);function u(p){for(var y="",I=0;I<2*p;++I)y+="0123456789abcdef"[Math.floor(16*Math.random())];return y}var s=u(20);function v(){try{var p=localStorage.getItem("deviceId");return p||(p=s,localStorage.setItem("deviceId",p)),p}catch(y){}return s}function C(p,y){return y in p}var D=function(){function p(y,I,O){this.astJson=I,this.errClasses=O,this.extra=new Map,this.successHook=function(){},this.errorHook=function(){},this.baseUrl=y}return p.prototype.makeRequest=function(y,I){var O,w;return i(this,void 0,void 0,function(){var k,V,ue,$,ne,De=this;return d(this,function(fe){switch(fe.label){case 0:if(!(k=this.astJson.functionTable[y]))throw new Error("Unknown function ".concat(y));return V={},this.extra.forEach(function(_e,le){V[le]=_e}),ue={args:(0,_.encode)(this.astJson.typeTable,"".concat(y,".args"),k.args,I),deviceInfo:{id:v(),language:navigator.language,platform:{browserUserAgent:navigator.userAgent},timezone:"object"==typeof Intl?Intl.DateTimeFormat().resolvedOptions().timeZone:null,type:"web",version:null!==(w=null===(O=document.currentScript)||void 0===O?void 0:O.getAttribute("src"))&&void 0!==w?w:""},extra:V,name:y,requestId:u(16),version:3},[4,new Promise(function(_e,le){var Se=new XMLHttpRequest;Se.open("POST","".concat(De.baseUrl,"/").concat(y)),Se.setRequestHeader("Content-Type","application/sdkgen"),Se.onreadystatechange=function(){if(4===Se.readyState)try{var Le=JSON.parse(Se.responseText);try{C(Le,"error")&&Le.error?(le(Le.error),De.errorHook(Le.error,y,I)):_e(C(Le,"result")?Le.result:null)}catch(lt){var Xe={message:"".concat(lt),type:"Fatal"};le(Xe),De.errorHook(Xe,y,I)}}catch(lt){le(Xe={message:"Falha de conex\xe3o com o servidor",type:"Fatal"}),De.errorHook(Xe,y,I)}},Se.send(JSON.stringify(ue))}).catch(function(_e){if(De.errorHook(_e,y,I),C(_e,"type")&&C(_e,"message")&&"string"==typeof _e.type&&"string"==typeof _e.message){var le=De.errClasses[_e.type];if(le){var Se=De.astJson.errors.find(function(Le){return Array.isArray(Le)?Le[0]===_e.type:Le===_e.type});if(Se)throw Array.isArray(Se)&&C(_e,"data")?new le(_e.message,(0,_.decode)(De.astJson.typeTable,"".concat(le.name,".data"),Se[1],_e.data)):new le(_e.message,void 0)}throw new De.errClasses.Fatal("".concat(_e.type,": ").concat(_e.message))}throw _e})];case 1:return $=fe.sent(),ne=(0,_.decode)(this.astJson.typeTable,"".concat(y,".ret"),k.ret,$),this.successHook(ne,y,I),[2,ne]}})})},p}();m.SdkgenHttpClient=D},4539:function(Be,m,l){"use strict";var i=this&&this.__createBinding||(Object.create?function(_,u,s,v){void 0===v&&(v=s),Object.defineProperty(_,v,{enumerable:!0,get:function(){return u[s]}})}:function(_,u,s,v){void 0===v&&(v=s),_[v]=u[s]}),d=this&&this.__exportStar||function(_,u){for(var s in _)"default"!==s&&!Object.prototype.hasOwnProperty.call(u,s)&&i(u,_,s)};Object.defineProperty(m,"__esModule",{value:!0}),d(l(2837),m),d(l(2062),m)},3905:(Be,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.generateCSharpServerSource=void 0;const i=l(6676),d=l(4510);m.generateCSharpServerSource=function _(u){let s="using System;\nusing System.Collections.Generic;\nusing System.Globalization;\nusing System.Numerics;\nusing System.Text.Json;\nusing System.Threading.Tasks;\nusing Sdkgen.Runtime;\n\nnamespace SdkgenGenerated\n{\n public abstract class Api : BaseApi\n {";for(const v of u.operations){const C=v.returnType instanceof i.VoidPrimitiveType?"":`<${(0,d.generateTypeName)(v.returnType)}>`;s+=`\n public virtual Task${C} ${(0,d.capitalize)(v.name)}(${["Context ctx",...v.args.map(D=>`${(0,d.generateTypeName)(D.type)} ${(0,d.ident)(D.name)}`)].join(", ")})\n {\n return Task.FromException${C}(new FatalException("Function '${v.name}' not implemented."));\n }\n`}s+="\n public async Task ExecuteFunction(Context context_, Utf8JsonWriter resultWriter_)\n {\n switch (context_.Name)\n {";for(const v of u.operations){s+=`\n case ${JSON.stringify(v.name)}:\n {`;for(const C of v.args)s+=`\n JsonElement ${C.name}Json_;\n if (!context_.Args.TryGetValue(${JSON.stringify(C.name)}, out ${C.name}Json_))\n {\n ${C.type instanceof i.OptionalType?`${C.name}Json_ = new JsonElement()`:`throw new FatalException("'${v.name}().args.${C.name}' must be set to a value of type ${C.type.name}.");`}\n }\n ${(0,d.generateTypeName)(C.type)} ${(0,d.ident)(C.name)};\n ${(0,d.decodeType)(C.type,`${C.name}Json_`,`"${v.name}().args.${C.name}"`,(0,d.ident)(C.name)).replace(/\n/gu,"\n ")}`;s+=v.returnType instanceof i.VoidPrimitiveType?`\n await ${(0,d.capitalize)(v.name)}(${["context_",...v.args.map(C=>(0,d.ident)(C.name))].join(", ")});\n resultWriter_.WriteNullValue();`:`\n var result_ = await ${(0,d.capitalize)(v.name)}(${["context_",...v.args.map(C=>(0,d.ident)(C.name))].join(", ")});\n ${(0,d.encodeType)(v.returnType,"result_",`"${v.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 v of u.structTypes)s+=(0,d.generateStruct)(v);for(const v of u.enumTypes)s+=(0,d.generateEnum)(v);s+=`\n public string GetAstJson() => @"${JSON.stringify((0,i.astToJson)(u),null,4).replace(/"/gu,'""').replace(/\n/gu,"\n ")}";\n }\n`;for(const v of u.errors)s+=`\n public class ${v.name}Exception : SdkgenException\n {\n public ${v.name}Exception(string message, Exception? inner = null) : base("${v.name}", message, inner) { }\n }\n`;return s+="\n}\n",s}},4510:(Be,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.generateEnum=m.generateStruct=m.encodeType=m.decodeType=m.generateTypeName=m.capitalize=m.ident=void 0;const i=l(6676),d=["abstract","as","base","bool","break","byte","case","catch","char","checked","class","const","continue","decimal","default","delegate","do","double","else","enum","event","explicit","extern","false","finally","fixed","float","for","foreach","goto","if","implicit","in","int","interface","internal","is","lock","long","namespace","new","null","object","operator","out","override","params","private","protected","public","readonly","ref","return","sbyte","sealed","short","sizeof","stackalloc","static","string","struct","switch","this","throw","true","try","typeof","uint","ulong","unchecked","unsafe","ushort","using","using","static","virtual","void","volatile","while"],_=[i.StringPrimitiveType,i.HtmlPrimitiveType,i.CpfPrimitiveType,i.CnpjPrimitiveType,i.BytesPrimitiveType,i.EmailPrimitiveType,i.UrlPrimitiveType,i.UuidPrimitiveType,i.HexPrimitiveType,i.Base64PrimitiveType,i.XmlPrimitiveType,i.StructType,i.ArrayType],u=[i.BigIntPrimitiveType,i.DatePrimitiveType,i.DateTimePrimitiveType,i.FloatPrimitiveType,i.IntPrimitiveType,i.MoneyPrimitiveType,i.UIntPrimitiveType];function s(O){return d.includes(O)?`@${O}`:O}function v(O){return O[0].toUpperCase()+O.slice(1)}function C(O){switch(O.constructor){case i.StringPrimitiveType:return"string";case i.IntPrimitiveType:return"int";case i.UIntPrimitiveType:return"uint";case i.FloatPrimitiveType:return"double";case i.BigIntPrimitiveType:return"BigInteger";case i.DatePrimitiveType:case i.DateTimePrimitiveType:return"DateTime";case i.BoolPrimitiveType:return"bool";case i.BytesPrimitiveType:return"byte[]";case i.MoneyPrimitiveType:return"decimal";case i.CpfPrimitiveType:case i.CnpjPrimitiveType:case i.EmailPrimitiveType:case i.HtmlPrimitiveType:case i.UrlPrimitiveType:case i.UuidPrimitiveType:case i.HexPrimitiveType:case i.Base64PrimitiveType:case i.XmlPrimitiveType:return"string";case i.VoidPrimitiveType:return"void";case i.JsonPrimitiveType:return"JsonElement";case i.OptionalType:return`${C(O.base)}?`;case i.ArrayType:return`List<${C(O.base)}>`;case i.StructType:case i.EnumType:return O.name;case i.TypeReference:return C(O.type);default:throw new Error(`BUG: generateTypeName with ${O.constructor.name}`)}}function D(O,w,k,V,ue=1,$=!0){switch(O.constructor){case i.IntPrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.Number || !${w}.TryGetInt32(out ${V}))\n {\n throw new FatalException($"'{${k}}' must be an integer");\n }\n `.replace(/\n {16}/gu,"\n").trim();case i.UIntPrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.Number || !${w}.TryGetUInt32(out ${V}))\n {\n throw new FatalException($"'{${k}}' must be an unsigned integer.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case i.MoneyPrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.Number || !${w}.TryGetDecimal(out ${V}) || ${V} % 1 != 0)\n {\n throw new FatalException($"'{${k}}' must be an integer amount of cents.");\n }\n ${V} /= 100;\n `.replace(/\n {16}/gu,"\n").trim();case i.FloatPrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.Number || !${w}.TryGetDouble(out ${V}))\n {\n throw new FatalException($"'{${k}}' must be a floating-point number.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case i.BigIntPrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.String || !BigInteger.TryParse(${w}.GetString(), out ${V}))\n {\n throw new FatalException($"'{${k}}' must be an arbitrarily large integer in a string.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case i.StringPrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${k}}' must be a string.");\n }\n ${V} = ${w}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.HtmlPrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${k}}' must be a valid HTML string.");\n }\n ${V} = ${w}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.CpfPrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${k}}' must be a valid CPF string.");\n }\n ${V} = ${w}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.CnpjPrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${k}}' must be a valid CNPJ string.");\n }\n ${V} = ${w}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.EmailPrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${k}}' must be a valid email.");\n }\n ${V} = ${w}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.UrlPrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${k}}' must be a valid URL string.");\n }\n ${V} = ${w}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.UuidPrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${k}}' must be a valid UUID.");\n }\n ${V} = ${w}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.HexPrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${k}}' must be a valid hex string.");\n }\n ${V} = ${w}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.Base64PrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${k}}' must be a base64 string.");\n }\n ${V} = ${w}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.XmlPrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${k}}' must be a XML string.");\n }\n ${V} = ${w}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.BoolPrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.True && ${w}.ValueKind != JsonValueKind.False)\n {\n throw new FatalException($"'{${k}}' must be either true or false.");\n }\n ${V} = ${w}.GetBoolean();\n `.replace(/\n {16}/gu,"\n").trim();case i.BytesPrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${k}}' must be a string.");\n }\n try\n {\n ${V} = Convert.FromBase64String(${w}.GetString());\n }\n catch (FormatException)\n {\n throw new FatalException($"'{${k}}' must be a base64 string.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case i.TypeReference:return D(O.type,w,k,V,ue);case i.OptionalType:if(u.includes(O.base.constructor)){const ne=`${V.replace(/[^0-9a-zA-Z]/gu,"")}Tmp`;return`\n if (${w}.ValueKind == JsonValueKind.Null || ${w}.ValueKind == JsonValueKind.Undefined)\n {\n ${V} = null;\n }\n else\n {\n ${C(O.base)} ${ne};\n ${D(O.base,w,k,ne,ue,!1).replace(/\n/gu,"\n ")}\n ${V} = ${ne};\n }\n `.replace(/\n {20}/gu,"\n").trim()}return`\n if (${w}.ValueKind == JsonValueKind.Null || ${w}.ValueKind == JsonValueKind.Undefined)\n {\n ${V} = null;\n }\n else\n {\n ${D(O.base,w,k,V,ue,!1).replace(/\n/gu,"\n ")}\n }\n `.replace(/\n {20}/gu,"\n").trim();case i.EnumType:case i.StructType:return`${V} = Decode${O.name}(${w}, ${k});`;case i.JsonPrimitiveType:return $?`\n if (${w}.ValueKind == JsonValueKind.Null || ${w}.ValueKind == JsonValueKind.Undefined)\n {\n throw new FatalException($"'{${k}}' can't be null.");\n }\n ${V} = ${w};\n `.replace(/\n {16}/gu,"\n").trim():`${V} = ${w};`;case i.DateTimePrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.String || !(DateTime.TryParseExact(${w}.GetString(), "yyyy-MM-ddTHH:mm:ss.FFFFFFF", CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal | DateTimeStyles.AssumeUniversal, out ${V}) || DateTime.TryParseExact(${w}.GetString(), "yyyy-MM-ddTHH:mm:ss.FFFFFFF'Z'", CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal | DateTimeStyles.AssumeUniversal, out ${V})))\n {\n throw new FatalException($"'{${k}}' must be a datetime.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case i.DatePrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.String || !(DateTime.TryParseExact(${w}.GetString(), "yyyy-MM-dd", CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal | DateTimeStyles.AssumeUniversal, out ${V})))\n {\n throw new FatalException($"'{${k}}' must be a date.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case i.ArrayType:return`\n if (${w}.ValueKind != JsonValueKind.Array)\n {\n throw new FatalException($"'{${k}}' must be a date.");\n }\n ${V} = new ${C(O)}();\n for (var i${ue} = 0; i${ue} < ${w}.GetArrayLength(); ++i${ue})\n {\n ${C(O.base)} element${ue};\n ${D(O.base,`${w}[i${ue}]`,`$"{${k}}[{i${ue}}]"`,`element${ue}`,ue+1).replace(/\n/gu,"\n ")}\n ${V}.Add(element${ue});\n }\n `.replace(/\n {16}/gu,"\n").trim();default:throw new Error(`BUG: decodeType with ${O.constructor.name}`)}}function p(O,w,k,V=1){switch(O.constructor){case i.StringPrimitiveType:return`resultWriter_.WriteStringValue(${w});`;case i.FloatPrimitiveType:case i.UIntPrimitiveType:case i.IntPrimitiveType:return`resultWriter_.WriteNumberValue(${w});`;case i.MoneyPrimitiveType:return`resultWriter_.WriteNumberValue(Math.Round(${w} * 100));`;case i.BigIntPrimitiveType:return`resultWriter_.WriteStringValue(${w}.ToString());`;case i.BoolPrimitiveType:return`resultWriter_.WriteBooleanValue(${w});`;case i.BytesPrimitiveType:return`resultWriter_.WriteStringValue(Convert.ToBase64String(${w}));`;case i.DateTimePrimitiveType:return`resultWriter_.WriteStringValue(${w}.ToString("yyyy-MM-ddTHH:mm:ss.FFFFFF'Z'"));`;case i.DatePrimitiveType:return`resultWriter_.WriteStringValue(${w}.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(${w});`;case i.OptionalType:{let ue=O.base;for(;ue instanceof i.TypeReference;)ue=ue.type;return`\n if (${w} == null)\n {\n resultWriter_.WriteNullValue();\n }\n else\n {\n ${p(ue,_.includes(ue.constructor)?w:`${w}.Value`,k,V).replace(/\n/gu,"\n ")}\n }`.replace(/\n {16}/gu,"\n").trim()}case i.TypeReference:return p(O.type,w,k,V);case i.EnumType:case i.StructType:return`Encode${O.name}(${w}, resultWriter_, ${k});`;case i.JsonPrimitiveType:return`${w}.WriteTo(resultWriter_);`;case i.ArrayType:return`\n resultWriter_.WriteStartArray();\n for (var i${V} = 0; i${V} < ${w}.Count; ++i${V})\n {\n ${p(O.base,`${w}[i${V}]`,`$"{${k}}[{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 ${O.constructor.name}`)}}m.ident=s,m.capitalize=v,m.generateTypeName=C,m.decodeType=D,m.encodeType=p,m.generateStruct=function y(O){return`\n public class ${O.name}\n {${O.fields.map(w=>`\n public ${C(w.type)} ${v(w.name)};`).join("")}\n public ${O.name}(${O.fields.map(w=>`${C(w.type)} ${s(w.name)}`).join(", ")})\n {${O.fields.map(w=>`\n ${v(w.name)} = ${s(w.name)};`).join("")}\n }\n }\n\n ${O.name} Decode${O.name}(JsonElement json_, string path_)\n {\n if (json_.ValueKind != JsonValueKind.Object)\n {\n throw new FatalException($"'{path_}' must be an object.");\n }\n${O.fields.map(w=>` JsonElement ${w.name}Json_;\n if (!json_.TryGetProperty(${JSON.stringify(w.name)}, out ${w.name}Json_))\n {\n ${w.type instanceof i.OptionalType?`${w.name}Json_ = new JsonElement();`:`throw new FatalException($"'{path_}.${w.name}' must be set to a value of type ${w.type.name}.");`}\n }\n ${C(w.type)} ${s(w.name)};\n ${D(w.type,`${w.name}Json_`,`$"{path_}.${w.name}"`,s(w.name)).replace(/\n/gu,"\n ")}`).join("\n")}\n return new ${O.name}(${O.fields.map(w=>s(w.name)).join(", ")});\n }\n\n void Encode${O.name}(${O.name} obj_, Utf8JsonWriter resultWriter_, string path_)\n {\n resultWriter_.WriteStartObject();\n ${O.fields.map(w=>`resultWriter_.WritePropertyName(${JSON.stringify(w.name)});\n ${p(w.type,`obj_.${v(w.name)}`,`$"{path_}.${w.name}"`).replace(/\n/gu,"\n ")}`).join("\n ")}\n resultWriter_.WriteEndObject();\n }\n`},m.generateEnum=function I(O){return`\n public enum ${O.name}\n {${O.values.map(({value:w})=>`\n ${v(w)}`).join(",\n ")}\n }\n\n ${O.name} Decode${O.name}(JsonElement json_, string path_)\n {\n if (json_.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{path_}' must be a string.");\n }\n var value = json_.GetString();${O.values.map(({value:w})=>`\n if (value == "${w}")\n {\n return ${O.name}.${v(w)};\n }`).join("")}\n throw new FatalException($"'{path_}' must be one of: (${O.values.map(({value:w})=>`'${w}'`).join(", ")}).");\n }\n\n void Encode${O.name}(${O.name} obj_, Utf8JsonWriter resultWriter_, string path_)\n {${O.values.map(({value:w})=>`\n if (obj_ == ${O.name}.${v(w)})\n {\n resultWriter_.WriteStringValue("${w}");\n }`).join("")}\n }\n`}},7179:function(Be,m,l){"use strict";var i=this&&this.__createBinding||(Object.create?function(_,u,s,v){void 0===v&&(v=s),Object.defineProperty(_,v,{enumerable:!0,get:function(){return u[s]}})}:function(_,u,s,v){void 0===v&&(v=s),_[v]=u[s]}),d=this&&this.__exportStar||function(_,u){for(var s in _)"default"!==s&&!Object.prototype.hasOwnProperty.call(u,s)&&i(u,_,s)};Object.defineProperty(m,"__esModule",{value:!0}),d(l(3905),m)},1911:(Be,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.generateDartClientSource=void 0;const i=l(6676),d=l(5235);m.generateDartClientSource=function _(u){let s="";s+="import 'dart:typed_data';\n\nimport 'package:flutter/widgets.dart';\nimport 'package:sdkgen_runtime/types.dart';\nimport 'package:sdkgen_runtime/http_client.dart';\n\n";for(const v of u.enumTypes)s+=(0,d.generateEnum)(v),s+="\n";for(const v of u.structTypes)s+=(0,d.generateClass)(v),s+="\n";for(const v of u.errors)s+=(0,d.generateErrorClass)(v),s+="\n";s+=`class ApiClient extends SdkgenHttpClient {\n ApiClient(String baseUrl, [BuildContext? context]) : super(baseUrl, context, _typeTable, _fnTable, _errTable);\n${u.operations.filter(v=>v.annotations.every(C=>!(C instanceof i.HiddenAnnotation))).map(v=>`\n ${v.returnType instanceof i.VoidPrimitiveType?"Future<void> ":`Future<${(0,d.generateTypeName)(v.returnType)}> `}${v.name}(${0===v.args.length?"":`{${v.args.map(C=>`${C.type instanceof i.OptionalType?"":"required "}${(0,d.generateTypeName)(C.type)} ${(0,d.mangle)(C.name)}`).join(", ")}}`}) async { ${v.returnType instanceof i.VoidPrimitiveType?"":"return "}${(0,d.cast)(`await makeRequest('${v.name}', {${v.args.map(C=>`'${C.name}': ${(0,d.mangle)(C.name)}`).join(", ")}})`,v.returnType)}; }`).join("")}\n}\n\n`,s+="var _typeTable = {\n";for(const v of u.structTypes){s+=` '${v.name}': StructTypeDescription(\n`,s+=` ${v.name},\n`,s+=" {\n";for(const C of v.fields)s+=` '${C.name}': '${C.type.name}',\n`;s+=" },\n",s+=` (Map fields) => ${v.name}(\n`;for(const C of v.fields)s+=` ${(0,d.mangle)(C.name)}: ${(0,d.cast)(`fields['${C.name}']`,C.type)},\n`;s+=" ),\n",s+=` (${v.name} obj) => ({\n`;for(const C of v.fields)s+=` '${C.name}': obj.${(0,d.mangle)(C.name)},\n`;s+=" }),\n",s+=" ),\n"}for(const v of u.enumTypes)s+=` '${v.name}': EnumTypeDescription(${v.name}, ${v.name}.values, [\n ${v.values.map(C=>`'${C.value}'`).join(",\n ")}\n ]),\n`;s+="};\n\n",s+="var _fnTable = {\n";for(const v of u.operations){s+=` '${v.name}': FunctionDescription('${v.returnType.name}', {\n`;for(const C of v.args)s+=` '${C.name}': '${C.type.name}',\n`;s+=" }),\n"}s+="};\n\n",s+="var _errTable = {\n";for(const v of u.errors)s+=` '${v.name}': SdkgenErrorDescription('${v.dataType.name}', (msg, data) => ${v.name}(msg${v.dataType instanceof i.VoidPrimitiveType?"":", data"})),\n`;return s+="};\n",s}},5235:(Be,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.generateClass=m.cast=m.generateErrorClass=m.generateTypeName=m.generateEnum=m.mangle=void 0;const i=l(6676);function d(O){return["abstract","as","assert","async","await","bool","break","case","catch","class","const","continue","covariant","default","deferred","do","double","dynamic","else","enum","export","extends","extension","external","factory","false","final","finally","for","Function","get","hide","if","implements","import","in","int","interface","is","library","mixin","new","null","on","operator","part","rethrow","return","set","show","static","super","switch","sync","this","throw","true","try","typedef","var","void","while","with","yield"].includes(O)?`$${O}`:O}function u(O){switch(O.constructor){case i.StringPrimitiveType:return"String";case i.IntPrimitiveType:case i.UIntPrimitiveType:return"int";case i.FloatPrimitiveType:return"double";case i.BigIntPrimitiveType:return"BigInt";case i.DatePrimitiveType:case i.DateTimePrimitiveType:return"DateTime";case i.BoolPrimitiveType:return"bool";case i.BytesPrimitiveType:return"Uint8List";case i.MoneyPrimitiveType:return"int";case i.CpfPrimitiveType:case i.CnpjPrimitiveType:case i.EmailPrimitiveType:case i.HtmlPrimitiveType:case i.UrlPrimitiveType:case i.UuidPrimitiveType:case i.HexPrimitiveType:case i.Base64PrimitiveType:case i.XmlPrimitiveType:return"String";case i.VoidPrimitiveType:return"void";case i.JsonPrimitiveType:return"dynamic";case i.OptionalType:return`${u(O.base)}?`;case i.ArrayType:return`List<${u(O.base)}>`;case i.StructType:case i.EnumType:return O.name;case i.TypeReference:return u(O.type);default:throw new Error(`BUG: generateTypeName with ${O.constructor.name}`)}}m.mangle=d,m.generateEnum=function _(O){return`enum ${O.name} {\n ${O.values.map(w=>w.value).join(",\n ")}\n}\n`},m.generateTypeName=u,m.generateErrorClass=function s(O){if(O.dataType instanceof i.VoidPrimitiveType)return`class ${O.name} extends SdkgenError {\n ${O.name}(String msg) : super(msg);\n}\n`;const w=u(O.dataType);return`class ${O.name} extends SdkgenErrorWithData<${w}> {\n ${O.name}(String msg, ${w} data) : super(msg, data);\n}\n`},m.cast=function v(O,w){return w instanceof i.OptionalType?`${O} == null ? null : ${v(O,w.base)}`:w instanceof i.ArrayType?`(${O} as List).map((e) => ${v("e",w.base)}).toList()`:w instanceof i.VoidPrimitiveType?O:w instanceof i.FloatPrimitiveType?`(${O} as num).toDouble()`:w instanceof i.MoneyPrimitiveType?`${O} as int`:`${O} as ${u(w)}`},m.generateClass=function I(O){return`class ${O.name} {\n ${O.fields.map(w=>`final ${u(w.type)} ${d(w.name)};`).join("\n ")}\n\n${function C(O){let w=` ${O.name}({\n`;for(const k of O.fields)w+=k.type instanceof i.OptionalType?" ":" required ",w+=`this.${d(k.name)},\n`;return w+=" });\n",w}(O)}\n${function D(O){let w=" bool operator ==(other){\n";return w+=" if (identical(this, other)) return true;\n",w+=` return ${[`other is ${O.name}`,...O.fields.map(k=>`${d(k.name)} == other.${d(k.name)}`)].join(" && ")};\n`,w+=" }\n",w}(O)}\n${function p(O){return` @override\n int get hashCode => hashList([${O.fields.map(w=>d(w.name)).join(", ")}]);\n`}(O)}\n${function y(O){return` String toString() {\n return '${O.name} { ${O.fields.map(w=>`${w.name}: $${d(w.name).startsWith("$")?`{${d(w.name)}}`:d(w.name)}`).join(", ")} }';\n }\n`}(O)}}\n`}},1823:function(Be,m,l){"use strict";var i=this&&this.__createBinding||(Object.create?function(_,u,s,v){void 0===v&&(v=s),Object.defineProperty(_,v,{enumerable:!0,get:function(){return u[s]}})}:function(_,u,s,v){void 0===v&&(v=s),_[v]=u[s]}),d=this&&this.__exportStar||function(_,u){for(var s in _)"default"!==s&&!Object.prototype.hasOwnProperty.call(u,s)&&i(u,_,s)};Object.defineProperty(m,"__esModule",{value:!0}),d(l(1911),m)},9409:(Be,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.generateAndroidClientSource=void 0;const i=l(6676),d=l(7250);m.generateAndroidClientSource=function _(u,s){let v='@file:Suppress("UNNECESSARY_SAFE_CALL")\n\nimport android.os.Parcelable\nimport kotlinx.android.parcel.Parcelize\nimport android.content.Context\nimport android.util.Base64\nimport com.google.gson.*\nimport com.google.gson.reflect.TypeToken\nimport com.google.gson.annotations.JsonAdapter\nimport com.google.gson.annotations.SerializedName\nimport io.sdkgen.runtime.SdkgenHttpClient\nimport kotlinx.coroutines.*\nimport kotlinx.coroutines.Dispatchers.IO\nimport java.util.*\n\ninline fun <reified T> Gson.fromJson(json: String) =\n fromJson<T>(json, object : TypeToken<T>() {}.type)\n\ninline fun <reified T> Gson.fromJson(json: JsonElement) =\n fromJson<T>(json, object : TypeToken<T>() {}.type)\n\n@Suppress("DeferredIsResult", "unused")\nclass ApiClient(\n baseUrl: String,\n val applicationContext: Context,\n defaultTimeoutMillis: Long = 10000L\n) : SdkgenHttpClient(baseUrl, applicationContext, defaultTimeoutMillis) {\n\n private val gson = GsonBuilder()\n .registerTypeAdapter(object : TypeToken<ByteArray>() {}.type, ByteArrayDeserializer())\n .create()\n\n';for(const p of u.enumTypes)v+=` ${(0,d.generateEnum)(p)}`,v+="\n";v+=" open class Error(val message: String? = null)\n",v+=" data class Response<T>(val error: Error?, val data: T?, val stats: CallStats?)\n\n";for(const p of u.structTypes)v+=` ${(0,d.generateClass)(p)}\n`;const C=[],D=new i.ErrorNode("Connection",new i.VoidPrimitiveType);C.push(D.name),v+=` ${(0,d.generateErrorClass)(D)}`;for(const p of u.errors)v+=` ${(0,d.generateErrorClass)(p)}`,C.push(p.name);return C.length>0&&(v+=`\n enum class ErrorType {\n ${C.join(",\n ")};\n\n fun type(): Class<out ApiClient.Error> {\n return when (this) {\n ${C.map(p=>`${p} -> ApiClient.${p}::class.java`).join("\n ")}\n else -> ApiClient.Error::class.java\n }\n }\n }\n\n`),v+=" private val sdkgenIOScope = CoroutineScope(IO + SupervisorJob())\n\n",v+=u.operations.filter(p=>p.annotations.every(y=>!(y instanceof i.HiddenAnnotation))).map(p=>{let y="";const I=[];I.push("timeoutMillis: Long? = null"),s&&I.push(`callback: ((response: Response<${(0,d.generateKotlinTypeName)(p.returnType)}>) -> Unit)? = null`);const O=p.args.map(w=>`${(0,d.mangle)(w.name)}: ${(0,d.generateKotlinTypeName)(w.type)}`).concat(I);return y+=` fun ${(0,d.mangle)(p.name)}(\n ${O.join(",\n ")}\n ): Deferred<Response<out ${(0,d.generateKotlinTypeName)(p.returnType)}>> = sdkgenIOScope.async {\n`,p.args.length>0?(y+=" val bodyArgs = JsonObject().apply {\n",y+=p.args.map(w=>` ${(0,d.generateJsonAddRepresentation)(w.type,w.name)}`).join("\n"),y+="\n }\n"):y+=" val bodyArgs: JsonObject? = null",y+="\n",y+=` val call = makeRequest("${p.name}", bodyArgs, timeoutMillis)\n`,y+=` val response: Response<${(0,d.generateKotlinTypeName)(p.returnType)}> = handleCallResponse(call)\n`,s&&(y+=" withContext(Dispatchers.Main) { callback?.invoke(response) } \n"),y+=" return@async response\n",y+=" }\n",y}).join("\n"),v+='\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',v+="}\n",v}},7250:(Be,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.generateErrorClass=m.generateClass=m.getAnnotation=m.generateEnum=m.generateJsonAddRepresentation=m.mangle=m.generateKotlinTypeName=void 0;const i=l(6676);function d(p){switch(p.constructor){case i.IntPrimitiveType:case i.UIntPrimitiveType:case i.MoneyPrimitiveType:return"Int";case i.FloatPrimitiveType:return"Double";case i.BigIntPrimitiveType:return"BigInt";case i.DatePrimitiveType:case i.DateTimePrimitiveType:return"Calendar";case i.BoolPrimitiveType:return"Boolean";case i.BytesPrimitiveType:return"ByteArray";case i.StringPrimitiveType:case i.CpfPrimitiveType:case i.CnpjPrimitiveType:case i.EmailPrimitiveType:case i.HtmlPrimitiveType:case i.UrlPrimitiveType:case i.UuidPrimitiveType:case i.HexPrimitiveType:case i.Base64PrimitiveType:case i.XmlPrimitiveType:return"String";case i.VoidPrimitiveType:return"Unit";case i.JsonPrimitiveType:return"JsonElement";case i.OptionalType:return`${d(p.base)}?`;case i.ArrayType:return`ArrayList<${d(p.base)}>`;case i.StructType:case i.EnumType:return p.name;case i.TypeReference:return d(p.type);default:throw new Error(`BUG: generateKotlinTypeName with ${p.constructor.name}`)}}function _(p){return["in","out","as","break","class","continue","do","else","false","for","fun","if","in","interface","is","null","object","package","return","super","this","throw","true","try","typealias","val","var","when","while","by","catch","constructor","delegate","dynamic","field","file","finally","get","import","init","param","property","receiver","set","setparam","where","actual","abstract","annotation","companion","const","crossinline","data","enum","expect","external","final","infix","inline","inner","internal","lateinit","noinline","open","operator","out","override","private","protected","public","reified","sealed","suspend","tailrec","vararg","Double","Float","Long","Int","Short","Byte"].includes(p)?`_${p}`:p}function v(p,y){let I="";switch(y&&y!==_(y)&&(I+=` @SerializedName("${y}")\n`),p.constructor){case i.DatePrimitiveType:I+=" @JsonAdapter(DateAdapter::class)\n";break;case i.DateTimePrimitiveType:I+=" @JsonAdapter(DateTimeAdapter::class)\n";break;case i.ArrayType:case i.OptionalType:I+=v(p.base)}return I}m.generateKotlinTypeName=d,m.mangle=_,m.generateJsonAddRepresentation=function u(p,y){switch(p.constructor){case i.StringPrimitiveType:case i.CpfPrimitiveType:case i.CnpjPrimitiveType:case i.EmailPrimitiveType:case i.HtmlPrimitiveType:case i.UrlPrimitiveType:case i.UuidPrimitiveType:case i.HexPrimitiveType:case i.Base64PrimitiveType:case i.XmlPrimitiveType:case i.IntPrimitiveType:case i.UIntPrimitiveType:case i.MoneyPrimitiveType:case i.FloatPrimitiveType:case i.BoolPrimitiveType:return`addProperty("${y}", ${_(y)})`;case i.OptionalType:return u(p.base,y);case i.DatePrimitiveType:return`addProperty("${y}", ${_(y)}?.let { DateAdapter.sdf.format(it.time)}) `;case i.DateTimePrimitiveType:return`addProperty("${y}", ${_(y)}?.let { DateTimeAdapter.sdf.format(it.time)})`;case i.ArrayType:case i.StructType:case i.EnumType:case i.TypeReference:case i.JsonPrimitiveType:return`add("${y}", gson.toJsonTree(${_(y)}))`;case i.VoidPrimitiveType:return"";case i.BytesPrimitiveType:return`addProperty("${y}", Base64.encodeToString(${_(y)}, Base64.NO_WRAP))`;default:throw new Error(`BUG: No result found for generateJsonRepresentation with ${p.constructor.name}`)}},m.generateEnum=function s(p){let y="@Parcelize \n";return y+=` enum class ${p.name} : Parcelable { ${p.values.map(I=>_(I.value)).join(", ")} }\n`,y},m.getAnnotation=v,m.generateClass=function C(p){let y="@Parcelize\n";return y+=` data class ${p.name}(\n${p.fields.map(I=>{let O=v(I.type,I.name);return O+=` var ${_(I.name)}: ${d(I.type)}${I.type.constructor===i.OptionalType?" = null":""}`,O}).join(",\n")}\n ) : Parcelable\n`,y},m.generateErrorClass=function D(p){return`class ${p.name}(message: String) : Error(message)\n`}},7402:function(Be,m,l){"use strict";var i=this&&this.__createBinding||(Object.create?function(_,u,s,v){void 0===v&&(v=s),Object.defineProperty(_,v,{enumerable:!0,get:function(){return u[s]}})}:function(_,u,s,v){void 0===v&&(v=s),_[v]=u[s]}),d=this&&this.__exportStar||function(_,u){for(var s in _)"default"!==s&&!Object.prototype.hasOwnProperty.call(u,s)&&i(u,_,s)};Object.defineProperty(m,"__esModule",{value:!0}),d(l(9409),m)},1942:function(Be,m,l){"use strict";var i=this&&this.__rest||function(Ae,ge){var Je={};for(var pt in Ae)Object.prototype.hasOwnProperty.call(Ae,pt)&&ge.indexOf(pt)<0&&(Je[pt]=Ae[pt]);if(null!=Ae&&"function"==typeof Object.getOwnPropertySymbols){var Tt=0;for(pt=Object.getOwnPropertySymbols(Ae);Tt<pt.length;Tt++)ge.indexOf(pt[Tt])<0&&Object.prototype.propertyIsEnumerable.call(Ae,pt[Tt])&&(Je[pt[Tt]]=Ae[pt[Tt]])}return Je};Object.defineProperty(m,"__esModule",{value:!0}),m.AstRoot=m.FunctionOperation=m.TypeDefinition=m.StructType=m.TypeReference=m.Spread=m.Field=m.EnumType=m.EnumValue=m.ArrayType=m.OptionalType=m.JsonPrimitiveType=m.XmlPrimitiveType=m.Base64PrimitiveType=m.HtmlPrimitiveType=m.HexPrimitiveType=m.UuidPrimitiveType=m.UrlPrimitiveType=m.EmailPrimitiveType=m.CnpjPrimitiveType=m.CpfPrimitiveType=m.MoneyPrimitiveType=m.VoidPrimitiveType=m.BytesPrimitiveType=m.BoolPrimitiveType=m.DateTimePrimitiveType=m.DatePrimitiveType=m.BigIntPrimitiveType=m.FloatPrimitiveType=m.UIntPrimitiveType=m.IntPrimitiveType=m.StringPrimitiveType=m.PrimitiveType=m.HiddenAnnotation=m.RestAnnotation=m.ArgDescriptionAnnotation=m.ThrowsAnnotation=m.DescriptionAnnotation=m.Annotation=m.ErrorNode=m.Type=m.AstNode=void 0;const d=l(9037);class _{constructor(){this.location=new d.TokenLocation,Object.defineProperty(this,"location",{enumerable:!1})}at(ge){return this.location=ge.location,this}atLocation(ge){return this.location=ge,this}}m.AstNode=_;class u extends _{toJSON(){const ge=Object.assign({},this);return i(ge,["name"])}}m.Type=u,m.ErrorNode=class s extends _{constructor(ge,Je){super(),this.name=ge,this.dataType=Je}};class v extends _{}m.Annotation=v,m.DescriptionAnnotation=class C extends v{constructor(ge){super(),this.text=ge}},m.ThrowsAnnotation=class D extends v{constructor(ge){super(),this.error=ge}},m.ArgDescriptionAnnotation=class p extends v{constructor(ge,Je){super(),this.argName=ge,this.text=Je}},m.RestAnnotation=class y extends v{constructor(ge,Je,pt,Tt,Rt,dt){super(),this.method=ge,this.path=Je,this.pathVariables=pt,this.queryVariables=Tt,this.headers=Rt,this.bodyVariable=dt}},m.HiddenAnnotation=class I extends v{};class O extends u{}m.PrimitiveType=O,m.StringPrimitiveType=class w extends O{constructor(){super(...arguments),this.name="string"}},m.IntPrimitiveType=class k extends O{constructor(){super(...arguments),this.name="int"}},m.UIntPrimitiveType=class V extends O{constructor(){super(...arguments),this.name="uint"}},m.FloatPrimitiveType=class ue extends O{constructor(){super(...arguments),this.name="float"}},m.BigIntPrimitiveType=class $ extends O{constructor(){super(...arguments),this.name="bigint"}},m.DatePrimitiveType=class ne extends O{constructor(){super(...arguments),this.name="date"}},m.DateTimePrimitiveType=class De extends O{constructor(){super(...arguments),this.name="datetime"}},m.BoolPrimitiveType=class fe extends O{constructor(){super(...arguments),this.name="bool"}},m.BytesPrimitiveType=class _e extends O{constructor(){super(...arguments),this.name="bytes"}},m.VoidPrimitiveType=class le extends O{constructor(){super(...arguments),this.name="void"}},m.MoneyPrimitiveType=class Se extends O{constructor(){super(...arguments),this.name="money"}},m.CpfPrimitiveType=class Le extends O{constructor(){super(...arguments),this.name="cpf"}},m.CnpjPrimitiveType=class Xe extends O{constructor(){super(...arguments),this.name="cnpj"}},m.EmailPrimitiveType=class lt extends O{constructor(){super(...arguments),this.name="email"}},m.UrlPrimitiveType=class X extends O{constructor(){super(...arguments),this.name="url"}},m.UuidPrimitiveType=class me extends O{constructor(){super(...arguments),this.name="uuid"}},m.HexPrimitiveType=class K extends O{constructor(){super(...arguments),this.name="hex"}},m.HtmlPrimitiveType=class oe extends O{constructor(){super(...arguments),this.name="html"}},m.Base64PrimitiveType=class ke extends O{constructor(){super(...arguments),this.name="base64"}},m.XmlPrimitiveType=class de extends O{constructor(){super(...arguments),this.name="xml"}},m.JsonPrimitiveType=class Ue extends O{constructor(){super(...arguments),this.name="json"}},m.OptionalType=class pe extends u{constructor(ge){super(),this.base=ge}get name(){return`${this.base.name}?`}},m.ArrayType=class qe extends u{constructor(ge){super(),this.base=ge}get name(){return`${this.base.name}[]`}},m.EnumValue=class Me extends _{constructor(ge){super(),this.value=ge,this.annotations=[],this.struct=null}},m.EnumType=class Ge extends u{constructor(ge){super(),this.values=ge}get hasStructValues(){return this.values.some(ge=>null!==ge.struct)}},m.Field=class vt extends _{constructor(ge,Je,pt=!1){super(),this.name=ge,this.type=Je,this.secret=pt,this.annotations=[]}},m.Spread=class St extends _{constructor(ge){super(),this.typeReference=ge}},m.TypeReference=class Re extends u{constructor(ge){super(),this.name=ge}},m.StructType=class et extends u{constructor(ge){super(),this.fieldsAndSpreads=ge,this.fields=[]}},m.TypeDefinition=class Y extends _{constructor(ge,Je){super(),this.name=ge,this.type=Je,this.annotations=[]}},m.FunctionOperation=class he extends _{constructor(ge,Je,pt){super(),this.name=ge,this.fieldsAndSpreads=Je,this.returnType=pt,this.annotations=[],this.args=[]}},m.AstRoot=class Ee{constructor(ge=[],Je=[],pt=[]){this.typeDefinitions=ge,this.operations=Je,this.errors=pt,this.structTypes=[],this.enumTypes=[],this.warnings=[]}}},9747:(Be,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.compatibilityIssues=void 0;const i=l(1942);function d(s,v,C,D){var p,y;if(C instanceof i.TypeReference)d(s,v,C.type,D);else if(D instanceof i.TypeReference)d(s,v,C,D.type);else if(C instanceof i.OptionalType||!(D instanceof i.OptionalType))if(C instanceof i.OptionalType&&D instanceof i.OptionalType)d(s,v,C.base,D.base);else{if(C instanceof i.OptionalType&&!(D instanceof i.OptionalType))return v.push(`${s} was optional, but now it isn't. If the client sends a null, it will be invalid. Add the optional annotation back.`),void d(s,v,C.base,D);if(C instanceof i.ArrayType&&D instanceof i.ArrayType)d(s,v,C.base,D.base);else if(C instanceof i.StructType&&D instanceof i.StructType)for(const I of D.fields){const O=C.fields.find(w=>w.name===I.name);if(O)d(`${s}.${O.name}`,v,O.type,I.type);else{if(I.type instanceof i.OptionalType)continue;v.push(`${s}.${I.name} didn't exist before and isn't optional. Make it optional.`)}}else if(!(C instanceof i.UIntPrimitiveType&&D instanceof i.IntPrimitiveType||C instanceof i.IntPrimitiveType&&D instanceof i.FloatPrimitiveType||C instanceof i.MoneyPrimitiveType&&D instanceof i.IntPrimitiveType||C instanceof i.MoneyPrimitiveType&&D instanceof i.UIntPrimitiveType||C instanceof i.UIntPrimitiveType&&D instanceof i.BigIntPrimitiveType||C instanceof i.IntPrimitiveType&&D instanceof i.BigIntPrimitiveType||C instanceof i.MoneyPrimitiveType&&D instanceof i.BigIntPrimitiveType||C instanceof i.BigIntPrimitiveType&&D instanceof i.StringPrimitiveType||C instanceof i.UuidPrimitiveType&&D instanceof i.StringPrimitiveType||C instanceof i.XmlPrimitiveType&&D instanceof i.StringPrimitiveType||C instanceof i.DatePrimitiveType&&D instanceof i.StringPrimitiveType||C instanceof i.DateTimePrimitiveType&&D instanceof i.StringPrimitiveType||C instanceof i.CpfPrimitiveType&&D instanceof i.StringPrimitiveType||C instanceof i.CnpjPrimitiveType&&D instanceof i.StringPrimitiveType||C instanceof i.HexPrimitiveType&&D instanceof i.StringPrimitiveType||C instanceof i.HtmlPrimitiveType&&D instanceof i.StringPrimitiveType||C instanceof i.Base64PrimitiveType&&D instanceof i.StringPrimitiveType||C instanceof i.BytesPrimitiveType&&D instanceof i.StringPrimitiveType||C instanceof i.BytesPrimitiveType&&D instanceof i.Base64PrimitiveType||C instanceof i.UrlPrimitiveType&&D instanceof i.StringPrimitiveType||C instanceof i.EmailPrimitiveType&&D instanceof i.StringPrimitiveType||C instanceof i.EnumType&&D instanceof i.StringPrimitiveType)){if(C instanceof i.EnumType&&D instanceof i.EnumType){for(const I of C.values){const O=D.values.find(w=>w.value===I.value);O?d(`${s}.${I.value}`,v,null!==(p=I.struct)&&void 0!==p?p:new i.StructType([]),null!==(y=O.struct)&&void 0!==y?y:new i.StructType([])):v.push(`The enum at ${s} used to accept the value "${I.value}" that doesn't exist now. Clients that send it will fail.`)}return}C.constructor.name!==D.constructor.name&&v.push(`${s} was ${C.name} and now it is ${D.name}. They are not compatible.`)}}else d(s,v,C,D.base)}function _(s,v,C,D){var p,y;if(C instanceof i.TypeReference)_(s,v,C.type,D);else if(D instanceof i.TypeReference)_(s,v,C,D.type);else if(!(C instanceof i.OptionalType)||D instanceof i.OptionalType)if(C instanceof i.OptionalType&&D instanceof i.OptionalType)_(s,v,C.base,D.base);else{if(!(C instanceof i.OptionalType)&&D instanceof i.OptionalType)return v.push(`${s} wasn't optional, but now it is. If the client receives a null, it will crash. Remove the optional annotation.`),void _(s,v,C,D.base);if(C instanceof i.ArrayType&&D instanceof i.ArrayType)_(s,v,C.base,D.base);else if(C instanceof i.StructType&&D instanceof i.StructType)for(const I of C.fields){const O=D.fields.find(w=>w.name===I.name);if(O)_(`${s}.${I.name}`,v,I.type,O.type);else{if(I.type instanceof i.OptionalType)continue;v.push(`${s}.${I.name} used to exist with type ${I.type.name}, but it's now missing. Add it back.`)}}else if(!(C instanceof i.IntPrimitiveType&&D instanceof i.UIntPrimitiveType||C instanceof i.FloatPrimitiveType&&D instanceof i.IntPrimitiveType||C instanceof i.IntPrimitiveType&&D instanceof i.MoneyPrimitiveType||C instanceof i.UIntPrimitiveType&&D instanceof i.MoneyPrimitiveType||C instanceof i.BigIntPrimitiveType&&D instanceof i.UIntPrimitiveType||C instanceof i.BigIntPrimitiveType&&D instanceof i.IntPrimitiveType||C instanceof i.BigIntPrimitiveType&&D instanceof i.MoneyPrimitiveType||C instanceof i.StringPrimitiveType&&D instanceof i.BigIntPrimitiveType||C instanceof i.StringPrimitiveType&&D instanceof i.UuidPrimitiveType||C instanceof i.StringPrimitiveType&&D instanceof i.XmlPrimitiveType||C instanceof i.StringPrimitiveType&&D instanceof i.DatePrimitiveType||C instanceof i.StringPrimitiveType&&D instanceof i.DateTimePrimitiveType||C instanceof i.StringPrimitiveType&&D instanceof i.CpfPrimitiveType||C instanceof i.StringPrimitiveType&&D instanceof i.CnpjPrimitiveType||C instanceof i.StringPrimitiveType&&D instanceof i.HexPrimitiveType||C instanceof i.StringPrimitiveType&&D instanceof i.HtmlPrimitiveType||C instanceof i.StringPrimitiveType&&D instanceof i.Base64PrimitiveType||C instanceof i.StringPrimitiveType&&D instanceof i.BytesPrimitiveType||C instanceof i.Base64PrimitiveType&&D instanceof i.BytesPrimitiveType||C instanceof i.StringPrimitiveType&&D instanceof i.UrlPrimitiveType||C instanceof i.StringPrimitiveType&&D instanceof i.EmailPrimitiveType||C instanceof i.StringPrimitiveType&&D instanceof i.EnumType)){if(C instanceof i.EnumType&&D instanceof i.EnumType){for(const I of D.values){const O=C.values.find(w=>w.value===I.value);O?_(`${s}.${I.value}`,v,null!==(p=O.struct)&&void 0!==p?p:new i.StructType([]),null!==(y=I.struct)&&void 0!==y?y:new i.StructType([])):v.push(`The enum at ${s} now has the value "${I.value}" that didn't exist before. Client will crash if it receives it`)}return}C.constructor.name!==D.constructor.name&&v.push(`${s} was ${C.name} and now it is ${D.name}. They are not compatible.`)}}else _(s,v,C.base,D)}m.compatibilityIssues=function u(s,v){const C=[];for(const D of s.operations){const p=v.operations.find(y=>y.name===D.name);if(p){_(`${D.name}.ret`,C,D.returnType,p.returnType);for(const y of p.args){const I=D.args.find(O=>O.name===y.name);if(I)d(`${D.name}.args.${I.name}`,C,I.type,y.type);else{if(y.type instanceof i.OptionalType)continue;C.push(`${D.name}.args.${y.name} didn't exist before and isn't optional. Make it optional.`)}}}else C.push(`function ${D.name} used to exist, but it's now missing. Add it back.`)}for(const D of s.errors){const p=v.errors.find(y=>y.name===D.name);!p||_(`${D.name}.data`,C,D.dataType,p.dataType)}return C}},6676:function(Be,m,l){"use strict";var i=this&&this.__createBinding||(Object.create?function(u,s,v,C){void 0===C&&(C=v),Object.defineProperty(u,C,{enumerable:!0,get:function(){return s[v]}})}:function(u,s,v,C){void 0===C&&(C=v),u[C]=s[v]}),d=this&&this.__exportStar||function(u,s){for(var v in u)"default"!==v&&!Object.prototype.hasOwnProperty.call(s,v)&&i(s,u,v)};Object.defineProperty(m,"__esModule",{value:!0}),m.jsonToAst=m.astToJson=void 0,d(l(1942),m),d(l(9747),m);var _=l(1557);Object.defineProperty(m,"astToJson",{enumerable:!0,get:function(){return _.astToJson}}),Object.defineProperty(m,"jsonToAst",{enumerable:!0,get:function(){return _.jsonToAst}}),d(l(8053),m),d(l(2701),m),d(l(9037),m)},1557:(Be,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.jsonToAst=m.astToJson=void 0;const i=l(1942),d=l(6088),_=l(6569);function u(D){if(D instanceof i.DescriptionAnnotation)return{type:"description",value:D.text};if(D instanceof i.ThrowsAnnotation)return{type:"throws",value:D.error};if(D instanceof i.RestAnnotation)return{type:"rest",value:{bodyVariable:D.bodyVariable,headers:[...D.headers.entries()].sort(([p],[y])=>p.localeCompare(y)),method:D.method,path:D.path,pathVariables:[...D.pathVariables].sort((p,y)=>p.localeCompare(y)),queryVariables:[...D.queryVariables].sort((p,y)=>p.localeCompare(y))}};if(D instanceof i.HiddenAnnotation)return{type:"hidden",value:null};throw new Error(`BUG: annotationToJson with ${D.constructor.name}`)}function s(D){switch(D.type){case"description":return new i.DescriptionAnnotation(D.value);case"throws":return new i.ThrowsAnnotation(D.value);case"rest":{const{method:p,path:y,pathVariables:I,queryVariables:O,headers:w,bodyVariable:k}=D.value;return new i.RestAnnotation(p,y,I,O,new Map(w),k)}case"hidden":return new i.HiddenAnnotation;default:throw new Error(`BUG: annotationFromJson with ${D.type}`)}}m.astToJson=function v(D){var p,y,I;const O={},w={};function k($){return $ instanceof i.ArrayType?`${k($.base)}[]`:$ instanceof i.OptionalType?`${k($.base)}?`:$.name}for(const{name:$,fields:ne}of D.structTypes){w[$]={};const De=w[$];for(const fe of ne){De[fe.name]=k(fe.type);for(const _e of fe.annotations)if(_e instanceof i.DescriptionAnnotation){const le=`type.${$}.${fe.name}`;null!==(p=O[le])&&void 0!==p||(O[le]=[]),O[le].push(u(_e))}}}for(const{name:$,values:ne}of D.enumTypes)w[$]=ne.map(De=>De.struct?[De.value,De.struct.name]:De.value);for(const{name:$,type:ne}of D.typeDefinitions)ne instanceof i.StructType||ne instanceof i.EnumType||(w[$]=k(ne));const V={};for(const $ of D.operations){const ne={};for(const De of $.args){ne[De.name]=k(De.type);for(const fe of De.annotations)if(fe instanceof i.DescriptionAnnotation){const _e=`fn.${$.name}.${De.name}`;null!==(y=O[_e])&&void 0!==y||(O[_e]=[]),O[_e].push(u(fe))}}V[$.name]={args:ne,ret:k($.returnType)};for(const De of $.annotations){const fe=`fn.${$.name}`;null!==(I=O[fe])&&void 0!==I||(O[fe]=[]),O[fe].push(u(De))}}return{annotations:O,errors:D.errors.map($=>$.dataType instanceof i.VoidPrimitiveType?$.name:[$.name,$.dataType.name]),functionTable:V,typeTable:w}},m.jsonToAst=function C(D){var p,y;const I=[],O=[],w=[];function k($,ne){var De;if("string"==typeof $){const _e=_.primitiveToAstClass.get($);return _e?new _e:$.endsWith("?")?new i.OptionalType(k($.slice(0,$.length-1))):$.endsWith("[]")?new i.ArrayType(k($.slice(0,$.length-2))):new i.TypeReference($)}if(Array.isArray($))return new i.EnumType($.map(_e=>{if(Array.isArray(_e)){const[le,Se]=_e,Le=new i.EnumValue(le);return w.push([Le,Se]),Le}return new i.EnumValue(_e)}));const fe=[];for(const _e of Object.keys($)){const le=new i.Field(_e,k($[_e]));if(ne){const Se=`type.${ne}.${_e}`;for(const Le of null!==(De=D.annotations[Se])&&void 0!==De?De:[])le.annotations.push(s(Le))}fe.push(le)}return new i.StructType(fe)}for(const[$,ne]of Object.entries(D.typeTable)){const De=k(ne,$);O.push(new i.TypeDefinition($,De))}for(const[$,ne]of Object.entries(D.functionTable)){const De=Object.keys(ne.args).map(le=>{var Se;const Le=new i.Field(le,k(ne.args[le])),Xe=`fn.${$}.${le}`;for(const lt of null!==(Se=D.annotations[Xe])&&void 0!==Se?Se:[])Le.annotations.push(s(lt));return Le}),fe=new i.FunctionOperation($,De,k(ne.ret)),_e=`fn.${$}`;for(const le of null!==(p=D.annotations[_e])&&void 0!==p?p:[])fe.annotations.push(s(le));I.push(fe)}for(const[$,ne]of w){const De=null===(y=O.find(fe=>fe.name===ne))||void 0===y?void 0:y.type;De instanceof i.StructType&&($.struct=De)}const V=D.errors.map($=>Array.isArray($)?new i.ErrorNode($[0],k($[1])):new i.ErrorNode($,new i.VoidPrimitiveType)),ue=new i.AstRoot(O,I,V);return(0,d.analyse)(ue),ue}},8053:(Be,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.Lexer=m.LexerError=void 0;const i=l(9037);class d extends Error{}m.LexerError=d;class _{constructor(s,v="-"){this.source=s,this.filename=v,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 v="\\",C=this.startPos+1;for(;"\\"===v[v.length-1];){for(v=v.slice(0,v.length-1).trim();!["\0","\n"].includes(this.nextChar()););v=`${v} ${this.source.substring(C,this.pos).trim()}`.trim(),C=this.pos+1}s=new i.AnnotationToken(v.trim());break}case'"':{const v=[];e:for(;;)switch(this.nextChar()){case"\0":break e;case"\\":switch(this.nextChar()){case"\0":break e;case"n":v.push("\n");break;case"t":v.push("\t");break;default:v.push(this.currentChar())}break;case'"':this.nextChar(),s=new i.StringLiteralToken(v.join(""));break e;default:v.push(this.currentChar())}break}default:if(/[a-zA-Z_]/u.test(this.currentChar())){for(;/[a-zA-Z0-9_]/u.test(this.nextChar()););const v=this.source.substring(this.startPos,this.pos);switch(v){case"error":s=new i.ErrorKeywordToken;break;case"enum":s=new i.EnumKeywordToken;break;case"type":s=new i.TypeKeywordToken;break;case"import":s=new i.ImportKeywordToken;break;case"fn":s=new i.FnKeywordToken;break;case"true":s=new i.TrueKeywordToken;break;case"false":s=new i.FalseKeywordToken;break;default:s=_.PRIMITIVES.has(v)?new i.PrimitiveTypeToken(v):new i.IdentifierToken(v)}}}if(null!==s)return s.location.filename=this.filename,s.location.line=this.startLine,s.location.column=this.startColumn,s;throw"\0"===this.currentChar()?new d(`Unexpected end of file at ${this.filename}`):new d(`Unexpected character ${JSON.stringify(this.currentChar())} at ${this.filename}:${this.line}:${this.column}`)}}m.Lexer=_,_.PRIMITIVES=new Set(["bool","int","uint","float","bigint","string","date","datetime","bytes","money","cpf","cnpj","email","html","url","uuid","hex","base64","xml","void","json"]),_.KEYWORDS=new Set([..._.PRIMITIVES,"error","enum","type","import","get","function","fn","true","false"])},2701:(Be,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.Parser=m.ParserError=void 0;const i=l(1942),d=l(8053),_=l(7145),u=l(6088),s=l(9037),v=l(6569);class C extends Error{}m.ParserError=C,m.Parser=class D{constructor(y){this.token=null,this.annotations=[],this.warnings=[],this.readFileSync=()=>{throw"Not implemented"};try{this.readFileSync=Object(function(){var O=new Error("Cannot find module 'fs'");throw O.code="MODULE_NOT_FOUND",O}())}catch(I){}this.lexers=y instanceof d.Lexer?[y]:[new d.Lexer(this.readFileSync(y).toString(),y)],this.nextToken()}nextToken(){for(;this.lexers.length>0;){if(this.token=this.lexers[this.lexers.length-1].nextToken(),this.token)return;this.lexers.pop()}}multiExpect(y){if(!this.token)throw new C(`Expected ${Object.keys(y).map(O=>O.replace("Token","")).join(" or ")}, but found end of file`);const I=this.token.constructor.name;if(I in y)return y[I](this.token);if(y.IdentifierToken){const O=this.token.maybeAsIdentifier();if(O instanceof s.IdentifierToken)return y.IdentifierToken(O)}throw new C(`Expected ${Object.keys(y).map(O=>O.replace("Token","")).join(" or ")} at ${this.token.location}, but found ${this.token}`)}expect(y){if(null===this.token)throw new C(`Expected ${y.name.replace("Token","")}, but found end of file`);if(this.token instanceof y)return this.token;if(y===s.IdentifierToken){const I=this.token.maybeAsIdentifier();if(I instanceof s.IdentifierToken)return I}throw new C(`Expected ${y.name.replace("Token","")} at ${this.token.location}, but found ${this.token}`)}parse(){const y=[],I=[],O=[];for(this.warnings=[];this.token;)this.acceptAnnotations(),this.multiExpect({ErrorKeywordToken:()=>{O.push(this.parseError())},FnKeywordToken:()=>{y.push(this.parseOperation())},ImportKeywordToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken();const k=this.expect(s.StringLiteralToken),V=k.location.filename.replace(/[^/\\]+$/u,`${k.value}.sdkgen`);this.lexers.push(new d.Lexer(this.readFileSync(V).toString(),V)),this.nextToken()},TypeKeywordToken:()=>{I.push(this.parseTypeDefinition())}});const w=new i.AstRoot(I,y,O);return w.warnings=this.warnings,(0,u.analyse)(w),w}acceptAnnotations(){for(;this.token instanceof s.AnnotationToken;){const y=this.token.value.split(" "),I=this.token.value.slice(y[0].length).trim();switch(y[0]){case"description":this.annotations.push(new i.DescriptionAnnotation(I).at(this.token));break;case"arg":this.annotations.push(new i.ArgDescriptionAnnotation(y[1],this.token.value.slice(y[0].length+1+y[1].length).trim()).at(this.token));break;case"throws":this.annotations.push(new i.ThrowsAnnotation(I).at(this.token));break;case"rest":try{this.annotations.push((0,_.parseRestAnnotation)(I).at(this.token))}catch(O){throw new C(`${O instanceof Error?O.message:O} at ${this.token.location}`)}break;case"hidden":if(""!==I)throw new C("@hidden annotation doesn't take any argument");this.annotations.push((new i.HiddenAnnotation).at(this.token));break;default:throw new C(`Unknown annotation '${y[0]}' at ${this.token.location}`)}this.nextToken()}}checkCannotHaveAnnotationsHere(){if(this.annotations.length>0)throw new C(`Cannot have annotations at ${this.annotations[0].location}`)}parseTypeDefinition(){const y=this.expect(s.TypeKeywordToken);this.nextToken();const I=this.expect(s.IdentifierToken),O=I.value;if(!/[A-Z]/u.test(O[0]))throw new C(`The custom type name must start with an uppercase letter, but found ${JSON.stringify(O)} at ${I.location}`);this.nextToken();const{annotations:w}=this;this.annotations=[];const k=this.parseType(),V=new i.TypeDefinition(O,k).at(y);return V.annotations=w,V}parseError(){this.checkCannotHaveAnnotationsHere();const y=this.expect(s.ErrorKeywordToken);this.nextToken();const I=this.expect(s.IdentifierToken),O=I.value;if(!/[A-Z]/u.test(O[0]))throw new C(`Error name must start with an uppercase letter, but found ${JSON.stringify(O)} at ${I.location}`);this.nextToken();let w=new i.VoidPrimitiveType;return(this.token instanceof s.CurlyOpenSymbolToken||this.token instanceof s.EnumKeywordToken||this.token instanceof s.IdentifierToken||this.token instanceof s.PrimitiveTypeToken)&&(w=this.parseType()),new i.ErrorNode(O,w).at(y)}parseOperation(){let{annotations:y}=this;this.annotations=[],this.expect(s.FnKeywordToken),this.nextToken();const I=this.expect(s.IdentifierToken).value;this.nextToken(),this.expect(s.ParensOpenSymbolToken),this.nextToken();const O=new Set,w=[];let V,k=!1;for(;!k;)this.acceptAnnotations(),this.multiExpect({ParensCloseSymbolToken:ne=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),k=!0,V=ne},IdentifierToken:()=>{const ne=this.parseField();if(O.has(ne.name))throw new C(`Cannot redeclare argument '${ne.name}'`);O.add(ne.name),w.push(ne),this.multiExpect({ParensCloseSymbolToken:De=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),k=!0,V=De},CommaSymbolToken:()=>this.nextToken()})},SpreadSymbolToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken();const ne=this.expect(s.IdentifierToken);if(this.nextToken(),!/[A-Z]/u.test(ne.value[0]))throw new C(`Expected a type but found ${JSON.stringify(ne.value)} at ${ne.location}`);w.push(new i.Spread(new i.TypeReference(ne.value).at(ne)).at(ne)),this.multiExpect({ParensCloseSymbolToken:De=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),k=!0,V=De},CommaSymbolToken:()=>this.nextToken()})}});for(const ne of y)if(ne instanceof i.ArgDescriptionAnnotation){const De=w.find(fe=>fe instanceof i.Field&&fe.name===ne.argName);if(!De)throw new C(`Argument '${ne.argName}' not found, at ${ne.location}`);De.annotations.push(new i.DescriptionAnnotation(ne.text).atLocation(ne.location))}y=y.filter(ne=>!(ne instanceof i.ArgDescriptionAnnotation));let ue=(new i.VoidPrimitiveType).at(V);this.token instanceof s.ColonSymbolToken&&(this.nextToken(),ue=this.parseType());const $=new i.FunctionOperation(I,w,ue);return $.annotations=y,$}parseEnum(){this.checkCannotHaveAnnotationsHere();const y=this.expect(s.EnumKeywordToken);this.nextToken(),this.expect(s.CurlyOpenSymbolToken),this.nextToken();const I=new i.EnumType([]).at(y);let O=!1;for(;!O;)this.acceptAnnotations(),this.multiExpect({CurlyCloseSymbolToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),O=!0},IdentifierToken:w=>{const k=new i.EnumValue(w.value).at(w);if(k.annotations=this.annotations,this.annotations=[],I.values.push(k),this.nextToken(),!(this.token instanceof s.ParensOpenSymbolToken))return;this.nextToken();const V=new Set,ue=[];for(;this.token&&this.token.maybeAsIdentifier()instanceof s.IdentifierToken;){const $=this.parseField();if("tag"===$.name&&($.name="_tag"),V.has($.name))throw new C(`Cannot redeclare argument '${$.name}'`);if(V.add($.name),ue.push($),!(this.token instanceof s.CommaSymbolToken))break;this.nextToken()}k.struct=new i.StructType(ue).atLocation(k.location),this.expect(s.ParensCloseSymbolToken),this.nextToken()}});return I}parseField(){const y=this.expect(s.IdentifierToken);this.nextToken(),this.expect(s.ColonSymbolToken),this.nextToken();const{annotations:I}=this;this.annotations=[];const O=this.parseType(),w=new i.Field(y.value,O).at(y);for(w.annotations=I;this.token instanceof s.ExclamationMarkSymbolToken;){if("secret"!==(this.nextToken(),this.expect(s.IdentifierToken).value))throw new C(`Unknown field mark !${this.token.value} at ${this.token.location}`);w.secret=!0,this.nextToken()}return w}parseStruct(){const y=this.expect(s.CurlyOpenSymbolToken);this.nextToken();const I=[],O=new Set;let w=!1;for(;!w;)this.acceptAnnotations(),this.multiExpect({CurlyCloseSymbolToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),w=!0},IdentifierToken:()=>{const k=this.parseField();if(O.has(k.name))throw new C(`Cannot redeclare field '${k.name}'`);O.add(k.name),I.push(k)},SpreadSymbolToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken();const k=this.expect(s.IdentifierToken);if(this.nextToken(),!/[A-Z]/u.test(k.value[0]))throw new C(`Expected a type but found ${JSON.stringify(k.value)} at ${k.location}`);I.push(new i.Spread(new i.TypeReference(k.value).at(k)).at(k))}});return new i.StructType(I).at(y)}parseType(){this.checkCannotHaveAnnotationsHere();let y=this.multiExpect({CurlyOpenSymbolToken:()=>this.parseStruct(),EnumKeywordToken:()=>this.parseEnum(),IdentifierToken:I=>{if(this.nextToken(),!/[A-Z]/u.test(I.value[0]))throw new C(`Expected a type but found ${JSON.stringify(I.value)} at ${I.location}`);return new i.TypeReference(I.value).at(I)},PrimitiveTypeToken:I=>{this.nextToken();const O=v.primitiveToAstClass.get(I.value);if(O)return(new O).at(I);throw new C(`BUG! Should handle primitive ${I.value}`)}});for(;this.token instanceof s.ArraySymbolToken||this.token instanceof s.OptionalSymbolToken;)this.multiExpect({ArraySymbolToken:I=>y=new i.ArrayType(y).at(I),OptionalSymbolToken:I=>y=new i.OptionalType(y).at(I)}),this.nextToken();return y}}},7145:(Be,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.parseRestAnnotation=void 0;const i=l(1942);function u(v){var C;const D=/\{(?<name>\w+)\}/gu,p=[];let y;for(;null!==(y=D.exec(v));)(null===(C=y.groups)||void 0===C?void 0:C.name)&&p.push(y.groups.name);return p}m.parseRestAnnotation=function s(v){const C=v.split(" "),D=C[0].toUpperCase();if(!["GET","POST","PUT","DELETE","PATCH"].includes(D))throw new Error(`Unsupported method '${D}'`);let p=C[1];if(!p.startsWith("/"))throw new Error("Invalid path");let y=[];if(p.includes("?")){const[V,...ue]=p.split("?");p=V;const $=ue.join("?");if(!/^\{\w+\}(?:&\{\w+\})*$/u.test($))throw new Error("Invalid querystring on path");y=u($)}const I=u(p),O=C.slice(2).join(" "),w=function d(v){var C;const D=/\[header (?<header>[^()<>@,;:\\"/[\]?={}\s\t]+): \{(?<name>\w+)\}\]/gu,p=new Map;let y;for(;null!==(y=D.exec(v));)(null===(C=y.groups)||void 0===C?void 0:C.header)&&y.groups.name&&p.set(y.groups.header.toLowerCase(),y.groups.name);return p}(O),k=function _(v){var C;const D=/\[body \{(?<name>\w+)\}\]/u.exec(v);return(null===(C=null==D?void 0:D.groups)||void 0===C?void 0:C.name)?D.groups.name:null}(O);return new i.RestAnnotation(D,p,I,y,w,k)}},7629:(Be,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.CheckMultipleDeclarationVisitor=void 0;const i=l(1942),d=l(3154);m.CheckMultipleDeclarationVisitor=class _ extends d.Visitor{constructor(){super(...arguments),this.nameToType=new Map}visit(s){if(s instanceof i.TypeDefinition){const v=this.nameToType.get(s.name);if(v&&JSON.stringify(v)!==JSON.stringify(s.type))throw new d.SemanticError(`Type '${s.name}' at ${s.location} is defined multiple times (also at ${v.location})`);this.nameToType.set(s.name,s.type)}super.visit(s)}}},4630:(Be,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.MatchTypeDefinitionsVisitor=void 0;const i=l(1942),d=l(3154);m.MatchTypeDefinitionsVisitor=class _ extends d.Visitor{visit(s){if(s instanceof i.TypeReference){const v=this.root.typeDefinitions.find(C=>C.name===s.name);if(void 0===v)throw new d.SemanticError(`Could not find type '${s.name}' at ${s.location}`);s.type=v.type}super.visit(s)}}},9457:(Be,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.CheckDontReturnSecretVisitor=void 0;const i=l(1942),d=l(3154);m.CheckDontReturnSecretVisitor=class _ extends d.Visitor{constructor(){super(...arguments),this.isInReturn=!1,this.path=[],this.visited=new Set}visit(s){if(!this.visited.has(s))if(this.visited.add(s),s instanceof i.FunctionOperation)this.isInReturn=!0,this.path.push(`${s.name}(...)`),this.visit(s.returnType),this.path.pop(),this.isInReturn=!1;else if(s instanceof i.TypeReference)this.visit(s.type);else if(s instanceof i.Field){if(this.path.push(s.name),this.isInReturn&&s.secret)throw new d.SemanticError(`Can't return a secret value at ${this.path.join(".")} at ${s.location}`);super.visit(s),this.path.pop()}else super.visit(s)}}},3140:(Be,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.ExpandSpreadsVisitor=void 0;const i=l(1942),d=l(3154);m.ExpandSpreadsVisitor=class _ extends d.Visitor{constructor(){super(...arguments),this.processed=new Set}expandSpread(s,v){const C=new Map;for(const D of v){let p;if(D instanceof i.Field)p=[D];else{const y=D.typeReference.type;if(!(y instanceof i.StructType))throw new d.SemanticError(`A spread operator can't refer to something that is not a struct, in '${D.typeReference.name}' at ${D.location}.`);this.visit(y),p=y.fields}for(const y of p){const I=C.get(y.name);I?s[I]=y:(C.set(y.name,s.length),s.push(y))}}}visit(s){if(s instanceof i.StructType){if(this.processed.has(s))return;this.processed.add(s)}super.visit(s),s instanceof i.StructType?(this.expandSpread(s.fields,s.fieldsAndSpreads),s.fieldsAndSpreads=[]):s instanceof i.FunctionOperation&&(this.expandSpread(s.args,s.fieldsAndSpreads),s.fieldsAndSpreads=[])}}},71:(Be,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.CheckEmptyStructOrEnumVisitor=void 0;const i=l(1942),d=l(3154);m.CheckEmptyStructOrEnumVisitor=class _ extends d.Visitor{visit(s){if(super.visit(s),s instanceof i.EnumType&&0===s.values.length)throw new d.SemanticError(`Enum '${s.name}' at ${s.location} is empty`);if(s instanceof i.StructType&&0===s.fields.length)throw new d.SemanticError(`Struct '${s.name}' at ${s.location} is empty`)}}},601:(Be,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.GiveStructAndEnumNamesVisitor=void 0;const i=l(1942),d=l(3154);m.GiveStructAndEnumNamesVisitor=class _ extends d.Visitor{constructor(){super(...arguments),this.path=[],this.names=new Map}visit(s){if(s instanceof i.TypeDefinition)this.path=[s.name],super.visit(s);else if(s instanceof i.ErrorNode)this.path=[`${s.name}Data`],super.visit(s);else if(s instanceof i.FunctionOperation)this.path=[s.name],super.visit(s);else if(s instanceof i.Field)this.path.push(s.name),super.visit(s),this.path.pop();else if(s instanceof i.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(C=>C[0].toUpperCase()+C.slice(1)).join("");const v=this.names.get(s.name);if(v&&JSON.stringify(v.type)!==JSON.stringify(s))throw new d.SemanticError(`The name of the type '${this.path.join(".")}' at ${s.location} will conflict with '${v.path.join(".")}' at ${v.type.location}`);this.names.set(s.name,{path:[...this.path],type:s}),super.visit(s)}else super.visit(s)}}},5492:(Be,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.CollectStructAndEnumTypesVisitor=void 0;const i=l(1942),d=l(3154);m.CollectStructAndEnumTypesVisitor=class _ extends d.Visitor{visit(s){super.visit(s),s instanceof i.StructType?this.root.structTypes.push(s):s instanceof i.EnumType&&this.root.enumTypes.push(s)}}},5673:(Be,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.ValidateAnnotationsVisitor=void 0;const i=l(1942),d=l(3154);function u(v){return v instanceof i.TypeReference?u(v.type):v}m.ValidateAnnotationsVisitor=class s extends d.Visitor{visit(C){if(C instanceof i.EnumValue){for(const D of C.annotations)if(!(D instanceof i.DescriptionAnnotation))throw new d.SemanticError(`Cannot have @${D.constructor.name.replace("Annotation","").toLowerCase()} at ${D.location}`)}else if(C instanceof i.TypeDefinition){for(const D of C.annotations)if(!(D instanceof i.DescriptionAnnotation))throw new d.SemanticError(`Cannot have @${D.constructor.name.replace("Annotation","").toLowerCase()} at ${D.location}`)}else if(C instanceof i.Field){for(const D of C.annotations)if(!(D instanceof i.DescriptionAnnotation))throw new d.SemanticError(`Cannot have @${D.constructor.name.replace("Annotation","").toLowerCase()} at ${D.location}`)}else if(C instanceof i.FunctionOperation)for(const D of C.annotations)if(!(D instanceof i.DescriptionAnnotation))if(D instanceof i.ThrowsAnnotation){if(!this.root.errors.some(p=>p.name===D.error))throw new d.SemanticError(`Unknown error type '${D.error}' at ${D.location}`)}else if(D instanceof i.RestAnnotation){const p=[...D.pathVariables,...D.queryVariables,...D.headers.values()];if(p.length!==new Set(p).size)throw new d.SemanticError(`Arguments must appear only once for rest annotation at ${D.location}`);for(const y of p){const I=C.args.find(w=>w.name===y);if(!I)throw new d.SemanticError(`Argument '${y}' not found at ${D.location}`);if(D.pathVariables.includes(y)&&I.type instanceof i.OptionalType)throw new d.SemanticError(`The path argument '${y}' can't be nullable at ${D.location}`);if(!((v=u(I.type instanceof i.OptionalType?I.type.base:I.type))instanceof i.BoolPrimitiveType||v instanceof i.IntPrimitiveType||v instanceof i.UIntPrimitiveType||v instanceof i.BigIntPrimitiveType||v instanceof i.FloatPrimitiveType||v instanceof i.StringPrimitiveType||v instanceof i.DatePrimitiveType||v instanceof i.DateTimePrimitiveType||v instanceof i.MoneyPrimitiveType||v instanceof i.CpfPrimitiveType||v instanceof i.CnpjPrimitiveType||v instanceof i.UuidPrimitiveType||v instanceof i.HexPrimitiveType||v instanceof i.Base64PrimitiveType||v instanceof i.EnumType))throw new d.SemanticError(`Argument '${y}' can't have type '${I.type.name}' for rest annotation at ${D.location}`)}for(const y of C.args)if(!p.includes(y.name)&&D.bodyVariable!==y.name)throw new d.SemanticError(`Argument '${y.name}' is missing from the rest annotation at ${D.location}`);if("GET"===D.method&&C.returnType instanceof i.VoidPrimitiveType)throw new d.SemanticError(`A GET rest endpoint must return something at ${D.location}`)}else if(!(D instanceof i.HiddenAnnotation))throw new d.SemanticError(`Cannot have @${D.constructor.name.replace("Annotation","").toLowerCase()} at ${D.location}`);var v}}},9834:(Be,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.ValidateRecursiveTypes=void 0;const i=l(1942),d=l(3154);m.ValidateRecursiveTypes=class _ extends d.Visitor{visit(s){if(super.visit(s),s instanceof i.TypeDefinition&&(s.type instanceof i.TypeReference&&s.type.name===s.name||s.type instanceof i.ArrayType&&s.type.base.name===s.name||s.type instanceof i.OptionalType&&s.type.base.name===s.name))throw new d.SemanticError(`Type '${s.name}' at ${s.location} is recursive but is not an struct`)}}},6088:(Be,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.analyse=void 0;const i=l(1942),d=l(7629),_=l(4630),u=l(9457),s=l(3140),v=l(71),C=l(601),D=l(5492),p=l(5673),y=l(9834);m.analyse=function I(O){O.errors.some(w=>"Fatal"===w.name)||O.errors.push(new i.ErrorNode("Fatal",new i.VoidPrimitiveType)),new d.CheckMultipleDeclarationVisitor(O).process(),new _.MatchTypeDefinitionsVisitor(O).process(),new u.CheckDontReturnSecretVisitor(O).process(),new s.ExpandSpreadsVisitor(O).process(),new v.CheckEmptyStructOrEnumVisitor(O).process(),new C.GiveStructAndEnumNamesVisitor(O).process(),new D.CollectStructAndEnumTypesVisitor(O).process(),new p.ValidateAnnotationsVisitor(O).process(),new y.ValidateRecursiveTypes(O).process()}},3154:(Be,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.Visitor=m.SemanticError=void 0;const i=l(1942);class d extends Error{}m.SemanticError=d,m.Visitor=class _{constructor(s){this.root=s}process(){for(const s of this.root.errors)this.visit(s);for(const s of this.root.typeDefinitions)this.visit(s);for(const s of this.root.operations)this.visit(s)}visit(s){if(s instanceof i.FunctionOperation){for(const v of s.args)this.visit(v);for(const v of s.fieldsAndSpreads)this.visit(v);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 v of s.fields)this.visit(v);for(const v of s.fieldsAndSpreads)this.visit(v)}else if(s instanceof i.EnumType)for(const v of s.values)this.visit(v);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:(Be,m)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.PrimitiveTypeToken=m.FalseKeywordToken=m.TrueKeywordToken=m.ErrorKeywordToken=m.FnKeywordToken=m.EnumKeywordToken=m.TypeKeywordToken=m.ImportKeywordToken=m.AnnotationToken=m.SpreadSymbolToken=m.CommaSymbolToken=m.ArraySymbolToken=m.OptionalSymbolToken=m.ColonSymbolToken=m.ParensCloseSymbolToken=m.ParensOpenSymbolToken=m.CurlyCloseSymbolToken=m.CurlyOpenSymbolToken=m.ExclamationMarkSymbolToken=m.EqualSymbolToken=m.StringLiteralToken=m.IdentifierToken=m.Token=m.TokenLocation=void 0;class l{constructor(){this.filename="?",this.line=0,this.column=0}toString(){return`${this.filename}:${this.line}:${this.column}`}}m.TokenLocation=l;class i{constructor(Xe=""){this.value=Xe,this.location=new l,Object.defineProperty(this,"location",{enumerable:!1})}maybeAsIdentifier(){return this}toString(){const Xe=this.constructor.name.replace("Token","");return""===this.value?Xe:`${Xe}(${JSON.stringify(this.value)})`}}m.Token=i;class d extends i{}m.IdentifierToken=d,m.StringLiteralToken=class _ extends i{},m.EqualSymbolToken=class u extends i{},m.ExclamationMarkSymbolToken=class s extends i{},m.CurlyOpenSymbolToken=class v extends i{},m.CurlyCloseSymbolToken=class C extends i{},m.ParensOpenSymbolToken=class D extends i{},m.ParensCloseSymbolToken=class p extends i{},m.ColonSymbolToken=class y extends i{},m.OptionalSymbolToken=class I extends i{},m.ArraySymbolToken=class O extends i{},m.CommaSymbolToken=class w extends i{},m.SpreadSymbolToken=class k extends i{},m.AnnotationToken=class V extends i{},m.ImportKeywordToken=class ue extends i{maybeAsIdentifier(){return new d("import")}},m.TypeKeywordToken=class $ extends i{maybeAsIdentifier(){return new d("type")}},m.EnumKeywordToken=class ne extends i{maybeAsIdentifier(){return new d("enum")}},m.FnKeywordToken=class De extends i{maybeAsIdentifier(){return new d("fn")}},m.ErrorKeywordToken=class fe extends i{maybeAsIdentifier(){return new d("error")}},m.TrueKeywordToken=class _e extends i{maybeAsIdentifier(){return new d("true")}},m.FalseKeywordToken=class le extends i{maybeAsIdentifier(){return new d("false")}},m.PrimitiveTypeToken=class Se extends i{maybeAsIdentifier(){return new d(this.value)}}},6569:(Be,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.primitiveToAstClass=void 0;const i=l(1942);m.primitiveToAstClass=new Map,m.primitiveToAstClass.set("string",i.StringPrimitiveType),m.primitiveToAstClass.set("int",i.IntPrimitiveType),m.primitiveToAstClass.set("uint",i.UIntPrimitiveType),m.primitiveToAstClass.set("date",i.DatePrimitiveType),m.primitiveToAstClass.set("datetime",i.DateTimePrimitiveType),m.primitiveToAstClass.set("float",i.FloatPrimitiveType),m.primitiveToAstClass.set("bigint",i.BigIntPrimitiveType),m.primitiveToAstClass.set("bool",i.BoolPrimitiveType),m.primitiveToAstClass.set("bytes",i.BytesPrimitiveType),m.primitiveToAstClass.set("money",i.MoneyPrimitiveType),m.primitiveToAstClass.set("cpf",i.CpfPrimitiveType),m.primitiveToAstClass.set("cnpj",i.CnpjPrimitiveType),m.primitiveToAstClass.set("email",i.EmailPrimitiveType),m.primitiveToAstClass.set("html",i.HtmlPrimitiveType),m.primitiveToAstClass.set("url",i.UrlPrimitiveType),m.primitiveToAstClass.set("uuid",i.UuidPrimitiveType),m.primitiveToAstClass.set("hex",i.HexPrimitiveType),m.primitiveToAstClass.set("base64",i.Base64PrimitiveType),m.primitiveToAstClass.set("xml",i.XmlPrimitiveType),m.primitiveToAstClass.set("json",i.JsonPrimitiveType),m.primitiveToAstClass.set("void",i.VoidPrimitiveType)},5041:(Be,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.AppComponent=void 0;const i=l(655),d=l(3075),_=l(7179),u=l(1823),s=l(7402),v=l(7295),C=l(2911),D=l(4327),p=(0,i.__importStar)(l(5e3)),y=(0,i.__importStar)(l(6395)),I=(0,i.__importStar)(l(2313)),O=(0,i.__importStar)(l(5245)),w=(0,i.__importStar)(l(107)),k=(0,i.__importStar)(l(2253)),V=(0,i.__importStar)(l(9808)),ue=(0,i.__importStar)(l(2181)),$=(0,i.__importStar)(l(3251)),ne=(0,i.__importStar)(l(5585)),De=(0,i.__importStar)(l(7423)),fe=(0,i.__importStar)(l(7238)),_e=(0,i.__importStar)(l(4264)),le=(0,i.__importStar)(l(7822));function Se(Ue,pe){1&Ue&&(p.\u0275\u0275elementContainerStart(0),p.\u0275\u0275text(1,"Editor Avan\xe7ado"),p.\u0275\u0275elementContainerEnd())}function Le(Ue,pe){if(1&Ue&&(p.\u0275\u0275elementContainerStart(0),p.\u0275\u0275elementStart(1,"span",20),p.\u0275\u0275text(2),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementContainerEnd()),2&Ue){const qe=p.\u0275\u0275nextContext(2).$implicit;p.\u0275\u0275advance(2),p.\u0275\u0275textInterpolate1("\u25b6\xa0",qe.function,"")}}function Xe(Ue,pe){if(1&Ue){const qe=p.\u0275\u0275getCurrentView();p.\u0275\u0275elementStart(0,"span",17),p.\u0275\u0275template(1,Se,2,0,"ng-container",18),p.\u0275\u0275template(2,Le,3,1,"ng-container",18),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(3,"button",19),p.\u0275\u0275listener("click",function(){p.\u0275\u0275restoreView(qe);const Ge=p.\u0275\u0275nextContext().$implicit;return p.\u0275\u0275nextContext(2).closeTab(Ge)}),p.\u0275\u0275elementStart(4,"mat-icon"),p.\u0275\u0275text(5,"close"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementEnd()}if(2&Ue){const qe=p.\u0275\u0275nextContext().$implicit;p.\u0275\u0275property("ngSwitch",qe.type),p.\u0275\u0275advance(1),p.\u0275\u0275property("ngSwitchCase","advanced"),p.\u0275\u0275advance(1),p.\u0275\u0275property("ngSwitchCase","simple")}}function lt(Ue,pe){1&Ue&&(p.\u0275\u0275elementContainerStart(0),p.\u0275\u0275element(1,"app-tab-editor"),p.\u0275\u0275elementContainerEnd())}function X(Ue,pe){if(1&Ue&&(p.\u0275\u0275elementContainerStart(0),p.\u0275\u0275element(1,"app-simple-call",21),p.\u0275\u0275elementContainerEnd()),2&Ue){const qe=p.\u0275\u0275nextContext().$implicit;p.\u0275\u0275advance(1),p.\u0275\u0275property("fn",qe.function)}}function me(Ue,pe){if(1&Ue&&(p.\u0275\u0275elementStart(0,"mat-tab"),p.\u0275\u0275template(1,Xe,6,3,"ng-template",16),p.\u0275\u0275elementContainerStart(2,17),p.\u0275\u0275template(3,lt,2,0,"ng-container",18),p.\u0275\u0275template(4,X,2,1,"ng-container",18),p.\u0275\u0275elementContainerEnd(),p.\u0275\u0275elementEnd()),2&Ue){const qe=pe.$implicit;p.\u0275\u0275advance(2),p.\u0275\u0275property("ngSwitch",qe.type),p.\u0275\u0275advance(1),p.\u0275\u0275property("ngSwitchCase","advanced"),p.\u0275\u0275advance(1),p.\u0275\u0275property("ngSwitchCase","simple")}}function K(Ue,pe){if(1&Ue){const qe=p.\u0275\u0275getCurrentView();p.\u0275\u0275elementStart(0,"button",22),p.\u0275\u0275listener("click",function(){return p.\u0275\u0275restoreView(qe),p.\u0275\u0275nextContext(2).addAdvancedTab()}),p.\u0275\u0275elementStart(1,"mat-icon"),p.\u0275\u0275text(2,"add_circle"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementEnd()}}function oe(Ue,pe){if(1&Ue&&(p.\u0275\u0275elementStart(0,"button",23),p.\u0275\u0275elementStart(1,"mat-icon"),p.\u0275\u0275text(2,"download"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementEnd()),2&Ue){p.\u0275\u0275nextContext(2);const qe=p.\u0275\u0275reference(5);p.\u0275\u0275property("matMenuTriggerFor",qe)}}function ke(Ue,pe){if(1&Ue){const qe=p.\u0275\u0275getCurrentView();p.\u0275\u0275elementStart(0,"mat-tab-group",11),p.\u0275\u0275listener("selectedIndexChange",function(Ge){return p.\u0275\u0275restoreView(qe),p.\u0275\u0275nextContext().selected.setValue(Ge)}),p.\u0275\u0275elementStart(1,"mat-tab",12),p.\u0275\u0275elementStart(2,"app-tab-home",13),p.\u0275\u0275listener("runFunction",function(Ge){return p.\u0275\u0275restoreView(qe),p.\u0275\u0275nextContext().addSimpleTab(Ge)}),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementEnd(),p.\u0275\u0275template(3,me,5,3,"mat-tab",14),p.\u0275\u0275elementStart(4,"mat-tab",15),p.\u0275\u0275template(5,K,3,0,"ng-template",16),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(6,"mat-tab",15),p.\u0275\u0275template(7,oe,3,1,"ng-template",16),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementEnd()}if(2&Ue){const qe=p.\u0275\u0275nextContext();p.\u0275\u0275property("selectedIndex",qe.selected.value),p.\u0275\u0275advance(3),p.\u0275\u0275property("ngForOf",qe.tabs)}}class de{constructor(pe,qe,Me){this.sdkgen=pe,this.domSanitizer=qe,this.matIconRegistry=Me,this.selected=new d.FormControl(0),this.tabs=[{id:0,type:"advanced"}],this.tabIndex=1;for(const Ge of["typescript","dot-net","kotlin","swift","dart"])this.matIconRegistry.addSvgIcon(Ge,this.domSanitizer.bypassSecurityTrustResourceUrl(`assets/${Ge}.svg`))}ngOnInit(){this.state$=this.sdkgen.state$.subscribe(pe=>{this.state=null!=pe?pe:void 0})}ngOnDestroy(){var pe;null===(pe=this.state$)||void 0===pe||pe.unsubscribe()}addSimpleTab(pe){this.tabs.push({id:this.tabIndex++,function:pe,type:"simple"}),this.selected.setValue(this.tabs.length)}addAdvancedTab(){this.tabs.push({id:this.tabIndex++,type:"advanced"}),this.selected.setValue(this.tabs.length)}closeTab(pe){this.tabs.splice(this.tabs.indexOf(pe),1),this.selected.setValue(0)}downloadTarget(pe){if(!this.state)return;let qe,Me;switch(pe){case"typescript_nodeserver":qe=(0,C.generateNodeServerSource)(this.state.astRoot),Me="node-server.ts";break;case"typescript_nodeclient":qe=(0,C.generateNodeClientSource)(this.state.astRoot),Me="node-client.ts";break;case"typescript_web":qe=(0,C.generateBrowserClientSource)(this.state.astRoot),Me="web-client.ts";break;case"typescript_interfaces":qe=(0,C.generateTypescriptInterfaces)(this.state.astRoot),Me="interfaces.ts";break;case"flutter":qe=(0,u.generateDartClientSource)(this.state.astRoot),Me="flutter-client.dart";break;case"csharp_server":qe=(0,_.generateCSharpServerSource)(this.state.astRoot),Me="csharp-server.cs";break;case"kotlin_android":qe=(0,s.generateAndroidClientSource)(this.state.astRoot,!0),Me="android-client.kt";break;case"kotlin_android_without_callbacks":qe=(0,s.generateAndroidClientSource)(this.state.astRoot,!1),Me="android-client-no-callbacks.kt";break;case"swift_ios":qe=(0,v.generateSwiftClientSource)(this.state.astRoot,!1),Me="ios-client.swift";break;case"rxswift_ios":qe=(0,v.generateSwiftClientSource)(this.state.astRoot,!0),Me="ios-client-rx.swift"}(0,D.saveAs)(new Blob([qe],{type:"application/octet-stream"}),Me)}}m.AppComponent=de,de.\u0275fac=function(pe){return new(pe||de)(p.\u0275\u0275directiveInject(y.SdkgenService),p.\u0275\u0275directiveInject(I.DomSanitizer),p.\u0275\u0275directiveInject(O.MatIconRegistry))},de.\u0275cmp=p.\u0275\u0275defineComponent({type:de,selectors:[["app-root"]],decls:43,vars:3,consts:[[2,"width","0","height","0","opacity","0","display","block"],["id","main-tabs","animationDuration","150ms",3,"selectedIndex","selectedIndexChange",4,"ngIf"],["downloadMenu","matMenu"],["id","download-menu-size-flow"],["mat-menu-item","","disabled",""],["mat-menu-item","",3,"click"],["svgIcon","typescript"],["svgIcon","dart"],["svgIcon","kotlin"],["svgIcon","swift"],["svgIcon","dot-net"],["id","main-tabs","animationDuration","150ms",3,"selectedIndex","selectedIndexChange"],["label","Documenta\xe7\xe3o"],[3,"runFunction"],[4,"ngFor","ngForOf"],["disabled",""],["mat-tab-label",""],[3,"ngSwitch"],[4,"ngSwitchCase"],["mat-icon-button","","matTooltip","Fechar aba",3,"click"],[1,"mono","tt-none"],[3,"fn"],["mat-icon-button","","matTooltip","Nova aba de editor avan\xe7ado",3,"click"],["mat-icon-button","",3,"matMenuTriggerFor"]],template:function(pe,qe){1&pe&&(p.\u0275\u0275element(0,"ngx-monaco-editor",0),p.\u0275\u0275element(1,"app-tab-nav"),p.\u0275\u0275template(2,ke,8,2,"mat-tab-group",1),p.\u0275\u0275pipe(3,"async"),p.\u0275\u0275elementStart(4,"mat-menu",null,2),p.\u0275\u0275element(6,"div",3),p.\u0275\u0275elementStart(7,"button",4),p.\u0275\u0275text(8,"Cliente"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(9,"button",5),p.\u0275\u0275listener("click",function(){return qe.downloadTarget("typescript_nodeclient")}),p.\u0275\u0275element(10,"mat-icon",6),p.\u0275\u0275text(11,"Node.js"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(12,"button",5),p.\u0275\u0275listener("click",function(){return qe.downloadTarget("typescript_web")}),p.\u0275\u0275element(13,"mat-icon",6),p.\u0275\u0275text(14,"Web"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(15,"button",5),p.\u0275\u0275listener("click",function(){return qe.downloadTarget("flutter")}),p.\u0275\u0275element(16,"mat-icon",7),p.\u0275\u0275text(17,"Flutter"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(18,"button",5),p.\u0275\u0275listener("click",function(){return qe.downloadTarget("kotlin_android")}),p.\u0275\u0275element(19,"mat-icon",8),p.\u0275\u0275text(20,"Android"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(21,"button",5),p.\u0275\u0275listener("click",function(){return qe.downloadTarget("kotlin_android_without_callbacks")}),p.\u0275\u0275element(22,"mat-icon",8),p.\u0275\u0275text(23,"Android (sem callbacks)"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(24,"button",5),p.\u0275\u0275listener("click",function(){return qe.downloadTarget("swift_ios")}),p.\u0275\u0275element(25,"mat-icon",9),p.\u0275\u0275text(26,"iOS"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(27,"button",5),p.\u0275\u0275listener("click",function(){return qe.downloadTarget("rxswift_ios")}),p.\u0275\u0275element(28,"mat-icon",9),p.\u0275\u0275text(29,"iOS (Rx)"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(30,"button",4),p.\u0275\u0275text(31,"Servidor"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(32,"button",5),p.\u0275\u0275listener("click",function(){return qe.downloadTarget("typescript_nodeserver")}),p.\u0275\u0275element(33,"mat-icon",6),p.\u0275\u0275text(34,"Node.js"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(35,"button",5),p.\u0275\u0275listener("click",function(){return qe.downloadTarget("csharp_server")}),p.\u0275\u0275element(36,"mat-icon",10),p.\u0275\u0275text(37,"C#"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(38,"button",4),p.\u0275\u0275text(39,"Outros"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(40,"button",5),p.\u0275\u0275listener("click",function(){return qe.downloadTarget("typescript_interfaces")}),p.\u0275\u0275element(41,"mat-icon",6),p.\u0275\u0275text(42,"Interfaces"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementEnd()),2&pe&&(p.\u0275\u0275advance(2),p.\u0275\u0275property("ngIf",p.\u0275\u0275pipeBind1(3,1,qe.sdkgen.state$)))},directives:[w.MonacoEditorComponent,k.TabNavComponent,V.NgIf,ue.MatMenu,ue.MatMenuItem,O.MatIcon,$.MatTabGroup,$.MatTab,ne.TabHomeComponent,V.NgForOf,$.MatTabLabel,V.NgSwitch,V.NgSwitchCase,De.MatButton,fe.MatTooltip,_e.TabEditorComponent,le.SimpleCallComponent,ue.MatMenuTrigger],pipes:[V.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:(Be,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.AppModule=void 0;const i=l(655),d=l(520),_=l(3075),u=l(7423),s=l(9417),v=l(8966),C=l(5245),D=l(2181),p=l(2075),y=l(3251),I=l(7238),O=l(2313),w=l(6360),k=l(107),V=l(1430),ue=l(5109),$=l(2290),ne=l(5041),De=(0,i.__importStar)(l(5e3));(0,i.__importStar)(l(2290));class _e{}m.AppModule=_e,_e.\u0275fac=function(Se){return new(Se||_e)},_e.\u0275mod=De.\u0275\u0275defineNgModule({type:_e,bootstrap:[ne.AppComponent]}),_e.\u0275inj=De.\u0275\u0275defineInjector({providers:[{provide:k.MONACO_PATH,useValue:"assets/vs"}],imports:[[O.BrowserModule,_.FormsModule,_.ReactiveFormsModule,k.MonacoEditorModule,w.BrowserAnimationsModule,ue.NgxJsonViewerModule,$.ToastrModule.forRoot(),V.AngularSplitModule,d.HttpClientModule,u.MatButtonModule,s.MatChipsModule,v.MatDialogModule,C.MatIconModule,D.MatMenuModule,p.MatTableModule,y.MatTabsModule,I.MatTooltipModule]]})},8495:(Be,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.ConsoleComponent=void 0;const i=l(655),d=l(9972),_=(0,i.__importStar)(l(5e3)),u=(0,i.__importStar)(l(7423)),s=(0,i.__importStar)(l(5245)),v=(0,i.__importStar)(l(9808)),C=(0,i.__importStar)(l(5109));function D(k,V){1&k&&(_.\u0275\u0275elementContainerStart(0),_.\u0275\u0275text(1,"info_outline"),_.\u0275\u0275elementContainerEnd())}function p(k,V){1&k&&(_.\u0275\u0275elementContainerStart(0),_.\u0275\u0275text(1,"error"),_.\u0275\u0275elementContainerEnd())}function y(k,V){1&k&&(_.\u0275\u0275elementContainerStart(0),_.\u0275\u0275text(1,"public"),_.\u0275\u0275elementContainerEnd())}function I(k,V){if(1&k&&_.\u0275\u0275element(0,"ngx-json-viewer",6),2&k){const ue=_.\u0275\u0275nextContext().$implicit;_.\u0275\u0275property("json",ue.details)("expanded",!1)}}function O(k,V){if(1&k&&(_.\u0275\u0275elementStart(0,"li",2),_.\u0275\u0275elementStart(1,"mat-icon",3),_.\u0275\u0275template(2,D,2,0,"ng-container",4),_.\u0275\u0275template(3,p,2,0,"ng-container",4),_.\u0275\u0275template(4,y,2,0,"ng-container",4),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementStart(5,"span"),_.\u0275\u0275text(6),_.\u0275\u0275elementEnd(),_.\u0275\u0275template(7,I,1,2,"ngx-json-viewer",5),_.\u0275\u0275elementEnd()),2&k){const ue=V.$implicit,$=_.\u0275\u0275nextContext();_.\u0275\u0275property("ngClass",ue.type),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngSwitch",ue.type)("ngClass",ue.type),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngSwitchCase",$.itemTypes.INFO),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngSwitchCase",$.itemTypes.ERROR),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngSwitchCase",$.itemTypes.NETWORK),_.\u0275\u0275advance(2),_.\u0275\u0275textInterpolate(ue.message),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngIf",ue.details)}}class w{constructor(){this.itemTypes=d.ConsoleItemType,this.items=[]}}m.ConsoleComponent=w,w.\u0275fac=function(V){return new(V||w)},w.\u0275cmp=_.\u0275\u0275defineComponent({type:w,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,ue){1&V&&(_.\u0275\u0275elementStart(0,"header"),_.\u0275\u0275elementStart(1,"strong"),_.\u0275\u0275text(2,"CONSOLE"),_.\u0275\u0275elementEnd(),_.\u0275\u0275element(3,"s"),_.\u0275\u0275elementStart(4,"button",0),_.\u0275\u0275listener("click",function(){return ue.items.splice(0,ue.items.length)}),_.\u0275\u0275elementStart(5,"mat-icon"),_.\u0275\u0275text(6,"delete"),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementStart(7,"ul"),_.\u0275\u0275template(8,O,8,8,"li",1),_.\u0275\u0275elementEnd()),2&V&&(_.\u0275\u0275advance(8),_.\u0275\u0275property("ngForOf",ue.items))},directives:[u.MatButton,s.MatIcon,v.NgForOf,v.NgClass,v.NgSwitch,v.NgSwitchCase,v.NgIf,C.NgxJsonViewerComponent],styles:["[_nghost-%COMP%]{display:block;height:100%;text-align:left;overflow-y:scroll;box-sizing:border-box}header[_ngcontent-%COMP%]{display:flex;flex-direction:row;position:sticky;top:0;background:#1E1E1E;border-bottom:1px solid #444444;padding:5px 0;z-index:2}header[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{margin:0 10px;text-transform:uppercase;font-weight:200;color:#e7e7e7;border-bottom:1px solid #e7e7e7;line-height:27px;font-size:11pt;align-self:center}header[_ngcontent-%COMP%] s[_ngcontent-%COMP%]{flex-grow:1}header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:0 10px}ul[_ngcontent-%COMP%]{padding:0;margin:0;box-sizing:border-box}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{list-style:none;display:block;width:100%;height:auto;padding:5px 10px;font-size:1rem;border-bottom:1px solid #444444;background-color:#111;word-break:break-all;box-sizing:border-box;word-wrap:break-word;font-family:monospace}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline;vertical-align:text-bottom}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{height:1rem;width:1rem;font-size:1rem;vertical-align:sub;margin-right:7.5px;-webkit-user-select:none;user-select:none}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] mat-icon.info[_ngcontent-%COMP%]{color:#b9b9bb}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] mat-icon.error[_ngcontent-%COMP%]{color:#ff3b6b}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] mat-icon.network_recv[_ngcontent-%COMP%], ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] mat-icon.network_send[_ngcontent-%COMP%]{color:#939395}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:hover{background-color:#0000004d}ul[_ngcontent-%COMP%] > li.error[_ngcontent-%COMP%]{color:#e69fa3;background-color:#4b2f36}"]})},9972:(Be,m)=>{"use strict";var i;Object.defineProperty(m,"__esModule",{value:!0}),m.ConsoleItemType=void 0,(i=m.ConsoleItemType||(m.ConsoleItemType={})).INFO="info",i.ERROR="error",i.NETWORK="network"},4211:(Be,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.FilterPipe=void 0;const d=(0,l(655).__importStar)(l(5e3));class _{transform(s,v){if(!s)return[];if(!v)return s;const C=v.toLocaleLowerCase();return s.filter(D=>JSON.stringify(D).toLocaleLowerCase().includes(C))}}m.FilterPipe=_,_.\u0275fac=function(s){return new(s||_)},_.\u0275pipe=d.\u0275\u0275definePipe({name:"appFilter",type:_,pure:!0})},7120:(Be,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.ResponsiveService=void 0;const i=l(655),d=(0,i.__importStar)(l(5e3)),_=(0,i.__importStar)(l(5113));class u{constructor(v){this.observer=v}isBelowSm(){return this.observer.observe(["(max-width: 575px)"])}isBelowMd(){return this.observer.observe(["(max-width: 767px)"])}isBelowLg(){return this.observer.observe(["(max-width: 991px)"])}isBelowXl(){return this.observer.observe(["(max-width: 1199px)"])}}m.ResponsiveService=u,u.\u0275fac=function(v){return new(v||u)(d.\u0275\u0275inject(_.BreakpointObserver))},u.\u0275prov=d.\u0275\u0275defineInjectable({token:u,factory:u.\u0275fac,providedIn:"root"})},9435:(Be,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.getTypeDoc=m.getTypeLabels=m.getConstructorName=m.primitiveTypesExamples=m.primitiveTypes=void 0;const i=l(6676),d=l(6395);function _(v){switch(v.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 v.constructor.name}}m.primitiveTypes={StringPrimitiveType:"Um texto livre, potencialmente de m\xfaltiplas linhas, codificado como UTF-8.",IntPrimitiveType:"Um n\xfamero inteiro de 32 bits, no intervalo de -2147483648 at\xe9 2147483647.",UIntPrimitiveType:"Um n\xfamero inteiro n\xe3o negativo, no intervalo de 0 at\xe9 4294967295.",FloatPrimitiveType:"Um n\xfamero de ponto flutuante de 64 bits, similar ao double do C.",BigIntPrimitiveType:"Um n\xfamero inteiro sem limite de precis\xe3o. Na maioria das plataformas este tipo \xe9 mais custoso.",MoneyPrimitiveType:"Um n\xfamero inteiro com precis\xe3o estendida, mas perform\xe1tico. Est\xe1 no intervalo de -9007199254740991 a 9007199254740991. \xdatil para opera\xe7\xf5es financeiras",DatePrimitiveType:"Representa conceitualmente uma data do calend\xe1rio Gregoriano. Essa mesma data pode representar diferentes momento no tempo a depender da timezone. Para especificar um ponto no tempo utilize datetime.",DateTimePrimitiveType:"Representa um instante no tempo com precis\xe3o de milissegundos. Este instante ser\xe1 sempre traduzido para o fuso hor\xe1rio local do recebedor da mensagem.",BoolPrimitiveType:"Ou true ou false.",VoidPrimitiveType:"Tipo vazio, sem conte\xfado.",CpfPrimitiveType:"Similar a uma string, mas contendo um CPF v\xe1lido.",CnpjPrimitiveType:"Similar a uma string, mas contendo um CNPJ v\xe1lido.",EmailPrimitiveType:"Similar a uma string, mas contendo um e-mail v\xe1lido.",UrlPrimitiveType:"Similar a uma string, mas contendo uma URL v\xe1lida.",UuidPrimitiveType:"Similar a uma string, mas contendo um UUID v\xe1lido.",HexPrimitiveType:"Similar a uma string, mas contendo uma quantidade par de caracteres hexadecimais, \xfatil para representar bytes.",HtmlPrimitiveType:"Similar a uma string, mas contendo um HTML v\xe1lido.",BytesPrimitiveType:"Uma sequ\xeancia arbitr\xe1ria de bytes de qualquer comprimento. Pode ser utilizado para tr\xe1fego de dados bin\xe1rios.",Base64PrimitiveType:"Similar a uma string, mas necessariamente com uma codifica\xe7\xe3o Base 64 v\xe1lida.",XmlPrimitiveType:"Similar a uma string, mas contendo um XML v\xe1lido.",JsonPrimitiveType:"Um valor JSON qualquer, incluindo objetos, arrays, strings, n\xfameros e boleanos, em qualquer profundidade. Note que embora null possa aparecer dentro de um objeto ou array, o valor deste campo n\xe3o pode ser null diretamente. Para isso utilize json?."},m.primitiveTypesExamples={StringPrimitiveType:["","lorem ipsum","strings podem conter caracteres especiais \u{1f609}"],IntPrimitiveType:["0","6725082065","-3096576054"],UIntPrimitiveType:["0","1","340953460"],FloatPrimitiveType:["0.0","1.050654","-3454.6396854"],BigIntPrimitiveType:["87175082235506108544888893172310","0","1"],MoneyPrimitiveType:["100","-450954636342","121611633162977184630315"],DatePrimitiveType:["2020-01-01","1950-04-15","2194-12-31"],DateTimePrimitiveType:["2020-01-01T00:00:00.000","1950-04-15T02:11:58.892","2194-12-31T23:31:58.491"],BoolPrimitiveType:["true","false"],CpfPrimitiveType:["000.000.001-91","00000000191","000.000.002-72"],CnpjPrimitiveType:["00.000.000/0001-91","00000000000191","00.000.000/0002-72"],EmailPrimitiveType:["sample@example.com","root@localhost","test+label@10.0.0.5"],UrlPrimitiveType:["https://sdkgen.github.io/","https://goo.gl/maps/gUaKGTqR8BHXfX7b7","http://jobs.cubos.io"],UuidPrimitiveType:["c12c3329-c558-4c76-9a16-0efeb2b01605","00000000-0000-0000-0000-000000000000","1d5f2ef6-0def-11ec-82a8-0242ac130003"],HexPrimitiveType:["00","6375626f73","73646b67656e20706c617967726f756e64"],HtmlPrimitiveType:["<html><body><p>sdkgen</p></body></html>","<html><h1>Sdkgen","<script> alert('Hello world!'); <\/script>"],BytesPrimitiveType:[],Base64PrimitiveType:["Y3Vib3M=","c2RrZ2Vu","c2RrZ2VuIHBsYXlncm91bmQ="],XmlPrimitiveType:["<items><item>something</item></items>","<list />",'<?xml version="1.0" encoding="UTF-8"?><resposta><![CDATA[ol\xe1 <xml>]]></resposta>'],JsonPrimitiveType:["{}",'{"sdkgen":"playground"}','{"type":"json","items":[1,2,3],"some":null}']},m.getConstructorName=_,m.getTypeLabels=function u(v){const C=[];switch(v.constructor){case i.StringPrimitiveType:case i.IntPrimitiveType:case i.UIntPrimitiveType:case i.FloatPrimitiveType:case i.BigIntPrimitiveType:case i.MoneyPrimitiveType:case i.DatePrimitiveType:case i.DateTimePrimitiveType:case i.BoolPrimitiveType:case i.VoidPrimitiveType:case i.CpfPrimitiveType:case i.CnpjPrimitiveType:case i.EmailPrimitiveType:case i.UrlPrimitiveType:case i.UuidPrimitiveType:case i.HexPrimitiveType:case i.HtmlPrimitiveType:case i.BytesPrimitiveType:case i.Base64PrimitiveType:case i.XmlPrimitiveType:case i.JsonPrimitiveType:C.push("Primitivo");break;case i.OptionalType:C.push("Opcional"),C.push(...u(v.base));break;case i.TypeReference:C.push(...u(v.type));break;case i.ArrayType:C.push("Array"),C.push(...u(v.base));break;case i.EnumType:C.push("Enum");break;default:console.error("No labels for",_(v))}return C},m.getTypeDoc=function s(v){var C,D,p;switch(v.constructor){case i.StringPrimitiveType:case i.IntPrimitiveType:case i.UIntPrimitiveType:case i.FloatPrimitiveType:case i.BigIntPrimitiveType:case i.MoneyPrimitiveType:case i.DatePrimitiveType:case i.DateTimePrimitiveType:case i.BoolPrimitiveType:case i.VoidPrimitiveType:case i.CpfPrimitiveType:case i.CnpjPrimitiveType:case i.EmailPrimitiveType:case i.UrlPrimitiveType:case i.UuidPrimitiveType:case i.HexPrimitiveType:case i.HtmlPrimitiveType:case i.BytesPrimitiveType:case i.Base64PrimitiveType:case i.XmlPrimitiveType:case i.JsonPrimitiveType:return{longDescription:m.primitiveTypes[_(v)],shortDescription:m.primitiveTypes[_(v)],examples:m.primitiveTypesExamples[_(v)]};case i.OptionalType:{const I=s(v.base);return Object.assign(Object.assign({},I),{longDescription:I.longDescription,shortDescription:`(opcional) ${I.shortDescription}`,examples:["null",...null!==(C=I.examples)&&void 0!==C?C:[]]})}case i.TypeReference:return s(v.type);case i.ArrayType:{const I=s(v.base);return Object.assign(Object.assign({},I),{longDescription:I.longDescription,shortDescription:`(array) ${I.shortDescription}`,examples:["[]",...null!==(p=null===(D=I.examples)||void 0===D?void 0:D.map(O=>`[${O}]`))&&void 0!==p?p:[]]})}case i.EnumType:const y=v.values.map(I=>I.value);return{longDescription:"enum representa um conjunto limitado de possibilidades de valores, similar as enumera\xe7\xf5es em outras linguagens.",shortDescription:`(enum) ${y.slice(0,3).join(", ")}${y.length>3?"\u2026":""}`,examples:y,isEnum:!0};case i.StructType:return{longDescription:"",shortDescription:`(objeto complexo) ${v.fields.slice(0,3).map(I=>I.name).join(", ")}\u2026`,isStruct:!0,structFields:v.fields.map(I=>{var O;return{name:I.name,description:null===(O=I.annotations.find(w=>w instanceof i.DescriptionAnnotation))||void 0===O?void 0:O.text,type:I.type,secret:I.secret}}),examples:[JSON.stringify((new d.SdkgenService).buildJsonObject(v.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(Be){const m=l=>{switch(l.constructor){case parser_1.StringPrimitiveType:return"";case parser_1.IntPrimitiveType:case parser_1.UIntPrimitiveType:case parser_1.FloatPrimitiveType:case parser_1.BigIntPrimitiveType:case parser_1.MoneyPrimitiveType:return 0;case parser_1.DatePrimitiveType:return(new Date).toJSON().substring(0,10);case parser_1.DateTimePrimitiveType:return(new Date).toJSON().substring(0,23);case parser_1.BoolPrimitiveType:return Math.random()>.5;case parser_1.VoidPrimitiveType:return null;case parser_1.CpfPrimitiveType:return"000.000.001-91";case parser_1.CnpjPrimitiveType:return"00.000.001/0001-91";case parser_1.EmailPrimitiveType:return"joao@acme.com";case parser_1.UrlPrimitiveType:return"https://www.google.com/";case parser_1.UuidPrimitiveType:return"00000000-0000-0000-0000-000000000000";case parser_1.HexPrimitiveType:return new Array(32).fill(0).map(()=>"0123456789abcdef"[Math.floor(16*Math.random())]).join("");case parser_1.HtmlPrimitiveType:return"<h1>Hello world!</h1>";case parser_1.BytesPrimitiveType:case parser_1.Base64PrimitiveType:return"0a=";case parser_1.XmlPrimitiveType:return"<xml></xml>";case parser_1.JsonPrimitiveType:return{};case parser_1.StructType:return this.buildJsonObject(l.fields);case parser_1.OptionalType:return null;case parser_1.TypeReference:return m(l.type);case parser_1.ArrayType:return[m(l.base),m(l.base),m(l.base)];case parser_1.EnumType:return l.values[0].value;default:return null}};return Be.reduce((l,i)=>(l[i.name]=m(i.type),l),{})}getTypeScriptCode(Be,m){return`await client.${Be}(${JSON.stringify(m,null,2)});\n`}buildKotlinString(Be,m=0){const l=i=>{switch(i.constructor){case parser_1.StringPrimitiveType:return'""';case parser_1.IntPrimitiveType:case parser_1.UIntPrimitiveType:case parser_1.FloatPrimitiveType:case parser_1.BigIntPrimitiveType:case parser_1.MoneyPrimitiveType:return 0;case parser_1.DatePrimitiveType:case parser_1.DateTimePrimitiveType:return"Calendar.getInstance()";case parser_1.BoolPrimitiveType:return Math.random()>.5?"true":"false";case parser_1.VoidPrimitiveType:return"null";case parser_1.CpfPrimitiveType:return'"000.000.001-91"';case parser_1.CnpjPrimitiveType:return'"00.000.001/0001-91"';case parser_1.EmailPrimitiveType:return'"joao@acme.com"';case parser_1.UrlPrimitiveType:return'"https://www.google.com/"';case parser_1.UuidPrimitiveType:return'"00000000-0000-0000-0000-000000000000"';case parser_1.HexPrimitiveType:return`"${new Array(32).fill(0).map(()=>"0123456789abcdef"[Math.floor(16*Math.random())]).join("")}"`;case parser_1.HtmlPrimitiveType:return'"<h1>Hello world!</h1>"';case parser_1.BytesPrimitiveType:case parser_1.Base64PrimitiveType:return'"0a="';case parser_1.XmlPrimitiveType:return'"<xml></xml>"';case parser_1.JsonPrimitiveType:return"json {}";case parser_1.StructType:return`${i.name}(\n${this.buildKotlinString(i.fields,m+1)}\n${" ".repeat(m+1)})`;case parser_1.OptionalType:return"null";case parser_1.TypeReference:return l(i.type);case parser_1.ArrayType:m++;const d=l(i.base);return m--,`arrayOf(\n${" ".repeat(m+2)}${d},\n${" ".repeat(m+2)}${d}\n${" ".repeat(m+1)})`;case parser_1.EnumType:return`"${i.values[0].value}"`;default:return"<>()"}};return Be.map(i=>`${" ".repeat(m+1)}${l(i.type)}`).join(",\n")}getKotlinCode(Be,m){return 0===m.length?`client.${Be}().await();`:`client.${Be}(\n${this.buildKotlinString(m)}\n).await();`}getDartCode(Be,m){return'print("todo");'}getSwiftCode(Be,m){return'print("todo");'}getSdkgenClient(url,ast){const errorFns=ast.errors.reduce((acc,cur)=>{function errorClass(type,base){return eval(`(\n (sup) => class ${type} extends sup {\n type = "${type}";\n message = "";\n ${base===browser_runtime_1.SdkgenErrorWithData?"data = null;":""}\n\n constructor(message${base===browser_runtime_1.SdkgenErrorWithData?", data":""}) {\n super(message${base===browser_runtime_1.SdkgenErrorWithData?", data":""});\n this.message = message;\n ${base===browser_runtime_1.SdkgenErrorWithData?"this.data = data;":""}\n this.toString = () => this.type + ": " + this.message;\n }\n }\n )`)(base)}return"string"==typeof cur?acc[cur]=errorClass(cur,browser_runtime_1.SdkgenError):acc[cur[0]]=errorClass(cur[0],browser_runtime_1.SdkgenErrorWithData),acc},{}),clientInstance=new browser_runtime_1.SdkgenHttpClient(url,ast,errorFns);return new Proxy(clientInstance,{get:(Be,m)=>["baseUrl","extra","successHook","errorHook","makeRequest"].includes(m.toString())?clientInstance[m.toString()]:function(){var l=_asyncToGenerator(function*(i){return clientInstance.makeRequest(m.toString(),i)});return function(i){return l.apply(this,arguments)}}()})}}exports.SdkgenService=SdkgenService,SdkgenService.\u0275fac=function Be(m){return new(m||SdkgenService)},SdkgenService.\u0275prov=i0.\u0275\u0275defineInjectable({token:SdkgenService,factory:SdkgenService.\u0275fac,providedIn:"root"})},7822:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";var _asyncToGenerator=__webpack_require__(8926).default;Object.defineProperty(exports,"__esModule",{value:!0}),exports.SimpleCallComponent=void 0;const tslib_1=__webpack_require__(655),forms_1=__webpack_require__(3075),console_types_1=__webpack_require__(9972),code_execution_1=__webpack_require__(8227),i0=(0,tslib_1.__importStar)(__webpack_require__(5e3)),i1=(0,tslib_1.__importStar)(__webpack_require__(6395)),i2=(0,tslib_1.__importStar)(__webpack_require__(1430)),i3=(0,tslib_1.__importStar)(__webpack_require__(3251)),i4=(0,tslib_1.__importStar)(__webpack_require__(7423)),i5=(0,tslib_1.__importStar)(__webpack_require__(5245)),i6=(0,tslib_1.__importStar)(__webpack_require__(107)),i7=(0,tslib_1.__importStar)(__webpack_require__(3075)),i8=(0,tslib_1.__importStar)(__webpack_require__(5109)),i9=(0,tslib_1.__importStar)(__webpack_require__(8495));class SimpleCallComponent{constructor(Be){this.sdkgen=Be,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(Be=>{!Be||(this.generateFunctionCode(Be.astRoot,this.fn),this.client=this.sdkgen.getSdkgenClient(Be.url,Be.astJson))})}ngOnDestroy(){var Be;null===(Be=this.state$)||void 0===Be||Be.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(Be){_this.consoleItems.push({type:console_types_1.ConsoleItemType.ERROR,message:Be.toString()}),delete Be.toString,_this.response={error:{type:Be.type,message:Be.message,data:Be.data}}}finally{eval(code_execution_1.unwrap),_this.selected.setValue(1)}})()}generateFunctionCode(Be,m){var l;const i=null===(l=Be.operations.find(d=>d.name===m))||void 0===l?void 0:l.args;i&&(this.code=JSON.stringify(this.sdkgen.buildJsonObject(i),null,2))}}exports.SimpleCallComponent=SimpleCallComponent,SimpleCallComponent.\u0275fac=function Be(m){return new(m||SimpleCallComponent)(i0.\u0275\u0275directiveInject(i1.SdkgenService))},SimpleCallComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:SimpleCallComponent,selectors:[["app-simple-call"]],inputs:{fn:"fn"},decls:12,vars:7,consts:[["direction","vertical"],["animationDuration","0ms",3,"selectedIndex","selectedIndexChange"],["label","Requisi\xe7\xe3o"],["mat-fab","",1,"run-fab",3,"click"],[3,"options","ngModel","ngModelChange"],["label","Resposta",3,"disabled"],[3,"json"],[3,"size"],[3,"items"]],template:function Be(m,l){1&m&&(i0.\u0275\u0275elementStart(0,"as-split",0),i0.\u0275\u0275elementStart(1,"as-split-area"),i0.\u0275\u0275elementStart(2,"mat-tab-group",1),i0.\u0275\u0275listener("selectedIndexChange",function(d){return l.selected.setValue(d)}),i0.\u0275\u0275elementStart(3,"mat-tab",2),i0.\u0275\u0275elementStart(4,"button",3),i0.\u0275\u0275listener("click",function(){return l.run()}),i0.\u0275\u0275elementStart(5,"mat-icon"),i0.\u0275\u0275text(6,"play_arrow"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(7,"ngx-monaco-editor",4),i0.\u0275\u0275listener("ngModelChange",function(d){return l.code=d}),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(8,"mat-tab",5),i0.\u0275\u0275element(9,"ngx-json-viewer",6),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(10,"as-split-area",7),i0.\u0275\u0275element(11,"app-console",8),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementEnd()),2&m&&(i0.\u0275\u0275advance(2),i0.\u0275\u0275property("selectedIndex",l.selected.value),i0.\u0275\u0275advance(5),i0.\u0275\u0275property("options",l.editorOptions)("ngModel",l.code),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("disabled",!l.response),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("json",l.response),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("size",30),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("items",l.consoleItems))},directives:[i2.SplitComponent,i2.SplitAreaDirective,i3.MatTabGroup,i3.MatTab,i4.MatButton,i5.MatIcon,i6.MonacoEditorComponent,i7.NgControlStatus,i7.NgModel,i8.NgxJsonViewerComponent,i9.ConsoleComponent],styles:["[_nghost-%COMP%]{display:block;height:100%}mat-tab-group[_ngcontent-%COMP%]{height:100%}mat-tab-group[_ngcontent-%COMP%] .mat-tab-body-wrapper{height:100%}mat-tab-group[_ngcontent-%COMP%] .mat-tab-body-content{overflow-y:hidden!important}mat-tab-group[_ngcontent-%COMP%] ngx-monaco-editor[_ngcontent-%COMP%]{display:block;height:100%}"]})},4264:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";var _asyncToGenerator=__webpack_require__(8926).default;Object.defineProperty(exports,"__esModule",{value:!0}),exports.TabEditorComponent=void 0;const tslib_1=__webpack_require__(655),typescript_generator_1=__webpack_require__(2911),console_types_1=__webpack_require__(9972),code_execution_1=__webpack_require__(8227),i0=(0,tslib_1.__importStar)(__webpack_require__(5e3)),i1=(0,tslib_1.__importStar)(__webpack_require__(6395)),i2=(0,tslib_1.__importStar)(__webpack_require__(7423)),i3=(0,tslib_1.__importStar)(__webpack_require__(5245)),i4=(0,tslib_1.__importStar)(__webpack_require__(1430)),i5=(0,tslib_1.__importStar)(__webpack_require__(107)),i6=(0,tslib_1.__importStar)(__webpack_require__(3075)),i7=(0,tslib_1.__importStar)(__webpack_require__(8495));class TabEditorComponent{constructor(Be){this.sdkgen=Be,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(Be=>{if(!Be)return;const m=`${this.patchBrowserClientSource((0,typescript_generator_1.generateBrowserClientSource)(Be.astRoot))}\n\ndeclare const client: sdkgen.ApiClient;\n\n`;this.client=this.sdkgen.getSdkgenClient(Be.url,Be.astJson),monaco.languages.typescript.typescriptDefaults.getCompilerOptions().target=monaco.languages.typescript.ScriptTarget.ESNext,monaco.languages.typescript.typescriptDefaults.getCompilerOptions().module=monaco.languages.typescript.ModuleKind.ESNext,monaco.languages.typescript.typescriptDefaults.getDiagnosticsOptions().diagnosticCodesToIgnore=[1375];const l=monaco.editor.getModels().find(d=>d.uri.toString().endsWith("client.d.ts"));l?l.setValue(m):monaco.editor.createModel(m,"typescript",monaco.Uri.parse("ts:filename/client.d.ts"));const[i]=Be.astRoot.operations;this.code=this.sdkgen.getTypeScriptCode(i.name,this.sdkgen.buildJsonObject(i.args))})}ngOnDestroy(){var Be;null===(Be=this.state$)||void 0===Be||Be.unsubscribe()}patchBrowserClientSource(Be){return`declare namespace sdkgen {\n${Be.substring(95,Be.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(Be){_this.consoleItems.push({type:console_types_1.ConsoleItemType.ERROR,message:Be.toString()})}})()}}exports.TabEditorComponent=TabEditorComponent,TabEditorComponent.\u0275fac=function Be(m){return new(m||TabEditorComponent)(i0.\u0275\u0275directiveInject(i1.SdkgenService))},TabEditorComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:TabEditorComponent,selectors:[["app-tab-editor"]],decls:8,vars:4,consts:[["mat-fab","",1,"run-fab",3,"click"],["direction","vertical"],[1,"o-hidden"],[3,"options","ngModel","ngModelChange"],[3,"size"],[3,"items"]],template:function Be(m,l){1&m&&(i0.\u0275\u0275elementStart(0,"button",0),i0.\u0275\u0275listener("click",function(){return l.run()}),i0.\u0275\u0275elementStart(1,"mat-icon"),i0.\u0275\u0275text(2,"play_arrow"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(3,"as-split",1),i0.\u0275\u0275elementStart(4,"as-split-area",2),i0.\u0275\u0275elementStart(5,"ngx-monaco-editor",3),i0.\u0275\u0275listener("ngModelChange",function(d){return l.code=d}),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(6,"as-split-area",4),i0.\u0275\u0275element(7,"app-console",5),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementEnd()),2&m&&(i0.\u0275\u0275advance(5),i0.\u0275\u0275property("options",l.editorOptions)("ngModel",l.code),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("size",30),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("items",l.consoleItems))},directives:[i2.MatButton,i3.MatIcon,i4.SplitComponent,i4.SplitAreaDirective,i5.MonacoEditorComponent,i6.NgControlStatus,i6.NgModel,i7.ConsoleComponent],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;height:calc(100% - 4px);margin-top:4px} .scroll-decoration{display:none}.o-hidden[_ngcontent-%COMP%]{overflow:hidden!important}"]})},5585:(Be,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.TabHomeComponent=void 0;const i=l(655),d=l(5e3),_=l(9435),u=l(5281),s=(0,i.__importStar)(l(5e3)),v=(0,i.__importStar)(l(6395)),C=(0,i.__importStar)(l(8966)),D=(0,i.__importStar)(l(7120)),p=(0,i.__importStar)(l(1430)),y=(0,i.__importStar)(l(3075)),I=(0,i.__importStar)(l(9808)),O=(0,i.__importStar)(l(7238)),w=(0,i.__importStar)(l(7423)),k=(0,i.__importStar)(l(5245)),V=(0,i.__importStar)(l(3251)),ue=(0,i.__importStar)(l(107)),$=(0,i.__importStar)(l(9417)),ne=(0,i.__importStar)(l(2075)),De=(0,i.__importStar)(l(4211));function fe(dt,Ze){if(1&dt&&(s.\u0275\u0275elementStart(0,"span",8),s.\u0275\u0275text(1),s.\u0275\u0275elementEnd()),2&dt){const N=s.\u0275\u0275nextContext().$implicit;s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(N.description)}}const _e=function(dt){return{active:dt}};function le(dt,Ze){if(1&dt){const N=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"li",5),s.\u0275\u0275listener("click",function(){const se=s.\u0275\u0275restoreView(N).$implicit;return s.\u0275\u0275nextContext().selectedFunction=se}),s.\u0275\u0275elementStart(1,"span",6),s.\u0275\u0275text(2),s.\u0275\u0275elementEnd(),s.\u0275\u0275template(3,fe,2,1,"span",7),s.\u0275\u0275elementEnd()}if(2&dt){const N=Ze.$implicit,ie=s.\u0275\u0275nextContext();s.\u0275\u0275property("ngClass",s.\u0275\u0275pureFunction1(3,_e,(null==ie.selectedFunction?null:ie.selectedFunction.name)===N.name)),s.\u0275\u0275advance(2),s.\u0275\u0275textInterpolate(N.name),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngIf",N.description)}}function Se(dt,Ze){1&dt&&s.\u0275\u0275element(0,"span")}function Le(dt,Ze){if(1&dt){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 se=s.\u0275\u0275restoreView(N).$implicit;return s.\u0275\u0275nextContext(2).showDocumentation(se.rawType)}),s.\u0275\u0275text(9),s.\u0275\u0275elementEnd(),s.\u0275\u0275template(10,Se,1,0,"span",38),s.\u0275\u0275elementEnd()}if(2&dt){const N=Ze.$implicit,ie=Ze.index;s.\u0275\u0275nextContext();const Oe=s.\u0275\u0275reference(18),se=s.\u0275\u0275reference(20),Ce=s.\u0275\u0275nextContext();s.\u0275\u0275advance(4),s.\u0275\u0275textInterpolate(N.name),s.\u0275\u0275advance(4),s.\u0275\u0275property("matTooltip",Ce.getTooltip(N.rawType)),s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(N.type),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngIf",ie!=Ce.selectedFunction.args.length-1)("ngIfThen",Oe)("ngIfElse",se)}}function Xe(dt,Ze){1&dt&&s.\u0275\u0275text(0,",")}function lt(dt,Ze){1&dt&&s.\u0275\u0275element(0,"br")}function X(dt,Ze){if(1&dt){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&dt){const N=s.\u0275\u0275nextContext().$implicit,ie=s.\u0275\u0275nextContext(3);s.\u0275\u0275property("matTooltip",ie.getTooltip(N.dataType)),s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate1("(",N.dataType.name,")")}}function me(dt,Ze){if(1&dt&&(s.\u0275\u0275elementStart(0,"mat-chip",42),s.\u0275\u0275elementStart(1,"span",28),s.\u0275\u0275text(2),s.\u0275\u0275elementEnd(),s.\u0275\u0275element(3,"i"),s.\u0275\u0275elementStart(4,"span",28),s.\u0275\u0275text(5),s.\u0275\u0275template(6,X,2,2,"u",43),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd()),2&dt){const N=Ze.$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 K(dt,Ze){if(1&dt&&(s.\u0275\u0275elementStart(0,"section",39),s.\u0275\u0275elementStart(1,"mat-chip-list",40),s.\u0275\u0275template(2,me,7,4,"mat-chip",41),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd()),2&dt){const 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 oe(dt,Ze){if(1&dt&&(s.\u0275\u0275elementStart(0,"p"),s.\u0275\u0275text(1),s.\u0275\u0275elementEnd()),2&dt){const N=s.\u0275\u0275nextContext(2);s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(N.selectedFunction.description)}}function ke(dt,Ze){1&dt&&(s.\u0275\u0275elementStart(0,"p",44),s.\u0275\u0275text(1,"N\xe3o h\xe1 descri\xe7\xe3o para esta fun\xe7\xe3o."),s.\u0275\u0275elementEnd())}function de(dt,Ze){1&dt&&(s.\u0275\u0275elementStart(0,"p",44),s.\u0275\u0275text(1,"Esta fun\xe7\xe3o n\xe3o possui argumentos."),s.\u0275\u0275elementEnd())}function Ue(dt,Ze){1&dt&&(s.\u0275\u0275elementStart(0,"th",54),s.\u0275\u0275text(1,"Nome"),s.\u0275\u0275elementEnd())}function pe(dt,Ze){if(1&dt&&(s.\u0275\u0275elementStart(0,"td",55),s.\u0275\u0275text(1),s.\u0275\u0275elementEnd()),2&dt){const N=Ze.$implicit;s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(N.name)}}function qe(dt,Ze){1&dt&&(s.\u0275\u0275elementStart(0,"th",54),s.\u0275\u0275text(1,"Tipo"),s.\u0275\u0275elementEnd())}function Me(dt,Ze){if(1&dt){const N=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"td",55),s.\u0275\u0275elementStart(1,"u",29),s.\u0275\u0275listener("click",function(){const se=s.\u0275\u0275restoreView(N).$implicit;return s.\u0275\u0275nextContext(3).showDocumentation(se.rawType)}),s.\u0275\u0275text(2),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd()}if(2&dt){const N=Ze.$implicit,ie=s.\u0275\u0275nextContext(3);s.\u0275\u0275advance(1),s.\u0275\u0275property("matTooltip",ie.getTooltip(N.rawType)),s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(N.type)}}function Ge(dt,Ze){1&dt&&(s.\u0275\u0275elementStart(0,"th",54),s.\u0275\u0275text(1,"Descri\xe7\xe3o"),s.\u0275\u0275elementEnd())}function vt(dt,Ze){if(1&dt&&(s.\u0275\u0275elementStart(0,"td",56),s.\u0275\u0275text(1),s.\u0275\u0275elementEnd()),2&dt){const N=Ze.$implicit;s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(N.description||"-")}}function St(dt,Ze){1&dt&&s.\u0275\u0275element(0,"tr",57)}function Re(dt,Ze){1&dt&&s.\u0275\u0275element(0,"tr",58)}function et(dt,Ze){if(1&dt&&(s.\u0275\u0275elementStart(0,"table",45),s.\u0275\u0275elementContainerStart(1,46),s.\u0275\u0275template(2,Ue,2,0,"th",47),s.\u0275\u0275template(3,pe,2,1,"td",48),s.\u0275\u0275elementContainerEnd(),s.\u0275\u0275elementContainerStart(4,49),s.\u0275\u0275template(5,qe,2,0,"th",47),s.\u0275\u0275template(6,Me,3,2,"td",48),s.\u0275\u0275elementContainerEnd(),s.\u0275\u0275elementContainerStart(7,50),s.\u0275\u0275template(8,Ge,2,0,"th",47),s.\u0275\u0275template(9,vt,2,1,"td",51),s.\u0275\u0275elementContainerEnd(),s.\u0275\u0275template(10,St,1,0,"tr",52),s.\u0275\u0275template(11,Re,1,0,"tr",53),s.\u0275\u0275elementEnd()),2&dt){const 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 Y(dt,Ze){1&dt&&(s.\u0275\u0275elementStart(0,"span",59),s.\u0275\u0275text(1,"Dart"),s.\u0275\u0275elementEnd())}function he(dt,Ze){1&dt&&(s.\u0275\u0275elementStart(0,"span",59),s.\u0275\u0275text(1,"Swift"),s.\u0275\u0275elementEnd())}const Ee=function(){return{theme:"vs-dark",language:"javascript"}},Ae=function(){return{theme:"vs-dark",language:"kotlin"}},ge=function(){return{theme:"vs-dark",language:"dart"}},Je=function(){return{theme:"vs-dark",language:"swift"}};function pt(dt,Ze){if(1&dt){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,Le,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,Xe,1,0,"ng-template",null,16,s.\u0275\u0275templateRefExtractor),s.\u0275\u0275template(19,lt,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,K,3,2,"section",19),s.\u0275\u0275elementStart(27,"section",9),s.\u0275\u0275elementStart(28,"h2",20),s.\u0275\u0275text(29,"Descri\xe7\xe3o"),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(30,"div",21),s.\u0275\u0275template(31,oe,2,1,"p",22),s.\u0275\u0275template(32,ke,2,0,"p",23),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(33,"h2",24),s.\u0275\u0275text(34,"Par\xe2metros"),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(35,"div",21),s.\u0275\u0275template(36,de,2,0,"p",23),s.\u0275\u0275elementStart(37,"div",25),s.\u0275\u0275template(38,et,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,Y,2,0,"ng-template",36),s.\u0275\u0275element(54,"ngx-monaco-editor",33),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(55,"mat-tab",35),s.\u0275\u0275template(56,he,2,0,"ng-template",36),s.\u0275\u0275element(57,"ngx-monaco-editor",33),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd()}if(2&dt){const 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,Ee))("ngModel",N.selectedFunction.examples.typeScript),s.\u0275\u0275advance(2),s.\u0275\u0275property("options",s.\u0275\u0275pureFunction0(21,Ae))("ngModel",N.selectedFunction.examples.kotlin),s.\u0275\u0275advance(3),s.\u0275\u0275property("options",s.\u0275\u0275pureFunction0(22,ge))("ngModel",N.selectedFunction.examples.dart),s.\u0275\u0275advance(3),s.\u0275\u0275property("options",s.\u0275\u0275pureFunction0(23,Je))("ngModel",N.selectedFunction.examples.swift)}}const Tt=function(){return{standalone:!0}};class Rt{constructor(Ze,N,ie){this.sdkgen=Ze,this.dialog=N,this.responsive=ie,this.isBelowMd=!1,this.runFunction=new d.EventEmitter,this.searchText="",this.argumentsTableColumns=["name","type","description"],this.editorOptions={theme:"vs-dark",language:"javascript"}}ngOnInit(){this.state$=this.sdkgen.state$.subscribe(Ze=>{!Ze||(this.selectedFunction=void 0,this.fnTable=Ze.astRoot.operations.sort((N,ie)=>N.name.localeCompare(ie.name)).map(N=>{var ie,Oe,se;const Ce=Ze.astJson.annotations[`fn.${N.name}`],ye=this.sdkgen.buildJsonObject(N.args);return(null==Ce?void 0:Ce.find(re=>"hidden"===re.type))?null:{name:N.name,description:null===(ie=null==Ce?void 0:Ce.find(re=>"description"===re.type))||void 0===ie?void 0:ie.value,args:N.args.map(({name:re,type:be})=>{var Ye,it,mt;return{name:re,description:null===(mt=[...null!==(Ye=Ze.astJson.annotations[`type.${be}.${re}`])&&void 0!==Ye?Ye:[],...null!==(it=Ze.astJson.annotations[`fn.${N.name}.${re}`])&&void 0!==it?it:[]].find(It=>"description"===It.type))||void 0===mt?void 0:mt.value,type:be.name,rawType:be}}),argsStr:N.args.map(re=>`${re.name}: ${re.type.name}`).join(", "),argsFields:N.args,returns:{type:N.returnType.name,rawType:N.returnType},labels:null!==(Oe=null==Ce?void 0:Ce.filter(re=>["rest","throws"].includes(re.type)).map(re=>{var be;return"rest"===re.type?{name:"REST",type:`${re.value.method} ${re.value.path}`}:"throws"===re.type?{name:"THROWS",type:re.value,dataType:null===(be=Ze.astRoot.errors.find(Ye=>Ye.name===re.value))||void 0===be?void 0:be.dataType}:{name:"?",type:"?"}}))&&void 0!==Oe?Oe:[],throws:null===(se=null==Ce?void 0:Ce.find(re=>"throws"===re.type))||void 0===se?void 0:se.value,examples:{typeScript:this.sdkgen.getTypeScriptCode(N.name,ye),kotlin:this.sdkgen.getKotlinCode(N.name,N.args),dart:this.sdkgen.getDartCode(N.name,ye),swift:this.sdkgen.getSwiftCode(N.name,ye)}}}).filter(N=>Boolean(N)))})}ngOnDestroy(){var Ze,N;null===(Ze=this.state$)||void 0===Ze||Ze.unsubscribe(),null===(N=this.responsive$)||void 0===N||N.unsubscribe()}ngAfterViewInit(){this.responsive$=this.responsive.isBelowMd().subscribe(Ze=>{this.isBelowMd=Ze.matches})}addSimpleCallTab(){var Ze;this.runFunction.emit(null===(Ze=this.selectedFunction)||void 0===Ze?void 0:Ze.name)}getTooltip(Ze){return(0,_.getTypeDoc)(Ze).shortDescription}showDocumentation(Ze){this.dialog.open(u.TypeDetailsComponent,{position:{right:"0",top:"0",bottom:"0"},data:{type:Ze},height:"100vh",panelClass:["dialog-no-border-radius","dialog-responsive"]})}}m.TabHomeComponent=Rt,Rt.\u0275fac=function(Ze){return new(Ze||Rt)(s.\u0275\u0275directiveInject(v.SdkgenService),s.\u0275\u0275directiveInject(C.MatDialog),s.\u0275\u0275directiveInject(D.ResponsiveService))},Rt.\u0275cmp=s.\u0275\u0275defineComponent({type:Rt,selectors:[["app-tab-home"]],outputs:{runFunction:"runFunction"},decls:11,vars:10,consts:[["unit","pixel",3,"direction"],[3,"size"],["type","search","placeholder","Buscar\u2026",3,"ngModel","ngModelOptions","ngModelChange"],[3,"ngClass","click",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"ngClass","click"],[1,"fn-call"],["class","fn-description",4,"ngIf"],[1,"fn-description"],[1,"container"],[1,"mono","hide-overflow"],[1,"k-fn"],[1,"k-name"],[4,"ngFor","ngForOf"],[1,"k-sym"],[1,"k-type",3,"matTooltip","click"],["comma",""],["lineBreak",""],["mat-raised-button","","color","primary",3,"click"],["class","container","id","labels",4,"ngIf"],["id","description"],[3,"ngSwitch"],[4,"ngSwitchCase"],["class","no-content",4,"ngSwitchCase"],["id","parameters"],[1,"table-responsive","mat-elevation-z8"],["mat-table","",3,"dataSource",4,"ngSwitchDefault"],["id","returns"],[1,"mono"],[3,"matTooltip","click"],["id","sample-calls"],["animationDuration","0ms"],["label","TypeScript"],[3,"options","ngModel"],["label","Kotlin"],["disabled",""],["mat-tab-label",""],[1,"k-arg-name"],[4,"ngIf","ngIfThen","ngIfElse"],["id","labels",1,"container"],[3,"selectable"],["color","primary",3,"disableRipple",4,"ngFor","ngForOf"],["color","primary",3,"disableRipple"],[3,"matTooltip","click",4,"ngIf"],[1,"no-content"],["mat-table","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["class","mono","mat-cell","",4,"matCellDef"],["matColumnDef","type"],["matColumnDef","description"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"mono"],["mat-cell",""],["mat-header-row",""],["mat-row",""],["matTooltip","Em breve!"]],template:function(Ze,N){1&Ze&&(s.\u0275\u0275elementStart(0,"as-split",0),s.\u0275\u0275elementStart(1,"as-split-area",1),s.\u0275\u0275elementStart(2,"aside"),s.\u0275\u0275elementStart(3,"nav"),s.\u0275\u0275elementStart(4,"form"),s.\u0275\u0275elementStart(5,"input",2),s.\u0275\u0275listener("ngModelChange",function(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,pt,58,24,"article",4),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd()),2&Ze&&(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,Tt)),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:[p.SplitComponent,p.SplitAreaDirective,y.\u0275NgNoValidate,y.NgControlStatusGroup,y.NgForm,y.DefaultValueAccessor,y.NgControlStatus,y.NgModel,I.NgForOf,I.NgIf,I.NgClass,O.MatTooltip,w.MatButton,k.MatIcon,I.NgSwitch,I.NgSwitchCase,I.NgSwitchDefault,V.MatTabGroup,V.MatTab,ue.MonacoEditorComponent,V.MatTabLabel,$.MatChipList,$.MatChip,ne.MatTable,ne.MatColumnDef,ne.MatHeaderCellDef,ne.MatCellDef,ne.MatHeaderRowDef,ne.MatRowDef,ne.MatHeaderCell,ne.MatCell,ne.MatHeaderRow,ne.MatRow],pipes:[De.FilterPipe],styles:["[_nghost-%COMP%]{display:block;width:100%;height:100%;overflow:hidden!important}aside[_ngcontent-%COMP%]{display:block;background:#2b2b2b;height:100%;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin}nav[_ngcontent-%COMP%]{display:block;width:100%}nav[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{display:block;width:100%;padding:10px;background:#2b2b2b;border-bottom:1px solid #444444;position:sticky;top:0;left:0;right:0;z-index:2}nav[_ngcontent-%COMP%] form[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{display:block;background:#444444;border:0 none;color:#fff;width:100%;padding:5px}nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:0;padding:0;list-style:none}nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{width:100%;padding:15px 10px;border-bottom:1px solid #444444;cursor:pointer}nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]{background-color:#0003}nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{background-color:#0000004d}nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;word-break:break-all}nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] span.fn-call[_ngcontent-%COMP%]{font-family:Roboto Mono,monospace}nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] span.fn-description[_ngcontent-%COMP%]{color:#777;font-size:.9rem;margin-top:5px}u[_ngcontent-%COMP%]{-webkit-text-decoration-style:dotted;text-decoration-style:dotted;cursor:pointer;font-family:Roboto Mono,monospace}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{background-color:#2b2b2b;padding:25px 20px;width:100%;position:sticky;top:0;left:0;right:0;z-index:3}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{display:flex;margin:0 auto;font-weight:300;line-height:36px;white-space:pre}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] span.hide-overflow[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] s[_ngcontent-%COMP%]{flex-grow:1}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] .k-fn[_ngcontent-%COMP%]{color:#c586c0}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] .k-name[_ngcontent-%COMP%]{color:#dcdcaa}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] .k-arg-name[_ngcontent-%COMP%]{color:#9cdcfe}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] .k-sym[_ngcontent-%COMP%]{color:#d4d4d4}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] .k-type[_ngcontent-%COMP%]{color:#569cd6}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{min-width:130px;align-self:center}article[_ngcontent-%COMP%] section[_ngcontent-%COMP%]{display:block;padding:0 20px 15px}article[_ngcontent-%COMP%] section#labels[_ngcontent-%COMP%]{padding:20px 20px 0}article[_ngcontent-%COMP%] section#labels[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{overflow:hidden}article[_ngcontent-%COMP%] section#labels[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]:focus{outline:none}article[_ngcontent-%COMP%] section#labels[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{display:block;width:1.3px;background:#FFF;margin:0 7.5px;border-radius:5px;height:calc(100% + 14px)}article[_ngcontent-%COMP%] section[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-weight:300;margin-top:40px;text-transform:uppercase}article[_ngcontent-%COMP%] section[_ngcontent-%COMP%] .no-content[_ngcontent-%COMP%]{background-color:#383838;color:#fafafa;display:inline-block;padding:15px;border-radius:5px;margin-top:0}article[_ngcontent-%COMP%] section[_ngcontent-%COMP%] table[_ngcontent-%COMP%], article[_ngcontent-%COMP%] section[_ngcontent-%COMP%] .table-responsive[_ngcontent-%COMP%], article[_ngcontent-%COMP%] section[_ngcontent-%COMP%] mat-tab-group[_ngcontent-%COMP%]{width:100%;max-width:720px}article[_ngcontent-%COMP%] section[_ngcontent-%COMP%] .mat-tab-body-content{overflow-y:hidden}article[_ngcontent-%COMP%] section[_ngcontent-%COMP%] ngx-monaco-editor[_ngcontent-%COMP%]{display:block;height:100%;min-height:300px}"]})},2253:(Be,m,l)=>{"use strict";var i=l(8926).default;Object.defineProperty(m,"__esModule",{value:!0}),m.TabNavComponent=void 0;const d=l(655),_=l(3075),u=l(6676),s=(0,d.__importStar)(l(5e3)),v=(0,d.__importStar)(l(6395)),C=(0,d.__importStar)(l(2290)),D=(0,d.__importStar)(l(3075)),p=(0,d.__importStar)(l(9808)),y=(0,d.__importStar)(l(5245));function I(k,V){1&k&&(s.\u0275\u0275elementContainerStart(0),s.\u0275\u0275elementStart(1,"mat-icon",5),s.\u0275\u0275text(2,"loop"),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementContainerEnd())}function O(k,V){1&k&&(s.\u0275\u0275elementContainerStart(0),s.\u0275\u0275elementStart(1,"mat-icon"),s.\u0275\u0275text(2,"arrow_forward"),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementContainerEnd())}class w{constructor(V,ue){this.sdkgen=V,this.toastr=ue,this.loading=!1,this.url=new _.FormControl("")}ngOnInit(){fetch("/ast.json").then(V=>{V.ok&&this.url.setValue(`${window.location.protocol}://${window.location.hostname}`)}).catch(()=>{})}loadUrl(V){var ue=this;return i(function*(){V.preventDefault();try{ue.loading=!0,/^https?:\/\//.test(ue.url.value)||ue.url.setValue(`https://${ue.url.value}`);const $=new URL(ue.url.value);$.pathname+=(/\/$/u.test($.pathname)?"":"/")+"ast.json";const ne=$.toString();console.debug("astUrl",ne);const De=yield fetch(ne).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),ue.sdkgen.state$.next({astJson:De,astRoot:(0,u.jsonToAst)(De),url:ue.url.value})}catch($){ue.toastr.error($ instanceof Error?$.message:JSON.stringify($),"Erro ao carregar AST",{positionClass:"toast-bottom-right"})}finally{ue.loading=!1}})()}}m.TabNavComponent=w,w.\u0275fac=function(V){return new(V||w)(s.\u0275\u0275directiveInject(v.SdkgenService),s.\u0275\u0275directiveInject(C.ToastrService))},w.\u0275cmp=s.\u0275\u0275defineComponent({type:w,selectors:[["app-tab-nav"]],decls:6,vars:6,consts:[["src","assets/polvinho.png"],[3,"submit"],["placeholder","Digite uma URL aqui para conectar",3,"formControl","readonly"],["type","submit",3,"disabled","ngSwitch"],[4,"ngSwitchCase"],[1,"loader"]],template:function(V,ue){1&V&&(s.\u0275\u0275element(0,"img",0),s.\u0275\u0275elementStart(1,"form",1),s.\u0275\u0275listener("submit",function(ne){return ue.loadUrl(ne)}),s.\u0275\u0275element(2,"input",2),s.\u0275\u0275elementStart(3,"button",3),s.\u0275\u0275template(4,I,3,0,"ng-container",4),s.\u0275\u0275template(5,O,3,0,"ng-container",4),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd()),2&V&&(s.\u0275\u0275advance(2),s.\u0275\u0275property("formControl",ue.url)("readonly",ue.loading),s.\u0275\u0275advance(1),s.\u0275\u0275property("disabled",ue.loading)("ngSwitch",ue.loading),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngSwitchCase",!0),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngSwitchCase",!1))},directives:[D.\u0275NgNoValidate,D.NgControlStatusGroup,D.NgForm,D.DefaultValueAccessor,D.NgControlStatus,D.FormControlDirective,p.NgSwitch,p.NgSwitchCase,y.MatIcon],styles:["[_nghost-%COMP%]{display:flex;height:42px;background-color:#2b2b2b;box-shadow:0 0 3px #00000080}img[_ngcontent-%COMP%]{padding:5px}form[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-grow:1;box-shadow:0 0 1px #00000080;background:#383838;border:0 none;border-radius:5px;margin:5px 10vw 5px calc(10vw - 42px);overflow:hidden}form[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{flex-grow:1;padding:10px 5px;background:transparent;border:0 none;text-align:center;color:#ccc}form[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:none}form[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background:transparent;color:#bfbfbf;border:0 none}form[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:#0003}form[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%]{animation:spin 2s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]})},5281:(Be,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.TypeDetailsComponent=void 0;const i=l(655),d=l(8966),_=l(9435),u=(0,i.__importStar)(l(5e3)),s=(0,i.__importStar)(l(8966)),v=(0,i.__importStar)(l(9808)),C=(0,i.__importStar)(l(9417)),D=(0,i.__importStar)(l(7423)),p=(0,i.__importStar)(l(5245)),y=(0,i.__importStar)(l(2075)),I=(0,i.__importStar)(l(7238));function O(me,K){1&me&&(u.\u0275\u0275elementStart(0,"button",6),u.\u0275\u0275elementStart(1,"mat-icon"),u.\u0275\u0275text(2,"arrow_back"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd())}function w(me,K){if(1&me&&(u.\u0275\u0275elementStart(0,"mat-chip",7),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&me){const oe=K.$implicit;u.\u0275\u0275property("disableRipple",!0),u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate(oe)}}function k(me,K){1&me&&(u.\u0275\u0275elementStart(0,"button",8),u.\u0275\u0275elementStart(1,"mat-icon"),u.\u0275\u0275text(2,"close"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd())}function V(me,K){1&me&&(u.\u0275\u0275elementStart(0,"th",19),u.\u0275\u0275text(1,"Nome"),u.\u0275\u0275elementEnd())}function ue(me,K){if(1&me&&(u.\u0275\u0275elementStart(0,"td",20),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&me){const oe=K.$implicit;u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate(oe.name)}}function $(me,K){1&me&&(u.\u0275\u0275elementStart(0,"th",19),u.\u0275\u0275text(1,"Tipo"),u.\u0275\u0275elementEnd())}function ne(me,K){if(1&me){const oe=u.\u0275\u0275getCurrentView();u.\u0275\u0275elementStart(0,"td",20),u.\u0275\u0275elementStart(1,"u",21),u.\u0275\u0275listener("click",function(){const Ue=u.\u0275\u0275restoreView(oe).$implicit;return u.\u0275\u0275nextContext(2).showDocumentation(Ue.type)}),u.\u0275\u0275text(2),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd()}if(2&me){const oe=K.$implicit,ke=u.\u0275\u0275nextContext(2);u.\u0275\u0275advance(1),u.\u0275\u0275property("matTooltip",ke.getTooltip(oe.type)),u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate(oe.type.name)}}function De(me,K){1&me&&(u.\u0275\u0275elementStart(0,"th",19),u.\u0275\u0275text(1,"Descri\xe7\xe3o"),u.\u0275\u0275elementEnd())}function fe(me,K){if(1&me&&(u.\u0275\u0275elementStart(0,"td",22),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&me){const oe=K.$implicit;u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate(oe.description||"-")}}function _e(me,K){1&me&&u.\u0275\u0275element(0,"tr",23)}function le(me,K){1&me&&u.\u0275\u0275element(0,"tr",24)}const Se=function(){return[]};function Le(me,K){if(1&me&&(u.\u0275\u0275elementStart(0,"section"),u.\u0275\u0275elementStart(1,"div",9),u.\u0275\u0275elementStart(2,"table",10),u.\u0275\u0275elementContainerStart(3,11),u.\u0275\u0275template(4,V,2,0,"th",12),u.\u0275\u0275template(5,ue,2,1,"td",13),u.\u0275\u0275elementContainerEnd(),u.\u0275\u0275elementContainerStart(6,14),u.\u0275\u0275template(7,$,2,0,"th",12),u.\u0275\u0275template(8,ne,3,2,"td",13),u.\u0275\u0275elementContainerEnd(),u.\u0275\u0275elementContainerStart(9,15),u.\u0275\u0275template(10,De,2,0,"th",12),u.\u0275\u0275template(11,fe,2,1,"td",16),u.\u0275\u0275elementContainerEnd(),u.\u0275\u0275template(12,_e,1,0,"tr",17),u.\u0275\u0275template(13,le,1,0,"tr",18),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd()),2&me){const oe=u.\u0275\u0275nextContext();let ke;u.\u0275\u0275advance(2),u.\u0275\u0275property("dataSource",null!==(ke=null==oe.typeDoc?null:oe.typeDoc.structFields)&&void 0!==ke?ke:u.\u0275\u0275pureFunction0(3,Se)),u.\u0275\u0275advance(10),u.\u0275\u0275property("matHeaderRowDef",oe.argumentsTableColumns),u.\u0275\u0275advance(1),u.\u0275\u0275property("matRowDefColumns",oe.argumentsTableColumns)}}function Xe(me,K){if(1&me&&(u.\u0275\u0275elementStart(0,"li"),u.\u0275\u0275elementStart(1,"code",1),u.\u0275\u0275text(2),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd()),2&me){const oe=K.$implicit;u.\u0275\u0275advance(2),u.\u0275\u0275textInterpolate(oe)}}function lt(me,K){if(1&me&&(u.\u0275\u0275elementStart(0,"section"),u.\u0275\u0275elementStart(1,"h3"),u.\u0275\u0275text(2),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(3,"ul"),u.\u0275\u0275template(4,Xe,3,1,"li",25),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd()),2&me){const oe=u.\u0275\u0275nextContext();u.\u0275\u0275advance(2),u.\u0275\u0275textInterpolate(null!=oe.typeDoc&&oe.typeDoc.isEnum?"Valores":"Exemplos"),u.\u0275\u0275advance(2),u.\u0275\u0275property("ngForOf",null==oe.typeDoc?null:oe.typeDoc.examples)}}class X{constructor(K,oe,ke){this.dialogRef=K,this.data=oe,this.dialog=ke,this.labels=[],this.argumentsTableColumns=["name","type","description"]}ngOnInit(){this.labels=(0,_.getTypeLabels)(this.data.type),this.typeDoc=(0,_.getTypeDoc)(this.data.type)}getTooltip(K){return(0,_.getTypeDoc)(K).shortDescription}showDocumentation(K){this.dialog.open(X,{position:{right:"0"},data:{type:K,subdialog:!0},height:"100vh",panelClass:["dialog-no-border-radius","dialog-responsive"]})}}m.TypeDetailsComponent=X,X.\u0275fac=function(K){return new(K||X)(u.\u0275\u0275directiveInject(s.MatDialogRef),u.\u0275\u0275directiveInject(d.MAT_DIALOG_DATA),u.\u0275\u0275directiveInject(s.MatDialog))},X.\u0275cmp=u.\u0275\u0275defineComponent({type:X,selectors:[["app-type-details"]],decls:11,vars:8,consts:[["class","back-button","mat-icon-button","","mat-dialog-close","",4,"ngIf"],[1,"mono"],[3,"selectable"],["color","primary",3,"disableRipple",4,"ngFor","ngForOf"],["class","close-button","mat-icon-button","","mat-dialog-close","",4,"ngIf"],[4,"ngIf"],["mat-icon-button","","mat-dialog-close","",1,"back-button"],["color","primary",3,"disableRipple"],["mat-icon-button","","mat-dialog-close","",1,"close-button"],[1,"table-responsive","mat-elevation-z8"],["mat-table","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["class","mono","mat-cell","",4,"matCellDef"],["matColumnDef","type"],["matColumnDef","description"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"mono"],[3,"matTooltip","click"],["mat-cell",""],["mat-header-row",""],["mat-row",""],[4,"ngFor","ngForOf"]],template:function(K,oe){1&K&&(u.\u0275\u0275elementStart(0,"h1"),u.\u0275\u0275template(1,O,3,0,"button",0),u.\u0275\u0275elementStart(2,"span",1),u.\u0275\u0275text(3),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(4,"mat-chip-list",2),u.\u0275\u0275template(5,w,2,2,"mat-chip",3),u.\u0275\u0275elementEnd(),u.\u0275\u0275template(6,k,3,0,"button",4),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(7,"p"),u.\u0275\u0275text(8),u.\u0275\u0275elementEnd(),u.\u0275\u0275template(9,Le,14,4,"section",5),u.\u0275\u0275template(10,lt,5,2,"section",5)),2&K&&(u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",oe.data.subdialog),u.\u0275\u0275advance(2),u.\u0275\u0275textInterpolate(oe.data.type.name),u.\u0275\u0275advance(1),u.\u0275\u0275property("selectable",!1),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngForOf",oe.labels),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",!oe.data.subdialog),u.\u0275\u0275advance(2),u.\u0275\u0275textInterpolate(null==oe.typeDoc?null:oe.typeDoc.longDescription),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",(null==oe.typeDoc?null:oe.typeDoc.isStruct)&&(null==oe.typeDoc?null:oe.typeDoc.structFields)),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",null==oe.typeDoc||null==oe.typeDoc.examples?null:oe.typeDoc.examples.length))},directives:[v.NgIf,C.MatChipList,v.NgForOf,D.MatButton,s.MatDialogClose,p.MatIcon,C.MatChip,y.MatTable,y.MatColumnDef,y.MatHeaderCellDef,y.MatCellDef,y.MatHeaderRowDef,y.MatRowDef,y.MatHeaderCell,y.MatCell,I.MatTooltip,y.MatHeaderRow,y.MatRow],styles:["h1[_ngcontent-%COMP%]{font-weight:200;word-break:break-all;word-wrap:break-word}h1[_ngcontent-%COMP%] mat-chip-list[_ngcontent-%COMP%]{display:inline-block;margin-left:10px;-webkit-user-select:none;user-select:none}h1[_ngcontent-%COMP%] mat-chip-list[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{text-transform:uppercase}h1[_ngcontent-%COMP%] mat-chip-list[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]:focus{outline:none}h1[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{vertical-align:middle}h1[_ngcontent-%COMP%] button.back-button[_ngcontent-%COMP%]{margin-right:10px}h1[_ngcontent-%COMP%] button.close-button[_ngcontent-%COMP%]{float:right}p[_ngcontent-%COMP%]{line-height:1.5rem}section[_ngcontent-%COMP%]{margin-top:2rem}h3[_ngcontent-%COMP%]{font-weight:200;text-transform:uppercase}ul[_ngcontent-%COMP%]{padding-left:2rem}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{line-height:2rem;list-style:square}code[_ngcontent-%COMP%]{padding:.2rem .4rem;font-size:.875em;color:#fff;background-color:#212529;border-radius:.2rem;white-space:pre-wrap;word-break:break-all;word-wrap:break-word}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] u[_ngcontent-%COMP%]{-webkit-text-decoration-style:dotted;text-decoration-style:dotted;cursor:pointer}"]})},8227:(Be,m)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.unwrap=m.wrapper=void 0,m.wrapper='\n window.___originalXmlHttpRequestOpen = XMLHttpRequest.prototype.open;\n XMLHttpRequest.prototype.open = function() {\n const event = { type: "network", message: `XHR: ${Array.prototype.join.call(arguments, " ")}` };\n events.push(event);\n\n const send = this.send;\n this.send = function() {\n try {\n event.details = { req: JSON.parse(arguments[0]) };\n } catch (e) {\n event.details = { req: arguments[0] };\n }\n\n const onreadystatechange = this.onreadystatechange;\n this.onreadystatechange = function() {\n const result = onreadystatechange.apply(this, arguments);\n\n if (this.readyState === 4) {\n try {\n event.details = { ...event.details, res: JSON.parse(this.responseText) };\n } catch (e) {\n event.details = { ...event.details, res: this.responseText };\n }\n }\n\n return result;\n };\n\n return send.apply(this, arguments);\n };\n\n return ___originalXmlHttpRequestOpen.apply(this, arguments);\n };\n\n window.___originalConsoleLog = console.log;\n console.log = function() {\n const event = { type: "info", message: Array.prototype.map.call(arguments, x => typeof x === "object" ? JSON.stringify(x) : x.toString()).join(" ") };\n events.push(event);\n return ___originalConsoleLog.apply(this, arguments);\n }\n\n window.___originalConsoleError = console.error;\n console.error = function() {\n //if (typeof arguments[0] === "string") {\n const event = { type: "error", message: Array.prototype.map.call(arguments, x => typeof x === "object" ? JSON.stringify(x) : x.toString()).join(" ") };\n events.push(event);\n //}\n return ___originalConsoleError.apply(this, arguments);\n }\n',m.unwrap="\n XMLHttpRequest.prototype.open = window.___originalXmlHttpRequestOpen;\n console.log = window.___originalConsoleLog;\n console.error = window.___originalConsoleError;\n"},2340:(Be,m)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.environment=void 0,m.environment={production:!0}},4431:(Be,m,l)=>{"use strict";const _=(0,l(655).__importStar)(l(2313)),u=l(5e3),s=l(6747);l(2340).environment.production&&(0,u.enableProdMode)(),_.platformBrowser().bootstrapModule(s.AppModule).catch(C=>console.error(C))},4327:function(Be,m){var d;void 0!==(d=function(){"use strict";function u(y,I,O){var w=new XMLHttpRequest;w.open("GET",y),w.responseType="blob",w.onload=function(){p(w.response,I,O)},w.onerror=function(){console.error("could not download file")},w.send()}function s(y){var I=new XMLHttpRequest;I.open("HEAD",y,!1);try{I.send()}catch(O){}return 200<=I.status&&299>=I.status}function v(y){try{y.dispatchEvent(new MouseEvent("click"))}catch(O){var I=document.createEvent("MouseEvents");I.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),y.dispatchEvent(I)}}var C="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,D=C.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),p=C.saveAs||("object"!=typeof window||window!==C?function(){}:"download"in HTMLAnchorElement.prototype&&!D?function(y,I,O){var w=C.URL||C.webkitURL,k=document.createElement("a");k.download=I=I||y.name||"download",k.rel="noopener","string"==typeof y?(k.href=y,k.origin===location.origin?v(k):s(k.href)?u(y,I,O):v(k,k.target="_blank")):(k.href=w.createObjectURL(y),setTimeout(function(){w.revokeObjectURL(k.href)},4e4),setTimeout(function(){v(k)},0))}:"msSaveOrOpenBlob"in navigator?function(y,I,O){if(I=I||y.name||"download","string"!=typeof y)navigator.msSaveOrOpenBlob(function _(y,I){return void 0===I?I={autoBom:!1}:"object"!=typeof I&&(console.warn("Deprecated: Expected third argument to be a object"),I={autoBom:!I}),I.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(y.type)?new Blob(["\ufeff",y],{type:y.type}):y}(y,O),I);else if(s(y))u(y,I,O);else{var w=document.createElement("a");w.href=y,w.target="_blank",setTimeout(function(){v(w)})}}:function(y,I,O,w){if((w=w||open("","_blank"))&&(w.document.title=w.document.body.innerText="downloading..."),"string"==typeof y)return u(y,I,O);var k="application/octet-stream"===y.type,V=/constructor/i.test(C.HTMLElement)||C.safari,ue=/CriOS\/[\d]+/.test(navigator.userAgent);if((ue||k&&V||D)&&"undefined"!=typeof FileReader){var $=new FileReader;$.onloadend=function(){var fe=$.result;fe=ue?fe:fe.replace(/^data:[^;]*;/,"data:attachment/file;"),w?w.location.href=fe:location=fe,w=null},$.readAsDataURL(y)}else{var ne=C.URL||C.webkitURL,De=ne.createObjectURL(y);w?w.location=De:location.href=De,w=null,setTimeout(function(){ne.revokeObjectURL(De)},4e4)}});C.saveAs=p.saveAs=p,Be.exports=p}.apply(m,[]))&&(Be.exports=d)},5109:(Be,m,l)=>{"use strict";l.r(m),l.d(m,{NgxJsonViewerComponent:()=>p,NgxJsonViewerModule:()=>y});var i=l(9808),d=l(5e3);function _(I,O){1&I&&d.\u0275\u0275element(0,"div",9)}function u(I,O){if(1&I&&(d.\u0275\u0275elementStart(0,"span",10),d.\u0275\u0275text(1),d.\u0275\u0275elementEnd()),2&I){const w=d.\u0275\u0275nextContext().$implicit;d.\u0275\u0275advance(1),d.\u0275\u0275textInterpolate(w.description)}}function s(I,O){if(1&I&&(d.\u0275\u0275elementStart(0,"section",11),d.\u0275\u0275element(1,"ngx-json-viewer",12),d.\u0275\u0275elementEnd()),2&I){const w=d.\u0275\u0275nextContext().$implicit,k=d.\u0275\u0275nextContext();d.\u0275\u0275advance(1),d.\u0275\u0275property("json",w.value)("expanded",k.expanded)("depth",k.depth)("_currentDepth",k._currentDepth)}}const v=function(I){return["segment",I]},C=function(I,O){return{"segment-main":!0,expandable:I,expanded:O}};function D(I,O){if(1&I){const w=d.\u0275\u0275getCurrentView();d.\u0275\u0275elementStart(0,"section",2),d.\u0275\u0275elementStart(1,"section",3),d.\u0275\u0275listener("click",function(){const ue=d.\u0275\u0275restoreView(w).$implicit;return d.\u0275\u0275nextContext().toggle(ue)}),d.\u0275\u0275template(2,_,1,0,"div",4),d.\u0275\u0275elementStart(3,"span",5),d.\u0275\u0275text(4),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(5,"span",6),d.\u0275\u0275text(6,": "),d.\u0275\u0275elementEnd(),d.\u0275\u0275template(7,u,2,1,"span",7),d.\u0275\u0275elementEnd(),d.\u0275\u0275template(8,s,2,4,"section",8),d.\u0275\u0275elementEnd()}if(2&I){const w=O.$implicit,k=d.\u0275\u0275nextContext();d.\u0275\u0275property("ngClass",d.\u0275\u0275pureFunction1(6,v,"segment-type-"+w.type)),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngClass",d.\u0275\u0275pureFunction2(8,C,k.isExpandable(w),w.expanded)),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngIf",k.isExpandable(w)),d.\u0275\u0275advance(2),d.\u0275\u0275textInterpolate(w.key),d.\u0275\u0275advance(3),d.\u0275\u0275property("ngIf",!w.expanded||!k.isExpandable(w)),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngIf",w.expanded&&k.isExpandable(w))}}let p=(()=>{class I{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(w=>{this.segments.push(this.parseKeyValue(w,this.json[w]))}):this.segments.push(this.parseKeyValue(`(${typeof this.json})`,this.json))}isExpandable(w){return"object"===w.type||"array"===w.type}toggle(w){this.isExpandable(w)&&(w.expanded=!w.expanded)}parseKeyValue(w,k){const V={key:w,value:k,type:void 0,description:""+k,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(w){const k=new WeakMap;return function V(ue,$){let ne,De;return"object"!=typeof ue||null===ue||ue instanceof Boolean||ue instanceof Date||ue instanceof Number||ue instanceof RegExp||ue instanceof String?ue:(ne=k.get(ue),void 0!==ne?{$ref:ne}:(k.set(ue,$),Array.isArray(ue)?(De=[],ue.forEach(function(fe,_e){De[_e]=V(fe,$+"["+_e+"]")})):(De={},Object.keys(ue).forEach(function(fe){De[fe]=V(ue[fe],$+"["+JSON.stringify(fe)+"]")})),De))}(w,"$")}}return I.\u0275fac=function(w){return new(w||I)},I.\u0275cmp=d.\u0275\u0275defineComponent({type:I,selectors:[["ngx-json-viewer"]],inputs:{expanded:"expanded",depth:"depth",_currentDepth:"_currentDepth",json:"json"},features:[d.\u0275\u0275NgOnChangesFeature],decls:2,vars:1,consts:[[1,"ngx-json-viewer"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],[3,"ngClass","click"],["class","toggler",4,"ngIf"],[1,"segment-key"],[1,"segment-separator"],["class","segment-value",4,"ngIf"],["class","children",4,"ngIf"],[1,"toggler"],[1,"segment-value"],[1,"children"],[3,"json","expanded","depth","_currentDepth"]],template:function(w,k){1&w&&(d.\u0275\u0275elementStart(0,"section",0),d.\u0275\u0275template(1,D,9,11,"section",1),d.\u0275\u0275elementEnd()),2&w&&(d.\u0275\u0275advance(1),d.\u0275\u0275property("ngForOf",k.segments))},directives:[i.NgForOf,i.NgClass,i.NgIf,I],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}']}),I})(),y=(()=>{class I{}return I.\u0275fac=function(w){return new(w||I)},I.\u0275mod=d.\u0275\u0275defineNgModule({type:I}),I.\u0275inj=d.\u0275\u0275defineInjector({imports:[[i.CommonModule]]}),I})()},9802:(Be,m,l)=>{"use strict";l.r(m),l.d(m,{ArgumentOutOfRangeError:()=>ge,AsyncSubject:()=>$,BehaviorSubject:()=>k.X,ConnectableObservable:()=>v,EMPTY:()=>ke.E,EmptyError:()=>he,NEVER:()=>S,NotFoundError:()=>Je,Notification:()=>Me,NotificationKind:()=>qe,ObjectUnsubscribedError:()=>pt.N,Observable:()=>i.y,ReplaySubject:()=>ue,Scheduler:()=>K.b,SequenceError:()=>Tt,Subject:()=>w.x,Subscriber:()=>oe.Lv,Subscription:()=>d.w0,TimeoutError:()=>N,UnsubscriptionError:()=>se.B,VirtualAction:()=>me,VirtualTimeScheduler:()=>X,animationFrame:()=>lt.r,animationFrameScheduler:()=>lt.Z,animationFrames:()=>y,asap:()=>ne.e,asapScheduler:()=>ne.E,async:()=>De.P,asyncScheduler:()=>De.z,audit:()=>di.U,auditTime:()=>Jn.e,bindCallback:()=>it,bindNodeCallback:()=>mt,buffer:()=>Nn,bufferCount:()=>Bn,bufferTime:()=>H,bufferToggle:()=>we,bufferWhen:()=>W,catchError:()=>Pe.K,combineAll:()=>On,combineLatest:()=>_t.a,combineLatestAll:()=>Ht,combineLatestWith:()=>Hn,concat:()=>It.z,concatAll:()=>Un.u,concatMap:()=>Sn.b,concatMapTo:()=>kn,concatWith:()=>xn,config:()=>$n.v,connect:()=>li,connectable:()=>Kt,count:()=>Kn,debounce:()=>Gn,debounceTime:()=>Ci.b,defaultIfEmpty:()=>Mi,defer:()=>zt.P,delay:()=>hi.g,delayWhen:()=>Wn.j,dematerialize:()=>Sr,distinct:()=>nr,distinctUntilChanged:()=>mr.x,distinctUntilKeyChanged:()=>Qn,elementAt:()=>Lr,empty:()=>ke.c,endWith:()=>Wi,every:()=>Ir,exhaust:()=>zi,exhaustAll:()=>wi,exhaustMap:()=>gr,expand:()=>Ar,filter:()=>He.h,finalize:()=>Pr.x,find:()=>Ki,findIndex:()=>Gi,first:()=>Or,firstValueFrom:()=>Ae,flatMap:()=>Oi,forkJoin:()=>Mn.D,from:()=>an.D,fromEvent:()=>Qt.R,fromEventPattern:()=>Ot,generate:()=>at,groupBy:()=>Ii,identity:()=>Re.y,ignoreElements:()=>fi.l,iif:()=>Ke,interval:()=>Ie,isEmpty:()=>Ai,isObservable:()=>et.b,last:()=>Qi,lastValueFrom:()=>Ee,map:()=>ci.U,mapTo:()=>mi.h,materialize:()=>ir,max:()=>rr,merge:()=>Te.T,mergeAll:()=>Pi.J,mergeMap:()=>tt.z,mergeMapTo:()=>xi,mergeScan:()=>Zi,mergeWith:()=>Ri,min:()=>or,multicast:()=>Fi,never:()=>A,noop:()=>St.Z,observable:()=>C.L,observeOn:()=>be.Q,of:()=>de.of,onErrorResumeNext:()=>Et,pairs:()=>Ut,pairwise:()=>Yi,partition:()=>$e,pipe:()=>vt.z,pluck:()=>ki,publish:()=>xr,publishBehavior:()=>Rn,publishLast:()=>sr,publishReplay:()=>ar,queue:()=>Xe,queueScheduler:()=>Le,race:()=>ce,raceWith:()=>Ln,range:()=>ft,reduce:()=>At,refCount:()=>s,repeat:()=>x,repeatWhen:()=>Q,retry:()=>R,retryWhen:()=>te,sample:()=>ze,sampleTime:()=>ht,scan:()=>Dt,scheduled:()=>En.x,sequenceEqual:()=>Nt,share:()=>Tn.B,shareReplay:()=>In,single:()=>un,skip:()=>F.T,skipLast:()=>P,skipUntil:()=>b,skipWhile:()=>J,startWith:()=>ut.O,subscribeOn:()=>ye.R,switchAll:()=>An,switchMap:()=>$t.w,switchMapTo:()=>qn,switchScan:()=>gi,take:()=>Ui.q,takeLast:()=>pi,takeUntil:()=>Ni.R,takeWhile:()=>wt,tap:()=>B.b,throttle:()=>f,throttleTime:()=>T,throwError:()=>Ue._,throwIfEmpty:()=>Zn,timeInterval:()=>j,timeout:()=>ie,timeoutWith:()=>Fe,timer:()=>Qe.H,timestamp:()=>Ve,toArray:()=>qt,using:()=>Vt,window:()=>st,windowCount:()=>gt,windowTime:()=>Ft,windowToggle:()=>Gt,windowWhen:()=>Xt,withLatestFrom:()=>dn,zip:()=>fn,zipAll:()=>en,zipWith:()=>hn});var i=l(9751),d=l(6921),_=l(4482),u=l(5403);function s(){return(0,_.e)((q,U)=>{let Z=null;q._refCount++;const ee=new u.Q(U,void 0,void 0,void 0,()=>{if(!q||q._refCount<=0||0<--q._refCount)return void(Z=null);const xe=q._connection,Ne=Z;Z=null,xe&&(!Ne||xe===Ne)&&xe.unsubscribe(),U.unsubscribe()});q.subscribe(ee),ee.closed||(Z=q.connect())})}class v extends i.y{constructor(U,Z){super(),this.source=U,this.subjectFactory=Z,this._subject=null,this._refCount=0,this._connection=null,(0,_.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 d.w0;const Z=this.getSubject();U.add(this.source.subscribe(new u.Q(Z,void 0,()=>{this._teardown(),Z.complete()},ee=>{this._teardown(),Z.error(ee)},()=>this._teardown()))),U.closed&&(this._connection=null,U=d.w0.EMPTY)}return U}refCount(){return s()(this)}}var C=l(8822);const D={now:()=>(D.delegate||performance).now(),delegate:void 0};var p=l(3399);function y(q){return q?I(q):O}function I(q){const{schedule:U}=p.l;return new i.y(Z=>{const ee=new d.w0,xe=q||D,Ne=xe.now(),nt=Ct=>{const bt=xe.now();Z.next({timestamp:q?bt:Ct,elapsed:bt-Ne}),Z.closed||ee.add(U(nt))};return ee.add(U(nt)),ee})}const O=I();var w=l(6758),k=l(1135),V=l(6063);class ue extends w.x{constructor(U=1/0,Z=1/0,ee=V.l){super(),this._bufferSize=U,this._windowTime=Z,this._timestampProvider=ee,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=Z===1/0,this._bufferSize=Math.max(1,U),this._windowTime=Math.max(1,Z)}next(U){const{isStopped:Z,_buffer:ee,_infiniteTimeWindow:xe,_timestampProvider:Ne,_windowTime:nt}=this;Z||(ee.push(U),!xe&&ee.push(Ne.now()+nt)),this._trimBuffer(),super.next(U)}_subscribe(U){this._throwIfClosed(),this._trimBuffer();const Z=this._innerSubscribe(U),{_infiniteTimeWindow:ee,_buffer:xe}=this,Ne=xe.slice();for(let nt=0;nt<Ne.length&&!U.closed;nt+=ee?1:2)U.next(Ne[nt]);return this._checkFinalizedStatuses(U),Z}_trimBuffer(){const{_bufferSize:U,_timestampProvider:Z,_buffer:ee,_infiniteTimeWindow:xe}=this,Ne=(xe?1:2)*U;if(U<1/0&&Ne<ee.length&&ee.splice(0,ee.length-Ne),!xe){const nt=Z.now();let Ct=0;for(let bt=1;bt<ee.length&&ee[bt]<=nt;bt+=2)Ct=bt;Ct&&ee.splice(0,Ct+1)}}}class $ extends w.x{constructor(){super(...arguments),this._value=null,this._hasValue=!1,this._isComplete=!1}_checkFinalizedStatuses(U){const{hasError:Z,_hasValue:ee,_value:xe,thrownError:Ne,isStopped:nt,_isComplete:Ct}=this;Z?U.error(Ne):(nt||Ct)&&(ee&&U.next(xe),U.complete())}next(U){this.isStopped||(this._value=U,this._hasValue=!0)}complete(){const{_hasValue:U,_value:Z,_isComplete:ee}=this;ee||(this._isComplete=!0,U&&super.next(Z),super.complete())}}var ne=l(3101),De=l(4986),fe=l(4408),le=l(8950);const Le=new class Se extends le.v{}(class _e extends fe.o{constructor(U,Z){super(U,Z),this.scheduler=U,this.work=Z}schedule(U,Z=0){return Z>0?super.schedule(U,Z):(this.delay=Z,this.state=U,this.scheduler.flush(this),this)}execute(U,Z){return Z>0||this.closed?super.execute(U,Z):this._execute(U,Z)}requestAsyncId(U,Z,ee=0){return null!=ee&&ee>0||null==ee&&this.delay>0?super.requestAsyncId(U,Z,ee):U.flush(this)}}),Xe=Le;var lt=l(29);let X=(()=>{class q extends le.v{constructor(Z=me,ee=1/0){super(Z,()=>this.frame),this.maxFrames=ee,this.frame=0,this.index=-1}flush(){const{actions:Z,maxFrames:ee}=this;let xe,Ne;for(;(Ne=Z[0])&&Ne.delay<=ee&&(Z.shift(),this.frame=Ne.delay,!(xe=Ne.execute(Ne.state,Ne.delay))););if(xe){for(;Ne=Z.shift();)Ne.unsubscribe();throw xe}}}return q.frameTimeFactor=10,q})();class me extends fe.o{constructor(U,Z,ee=(U.index+=1)){super(U,Z),this.scheduler=U,this.work=Z,this.index=ee,this.active=!0,this.index=U.index=ee}schedule(U,Z=0){if(Number.isFinite(Z)){if(!this.id)return super.schedule(U,Z);this.active=!1;const ee=new me(this.scheduler,this.work);return this.add(ee),ee.schedule(U,Z)}return d.w0.EMPTY}requestAsyncId(U,Z,ee=0){this.delay=U.frame+ee;const{actions:xe}=U;return xe.push(this),xe.sort(me.sortActions),!0}recycleAsyncId(U,Z,ee=0){}_execute(U,Z){if(!0===this.active)return super._execute(U,Z)}static sortActions(U,Z){return U.delay===Z.delay?U.index===Z.index?0:U.index>Z.index?1:-1:U.delay>Z.delay?1:-1}}var K=l(6646),oe=l(930),ke=l(515),de=l(9646),Ue=l(2843),pe=l(576),qe=(()=>{return(q=qe||(qe={})).NEXT="N",q.ERROR="E",q.COMPLETE="C",qe;var q})();class Me{constructor(U,Z,ee){this.kind=U,this.value=Z,this.error=ee,this.hasValue="N"===U}observe(U){return Ge(this,U)}do(U,Z,ee){const{kind:xe,value:Ne,error:nt}=this;return"N"===xe?null==U?void 0:U(Ne):"E"===xe?null==Z?void 0:Z(nt):null==ee?void 0:ee()}accept(U,Z,ee){var xe;return(0,pe.m)(null===(xe=U)||void 0===xe?void 0:xe.next)?this.observe(U):this.do(U,Z,ee)}toObservable(){const{kind:U,value:Z,error:ee}=this,xe="N"===U?(0,de.of)(Z):"E"===U?(0,Ue._)(()=>ee):"C"===U?ke.E:0;if(!xe)throw new TypeError(`Unexpected notification kind ${U}`);return xe}static createNext(U){return new Me("N",U)}static createError(U){return new Me("E",void 0,U)}static createComplete(){return Me.completeNotification}}function Ge(q,U){var Z,ee,xe;const{kind:Ne,value:nt,error:Ct}=q;if("string"!=typeof Ne)throw new TypeError('Invalid notification, missing "kind"');"N"===Ne?null===(Z=U.next)||void 0===Z||Z.call(U,nt):"E"===Ne?null===(ee=U.error)||void 0===ee||ee.call(U,Ct):null===(xe=U.complete)||void 0===xe||xe.call(U)}Me.completeNotification=new Me("C");var vt=l(9635),St=l(5032),Re=l(4671),et=l(5191),Y=l(3888);const he=(0,Y.d)(q=>function(){q(this),this.name="EmptyError",this.message="no elements in sequence"});function Ee(q,U){const Z="object"==typeof U;return new Promise((ee,xe)=>{let nt,Ne=!1;q.subscribe({next:Ct=>{nt=Ct,Ne=!0},error:xe,complete:()=>{Ne?ee(nt):Z?ee(U.defaultValue):xe(new he)}})})}function Ae(q,U){const Z="object"==typeof U;return new Promise((ee,xe)=>{const Ne=new oe.Hp({next:nt=>{ee(nt),Ne.unsubscribe()},error:xe,complete:()=>{Z?ee(U.defaultValue):xe(new he)}});q.subscribe(Ne)})}const ge=(0,Y.d)(q=>function(){q(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}),Je=(0,Y.d)(q=>function(Z){q(this),this.name="NotFoundError",this.message=Z});var pt=l(7448);const Tt=(0,Y.d)(q=>function(Z){q(this),this.name="SequenceError",this.message=Z});var Rt=l(1165),dt=l(8421),Ze=l(9672);const N=(0,Y.d)(q=>function(Z=null){q(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=Z});function ie(q,U){const{first:Z,each:ee,with:xe=Oe,scheduler:Ne=(null!=U?U:De.z),meta:nt=null}=(0,Rt.q)(q)?{first:q}:"number"==typeof q?{each:q}:q;if(null==Z&&null==ee)throw new TypeError("No timeout provided.");return(0,_.e)((Ct,bt)=>{let Wt,Yt,yn=null,ln=0;const wn=_n=>{Yt=(0,Ze.f)(bt,Ne,()=>{try{Wt.unsubscribe(),(0,dt.Xf)(xe({meta:nt,lastValue:yn,seen:ln})).subscribe(bt)}catch(Pt){bt.error(Pt)}},_n)};Wt=Ct.subscribe(new u.Q(bt,_n=>{null==Yt||Yt.unsubscribe(),ln++,bt.next(yn=_n),ee>0&&wn(ee)},void 0,void 0,()=>{(null==Yt?void 0:Yt.closed)||null==Yt||Yt.unsubscribe(),yn=null})),wn(null!=Z?"number"==typeof Z?Z:+Z-Ne.now():ee)})}function Oe(q){throw new N(q)}var se=l(7896),Ce=l(3532),ye=l(9468),re=l(3268),be=l(5363);function Ye(q,U,Z,ee){if(Z){if(!(0,Ce.K)(Z))return function(...xe){return Ye(q,U,ee).apply(this,xe).pipe((0,re.Z)(Z))};ee=Z}return ee?function(...xe){return Ye(q,U).apply(this,xe).pipe((0,ye.R)(ee),(0,be.Q)(ee))}:function(...xe){const Ne=new $;let nt=!0;return new i.y(Ct=>{const bt=Ne.subscribe(Ct);if(nt){nt=!1;let Wt=!1,Yt=!1;U.apply(this,[...xe,(...yn)=>{if(q){const ln=yn.shift();if(null!=ln)return void Ne.error(ln)}Ne.next(1<yn.length?yn:yn[0]),Yt=!0,Wt&&Ne.complete()}]),Yt&&Ne.complete(),Wt=!0}return bt})}}function it(q,U,Z){return Ye(!1,q,U,Z)}function mt(q,U,Z){return Ye(!0,q,U,Z)}var _t=l(9841),It=l(1350),zt=l(9770);const on={connector:()=>new w.x,resetOnDisconnect:!0};function Kt(q,U=on){let Z=null;const{connector:ee,resetOnDisconnect:xe=!0}=U;let Ne=ee();const nt=new i.y(Ct=>Ne.subscribe(Ct));return nt.connect=()=>((!Z||Z.closed)&&(Z=(0,zt.P)(()=>q).subscribe(Ne),xe&&Z.add(()=>Ne=ee())),Z),nt}var Mn=l(4128),an=l(188),Qt=l(4968);function Ot(q,U,Z){return Z?Ot(q,U).pipe((0,re.Z)(Z)):new i.y(ee=>{const xe=(...nt)=>ee.next(1===nt.length?nt[0]:nt),Ne=q(xe);return(0,pe.m)(U)?()=>U(xe,Ne):void 0})}var bn=l(6340);function at(q,U,Z,ee,xe){let Ne,nt;function*Ct(){for(let bt=nt;!U||U(bt);bt=Z(bt))yield Ne(bt)}return 1===arguments.length?({initialState:nt,condition:U,iterate:Z,resultSelector:Ne=Re.y,scheduler:xe}=q):(nt=q,!ee||(0,Ce.K)(ee)?(Ne=Re.y,xe=ee):Ne=ee),(0,zt.P)(xe?()=>(0,bn.Q)(Ct(),xe):Ct)}function Ke(q,U,Z){return(0,zt.P)(()=>q()?U:Z)}var Qe=l(2805);function Ie(q=0,U=De.z){return q<0&&(q=0),(0,Qe.H)(q,q,U)}var Te=l(6451);const S=new i.y(St.Z);function A(){return S}const{isArray:M}=Array;function G(q){return 1===q.length&&M(q[0])?q[0]:q}function Et(...q){return function ot(...q){const U=G(q);return(0,_.e)((Z,ee)=>{const xe=[Z,...U],Ne=()=>{if(!ee.closed)if(xe.length>0){let nt;try{nt=(0,dt.Xf)(xe.shift())}catch(bt){return void Ne()}const Ct=new u.Q(ee,void 0,St.Z,St.Z);ee.add(nt.subscribe(Ct)),Ct.add(Ne)}else ee.complete()};Ne()})}(G(q))(ke.E)}function Ut(q,U){return(0,an.D)(Object.entries(q),U)}function gn(q,U){return(Z,ee)=>!q.call(U,Z,ee)}var He=l(9300);function $e(q,U,Z){return[(0,He.h)(U,Z)((0,dt.Xf)(q)),(0,He.h)(gn(U,Z))((0,dt.Xf)(q))]}function ce(...q){return 1===(q=G(q)).length?(0,dt.Xf)(q[0]):new i.y(je(q))}function je(q){return U=>{let Z=[];for(let ee=0;Z&&!U.closed&&ee<q.length;ee++)Z.push((0,dt.Xf)(q[ee]).subscribe(new u.Q(U,xe=>{if(Z){for(let Ne=0;Ne<Z.length;Ne++)Ne!==ee&&Z[Ne].unsubscribe();Z=null}U.next(xe)})))}}function ft(q,U,Z){if(null==U&&(U=q,q=0),U<=0)return ke.E;const ee=U+q;return new i.y(Z?xe=>{let Ne=q;return Z.schedule(function(){Ne<ee?(xe.next(Ne++),this.schedule()):xe.complete()})}:xe=>{let Ne=q;for(;Ne<ee&&!xe.closed;)xe.next(Ne++);xe.complete()})}function Vt(q,U){return new i.y(Z=>{const ee=q(),xe=U(ee);return(xe?(0,dt.Xf)(xe):ke.E).subscribe(Z),()=>{ee&&ee.unsubscribe()}})}var Bt=l(3269);function fn(...q){const U=(0,Bt.jO)(q),Z=G(q);return Z.length?new i.y(ee=>{let xe=Z.map(()=>[]),Ne=Z.map(()=>!1);ee.add(()=>{xe=Ne=null});for(let nt=0;!ee.closed&&nt<Z.length;nt++)(0,dt.Xf)(Z[nt]).subscribe(new u.Q(ee,Ct=>{if(xe[nt].push(Ct),xe.every(bt=>bt.length)){const bt=xe.map(Wt=>Wt.shift());ee.next(U?U(...bt):bt),xe.some((Wt,Yt)=>!Wt.length&&Ne[Yt])&&ee.complete()}},()=>{Ne[nt]=!0,!xe[nt].length&&ee.complete()}));return()=>{xe=Ne=null}}):ke.E}var En=l(3762),$n=l(2416),di=l(5615),Jn=l(453);function Nn(q){return(0,_.e)((U,Z)=>{let ee=[];return U.subscribe(new u.Q(Z,xe=>ee.push(xe),()=>{Z.next(ee),Z.complete()})),q.subscribe(new u.Q(Z,()=>{const xe=ee;ee=[],Z.next(xe)},St.Z)),()=>{ee=null}})}var zn=l(8737);function Bn(q,U=null){return U=null!=U?U:q,(0,_.e)((Z,ee)=>{let xe=[],Ne=0;Z.subscribe(new u.Q(ee,nt=>{let Ct=null;Ne++%U==0&&xe.push([]);for(const bt of xe)bt.push(nt),q<=bt.length&&(Ct=null!=Ct?Ct:[],Ct.push(bt));if(Ct)for(const bt of Ct)(0,zn.P)(xe,bt),ee.next(bt)},()=>{for(const nt of xe)ee.next(nt);ee.complete()},void 0,()=>{xe=null}))})}function H(q,...U){var Z,ee;const xe=null!==(Z=(0,Bt.yG)(U))&&void 0!==Z?Z:De.z,Ne=null!==(ee=U[0])&&void 0!==ee?ee:null,nt=U[1]||1/0;return(0,_.e)((Ct,bt)=>{let Wt=[],Yt=!1;const yn=_n=>{const{buffer:Pt,subs:kt}=_n;kt.unsubscribe(),(0,zn.P)(Wt,_n),bt.next(Pt),Yt&&ln()},ln=()=>{if(Wt){const _n=new d.w0;bt.add(_n);const kt={buffer:[],subs:_n};Wt.push(kt),(0,Ze.f)(_n,xe,()=>yn(kt),q)}};null!==Ne&&Ne>=0?(0,Ze.f)(bt,xe,ln,Ne,!0):Yt=!0,ln();const wn=new u.Q(bt,_n=>{const Pt=Wt.slice();for(const kt of Pt){const{buffer:Jt}=kt;Jt.push(_n),nt<=Jt.length&&yn(kt)}},()=>{for(;null==Wt?void 0:Wt.length;)bt.next(Wt.shift().buffer);null==wn||wn.unsubscribe(),bt.complete(),bt.unsubscribe()},void 0,()=>Wt=null);Ct.subscribe(wn)})}function we(q,U){return(0,_.e)((Z,ee)=>{const xe=[];(0,dt.Xf)(q).subscribe(new u.Q(ee,Ne=>{const nt=[];xe.push(nt);const Ct=new d.w0;Ct.add((0,dt.Xf)(U(Ne)).subscribe(new u.Q(ee,()=>{(0,zn.P)(xe,nt),ee.next(nt),Ct.unsubscribe()},St.Z)))},St.Z)),Z.subscribe(new u.Q(ee,Ne=>{for(const nt of xe)nt.push(Ne)},()=>{for(;xe.length>0;)ee.next(xe.shift());ee.complete()}))})}function W(q){return(0,_.e)((U,Z)=>{let ee=null,xe=null;const Ne=()=>{null==xe||xe.unsubscribe();const nt=ee;ee=[],nt&&Z.next(nt),(0,dt.Xf)(q()).subscribe(xe=new u.Q(Z,Ne,St.Z))};Ne(),U.subscribe(new u.Q(Z,nt=>null==ee?void 0:ee.push(nt),()=>{ee&&Z.next(ee),Z.complete()},void 0,()=>ee=xe=null))})}var Pe=l(262),tt=l(6099);function ct(q,U,Z,ee,xe){return(Ne,nt)=>{let Ct=Z,bt=U,Wt=0;Ne.subscribe(new u.Q(nt,Yt=>{const yn=Wt++;bt=Ct?q(bt,Yt,yn):(Ct=!0,Yt),ee&&nt.next(bt)},xe&&(()=>{Ct&&nt.next(bt),nt.complete()})))}}function At(q,U){return(0,_.e)(ct(q,U,arguments.length>=2,!1,!0))}const jt=(q,U)=>(q.push(U),q);function qt(){return(0,_.e)((q,U)=>{At(jt,[])(q).subscribe(U)})}function vn(q,U){return(0,vt.z)(qt(),(0,tt.z)(Z=>q(Z)),U?(0,re.Z)(U):Re.y)}function Ht(q){return vn(_t.a,q)}const On=Ht;function cn(...q){const U=(0,Bt.jO)(q);return U?(0,vt.z)(cn(...q),(0,re.Z)(U)):(0,_.e)((Z,ee)=>{(0,_t.l)([Z,...G(q)])(ee)})}function Hn(...q){return cn(...q)}var Un=l(7886),Sn=l(4351);function kn(q,U){return(0,pe.m)(U)?(0,Sn.b)(()=>q,U):(0,Sn.b)(()=>q)}function xn(...q){return function ai(...q){const U=(0,Bt.yG)(q);return(0,_.e)((Z,ee)=>{(0,Un.u)()((0,an.D)([Z,...q],U)).subscribe(ee)})}(...q)}const ni={connector:()=>new w.x};function li(q,U=ni){const{connector:Z}=U;return(0,_.e)((ee,xe)=>{const Ne=Z();(0,an.D)(q(function mn(q){return new i.y(U=>q.subscribe(U))}(Ne))).subscribe(xe),xe.add(ee.subscribe(Ne))})}function Kn(q){return At((U,Z,ee)=>!q||q(Z,ee)?U+1:U,0)}function Gn(q){return(0,_.e)((U,Z)=>{let ee=!1,xe=null,Ne=null;const nt=()=>{if(null==Ne||Ne.unsubscribe(),Ne=null,ee){ee=!1;const Ct=xe;xe=null,Z.next(Ct)}};U.subscribe(new u.Q(Z,Ct=>{null==Ne||Ne.unsubscribe(),ee=!0,xe=Ct,Ne=new u.Q(Z,nt,St.Z),(0,dt.Xf)(q(Ct)).subscribe(Ne)},()=>{nt(),Z.complete()},void 0,()=>{xe=Ne=null}))})}var Ci=l(8372);function Mi(q){return(0,_.e)((U,Z)=>{let ee=!1;U.subscribe(new u.Q(Z,xe=>{ee=!0,Z.next(xe)},()=>{ee||Z.next(q),Z.complete()}))})}var hi=l(4326),Wn=l(1260);function Sr(){return(0,_.e)((q,U)=>{q.subscribe(new u.Q(U,Z=>Ge(Z,U)))})}function nr(q,U){return(0,_.e)((Z,ee)=>{const xe=new Set;Z.subscribe(new u.Q(ee,Ne=>{const nt=q?q(Ne):Ne;xe.has(nt)||(xe.add(nt),ee.next(Ne))})),null==U||U.subscribe(new u.Q(ee,()=>xe.clear(),St.Z))})}var mr=l(1884);function Qn(q,U){return(0,mr.x)((Z,ee)=>U?U(Z[q],ee[q]):Z[q]===ee[q])}function Zn(q=Ei){return(0,_.e)((U,Z)=>{let ee=!1;U.subscribe(new u.Q(Z,xe=>{ee=!0,Z.next(xe)},()=>ee?Z.complete():Z.error(q())))})}function Ei(){return new he}var Ui=l(5698);function Lr(q,U){if(q<0)throw new ge;const Z=arguments.length>=2;return ee=>ee.pipe((0,He.h)((xe,Ne)=>Ne===q),(0,Ui.q)(1),Z?Mi(U):Zn(()=>new ge))}function Wi(...q){return U=>(0,It.z)(U,(0,de.of)(...q))}function Ir(q,U){return(0,_.e)((Z,ee)=>{let xe=0;Z.subscribe(new u.Q(ee,Ne=>{q.call(U,Ne,xe++,Z)||(ee.next(!1),ee.complete())},()=>{ee.next(!0),ee.complete()}))})}function wi(){return(0,_.e)((q,U)=>{let Z=!1,ee=null;q.subscribe(new u.Q(U,xe=>{ee||(ee=(0,dt.Xf)(xe).subscribe(new u.Q(U,void 0,()=>{ee=null,Z&&U.complete()})))},()=>{Z=!0,!ee&&U.complete()}))})}const zi=wi;var ci=l(4004);function gr(q,U){return U?Z=>Z.pipe(gr((ee,xe)=>(0,dt.Xf)(q(ee,xe)).pipe((0,ci.U)((Ne,nt)=>U(ee,Ne,xe,nt))))):(0,_.e)((Z,ee)=>{let xe=0,Ne=null,nt=!1;Z.subscribe(new u.Q(ee,Ct=>{Ne||(Ne=new u.Q(ee,void 0,()=>{Ne=null,nt&&ee.complete()}),(0,dt.Xf)(q(Ct,xe++)).subscribe(Ne))},()=>{nt=!0,!Ne&&ee.complete()}))})}var Di=l(2733);function Ar(q,U=1/0,Z){return U=(U||0)<1?1/0:U,(0,_.e)((ee,xe)=>(0,Di.p)(ee,xe,q,U,void 0,!0,Z))}var Pr=l(8746);function Ki(q,U){return(0,_.e)(Si(q,U,"value"))}function Si(q,U,Z){const ee="index"===Z;return(xe,Ne)=>{let nt=0;xe.subscribe(new u.Q(Ne,Ct=>{const bt=nt++;q.call(U,Ct,bt,xe)&&(Ne.next(ee?bt:Ct),Ne.complete())},()=>{Ne.next(ee?-1:void 0),Ne.complete()}))}}function Gi(q,U){return(0,_.e)(Si(q,U,"index"))}function Or(q,U){const Z=arguments.length>=2;return ee=>ee.pipe(q?(0,He.h)((xe,Ne)=>q(xe,Ne,ee)):Re.y,(0,Ui.q)(1),Z?Mi(U):Zn(()=>new he))}function Ii(q,U,Z,ee){return(0,_.e)((xe,Ne)=>{let nt;U&&"function"!=typeof U?({duration:Z,element:nt,connector:ee}=U):nt=U;const Ct=new Map,bt=ln=>{Ct.forEach(ln),ln(Ne)},Wt=ln=>bt(wn=>wn.error(ln)),Yt=new _r(Ne,ln=>{try{const wn=q(ln);let _n=Ct.get(wn);if(!_n){Ct.set(wn,_n=ee?ee():new w.x);const Pt=function yn(ln,wn){const _n=new i.y(Pt=>{Yt.activeGroups++;const kt=wn.subscribe(Pt);return()=>{kt.unsubscribe(),0==--Yt.activeGroups&&Yt.teardownAttempted&&Yt.unsubscribe()}});return _n.key=ln,_n}(wn,_n);if(Ne.next(Pt),Z){const kt=new u.Q(_n,()=>{_n.complete(),null==kt||kt.unsubscribe()},void 0,void 0,()=>Ct.delete(wn));Yt.add((0,dt.Xf)(Z(Pt)).subscribe(kt))}}_n.next(nt?nt(ln):ln)}catch(wn){Wt(wn)}},()=>bt(ln=>ln.complete()),Wt,()=>Ct.clear());xe.subscribe(Yt)})}class _r extends u.Q{constructor(){super(...arguments),this.activeGroups=0,this.teardownAttempted=!1}unsubscribe(){this.teardownAttempted=!0,0===this.activeGroups&&super.unsubscribe()}}var fi=l(8502);function Ai(){return(0,_.e)((q,U)=>{q.subscribe(new u.Q(U,()=>{U.next(!1),U.complete()},()=>{U.next(!0),U.complete()}))})}function pi(q){return q<=0?()=>ke.E:(0,_.e)((U,Z)=>{let ee=[];U.subscribe(new u.Q(Z,xe=>{ee.push(xe),q<ee.length&&ee.shift()},()=>{for(const xe of ee)Z.next(xe);Z.complete()},void 0,()=>{ee=null}))})}function Qi(q,U){const Z=arguments.length>=2;return ee=>ee.pipe(q?(0,He.h)((xe,Ne)=>q(xe,Ne,ee)):Re.y,pi(1),Z?Mi(U):Zn(()=>new he))}var mi=l(9718);function ir(){return(0,_.e)((q,U)=>{q.subscribe(new u.Q(U,Z=>{U.next(Me.createNext(Z))},()=>{U.next(Me.createComplete()),U.complete()},Z=>{U.next(Me.createError(Z)),U.complete()}))})}function rr(q){return At((0,pe.m)(q)?(U,Z)=>q(U,Z)>0?U:Z:(U,Z)=>U>Z?U:Z)}var Pi=l(8189);const Oi=tt.z;function xi(q,U,Z=1/0){return(0,pe.m)(U)?(0,tt.z)(()=>q,U,Z):("number"==typeof U&&(Z=U),(0,tt.z)(()=>q,Z))}function Zi(q,U,Z=1/0){return(0,_.e)((ee,xe)=>{let Ne=U;return(0,Di.p)(ee,xe,(nt,Ct)=>q(Ne,nt,Ct),Z,nt=>{Ne=nt},!1,void 0,()=>Ne=null)})}function Ri(...q){return function ti(...q){const U=(0,Bt.yG)(q),Z=(0,Bt._6)(q,1/0);return q=G(q),(0,_.e)((ee,xe)=>{(0,Pi.J)(Z)((0,an.D)([ee,...q],U)).subscribe(xe)})}(...q)}function or(q){return At((0,pe.m)(q)?(U,Z)=>q(U,Z)<0?U:Z:(U,Z)=>U<Z?U:Z)}function Fi(q,U){const Z=(0,pe.m)(q)?q:()=>q;return(0,pe.m)(U)?li(U,{connector:Z}):ee=>new v(ee,Z)}function Yi(){return(0,_.e)((q,U)=>{let Z,ee=!1;q.subscribe(new u.Q(U,xe=>{const Ne=Z;Z=xe,ee&&U.next([Ne,xe]),ee=!0}))})}function ki(...q){const U=q.length;if(0===U)throw new Error("list of properties cannot be empty.");return(0,ci.U)(Z=>{let ee=Z;for(let xe=0;xe<U;xe++){const Ne=null==ee?void 0:ee[q[xe]];if(void 0===Ne)return;ee=Ne}return ee})}function xr(q){return q?U=>li(q)(U):U=>Fi(new w.x)(U)}function Rn(q){return U=>{const Z=new k.X(q);return new v(U,()=>Z)}}function sr(){return q=>{const U=new $;return new v(q,()=>U)}}function ar(q,U,Z,ee){Z&&!(0,pe.m)(Z)&&(ee=Z);const xe=(0,pe.m)(Z)?Z:void 0;return Ne=>Fi(new ue(q,U,ee),xe)(Ne)}function Ln(...q){return q.length?(0,_.e)((U,Z)=>{je([U,...q])(Z)}):Re.y}function x(q){let Z,U=1/0;return null!=q&&("object"==typeof q?({count:U=1/0,delay:Z}=q):U=q),U<=0?()=>ke.E:(0,_.e)((ee,xe)=>{let nt,Ne=0;const Ct=()=>{if(null==nt||nt.unsubscribe(),nt=null,null!=Z){const Wt="number"==typeof Z?(0,Qe.H)(Z):(0,dt.Xf)(Z(Ne)),Yt=new u.Q(xe,()=>{Yt.unsubscribe(),bt()});Wt.subscribe(Yt)}else bt()},bt=()=>{let Wt=!1;nt=ee.subscribe(new u.Q(xe,void 0,()=>{++Ne<U?nt?Ct():Wt=!0:xe.complete()})),Wt&&Ct()};bt()})}function Q(q){return(0,_.e)((U,Z)=>{let ee,Ne,xe=!1,nt=!1,Ct=!1;const bt=()=>Ct&&nt&&(Z.complete(),!0),Yt=()=>{Ct=!1,ee=U.subscribe(new u.Q(Z,void 0,()=>{Ct=!0,!bt()&&(Ne||(Ne=new w.x,q(Ne).subscribe(new u.Q(Z,()=>{ee?Yt():xe=!0},()=>{nt=!0,bt()}))),Ne).next()})),xe&&(ee.unsubscribe(),ee=null,xe=!1,Yt())};Yt()})}function R(q=1/0){let U;U=q&&"object"==typeof q?q:{count:q};const{count:Z=1/0,delay:ee,resetOnSuccess:xe=!1}=U;return Z<=0?Re.y:(0,_.e)((Ne,nt)=>{let bt,Ct=0;const Wt=()=>{let Yt=!1;bt=Ne.subscribe(new u.Q(nt,yn=>{xe&&(Ct=0),nt.next(yn)},void 0,yn=>{if(Ct++<Z){const ln=()=>{bt?(bt.unsubscribe(),bt=null,Wt()):Yt=!0};if(null!=ee){const wn="number"==typeof ee?(0,Qe.H)(ee):(0,dt.Xf)(ee(yn,Ct)),_n=new u.Q(nt,()=>{_n.unsubscribe(),ln()},()=>{nt.complete()});wn.subscribe(_n)}else ln()}else nt.error(yn)})),Yt&&(bt.unsubscribe(),bt=null,Wt())};Wt()})}function te(q){return(0,_.e)((U,Z)=>{let ee,Ne,xe=!1;const nt=()=>{ee=U.subscribe(new u.Q(Z,void 0,void 0,Ct=>{Ne||(Ne=new w.x,q(Ne).subscribe(new u.Q(Z,()=>ee?nt():xe=!0))),Ne&&Ne.next(Ct)})),xe&&(ee.unsubscribe(),ee=null,xe=!1,nt())};nt()})}function ze(q){return(0,_.e)((U,Z)=>{let ee=!1,xe=null;U.subscribe(new u.Q(Z,nt=>{ee=!0,xe=nt})),q.subscribe(new u.Q(Z,()=>{if(ee){ee=!1;const nt=xe;xe=null,Z.next(nt)}},St.Z))})}function ht(q,U=De.z){return ze(Ie(q,U))}function Dt(q,U){return(0,_.e)(ct(q,U,arguments.length>=2,!0))}function Nt(q,U=((Z,ee)=>Z===ee)){return(0,_.e)((Z,ee)=>{const xe={buffer:[],complete:!1},Ne={buffer:[],complete:!1},nt=bt=>{ee.next(bt),ee.complete()},Ct=(bt,Wt)=>{const Yt=new u.Q(ee,yn=>{const{buffer:ln,complete:wn}=Wt;0===ln.length?wn?nt(!1):bt.buffer.push(yn):!U(yn,ln.shift())&&nt(!1)},()=>{bt.complete=!0;const{complete:yn,buffer:ln}=Wt;yn&&nt(0===ln.length),null==Yt||Yt.unsubscribe()});return Yt};Z.subscribe(Ct(xe,Ne)),q.subscribe(Ct(Ne,xe))})}var Tn=l(3099);function In(q,U,Z){var ee,xe;let Ne,nt=!1;return q&&"object"==typeof q?(Ne=null!==(ee=q.bufferSize)&&void 0!==ee?ee:1/0,U=null!==(xe=q.windowTime)&&void 0!==xe?xe:1/0,nt=!!q.refCount,Z=q.scheduler):Ne=null!=q?q:1/0,(0,Tn.B)({connector:()=>new ue(Ne,U,Z),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:nt})}function un(q){return(0,_.e)((U,Z)=>{let xe,ee=!1,Ne=!1,nt=0;U.subscribe(new u.Q(Z,Ct=>{Ne=!0,(!q||q(Ct,nt++,U))&&(ee&&Z.error(new Tt("Too many matching values")),ee=!0,xe=Ct)},()=>{ee?(Z.next(xe),Z.complete()):Z.error(Ne?new Je("No matching values"):new he)}))})}var F=l(5684);function P(q){return q<=0?Re.y:(0,_.e)((U,Z)=>{let ee=new Array(q),xe=0;return U.subscribe(new u.Q(Z,Ne=>{const nt=xe++;if(nt<q)ee[nt]=Ne;else{const Ct=nt%q,bt=ee[Ct];ee[Ct]=Ne,Z.next(bt)}})),()=>{ee=null}})}function b(q){return(0,_.e)((U,Z)=>{let ee=!1;const xe=new u.Q(Z,()=>{null==xe||xe.unsubscribe(),ee=!0},St.Z);(0,dt.Xf)(q).subscribe(xe),U.subscribe(new u.Q(Z,Ne=>ee&&Z.next(Ne)))})}function J(q){return(0,_.e)((U,Z)=>{let ee=!1,xe=0;U.subscribe(new u.Q(Z,Ne=>(ee||(ee=!q(Ne,xe++)))&&Z.next(Ne)))})}var ut=l(8675),$t=l(3900);function An(){return(0,$t.w)(Re.y)}function qn(q,U){return(0,pe.m)(U)?(0,$t.w)(()=>q,U):(0,$t.w)(()=>q)}function gi(q,U){return(0,_.e)((Z,ee)=>{let xe=U;return(0,$t.w)((Ne,nt)=>q(xe,Ne,nt),(Ne,nt)=>(xe=nt,nt))(Z).subscribe(ee),()=>{xe=null}})}var Ni=l(2722);function wt(q,U=!1){return(0,_.e)((Z,ee)=>{let xe=0;Z.subscribe(new u.Q(ee,Ne=>{const nt=q(Ne,xe++);(nt||U)&&ee.next(Ne),!nt&&ee.complete()}))})}var B=l(8505);const c={leading:!0,trailing:!1};function f(q,U=c){return(0,_.e)((Z,ee)=>{const{leading:xe,trailing:Ne}=U;let nt=!1,Ct=null,bt=null,Wt=!1;const Yt=()=>{null==bt||bt.unsubscribe(),bt=null,Ne&&(wn(),Wt&&ee.complete())},yn=()=>{bt=null,Wt&&ee.complete()},ln=_n=>bt=(0,dt.Xf)(q(_n)).subscribe(new u.Q(ee,Yt,yn)),wn=()=>{if(nt){nt=!1;const _n=Ct;Ct=null,ee.next(_n),!Wt&&ln(_n)}};Z.subscribe(new u.Q(ee,_n=>{nt=!0,Ct=_n,(!bt||bt.closed)&&(xe?wn():ln(_n))},()=>{Wt=!0,(!(Ne&&nt&&bt)||bt.closed)&&ee.complete()}))})}function T(q,U=De.z,Z=c){const ee=(0,Qe.H)(q,U);return f(()=>ee,Z)}function j(q=De.z){return U=>(0,zt.P)(()=>U.pipe(Dt(({current:Z},ee)=>({value:ee,current:q.now(),last:Z}),{current:q.now(),value:void 0,last:void 0}),(0,ci.U)(({current:Z,last:ee,value:xe})=>new ae(xe,Z-ee))))}class ae{constructor(U,Z){this.value=U,this.interval=Z}}function Fe(q,U,Z){let ee,xe,Ne;if(Z=null!=Z?Z:De.P,(0,Rt.q)(q)?ee=q:"number"==typeof q&&(xe=q),!U)throw new TypeError("No observable provided to switch to");if(Ne=()=>U,null==ee&&null==xe)throw new TypeError("No timeout provided.");return ie({first:ee,each:xe,scheduler:Z,with:Ne})}function Ve(q=V.l){return(0,ci.U)(U=>({value:U,timestamp:q.now()}))}function st(q){return(0,_.e)((U,Z)=>{let ee=new w.x;Z.next(ee.asObservable());const xe=Ne=>{ee.error(Ne),Z.error(Ne)};return U.subscribe(new u.Q(Z,Ne=>null==ee?void 0:ee.next(Ne),()=>{ee.complete(),Z.complete()},xe)),q.subscribe(new u.Q(Z,()=>{ee.complete(),Z.next(ee=new w.x)},St.Z,xe)),()=>{null==ee||ee.unsubscribe(),ee=null}})}function gt(q,U=0){const Z=U>0?U:q;return(0,_.e)((ee,xe)=>{let Ne=[new w.x],nt=[],Ct=0;xe.next(Ne[0].asObservable()),ee.subscribe(new u.Q(xe,bt=>{for(const Yt of Ne)Yt.next(bt);const Wt=Ct-q+1;if(Wt>=0&&Wt%Z==0&&Ne.shift().complete(),++Ct%Z==0){const Yt=new w.x;Ne.push(Yt),xe.next(Yt.asObservable())}},()=>{for(;Ne.length>0;)Ne.shift().complete();xe.complete()},bt=>{for(;Ne.length>0;)Ne.shift().error(bt);xe.error(bt)},()=>{nt=null,Ne=null}))})}function Ft(q,...U){var Z,ee;const xe=null!==(Z=(0,Bt.yG)(U))&&void 0!==Z?Z:De.z,Ne=null!==(ee=U[0])&&void 0!==ee?ee:null,nt=U[1]||1/0;return(0,_.e)((Ct,bt)=>{let Wt=[],Yt=!1;const yn=Pt=>{const{window:kt,subs:Jt}=Pt;kt.complete(),Jt.unsubscribe(),(0,zn.P)(Wt,Pt),Yt&&ln()},ln=()=>{if(Wt){const Pt=new d.w0;bt.add(Pt);const kt=new w.x,Jt={window:kt,subs:Pt,seen:0};Wt.push(Jt),bt.next(kt.asObservable()),(0,Ze.f)(Pt,xe,()=>yn(Jt),q)}};null!==Ne&&Ne>=0?(0,Ze.f)(bt,xe,ln,Ne,!0):Yt=!0,ln();const wn=Pt=>Wt.slice().forEach(Pt),_n=Pt=>{wn(({window:kt})=>Pt(kt)),Pt(bt),bt.unsubscribe()};return Ct.subscribe(new u.Q(bt,Pt=>{wn(kt=>{kt.window.next(Pt),nt<=++kt.seen&&yn(kt)})},()=>_n(Pt=>Pt.complete()),Pt=>_n(kt=>kt.error(Pt)))),()=>{Wt=null}})}function Gt(q,U){return(0,_.e)((Z,ee)=>{const xe=[],Ne=nt=>{for(;0<xe.length;)xe.shift().error(nt);ee.error(nt)};(0,dt.Xf)(q).subscribe(new u.Q(ee,nt=>{const Ct=new w.x;xe.push(Ct);const bt=new d.w0;let Yt;try{Yt=(0,dt.Xf)(U(nt))}catch(yn){return void Ne(yn)}ee.next(Ct.asObservable()),bt.add(Yt.subscribe(new u.Q(ee,()=>{(0,zn.P)(xe,Ct),Ct.complete(),bt.unsubscribe()},St.Z,Ne)))},St.Z)),Z.subscribe(new u.Q(ee,nt=>{const Ct=xe.slice();for(const bt of Ct)bt.next(nt)},()=>{for(;0<xe.length;)xe.shift().complete();ee.complete()},Ne,()=>{for(;0<xe.length;)xe.shift().unsubscribe()}))})}function Xt(q){return(0,_.e)((U,Z)=>{let ee,xe;const Ne=Ct=>{ee.error(Ct),Z.error(Ct)},nt=()=>{let Ct;null==xe||xe.unsubscribe(),null==ee||ee.complete(),ee=new w.x,Z.next(ee.asObservable());try{Ct=(0,dt.Xf)(q())}catch(bt){return void Ne(bt)}Ct.subscribe(xe=new u.Q(Z,nt,nt,Ne))};nt(),U.subscribe(new u.Q(Z,Ct=>ee.next(Ct),()=>{ee.complete(),Z.complete()},Ne,()=>{null==xe||xe.unsubscribe(),ee=null}))})}function dn(...q){const U=(0,Bt.jO)(q);return(0,_.e)((Z,ee)=>{const xe=q.length,Ne=new Array(xe);let nt=q.map(()=>!1),Ct=!1;for(let bt=0;bt<xe;bt++)(0,dt.Xf)(q[bt]).subscribe(new u.Q(ee,Wt=>{Ne[bt]=Wt,!Ct&&!nt[bt]&&(nt[bt]=!0,(Ct=nt.every(Re.y))&&(nt=null))},St.Z));Z.subscribe(new u.Q(ee,bt=>{if(Ct){const Wt=[bt,...Ne];ee.next(U?U(...Wt):Wt)}}))})}function en(q){return vn(fn,q)}function hn(...q){return function nn(...q){return(0,_.e)((U,Z)=>{fn(U,...q).subscribe(Z)})}(...q)}},1135:(Be,m,l)=>{"use strict";l.d(m,{X:()=>d});var i=l(6758);class d extends i.x{constructor(u){super(),this._value=u}get value(){return this.getValue()}_subscribe(u){const s=super._subscribe(u);return!s.closed&&u.next(this._value),s}getValue(){const{hasError:u,thrownError:s,_value:v}=this;if(u)throw s;return this._throwIfClosed(),v}next(u){super.next(this._value=u)}}},9751:(Be,m,l)=>{"use strict";l.d(m,{y:()=>D});var i=l(930),d=l(6921),_=l(8822),u=l(9635),s=l(2416),v=l(576),C=l(2806);let D=(()=>{class O{constructor(k){k&&(this._subscribe=k)}lift(k){const V=new O;return V.source=this,V.operator=k,V}subscribe(k,V,ue){const $=function I(O){return O&&O instanceof i.Lv||function y(O){return O&&(0,v.m)(O.next)&&(0,v.m)(O.error)&&(0,v.m)(O.complete)}(O)&&(0,d.Nn)(O)}(k)?k:new i.Hp(k,V,ue);return(0,C.x)(()=>{const{operator:ne,source:De}=this;$.add(ne?ne.call($,De):De?this._subscribe($):this._trySubscribe($))}),$}_trySubscribe(k){try{return this._subscribe(k)}catch(V){k.error(V)}}forEach(k,V){return new(V=p(V))((ue,$)=>{const ne=new i.Hp({next:De=>{try{k(De)}catch(fe){$(fe),ne.unsubscribe()}},error:$,complete:ue});this.subscribe(ne)})}_subscribe(k){var V;return null===(V=this.source)||void 0===V?void 0:V.subscribe(k)}[_.L](){return this}pipe(...k){return(0,u.U)(k)(this)}toPromise(k){return new(k=p(k))((V,ue)=>{let $;this.subscribe(ne=>$=ne,ne=>ue(ne),()=>V($))})}}return O.create=w=>new O(w),O})();function p(O){var w;return null!==(w=null!=O?O:s.v.Promise)&&void 0!==w?w:Promise}},6646:(Be,m,l)=>{"use strict";l.d(m,{b:()=>d});var i=l(6063);class d{constructor(u,s=d.now){this.schedulerActionCtor=u,this.now=s}schedule(u,s=0,v){return new this.schedulerActionCtor(this,u).schedule(v,s)}}d.now=i.l.now},6758:(Be,m,l)=>{"use strict";l.d(m,{x:()=>v});var i=l(9751),d=l(6921),_=l(7448),u=l(8737),s=l(2806);let v=(()=>{class D extends i.y{constructor(){super(),this.closed=!1,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(y){const I=new C(this,this);return I.operator=y,I}_throwIfClosed(){if(this.closed)throw new _.N}next(y){(0,s.x)(()=>{if(this._throwIfClosed(),!this.isStopped){const I=this.observers.slice();for(const O of I)O.next(y)}})}error(y){(0,s.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=y;const{observers:I}=this;for(;I.length;)I.shift().error(y)}})}complete(){(0,s.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:y}=this;for(;y.length;)y.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=null}get observed(){var y;return(null===(y=this.observers)||void 0===y?void 0:y.length)>0}_trySubscribe(y){return this._throwIfClosed(),super._trySubscribe(y)}_subscribe(y){return this._throwIfClosed(),this._checkFinalizedStatuses(y),this._innerSubscribe(y)}_innerSubscribe(y){const{hasError:I,isStopped:O,observers:w}=this;return I||O?d.Lc:(w.push(y),new d.w0(()=>(0,u.P)(w,y)))}_checkFinalizedStatuses(y){const{hasError:I,thrownError:O,isStopped:w}=this;I?y.error(O):w&&y.complete()}asObservable(){const y=new i.y;return y.source=this,y}}return D.create=(p,y)=>new C(p,y),D})();class C extends v{constructor(p,y){super(),this.destination=p,this.source=y}next(p){var y,I;null===(I=null===(y=this.destination)||void 0===y?void 0:y.next)||void 0===I||I.call(y,p)}error(p){var y,I;null===(I=null===(y=this.destination)||void 0===y?void 0:y.error)||void 0===I||I.call(y,p)}complete(){var p,y;null===(y=null===(p=this.destination)||void 0===p?void 0:p.complete)||void 0===y||y.call(p)}_subscribe(p){var y,I;return null!==(I=null===(y=this.source)||void 0===y?void 0:y.subscribe(p))&&void 0!==I?I:d.Lc}}},930:(Be,m,l)=>{"use strict";l.d(m,{Hp:()=>w,Lv:()=>O});var i=l(576),d=l(6921),_=l(2416),u=l(7849),s=l(5032);const v=p("C",void 0,void 0);function p(ne,De,fe){return{kind:ne,value:De,error:fe}}var y=l(3410),I=l(2806);class O extends d.w0{constructor(De){super(),this.isStopped=!1,De?(this.destination=De,(0,d.Nn)(De)&&De.add(this)):this.destination=$}static create(De,fe,_e){return new w(De,fe,_e)}next(De){this.isStopped?ue(function D(ne){return p("N",ne,void 0)}(De),this):this._next(De)}error(De){this.isStopped?ue(function C(ne){return p("E",void 0,ne)}(De),this):(this.isStopped=!0,this._error(De))}complete(){this.isStopped?ue(v,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(De){this.destination.next(De)}_error(De){try{this.destination.error(De)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}class w extends O{constructor(De,fe,_e){let le;if(super(),(0,i.m)(De))le=De;else if(De){let Se;({next:le,error:fe,complete:_e}=De),this&&_.v.useDeprecatedNextContext?(Se=Object.create(De),Se.unsubscribe=()=>this.unsubscribe()):Se=De,le=null==le?void 0:le.bind(Se),fe=null==fe?void 0:fe.bind(Se),_e=null==_e?void 0:_e.bind(Se)}this.destination={next:le?k(le):s.Z,error:k(null!=fe?fe:V),complete:_e?k(_e):s.Z}}}function k(ne,De){return(...fe)=>{try{ne(...fe)}catch(_e){_.v.useDeprecatedSynchronousErrorHandling?(0,I.O)(_e):(0,u.h)(_e)}}}function V(ne){throw ne}function ue(ne,De){const{onStoppedNotification:fe}=_.v;fe&&y.z.setTimeout(()=>fe(ne,De))}const $={closed:!0,next:s.Z,error:V,complete:s.Z}},6921:(Be,m,l)=>{"use strict";l.d(m,{w0:()=>u,Lc:()=>s,Nn:()=>v});var i=l(576),d=l(7896),_=l(8737);class u{constructor(p){this.initialTeardown=p,this.closed=!1,this._parentage=null,this._teardowns=null}unsubscribe(){let p;if(!this.closed){this.closed=!0;const{_parentage:y}=this;if(y)if(this._parentage=null,Array.isArray(y))for(const w of y)w.remove(this);else y.remove(this);const{initialTeardown:I}=this;if((0,i.m)(I))try{I()}catch(w){p=w instanceof d.B?w.errors:[w]}const{_teardowns:O}=this;if(O){this._teardowns=null;for(const w of O)try{C(w)}catch(k){p=null!=p?p:[],k instanceof d.B?p=[...p,...k.errors]:p.push(k)}}if(p)throw new d.B(p)}}add(p){var y;if(p&&p!==this)if(this.closed)C(p);else{if(p instanceof u){if(p.closed||p._hasParent(this))return;p._addParent(this)}(this._teardowns=null!==(y=this._teardowns)&&void 0!==y?y:[]).push(p)}}_hasParent(p){const{_parentage:y}=this;return y===p||Array.isArray(y)&&y.includes(p)}_addParent(p){const{_parentage:y}=this;this._parentage=Array.isArray(y)?(y.push(p),y):y?[y,p]:p}_removeParent(p){const{_parentage:y}=this;y===p?this._parentage=null:Array.isArray(y)&&(0,_.P)(y,p)}remove(p){const{_teardowns:y}=this;y&&(0,_.P)(y,p),p instanceof u&&p._removeParent(this)}}u.EMPTY=(()=>{const D=new u;return D.closed=!0,D})();const s=u.EMPTY;function v(D){return D instanceof u||D&&"closed"in D&&(0,i.m)(D.remove)&&(0,i.m)(D.add)&&(0,i.m)(D.unsubscribe)}function C(D){(0,i.m)(D)?D():D.unsubscribe()}},2416:(Be,m,l)=>{"use strict";l.d(m,{v:()=>i});const i={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(Be,m,l)=>{"use strict";l.d(m,{a:()=>y,l:()=>I});var i=l(9751),d=l(4742),_=l(188),u=l(4671),s=l(3268),v=l(3269),C=l(1810),D=l(5403),p=l(9672);function y(...w){const k=(0,v.yG)(w),V=(0,v.jO)(w),{args:ue,keys:$}=(0,d.D)(w);if(0===ue.length)return(0,_.D)([],k);const ne=new i.y(I(ue,k,$?De=>(0,C.n)($,De):u.y));return V?ne.pipe((0,s.Z)(V)):ne}function I(w,k,V=u.y){return ue=>{O(k,()=>{const{length:$}=w,ne=new Array($);let De=$,fe=$;for(let _e=0;_e<$;_e++)O(k,()=>{const le=(0,_.D)(w[_e],k);let Se=!1;le.subscribe(new D.Q(ue,Le=>{ne[_e]=Le,Se||(Se=!0,fe--),fe||ue.next(V(ne.slice()))},()=>{--De||ue.complete()}))},ue)},ue)}}function O(w,k,V){w?(0,p.f)(V,w,k):k()}},1350:(Be,m,l)=>{"use strict";l.d(m,{z:()=>u});var i=l(7886),d=l(3269),_=l(188);function u(...s){return(0,i.u)()((0,_.D)(s,(0,d.yG)(s)))}},9770:(Be,m,l)=>{"use strict";l.d(m,{P:()=>_});var i=l(9751),d=l(8421);function _(u){return new i.y(s=>{(0,d.Xf)(u()).subscribe(s)})}},515:(Be,m,l)=>{"use strict";l.d(m,{E:()=>d,c:()=>_});var i=l(9751);const d=new i.y(s=>s.complete());function _(s){return s?function u(s){return new i.y(v=>s.schedule(()=>v.complete()))}(s):d}},4128:(Be,m,l)=>{"use strict";l.d(m,{D:()=>D});var i=l(9751),d=l(4742),_=l(8421),u=l(3269),s=l(5403),v=l(3268),C=l(1810);function D(...p){const y=(0,u.jO)(p),{args:I,keys:O}=(0,d.D)(p),w=new i.y(k=>{const{length:V}=I;if(!V)return void k.complete();const ue=new Array(V);let $=V,ne=V;for(let De=0;De<V;De++){let fe=!1;(0,_.Xf)(I[De]).subscribe(new s.Q(k,_e=>{fe||(fe=!0,ne--),ue[De]=_e},()=>$--,void 0,()=>{(!$||!fe)&&(ne||k.next(O?(0,C.n)(O,ue):ue),k.complete())}))}});return y?w.pipe((0,v.Z)(y)):w}},188:(Be,m,l)=>{"use strict";l.d(m,{D:()=>_});var i=l(3762),d=l(8421);function _(u,s){return s?(0,i.x)(u,s):(0,d.Xf)(u)}},4968:(Be,m,l)=>{"use strict";l.d(m,{R:()=>y});var i=l(8421),d=l(9751),_=l(6099),u=l(1144),s=l(576),v=l(3268);const C=["addListener","removeListener"],D=["addEventListener","removeEventListener"],p=["on","off"];function y(V,ue,$,ne){if((0,s.m)($)&&(ne=$,$=void 0),ne)return y(V,ue,$).pipe((0,v.Z)(ne));const[De,fe]=function k(V){return(0,s.m)(V.addEventListener)&&(0,s.m)(V.removeEventListener)}(V)?D.map(_e=>le=>V[_e](ue,le,$)):function O(V){return(0,s.m)(V.addListener)&&(0,s.m)(V.removeListener)}(V)?C.map(I(V,ue)):function w(V){return(0,s.m)(V.on)&&(0,s.m)(V.off)}(V)?p.map(I(V,ue)):[];if(!De&&(0,u.z)(V))return(0,_.z)(_e=>y(_e,ue,$))((0,i.Xf)(V));if(!De)throw new TypeError("Invalid event target");return new d.y(_e=>{const le=(...Se)=>_e.next(1<Se.length?Se:Se[0]);return De(le),()=>fe(le)})}function I(V,ue){return $=>ne=>V[$](ue,ne)}},8421:(Be,m,l)=>{"use strict";l.d(m,{Xf:()=>w});var i=l(655),d=l(1144),_=l(8239),u=l(9751),s=l(3670),v=l(2206),C=l(4532),D=l(6495),p=l(3260),y=l(576),I=l(7849),O=l(8822);function w(_e){if(_e instanceof u.y)return _e;if(null!=_e){if((0,s.c)(_e))return function k(_e){return new u.y(le=>{const Se=_e[O.L]();if((0,y.m)(Se.subscribe))return Se.subscribe(le);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(_e);if((0,d.z)(_e))return function V(_e){return new u.y(le=>{for(let Se=0;Se<_e.length&&!le.closed;Se++)le.next(_e[Se]);le.complete()})}(_e);if((0,_.t)(_e))return function ue(_e){return new u.y(le=>{_e.then(Se=>{le.closed||(le.next(Se),le.complete())},Se=>le.error(Se)).then(null,I.h)})}(_e);if((0,v.D)(_e))return ne(_e);if((0,D.T)(_e))return function $(_e){return new u.y(le=>{for(const Se of _e)if(le.next(Se),le.closed)return;le.complete()})}(_e);if((0,p.L)(_e))return function De(_e){return ne((0,p.Q)(_e))}(_e)}throw(0,C.z)(_e)}function ne(_e){return new u.y(le=>{(function fe(_e,le){var Se,Le,Xe,lt;return(0,i.__awaiter)(this,void 0,void 0,function*(){try{for(Se=(0,i.__asyncValues)(_e);!(Le=yield Se.next()).done;)if(le.next(Le.value),le.closed)return}catch(X){Xe={error:X}}finally{try{Le&&!Le.done&&(lt=Se.return)&&(yield lt.call(Se))}finally{if(Xe)throw Xe.error}}le.complete()})})(_e,le).catch(Se=>le.error(Se))})}},6451:(Be,m,l)=>{"use strict";l.d(m,{T:()=>v});var i=l(8189),d=l(8421),_=l(515),u=l(3269),s=l(188);function v(...C){const D=(0,u.yG)(C),p=(0,u._6)(C,1/0),y=C;return y.length?1===y.length?(0,d.Xf)(y[0]):(0,i.J)(p)((0,s.D)(y,D)):_.E}},9646:(Be,m,l)=>{"use strict";l.d(m,{of:()=>_});var i=l(3269),d=l(188);function _(...u){const s=(0,i.yG)(u);return(0,d.D)(u,s)}},2843:(Be,m,l)=>{"use strict";l.d(m,{_:()=>_});var i=l(9751),d=l(576);function _(u,s){const v=(0,d.m)(u)?u:()=>u,C=D=>D.error(v());return new i.y(s?D=>s.schedule(C,0,D):C)}},2805:(Be,m,l)=>{"use strict";l.d(m,{H:()=>s});var i=l(9751),d=l(4986),_=l(3532),u=l(1165);function s(v=0,C,D=d.P){let p=-1;return null!=C&&((0,_.K)(C)?D=C:p=C),new i.y(y=>{let I=(0,u.q)(v)?+v-D.now():v;I<0&&(I=0);let O=0;return D.schedule(function(){y.closed||(y.next(O++),0<=p?this.schedule(void 0,p):y.complete())},I)})}},5403:(Be,m,l)=>{"use strict";l.d(m,{Q:()=>d});var i=l(930);class d extends i.Lv{constructor(u,s,v,C,D){super(u),this.onFinalize=D,this._next=s?function(p){try{s(p)}catch(y){u.error(y)}}:super._next,this._error=C?function(p){try{C(p)}catch(y){u.error(y)}finally{this.unsubscribe()}}:super._error,this._complete=v?function(){try{v()}catch(p){u.error(p)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var u;const{closed:s}=this;super.unsubscribe(),!s&&(null===(u=this.onFinalize)||void 0===u||u.call(this))}}},5615:(Be,m,l)=>{"use strict";l.d(m,{U:()=>u});var i=l(4482),d=l(8421),_=l(5403);function u(s){return(0,i.e)((v,C)=>{let D=!1,p=null,y=null,I=!1;const O=()=>{if(null==y||y.unsubscribe(),y=null,D){D=!1;const k=p;p=null,C.next(k)}I&&C.complete()},w=()=>{y=null,I&&C.complete()};v.subscribe(new _.Q(C,k=>{D=!0,p=k,y||(0,d.Xf)(s(k)).subscribe(y=new _.Q(C,O,w))},()=>{I=!0,(!D||!y||y.closed)&&C.complete()}))})}},453:(Be,m,l)=>{"use strict";l.d(m,{e:()=>u});var i=l(4986),d=l(5615),_=l(2805);function u(s,v=i.z){return(0,d.U)(()=>(0,_.H)(s,v))}},262:(Be,m,l)=>{"use strict";l.d(m,{K:()=>u});var i=l(8421),d=l(5403),_=l(4482);function u(s){return(0,_.e)((v,C)=>{let y,D=null,p=!1;D=v.subscribe(new d.Q(C,void 0,void 0,I=>{y=(0,i.Xf)(s(I,u(s)(v))),D?(D.unsubscribe(),D=null,y.subscribe(C)):p=!0})),p&&(D.unsubscribe(),D=null,y.subscribe(C))})}},7886:(Be,m,l)=>{"use strict";l.d(m,{u:()=>d});var i=l(8189);function d(){return(0,i.J)(1)}},4351:(Be,m,l)=>{"use strict";l.d(m,{b:()=>_});var i=l(6099),d=l(576);function _(u,s){return(0,d.m)(s)?(0,i.z)(u,s,1):(0,i.z)(u,1)}},8372:(Be,m,l)=>{"use strict";l.d(m,{b:()=>u});var i=l(4986),d=l(4482),_=l(5403);function u(s,v=i.z){return(0,d.e)((C,D)=>{let p=null,y=null,I=null;const O=()=>{if(p){p.unsubscribe(),p=null;const k=y;y=null,D.next(k)}};function w(){const k=I+s,V=v.now();if(V<k)return p=this.schedule(void 0,k-V),void D.add(p);O()}C.subscribe(new _.Q(D,k=>{y=k,I=v.now(),p||(p=v.schedule(w,s),D.add(p))},()=>{O(),D.complete()},void 0,()=>{y=p=null}))})}},4326:(Be,m,l)=>{"use strict";l.d(m,{g:()=>u});var i=l(4986),d=l(1260),_=l(2805);function u(s,v=i.z){const C=(0,_.H)(s,v);return(0,d.j)(()=>C)}},1260:(Be,m,l)=>{"use strict";l.d(m,{j:()=>v});var i=l(1350),d=l(5698),_=l(8502),u=l(9718),s=l(6099);function v(C,D){return D?p=>(0,i.z)(D.pipe((0,d.q)(1),(0,_.l)()),p.pipe(v(C))):(0,s.z)((p,y)=>C(p,y).pipe((0,d.q)(1),(0,u.h)(p)))}},1884:(Be,m,l)=>{"use strict";l.d(m,{x:()=>u});var i=l(4671),d=l(4482),_=l(5403);function u(v,C=i.y){return v=null!=v?v:s,(0,d.e)((D,p)=>{let y,I=!0;D.subscribe(new _.Q(p,O=>{const w=C(O);(I||!v(y,w))&&(I=!1,y=w,p.next(O))}))})}function s(v,C){return v===C}},9300:(Be,m,l)=>{"use strict";l.d(m,{h:()=>_});var i=l(4482),d=l(5403);function _(u,s){return(0,i.e)((v,C)=>{let D=0;v.subscribe(new d.Q(C,p=>u.call(s,p,D++)&&C.next(p)))})}},8746:(Be,m,l)=>{"use strict";l.d(m,{x:()=>d});var i=l(4482);function d(_){return(0,i.e)((u,s)=>{try{u.subscribe(s)}finally{s.add(_)}})}},8502:(Be,m,l)=>{"use strict";l.d(m,{l:()=>u});var i=l(4482),d=l(5403),_=l(5032);function u(){return(0,i.e)((s,v)=>{s.subscribe(new d.Q(v,_.Z))})}},4004:(Be,m,l)=>{"use strict";l.d(m,{U:()=>_});var i=l(4482),d=l(5403);function _(u,s){return(0,i.e)((v,C)=>{let D=0;v.subscribe(new d.Q(C,p=>{C.next(u.call(s,p,D++))}))})}},9718:(Be,m,l)=>{"use strict";l.d(m,{h:()=>d});var i=l(4004);function d(_){return(0,i.U)(()=>_)}},8189:(Be,m,l)=>{"use strict";l.d(m,{J:()=>_});var i=l(6099),d=l(4671);function _(u=1/0){return(0,i.z)(d.y,u)}},2733:(Be,m,l)=>{"use strict";l.d(m,{p:()=>u});var i=l(8421),d=l(9672),_=l(5403);function u(s,v,C,D,p,y,I,O){const w=[];let k=0,V=0,ue=!1;const $=()=>{ue&&!w.length&&!k&&v.complete()},ne=fe=>k<D?De(fe):w.push(fe),De=fe=>{y&&v.next(fe),k++;let _e=!1;(0,i.Xf)(C(fe,V++)).subscribe(new _.Q(v,le=>{null==p||p(le),y?ne(le):v.next(le)},()=>{_e=!0},void 0,()=>{if(_e)try{for(k--;w.length&&k<D;){const le=w.shift();I?(0,d.f)(v,I,()=>De(le)):De(le)}$()}catch(le){v.error(le)}}))};return s.subscribe(new _.Q(v,ne,()=>{ue=!0,$()})),()=>{null==O||O()}}},6099:(Be,m,l)=>{"use strict";l.d(m,{z:()=>v});var i=l(4004),d=l(8421),_=l(4482),u=l(2733),s=l(576);function v(C,D,p=1/0){return(0,s.m)(D)?v((y,I)=>(0,i.U)((O,w)=>D(y,O,I,w))((0,d.Xf)(C(y,I))),p):("number"==typeof D&&(p=D),(0,_.e)((y,I)=>(0,u.p)(y,I,C,p)))}},5363:(Be,m,l)=>{"use strict";l.d(m,{Q:()=>u});var i=l(9672),d=l(4482),_=l(5403);function u(s,v=0){return(0,d.e)((C,D)=>{C.subscribe(new _.Q(D,p=>(0,i.f)(D,s,()=>D.next(p),v),()=>(0,i.f)(D,s,()=>D.complete(),v),p=>(0,i.f)(D,s,()=>D.error(p),v)))})}},3099:(Be,m,l)=>{"use strict";l.d(m,{B:()=>v});var i=l(188),d=l(5698),_=l(6758),u=l(930),s=l(4482);function v(D={}){const{connector:p=(()=>new _.x),resetOnError:y=!0,resetOnComplete:I=!0,resetOnRefCountZero:O=!0}=D;return w=>{let k=null,V=null,ue=null,$=0,ne=!1,De=!1;const fe=()=>{null==V||V.unsubscribe(),V=null},_e=()=>{fe(),k=ue=null,ne=De=!1},le=()=>{const Se=k;_e(),null==Se||Se.unsubscribe()};return(0,s.e)((Se,Le)=>{$++,!De&&!ne&&fe();const Xe=ue=null!=ue?ue:p();Le.add(()=>{$--,0===$&&!De&&!ne&&(V=C(le,O))}),Xe.subscribe(Le),k||(k=new u.Hp({next:lt=>Xe.next(lt),error:lt=>{De=!0,fe(),V=C(_e,y,lt),Xe.error(lt)},complete:()=>{ne=!0,fe(),V=C(_e,I),Xe.complete()}}),(0,i.D)(Se).subscribe(k))})(w)}}function C(D,p,...y){return!0===p?(D(),null):!1===p?null:p(...y).pipe((0,d.q)(1)).subscribe(()=>D())}},5684:(Be,m,l)=>{"use strict";l.d(m,{T:()=>d});var i=l(9300);function d(_){return(0,i.h)((u,s)=>_<=s)}},8675:(Be,m,l)=>{"use strict";l.d(m,{O:()=>u});var i=l(1350),d=l(3269),_=l(4482);function u(...s){const v=(0,d.yG)(s);return(0,_.e)((C,D)=>{(v?(0,i.z)(s,C,v):(0,i.z)(s,C)).subscribe(D)})}},9468:(Be,m,l)=>{"use strict";l.d(m,{R:()=>d});var i=l(4482);function d(_,u=0){return(0,i.e)((s,v)=>{v.add(_.schedule(()=>s.subscribe(v),u))})}},3900:(Be,m,l)=>{"use strict";l.d(m,{w:()=>u});var i=l(8421),d=l(4482),_=l(5403);function u(s,v){return(0,d.e)((C,D)=>{let p=null,y=0,I=!1;const O=()=>I&&!p&&D.complete();C.subscribe(new _.Q(D,w=>{null==p||p.unsubscribe();let k=0;const V=y++;(0,i.Xf)(s(w,V)).subscribe(p=new _.Q(D,ue=>D.next(v?v(w,ue,V,k++):ue),()=>{p=null,O()}))},()=>{I=!0,O()}))})}},5698:(Be,m,l)=>{"use strict";l.d(m,{q:()=>u});var i=l(515),d=l(4482),_=l(5403);function u(s){return s<=0?()=>i.E:(0,d.e)((v,C)=>{let D=0;v.subscribe(new _.Q(C,p=>{++D<=s&&(C.next(p),s<=D&&C.complete())}))})}},2722:(Be,m,l)=>{"use strict";l.d(m,{R:()=>s});var i=l(4482),d=l(5403),_=l(8421),u=l(5032);function s(v){return(0,i.e)((C,D)=>{(0,_.Xf)(v).subscribe(new d.Q(D,()=>D.complete(),u.Z)),!D.closed&&C.subscribe(D)})}},8505:(Be,m,l)=>{"use strict";l.d(m,{b:()=>s});var i=l(576),d=l(4482),_=l(5403),u=l(4671);function s(v,C,D){const p=(0,i.m)(v)||C||D?{next:v,error:C,complete:D}:v;return p?(0,d.e)((y,I)=>{var O;null===(O=p.subscribe)||void 0===O||O.call(p);let w=!0;y.subscribe(new _.Q(I,k=>{var V;null===(V=p.next)||void 0===V||V.call(p,k),I.next(k)},()=>{var k;w=!1,null===(k=p.complete)||void 0===k||k.call(p),I.complete()},k=>{var V;w=!1,null===(V=p.error)||void 0===V||V.call(p,k),I.error(k)},()=>{var k,V;w&&(null===(k=p.unsubscribe)||void 0===k||k.call(p)),null===(V=p.finalize)||void 0===V||V.call(p)}))}):u.y}},6340:(Be,m,l)=>{"use strict";l.d(m,{Q:()=>s});var i=l(9751),d=l(2202),_=l(576),u=l(9672);function s(v,C){return new i.y(D=>{let p;return(0,u.f)(D,C,()=>{p=v[d.h](),(0,u.f)(D,C,()=>{let y,I;try{({value:y,done:I}=p.next())}catch(O){return void D.error(O)}I?D.complete():D.next(y)},0,!0)}),()=>(0,_.m)(null==p?void 0:p.return)&&p.return()})}},3762:(Be,m,l)=>{"use strict";l.d(m,{x:()=>De});var i=l(8421),d=l(5363),_=l(9468),v=l(9751),D=l(6340),p=l(9672);function y(fe,_e){if(!fe)throw new Error("Iterable cannot be null");return new v.y(le=>{(0,p.f)(le,_e,()=>{const Se=fe[Symbol.asyncIterator]();(0,p.f)(le,_e,()=>{Se.next().then(Le=>{Le.done?le.complete():le.next(Le.value)})},0,!0)})})}var I=l(3670),O=l(8239),w=l(1144),k=l(6495),V=l(2206),ue=l(4532),$=l(3260);function De(fe,_e){if(null!=fe){if((0,I.c)(fe))return function u(fe,_e){return(0,i.Xf)(fe).pipe((0,_.R)(_e),(0,d.Q)(_e))}(fe,_e);if((0,w.z)(fe))return function C(fe,_e){return new v.y(le=>{let Se=0;return _e.schedule(function(){Se===fe.length?le.complete():(le.next(fe[Se++]),le.closed||this.schedule())})})}(fe,_e);if((0,O.t)(fe))return function s(fe,_e){return(0,i.Xf)(fe).pipe((0,_.R)(_e),(0,d.Q)(_e))}(fe,_e);if((0,V.D)(fe))return y(fe,_e);if((0,k.T)(fe))return(0,D.Q)(fe,_e);if((0,$.L)(fe))return function ne(fe,_e){return y((0,$.Q)(fe),_e)}(fe,_e)}throw(0,ue.z)(fe)}},4408:(Be,m,l)=>{"use strict";l.d(m,{o:()=>s});var i=l(6921);class d extends i.w0{constructor(C,D){super()}schedule(C,D=0){return this}}const _={setInterval(...v){const{delegate:C}=_;return((null==C?void 0:C.setInterval)||setInterval)(...v)},clearInterval(v){const{delegate:C}=_;return((null==C?void 0:C.clearInterval)||clearInterval)(v)},delegate:void 0};var u=l(8737);class s extends d{constructor(C,D){super(C,D),this.scheduler=C,this.work=D,this.pending=!1}schedule(C,D=0){if(this.closed)return this;this.state=C;const p=this.id,y=this.scheduler;return null!=p&&(this.id=this.recycleAsyncId(y,p,D)),this.pending=!0,this.delay=D,this.id=this.id||this.requestAsyncId(y,this.id,D),this}requestAsyncId(C,D,p=0){return _.setInterval(C.flush.bind(C,this),p)}recycleAsyncId(C,D,p=0){if(null!=p&&this.delay===p&&!1===this.pending)return D;_.clearInterval(D)}execute(C,D){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const p=this._execute(C,D);if(p)return p;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(C,D){let y,p=!1;try{this.work(C)}catch(I){p=!0,y=I||new Error("Scheduled action threw falsy error")}if(p)return this.unsubscribe(),y}unsubscribe(){if(!this.closed){const{id:C,scheduler:D}=this,{actions:p}=D;this.work=this.state=this.scheduler=null,this.pending=!1,(0,u.P)(p,this),null!=C&&(this.id=this.recycleAsyncId(D,C,null)),this.delay=null,super.unsubscribe()}}}},8950:(Be,m,l)=>{"use strict";l.d(m,{v:()=>d});var i=l(6646);class d extends i.b{constructor(u,s=i.b.now){super(u,s),this.actions=[],this._active=!1,this._scheduled=void 0}flush(u){const{actions:s}=this;if(this._active)return void s.push(u);let v;this._active=!0;do{if(v=u.execute(u.state,u.delay))break}while(u=s.shift());if(this._active=!1,v){for(;u=s.shift();)u.unsubscribe();throw v}}}},29:(Be,m,l)=>{"use strict";l.d(m,{r:()=>C,Z:()=>v});var i=l(4408),d=l(3399),u=l(8950);const v=new class s extends u.v{flush(p){this._active=!0;const y=this._scheduled;this._scheduled=void 0;const{actions:I}=this;let O;p=p||I.shift();do{if(O=p.execute(p.state,p.delay))break}while((p=I[0])&&p.id===y&&I.shift());if(this._active=!1,O){for(;(p=I[0])&&p.id===y&&I.shift();)p.unsubscribe();throw O}}}(class _ extends i.o{constructor(p,y){super(p,y),this.scheduler=p,this.work=y}requestAsyncId(p,y,I=0){return null!==I&&I>0?super.requestAsyncId(p,y,I):(p.actions.push(this),p._scheduled||(p._scheduled=d.l.requestAnimationFrame(()=>p.flush(void 0))))}recycleAsyncId(p,y,I=0){if(null!=I&&I>0||null==I&&this.delay>0)return super.recycleAsyncId(p,y,I);p.actions.some(O=>O.id===y)||(d.l.cancelAnimationFrame(y),p._scheduled=void 0)}}),C=v},3399:(Be,m,l)=>{"use strict";l.d(m,{l:()=>d});var i=l(6921);const d={schedule(_){let u=requestAnimationFrame,s=cancelAnimationFrame;const{delegate:v}=d;v&&(u=v.requestAnimationFrame,s=v.cancelAnimationFrame);const C=u(D=>{s=void 0,_(D)});return new i.w0(()=>null==s?void 0:s(C))},requestAnimationFrame(..._){const{delegate:u}=d;return((null==u?void 0:u.requestAnimationFrame)||requestAnimationFrame)(..._)},cancelAnimationFrame(..._){const{delegate:u}=d;return((null==u?void 0:u.cancelAnimationFrame)||cancelAnimationFrame)(..._)},delegate:void 0}},3101:(Be,m,l)=>{"use strict";l.d(m,{e:()=>V,E:()=>k});var i=l(4408);let _,d=1;const u={};function s(ue){return ue in u&&(delete u[ue],!0)}const v={setImmediate(ue){const $=d++;return u[$]=!0,_||(_=Promise.resolve()),_.then(()=>s($)&&ue()),$},clearImmediate(ue){s(ue)}},{setImmediate:D,clearImmediate:p}=v,y={setImmediate(...ue){const{delegate:$}=y;return((null==$?void 0:$.setImmediate)||D)(...ue)},clearImmediate(ue){const{delegate:$}=y;return((null==$?void 0:$.clearImmediate)||p)(ue)},delegate:void 0};var O=l(8950);const k=new class w extends O.v{flush($){this._active=!0;const ne=this._scheduled;this._scheduled=void 0;const{actions:De}=this;let fe;$=$||De.shift();do{if(fe=$.execute($.state,$.delay))break}while(($=De[0])&&$.id===ne&&De.shift());if(this._active=!1,fe){for(;($=De[0])&&$.id===ne&&De.shift();)$.unsubscribe();throw fe}}}(class I extends i.o{constructor($,ne){super($,ne),this.scheduler=$,this.work=ne}requestAsyncId($,ne,De=0){return null!==De&&De>0?super.requestAsyncId($,ne,De):($.actions.push(this),$._scheduled||($._scheduled=y.setImmediate($.flush.bind($,void 0))))}recycleAsyncId($,ne,De=0){if(null!=De&&De>0||null==De&&this.delay>0)return super.recycleAsyncId($,ne,De);$.actions.some(fe=>fe.id===ne)||(y.clearImmediate(ne),$._scheduled=void 0)}}),V=k},4986:(Be,m,l)=>{"use strict";l.d(m,{z:()=>_,P:()=>u});var i=l(4408);const _=new(l(8950).v)(i.o),u=_},6063:(Be,m,l)=>{"use strict";l.d(m,{l:()=>i});const i={now:()=>(i.delegate||Date).now(),delegate:void 0}},3410:(Be,m,l)=>{"use strict";l.d(m,{z:()=>i});const i={setTimeout(...d){const{delegate:_}=i;return((null==_?void 0:_.setTimeout)||setTimeout)(...d)},clearTimeout(d){const{delegate:_}=i;return((null==_?void 0:_.clearTimeout)||clearTimeout)(d)},delegate:void 0}},2202:(Be,m,l)=>{"use strict";l.d(m,{h:()=>d});const d=function i(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(Be,m,l)=>{"use strict";l.d(m,{L:()=>i});const i="function"==typeof Symbol&&Symbol.observable||"@@observable"},7448:(Be,m,l)=>{"use strict";l.d(m,{N:()=>d});const d=(0,l(3888).d)(_=>function(){_(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"})},7896:(Be,m,l)=>{"use strict";l.d(m,{B:()=>d});const d=(0,l(3888).d)(_=>function(s){_(this),this.message=s?`${s.length} errors occurred during unsubscription:\n${s.map((v,C)=>`${C+1}) ${v.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=s})},3269:(Be,m,l)=>{"use strict";l.d(m,{jO:()=>u,yG:()=>s,_6:()=>v});var i=l(576),d=l(3532);function _(C){return C[C.length-1]}function u(C){return(0,i.m)(_(C))?C.pop():void 0}function s(C){return(0,d.K)(_(C))?C.pop():void 0}function v(C,D){return"number"==typeof _(C)?C.pop():D}},4742:(Be,m,l)=>{"use strict";l.d(m,{D:()=>s});const{isArray:i}=Array,{getPrototypeOf:d,prototype:_,keys:u}=Object;function s(C){if(1===C.length){const D=C[0];if(i(D))return{args:D,keys:null};if(function v(C){return C&&"object"==typeof C&&d(C)===_}(D)){const p=u(D);return{args:p.map(y=>D[y]),keys:p}}}return{args:C,keys:null}}},8737:(Be,m,l)=>{"use strict";function i(d,_){if(d){const u=d.indexOf(_);0<=u&&d.splice(u,1)}}l.d(m,{P:()=>i})},3888:(Be,m,l)=>{"use strict";function i(d){const u=d(s=>{Error.call(s),s.stack=(new Error).stack});return u.prototype=Object.create(Error.prototype),u.prototype.constructor=u,u}l.d(m,{d:()=>i})},1810:(Be,m,l)=>{"use strict";function i(d,_){return d.reduce((u,s,v)=>(u[s]=_[v],u),{})}l.d(m,{n:()=>i})},2806:(Be,m,l)=>{"use strict";l.d(m,{x:()=>_,O:()=>u});var i=l(2416);let d=null;function _(s){if(i.v.useDeprecatedSynchronousErrorHandling){const v=!d;if(v&&(d={errorThrown:!1,error:null}),s(),v){const{errorThrown:C,error:D}=d;if(d=null,C)throw D}}else s()}function u(s){i.v.useDeprecatedSynchronousErrorHandling&&d&&(d.errorThrown=!0,d.error=s)}},9672:(Be,m,l)=>{"use strict";function i(d,_,u,s=0,v=!1){const C=_.schedule(function(){u(),v?d.add(this.schedule(null,s)):this.unsubscribe()},s);if(d.add(C),!v)return C}l.d(m,{f:()=>i})},4671:(Be,m,l)=>{"use strict";function i(d){return d}l.d(m,{y:()=>i})},1144:(Be,m,l)=>{"use strict";l.d(m,{z:()=>i});const i=d=>d&&"number"==typeof d.length&&"function"!=typeof d},2206:(Be,m,l)=>{"use strict";l.d(m,{D:()=>d});var i=l(576);function d(_){return Symbol.asyncIterator&&(0,i.m)(null==_?void 0:_[Symbol.asyncIterator])}},1165:(Be,m,l)=>{"use strict";function i(d){return d instanceof Date&&!isNaN(d)}l.d(m,{q:()=>i})},576:(Be,m,l)=>{"use strict";function i(d){return"function"==typeof d}l.d(m,{m:()=>i})},3670:(Be,m,l)=>{"use strict";l.d(m,{c:()=>_});var i=l(8822),d=l(576);function _(u){return(0,d.m)(u[i.L])}},6495:(Be,m,l)=>{"use strict";l.d(m,{T:()=>_});var i=l(2202),d=l(576);function _(u){return(0,d.m)(null==u?void 0:u[i.h])}},5191:(Be,m,l)=>{"use strict";l.d(m,{b:()=>_});var i=l(9751),d=l(576);function _(u){return!!u&&(u instanceof i.y||(0,d.m)(u.lift)&&(0,d.m)(u.subscribe))}},8239:(Be,m,l)=>{"use strict";l.d(m,{t:()=>d});var i=l(576);function d(_){return(0,i.m)(null==_?void 0:_.then)}},3260:(Be,m,l)=>{"use strict";l.d(m,{Q:()=>_,L:()=>u});var i=l(655),d=l(576);function _(s){return(0,i.__asyncGenerator)(this,arguments,function*(){const C=s.getReader();try{for(;;){const{value:D,done:p}=yield(0,i.__await)(C.read());if(p)return yield(0,i.__await)(void 0);yield yield(0,i.__await)(D)}}finally{C.releaseLock()}})}function u(s){return(0,d.m)(null==s?void 0:s.getReader)}},3532:(Be,m,l)=>{"use strict";l.d(m,{K:()=>d});var i=l(576);function d(_){return _&&(0,i.m)(_.schedule)}},4482:(Be,m,l)=>{"use strict";l.d(m,{A:()=>d,e:()=>_});var i=l(576);function d(u){return(0,i.m)(null==u?void 0:u.lift)}function _(u){return s=>{if(d(s))return s.lift(function(v){try{return u(v,this)}catch(C){this.error(C)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(Be,m,l)=>{"use strict";l.d(m,{Z:()=>u});var i=l(4004);const{isArray:d}=Array;function u(s){return(0,i.U)(v=>function _(s,v){return d(v)?s(...v):s(v)}(s,v))}},5032:(Be,m,l)=>{"use strict";function i(){}l.d(m,{Z:()=>i})},9635:(Be,m,l)=>{"use strict";l.d(m,{z:()=>d,U:()=>_});var i=l(4671);function d(...u){return _(u)}function _(u){return 0===u.length?i.y:1===u.length?u[0]:function(v){return u.reduce((C,D)=>D(C),v)}}},7849:(Be,m,l)=>{"use strict";l.d(m,{h:()=>_});var i=l(2416),d=l(3410);function _(u){d.z.setTimeout(()=>{const{onUnhandledError:s}=i.v;if(!s)throw u;s(u)})}},4532:(Be,m,l)=>{"use strict";function i(d){return new TypeError(`You provided ${null!==d&&"object"==typeof d?"an invalid object":`'${d}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}l.d(m,{z:()=>i})},3642:(Be,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.generateRxMethod=m.generateMethodSignature=m.generateErrorClass=m.generateClass=m.generateErrorType=m.generateEnum=m.generateJsonRepresentation=m.mangle=m.generateSwiftTypeName=void 0;const i=l(6676);function d(w){switch(w.constructor){case i.IntPrimitiveType:return"Int";case i.UIntPrimitiveType:return"UInt";case i.MoneyPrimitiveType:return"Int64";case i.FloatPrimitiveType:return"Double";case i.BigIntPrimitiveType:return"Decimal";case i.DatePrimitiveType:case i.DateTimePrimitiveType:return"Date";case i.BoolPrimitiveType:return"Bool";case i.BytesPrimitiveType:return"Data";case i.StringPrimitiveType:case i.CpfPrimitiveType:case i.CnpjPrimitiveType:case i.EmailPrimitiveType:case i.HtmlPrimitiveType:case i.UuidPrimitiveType:case i.HexPrimitiveType:case i.UrlPrimitiveType:case i.Base64PrimitiveType:case i.XmlPrimitiveType:return"String";case i.VoidPrimitiveType:return"Void";case i.JsonPrimitiveType:return"AnyCodable";case i.OptionalType:return`${d(w.base)}?`;case i.ArrayType:return`[${d(w.base)}]`;case i.StructType:case i.EnumType:return`API.${w.name}`;case i.TypeReference:return d(w.type);default:throw new Error(`BUG: generateSwiftTypeName with ${w.constructor.name}`)}}function _(w){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(w)?`_${w}`:w}function u(w,k){switch(w.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`${k}`;case i.OptionalType:return`${k} == nil ? nil : ${u(w.base,`${k}!`)}`;case i.DatePrimitiveType:return`SdkgenHelper.encodeDate(date: ${k})`;case i.DateTimePrimitiveType:return`SdkgenHelper.encodeDateTime(date: ${k})`;case i.EnumType:return`${k}.rawValue`;case i.TypeReference:return`${u(w.type,`${k}`)}`;case i.StructType:return`${k}.toJSON()`;case i.ArrayType:return`${k}.map({ return ${u(w.base,"$0")} })`;case i.JsonPrimitiveType:return`try? ${k}.toJson()`;case i.VoidPrimitiveType:return"nil";case i.BytesPrimitiveType:return`${k}.base64EncodedString()`;default:throw new Error(`BUG: No result found for generateJsonRepresentation with ${w.constructor.name}`)}}m.generateSwiftTypeName=d,m.mangle=_,m.generateJsonRepresentation=u,m.generateEnum=function s(w){let k=` public enum ${w.name}: String, Codable {\n`;return k+=w.values.map(V=>` case ${_(V.value)} = "${V.value}"`).join("\n"),k+="\n }\n",k},m.generateErrorType=function v(w){let k=" public enum ErrorType: String, Codable {\n";return k+=w.map(V=>` case ${_(V)} = "${V}"`).join("\n"),k+="\n }\n",k},m.generateClass=function p(w){return` public struct ${w.name}: Codable {\n${w.fields.map(k=>` var ${_(k.name)}: ${d(k.type)}`).join("\n")}\n\n${function C(w){let k=" init(";return k+=w.fields.map(V=>`${_(V.name)}: ${d(V.type)}`).join(", "),k+=") {\n",k+=w.fields.map(V=>` self.${_(V.name)} = ${_(V.name)}`).join("\n"),k+="\n }\n",k}(w)}\n${function D(w){let k=" func toJSON() -> [String: Any] {\n";return k+=" var json = [String: Any]()\n",k+=w.fields.map(V=>` json["${_(V.name)}"] = ${u(V.type,V.name)}`).join("\n"),k+="\n return json",k+="\n }\n",k}(w)}\n }\n`},m.generateErrorClass=function y(){return" public class Failure: Error {\n var message: String?\n var code: Int?\n var type: ErrorType?\n \n init(message: String?, code: Int?, type: String?) {\n self.message = message\n self.code = code\n if let typeString = type {\n self.type = ErrorType(rawValue: typeString) ?? nil\n }\n }\n }\n"},m.generateMethodSignature=function I(w){const k=w.args.map(V=>`${_(V.name)}: ${d(V.type)}`).concat(["timeoutSeconds: Double?",`callback: ((_ result: ${w.returnType instanceof i.VoidPrimitiveType?"API.Result<API.NoReply>":`API.Result<${d(w.returnType)}>`}) -> Void)?`]);return` func ${_(w.name)}(${k.join(", ")})`},m.generateRxMethod=function O(w){const k=w.args.map(ue=>`${_(ue.name)}: ${d(ue.type)}`).concat(["timeoutSeconds: Double? = nil"]);let V=` static func ${_(w.name)}(${k.join(", ")}) -> ${w.returnType instanceof i.VoidPrimitiveType?"Observable<API.Result<API.NoReply>>":`Observable<API.Result<${d(w.returnType)}>>`} {\n`;return V+=" return Observable.create { observer -> Disposable in\n",V+=` API.calls.${_(w.name)}(${w.args.map(ue=>`${_(ue.name)}: ${_(ue.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(Be,m,l){"use strict";var i=this&&this.__createBinding||(Object.create?function(_,u,s,v){void 0===v&&(v=s),Object.defineProperty(_,v,{enumerable:!0,get:function(){return u[s]}})}:function(_,u,s,v){void 0===v&&(v=s),_[v]=u[s]}),d=this&&this.__exportStar||function(_,u){for(var s in _)"default"!==s&&!Object.prototype.hasOwnProperty.call(u,s)&&i(u,_,s)};Object.defineProperty(m,"__esModule",{value:!0}),d(l(7636),m)},7636:(Be,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.generateSwiftClientSource=void 0;const i=l(6676),d=l(3642);m.generateSwiftClientSource=function _(u,s){let v="import Foundation\nimport SdkgenRuntime\n";v+=s?"import RxSwift\nimport RxCocoa\n\n":"\n",v+="protocol APICallsProtocol {\n",v+=u.operations.filter(p=>p.annotations.every(y=>!(y instanceof i.HiddenAnnotation))).map(p=>`${(0,d.generateMethodSignature)(p)}`).join("\n"),v+="\n}\n\n",v+='class API: SdkgenResponse {\n\n static var calls: APICallsProtocol = Calls(baseUrl: "")\n static var baseUrl: String? {\n didSet {\n self.calls = Calls(baseUrl: baseUrl ?? "")\n }\n }\n \n override init() {\n super.init()\n }\n\n';for(const p of u.enumTypes)v+=(0,d.generateEnum)(p),v+="\n";for(const p of u.structTypes)v+=(0,d.generateClass)(p),v+="\n";const C=[],D=new i.ErrorNode("Connection",new i.VoidPrimitiveType);C.push(D.name);for(const p of u.errors)C.push(p.name);return C.length>0&&(v+=(0,d.generateErrorType)(C),v+="\n"),v+=(0,d.generateErrorClass)(),v+="\n",v+=" public enum Result<T> {\n case success(T)\n case failure(Failure)\n }\n\n",v+=" public class Calls: SdkgenHttpClient, APICallsProtocol {\n\n override init(baseUrl: String) {\n super.init(baseUrl: baseUrl)\n }\n\n",v+=u.operations.filter(p=>p.annotations.every(y=>!(y instanceof i.HiddenAnnotation))).map(p=>{let y="";return y+=` ${(0,d.generateMethodSignature)(p)} {\n`,p.args.length>0?(y+=" var jsonArgs = [String: Any]()\n",y+=p.args.map(I=>` jsonArgs["${(0,d.mangle)(I.name)}"] = ${(0,d.generateJsonRepresentation)(I.type,(0,d.mangle)(I.name))}`).join("\n")):y+=" let jsonArgs = [String: Any]()",y+="\n\n",y+=` request("${p.name}", jsonArgs, timeoutSeconds, completion: { (value: ${p.returnType instanceof i.VoidPrimitiveType?"API.NoReply":(0,d.generateSwiftTypeName)(p.returnType)}) in\n`,y+=" callback?(API.Result.success(value))\n",y+=" }, onError: { error in\n",y+=" callback?(API.Result.failure(API.Failure(message: error.message, code: error.code, type: error.type)))\n",y+=" })",y+="\n }\n",y}).join("\n"),v+=" }\n",v+="}\n",s&&(v+="\n",v+="extension API: ReactiveCompatible {}\n\n",v+="extension Reactive where Base: API {\n",v+=u.operations.filter(p=>p.annotations.every(y=>!(y instanceof i.HiddenAnnotation))).map(p=>`${(0,d.generateRxMethod)(p)}`).join("\n"),v+="}\n"),v}},8173:(Be,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.generateBrowserClientSource=void 0;const i=l(6676),d=l(5596);m.generateBrowserClientSource=function _(u){let s="";s+=`/* eslint-disable */\nimport { SdkgenError${u.errors.some(C=>!(C.dataType instanceof i.VoidPrimitiveType))?", SdkgenErrorWithData":""}, SdkgenHttpClient } from "@sdkgen/browser-runtime";\n\n`;for(const C of u.enumTypes)s+=(0,d.generateTypescriptEnum)(C),s+="\n";for(const C of u.structTypes)s+=(0,d.generateTypescriptInterface)(C,!0),s+="\n";for(const C of u.errors)s+=(0,d.generateTypescriptErrorClass)(C,!0),s+="\n";return s+=`export class ApiClient extends SdkgenHttpClient {\n constructor(baseUrl: string) {\n super(baseUrl, astJson, errClasses);\n }\n${u.operations.filter(C=>C.annotations.every(D=>!(D instanceof i.HiddenAnnotation))).map(C=>`\n ${C.name}(args${0===C.args.length?"?":""}: {${C.args.map(D=>`${D.name}${D.type.name.endsWith("?")?"?":""}: ${(0,d.generateTypescriptTypeName)(D.type,!0)}`).join(", ")}}): Promise<${(0,d.generateTypescriptTypeName)(C.returnType,!0)}> { return this.makeRequest("${C.name}", args || {}); }`).join("")}\n}\n\n`,s+=`const errClasses = {\n${u.errors.map(C=>` ${C.name}`).join(",\n")}\n};\n\n`,s+=`const astJson = ${JSON.stringify((0,i.astToJson)(u),null,4).replace(/"(?<key>\w+)":/gu,"$<key>:")} as const;\n`,s}},5596:(Be,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.clearForLogging=m.generateTypescriptErrorClass=m.generateTypescriptEnum=m.generateTypescriptInterface=m.generateTypescriptTypeName=void 0;const i=l(6676);function d(C,D){switch(C.constructor){case i.IntPrimitiveType:case i.UIntPrimitiveType:case i.MoneyPrimitiveType:case i.FloatPrimitiveType:return"number";case i.BigIntPrimitiveType:return"bigint";case i.DatePrimitiveType:case i.DateTimePrimitiveType:return"Date";case i.BoolPrimitiveType:return"boolean";case i.BytesPrimitiveType:return D?"ArrayBuffer":"Buffer";case i.StringPrimitiveType:case i.CpfPrimitiveType:case i.CnpjPrimitiveType:case i.EmailPrimitiveType:case i.HtmlPrimitiveType:case i.UrlPrimitiveType:case i.UuidPrimitiveType:case i.HexPrimitiveType:case i.Base64PrimitiveType:case i.XmlPrimitiveType:return"string";case i.VoidPrimitiveType:return"void";case i.JsonPrimitiveType:return"any";case i.OptionalType:return`${d(C.base,D)} | null`;case i.ArrayType:{const{base:p}=C,y=d(p,D);return p instanceof i.OptionalType?`(${y})[]`:`${y}[]`}case i.StructType:case i.EnumType:return C.name;case i.TypeReference:return d(C.type,D);default:throw new Error(`BUG: generateTypescriptTypeName with ${C.constructor.name}`)}}m.generateTypescriptTypeName=d,m.generateTypescriptInterface=function _(C,D){return`export interface ${C.name} {\n${C.fields.map(p=>` ${p.name}: ${d(p.type,D)}`).join("\n")}\n}\n`},m.generateTypescriptEnum=function u(C){return C.hasStructValues?`export type ${C.name} = ${C.values.map(D=>D.struct?`({tag: "${D.value}"} & ${D.struct.name})`:`{tag: "${D.value}"}`).join(" | ")};\n`:`export type ${C.name} = ${C.values.map(D=>`"${D.value}"`).join(" | ")};\n`},m.generateTypescriptErrorClass=function s(C,D){return`export class ${C.name} extends ${C.dataType instanceof i.VoidPrimitiveType?"SdkgenError":`SdkgenErrorWithData<${d(C.dataType,D)}>`} {}\n`},m.clearForLogging=function v(C,D){switch(D.constructor){case i.TypeReference:return v(C,D.type);case i.OptionalType:{const p=v(C,D.base);return p?`if (${C} !== null && ${C} !== undefined) { ${p} }`:""}case i.ArrayType:{const p=v("el",D.base);return p?`for (const el of ${C}) { ${p} }`:""}case i.StructType:{const p=[];for(const y of D.fields)if(y.secret)p.push(`${C}.${y.name} = "<secret>";`);else{const I=v(`${C}.${y.name}`,y.type);I&&p.push(I)}return p.join(" ")}default:return""}}},2911:function(Be,m,l){"use strict";var i=this&&this.__createBinding||(Object.create?function(_,u,s,v){void 0===v&&(v=s),Object.defineProperty(_,v,{enumerable:!0,get:function(){return u[s]}})}:function(_,u,s,v){void 0===v&&(v=s),_[v]=u[s]}),d=this&&this.__exportStar||function(_,u){for(var s in _)"default"!==s&&!Object.prototype.hasOwnProperty.call(u,s)&&i(u,_,s)};Object.defineProperty(m,"__esModule",{value:!0}),d(l(8173),m),d(l(7538),m),d(l(1727),m),d(l(615),m)},7538:(Be,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.generateTypescriptInterfaces=void 0;const i=l(5596);m.generateTypescriptInterfaces=function d(_){let u="";for(const s of _.enumTypes)u+=(0,i.generateTypescriptEnum)(s);u+="\n";for(const s of _.structTypes)u+=(0,i.generateTypescriptInterface)(s,!1),u+="\n";return u}},1727:(Be,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.generateNodeClientSource=void 0;const i=l(6676),d=l(5596);m.generateNodeClientSource=function _(u){let s="";const v=u.errors.some(D=>!(D.dataType instanceof i.VoidPrimitiveType));s+=`/* eslint-disable */\nimport { Context, Fatal${u.errors.filter(D=>"Fatal"!==D.name).some(D=>D.dataType instanceof i.VoidPrimitiveType)?", SdkgenError":""}${v?", SdkgenErrorWithData":""}, SdkgenHttpClient } from "@sdkgen/node-runtime";\nimport { PartialDeep } from "type-fest";\nexport { Fatal } from "@sdkgen/node-runtime";\n\n`;for(const D of u.enumTypes)s+=(0,d.generateTypescriptEnum)(D),s+="\n";for(const D of u.structTypes)s+=(0,d.generateTypescriptInterface)(D,!1),s+="\n";for(const D of u.errors)"Fatal"!==D.name&&(s+=(0,d.generateTypescriptErrorClass)(D,!1),s+="\n");return s+=`export class ApiClient extends SdkgenHttpClient {\n constructor(baseUrl: string) {\n super(baseUrl, astJson, errClasses);\n }\n${u.operations.filter(D=>D.annotations.every(p=>!(p instanceof i.HiddenAnnotation))).map(D=>`\n ${D.name}(ctx: PartialDeep<Context> | null, args: {${D.args.map(p=>`${p.name}${p.type.name.endsWith("?")?"?":""}: ${(0,d.generateTypescriptTypeName)(p.type,!1)}`).join(", ")}}): Promise<${(0,d.generateTypescriptTypeName)(D.returnType,!1)}> { return this.makeRequest(ctx, "${D.name}", args); }`).join("")}\n}\n\n`,s+=`const errClasses = {\n${u.errors.map(D=>` ${D.name}`).join(",\n")}\n};\n\n`,s+=`const astJson = ${JSON.stringify((0,i.astToJson)(u),null,4).replace(/"(?<key>\w+)":/gu,"$<key>:")} as const;\n`,s}},615:(Be,m,l)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.generateNodeServerSource=void 0;const i=l(6676),d=l(5596);m.generateNodeServerSource=function _(u){let s="";const v=u.errors.some(D=>!(D.dataType instanceof i.VoidPrimitiveType));s+=`/* eslint-disable */\nimport { BaseApiConfig, Context, Fatal${u.errors.filter(D=>"Fatal"!==D.name).some(D=>D.dataType instanceof i.VoidPrimitiveType)?", SdkgenError":""}${v?", SdkgenErrorWithData":""} } from "@sdkgen/node-runtime";\nexport { Fatal } from "@sdkgen/node-runtime";\n\n`;for(const D of u.enumTypes)s+=(0,d.generateTypescriptEnum)(D),s+="\n";for(const D of u.structTypes)s+=(0,d.generateTypescriptInterface)(D,!1),s+="\n";for(const D of u.errors)"Fatal"!==D.name&&(s+=(0,d.generateTypescriptErrorClass)(D,!1),s+="\n");return s+=`export class ApiConfig<ExtraContextT> extends BaseApiConfig<ExtraContextT> {\n fn!: {${u.operations.map(D=>`\n ${D.name}: (ctx: Context & ExtraContextT, args: {${D.args.map(p=>`${p.name}: ${(0,d.generateTypescriptTypeName)(p.type,!1)}`).join(", ")}}) => Promise<${(0,d.generateTypescriptTypeName)(D.returnType,!1)}>`).join("")}\n }\n\n astJson = ${JSON.stringify((0,i.astToJson)(u),null,4).replace(/"(?<key>\w+)":/gu,"$<key>:").replace(/\n/gu,"\n ")} as const\n}\n\nexport const api = new ApiConfig<{}>();\n`,s}},8926:Be=>{function m(i,d,_,u,s,v,C){try{var D=i[v](C),p=D.value}catch(y){return void _(y)}D.done?d(p):Promise.resolve(p).then(u,s)}Be.exports=function l(i){return function(){var d=this,_=arguments;return new Promise(function(u,s){var v=i.apply(d,_);function C(p){m(v,u,s,C,D,"next",p)}function D(p){m(v,u,s,C,D,"throw",p)}C(void 0)})}},Be.exports.default=Be.exports,Be.exports.__esModule=!0},655:(Be,m,l)=>{"use strict";l.r(m),l.d(m,{__extends:()=>d,__assign:()=>_,__rest:()=>u,__decorate:()=>s,__param:()=>v,__metadata:()=>C,__awaiter:()=>D,__generator:()=>p,__createBinding:()=>y,__exportStar:()=>I,__values:()=>O,__read:()=>w,__spread:()=>k,__spreadArrays:()=>V,__spreadArray:()=>ue,__await:()=>$,__asyncGenerator:()=>ne,__asyncDelegator:()=>De,__asyncValues:()=>fe,__makeTemplateObject:()=>_e,__importStar:()=>Se,__importDefault:()=>Le,__classPrivateFieldGet:()=>Xe,__classPrivateFieldSet:()=>lt});var i=function(X,me){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(K,oe){K.__proto__=oe}||function(K,oe){for(var ke in oe)Object.prototype.hasOwnProperty.call(oe,ke)&&(K[ke]=oe[ke])})(X,me)};function d(X,me){if("function"!=typeof me&&null!==me)throw new TypeError("Class extends value "+String(me)+" is not a constructor or null");function K(){this.constructor=X}i(X,me),X.prototype=null===me?Object.create(me):(K.prototype=me.prototype,new K)}var _=function(){return _=Object.assign||function(me){for(var K,oe=1,ke=arguments.length;oe<ke;oe++)for(var de in K=arguments[oe])Object.prototype.hasOwnProperty.call(K,de)&&(me[de]=K[de]);return me},_.apply(this,arguments)};function u(X,me){var K={};for(var oe in X)Object.prototype.hasOwnProperty.call(X,oe)&&me.indexOf(oe)<0&&(K[oe]=X[oe]);if(null!=X&&"function"==typeof Object.getOwnPropertySymbols){var ke=0;for(oe=Object.getOwnPropertySymbols(X);ke<oe.length;ke++)me.indexOf(oe[ke])<0&&Object.prototype.propertyIsEnumerable.call(X,oe[ke])&&(K[oe[ke]]=X[oe[ke]])}return K}function s(X,me,K,oe){var Ue,ke=arguments.length,de=ke<3?me:null===oe?oe=Object.getOwnPropertyDescriptor(me,K):oe;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)de=Reflect.decorate(X,me,K,oe);else for(var pe=X.length-1;pe>=0;pe--)(Ue=X[pe])&&(de=(ke<3?Ue(de):ke>3?Ue(me,K,de):Ue(me,K))||de);return ke>3&&de&&Object.defineProperty(me,K,de),de}function v(X,me){return function(K,oe){me(K,oe,X)}}function C(X,me){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(X,me)}function D(X,me,K,oe){return new(K||(K=Promise))(function(de,Ue){function pe(Ge){try{Me(oe.next(Ge))}catch(vt){Ue(vt)}}function qe(Ge){try{Me(oe.throw(Ge))}catch(vt){Ue(vt)}}function Me(Ge){Ge.done?de(Ge.value):function ke(de){return de instanceof K?de:new K(function(Ue){Ue(de)})}(Ge.value).then(pe,qe)}Me((oe=oe.apply(X,me||[])).next())})}function p(X,me){var oe,ke,de,Ue,K={label:0,sent:function(){if(1&de[0])throw de[1];return de[1]},trys:[],ops:[]};return Ue={next:pe(0),throw:pe(1),return:pe(2)},"function"==typeof Symbol&&(Ue[Symbol.iterator]=function(){return this}),Ue;function pe(Me){return function(Ge){return function qe(Me){if(oe)throw new TypeError("Generator is already executing.");for(;K;)try{if(oe=1,ke&&(de=2&Me[0]?ke.return:Me[0]?ke.throw||((de=ke.return)&&de.call(ke),0):ke.next)&&!(de=de.call(ke,Me[1])).done)return de;switch(ke=0,de&&(Me=[2&Me[0],de.value]),Me[0]){case 0:case 1:de=Me;break;case 4:return K.label++,{value:Me[1],done:!1};case 5:K.label++,ke=Me[1],Me=[0];continue;case 7:Me=K.ops.pop(),K.trys.pop();continue;default:if(!(de=(de=K.trys).length>0&&de[de.length-1])&&(6===Me[0]||2===Me[0])){K=0;continue}if(3===Me[0]&&(!de||Me[1]>de[0]&&Me[1]<de[3])){K.label=Me[1];break}if(6===Me[0]&&K.label<de[1]){K.label=de[1],de=Me;break}if(de&&K.label<de[2]){K.label=de[2],K.ops.push(Me);break}de[2]&&K.ops.pop(),K.trys.pop();continue}Me=me.call(X,K)}catch(Ge){Me=[6,Ge],ke=0}finally{oe=de=0}if(5&Me[0])throw Me[1];return{value:Me[0]?Me[1]:void 0,done:!0}}([Me,Ge])}}}var y=Object.create?function(X,me,K,oe){void 0===oe&&(oe=K),Object.defineProperty(X,oe,{enumerable:!0,get:function(){return me[K]}})}:function(X,me,K,oe){void 0===oe&&(oe=K),X[oe]=me[K]};function I(X,me){for(var K in X)"default"!==K&&!Object.prototype.hasOwnProperty.call(me,K)&&y(me,X,K)}function O(X){var me="function"==typeof Symbol&&Symbol.iterator,K=me&&X[me],oe=0;if(K)return K.call(X);if(X&&"number"==typeof X.length)return{next:function(){return X&&oe>=X.length&&(X=void 0),{value:X&&X[oe++],done:!X}}};throw new TypeError(me?"Object is not iterable.":"Symbol.iterator is not defined.")}function w(X,me){var K="function"==typeof Symbol&&X[Symbol.iterator];if(!K)return X;var ke,Ue,oe=K.call(X),de=[];try{for(;(void 0===me||me-- >0)&&!(ke=oe.next()).done;)de.push(ke.value)}catch(pe){Ue={error:pe}}finally{try{ke&&!ke.done&&(K=oe.return)&&K.call(oe)}finally{if(Ue)throw Ue.error}}return de}function k(){for(var X=[],me=0;me<arguments.length;me++)X=X.concat(w(arguments[me]));return X}function V(){for(var X=0,me=0,K=arguments.length;me<K;me++)X+=arguments[me].length;var oe=Array(X),ke=0;for(me=0;me<K;me++)for(var de=arguments[me],Ue=0,pe=de.length;Ue<pe;Ue++,ke++)oe[ke]=de[Ue];return oe}function ue(X,me,K){if(K||2===arguments.length)for(var de,oe=0,ke=me.length;oe<ke;oe++)(de||!(oe in me))&&(de||(de=Array.prototype.slice.call(me,0,oe)),de[oe]=me[oe]);return X.concat(de||Array.prototype.slice.call(me))}function $(X){return this instanceof $?(this.v=X,this):new $(X)}function ne(X,me,K){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ke,oe=K.apply(X,me||[]),de=[];return ke={},Ue("next"),Ue("throw"),Ue("return"),ke[Symbol.asyncIterator]=function(){return this},ke;function Ue(St){oe[St]&&(ke[St]=function(Re){return new Promise(function(et,Y){de.push([St,Re,et,Y])>1||pe(St,Re)})})}function pe(St,Re){try{!function qe(St){St.value instanceof $?Promise.resolve(St.value.v).then(Me,Ge):vt(de[0][2],St)}(oe[St](Re))}catch(et){vt(de[0][3],et)}}function Me(St){pe("next",St)}function Ge(St){pe("throw",St)}function vt(St,Re){St(Re),de.shift(),de.length&&pe(de[0][0],de[0][1])}}function De(X){var me,K;return me={},oe("next"),oe("throw",function(ke){throw ke}),oe("return"),me[Symbol.iterator]=function(){return this},me;function oe(ke,de){me[ke]=X[ke]?function(Ue){return(K=!K)?{value:$(X[ke](Ue)),done:"return"===ke}:de?de(Ue):Ue}:de}}function fe(X){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var K,me=X[Symbol.asyncIterator];return me?me.call(X):(X=O(X),K={},oe("next"),oe("throw"),oe("return"),K[Symbol.asyncIterator]=function(){return this},K);function oe(de){K[de]=X[de]&&function(Ue){return new Promise(function(pe,qe){!function ke(de,Ue,pe,qe){Promise.resolve(qe).then(function(Me){de({value:Me,done:pe})},Ue)}(pe,qe,(Ue=X[de](Ue)).done,Ue.value)})}}}function _e(X,me){return Object.defineProperty?Object.defineProperty(X,"raw",{value:me}):X.raw=me,X}var le=Object.create?function(X,me){Object.defineProperty(X,"default",{enumerable:!0,value:me})}:function(X,me){X.default=me};function Se(X){if(X&&X.__esModule)return X;var me={};if(null!=X)for(var K in X)"default"!==K&&Object.prototype.hasOwnProperty.call(X,K)&&y(me,X,K);return le(me,X),me}function Le(X){return X&&X.__esModule?X:{default:X}}function Xe(X,me,K,oe){if("a"===K&&!oe)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof me?X!==me||!oe:!me.has(X))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===K?oe:"a"===K?oe.call(X):oe?oe.value:me.get(X)}function lt(X,me,K,oe,ke){if("m"===oe)throw new TypeError("Private method is not writable");if("a"===oe&&!ke)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof me?X!==me||!ke:!me.has(X))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===oe?ke.call(X,K):ke?ke.value=K:me.set(X,K),K}},1777:(Be,m,l)=>{"use strict";l.d(m,{l3:()=>_,_j:()=>i,LC:()=>d,ZN:()=>ne,jt:()=>s,F4:()=>y,vP:()=>C,SB:()=>p,oB:()=>D,eR:()=>I,X$:()=>u,ZE:()=>De,k1:()=>fe});class i{}class d{}const _="*";function u(_e,le){return{type:7,name:_e,definitions:le,options:{}}}function s(_e,le=null){return{type:4,styles:le,timings:_e}}function C(_e,le=null){return{type:2,steps:_e,options:le}}function D(_e){return{type:6,styles:_e,offset:null}}function p(_e,le,Se){return{type:0,name:_e,styles:le,options:Se}}function y(_e){return{type:5,steps:_e}}function I(_e,le,Se=null){return{type:1,expr:_e,animation:le,options:Se}}function $(_e){Promise.resolve(null).then(_e)}class ne{constructor(le=0,Se=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+Se}_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 Se="start"==le?this._onStartFns:this._onDoneFns;Se.forEach(Le=>Le()),Se.length=0}}class De{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 Se=0,Le=0,Xe=0;const lt=this.players.length;0==lt?$(()=>this._onFinish()):this.players.forEach(X=>{X.onDone(()=>{++Se==lt&&this._onFinish()}),X.onDestroy(()=>{++Le==lt&&this._onDestroy()}),X.onStart(()=>{++Xe==lt&&this._onStart()})}),this.totalTime=this.players.reduce((X,me)=>Math.max(X,me.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 Se=le*this.totalTime;this.players.forEach(Le=>{const Xe=Le.totalTime?Math.min(1,Se/Le.totalTime):1;Le.setPosition(Xe)})}getPosition(){const le=this.players.reduce((Se,Le)=>null===Se||Le.totalTime>Se.totalTime?Le:Se,null);return null!=le?le.getPosition():0}beforeDestroy(){this.players.forEach(le=>{le.beforeDestroy&&le.beforeDestroy()})}triggerCallback(le){const Se="start"==le?this._onStartFns:this._onDoneFns;Se.forEach(Le=>Le()),Se.length=0}}const fe="!"},5664:(Be,m,l)=>{"use strict";l.d(m,{rt:()=>Ie,$s:()=>K,kH:()=>Ot,Em:()=>pe,tE:()=>Qt,qV:()=>Rt,qm:()=>Qe,ic:()=>Me,X6:()=>Ce,yG:()=>ye});var i=l(9808),d=l(5e3),_=l(6758),u=l(6921),s=l(1135),v=l(9646),C=l(1159),D=l(8505),p=l(8372),y=l(9300),I=l(4004),O=l(5698),w=l(5684),k=l(1884),V=l(2722),ue=l(3191),$=l(925),ne=l(7144);function le(Te,S){return(Te.getAttribute(S)||"").match(/\S+/g)||[]}const Se="cdk-describedby-message-container",Le="cdk-describedby-message",Xe="cdk-describedby-host";let lt=0;const X=new Map;let me=null,K=(()=>{class Te{constructor(A){this._document=A}describe(A,M,G){if(!this._canBeDescribed(A,M))return;const ot=oe(M,G);"string"!=typeof M?(ke(M),X.set(ot,{messageElement:M,referenceCount:0})):X.has(ot)||this._createMessageElement(M,G),this._isElementDescribedByMessage(A,ot)||this._addMessageReference(A,ot)}removeDescription(A,M,G){if(!M||!this._isElementNode(A))return;const ot=oe(M,G);if(this._isElementDescribedByMessage(A,ot)&&this._removeMessageReference(A,ot),"string"==typeof M){const Et=X.get(ot);Et&&0===Et.referenceCount&&this._deleteMessageElement(ot)}me&&0===me.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const A=this._document.querySelectorAll(`[${Xe}]`);for(let M=0;M<A.length;M++)this._removeCdkDescribedByReferenceIds(A[M]),A[M].removeAttribute(Xe);me&&this._deleteMessagesContainer(),X.clear()}_createMessageElement(A,M){const G=this._document.createElement("div");ke(G),G.textContent=A,M&&G.setAttribute("role",M),this._createMessagesContainer(),me.appendChild(G),X.set(oe(A,M),{messageElement:G,referenceCount:0})}_deleteMessageElement(A){var M;const G=X.get(A);null===(M=null==G?void 0:G.messageElement)||void 0===M||M.remove(),X.delete(A)}_createMessagesContainer(){if(!me){const A=this._document.getElementById(Se);null==A||A.remove(),me=this._document.createElement("div"),me.id=Se,me.style.visibility="hidden",me.classList.add("cdk-visually-hidden"),this._document.body.appendChild(me)}}_deleteMessagesContainer(){me&&(me.remove(),me=null)}_removeCdkDescribedByReferenceIds(A){const M=le(A,"aria-describedby").filter(G=>0!=G.indexOf(Le));A.setAttribute("aria-describedby",M.join(" "))}_addMessageReference(A,M){const G=X.get(M);(function fe(Te,S,A){const M=le(Te,S);M.some(G=>G.trim()==A.trim())||(M.push(A.trim()),Te.setAttribute(S,M.join(" ")))})(A,"aria-describedby",G.messageElement.id),A.setAttribute(Xe,""),G.referenceCount++}_removeMessageReference(A,M){const G=X.get(M);G.referenceCount--,function _e(Te,S,A){const G=le(Te,S).filter(ot=>ot!=A.trim());G.length?Te.setAttribute(S,G.join(" ")):Te.removeAttribute(S)}(A,"aria-describedby",G.messageElement.id),A.removeAttribute(Xe)}_isElementDescribedByMessage(A,M){const G=le(A,"aria-describedby"),ot=X.get(M),Et=ot&&ot.messageElement.id;return!!Et&&-1!=G.indexOf(Et)}_canBeDescribed(A,M){if(!this._isElementNode(A))return!1;if(M&&"object"==typeof M)return!0;const G=null==M?"":`${M}`.trim(),ot=A.getAttribute("aria-label");return!(!G||ot&&ot.trim()===G)}_isElementNode(A){return A.nodeType===this._document.ELEMENT_NODE}}return Te.\u0275fac=function(A){return new(A||Te)(d.\u0275\u0275inject(i.DOCUMENT))},Te.\u0275prov=d.\u0275\u0275defineInjectable({token:Te,factory:Te.\u0275fac,providedIn:"root"}),Te})();function oe(Te,S){return"string"==typeof Te?`${S||""}/${Te}`:Te}function ke(Te){Te.id||(Te.id=`${Le}-${lt++}`)}class pe extends class de{constructor(S){this._items=S,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new _.x,this._typeaheadSubscription=u.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=A=>A.disabled,this._pressedLetters=[],this.tabOut=new _.x,this.change=new _.x,S instanceof d.QueryList&&S.changes.subscribe(A=>{if(this._activeItem){const G=A.toArray().indexOf(this._activeItem);G>-1&&G!==this._activeItemIndex&&(this._activeItemIndex=G)}})}skipPredicate(S){return this._skipPredicateFn=S,this}withWrap(S=!0){return this._wrap=S,this}withVerticalOrientation(S=!0){return this._vertical=S,this}withHorizontalOrientation(S){return this._horizontal=S,this}withAllowedModifierKeys(S){return this._allowedModifierKeys=S,this}withTypeAhead(S=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,D.b)(A=>this._pressedLetters.push(A)),(0,p.b)(S),(0,y.h)(()=>this._pressedLetters.length>0),(0,I.U)(()=>this._pressedLetters.join(""))).subscribe(A=>{const M=this._getItemsArray();for(let G=1;G<M.length+1;G++){const ot=(this._activeItemIndex+G)%M.length,Et=M[ot];if(!this._skipPredicateFn(Et)&&0===Et.getLabel().toUpperCase().trim().indexOf(A)){this.setActiveItem(ot);break}}this._pressedLetters=[]}),this}withHomeAndEnd(S=!0){return this._homeAndEnd=S,this}setActiveItem(S){const A=this._activeItem;this.updateActiveItem(S),this._activeItem!==A&&this.change.next(this._activeItemIndex)}onKeydown(S){const A=S.keyCode,G=["altKey","ctrlKey","metaKey","shiftKey"].every(ot=>!S[ot]||this._allowedModifierKeys.indexOf(ot)>-1);switch(A){case C.Mf:return void this.tabOut.next();case C.JH:if(this._vertical&&G){this.setNextItemActive();break}return;case C.LH:if(this._vertical&&G){this.setPreviousItemActive();break}return;case C.SV:if(this._horizontal&&G){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case C.oh:if(this._horizontal&&G){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case C.Sd:if(this._homeAndEnd&&G){this.setFirstItemActive();break}return;case C.uR:if(this._homeAndEnd&&G){this.setLastItemActive();break}return;default:return void((G||(0,C.Vb)(S,"shiftKey"))&&(S.key&&1===S.key.length?this._letterKeyStream.next(S.key.toLocaleUpperCase()):(A>=C.A&&A<=C.Z||A>=C.xE&&A<=C.aO)&&this._letterKeyStream.next(String.fromCharCode(A))))}this._pressedLetters=[],S.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(S){const A=this._getItemsArray(),M="number"==typeof S?S:A.indexOf(S),G=A[M];this._activeItem=null==G?null:G,this._activeItemIndex=M}_setActiveItemByDelta(S){this._wrap?this._setActiveInWrapMode(S):this._setActiveInDefaultMode(S)}_setActiveInWrapMode(S){const A=this._getItemsArray();for(let M=1;M<=A.length;M++){const G=(this._activeItemIndex+S*M+A.length)%A.length;if(!this._skipPredicateFn(A[G]))return void this.setActiveItem(G)}}_setActiveInDefaultMode(S){this._setActiveItemByIndex(this._activeItemIndex+S,S)}_setActiveItemByIndex(S,A){const M=this._getItemsArray();if(M[S]){for(;this._skipPredicateFn(M[S]);)if(!M[S+=A])return;this.setActiveItem(S)}}_getItemsArray(){return this._items instanceof d.QueryList?this._items.toArray():this._items}}{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(S){return this._origin=S,this}setActiveItem(S){super.setActiveItem(S),this.activeItem&&this.activeItem.focus(this._origin)}}let Me=(()=>{class Te{constructor(A){this._platform=A}isDisabled(A){return A.hasAttribute("disabled")}isVisible(A){return function vt(Te){return!!(Te.offsetWidth||Te.offsetHeight||"function"==typeof Te.getClientRects&&Te.getClientRects().length)}(A)&&"visible"===getComputedStyle(A).visibility}isTabbable(A){if(!this._platform.isBrowser)return!1;const M=function Ge(Te){try{return Te.frameElement}catch(S){return null}}(function pt(Te){return Te.ownerDocument&&Te.ownerDocument.defaultView||window}(A));if(M&&(-1===Ae(M)||!this.isVisible(M)))return!1;let G=A.nodeName.toLowerCase(),ot=Ae(A);return A.hasAttribute("contenteditable")?-1!==ot:!("iframe"===G||"object"===G||this._platform.WEBKIT&&this._platform.IOS&&!function ge(Te){let S=Te.nodeName.toLowerCase(),A="input"===S&&Te.type;return"text"===A||"password"===A||"select"===S||"textarea"===S}(A))&&("audio"===G?!!A.hasAttribute("controls")&&-1!==ot:"video"===G?-1!==ot&&(null!==ot||this._platform.FIREFOX||A.hasAttribute("controls")):A.tabIndex>=0)}isFocusable(A,M){return function Je(Te){return!function Re(Te){return function Y(Te){return"input"==Te.nodeName.toLowerCase()}(Te)&&"hidden"==Te.type}(Te)&&(function St(Te){let S=Te.nodeName.toLowerCase();return"input"===S||"select"===S||"button"===S||"textarea"===S}(Te)||function et(Te){return function he(Te){return"a"==Te.nodeName.toLowerCase()}(Te)&&Te.hasAttribute("href")}(Te)||Te.hasAttribute("contenteditable")||Ee(Te))}(A)&&!this.isDisabled(A)&&((null==M?void 0:M.ignoreVisibility)||this.isVisible(A))}}return Te.\u0275fac=function(A){return new(A||Te)(d.\u0275\u0275inject($.t4))},Te.\u0275prov=d.\u0275\u0275defineInjectable({token:Te,factory:Te.\u0275fac,providedIn:"root"}),Te})();function Ee(Te){if(!Te.hasAttribute("tabindex")||void 0===Te.tabIndex)return!1;let S=Te.getAttribute("tabindex");return!(!S||isNaN(parseInt(S,10)))}function Ae(Te){if(!Ee(Te))return null;const S=parseInt(Te.getAttribute("tabindex")||"",10);return isNaN(S)?-1:S}class Tt{constructor(S,A,M,G,ot=!1){this._element=S,this._checker=A,this._ngZone=M,this._document=G,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,ot||this.attachAnchors()}get enabled(){return this._enabled}set enabled(S){this._enabled=S,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(S,this._startAnchor),this._toggleAnchorTabIndex(S,this._endAnchor))}destroy(){const S=this._startAnchor,A=this._endAnchor;S&&(S.removeEventListener("focus",this.startAnchorListener),S.remove()),A&&(A.removeEventListener("focus",this.endAnchorListener),A.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(S){return new Promise(A=>{this._executeOnStable(()=>A(this.focusInitialElement(S)))})}focusFirstTabbableElementWhenReady(S){return new Promise(A=>{this._executeOnStable(()=>A(this.focusFirstTabbableElement(S)))})}focusLastTabbableElementWhenReady(S){return new Promise(A=>{this._executeOnStable(()=>A(this.focusLastTabbableElement(S)))})}_getRegionBoundary(S){const A=this._element.querySelectorAll(`[cdk-focus-region-${S}], [cdkFocusRegion${S}], [cdk-focus-${S}]`);return"start"==S?A.length?A[0]:this._getFirstTabbableElement(this._element):A.length?A[A.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(S){const A=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(A){if(!this._checker.isFocusable(A)){const M=this._getFirstTabbableElement(A);return null==M||M.focus(S),!!M}return A.focus(S),!0}return this.focusFirstTabbableElement(S)}focusFirstTabbableElement(S){const A=this._getRegionBoundary("start");return A&&A.focus(S),!!A}focusLastTabbableElement(S){const A=this._getRegionBoundary("end");return A&&A.focus(S),!!A}hasAttached(){return this._hasAttached}_getFirstTabbableElement(S){if(this._checker.isFocusable(S)&&this._checker.isTabbable(S))return S;const A=S.children;for(let M=0;M<A.length;M++){const G=A[M].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(A[M]):null;if(G)return G}return null}_getLastTabbableElement(S){if(this._checker.isFocusable(S)&&this._checker.isTabbable(S))return S;const A=S.children;for(let M=A.length-1;M>=0;M--){const G=A[M].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(A[M]):null;if(G)return G}return null}_createAnchor(){const S=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,S),S.classList.add("cdk-visually-hidden"),S.classList.add("cdk-focus-trap-anchor"),S.setAttribute("aria-hidden","true"),S}_toggleAnchorTabIndex(S,A){S?A.setAttribute("tabindex","0"):A.removeAttribute("tabindex")}toggleAnchors(S){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(S,this._startAnchor),this._toggleAnchorTabIndex(S,this._endAnchor))}_executeOnStable(S){this._ngZone.isStable?S():this._ngZone.onStable.pipe((0,O.q)(1)).subscribe(S)}}let Rt=(()=>{class Te{constructor(A,M,G){this._checker=A,this._ngZone=M,this._document=G}create(A,M=!1){return new Tt(A,this._checker,this._ngZone,this._document,M)}}return Te.\u0275fac=function(A){return new(A||Te)(d.\u0275\u0275inject(Me),d.\u0275\u0275inject(d.NgZone),d.\u0275\u0275inject(i.DOCUMENT))},Te.\u0275prov=d.\u0275\u0275defineInjectable({token:Te,factory:Te.\u0275fac,providedIn:"root"}),Te})();function Ce(Te){return 0===Te.offsetX&&0===Te.offsetY}function ye(Te){const S=Te.touches&&Te.touches[0]||Te.changedTouches&&Te.changedTouches[0];return!(!S||-1!==S.identifier||null!=S.radiusX&&1!==S.radiusX||null!=S.radiusY&&1!==S.radiusY)}const re=new d.InjectionToken("cdk-input-modality-detector-options"),be={ignoreKeys:[C.zL,C.jx,C.b2,C.MW,C.JU]},it=(0,$.i$)({passive:!0,capture:!0});let mt=(()=>{class Te{constructor(A,M,G,ot){this._platform=A,this._mostRecentTarget=null,this._modality=new s.X(null),this._lastTouchMs=0,this._onKeydown=Et=>{var Ut,gn;(null===(gn=null===(Ut=this._options)||void 0===Ut?void 0:Ut.ignoreKeys)||void 0===gn?void 0:gn.some(He=>He===Et.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=(0,$.sA)(Et))},this._onMousedown=Et=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Ce(Et)?"keyboard":"mouse"),this._mostRecentTarget=(0,$.sA)(Et))},this._onTouchstart=Et=>{ye(Et)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,$.sA)(Et))},this._options=Object.assign(Object.assign({},be),ot),this.modalityDetected=this._modality.pipe((0,w.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,k.x)()),A.isBrowser&&M.runOutsideAngular(()=>{G.addEventListener("keydown",this._onKeydown,it),G.addEventListener("mousedown",this._onMousedown,it),G.addEventListener("touchstart",this._onTouchstart,it)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,it),document.removeEventListener("mousedown",this._onMousedown,it),document.removeEventListener("touchstart",this._onTouchstart,it))}}return Te.\u0275fac=function(A){return new(A||Te)(d.\u0275\u0275inject($.t4),d.\u0275\u0275inject(d.NgZone),d.\u0275\u0275inject(i.DOCUMENT),d.\u0275\u0275inject(re,8))},Te.\u0275prov=d.\u0275\u0275defineInjectable({token:Te,factory:Te.\u0275fac,providedIn:"root"}),Te})();const Mn=new d.InjectionToken("cdk-focus-monitor-default-options"),an=(0,$.i$)({passive:!0,capture:!0});let Qt=(()=>{class Te{constructor(A,M,G,ot,Et){this._ngZone=A,this._platform=M,this._inputModalityDetector=G,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new _.x,this._rootNodeFocusAndBlurListener=Ut=>{const gn=(0,$.sA)(Ut),He="focus"===Ut.type?this._onFocus:this._onBlur;for(let $e=gn;$e;$e=$e.parentElement)He.call(this,Ut,$e)},this._document=ot,this._detectionMode=(null==Et?void 0:Et.detectionMode)||0}monitor(A,M=!1){const G=(0,ue.fI)(A);if(!this._platform.isBrowser||1!==G.nodeType)return(0,v.of)(null);const ot=(0,$.kV)(G)||this._getDocument(),Et=this._elementInfo.get(G);if(Et)return M&&(Et.checkChildren=!0),Et.subject;const Ut={checkChildren:M,subject:new _.x,rootNode:ot};return this._elementInfo.set(G,Ut),this._registerGlobalListeners(Ut),Ut.subject}stopMonitoring(A){const M=(0,ue.fI)(A),G=this._elementInfo.get(M);G&&(G.subject.complete(),this._setClasses(M),this._elementInfo.delete(M),this._removeGlobalListeners(G))}focusVia(A,M,G){const ot=(0,ue.fI)(A);ot===this._getDocument().activeElement?this._getClosestElementsInfo(ot).forEach(([Ut,gn])=>this._originChanged(Ut,M,gn)):(this._setOrigin(M),"function"==typeof ot.focus&&ot.focus(G))}ngOnDestroy(){this._elementInfo.forEach((A,M)=>this.stopMonitoring(M))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(A){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(A)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(A){return 1===this._detectionMode||!!(null==A?void 0:A.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(A,M){A.classList.toggle("cdk-focused",!!M),A.classList.toggle("cdk-touch-focused","touch"===M),A.classList.toggle("cdk-keyboard-focused","keyboard"===M),A.classList.toggle("cdk-mouse-focused","mouse"===M),A.classList.toggle("cdk-program-focused","program"===M)}_setOrigin(A,M=!1){this._ngZone.runOutsideAngular(()=>{this._origin=A,this._originFromTouchInteraction="touch"===A&&M,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(A,M){const G=this._elementInfo.get(M),ot=(0,$.sA)(A);!G||!G.checkChildren&&M!==ot||this._originChanged(M,this._getFocusOrigin(ot),G)}_onBlur(A,M){const G=this._elementInfo.get(M);!G||G.checkChildren&&A.relatedTarget instanceof Node&&M.contains(A.relatedTarget)||(this._setClasses(M),this._emitOrigin(G.subject,null))}_emitOrigin(A,M){this._ngZone.run(()=>A.next(M))}_registerGlobalListeners(A){if(!this._platform.isBrowser)return;const M=A.rootNode,G=this._rootNodeFocusListenerCount.get(M)||0;G||this._ngZone.runOutsideAngular(()=>{M.addEventListener("focus",this._rootNodeFocusAndBlurListener,an),M.addEventListener("blur",this._rootNodeFocusAndBlurListener,an)}),this._rootNodeFocusListenerCount.set(M,G+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,V.R)(this._stopInputModalityDetector)).subscribe(ot=>{this._setOrigin(ot,!0)}))}_removeGlobalListeners(A){const M=A.rootNode;if(this._rootNodeFocusListenerCount.has(M)){const G=this._rootNodeFocusListenerCount.get(M);G>1?this._rootNodeFocusListenerCount.set(M,G-1):(M.removeEventListener("focus",this._rootNodeFocusAndBlurListener,an),M.removeEventListener("blur",this._rootNodeFocusAndBlurListener,an),this._rootNodeFocusListenerCount.delete(M))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(A,M,G){this._setClasses(A,M),this._emitOrigin(G.subject,M),this._lastFocusOrigin=M}_getClosestElementsInfo(A){const M=[];return this._elementInfo.forEach((G,ot)=>{(ot===A||G.checkChildren&&ot.contains(A))&&M.push([ot,G])}),M}}return Te.\u0275fac=function(A){return new(A||Te)(d.\u0275\u0275inject(d.NgZone),d.\u0275\u0275inject($.t4),d.\u0275\u0275inject(mt),d.\u0275\u0275inject(i.DOCUMENT,8),d.\u0275\u0275inject(Mn,8))},Te.\u0275prov=d.\u0275\u0275defineInjectable({token:Te,factory:Te.\u0275fac,providedIn:"root"}),Te})(),Ot=(()=>{class Te{constructor(A,M){this._elementRef=A,this._focusMonitor=M,this.cdkFocusChange=new d.EventEmitter}ngAfterViewInit(){const A=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(A,1===A.nodeType&&A.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(M=>this.cdkFocusChange.emit(M))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return Te.\u0275fac=function(A){return new(A||Te)(d.\u0275\u0275directiveInject(d.ElementRef),d.\u0275\u0275directiveInject(Qt))},Te.\u0275dir=d.\u0275\u0275defineDirective({type:Te,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),Te})();const bn="cdk-high-contrast-black-on-white",at="cdk-high-contrast-white-on-black",Ke="cdk-high-contrast-active";let Qe=(()=>{class Te{constructor(A,M){this._platform=A,this._document=M}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const A=this._document.createElement("div");A.style.backgroundColor="rgb(1,2,3)",A.style.position="absolute",this._document.body.appendChild(A);const M=this._document.defaultView||window,G=M&&M.getComputedStyle?M.getComputedStyle(A):null,ot=(G&&G.backgroundColor||"").replace(/ /g,"");switch(A.remove(),ot){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const A=this._document.body.classList;A.remove(Ke),A.remove(bn),A.remove(at),this._hasCheckedHighContrastMode=!0;const M=this.getHighContrastMode();1===M?(A.add(Ke),A.add(bn)):2===M&&(A.add(Ke),A.add(at))}}}return Te.\u0275fac=function(A){return new(A||Te)(d.\u0275\u0275inject($.t4),d.\u0275\u0275inject(i.DOCUMENT))},Te.\u0275prov=d.\u0275\u0275defineInjectable({token:Te,factory:Te.\u0275fac,providedIn:"root"}),Te})(),Ie=(()=>{class Te{constructor(A){A._applyBodyHighContrastModeCssClasses()}}return Te.\u0275fac=function(A){return new(A||Te)(d.\u0275\u0275inject(Qe))},Te.\u0275mod=d.\u0275\u0275defineNgModule({type:Te}),Te.\u0275inj=d.\u0275\u0275defineInjector({imports:[[$.ud,ne.Q8]]}),Te})()},226:(Be,m,l)=>{"use strict";l.d(m,{vT:()=>p,Is:()=>C});var i=l(5e3),d=l(9808);const _=new i.InjectionToken("cdk-dir-doc",{providedIn:"root",factory:function u(){return(0,i.inject)(d.DOCUMENT)}}),s=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let C=(()=>{class y{constructor(O){if(this.value="ltr",this.change=new i.EventEmitter,O){const k=O.documentElement?O.documentElement.dir:null;this.value=function v(y){const I=(null==y?void 0:y.toLowerCase())||"";return"auto"===I&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?s.test(navigator.language)?"rtl":"ltr":"rtl"===I?"rtl":"ltr"}((O.body?O.body.dir:null)||k||"ltr")}}ngOnDestroy(){this.change.complete()}}return y.\u0275fac=function(O){return new(O||y)(i.\u0275\u0275inject(_,8))},y.\u0275prov=i.\u0275\u0275defineInjectable({token:y,factory:y.\u0275fac,providedIn:"root"}),y})(),p=(()=>{class y{}return y.\u0275fac=function(O){return new(O||y)},y.\u0275mod=i.\u0275\u0275defineNgModule({type:y}),y.\u0275inj=i.\u0275\u0275defineInjector({}),y})()},3191:(Be,m,l)=>{"use strict";l.d(m,{t6:()=>u,Eq:()=>s,Ig:()=>d,HM:()=>v,fI:()=>C,su:()=>_});var i=l(5e3);function d(p){return null!=p&&"false"!=`${p}`}function _(p,y=0){return u(p)?Number(p):y}function u(p){return!isNaN(parseFloat(p))&&!isNaN(Number(p))}function s(p){return Array.isArray(p)?p:[p]}function v(p){return null==p?"":"string"==typeof p?p:`${p}px`}function C(p){return p instanceof i.ElementRef?p.nativeElement:p}},449:(Be,m,l)=>{"use strict";l.d(m,{o2:()=>_,Ov:()=>D,yy:()=>v,eX:()=>C,k:()=>I,Z9:()=>u});var i=l(6758),d=l(5e3);class _{}function u(O){return O&&"function"==typeof O.connect}class v{applyChanges(w,k,V,ue,$){w.forEachOperation((ne,De,fe)=>{let _e,le;if(null==ne.previousIndex){const Se=V(ne,De,fe);_e=k.createEmbeddedView(Se.templateRef,Se.context,Se.index),le=1}else null==fe?(k.remove(De),le=3):(_e=k.get(De),k.move(_e,fe),le=2);$&&$({context:null==_e?void 0:_e.context,operation:le,record:ne})})}detach(){}}class C{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(w,k,V,ue,$){w.forEachOperation((ne,De,fe)=>{let _e,le;null==ne.previousIndex?(_e=this._insertView(()=>V(ne,De,fe),fe,k,ue(ne)),le=_e?1:0):null==fe?(this._detachAndCacheView(De,k),le=3):(_e=this._moveView(De,fe,k,ue(ne)),le=2),$&&$({context:null==_e?void 0:_e.context,operation:le,record:ne})})}detach(){for(const w of this._viewCache)w.destroy();this._viewCache=[]}_insertView(w,k,V,ue){const $=this._insertViewFromCache(k,V);if($)return void($.context.$implicit=ue);const ne=w();return V.createEmbeddedView(ne.templateRef,ne.context,ne.index)}_detachAndCacheView(w,k){const V=k.detach(w);this._maybeCacheView(V,k)}_moveView(w,k,V,ue){const $=V.get(w);return V.move($,k),$.context.$implicit=ue,$}_maybeCacheView(w,k){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(w);else{const V=k.indexOf(w);-1===V?w.destroy():k.remove(V)}}_insertViewFromCache(w,k){const V=this._viewCache.pop();return V&&k.insert(V,w),V||null}}class D{constructor(w=!1,k,V=!0){this._multiple=w,this._emitChanges=V,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new i.x,k&&k.length&&(w?k.forEach(ue=>this._markSelected(ue)):this._markSelected(k[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...w){this._verifyValueAssignment(w),w.forEach(k=>this._markSelected(k)),this._emitChangeEvent()}deselect(...w){this._verifyValueAssignment(w),w.forEach(k=>this._unmarkSelected(k)),this._emitChangeEvent()}toggle(w){this.isSelected(w)?this.deselect(w):this.select(w)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(w){return this._selection.has(w)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(w){this._multiple&&this.selected&&this._selected.sort(w)}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(w){this.isSelected(w)||(this._multiple||this._unmarkAll(),this._selection.add(w),this._emitChanges&&this._selectedToEmit.push(w))}_unmarkSelected(w){this.isSelected(w)&&(this._selection.delete(w),this._emitChanges&&this._deselectedToEmit.push(w))}_unmarkAll(){this.isEmpty()||this._selection.forEach(w=>this._unmarkSelected(w))}_verifyValueAssignment(w){}}const I=new d.InjectionToken("_ViewRepeater")},1159:(Be,m,l)=>{"use strict";l.d(m,{A:()=>St,zL:()=>D,ZH:()=>d,jx:()=>C,yY:()=>Le,JH:()=>fe,uR:()=>V,K5:()=>s,hY:()=>I,Sd:()=>ue,oh:()=>$,b2:()=>ai,MW:()=>It,aO:()=>pe,SV:()=>De,JU:()=>v,L_:()=>O,Mf:()=>_,LH:()=>ne,Z:()=>_t,xE:()=>Xe,Vb:()=>xn});const d=8,_=9,s=13,v=16,C=17,D=18,I=27,O=32,V=35,ue=36,$=37,ne=38,De=39,fe=40,Le=46,Xe=48,pe=57,St=65,_t=90,It=91,ai=224;function xn(mn,...ni){return ni.length?ni.some(li=>mn[li]):mn.altKey||mn.shiftKey||mn.ctrlKey||mn.metaKey}},5113:(Be,m,l)=>{"use strict";l.r(m),l.d(m,{BreakpointObserver:()=>fe,Breakpoints:()=>le,LayoutModule:()=>k,MediaMatcher:()=>$});var i=l(5e3),d=l(3191),_=l(6758),u=l(9841),s=l(1350),v=l(9751),C=l(5698),D=l(5684),p=l(8372),y=l(4004),I=l(8675),O=l(2722),w=l(925);let k=(()=>{class Se{}return Se.\u0275fac=function(Xe){return new(Xe||Se)},Se.\u0275mod=i.\u0275\u0275defineNgModule({type:Se}),Se.\u0275inj=i.\u0275\u0275defineInjector({}),Se})();const V=new Set;let ue,$=(()=>{class Se{constructor(Xe){this._platform=Xe,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):De}matchMedia(Xe){return(this._platform.WEBKIT||this._platform.BLINK)&&function ne(Se){if(!V.has(Se))try{ue||(ue=document.createElement("style"),ue.setAttribute("type","text/css"),document.head.appendChild(ue)),ue.sheet&&(ue.sheet.insertRule(`@media ${Se} {body{ }}`,0),V.add(Se))}catch(Le){console.error(Le)}}(Xe),this._matchMedia(Xe)}}return Se.\u0275fac=function(Xe){return new(Xe||Se)(i.\u0275\u0275inject(w.t4))},Se.\u0275prov=i.\u0275\u0275defineInjectable({token:Se,factory:Se.\u0275fac,providedIn:"root"}),Se})();function De(Se){return{matches:"all"===Se||""===Se,media:Se,addListener:()=>{},removeListener:()=>{}}}let fe=(()=>{class Se{constructor(Xe,lt){this._mediaMatcher=Xe,this._zone=lt,this._queries=new Map,this._destroySubject=new _.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(Xe){return _e((0,d.Eq)(Xe)).some(X=>this._registerQuery(X).mql.matches)}observe(Xe){const X=_e((0,d.Eq)(Xe)).map(K=>this._registerQuery(K).observable);let me=(0,u.a)(X);return me=(0,s.z)(me.pipe((0,C.q)(1)),me.pipe((0,D.T)(1),(0,p.b)(0))),me.pipe((0,y.U)(K=>{const oe={matches:!1,breakpoints:{}};return K.forEach(({matches:ke,query:de})=>{oe.matches=oe.matches||ke,oe.breakpoints[de]=ke}),oe}))}_registerQuery(Xe){if(this._queries.has(Xe))return this._queries.get(Xe);const lt=this._mediaMatcher.matchMedia(Xe),me={observable:new v.y(K=>{const oe=ke=>this._zone.run(()=>K.next(ke));return lt.addListener(oe),()=>{lt.removeListener(oe)}}).pipe((0,I.O)(lt),(0,y.U)(({matches:K})=>({query:Xe,matches:K})),(0,O.R)(this._destroySubject)),mql:lt};return this._queries.set(Xe,me),me}}return Se.\u0275fac=function(Xe){return new(Xe||Se)(i.\u0275\u0275inject($),i.\u0275\u0275inject(i.NgZone))},Se.\u0275prov=i.\u0275\u0275defineInjectable({token:Se,factory:Se.\u0275fac,providedIn:"root"}),Se})();function _e(Se){return Se.map(Le=>Le.split(",")).reduce((Le,Xe)=>Le.concat(Xe)).map(Le=>Le.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:(Be,m,l)=>{"use strict";l.d(m,{wD:()=>D,Q8:()=>p});var i=l(3191),d=l(5e3),_=l(9751),u=l(6758),s=l(8372);let v=(()=>{class y{create(O){return"undefined"==typeof MutationObserver?null:new MutationObserver(O)}}return y.\u0275fac=function(O){return new(O||y)},y.\u0275prov=d.\u0275\u0275defineInjectable({token:y,factory:y.\u0275fac,providedIn:"root"}),y})(),C=(()=>{class y{constructor(O){this._mutationObserverFactory=O,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((O,w)=>this._cleanupObserver(w))}observe(O){const w=(0,i.fI)(O);return new _.y(k=>{const ue=this._observeElement(w).subscribe(k);return()=>{ue.unsubscribe(),this._unobserveElement(w)}})}_observeElement(O){if(this._observedElements.has(O))this._observedElements.get(O).count++;else{const w=new u.x,k=this._mutationObserverFactory.create(V=>w.next(V));k&&k.observe(O,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(O,{observer:k,stream:w,count:1})}return this._observedElements.get(O).stream}_unobserveElement(O){this._observedElements.has(O)&&(this._observedElements.get(O).count--,this._observedElements.get(O).count||this._cleanupObserver(O))}_cleanupObserver(O){if(this._observedElements.has(O)){const{observer:w,stream:k}=this._observedElements.get(O);w&&w.disconnect(),k.complete(),this._observedElements.delete(O)}}}return y.\u0275fac=function(O){return new(O||y)(d.\u0275\u0275inject(v))},y.\u0275prov=d.\u0275\u0275defineInjectable({token:y,factory:y.\u0275fac,providedIn:"root"}),y})(),D=(()=>{class y{constructor(O,w,k){this._contentObserver=O,this._elementRef=w,this._ngZone=k,this.event=new d.EventEmitter,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(O){this._disabled=(0,i.Ig)(O),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(O){this._debounce=(0,i.su)(O),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const O=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?O.pipe((0,s.b)(this.debounce)):O).subscribe(this.event)})}_unsubscribe(){var O;null===(O=this._currentSubscription)||void 0===O||O.unsubscribe()}}return y.\u0275fac=function(O){return new(O||y)(d.\u0275\u0275directiveInject(C),d.\u0275\u0275directiveInject(d.ElementRef),d.\u0275\u0275directiveInject(d.NgZone))},y.\u0275dir=d.\u0275\u0275defineDirective({type:y,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),y})(),p=(()=>{class y{}return y.\u0275fac=function(O){return new(O||y)},y.\u0275mod=d.\u0275\u0275defineNgModule({type:y}),y.\u0275inj=d.\u0275\u0275defineInjector({providers:[v]}),y})()},1314:(Be,m,l)=>{"use strict";l.d(m,{aV:()=>he,X_:()=>le,Xj:()=>K,U8:()=>Rt});var i=l(9071),d=l(9808),_=l(5e3),u=l(3191),s=l(925),v=l(226),C=l(7429),D=l(6758),p=l(6921),y=l(6451),I=l(5698),O=l(2722);const w=(0,s.Mq)();class k{constructor(N,ie){this._viewportRuler=N,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=ie}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,u.HM)(-this._previousScrollPosition.left),N.style.top=(0,u.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,se=this._document.body.style,Ce=Oe.scrollBehavior||"",ye=se.scrollBehavior||"";this._isEnabled=!1,Oe.left=this._previousHTMLStyles.left,Oe.top=this._previousHTMLStyles.top,N.classList.remove("cdk-global-scrollblock"),w&&(Oe.scrollBehavior=se.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),w&&(Oe.scrollBehavior=Ce,se.scrollBehavior=ye)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const ie=this._document.body,Oe=this._viewportRuler.getViewportSize();return ie.scrollHeight>Oe.height||ie.scrollWidth>Oe.width}}class ue{constructor(N,ie,Oe,se){this._scrollDispatcher=N,this._ngZone=ie,this._viewportRuler=Oe,this._config=se,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 ie=this._viewportRuler.getViewportScrollPosition().top;Math.abs(ie-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 ne(Ze,N){return N.some(ie=>Ze.bottom<ie.top||Ze.top>ie.bottom||Ze.right<ie.left||Ze.left>ie.right)}function De(Ze,N){return N.some(ie=>Ze.top<ie.top||Ze.bottom>ie.bottom||Ze.left<ie.left||Ze.right>ie.right)}class fe{constructor(N,ie,Oe,se){this._scrollDispatcher=N,this._viewportRuler=ie,this._ngZone=Oe,this._config=se,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 ie=this._overlayRef.overlayElement.getBoundingClientRect(),{width:Oe,height:se}=this._viewportRuler.getViewportSize();ne(ie,[{width:Oe,height:se,bottom:se,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 Ze{constructor(ie,Oe,se,Ce){this._scrollDispatcher=ie,this._viewportRuler=Oe,this._ngZone=se,this.noop=()=>new $,this.close=ye=>new ue(this._scrollDispatcher,this._ngZone,this._viewportRuler,ye),this.block=()=>new k(this._viewportRuler,this._document),this.reposition=ye=>new fe(this._scrollDispatcher,this._viewportRuler,this._ngZone,ye),this._document=Ce}}return Ze.\u0275fac=function(ie){return new(ie||Ze)(_.\u0275\u0275inject(i.mF),_.\u0275\u0275inject(i.rL),_.\u0275\u0275inject(_.NgZone),_.\u0275\u0275inject(d.DOCUMENT))},Ze.\u0275prov=_.\u0275\u0275defineInjectable({token:Ze,factory:Ze.\u0275fac,providedIn:"root"}),Ze})();class le{constructor(N){if(this.scrollStrategy=new $,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,N){const ie=Object.keys(N);for(const Oe of ie)void 0!==N[Oe]&&(this[Oe]=N[Oe])}}}class Xe{constructor(N,ie){this.connectionPair=N,this.scrollableViewProperties=ie}}class me{constructor(N,ie,Oe,se,Ce,ye,re,be,Ye){this._portalOutlet=N,this._host=ie,this._pane=Oe,this._config=se,this._ngZone=Ce,this._keyboardDispatcher=ye,this._document=re,this._location=be,this._outsideClickDispatcher=Ye,this._backdropElement=null,this._backdropClick=new D.x,this._attachments=new D.x,this._detachments=new D.x,this._locationChanges=p.w0.EMPTY,this._backdropClickHandler=it=>this._backdropClick.next(it),this._keydownEvents=new D.x,this._outsidePointerEvents=new D.x,se.scrollStrategy&&(this._scrollStrategy=se.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=se.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(N){let ie=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,I.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),ie}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 ie=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,ie&&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,u.HM)(this._config.width),N.height=(0,u.HM)(this._config.height),N.minWidth=(0,u.HM)(this._config.minWidth),N.minHeight=(0,u.HM)(this._config.minHeight),N.maxWidth=(0,u.HM)(this._config.maxWidth),N.maxHeight=(0,u.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 ie;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(ie)};N.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{N.addEventListener("transitionend",Oe)}),N.style.pointerEvents="none",ie=this._ngZone.runOutsideAngular(()=>setTimeout(Oe,500))}_toggleClasses(N,ie,Oe){const se=(0,u.Eq)(ie||[]).filter(Ce=>!!Ce);se.length&&(Oe?N.classList.add(...se):N.classList.remove(...se))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const N=this._ngZone.onStable.pipe((0,O.R)((0,y.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),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 K=(()=>{class Ze{constructor(ie,Oe){this._platform=Oe,this._document=ie}ngOnDestroy(){var ie;null===(ie=this._containerElement)||void 0===ie||ie.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const ie="cdk-overlay-container";if(this._platform.isBrowser||(0,s.Oy)()){const se=this._document.querySelectorAll(`.${ie}[platform="server"], .${ie}[platform="test"]`);for(let Ce=0;Ce<se.length;Ce++)se[Ce].remove()}const Oe=this._document.createElement("div");Oe.classList.add(ie),(0,s.Oy)()?Oe.setAttribute("platform","test"):this._platform.isBrowser||Oe.setAttribute("platform","server"),this._document.body.appendChild(Oe),this._containerElement=Oe}}return Ze.\u0275fac=function(ie){return new(ie||Ze)(_.\u0275\u0275inject(d.DOCUMENT),_.\u0275\u0275inject(s.t4))},Ze.\u0275prov=_.\u0275\u0275defineInjectable({token:Ze,factory:Ze.\u0275fac,providedIn:"root"}),Ze})();const oe="cdk-overlay-connected-position-bounding-box",ke=/([A-Za-z%]+)$/;class de{constructor(N,ie,Oe,se,Ce){this._viewportRuler=ie,this._document=Oe,this._platform=se,this._overlayContainer=Ce,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new D.x,this._resizeSubscription=p.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(oe),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,ie=this._overlayRect,Oe=this._viewportRect,se=this._containerRect,Ce=[];let ye;for(let re of this._preferredPositions){let be=this._getOriginPoint(N,se,re),Ye=this._getOverlayPoint(be,ie,re),it=this._getOverlayFit(Ye,ie,Oe,re);if(it.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(re,be);this._canFitWithFlexibleDimensions(it,Ye,Oe)?Ce.push({position:re,origin:be,overlayRect:ie,boundingBoxRect:this._calculateBoundingBoxRect(be,re)}):(!ye||ye.overlayFit.visibleArea<it.visibleArea)&&(ye={overlayFit:it,overlayPoint:Ye,originPoint:be,position:re,overlayRect:ie})}if(Ce.length){let re=null,be=-1;for(const Ye of Ce){const it=Ye.boundingBoxRect.width*Ye.boundingBoxRect.height*(Ye.position.weight||1);it>be&&(be=it,re=Ye)}return this._isPushed=!1,void this._applyPosition(re.position,re.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(ye.position,ye.originPoint);this._applyPosition(ye.position,ye.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Ue(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(oe),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const N=this._lastPosition||this._preferredPositions[0],ie=this._getOriginPoint(this._originRect,this._containerRect,N);this._applyPosition(N,ie)}}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,ie,Oe){let se,Ce;if("center"==Oe.originX)se=N.left+N.width/2;else{const ye=this._isRtl()?N.right:N.left,re=this._isRtl()?N.left:N.right;se="start"==Oe.originX?ye:re}return ie.left<0&&(se-=ie.left),Ce="center"==Oe.originY?N.top+N.height/2:"top"==Oe.originY?N.top:N.bottom,ie.top<0&&(Ce-=ie.top),{x:se,y:Ce}}_getOverlayPoint(N,ie,Oe){let se,Ce;return se="center"==Oe.overlayX?-ie.width/2:"start"===Oe.overlayX?this._isRtl()?-ie.width:0:this._isRtl()?0:-ie.width,Ce="center"==Oe.overlayY?-ie.height/2:"top"==Oe.overlayY?0:-ie.height,{x:N.x+se,y:N.y+Ce}}_getOverlayFit(N,ie,Oe,se){const Ce=qe(ie);let{x:ye,y:re}=N,be=this._getOffset(se,"x"),Ye=this._getOffset(se,"y");be&&(ye+=be),Ye&&(re+=Ye);let _t=0-re,It=re+Ce.height-Oe.height,zt=this._subtractOverflows(Ce.width,0-ye,ye+Ce.width-Oe.width),on=this._subtractOverflows(Ce.height,_t,It),Kt=zt*on;return{visibleArea:Kt,isCompletelyWithinViewport:Ce.width*Ce.height===Kt,fitsInViewportVertically:on===Ce.height,fitsInViewportHorizontally:zt==Ce.width}}_canFitWithFlexibleDimensions(N,ie,Oe){if(this._hasFlexibleDimensions){const se=Oe.bottom-ie.y,Ce=Oe.right-ie.x,ye=pe(this._overlayRef.getConfig().minHeight),re=pe(this._overlayRef.getConfig().minWidth),Ye=N.fitsInViewportHorizontally||null!=re&&re<=Ce;return(N.fitsInViewportVertically||null!=ye&&ye<=se)&&Ye}return!1}_pushOverlayOnScreen(N,ie,Oe){if(this._previousPushAmount&&this._positionLocked)return{x:N.x+this._previousPushAmount.x,y:N.y+this._previousPushAmount.y};const se=qe(ie),Ce=this._viewportRect,ye=Math.max(N.x+se.width-Ce.width,0),re=Math.max(N.y+se.height-Ce.height,0),be=Math.max(Ce.top-Oe.top-N.y,0),Ye=Math.max(Ce.left-Oe.left-N.x,0);let it=0,mt=0;return it=se.width<=Ce.width?Ye||-ye:N.x<this._viewportMargin?Ce.left-Oe.left-N.x:0,mt=se.height<=Ce.height?be||-re:N.y<this._viewportMargin?Ce.top-Oe.top-N.y:0,this._previousPushAmount={x:it,y:mt},{x:N.x+it,y:N.y+mt}}_applyPosition(N,ie){if(this._setTransformOrigin(N),this._setOverlayElementStyles(ie,N),this._setBoundingBoxStyles(ie,N),N.panelClass&&this._addPanelClasses(N.panelClass),this._lastPosition=N,this._positionChanges.observers.length){const Oe=this._getScrollVisibility(),se=new Xe(N,Oe);this._positionChanges.next(se)}this._isInitialRender=!1}_setTransformOrigin(N){if(!this._transformOriginSelector)return;const ie=this._boundingBox.querySelectorAll(this._transformOriginSelector);let Oe,se=N.overlayY;Oe="center"===N.overlayX?"center":this._isRtl()?"start"===N.overlayX?"right":"left":"start"===N.overlayX?"left":"right";for(let Ce=0;Ce<ie.length;Ce++)ie[Ce].style.transformOrigin=`${Oe} ${se}`}_calculateBoundingBoxRect(N,ie){const Oe=this._viewportRect,se=this._isRtl();let Ce,ye,re,it,mt,_t;if("top"===ie.overlayY)ye=N.y,Ce=Oe.height-ye+this._viewportMargin;else if("bottom"===ie.overlayY)re=Oe.height-N.y+2*this._viewportMargin,Ce=Oe.height-re+this._viewportMargin;else{const It=Math.min(Oe.bottom-N.y+Oe.top,N.y),zt=this._lastBoundingBoxSize.height;Ce=2*It,ye=N.y-It,Ce>zt&&!this._isInitialRender&&!this._growAfterOpen&&(ye=N.y-zt/2)}if("end"===ie.overlayX&&!se||"start"===ie.overlayX&&se)_t=Oe.width-N.x+this._viewportMargin,it=N.x-this._viewportMargin;else if("start"===ie.overlayX&&!se||"end"===ie.overlayX&&se)mt=N.x,it=Oe.right-N.x;else{const It=Math.min(Oe.right-N.x+Oe.left,N.x),zt=this._lastBoundingBoxSize.width;it=2*It,mt=N.x-It,it>zt&&!this._isInitialRender&&!this._growAfterOpen&&(mt=N.x-zt/2)}return{top:ye,left:mt,bottom:re,right:_t,width:it,height:Ce}}_setBoundingBoxStyles(N,ie){const Oe=this._calculateBoundingBoxRect(N,ie);!this._isInitialRender&&!this._growAfterOpen&&(Oe.height=Math.min(Oe.height,this._lastBoundingBoxSize.height),Oe.width=Math.min(Oe.width,this._lastBoundingBoxSize.width));const se={};if(this._hasExactPosition())se.top=se.left="0",se.bottom=se.right=se.maxHeight=se.maxWidth="",se.width=se.height="100%";else{const Ce=this._overlayRef.getConfig().maxHeight,ye=this._overlayRef.getConfig().maxWidth;se.height=(0,u.HM)(Oe.height),se.top=(0,u.HM)(Oe.top),se.bottom=(0,u.HM)(Oe.bottom),se.width=(0,u.HM)(Oe.width),se.left=(0,u.HM)(Oe.left),se.right=(0,u.HM)(Oe.right),se.alignItems="center"===ie.overlayX?"center":"end"===ie.overlayX?"flex-end":"flex-start",se.justifyContent="center"===ie.overlayY?"center":"bottom"===ie.overlayY?"flex-end":"flex-start",Ce&&(se.maxHeight=(0,u.HM)(Ce)),ye&&(se.maxWidth=(0,u.HM)(ye))}this._lastBoundingBoxSize=Oe,Ue(this._boundingBox.style,se)}_resetBoundingBoxStyles(){Ue(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Ue(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(N,ie){const Oe={},se=this._hasExactPosition(),Ce=this._hasFlexibleDimensions,ye=this._overlayRef.getConfig();if(se){const it=this._viewportRuler.getViewportScrollPosition();Ue(Oe,this._getExactOverlayY(ie,N,it)),Ue(Oe,this._getExactOverlayX(ie,N,it))}else Oe.position="static";let re="",be=this._getOffset(ie,"x"),Ye=this._getOffset(ie,"y");be&&(re+=`translateX(${be}px) `),Ye&&(re+=`translateY(${Ye}px)`),Oe.transform=re.trim(),ye.maxHeight&&(se?Oe.maxHeight=(0,u.HM)(ye.maxHeight):Ce&&(Oe.maxHeight="")),ye.maxWidth&&(se?Oe.maxWidth=(0,u.HM)(ye.maxWidth):Ce&&(Oe.maxWidth="")),Ue(this._pane.style,Oe)}_getExactOverlayY(N,ie,Oe){let se={top:"",bottom:""},Ce=this._getOverlayPoint(ie,this._overlayRect,N);return this._isPushed&&(Ce=this._pushOverlayOnScreen(Ce,this._overlayRect,Oe)),"bottom"===N.overlayY?se.bottom=this._document.documentElement.clientHeight-(Ce.y+this._overlayRect.height)+"px":se.top=(0,u.HM)(Ce.y),se}_getExactOverlayX(N,ie,Oe){let ye,se={left:"",right:""},Ce=this._getOverlayPoint(ie,this._overlayRect,N);return this._isPushed&&(Ce=this._pushOverlayOnScreen(Ce,this._overlayRect,Oe)),ye=this._isRtl()?"end"===N.overlayX?"left":"right":"end"===N.overlayX?"right":"left","right"===ye?se.right=this._document.documentElement.clientWidth-(Ce.x+this._overlayRect.width)+"px":se.left=(0,u.HM)(Ce.x),se}_getScrollVisibility(){const N=this._getOriginRect(),ie=this._pane.getBoundingClientRect(),Oe=this._scrollables.map(se=>se.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:De(N,Oe),isOriginOutsideView:ne(N,Oe),isOverlayClipped:De(ie,Oe),isOverlayOutsideView:ne(ie,Oe)}}_subtractOverflows(N,...ie){return ie.reduce((Oe,se)=>Oe-Math.max(se,0),N)}_getNarrowedViewportRect(){const N=this._document.documentElement.clientWidth,ie=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+ie-this._viewportMargin,width:N-2*this._viewportMargin,height:ie-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(N,ie){return"x"===ie?null==N.offsetX?this._offsetX:N.offsetX:null==N.offsetY?this._offsetY:N.offsetY}_validatePositions(){}_addPanelClasses(N){this._pane&&(0,u.Eq)(N).forEach(ie=>{""!==ie&&-1===this._appliedPanelClasses.indexOf(ie)&&(this._appliedPanelClasses.push(ie),this._pane.classList.add(ie))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(N=>{this._pane.classList.remove(N)}),this._appliedPanelClasses=[])}_getOriginRect(){const N=this._origin;if(N instanceof _.ElementRef)return N.nativeElement.getBoundingClientRect();if(N instanceof Element)return N.getBoundingClientRect();const ie=N.width||0,Oe=N.height||0;return{top:N.y,bottom:N.y+Oe,left:N.x,right:N.x+ie,height:Oe,width:ie}}}function Ue(Ze,N){for(let ie in N)N.hasOwnProperty(ie)&&(Ze[ie]=N[ie]);return Ze}function pe(Ze){if("number"!=typeof Ze&&null!=Ze){const[N,ie]=Ze.split(ke);return ie&&"px"!==ie?null:parseFloat(N)}return Ze||null}function qe(Ze){return{top:Math.floor(Ze.top),right:Math.floor(Ze.right),bottom:Math.floor(Ze.bottom),left:Math.floor(Ze.left),width:Math.floor(Ze.width),height:Math.floor(Ze.height)}}const Me="cdk-global-overlay-wrapper";class Ge{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(N){const ie=N.getConfig();this._overlayRef=N,this._width&&!ie.width&&N.updateSize({width:this._width}),this._height&&!ie.height&&N.updateSize({height:this._height}),N.hostElement.classList.add(Me),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,ie=this._overlayRef.hostElement.style,Oe=this._overlayRef.getConfig(),{width:se,height:Ce,maxWidth:ye,maxHeight:re}=Oe,be=!("100%"!==se&&"100vw"!==se||ye&&"100%"!==ye&&"100vw"!==ye),Ye=!("100%"!==Ce&&"100vh"!==Ce||re&&"100%"!==re&&"100vh"!==re);N.position=this._cssPosition,N.marginLeft=be?"0":this._leftOffset,N.marginTop=Ye?"0":this._topOffset,N.marginBottom=this._bottomOffset,N.marginRight=this._rightOffset,be?ie.justifyContent="flex-start":"center"===this._justifyContent?ie.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?ie.justifyContent="flex-end":"flex-end"===this._justifyContent&&(ie.justifyContent="flex-start"):ie.justifyContent=this._justifyContent,ie.alignItems=Ye?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const N=this._overlayRef.overlayElement.style,ie=this._overlayRef.hostElement,Oe=ie.style;ie.classList.remove(Me),Oe.justifyContent=Oe.alignItems=N.marginTop=N.marginBottom=N.marginLeft=N.marginRight=N.position="",this._overlayRef=null,this._isDisposed=!0}}let vt=(()=>{class Ze{constructor(ie,Oe,se,Ce){this._viewportRuler=ie,this._document=Oe,this._platform=se,this._overlayContainer=Ce}global(){return new Ge}flexibleConnectedTo(ie){return new de(ie,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return Ze.\u0275fac=function(ie){return new(ie||Ze)(_.\u0275\u0275inject(i.rL),_.\u0275\u0275inject(d.DOCUMENT),_.\u0275\u0275inject(s.t4),_.\u0275\u0275inject(K))},Ze.\u0275prov=_.\u0275\u0275defineInjectable({token:Ze,factory:Ze.\u0275fac,providedIn:"root"}),Ze})(),St=(()=>{class Ze{constructor(ie){this._attachedOverlays=[],this._document=ie}ngOnDestroy(){this.detach()}add(ie){this.remove(ie),this._attachedOverlays.push(ie)}remove(ie){const Oe=this._attachedOverlays.indexOf(ie);Oe>-1&&this._attachedOverlays.splice(Oe,1),0===this._attachedOverlays.length&&this.detach()}}return Ze.\u0275fac=function(ie){return new(ie||Ze)(_.\u0275\u0275inject(d.DOCUMENT))},Ze.\u0275prov=_.\u0275\u0275defineInjectable({token:Ze,factory:Ze.\u0275fac,providedIn:"root"}),Ze})(),Re=(()=>{class Ze extends St{constructor(ie){super(ie),this._keydownListener=Oe=>{const se=this._attachedOverlays;for(let Ce=se.length-1;Ce>-1;Ce--)if(se[Ce]._keydownEvents.observers.length>0){se[Ce]._keydownEvents.next(Oe);break}}}add(ie){super.add(ie),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return Ze.\u0275fac=function(ie){return new(ie||Ze)(_.\u0275\u0275inject(d.DOCUMENT))},Ze.\u0275prov=_.\u0275\u0275defineInjectable({token:Ze,factory:Ze.\u0275fac,providedIn:"root"}),Ze})(),et=(()=>{class Ze extends St{constructor(ie,Oe){super(ie),this._platform=Oe,this._cursorStyleIsSet=!1,this._pointerDownListener=se=>{this._pointerDownEventTarget=(0,s.sA)(se)},this._clickListener=se=>{const Ce=(0,s.sA)(se),ye="click"===se.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:Ce;this._pointerDownEventTarget=null;const re=this._attachedOverlays.slice();for(let be=re.length-1;be>-1;be--){const Ye=re[be];if(!(Ye._outsidePointerEvents.observers.length<1)&&Ye.hasAttached()){if(Ye.overlayElement.contains(Ce)||Ye.overlayElement.contains(ye))break;Ye._outsidePointerEvents.next(se)}}}}add(ie){if(super.add(ie),!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 ie=this._document.body;ie.removeEventListener("pointerdown",this._pointerDownListener,!0),ie.removeEventListener("click",this._clickListener,!0),ie.removeEventListener("auxclick",this._clickListener,!0),ie.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(ie.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return Ze.\u0275fac=function(ie){return new(ie||Ze)(_.\u0275\u0275inject(d.DOCUMENT),_.\u0275\u0275inject(s.t4))},Ze.\u0275prov=_.\u0275\u0275defineInjectable({token:Ze,factory:Ze.\u0275fac,providedIn:"root"}),Ze})(),Y=0,he=(()=>{class Ze{constructor(ie,Oe,se,Ce,ye,re,be,Ye,it,mt,_t){this.scrollStrategies=ie,this._overlayContainer=Oe,this._componentFactoryResolver=se,this._positionBuilder=Ce,this._keyboardDispatcher=ye,this._injector=re,this._ngZone=be,this._document=Ye,this._directionality=it,this._location=mt,this._outsideClickDispatcher=_t}create(ie){const Oe=this._createHostElement(),se=this._createPaneElement(Oe),Ce=this._createPortalOutlet(se),ye=new le(ie);return ye.direction=ye.direction||this._directionality.value,new me(Ce,Oe,se,ye,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(ie){const Oe=this._document.createElement("div");return Oe.id="cdk-overlay-"+Y++,Oe.classList.add("cdk-overlay-pane"),ie.appendChild(Oe),Oe}_createHostElement(){const ie=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(ie),ie}_createPortalOutlet(ie){return this._appRef||(this._appRef=this._injector.get(_.ApplicationRef)),new C.u0(ie,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return Ze.\u0275fac=function(ie){return new(ie||Ze)(_.\u0275\u0275inject(_e),_.\u0275\u0275inject(K),_.\u0275\u0275inject(_.ComponentFactoryResolver),_.\u0275\u0275inject(vt),_.\u0275\u0275inject(Re),_.\u0275\u0275inject(_.Injector),_.\u0275\u0275inject(_.NgZone),_.\u0275\u0275inject(d.DOCUMENT),_.\u0275\u0275inject(v.Is),_.\u0275\u0275inject(d.Location),_.\u0275\u0275inject(et))},Ze.\u0275prov=_.\u0275\u0275defineInjectable({token:Ze,factory:Ze.\u0275fac}),Ze})();const Tt={provide:new _.InjectionToken("cdk-connected-overlay-scroll-strategy"),deps:[he],useFactory:function pt(Ze){return()=>Ze.scrollStrategies.reposition()}};let Rt=(()=>{class Ze{}return Ze.\u0275fac=function(ie){return new(ie||Ze)},Ze.\u0275mod=_.\u0275\u0275defineNgModule({type:Ze}),Ze.\u0275inj=_.\u0275\u0275defineInjector({providers:[he,Tt],imports:[[v.vT,C.eL,i.Cl],i.Cl]}),Ze})()},925:(Be,m,l)=>{"use strict";l.d(m,{t4:()=>u,ud:()=>s,sA:()=>fe,ht:()=>De,kV:()=>ne,Oy:()=>_e,i$:()=>I,Mq:()=>k});var i=l(5e3),d=l(9808);let _;try{_="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(le){_=!1}let p,w,ue,u=(()=>{class le{constructor(Le){this._platformId=Le,this.isBrowser=this._platformId?(0,d.isPlatformBrowser)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!_)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return le.\u0275fac=function(Le){return new(Le||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(Le){return new(Le||le)},le.\u0275mod=i.\u0275\u0275defineNgModule({type:le}),le.\u0275inj=i.\u0275\u0275defineInjector({}),le})();function I(le){return function y(){if(null==p&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>p=!0}))}finally{p=p||!1}return p}()?le:!!le.capture}function k(){if(null==w){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return w=!1,w;if("scrollBehavior"in document.documentElement.style)w=!0;else{const le=Element.prototype.scrollTo;w=!!le&&!/\{\s*\[native code\]\s*\}/.test(le.toString())}}return w}function ne(le){if(function $(){if(null==ue){const le="undefined"!=typeof document?document.head:null;ue=!(!le||!le.createShadowRoot&&!le.attachShadow)}return ue}()){const Se=le.getRootNode?le.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&Se instanceof ShadowRoot)return Se}return null}function De(){let le="undefined"!=typeof document&&document?document.activeElement:null;for(;le&&le.shadowRoot;){const Se=le.shadowRoot.activeElement;if(Se===le)break;le=Se}return le}function fe(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:(Be,m,l)=>{"use strict";l.d(m,{en:()=>w,ig:()=>$,Pl:()=>De,C5:()=>y,u0:()=>V,eL:()=>_e,UE:()=>I});var i=l(5e3),d=l(9808);class p{attach(Le){return this._attachedHost=Le,Le.attach(this)}detach(){let Le=this._attachedHost;null!=Le&&(this._attachedHost=null,Le.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(Le){this._attachedHost=Le}}class y extends p{constructor(Le,Xe,lt,X){super(),this.component=Le,this.viewContainerRef=Xe,this.injector=lt,this.componentFactoryResolver=X}}class I extends p{constructor(Le,Xe,lt){super(),this.templateRef=Le,this.viewContainerRef=Xe,this.context=lt}get origin(){return this.templateRef.elementRef}attach(Le,Xe=this.context){return this.context=Xe,super.attach(Le)}detach(){return this.context=void 0,super.detach()}}class O extends p{constructor(Le){super(),this.element=Le instanceof i.ElementRef?Le.nativeElement:Le}}class w{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(Le){return Le instanceof y?(this._attachedPortal=Le,this.attachComponentPortal(Le)):Le instanceof I?(this._attachedPortal=Le,this.attachTemplatePortal(Le)):this.attachDomPortal&&Le instanceof O?(this._attachedPortal=Le,this.attachDomPortal(Le)):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(Le){this._disposeFn=Le}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class V extends w{constructor(Le,Xe,lt,X,me){super(),this.outletElement=Le,this._componentFactoryResolver=Xe,this._appRef=lt,this._defaultInjector=X,this.attachDomPortal=K=>{const oe=K.element,ke=this._document.createComment("dom-portal");oe.parentNode.insertBefore(ke,oe),this.outletElement.appendChild(oe),this._attachedPortal=K,super.setDisposeFn(()=>{ke.parentNode&&ke.parentNode.replaceChild(oe,ke)})},this._document=me}attachComponentPortal(Le){const lt=(Le.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Le.component);let X;return Le.viewContainerRef?(X=Le.viewContainerRef.createComponent(lt,Le.viewContainerRef.length,Le.injector||Le.viewContainerRef.injector),this.setDisposeFn(()=>X.destroy())):(X=lt.create(Le.injector||this._defaultInjector),this._appRef.attachView(X.hostView),this.setDisposeFn(()=>{this._appRef.detachView(X.hostView),X.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(X)),this._attachedPortal=Le,X}attachTemplatePortal(Le){let Xe=Le.viewContainerRef,lt=Xe.createEmbeddedView(Le.templateRef,Le.context);return lt.rootNodes.forEach(X=>this.outletElement.appendChild(X)),lt.detectChanges(),this.setDisposeFn(()=>{let X=Xe.indexOf(lt);-1!==X&&Xe.remove(X)}),this._attachedPortal=Le,lt}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(Le){return Le.hostView.rootNodes[0]}}let $=(()=>{class Se extends I{constructor(Xe,lt){super(Xe,lt)}}return Se.\u0275fac=function(Xe){return new(Xe||Se)(i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(i.ViewContainerRef))},Se.\u0275dir=i.\u0275\u0275defineDirective({type:Se,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[i.\u0275\u0275InheritDefinitionFeature]}),Se})(),De=(()=>{class Se extends w{constructor(Xe,lt,X){super(),this._componentFactoryResolver=Xe,this._viewContainerRef=lt,this._isInitialized=!1,this.attached=new i.EventEmitter,this.attachDomPortal=me=>{const K=me.element,oe=this._document.createComment("dom-portal");me.setAttachedHost(this),K.parentNode.insertBefore(oe,K),this._getRootNode().appendChild(K),this._attachedPortal=me,super.setDisposeFn(()=>{oe.parentNode&&oe.parentNode.replaceChild(K,oe)})},this._document=X}get portal(){return this._attachedPortal}set portal(Xe){this.hasAttached()&&!Xe&&!this._isInitialized||(this.hasAttached()&&super.detach(),Xe&&super.attach(Xe),this._attachedPortal=Xe||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(Xe){Xe.setAttachedHost(this);const lt=null!=Xe.viewContainerRef?Xe.viewContainerRef:this._viewContainerRef,me=(Xe.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Xe.component),K=lt.createComponent(me,lt.length,Xe.injector||lt.injector);return lt!==this._viewContainerRef&&this._getRootNode().appendChild(K.hostView.rootNodes[0]),super.setDisposeFn(()=>K.destroy()),this._attachedPortal=Xe,this._attachedRef=K,this.attached.emit(K),K}attachTemplatePortal(Xe){Xe.setAttachedHost(this);const lt=this._viewContainerRef.createEmbeddedView(Xe.templateRef,Xe.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=Xe,this._attachedRef=lt,this.attached.emit(lt),lt}_getRootNode(){const Xe=this._viewContainerRef.element.nativeElement;return Xe.nodeType===Xe.ELEMENT_NODE?Xe:Xe.parentNode}}return Se.\u0275fac=function(Xe){return new(Xe||Se)(i.\u0275\u0275directiveInject(i.ComponentFactoryResolver),i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(d.DOCUMENT))},Se.\u0275dir=i.\u0275\u0275defineDirective({type:Se,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.\u0275\u0275InheritDefinitionFeature]}),Se})(),_e=(()=>{class Se{}return Se.\u0275fac=function(Xe){return new(Xe||Se)},Se.\u0275mod=i.\u0275\u0275defineNgModule({type:Se}),Se.\u0275inj=i.\u0275\u0275defineInjector({}),Se})()},9071:(Be,m,l)=>{"use strict";l.d(m,{ZD:()=>oe,mF:()=>_e,Cl:()=>ke,rL:()=>Le});var i=l(3191),d=l(5e3),_=l(6758),u=l(9646),s=l(9751),v=l(4968),p=(l(29),l(3101),l(453)),y=l(9300),I=l(9808),O=l(925),w=l(226);let _e=(()=>{class de{constructor(pe,qe,Me){this._ngZone=pe,this._platform=qe,this._scrolled=new _.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=Me}register(pe){this.scrollContainers.has(pe)||this.scrollContainers.set(pe,pe.elementScrolled().subscribe(()=>this._scrolled.next(pe)))}deregister(pe){const qe=this.scrollContainers.get(pe);qe&&(qe.unsubscribe(),this.scrollContainers.delete(pe))}scrolled(pe=20){return this._platform.isBrowser?new s.y(qe=>{this._globalSubscription||this._addGlobalListener();const Me=pe>0?this._scrolled.pipe((0,p.e)(pe)).subscribe(qe):this._scrolled.subscribe(qe);return this._scrolledCount++,()=>{Me.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,u.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((pe,qe)=>this.deregister(qe)),this._scrolled.complete()}ancestorScrolled(pe,qe){const Me=this.getAncestorScrollContainers(pe);return this.scrolled(qe).pipe((0,y.h)(Ge=>!Ge||Me.indexOf(Ge)>-1))}getAncestorScrollContainers(pe){const qe=[];return this.scrollContainers.forEach((Me,Ge)=>{this._scrollableContainsElement(Ge,pe)&&qe.push(Ge)}),qe}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(pe,qe){let Me=(0,i.fI)(qe),Ge=pe.getElementRef().nativeElement;do{if(Me==Ge)return!0}while(Me=Me.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const pe=this._getWindow();return(0,v.R)(pe.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return de.\u0275fac=function(pe){return new(pe||de)(d.\u0275\u0275inject(d.NgZone),d.\u0275\u0275inject(O.t4),d.\u0275\u0275inject(I.DOCUMENT,8))},de.\u0275prov=d.\u0275\u0275defineInjectable({token:de,factory:de.\u0275fac,providedIn:"root"}),de})(),Le=(()=>{class de{constructor(pe,qe,Me){this._platform=pe,this._change=new _.x,this._changeListener=Ge=>{this._change.next(Ge)},this._document=Me,qe.runOutsideAngular(()=>{if(pe.isBrowser){const Ge=this._getWindow();Ge.addEventListener("resize",this._changeListener),Ge.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const pe=this._getWindow();pe.removeEventListener("resize",this._changeListener),pe.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const pe={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),pe}getViewportRect(){const pe=this.getViewportScrollPosition(),{width:qe,height:Me}=this.getViewportSize();return{top:pe.top,left:pe.left,bottom:pe.top+Me,right:pe.left+qe,height:Me,width:qe}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const pe=this._document,qe=this._getWindow(),Me=pe.documentElement,Ge=Me.getBoundingClientRect();return{top:-Ge.top||pe.body.scrollTop||qe.scrollY||Me.scrollTop||0,left:-Ge.left||pe.body.scrollLeft||qe.scrollX||Me.scrollLeft||0}}change(pe=20){return pe>0?this._change.pipe((0,p.e)(pe)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const pe=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:pe.innerWidth,height:pe.innerHeight}:{width:0,height:0}}}return de.\u0275fac=function(pe){return new(pe||de)(d.\u0275\u0275inject(O.t4),d.\u0275\u0275inject(d.NgZone),d.\u0275\u0275inject(I.DOCUMENT,8))},de.\u0275prov=d.\u0275\u0275defineInjectable({token:de,factory:de.\u0275fac,providedIn:"root"}),de})(),oe=(()=>{class de{}return de.\u0275fac=function(pe){return new(pe||de)},de.\u0275mod=d.\u0275\u0275defineNgModule({type:de}),de.\u0275inj=d.\u0275\u0275defineInjector({}),de})(),ke=(()=>{class de{}return de.\u0275fac=function(pe){return new(pe||de)},de.\u0275mod=d.\u0275\u0275defineNgModule({type:de}),de.\u0275inj=d.\u0275\u0275defineInjector({imports:[[w.vT,O.ud,oe],w.vT,oe]}),de})()},9808:(Be,m,l)=>{"use strict";l.r(m),l.d(m,{APP_BASE_HREF:()=>De,AsyncPipe:()=>Wi,CommonModule:()=>rr,CurrencyPipe:()=>Ai,DATE_PIPE_DEFAULT_TIMEZONE:()=>gr,DOCUMENT:()=>C,DatePipe:()=>Di,DecimalPipe:()=>_r,FormStyle:()=>K,FormatWidth:()=>ke,HashLocationStrategy:()=>_e,I18nPluralPipe:()=>Pr,I18nSelectPipe:()=>Ki,JsonPipe:()=>Si,KeyValuePipe:()=>Or,LOCATION_INITIALIZED:()=>y,Location:()=>le,LocationStrategy:()=>$,LowerCasePipe:()=>Ir,NgClass:()=>cn,NgComponentOutlet:()=>Hn,NgForOf:()=>Sn,NgForOfContext:()=>Un,NgIf:()=>xn,NgIfContext:()=>mn,NgLocaleLocalization:()=>vn,NgLocalization:()=>jt,NgPlural:()=>hi,NgPluralCase:()=>Wn,NgStyle:()=>Sr,NgSwitch:()=>Kn,NgSwitchCase:()=>Gn,NgSwitchDefault:()=>Ci,NgTemplateOutlet:()=>nr,NumberFormatStyle:()=>X,NumberSymbol:()=>de,PathLocationStrategy:()=>fe,PercentPipe:()=>fi,PlatformLocation:()=>D,Plural:()=>me,SlicePipe:()=>mi,TitleCasePipe:()=>zi,TranslationWidth:()=>oe,UpperCasePipe:()=>ci,VERSION:()=>Yi,ViewportScroller:()=>ki,WeekDay:()=>Ue,XhrFactory:()=>Ln,formatCurrency:()=>Bn,formatDate:()=>zt,formatNumber:()=>we,formatPercent:()=>H,getCurrencySymbol:()=>Ce,getLocaleCurrencyCode:()=>pt,getLocaleCurrencyName:()=>Je,getLocaleCurrencySymbol:()=>ge,getLocaleDateFormat:()=>et,getLocaleDateTimeFormat:()=>he,getLocaleDayNames:()=>Me,getLocaleDayPeriods:()=>qe,getLocaleDirection:()=>ie,getLocaleEraNames:()=>vt,getLocaleExtraDayPeriodRules:()=>Ze,getLocaleExtraDayPeriods:()=>N,getLocaleFirstDayOfWeek:()=>St,getLocaleId:()=>pe,getLocaleMonthNames:()=>Ge,getLocaleNumberFormat:()=>Ae,getLocaleNumberSymbol:()=>Ee,getLocalePluralCase:()=>Rt,getLocaleTimeFormat:()=>Y,getLocaleWeekEndRange:()=>Re,getNumberOfCurrencyDigits:()=>re,isPlatformBrowser:()=>ti,isPlatformServer:()=>Ri,isPlatformWorkerApp:()=>or,isPlatformWorkerUi:()=>Fi,registerLocaleData:()=>Ht,\u0275BrowserPlatformLocation:()=>I,\u0275DomAdapter:()=>v,\u0275NullViewportScroller:()=>ar,\u0275PLATFORM_BROWSER_ID:()=>Pi,\u0275PLATFORM_SERVER_ID:()=>Oi,\u0275PLATFORM_WORKER_APP_ID:()=>xi,\u0275PLATFORM_WORKER_UI_ID:()=>Zi,\u0275getDOM:()=>_,\u0275parseCookieValue:()=>On,\u0275setRootDomAdapter:()=>s});var i=l(5e3);let d=null;function _(){return d}function s(x){d||(d=x)}class v{}const C=new i.InjectionToken("DocumentToken");let D=(()=>{class x{historyGo(R){throw new Error("Not implemented")}}return x.\u0275fac=function(R){return new(R||x)},x.\u0275prov=i.\u0275\u0275defineInjectable({token:x,factory:function(){return function p(){return(0,i.\u0275\u0275inject)(I)}()},providedIn:"platform"}),x})();const y=new i.InjectionToken("Location Initialized");let I=(()=>{class x extends D{constructor(R){super(),this._doc=R,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return _().getBaseHref(this._doc)}onPopState(R){const te=_().getGlobalEventTarget(this._doc,"window");return te.addEventListener("popstate",R,!1),()=>te.removeEventListener("popstate",R)}onHashChange(R){const te=_().getGlobalEventTarget(this._doc,"window");return te.addEventListener("hashchange",R,!1),()=>te.removeEventListener("hashchange",R)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(R){this.location.pathname=R}pushState(R,te,ze){O()?this._history.pushState(R,te,ze):this.location.hash=ze}replaceState(R,te,ze){O()?this._history.replaceState(R,te,ze):this.location.hash=ze}forward(){this._history.forward()}back(){this._history.back()}historyGo(R=0){this._history.go(R)}getState(){return this._history.state}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275inject(C))},x.\u0275prov=i.\u0275\u0275defineInjectable({token:x,factory:function(){return function w(){return new I((0,i.\u0275\u0275inject)(C))}()},providedIn:"platform"}),x})();function O(){return!!window.history.pushState}function k(x,Q){if(0==x.length)return Q;if(0==Q.length)return x;let R=0;return x.endsWith("/")&&R++,Q.startsWith("/")&&R++,2==R?x+Q.substring(1):1==R?x+Q:x+"/"+Q}function V(x){const Q=x.match(/#|\?|$/),R=Q&&Q.index||x.length;return x.slice(0,R-("/"===x[R-1]?1:0))+x.slice(R)}function ue(x){return x&&"?"!==x[0]?"?"+x:x}let $=(()=>{class x{historyGo(R){throw new Error("Not implemented")}}return x.\u0275fac=function(R){return new(R||x)},x.\u0275prov=i.\u0275\u0275defineInjectable({token:x,factory:function(){return function ne(x){const Q=(0,i.\u0275\u0275inject)(C).location;return new fe((0,i.\u0275\u0275inject)(D),Q&&Q.origin||"")}()},providedIn:"root"}),x})();const De=new i.InjectionToken("appBaseHref");let fe=(()=>{class x extends ${constructor(R,te){if(super(),this._platformLocation=R,this._removeListenerFns=[],null==te&&(te=this._platformLocation.getBaseHrefFromDOM()),null==te)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=te}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(R){this._removeListenerFns.push(this._platformLocation.onPopState(R),this._platformLocation.onHashChange(R))}getBaseHref(){return this._baseHref}prepareExternalUrl(R){return k(this._baseHref,R)}path(R=!1){const te=this._platformLocation.pathname+ue(this._platformLocation.search),ze=this._platformLocation.hash;return ze&&R?`${te}${ze}`:te}pushState(R,te,ze,ht){const Dt=this.prepareExternalUrl(ze+ue(ht));this._platformLocation.pushState(R,te,Dt)}replaceState(R,te,ze,ht){const Dt=this.prepareExternalUrl(ze+ue(ht));this._platformLocation.replaceState(R,te,Dt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(R=0){var te,ze;null===(ze=(te=this._platformLocation).historyGo)||void 0===ze||ze.call(te,R)}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275inject(D),i.\u0275\u0275inject(De,8))},x.\u0275prov=i.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac}),x})(),_e=(()=>{class x extends ${constructor(R,te){super(),this._platformLocation=R,this._baseHref="",this._removeListenerFns=[],null!=te&&(this._baseHref=te)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(R){this._removeListenerFns.push(this._platformLocation.onPopState(R),this._platformLocation.onHashChange(R))}getBaseHref(){return this._baseHref}path(R=!1){let te=this._platformLocation.hash;return null==te&&(te="#"),te.length>0?te.substring(1):te}prepareExternalUrl(R){const te=k(this._baseHref,R);return te.length>0?"#"+te:te}pushState(R,te,ze,ht){let Dt=this.prepareExternalUrl(ze+ue(ht));0==Dt.length&&(Dt=this._platformLocation.pathname),this._platformLocation.pushState(R,te,Dt)}replaceState(R,te,ze,ht){let Dt=this.prepareExternalUrl(ze+ue(ht));0==Dt.length&&(Dt=this._platformLocation.pathname),this._platformLocation.replaceState(R,te,Dt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(R=0){var te,ze;null===(ze=(te=this._platformLocation).historyGo)||void 0===ze||ze.call(te,R)}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275inject(D),i.\u0275\u0275inject(De,8))},x.\u0275prov=i.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac}),x})(),le=(()=>{class x{constructor(R,te){this._subject=new i.EventEmitter,this._urlChangeListeners=[],this._platformStrategy=R;const ze=this._platformStrategy.getBaseHref();this._platformLocation=te,this._baseHref=V(Xe(ze)),this._platformStrategy.onPopState(ht=>{this._subject.emit({url:this.path(!0),pop:!0,state:ht.state,type:ht.type})})}path(R=!1){return this.normalize(this._platformStrategy.path(R))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(R,te=""){return this.path()==this.normalize(R+ue(te))}normalize(R){return x.stripTrailingSlash(function Le(x,Q){return x&&Q.startsWith(x)?Q.substring(x.length):Q}(this._baseHref,Xe(R)))}prepareExternalUrl(R){return R&&"/"!==R[0]&&(R="/"+R),this._platformStrategy.prepareExternalUrl(R)}go(R,te="",ze=null){this._platformStrategy.pushState(ze,"",R,te),this._notifyUrlChangeListeners(this.prepareExternalUrl(R+ue(te)),ze)}replaceState(R,te="",ze=null){this._platformStrategy.replaceState(ze,"",R,te),this._notifyUrlChangeListeners(this.prepareExternalUrl(R+ue(te)),ze)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(R=0){var te,ze;null===(ze=(te=this._platformStrategy).historyGo)||void 0===ze||ze.call(te,R)}onUrlChange(R){this._urlChangeListeners.push(R),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(te=>{this._notifyUrlChangeListeners(te.url,te.state)}))}_notifyUrlChangeListeners(R="",te){this._urlChangeListeners.forEach(ze=>ze(R,te))}subscribe(R,te,ze){return this._subject.subscribe({next:R,error:te,complete:ze})}}return x.normalizeQueryParams=ue,x.joinWithSlash=k,x.stripTrailingSlash=V,x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275inject($),i.\u0275\u0275inject(D))},x.\u0275prov=i.\u0275\u0275defineInjectable({token:x,factory:function(){return function Se(){return new le((0,i.\u0275\u0275inject)($),(0,i.\u0275\u0275inject)(D))}()},providedIn:"root"}),x})();function Xe(x){return x.replace(/\/index.html$/,"")}const lt={ADP:[void 0,void 0,0],AFN:[void 0,"\u060b",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058f",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20bc"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,"\u0440.",2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GHS:[void 0,"GH\u20b5"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RUR:[void 0,"\u0440."],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202fCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]};var X=(()=>((X=X||{})[X.Decimal=0]="Decimal",X[X.Percent=1]="Percent",X[X.Currency=2]="Currency",X[X.Scientific=3]="Scientific",X))(),me=(()=>((me=me||{})[me.Zero=0]="Zero",me[me.One=1]="One",me[me.Two=2]="Two",me[me.Few=3]="Few",me[me.Many=4]="Many",me[me.Other=5]="Other",me))(),K=(()=>((K=K||{})[K.Format=0]="Format",K[K.Standalone=1]="Standalone",K))(),oe=(()=>((oe=oe||{})[oe.Narrow=0]="Narrow",oe[oe.Abbreviated=1]="Abbreviated",oe[oe.Wide=2]="Wide",oe[oe.Short=3]="Short",oe))(),ke=(()=>((ke=ke||{})[ke.Short=0]="Short",ke[ke.Medium=1]="Medium",ke[ke.Long=2]="Long",ke[ke.Full=3]="Full",ke))(),de=(()=>((de=de||{})[de.Decimal=0]="Decimal",de[de.Group=1]="Group",de[de.List=2]="List",de[de.PercentSign=3]="PercentSign",de[de.PlusSign=4]="PlusSign",de[de.MinusSign=5]="MinusSign",de[de.Exponential=6]="Exponential",de[de.SuperscriptingExponent=7]="SuperscriptingExponent",de[de.PerMille=8]="PerMille",de[de.Infinity=9]="Infinity",de[de.NaN=10]="NaN",de[de.TimeSeparator=11]="TimeSeparator",de[de.CurrencyDecimal=12]="CurrencyDecimal",de[de.CurrencyGroup=13]="CurrencyGroup",de))(),Ue=(()=>((Ue=Ue||{})[Ue.Sunday=0]="Sunday",Ue[Ue.Monday=1]="Monday",Ue[Ue.Tuesday=2]="Tuesday",Ue[Ue.Wednesday=3]="Wednesday",Ue[Ue.Thursday=4]="Thursday",Ue[Ue.Friday=5]="Friday",Ue[Ue.Saturday=6]="Saturday",Ue))();function pe(x){return(0,i.\u0275findLocaleData)(x)[i.\u0275LocaleDataIndex.LocaleId]}function qe(x,Q,R){const te=(0,i.\u0275findLocaleData)(x),ht=Oe([te[i.\u0275LocaleDataIndex.DayPeriodsFormat],te[i.\u0275LocaleDataIndex.DayPeriodsStandalone]],Q);return Oe(ht,R)}function Me(x,Q,R){const te=(0,i.\u0275findLocaleData)(x),ht=Oe([te[i.\u0275LocaleDataIndex.DaysFormat],te[i.\u0275LocaleDataIndex.DaysStandalone]],Q);return Oe(ht,R)}function Ge(x,Q,R){const te=(0,i.\u0275findLocaleData)(x),ht=Oe([te[i.\u0275LocaleDataIndex.MonthsFormat],te[i.\u0275LocaleDataIndex.MonthsStandalone]],Q);return Oe(ht,R)}function vt(x,Q){return Oe((0,i.\u0275findLocaleData)(x)[i.\u0275LocaleDataIndex.Eras],Q)}function St(x){return(0,i.\u0275findLocaleData)(x)[i.\u0275LocaleDataIndex.FirstDayOfWeek]}function Re(x){return(0,i.\u0275findLocaleData)(x)[i.\u0275LocaleDataIndex.WeekendRange]}function et(x,Q){return Oe((0,i.\u0275findLocaleData)(x)[i.\u0275LocaleDataIndex.DateFormat],Q)}function Y(x,Q){return Oe((0,i.\u0275findLocaleData)(x)[i.\u0275LocaleDataIndex.TimeFormat],Q)}function he(x,Q){return Oe((0,i.\u0275findLocaleData)(x)[i.\u0275LocaleDataIndex.DateTimeFormat],Q)}function Ee(x,Q){const R=(0,i.\u0275findLocaleData)(x),te=R[i.\u0275LocaleDataIndex.NumberSymbols][Q];if(void 0===te){if(Q===de.CurrencyDecimal)return R[i.\u0275LocaleDataIndex.NumberSymbols][de.Decimal];if(Q===de.CurrencyGroup)return R[i.\u0275LocaleDataIndex.NumberSymbols][de.Group]}return te}function Ae(x,Q){return(0,i.\u0275findLocaleData)(x)[i.\u0275LocaleDataIndex.NumberFormats][Q]}function ge(x){return(0,i.\u0275findLocaleData)(x)[i.\u0275LocaleDataIndex.CurrencySymbol]||null}function Je(x){return(0,i.\u0275findLocaleData)(x)[i.\u0275LocaleDataIndex.CurrencyName]||null}function pt(x){return(0,i.\u0275getLocaleCurrencyCode)(x)}const Rt=i.\u0275getLocalePluralCase;function dt(x){if(!x[i.\u0275LocaleDataIndex.ExtraData])throw new Error(`Missing extra locale data for the locale "${x[i.\u0275LocaleDataIndex.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ze(x){const Q=(0,i.\u0275findLocaleData)(x);return dt(Q),(Q[i.\u0275LocaleDataIndex.ExtraData][2]||[]).map(te=>"string"==typeof te?se(te):[se(te[0]),se(te[1])])}function N(x,Q,R){const te=(0,i.\u0275findLocaleData)(x);dt(te);const ht=Oe([te[i.\u0275LocaleDataIndex.ExtraData][0],te[i.\u0275LocaleDataIndex.ExtraData][1]],Q)||[];return Oe(ht,R)||[]}function ie(x){return(0,i.\u0275findLocaleData)(x)[i.\u0275LocaleDataIndex.Directionality]}function Oe(x,Q){for(let R=Q;R>-1;R--)if(void 0!==x[R])return x[R];throw new Error("Locale data API: locale data undefined")}function se(x){const[Q,R]=x.split(":");return{hours:+Q,minutes:+R}}function Ce(x,Q,R="en"){const te=function Tt(x){return(0,i.\u0275findLocaleData)(x)[i.\u0275LocaleDataIndex.Currencies]}(R)[x]||lt[x]||[],ze=te[1];return"narrow"===Q&&"string"==typeof ze?ze:te[0]||x}function re(x){let Q;const R=lt[x];return R&&(Q=R[2]),"number"==typeof Q?Q:2}const be=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ye={},it=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var mt=(()=>((mt=mt||{})[mt.Short=0]="Short",mt[mt.ShortGMT=1]="ShortGMT",mt[mt.Long=2]="Long",mt[mt.Extended=3]="Extended",mt))(),_t=(()=>((_t=_t||{})[_t.FullYear=0]="FullYear",_t[_t.Month=1]="Month",_t[_t.Date=2]="Date",_t[_t.Hours=3]="Hours",_t[_t.Minutes=4]="Minutes",_t[_t.Seconds=5]="Seconds",_t[_t.FractionalSeconds=6]="FractionalSeconds",_t[_t.Day=7]="Day",_t))(),It=(()=>((It=It||{})[It.DayPeriods=0]="DayPeriods",It[It.Days=1]="Days",It[It.Months=2]="Months",It[It.Eras=3]="Eras",It))();function zt(x,Q,R,te){let ze=function $e(x){if(je(x))return x;if("number"==typeof x&&!isNaN(x))return new Date(x);if("string"==typeof x){if(x=x.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(x)){const[ze,ht=1,Dt=1]=x.split("-").map(Nt=>+Nt);return on(ze,ht-1,Dt)}const R=parseFloat(x);if(!isNaN(x-R))return new Date(R);let te;if(te=x.match(be))return function ce(x){const Q=new Date(0);let R=0,te=0;const ze=x[8]?Q.setUTCFullYear:Q.setFullYear,ht=x[8]?Q.setUTCHours:Q.setHours;x[9]&&(R=Number(x[9]+x[10]),te=Number(x[9]+x[11])),ze.call(Q,Number(x[1]),Number(x[2])-1,Number(x[3]));const Dt=Number(x[4]||0)-R,Nt=Number(x[5]||0)-te,Dn=Number(x[6]||0),Tn=Math.floor(1e3*parseFloat("0."+(x[7]||0)));return ht.call(Q,Dt,Nt,Dn,Tn),Q}(te)}const Q=new Date(x);if(!je(Q))throw new Error(`Unable to convert "${x}" into a date`);return Q}(x);Q=Kt(R,Q)||Q;let Nt,Dt=[];for(;Q;){if(Nt=it.exec(Q),!Nt){Dt.push(Q);break}{Dt=Dt.concat(Nt.slice(1));const In=Dt.pop();if(!In)break;Q=In}}let Dn=ze.getTimezoneOffset();te&&(Dn=Ut(te,Dn),ze=function He(x,Q,R){const te=R?-1:1,ze=x.getTimezoneOffset();return function gn(x,Q){return(x=new Date(x.getTime())).setMinutes(x.getMinutes()+Q),x}(x,te*(Ut(Q,ze)-ze))}(ze,te,!0));let Tn="";return Dt.forEach(In=>{const un=function Et(x){if(ot[x])return ot[x];let Q;switch(x){case"G":case"GG":case"GGG":Q=at(It.Eras,oe.Abbreviated);break;case"GGGG":Q=at(It.Eras,oe.Wide);break;case"GGGGG":Q=at(It.Eras,oe.Narrow);break;case"y":Q=Ot(_t.FullYear,1,0,!1,!0);break;case"yy":Q=Ot(_t.FullYear,2,0,!0,!0);break;case"yyy":Q=Ot(_t.FullYear,3,0,!1,!0);break;case"yyyy":Q=Ot(_t.FullYear,4,0,!1,!0);break;case"Y":Q=G(1);break;case"YY":Q=G(2,!0);break;case"YYY":Q=G(3);break;case"YYYY":Q=G(4);break;case"M":case"L":Q=Ot(_t.Month,1,1);break;case"MM":case"LL":Q=Ot(_t.Month,2,1);break;case"MMM":Q=at(It.Months,oe.Abbreviated);break;case"MMMM":Q=at(It.Months,oe.Wide);break;case"MMMMM":Q=at(It.Months,oe.Narrow);break;case"LLL":Q=at(It.Months,oe.Abbreviated,K.Standalone);break;case"LLLL":Q=at(It.Months,oe.Wide,K.Standalone);break;case"LLLLL":Q=at(It.Months,oe.Narrow,K.Standalone);break;case"w":Q=M(1);break;case"ww":Q=M(2);break;case"W":Q=M(1,!0);break;case"d":Q=Ot(_t.Date,1);break;case"dd":Q=Ot(_t.Date,2);break;case"c":case"cc":Q=Ot(_t.Day,1);break;case"ccc":Q=at(It.Days,oe.Abbreviated,K.Standalone);break;case"cccc":Q=at(It.Days,oe.Wide,K.Standalone);break;case"ccccc":Q=at(It.Days,oe.Narrow,K.Standalone);break;case"cccccc":Q=at(It.Days,oe.Short,K.Standalone);break;case"E":case"EE":case"EEE":Q=at(It.Days,oe.Abbreviated);break;case"EEEE":Q=at(It.Days,oe.Wide);break;case"EEEEE":Q=at(It.Days,oe.Narrow);break;case"EEEEEE":Q=at(It.Days,oe.Short);break;case"a":case"aa":case"aaa":Q=at(It.DayPeriods,oe.Abbreviated);break;case"aaaa":Q=at(It.DayPeriods,oe.Wide);break;case"aaaaa":Q=at(It.DayPeriods,oe.Narrow);break;case"b":case"bb":case"bbb":Q=at(It.DayPeriods,oe.Abbreviated,K.Standalone,!0);break;case"bbbb":Q=at(It.DayPeriods,oe.Wide,K.Standalone,!0);break;case"bbbbb":Q=at(It.DayPeriods,oe.Narrow,K.Standalone,!0);break;case"B":case"BB":case"BBB":Q=at(It.DayPeriods,oe.Abbreviated,K.Format,!0);break;case"BBBB":Q=at(It.DayPeriods,oe.Wide,K.Format,!0);break;case"BBBBB":Q=at(It.DayPeriods,oe.Narrow,K.Format,!0);break;case"h":Q=Ot(_t.Hours,1,-12);break;case"hh":Q=Ot(_t.Hours,2,-12);break;case"H":Q=Ot(_t.Hours,1);break;case"HH":Q=Ot(_t.Hours,2);break;case"m":Q=Ot(_t.Minutes,1);break;case"mm":Q=Ot(_t.Minutes,2);break;case"s":Q=Ot(_t.Seconds,1);break;case"ss":Q=Ot(_t.Seconds,2);break;case"S":Q=Ot(_t.FractionalSeconds,1);break;case"SS":Q=Ot(_t.FractionalSeconds,2);break;case"SSS":Q=Ot(_t.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":Q=Qe(mt.Short);break;case"ZZZZZ":Q=Qe(mt.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":Q=Qe(mt.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":Q=Qe(mt.Long);break;default:return null}return ot[x]=Q,Q}(In);Tn+=un?un(ze,R,Dn):"''"===In?"'":In.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Tn}function on(x,Q,R){const te=new Date(0);return te.setFullYear(x,Q,R),te.setHours(0,0,0),te}function Kt(x,Q){const R=pe(x);if(Ye[R]=Ye[R]||{},Ye[R][Q])return Ye[R][Q];let te="";switch(Q){case"shortDate":te=et(x,ke.Short);break;case"mediumDate":te=et(x,ke.Medium);break;case"longDate":te=et(x,ke.Long);break;case"fullDate":te=et(x,ke.Full);break;case"shortTime":te=Y(x,ke.Short);break;case"mediumTime":te=Y(x,ke.Medium);break;case"longTime":te=Y(x,ke.Long);break;case"fullTime":te=Y(x,ke.Full);break;case"short":const ze=Kt(x,"shortTime"),ht=Kt(x,"shortDate");te=Mn(he(x,ke.Short),[ze,ht]);break;case"medium":const Dt=Kt(x,"mediumTime"),Nt=Kt(x,"mediumDate");te=Mn(he(x,ke.Medium),[Dt,Nt]);break;case"long":const Dn=Kt(x,"longTime"),Tn=Kt(x,"longDate");te=Mn(he(x,ke.Long),[Dn,Tn]);break;case"full":const In=Kt(x,"fullTime"),un=Kt(x,"fullDate");te=Mn(he(x,ke.Full),[In,un])}return te&&(Ye[R][Q]=te),te}function Mn(x,Q){return Q&&(x=x.replace(/\{([^}]+)}/g,function(R,te){return null!=Q&&te in Q?Q[te]:R})),x}function an(x,Q,R="-",te,ze){let ht="";(x<0||ze&&x<=0)&&(ze?x=1-x:(x=-x,ht=R));let Dt=String(x);for(;Dt.length<Q;)Dt="0"+Dt;return te&&(Dt=Dt.substr(Dt.length-Q)),ht+Dt}function Ot(x,Q,R=0,te=!1,ze=!1){return function(ht,Dt){let Nt=function bn(x,Q){switch(x){case _t.FullYear:return Q.getFullYear();case _t.Month:return Q.getMonth();case _t.Date:return Q.getDate();case _t.Hours:return Q.getHours();case _t.Minutes:return Q.getMinutes();case _t.Seconds:return Q.getSeconds();case _t.FractionalSeconds:return Q.getMilliseconds();case _t.Day:return Q.getDay();default:throw new Error(`Unknown DateType value "${x}".`)}}(x,ht);if((R>0||Nt>-R)&&(Nt+=R),x===_t.Hours)0===Nt&&-12===R&&(Nt=12);else if(x===_t.FractionalSeconds)return function Qt(x,Q){return an(x,3).substr(0,Q)}(Nt,Q);const Dn=Ee(Dt,de.MinusSign);return an(Nt,Q,Dn,te,ze)}}function at(x,Q,R=K.Format,te=!1){return function(ze,ht){return function Ke(x,Q,R,te,ze,ht){switch(R){case It.Months:return Ge(Q,ze,te)[x.getMonth()];case It.Days:return Me(Q,ze,te)[x.getDay()];case It.DayPeriods:const Dt=x.getHours(),Nt=x.getMinutes();if(ht){const Tn=Ze(Q),In=N(Q,ze,te),un=Tn.findIndex(F=>{if(Array.isArray(F)){const[P,b]=F,J=Dt>=P.hours&&Nt>=P.minutes,ut=Dt<b.hours||Dt===b.hours&&Nt<b.minutes;if(P.hours<b.hours){if(J&&ut)return!0}else if(J||ut)return!0}else if(F.hours===Dt&&F.minutes===Nt)return!0;return!1});if(-1!==un)return In[un]}return qe(Q,ze,te)[Dt<12?0:1];case It.Eras:return vt(Q,te)[x.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${R}`)}}(ze,ht,x,Q,R,te)}}function Qe(x){return function(Q,R,te){const ze=-1*te,ht=Ee(R,de.MinusSign),Dt=ze>0?Math.floor(ze/60):Math.ceil(ze/60);switch(x){case mt.Short:return(ze>=0?"+":"")+an(Dt,2,ht)+an(Math.abs(ze%60),2,ht);case mt.ShortGMT:return"GMT"+(ze>=0?"+":"")+an(Dt,1,ht);case mt.Long:return"GMT"+(ze>=0?"+":"")+an(Dt,2,ht)+":"+an(Math.abs(ze%60),2,ht);case mt.Extended:return 0===te?"Z":(ze>=0?"+":"")+an(Dt,2,ht)+":"+an(Math.abs(ze%60),2,ht);default:throw new Error(`Unknown zone width "${x}"`)}}}function A(x){return on(x.getFullYear(),x.getMonth(),x.getDate()+(4-x.getDay()))}function M(x,Q=!1){return function(R,te){let ze;if(Q){const ht=new Date(R.getFullYear(),R.getMonth(),1).getDay()-1,Dt=R.getDate();ze=1+Math.floor((Dt+ht)/7)}else{const ht=A(R),Dt=function S(x){const Q=on(x,0,1).getDay();return on(x,0,1+(Q<=4?4:11)-Q)}(ht.getFullYear()),Nt=ht.getTime()-Dt.getTime();ze=1+Math.round(Nt/6048e5)}return an(ze,x,Ee(te,de.MinusSign))}}function G(x,Q=!1){return function(R,te){return an(A(R).getFullYear(),x,Ee(te,de.MinusSign),Q)}}const ot={};function Ut(x,Q){x=x.replace(/:/g,"");const R=Date.parse("Jan 01, 1970 00:00:00 "+x)/6e4;return isNaN(R)?Q:R}function je(x){return x instanceof Date&&!isNaN(x.valueOf())}const ft=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function zn(x,Q,R,te,ze,ht,Dt=!1){let Nt="",Dn=!1;if(isFinite(x)){let Tn=function tt(x){let te,ze,ht,Dt,Nt,Q=Math.abs(x)+"",R=0;for((ze=Q.indexOf("."))>-1&&(Q=Q.replace(".","")),(ht=Q.search(/e/i))>0?(ze<0&&(ze=ht),ze+=+Q.slice(ht+1),Q=Q.substring(0,ht)):ze<0&&(ze=Q.length),ht=0;"0"===Q.charAt(ht);ht++);if(ht===(Nt=Q.length))te=[0],ze=1;else{for(Nt--;"0"===Q.charAt(Nt);)Nt--;for(ze-=ht,te=[],Dt=0;ht<=Nt;ht++,Dt++)te[Dt]=Number(Q.charAt(ht))}return ze>22&&(te=te.splice(0,21),R=ze-1,ze=1),{digits:te,exponent:R,integerLen:ze}}(x);Dt&&(Tn=function Pe(x){if(0===x.digits[0])return x;const Q=x.digits.length-x.integerLen;return x.exponent?x.exponent+=2:(0===Q?x.digits.push(0,0):1===Q&&x.digits.push(0),x.integerLen+=2),x}(Tn));let In=Q.minInt,un=Q.minFrac,F=Q.maxFrac;if(ht){const An=ht.match(ft);if(null===An)throw new Error(`${ht} is not a valid digit info`);const qn=An[1],gi=An[3],Ni=An[5];null!=qn&&(In=At(qn)),null!=gi&&(un=At(gi)),null!=Ni?F=At(Ni):null!=gi&&un>F&&(F=un)}!function ct(x,Q,R){if(Q>R)throw new Error(`The minimum number of digits after fraction (${Q}) is higher than the maximum (${R}).`);let te=x.digits,ze=te.length-x.integerLen;const ht=Math.min(Math.max(Q,ze),R);let Dt=ht+x.integerLen,Nt=te[Dt];if(Dt>0){te.splice(Math.max(x.integerLen,Dt));for(let un=Dt;un<te.length;un++)te[un]=0}else{ze=Math.max(0,ze),x.integerLen=1,te.length=Math.max(1,Dt=ht+1),te[0]=0;for(let un=1;un<Dt;un++)te[un]=0}if(Nt>=5)if(Dt-1<0){for(let un=0;un>Dt;un--)te.unshift(0),x.integerLen++;te.unshift(1),x.integerLen++}else te[Dt-1]++;for(;ze<Math.max(0,ht);ze++)te.push(0);let Dn=0!==ht;const Tn=Q+x.integerLen,In=te.reduceRight(function(un,F,P,b){return b[P]=(F+=un)<10?F:F-10,Dn&&(0===b[P]&&P>=Tn?b.pop():Dn=!1),F>=10?1:0},0);In&&(te.unshift(In),x.integerLen++)}(Tn,un,F);let P=Tn.digits,b=Tn.integerLen;const J=Tn.exponent;let ut=[];for(Dn=P.every(An=>!An);b<In;b++)P.unshift(0);for(;b<0;b++)P.unshift(0);b>0?ut=P.splice(b,P.length):(ut=P,P=[0]);const $t=[];for(P.length>=Q.lgSize&&$t.unshift(P.splice(-Q.lgSize,P.length).join(""));P.length>Q.gSize;)$t.unshift(P.splice(-Q.gSize,P.length).join(""));P.length&&$t.unshift(P.join("")),Nt=$t.join(Ee(R,te)),ut.length&&(Nt+=Ee(R,ze)+ut.join("")),J&&(Nt+=Ee(R,de.Exponential)+"+"+J)}else Nt=Ee(R,de.Infinity);return Nt=x<0&&!Dn?Q.negPre+Nt+Q.negSuf:Q.posPre+Nt+Q.posSuf,Nt}function Bn(x,Q,R,te,ze){const Dt=W(Ae(Q,X.Currency),Ee(Q,de.MinusSign));return Dt.minFrac=re(te),Dt.maxFrac=Dt.minFrac,zn(x,Dt,Q,de.CurrencyGroup,de.CurrencyDecimal,ze).replace("\xa4",R).replace("\xa4","").trim()}function H(x,Q,R){return zn(x,W(Ae(Q,X.Percent),Ee(Q,de.MinusSign)),Q,de.Group,de.Decimal,R,!0).replace(new RegExp("%","g"),Ee(Q,de.PercentSign))}function we(x,Q,R){return zn(x,W(Ae(Q,X.Decimal),Ee(Q,de.MinusSign)),Q,de.Group,de.Decimal,R)}function W(x,Q="-"){const R={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},te=x.split(";"),ze=te[0],ht=te[1],Dt=-1!==ze.indexOf(".")?ze.split("."):[ze.substring(0,ze.lastIndexOf("0")+1),ze.substring(ze.lastIndexOf("0")+1)],Nt=Dt[0],Dn=Dt[1]||"";R.posPre=Nt.substr(0,Nt.indexOf("#"));for(let In=0;In<Dn.length;In++){const un=Dn.charAt(In);"0"===un?R.minFrac=R.maxFrac=In+1:"#"===un?R.maxFrac=In+1:R.posSuf+=un}const Tn=Nt.split(",");if(R.gSize=Tn[1]?Tn[1].length:0,R.lgSize=Tn[2]||Tn[1]?(Tn[2]||Tn[1]).length:0,ht){const In=ze.length-R.posPre.length-R.posSuf.length,un=ht.indexOf("#");R.negPre=ht.substr(0,un).replace(/'/g,""),R.negSuf=ht.substr(un+In).replace(/'/g,"")}else R.negPre=Q+R.posPre,R.negSuf=R.posSuf;return R}function At(x){const Q=parseInt(x);if(isNaN(Q))throw new Error("Invalid integer literal when parsing "+x);return Q}class jt{}function qt(x,Q,R,te){let ze=`=${x}`;if(Q.indexOf(ze)>-1||(ze=R.getPluralCategory(x,te),Q.indexOf(ze)>-1))return ze;if(Q.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${x}"`)}let vn=(()=>{class x extends jt{constructor(R){super(),this.locale=R}getPluralCategory(R,te){switch(Rt(te||this.locale)(R)){case me.Zero:return"zero";case me.One:return"one";case me.Two:return"two";case me.Few:return"few";case me.Many:return"many";default:return"other"}}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275inject(i.LOCALE_ID))},x.\u0275prov=i.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac}),x})();function Ht(x,Q,R){return(0,i.\u0275registerLocaleData)(x,Q,R)}function On(x,Q){Q=encodeURIComponent(Q);for(const R of x.split(";")){const te=R.indexOf("="),[ze,ht]=-1==te?[R,""]:[R.slice(0,te),R.slice(te+1)];if(ze.trim()===Q)return decodeURIComponent(ht)}return null}let cn=(()=>{class x{constructor(R,te,ze,ht){this._iterableDiffers=R,this._keyValueDiffers=te,this._ngEl=ze,this._renderer=ht,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(R){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof R?R.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(R){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof R?R.split(/\s+/):R,this._rawClass&&((0,i.\u0275isListLikeIterable)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const R=this._iterableDiffer.diff(this._rawClass);R&&this._applyIterableChanges(R)}else if(this._keyValueDiffer){const R=this._keyValueDiffer.diff(this._rawClass);R&&this._applyKeyValueChanges(R)}}_applyKeyValueChanges(R){R.forEachAddedItem(te=>this._toggleClass(te.key,te.currentValue)),R.forEachChangedItem(te=>this._toggleClass(te.key,te.currentValue)),R.forEachRemovedItem(te=>{te.previousValue&&this._toggleClass(te.key,!1)})}_applyIterableChanges(R){R.forEachAddedItem(te=>{if("string"!=typeof te.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,i.\u0275stringify)(te.item)}`);this._toggleClass(te.item,!0)}),R.forEachRemovedItem(te=>this._toggleClass(te.item,!1))}_applyClasses(R){R&&(Array.isArray(R)||R instanceof Set?R.forEach(te=>this._toggleClass(te,!0)):Object.keys(R).forEach(te=>this._toggleClass(te,!!R[te])))}_removeClasses(R){R&&(Array.isArray(R)||R instanceof Set?R.forEach(te=>this._toggleClass(te,!1)):Object.keys(R).forEach(te=>this._toggleClass(te,!1)))}_toggleClass(R,te){(R=R.trim())&&R.split(/\s+/g).forEach(ze=>{te?this._renderer.addClass(this._ngEl.nativeElement,ze):this._renderer.removeClass(this._ngEl.nativeElement,ze)})}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275directiveInject(i.IterableDiffers),i.\u0275\u0275directiveInject(i.KeyValueDiffers),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.Renderer2))},x.\u0275dir=i.\u0275\u0275defineDirective({type:x,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),x})(),Hn=(()=>{class x{constructor(R){this._viewContainerRef=R,this._componentRef=null,this._moduleRef=null}ngOnChanges(R){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){const te=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(R.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){const Dt=te.get(i.NgModuleRef);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(Dt.injector)}else this._moduleRef=null;const ht=(this._moduleRef?this._moduleRef.componentFactoryResolver:te.get(i.ComponentFactoryResolver)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(ht,this._viewContainerRef.length,te,this.ngComponentOutletContent)}}ngOnDestroy(){this._moduleRef&&this._moduleRef.destroy()}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275directiveInject(i.ViewContainerRef))},x.\u0275dir=i.\u0275\u0275defineDirective({type:x,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},features:[i.\u0275\u0275NgOnChangesFeature]}),x})();class Un{constructor(Q,R,te,ze){this.$implicit=Q,this.ngForOf=R,this.index=te,this.count=ze}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Sn=(()=>{class x{constructor(R,te,ze){this._viewContainer=R,this._template=te,this._differs=ze,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(R){this._ngForOf=R,this._ngForOfDirty=!0}set ngForTrackBy(R){this._trackByFn=R}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(R){R&&(this._template=R)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const R=this._ngForOf;!this._differ&&R&&(this._differ=this._differs.find(R).create(this.ngForTrackBy))}if(this._differ){const R=this._differ.diff(this._ngForOf);R&&this._applyChanges(R)}}_applyChanges(R){const te=this._viewContainer;R.forEachOperation((ze,ht,Dt)=>{if(null==ze.previousIndex)te.createEmbeddedView(this._template,new Un(ze.item,this._ngForOf,-1,-1),null===Dt?void 0:Dt);else if(null==Dt)te.remove(null===ht?void 0:ht);else if(null!==ht){const Nt=te.get(ht);te.move(Nt,Dt),kn(Nt,ze)}});for(let ze=0,ht=te.length;ze<ht;ze++){const Nt=te.get(ze).context;Nt.index=ze,Nt.count=ht,Nt.ngForOf=this._ngForOf}R.forEachIdentityChange(ze=>{kn(te.get(ze.currentIndex),ze)})}static ngTemplateContextGuard(R,te){return!0}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(i.IterableDiffers))},x.\u0275dir=i.\u0275\u0275defineDirective({type:x,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),x})();function kn(x,Q){x.context.$implicit=Q.item}let xn=(()=>{class x{constructor(R,te){this._viewContainer=R,this._context=new mn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=te}set ngIf(R){this._context.$implicit=this._context.ngIf=R,this._updateView()}set ngIfThen(R){ni("ngIfThen",R),this._thenTemplateRef=R,this._thenViewRef=null,this._updateView()}set ngIfElse(R){ni("ngIfElse",R),this._elseTemplateRef=R,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(R,te){return!0}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.TemplateRef))},x.\u0275dir=i.\u0275\u0275defineDirective({type:x,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),x})();class mn{constructor(){this.$implicit=null,this.ngIf=null}}function ni(x,Q){if(Q&&!Q.createEmbeddedView)throw new Error(`${x} must be a TemplateRef, but received '${(0,i.\u0275stringify)(Q)}'.`)}class li{constructor(Q,R){this._viewContainerRef=Q,this._templateRef=R,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(Q){Q&&!this._created?this.create():!Q&&this._created&&this.destroy()}}let Kn=(()=>{class x{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(R){this._ngSwitch=R,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(R){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(R)}_matchCase(R){const te=R==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||te,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),te}_updateDefaultCases(R){if(this._defaultViews&&R!==this._defaultUsed){this._defaultUsed=R;for(let te=0;te<this._defaultViews.length;te++)this._defaultViews[te].enforceState(R)}}}return x.\u0275fac=function(R){return new(R||x)},x.\u0275dir=i.\u0275\u0275defineDirective({type:x,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),x})(),Gn=(()=>{class x{constructor(R,te,ze){this.ngSwitch=ze,ze._addCase(),this._view=new li(R,te)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(Kn,9))},x.\u0275dir=i.\u0275\u0275defineDirective({type:x,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),x})(),Ci=(()=>{class x{constructor(R,te,ze){ze._addDefault(new li(R,te))}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(Kn,9))},x.\u0275dir=i.\u0275\u0275defineDirective({type:x,selectors:[["","ngSwitchDefault",""]]}),x})(),hi=(()=>{class x{constructor(R){this._localization=R,this._caseViews={}}set ngPlural(R){this._switchValue=R,this._updateView()}addCase(R,te){this._caseViews[R]=te}_updateView(){this._clearViews();const R=Object.keys(this._caseViews),te=qt(this._switchValue,R,this._localization);this._activateView(this._caseViews[te])}_clearViews(){this._activeView&&this._activeView.destroy()}_activateView(R){R&&(this._activeView=R,this._activeView.create())}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275directiveInject(jt))},x.\u0275dir=i.\u0275\u0275defineDirective({type:x,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"}}),x})(),Wn=(()=>{class x{constructor(R,te,ze,ht){this.value=R;const Dt=!isNaN(Number(R));ht.addCase(Dt?`=${R}`:R,new li(ze,te))}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275injectAttribute("ngPluralCase"),i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(hi,1))},x.\u0275dir=i.\u0275\u0275defineDirective({type:x,selectors:[["","ngPluralCase",""]]}),x})(),Sr=(()=>{class x{constructor(R,te,ze){this._ngEl=R,this._differs=te,this._renderer=ze,this._ngStyle=null,this._differ=null}set ngStyle(R){this._ngStyle=R,!this._differ&&R&&(this._differ=this._differs.find(R).create())}ngDoCheck(){if(this._differ){const R=this._differ.diff(this._ngStyle);R&&this._applyChanges(R)}}_setStyle(R,te){const[ze,ht]=R.split(".");null!=(te=null!=te&&ht?`${te}${ht}`:te)?this._renderer.setStyle(this._ngEl.nativeElement,ze,te):this._renderer.removeStyle(this._ngEl.nativeElement,ze)}_applyChanges(R){R.forEachRemovedItem(te=>this._setStyle(te.key,null)),R.forEachAddedItem(te=>this._setStyle(te.key,te.currentValue)),R.forEachChangedItem(te=>this._setStyle(te.key,te.currentValue))}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.KeyValueDiffers),i.\u0275\u0275directiveInject(i.Renderer2))},x.\u0275dir=i.\u0275\u0275defineDirective({type:x,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),x})(),nr=(()=>{class x{constructor(R){this._viewContainerRef=R,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(R){if(R.ngTemplateOutlet){const te=this._viewContainerRef;this._viewRef&&te.remove(te.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?te.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&R.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275directiveInject(i.ViewContainerRef))},x.\u0275dir=i.\u0275\u0275defineDirective({type:x,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[i.\u0275\u0275NgOnChangesFeature]}),x})();function Qn(x,Q){return Error(`InvalidPipeArgument: '${Q}' for pipe '${(0,i.\u0275stringify)(x)}'`)}class Zn{createSubscription(Q,R){return Q.subscribe({next:R,error:te=>{throw te}})}dispose(Q){Q.unsubscribe()}onDestroy(Q){Q.unsubscribe()}}class Ei{createSubscription(Q,R){return Q.then(R,te=>{throw te})}dispose(Q){}onDestroy(Q){}}const Ui=new Ei,Lr=new Zn;let Wi=(()=>{class x{constructor(R){this._ref=R,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(R){return this._obj?R!==this._obj?(this._dispose(),this.transform(R)):this._latestValue:(R&&this._subscribe(R),this._latestValue)}_subscribe(R){this._obj=R,this._strategy=this._selectStrategy(R),this._subscription=this._strategy.createSubscription(R,te=>this._updateLatestValue(R,te))}_selectStrategy(R){if((0,i.\u0275isPromise)(R))return Ui;if((0,i.\u0275isSubscribable)(R))return Lr;throw Qn(x,R)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(R,te){R===this._obj&&(this._latestValue=te,this._ref.markForCheck())}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275directiveInject(i.ChangeDetectorRef,16))},x.\u0275pipe=i.\u0275\u0275definePipe({name:"async",type:x,pure:!1}),x})(),Ir=(()=>{class x{transform(R){if(null==R)return null;if("string"!=typeof R)throw Qn(x,R);return R.toLowerCase()}}return x.\u0275fac=function(R){return new(R||x)},x.\u0275pipe=i.\u0275\u0275definePipe({name:"lowercase",type:x,pure:!0}),x})();const wi=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let zi=(()=>{class x{transform(R){if(null==R)return null;if("string"!=typeof R)throw Qn(x,R);return R.replace(wi,te=>te[0].toUpperCase()+te.substr(1).toLowerCase())}}return x.\u0275fac=function(R){return new(R||x)},x.\u0275pipe=i.\u0275\u0275definePipe({name:"titlecase",type:x,pure:!0}),x})(),ci=(()=>{class x{transform(R){if(null==R)return null;if("string"!=typeof R)throw Qn(x,R);return R.toUpperCase()}}return x.\u0275fac=function(R){return new(R||x)},x.\u0275pipe=i.\u0275\u0275definePipe({name:"uppercase",type:x,pure:!0}),x})();const gr=new i.InjectionToken("DATE_PIPE_DEFAULT_TIMEZONE");let Di=(()=>{class x{constructor(R,te){this.locale=R,this.defaultTimezone=te}transform(R,te="mediumDate",ze,ht){var Dt;if(null==R||""===R||R!=R)return null;try{return zt(R,te,ht||this.locale,null!==(Dt=null!=ze?ze:this.defaultTimezone)&&void 0!==Dt?Dt:void 0)}catch(Nt){throw Qn(x,Nt.message)}}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275directiveInject(i.LOCALE_ID,16),i.\u0275\u0275directiveInject(gr,24))},x.\u0275pipe=i.\u0275\u0275definePipe({name:"date",type:x,pure:!0}),x})();const Ar=/#/g;let Pr=(()=>{class x{constructor(R){this._localization=R}transform(R,te,ze){if(null==R)return"";if("object"!=typeof te||null===te)throw Qn(x,te);return te[qt(R,Object.keys(te),this._localization,ze)].replace(Ar,R.toString())}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275directiveInject(jt,16))},x.\u0275pipe=i.\u0275\u0275definePipe({name:"i18nPlural",type:x,pure:!0}),x})(),Ki=(()=>{class x{transform(R,te){if(null==R)return"";if("object"!=typeof te||"string"!=typeof R)throw Qn(x,te);return te.hasOwnProperty(R)?te[R]:te.hasOwnProperty("other")?te.other:""}}return x.\u0275fac=function(R){return new(R||x)},x.\u0275pipe=i.\u0275\u0275definePipe({name:"i18nSelect",type:x,pure:!0}),x})(),Si=(()=>{class x{transform(R){return JSON.stringify(R,null,2)}}return x.\u0275fac=function(R){return new(R||x)},x.\u0275pipe=i.\u0275\u0275definePipe({name:"json",type:x,pure:!1}),x})(),Or=(()=>{class x{constructor(R){this.differs=R,this.keyValues=[],this.compareFn=Ii}transform(R,te=Ii){if(!R||!(R instanceof Map)&&"object"!=typeof R)return null;this.differ||(this.differ=this.differs.find(R).create());const ze=this.differ.diff(R),ht=te!==this.compareFn;return ze&&(this.keyValues=[],ze.forEachItem(Dt=>{this.keyValues.push(function Gi(x,Q){return{key:x,value:Q}}(Dt.key,Dt.currentValue))})),(ze||ht)&&(this.keyValues.sort(te),this.compareFn=te),this.keyValues}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275directiveInject(i.KeyValueDiffers,16))},x.\u0275pipe=i.\u0275\u0275definePipe({name:"keyvalue",type:x,pure:!1}),x})();function Ii(x,Q){const R=x.key,te=Q.key;if(R===te)return 0;if(void 0===R)return 1;if(void 0===te)return-1;if(null===R)return 1;if(null===te)return-1;if("string"==typeof R&&"string"==typeof te)return R<te?-1:1;if("number"==typeof R&&"number"==typeof te)return R-te;if("boolean"==typeof R&&"boolean"==typeof te)return R<te?-1:1;const ze=String(R),ht=String(te);return ze==ht?0:ze<ht?-1:1}let _r=(()=>{class x{constructor(R){this._locale=R}transform(R,te,ze){if(!pi(R))return null;ze=ze||this._locale;try{return we(Qi(R),ze,te)}catch(ht){throw Qn(x,ht.message)}}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275directiveInject(i.LOCALE_ID,16))},x.\u0275pipe=i.\u0275\u0275definePipe({name:"number",type:x,pure:!0}),x})(),fi=(()=>{class x{constructor(R){this._locale=R}transform(R,te,ze){if(!pi(R))return null;ze=ze||this._locale;try{return H(Qi(R),ze,te)}catch(ht){throw Qn(x,ht.message)}}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275directiveInject(i.LOCALE_ID,16))},x.\u0275pipe=i.\u0275\u0275definePipe({name:"percent",type:x,pure:!0}),x})(),Ai=(()=>{class x{constructor(R,te="USD"){this._locale=R,this._defaultCurrencyCode=te}transform(R,te=this._defaultCurrencyCode,ze="symbol",ht,Dt){if(!pi(R))return null;Dt=Dt||this._locale,"boolean"==typeof ze&&(ze=ze?"symbol":"code");let Nt=te||this._defaultCurrencyCode;"code"!==ze&&(Nt="symbol"===ze||"symbol-narrow"===ze?Ce(Nt,"symbol"===ze?"wide":"narrow",Dt):ze);try{return Bn(Qi(R),Dt,Nt,te,ht)}catch(Dn){throw Qn(x,Dn.message)}}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275directiveInject(i.LOCALE_ID,16),i.\u0275\u0275directiveInject(i.DEFAULT_CURRENCY_CODE,16))},x.\u0275pipe=i.\u0275\u0275definePipe({name:"currency",type:x,pure:!0}),x})();function pi(x){return!(null==x||""===x||x!=x)}function Qi(x){if("string"==typeof x&&!isNaN(Number(x)-parseFloat(x)))return Number(x);if("number"!=typeof x)throw new Error(`${x} is not a number`);return x}let mi=(()=>{class x{transform(R,te,ze){if(null==R)return null;if(!this.supports(R))throw Qn(x,R);return R.slice(te,ze)}supports(R){return"string"==typeof R||Array.isArray(R)}}return x.\u0275fac=function(R){return new(R||x)},x.\u0275pipe=i.\u0275\u0275definePipe({name:"slice",type:x,pure:!1}),x})(),rr=(()=>{class x{}return x.\u0275fac=function(R){return new(R||x)},x.\u0275mod=i.\u0275\u0275defineNgModule({type:x}),x.\u0275inj=i.\u0275\u0275defineInjector({providers:[{provide:jt,useClass:vn}]}),x})();const Pi="browser",Oi="server",xi="browserWorkerApp",Zi="browserWorkerUi";function ti(x){return x===Pi}function Ri(x){return x===Oi}function or(x){return x===xi}function Fi(x){return x===Zi}const Yi=new i.Version("13.1.2");let ki=(()=>{class x{}return x.\u0275prov=(0,i.\u0275\u0275defineInjectable)({token:x,providedIn:"root",factory:()=>new xr((0,i.\u0275\u0275inject)(C),window)}),x})();class xr{constructor(Q,R){this.document=Q,this.window=R,this.offset=()=>[0,0]}setOffset(Q){this.offset=Array.isArray(Q)?()=>Q:Q}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(Q){this.supportsScrolling()&&this.window.scrollTo(Q[0],Q[1])}scrollToAnchor(Q){if(!this.supportsScrolling())return;const R=function sr(x,Q){const R=x.getElementById(Q)||x.getElementsByName(Q)[0];if(R)return R;if("function"==typeof x.createTreeWalker&&x.body&&(x.body.createShadowRoot||x.body.attachShadow)){const te=x.createTreeWalker(x.body,NodeFilter.SHOW_ELEMENT);let ze=te.currentNode;for(;ze;){const ht=ze.shadowRoot;if(ht){const Dt=ht.getElementById(Q)||ht.querySelector(`[name="${Q}"]`);if(Dt)return Dt}ze=te.nextNode()}}return null}(this.document,Q);R&&(this.scrollToElement(R),this.attemptFocus(R))}setHistoryScrollRestoration(Q){if(this.supportScrollRestoration()){const R=this.window.history;R&&R.scrollRestoration&&(R.scrollRestoration=Q)}}scrollToElement(Q){const R=Q.getBoundingClientRect(),te=R.left+this.window.pageXOffset,ze=R.top+this.window.pageYOffset,ht=this.offset();this.window.scrollTo(te-ht[0],ze-ht[1])}attemptFocus(Q){return Q.focus(),this.document.activeElement===Q}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const Q=Rn(this.window.history)||Rn(Object.getPrototypeOf(this.window.history));return!(!Q||!Q.writable&&!Q.set)}catch(Q){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(Q){return!1}}}function Rn(x){return Object.getOwnPropertyDescriptor(x,"scrollRestoration")}class ar{setOffset(Q){}getScrollPosition(){return[0,0]}scrollToPosition(Q){}scrollToAnchor(Q){}setHistoryScrollRestoration(Q){}}class Ln{}},520:(Be,m,l)=>{"use strict";l.r(m),l.d(m,{HTTP_INTERCEPTORS:()=>pe,HttpBackend:()=>p,HttpClient:()=>de,HttpClientJsonpModule:()=>se,HttpClientModule:()=>Oe,HttpClientXsrfModule:()=>ie,HttpContext:()=>De,HttpContextToken:()=>ne,HttpErrorResponse:()=>oe,HttpEventType:()=>lt,HttpHandler:()=>D,HttpHeaderResponse:()=>me,HttpHeaders:()=>y,HttpParams:()=>$,HttpRequest:()=>Xe,HttpResponse:()=>K,HttpResponseBase:()=>X,HttpUrlEncodingCodec:()=>I,HttpXhrBackend:()=>Ae,HttpXsrfTokenExtractor:()=>pt,JsonpClientBackend:()=>et,JsonpInterceptor:()=>Y,XhrFactory:()=>Ce,\u0275HttpInterceptingHandler:()=>dt});var i=l(9808),d=l(5e3),_=l(9646),u=l(9751),s=l(4351),v=l(9300),C=l(4004);class D{}class p{}class y{constructor(re){this.normalizedNames=new Map,this.lazyUpdate=null,re?this.lazyInit="string"==typeof re?()=>{this.headers=new Map,re.split("\n").forEach(be=>{const Ye=be.indexOf(":");if(Ye>0){const it=be.slice(0,Ye),mt=it.toLowerCase(),_t=be.slice(Ye+1).trim();this.maybeSetNormalizedName(it,mt),this.headers.has(mt)?this.headers.get(mt).push(_t):this.headers.set(mt,[_t])}})}:()=>{this.headers=new Map,Object.keys(re).forEach(be=>{let Ye=re[be];const it=be.toLowerCase();"string"==typeof Ye&&(Ye=[Ye]),Ye.length>0&&(this.headers.set(it,Ye),this.maybeSetNormalizedName(be,it))})}:this.headers=new Map}has(re){return this.init(),this.headers.has(re.toLowerCase())}get(re){this.init();const be=this.headers.get(re.toLowerCase());return be&&be.length>0?be[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(re){return this.init(),this.headers.get(re.toLowerCase())||null}append(re,be){return this.clone({name:re,value:be,op:"a"})}set(re,be){return this.clone({name:re,value:be,op:"s"})}delete(re,be){return this.clone({name:re,value:be,op:"d"})}maybeSetNormalizedName(re,be){this.normalizedNames.has(be)||this.normalizedNames.set(be,re)}init(){this.lazyInit&&(this.lazyInit instanceof y?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(re=>this.applyUpdate(re)),this.lazyUpdate=null))}copyFrom(re){re.init(),Array.from(re.headers.keys()).forEach(be=>{this.headers.set(be,re.headers.get(be)),this.normalizedNames.set(be,re.normalizedNames.get(be))})}clone(re){const be=new y;return be.lazyInit=this.lazyInit&&this.lazyInit instanceof y?this.lazyInit:this,be.lazyUpdate=(this.lazyUpdate||[]).concat([re]),be}applyUpdate(re){const be=re.name.toLowerCase();switch(re.op){case"a":case"s":let Ye=re.value;if("string"==typeof Ye&&(Ye=[Ye]),0===Ye.length)return;this.maybeSetNormalizedName(re.name,be);const it=("a"===re.op?this.headers.get(be):void 0)||[];it.push(...Ye),this.headers.set(be,it);break;case"d":const mt=re.value;if(mt){let _t=this.headers.get(be);if(!_t)return;_t=_t.filter(It=>-1===mt.indexOf(It)),0===_t.length?(this.headers.delete(be),this.normalizedNames.delete(be)):this.headers.set(be,_t)}else this.headers.delete(be),this.normalizedNames.delete(be)}}forEach(re){this.init(),Array.from(this.normalizedNames.keys()).forEach(be=>re(this.normalizedNames.get(be),this.headers.get(be)))}}class I{encodeKey(re){return V(re)}encodeValue(re){return V(re)}decodeKey(re){return decodeURIComponent(re)}decodeValue(re){return decodeURIComponent(re)}}const w=/%(\d[a-f0-9])/gi,k={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function V(ye){return encodeURIComponent(ye).replace(w,(re,be)=>{var Ye;return null!==(Ye=k[be])&&void 0!==Ye?Ye:re})}function ue(ye){return`${ye}`}class ${constructor(re={}){if(this.updates=null,this.cloneFrom=null,this.encoder=re.encoder||new I,re.fromString){if(re.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function O(ye,re){const be=new Map;return ye.length>0&&ye.replace(/^\?/,"").split("&").forEach(it=>{const mt=it.indexOf("="),[_t,It]=-1==mt?[re.decodeKey(it),""]:[re.decodeKey(it.slice(0,mt)),re.decodeValue(it.slice(mt+1))],zt=be.get(_t)||[];zt.push(It),be.set(_t,zt)}),be}(re.fromString,this.encoder)}else re.fromObject?(this.map=new Map,Object.keys(re.fromObject).forEach(be=>{const Ye=re.fromObject[be];this.map.set(be,Array.isArray(Ye)?Ye:[Ye])})):this.map=null}has(re){return this.init(),this.map.has(re)}get(re){this.init();const be=this.map.get(re);return be?be[0]:null}getAll(re){return this.init(),this.map.get(re)||null}keys(){return this.init(),Array.from(this.map.keys())}append(re,be){return this.clone({param:re,value:be,op:"a"})}appendAll(re){const be=[];return Object.keys(re).forEach(Ye=>{const it=re[Ye];Array.isArray(it)?it.forEach(mt=>{be.push({param:Ye,value:mt,op:"a"})}):be.push({param:Ye,value:it,op:"a"})}),this.clone(be)}set(re,be){return this.clone({param:re,value:be,op:"s"})}delete(re,be){return this.clone({param:re,value:be,op:"d"})}toString(){return this.init(),this.keys().map(re=>{const be=this.encoder.encodeKey(re);return this.map.get(re).map(Ye=>be+"="+this.encoder.encodeValue(Ye)).join("&")}).filter(re=>""!==re).join("&")}clone(re){const be=new $({encoder:this.encoder});return be.cloneFrom=this.cloneFrom||this,be.updates=(this.updates||[]).concat(re),be}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(re=>this.map.set(re,this.cloneFrom.map.get(re))),this.updates.forEach(re=>{switch(re.op){case"a":case"s":const be=("a"===re.op?this.map.get(re.param):void 0)||[];be.push(ue(re.value)),this.map.set(re.param,be);break;case"d":if(void 0===re.value){this.map.delete(re.param);break}{let Ye=this.map.get(re.param)||[];const it=Ye.indexOf(ue(re.value));-1!==it&&Ye.splice(it,1),Ye.length>0?this.map.set(re.param,Ye):this.map.delete(re.param)}}}),this.cloneFrom=this.updates=null)}}class ne{constructor(re){this.defaultValue=re}}class De{constructor(){this.map=new Map}set(re,be){return this.map.set(re,be),this}get(re){return this.map.has(re)||this.map.set(re,re.defaultValue()),this.map.get(re)}delete(re){return this.map.delete(re),this}has(re){return this.map.has(re)}keys(){return this.map.keys()}}function _e(ye){return"undefined"!=typeof ArrayBuffer&&ye instanceof ArrayBuffer}function le(ye){return"undefined"!=typeof Blob&&ye instanceof Blob}function Se(ye){return"undefined"!=typeof FormData&&ye instanceof FormData}class Xe{constructor(re,be,Ye,it){let mt;if(this.url=be,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=re.toUpperCase(),function fe(ye){switch(ye){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||it?(this.body=void 0!==Ye?Ye:null,mt=it):mt=Ye,mt&&(this.reportProgress=!!mt.reportProgress,this.withCredentials=!!mt.withCredentials,mt.responseType&&(this.responseType=mt.responseType),mt.headers&&(this.headers=mt.headers),mt.context&&(this.context=mt.context),mt.params&&(this.params=mt.params)),this.headers||(this.headers=new y),this.context||(this.context=new De),this.params){const _t=this.params.toString();if(0===_t.length)this.urlWithParams=be;else{const It=be.indexOf("?");this.urlWithParams=be+(-1===It?"?":It<be.length-1?"&":"")+_t}}else this.params=new $,this.urlWithParams=be}serializeBody(){return null===this.body?null:_e(this.body)||le(this.body)||Se(this.body)||function Le(ye){return"undefined"!=typeof URLSearchParams&&ye 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||Se(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(re={}){var be;const Ye=re.method||this.method,it=re.url||this.url,mt=re.responseType||this.responseType,_t=void 0!==re.body?re.body:this.body,It=void 0!==re.withCredentials?re.withCredentials:this.withCredentials,zt=void 0!==re.reportProgress?re.reportProgress:this.reportProgress;let on=re.headers||this.headers,Kt=re.params||this.params;const Mn=null!==(be=re.context)&&void 0!==be?be:this.context;return void 0!==re.setHeaders&&(on=Object.keys(re.setHeaders).reduce((an,Qt)=>an.set(Qt,re.setHeaders[Qt]),on)),re.setParams&&(Kt=Object.keys(re.setParams).reduce((an,Qt)=>an.set(Qt,re.setParams[Qt]),Kt)),new Xe(Ye,it,_t,{params:Kt,headers:on,context:Mn,reportProgress:zt,responseType:mt,withCredentials:It})}}var lt=(()=>((lt=lt||{})[lt.Sent=0]="Sent",lt[lt.UploadProgress=1]="UploadProgress",lt[lt.ResponseHeader=2]="ResponseHeader",lt[lt.DownloadProgress=3]="DownloadProgress",lt[lt.Response=4]="Response",lt[lt.User=5]="User",lt))();class X{constructor(re,be=200,Ye="OK"){this.headers=re.headers||new y,this.status=void 0!==re.status?re.status:be,this.statusText=re.statusText||Ye,this.url=re.url||null,this.ok=this.status>=200&&this.status<300}}class me extends X{constructor(re={}){super(re),this.type=lt.ResponseHeader}clone(re={}){return new me({headers:re.headers||this.headers,status:void 0!==re.status?re.status:this.status,statusText:re.statusText||this.statusText,url:re.url||this.url||void 0})}}class K extends X{constructor(re={}){super(re),this.type=lt.Response,this.body=void 0!==re.body?re.body:null}clone(re={}){return new K({body:void 0!==re.body?re.body:this.body,headers:re.headers||this.headers,status:void 0!==re.status?re.status:this.status,statusText:re.statusText||this.statusText,url:re.url||this.url||void 0})}}class oe extends X{constructor(re){super(re,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${re.url||"(unknown url)"}`:`Http failure response for ${re.url||"(unknown url)"}: ${re.status} ${re.statusText}`,this.error=re.error||null}}function ke(ye,re){return{body:re,headers:ye.headers,context:ye.context,observe:ye.observe,params:ye.params,reportProgress:ye.reportProgress,responseType:ye.responseType,withCredentials:ye.withCredentials}}let de=(()=>{class ye{constructor(be){this.handler=be}request(be,Ye,it={}){let mt;if(be instanceof Xe)mt=be;else{let zt,on;zt=it.headers instanceof y?it.headers:new y(it.headers),it.params&&(on=it.params instanceof $?it.params:new $({fromObject:it.params})),mt=new Xe(be,Ye,void 0!==it.body?it.body:null,{headers:zt,context:it.context,params:on,reportProgress:it.reportProgress,responseType:it.responseType||"json",withCredentials:it.withCredentials})}const _t=(0,_.of)(mt).pipe((0,s.b)(zt=>this.handler.handle(zt)));if(be instanceof Xe||"events"===it.observe)return _t;const It=_t.pipe((0,v.h)(zt=>zt instanceof K));switch(it.observe||"body"){case"body":switch(mt.responseType){case"arraybuffer":return It.pipe((0,C.U)(zt=>{if(null!==zt.body&&!(zt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return zt.body}));case"blob":return It.pipe((0,C.U)(zt=>{if(null!==zt.body&&!(zt.body instanceof Blob))throw new Error("Response is not a Blob.");return zt.body}));case"text":return It.pipe((0,C.U)(zt=>{if(null!==zt.body&&"string"!=typeof zt.body)throw new Error("Response is not a string.");return zt.body}));default:return It.pipe((0,C.U)(zt=>zt.body))}case"response":return It;default:throw new Error(`Unreachable: unhandled observe type ${it.observe}}`)}}delete(be,Ye={}){return this.request("DELETE",be,Ye)}get(be,Ye={}){return this.request("GET",be,Ye)}head(be,Ye={}){return this.request("HEAD",be,Ye)}jsonp(be,Ye){return this.request("JSONP",be,{params:(new $).append(Ye,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(be,Ye={}){return this.request("OPTIONS",be,Ye)}patch(be,Ye,it={}){return this.request("PATCH",be,ke(it,Ye))}post(be,Ye,it={}){return this.request("POST",be,ke(it,Ye))}put(be,Ye,it={}){return this.request("PUT",be,ke(it,Ye))}}return ye.\u0275fac=function(be){return new(be||ye)(d.\u0275\u0275inject(D))},ye.\u0275prov=d.\u0275\u0275defineInjectable({token:ye,factory:ye.\u0275fac}),ye})();class Ue{constructor(re,be){this.next=re,this.interceptor=be}handle(re){return this.interceptor.intercept(re,this.next)}}const pe=new d.InjectionToken("HTTP_INTERCEPTORS");let qe=(()=>{class ye{intercept(be,Ye){return Ye.handle(be)}}return ye.\u0275fac=function(be){return new(be||ye)},ye.\u0275prov=d.\u0275\u0275defineInjectable({token:ye,factory:ye.\u0275fac}),ye})(),Me=0;class Re{}let et=(()=>{class ye{constructor(be,Ye){this.callbackMap=be,this.document=Ye,this.resolvedPromise=Promise.resolve()}nextCallback(){return"ng_jsonp_callback_"+Me++}handle(be){if("JSONP"!==be.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==be.responseType)throw new Error("JSONP requests must use Json response type.");return new u.y(Ye=>{const it=this.nextCallback(),mt=be.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,`=${it}$1`),_t=this.document.createElement("script");_t.src=mt;let It=null,zt=!1,on=!1;this.callbackMap[it]=Qt=>{delete this.callbackMap[it],!on&&(It=Qt,zt=!0)};const Kt=()=>{_t.parentNode&&_t.parentNode.removeChild(_t),delete this.callbackMap[it]},Mn=Qt=>{on||this.resolvedPromise.then(()=>{Kt(),zt?(Ye.next(new K({body:It,status:200,statusText:"OK",url:mt})),Ye.complete()):Ye.error(new oe({url:mt,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")}))})},an=Qt=>{on||(Kt(),Ye.error(new oe({error:Qt,status:0,statusText:"JSONP Error",url:mt})))};return _t.addEventListener("load",Mn),_t.addEventListener("error",an),this.document.body.appendChild(_t),Ye.next({type:lt.Sent}),()=>{on=!0,_t.removeEventListener("load",Mn),_t.removeEventListener("error",an),Kt()}})}}return ye.\u0275fac=function(be){return new(be||ye)(d.\u0275\u0275inject(Re),d.\u0275\u0275inject(i.DOCUMENT))},ye.\u0275prov=d.\u0275\u0275defineInjectable({token:ye,factory:ye.\u0275fac}),ye})(),Y=(()=>{class ye{constructor(be){this.jsonp=be}intercept(be,Ye){return"JSONP"===be.method?this.jsonp.handle(be):Ye.handle(be)}}return ye.\u0275fac=function(be){return new(be||ye)(d.\u0275\u0275inject(et))},ye.\u0275prov=d.\u0275\u0275defineInjectable({token:ye,factory:ye.\u0275fac}),ye})();const he=/^\)\]\}',?\n/;let Ae=(()=>{class ye{constructor(be){this.xhrFactory=be}handle(be){if("JSONP"===be.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new u.y(Ye=>{const it=this.xhrFactory.build();if(it.open(be.method,be.urlWithParams),be.withCredentials&&(it.withCredentials=!0),be.headers.forEach((Qt,Ot)=>it.setRequestHeader(Qt,Ot.join(","))),be.headers.has("Accept")||it.setRequestHeader("Accept","application/json, text/plain, */*"),!be.headers.has("Content-Type")){const Qt=be.detectContentTypeHeader();null!==Qt&&it.setRequestHeader("Content-Type",Qt)}if(be.responseType){const Qt=be.responseType.toLowerCase();it.responseType="json"!==Qt?Qt:"text"}const mt=be.serializeBody();let _t=null;const It=()=>{if(null!==_t)return _t;const Qt=1223===it.status?204:it.status,Ot=it.statusText||"OK",bn=new y(it.getAllResponseHeaders()),at=function Ee(ye){return"responseURL"in ye&&ye.responseURL?ye.responseURL:/^X-Request-URL:/m.test(ye.getAllResponseHeaders())?ye.getResponseHeader("X-Request-URL"):null}(it)||be.url;return _t=new me({headers:bn,status:Qt,statusText:Ot,url:at}),_t},zt=()=>{let{headers:Qt,status:Ot,statusText:bn,url:at}=It(),Ke=null;204!==Ot&&(Ke=void 0===it.response?it.responseText:it.response),0===Ot&&(Ot=Ke?200:0);let Qe=Ot>=200&&Ot<300;if("json"===be.responseType&&"string"==typeof Ke){const Ie=Ke;Ke=Ke.replace(he,"");try{Ke=""!==Ke?JSON.parse(Ke):null}catch(Te){Ke=Ie,Qe&&(Qe=!1,Ke={error:Te,text:Ke})}}Qe?(Ye.next(new K({body:Ke,headers:Qt,status:Ot,statusText:bn,url:at||void 0})),Ye.complete()):Ye.error(new oe({error:Ke,headers:Qt,status:Ot,statusText:bn,url:at||void 0}))},on=Qt=>{const{url:Ot}=It(),bn=new oe({error:Qt,status:it.status||0,statusText:it.statusText||"Unknown Error",url:Ot||void 0});Ye.error(bn)};let Kt=!1;const Mn=Qt=>{Kt||(Ye.next(It()),Kt=!0);let Ot={type:lt.DownloadProgress,loaded:Qt.loaded};Qt.lengthComputable&&(Ot.total=Qt.total),"text"===be.responseType&&!!it.responseText&&(Ot.partialText=it.responseText),Ye.next(Ot)},an=Qt=>{let Ot={type:lt.UploadProgress,loaded:Qt.loaded};Qt.lengthComputable&&(Ot.total=Qt.total),Ye.next(Ot)};return it.addEventListener("load",zt),it.addEventListener("error",on),it.addEventListener("timeout",on),it.addEventListener("abort",on),be.reportProgress&&(it.addEventListener("progress",Mn),null!==mt&&it.upload&&it.upload.addEventListener("progress",an)),it.send(mt),Ye.next({type:lt.Sent}),()=>{it.removeEventListener("error",on),it.removeEventListener("abort",on),it.removeEventListener("load",zt),it.removeEventListener("timeout",on),be.reportProgress&&(it.removeEventListener("progress",Mn),null!==mt&&it.upload&&it.upload.removeEventListener("progress",an)),it.readyState!==it.DONE&&it.abort()}})}}return ye.\u0275fac=function(be){return new(be||ye)(d.\u0275\u0275inject(i.XhrFactory))},ye.\u0275prov=d.\u0275\u0275defineInjectable({token:ye,factory:ye.\u0275fac}),ye})();const ge=new d.InjectionToken("XSRF_COOKIE_NAME"),Je=new d.InjectionToken("XSRF_HEADER_NAME");class pt{}let Tt=(()=>{class ye{constructor(be,Ye,it){this.doc=be,this.platform=Ye,this.cookieName=it,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const be=this.doc.cookie||"";return be!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,i.\u0275parseCookieValue)(be,this.cookieName),this.lastCookieString=be),this.lastToken}}return ye.\u0275fac=function(be){return new(be||ye)(d.\u0275\u0275inject(i.DOCUMENT),d.\u0275\u0275inject(d.PLATFORM_ID),d.\u0275\u0275inject(ge))},ye.\u0275prov=d.\u0275\u0275defineInjectable({token:ye,factory:ye.\u0275fac}),ye})(),Rt=(()=>{class ye{constructor(be,Ye){this.tokenService=be,this.headerName=Ye}intercept(be,Ye){const it=be.url.toLowerCase();if("GET"===be.method||"HEAD"===be.method||it.startsWith("http://")||it.startsWith("https://"))return Ye.handle(be);const mt=this.tokenService.getToken();return null!==mt&&!be.headers.has(this.headerName)&&(be=be.clone({headers:be.headers.set(this.headerName,mt)})),Ye.handle(be)}}return ye.\u0275fac=function(be){return new(be||ye)(d.\u0275\u0275inject(pt),d.\u0275\u0275inject(Je))},ye.\u0275prov=d.\u0275\u0275defineInjectable({token:ye,factory:ye.\u0275fac}),ye})(),dt=(()=>{class ye{constructor(be,Ye){this.backend=be,this.injector=Ye,this.chain=null}handle(be){if(null===this.chain){const Ye=this.injector.get(pe,[]);this.chain=Ye.reduceRight((it,mt)=>new Ue(it,mt),this.backend)}return this.chain.handle(be)}}return ye.\u0275fac=function(be){return new(be||ye)(d.\u0275\u0275inject(p),d.\u0275\u0275inject(d.Injector))},ye.\u0275prov=d.\u0275\u0275defineInjectable({token:ye,factory:ye.\u0275fac}),ye})();function N(){return"object"==typeof window?window:{}}let ie=(()=>{class ye{static disable(){return{ngModule:ye,providers:[{provide:Rt,useClass:qe}]}}static withOptions(be={}){return{ngModule:ye,providers:[be.cookieName?{provide:ge,useValue:be.cookieName}:[],be.headerName?{provide:Je,useValue:be.headerName}:[]]}}}return ye.\u0275fac=function(be){return new(be||ye)},ye.\u0275mod=d.\u0275\u0275defineNgModule({type:ye}),ye.\u0275inj=d.\u0275\u0275defineInjector({providers:[Rt,{provide:pe,useExisting:Rt,multi:!0},{provide:pt,useClass:Tt},{provide:ge,useValue:"XSRF-TOKEN"},{provide:Je,useValue:"X-XSRF-TOKEN"}]}),ye})(),Oe=(()=>{class ye{}return ye.\u0275fac=function(be){return new(be||ye)},ye.\u0275mod=d.\u0275\u0275defineNgModule({type:ye}),ye.\u0275inj=d.\u0275\u0275defineInjector({providers:[de,{provide:D,useClass:dt},Ae,{provide:p,useExisting:Ae}],imports:[[ie.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),ye})(),se=(()=>{class ye{}return ye.\u0275fac=function(be){return new(be||ye)},ye.\u0275mod=d.\u0275\u0275defineNgModule({type:ye}),ye.\u0275inj=d.\u0275\u0275defineInjector({providers:[et,{provide:Re,useFactory:N},{provide:pe,useClass:Y,multi:!0}]}),ye})();const Ce=i.XhrFactory},5e3:(Be,m,l)=>{"use strict";l.r(m),l.d(m,{ANALYZE_FOR_ENTRY_COMPONENTS:()=>i_,APP_BOOTSTRAP_LISTENER:()=>hg,APP_ID:()=>lg,APP_INITIALIZER:()=>uu,ApplicationInitStatus:()=>Lo,ApplicationModule:()=>kE,ApplicationRef:()=>Es,Attribute:()=>Yu,COMPILER_OPTIONS:()=>gg,CUSTOM_ELEMENTS_SCHEMA:()=>xd,ChangeDetectionStrategy:()=>be,ChangeDetectorRef:()=>Og,Compiler:()=>hu,CompilerFactory:()=>K0,Component:()=>k0,ComponentFactory:()=>sa,ComponentFactoryResolver:()=>ms,ComponentRef:()=>Gp,ContentChild:()=>o_,ContentChildren:()=>r_,DEFAULT_CURRENCY_CODE:()=>pg,DebugElement:()=>vE,DebugEventListener:()=>dE,DebugNode:()=>yE,DefaultIterableDiffer:()=>Lg,Directive:()=>ag,ElementRef:()=>gs,EmbeddedViewRef:()=>uE,ErrorHandler:()=>qo,EventEmitter:()=>Mr,Host:()=>id,HostBinding:()=>j0,HostListener:()=>V0,INJECTOR:()=>Zs,Inject:()=>Go,InjectFlags:()=>N,Injectable:()=>sb,InjectionToken:()=>Yn,Injector:()=>Vi,Input:()=>L0,IterableDiffers:()=>ya,KeyValueDiffers:()=>va,LOCALE_ID:()=>ga,MissingTranslationStrategy:()=>wr,ModuleWithComponentFactories:()=>mg,NO_ERRORS_SCHEMA:()=>Rd,NgModule:()=>H0,NgModuleFactory:()=>im,NgModuleRef:()=>Fo,NgProbeToken:()=>eE,NgZone:()=>Hi,Optional:()=>Wr,Output:()=>B0,PACKAGE_ROOT_URL:()=>U0,PLATFORM_ID:()=>dg,PLATFORM_INITIALIZER:()=>ug,Pipe:()=>N0,PlatformRef:()=>bu,Query:()=>$o,QueryList:()=>da,ReflectiveInjector:()=>Io,ReflectiveKey:()=>Nr,Renderer2:()=>ZC,RendererFactory2:()=>Zp,RendererStyleFlags2:()=>Cr,ResolvedReflectiveFactory:()=>Df,Sanitizer:()=>Yp,SecurityContext:()=>ei,Self:()=>ks,SimpleChange:()=>Ai,SkipSelf:()=>zr,TRANSLATIONS:()=>W0,TRANSLATIONS_FORMAT:()=>z0,TemplateRef:()=>vs,Testability:()=>bg,TestabilityRegistry:()=>gu,Type:()=>Os,VERSION:()=>Jp,Version:()=>Xp,ViewChild:()=>a_,ViewChildren:()=>s_,ViewContainerRef:()=>fa,ViewEncapsulation:()=>mt,ViewRef:()=>Rg,asNativeElements:()=>hE,assertPlatform:()=>Mg,createNgModuleRef:()=>r0,createPlatform:()=>Dg,createPlatformFactory:()=>Tg,defineInjectable:()=>Y,destroyPlatform:()=>tE,enableProdMode:()=>sE,forwardRef:()=>I,getDebugNode:()=>_a,getModuleFactory:()=>aE,getNgModuleById:()=>lE,getPlatform:()=>vu,inject:()=>C_,isDevMode:()=>oE,platformCore:()=>IE,resolveForwardRef:()=>O,setTestabilityGetter:()=>q0,\u0275ALLOW_MULTIPLE_PLATFORMS:()=>yu,\u0275APP_ID_RANDOM_PROVIDER:()=>cg,\u0275ChangeDetectorStatus:()=>Ye,\u0275ComponentFactory:()=>sa,\u0275Console:()=>fg,\u0275DEFAULT_LOCALE_ID:()=>us,\u0275INJECTOR_SCOPE:()=>Il,\u0275LifecycleHooksFeature:()=>cf,\u0275LocaleDataIndex:()=>rn,\u0275NG_COMP_DEF:()=>bn,\u0275NG_DIR_DEF:()=>at,\u0275NG_ELEMENT_ID:()=>Te,\u0275NG_INJ_DEF:()=>Rt,\u0275NG_MOD_DEF:()=>Qe,\u0275NG_PIPE_DEF:()=>Ke,\u0275NG_PROV_DEF:()=>Tt,\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR:()=>aa,\u0275NO_CHANGE:()=>pn,\u0275NgModuleFactory:()=>ua,\u0275NoopNgZone:()=>vg,\u0275ReflectionCapabilities:()=>Pa,\u0275Render3ComponentFactory:()=>ca,\u0275Render3ComponentRef:()=>tm,\u0275Render3NgModuleRef:()=>Zc,\u0275RuntimeError:()=>V,\u0275ViewRef:()=>Ro,\u0275_sanitizeHtml:()=>bd,\u0275_sanitizeUrl:()=>Zo,\u0275allowSanitizationBypassAndThrow:()=>co,\u0275bypassSanitizationTrustHtml:()=>L_,\u0275bypassSanitizationTrustResourceUrl:()=>H_,\u0275bypassSanitizationTrustScript:()=>j_,\u0275bypassSanitizationTrustStyle:()=>B_,\u0275bypassSanitizationTrustUrl:()=>V_,\u0275clearResolutionOfComponentResourcesQueue:()=>ld,\u0275compileComponent:()=>Zm,\u0275compileDirective:()=>cu,\u0275compileNgModule:()=>Um,\u0275compileNgModuleDefs:()=>Wm,\u0275compileNgModuleFactory:()=>Cg,\u0275compilePipe:()=>og,\u0275createInjector:()=>Pl,\u0275defaultIterableDiffers:()=>Ug,\u0275defaultKeyValueDiffers:()=>Wg,\u0275detectChanges:()=>Uh,\u0275devModeEqual:()=>hf,\u0275findLocaleData:()=>jc,\u0275flushModuleScopingQueueAsMuchAsPossible:()=>Hm,\u0275getDebugNode:()=>_a,\u0275getDebugNodeR2:()=>_E,\u0275getDirectives:()=>ef,\u0275getHostElement:()=>Rl,\u0275getInjectableDef:()=>Ee,\u0275getLContext:()=>yi,\u0275getLocaleCurrencyCode:()=>Zb,\u0275getLocalePluralCase:()=>_p,\u0275getSanitizationBypassType:()=>hd,\u0275global:()=>Kt,\u0275injectChangeDetectorRef:()=>xg,\u0275isBoundToModule:()=>Eg,\u0275isDefaultChangeDetectionStrategy:()=>it,\u0275isListLikeIterable:()=>os,\u0275isObservable:()=>xf,\u0275isPromise:()=>ic,\u0275isSubscribable:()=>Of,\u0275ivyEnabled:()=>NE,\u0275makeDecorator:()=>ro,\u0275markDirty:()=>Wh,\u0275noSideEffects:()=>re,\u0275patchComponentDefWithScope:()=>su,\u0275publishDefaultGlobalUtils:()=>Uv,\u0275publishGlobalUtil:()=>er,\u0275registerLocaleData:()=>Qb,\u0275registerNgModuleType:()=>om,\u0275renderComponent:()=>Wv,\u0275resetCompiledComponents:()=>M0,\u0275resetJitOptions:()=>D0,\u0275resolveComponentResources:()=>sd,\u0275setClassMetadata:()=>nm,\u0275setCurrentInjector:()=>Ra,\u0275setDocument:()=>Yi,\u0275setLocaleId:()=>bp,\u0275store:()=>pf,\u0275stringify:()=>D,\u0275transitiveScopesFor:()=>Cs,\u0275unregisterLocaleData:()=>Yb,\u0275unwrapSafeValue:()=>Rr,\u0275whenRendered:()=>zv,\u0275\u0275CopyDefinitionFeature:()=>df,\u0275\u0275FactoryTarget:()=>ii,\u0275\u0275InheritDefinitionFeature:()=>kl,\u0275\u0275NgOnChangesFeature:()=>pi,\u0275\u0275ProvidersFeature:()=>Kp,\u0275\u0275advance:()=>uh,\u0275\u0275attribute:()=>Bl,\u0275\u0275attributeInterpolate1:()=>jl,\u0275\u0275attributeInterpolate2:()=>Vl,\u0275\u0275attributeInterpolate3:()=>Hl,\u0275\u0275attributeInterpolate4:()=>$l,\u0275\u0275attributeInterpolate5:()=>Ul,\u0275\u0275attributeInterpolate6:()=>Wl,\u0275\u0275attributeInterpolate7:()=>zl,\u0275\u0275attributeInterpolate8:()=>Kl,\u0275\u0275attributeInterpolateV:()=>Gl,\u0275\u0275classMap:()=>zf,\u0275\u0275classMapInterpolate1:()=>qf,\u0275\u0275classMapInterpolate2:()=>ep,\u0275\u0275classMapInterpolate3:()=>tp,\u0275\u0275classMapInterpolate4:()=>np,\u0275\u0275classMapInterpolate5:()=>ip,\u0275\u0275classMapInterpolate6:()=>rp,\u0275\u0275classMapInterpolate7:()=>op,\u0275\u0275classMapInterpolate8:()=>sp,\u0275\u0275classMapInterpolateV:()=>ap,\u0275\u0275classProp:()=>_c,\u0275\u0275contentQuery:()=>km,\u0275\u0275defineComponent:()=>A,\u0275\u0275defineDirective:()=>$e,\u0275\u0275defineInjectable:()=>et,\u0275\u0275defineInjector:()=>he,\u0275\u0275defineNgModule:()=>Ut,\u0275\u0275definePipe:()=>ce,\u0275\u0275directiveInject:()=>ls,\u0275\u0275disableBindings:()=>Ni,\u0275\u0275element:()=>If,\u0275\u0275elementContainer:()=>Af,\u0275\u0275elementContainerEnd:()=>nc,\u0275\u0275elementContainerStart:()=>tc,\u0275\u0275elementEnd:()=>ec,\u0275\u0275elementStart:()=>ql,\u0275\u0275enableBindings:()=>gi,\u0275\u0275getCurrentView:()=>Pf,\u0275\u0275getInheritedFactory:()=>Zu,\u0275\u0275hostProperty:()=>Lc,\u0275\u0275i18n:()=>Hp,\u0275\u0275i18nApply:()=>Up,\u0275\u0275i18nAttributes:()=>$p,\u0275\u0275i18nEnd:()=>Uc,\u0275\u0275i18nExp:()=>Wc,\u0275\u0275i18nPostprocess:()=>Wp,\u0275\u0275i18nStart:()=>$c,\u0275\u0275inject:()=>si,\u0275\u0275injectAttribute:()=>Sa,\u0275\u0275invalidFactory:()=>Sf,\u0275\u0275invalidFactoryDep:()=>Fa,\u0275\u0275listener:()=>rc,\u0275\u0275loadQuery:()=>Nm,\u0275\u0275namespaceHTML:()=>Vn,\u0275\u0275namespaceMathML:()=>lr,\u0275\u0275namespaceSVG:()=>_i,\u0275\u0275nextContext:()=>kf,\u0275\u0275ngDeclareClassMetadata:()=>BE,\u0275\u0275ngDeclareComponent:()=>jE,\u0275\u0275ngDeclareDirective:()=>LE,\u0275\u0275ngDeclareFactory:()=>VE,\u0275\u0275ngDeclareInjectable:()=>$E,\u0275\u0275ngDeclareInjector:()=>UE,\u0275\u0275ngDeclareNgModule:()=>WE,\u0275\u0275ngDeclarePipe:()=>zE,\u0275\u0275pipe:()=>Em,\u0275\u0275pipeBind1:()=>Dm,\u0275\u0275pipeBind2:()=>Tm,\u0275\u0275pipeBind3:()=>Mm,\u0275\u0275pipeBind4:()=>wm,\u0275\u0275pipeBindV:()=>Sm,\u0275\u0275projection:()=>Lf,\u0275\u0275projectionDef:()=>Nf,\u0275\u0275property:()=>Xl,\u0275\u0275propertyInterpolate:()=>ac,\u0275\u0275propertyInterpolate1:()=>qs,\u0275\u0275propertyInterpolate2:()=>lc,\u0275\u0275propertyInterpolate3:()=>cc,\u0275\u0275propertyInterpolate4:()=>uc,\u0275\u0275propertyInterpolate5:()=>dc,\u0275\u0275propertyInterpolate6:()=>hc,\u0275\u0275propertyInterpolate7:()=>fc,\u0275\u0275propertyInterpolate8:()=>pc,\u0275\u0275propertyInterpolateV:()=>mc,\u0275\u0275pureFunction0:()=>am,\u0275\u0275pureFunction1:()=>lm,\u0275\u0275pureFunction2:()=>cm,\u0275\u0275pureFunction3:()=>um,\u0275\u0275pureFunction4:()=>dm,\u0275\u0275pureFunction5:()=>hm,\u0275\u0275pureFunction6:()=>fm,\u0275\u0275pureFunction7:()=>pm,\u0275\u0275pureFunction8:()=>mm,\u0275\u0275pureFunctionV:()=>gm,\u0275\u0275queryRefresh:()=>Rm,\u0275\u0275reference:()=>mf,\u0275\u0275resolveBody:()=>Bd,\u0275\u0275resolveDocument:()=>Ld,\u0275\u0275resolveWindow:()=>Nd,\u0275\u0275restoreView:()=>c,\u0275\u0275sanitizeHtml:()=>Cd,\u0275\u0275sanitizeResourceUrl:()=>Wa,\u0275\u0275sanitizeScript:()=>Dd,\u0275\u0275sanitizeStyle:()=>Ed,\u0275\u0275sanitizeUrl:()=>Ua,\u0275\u0275sanitizeUrlOrResourceUrl:()=>wd,\u0275\u0275setComponentScope:()=>M,\u0275\u0275setNgModuleScope:()=>gn,\u0275\u0275styleMap:()=>dr,\u0275\u0275styleMapInterpolate1:()=>lp,\u0275\u0275styleMapInterpolate2:()=>cp,\u0275\u0275styleMapInterpolate3:()=>up,\u0275\u0275styleMapInterpolate4:()=>dp,\u0275\u0275styleMapInterpolate5:()=>hp,\u0275\u0275styleMapInterpolate6:()=>fp,\u0275\u0275styleMapInterpolate7:()=>pp,\u0275\u0275styleMapInterpolate8:()=>mp,\u0275\u0275styleMapInterpolateV:()=>gp,\u0275\u0275styleProp:()=>gc,\u0275\u0275stylePropInterpolate1:()=>Ic,\u0275\u0275stylePropInterpolate2:()=>Ac,\u0275\u0275stylePropInterpolate3:()=>Pc,\u0275\u0275stylePropInterpolate4:()=>Oc,\u0275\u0275stylePropInterpolate5:()=>xc,\u0275\u0275stylePropInterpolate6:()=>Rc,\u0275\u0275stylePropInterpolate7:()=>Fc,\u0275\u0275stylePropInterpolate8:()=>kc,\u0275\u0275stylePropInterpolateV:()=>Nc,\u0275\u0275syntheticHostListener:()=>oc,\u0275\u0275syntheticHostProperty:()=>Bc,\u0275\u0275template:()=>ff,\u0275\u0275templateRefExtractor:()=>Vm,\u0275\u0275text:()=>Jf,\u0275\u0275textInterpolate:()=>vc,\u0275\u0275textInterpolate1:()=>ta,\u0275\u0275textInterpolate2:()=>bc,\u0275\u0275textInterpolate3:()=>Cc,\u0275\u0275textInterpolate4:()=>Ec,\u0275\u0275textInterpolate5:()=>Dc,\u0275\u0275textInterpolate6:()=>Tc,\u0275\u0275textInterpolate7:()=>Mc,\u0275\u0275textInterpolate8:()=>wc,\u0275\u0275textInterpolateV:()=>Sc,\u0275\u0275trustConstantHtml:()=>Td,\u0275\u0275trustConstantResourceUrl:()=>Md,\u0275\u0275viewQuery:()=>Fm});var i=l(6758),d=l(6921),_=l(9751),u=l(6451),s=l(3099);function v(e){for(let t in e)if(e[t]===v)return t;throw Error("Could not find renamed property on target object.")}function C(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function D(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(D).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function p(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const y=v({__forward_ref__:v});function I(e){return e.__forward_ref__=I,e.toString=function(){return D(this())},e}function O(e){return w(e)?e():e}function w(e){return"function"==typeof e&&e.hasOwnProperty(y)&&e.__forward_ref__===I}class V extends Error{constructor(t,n){super(function ue(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 ne(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 ${ne(e)} found${n}`)}function Ge(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}function et(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}const Y=et;function he(e){return{providers:e.providers||[],imports:e.imports||[]}}function Ee(e){return Ae(e,Tt)||Ae(e,dt)}function Ae(e,t){return e.hasOwnProperty(t)?e[t]:null}function pt(e){return e&&(e.hasOwnProperty(Rt)||e.hasOwnProperty(Ze))?e[Rt]:null}const Tt=v({\u0275prov:v}),Rt=v({\u0275inj:v}),dt=v({ngInjectableDef:v}),Ze=v({ngInjectorDef:v});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 ie;function se(e){const t=ie;return ie=e,t}function Ce(e,t,n){const r=Ee(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&N.Optional?null:void 0!==t?t:void le(D(e),"Injector")}function re(e){return{toString:e}.toString()}var be=(()=>((be=be||{})[be.OnPush=0]="OnPush",be[be.Default=1]="Default",be))(),Ye=(()=>((Ye=Ye||{})[Ye.CheckOnce=0]="CheckOnce",Ye[Ye.Checked=1]="Checked",Ye[Ye.CheckAlways=2]="CheckAlways",Ye[Ye.Detached=3]="Detached",Ye[Ye.Errored=4]="Errored",Ye[Ye.Destroyed=5]="Destroyed",Ye))();function it(e){return null==e||e===be.Default}var mt=(()=>{return(e=mt||(mt={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",mt;var e})();const _t="undefined"!=typeof globalThis&&globalThis,It="undefined"!=typeof window&&window,zt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Kt=_t||"undefined"!=typeof global&&global||It||zt,Qt={},Ot=[],bn=v({\u0275cmp:v}),at=v({\u0275dir:v}),Ke=v({\u0275pipe:v}),Qe=v({\u0275mod:v}),Ie=v({\u0275fac:v}),Te=v({__NG_ELEMENT_ID__:v});let S=0;function A(e){return re(()=>{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===be.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||Ot,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||mt.Emulated,id:"c",styles:e.styles||Ot,_:null,setInput:null,schemas:e.schemas||null,tView:null},o=e.directives,a=e.features,h=e.pipes;return r.id+=S++,r.inputs=He(e.inputs,n),r.outputs=He(e.outputs),a&&a.forEach(g=>g(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(G):null,r.pipeDefs=h?()=>("function"==typeof h?h():h).map(ot):null,r})}function M(e,t,n){const r=e.\u0275cmp;r.directiveDefs=()=>t.map(G),r.pipeDefs=()=>n.map(ot)}function G(e){return je(e)||ft(e)}function ot(e){return Vt(e)}const Et={};function Ut(e){return re(()=>{const t={type:e.type,bootstrap:e.bootstrap||Ot,declarations:e.declarations||Ot,imports:e.imports||Ot,exports:e.exports||Ot,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(Et[e.id]=e.type),t})}function gn(e,t){return re(()=>{const n=Bt(e,!0);n.declarations=t.declarations||Ot,n.imports=t.imports||Ot,n.exports=t.exports||Ot})}function He(e,t){if(null==e)return Qt;const n={};for(const r in e)if(e.hasOwnProperty(r)){let o=e[r],a=o;Array.isArray(o)&&(a=o[1],o=o[0]),n[o]=r,t&&(t[o]=a)}return n}const $e=A;function ce(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function je(e){return e[bn]||null}function ft(e){return e[at]||null}function Vt(e){return e[Ke]||null}function Bt(e,t){const n=e[Qe]||null;if(!n&&!0===t)throw new Error(`Type ${D(e)} does not have '\u0275mod' property.`);return n}function Kn(e){return Array.isArray(e)&&"object"==typeof e[1]}function Gn(e){return Array.isArray(e)&&!0===e[1]}function Ci(e){return 0!=(8&e.flags)}function Mi(e){return 2==(2&e.flags)}function hi(e){return 1==(1&e.flags)}function Wn(e){return null!==e.template}function Sr(e){return 0!=(512&e[2])}function fi(e,t){return e.hasOwnProperty(Ie)?e[Ie]:null}class Ai{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function pi(){return Qi}function Qi(e){return e.type.prototype.ngOnChanges&&(e.setInput=ir),mi}function mi(){const e=Pi(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===Qt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function ir(e,t,n,r){const o=Pi(e)||function Oi(e,t){return e[rr]=t}(e,{previous:Qt,current:null}),a=o.current||(o.current={}),h=o.previous,g=this.declaredInputs[n],E=h[g];a[g]=new Ai(E&&E.currentValue,t,h===Qt),e[r]=t}pi.ngInherit=!0;const rr="__ngSimpleChanges__";function Pi(e){return e[rr]||null}let xi=null;const Zi=e=>{xi=e},ti=function(e,t,n){null!=xi&&xi(e,t,n)},Ri="http://www.w3.org/2000/svg",or="http://www.w3.org/1998/MathML/";let Fi;function Yi(e){Fi=e}function ki(){return void 0!==Fi?Fi:"undefined"!=typeof document?document:void 0}function Rn(e){return!!e.listen}const sr={createRenderer:(e,t)=>ki()};function Ln(e){for(;Array.isArray(e);)e=e[0];return e}function R(e,t){return Ln(t[e])}function te(e,t){return Ln(t[e.index])}function ht(e,t){return e.data[t]}function Dt(e,t){return e[t]}function Nt(e,t){const n=t[e];return Kn(n)?n:n[0]}function Dn(e){return 4==(4&e[2])}function Tn(e){return 128==(128&e[2])}function un(e,t){return null==t?null:e[t]}function F(e){e[18]=0}function P(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 b={lFrame:ln(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function qn(){return b.bindingsEnabled}function gi(){b.bindingsEnabled=!0}function Ni(){b.bindingsEnabled=!1}function wt(){return b.lFrame.lView}function B(){return b.lFrame.tView}function c(e){return b.lFrame.contextLView=e,e[8]}function f(){let e=T();for(;null!==e&&64===e.type;)e=e.parent;return e}function T(){return b.lFrame.currentTNode}function j(){const e=b.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function ae(e,t){const n=b.lFrame;n.currentTNode=e,n.isParent=t}function Fe(){return b.lFrame.isParent}function Ve(){b.lFrame.isParent=!1}function Ft(){return b.isInCheckNoChangesMode}function Gt(e){b.isInCheckNoChangesMode=e}function Xt(){const e=b.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function dn(){return b.lFrame.bindingIndex}function en(e){return b.lFrame.bindingIndex=e}function nn(){return b.lFrame.bindingIndex++}function hn(e){const t=b.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function U(e){b.lFrame.inI18n=e}function Z(e,t){const n=b.lFrame;n.bindingIndex=n.bindingRootIndex=e,xe(t)}function xe(e){b.lFrame.currentDirectiveIndex=e}function Ne(e){const t=b.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function nt(){return b.lFrame.currentQueryIndex}function Ct(e){b.lFrame.currentQueryIndex=e}function bt(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function Wt(e,t,n){if(n&N.SkipSelf){let o=t,a=e;for(;!(o=o.parent,null!==o||n&N.Host||(o=bt(a),null===o||(a=a[15],10&o.type))););if(null===o)return!1;t=o,e=a}const r=b.lFrame=yn();return r.currentTNode=t,r.lView=e,!0}function Yt(e){const t=yn(),n=e[1];b.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function yn(){const e=b.lFrame,t=null===e?null:e.child;return null===t?ln(e):t}function ln(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function wn(){const e=b.lFrame;return b.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const _n=wn;function Pt(){const e=wn();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function sn(){return b.lFrame.selectedIndex}function jn(e){b.lFrame.selectedIndex=e}function Pn(){const e=b.lFrame;return ht(e.tView,e.selectedIndex)}function _i(){b.lFrame.currentNamespace=Ri}function lr(){b.lFrame.currentNamespace=or}function Vn(){!function Ts(){b.lFrame.currentNamespace=null}()}function Xi(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){const a=e.data[n].type.prototype,{ngAfterContentInit:h,ngAfterContentChecked:g,ngAfterViewInit:E,ngAfterViewChecked:L,ngOnDestroy:z}=a;h&&(e.contentHooks||(e.contentHooks=[])).push(-n,h),g&&((e.contentHooks||(e.contentHooks=[])).push(n,g),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,g)),E&&(e.viewHooks||(e.viewHooks=[])).push(-n,E),L&&((e.viewHooks||(e.viewHooks=[])).push(n,L),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,L)),null!=z&&(e.destroyHooks||(e.destroyHooks=[])).push(n,z)}}function Li(e,t,n){Lu(e,t,3,n)}function Ji(e,t,n,r){(3&e[2])===n&&Lu(e,t,n,r)}function Ur(e,t){let n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function Lu(e,t,n,r){const a=null!=r?r:-1,h=t.length-1;let g=0;for(let E=void 0!==r?65535&e[18]:0;E<h;E++)if("number"==typeof t[E+1]){if(g=t[E],null!=r&&g>=r)break}else t[E]<0&&(e[18]+=65536),(g<a||-1==a)&&(zg(e,n,t,E),e[18]=(4294901760&e[18])+E+2),E++}function zg(e,t,n,r){const o=n[r]<0,a=n[r+1],g=e[o?-n[r]:n[r]];if(o){if(e[2]>>11<e[18]>>16&&(3&e[2])===t){e[2]+=2048,ti(4,g,a);try{a.call(g)}finally{ti(5,g,a)}}}else{ti(4,g,a);try{a.call(g)}finally{ti(5,g,a)}}}class Bo{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Ms(e,t,n){const r=Rn(e);let o=0;for(;o<n.length;){const a=n[o];if("number"==typeof a){if(0!==a)break;o++;const h=n[o++],g=n[o++],E=n[o++];r?e.setAttribute(t,g,E,h):t.setAttributeNS(h,g,E)}else{const h=a,g=n[++o];Ea(h)?r&&e.setProperty(t,h,g):r?e.setAttribute(t,h,g):t.setAttribute(h,g),o++}}return o}function Bu(e){return 3===e||4===e||6===e}function Ea(e){return 64===e.charCodeAt(0)}function ws(e,t){if(null!==t&&0!==t.length)if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){const o=t[r];"number"==typeof o?n=o:0===n||ju(e,n,o,null,-1===n||2===n?t[++r]:null)}}return e}function ju(e,t,n,r,o){let a=0,h=e.length;if(-1===t)h=-1;else for(;a<e.length;){const g=e[a++];if("number"==typeof g){if(g===t){h=-1;break}if(g>t){h=a-1;break}}}for(;a<e.length;){const g=e[a];if("number"==typeof g)break;if(g===n){if(null===r)return void(null!==o&&(e[a+1]=o));if(r===e[a+1])return void(e[a+2]=o)}a++,null!==r&&a++,null!==o&&a++}-1!==h&&(e.splice(h,0,t),a=h+1),e.splice(a++,0,n),null!==r&&e.splice(a++,0,r),null!==o&&e.splice(a++,0,o)}function Vu(e){return-1!==e}function Jr(e){return 32767&e}function qr(e,t){let n=function Yg(e){return e>>16}(e),r=t;for(;n>0;)r=r[15],n--;return r}let Da=!0;function Ss(e){const t=Da;return Da=e,t}let Xg=0;function Vo(e,t){const n=Ma(e,t);if(-1!==n)return n;const r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,Ta(r.data,e),Ta(t,null),Ta(r.blueprint,null));const o=Is(e,t),a=e.injectorIndex;if(Vu(o)){const h=Jr(o),g=qr(o,t),E=g[1].data;for(let L=0;L<8;L++)t[a+L]=g[h+L]|E[h+L]}return t[a+8]=o,a}function Ta(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Ma(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Is(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;null!==o;){const a=o[1],h=a.type;if(r=2===h?a.declTNode:1===h?o[6]:null,null===r)return-1;if(n++,o=o[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function As(e,t,n){!function Jg(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Te)&&(r=n[Te]),null==r&&(r=n[Te]=Xg++);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=se(void 0);try{return o?o.get(t,r,n&N.Optional):Ce(t,r,n&N.Optional)}finally{se(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(Te)?e[Te]:void 0;return"number"==typeof t?t>=0?255&t:e_:t}(n);if("function"==typeof a){if(!Wt(t,e,r))return r&N.Host?Uu(o,n,r):Wu(t,n,r,o);try{const h=a(r);if(null!=h||r&N.Optional)return h;le(n)}finally{_n()}}else if("number"==typeof a){let h=null,g=Ma(e,t),E=-1,L=r&N.Host?t[16][6]:null;for((-1===g||r&N.SkipSelf)&&(E=-1===g?Is(e,t):t[g+8],-1!==E&&Qu(r,!1)?(h=t[1],g=Jr(E),t=qr(E,t)):g=-1);-1!==g;){const z=t[1];if(Gu(a,g,z.data)){const ve=t_(g,t,n,h,r,L);if(ve!==Ku)return ve}E=t[g+8],-1!==E&&Qu(r,t[1].data[g+8]===L)&&Gu(a,g,t)?(h=z,g=Jr(E),t=qr(E,t)):g=-1}}}return Wu(t,n,r,o)}const Ku={};function e_(){return new eo(f(),wt())}function t_(e,t,n,r,o,a){const h=t[1],g=h.data[e+8],z=Ps(g,h,n,null==r?Mi(g)&&Da:r!=h&&0!=(3&g.type),o&N.Host&&a===g);return null!==z?Ho(t,h,z,g):Ku}function Ps(e,t,n,r,o){const a=e.providerIndexes,h=t.data,g=1048575&a,E=e.directiveStart,z=a>>20,We=o?g+z:e.directiveEnd;for(let rt=r?g:g+z;rt<We;rt++){const yt=h[rt];if(rt<E&&n===yt||rt>=E&&yt.type===n)return rt}if(o){const rt=h[E];if(rt&&Wn(rt)&&rt.type===n)return E}return null}function Ho(e,t,n,r){let o=e[n];const a=t.data;if(function Kg(e){return e instanceof Bo}(o)){const h=o;h.resolving&&function De(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new V(-200,`Circular dependency in DI detected for ${e}${n}`)}(ne(a[n]));const g=Ss(h.canSeeViewProviders);h.resolving=!0;const E=h.injectImpl?se(h.injectImpl):null;Wt(e,r,N.Default);try{o=e[n]=h.factory(void 0,a,e,r),t.firstCreatePass&&n>=r.directiveStart&&function ui(e,t,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:a}=t.type.prototype;if(r){const h=Qi(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,h),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,h)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,o),a&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,a))}(n,a[n],t)}finally{null!==E&&se(E),Ss(g),h.resolving=!1,_n()}}return o}function Gu(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function Qu(e,t){return!(e&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 re(()=>{const t=e.prototype.constructor,n=t[Ie]||wa(t),r=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){const a=o[Ie]||wa(o);if(a&&a!==n)return a;o=Object.getPrototypeOf(o)}return a=>new a})}function wa(e){return w(e)?()=>{const t=wa(O(e));return t&&t()}:fi(e)}function Sa(e){return function qg(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const r=n.length;let o=0;for(;o<r;){const a=n[o];if(Bu(a))break;if(0===a)o+=2;else if("number"==typeof a)for(o++;o<r&&"string"==typeof n[o];)o++;else{if(a===t)return n[o+1];o+=2}}}return null}(f(),e)}const to="__annotations__",no="__parameters__",io="__prop__metadata__";function ro(e,t,n,r,o){return re(()=>{const a=Ia(t);function h(...g){if(this instanceof h)return a.call(this,...g),this;const E=new h(...g);return function(z){return o&&o(z,...g),(z.hasOwnProperty(to)?z[to]:Object.defineProperty(z,to,{value:[]})[to]).push(E),r&&r(z),z}}return n&&(h.prototype=Object.create(n.prototype)),h.prototype.ngMetadataName=e,h.annotationCls=h,h})}function Ia(e){return function(...n){if(e){const r=e(...n);for(const o in r)this[o]=r[o]}}}function oo(e,t,n){return re(()=>{const r=Ia(t);function o(...a){if(this instanceof o)return r.apply(this,a),this;const h=new o(...a);return g.annotation=h,g;function g(E,L,z){const ve=E.hasOwnProperty(no)?E[no]:Object.defineProperty(E,no,{value:[]})[no];for(;ve.length<=z;)ve.push(null);return(ve[z]=ve[z]||[]).push(h),E}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}function jr(e,t,n,r){return re(()=>{const o=Ia(t);function a(...h){if(this instanceof a)return o.apply(this,h),this;const g=new a(...h);return function E(L,z){const ve=L.constructor,We=ve.hasOwnProperty(io)?ve[io]:Object.defineProperty(ve,io,{value:{}})[io];We[z]=We.hasOwnProperty(z)&&We[z]||[],We[z].unshift(g),r&&r(L,z,...h)}}return n&&(a.prototype=Object.create(n.prototype)),a.prototype.ngMetadataName=e,a.annotationCls=a,a})}const Yu=oo("Attribute",e=>({attributeName:e,__NG_ELEMENT_ID__:()=>Sa(e)}));class Yn{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=et({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}const i_=new Yn("AnalyzeForEntryComponents");class $o{}const r_=jr("ContentChildren",(e,t={})=>Object.assign({selector:e,first:!1,isViewQuery:!1,descendants:!1,emitDistinctChangesOnly:!0},t),$o),o_=jr("ContentChild",(e,t={})=>Object.assign({selector:e,first:!0,isViewQuery:!1,descendants:!0},t),$o),s_=jr("ViewChildren",(e,t={})=>Object.assign({selector:e,first:!1,isViewQuery:!0,descendants:!0,emitDistinctChangesOnly:!0},t),$o),a_=jr("ViewChild",(e,t)=>Object.assign({selector:e,first:!0,isViewQuery:!0,descendants:!0},t),$o);var ii=(()=>((ii=ii||{})[ii.Directive=0]="Directive",ii[ii.Component=1]="Component",ii[ii.Injectable=2]="Injectable",ii[ii.Pipe=3]="Pipe",ii[ii.NgModule=4]="NgModule",ii))();function ri(e){const t=Kt.ng;if(t&&t.\u0275compilerFacade)return t.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}const Os=Function;function Uo(e){return"function"==typeof e}function qi(e,t){void 0===t&&(t=e);for(let n=0;n<e.length;n++){let r=e[n];Array.isArray(r)?(t===e&&(t=e.slice(0,n)),qi(r,t)):t!==e&&t.push(r)}return t}function yr(e,t){e.forEach(n=>Array.isArray(n)?yr(n,t):t(n))}function Ju(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function xs(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Wo(e,t){const n=[];for(let r=0;r<e;r++)n.push(t);return n}function Bi(e,t,n){let r=so(e,t);return r>=0?e[1|r]=n:(r=~r,function u_(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(1===o)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;)e[o]=e[o-2],o--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function Aa(e,t){const n=so(e,t);if(n>=0)return e[1|n]}function so(e,t){return function td(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){const a=r+(o-r>>1),h=e[a<<n];if(t===h)return a<<n;h>t?o=a:r=a+1}return~(o<<n)}(e,t,1)}const d_=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|(?:[^()]+\(\[\],)?[^()]+\(arguments\).*)\)/,h_=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,f_=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,p_=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{\s*super\(\.\.\.arguments\)/;class Pa{constructor(t){this._reflect=t||Kt.Reflect}isReflectionEnabled(){return!0}factory(t){return(...n)=>new t(...n)}_zipTypesAndAnnotations(t,n){let r;r=Wo(void 0===t?n.length:t.length);for(let o=0;o<r.length;o++)r[o]=void 0===t?[]:t[o]&&t[o]!=Object?[t[o]]:[],n&&null!=n[o]&&(r[o]=r[o].concat(n[o]));return r}_ownParameters(t,n){if(function m_(e){return d_.test(e)||p_.test(e)||h_.test(e)&&!f_.test(e)}(t.toString()))return null;if(t.parameters&&t.parameters!==n.parameters)return t.parameters;const o=t.ctorParameters;if(o&&o!==n.ctorParameters){const g="function"==typeof o?o():o,E=g.map(z=>z&&z.type),L=g.map(z=>z&&Oa(z.decorators));return this._zipTypesAndAnnotations(E,L)}const a=t.hasOwnProperty(no)&&t[no],h=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",t);return h||a?this._zipTypesAndAnnotations(h,a):Wo(t.length)}parameters(t){if(!Uo(t))return[];const n=Rs(t);let r=this._ownParameters(t,n);return!r&&n!==Object&&(r=this.parameters(n)),r||[]}_ownAnnotations(t,n){if(t.annotations&&t.annotations!==n.annotations){let r=t.annotations;return"function"==typeof r&&r.annotations&&(r=r.annotations),r}return t.decorators&&t.decorators!==n.decorators?Oa(t.decorators):t.hasOwnProperty(to)?t[to]:null}annotations(t){if(!Uo(t))return[];const n=Rs(t),r=this._ownAnnotations(t,n)||[];return(n!==Object?this.annotations(n):[]).concat(r)}_ownPropMetadata(t,n){if(t.propMetadata&&t.propMetadata!==n.propMetadata){let r=t.propMetadata;return"function"==typeof r&&r.propMetadata&&(r=r.propMetadata),r}if(t.propDecorators&&t.propDecorators!==n.propDecorators){const r=t.propDecorators,o={};return Object.keys(r).forEach(a=>{o[a]=Oa(r[a])}),o}return t.hasOwnProperty(io)?t[io]:null}propMetadata(t){if(!Uo(t))return{};const n=Rs(t),r={};if(n!==Object){const a=this.propMetadata(n);Object.keys(a).forEach(h=>{r[h]=a[h]})}const o=this._ownPropMetadata(t,n);return o&&Object.keys(o).forEach(a=>{const h=[];r.hasOwnProperty(a)&&h.push(...r[a]),h.push(...o[a]),r[a]=h}),r}ownPropMetadata(t){return Uo(t)&&this._ownPropMetadata(t,Rs(t))||{}}hasLifecycleHook(t,n){return t instanceof Os&&n in t.prototype}guards(t){return{}}getter(t){return new Function("o","return o."+t+";")}setter(t){return new Function("o","v","return o."+t+" = v;")}method(t){return new Function("o","args",`if (!o.${t}) throw new Error('"${t}" is undefined');\n return o.${t}.apply(o, args);`)}importUri(t){return"object"==typeof t&&t.filePath?t.filePath:`./${D(t)}`}resourceUri(t){return`./${D(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_=v({provide:String,useValue:v});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?Ce(e,void 0,t):zo.get(e,t&N.Optional?null:void 0,t)}function si(e,t=N.Default){return(function Oe(){return ie}()||b_)(O(e),t)}function Fa(e){throw new Error("invalid")}const C_=si;function ka(e){const t=[];for(let n=0;n<e.length;n++){const r=O(e[n]);if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");let o,a=N.Default;for(let h=0;h<r.length;h++){const g=r[h],E=E_(g);"number"==typeof E?-1===E?o=g.token:a|=E:o=g}t.push(si(o,a))}else t.push(si(r))}return t}function Ko(e,t){return e[xa]=t,e.prototype[xa]=t,e}function E_(e){return e[xa]}const Go=Ko(oo("Inject",e=>({token:e})),-1),Wr=Ko(oo("Optional"),8),ks=Ko(oo("Self"),2),zr=Ko(oo("SkipSelf"),4),id=Ko(oo("Host"),1);let rd=null;function Na(){return rd=rd||new Pa}function Ns(e){return od(Na().parameters(e))}function od(e){return e.map(t=>function M_(e){const t={token:null,attribute:null,host:!1,optional:!1,self:!1,skipSelf:!1};if(Array.isArray(e)&&e.length>0)for(let n=0;n<e.length;n++){const r=e[n];if(void 0===r)continue;const o=Object.getPrototypeOf(r);if(r instanceof Wr||"Optional"===o.ngMetadataName)t.optional=!0;else if(r instanceof zr||"SkipSelf"===o.ngMetadataName)t.skipSelf=!0;else if(r instanceof ks||"Self"===o.ngMetadataName)t.self=!0;else if(r instanceof id||"Host"===o.ngMetadataName)t.host=!0;else if(r instanceof Go)t.token=r.token;else if(r instanceof Yu){if(void 0===r.attributeName)throw new Error("Attribute name must be defined.");t.attribute=r.attributeName}else t.token=r}else t.token=void 0===e||Array.isArray(e)&&0===e.length?null:e;return t}(t))}function sd(e){const t=[],n=new Map;function r(o){let a=n.get(o);if(!a){const h=e(o);n.set(o,a=h.then(I_))}return a}return ao.forEach((o,a)=>{const h=[];o.templateUrl&&h.push(r(o.templateUrl).then(ve=>{o.template=ve}));const g=o.styleUrls,E=o.styles||(o.styles=[]),L=o.styles.length;g&&g.forEach((ve,We)=>{E.push(""),h.push(r(ve).then(rt=>{E[L+We]=rt,g.splice(g.indexOf(ve),1),0==g.length&&(o.styleUrls=void 0)}))});const z=Promise.all(h).then(()=>function A_(e){Qo.delete(e)}(a));t.push(z)}),ld(),Promise.all(t).then(()=>{})}let ao=new Map;const Qo=new Set;function ad(e){return!!(e.templateUrl&&!e.hasOwnProperty("template")||e.styleUrls&&e.styleUrls.length)}function ld(){const e=ao;return ao=new Map,e}function I_(e){return"string"==typeof e?e:e.text()}let Ls,Bs;function La(){if(void 0===Ls&&(Ls=null,Kt.trustedTypes))try{Ls=Kt.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return Ls}function lo(e){var t;return(null===(t=La())||void 0===t?void 0:t.createHTML(e))||e}function Ba(){if(void 0===Bs&&(Bs=null,Kt.trustedTypes))try{Bs=Kt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return Bs}function cd(e){var t;return(null===(t=Ba())||void 0===t?void 0:t.createHTML(e))||e}function ud(e){var t;return(null===(t=Ba())||void 0===t?void 0:t.createScript(e))||e}function dd(e){var t;return(null===(t=Ba())||void 0===t?void 0:t.createScriptURL(e))||e}class Kr{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class x_ extends Kr{getTypeName(){return"HTML"}}class R_ extends Kr{getTypeName(){return"Style"}}class F_ extends Kr{getTypeName(){return"Script"}}class k_ extends Kr{getTypeName(){return"URL"}}class N_ extends Kr{getTypeName(){return"ResourceURL"}}function Rr(e){return e instanceof Kr?e.changingThisBreaksApplicationSecurity:e}function co(e,t){const n=hd(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===t}function hd(e){return e instanceof Kr&&e.getTypeName()||null}function L_(e){return new x_(e)}function B_(e){return new R_(e)}function j_(e){return new F_(e)}function V_(e){return new k_(e)}function H_(e){return new N_(e)}function fd(e){const t=new U_(e);return function W_(){try{return!!(new window.DOMParser).parseFromString(lo(""),"text/html")}catch(e){return!1}}()?new $_(t):t}class $_{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const n=(new window.DOMParser).parseFromString(lo(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch(n){return null}}}class U_{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);const r=this.inertDocument.createElement("body");n.appendChild(r)}}getInertBodyElement(t){const n=this.inertDocument.createElement("template");if("content"in n)return n.innerHTML=lo(t),n;const r=this.inertDocument.createElement("body");return r.innerHTML=lo(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(r),r}stripCustomNsAttrs(t){const n=t.attributes;for(let o=n.length-1;0<o;o--){const h=n.item(o).name;("xmlns:ns1"===h||0===h.indexOf("ns1:"))&&t.removeAttribute(h)}let r=t.firstChild;for(;r;)r.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(r),r=r.nextSibling}}const z_=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,K_=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function Zo(e){return(e=String(e)).match(z_)||e.match(K_)?e:"unsafe:"+e}function pd(e){return(e=String(e)).split(",").map(t=>Zo(t.trim())).join(", ")}function vr(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function Yo(...e){const t={};for(const n of e)for(const r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}const md=vr("area,br,col,hr,img,wbr"),gd=vr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),_d=vr("rp,rt"),ja=Yo(md,Yo(gd,vr("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Yo(_d,vr("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Yo(_d,gd)),Va=vr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Ha=vr("srcset"),yd=Yo(Va,Ha,vr("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),vr("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),G_=vr("script,style,template");class Q_{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0;for(;n;)if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild)n=n.firstChild;else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let o=this.checkClobberedElement(n,n.nextSibling);if(o){n=o;break}n=this.checkClobberedElement(n,n.parentNode)}return this.buf.join("")}startElement(t){const n=t.nodeName.toLowerCase();if(!ja.hasOwnProperty(n))return this.sanitizedSomething=!0,!G_.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const r=t.attributes;for(let o=0;o<r.length;o++){const a=r.item(o),h=a.name,g=h.toLowerCase();if(!yd.hasOwnProperty(g)){this.sanitizedSomething=!0;continue}let E=a.value;Va[g]&&(E=Zo(E)),Ha[g]&&(E=pd(E)),this.buf.push(" ",h,'="',vd(E),'"')}return this.buf.push(">"),!0}endElement(t){const n=t.nodeName.toLowerCase();ja.hasOwnProperty(n)&&!md.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(vd(t))}checkClobberedElement(t,n){if(n&&(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return n}}const Z_=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Y_=/([^\#-~ |!])/g;function vd(e){return e.replace(/&/g,"&amp;").replace(Z_,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Y_,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let js;function bd(e,t){let n=null;try{js=js||fd(e);let r=t?String(t):"";n=js.getInertBodyElement(r);let o=5,a=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,r=a,a=n.innerHTML,n=js.getInertBodyElement(r)}while(r!==a);return lo((new Q_).sanitizeChildren($a(n)||n))}finally{if(n){const r=$a(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function $a(e){return"content"in e&&function X_(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var ei=(()=>((ei=ei||{})[ei.NONE=0]="NONE",ei[ei.HTML=1]="HTML",ei[ei.STYLE=2]="STYLE",ei[ei.SCRIPT=3]="SCRIPT",ei[ei.URL=4]="URL",ei[ei.RESOURCE_URL=5]="RESOURCE_URL",ei))();function Cd(e){const t=Xo();return t?cd(t.sanitize(ei.HTML,e)||""):co(e,"HTML")?cd(Rr(e)):bd(ki(),$(e))}function Ed(e){const t=Xo();return t?t.sanitize(ei.STYLE,e)||"":co(e,"Style")?Rr(e):$(e)}function Ua(e){const t=Xo();return t?t.sanitize(ei.URL,e)||"":co(e,"URL")?Rr(e):Zo($(e))}function Wa(e){const t=Xo();if(t)return dd(t.sanitize(ei.RESOURCE_URL,e)||"");if(co(e,"ResourceURL"))return dd(Rr(e));throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)")}function Dd(e){const t=Xo();if(t)return ud(t.sanitize(ei.SCRIPT,e)||"");if(co(e,"Script"))return ud(Rr(e));throw new Error("unsafe value used in a script context")}function Td(e){return lo(e[0])}function Md(e){return function O_(e){var t;return(null===(t=La())||void 0===t?void 0:t.createScriptURL(e))||e}(e[0])}function wd(e,t,n){return function J_(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?Wa:Ua}(t,n)(e)}function Xo(){const e=wt();return e&&e[12]}function yi(e){let t=Jo(e);if(t){if(Array.isArray(t)){const n=t;let r,o,a;if(function q_(e){return e&&e.constructor&&e.constructor.\u0275cmp}(e)){if(r=Pd(n,e),-1==r)throw new Error("The provided component was not found in the application");o=e}else if(function ey(e){return e&&e.constructor&&e.constructor.\u0275dir}(e)){if(r=function ny(e,t){let n=e[1].firstChild;for(;n;){const o=n.directiveEnd;for(let a=n.directiveStart;a<o;a++)if(e[a]===t)return n.index;n=ty(n)}return-1}(n,e),-1==r)throw new Error("The provided directive was not found in the application");a=Od(r,n,!1)}else if(r=Ad(n,e),-1==r)return null;const h=Ln(n[r]),g=Jo(h),E=g&&!Array.isArray(g)?g:za(n,r,h);if(o&&void 0===E.component&&(E.component=o,vi(E.component,E)),a&&void 0===E.directives){E.directives=a;for(let L=0;L<a.length;L++)vi(a[L],E)}vi(E.native,E),t=E}}else{const n=e;let r=n;for(;r=r.parentNode;){const o=Jo(r);if(o){let a;if(a=Array.isArray(o)?o:o.lView,!a)return null;const h=Ad(a,n);if(h>=0){const g=Ln(a[h]),E=za(a,h,g);vi(g,E),t=E;break}}}}return t||null}function za(e,t,n){return{lView:e,nodeIndex:t,native:n,component:void 0,directives:void 0,localRefs:void 0}}function Sd(e){let n,t=Jo(e);if(Array.isArray(t)){const r=Pd(t,e);n=Nt(r,t);const o=za(t,r,n[0]);o.component=e,vi(e,o),vi(o.native,o)}else n=Nt(t.nodeIndex,t.lView);return n}const Id="__ngContext__";function vi(e,t){e[Id]=t}function Jo(e){return e[Id]||null}function Ka(e){const t=Jo(e);return t?Array.isArray(t)?t:t.lView:null}function Ad(e,t){const n=e[1];for(let r=20;r<n.bindingStartIndex;r++)if(Ln(e[r])===t)return r;return-1}function ty(e){if(e.child)return e.child;if(e.next)return e.next;for(;e.parent&&!e.parent.next;)e=e.parent;return e.parent&&e.parent.next}function Pd(e,t){const n=e[1].components;if(n)for(let r=0;r<n.length;r++){const o=n[r];if(Nt(o,e)[8]===t)return o}else if(Nt(20,e)[8]===t)return 20;return-1}function Od(e,t,n){const r=t[1].data[e];let o=r.directiveStart;return 0==o?Ot:(!n&&2&r.flags&&o++,t.slice(o,r.directiveEnd))}const Ga="ngOriginalError";function Qa(e){return e[Ga]}function ly(e,...t){e.error(...t)}class qo{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t),r=function ay(e){return e&&e.ngErrorLogger||ly}(t);r(this._console,"ERROR",t),n&&r(this._console,"ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Qa(t);for(;n&&Qa(n);)n=Qa(n);return n||null}}const xd={name:"custom-elements"},Rd={name:"no-errors-schema"},cy=/^>|^->|<!--|-->|--!>|<!-$/g,uy=/(<|>)/;const kd=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Kt))();function Nd(e){return e.ownerDocument.defaultView}function Ld(e){return e.ownerDocument}function Bd(e){return e.ownerDocument.body}function br(e){return e instanceof Function?e():e}var Cr=(()=>((Cr=Cr||{})[Cr.Important=1]="Important",Cr[Cr.DashCase=2]="DashCase",Cr))();let Za;function Ya(e,t){return Za(e,t)}function es(e){const t=e[3];return Gn(t)?t[3]:t}function $d(e){return function Hd(e){let t=Kn(e)?e:Ka(e);for(;t&&!(512&t[2]);)t=es(t);return t}(e)[8]}function Xa(e){return Ud(e[13])}function Ja(e){return Ud(e[4])}function Ud(e){for(;null!==e&&!Gn(e);)e=e[4];return e}function ho(e,t,n,r,o){if(null!=r){let a,h=!1;Gn(r)?a=r:Kn(r)&&(h=!0,r=r[0]);const g=Ln(r);0===e&&null!==n?null==o?Zd(t,n,g):Gr(t,n,g,o||null,!0):1===e&&null!==n?Gr(t,n,g,o||null,!0):2===e?nh(t,g,h):3===e&&t.destroyNode(g),null!=a&&function Ay(e,t,n,r,o){const a=n[7];a!==Ln(n)&&ho(t,e,r,a,o);for(let g=10;g<n.length;g++){const E=n[g];ts(E[1],E,e,t,r,a)}}(t,e,a,n,o)}}function qa(e,t){return Rn(e)?e.createText(t):e.createTextNode(t)}function Wd(e,t,n){Rn(e)?e.setValue(t,n):t.textContent=n}function _y(e,t){return e.createComment(function Fd(e){return e.replace(cy,t=>t.replace(uy,"\u200b$1\u200b"))}(t))}function el(e,t,n){return Rn(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function zd(e,t){const n=e[9],r=n.indexOf(t),o=t[3];1024&t[2]&&(t[2]&=-1025,P(o,-1)),n.splice(r,1)}function tl(e,t){if(e.length<=10)return;const n=10+t,r=e[n];if(r){const o=r[17];null!==o&&o!==e&&zd(o,r),t>0&&(e[n-1][4]=r[4]);const a=xs(e,10+t);!function yy(e,t){ts(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(r[1],r);const h=a[19];null!==h&&h.detachView(a[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function Kd(e,t){if(!(256&t[2])){const n=t[11];Rn(n)&&n.destroyNode&&ts(e,t,n,3,null,null),function Cy(e){let t=e[13];if(!t)return nl(e[1],e);for(;t;){let n=null;if(Kn(t))n=t[13];else{const r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)Kn(t)&&nl(t[1],t),t=t[3];null===t&&(t=e),Kn(t)&&nl(t[1],t),n=t&&t[4]}t=n}}(t)}}function nl(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function My(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r<n.length;r+=2){const o=t[n[r]];if(!(o instanceof Bo)){const a=n[r+1];if(Array.isArray(a))for(let h=0;h<a.length;h+=2){const g=o[a[h]],E=a[h+1];ti(4,g,E);try{E.call(g)}finally{ti(5,g,E)}}else{ti(4,o,a);try{a.call(o)}finally{ti(5,o,a)}}}}}(e,t),function Ty(e,t){const n=e.cleanup,r=t[7];let o=-1;if(null!==n)for(let a=0;a<n.length-1;a+=2)if("string"==typeof n[a]){const h=n[a+1],g="function"==typeof h?h(t):Ln(t[h]),E=r[o=n[a+2]],L=n[a+3];"boolean"==typeof L?g.removeEventListener(n[a],E,L):L>=0?r[o=L]():r[o=-L].unsubscribe(),a+=2}else{const h=r[o=n[a+1]];n[a].call(h)}if(null!==r){for(let a=o+1;a<r.length;a++)r[a]();t[7]=null}}(e,t),1===t[1].type&&Rn(t[11])&&t[11].destroy();const n=t[17];if(null!==n&&Gn(t[3])){n!==t[3]&&zd(n,t);const r=t[19];null!==r&&r.detachView(e)}}}function Gd(e,t,n){return Qd(e,t.parent,n)}function Qd(e,t,n){let r=t;for(;null!==r&&40&r.type;)r=(t=r).parent;if(null===r)return n[0];if(2&r.flags){const o=e.data[r.directiveStart].encapsulation;if(o===mt.None||o===mt.Emulated)return null}return te(r,n)}function Gr(e,t,n,r,o){Rn(e)?e.insertBefore(t,n,r,o):t.insertBefore(n,r,o)}function Zd(e,t,n){Rn(e)?e.appendChild(t,n):t.appendChild(n)}function Yd(e,t,n,r,o){null!==r?Gr(e,t,n,r,o):Zd(e,t,n)}function Vs(e,t){return Rn(e)?e.parentNode(t):t.parentNode}function Xd(e,t,n){return qd(e,t,n)}function Jd(e,t,n){return 40&e.type?te(e,n):null}let il,qd=Jd;function eh(e,t){qd=e,il=t}function Hs(e,t,n,r){const o=Gd(e,r,t),a=t[11],g=Xd(r.parent||t[6],r,t);if(null!=o)if(Array.isArray(n))for(let E=0;E<n.length;E++)Yd(a,o,n[E],g,!1);else Yd(a,o,n,g,!1);void 0!==il&&il(a,r,t,n,o)}function $s(e,t){if(null!==t){const n=t.type;if(3&n)return te(t,e);if(4&n)return rl(-1,e[t.index]);if(8&n){const r=t.child;if(null!==r)return $s(e,r);{const o=e[t.index];return Gn(o)?rl(-1,o):Ln(o)}}if(32&n)return Ya(t,e)()||Ln(e[t.index]);{const r=th(e,t);return null!==r?Array.isArray(r)?r[0]:$s(es(e[16]),r):$s(e,t.next)}}return null}function th(e,t){return null!==t?e[16][6].projection[t.projection]:null}function rl(e,t){const n=10+e+1;if(n<t.length){const r=t[n],o=r[1].firstChild;if(null!==o)return $s(r,o)}return t[7]}function nh(e,t,n){const r=Vs(e,t);r&&function wy(e,t,n,r){Rn(e)?e.removeChild(t,n,r):t.removeChild(n)}(e,r,t,n)}function ol(e,t,n,r,o,a,h){for(;null!=n;){const g=r[n.index],E=n.type;if(h&&0===t&&(g&&vi(Ln(g),r),n.flags|=4),64!=(64&n.flags))if(8&E)ol(e,t,n.child,r,o,a,!1),ho(t,e,o,g,a);else if(32&E){const L=Ya(n,r);let z;for(;z=L();)ho(t,e,o,z,a);ho(t,e,o,g,a)}else 16&E?ih(e,t,r,n,o,a):ho(t,e,o,g,a);n=h?n.projectionNext:n.next}}function ts(e,t,n,r,o,a){ol(n,r,e.firstChild,t,o,a,!1)}function ih(e,t,n,r,o,a){const h=n[16],E=h[6].projection[r.projection];if(Array.isArray(E))for(let L=0;L<E.length;L++)ho(t,e,o,E[L],a);else ol(e,t,E,h[3],o,a,!0)}function rh(e,t,n){Rn(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function sl(e,t,n){Rn(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}function oh(e,t,n){let r=e.length;for(;;){const o=e.indexOf(t,n);if(-1===o)return o;if(0===o||e.charCodeAt(o-1)<=32){const a=t.length;if(o+a===r||e.charCodeAt(o+a)<=32)return o}n=o+1}}const sh="ng-template";function Oy(e,t,n){let r=0;for(;r<e.length;){let o=e[r++];if(n&&"class"===o){if(o=e[r],-1!==oh(o.toLowerCase(),t,0))return!0}else if(1===o){for(;r<e.length&&"string"==typeof(o=e[r++]);)if(o.toLowerCase()===t)return!0;return!1}}return!1}function ah(e){return 4===e.type&&e.value!==sh}function xy(e,t,n){return t===(4!==e.type||n?e.value:sh)}function Ry(e,t,n){let r=4;const o=e.attrs||[],a=function Ny(e){for(let t=0;t<e.length;t++)if(Bu(e[t]))return t;return e.length}(o);let h=!1;for(let g=0;g<t.length;g++){const E=t[g];if("number"!=typeof E){if(!h)if(4&r){if(r=2|1&r,""!==E&&!xy(e,E,n)||""===E&&1===t.length){if(cr(r))return!1;h=!0}}else{const L=8&r?E:t[++g];if(8&r&&null!==e.attrs){if(!Oy(e.attrs,L,n)){if(cr(r))return!1;h=!0}continue}const ve=Fy(8&r?"class":E,o,ah(e),n);if(-1===ve){if(cr(r))return!1;h=!0;continue}if(""!==L){let We;We=ve>a?"":o[ve+1].toLowerCase();const rt=8&r?We:null;if(rt&&-1!==oh(rt,L,0)||2&r&&L!==We){if(cr(r))return!1;h=!0}}}}else{if(!h&&!cr(r)&&!cr(E))return!1;if(h&&cr(E))continue;h=!1,r=E|1&r}}return cr(r)||h}function cr(e){return 0==(1&e)}function Fy(e,t,n,r){if(null===t)return-1;let o=0;if(r||!n){let a=!1;for(;o<t.length;){const h=t[o];if(h===e)return o;if(3===h||6===h)a=!0;else{if(1===h||2===h){let g=t[++o];for(;"string"==typeof g;)g=t[++o];continue}if(4===h)break;if(0===h){o+=4;continue}}o+=a?1:2}return-1}return function Ly(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const r=e[n];if("number"==typeof r)return-1;if(r===t)return n;n++}return-1}(t,e)}function lh(e,t,n=!1){for(let r=0;r<t.length;r++)if(Ry(e,t[r],n))return!0;return!1}function By(e,t){e:for(let n=0;n<t.length;n++){const r=t[n];if(e.length===r.length){for(let o=0;o<e.length;o++)if(e[o]!==r[o])continue e;return!0}}return!1}function ch(e,t){return e?":not("+t.trim()+")":t}function jy(e){let t=e[0],n=1,r=2,o="",a=!1;for(;n<e.length;){let h=e[n];if("string"==typeof h)if(2&r){const g=e[++n];o+="["+h+(g.length>0?'="'+g+'"':"")+"]"}else 8&r?o+="."+h:4&r&&(o+=" "+h);else""!==o&&!cr(h)&&(t+=ch(a,o),o=""),r=h,a=a||!cr(r);n++}return""!==o&&(t+=ch(a,o)),t}const pn={};function uh(e){dh(B(),wt(),sn()+e,Ft())}function dh(e,t,n,r){if(!r)if(3==(3&t[2])){const a=e.preOrderCheckHooks;null!==a&&Li(t,a,n)}else{const a=e.preOrderHooks;null!==a&&Ji(t,a,0,n)}jn(n)}function Us(e,t){return e<<17|t<<2}function ur(e){return e>>17&32767}function al(e){return 2|e}function Fr(e){return(131068&e)>>2}function ll(e,t){return-131069&e|t<<2}function cl(e){return 1|e}const _l=(()=>Promise.resolve(null))();function Eh(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;r<n.length;r+=2){const o=n[r],a=n[r+1];if(-1!==a){const h=e.data[a];Ct(o),h.contentQueries(2,t[a],a)}}}function ns(e,t,n,r,o,a,h,g,E,L){const z=t.blueprint.slice();return z[0]=o,z[2]=140|r,F(z),z[3]=z[15]=e,z[8]=n,z[10]=h||e&&e[10],z[11]=g||e&&e[11],z[12]=E||e&&e[12]||null,z[9]=L||e&&e[9]||null,z[6]=a,z[16]=2==t.type?e[16]:z,z}function fo(e,t,n,r,o){let a=e.data[t];if(null===a)a=yl(e,t,n,r,o),function q(){return b.lFrame.inI18n}()&&(a.flags|=64);else if(64&a.type){a.type=n,a.value=r,a.attrs=o;const h=j();a.injectorIndex=null===h?-1:h.injectorIndex}return ae(a,!0),a}function yl(e,t,n,r,o){const a=T(),h=Fe(),E=e.data[t]=function iv(e,t,n,r,o,a){return{type:n,index:r,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:o,attrs:a,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,h?a:a&&a.parent,n,t,r,o);return null===e.firstChild&&(e.firstChild=E),null!==a&&(h?null==a.child&&null!==E.parent&&(a.child=E):null===a.next&&(a.next=E)),E}function po(e,t,n,r){if(0===n)return-1;const o=t.length;for(let a=0;a<n;a++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function is(e,t,n){Yt(t);try{const r=e.viewQuery;null!==r&&Sl(1,r,n);const o=e.template;null!==o&&Dh(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Eh(e,t),e.staticViewQueries&&Sl(2,e.viewQuery,n);const a=e.components;null!==a&&function ev(e,t){for(let n=0;n<t.length;n++)Cv(e,t[n])}(t,a)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[2]&=-5,Pt()}}function mo(e,t,n,r){const o=t[2];if(256==(256&o))return;Yt(t);const a=Ft();try{F(t),en(e.bindingStartIndex),null!==n&&Dh(e,t,n,2,r);const h=3==(3&o);if(!a)if(h){const L=e.preOrderCheckHooks;null!==L&&Li(t,L,null)}else{const L=e.preOrderHooks;null!==L&&Ji(t,L,0,null),Ur(t,0)}if(function vv(e){for(let t=Xa(e);null!==t;t=Ja(t)){if(!t[2])continue;const n=t[9];for(let r=0;r<n.length;r++){const o=n[r],a=o[3];0==(1024&o[2])&&P(a,1),o[2]|=1024}}}(t),function yv(e){for(let t=Xa(e);null!==t;t=Ja(t))for(let n=10;n<t.length;n++){const r=t[n],o=r[1];Tn(r)&&mo(o,r,o.template,r[8])}}(t),null!==e.contentQueries&&Eh(e,t),!a)if(h){const L=e.contentCheckHooks;null!==L&&Li(t,L)}else{const L=e.contentHooks;null!==L&&Ji(t,L,1),Ur(t,1)}!function Jy(e,t){const n=e.hostBindingOpCodes;if(null!==n)try{for(let r=0;r<n.length;r++){const o=n[r];if(o<0)jn(~o);else{const a=o,h=n[++r],g=n[++r];Z(h,a),g(2,t[a])}}}finally{jn(-1)}}(e,t);const g=e.components;null!==g&&function qy(e,t){for(let n=0;n<t.length;n++)bv(e,t[n])}(t,g);const E=e.viewQuery;if(null!==E&&Sl(2,E,r),!a)if(h){const L=e.viewCheckHooks;null!==L&&Li(t,L)}else{const L=e.viewHooks;null!==L&&Ji(t,L,2),Ur(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),a||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,P(t[3],-1))}finally{Pt()}}function tv(e,t,n,r){const o=t[10],a=!Ft(),h=Dn(t);try{a&&!h&&o.begin&&o.begin(),h&&is(e,t,r),mo(e,t,n,r)}finally{a&&!h&&o.end&&o.end()}}function Dh(e,t,n,r,o){const a=sn(),h=2&r;try{jn(-1),h&&t.length>20&&dh(e,t,20,Ft()),ti(h?2:0,o),n(r,o)}finally{jn(a),ti(h?3:1,o)}}function Th(e,t,n){if(Ci(t)){const o=t.directiveEnd;for(let a=t.directiveStart;a<o;a++){const h=e.data[a];h.contentQueries&&h.contentQueries(1,n[a],a)}}}function vl(e,t,n){!qn()||(function uv(e,t,n,r){const o=n.directiveStart,a=n.directiveEnd;e.firstCreatePass||Vo(n,t),vi(r,t);const h=n.initialInputs;for(let g=o;g<a;g++){const E=e.data[g],L=Wn(E);L&&mv(t,n,E);const z=Ho(t,e,g,n);vi(z,t),null!==h&&gv(0,g-o,z,E,0,h),L&&(Nt(n.index,t)[8]=z)}}(e,t,n,te(n,t)),128==(128&n.flags)&&function dv(e,t,n){const r=n.directiveStart,o=n.directiveEnd,h=n.index,g=function ee(){return b.lFrame.currentDirectiveIndex}();try{jn(h);for(let E=r;E<o;E++){const L=e.data[E],z=t[E];xe(E),(null!==L.hostBindings||0!==L.hostVars||null!==L.hostAttrs)&&xh(L,z)}}finally{jn(-1),xe(g)}}(e,t,n))}function bl(e,t,n=te){const r=t.localNames;if(null!==r){let o=t.index+1;for(let a=0;a<r.length;a+=2){const h=r[a+1],g=-1===h?n(t,e):e[h];e[o++]=g}}}function Mh(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=Ks(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function Ks(e,t,n,r,o,a,h,g,E,L){const z=20+r,ve=z+o,We=function nv(e,t){const n=[];for(let r=0;r<t;r++)n.push(r<e?null:pn);return n}(z,ve),rt="function"==typeof L?L():L;return We[1]={type:e,blueprint:We,template:n,queries:null,viewQuery:g,declTNode:t,data:We.slice().fill(null,z),bindingStartIndex:z,expandoStartIndex:ve,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof a?a():a,pipeRegistry:"function"==typeof h?h():h,firstChild:null,schemas:E,consts:rt,incompleteFirstPass:!1}}function Sh(e,t,n){if(Rn(e))return e.selectRootElement(t,n===mt.ShadowDom);let r="string"==typeof t?e.querySelector(t):t;return r.textContent="",r}function Ih(e,t,n,r){const o=Bh(t);null===n?o.push(r):(o.push(n),e.firstCreatePass&&jh(e).push(r,o.length-1))}function Ah(e,t,n){for(let r in e)if(e.hasOwnProperty(r)){const o=e[r];(n=null===n?{}:n).hasOwnProperty(r)?n[r].push(t,o):n[r]=[t,o]}return n}function ji(e,t,n,r,o,a,h,g){const E=te(t,n);let z,L=t.inputs;!g&&null!=L&&(z=L[r])?($h(e,n,z,r,o),Mi(t)&&function sv(e,t){const n=Nt(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3&t.type&&(r=function ov(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),o=null!=h?h(o,t.value||"",r):o,Rn(a)?a.setProperty(E,r,o):Ea(r)||(E.setProperty?E.setProperty(r,o):E[r]=o))}function Cl(e,t,n,r){let o=!1;if(qn()){const a=function hv(e,t,n){const r=e.directiveRegistry;let o=null;if(r)for(let a=0;a<r.length;a++){const h=r[a];lh(n,h.selectors,!1)&&(o||(o=[]),As(Vo(n,t),e,h.type),Wn(h)?(Rh(e,n),o.unshift(h)):o.push(h))}return o}(e,t,n),h=null===r?null:{"":-1};if(null!==a){o=!0,Fh(n,e.data.length,a.length);for(let z=0;z<a.length;z++){const ve=a[z];ve.providersResolver&&ve.providersResolver(ve)}let g=!1,E=!1,L=po(e,t,a.length,null);for(let z=0;z<a.length;z++){const ve=a[z];n.mergedAttrs=ws(n.mergedAttrs,ve.hostAttrs),kh(e,n,t,L,ve),pv(L,ve,h),null!==ve.contentQueries&&(n.flags|=8),(null!==ve.hostBindings||null!==ve.hostAttrs||0!==ve.hostVars)&&(n.flags|=128);const We=ve.type.prototype;!g&&(We.ngOnChanges||We.ngOnInit||We.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index),g=!0),!E&&(We.ngOnChanges||We.ngDoCheck)&&((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index),E=!0),L++}!function rv(e,t){const r=t.directiveEnd,o=e.data,a=t.attrs,h=[];let g=null,E=null;for(let L=t.directiveStart;L<r;L++){const z=o[L],ve=z.inputs,We=null===a||ah(t)?null:_v(ve,a);h.push(We),g=Ah(ve,L,g),E=Ah(z.outputs,L,E)}null!==g&&(g.hasOwnProperty("class")&&(t.flags|=16),g.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=h,t.inputs=g,t.outputs=E}(e,n)}h&&function fv(e,t,n){if(t){const r=e.localNames=[];for(let o=0;o<t.length;o+=2){const a=n[t[o+1]];if(null==a)throw new V(-301,`Export of name '${t[o+1]}' not found!`);r.push(t[o],a)}}}(n,r,h)}return n.mergedAttrs=ws(n.mergedAttrs,n.attrs),o}function Oh(e,t,n,r,o,a){const h=a.hostBindings;if(h){let g=e.hostBindingOpCodes;null===g&&(g=e.hostBindingOpCodes=[]);const E=~t.index;(function cv(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(g)!=E&&g.push(E),g.push(r,o,h)}}function xh(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Rh(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function pv(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Wn(t)&&(n[""]=e)}}function Fh(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function kh(e,t,n,r,o){e.data[r]=o;const a=o.factory||(o.factory=fi(o.type)),h=new Bo(a,Wn(o),null);e.blueprint[r]=h,n[r]=h,Oh(e,t,0,r,po(e,n,o.hostVars,pn),o)}function mv(e,t,n){const r=te(t,e),o=Mh(n),a=e[10],h=Gs(e,ns(e,o,null,n.onPush?64:16,r,t,a,a.createRenderer(r,n),null,null));e[t.index]=h}function Er(e,t,n,r,o,a){const h=te(e,t);El(t[11],h,a,e.value,n,r,o)}function El(e,t,n,r,o,a,h){if(null==a)Rn(e)?e.removeAttribute(t,o,n):t.removeAttribute(o);else{const g=null==h?$(a):h(a,r||"",o);Rn(e)?e.setAttribute(t,o,g,n):n?t.setAttributeNS(n,o,g):t.setAttribute(o,g)}}function gv(e,t,n,r,o,a){const h=a[t];if(null!==h){const g=r.setInput;for(let E=0;E<h.length;){const L=h[E++],z=h[E++],ve=h[E++];null!==g?r.setInput(n,ve,L,z):n[z]=ve}}}function _v(e,t){let n=null,r=0;for(;r<t.length;){const o=t[r];if(0!==o)if(5!==o){if("number"==typeof o)break;e.hasOwnProperty(o)&&(null===n&&(n=[]),n.push(o,e[o],t[r+1])),r+=2}else r+=2;else r+=4}return n}function Nh(e,t,n,r){return new Array(e,!0,!1,t,null,0,r,n,null,null)}function bv(e,t){const n=Nt(t,e);if(Tn(n)){const r=n[1];80&n[2]?mo(r,n,r.template,n[8]):n[5]>0&&Dl(n)}}function Dl(e){for(let r=Xa(e);null!==r;r=Ja(r))for(let o=10;o<r.length;o++){const a=r[o];if(1024&a[2]){const h=a[1];mo(h,a,h.template,a[8])}else a[5]>0&&Dl(a)}const n=e[1].components;if(null!==n)for(let r=0;r<n.length;r++){const o=Nt(n[r],e);Tn(o)&&o[5]>0&&Dl(o)}}function Cv(e,t){const n=Nt(t,e),r=n[1];(function Ev(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])})(r,n),is(r,n,n[8])}function Gs(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function Tl(e){for(;e;){e[2]|=64;const t=es(e);if(Sr(e)&&!t)return e;e=t}return null}function Ml(e){for(let t=0;t<e.components.length;t++){const n=e.components[t],r=Ka(n),o=r[1];tv(o,r,o.template,n)}}function wl(e,t,n){const r=t[10];r.begin&&r.begin();try{mo(e,t,e.template,n)}catch(o){throw Hh(t,o),o}finally{r.end&&r.end()}}function Lh(e){Ml(e[8])}function Sl(e,t,n){Ct(0),t(e,n)}const wv=_l;function Bh(e){return e[7]||(e[7]=[])}function jh(e){return e.cleanup||(e.cleanup=[])}function Vh(e,t,n){return(null===e||Wn(e))&&(n=function x(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}function Hh(e,t){const n=e[9],r=n?n.get(qo,null):null;r&&r.handleError(t)}function $h(e,t,n,r,o){for(let a=0;a<n.length;){const h=n[a++],g=n[a++],E=t[h],L=e.data[h];null!==L.setInput?L.setInput(E,o,r,g):E[g]=o}}function kr(e,t,n){const r=R(t,e);Wd(e[11],r,n)}function Qs(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,a=0;if(null!==t)for(let h=0;h<t.length;h++){const g=t[h];"number"==typeof g?a=g:1==a?o=p(o,g):2==a&&(r=p(r,g+": "+t[++h]+";"))}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function Uh(e){const t=Sd(e);wl(t[1],t,e)}function Wh(e){!function Dv(e,t){if(0===e.flags&&e.clean==_l){let r;e.flags|=t,e.clean=new Promise(o=>r=o),e.scheduler(()=>{if(1&e.flags&&(e.flags&=-2,Ml(e)),2&e.flags){e.flags&=-3;const o=e.playerHandler;o&&o.flushPlayers()}e.clean=_l,r(null)})}}(Tl(Sd(e))[8],1)}const Zs=new Yn("INJECTOR",-1);class zh{get(t,n=Vr){if(n===Vr){const r=new Error(`NullInjectorError: No provider for ${D(t)}!`);throw r.name="NullInjectorError",r}return n}}const Il=new Yn("Set Injector scope."),rs={},Sv={};let Al;function Kh(){return void 0===Al&&(Al=new zh),Al}function Pl(e,t=null,n=null,r){const o=Gh(e,t,n,r);return o._resolveInjectorDefTypes(),o}function Gh(e,t=null,n=null,r){return new Iv(e,n,t||Kh(),r)}class Iv{constructor(t,n,r,o=null){this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const a=[];n&&yr(n,g=>this.processProvider(g,t,n)),yr([t],g=>this.processInjectorType(g,[],a)),this.records.set(Zs,go(void 0,this));const h=this.records.get(Il);this.scope=null!=h?h.value:null,this.source=o||("object"==typeof t?null:D(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=se(void 0);try{if(!(r&N.SkipSelf)){let g=this.records.get(t);if(void 0===g){const E=function Nv(e){return"function"==typeof e||"object"==typeof e&&e instanceof Yn}(t)&&Ee(t);g=E&&this.injectableDefInScope(E)?go(Ol(t),rs):null,this.records.set(t,g)}if(null!=g)return this.hydrate(t,g)}return(r&N.Self?Kh():this.parent).get(t,n=r&N.Optional&&n===Vr?null:n)}catch(h){if("NullInjectorError"===h.name){if((h[Fs]=h[Fs]||[]).unshift(D(t)),o)throw h;return function D_(e,t,n,r){const o=e[Fs];throw t[nd]&&o.unshift(t[nd]),e.message=function T_(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let o=D(t);if(Array.isArray(t))o=t.map(D).join(" -> ");else if("object"==typeof t){let a=[];for(let h in t)if(t.hasOwnProperty(h)){let g=t[h];a.push(h+":"+("string"==typeof g?JSON.stringify(g):D(g)))}o=`{${a.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(__,"\n ")}`}("\n"+e.message,o,n,r),e.ngTokenPath=o,e[Fs]=null,e}(h,t,"R3InjectorError",this.source)}throw h}finally{se(a),Ra(o)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((r,o)=>t.push(D(o))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,n,r){if(!(t=O(t)))return!1;let o=pt(t);const a=null==o&&t.ngModule||void 0,h=void 0===a?t:a,g=-1!==r.indexOf(h);if(void 0!==a&&(o=pt(a)),null==o)return!1;if(null!=o.imports&&!g){let z;r.push(h);try{yr(o.imports,ve=>{this.processInjectorType(ve,n,r)&&(void 0===z&&(z=[]),z.push(ve))})}finally{}if(void 0!==z)for(let ve=0;ve<z.length;ve++){const{ngModule:We,providers:rt}=z[ve];yr(rt,yt=>this.processProvider(yt,We,rt||Ot))}}this.injectorDefTypes.add(h);const E=fi(h)||(()=>new h);this.records.set(h,go(E,rs));const L=o.providers;if(null!=L&&!g){const z=t;yr(L,ve=>this.processProvider(ve,z,L))}return void 0!==a&&void 0!==t.providers}processProvider(t,n,r){let o=_o(t=O(t))?t:O(t&&t.provide);const a=function Pv(e,t,n){return Zh(e)?go(void 0,e.useValue):go(Qh(e),rs)}(t);if(_o(t)||!0!==t.multi)this.records.get(o);else{let h=this.records.get(o);h||(h=go(void 0,rs,!0),h.factory=()=>ka(h.multi),this.records.set(o,h)),o=t,h.multi.push(t)}this.records.set(o,a)}hydrate(t,n){return n.value===rs&&(n.value=Sv,n.value=n.factory()),"object"==typeof n.value&&n.value&&function kv(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this.onDestroy.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=O(t.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function Ol(e){const t=Ee(e),n=null!==t?t.factory:fi(e);if(null!==n)return n;if(e instanceof Yn)throw new Error(`Token ${D(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function Av(e){const t=e.length;if(t>0){const r=Wo(t,"?");throw new Error(`Can't resolve all parameters for ${D(e)}: (${r.join(", ")}).`)}const n=function ge(e){const t=e&&(e[Tt]||e[dt]);if(t){const n=function Je(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Error("unreachable")}function Qh(e,t,n){let r;if(_o(e)){const o=O(e);return fi(o)||Ol(o)}if(Zh(e))r=()=>O(e.useValue);else if(function xv(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...ka(e.deps||[]));else if(function Ov(e){return!(!e||!e.useExisting)}(e))r=()=>si(O(e.useExisting));else{const o=O(e&&(e.useClass||e.provide));if(!function Fv(e){return!!e.deps}(e))return fi(o)||Ol(o);r=()=>new o(...ka(e.deps))}return r}function go(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Zh(e){return null!==e&&"object"==typeof e&&v_ in e}function _o(e){return"function"==typeof e}let Vi=(()=>{class e{static create(n,r){var o;if(Array.isArray(n))return Pl({name:""},r,n,"");{const a=null!==(o=n.name)&&void 0!==o?o:"";return Pl({name:a},n.parent,n.providers,a)}}}return e.THROW_IF_NOT_FOUND=Vr,e.NULL=new zh,e.\u0275prov=et({token:e,providedIn:"any",factory:()=>si(Zs)}),e.__NG_ELEMENT_ID__=-1,e})();function xl(e){Fl(e);const t=yi(e);return null===t?null:(void 0===t.component&&(t.component=function iy(e,t){const n=t[1].data[e];return 2&n.flags?t[n.directiveStart]:null}(t.nodeIndex,t.lView)),t.component)}function Yh(e){Fl(e);const t=yi(e);return null===t?null:t.lView[8]}function Xh(e){const t=yi(e);if(null===t)return null;let r,n=t.lView;for(;2===n[1].type&&(r=es(n));)n=r;return 512&n[2]?null:n[8]}function Jh(e){return[...$d(e).components]}function qh(e){const t=yi(e);return null===t?Vi.NULL:new eo(t.lView[1].data[t.nodeIndex],t.lView)}function ef(e){if(e instanceof Text)return[];const t=yi(e);if(null===t)return[];const n=t.lView,r=n[1],o=t.nodeIndex;return(null==r?void 0:r.data[o])?(void 0===t.directives&&(t.directives=Od(o,n,!1)),null===t.directives?[]:[...t.directives]):[]}function Bv(e){const{constructor:t}=e;if(!t)throw new Error("Unable to find the instance constructor");const n=je(t);if(n)return{inputs:n.inputs,outputs:n.outputs,encapsulation:n.encapsulation,changeDetection:n.onPush?be.OnPush:be.Default};const r=ft(t);return r?{inputs:r.inputs,outputs:r.outputs}:null}function Rl(e){return yi(e).native}function tf(e){Fl(e);const t=yi(e);if(null===t)return[];const n=t.lView,o=n[7],a=n[1].cleanup,h=[];if(a&&o)for(let g=0;g<a.length;){const E=a[g++],L=a[g++];if("string"==typeof E){const z=E,ve=Ln(n[L]),We=o[a[g++]],rt=a[g++],yt="boolean"==typeof rt||rt>=0?"dom":"output",xt="boolean"==typeof rt&&rt;e==ve&&h.push({element:e,name:z,callback:We,useCapture:xt,type:yt})}}return h.sort(Vv),h}function Vv(e,t){return e.name==t.name?0:e.name<t.name?-1:1}function Hv(e){return void 0!==e.type&&void 0!==e.template&&void 0!==e.declaredInputs}function Fl(e){if("undefined"!=typeof Element&&!(e instanceof Element))throw new Error("Expecting instance of DOM Element")}function $v(e){Wh(e),Jh(e).forEach(t=>Uh(t))}let rf=!1;function Uv(){rf||(rf=!0,er("\u0275setProfiler",Zi),er("getDirectiveMetadata",Bv),er("getComponent",xl),er("getContext",Yh),er("getListeners",tf),er("getOwningComponent",Xh),er("getHostElement",Rl),er("getInjector",qh),er("getRootComponents",Jh),er("getDirectives",ef),er("applyChanges",$v))}function er(e,t){if("undefined"==typeof COMPILED||!COMPILED){const n=Kt;if(n){let r=n.ng;r||(r=n.ng={}),r[e]=t}}}function Wv(e,t={}){const n=t.rendererFactory||sr,r=t.sanitizer||null,o=je(e);o.type!=e&&(o.type=e);const a=o.selectors[0][0],g=Sh(n.createRenderer(null,null),t.host||a,o.encapsulation),E=o.onPush?576:528,L=lf(t.scheduler,t.playerHandler),z=n.createRenderer(g,o),ve=Ks(0,null,null,1,0,null,null,null,null,null),We=ns(null,ve,L,E,null,null,n,z,null,t.injector||null);let rt;Yt(We);try{n.begin&&n.begin(),rt=af(sf(g,o,We,n,z,r),o,We,L,t.hostFeatures||null),is(ve,We,null),mo(ve,We,null,null)}finally{Pt(),n.end&&n.end()}return rt}function sf(e,t,n,r,o,a){const h=n[1];n[20]=e;const E=fo(h,20,2,"#host",null),L=E.mergedAttrs=t.hostAttrs;null!==L&&(Qs(E,L,!0),null!==e&&(Ms(o,e,L),null!==E.classes&&sl(o,e,E.classes),null!==E.styles&&rh(o,e,E.styles)));const z=r.createRenderer(e,t),ve=ns(n,Mh(t),null,t.onPush?64:16,n[20],E,r,z,a||null,null);return h.firstCreatePass&&(As(Vo(E,n),h,t.type),Rh(h,E),Fh(E,n.length,1)),Gs(n,ve),n[20]=ve}function af(e,t,n,r,o){const a=n[1],h=function lv(e,t,n){const r=f();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),kh(e,r,t,po(e,t,1,null),n));const o=Ho(t,e,r.directiveStart,r);vi(o,t);const a=te(r,t);return a&&vi(a,t),o}(a,n,t);if(r.components.push(h),e[8]=h,o&&o.forEach(E=>E(h,t)),t.contentQueries){const E=f();t.contentQueries(1,h,E.directiveStart)}const g=f();return!a.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(jn(g.index),Oh(n[1],g,0,g.directiveStart,g.directiveEnd,t),xh(t,h)),h}function lf(e,t){return{components:[],scheduler:e||kd,clean:wv,playerHandler:t||null,flags:0}}function cf(e,t){Xi(Ka(e)[1],f())}function zv(e){return $d(e).clean}function uf(e){return Object.getPrototypeOf(e.prototype).constructor}function kl(e){let t=uf(e.type),n=!0;const r=[e];for(;t;){let o;if(Wn(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");o=t.\u0275dir}if(o){if(n){r.push(o);const h=e;h.inputs=Nl(e.inputs),h.declaredInputs=Nl(e.declaredInputs),h.outputs=Nl(e.outputs);const g=o.hostBindings;g&&Zv(e,g);const E=o.viewQuery,L=o.contentQueries;if(E&&Gv(e,E),L&&Qv(e,L),C(e.inputs,o.inputs),C(e.declaredInputs,o.declaredInputs),C(e.outputs,o.outputs),Wn(o)&&o.data.animation){const z=e.data;z.animation=(z.animation||[]).concat(o.data.animation)}}const a=o.features;if(a)for(let h=0;h<a.length;h++){const g=a[h];g&&g.ngInherit&&g(e),g===kl&&(n=!1)}}t=Object.getPrototypeOf(t)}!function Kv(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){const o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=ws(o.hostAttrs,n=ws(n,o.hostAttrs))}}(r)}function Nl(e){return e===Qt?{}:e===Ot?[]:e}function Gv(e,t){const n=e.viewQuery;e.viewQuery=n?(r,o)=>{t(r,o),n(r,o)}:t}function Qv(e,t){const n=e.contentQueries;e.contentQueries=n?(r,o,a)=>{t(r,o,a),n(r,o,a)}:t}function Zv(e,t){const n=e.hostBindings;e.hostBindings=n?(r,o)=>{t(r,o),n(r,o)}:t}const Yv=["providersResolver"],Xv=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function df(e){let n,t=uf(e.type);n=Wn(e)?t.\u0275cmp:t.\u0275dir;const r=e;for(const o of Yv)r[o]=n[o];if(Wn(n))for(const o of Xv)r[o]=n[o]}let Ys=null;function yo(){if(!Ys){const e=Kt.Symbol;if(e&&e.iterator)Ys=e.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let n=0;n<t.length;++n){const r=t[n];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(Ys=r)}}}return Ys}function hf(e,t){const n=os(e),r=os(t);return n&&r?function Jv(e,t,n){const r=e[yo()](),o=t[yo()]();for(;;){const a=r.next(),h=o.next();if(a.done&&h.done)return!0;if(a.done||h.done||!n(a.value,h.value))return!1}}(e,t,hf):!(n||!e||"object"!=typeof e&&"function"!=typeof e||r||!t||"object"!=typeof t&&"function"!=typeof t)||Object.is(e,t)}function os(e){return!!Ll(e)&&(Array.isArray(e)||!(e instanceof Map)&&yo()in e)}function Ll(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Dr(e,t,n){return e[t]=n}function ss(e,t){return e[t]}function bi(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Qr(e,t,n,r){const o=bi(e,t,n);return bi(e,t+1,r)||o}function Xs(e,t,n,r,o){const a=Qr(e,t,n,r);return bi(e,t+2,o)||a}function tr(e,t,n,r,o,a){const h=Qr(e,t,n,r);return Qr(e,t+2,o,a)||h}function Bl(e,t,n,r){const o=wt();return bi(o,nn(),t)&&(B(),Er(Pn(),o,e,t,n,r)),Bl}function vo(e,t){let n=!1,r=dn();for(let a=1;a<t.length;a+=2)n=bi(e,r++,t[a])||n;if(en(r),!n)return pn;let o=t[0];for(let a=1;a<t.length;a+=2)o+=$(t[a])+t[a+1];return o}function bo(e,t,n,r){return bi(e,nn(),n)?t+$(n)+r:pn}function Co(e,t,n,r,o,a){const g=Qr(e,dn(),n,o);return hn(2),g?t+$(n)+r+$(o)+a:pn}function Eo(e,t,n,r,o,a,h,g){const L=Xs(e,dn(),n,o,h);return hn(3),L?t+$(n)+r+$(o)+a+$(h)+g:pn}function Do(e,t,n,r,o,a,h,g,E,L){const ve=tr(e,dn(),n,o,h,E);return hn(4),ve?t+$(n)+r+$(o)+a+$(h)+g+$(E)+L:pn}function To(e,t,n,r,o,a,h,g,E,L,z,ve){const We=dn();let rt=tr(e,We,n,o,h,E);return rt=bi(e,We+4,z)||rt,hn(5),rt?t+$(n)+r+$(o)+a+$(h)+g+$(E)+L+$(z)+ve:pn}function Mo(e,t,n,r,o,a,h,g,E,L,z,ve,We,rt){const yt=dn();let xt=tr(e,yt,n,o,h,E);return xt=Qr(e,yt+4,z,We)||xt,hn(6),xt?t+$(n)+r+$(o)+a+$(h)+g+$(E)+L+$(z)+ve+$(We)+rt:pn}function wo(e,t,n,r,o,a,h,g,E,L,z,ve,We,rt,yt,xt){const Lt=dn();let Zt=tr(e,Lt,n,o,h,E);return Zt=Xs(e,Lt+4,z,We,yt)||Zt,hn(7),Zt?t+$(n)+r+$(o)+a+$(h)+g+$(E)+L+$(z)+ve+$(We)+rt+$(yt)+xt:pn}function So(e,t,n,r,o,a,h,g,E,L,z,ve,We,rt,yt,xt,Lt,Zt){const Mt=dn();let tn=tr(e,Mt,n,o,h,E);return tn=tr(e,Mt+4,z,We,yt,Lt)||tn,hn(8),tn?t+$(n)+r+$(o)+a+$(h)+g+$(E)+L+$(z)+ve+$(We)+rt+$(yt)+xt+$(Lt)+Zt:pn}function jl(e,t,n,r,o,a){const h=wt(),g=bo(h,t,n,r);return g!==pn&&Er(Pn(),h,e,g,o,a),jl}function Vl(e,t,n,r,o,a,h,g){const E=wt(),L=Co(E,t,n,r,o,a);return L!==pn&&Er(Pn(),E,e,L,h,g),Vl}function Hl(e,t,n,r,o,a,h,g,E,L){const z=wt(),ve=Eo(z,t,n,r,o,a,h,g);return ve!==pn&&Er(Pn(),z,e,ve,E,L),Hl}function $l(e,t,n,r,o,a,h,g,E,L,z,ve){const We=wt(),rt=Do(We,t,n,r,o,a,h,g,E,L);return rt!==pn&&Er(Pn(),We,e,rt,z,ve),$l}function Ul(e,t,n,r,o,a,h,g,E,L,z,ve,We,rt){const yt=wt(),xt=To(yt,t,n,r,o,a,h,g,E,L,z,ve);return xt!==pn&&Er(Pn(),yt,e,xt,We,rt),Ul}function Wl(e,t,n,r,o,a,h,g,E,L,z,ve,We,rt,yt,xt){const Lt=wt(),Zt=Mo(Lt,t,n,r,o,a,h,g,E,L,z,ve,We,rt);return Zt!==pn&&Er(Pn(),Lt,e,Zt,yt,xt),Wl}function zl(e,t,n,r,o,a,h,g,E,L,z,ve,We,rt,yt,xt,Lt,Zt){const Mt=wt(),tn=wo(Mt,t,n,r,o,a,h,g,E,L,z,ve,We,rt,yt,xt);return tn!==pn&&Er(Pn(),Mt,e,tn,Lt,Zt),zl}function Kl(e,t,n,r,o,a,h,g,E,L,z,ve,We,rt,yt,xt,Lt,Zt,Mt,tn){const Cn=wt(),Fn=So(Cn,t,n,r,o,a,h,g,E,L,z,ve,We,rt,yt,xt,Lt,Zt);return Fn!==pn&&Er(Pn(),Cn,e,Fn,Mt,tn),Kl}function Gl(e,t,n,r){const o=wt(),a=vo(o,t);return a!==pn&&Er(Pn(),o,e,a,n,r),Gl}function ff(e,t,n,r,o,a,h,g){const E=wt(),L=B(),z=e+20,ve=L.firstCreatePass?function eb(e,t,n,r,o,a,h,g,E){const L=t.consts,z=fo(t,e,4,h||null,un(L,g));Cl(t,n,z,un(L,E)),Xi(t,z);const ve=z.tViews=Ks(2,z,r,o,a,t.directiveRegistry,t.pipeRegistry,null,t.schemas,L);return null!==t.queries&&(t.queries.template(t,z),ve.queries=t.queries.embeddedTView(z)),z}(z,L,E,t,n,r,o,a,h):L.data[z];ae(ve,!1);const We=E[11].createComment("");Hs(L,E,We,ve),vi(We,E),Gs(E,E[z]=Nh(We,E,We,ve)),hi(ve)&&vl(L,E,ve),null!=h&&bl(E,ve,g)}function pf(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function mf(e){return Dt(function gt(){return b.lFrame.contextLView}(),20+e)}const gf={\u0275\u0275defineInjectable:et,\u0275\u0275defineInjector:he,\u0275\u0275inject:si,\u0275\u0275invalidFactoryDep:Fa,resolveForwardRef:O};const nb=v({provide:String,useValue:v});function _f(e){return void 0!==e.useClass}function yf(e){return void 0!==e.useFactory}const sb=ro("Injectable",void 0,void 0,void 0,(e,t)=>function tb(e,t){let n=null,r=null;e.hasOwnProperty(Tt)||Object.defineProperty(e,Tt,{get:()=>(null===n&&(n=ri().compileInjectable(gf,`ng:///${e.name}/\u0275prov.js`,function ob(e,t){const n=t||{providedIn:null},r={name:e.name,type:e,typeArgumentCount:0,providedIn:n.providedIn};return(_f(n)||yf(n))&&void 0!==n.deps&&(r.deps=od(n.deps)),_f(n)?r.useClass=n.useClass:function ib(e){return nb in e}(n)?r.useValue=n.useValue:yf(n)?r.useFactory=n.useFactory:function rb(e){return void 0!==e.useExisting}(n)&&(r.useExisting=n.useExisting),r}(e,t))),n)}),e.hasOwnProperty(Ie)||Object.defineProperty(e,Ie,{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=>D(r.token)).join(" -> ")+")":""}function Zl(e,t,n,r){const o=[t],a=n(o),h=r?function sy(e,t){const n=`${e} caused by: ${t instanceof Error?t.message:t}`,r=Error(n);return r[Ga]=t,r}(a,r):Error(a);return h.addKey=lb,h.keys=o,h.injectors=[e],h.constructResolvingMessage=n,h[Ga]=r,h}function lb(e,t){this.injectors.push(e),this.keys.push(t),this.message=this.constructResolvingMessage(this.keys)}function vf(e,t){const n=[];for(let r=0,o=t.length;r<o;r++){const a=t[r];n.push(a&&0!=a.length?a.map(D).join(" "):"?")}return Error("Cannot resolve all parameters for '"+D(e)+"'("+n.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+D(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=D(this.token)}static get(t){return bf.get(O(t))}static get numberOfKeys(){return bf.numberOfKeys}}class mb{constructor(){this._allKeys=new Map}get(t){if(t instanceof Nr)return t;if(this._allKeys.has(t))return this._allKeys.get(t);const n=new Nr(t,Nr.numberOfKeys);return this._allKeys.set(t,n),n}get numberOfKeys(){return this._allKeys.size}}const bf=new mb;class gb{constructor(t){this.reflectionCapabilities=t}updateCapabilities(t){this.reflectionCapabilities=t}factory(t){return this.reflectionCapabilities.factory(t)}parameters(t){return this.reflectionCapabilities.parameters(t)}annotations(t){return this.reflectionCapabilities.annotations(t)}propMetadata(t){return this.reflectionCapabilities.propMetadata(t)}hasLifecycleHook(t,n){return this.reflectionCapabilities.hasLifecycleHook(t,n)}getter(t){return this.reflectionCapabilities.getter(t)}setter(t){return this.reflectionCapabilities.setter(t)}method(t){return this.reflectionCapabilities.method(t)}importUri(t){return this.reflectionCapabilities.importUri(t)}resourceUri(t){return this.reflectionCapabilities.resourceUri(t)}resolveIdentifier(t,n,r,o){return this.reflectionCapabilities.resolveIdentifier(t,n,r,o)}resolveEnum(t,n){return this.reflectionCapabilities.resolveEnum(t,n)}}const Cf=new gb(new Pa);class Js{constructor(t,n,r){this.key=t,this.optional=n,this.visibility=r}static fromKey(t){return new Js(t,!1,null)}}const _b=[];class Ef{constructor(t,n,r){this.key=t,this.resolvedFactories=n,this.multiProvider=r,this.resolvedFactory=this.resolvedFactories[0]}}class Df{constructor(t,n){this.factory=t,this.dependencies=n}}function yb(e){let t,n;if(e.useClass){const r=O(e.useClass);t=Cf.factory(r),n=Mf(r)}else e.useExisting?(t=r=>r,n=[Js.fromKey(Nr.get(e.useExisting))]):e.useFactory?(t=e.useFactory,n=function Eb(e,t){if(t){const n=t.map(r=>[r]);return t.map(r=>wf(e,r,n))}return Mf(e)}(e.useFactory,e.deps)):(t=()=>e.useValue,n=_b);return new Df(t,n)}function vb(e){return new Ef(Nr.get(e.provide),[yb(e)],e.multi||!1)}function bb(e){const r=function Cb(e,t){for(let n=0;n<e.length;n++){const r=e[n],o=t.get(r.key.id);if(o){if(r.multiProvider!==o.multiProvider)throw pb(o,r);if(r.multiProvider)for(let a=0;a<r.resolvedFactories.length;a++)o.resolvedFactories.push(r.resolvedFactories[a]);else t.set(r.key.id,r)}else{let a;a=r.multiProvider?new Ef(r.key,r.resolvedFactories.slice(),r.multiProvider):r,t.set(r.key.id,a)}}return t}(Tf(e,[]).map(vb),new Map);return Array.from(r.values())}function Tf(e,t){return e.forEach(n=>{if(n instanceof Os)t.push({provide:n,useClass:n});else if(n&&"object"==typeof n&&void 0!==n.provide)t.push(n);else{if(!Array.isArray(n))throw function hb(e){return Error(`Invalid provider - only instances of Provider and Type are allowed, got: ${e}`)}(n);Tf(n,t)}}),t}function Mf(e){const t=Cf.parameters(e);if(!t)return[];if(t.some(n=>null==n))throw vf(e,t);return t.map(n=>wf(e,n,t))}function wf(e,t,n){let r=null,o=!1;if(!Array.isArray(t))return Yl(t instanceof Go?t.token:t,o,null);let a=null;for(let h=0;h<t.length;++h){const g=t[h];g instanceof Os?r=g:g instanceof Go?r=g.token:g instanceof Wr?o=!0:g instanceof ks||g instanceof zr?a=g:g instanceof Yn&&(r=g)}if(r=O(r),null!=r)return Yl(r,o,a);throw vf(e,n)}function Yl(e,t,n){return new Js(Nr.get(e),t,n)}const as={};class Io{static resolve(t){return bb(t)}static resolveAndCreate(t,n){const r=Io.resolve(t);return Io.fromResolvedProviders(r,n)}static fromResolvedProviders(t,n){return new Db(t,n)}}let Db=(()=>{class e{constructor(n,r){this._constructionCounter=0,this._providers=n,this.parent=r||null;const o=n.length;this.keyIds=[],this.objs=[];for(let a=0;a<o;a++)this.keyIds[a]=n[a].key.id,this.objs[a]=as}get(n,r=Vr){return this._getByKey(Nr.get(n),null,r)}resolveAndCreateChild(n){const r=Io.resolve(n);return this.createChildFromResolved(r)}createChildFromResolved(n){const r=new e(n);return r.parent=this,r}resolveAndInstantiate(n){return this.instantiateResolved(Io.resolve([n])[0])}instantiateResolved(n){return this._instantiateProvider(n)}getProviderAtIndex(n){if(n<0||n>=this._providers.length)throw function fb(e){return Error(`Index ${e} is out-of-bounds.`)}(n);return this._providers[n]}_new(n){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw function ub(e,t){return Zl(e,t,function(n){return`Cannot instantiate cyclic dependency!${Ql(n)}`})}(this,n.key);return this._instantiateProvider(n)}_getMaxNumberOfObjects(){return this.objs.length}_instantiateProvider(n){if(n.multiProvider){const r=[];for(let o=0;o<n.resolvedFactories.length;++o)r[o]=this._instantiate(n,n.resolvedFactories[o]);return r}return this._instantiate(n,n.resolvedFactories[0])}_instantiate(n,r){const o=r.factory;let a,h;try{a=r.dependencies.map(g=>this._getByReflectiveDependency(g))}catch(g){throw g.addKey&&g.addKey(this,n.key),g}try{h=o(...a)}catch(g){throw function db(e,t,n,r){return Zl(e,r,function(o){const a=D(o[0].token);return`${t.message}: Error during instantiation of ${a}!${Ql(o)}.`},t)}(this,g,0,n.key)}return h}_getByReflectiveDependency(n){return this._getByKey(n.key,n.visibility,n.optional?null:Vr)}_getByKey(n,r,o){return n===e.INJECTOR_KEY?this:r instanceof ks?this._getByKeySelf(n,o):this._getByKeyDefault(n,o,r)}_getObjByKeyId(n){for(let r=0;r<this.keyIds.length;r++)if(this.keyIds[r]===n)return this.objs[r]===as&&(this.objs[r]=this._new(this._providers[r])),this.objs[r];return as}_throwOrNull(n,r){if(r!==Vr)return r;throw function cb(e,t){return Zl(e,t,function(n){return`No provider for ${D(n[0].token)}!${Ql(n)}`})}(this,n)}_getByKeySelf(n,r){const o=this._getObjByKeyId(n.id);return o!==as?o:this._throwOrNull(n,r)}_getByKeyDefault(n,r,o){let a;for(a=o instanceof zr?this.parent:this;a instanceof e;){const h=a,g=h._getObjByKeyId(n.id);if(g!==as)return g;a=h.parent}return null!==a?a.get(n.token,r):this._throwOrNull(n,r)}get displayName(){return`ReflectiveInjector(providers: [${function Tb(e,t){const n=[];for(let r=0;r<e._providers.length;++r)n[r]=t(e.getProviderAtIndex(r));return n}(this,r=>' "'+r.key.displayName+'" ').join(", ")}])`}toString(){return this.displayName}}return e.INJECTOR_KEY=Nr.get(Vi),e})();function ls(e,t=N.Default){const n=wt();return null===n?si(e,t):zu(f(),n,O(e),t)}function Sf(){throw new Error("invalid")}function Xl(e,t,n){const r=wt();return bi(r,nn(),t)&&ji(B(),Pn(),r,e,t,r[11],n,!1),Xl}function Jl(e,t,n,r,o){const h=o?"class":"style";$h(e,n,t.inputs[h],h,r)}function ql(e,t,n,r){const o=wt(),a=B(),h=20+e,g=o[11],E=o[h]=el(g,t,function ba(){return b.lFrame.currentNamespace}()),L=a.firstCreatePass?function Mb(e,t,n,r,o,a,h){const g=t.consts,L=fo(t,e,2,o,un(g,a));return Cl(t,n,L,un(g,h)),null!==L.attrs&&Qs(L,L.attrs,!1),null!==L.mergedAttrs&&Qs(L,L.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,L),L}(h,a,o,0,t,n,r):a.data[h];ae(L,!0);const z=L.mergedAttrs;null!==z&&Ms(g,E,z);const ve=L.classes;null!==ve&&sl(g,E,ve);const We=L.styles;null!==We&&rh(g,E,We),64!=(64&L.flags)&&Hs(a,o,E,L),0===function ut(){return b.lFrame.elementDepthCount}()&&vi(E,o),function $t(){b.lFrame.elementDepthCount++}(),hi(L)&&(vl(a,o,L),Th(a,L,o)),null!==r&&bl(o,L)}function ec(){let e=f();Fe()?Ve():(e=e.parent,ae(e,!1));const t=e;!function An(){b.lFrame.elementDepthCount--}();const n=B();n.firstCreatePass&&(Xi(n,e),Ci(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function Qg(e){return 0!=(16&e.flags)}(t)&&Jl(n,t,wt(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function Zg(e){return 0!=(32&e.flags)}(t)&&Jl(n,t,wt(),t.stylesWithoutHost,!1)}function If(e,t,n,r){ql(e,t,n,r),ec()}function tc(e,t,n){const r=wt(),o=B(),a=e+20,h=o.firstCreatePass?function wb(e,t,n,r,o){const a=t.consts,h=un(a,r),g=fo(t,e,8,"ng-container",h);return null!==h&&Qs(g,h,!0),Cl(t,n,g,un(a,o)),null!==t.queries&&t.queries.elementStart(t,g),g}(a,o,r,t,n):o.data[a];ae(h,!0);const g=r[a]=r[11].createComment("");Hs(o,r,g,h),vi(g,r),hi(h)&&(vl(o,r,h),Th(o,h,r)),null!=n&&bl(r,h)}function nc(){let e=f();const t=B();Fe()?Ve():(e=e.parent,ae(e,!1)),t.firstCreatePass&&(Xi(t,e),Ci(e)&&t.queries.elementEnd(e))}function Af(e,t,n){tc(e,t,n),nc()}function Pf(){return wt()}function ic(e){return!!e&&"function"==typeof e.then}function Of(e){return!!e&&"function"==typeof e.subscribe}const xf=Of;function rc(e,t,n,r){const o=wt(),a=B(),h=f();return Rf(a,o,o[11],h,e,t,!!n,r),rc}function oc(e,t){const n=f(),r=wt(),o=B();return Rf(o,r,Vh(Ne(o.data),n,r),n,e,t,!1),oc}function Rf(e,t,n,r,o,a,h,g){const E=hi(r),z=e.firstCreatePass&&jh(e),ve=t[8],We=Bh(t);let rt=!0;if(3&r.type||g){const Lt=te(r,t),Zt=g?g(Lt):Lt,Mt=We.length,tn=g?Cn=>g(Ln(Cn[r.index])):r.index;if(Rn(n)){let Cn=null;if(!g&&E&&(Cn=function Sb(e,t,n,r){const o=e.cleanup;if(null!=o)for(let a=0;a<o.length-1;a+=2){const h=o[a];if(h===n&&o[a+1]===r){const g=t[7],E=o[a+2];return g.length>E?g[E]:null}"string"==typeof h&&(a+=2)}return null}(e,t,o,r.index)),null!==Cn)(Cn.__ngLastListenerFn__||Cn).__ngNextListenerFn__=a,Cn.__ngLastListenerFn__=a,rt=!1;else{a=sc(r,t,ve,a,!1);const Fn=n.listen(Zt,o,a);We.push(a,Fn),z&&z.push(o,tn,Mt,Mt+1)}}else a=sc(r,t,ve,a,!0),Zt.addEventListener(o,a,h),We.push(a),z&&z.push(o,tn,Mt,h)}else a=sc(r,t,ve,a,!1);const yt=r.outputs;let xt;if(rt&&null!==yt&&(xt=yt[o])){const Lt=xt.length;if(Lt)for(let Zt=0;Zt<Lt;Zt+=2){const $i=t[xt[Zt]][xt[Zt+1]].subscribe(a),Xr=We.length;We.push(a,$i),z&&z.push(o,r.index,Xr,-(Xr+1))}}}function Ff(e,t,n,r){try{return ti(6,t,n),!1!==n(r)}catch(o){return Hh(e,o),!1}finally{ti(7,t,n)}}function sc(e,t,n,r,o){return function a(h){if(h===Function)return r;const g=2&e.flags?Nt(e.index,t):t;0==(32&t[2])&&Tl(g);let E=Ff(t,n,r,h),L=a.__ngNextListenerFn__;for(;L;)E=Ff(t,n,L,h)&&E,L=L.__ngNextListenerFn__;return o&&!1===E&&(h.preventDefault(),h.returnValue=!1),E}}function kf(e=1){return function kt(e){return(b.lFrame.contextLView=function Jt(e,t){for(;e>0;)t=t[15],e--;return t}(e,b.lFrame.contextLView))[8]}(e)}function Ib(e,t){let n=null;const r=function ky(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e);for(let o=0;o<t.length;o++){const a=t[o];if("*"!==a){if(null===r?lh(e,a,!0):By(r,a))return o}else n=o}return n}function Nf(e){const t=wt()[16][6];if(!t.projection){const r=t.projection=Wo(e?e.length:1,null),o=r.slice();let a=t.child;for(;null!==a;){const h=e?Ib(a,e):0;null!==h&&(o[h]?o[h].projectionNext=a:r[h]=a,o[h]=a),a=a.next}}}function Lf(e,t=0,n){const r=wt(),o=B(),a=fo(o,20+e,16,null,n||null);null===a.projection&&(a.projection=t),Ve(),64!=(64&a.flags)&&function Iy(e,t,n){ih(t[11],0,t,n,Gd(e,n,t),Xd(n.parent||t[6],n,t))}(o,r,a)}function ac(e,t,n){return qs(e,"",t,"",n),ac}function qs(e,t,n,r,o){const a=wt(),h=bo(a,t,n,r);return h!==pn&&ji(B(),Pn(),a,e,h,a[11],o,!1),qs}function lc(e,t,n,r,o,a,h){const g=wt(),E=Co(g,t,n,r,o,a);return E!==pn&&ji(B(),Pn(),g,e,E,g[11],h,!1),lc}function cc(e,t,n,r,o,a,h,g,E){const L=wt(),z=Eo(L,t,n,r,o,a,h,g);return z!==pn&&ji(B(),Pn(),L,e,z,L[11],E,!1),cc}function uc(e,t,n,r,o,a,h,g,E,L,z){const ve=wt(),We=Do(ve,t,n,r,o,a,h,g,E,L);return We!==pn&&ji(B(),Pn(),ve,e,We,ve[11],z,!1),uc}function dc(e,t,n,r,o,a,h,g,E,L,z,ve,We){const rt=wt(),yt=To(rt,t,n,r,o,a,h,g,E,L,z,ve);return yt!==pn&&ji(B(),Pn(),rt,e,yt,rt[11],We,!1),dc}function hc(e,t,n,r,o,a,h,g,E,L,z,ve,We,rt,yt){const xt=wt(),Lt=Mo(xt,t,n,r,o,a,h,g,E,L,z,ve,We,rt);return Lt!==pn&&ji(B(),Pn(),xt,e,Lt,xt[11],yt,!1),hc}function fc(e,t,n,r,o,a,h,g,E,L,z,ve,We,rt,yt,xt,Lt){const Zt=wt(),Mt=wo(Zt,t,n,r,o,a,h,g,E,L,z,ve,We,rt,yt,xt);return Mt!==pn&&ji(B(),Pn(),Zt,e,Mt,Zt[11],Lt,!1),fc}function pc(e,t,n,r,o,a,h,g,E,L,z,ve,We,rt,yt,xt,Lt,Zt,Mt){const tn=wt(),Cn=So(tn,t,n,r,o,a,h,g,E,L,z,ve,We,rt,yt,xt,Lt,Zt);return Cn!==pn&&ji(B(),Pn(),tn,e,Cn,tn[11],Mt,!1),pc}function mc(e,t,n){const r=wt(),o=vo(r,t);return o!==pn&&ji(B(),Pn(),r,e,o,r[11],n,!1),mc}function Bf(e,t,n,r,o){const a=e[n+1],h=null===t;let g=r?ur(a):Fr(a),E=!1;for(;0!==g&&(!1===E||h);){const z=e[g+1];Ob(e[g],t)&&(E=!0,e[g+1]=r?cl(z):al(z)),g=r?ur(z):Fr(z)}E&&(e[n+1]=r?al(a):cl(a))}function Ob(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&so(e,t)>=0}const oi={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function jf(e){return e.substring(oi.key,oi.keyEnd)}function xb(e){return e.substring(oi.value,oi.valueEnd)}function Vf(e,t){const n=oi.textEnd;return n===t?-1:(t=oi.keyEnd=function kb(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,oi.key=t,n),Ao(e,t,n))}function Hf(e,t){const n=oi.textEnd;let r=oi.key=Ao(e,t,n);return n===r?-1:(r=oi.keyEnd=function Nb(e,t,n){let r;for(;t<n&&(45===(r=e.charCodeAt(t))||95===r||(-33&r)>=65&&(-33&r)<=90||r>=48&&r<=57);)t++;return t}(e,r,n),r=Uf(e,r,n),r=oi.value=Ao(e,r,n),r=oi.valueEnd=function Lb(e,t,n){let r=-1,o=-1,a=-1,h=t,g=h;for(;h<n;){const E=e.charCodeAt(h++);if(59===E)return g;34===E||39===E?g=h=Wf(e,E,h,n):t===h-4&&85===a&&82===o&&76===r&&40===E?g=h=Wf(e,41,h,n):E>32&&(g=h),a=o,o=r,r=-33&E}return g}(e,r,n),Uf(e,r,n))}function $f(e){oi.key=0,oi.keyEnd=0,oi.value=0,oi.valueEnd=0,oi.textEnd=e.length}function Ao(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function Uf(e,t,n,r){return(t=Ao(e,t,n))<n&&t++,t}function Wf(e,t,n,r){let o=-1,a=n;for(;a<r;){const h=e.charCodeAt(a++);if(h==t&&92!==o)return a;o=92==h&&92===o?0:h}throw new Error}function gc(e,t,n){return hr(e,t,n,!1),gc}function _c(e,t){return hr(e,t,null,!0),_c}function dr(e){fr(Qf,Bb,e,!1)}function Bb(e,t){for(let n=function Fb(e){return $f(e),Hf(e,Ao(e,0,oi.textEnd))}(t);n>=0;n=Hf(t,n))Qf(e,jf(t),xb(t))}function zf(e){fr(Bi,Tr,e,!0)}function Tr(e,t){for(let n=function Rb(e){return $f(e),Vf(e,Ao(e,0,oi.textEnd))}(t);n>=0;n=Vf(t,n))Bi(e,jf(t),!0)}function hr(e,t,n,r){const o=wt(),a=B(),h=hn(2);a.firstUpdatePass&&Gf(a,e,h,r),t!==pn&&bi(o,h,t)&&Zf(a,a.data[sn()],o,o[11],e,o[h+1]=function zb(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=D(Rr(e)))),e}(t,n),r,h)}function fr(e,t,n,r){const o=B(),a=hn(2);o.firstUpdatePass&&Gf(o,null,a,r);const h=wt();if(n!==pn&&bi(h,a,n)){const g=o.data[sn()];if(Xf(g,r)&&!Kf(o,a)){let E=r?g.classesWithoutHost:g.stylesWithoutHost;null!==E&&(n=p(E,n||"")),Jl(o,g,h,n,r)}else!function Wb(e,t,n,r,o,a,h,g){o===pn&&(o=Ot);let E=0,L=0,z=0<o.length?o[0]:null,ve=0<a.length?a[0]:null;for(;null!==z||null!==ve;){const We=E<o.length?o[E+1]:void 0,rt=L<a.length?a[L+1]:void 0;let xt,yt=null;z===ve?(E+=2,L+=2,We!==rt&&(yt=ve,xt=rt)):null===ve||null!==z&&z<ve?(E+=2,yt=z):(L+=2,yt=ve,xt=rt),null!==yt&&Zf(e,t,n,r,yt,xt,h,g),z=E<o.length?o[E]:null,ve=L<a.length?a[L]:null}}(o,g,h,h[11],h[a+1],h[a+1]=function Ub(e,t,n){if(null==n||""===n)return Ot;const r=[],o=Rr(n);if(Array.isArray(o))for(let a=0;a<o.length;a++)e(r,o[a],!0);else if("object"==typeof o)for(const a in o)o.hasOwnProperty(a)&&e(r,a,o[a]);else"string"==typeof o&&t(r,o);return r}(e,t,n),r,a)}}function Kf(e,t){return t>=e.expandoStartIndex}function Gf(e,t,n,r){const o=e.data;if(null===o[n+1]){const a=o[sn()],h=Kf(e,n);Xf(a,r)&&null===t&&!h&&(t=!1),t=function jb(e,t,n,r){const o=Ne(e);let a=r?t.residualClasses:t.residualStyles;if(null===o)0===(r?t.classBindings:t.styleBindings)&&(n=cs(n=yc(null,e,t,n,r),t.attrs,r),a=null);else{const h=t.directiveStylingLast;if(-1===h||e[h]!==o)if(n=yc(o,e,t,n,r),null===a){let E=function Vb(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==Fr(r))return e[ur(r)]}(e,t,r);void 0!==E&&Array.isArray(E)&&(E=yc(null,e,t,E[1],r),E=cs(E,t.attrs,r),function Hb(e,t,n,r){e[ur(n?t.classBindings:t.styleBindings)]=r}(e,t,r,E))}else a=function $b(e,t,n){let r;const o=t.directiveEnd;for(let a=1+t.directiveStylingLast;a<o;a++)r=cs(r,e[a].hostAttrs,n);return cs(r,t.attrs,n)}(e,t,r)}return void 0!==a&&(r?t.residualClasses=a:t.residualStyles=a),n}(o,a,t,r),function Ab(e,t,n,r,o,a){let h=a?t.classBindings:t.styleBindings,g=ur(h),E=Fr(h);e[r]=n;let z,L=!1;if(Array.isArray(n)){const ve=n;z=ve[1],(null===z||so(ve,z)>0)&&(L=!0)}else z=n;if(o)if(0!==E){const We=ur(e[g+1]);e[r+1]=Us(We,g),0!==We&&(e[We+1]=ll(e[We+1],r)),e[g+1]=function $y(e,t){return 131071&e|t<<17}(e[g+1],r)}else e[r+1]=Us(g,0),0!==g&&(e[g+1]=ll(e[g+1],r)),g=r;else e[r+1]=Us(E,0),0===g?g=r:e[E+1]=ll(e[E+1],r),E=r;L&&(e[r+1]=al(e[r+1])),Bf(e,z,r,!0),Bf(e,z,r,!1),function Pb(e,t,n,r,o){const a=o?e.residualClasses:e.residualStyles;null!=a&&"string"==typeof t&&so(a,t)>=0&&(n[r+1]=cl(n[r+1]))}(t,z,e,r,a),h=Us(g,E),a?t.classBindings=h:t.styleBindings=h}(o,a,t,n,h,r)}}function yc(e,t,n,r,o){let a=null;const h=n.directiveEnd;let g=n.directiveStylingLast;for(-1===g?g=n.directiveStart:g++;g<h&&(a=t[g],r=cs(r,a.hostAttrs,o),a!==e);)g++;return null!==e&&(n.directiveStylingLast=g),r}function cs(e,t,n){const r=n?1:2;let o=-1;if(null!==t)for(let a=0;a<t.length;a++){const h=t[a];"number"==typeof h?o=h:o===r&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),Bi(e,h,!!n||t[++a]))}return void 0===e?null:e}function Qf(e,t,n){Bi(e,t,Rr(n))}function Zf(e,t,n,r,o,a,h,g){if(!(3&t.type))return;const E=e.data,L=E[g+1];ea(function ph(e){return 1==(1&e)}(L)?Yf(E,t,n,o,Fr(L),h):void 0)||(ea(a)||function fh(e){return 2==(2&e)}(L)&&(a=Yf(E,null,n,o,g,h)),function Py(e,t,n,r,o){const a=Rn(e);if(t)o?a?e.addClass(n,r):n.classList.add(r):a?e.removeClass(n,r):n.classList.remove(r);else{let h=-1===r.indexOf("-")?void 0:Cr.DashCase;if(null==o)a?e.removeStyle(n,r,h):n.style.removeProperty(r);else{const g="string"==typeof o&&o.endsWith("!important");g&&(o=o.slice(0,-10),h|=Cr.Important),a?e.setStyle(n,r,o,h):n.style.setProperty(r,o,g?"important":"")}}}(r,h,R(sn(),n),o,a))}function Yf(e,t,n,r,o,a){const h=null===t;let g;for(;o>0;){const E=e[o],L=Array.isArray(E),z=L?E[1]:E,ve=null===z;let We=n[o+1];We===pn&&(We=ve?Ot:void 0);let rt=ve?Aa(We,r):z===r?We:void 0;if(L&&!ea(rt)&&(rt=Aa(E,r)),ea(rt)&&(g=rt,h))return g;const yt=e[o+1];o=h?ur(yt):Fr(yt)}if(null!==t){let E=a?t.residualClasses:t.residualStyles;null!=E&&(g=Aa(E,r))}return g}function ea(e){return void 0!==e}function Xf(e,t){return 0!=(e.flags&(t?16:32))}function Jf(e,t=""){const n=wt(),r=B(),o=e+20,a=r.firstCreatePass?fo(r,o,1,t,null):r.data[o],h=n[o]=qa(n[11],t);Hs(r,n,h,a),ae(a,!1)}function vc(e){return ta("",e,""),vc}function ta(e,t,n){const r=wt(),o=bo(r,e,t,n);return o!==pn&&kr(r,sn(),o),ta}function bc(e,t,n,r,o){const a=wt(),h=Co(a,e,t,n,r,o);return h!==pn&&kr(a,sn(),h),bc}function Cc(e,t,n,r,o,a,h){const g=wt(),E=Eo(g,e,t,n,r,o,a,h);return E!==pn&&kr(g,sn(),E),Cc}function Ec(e,t,n,r,o,a,h,g,E){const L=wt(),z=Do(L,e,t,n,r,o,a,h,g,E);return z!==pn&&kr(L,sn(),z),Ec}function Dc(e,t,n,r,o,a,h,g,E,L,z){const ve=wt(),We=To(ve,e,t,n,r,o,a,h,g,E,L,z);return We!==pn&&kr(ve,sn(),We),Dc}function Tc(e,t,n,r,o,a,h,g,E,L,z,ve,We){const rt=wt(),yt=Mo(rt,e,t,n,r,o,a,h,g,E,L,z,ve,We);return yt!==pn&&kr(rt,sn(),yt),Tc}function Mc(e,t,n,r,o,a,h,g,E,L,z,ve,We,rt,yt){const xt=wt(),Lt=wo(xt,e,t,n,r,o,a,h,g,E,L,z,ve,We,rt,yt);return Lt!==pn&&kr(xt,sn(),Lt),Mc}function wc(e,t,n,r,o,a,h,g,E,L,z,ve,We,rt,yt,xt,Lt){const Zt=wt(),Mt=So(Zt,e,t,n,r,o,a,h,g,E,L,z,ve,We,rt,yt,xt,Lt);return Mt!==pn&&kr(Zt,sn(),Mt),wc}function Sc(e){const t=wt(),n=vo(t,e);return n!==pn&&kr(t,sn(),n),Sc}function qf(e,t,n){fr(Bi,Tr,bo(wt(),e,t,n),!0)}function ep(e,t,n,r,o){fr(Bi,Tr,Co(wt(),e,t,n,r,o),!0)}function tp(e,t,n,r,o,a,h){fr(Bi,Tr,Eo(wt(),e,t,n,r,o,a,h),!0)}function np(e,t,n,r,o,a,h,g,E){fr(Bi,Tr,Do(wt(),e,t,n,r,o,a,h,g,E),!0)}function ip(e,t,n,r,o,a,h,g,E,L,z){fr(Bi,Tr,To(wt(),e,t,n,r,o,a,h,g,E,L,z),!0)}function rp(e,t,n,r,o,a,h,g,E,L,z,ve,We){fr(Bi,Tr,Mo(wt(),e,t,n,r,o,a,h,g,E,L,z,ve,We),!0)}function op(e,t,n,r,o,a,h,g,E,L,z,ve,We,rt,yt){fr(Bi,Tr,wo(wt(),e,t,n,r,o,a,h,g,E,L,z,ve,We,rt,yt),!0)}function sp(e,t,n,r,o,a,h,g,E,L,z,ve,We,rt,yt,xt,Lt){fr(Bi,Tr,So(wt(),e,t,n,r,o,a,h,g,E,L,z,ve,We,rt,yt,xt,Lt),!0)}function ap(e){fr(Bi,Tr,vo(wt(),e),!0)}function lp(e,t,n){dr(bo(wt(),e,t,n))}function cp(e,t,n,r,o){dr(Co(wt(),e,t,n,r,o))}function up(e,t,n,r,o,a,h){dr(Eo(wt(),e,t,n,r,o,a,h))}function dp(e,t,n,r,o,a,h,g,E){dr(Do(wt(),e,t,n,r,o,a,h,g,E))}function hp(e,t,n,r,o,a,h,g,E,L,z){dr(To(wt(),e,t,n,r,o,a,h,g,E,L,z))}function fp(e,t,n,r,o,a,h,g,E,L,z,ve,We){dr(Mo(wt(),e,t,n,r,o,a,h,g,E,L,z,ve,We))}function pp(e,t,n,r,o,a,h,g,E,L,z,ve,We,rt,yt){dr(wo(wt(),e,t,n,r,o,a,h,g,E,L,z,ve,We,rt,yt))}function mp(e,t,n,r,o,a,h,g,E,L,z,ve,We,rt,yt,xt,Lt){dr(So(wt(),e,t,n,r,o,a,h,g,E,L,z,ve,We,rt,yt,xt,Lt))}function gp(e){dr(vo(wt(),e))}function Ic(e,t,n,r,o){return hr(e,bo(wt(),t,n,r),o,!1),Ic}function Ac(e,t,n,r,o,a,h){return hr(e,Co(wt(),t,n,r,o,a),h,!1),Ac}function Pc(e,t,n,r,o,a,h,g,E){return hr(e,Eo(wt(),t,n,r,o,a,h,g),E,!1),Pc}function Oc(e,t,n,r,o,a,h,g,E,L,z){return hr(e,Do(wt(),t,n,r,o,a,h,g,E,L),z,!1),Oc}function xc(e,t,n,r,o,a,h,g,E,L,z,ve,We){return hr(e,To(wt(),t,n,r,o,a,h,g,E,L,z,ve),We,!1),xc}function Rc(e,t,n,r,o,a,h,g,E,L,z,ve,We,rt,yt){return hr(e,Mo(wt(),t,n,r,o,a,h,g,E,L,z,ve,We,rt),yt,!1),Rc}function Fc(e,t,n,r,o,a,h,g,E,L,z,ve,We,rt,yt,xt,Lt){return hr(e,wo(wt(),t,n,r,o,a,h,g,E,L,z,ve,We,rt,yt,xt),Lt,!1),Fc}function kc(e,t,n,r,o,a,h,g,E,L,z,ve,We,rt,yt,xt,Lt,Zt,Mt){return hr(e,So(wt(),t,n,r,o,a,h,g,E,L,z,ve,We,rt,yt,xt,Lt,Zt),Mt,!1),kc}function Nc(e,t,n){return hr(e,vo(wt(),t),n,!1),Nc}function Lc(e,t,n){const r=wt();return bi(r,nn(),t)&&ji(B(),Pn(),r,e,t,r[11],n,!0),Lc}function Bc(e,t,n){const r=wt();if(bi(r,nn(),t)){const a=B(),h=Pn();ji(a,h,r,e,t,Vh(Ne(a.data),h,r),n,!0)}return Bc}const Zr=void 0;var Gb=["en",[["a","p"],["AM","PM"],Zr],[["AM","PM"],Zr,Zr],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Zr,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Zr,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Zr,"{1} 'at' {0}",Zr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Kb(e){const n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}];let Po={};function Qb(e,t,n){"string"!=typeof t&&(n=t,t=e[rn.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),Po[t]=e,n&&(Po[t][rn.ExtraData]=n)}function jc(e){const t=function Xb(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=yp(t);if(n)return n;const r=t.split("-")[0];if(n=yp(r),n)return n;if("en"===r)return Gb;throw new Error(`Missing locale data for the locale "${e}".`)}function Zb(e){return jc(e)[rn.CurrencyCode]||null}function _p(e){return jc(e)[rn.PluralCase]}function yp(e){return e in Po||(Po[e]=Kt.ng&&Kt.ng.common&&Kt.ng.common.locales&&Kt.ng.common.locales[e]),Po[e]}function Yb(){Po={}}var rn=(()=>((rn=rn||{})[rn.LocaleId=0]="LocaleId",rn[rn.DayPeriodsFormat=1]="DayPeriodsFormat",rn[rn.DayPeriodsStandalone=2]="DayPeriodsStandalone",rn[rn.DaysFormat=3]="DaysFormat",rn[rn.DaysStandalone=4]="DaysStandalone",rn[rn.MonthsFormat=5]="MonthsFormat",rn[rn.MonthsStandalone=6]="MonthsStandalone",rn[rn.Eras=7]="Eras",rn[rn.FirstDayOfWeek=8]="FirstDayOfWeek",rn[rn.WeekendRange=9]="WeekendRange",rn[rn.DateFormat=10]="DateFormat",rn[rn.TimeFormat=11]="TimeFormat",rn[rn.DateTimeFormat=12]="DateTimeFormat",rn[rn.NumberSymbols=13]="NumberSymbols",rn[rn.NumberFormats=14]="NumberFormats",rn[rn.CurrencyCode=15]="CurrencyCode",rn[rn.CurrencySymbol=16]="CurrencySymbol",rn[rn.CurrencyName=17]="CurrencyName",rn[rn.Currencies=18]="Currencies",rn[rn.Directionality=19]="Directionality",rn[rn.PluralCase=20]="PluralCase",rn[rn.ExtraData=21]="ExtraData",rn))();const Jb=["zero","one","two","few","many"],us="en-US",na={marker:"element"},ia={marker:"ICU"};var Xn=(()=>((Xn=Xn||{})[Xn.SHIFT=2]="SHIFT",Xn[Xn.APPEND_EAGERLY=1]="APPEND_EAGERLY",Xn[Xn.COMMENT=2]="COMMENT",Xn))();let vp=us;function bp(e){(function Me(e,t){null==e&&Ge(t,e,null,"!=")})(e,"Expected localeId to be defined"),"string"==typeof e&&(vp=e.toLowerCase().replace(/_/g,"-"))}function Cp(e,t,n){const r=t.insertBeforeIndex,o=Array.isArray(r)?r[0]:r;return null===o?Jd(e,0,n):Ln(n[o])}function Ep(e,t,n,r,o){const a=t.insertBeforeIndex;if(Array.isArray(a)){let h=r,g=null;if(3&t.type||(g=h,h=o),null!==h&&0==(2&t.flags))for(let E=1;E<a.length;E++)Gr(e,h,n[a[E]],g,!1)}}function Dp(e,t){if(e.push(t),e.length>1)for(let n=e.length-2;n>=0;n--){const r=e[n];Tp(r)||nC(r,t)&&null===iC(r)&&rC(r,t.index)}}function Tp(e){return!(64&e.type)}function nC(e,t){return Tp(t)||e.index>t.index}function iC(e){const t=e.insertBeforeIndex;return Array.isArray(t)?t[0]:t}function rC(e,t){const n=e.insertBeforeIndex;Array.isArray(n)?n[0]=t:(eh(Cp,Ep),e.insertBeforeIndex=t)}function ds(e,t){const n=e.data[t];return null===n||"string"==typeof n?null:n.hasOwnProperty("currentCaseLViewIndex")?n:n.value}function aC(e,t,n){const r=yl(e,n,64,null,null);return Dp(t,r),r}function ra(e,t){const n=t[e.currentCaseLViewIndex];return null===n?n:n<0?~n:n}function Mp(e){return e>>>17}function wp(e){return(131070&e)>>>1}let hs=0,fs=0;function Ip(e,t,n,r){const o=n[11];let h,a=null;for(let g=0;g<t.length;g++){const E=t[g];if("string"==typeof E){const L=t[++g];null===n[L]&&(n[L]=qa(o,E))}else if("number"==typeof E)switch(1&E){case 0:const L=Mp(E);let z,ve;if(null===a&&(a=L,h=Vs(o,r)),L===a?(z=r,ve=h):(z=null,ve=Ln(n[L])),null!==ve){const xt=wp(E);Gr(o,ve,n[xt],z,!1);const Zt=ds(e,xt);if(null!==Zt&&"object"==typeof Zt){const Mt=ra(Zt,n);null!==Mt&&Ip(e,Zt.create[Mt],n,n[Zt.anchorIdx])}}break;case 1:const rt=t[++g],yt=t[++g];El(o,R(E>>>1,n),null,null,rt,yt,null);break;default:throw new Error(`Unable to determine the type of mutate operation for "${E}"`)}else switch(E){case ia:const L=t[++g],z=t[++g];null===n[z]&&vi(n[z]=_y(o,L),n);break;case na:const ve=t[++g],We=t[++g];null===n[We]&&vi(n[We]=el(o,ve,null),n)}}}function Ap(e,t,n,r,o){for(let a=0;a<n.length;a++){const h=n[a],g=n[++a];if(h&o){let E="";for(let L=a+1;L<=a+g;L++){const z=n[L];if("string"==typeof z)E+=z;else if("number"==typeof z)if(z<0)E+=$(t[r-z]);else{const ve=z>>>2;switch(3&z){case 1:const We=n[++L],rt=n[++L],yt=e.data[ve];"string"==typeof yt?El(t[11],t[ve],null,yt,We,E,rt):ji(e,yt,t,We,E,t[11],rt,!1);break;case 0:const xt=t[ve];null!==xt&&Wd(t[11],xt,E);break;case 2:hC(e,ds(e,ve),t,E);break;case 3:Pp(e,ds(e,ve),r,t)}}}}else{const E=n[a+1];if(E>0&&3==(3&E)){const z=ds(e,E>>>2);t[z.currentCaseLViewIndex]<0&&Pp(e,z,r,t)}}a+=g}}function Pp(e,t,n,r){let o=r[t.currentCaseLViewIndex];if(null!==o){let a=hs;o<0&&(o=r[t.currentCaseLViewIndex]=~o,a=-1),Ap(e,r,t.update[o],n,a)}}function hC(e,t,n,r){const o=function fC(e,t){let n=e.cases.indexOf(t);if(-1===n)switch(e.type){case 1:{const r=function qb(e,t){const n=_p(t)(parseInt(e,10)),r=Jb[n];return void 0!==r?r:"other"}(t,function tC(){return vp}());n=e.cases.indexOf(r),-1===n&&"other"!==r&&(n=e.cases.indexOf("other"));break}case 0:n=e.cases.indexOf("other")}return-1===n?null:n}(t,r);if(ra(t,n)!==o&&(Op(e,t,n),n[t.currentCaseLViewIndex]=null===o?null:~o,null!==o)){const h=n[t.anchorIdx];h&&Ip(e,t.create[o],n,h)}}function Op(e,t,n){let r=ra(t,n);if(null!==r){const o=t.remove[r];for(let a=0;a<o.length;a++){const h=o[a];if(h>0){const g=R(h,n);null!==g&&nh(n[11],g)}else Op(e,ds(e,~h),n)}}}function pC(){const e=[];let n,r,t=-1;function a(g,E){t=0;const L=ra(g,E);r=null!==L?g.remove[L]:Ot}function h(){if(t<r.length){const g=r[t++];return g>0?n[g]:(e.push(t,r),a(n[1].data[~g],n),h())}return 0===e.length?null:(r=e.pop(),t=e.pop(),h())}return function o(g,E){for(n=E;e.length;)e.pop();return a(g.value,E),h}}const oa=/\ufffd(\d+):?\d*\ufffd/gi,mC=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,gC=/\ufffd(\d+)\ufffd/,Rp=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,_C=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,yC=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,vC=/\uE500/g;function Fp(e,t,n,r,o,a,h){const g=po(e,r,1,null);let E=g<<Xn.SHIFT,L=j();t===L&&(L=null),null===L&&(E|=Xn.APPEND_EAGERLY),h&&(E|=Xn.COMMENT,function gy(e){void 0===Za&&(Za=e())}(pC)),o.push(E,null===a?"":a);const z=yl(e,g,h?32:1,null===a?"":a,null);Dp(n,z);const ve=z.index;return ae(z,!1),null!==L&&t!==L&&function sC(e,t){let n=e.insertBeforeIndex;null===n?(eh(Cp,Ep),n=e.insertBeforeIndex=[null,t]):(function X(e,t,n){e!=t&&Ge(n,e,t,"==")}(Array.isArray(n),!0,"Expecting array here"),n.push(t))}(L,ve),z}function EC(e,t,n,r,o,a,h){const g=h.match(oa),E=Fp(e,t,n,a,r,g?null:h,!1);g&&Oo(o,h,E.index,null,0,null)}function Oo(e,t,n,r,o,a){const h=e.length,g=h+1;e.push(null,null);const E=h+2,L=t.split(oa);let z=0;for(let ve=0;ve<L.length;ve++){const We=L[ve];if(1&ve){const rt=o+parseInt(We,10);e.push(-1-rt),z|=kp(rt)}else""!==We&&e.push(We)}return e.push(n<<2|(r?1:0)),r&&e.push(r,a),e[h]=z,e[g]=e.length-E,z}function TC(e){let t=0;for(let n=0;n<e.length;n++){const r=e[n];"number"==typeof r&&r<0&&t++}return t}function kp(e){return 1<<Math.min(e,31)}function Np(e){let t,a,n="",r=0,o=!1;for(;null!==(t=_C.exec(e));)o?t[0]===`\ufffd/*${a}\ufffd`&&(r=t.index,o=!1):(n+=e.substring(r,t.index+t[0].length),a=t[1],o=!0);return n+=e.substr(r),n}function Lp(e,t,n,r,o,a){let h=0;const g={type:o.type,currentCaseLViewIndex:po(e,t,1,null),anchorIdx:a,cases:[],create:[],remove:[],update:[]};(function PC(e,t,n){e.push(kp(t.mainBinding),2,-1-t.mainBinding,n<<2|2)})(n,o,a),function oC(e,t,n){const r=e.data[t];null===r?e.data[t]=n:r.value=n}(e,a,g);const E=o.values;for(let L=0;L<E.length;L++){const z=E[L],ve=[];for(let We=0;We<z.length;We++){const rt=z[We];if("string"!=typeof rt){const yt=ve.push(rt)-1;z[We]=`\x3c!--\ufffd${yt}\ufffd--\x3e`}}h=IC(e,g,t,n,r,o.cases[L],z.join(""),ve)|h}h&&function OC(e,t,n){e.push(t,1,n<<2|3)}(n,h,a)}function SC(e){const t=[],n=[];let r=1,o=0;const a=Vc(e=e.replace(Rp,function(h,g,E){return r="select"===E?0:1,o=parseInt(g.substr(1),10),""}));for(let h=0;h<a.length;){let g=a[h++].trim();1===r&&(g=g.replace(/\s*(?:=)?(\w+)\s*/,"$1")),g.length&&t.push(g);const E=Vc(a[h++]);t.length>n.length&&n.push(E)}return{type:r,mainBinding:o,cases:t,values:n}}function Vc(e){if(!e)return[];let t=0;const n=[],r=[],o=/[{}]/g;let a;for(o.lastIndex=0;a=o.exec(e);){const g=a.index;if("}"==a[0]){if(n.pop(),0==n.length){const E=e.substring(t,g);Rp.test(E)?r.push(SC(E)):r.push(E),t=g+1}}else{if(0==n.length){const E=e.substring(t,g);r.push(E),t=g+1}n.push("{")}}const h=e.substring(t);return r.push(h),r}function IC(e,t,n,r,o,a,h,g){const E=[],L=[],z=[];t.cases.push(a),t.create.push(E),t.remove.push(L),t.update.push(z);const We=fd(ki()).getInertBodyElement(h),rt=$a(We)||We;return rt?Bp(e,t,n,r,E,L,z,rt,o,g,0):0}function Bp(e,t,n,r,o,a,h,g,E,L,z){let ve=0,We=g.firstChild;for(;We;){const rt=po(e,n,1,null);switch(We.nodeType){case Node.ELEMENT_NODE:const yt=We,xt=yt.tagName.toLowerCase();if(ja.hasOwnProperty(xt)){Hc(o,na,xt,E,rt),e.data[rt]=xt;const tn=yt.attributes;for(let Cn=0;Cn<tn.length;Cn++){const Fn=tn.item(Cn),$i=Fn.name.toLowerCase();Fn.value.match(oa)?yd.hasOwnProperty($i)&&Oo(h,Fn.value,rt,Fn.name,0,Va[$i]?Zo:Ha[$i]?pd:null):xC(o,rt,Fn)}ve=Bp(e,t,n,r,o,a,h,We,rt,L,z+1)|ve,jp(a,rt,z)}break;case Node.TEXT_NODE:const Lt=We.textContent||"",Zt=Lt.match(oa);Hc(o,null,Zt?"":Lt,E,rt),jp(a,rt,z),Zt&&(ve=Oo(h,Lt,rt,null,0,null)|ve);break;case Node.COMMENT_NODE:const Mt=gC.exec(We.textContent||"");if(Mt){const Cn=L[parseInt(Mt[1],10)];Hc(o,ia,"",E,rt),Lp(e,n,r,E,Cn,rt),AC(a,rt,z)}}We=We.nextSibling}return ve}function jp(e,t,n){0===n&&e.push(t)}function AC(e,t,n){0===n&&(e.push(~t),e.push(t))}function Hc(e,t,n,r,o){null!==t&&e.push(t),e.push(n,o,function lC(e,t,n){return e|t<<17|n<<1}(0,r,o))}function xC(e,t,n){e.push(t<<1|1,n.name,n.value)}const RC=/\[(\ufffd.+?\ufffd?)\]/,FC=/\[(\ufffd.+?\ufffd?)\]|(\ufffd\/?\*\d+:\d+\ufffd)/g,kC=/({\s*)(VAR_(PLURAL|SELECT)(_\d+)?)(\s*,)/g,NC=/{([A-Z0-9_]+)}/g,LC=/\ufffdI18N_EXP_(ICU(_\d+)?)\ufffd/g,BC=/\/\*/,jC=/\d+\:(\d+)/;function $c(e,t,n=-1){const r=B(),o=wt(),a=20+e,h=un(r.consts,t),g=j();r.firstCreatePass&&function CC(e,t,n,r,o,a){const h=j(),g=[],E=[],L=[[]];o=function wC(e,t){if(function MC(e){return-1===e}(t))return Np(e);{const n=e.indexOf(`:${t}\ufffd`)+2+t.toString().length,r=e.search(new RegExp(`\ufffd\\/\\*\\d+:${t}\ufffd`));return Np(e.substring(n,r))}}(o,a);const z=function bC(e){return e.replace(vC," ")}(o).split(yC);for(let ve=0;ve<z.length;ve++){let We=z[ve];if(0==(1&ve)){const rt=Vc(We);for(let yt=0;yt<rt.length;yt++){let xt=rt[yt];if(0==(1&yt)){const Lt=xt;""!==Lt&&EC(e,h,L[0],g,E,n,Lt)}else{const Lt=xt;if("object"!=typeof Lt)throw new Error(`Unable to parse ICU expression in "${o}" message.`);Lp(e,n,E,t,Lt,Fp(e,h,L[0],n,g,"",!0).index)}}}else{const rt=47===We.charCodeAt(0),xt=(We.charCodeAt(rt?1:0),20+Number.parseInt(We.substring(rt?2:1)));if(rt)L.shift(),ae(j(),!1);else{const Lt=aC(e,L[0],xt);L.unshift([]),ae(Lt,!0)}}}e.data[r]={create:g,update:E}}(r,null===g?0:g.index,o,a,h,n);const E=r.data[a],z=Qd(r,g===o[6]?null:g,o);(function dC(e,t,n,r){const o=e[11];for(let a=0;a<t.length;a++){const h=t[a++],g=t[a],E=(h&Xn.COMMENT)===Xn.COMMENT,L=(h&Xn.APPEND_EAGERLY)===Xn.APPEND_EAGERLY,z=h>>>Xn.SHIFT;let ve=e[z];null===ve&&(ve=e[z]=E?o.createComment(g):qa(o,g)),L&&null!==n&&Gr(o,n,ve,r,!1)}})(o,E.create,z,g&&8&g.type?o[g.index]:null),U(!0)}function Uc(){U(!1)}function Hp(e,t,n){$c(e,t,n),Uc()}function $p(e,t){const n=B();!function DC(e,t,n){const o=f().index,a=[];if(e.firstCreatePass&&null===e.data[t]){for(let h=0;h<n.length;h+=2){const g=n[h],E=n[h+1];if(""!==E){if(mC.test(E))throw new Error(`ICU expressions are not supported in attributes. Message: "${E}".`);Oo(a,E,o,g,TC(a),null)}}e.data[t]=a}}(n,e+20,un(n.consts,t))}function Wc(e){return function cC(e){e&&(hs|=1<<Math.min(fs,31)),fs++}(bi(wt(),nn(),e)),Wc}function Up(e){!function uC(e,t,n){if(fs>0){const r=e.data[n];Ap(e,t,Array.isArray(r)?r:r.update,dn()-fs-1,hs)}hs=0,fs=0}(B(),wt(),e+20)}function Wp(e,t={}){return function VC(e,t={}){let n=e;if(RC.test(e)){const r={},o=[0];n=n.replace(FC,(a,h,g)=>{const E=h||g,L=r[E]||[];if(L.length||(E.split("|").forEach(xt=>{const Lt=xt.match(jC),Zt=Lt?parseInt(Lt[1],10):0,Mt=BC.test(xt);L.push([Zt,Mt,xt])}),r[E]=L),!L.length)throw new Error(`i18n postprocess: unmatched placeholder - ${E}`);const z=o[o.length-1];let ve=0;for(let xt=0;xt<L.length;xt++)if(L[xt][0]===z){ve=xt;break}const[We,rt,yt]=L[ve];return rt?o.pop():z!==We&&o.push(We),L.splice(ve,1),yt})}return Object.keys(t).length&&(n=n.replace(kC,(r,o,a,h,g,E)=>t.hasOwnProperty(a)?`${o}${t[a]}${E}`:r),n=n.replace(NC,(r,o)=>t.hasOwnProperty(o)?t[o]:r),n=n.replace(LC,(r,o)=>{if(t.hasOwnProperty(o)){const a=t[o];if(!a.length)throw new Error(`i18n postprocess: unmatched ICU - ${r} with key: ${o}`);return a.shift()}return r})),n}(e,t)}function zc(e,t,n,r,o){if(e=O(e),Array.isArray(e))for(let a=0;a<e.length;a++)zc(e[a],t,n,r,o);else{const a=B(),h=wt();let g=_o(e)?e:O(e.provide),E=Qh(e);const L=f(),z=1048575&L.providerIndexes,ve=L.directiveStart,We=L.providerIndexes>>20;if(_o(e)||!e.multi){const rt=new Bo(E,o,ls),yt=Gc(g,t,o?z:z+We,ve);-1===yt?(As(Vo(L,h),a,g),Kc(a,e,t.length),t.push(g),L.directiveStart++,L.directiveEnd++,o&&(L.providerIndexes+=1048576),n.push(rt),h.push(rt)):(n[yt]=rt,h[yt]=rt)}else{const rt=Gc(g,t,z+We,ve),yt=Gc(g,t,z,z+We),xt=rt>=0&&n[rt],Lt=yt>=0&&n[yt];if(o&&!Lt||!o&&!xt){As(Vo(L,h),a,g);const Zt=function WC(e,t,n,r,o){const a=new Bo(e,n,ls);return a.multi=[],a.index=t,a.componentProviders=0,zp(a,o,r&&!n),a}(o?UC:$C,n.length,o,r,E);!o&&Lt&&(n[yt].providerFactory=Zt),Kc(a,e,t.length,0),t.push(g),L.directiveStart++,L.directiveEnd++,o&&(L.providerIndexes+=1048576),n.push(Zt),h.push(Zt)}else Kc(a,e,rt>-1?rt:yt,zp(n[o?yt:rt],E,!o&&r));!o&&r&&Lt&&n[yt].componentProviders++}}}function Kc(e,t,n,r){const o=_o(t),a=function Rv(e){return!!e.useClass}(t);if(o||a){const E=(a?O(t.useClass):t).prototype.ngOnDestroy;if(E){const L=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){const z=L.indexOf(n);-1===z?L.push(n,[r,E]):L[z+1].push(r,E)}else L.push(n,E)}}}function zp(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Gc(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return-1}function $C(e,t,n,r){return Qc(this.multi,[])}function UC(e,t,n,r){const o=this.multi;let a;if(this.providerFactory){const h=this.providerFactory.componentProviders,g=Ho(n,n[1],this.providerFactory.index,r);a=g.slice(0,h),Qc(o,a);for(let E=h;E<g.length;E++)a.push(g[E])}else a=[],Qc(o,a);return a}function Qc(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function Kp(e,t=[]){return n=>{n.providersResolver=(r,o)=>function HC(e,t,n){const r=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 ${D(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let ms=(()=>{class e{}return e.NULL=new KC,e})();function GC(){return xo(f(),wt())}function xo(e,t){return new gs(te(e,t))}let gs=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=GC,e})();function QC(e){return e instanceof gs?e.nativeElement:e}class Zp{}let ZC=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function XC(){const e=wt(),n=Nt(f().index,e);return function YC(e){return e[11]}(Kn(n)?n:e)}(),e})(),Yp=(()=>{class e{}return e.\u0275prov=et({token:e,providedIn:"root",factory:()=>null}),e})();class Xp{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Jp=new Xp("13.1.2"),aa={};function la(e,t,n,r,o=!1){for(;null!==n;){const a=t[n.index];if(null!==a&&r.push(Ln(a)),Gn(a))for(let g=10;g<a.length;g++){const E=a[g],L=E[1].firstChild;null!==L&&la(E[1],E,L,r)}const h=n.type;if(8&h)la(e,t,n.child,r);else if(32&h){const g=Ya(n,t);let E;for(;E=g();)r.push(E)}else if(16&h){const g=th(t,n);if(Array.isArray(g))r.push(...g);else{const E=es(t[16]);la(E[1],E,g,r,!0)}}n=o?n.projectionNext:n.next}return r}class Ro{constructor(t,n){this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const t=this._lView,n=t[1];return la(n,t,n.firstChild,[])}get context(){return this._lView[8]}set context(t){this._lView[8]=t}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[3];if(Gn(t)){const n=t[8],r=n?n.indexOf(this):-1;r>-1&&(tl(t,r),xs(n,r))}this._attachedToViewContainer=!1}Kd(this._lView[1],this._lView)}onDestroy(t){Ih(this._lView[1],this._lView,null,t)}markForCheck(){Tl(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){wl(this._lView[1],this._lView,this.context)}checkNoChanges(){!function Tv(e,t,n){Gt(!0);try{wl(e,t,n)}finally{Gt(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function by(e,t){ts(e,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class JC extends Ro{constructor(t){super(t),this._view=t}detectChanges(){Lh(this._view)}checkNoChanges(){!function Mv(e){Gt(!0);try{Lh(e)}finally{Gt(!1)}}(this._view)}get context(){return null}}class qp extends ms{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=je(t);return new ca(n,this.ngModule)}}function em(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}const e0=new Yn("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>kd});class ca extends sa{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function Vy(e){return e.map(jy).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return em(this.componentDef.inputs)}get outputs(){return em(this.componentDef.outputs)}create(t,n,r,o){const a=(o=o||this.ngModule)?function t0(e,t){return{get:(n,r,o)=>{const a=e.get(n,aa,o);return a!==aa||r===aa?a:t.get(n,r,o)}}}(t,o.injector):t,h=a.get(Zp,sr),g=a.get(Yp,null),E=h.createRenderer(null,this.componentDef),L=this.componentDef.selectors[0][0]||"div",z=r?Sh(E,r,this.componentDef.encapsulation):el(h.createRenderer(null,this.componentDef),L,function qC(e){const t=e.toLowerCase();return"svg"===t?Ri:"math"===t?or:null}(L)),ve=this.componentDef.onPush?576:528,We=lf(),rt=Ks(0,null,null,1,0,null,null,null,null,null),yt=ns(null,rt,We,ve,null,null,h,E,g,a);let xt,Lt;Yt(yt);try{const Zt=sf(z,this.componentDef,yt,h,E);if(z)if(r)Ms(E,z,["ng-version",Jp.full]);else{const{attrs:Mt,classes:tn}=function Hy(e){const t=[],n=[];let r=1,o=2;for(;r<e.length;){let a=e[r];if("string"==typeof a)2===o?""!==a&&t.push(a,e[++r]):8===o&&n.push(a);else{if(!cr(o))break;o=a}r++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]);Mt&&Ms(E,z,Mt),tn&&tn.length>0&&sl(E,z,tn.join(" "))}if(Lt=ht(rt,20),void 0!==n){const Mt=Lt.projection=[];for(let tn=0;tn<this.ngContentSelectors.length;tn++){const Cn=n[tn];Mt.push(null!=Cn?Array.from(Cn):null)}}xt=af(Zt,this.componentDef,yt,We,[cf]),is(rt,yt,null)}finally{Pt()}return new tm(this.componentType,xt,xo(Lt,yt),yt,Lt)}}class tm extends Gp{constructor(t,n,r,o,a){super(),this.location=r,this._rootLView=o,this._tNode=a,this.instance=n,this.hostView=this.changeDetectorRef=new JC(o),this.componentType=t}get injector(){return new eo(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function nm(e,t,n,r){return re(()=>{const o=e;null!==t&&(o.hasOwnProperty("decorators")&&void 0!==o.decorators?o.decorators.push(...t):o.decorators=t),null!==n&&(o.ctorParameters=n),null!==r&&(o.propDecorators=o.hasOwnProperty("propDecorators")&&void 0!==o.propDecorators?Object.assign(Object.assign({},o.propDecorators),r):r)})}class Fo{}class im{}const ko=new Map;function om(e){const t=new Set;!function n(r){const o=Bt(r,!0),a=o.id;if(null!==a){(function rm(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${D(t)} vs ${D(t.name)}`)})(a,ko.get(a),r),ko.set(a,r)}const h=br(o.imports);for(const g of h)t.has(g)||(t.add(g),n(g))}(e)}function sm(e){return ko.get(e)||Et[e]}function r0(e,t){return new Zc(e,null!=t?t:null)}class Zc extends Fo{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new qp(this);const r=Bt(t);this._bootstrapComponents=br(r.bootstrap),this._r3Injector=Gh(t,n,[{provide:Fo,useValue:this},{provide:ms,useValue:this.componentFactoryResolver}],D(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!==Bt(t)&&om(t)}create(t){return new Zc(this.moduleType,t)}}function am(e,t,n){const r=Xt()+e,o=wt();return o[r]===pn?Dr(o,r,n?t.call(n):t()):ss(o,r)}function lm(e,t,n,r){return _m(wt(),Xt(),e,t,n,r)}function cm(e,t,n,r,o){return ym(wt(),Xt(),e,t,n,r,o)}function um(e,t,n,r,o,a){return vm(wt(),Xt(),e,t,n,r,o,a)}function dm(e,t,n,r,o,a,h){return bm(wt(),Xt(),e,t,n,r,o,a,h)}function hm(e,t,n,r,o,a,h,g){const E=Xt()+e,L=wt(),z=tr(L,E,n,r,o,a);return bi(L,E+4,h)||z?Dr(L,E+5,g?t.call(g,n,r,o,a,h):t(n,r,o,a,h)):ss(L,E+5)}function fm(e,t,n,r,o,a,h,g,E){const L=Xt()+e,z=wt(),ve=tr(z,L,n,r,o,a);return Qr(z,L+4,h,g)||ve?Dr(z,L+6,E?t.call(E,n,r,o,a,h,g):t(n,r,o,a,h,g)):ss(z,L+6)}function pm(e,t,n,r,o,a,h,g,E,L){const z=Xt()+e,ve=wt();let We=tr(ve,z,n,r,o,a);return Xs(ve,z+4,h,g,E)||We?Dr(ve,z+7,L?t.call(L,n,r,o,a,h,g,E):t(n,r,o,a,h,g,E)):ss(ve,z+7)}function mm(e,t,n,r,o,a,h,g,E,L,z){const ve=Xt()+e,We=wt(),rt=tr(We,ve,n,r,o,a);return tr(We,ve+4,h,g,E,L)||rt?Dr(We,ve+8,z?t.call(z,n,r,o,a,h,g,E,L):t(n,r,o,a,h,g,E,L)):ss(We,ve+8)}function gm(e,t,n,r){return Cm(wt(),Xt(),e,t,n,r)}function _s(e,t){const n=e[t];return n===pn?void 0:n}function _m(e,t,n,r,o,a){const h=t+n;return bi(e,h,o)?Dr(e,h+1,a?r.call(a,o):r(o)):_s(e,h+1)}function ym(e,t,n,r,o,a,h){const g=t+n;return Qr(e,g,o,a)?Dr(e,g+2,h?r.call(h,o,a):r(o,a)):_s(e,g+2)}function vm(e,t,n,r,o,a,h,g){const E=t+n;return Xs(e,E,o,a,h)?Dr(e,E+3,g?r.call(g,o,a,h):r(o,a,h)):_s(e,E+3)}function bm(e,t,n,r,o,a,h,g,E){const L=t+n;return tr(e,L,o,a,h,g)?Dr(e,L+4,E?r.call(E,o,a,h,g):r(o,a,h,g)):_s(e,L+4)}function Cm(e,t,n,r,o,a){let h=t+n,g=!1;for(let E=0;E<o.length;E++)bi(e,h++,o[E])&&(g=!0);return g?Dr(e,h,r.apply(a,o)):_s(e,h)}function Em(e,t){const n=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)),h=se(ls);try{const g=Ss(!1),E=a();return Ss(g),pf(n,wt(),o,E),E}finally{se(h)}}function Dm(e,t,n){const r=e+20,o=wt(),a=Dt(o,r);return ys(o,r)?_m(o,Xt(),t,a.transform,n,a):a.transform(n)}function Tm(e,t,n,r){const o=e+20,a=wt(),h=Dt(a,o);return ys(a,o)?ym(a,Xt(),t,h.transform,n,r,h):h.transform(n,r)}function Mm(e,t,n,r,o){const a=e+20,h=wt(),g=Dt(h,a);return ys(h,a)?vm(h,Xt(),t,g.transform,n,r,o,g):g.transform(n,r,o)}function wm(e,t,n,r,o,a){const h=e+20,g=wt(),E=Dt(g,h);return ys(g,h)?bm(g,Xt(),t,E.transform,n,r,o,a,E):E.transform(n,r,o,a)}function Sm(e,t,n){const r=e+20,o=wt(),a=Dt(o,r);return ys(o,r)?Cm(o,Xt(),t,a.transform,n,a):a.transform.apply(a,n)}function ys(e,t){return e[1].data[t].pure}function Yc(e){return t=>{setTimeout(e,void 0,t)}}const Mr=class s0 extends i.x{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){var o,a,h;let g=t,E=n||(()=>null),L=r;if(t&&"object"==typeof t){const ve=t;g=null===(o=ve.next)||void 0===o?void 0:o.bind(ve),E=null===(a=ve.error)||void 0===a?void 0:a.bind(ve),L=null===(h=ve.complete)||void 0===h?void 0:h.bind(ve)}this.__isAsync&&(E=Yc(E),g&&(g=Yc(g)),L&&(L=Yc(L)));const z=super.subscribe({next:g,error:E,complete:L});return t instanceof d.w0&&t.add(z),z}};function a0(){return this._results[yo()]()}class da{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=yo(),r=da.prototype;r[n]||(r[n]=a0)}get changes(){return this._changes||(this._changes=new Mr)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){const r=this;r.dirty=!1;const o=qi(t);(this._changesDetected=!function l_(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let o=e[r],a=t[r];if(n&&(o=n(o),a=n(a)),a!==o)return!1}return!0}(r._results,o,n))&&(r._results=o,r.length=o.length,r.last=o[this.length-1],r.first=o[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;let vs=(()=>{class e{}return e.__NG_ELEMENT_ID__=u0,e})();const l0=vs,c0=class extends l0{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}createEmbeddedView(t){const n=this._declarationTContainer.tViews,r=ns(this._declarationLView,n,t,16,null,n.declTNode,null,null,null,null);r[17]=this._declarationLView[this._declarationTContainer.index];const a=this._declarationLView[19];return null!==a&&(r[19]=a.createEmbeddedView(n)),is(n,r,t),new Ro(r)}};function u0(){return ha(f(),wt())}function ha(e,t){return 4&e.type?new c0(t,e,xo(e,t)):null}let fa=(()=>{class e{}return e.__NG_ELEMENT_ID__=d0,e})();function d0(){return Pm(f(),wt())}const h0=fa,Im=class extends h0{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return xo(this._hostTNode,this._hostLView)}get injector(){return new eo(this._hostTNode,this._hostLView)}get parentInjector(){const t=Is(this._hostTNode,this._hostLView);if(Vu(t)){const n=qr(t,this._hostLView),r=Jr(t);return new eo(n[1].data[r+8],n)}return new eo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=Am(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,r){const o=t.createEmbeddedView(n||{});return this.insert(o,r),o}createComponent(t,n,r,o,a){const h=t&&!Uo(t);let g;if(h)g=n;else{const ve=n||{};g=ve.index,r=ve.injector,o=ve.projectableNodes,a=ve.ngModuleRef}const E=h?t:new ca(je(t)),L=r||this.parentInjector;if(!a&&null==E.ngModule&&L){const ve=L.get(Fo,null);ve&&(a=ve)}const z=E.create(L,o,void 0,a);return this.insert(z.hostView,g),z}insert(t,n){const r=t._lView,o=r[1];if(function In(e){return Gn(e[3])}(r)){const z=this.indexOf(t);if(-1!==z)this.detach(z);else{const ve=r[3],We=new Im(ve,ve[6],ve[3]);We.detach(We.indexOf(t))}}const a=this._adjustIndex(n),h=this._lContainer;!function Ey(e,t,n,r){const o=10+r,a=n.length;r>0&&(n[o-1][4]=t),r<a-10?(t[4]=n[o],Ju(n,10+r,t)):(n.push(t),t[4]=null),t[3]=n;const h=t[17];null!==h&&n!==h&&function Dy(e,t){const n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(h,t);const g=t[19];null!==g&&g.insertView(e),t[2]|=128}(o,r,h,a);const g=rl(a,h),E=r[11],L=Vs(E,h[7]);return null!==L&&function vy(e,t,n,r,o,a){r[0]=o,r[6]=t,ts(e,r,n,1,o,a)}(o,h[6],E,r,L,g),t.attachToViewContainerRef(),Ju(Xc(h),a,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=Am(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),r=tl(this._lContainer,n);r&&(xs(Xc(this._lContainer),n),Kd(r[1],r))}detach(t){const n=this._adjustIndex(t,-1),r=tl(this._lContainer,n);return r&&null!=xs(Xc(this._lContainer),n)?new Ro(r):null}_adjustIndex(t,n=0){return null==t?this.length+n:t}};function Am(e){return e[8]}function Xc(e){return e[8]||(e[8]=[])}function Pm(e,t){let n;const r=t[e.index];if(Gn(r))n=r;else{let o;if(8&e.type)o=Ln(r);else{const a=t[11];o=a.createComment("");const h=te(e,t);Gr(a,Vs(a,h),o,function Sy(e,t){return Rn(e)?e.nextSibling(t):t.nextSibling}(a,h),!1)}t[e.index]=n=Nh(r,t,o,e),Gs(t,n)}return new Im(n,e,t)}class Jc{constructor(t){this.queryList=t,this.matches=null}clone(){return new Jc(this.queryList)}setDirty(){this.queryList.setDirty()}}class qc{constructor(t=[]){this.queries=t}createEmbeddedView(t){const n=t.queries;if(null!==n){const r=null!==t.contentQueries?t.contentQueries[0]:n.length,o=[];for(let a=0;a<r;a++){const h=n.getByIndex(a);o.push(this.queries[h.indexInDeclarationView].clone())}return new qc(o)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)null!==jm(t,n).matches&&this.queries[n].setDirty()}}class Om{constructor(t,n,r=null){this.predicate=t,this.flags=n,this.read=r}}class eu{constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){const o=null!==n?n.length:0,a=this.getByIndex(r).embeddedTView(t,o);a&&(a.indexInDeclarationView=r,null!==n?n.push(a):n=[a])}return null!==n?new eu(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class tu{constructor(t,n=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new tu(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const n=this._declarationNodeIndex;let r=t.parent;for(;null!==r&&8&r.type&&r.index!==n;)r=r.parent;return n===(null!==r?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){const r=this.metadata.predicate;if(Array.isArray(r))for(let o=0;o<r.length;o++){const a=r[o];this.matchTNodeWithReadOption(t,n,m0(n,a)),this.matchTNodeWithReadOption(t,n,Ps(n,t,a,!1,!1))}else r===vs?4&n.type&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,Ps(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(null!==r){const o=this.metadata.read;if(null!==o)if(o===gs||o===fa||o===vs&&4&n.type)this.addMatch(n.index,-2);else{const a=Ps(n,t,o,!1,!1);null!==a&&this.addMatch(n.index,a)}else this.addMatch(n.index,r)}}addMatch(t,n){null===this.matches?this.matches=[t,n]:this.matches.push(t,n)}}function m0(e,t){const n=e.localNames;if(null!==n)for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1];return null}function _0(e,t,n,r){return-1===n?function g0(e,t){return 11&e.type?xo(e,t):4&e.type?ha(e,t):null}(t,e):-2===n?function y0(e,t,n){return n===gs?xo(t,e):n===vs?ha(t,e):n===fa?Pm(t,e):void 0}(e,t,r):Ho(e,e[1],n,t)}function xm(e,t,n,r){const o=t[19].queries[r];if(null===o.matches){const a=e.data,h=n.matches,g=[];for(let E=0;E<h.length;E+=2){const L=h[E];g.push(L<0?null:_0(t,a[L],h[E+1],n.metadata.read))}o.matches=g}return o.matches}function nu(e,t,n,r){const o=e.queries.getByIndex(n),a=o.matches;if(null!==a){const h=xm(e,t,o,n);for(let g=0;g<a.length;g+=2){const E=a[g];if(E>0)r.push(h[g/2]);else{const L=a[g+1],z=t[-E];for(let ve=10;ve<z.length;ve++){const We=z[ve];We[17]===We[3]&&nu(We[1],We,L,r)}if(null!==z[9]){const ve=z[9];for(let We=0;We<ve.length;We++){const rt=ve[We];nu(rt[1],rt,L,r)}}}}}return r}function Rm(e){const t=wt(),n=B(),r=nt();Ct(r+1);const o=jm(n,r);if(e.dirty&&Dn(t)===(2==(2&o.metadata.flags))){if(null===o.matches)e.reset([]);else{const a=o.crossesNgTemplate?nu(n,t,r,[]):xm(n,t,o,r);e.reset(a,QC),e.notifyOnChanges()}return!0}return!1}function Fm(e,t,n){const r=B();r.firstCreatePass&&(Bm(r,new Om(e,t,n),-1),2==(2&t)&&(r.staticViewQueries=!0)),Lm(r,wt(),t)}function km(e,t,n,r){const o=B();if(o.firstCreatePass){const a=f();Bm(o,new Om(t,n,r),a.index),function b0(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(o,e),2==(2&n)&&(o.staticContentQueries=!0)}Lm(o,wt(),n)}function Nm(){return function v0(e,t){return e[19].queries[t].queryList}(wt(),nt())}function Lm(e,t,n){const r=new da(4==(4&n));Ih(e,t,r,r.destroy),null===t[19]&&(t[19]=new qc),t[19].queries.push(new Jc(r))}function Bm(e,t,n){null===e.queries&&(e.queries=new eu),e.queries.track(new tu(t,n))}function jm(e,t){return e.queries.getByIndex(t)}function Vm(e,t){return ha(e,t)}const Ti=(()=>({\u0275\u0275attribute:Bl,\u0275\u0275attributeInterpolate1:jl,\u0275\u0275attributeInterpolate2:Vl,\u0275\u0275attributeInterpolate3:Hl,\u0275\u0275attributeInterpolate4:$l,\u0275\u0275attributeInterpolate5:Ul,\u0275\u0275attributeInterpolate6:Wl,\u0275\u0275attributeInterpolate7:zl,\u0275\u0275attributeInterpolate8:Kl,\u0275\u0275attributeInterpolateV:Gl,\u0275\u0275defineComponent:A,\u0275\u0275defineDirective:$e,\u0275\u0275defineInjectable:et,\u0275\u0275defineInjector:he,\u0275\u0275defineNgModule:Ut,\u0275\u0275definePipe:ce,\u0275\u0275directiveInject:ls,\u0275\u0275getInheritedFactory:Zu,\u0275\u0275inject:si,\u0275\u0275injectAttribute:Sa,\u0275\u0275invalidFactory:Sf,\u0275\u0275invalidFactoryDep:Fa,\u0275\u0275templateRefExtractor:Vm,\u0275\u0275NgOnChangesFeature:pi,\u0275\u0275ProvidersFeature:Kp,\u0275\u0275CopyDefinitionFeature:df,\u0275\u0275InheritDefinitionFeature:kl,\u0275\u0275nextContext:kf,\u0275\u0275namespaceHTML:Vn,\u0275\u0275namespaceMathML:lr,\u0275\u0275namespaceSVG:_i,\u0275\u0275enableBindings:gi,\u0275\u0275disableBindings:Ni,\u0275\u0275elementStart:ql,\u0275\u0275elementEnd:ec,\u0275\u0275element:If,\u0275\u0275elementContainerStart:tc,\u0275\u0275elementContainerEnd:nc,\u0275\u0275elementContainer:Af,\u0275\u0275pureFunction0:am,\u0275\u0275pureFunction1:lm,\u0275\u0275pureFunction2:cm,\u0275\u0275pureFunction3:um,\u0275\u0275pureFunction4:dm,\u0275\u0275pureFunction5:hm,\u0275\u0275pureFunction6:fm,\u0275\u0275pureFunction7:pm,\u0275\u0275pureFunction8:mm,\u0275\u0275pureFunctionV:gm,\u0275\u0275getCurrentView:Pf,\u0275\u0275restoreView:c,\u0275\u0275listener:rc,\u0275\u0275projection:Lf,\u0275\u0275syntheticHostProperty:Bc,\u0275\u0275syntheticHostListener:oc,\u0275\u0275pipeBind1:Dm,\u0275\u0275pipeBind2:Tm,\u0275\u0275pipeBind3:Mm,\u0275\u0275pipeBind4:wm,\u0275\u0275pipeBindV:Sm,\u0275\u0275projectionDef:Nf,\u0275\u0275hostProperty:Lc,\u0275\u0275property:Xl,\u0275\u0275propertyInterpolate:ac,\u0275\u0275propertyInterpolate1:qs,\u0275\u0275propertyInterpolate2:lc,\u0275\u0275propertyInterpolate3:cc,\u0275\u0275propertyInterpolate4:uc,\u0275\u0275propertyInterpolate5:dc,\u0275\u0275propertyInterpolate6:hc,\u0275\u0275propertyInterpolate7:fc,\u0275\u0275propertyInterpolate8:pc,\u0275\u0275propertyInterpolateV:mc,\u0275\u0275pipe:Em,\u0275\u0275queryRefresh:Rm,\u0275\u0275viewQuery:Fm,\u0275\u0275loadQuery:Nm,\u0275\u0275contentQuery:km,\u0275\u0275reference:mf,\u0275\u0275classMap:zf,\u0275\u0275classMapInterpolate1:qf,\u0275\u0275classMapInterpolate2:ep,\u0275\u0275classMapInterpolate3:tp,\u0275\u0275classMapInterpolate4:np,\u0275\u0275classMapInterpolate5:ip,\u0275\u0275classMapInterpolate6:rp,\u0275\u0275classMapInterpolate7:op,\u0275\u0275classMapInterpolate8:sp,\u0275\u0275classMapInterpolateV:ap,\u0275\u0275styleMap:dr,\u0275\u0275styleMapInterpolate1:lp,\u0275\u0275styleMapInterpolate2:cp,\u0275\u0275styleMapInterpolate3:up,\u0275\u0275styleMapInterpolate4:dp,\u0275\u0275styleMapInterpolate5:hp,\u0275\u0275styleMapInterpolate6:fp,\u0275\u0275styleMapInterpolate7:pp,\u0275\u0275styleMapInterpolate8:mp,\u0275\u0275styleMapInterpolateV:gp,\u0275\u0275styleProp:gc,\u0275\u0275stylePropInterpolate1:Ic,\u0275\u0275stylePropInterpolate2:Ac,\u0275\u0275stylePropInterpolate3:Pc,\u0275\u0275stylePropInterpolate4:Oc,\u0275\u0275stylePropInterpolate5:xc,\u0275\u0275stylePropInterpolate6:Rc,\u0275\u0275stylePropInterpolate7:Fc,\u0275\u0275stylePropInterpolate8:kc,\u0275\u0275stylePropInterpolateV:Nc,\u0275\u0275classProp:_c,\u0275\u0275advance:uh,\u0275\u0275template:ff,\u0275\u0275text:Jf,\u0275\u0275textInterpolate:vc,\u0275\u0275textInterpolate1:ta,\u0275\u0275textInterpolate2:bc,\u0275\u0275textInterpolate3:Cc,\u0275\u0275textInterpolate4:Ec,\u0275\u0275textInterpolate5:Dc,\u0275\u0275textInterpolate6:Tc,\u0275\u0275textInterpolate7:Mc,\u0275\u0275textInterpolate8:wc,\u0275\u0275textInterpolateV:Sc,\u0275\u0275i18n:Hp,\u0275\u0275i18nAttributes:$p,\u0275\u0275i18nExp:Wc,\u0275\u0275i18nStart:$c,\u0275\u0275i18nEnd:Uc,\u0275\u0275i18nApply:Up,\u0275\u0275i18nPostprocess:Wp,\u0275\u0275resolveWindow:Nd,\u0275\u0275resolveDocument:Ld,\u0275\u0275resolveBody:Bd,\u0275\u0275setComponentScope:M,\u0275\u0275setNgModuleScope:gn,\u0275\u0275sanitizeHtml:Cd,\u0275\u0275sanitizeStyle:Ed,\u0275\u0275sanitizeResourceUrl:Wa,\u0275\u0275sanitizeScript:Dd,\u0275\u0275sanitizeUrl:Ua,\u0275\u0275sanitizeUrlOrResourceUrl:wd,\u0275\u0275trustConstantHtml:Td,\u0275\u0275trustConstantResourceUrl:Md,forwardRef:I,resolveForwardRef:O}))();let No=null;function D0(){No=null}const bs=[];let iu=!1;function Hm(){if(!iu){iu=!0;try{for(let e=bs.length-1;e>=0;e--){const{moduleType:t,ngModule:n}=bs[e];n.declarations&&n.declarations.every($m)&&(bs.splice(e,1),w0(t,n))}}finally{iu=!1}}}function $m(e){return Array.isArray(e)?e.every($m):!!O(e)}function Um(e,t={}){Wm(e,t),function T0(e,t){bs.push({moduleType:e,ngModule:t})}(e,t)}function Wm(e,t,n=!1){const r=qi(t.declarations||Ot);let o=null;Object.defineProperty(e,Qe,{configurable:!0,get:()=>(null===o&&(o=ri().compileNgModule(Ti,`ng:///${e.name}/\u0275mod.js`,{type:e,bootstrap:qi(t.bootstrap||Ot).map(O),declarations:r.map(O),imports:qi(t.imports||Ot).map(O).map(Qm),exports:qi(t.exports||Ot).map(O).map(Qm),schemas:t.schemas?qi(t.schemas):null,id:t.id||null}),o.schemas||(o.schemas=[])),o)});let a=null;Object.defineProperty(e,Ie,{get:()=>{if(null===a){const g=ri();a=g.compileFactory(Ti,`ng:///${e.name}/\u0275fac.js`,{name:e.name,type:e,deps:Ns(e),target:g.FactoryTarget.NgModule,typeArgumentCount:0})}return a},configurable:!1});let h=null;Object.defineProperty(e,Rt,{get:()=>{if(null===h){const g={name:e.name,type:e,providers:t.providers||Ot,imports:[(t.imports||Ot).map(O),(t.exports||Ot).map(O)]};h=ri().compileInjector(Ti,`ng:///${e.name}/\u0275inj.js`,g)}return h},configurable:!1})}let pa=new WeakMap,ou=new WeakMap;function M0(){pa=new WeakMap,ou=new WeakMap,bs.length=0}function w0(e,t){const n=qi(t.declarations||Ot),r=Cs(e);n.forEach(o=>{o.hasOwnProperty(bn)?su(je(o),r):!o.hasOwnProperty(at)&&!o.hasOwnProperty(Ke)&&(o.ngSelectorScope=e)})}function su(e,t){e.directiveDefs=()=>Array.from(t.compilation.directives).map(n=>n.hasOwnProperty(bn)?je(n):ft(n)).filter(n=>!!n),e.pipeDefs=()=>Array.from(t.compilation.pipes).map(n=>Vt(n)),e.schemas=t.schemas,e.tView=null}function Cs(e){if(!au(e))throw new Error(`${e.name} does not have a module def (\u0275mod property)`);const t=Bt(e);if(null!==t.transitiveCompileScopes)return t.transitiveCompileScopes;const n={schemas:t.schemas||null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set}};return br(t.imports).forEach(r=>{const o=r;if(!au(o))throw new Error(`Importing ${o.name} which does not have a \u0275mod property`);const a=Cs(o);a.exported.directives.forEach(h=>n.compilation.directives.add(h)),a.exported.pipes.forEach(h=>n.compilation.pipes.add(h))}),br(t.declarations).forEach(r=>{Vt(r)?n.compilation.pipes.add(r):n.compilation.directives.add(r)}),br(t.exports).forEach(r=>{const o=r;if(au(o)){const a=Cs(o);a.exported.directives.forEach(h=>{n.compilation.directives.add(h),n.exported.directives.add(h)}),a.exported.pipes.forEach(h=>{n.compilation.pipes.add(h),n.exported.pipes.add(h)})}else Vt(o)?n.exported.pipes.add(o):n.exported.directives.add(o)}),t.transitiveCompileScopes=n,n}function Qm(e){return function S0(e){return void 0!==e.ngModule}(e)?e.ngModule:e}function au(e){return!!Bt(e)}let lu=0;function Zm(e,t){let n=null;(function w_(e,t){ad(t)&&(ao.set(e,t),Qo.add(e))})(e,t),Xm(e,t),Object.defineProperty(e,bn,{get:()=>{if(null===n){const r=ri();if(ad(t)){const L=[`Component '${e.name}' is not resolved:`];throw t.templateUrl&&L.push(` - templateUrl: ${t.templateUrl}`),t.styleUrls&&t.styleUrls.length&&L.push(` - styleUrls: ${JSON.stringify(t.styleUrls)}`),L.push("Did you run and wait for 'resolveComponentResources()'?"),new Error(L.join("\n"))}const o=function E0(){return No}();let a=t.preserveWhitespaces;void 0===a&&(a=null!==o&&void 0!==o.preserveWhitespaces&&o.preserveWhitespaces);let h=t.encapsulation;void 0===h&&(h=null!==o&&void 0!==o.defaultEncapsulation?o.defaultEncapsulation:mt.Emulated);const g=t.templateUrl||`ng:///${e.name}/template.html`,E=Object.assign(Object.assign({},Jm(e,t)),{typeSourceSpan:r.createParseSourceSpan("Component",e.name,g),template:t.template||"",preserveWhitespaces:a,styles:t.styles||Ot,animations:t.animations,directives:[],changeDetection:t.changeDetection,pipes:new Map,encapsulation:h,interpolation:t.interpolation,viewProviders:t.viewProviders||null});lu++;try{E.usesInheritance&&qm(e),n=r.compileComponent(Ti,g,E)}finally{lu--}if(0===lu&&Hm(),function I0(e){return void 0!==e.ngSelectorScope}(e)){const L=Cs(e.ngSelectorScope);su(n,L)}}return n},configurable:!1})}function cu(e,t){let n=null;Xm(e,t||{}),Object.defineProperty(e,at,{get:()=>{if(null===n){const r=Ym(e,t||{});n=ri().compileDirective(Ti,r.sourceMapUrl,r.metadata)}return n},configurable:!1})}function Ym(e,t){const n=e&&e.name,r=`ng:///${n}/\u0275dir.js`,o=ri(),a=Jm(e,t);return a.typeSourceSpan=o.createParseSourceSpan("Directive",n,r),a.usesInheritance&&qm(e),{metadata:a,sourceMapUrl:r}}function Xm(e,t){let n=null;Object.defineProperty(e,Ie,{get:()=>{if(null===n){const r=Ym(e,t),o=ri();n=o.compileFactory(Ti,`ng:///${e.name}/\u0275fac.js`,{name:r.metadata.name,type:r.metadata.type,typeArgumentCount:0,deps:Ns(e),target:o.FactoryTarget.Directive})}return n},configurable:!1})}function A0(e){return Object.getPrototypeOf(e.prototype)===Object.prototype}function Jm(e,t){const n=Na(),r=n.ownPropMetadata(e);return{name:e.name,type:e,selector:void 0!==t.selector?t.selector:null,host:t.host||Qt,propMetadata:r,inputs:t.inputs||Ot,outputs:t.outputs||Ot,queries:eg(e,r,tg),lifecycle:{usesOnChanges:n.hasLifecycleHook(e,"ngOnChanges")},typeSourceSpan:null,usesInheritance:!A0(e),exportAs:x0(t.exportAs),providers:t.providers||null,viewQueries:eg(e,r,ng)}}function qm(e){const t=Object.prototype;let n=Object.getPrototypeOf(e.prototype).constructor;for(;n&&n!==t;)!ft(n)&&!je(n)&&F0(n)&&cu(n,null),n=Object.getPrototypeOf(n)}function P0(e){return"string"==typeof e?rg(e):O(e)}function O0(e,t){return{propertyName:e,predicate:P0(t.selector),descendants:t.descendants,first:t.first,read:t.read?t.read:null,static:!!t.static,emitDistinctChangesOnly:!!t.emitDistinctChangesOnly}}function eg(e,t,n){const r=[];for(const o in t)if(t.hasOwnProperty(o)){const a=t[o];a.forEach(h=>{if(n(h)){if(!h.selector)throw new Error(`Can't construct a query for the property "${o}" of "${ne(e)}" since the query selector wasn't defined.`);if(a.some(ig))throw new Error("Cannot combine @Input decorators with query decorators");r.push(O0(o,h))}})}return r}function x0(e){return void 0===e?null:rg(e)}function tg(e){const t=e.ngMetadataName;return"ContentChild"===t||"ContentChildren"===t}function ng(e){const t=e.ngMetadataName;return"ViewChild"===t||"ViewChildren"===t}function ig(e){return"Input"===e.ngMetadataName}function rg(e){return e.split(",").map(t=>t.trim())}const R0=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function F0(e){const t=Na();if(R0.some(r=>t.hasLifecycleHook(e,r)))return!0;const n=t.propMetadata(e);for(const r in n){const o=n[r];for(let a=0;a<o.length;a++){const h=o[a],g=h.ngMetadataName;if(ig(h)||tg(h)||ng(h)||"Output"===g||"HostBinding"===g||"HostListener"===g)return!0}}return!1}function og(e,t){let n=null,r=null;Object.defineProperty(e,Ie,{get:()=>{if(null===r){const o=sg(e,t),a=ri();r=a.compileFactory(Ti,`ng:///${o.name}/\u0275fac.js`,{name:o.name,type:o.type,typeArgumentCount:0,deps:Ns(e),target:a.FactoryTarget.Pipe})}return r},configurable:!1}),Object.defineProperty(e,Ke,{get:()=>{if(null===n){const o=sg(e,t);n=ri().compilePipe(Ti,`ng:///${o.name}/\u0275pipe.js`,o)}return n},configurable:!1})}function sg(e,t){return{type:e,name:e.name,pipeName:t.name,pure:void 0===t.pure||t.pure}}const ag=ro("Directive",(e={})=>e,void 0,void 0,(e,t)=>cu(e,t)),k0=ro("Component",(e={})=>Object.assign({changeDetection:be.Default},e),ag,void 0,(e,t)=>Zm(e,t)),N0=ro("Pipe",e=>Object.assign({pure:!0},e),void 0,void 0,(e,t)=>og(e,t)),L0=jr("Input",e=>({bindingPropertyName:e})),B0=jr("Output",e=>({bindingPropertyName:e})),j0=jr("HostBinding",e=>({hostPropertyName:e})),V0=jr("HostListener",(e,t)=>({eventName:e,args:t})),H0=ro("NgModule",e=>e,void 0,void 0,(e,t)=>Um(e,t));function ma(...e){}const uu=new Yn("Application Initializer");let Lo=(()=>{class e{constructor(n){this.appInits=n,this.resolve=ma,this.reject=ma,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,o)=>{this.resolve=r,this.reject=o})}runInitializers(){if(this.initialized)return;const n=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let o=0;o<this.appInits.length;o++){const a=this.appInits[o]();if(ic(a))n.push(a);else if(xf(a)){const h=new Promise((g,E)=>{a.subscribe({complete:g,error:E})});n.push(h)}}Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),0===n.length&&r(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(si(uu,8))},e.\u0275prov=et({token:e,factory:e.\u0275fac}),e})();const lg=new Yn("AppId"),cg={provide:lg,useFactory:function $0(){return`${du()}${du()}${du()}`},deps:[]};function du(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const ug=new Yn("Platform Initializer"),dg=new Yn("Platform ID"),hg=new Yn("appBootstrapListener"),U0=new Yn("Application Packages Root URL");let fg=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=et({token:e,factory:e.\u0275fac}),e})();const ga=new Yn("LocaleId"),pg=new Yn("DefaultCurrencyCode"),W0=new Yn("Translations"),z0=new Yn("TranslationsFormat");var wr=(()=>((wr=wr||{})[wr.Error=0]="Error",wr[wr.Warning=1]="Warning",wr[wr.Ignore=2]="Ignore",wr))();class mg{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let hu=(()=>{class e{compileModuleSync(n){return new ua(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),a=br(Bt(n).declarations).reduce((h,g)=>{const E=je(g);return E&&h.push(new ca(E)),h},[]);return new mg(r,a)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=et({token:e,factory:e.\u0275fac}),e})();const gg=new Yn("compilerOptions");class K0{}const G0=(()=>Promise.resolve(0))();function fu(e){"undefined"==typeof Zone?G0.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Hi{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Mr(!1),this.onMicrotaskEmpty=new Mr(!1),this.onStable=new Mr(!1),this.onError=new Mr(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function Q0(){let e=Kt.requestAnimationFrame,t=Kt.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function X0(e){const t=()=>{!function Y0(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Kt,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,mu(e),e.isCheckStableRunning=!0,pu(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),mu(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,a,h,g)=>{try{return _g(e),n.invokeTask(o,a,h,g)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===a.type||e.shouldCoalesceRunChangeDetection)&&t(),yg(e)}},onInvoke:(n,r,o,a,h,g,E)=>{try{return _g(e),n.invoke(o,a,h,g,E)}finally{e.shouldCoalesceRunChangeDetection&&t(),yg(e)}},onHasTask:(n,r,o,a)=>{n.hasTask(o,a),r===o&&("microTask"==a.change?(e._hasPendingMicrotasks=a.microTask,mu(e),pu(e)):"macroTask"==a.change&&(e.hasPendingMacrotasks=a.macroTask))},onHandleError:(n,r,o,a)=>(n.handleError(o,a),e.runOutsideAngular(()=>e.onError.emit(a)),!1)})}(o)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Hi.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Hi.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){const a=this._inner,h=a.scheduleEventTask("NgZoneEvent: "+o,t,Z0,ma,ma);try{return a.runTask(h,n,r)}finally{a.cancelTask(h)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const Z0={};function pu(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function mu(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function _g(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function yg(e){e._nesting--,pu(e)}class vg{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Mr,this.onMicrotaskEmpty=new Mr,this.onStable=new Mr,this.onError=new Mr}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}}let bg=(()=>{class e{constructor(n){this._ngZone=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Hi.assertNotInAngularZone(),fu(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())fu(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,o){let a=-1;r&&r>0&&(a=setTimeout(()=>{this._callbacks=this._callbacks.filter(h=>h.timeoutId!==a),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:a,updateCb:o})}whenStable(n,r,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(n,r,o){return[]}}return e.\u0275fac=function(n){return new(n||e)(si(Hi))},e.\u0275prov=et({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=et({token:e,factory:e.\u0275fac}),e})();class J0{addToWindow(t){}findTestabilityInTree(t,n,r){return null}}function q0(e){_u=e}let pr,_u=new J0;function Cg(e,t,n){const r=new ua(n);return Promise.resolve(r)}function Eg(e){return e.isBoundToModule}const yu=new Yn("AllowMultipleToken");class eE{constructor(t,n){this.name=t,this.token=n}}function Dg(e){if(pr&&!pr.destroyed&&!pr.injector.get(yu,!1))throw new 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 h=vu();if(!h||h.injector.get(yu,!1))if(e)e(n.concat(a).concat({provide:o,useValue:!0}));else{const g=n.concat(a).concat({provide:o,useValue:!0},{provide:Il,useValue:"platform"});Dg(Vi.create({providers:g,name:r}))}return Mg()}}function Mg(e){const t=vu();if(!t)throw new 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 g=function nE(e,t){let n;return n="noop"===e?new vg:("zone.js"===e?void 0:e)||new Hi({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),n}(r?r.ngZone:void 0,{ngZoneEventCoalescing:r&&r.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:r&&r.ngZoneRunCoalescing||!1}),E=[{provide:Hi,useValue:g}];return g.run(()=>{const L=Vi.create({providers:E,parent:this.injector,name:n.moduleType.name}),z=n.create(L),ve=z.injector.get(qo,null);if(!ve)throw new V(402,"");return g.runOutsideAngular(()=>{const We=g.onError.subscribe({next:rt=>{ve.handleError(rt)}});z.onDestroy(()=>{Cu(this._modules,z),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}}(ve,g,()=>{const We=z.injector.get(Lo);return We.runInitializers(),We.donePromise.then(()=>(bp(z.injector.get(ga,us)||us),this._moduleDoBootstrap(z),z))})})}bootstrapModule(n,r=[]){const o=wg({},r);return Cg(0,0,n).then(a=>this.bootstrapModuleFactory(a,o))}_moduleDoBootstrap(n){const r=n.injector.get(Es);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new 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=et({token:e,factory:e.\u0275fac}),e})();function wg(e,t){return Array.isArray(t)?t.reduce(wg,e):Object.assign(Object.assign({},e),t)}let Es=(()=>{class e{constructor(n,r,o,a,h){this._zone=n,this._injector=r,this._exceptionHandler=o,this._componentFactoryResolver=a,this._initStatus=h,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const g=new _.y(L=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{L.next(this._stable),L.complete()})}),E=new _.y(L=>{let z;this._zone.runOutsideAngular(()=>{z=this._zone.onStable.subscribe(()=>{Hi.assertNotInAngularZone(),fu(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,L.next(!0))})})});const ve=this._zone.onUnstable.subscribe(()=>{Hi.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{L.next(!1)}))});return()=>{z.unsubscribe(),ve.unsubscribe()}});this.isStable=(0,u.T)(g,E.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),g=o.create(Vi.NULL,[],r||o.selector,a),E=g.location.nativeElement,L=g.injector.get(bg,null),z=L&&g.injector.get(gu);return L&&z&&z.registerApplication(E,L),g.onDestroy(()=>{this.detachView(g.hostView),Cu(this.components,g),z&&z.unregisterApplication(E)}),this._loadComponent(g),g}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(Hi),si(Vi),si(qo),si(ms),si(Lo))},e.\u0275prov=et({token:e,factory:e.\u0275fac}),e})();function Cu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let Ig=!0,Ag=!1;function oE(){return Ag=!0,Ig}function sE(){if(Ag)throw new Error("Cannot enable prod mode after platform setup.");Ig=!1}function aE(e){const t=sm(e);if(!t)throw Pg(e);return new ua(t)}function lE(e){const t=sm(e);if(!t)throw Pg(e);return t}function Pg(e){return new Error(`No module with ID ${e} loaded`)}let Og=(()=>{class e{}return e.__NG_ELEMENT_ID__=xg,e})();function xg(e){return function cE(e,t,n){if(Mi(e)&&!n){const r=Nt(e.index,t);return new Ro(r,r)}return 47&e.type?new Ro(t[16],t):null}(f(),wt(),16==(16&e))}class Rg extends Og{}class uE extends Rg{}class dE{constructor(t,n){this.name=t,this.callback=n}}function hE(e){return e.map(t=>t.nativeElement)}class Eu{constructor(t){this.nativeNode=t}get parent(){const t=this.nativeNode.parentNode;return t?new Ds(t):null}get injector(){return qh(this.nativeNode)}get componentInstance(){const t=this.nativeNode;return t&&(xl(t)||Xh(t))}get context(){return xl(this.nativeNode)||Yh(this.nativeNode)}get listeners(){return tf(this.nativeNode).filter(t=>"dom"===t.type)}get references(){return function jv(e){const t=yi(e);return null===t?{}:(void 0===t.localRefs&&(t.localRefs=function ry(e,t){const n=e[1].data[t];if(n&&n.localNames){const r={};let o=n.index+1;for(let a=0;a<n.localNames.length;a+=2)r[n.localNames[a]]=e[o],o++;return r}return null}(t.lView,t.nodeIndex)),t.localRefs||{})}(this.nativeNode)}get providerTokens(){return function Lv(e){const t=yi(e);if(null===t)return[];const r=t.lView[1],o=r.data[t.nodeIndex],a=[],g=o.directiveEnd;for(let E=1048575&o.providerIndexes;E<g;E++){let L=r.data[E];Hv(L)&&(L=L.type),a.push(L)}return a}(this.nativeNode)}}class Ds extends Eu{constructor(t){super(t)}get nativeElement(){return this.nativeNode.nodeType==Node.ELEMENT_NODE?this.nativeNode:null}get name(){const t=yi(this.nativeNode);return null!==t?t.lView[1].data[t.nodeIndex].value:this.nativeNode.nodeName}get properties(){const t=yi(this.nativeNode);if(null===t)return{};const n=t.lView,r=n[1].data,o=r[t.nodeIndex],a={};return function fE(e,t){if(e){let n=Object.getPrototypeOf(e);const r=Node.prototype;for(;null!==n&&n!==r;){const o=Object.getOwnPropertyDescriptors(n);for(let a in o)if(!a.startsWith("__")&&!a.startsWith("on")){const h=e[a];pE(h)&&(t[a]=h)}n=Object.getPrototypeOf(n)}}}(this.nativeElement,a),function mE(e,t,n,r){let o=t.propertyBindings;if(null!==o)for(let a=0;a<o.length;a++){const h=o[a],E=r[h].split("\ufffd"),L=E[0];if(E.length>1){let z=E[1];for(let ve=1;ve<E.length-1;ve++)z+=$(n[h+ve-1])+E[ve+1];e[L]=z}else e[L]=n[h]}}(a,o,n,r),a}get attributes(){const t={},n=this.nativeElement;if(!n)return t;const r=yi(n);if(null===r)return{};const a=r.lView[1].data[r.nodeIndex].attrs,h=[];if(a){let E=0;for(;E<a.length;){const L=a[E];if("string"!=typeof L)break;t[L]=a[E+1],h.push(L.toLowerCase()),E+=2}}const g=n.attributes;for(let E=0;E<g.length;E++){const L=g[E],z=L.name.toLowerCase();-1===h.indexOf(z)&&(t[z]=L.value)}return t}get styles(){return this.nativeElement&&this.nativeElement.style?this.nativeElement.style:{}}get classes(){const t={},r=this.nativeElement.className;return("string"!=typeof r?r.baseVal.split(" "):r.split(" ")).forEach(a=>t[a]=!0),t}get childNodes(){const t=this.nativeNode.childNodes,n=[];for(let r=0;r<t.length;r++)n.push(Su(t[r]));return n}get children(){const t=this.nativeElement;if(!t)return[];const n=t.children,r=[];for(let o=0;o<n.length;o++)r.push(Su(n[o]));return r}query(t){return this.queryAll(t)[0]||null}queryAll(t){const n=[];return Fg(this,t,n,!0),n}queryAllNodes(t){const n=[];return Fg(this,t,n,!1),n}triggerEventHandler(t,n){const r=this.nativeNode,o=[];this.listeners.forEach(a=>{if(a.name===t){const h=a.callback;h.call(r,n),o.push(h)}}),"function"==typeof r.eventListeners&&r.eventListeners(t).forEach(a=>{if(-1!==a.toString().indexOf("__ngUnwrap__")){const h=a("__ngUnwrap__");return-1===o.indexOf(h)&&h.call(r,n)}})}}function pE(e){return"string"==typeof e||"boolean"==typeof e||"number"==typeof e||null===e}function Fg(e,t,n,r){const o=yi(e.nativeNode);null!==o?Yr(o.lView[1].data[o.nodeIndex],o.lView,t,n,r,e.nativeNode):Tu(e.nativeNode,t,n,r)}function Yr(e,t,n,r,o,a){const h=function ze(e,t){const n=null===e?-1:e.index;return-1!==n?Ln(t[n]):null}(e,t);if(11&e.type){if(Du(h,n,r,o,a),Mi(e)){const E=Nt(e.index,t);E&&E[1].firstChild&&Yr(E[1].firstChild,E,n,r,o,a)}else e.child&&Yr(e.child,t,n,r,o,a),h&&Tu(h,n,r,o);const g=t[e.index];Gn(g)&&kg(g,n,r,o,a)}else if(4&e.type){const g=t[e.index];Du(g[7],n,r,o,a),kg(g,n,r,o,a)}else if(16&e.type){const g=t[16],L=g[6].projection[e.projection];if(Array.isArray(L))for(let z of L)Du(z,n,r,o,a);else if(L){const z=g[3];Yr(z[1].data[L.index],z,n,r,o,a)}}else e.child&&Yr(e.child,t,n,r,o,a);if(a!==h){const g=4&e.flags?e.projectionNext:e.next;g&&Yr(g,t,n,r,o,a)}}function kg(e,t,n,r,o){for(let a=10;a<e.length;a++){const h=e[a],g=h[1].firstChild;g&&Yr(g,h,t,n,r,o)}}function Du(e,t,n,r,o){if(o!==e){const a=_a(e);if(!a)return;(r&&a instanceof Ds&&t(a)&&-1===n.indexOf(a)||!r&&t(a)&&-1===n.indexOf(a))&&n.push(a)}}function Tu(e,t,n,r){const o=e.childNodes,a=o.length;for(let h=0;h<a;h++){const g=o[h],E=_a(g);E&&((r&&E instanceof Ds&&t(E)&&-1===n.indexOf(E)||!r&&t(E)&&-1===n.indexOf(E))&&n.push(E),Tu(g,t,n,r))}}const wu="__ng_debug__";function Su(e){return e instanceof Node?(e.hasOwnProperty(wu)||(e[wu]=e.nodeType==Node.ELEMENT_NODE?new Ds(e):new Eu(e)),e[wu]):null}const _a=Su,_E=function gE(e){return null},yE=Eu,vE=Ds;class Ng{constructor(){}supports(t){return os(t)}create(t){return new Lg(t)}}const bE=(e,t)=>t;class Lg{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||bE}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,a=null;for(;n||r;){const h=!r||n&&n.currentIndex<jg(r,o,a)?n:r,g=jg(h,o,a),E=h.currentIndex;if(h===r)o--,r=r._nextRemoved;else if(n=n._next,null==h.previousIndex)o++;else{a||(a=[]);const L=g-o,z=E-o;if(L!=z){for(let We=0;We<L;We++){const rt=We<a.length?a[We]:a[We]=0,yt=rt+We;z<=yt&&yt<L&&(a[We]=rt+1)}a[h.previousIndex]=z-L}}g!==E&&t(h,g,E)}}forEachPreviousItem(t){let n;for(n=this._previousItHead;null!==n;n=n._nextPrevious)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}forEachMovedItem(t){let n;for(n=this._movesHead;null!==n;n=n._nextMoved)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;null!==n;n=n._nextIdentityChange)t(n)}diff(t){if(null==t&&(t=[]),!os(t))throw new Error(`Error trying to diff '${D(t)}'. Only arrays and iterables are allowed`);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let o,a,h,n=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let g=0;g<this.length;g++)a=t[g],h=this._trackByFn(g,a),null!==n&&Object.is(n.trackById,h)?(r&&(n=this._verifyReinsertion(n,a,h,g)),Object.is(n.item,a)||this._addIdentityChange(n,a)):(n=this._mismatch(n,a,h,g),r=!0),n=n._next}else o=0,function qv(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[yo()]();let r;for(;!(r=n.next()).done;)t(r.value)}}(t,g=>{h=this._trackByFn(o,g),null!==n&&Object.is(n.trackById,h)?(r&&(n=this._verifyReinsertion(n,g,h,o)),Object.is(n.item,g)||this._addIdentityChange(n,g)):(n=this._mismatch(n,g,h,o),r=!0),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let a;return null===t?a=this._itTail:(a=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,a,o)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,o))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,a,o)):t=this._addAfter(new CE(n,r),a,o),t}_verifyReinsertion(t,n,r,o){let a=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==a?t=this._reinsertAfter(a,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const o=t._prevRemoved,a=t._nextRemoved;return null===o?this._removalsHead=a:o._nextRemoved=a,null===a?this._removalsTail=o:a._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const o=null===n?this._itHead:n._next;return t._next=o,t._prev=n,null===o?this._itTail=t:o._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new Bg),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Bg),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class CE{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class EE{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class Bg{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new EE,this.map.set(n,r)),r.add(t)}get(t,n){const o=this.map.get(t);return o?o.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function jg(e,t,n){const r=e.previousIndex;if(null===r)return r;let o=0;return n&&r<n.length&&(o=n[r]),r+t+o}class Vg{constructor(){}supports(t){return t instanceof Map||Ll(t)}create(){return new DE}}class DE{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let n;for(n=this._mapHead;null!==n;n=n._next)t(n)}forEachPreviousItem(t){let n;for(n=this._previousMapHead;null!==n;n=n._nextPrevious)t(n)}forEachChangedItem(t){let n;for(n=this._changesHead;null!==n;n=n._nextChanged)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}diff(t){if(t){if(!(t instanceof Map||Ll(t)))throw new Error(`Error trying to diff '${D(t)}'. Only maps and objects are allowed`)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._mapHead;if(this._appendAfter=null,this._forEach(t,(r,o)=>{if(n&&n.key===o)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const a=this._getOrCreateRecordForKey(o,r);n=this._insertBeforeOrAppend(n,a)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const o=this._records.get(t);this._maybeAddToChanges(o,n);const a=o._prev,h=o._next;return a&&(a._next=h),h&&(h._prev=a),o._next=null,o._prev=null,o}const r=new TE(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}}class TE{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Hg(){return new ya([new Ng])}let ya=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(null!=r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||Hg()),deps:[[e,new zr,new Wr]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(null!=r)return r;throw new Error(`Cannot find a differ supporting object '${n}' of type '${function ME(e){return e.name||typeof e}(n)}'`)}}return e.\u0275prov=et({token:e,providedIn:"root",factory:Hg}),e})();function $g(){return new va([new Vg])}let va=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||$g()),deps:[[e,new zr,new Wr]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(r)return r;throw new Error(`Cannot find a differ supporting object '${n}'`)}}return e.\u0275prov=et({token:e,providedIn:"root",factory:$g}),e})();const wE=[new Vg],Ug=new ya([new Ng]),Wg=new va(wE),IE=Tg(null,"core",[{provide:dg,useValue:"unknown"},{provide:bu,deps:[Vi]},{provide:gu,deps:[]},{provide:fg,deps:[]}]),RE=[{provide:Es,useClass:Es,deps:[Hi,Vi,qo,ms,Lo]},{provide:e0,deps:[Hi],useFactory:function FE(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(n){t.push(n)}}},{provide:Lo,useClass:Lo,deps:[[new Wr,uu]]},{provide:hu,useClass:hu,deps:[]},cg,{provide:ya,useFactory:function AE(){return Ug},deps:[]},{provide:va,useFactory:function PE(){return Wg},deps:[]},{provide:ga,useFactory:function OE(e){return e||function xE(){return"undefined"!=typeof $localize&&$localize.locale||us}()},deps:[[new Go(ga),new Wr,new zr]]},{provide:pg,useValue:"USD"}];let kE=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(si(Es))},e.\u0275mod=Ut({type:e}),e.\u0275inj=he({providers:RE}),e})();const NE=!0;function LE(e){return ri().compileDirectiveDeclaration(Ti,`ng:///${e.type.name}/\u0275fac.js`,e)}function BE(e){var t,n;nm(e.type,e.decorators,null!==(t=e.ctorParameters)&&void 0!==t?t:null,null!==(n=e.propDecorators)&&void 0!==n?n:null)}function jE(e){return ri().compileComponentDeclaration(Ti,`ng:///${e.type.name}/\u0275cmp.js`,e)}function VE(e){return ri(function HE(e){switch(e){case ii.Directive:return"directive";case ii.Component:return"component";case ii.Injectable:return"injectable";case ii.Pipe:return"pipe";case ii.NgModule:return"NgModule"}}(e.target)).compileFactoryDeclaration(Ti,`ng:///${e.type.name}/\u0275fac.js`,e)}function $E(e){return ri().compileInjectableDeclaration(Ti,`ng:///${e.type.name}/\u0275prov.js`,e)}function UE(e){return ri().compileInjectorDeclaration(Ti,`ng:///${e.type.name}/\u0275inj.js`,e)}function WE(e){return ri().compileNgModuleDeclaration(Ti,`ng:///${e.type.name}/\u0275mod.js`,e)}function zE(e){return ri().compilePipeDeclaration(Ti,`ng:///${e.type.name}/\u0275pipe.js`,e)}},3075:(Be,m,l)=>{"use strict";l.r(m),l.d(m,{AbstractControl:()=>jt,AbstractControlDirective:()=>Je,AbstractFormGroupDirective:()=>Un,COMPOSITION_BUFFER_MODE:()=>w,CheckboxControlValueAccessor:()=>y,CheckboxRequiredValidator:()=>ki,ControlContainer:()=>Tt,DefaultValueAccessor:()=>k,EmailValidator:()=>Rn,FormArray:()=>Ht,FormArrayName:()=>Di,FormBuilder:()=>In,FormControl:()=>qt,FormControlDirective:()=>Wi,FormControlName:()=>Ki,FormGroup:()=>vn,FormGroupDirective:()=>wi,FormGroupName:()=>ci,FormsModule:()=>Nt,MaxLengthValidator:()=>x,MaxValidator:()=>Zi,MinLengthValidator:()=>ar,MinValidator:()=>Ri,NG_ASYNC_VALIDATORS:()=>ne,NG_VALIDATORS:()=>$,NG_VALUE_ACCESSOR:()=>D,NgControl:()=>pt,NgControlStatus:()=>N,NgControlStatusGroup:()=>ie,NgForm:()=>Hn,NgModel:()=>Gn,NgModelGroup:()=>ni,NgSelectOption:()=>_r,NumberValueAccessor:()=>hi,PatternValidator:()=>R,RadioControlValueAccessor:()=>Qn,RangeValueAccessor:()=>Ei,ReactiveFormsModule:()=>Dn,RequiredValidator:()=>Yi,SelectControlValueAccessor:()=>Ii,SelectMultipleControlValueAccessor:()=>mi,VERSION:()=>un,Validators:()=>fe,\u0275InternalFormsSharedModule:()=>Dt,\u0275NgNoValidate:()=>Ci,\u0275NgSelectMultipleOption:()=>ir});var i=l(5e3),d=l(9808),_=l(188),u=l(4128),s=l(4004);let v=(()=>{class F{constructor(b,J){this._renderer=b,this._elementRef=J,this.onChange=ut=>{},this.onTouched=()=>{}}setProperty(b,J){this._renderer.setProperty(this._elementRef.nativeElement,b,J)}registerOnTouched(b){this.onTouched=b}registerOnChange(b){this.onChange=b}setDisabledState(b){this.setProperty("disabled",b)}}return F.\u0275fac=function(b){return new(b||F)(i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(i.ElementRef))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F}),F})(),C=(()=>{class F extends v{}return F.\u0275fac=function(){let P;return function(J){return(P||(P=i.\u0275\u0275getInheritedFactory(F)))(J||F)}}(),F.\u0275dir=i.\u0275\u0275defineDirective({type:F,features:[i.\u0275\u0275InheritDefinitionFeature]}),F})();const D=new i.InjectionToken("NgValueAccessor"),p={provide:D,useExisting:(0,i.forwardRef)(()=>y),multi:!0};let y=(()=>{class F extends C{writeValue(b){this.setProperty("checked",b)}}return F.\u0275fac=function(){let P;return function(J){return(P||(P=i.\u0275\u0275getInheritedFactory(F)))(J||F)}}(),F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(b,J){1&b&&i.\u0275\u0275listener("change",function($t){return J.onChange($t.target.checked)})("blur",function(){return J.onTouched()})},features:[i.\u0275\u0275ProvidersFeature([p]),i.\u0275\u0275InheritDefinitionFeature]}),F})();const I={provide:D,useExisting:(0,i.forwardRef)(()=>k),multi:!0},w=new i.InjectionToken("CompositionEventMode");let k=(()=>{class F extends v{constructor(b,J,ut){super(b,J),this._compositionMode=ut,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function O(){const F=(0,d.\u0275getDOM)()?(0,d.\u0275getDOM)().getUserAgent():"";return/android (\d+)/.test(F.toLowerCase())}())}writeValue(b){this.setProperty("value",null==b?"":b)}_handleInput(b){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(b)}_compositionStart(){this._composing=!0}_compositionEnd(b){this._composing=!1,this._compositionMode&&this.onChange(b)}}return F.\u0275fac=function(b){return new(b||F)(i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(w,8))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(b,J){1&b&&i.\u0275\u0275listener("input",function($t){return J._handleInput($t.target.value)})("blur",function(){return J.onTouched()})("compositionstart",function(){return J._compositionStart()})("compositionend",function($t){return J._compositionEnd($t.target.value)})},features:[i.\u0275\u0275ProvidersFeature([I]),i.\u0275\u0275InheritDefinitionFeature]}),F})();function V(F){return null==F||0===F.length}function ue(F){return null!=F&&"number"==typeof F.length}const $=new i.InjectionToken("NgValidators"),ne=new i.InjectionToken("NgAsyncValidators"),De=/^(?=.{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 fe{static min(P){return _e(P)}static max(P){return le(P)}static required(P){return Se(P)}static requiredTrue(P){return Le(P)}static email(P){return Xe(P)}static minLength(P){return lt(P)}static maxLength(P){return X(P)}static pattern(P){return me(P)}static nullValidator(P){return null}static compose(P){return Me(P)}static composeAsync(P){return vt(P)}}function _e(F){return P=>{if(V(P.value)||V(F))return null;const b=parseFloat(P.value);return!isNaN(b)&&b<F?{min:{min:F,actual:P.value}}:null}}function le(F){return P=>{if(V(P.value)||V(F))return null;const b=parseFloat(P.value);return!isNaN(b)&&b>F?{max:{max:F,actual:P.value}}:null}}function Se(F){return V(F.value)?{required:!0}:null}function Le(F){return!0===F.value?null:{required:!0}}function Xe(F){return V(F.value)||De.test(F.value)?null:{email:!0}}function lt(F){return P=>V(P.value)||!ue(P.value)?null:P.value.length<F?{minlength:{requiredLength:F,actualLength:P.value.length}}:null}function X(F){return P=>ue(P.value)&&P.value.length>F?{maxlength:{requiredLength:F,actualLength:P.value.length}}:null}function me(F){if(!F)return K;let P,b;return"string"==typeof F?(b="","^"!==F.charAt(0)&&(b+="^"),b+=F,"$"!==F.charAt(F.length-1)&&(b+="$"),P=new RegExp(b)):(b=F.toString(),P=F),J=>{if(V(J.value))return null;const ut=J.value;return P.test(ut)?null:{pattern:{requiredPattern:b,actualValue:ut}}}}function K(F){return null}function oe(F){return null!=F}function ke(F){const P=(0,i.\u0275isPromise)(F)?(0,_.D)(F):F;return(0,i.\u0275isObservable)(P),P}function de(F){let P={};return F.forEach(b=>{P=null!=b?Object.assign(Object.assign({},P),b):P}),0===Object.keys(P).length?null:P}function Ue(F,P){return P.map(b=>b(F))}function qe(F){return F.map(P=>function pe(F){return!F.validate}(P)?P:b=>P.validate(b))}function Me(F){if(!F)return null;const P=F.filter(oe);return 0==P.length?null:function(b){return de(Ue(b,P))}}function Ge(F){return null!=F?Me(qe(F)):null}function vt(F){if(!F)return null;const P=F.filter(oe);return 0==P.length?null:function(b){const J=Ue(b,P).map(ke);return(0,u.D)(J).pipe((0,s.U)(de))}}function St(F){return null!=F?vt(qe(F)):null}function Re(F,P){return null===F?[P]:Array.isArray(F)?[...F,P]:[F,P]}function et(F){return F._rawValidators}function Y(F){return F._rawAsyncValidators}function he(F){return F?Array.isArray(F)?F:[F]:[]}function Ee(F,P){return Array.isArray(F)?F.includes(P):F===P}function Ae(F,P){const b=he(P);return he(F).forEach(ut=>{Ee(b,ut)||b.push(ut)}),b}function ge(F,P){return he(P).filter(b=>!Ee(F,b))}class Je{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(P){this._rawValidators=P||[],this._composedValidatorFn=Ge(this._rawValidators)}_setAsyncValidators(P){this._rawAsyncValidators=P||[],this._composedAsyncValidatorFn=St(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(P){this._onDestroyCallbacks.push(P)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(P=>P()),this._onDestroyCallbacks=[]}reset(P){this.control&&this.control.reset(P)}hasError(P,b){return!!this.control&&this.control.hasError(P,b)}getError(P,b){return this.control?this.control.getError(P,b):null}}class pt extends Je{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Tt extends Je{get formDirective(){return null}get path(){return null}}class Rt{constructor(P){this._cd=P}is(P){var b,J,ut;return"submitted"===P?!!(null===(b=this._cd)||void 0===b?void 0:b.submitted):!!(null===(ut=null===(J=this._cd)||void 0===J?void 0:J.control)||void 0===ut?void 0:ut[P])}}let N=(()=>{class F extends Rt{constructor(b){super(b)}}return F.\u0275fac=function(b){return new(b||F)(i.\u0275\u0275directiveInject(pt,2))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(b,J){2&b&&i.\u0275\u0275classProp("ng-untouched",J.is("untouched"))("ng-touched",J.is("touched"))("ng-pristine",J.is("pristine"))("ng-dirty",J.is("dirty"))("ng-valid",J.is("valid"))("ng-invalid",J.is("invalid"))("ng-pending",J.is("pending"))},features:[i.\u0275\u0275InheritDefinitionFeature]}),F})(),ie=(()=>{class F extends Rt{constructor(b){super(b)}}return F.\u0275fac=function(b){return new(b||F)(i.\u0275\u0275directiveInject(Tt,10))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(b,J){2&b&&i.\u0275\u0275classProp("ng-untouched",J.is("untouched"))("ng-touched",J.is("touched"))("ng-pristine",J.is("pristine"))("ng-dirty",J.is("dirty"))("ng-valid",J.is("valid"))("ng-invalid",J.is("invalid"))("ng-pending",J.is("pending"))("ng-submitted",J.is("submitted"))},features:[i.\u0275\u0275InheritDefinitionFeature]}),F})();function Qt(F,P){return[...P.path,F]}function Ot(F,P){Qe(F,P),P.valueAccessor.writeValue(F.value),function Te(F,P){P.valueAccessor.registerOnChange(b=>{F._pendingValue=b,F._pendingChange=!0,F._pendingDirty=!0,"change"===F.updateOn&&A(F,P)})}(F,P),function M(F,P){const b=(J,ut)=>{P.valueAccessor.writeValue(J),ut&&P.viewToModelUpdate(J)};F.registerOnChange(b),P._registerOnDestroy(()=>{F._unregisterOnChange(b)})}(F,P),function S(F,P){P.valueAccessor.registerOnTouched(()=>{F._pendingTouched=!0,"blur"===F.updateOn&&F._pendingChange&&A(F,P),"submit"!==F.updateOn&&F.markAsTouched()})}(F,P),function Ke(F,P){if(P.valueAccessor.setDisabledState){const b=J=>{P.valueAccessor.setDisabledState(J)};F.registerOnDisabledChange(b),P._registerOnDestroy(()=>{F._unregisterOnDisabledChange(b)})}}(F,P)}function bn(F,P,b=!0){const J=()=>{};P.valueAccessor&&(P.valueAccessor.registerOnChange(J),P.valueAccessor.registerOnTouched(J)),Ie(F,P),F&&(P._invokeOnDestroyCallbacks(),F._registerOnCollectionChange(()=>{}))}function at(F,P){F.forEach(b=>{b.registerOnValidatorChange&&b.registerOnValidatorChange(P)})}function Qe(F,P){const b=et(F);null!==P.validator?F.setValidators(Re(b,P.validator)):"function"==typeof b&&F.setValidators([b]);const J=Y(F);null!==P.asyncValidator?F.setAsyncValidators(Re(J,P.asyncValidator)):"function"==typeof J&&F.setAsyncValidators([J]);const ut=()=>F.updateValueAndValidity();at(P._rawValidators,ut),at(P._rawAsyncValidators,ut)}function Ie(F,P){let b=!1;if(null!==F){if(null!==P.validator){const ut=et(F);if(Array.isArray(ut)&&ut.length>0){const $t=ut.filter(An=>An!==P.validator);$t.length!==ut.length&&(b=!0,F.setValidators($t))}}if(null!==P.asyncValidator){const ut=Y(F);if(Array.isArray(ut)&&ut.length>0){const $t=ut.filter(An=>An!==P.asyncValidator);$t.length!==ut.length&&(b=!0,F.setAsyncValidators($t))}}}const J=()=>{};return at(P._rawValidators,J),at(P._rawAsyncValidators,J),b}function A(F,P){F._pendingDirty&&F.markAsDirty(),F.setValue(F._pendingValue,{emitModelToViewChange:!1}),P.viewToModelUpdate(F._pendingValue),F._pendingChange=!1}function G(F,P){Qe(F,P)}function gn(F,P){if(!F.hasOwnProperty("model"))return!1;const b=F.model;return!!b.isFirstChange()||!Object.is(P,b.currentValue)}function $e(F,P){F._syncPendingControls(),P.forEach(b=>{const J=b.control;"submit"===J.updateOn&&J._pendingChange&&(b.viewToModelUpdate(J._pendingValue),J._pendingChange=!1)})}function ce(F,P){if(!P)return null;let b,J,ut;return Array.isArray(P),P.forEach($t=>{$t.constructor===k?b=$t:function He(F){return Object.getPrototypeOf(F.constructor)===C}($t)?J=$t:ut=$t}),ut||J||b||null}function je(F,P){const b=F.indexOf(P);b>-1&&F.splice(b,1)}const Bt="VALID",fn="INVALID",En="PENDING",$n="DISABLED";function Jn(F){return(H(F)?F.validators:F)||null}function Nn(F){return Array.isArray(F)?Ge(F):F||null}function zn(F,P){return(H(P)?P.asyncValidators:F)||null}function Bn(F){return Array.isArray(F)?St(F):F||null}function H(F){return null!=F&&!Array.isArray(F)&&"object"==typeof F}const we=F=>F instanceof qt,W=F=>F instanceof vn,Pe=F=>F instanceof Ht;function tt(F){return we(F)?F.value:F.getRawValue()}function ct(F,P){const b=W(F),J=F.controls;if(!(b?Object.keys(J):J).length)throw new i.\u0275RuntimeError(1e3,"");if(!J[P])throw new i.\u0275RuntimeError(1001,"")}function At(F,P){W(F),F._forEachChild((J,ut)=>{if(void 0===P[ut])throw new i.\u0275RuntimeError(1002,"")})}class jt{constructor(P,b){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=P,this._rawAsyncValidators=b,this._composedValidatorFn=Nn(this._rawValidators),this._composedAsyncValidatorFn=Bn(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(P){this._rawValidators=this._composedValidatorFn=P}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(P){this._rawAsyncValidators=this._composedAsyncValidatorFn=P}get parent(){return this._parent}get valid(){return this.status===Bt}get invalid(){return this.status===fn}get pending(){return this.status==En}get disabled(){return this.status===$n}get enabled(){return this.status!==$n}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(P){this._rawValidators=P,this._composedValidatorFn=Nn(P)}setAsyncValidators(P){this._rawAsyncValidators=P,this._composedAsyncValidatorFn=Bn(P)}addValidators(P){this.setValidators(Ae(P,this._rawValidators))}addAsyncValidators(P){this.setAsyncValidators(Ae(P,this._rawAsyncValidators))}removeValidators(P){this.setValidators(ge(P,this._rawValidators))}removeAsyncValidators(P){this.setAsyncValidators(ge(P,this._rawAsyncValidators))}hasValidator(P){return Ee(this._rawValidators,P)}hasAsyncValidator(P){return Ee(this._rawAsyncValidators,P)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(P={}){this.touched=!0,this._parent&&!P.onlySelf&&this._parent.markAsTouched(P)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(P=>P.markAllAsTouched())}markAsUntouched(P={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(b=>{b.markAsUntouched({onlySelf:!0})}),this._parent&&!P.onlySelf&&this._parent._updateTouched(P)}markAsDirty(P={}){this.pristine=!1,this._parent&&!P.onlySelf&&this._parent.markAsDirty(P)}markAsPristine(P={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(b=>{b.markAsPristine({onlySelf:!0})}),this._parent&&!P.onlySelf&&this._parent._updatePristine(P)}markAsPending(P={}){this.status=En,!1!==P.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!P.onlySelf&&this._parent.markAsPending(P)}disable(P={}){const b=this._parentMarkedDirty(P.onlySelf);this.status=$n,this.errors=null,this._forEachChild(J=>{J.disable(Object.assign(Object.assign({},P),{onlySelf:!0}))}),this._updateValue(),!1!==P.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},P),{skipPristineCheck:b})),this._onDisabledChange.forEach(J=>J(!0))}enable(P={}){const b=this._parentMarkedDirty(P.onlySelf);this.status=Bt,this._forEachChild(J=>{J.enable(Object.assign(Object.assign({},P),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:P.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},P),{skipPristineCheck:b})),this._onDisabledChange.forEach(J=>J(!1))}_updateAncestors(P){this._parent&&!P.onlySelf&&(this._parent.updateValueAndValidity(P),P.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(P){this._parent=P}updateValueAndValidity(P={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Bt||this.status===En)&&this._runAsyncValidator(P.emitEvent)),!1!==P.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!P.onlySelf&&this._parent.updateValueAndValidity(P)}_updateTreeValidity(P={emitEvent:!0}){this._forEachChild(b=>b._updateTreeValidity(P)),this.updateValueAndValidity({onlySelf:!0,emitEvent:P.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?$n:Bt}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(P){if(this.asyncValidator){this.status=En,this._hasOwnPendingAsyncValidator=!0;const b=ke(this.asyncValidator(this));this._asyncValidationSubscription=b.subscribe(J=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(J,{emitEvent:P})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(P,b={}){this.errors=P,this._updateControlsErrors(!1!==b.emitEvent)}get(P){return function di(F,P,b){if(null==P||(Array.isArray(P)||(P=P.split(b)),Array.isArray(P)&&0===P.length))return null;let J=F;return P.forEach(ut=>{J=W(J)?J.controls.hasOwnProperty(ut)?J.controls[ut]:null:Pe(J)&&J.at(ut)||null}),J}(this,P,".")}getError(P,b){const J=b?this.get(b):this;return J&&J.errors?J.errors[P]:null}hasError(P,b){return!!this.getError(P,b)}get root(){let P=this;for(;P._parent;)P=P._parent;return P}_updateControlsErrors(P){this.status=this._calculateStatus(),P&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(P)}_initObservables(){this.valueChanges=new i.EventEmitter,this.statusChanges=new i.EventEmitter}_calculateStatus(){return this._allControlsDisabled()?$n:this.errors?fn:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(En)?En:this._anyControlsHaveStatus(fn)?fn:Bt}_anyControlsHaveStatus(P){return this._anyControls(b=>b.status===P)}_anyControlsDirty(){return this._anyControls(P=>P.dirty)}_anyControlsTouched(){return this._anyControls(P=>P.touched)}_updatePristine(P={}){this.pristine=!this._anyControlsDirty(),this._parent&&!P.onlySelf&&this._parent._updatePristine(P)}_updateTouched(P={}){this.touched=this._anyControlsTouched(),this._parent&&!P.onlySelf&&this._parent._updateTouched(P)}_isBoxedValue(P){return"object"==typeof P&&null!==P&&2===Object.keys(P).length&&"value"in P&&"disabled"in P}_registerOnCollectionChange(P){this._onCollectionChange=P}_setUpdateStrategy(P){H(P)&&null!=P.updateOn&&(this._updateOn=P.updateOn)}_parentMarkedDirty(P){return!P&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class qt extends jt{constructor(P=null,b,J){super(Jn(b),zn(J,b)),this._onChange=[],this._pendingChange=!1,this._applyFormState(P),this._setUpdateStrategy(b),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(P,b={}){this.value=this._pendingValue=P,this._onChange.length&&!1!==b.emitModelToViewChange&&this._onChange.forEach(J=>J(this.value,!1!==b.emitViewToModelChange)),this.updateValueAndValidity(b)}patchValue(P,b={}){this.setValue(P,b)}reset(P=null,b={}){this._applyFormState(P),this.markAsPristine(b),this.markAsUntouched(b),this.setValue(this.value,b),this._pendingChange=!1}_updateValue(){}_anyControls(P){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(P){this._onChange.push(P)}_unregisterOnChange(P){je(this._onChange,P)}registerOnDisabledChange(P){this._onDisabledChange.push(P)}_unregisterOnDisabledChange(P){je(this._onDisabledChange,P)}_forEachChild(P){}_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(P){this._isBoxedValue(P)?(this.value=this._pendingValue=P.value,P.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=P}}class vn extends jt{constructor(P,b,J){super(Jn(b),zn(J,b)),this.controls=P,this._initObservables(),this._setUpdateStrategy(b),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(P,b){return this.controls[P]?this.controls[P]:(this.controls[P]=b,b.setParent(this),b._registerOnCollectionChange(this._onCollectionChange),b)}addControl(P,b,J={}){this.registerControl(P,b),this.updateValueAndValidity({emitEvent:J.emitEvent}),this._onCollectionChange()}removeControl(P,b={}){this.controls[P]&&this.controls[P]._registerOnCollectionChange(()=>{}),delete this.controls[P],this.updateValueAndValidity({emitEvent:b.emitEvent}),this._onCollectionChange()}setControl(P,b,J={}){this.controls[P]&&this.controls[P]._registerOnCollectionChange(()=>{}),delete this.controls[P],b&&this.registerControl(P,b),this.updateValueAndValidity({emitEvent:J.emitEvent}),this._onCollectionChange()}contains(P){return this.controls.hasOwnProperty(P)&&this.controls[P].enabled}setValue(P,b={}){At(this,P),Object.keys(P).forEach(J=>{ct(this,J),this.controls[J].setValue(P[J],{onlySelf:!0,emitEvent:b.emitEvent})}),this.updateValueAndValidity(b)}patchValue(P,b={}){null!=P&&(Object.keys(P).forEach(J=>{this.controls[J]&&this.controls[J].patchValue(P[J],{onlySelf:!0,emitEvent:b.emitEvent})}),this.updateValueAndValidity(b))}reset(P={},b={}){this._forEachChild((J,ut)=>{J.reset(P[ut],{onlySelf:!0,emitEvent:b.emitEvent})}),this._updatePristine(b),this._updateTouched(b),this.updateValueAndValidity(b)}getRawValue(){return this._reduceChildren({},(P,b,J)=>(P[J]=tt(b),P))}_syncPendingControls(){let P=this._reduceChildren(!1,(b,J)=>!!J._syncPendingControls()||b);return P&&this.updateValueAndValidity({onlySelf:!0}),P}_forEachChild(P){Object.keys(this.controls).forEach(b=>{const J=this.controls[b];J&&P(J,b)})}_setUpControls(){this._forEachChild(P=>{P.setParent(this),P._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(P){for(const b of Object.keys(this.controls)){const J=this.controls[b];if(this.contains(b)&&P(J))return!0}return!1}_reduceValue(){return this._reduceChildren({},(P,b,J)=>((b.enabled||this.disabled)&&(P[J]=b.value),P))}_reduceChildren(P,b){let J=P;return this._forEachChild((ut,$t)=>{J=b(J,ut,$t)}),J}_allControlsDisabled(){for(const P of Object.keys(this.controls))if(this.controls[P].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class Ht extends jt{constructor(P,b,J){super(Jn(b),zn(J,b)),this.controls=P,this._initObservables(),this._setUpdateStrategy(b),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(P){return this.controls[P]}push(P,b={}){this.controls.push(P),this._registerControl(P),this.updateValueAndValidity({emitEvent:b.emitEvent}),this._onCollectionChange()}insert(P,b,J={}){this.controls.splice(P,0,b),this._registerControl(b),this.updateValueAndValidity({emitEvent:J.emitEvent})}removeAt(P,b={}){this.controls[P]&&this.controls[P]._registerOnCollectionChange(()=>{}),this.controls.splice(P,1),this.updateValueAndValidity({emitEvent:b.emitEvent})}setControl(P,b,J={}){this.controls[P]&&this.controls[P]._registerOnCollectionChange(()=>{}),this.controls.splice(P,1),b&&(this.controls.splice(P,0,b),this._registerControl(b)),this.updateValueAndValidity({emitEvent:J.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(P,b={}){At(this,P),P.forEach((J,ut)=>{ct(this,ut),this.at(ut).setValue(J,{onlySelf:!0,emitEvent:b.emitEvent})}),this.updateValueAndValidity(b)}patchValue(P,b={}){null!=P&&(P.forEach((J,ut)=>{this.at(ut)&&this.at(ut).patchValue(J,{onlySelf:!0,emitEvent:b.emitEvent})}),this.updateValueAndValidity(b))}reset(P=[],b={}){this._forEachChild((J,ut)=>{J.reset(P[ut],{onlySelf:!0,emitEvent:b.emitEvent})}),this._updatePristine(b),this._updateTouched(b),this.updateValueAndValidity(b)}getRawValue(){return this.controls.map(P=>tt(P))}clear(P={}){this.controls.length<1||(this._forEachChild(b=>b._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:P.emitEvent}))}_syncPendingControls(){let P=this.controls.reduce((b,J)=>!!J._syncPendingControls()||b,!1);return P&&this.updateValueAndValidity({onlySelf:!0}),P}_forEachChild(P){this.controls.forEach((b,J)=>{P(b,J)})}_updateValue(){this.value=this.controls.filter(P=>P.enabled||this.disabled).map(P=>P.value)}_anyControls(P){return this.controls.some(b=>b.enabled&&P(b))}_setUpControls(){this._forEachChild(P=>this._registerControl(P))}_allControlsDisabled(){for(const P of this.controls)if(P.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(P){P.setParent(this),P._registerOnCollectionChange(this._onCollectionChange)}}const On={provide:Tt,useExisting:(0,i.forwardRef)(()=>Hn)},cn=(()=>Promise.resolve(null))();let Hn=(()=>{class F extends Tt{constructor(b,J){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new i.EventEmitter,this.form=new vn({},Ge(b),St(J))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(b){cn.then(()=>{const J=this._findContainer(b.path);b.control=J.registerControl(b.name,b.control),Ot(b.control,b),b.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(b)})}getControl(b){return this.form.get(b.path)}removeControl(b){cn.then(()=>{const J=this._findContainer(b.path);J&&J.removeControl(b.name),je(this._directives,b)})}addFormGroup(b){cn.then(()=>{const J=this._findContainer(b.path),ut=new vn({});G(ut,b),J.registerControl(b.name,ut),ut.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(b){cn.then(()=>{const J=this._findContainer(b.path);J&&J.removeControl(b.name)})}getFormGroup(b){return this.form.get(b.path)}updateModel(b,J){cn.then(()=>{this.form.get(b.path).setValue(J)})}setValue(b){this.control.setValue(b)}onSubmit(b){return this.submitted=!0,$e(this.form,this._directives),this.ngSubmit.emit(b),!1}onReset(){this.resetForm()}resetForm(b){this.form.reset(b),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(b){return b.pop(),b.length?this.form.get(b):this.form}}return F.\u0275fac=function(b){return new(b||F)(i.\u0275\u0275directiveInject($,10),i.\u0275\u0275directiveInject(ne,10))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(b,J){1&b&&i.\u0275\u0275listener("submit",function($t){return J.onSubmit($t)})("reset",function(){return J.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.\u0275\u0275ProvidersFeature([On]),i.\u0275\u0275InheritDefinitionFeature]}),F})(),Un=(()=>{class F extends Tt{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Qt(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return F.\u0275fac=function(){let P;return function(J){return(P||(P=i.\u0275\u0275getInheritedFactory(F)))(J||F)}}(),F.\u0275dir=i.\u0275\u0275defineDirective({type:F,features:[i.\u0275\u0275InheritDefinitionFeature]}),F})();const mn={provide:Tt,useExisting:(0,i.forwardRef)(()=>ni)};let ni=(()=>{class F extends Un{constructor(b,J,ut){super(),this._parent=b,this._setValidators(J),this._setAsyncValidators(ut)}_checkParentType(){}}return F.\u0275fac=function(b){return new(b||F)(i.\u0275\u0275directiveInject(Tt,5),i.\u0275\u0275directiveInject($,10),i.\u0275\u0275directiveInject(ne,10))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[i.\u0275\u0275ProvidersFeature([mn]),i.\u0275\u0275InheritDefinitionFeature]}),F})();const li={provide:pt,useExisting:(0,i.forwardRef)(()=>Gn)},Kn=(()=>Promise.resolve(null))();let Gn=(()=>{class F extends pt{constructor(b,J,ut,$t){super(),this.control=new qt,this._registered=!1,this.update=new i.EventEmitter,this._parent=b,this._setValidators(J),this._setAsyncValidators(ut),this.valueAccessor=ce(0,$t)}ngOnChanges(b){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in b&&this._updateDisabled(b),gn(b,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?Qt(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(b){this.viewModel=b,this.update.emit(b)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Ot(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(b){Kn.then(()=>{this.control.setValue(b,{emitViewToModelChange:!1})})}_updateDisabled(b){const J=b.isDisabled.currentValue,ut=""===J||J&&"false"!==J;Kn.then(()=>{ut&&!this.control.disabled?this.control.disable():!ut&&this.control.disabled&&this.control.enable()})}}return F.\u0275fac=function(b){return new(b||F)(i.\u0275\u0275directiveInject(Tt,9),i.\u0275\u0275directiveInject($,10),i.\u0275\u0275directiveInject(ne,10),i.\u0275\u0275directiveInject(D,10))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[i.\u0275\u0275ProvidersFeature([li]),i.\u0275\u0275InheritDefinitionFeature,i.\u0275\u0275NgOnChangesFeature]}),F})(),Ci=(()=>{class F{}return F.\u0275fac=function(b){return new(b||F)},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),F})();const Mi={provide:D,useExisting:(0,i.forwardRef)(()=>hi),multi:!0};let hi=(()=>{class F extends C{writeValue(b){this.setProperty("value",null==b?"":b)}registerOnChange(b){this.onChange=J=>{b(""==J?null:parseFloat(J))}}}return F.\u0275fac=function(){let P;return function(J){return(P||(P=i.\u0275\u0275getInheritedFactory(F)))(J||F)}}(),F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(b,J){1&b&&i.\u0275\u0275listener("input",function($t){return J.onChange($t.target.value)})("blur",function(){return J.onTouched()})},features:[i.\u0275\u0275ProvidersFeature([Mi]),i.\u0275\u0275InheritDefinitionFeature]}),F})();const Wn={provide:D,useExisting:(0,i.forwardRef)(()=>Qn),multi:!0};let nr=(()=>{class F{}return F.\u0275fac=function(b){return new(b||F)},F.\u0275mod=i.\u0275\u0275defineNgModule({type:F}),F.\u0275inj=i.\u0275\u0275defineInjector({}),F})(),mr=(()=>{class F{constructor(){this._accessors=[]}add(b,J){this._accessors.push([b,J])}remove(b){for(let J=this._accessors.length-1;J>=0;--J)if(this._accessors[J][1]===b)return void this._accessors.splice(J,1)}select(b){this._accessors.forEach(J=>{this._isSameGroup(J,b)&&J[1]!==b&&J[1].fireUncheck(b.value)})}_isSameGroup(b,J){return!!b[0].control&&b[0]._parent===J._control._parent&&b[1].name===J.name}}return F.\u0275fac=function(b){return new(b||F)},F.\u0275prov=i.\u0275\u0275defineInjectable({token:F,factory:F.\u0275fac,providedIn:nr}),F})(),Qn=(()=>{class F extends C{constructor(b,J,ut,$t){super(b,J),this._registry=ut,this._injector=$t,this.onChange=()=>{}}ngOnInit(){this._control=this._injector.get(pt),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(b){this._state=b===this.value,this.setProperty("checked",this._state)}registerOnChange(b){this._fn=b,this.onChange=()=>{b(this.value),this._registry.select(this)}}fireUncheck(b){this.writeValue(b)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return F.\u0275fac=function(b){return new(b||F)(i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(mr),i.\u0275\u0275directiveInject(i.Injector))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(b,J){1&b&&i.\u0275\u0275listener("change",function(){return J.onChange()})("blur",function(){return J.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[i.\u0275\u0275ProvidersFeature([Wn]),i.\u0275\u0275InheritDefinitionFeature]}),F})();const Zn={provide:D,useExisting:(0,i.forwardRef)(()=>Ei),multi:!0};let Ei=(()=>{class F extends C{writeValue(b){this.setProperty("value",parseFloat(b))}registerOnChange(b){this.onChange=J=>{b(""==J?null:parseFloat(J))}}}return F.\u0275fac=function(){let P;return function(J){return(P||(P=i.\u0275\u0275getInheritedFactory(F)))(J||F)}}(),F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(b,J){1&b&&i.\u0275\u0275listener("change",function($t){return J.onChange($t.target.value)})("input",function($t){return J.onChange($t.target.value)})("blur",function(){return J.onTouched()})},features:[i.\u0275\u0275ProvidersFeature([Zn]),i.\u0275\u0275InheritDefinitionFeature]}),F})();const Ui=new i.InjectionToken("NgModelWithFormControlWarning"),Lr={provide:pt,useExisting:(0,i.forwardRef)(()=>Wi)};let Wi=(()=>{class F extends pt{constructor(b,J,ut,$t){super(),this._ngModelWarningConfig=$t,this.update=new i.EventEmitter,this._ngModelWarningSent=!1,this._setValidators(b),this._setAsyncValidators(J),this.valueAccessor=ce(0,ut)}set isDisabled(b){}ngOnChanges(b){if(this._isControlChanged(b)){const J=b.form.previousValue;J&&bn(J,this,!1),Ot(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}gn(b,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(b){this.viewModel=b,this.update.emit(b)}_isControlChanged(b){return b.hasOwnProperty("form")}}return F._ngModelWarningSentOnce=!1,F.\u0275fac=function(b){return new(b||F)(i.\u0275\u0275directiveInject($,10),i.\u0275\u0275directiveInject(ne,10),i.\u0275\u0275directiveInject(D,10),i.\u0275\u0275directiveInject(Ui,8))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[i.\u0275\u0275ProvidersFeature([Lr]),i.\u0275\u0275InheritDefinitionFeature,i.\u0275\u0275NgOnChangesFeature]}),F})();const Ir={provide:Tt,useExisting:(0,i.forwardRef)(()=>wi)};let wi=(()=>{class F extends Tt{constructor(b,J){super(),this.validators=b,this.asyncValidators=J,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new i.EventEmitter,this._setValidators(b),this._setAsyncValidators(J)}ngOnChanges(b){this._checkFormPresent(),b.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Ie(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(b){const J=this.form.get(b.path);return Ot(J,b),J.updateValueAndValidity({emitEvent:!1}),this.directives.push(b),J}getControl(b){return this.form.get(b.path)}removeControl(b){bn(b.control||null,b,!1),je(this.directives,b)}addFormGroup(b){this._setUpFormContainer(b)}removeFormGroup(b){this._cleanUpFormContainer(b)}getFormGroup(b){return this.form.get(b.path)}addFormArray(b){this._setUpFormContainer(b)}removeFormArray(b){this._cleanUpFormContainer(b)}getFormArray(b){return this.form.get(b.path)}updateModel(b,J){this.form.get(b.path).setValue(J)}onSubmit(b){return this.submitted=!0,$e(this.form,this.directives),this.ngSubmit.emit(b),!1}onReset(){this.resetForm()}resetForm(b){this.form.reset(b),this.submitted=!1}_updateDomValue(){this.directives.forEach(b=>{const J=b.control,ut=this.form.get(b.path);J!==ut&&(bn(J||null,b),we(ut)&&(Ot(ut,b),b.control=ut))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(b){const J=this.form.get(b.path);G(J,b),J.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(b){if(this.form){const J=this.form.get(b.path);J&&function ot(F,P){return Ie(F,P)}(J,b)&&J.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Qe(this.form,this),this._oldForm&&Ie(this._oldForm,this)}_checkFormPresent(){}}return F.\u0275fac=function(b){return new(b||F)(i.\u0275\u0275directiveInject($,10),i.\u0275\u0275directiveInject(ne,10))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","formGroup",""]],hostBindings:function(b,J){1&b&&i.\u0275\u0275listener("submit",function($t){return J.onSubmit($t)})("reset",function(){return J.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.\u0275\u0275ProvidersFeature([Ir]),i.\u0275\u0275InheritDefinitionFeature,i.\u0275\u0275NgOnChangesFeature]}),F})();const zi={provide:Tt,useExisting:(0,i.forwardRef)(()=>ci)};let ci=(()=>{class F extends Un{constructor(b,J,ut){super(),this._parent=b,this._setValidators(J),this._setAsyncValidators(ut)}_checkParentType(){Ar(this._parent)}}return F.\u0275fac=function(b){return new(b||F)(i.\u0275\u0275directiveInject(Tt,13),i.\u0275\u0275directiveInject($,10),i.\u0275\u0275directiveInject(ne,10))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[i.\u0275\u0275ProvidersFeature([zi]),i.\u0275\u0275InheritDefinitionFeature]}),F})();const gr={provide:Tt,useExisting:(0,i.forwardRef)(()=>Di)};let Di=(()=>{class F extends Tt{constructor(b,J,ut){super(),this._parent=b,this._setValidators(J),this._setAsyncValidators(ut)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return Qt(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){Ar(this._parent)}}return F.\u0275fac=function(b){return new(b||F)(i.\u0275\u0275directiveInject(Tt,13),i.\u0275\u0275directiveInject($,10),i.\u0275\u0275directiveInject(ne,10))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[i.\u0275\u0275ProvidersFeature([gr]),i.\u0275\u0275InheritDefinitionFeature]}),F})();function Ar(F){return!(F instanceof ci||F instanceof wi||F instanceof Di)}const Pr={provide:pt,useExisting:(0,i.forwardRef)(()=>Ki)};let Ki=(()=>{class F extends pt{constructor(b,J,ut,$t,An){super(),this._ngModelWarningConfig=An,this._added=!1,this.update=new i.EventEmitter,this._ngModelWarningSent=!1,this._parent=b,this._setValidators(J),this._setAsyncValidators(ut),this.valueAccessor=ce(0,$t)}set isDisabled(b){}ngOnChanges(b){this._added||this._setUpControl(),gn(b,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(b){this.viewModel=b,this.update.emit(b)}get path(){return Qt(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return F._ngModelWarningSentOnce=!1,F.\u0275fac=function(b){return new(b||F)(i.\u0275\u0275directiveInject(Tt,13),i.\u0275\u0275directiveInject($,10),i.\u0275\u0275directiveInject(ne,10),i.\u0275\u0275directiveInject(D,10),i.\u0275\u0275directiveInject(Ui,8))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[i.\u0275\u0275ProvidersFeature([Pr]),i.\u0275\u0275InheritDefinitionFeature,i.\u0275\u0275NgOnChangesFeature]}),F})();const Si={provide:D,useExisting:(0,i.forwardRef)(()=>Ii),multi:!0};function Gi(F,P){return null==F?`${P}`:(P&&"object"==typeof P&&(P="Object"),`${F}: ${P}`.slice(0,50))}let Ii=(()=>{class F extends C{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(b){this._compareWith=b}writeValue(b){this.value=b;const J=this._getOptionId(b);null==J&&this.setProperty("selectedIndex",-1);const ut=Gi(J,b);this.setProperty("value",ut)}registerOnChange(b){this.onChange=J=>{this.value=this._getOptionValue(J),b(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(b){for(const J of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(J),b))return J;return null}_getOptionValue(b){const J=function Or(F){return F.split(":")[0]}(b);return this._optionMap.has(J)?this._optionMap.get(J):b}}return F.\u0275fac=function(){let P;return function(J){return(P||(P=i.\u0275\u0275getInheritedFactory(F)))(J||F)}}(),F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(b,J){1&b&&i.\u0275\u0275listener("change",function($t){return J.onChange($t.target.value)})("blur",function(){return J.onTouched()})},inputs:{compareWith:"compareWith"},features:[i.\u0275\u0275ProvidersFeature([Si]),i.\u0275\u0275InheritDefinitionFeature]}),F})(),_r=(()=>{class F{constructor(b,J,ut){this._element=b,this._renderer=J,this._select=ut,this._select&&(this.id=this._select._registerOption())}set ngValue(b){null!=this._select&&(this._select._optionMap.set(this.id,b),this._setElementValue(Gi(this.id,b)),this._select.writeValue(this._select.value))}set value(b){this._setElementValue(b),this._select&&this._select.writeValue(this._select.value)}_setElementValue(b){this._renderer.setProperty(this._element.nativeElement,"value",b)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return F.\u0275fac=function(b){return new(b||F)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(Ii,9))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),F})();const fi={provide:D,useExisting:(0,i.forwardRef)(()=>mi),multi:!0};function Ai(F,P){return null==F?`${P}`:("string"==typeof P&&(P=`'${P}'`),P&&"object"==typeof P&&(P="Object"),`${F}: ${P}`.slice(0,50))}let mi=(()=>{class F extends C{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(b){this._compareWith=b}writeValue(b){let J;if(this.value=b,Array.isArray(b)){const ut=b.map($t=>this._getOptionId($t));J=($t,An)=>{$t._setSelected(ut.indexOf(An.toString())>-1)}}else J=(ut,$t)=>{ut._setSelected(!1)};this._optionMap.forEach(J)}registerOnChange(b){this.onChange=J=>{const ut=[],$t=J.selectedOptions;if(void 0!==$t){const An=$t;for(let qn=0;qn<An.length;qn++){const Ni=this._getOptionValue(An[qn].value);ut.push(Ni)}}else{const An=J.options;for(let qn=0;qn<An.length;qn++){const gi=An[qn];if(gi.selected){const Ni=this._getOptionValue(gi.value);ut.push(Ni)}}}this.value=ut,b(ut)}}_registerOption(b){const J=(this._idCounter++).toString();return this._optionMap.set(J,b),J}_getOptionId(b){for(const J of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(J)._value,b))return J;return null}_getOptionValue(b){const J=function pi(F){return F.split(":")[0]}(b);return this._optionMap.has(J)?this._optionMap.get(J)._value:b}}return F.\u0275fac=function(){let P;return function(J){return(P||(P=i.\u0275\u0275getInheritedFactory(F)))(J||F)}}(),F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(b,J){1&b&&i.\u0275\u0275listener("change",function($t){return J.onChange($t.target)})("blur",function(){return J.onTouched()})},inputs:{compareWith:"compareWith"},features:[i.\u0275\u0275ProvidersFeature([fi]),i.\u0275\u0275InheritDefinitionFeature]}),F})(),ir=(()=>{class F{constructor(b,J,ut){this._element=b,this._renderer=J,this._select=ut,this._select&&(this.id=this._select._registerOption(this))}set ngValue(b){null!=this._select&&(this._value=b,this._setElementValue(Ai(this.id,b)),this._select.writeValue(this._select.value))}set value(b){this._select?(this._value=b,this._setElementValue(Ai(this.id,b)),this._select.writeValue(this._select.value)):this._setElementValue(b)}_setElementValue(b){this._renderer.setProperty(this._element.nativeElement,"value",b)}_setSelected(b){this._renderer.setProperty(this._element.nativeElement,"selected",b)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return F.\u0275fac=function(b){return new(b||F)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(mi,9))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),F})();function rr(F){return"number"==typeof F?F:parseInt(F,10)}function Pi(F){return"number"==typeof F?F:parseFloat(F)}let Oi=(()=>{class F{constructor(){this._validator=K}ngOnChanges(b){if(this.inputName in b){const J=this.normalizeInput(b[this.inputName].currentValue);this._enabled=this.enabled(J),this._validator=this._enabled?this.createValidator(J):K,this._onChange&&this._onChange()}}validate(b){return this._validator(b)}registerOnValidatorChange(b){this._onChange=b}enabled(b){return null!=b}}return F.\u0275fac=function(b){return new(b||F)},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,features:[i.\u0275\u0275NgOnChangesFeature]}),F})();const xi={provide:$,useExisting:(0,i.forwardRef)(()=>Zi),multi:!0};let Zi=(()=>{class F extends Oi{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=b=>Pi(b),this.createValidator=b=>le(b)}}return F.\u0275fac=function(){let P;return function(J){return(P||(P=i.\u0275\u0275getInheritedFactory(F)))(J||F)}}(),F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(b,J){2&b&&i.\u0275\u0275attribute("max",J._enabled?J.max:null)},inputs:{max:"max"},features:[i.\u0275\u0275ProvidersFeature([xi]),i.\u0275\u0275InheritDefinitionFeature]}),F})();const ti={provide:$,useExisting:(0,i.forwardRef)(()=>Ri),multi:!0};let Ri=(()=>{class F extends Oi{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=b=>Pi(b),this.createValidator=b=>_e(b)}}return F.\u0275fac=function(){let P;return function(J){return(P||(P=i.\u0275\u0275getInheritedFactory(F)))(J||F)}}(),F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(b,J){2&b&&i.\u0275\u0275attribute("min",J._enabled?J.min:null)},inputs:{min:"min"},features:[i.\u0275\u0275ProvidersFeature([ti]),i.\u0275\u0275InheritDefinitionFeature]}),F})();const or={provide:$,useExisting:(0,i.forwardRef)(()=>Yi),multi:!0},Fi={provide:$,useExisting:(0,i.forwardRef)(()=>ki),multi:!0};let Yi=(()=>{class F{constructor(){this._required=!1}get required(){return this._required}set required(b){this._required=null!=b&&!1!==b&&"false"!=`${b}`,this._onChange&&this._onChange()}validate(b){return this.required?Se(b):null}registerOnValidatorChange(b){this._onChange=b}}return F.\u0275fac=function(b){return new(b||F)},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(b,J){2&b&&i.\u0275\u0275attribute("required",J.required?"":null)},inputs:{required:"required"},features:[i.\u0275\u0275ProvidersFeature([or])]}),F})(),ki=(()=>{class F extends Yi{validate(b){return this.required?Le(b):null}}return F.\u0275fac=function(){let P;return function(J){return(P||(P=i.\u0275\u0275getInheritedFactory(F)))(J||F)}}(),F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(b,J){2&b&&i.\u0275\u0275attribute("required",J.required?"":null)},features:[i.\u0275\u0275ProvidersFeature([Fi]),i.\u0275\u0275InheritDefinitionFeature]}),F})();const xr={provide:$,useExisting:(0,i.forwardRef)(()=>Rn),multi:!0};let Rn=(()=>{class F{constructor(){this._enabled=!1}set email(b){this._enabled=""===b||!0===b||"true"===b,this._onChange&&this._onChange()}validate(b){return this._enabled?Xe(b):null}registerOnValidatorChange(b){this._onChange=b}}return F.\u0275fac=function(b){return new(b||F)},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[i.\u0275\u0275ProvidersFeature([xr])]}),F})();const sr={provide:$,useExisting:(0,i.forwardRef)(()=>ar),multi:!0};let ar=(()=>{class F extends Oi{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=b=>rr(b),this.createValidator=b=>lt(b)}}return F.\u0275fac=function(){let P;return function(J){return(P||(P=i.\u0275\u0275getInheritedFactory(F)))(J||F)}}(),F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(b,J){2&b&&i.\u0275\u0275attribute("minlength",J._enabled?J.minlength:null)},inputs:{minlength:"minlength"},features:[i.\u0275\u0275ProvidersFeature([sr]),i.\u0275\u0275InheritDefinitionFeature]}),F})();const Ln={provide:$,useExisting:(0,i.forwardRef)(()=>x),multi:!0};let x=(()=>{class F extends Oi{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=b=>rr(b),this.createValidator=b=>X(b)}}return F.\u0275fac=function(){let P;return function(J){return(P||(P=i.\u0275\u0275getInheritedFactory(F)))(J||F)}}(),F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(b,J){2&b&&i.\u0275\u0275attribute("maxlength",J._enabled?J.maxlength:null)},inputs:{maxlength:"maxlength"},features:[i.\u0275\u0275ProvidersFeature([Ln]),i.\u0275\u0275InheritDefinitionFeature]}),F})();const Q={provide:$,useExisting:(0,i.forwardRef)(()=>R),multi:!0};let R=(()=>{class F{constructor(){this._validator=K}ngOnChanges(b){"pattern"in b&&(this._createValidator(),this._onChange&&this._onChange())}validate(b){return this._validator(b)}registerOnValidatorChange(b){this._onChange=b}_createValidator(){this._validator=me(this.pattern)}}return F.\u0275fac=function(b){return new(b||F)},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(b,J){2&b&&i.\u0275\u0275attribute("pattern",J.pattern?J.pattern:null)},inputs:{pattern:"pattern"},features:[i.\u0275\u0275ProvidersFeature([Q]),i.\u0275\u0275NgOnChangesFeature]}),F})(),Dt=(()=>{class F{}return F.\u0275fac=function(b){return new(b||F)},F.\u0275mod=i.\u0275\u0275defineNgModule({type:F}),F.\u0275inj=i.\u0275\u0275defineInjector({imports:[[nr]]}),F})(),Nt=(()=>{class F{}return F.\u0275fac=function(b){return new(b||F)},F.\u0275mod=i.\u0275\u0275defineNgModule({type:F}),F.\u0275inj=i.\u0275\u0275defineInjector({imports:[Dt]}),F})(),Dn=(()=>{class F{static withConfig(b){return{ngModule:F,providers:[{provide:Ui,useValue:b.warnOnNgModelWithFormControl}]}}}return F.\u0275fac=function(b){return new(b||F)},F.\u0275mod=i.\u0275\u0275defineNgModule({type:F}),F.\u0275inj=i.\u0275\u0275defineInjector({imports:[Dt]}),F})(),In=(()=>{class F{group(b,J=null){const ut=this._reduceControls(b);let qn,$t=null,An=null;return null!=J&&(function Tn(F){return void 0!==F.asyncValidators||void 0!==F.validators||void 0!==F.updateOn}(J)?($t=null!=J.validators?J.validators:null,An=null!=J.asyncValidators?J.asyncValidators:null,qn=null!=J.updateOn?J.updateOn:void 0):($t=null!=J.validator?J.validator:null,An=null!=J.asyncValidator?J.asyncValidator:null)),new vn(ut,{asyncValidators:An,updateOn:qn,validators:$t})}control(b,J,ut){return new qt(b,J,ut)}array(b,J,ut){const $t=b.map(An=>this._createControl(An));return new Ht($t,J,ut)}_reduceControls(b){const J={};return Object.keys(b).forEach(ut=>{J[ut]=this._createControl(b[ut])}),J}_createControl(b){return we(b)||W(b)||Pe(b)?b:Array.isArray(b)?this.control(b[0],b.length>1?b[1]:null,b.length>2?b[2]:null):this.control(b)}}return F.\u0275fac=function(b){return new(b||F)},F.\u0275prov=i.\u0275\u0275defineInjectable({token:F,factory:F.\u0275fac,providedIn:Dn}),F})();const un=new i.Version("13.1.2")},7423:(Be,m,l)=>{"use strict";l.r(m),l.d(m,{MatAnchor:()=>O,MatButton:()=>I,MatButtonModule:()=>w});var i=l(5e3),d=l(508),_=l(6360),u=l(5664);const s=["mat-button",""],v=["*"],p=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],y=(0,d.pj)((0,d.Id)((0,d.Kr)(class{constructor(k){this._elementRef=k}})));let I=(()=>{class k extends y{constructor(ue,$,ne){super(ue),this._focusMonitor=$,this._animationMode=ne,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const De of p)this._hasHostAttributes(De)&&this._getHostElement().classList.add(De);ue.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(ue,$){ue?this._focusMonitor.focusVia(this._getHostElement(),ue,$):this._getHostElement().focus($)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...ue){return ue.some($=>this._getHostElement().hasAttribute($))}}return k.\u0275fac=function(ue){return new(ue||k)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(u.tE),i.\u0275\u0275directiveInject(_.ANIMATION_MODULE_TYPE,8))},k.\u0275cmp=i.\u0275\u0275defineComponent({type:k,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(ue,$){if(1&ue&&i.\u0275\u0275viewQuery(d.wG,5),2&ue){let ne;i.\u0275\u0275queryRefresh(ne=i.\u0275\u0275loadQuery())&&($.ripple=ne.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(ue,$){2&ue&&(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:v,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(ue,$){1&ue&&(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&ue&&(i.\u0275\u0275advance(2),i.\u0275\u0275classProp("mat-button-ripple-round",$.isRoundButton||$.isIconButton),i.\u0275\u0275property("matRippleDisabled",$._isRippleDisabled())("matRippleCentered",$.isIconButton)("matRippleTrigger",$._getHostElement()))},directives:[d.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),k})(),O=(()=>{class k extends I{constructor(ue,$,ne){super($,ue,ne)}_haltDisabledEvents(ue){this.disabled&&(ue.preventDefault(),ue.stopImmediatePropagation())}}return k.\u0275fac=function(ue){return new(ue||k)(i.\u0275\u0275directiveInject(u.tE),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(_.ANIMATION_MODULE_TYPE,8))},k.\u0275cmp=i.\u0275\u0275defineComponent({type:k,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(ue,$){1&ue&&i.\u0275\u0275listener("click",function(De){return $._haltDisabledEvents(De)}),2&ue&&(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:v,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(ue,$){1&ue&&(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&ue&&(i.\u0275\u0275advance(2),i.\u0275\u0275classProp("mat-button-ripple-round",$.isRoundButton||$.isIconButton),i.\u0275\u0275property("matRippleDisabled",$._isRippleDisabled())("matRippleCentered",$.isIconButton)("matRippleTrigger",$._getHostElement()))},directives:[d.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),k})(),w=(()=>{class k{}return k.\u0275fac=function(ue){return new(ue||k)},k.\u0275mod=i.\u0275\u0275defineNgModule({type:k}),k.\u0275inj=i.\u0275\u0275defineInjector({imports:[[d.si,d.BQ],d.BQ]}),k})()},9417:(Be,m,l)=>{"use strict";l.r(m),l.d(m,{MAT_CHIPS_DEFAULT_OPTIONS:()=>an,MAT_CHIP_AVATAR:()=>it,MAT_CHIP_REMOVE:()=>Ye,MAT_CHIP_TRAILING_ICON:()=>mt,MatChip:()=>Kt,MatChipAvatar:()=>zt,MatChipInput:()=>Ot,MatChipList:()=>Qe,MatChipListChange:()=>Ke,MatChipRemove:()=>Mn,MatChipSelectionChange:()=>be,MatChipTrailingIcon:()=>on,MatChipsModule:()=>Te});var i=l(1159),d=l(5e3),_=l(508),u=l(3191),s=l(9808),v=l(6360),C=l(6758),D=l(6451),p=l(5698),y=l(2722),I=l(8675),O=l(925),w=l(5664),k=l(449),V=l(3075);l(1777);let Ge=(()=>{class S{}return S.\u0275fac=function(M){return new(M||S)},S.\u0275dir=d.\u0275\u0275defineDirective({type:S}),S})();var ye=l(226);const re=["*"];class be{constructor(A,M,G=!1){this.source=A,this.selected=M,this.isUserInput=G}}const Ye=new d.InjectionToken("MatChipRemove"),it=new d.InjectionToken("MatChipAvatar"),mt=new d.InjectionToken("MatChipTrailingIcon");class _t{constructor(A){this._elementRef=A}}const It=(0,_.sb)((0,_.pj)((0,_.Kr)(_t),"primary"),-1);let zt=(()=>{class S{}return S.\u0275fac=function(M){return new(M||S)},S.\u0275dir=d.\u0275\u0275defineDirective({type:S,selectors:[["mat-chip-avatar"],["","matChipAvatar",""]],hostAttrs:[1,"mat-chip-avatar"],features:[d.\u0275\u0275ProvidersFeature([{provide:it,useExisting:S}])]}),S})(),on=(()=>{class S{}return S.\u0275fac=function(M){return new(M||S)},S.\u0275dir=d.\u0275\u0275defineDirective({type:S,selectors:[["mat-chip-trailing-icon"],["","matChipTrailingIcon",""]],hostAttrs:[1,"mat-chip-trailing-icon"],features:[d.\u0275\u0275ProvidersFeature([{provide:mt,useExisting:S}])]}),S})(),Kt=(()=>{class S extends It{constructor(M,G,ot,Et,Ut,gn,He,$e){super(M),this._ngZone=G,this._changeDetectorRef=Ut,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new C.x,this._onBlur=new C.x,this.selectionChange=new d.EventEmitter,this.destroyed=new d.EventEmitter,this.removed=new d.EventEmitter,this._addHostClassName(),this._chipRippleTarget=gn.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new _.IR(this,G,this._chipRippleTarget,ot),this._chipRipple.setupTriggerEvents(M),this.rippleConfig=Et||{},this._animationsDisabled="NoopAnimations"===He,this.tabIndex=null!=$e&&parseInt($e)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(M){const G=(0,u.Ig)(M);G!==this._selected&&(this._selected=G,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(M){this._value=M}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(M){this._selectable=(0,u.Ig)(M)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(M){this._disabled=(0,u.Ig)(M)}get removable(){return this._removable}set removable(M){this._removable=(0,u.Ig)(M)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const M="mat-basic-chip",G=this._elementRef.nativeElement;G.hasAttribute(M)||G.tagName.toLowerCase()===M?G.classList.add(M):G.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}toggleSelected(M=!1){return this._selected=!this.selected,this._dispatchSelectionChange(M),this._changeDetectorRef.markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(M){this.disabled?M.preventDefault():M.stopPropagation()}_handleKeydown(M){if(!this.disabled)switch(M.keyCode){case i.yY:case i.ZH:this.remove(),M.preventDefault();break;case i.L_:this.selectable&&this.toggleSelected(!0),M.preventDefault()}}_blur(){this._ngZone.onStable.pipe((0,p.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(M=!1){this.selectionChange.emit({source:this,isUserInput:M,selected:this._selected})}}return S.\u0275fac=function(M){return new(M||S)(d.\u0275\u0275directiveInject(d.ElementRef),d.\u0275\u0275directiveInject(d.NgZone),d.\u0275\u0275directiveInject(O.t4),d.\u0275\u0275directiveInject(_.Y2,8),d.\u0275\u0275directiveInject(d.ChangeDetectorRef),d.\u0275\u0275directiveInject(s.DOCUMENT),d.\u0275\u0275directiveInject(v.ANIMATION_MODULE_TYPE,8),d.\u0275\u0275injectAttribute("tabindex"))},S.\u0275dir=d.\u0275\u0275defineDirective({type:S,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(M,G,ot){if(1&M&&(d.\u0275\u0275contentQuery(ot,it,5),d.\u0275\u0275contentQuery(ot,mt,5),d.\u0275\u0275contentQuery(ot,Ye,5)),2&M){let Et;d.\u0275\u0275queryRefresh(Et=d.\u0275\u0275loadQuery())&&(G.avatar=Et.first),d.\u0275\u0275queryRefresh(Et=d.\u0275\u0275loadQuery())&&(G.trailingIcon=Et.first),d.\u0275\u0275queryRefresh(Et=d.\u0275\u0275loadQuery())&&(G.removeIcon=Et.first)}},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(M,G){1&M&&d.\u0275\u0275listener("click",function(Et){return G._handleClick(Et)})("keydown",function(Et){return G._handleKeydown(Et)})("focus",function(){return G.focus()})("blur",function(){return G._blur()}),2&M&&(d.\u0275\u0275attribute("tabindex",G.disabled?null:G.tabIndex)("disabled",G.disabled||null)("aria-disabled",G.disabled.toString())("aria-selected",G.ariaSelected),d.\u0275\u0275classProp("mat-chip-selected",G.selected)("mat-chip-with-avatar",G.avatar)("mat-chip-with-trailing-icon",G.trailingIcon||G.removeIcon)("mat-chip-disabled",G.disabled)("_mat-animation-noopable",G._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[d.\u0275\u0275InheritDefinitionFeature]}),S})(),Mn=(()=>{class S{constructor(M,G){this._parentChip=M,"BUTTON"===G.nativeElement.nodeName&&G.nativeElement.setAttribute("type","button")}_handleClick(M){const G=this._parentChip;G.removable&&!G.disabled&&G.remove(),M.stopPropagation()}}return S.\u0275fac=function(M){return new(M||S)(d.\u0275\u0275directiveInject(Kt),d.\u0275\u0275directiveInject(d.ElementRef))},S.\u0275dir=d.\u0275\u0275defineDirective({type:S,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(M,G){1&M&&d.\u0275\u0275listener("click",function(Et){return G._handleClick(Et)})},features:[d.\u0275\u0275ProvidersFeature([{provide:Ye,useExisting:S}])]}),S})();const an=new d.InjectionToken("mat-chips-default-options");let Qt=0,Ot=(()=>{class S{constructor(M,G){this._elementRef=M,this._defaultOptions=G,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new d.EventEmitter,this.placeholder="",this.id="mat-chip-list-input-"+Qt++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement}set chipList(M){M&&(this._chipList=M,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(M){this._addOnBlur=(0,u.Ig)(M)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(M){this._disabled=(0,u.Ig)(M)}get empty(){return!this.inputElement.value}ngOnChanges(){this._chipList.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(M){if(M){if(M.keyCode===i.Mf&&!(0,i.Vb)(M,"shiftKey")&&this._chipList._allowFocusEscape(),M.keyCode===i.ZH&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void M.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(M)}_keyup(M){!this._focusLastChipOnBackspace&&M.keyCode===i.ZH&&this.empty&&(this._focusLastChipOnBackspace=!0,M.preventDefault())}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}_focus(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipList.stateChanges.next()}_emitChipEnd(M){!this.inputElement.value&&!!M&&this._chipList._keydown(M),(!M||this._isSeparatorKey(M))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),null==M||M.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(M){this.inputElement.focus(M)}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}_isSeparatorKey(M){return!(0,i.Vb)(M)&&new Set(this.separatorKeyCodes).has(M.keyCode)}}return S.\u0275fac=function(M){return new(M||S)(d.\u0275\u0275directiveInject(d.ElementRef),d.\u0275\u0275directiveInject(an))},S.\u0275dir=d.\u0275\u0275defineDirective({type:S,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(M,G){1&M&&d.\u0275\u0275listener("keydown",function(Et){return G._keydown(Et)})("keyup",function(Et){return G._keyup(Et)})("blur",function(){return G._blur()})("focus",function(){return G._focus()})("input",function(){return G._onInput()}),2&M&&(d.\u0275\u0275hostProperty("id",G.id),d.\u0275\u0275attribute("disabled",G.disabled||null)("placeholder",G.placeholder||null)("aria-invalid",G._chipList&&G._chipList.ngControl?G._chipList.ngControl.invalid:null)("aria-required",G._chipList&&G._chipList.required||null))},inputs:{chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[d.\u0275\u0275NgOnChangesFeature]}),S})();const bn=(0,_.FD)(class{constructor(S,A,M,G){this._defaultErrorStateMatcher=S,this._parentForm=A,this._parentFormGroup=M,this.ngControl=G}});let at=0;class Ke{constructor(A,M){this.source=A,this.value=M}}let Qe=(()=>{class S extends bn{constructor(M,G,ot,Et,Ut,gn,He){super(gn,Et,Ut,He),this._elementRef=M,this._changeDetectorRef=G,this._dir=ot,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new C.x,this._uid="mat-chip-list-"+at++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=($e,ce)=>$e===ce,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new d.EventEmitter,this.valueChange=new d.EventEmitter,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){var M,G;return this.multiple?(null===(M=this._selectionModel)||void 0===M?void 0:M.selected)||[]:null===(G=this._selectionModel)||void 0===G?void 0:G.selected[0]}get role(){return this.empty?null:"listbox"}get multiple(){return this._multiple}set multiple(M){this._multiple=(0,u.Ig)(M),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(M){this._compareWith=M,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(M){this.writeValue(M),this._value=M}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){var M,G,ot,Et;return null!==(Et=null!==(M=this._required)&&void 0!==M?M:null===(ot=null===(G=this.ngControl)||void 0===G?void 0:G.control)||void 0===ot?void 0:ot.hasValidator(V.Validators.required))&&void 0!==Et&&Et}set required(M){this._required=(0,u.Ig)(M),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(M){this._placeholder=M,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(M){this._disabled=(0,u.Ig)(M),this._syncChipsState()}get selectable(){return this._selectable}set selectable(M){this._selectable=(0,u.Ig)(M),this.chips&&this.chips.forEach(G=>G.chipListSelectable=this._selectable)}set tabIndex(M){this._userTabIndex=M,this._tabIndex=M}get chipSelectionChanges(){return(0,D.T)(...this.chips.map(M=>M.selectionChange))}get chipFocusChanges(){return(0,D.T)(...this.chips.map(M=>M._onFocus))}get chipBlurChanges(){return(0,D.T)(...this.chips.map(M=>M._onBlur))}get chipRemoveChanges(){return(0,D.T)(...this.chips.map(M=>M.destroyed))}ngAfterContentInit(){this._keyManager=new w.Em(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe((0,y.R)(this._destroyed)).subscribe(M=>this._keyManager.withHorizontalOrientation(M)),this._keyManager.tabOut.pipe((0,y.R)(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe((0,I.O)(null),(0,y.R)(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new k.Ov(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(M){this._chipInput=M,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",M.id)}setDescribedByIds(M){this._ariaDescribedby=M.join(" ")}writeValue(M){this.chips&&this._setSelectionByValue(M,!1)}registerOnChange(M){this._onChange=M}registerOnTouched(M){this._onTouched=M}setDisabledState(M){this.disabled=M,this.stateChanges.next()}onContainerClick(M){this._originatesFromChip(M)||this.focus()}focus(M){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(M),this.stateChanges.next()))}_focusInput(M){this._chipInput&&this._chipInput.focus(M)}_keydown(M){const G=M.target;G&&G.classList.contains("mat-chip")&&(this._keyManager.onKeydown(M),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const M=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(M)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(M){return M>=0&&M<this.chips.length}_setSelectionByValue(M,G=!0){if(this._clearSelection(),this.chips.forEach(ot=>ot.deselect()),Array.isArray(M))M.forEach(ot=>this._selectValue(ot,G)),this._sortValues();else{const ot=this._selectValue(M,G);ot&&G&&this._keyManager.setActiveItem(ot)}}_selectValue(M,G=!0){const ot=this.chips.find(Et=>null!=Et.value&&this._compareWith(Et.value,M));return ot&&(G?ot.selectViaInteraction():ot.select(),this._selectionModel.select(ot)),ot}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(M){this._selectionModel.clear(),this.chips.forEach(G=>{G!==M&&G.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(M=>{M.selected&&this._selectionModel.select(M)}),this.stateChanges.next())}_propagateChanges(M){let G=null;G=Array.isArray(this.selected)?this.selected.map(ot=>ot.value):this.selected?this.selected.value:M,this._value=G,this.change.emit(new Ke(this,G)),this.valueChange.emit(G),this._onChange(G),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(M=>{M.source.selected?this._selectionModel.select(M.source):this._selectionModel.deselect(M.source),this.multiple||this.chips.forEach(G=>{!this._selectionModel.isSelected(G)&&G.selected&&G.deselect()}),M.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(M=>{let G=this.chips.toArray().indexOf(M.chip);this._isValidIndex(G)&&this._keyManager.updateActiveItem(G),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(M=>{const G=M.chip,ot=this.chips.toArray().indexOf(M.chip);this._isValidIndex(ot)&&G._hasFocus&&(this._lastDestroyedChipIndex=ot)})}_originatesFromChip(M){let G=M.target;for(;G&&G!==this._elementRef.nativeElement;){if(G.classList.contains("mat-chip"))return!0;G=G.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(M=>M._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(M=>{M._chipListDisabled=this._disabled,M._chipListMultiple=this.multiple})}}return S.\u0275fac=function(M){return new(M||S)(d.\u0275\u0275directiveInject(d.ElementRef),d.\u0275\u0275directiveInject(d.ChangeDetectorRef),d.\u0275\u0275directiveInject(ye.Is,8),d.\u0275\u0275directiveInject(V.NgForm,8),d.\u0275\u0275directiveInject(V.FormGroupDirective,8),d.\u0275\u0275directiveInject(_.rD),d.\u0275\u0275directiveInject(V.NgControl,10))},S.\u0275cmp=d.\u0275\u0275defineComponent({type:S,selectors:[["mat-chip-list"]],contentQueries:function(M,G,ot){if(1&M&&d.\u0275\u0275contentQuery(ot,Kt,5),2&M){let Et;d.\u0275\u0275queryRefresh(Et=d.\u0275\u0275loadQuery())&&(G.chips=Et)}},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(M,G){1&M&&d.\u0275\u0275listener("focus",function(){return G.focus()})("blur",function(){return G._blur()})("keydown",function(Et){return G._keydown(Et)}),2&M&&(d.\u0275\u0275hostProperty("id",G._uid),d.\u0275\u0275attribute("tabindex",G.disabled?null:G._tabIndex)("aria-describedby",G._ariaDescribedby||null)("aria-required",G.role?G.required:null)("aria-disabled",G.disabled.toString())("aria-invalid",G.errorState)("aria-multiselectable",G.multiple)("role",G.role)("aria-orientation",G.ariaOrientation),d.\u0275\u0275classProp("mat-chip-list-disabled",G.disabled)("mat-chip-list-invalid",G.errorState)("mat-chip-list-required",G.required))},inputs:{errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[d.\u0275\u0275ProvidersFeature([{provide:Ge,useExisting:S}]),d.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:re,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(M,G){1&M&&(d.\u0275\u0275projectionDef(),d.\u0275\u0275elementStart(0,"div",0),d.\u0275\u0275projection(1),d.\u0275\u0275elementEnd())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.cdk-high-contrast-active .mat-standard-chip.mat-chip-selected{outline-width:3px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),S})(),Te=(()=>{class S{}return S.\u0275fac=function(M){return new(M||S)},S.\u0275mod=d.\u0275\u0275defineNgModule({type:S}),S.\u0275inj=d.\u0275\u0275defineInjector({providers:[_.rD,{provide:an,useValue:{separatorKeyCodes:[i.K5]}}],imports:[[_.BQ]]}),S})()},508:(Be,m,l)=>{"use strict";l.d(m,{rD:()=>Y,Y2:()=>se,BQ:()=>_e,wG:()=>Ce,si:()=>ye,IR:()=>N,pj:()=>lt,Kr:()=>X,Id:()=>Xe,FD:()=>K,sb:()=>me});var i=l(5e3),d=l(226),u=l(9808),s=l(925),v=l(5664),C=l(3191),D=l(6758),p=l(6360);const fe=new i.InjectionToken("mat-sanity-checks",{providedIn:"root",factory:function De(){return!0}});let _e=(()=>{class at{constructor(Qe,Ie,Te){this._sanityChecks=Ie,this._document=Te,this._hasDoneGlobalChecks=!1,Qe._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(Qe){return!(0,s.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[Qe])}}return at.\u0275fac=function(Qe){return new(Qe||at)(i.\u0275\u0275inject(v.qm),i.\u0275\u0275inject(fe,8),i.\u0275\u0275inject(u.DOCUMENT))},at.\u0275mod=i.\u0275\u0275defineNgModule({type:at}),at.\u0275inj=i.\u0275\u0275defineInjector({imports:[[d.vT],d.vT]}),at})();function Xe(at){return class extends at{constructor(...Ke){super(...Ke),this._disabled=!1}get disabled(){return this._disabled}set disabled(Ke){this._disabled=(0,C.Ig)(Ke)}}}function lt(at,Ke){return class extends at{constructor(...Qe){super(...Qe),this.defaultColor=Ke,this.color=Ke}get color(){return this._color}set color(Qe){const Ie=Qe||this.defaultColor;Ie!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),Ie&&this._elementRef.nativeElement.classList.add(`mat-${Ie}`),this._color=Ie)}}}function X(at){return class extends at{constructor(...Ke){super(...Ke),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(Ke){this._disableRipple=(0,C.Ig)(Ke)}}}function me(at,Ke=0){return class extends at{constructor(...Qe){super(...Qe),this._tabIndex=Ke,this.defaultTabIndex=Ke}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(Qe){this._tabIndex=null!=Qe?(0,C.su)(Qe):this.defaultTabIndex}}}function K(at){return class extends at{constructor(...Ke){super(...Ke),this.stateChanges=new D.x,this.errorState=!1}updateErrorState(){const Ke=this.errorState,S=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);S!==Ke&&(this.errorState=S,this.stateChanges.next())}}}let Y=(()=>{class at{isErrorState(Qe,Ie){return!!(Qe&&Qe.invalid&&(Qe.touched||Ie&&Ie.submitted))}}return at.\u0275fac=function(Qe){return new(Qe||at)},at.\u0275prov=i.\u0275\u0275defineInjectable({token:at,factory:at.\u0275fac,providedIn:"root"}),at})();class Je{constructor(Ke,Qe,Ie){this._renderer=Ke,this.element=Qe,this.config=Ie,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const pt={enterDuration:225,exitDuration:150},Rt=(0,s.i$)({passive:!0}),dt=["mousedown","touchstart"],Ze=["mouseup","mouseleave","touchend","touchcancel"];class N{constructor(Ke,Qe,Ie,Te){this._target=Ke,this._ngZone=Qe,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,Te.isBrowser&&(this._containerElement=(0,C.fI)(Ie))}fadeInRipple(Ke,Qe,Ie={}){const Te=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),S=Object.assign(Object.assign({},pt),Ie.animation);Ie.centered&&(Ke=Te.left+Te.width/2,Qe=Te.top+Te.height/2);const A=Ie.radius||function Oe(at,Ke,Qe){const Ie=Math.max(Math.abs(at-Qe.left),Math.abs(at-Qe.right)),Te=Math.max(Math.abs(Ke-Qe.top),Math.abs(Ke-Qe.bottom));return Math.sqrt(Ie*Ie+Te*Te)}(Ke,Qe,Te),M=Ke-Te.left,G=Qe-Te.top,ot=S.enterDuration,Et=document.createElement("div");Et.classList.add("mat-ripple-element"),Et.style.left=M-A+"px",Et.style.top=G-A+"px",Et.style.height=2*A+"px",Et.style.width=2*A+"px",null!=Ie.color&&(Et.style.backgroundColor=Ie.color),Et.style.transitionDuration=`${ot}ms`,this._containerElement.appendChild(Et),function ie(at){window.getComputedStyle(at).getPropertyValue("opacity")}(Et),Et.style.transform="scale(1)";const Ut=new Je(this,Et,Ie);return Ut.state=0,this._activeRipples.add(Ut),Ie.persistent||(this._mostRecentTransientRipple=Ut),this._runTimeoutOutsideZone(()=>{const gn=Ut===this._mostRecentTransientRipple;Ut.state=1,!Ie.persistent&&(!gn||!this._isPointerDown)&&Ut.fadeOut()},ot),Ut}fadeOutRipple(Ke){const Qe=this._activeRipples.delete(Ke);if(Ke===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!Qe)return;const Ie=Ke.element,Te=Object.assign(Object.assign({},pt),Ke.config.animation);Ie.style.transitionDuration=`${Te.exitDuration}ms`,Ie.style.opacity="0",Ke.state=2,this._runTimeoutOutsideZone(()=>{Ke.state=3,Ie.remove()},Te.exitDuration)}fadeOutAll(){this._activeRipples.forEach(Ke=>Ke.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(Ke=>{Ke.config.persistent||Ke.fadeOut()})}setupTriggerEvents(Ke){const Qe=(0,C.fI)(Ke);!Qe||Qe===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=Qe,this._registerEvents(dt))}handleEvent(Ke){"mousedown"===Ke.type?this._onMousedown(Ke):"touchstart"===Ke.type?this._onTouchStart(Ke):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Ze),this._pointerUpEventsRegistered=!0)}_onMousedown(Ke){const Qe=(0,v.X6)(Ke),Ie=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!Qe&&!Ie&&(this._isPointerDown=!0,this.fadeInRipple(Ke.clientX,Ke.clientY,this._target.rippleConfig))}_onTouchStart(Ke){if(!this._target.rippleDisabled&&!(0,v.yG)(Ke)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const Qe=Ke.changedTouches;for(let Ie=0;Ie<Qe.length;Ie++)this.fadeInRipple(Qe[Ie].clientX,Qe[Ie].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._activeRipples.forEach(Ke=>{!Ke.config.persistent&&(1===Ke.state||Ke.config.terminateOnPointerUp&&0===Ke.state)&&Ke.fadeOut()}))}_runTimeoutOutsideZone(Ke,Qe=0){this._ngZone.runOutsideAngular(()=>setTimeout(Ke,Qe))}_registerEvents(Ke){this._ngZone.runOutsideAngular(()=>{Ke.forEach(Qe=>{this._triggerElement.addEventListener(Qe,this,Rt)})})}_removeTriggerEvents(){this._triggerElement&&(dt.forEach(Ke=>{this._triggerElement.removeEventListener(Ke,this,Rt)}),this._pointerUpEventsRegistered&&Ze.forEach(Ke=>{this._triggerElement.removeEventListener(Ke,this,Rt)}))}}const se=new i.InjectionToken("mat-ripple-global-options");let Ce=(()=>{class at{constructor(Qe,Ie,Te,S,A){this._elementRef=Qe,this._animationMode=A,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=S||{},this._rippleRenderer=new N(this,Ie,Qe,Te)}get disabled(){return this._disabled}set disabled(Qe){Qe&&this.fadeOutAllNonPersistent(),this._disabled=Qe,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(Qe){this._trigger=Qe,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(Qe,Ie=0,Te){return"number"==typeof Qe?this._rippleRenderer.fadeInRipple(Qe,Ie,Object.assign(Object.assign({},this.rippleConfig),Te)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),Qe))}}return at.\u0275fac=function(Qe){return new(Qe||at)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.NgZone),i.\u0275\u0275directiveInject(s.t4),i.\u0275\u0275directiveInject(se,8),i.\u0275\u0275directiveInject(p.ANIMATION_MODULE_TYPE,8))},at.\u0275dir=i.\u0275\u0275defineDirective({type:at,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(Qe,Ie){2&Qe&&i.\u0275\u0275classProp("mat-ripple-unbounded",Ie.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),at})(),ye=(()=>{class at{}return at.\u0275fac=function(Qe){return new(Qe||at)},at.\u0275mod=i.\u0275\u0275defineNgModule({type:at}),at.\u0275inj=i.\u0275\u0275defineInjector({imports:[[_e,s.ud],_e]}),at})()},8966:(Be,m,l)=>{"use strict";l.r(m),l.d(m,{MAT_DIALOG_DATA:()=>me,MAT_DIALOG_DEFAULT_OPTIONS:()=>K,MAT_DIALOG_SCROLL_STRATEGY:()=>oe,MAT_DIALOG_SCROLL_STRATEGY_FACTORY:()=>ke,MAT_DIALOG_SCROLL_STRATEGY_PROVIDER:()=>Ue,MAT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY:()=>de,MatDialog:()=>qe,MatDialogActions:()=>et,MatDialogClose:()=>vt,MatDialogConfig:()=>fe,MatDialogContainer:()=>Le,MatDialogContent:()=>Re,MatDialogModule:()=>he,MatDialogRef:()=>lt,MatDialogTitle:()=>St,_MatDialogBase:()=>pe,_MatDialogContainerBase:()=>Se,_closeDialogVia:()=>X,matDialogAnimations:()=>_e,throwMatDialogContentAlreadyAttachedError:()=>le});var i=l(1314),d=l(7429),_=l(5e3),u=l(508),s=l(226),v=l(6758),C=l(9770),D=l(6921),p=l(9646),y=l(9300),I=l(5698),O=l(8675),w=l(925),k=l(9808),V=l(1777),ue=l(5664),$=l(1159),ne=l(6360);function De(Ee,Ae){}class fe{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 Se=(()=>{class Ee extends d.en{constructor(ge,Je,pt,Tt,Rt,dt,Ze,N){super(),this._elementRef=ge,this._focusTrapFactory=Je,this._changeDetectorRef=pt,this._config=Rt,this._interactivityChecker=dt,this._ngZone=Ze,this._focusMonitor=N,this._animationStateChanged=new _.EventEmitter,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=ie=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(ie)),this._ariaLabelledBy=Rt.ariaLabelledBy||null,this._document=Tt}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement()}attachComponentPortal(ge){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(ge)}attachTemplatePortal(ge){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(ge)}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(ge,Je){this._interactivityChecker.isFocusable(ge)||(ge.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{ge.addEventListener("blur",()=>ge.removeAttribute("tabindex")),ge.addEventListener("mousedown",()=>ge.removeAttribute("tabindex"))})),ge.focus(Je)}_focusByCssSelector(ge,Je){let pt=this._elementRef.nativeElement.querySelector(ge);pt&&this._forceFocus(pt,Je)}_trapFocus(){const ge=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||ge.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(Je=>{Je||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const ge=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&ge&&"function"==typeof ge.focus){const Je=(0,w.ht)(),pt=this._elementRef.nativeElement;(!Je||Je===this._document.body||Je===pt||pt.contains(Je))&&(this._focusMonitor?(this._focusMonitor.focusVia(ge,this._closeInteractionType),this._closeInteractionType=null):ge.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,w.ht)())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const ge=this._elementRef.nativeElement,Je=(0,w.ht)();return ge===Je||ge.contains(Je)}}return Ee.\u0275fac=function(ge){return new(ge||Ee)(_.\u0275\u0275directiveInject(_.ElementRef),_.\u0275\u0275directiveInject(ue.qV),_.\u0275\u0275directiveInject(_.ChangeDetectorRef),_.\u0275\u0275directiveInject(k.DOCUMENT,8),_.\u0275\u0275directiveInject(fe),_.\u0275\u0275directiveInject(ue.ic),_.\u0275\u0275directiveInject(_.NgZone),_.\u0275\u0275directiveInject(ue.tE))},Ee.\u0275dir=_.\u0275\u0275defineDirective({type:Ee,viewQuery:function(ge,Je){if(1&ge&&_.\u0275\u0275viewQuery(d.Pl,7),2&ge){let pt;_.\u0275\u0275queryRefresh(pt=_.\u0275\u0275loadQuery())&&(Je._portalOutlet=pt.first)}},features:[_.\u0275\u0275InheritDefinitionFeature]}),Ee})(),Le=(()=>{class Ee extends Se{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:ge,totalTime:Je}){"enter"===ge?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:Je})):"exit"===ge&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:Je}))}_onAnimationStart({toState:ge,totalTime:Je}){"enter"===ge?this._animationStateChanged.next({state:"opening",totalTime:Je}):("exit"===ge||"void"===ge)&&this._animationStateChanged.next({state:"closing",totalTime:Je})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return Ee.\u0275fac=function(){let Ae;return function(Je){return(Ae||(Ae=_.\u0275\u0275getInheritedFactory(Ee)))(Je||Ee)}}(),Ee.\u0275cmp=_.\u0275\u0275defineComponent({type:Ee,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(ge,Je){1&ge&&_.\u0275\u0275syntheticHostListener("@dialogContainer.start",function(Tt){return Je._onAnimationStart(Tt)})("@dialogContainer.done",function(Tt){return Je._onAnimationDone(Tt)}),2&ge&&(_.\u0275\u0275hostProperty("id",Je._id),_.\u0275\u0275attribute("role",Je._config.role)("aria-labelledby",Je._config.ariaLabel?null:Je._ariaLabelledBy)("aria-label",Je._config.ariaLabel)("aria-describedby",Je._config.ariaDescribedBy||null),_.\u0275\u0275syntheticHostProperty("@dialogContainer",Je._state))},features:[_.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(ge,Je){1&ge&&_.\u0275\u0275template(0,De,0,0,"ng-template",0)},directives:[d.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[_e.dialogContainer]}}),Ee})(),Xe=0;class lt{constructor(Ae,ge,Je="mat-dialog-"+Xe++){this._overlayRef=Ae,this._containerInstance=ge,this.id=Je,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new v.x,this._afterClosed=new v.x,this._beforeClosed=new v.x,this._state=0,ge._id=Je,ge._animationStateChanged.pipe((0,y.h)(pt=>"opened"===pt.state),(0,I.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),ge._animationStateChanged.pipe((0,y.h)(pt=>"closed"===pt.state),(0,I.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),Ae.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),Ae.keydownEvents().pipe((0,y.h)(pt=>pt.keyCode===$.hY&&!this.disableClose&&!(0,$.Vb)(pt))).subscribe(pt=>{pt.preventDefault(),X(this,"keyboard")}),Ae.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():X(this,"mouse")})}close(Ae){this._result=Ae,this._containerInstance._animationStateChanged.pipe((0,y.h)(ge=>"closing"===ge.state),(0,I.q)(1)).subscribe(ge=>{this._beforeClosed.next(Ae),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),ge.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(Ae){let ge=this._getPositionStrategy();return Ae&&(Ae.left||Ae.right)?Ae.left?ge.left(Ae.left):ge.right(Ae.right):ge.centerHorizontally(),Ae&&(Ae.top||Ae.bottom)?Ae.top?ge.top(Ae.top):ge.bottom(Ae.bottom):ge.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(Ae="",ge=""){return this._overlayRef.updateSize({width:Ae,height:ge}),this._overlayRef.updatePosition(),this}addPanelClass(Ae){return this._overlayRef.addPanelClass(Ae),this}removePanelClass(Ae){return this._overlayRef.removePanelClass(Ae),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function X(Ee,Ae,ge){return void 0!==Ee._containerInstance&&(Ee._containerInstance._closeInteractionType=Ae),Ee.close(ge)}const me=new _.InjectionToken("MatDialogData"),K=new _.InjectionToken("mat-dialog-default-options"),oe=new _.InjectionToken("mat-dialog-scroll-strategy");function ke(Ee){return()=>Ee.scrollStrategies.block()}function de(Ee){return()=>Ee.scrollStrategies.block()}const Ue={provide:oe,deps:[i.aV],useFactory:de};let pe=(()=>{class Ee{constructor(ge,Je,pt,Tt,Rt,dt,Ze,N,ie,Oe){this._overlay=ge,this._injector=Je,this._defaultOptions=pt,this._parentDialog=Tt,this._overlayContainer=Rt,this._dialogRefConstructor=Ze,this._dialogContainerType=N,this._dialogDataToken=ie,this._animationMode=Oe,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new v.x,this._afterOpenedAtThisLevel=new v.x,this._ariaHiddenElements=new Map,this._dialogAnimatingOpen=!1,this.afterAllClosed=(0,C.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,O.O)(void 0))),this._scrollStrategy=dt}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const ge=this._parentDialog;return ge?ge._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(ge,Je){if(Je=function Me(Ee,Ae){return Object.assign(Object.assign({},Ae),Ee)}(Je,this._defaultOptions||new fe),Je.id&&this.getDialogById(Je.id),this._dialogAnimatingOpen)return this._lastDialogRef;const pt=this._createOverlay(Je),Tt=this._attachDialogContainer(pt,Je);if("NoopAnimations"!==this._animationMode){const dt=Tt._animationStateChanged.subscribe(Ze=>{"opening"===Ze.state&&(this._dialogAnimatingOpen=!0),"opened"===Ze.state&&(this._dialogAnimatingOpen=!1,dt.unsubscribe())});this._animationStateSubscriptions||(this._animationStateSubscriptions=new D.w0),this._animationStateSubscriptions.add(dt)}const Rt=this._attachDialogContent(ge,Tt,pt,Je);return this._lastDialogRef=Rt,this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(Rt),Rt.afterClosed().subscribe(()=>this._removeOpenDialog(Rt)),this.afterOpened.next(Rt),Tt._initializeWithAttachedContent(),Rt}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(ge){return this.openDialogs.find(Je=>Je.id===ge)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._animationStateSubscriptions&&this._animationStateSubscriptions.unsubscribe()}_createOverlay(ge){const Je=this._getOverlayConfig(ge);return this._overlay.create(Je)}_getOverlayConfig(ge){const Je=new i.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:ge.scrollStrategy||this._scrollStrategy(),panelClass:ge.panelClass,hasBackdrop:ge.hasBackdrop,direction:ge.direction,minWidth:ge.minWidth,minHeight:ge.minHeight,maxWidth:ge.maxWidth,maxHeight:ge.maxHeight,disposeOnNavigation:ge.closeOnNavigation});return ge.backdropClass&&(Je.backdropClass=ge.backdropClass),Je}_attachDialogContainer(ge,Je){const Tt=_.Injector.create({parent:Je&&Je.viewContainerRef&&Je.viewContainerRef.injector||this._injector,providers:[{provide:fe,useValue:Je}]}),Rt=new d.C5(this._dialogContainerType,Je.viewContainerRef,Tt,Je.componentFactoryResolver);return ge.attach(Rt).instance}_attachDialogContent(ge,Je,pt,Tt){const Rt=new this._dialogRefConstructor(pt,Je,Tt.id);if(ge instanceof _.TemplateRef)Je.attachTemplatePortal(new d.UE(ge,null,{$implicit:Tt.data,dialogRef:Rt}));else{const dt=this._createInjector(Tt,Rt,Je),Ze=Je.attachComponentPortal(new d.C5(ge,Tt.viewContainerRef,dt));Rt.componentInstance=Ze.instance}return Rt.updateSize(Tt.width,Tt.height).updatePosition(Tt.position),Rt}_createInjector(ge,Je,pt){const Tt=ge&&ge.viewContainerRef&&ge.viewContainerRef.injector,Rt=[{provide:this._dialogContainerType,useValue:pt},{provide:this._dialogDataToken,useValue:ge.data},{provide:this._dialogRefConstructor,useValue:Je}];return ge.direction&&(!Tt||!Tt.get(s.Is,null,_.InjectFlags.Optional))&&Rt.push({provide:s.Is,useValue:{value:ge.direction,change:(0,p.of)()}}),_.Injector.create({parent:Tt||this._injector,providers:Rt})}_removeOpenDialog(ge){const Je=this.openDialogs.indexOf(ge);Je>-1&&(this.openDialogs.splice(Je,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((pt,Tt)=>{pt?Tt.setAttribute("aria-hidden",pt):Tt.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const ge=this._overlayContainer.getContainerElement();if(ge.parentElement){const Je=ge.parentElement.children;for(let pt=Je.length-1;pt>-1;pt--){let Tt=Je[pt];Tt!==ge&&"SCRIPT"!==Tt.nodeName&&"STYLE"!==Tt.nodeName&&!Tt.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(Tt,Tt.getAttribute("aria-hidden")),Tt.setAttribute("aria-hidden","true"))}}}_closeDialogs(ge){let Je=ge.length;for(;Je--;)ge[Je].close()}}return Ee.\u0275fac=function(ge){_.\u0275\u0275invalidFactory()},Ee.\u0275dir=_.\u0275\u0275defineDirective({type:Ee}),Ee})(),qe=(()=>{class Ee extends pe{constructor(ge,Je,pt,Tt,Rt,dt,Ze,N){super(ge,Je,Tt,dt,Ze,Rt,lt,Le,me,N)}}return Ee.\u0275fac=function(ge){return new(ge||Ee)(_.\u0275\u0275inject(i.aV),_.\u0275\u0275inject(_.Injector),_.\u0275\u0275inject(k.Location,8),_.\u0275\u0275inject(K,8),_.\u0275\u0275inject(oe),_.\u0275\u0275inject(Ee,12),_.\u0275\u0275inject(i.Xj),_.\u0275\u0275inject(ne.ANIMATION_MODULE_TYPE,8))},Ee.\u0275prov=_.\u0275\u0275defineInjectable({token:Ee,factory:Ee.\u0275fac}),Ee})(),Ge=0,vt=(()=>{class Ee{constructor(ge,Je,pt){this.dialogRef=ge,this._elementRef=Je,this._dialog=pt,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=Y(this._elementRef,this._dialog.openDialogs))}ngOnChanges(ge){const Je=ge._matDialogClose||ge._matDialogCloseResult;Je&&(this.dialogResult=Je.currentValue)}_onButtonClick(ge){X(this.dialogRef,0===ge.screenX&&0===ge.screenY?"keyboard":"mouse",this.dialogResult)}}return Ee.\u0275fac=function(ge){return new(ge||Ee)(_.\u0275\u0275directiveInject(lt,8),_.\u0275\u0275directiveInject(_.ElementRef),_.\u0275\u0275directiveInject(qe))},Ee.\u0275dir=_.\u0275\u0275defineDirective({type:Ee,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(ge,Je){1&ge&&_.\u0275\u0275listener("click",function(Tt){return Je._onButtonClick(Tt)}),2&ge&&_.\u0275\u0275attribute("aria-label",Je.ariaLabel||null)("type",Je.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[_.\u0275\u0275NgOnChangesFeature]}),Ee})(),St=(()=>{class Ee{constructor(ge,Je,pt){this._dialogRef=ge,this._elementRef=Je,this._dialog=pt,this.id="mat-dialog-title-"+Ge++}ngOnInit(){this._dialogRef||(this._dialogRef=Y(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const ge=this._dialogRef._containerInstance;ge&&!ge._ariaLabelledBy&&(ge._ariaLabelledBy=this.id)})}}return Ee.\u0275fac=function(ge){return new(ge||Ee)(_.\u0275\u0275directiveInject(lt,8),_.\u0275\u0275directiveInject(_.ElementRef),_.\u0275\u0275directiveInject(qe))},Ee.\u0275dir=_.\u0275\u0275defineDirective({type:Ee,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(ge,Je){2&ge&&_.\u0275\u0275hostProperty("id",Je.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),Ee})(),Re=(()=>{class Ee{}return Ee.\u0275fac=function(ge){return new(ge||Ee)},Ee.\u0275dir=_.\u0275\u0275defineDirective({type:Ee,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),Ee})(),et=(()=>{class Ee{}return Ee.\u0275fac=function(ge){return new(ge||Ee)},Ee.\u0275dir=_.\u0275\u0275defineDirective({type:Ee,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),Ee})();function Y(Ee,Ae){let ge=Ee.nativeElement.parentElement;for(;ge&&!ge.classList.contains("mat-dialog-container");)ge=ge.parentElement;return ge?Ae.find(Je=>Je.id===ge.id):null}let he=(()=>{class Ee{}return Ee.\u0275fac=function(ge){return new(ge||Ee)},Ee.\u0275mod=_.\u0275\u0275defineNgModule({type:Ee}),Ee.\u0275inj=_.\u0275\u0275defineInjector({providers:[qe,Ue],imports:[[i.U8,d.eL,u.BQ],u.BQ]}),Ee})()},5245:(Be,m,l)=>{"use strict";l.r(m),l.d(m,{ICON_REGISTRY_PROVIDER:()=>me,ICON_REGISTRY_PROVIDER_FACTORY:()=>X,MAT_ICON_LOCATION:()=>Ue,MAT_ICON_LOCATION_FACTORY:()=>pe,MatIcon:()=>vt,MatIconModule:()=>St,MatIconRegistry:()=>lt,getMatIconFailedToSanitizeLiteralError:()=>Le,getMatIconFailedToSanitizeUrlError:()=>Se,getMatIconNameNotFoundError:()=>_e,getMatIconNoHttpProviderError:()=>le});var i=l(5e3),d=l(508),_=l(3191),u=l(9808),s=l(9646),v=l(2843),C=l(4128),D=l(6921),p=l(8505),y=l(4004),I=l(262),O=l(8746),w=l(3099),k=l(5698),V=l(520),ue=l(2313);const $=["*"];let ne;function fe(Re){var et;return(null===(et=function De(){if(void 0===ne&&(ne=null,"undefined"!=typeof window)){const Re=window;void 0!==Re.trustedTypes&&(ne=Re.trustedTypes.createPolicy("angular#components",{createHTML:et=>et}))}return ne}())||void 0===et?void 0:et.createHTML(Re))||Re}function _e(Re){return Error(`Unable to find icon with the name "${Re}"`)}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 Se(Re){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${Re}".`)}function Le(Re){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${Re}".`)}class Xe{constructor(et,Y,he){this.url=et,this.svgText=Y,this.options=he}}let lt=(()=>{class Re{constructor(Y,he,Ee,Ae){this._httpClient=Y,this._sanitizer=he,this._errorHandler=Ae,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=Ee}addSvgIcon(Y,he,Ee){return this.addSvgIconInNamespace("",Y,he,Ee)}addSvgIconLiteral(Y,he,Ee){return this.addSvgIconLiteralInNamespace("",Y,he,Ee)}addSvgIconInNamespace(Y,he,Ee,Ae){return this._addSvgIconConfig(Y,he,new Xe(Ee,null,Ae))}addSvgIconResolver(Y){return this._resolvers.push(Y),this}addSvgIconLiteralInNamespace(Y,he,Ee,Ae){const ge=this._sanitizer.sanitize(i.SecurityContext.HTML,Ee);if(!ge)throw Le(Ee);const Je=fe(ge);return this._addSvgIconConfig(Y,he,new Xe("",Je,Ae))}addSvgIconSet(Y,he){return this.addSvgIconSetInNamespace("",Y,he)}addSvgIconSetLiteral(Y,he){return this.addSvgIconSetLiteralInNamespace("",Y,he)}addSvgIconSetInNamespace(Y,he,Ee){return this._addSvgIconSetConfig(Y,new Xe(he,null,Ee))}addSvgIconSetLiteralInNamespace(Y,he,Ee){const Ae=this._sanitizer.sanitize(i.SecurityContext.HTML,he);if(!Ae)throw Le(he);const ge=fe(Ae);return this._addSvgIconSetConfig(Y,new Xe("",ge,Ee))}registerFontClassAlias(Y,he=Y){return this._fontCssClassesByAlias.set(Y,he),this}classNameForFontAlias(Y){return this._fontCssClassesByAlias.get(Y)||Y}setDefaultFontSetClass(Y){return this._defaultFontSetClass=Y,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(Y){const he=this._sanitizer.sanitize(i.SecurityContext.RESOURCE_URL,Y);if(!he)throw Se(Y);const Ee=this._cachedIconsByUrl.get(he);return Ee?(0,s.of)(K(Ee)):this._loadSvgIconFromConfig(new Xe(Y,null)).pipe((0,p.b)(Ae=>this._cachedIconsByUrl.set(he,Ae)),(0,y.U)(Ae=>K(Ae)))}getNamedSvgIcon(Y,he=""){const Ee=oe(he,Y);let Ae=this._svgIconConfigs.get(Ee);if(Ae)return this._getSvgFromConfig(Ae);if(Ae=this._getIconConfigFromResolvers(he,Y),Ae)return this._svgIconConfigs.set(Ee,Ae),this._getSvgFromConfig(Ae);const ge=this._iconSetConfigs.get(he);return ge?this._getSvgFromIconSetConfigs(Y,ge):(0,v._)(_e(Ee))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(Y){return Y.svgText?(0,s.of)(K(this._svgElementFromConfig(Y))):this._loadSvgIconFromConfig(Y).pipe((0,y.U)(he=>K(he)))}_getSvgFromIconSetConfigs(Y,he){const Ee=this._extractIconWithNameFromAnySet(Y,he);if(Ee)return(0,s.of)(Ee);const Ae=he.filter(ge=>!ge.svgText).map(ge=>this._loadSvgIconSetFromConfig(ge).pipe((0,I.K)(Je=>{const Tt=`Loading icon set URL: ${this._sanitizer.sanitize(i.SecurityContext.RESOURCE_URL,ge.url)} failed: ${Je.message}`;return this._errorHandler.handleError(new Error(Tt)),(0,s.of)(null)})));return(0,C.D)(Ae).pipe((0,y.U)(()=>{const ge=this._extractIconWithNameFromAnySet(Y,he);if(!ge)throw _e(Y);return ge}))}_extractIconWithNameFromAnySet(Y,he){for(let Ee=he.length-1;Ee>=0;Ee--){const Ae=he[Ee];if(Ae.svgText&&Ae.svgText.toString().indexOf(Y)>-1){const ge=this._svgElementFromConfig(Ae),Je=this._extractSvgIconFromSet(ge,Y,Ae.options);if(Je)return Je}}return null}_loadSvgIconFromConfig(Y){return this._fetchIcon(Y).pipe((0,p.b)(he=>Y.svgText=he),(0,y.U)(()=>this._svgElementFromConfig(Y)))}_loadSvgIconSetFromConfig(Y){return Y.svgText?(0,s.of)(null):this._fetchIcon(Y).pipe((0,p.b)(he=>Y.svgText=he))}_extractSvgIconFromSet(Y,he,Ee){const Ae=Y.querySelector(`[id="${he}"]`);if(!Ae)return null;const ge=Ae.cloneNode(!0);if(ge.removeAttribute("id"),"svg"===ge.nodeName.toLowerCase())return this._setSvgAttributes(ge,Ee);if("symbol"===ge.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(ge),Ee);const Je=this._svgElementFromString(fe("<svg></svg>"));return Je.appendChild(ge),this._setSvgAttributes(Je,Ee)}_svgElementFromString(Y){const he=this._document.createElement("DIV");he.innerHTML=Y;const Ee=he.querySelector("svg");if(!Ee)throw Error("<svg> tag not found");return Ee}_toSvgElement(Y){const he=this._svgElementFromString(fe("<svg></svg>")),Ee=Y.attributes;for(let Ae=0;Ae<Ee.length;Ae++){const{name:ge,value:Je}=Ee[Ae];"id"!==ge&&he.setAttribute(ge,Je)}for(let Ae=0;Ae<Y.childNodes.length;Ae++)Y.childNodes[Ae].nodeType===this._document.ELEMENT_NODE&&he.appendChild(Y.childNodes[Ae].cloneNode(!0));return he}_setSvgAttributes(Y,he){return Y.setAttribute("fit",""),Y.setAttribute("height","100%"),Y.setAttribute("width","100%"),Y.setAttribute("preserveAspectRatio","xMidYMid meet"),Y.setAttribute("focusable","false"),he&&he.viewBox&&Y.setAttribute("viewBox",he.viewBox),Y}_fetchIcon(Y){var he;const{url:Ee,options:Ae}=Y,ge=null!==(he=null==Ae?void 0:Ae.withCredentials)&&void 0!==he&&he;if(!this._httpClient)throw le();if(null==Ee)throw Error(`Cannot fetch icon from URL "${Ee}".`);const Je=this._sanitizer.sanitize(i.SecurityContext.RESOURCE_URL,Ee);if(!Je)throw Se(Ee);const pt=this._inProgressUrlFetches.get(Je);if(pt)return pt;const Tt=this._httpClient.get(Je,{responseType:"text",withCredentials:ge}).pipe((0,y.U)(Rt=>fe(Rt)),(0,O.x)(()=>this._inProgressUrlFetches.delete(Je)),(0,w.B)());return this._inProgressUrlFetches.set(Je,Tt),Tt}_addSvgIconConfig(Y,he,Ee){return this._svgIconConfigs.set(oe(Y,he),Ee),this}_addSvgIconSetConfig(Y,he){const Ee=this._iconSetConfigs.get(Y);return Ee?Ee.push(he):this._iconSetConfigs.set(Y,[he]),this}_svgElementFromConfig(Y){if(!Y.svgElement){const he=this._svgElementFromString(Y.svgText);this._setSvgAttributes(he,Y.options),Y.svgElement=he}return Y.svgElement}_getIconConfigFromResolvers(Y,he){for(let Ee=0;Ee<this._resolvers.length;Ee++){const Ae=this._resolvers[Ee](he,Y);if(Ae)return ke(Ae)?new Xe(Ae.url,null,Ae.options):new Xe(Ae,null)}}}return Re.\u0275fac=function(Y){return new(Y||Re)(i.\u0275\u0275inject(V.HttpClient,8),i.\u0275\u0275inject(ue.DomSanitizer),i.\u0275\u0275inject(u.DOCUMENT,8),i.\u0275\u0275inject(i.ErrorHandler))},Re.\u0275prov=i.\u0275\u0275defineInjectable({token:Re,factory:Re.\u0275fac,providedIn:"root"}),Re})();function X(Re,et,Y,he,Ee){return Re||new lt(et,Y,Ee,he)}const me={provide:lt,deps:[[new i.Optional,new i.SkipSelf,lt],[new i.Optional,V.HttpClient],ue.DomSanitizer,i.ErrorHandler,[new i.Optional,u.DOCUMENT]],useFactory:X};function K(Re){return Re.cloneNode(!0)}function oe(Re,et){return Re+":"+et}function ke(Re){return!(!Re.url||!Re.options)}const de=(0,d.pj)(class{constructor(Re){this._elementRef=Re}}),Ue=new i.InjectionToken("mat-icon-location",{providedIn:"root",factory:pe});function pe(){const Re=(0,i.inject)(u.DOCUMENT),et=Re?Re.location:null;return{getPathname:()=>et?et.pathname+et.search:""}}const qe=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Me=qe.map(Re=>`[${Re}]`).join(", "),Ge=/^url\(['"]?#(.*?)['"]?\)$/;let vt=(()=>{class Re extends de{constructor(Y,he,Ee,Ae,ge){super(Y),this._iconRegistry=he,this._location=Ae,this._errorHandler=ge,this._inline=!1,this._currentIconFetch=D.w0.EMPTY,Ee||Y.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(Y){this._inline=(0,_.Ig)(Y)}get svgIcon(){return this._svgIcon}set svgIcon(Y){Y!==this._svgIcon&&(Y?this._updateSvgIcon(Y):this._svgIcon&&this._clearSvgElement(),this._svgIcon=Y)}get fontSet(){return this._fontSet}set fontSet(Y){const he=this._cleanupFontValue(Y);he!==this._fontSet&&(this._fontSet=he,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(Y){const he=this._cleanupFontValue(Y);he!==this._fontIcon&&(this._fontIcon=he,this._updateFontIconClasses())}_splitIconName(Y){if(!Y)return["",""];const he=Y.split(":");switch(he.length){case 1:return["",he[0]];case 2:return he;default:throw Error(`Invalid icon name: "${Y}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const Y=this._elementsWithExternalReferences;if(Y&&Y.size){const he=this._location.getPathname();he!==this._previousPath&&(this._previousPath=he,this._prependPathToReferences(he))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(Y){this._clearSvgElement();const he=Y.querySelectorAll("style");for(let Ae=0;Ae<he.length;Ae++)he[Ae].textContent+=" ";const Ee=this._location.getPathname();this._previousPath=Ee,this._cacheChildrenWithExternalReferences(Y),this._prependPathToReferences(Ee),this._elementRef.nativeElement.appendChild(Y)}_clearSvgElement(){const Y=this._elementRef.nativeElement;let he=Y.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();he--;){const Ee=Y.childNodes[he];(1!==Ee.nodeType||"svg"===Ee.nodeName.toLowerCase())&&Ee.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const Y=this._elementRef.nativeElement,he=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();he!=this._previousFontSetClass&&(this._previousFontSetClass&&Y.classList.remove(this._previousFontSetClass),he&&Y.classList.add(he),this._previousFontSetClass=he),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&Y.classList.remove(this._previousFontIconClass),this.fontIcon&&Y.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(Y){return"string"==typeof Y?Y.trim().split(" ")[0]:Y}_prependPathToReferences(Y){const he=this._elementsWithExternalReferences;he&&he.forEach((Ee,Ae)=>{Ee.forEach(ge=>{Ae.setAttribute(ge.name,`url('${Y}#${ge.value}')`)})})}_cacheChildrenWithExternalReferences(Y){const he=Y.querySelectorAll(Me),Ee=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let Ae=0;Ae<he.length;Ae++)qe.forEach(ge=>{const Je=he[Ae],pt=Je.getAttribute(ge),Tt=pt?pt.match(Ge):null;if(Tt){let Rt=Ee.get(Je);Rt||(Rt=[],Ee.set(Je,Rt)),Rt.push({name:ge,value:Tt[1]})}})}_updateSvgIcon(Y){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),Y){const[he,Ee]=this._splitIconName(Y);he&&(this._svgNamespace=he),Ee&&(this._svgName=Ee),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(Ee,he).pipe((0,k.q)(1)).subscribe(Ae=>this._setSvgElement(Ae),Ae=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${he}:${Ee}! ${Ae.message}`))})}}}return Re.\u0275fac=function(Y){return new(Y||Re)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(lt),i.\u0275\u0275injectAttribute("aria-hidden"),i.\u0275\u0275directiveInject(Ue),i.\u0275\u0275directiveInject(i.ErrorHandler))},Re.\u0275cmp=i.\u0275\u0275defineComponent({type:Re,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(Y,he){2&Y&&(i.\u0275\u0275attribute("data-mat-icon-type",he._usingFontIcon()?"font":"svg")("data-mat-icon-name",he._svgName||he.fontIcon)("data-mat-icon-namespace",he._svgNamespace||he.fontSet),i.\u0275\u0275classProp("mat-icon-inline",he.inline)("mat-icon-no-color","primary"!==he.color&&"accent"!==he.color&&"warn"!==he.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[i.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:$,decls:1,vars:0,template:function(Y,he){1&Y&&(i.\u0275\u0275projectionDef(),i.\u0275\u0275projection(0))},styles:[".mat-icon{-webkit-user-select:none;-moz-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),Re})(),St=(()=>{class Re{}return Re.\u0275fac=function(Y){return new(Y||Re)},Re.\u0275mod=i.\u0275\u0275defineNgModule({type:Re}),Re.\u0275inj=i.\u0275\u0275defineInjector({imports:[[d.BQ],d.BQ]}),Re})()},2181:(Be,m,l)=>{"use strict";l.r(m),l.d(m,{MAT_MENU_CONTENT:()=>ke,MAT_MENU_DEFAULT_OPTIONS:()=>et,MAT_MENU_PANEL:()=>vt,MAT_MENU_SCROLL_STRATEGY:()=>ge,MatMenu:()=>Ae,MatMenuContent:()=>Ue,MatMenuItem:()=>Re,MatMenuModule:()=>N,MatMenuTrigger:()=>Ze,_MatMenuBase:()=>Ee,_MatMenuContentBase:()=>de,_MatMenuTriggerBase:()=>dt,fadeInItems:()=>K,matMenuAnimations:()=>me,transformMenu:()=>oe});var i=l(5664),d=l(3191),_=l(1159),u=l(5e3),s=l(6758),v=l(6921),C=l(6451),D=l(9646),p=l(3101),y=l(8675),I=l(3900),O=l(5698),w=l(9300),k=l(2722),V=l(4326),ue=l(1777),$=l(7429),ne=l(9808),De=l(508),fe=l(1314),_e=l(925),le=l(226),Se=l(9071);const Le=["mat-menu-item",""];function Xe(ie,Oe){1&ie&&(u.\u0275\u0275namespaceSVG(),u.\u0275\u0275elementStart(0,"svg",2),u.\u0275\u0275element(1,"polygon",3),u.\u0275\u0275elementEnd())}const lt=["*"];function X(ie,Oe){if(1&ie){const se=u.\u0275\u0275getCurrentView();u.\u0275\u0275elementStart(0,"div",0),u.\u0275\u0275listener("keydown",function(ye){return u.\u0275\u0275restoreView(se),u.\u0275\u0275nextContext()._handleKeydown(ye)})("click",function(){return u.\u0275\u0275restoreView(se),u.\u0275\u0275nextContext().closed.emit("click")})("@transformMenu.start",function(ye){return u.\u0275\u0275restoreView(se),u.\u0275\u0275nextContext()._onAnimationStart(ye)})("@transformMenu.done",function(ye){return u.\u0275\u0275restoreView(se),u.\u0275\u0275nextContext()._onAnimationDone(ye)}),u.\u0275\u0275elementStart(1,"div",1),u.\u0275\u0275projection(2),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd()}if(2&ie){const se=u.\u0275\u0275nextContext();u.\u0275\u0275property("id",se.panelId)("ngClass",se._classList)("@transformMenu",se._panelAnimationState),u.\u0275\u0275attribute("aria-label",se.ariaLabel||null)("aria-labelledby",se.ariaLabelledby||null)("aria-describedby",se.ariaDescribedby||null)}}const me={transformMenu:(0,ue.X$)("transformMenu",[(0,ue.SB)("void",(0,ue.oB)({opacity:0,transform:"scale(0.8)"})),(0,ue.eR)("void => enter",(0,ue.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,ue.oB)({opacity:1,transform:"scale(1)"}))),(0,ue.eR)("* => void",(0,ue.jt)("100ms 25ms linear",(0,ue.oB)({opacity:0})))]),fadeInItems:(0,ue.X$)("fadeInItems",[(0,ue.SB)("showing",(0,ue.oB)({opacity:1})),(0,ue.eR)("void => *",[(0,ue.oB)({opacity:0}),(0,ue.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},K=me.fadeInItems,oe=me.transformMenu,ke=new u.InjectionToken("MatMenuContent");let de=(()=>{class ie{constructor(se,Ce,ye,re,be,Ye,it){this._template=se,this._componentFactoryResolver=Ce,this._appRef=ye,this._injector=re,this._viewContainerRef=be,this._document=Ye,this._changeDetectorRef=it,this._attached=new s.x}attach(se={}){var Ce;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 ye=this._template.elementRef.nativeElement;ye.parentNode.insertBefore(this._outlet.outletElement,ye),null===(Ce=this._changeDetectorRef)||void 0===Ce||Ce.markForCheck(),this._portal.attach(this._outlet,se),this._attached.next()}detach(){this._portal.isAttached&&this._portal.detach()}ngOnDestroy(){this._outlet&&this._outlet.dispose()}}return ie.\u0275fac=function(se){return new(se||ie)(u.\u0275\u0275directiveInject(u.TemplateRef),u.\u0275\u0275directiveInject(u.ComponentFactoryResolver),u.\u0275\u0275directiveInject(u.ApplicationRef),u.\u0275\u0275directiveInject(u.Injector),u.\u0275\u0275directiveInject(u.ViewContainerRef),u.\u0275\u0275directiveInject(ne.DOCUMENT),u.\u0275\u0275directiveInject(u.ChangeDetectorRef))},ie.\u0275dir=u.\u0275\u0275defineDirective({type:ie}),ie})(),Ue=(()=>{class ie extends de{}return ie.\u0275fac=function(){let Oe;return function(Ce){return(Oe||(Oe=u.\u0275\u0275getInheritedFactory(ie)))(Ce||ie)}}(),ie.\u0275dir=u.\u0275\u0275defineDirective({type:ie,selectors:[["ng-template","matMenuContent",""]],features:[u.\u0275\u0275ProvidersFeature([{provide:ke,useExisting:ie}]),u.\u0275\u0275InheritDefinitionFeature]}),ie})();const vt=new u.InjectionToken("MAT_MENU_PANEL"),St=(0,De.Kr)((0,De.Id)(class{}));let Re=(()=>{class ie extends St{constructor(se,Ce,ye,re,be){var Ye;super(),this._elementRef=se,this._focusMonitor=ye,this._parentMenu=re,this._changeDetectorRef=be,this.role="menuitem",this._hovered=new s.x,this._focused=new s.x,this._highlighted=!1,this._triggersSubmenu=!1,null===(Ye=null==re?void 0:re.addItem)||void 0===Ye||Ye.call(re,this)}focus(se,Ce){this._focusMonitor&&se?this._focusMonitor.focusVia(this._getHostElement(),se,Ce):this._getHostElement().focus(Ce),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(se){this.disabled&&(se.preventDefault(),se.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var se;const Ce=this._elementRef.nativeElement.cloneNode(!0),ye=Ce.querySelectorAll("mat-icon, .material-icons");for(let re=0;re<ye.length;re++)ye[re].remove();return(null===(se=Ce.textContent)||void 0===se?void 0:se.trim())||""}_setHighlighted(se){var Ce;this._highlighted=se,null===(Ce=this._changeDetectorRef)||void 0===Ce||Ce.markForCheck()}}return ie.\u0275fac=function(se){return new(se||ie)(u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(ne.DOCUMENT),u.\u0275\u0275directiveInject(i.tE),u.\u0275\u0275directiveInject(vt,8),u.\u0275\u0275directiveInject(u.ChangeDetectorRef))},ie.\u0275cmp=u.\u0275\u0275defineComponent({type:ie,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(se,Ce){1&se&&u.\u0275\u0275listener("click",function(re){return Ce._checkDisabled(re)})("mouseenter",function(){return Ce._handleMouseEnter()}),2&se&&(u.\u0275\u0275attribute("role",Ce.role)("tabindex",Ce._getTabIndex())("aria-disabled",Ce.disabled.toString())("disabled",Ce.disabled||null),u.\u0275\u0275classProp("mat-menu-item",!0)("mat-menu-item-highlighted",Ce._highlighted)("mat-menu-item-submenu-trigger",Ce._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[u.\u0275\u0275InheritDefinitionFeature],attrs:Le,ngContentSelectors:lt,decls:3,vars:3,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-menu-submenu-icon","viewBox","0 0 5 10","focusable","false",4,"ngIf"],["viewBox","0 0 5 10","focusable","false",1,"mat-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(se,Ce){1&se&&(u.\u0275\u0275projectionDef(),u.\u0275\u0275projection(0),u.\u0275\u0275element(1,"div",0),u.\u0275\u0275template(2,Xe,2,0,"svg",1)),2&se&&(u.\u0275\u0275advance(1),u.\u0275\u0275property("matRippleDisabled",Ce.disableRipple||Ce.disabled)("matRippleTrigger",Ce._getHostElement()),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",Ce._triggersSubmenu))},directives:[De.wG,ne.NgIf],encapsulation:2,changeDetection:0}),ie})();const et=new u.InjectionToken("mat-menu-default-options",{providedIn:"root",factory:function Y(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let he=0,Ee=(()=>{class ie{constructor(se,Ce,ye){this._elementRef=se,this._ngZone=Ce,this._defaultOptions=ye,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new u.QueryList,this._tabSubscription=v.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new s.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new u.EventEmitter,this.close=this.closed,this.panelId="mat-menu-panel-"+he++}get xPosition(){return this._xPosition}set xPosition(se){this._xPosition=se,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(se){this._yPosition=se,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(se){this._overlapTrigger=(0,d.Ig)(se)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(se){this._hasBackdrop=(0,d.Ig)(se)}set panelClass(se){const Ce=this._previousPanelClass;Ce&&Ce.length&&Ce.split(" ").forEach(ye=>{this._classList[ye]=!1}),this._previousPanelClass=se,se&&se.length&&(se.split(" ").forEach(ye=>{this._classList[ye]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(se){this.panelClass=se}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new i.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,y.O)(this._directDescendantItems),(0,I.w)(se=>(0,C.T)(...se.map(Ce=>Ce._focused)))).subscribe(se=>this._keyManager.updateActiveItem(se))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,y.O)(this._directDescendantItems),(0,I.w)(Ce=>(0,C.T)(...Ce.map(ye=>ye._hovered))))}addItem(se){}removeItem(se){}_handleKeydown(se){const Ce=se.keyCode,ye=this._keyManager;switch(Ce){case _.hY:(0,_.Vb)(se)||(se.preventDefault(),this.closed.emit("keydown"));break;case _.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case _.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:(Ce===_.LH||Ce===_.JH)&&ye.setFocusOrigin("keyboard"),ye.onKeydown(se)}}focusFirstItem(se="program"){this.lazyContent?this._ngZone.onStable.pipe((0,O.q)(1)).subscribe(()=>this._focusFirstItem(se)):this._focusFirstItem(se)}_focusFirstItem(se){const Ce=this._keyManager;if(Ce.setFocusOrigin(se).setFirstItemActive(),!Ce.activeItem&&this._directDescendantItems.length){let ye=this._directDescendantItems.first._getHostElement().parentElement;for(;ye;){if("menu"===ye.getAttribute("role")){ye.focus();break}ye=ye.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(se){const Ce=Math.min(this._baseElevation+se,24),ye=`${this._elevationPrefix}${Ce}`,re=Object.keys(this._classList).find(be=>be.startsWith(this._elevationPrefix));(!re||re===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[ye]=!0,this._previousElevation=ye)}setPositionClasses(se=this.xPosition,Ce=this.yPosition){const ye=this._classList;ye["mat-menu-before"]="before"===se,ye["mat-menu-after"]="after"===se,ye["mat-menu-above"]="above"===Ce,ye["mat-menu-below"]="below"===Ce}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(se){this._animationDone.next(se),this._isAnimating=!1}_onAnimationStart(se){this._isAnimating=!0,"enter"===se.toState&&0===this._keyManager.activeItemIndex&&(se.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,y.O)(this._allItems)).subscribe(se=>{this._directDescendantItems.reset(se.filter(Ce=>Ce._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return ie.\u0275fac=function(se){return new(se||ie)(u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(u.NgZone),u.\u0275\u0275directiveInject(et))},ie.\u0275dir=u.\u0275\u0275defineDirective({type:ie,contentQueries:function(se,Ce,ye){if(1&se&&(u.\u0275\u0275contentQuery(ye,ke,5),u.\u0275\u0275contentQuery(ye,Re,5),u.\u0275\u0275contentQuery(ye,Re,4)),2&se){let re;u.\u0275\u0275queryRefresh(re=u.\u0275\u0275loadQuery())&&(Ce.lazyContent=re.first),u.\u0275\u0275queryRefresh(re=u.\u0275\u0275loadQuery())&&(Ce._allItems=re),u.\u0275\u0275queryRefresh(re=u.\u0275\u0275loadQuery())&&(Ce.items=re)}},viewQuery:function(se,Ce){if(1&se&&u.\u0275\u0275viewQuery(u.TemplateRef,5),2&se){let ye;u.\u0275\u0275queryRefresh(ye=u.\u0275\u0275loadQuery())&&(Ce.templateRef=ye.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"}}),ie})(),Ae=(()=>{class ie extends Ee{constructor(se,Ce,ye){super(se,Ce,ye),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return ie.\u0275fac=function(se){return new(se||ie)(u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(u.NgZone),u.\u0275\u0275directiveInject(et))},ie.\u0275cmp=u.\u0275\u0275defineComponent({type:ie,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(se,Ce){2&se&&u.\u0275\u0275attribute("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[u.\u0275\u0275ProvidersFeature([{provide:vt,useExisting:ie}]),u.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:lt,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(se,Ce){1&se&&(u.\u0275\u0275projectionDef(),u.\u0275\u0275template(0,X,3,6,"ng-template"))},directives:[ne.NgClass],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[me.transformMenu,me.fadeInItems]},changeDetection:0}),ie})();const ge=new u.InjectionToken("mat-menu-scroll-strategy"),pt={provide:ge,deps:[fe.aV],useFactory:function Je(ie){return()=>ie.scrollStrategies.reposition()}},Rt=(0,_e.i$)({passive:!0});let dt=(()=>{class ie{constructor(se,Ce,ye,re,be,Ye,it,mt){this._overlay=se,this._element=Ce,this._viewContainerRef=ye,this._menuItemInstance=Ye,this._dir=it,this._focusMonitor=mt,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=v.w0.EMPTY,this._hoverSubscription=v.w0.EMPTY,this._menuCloseSubscription=v.w0.EMPTY,this._handleTouchStart=_t=>{(0,i.yG)(_t)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new u.EventEmitter,this.onMenuOpen=this.menuOpened,this.menuClosed=new u.EventEmitter,this.onMenuClose=this.menuClosed,this._scrollStrategy=re,this._parentMaterialMenu=be instanceof Ee?be:void 0,Ce.nativeElement.addEventListener("touchstart",this._handleTouchStart,Rt),Ye&&(Ye._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(se){this.menu=se}get menu(){return this._menu}set menu(se){se!==this._menu&&(this._menu=se,this._menuCloseSubscription.unsubscribe(),se&&(this._menuCloseSubscription=se.close.subscribe(Ce=>{this._destroyMenu(Ce),("click"===Ce||"tab"===Ce)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(Ce)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Rt),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const se=this._createOverlay(),Ce=se.getConfig();this._setPosition(Ce.positionStrategy),Ce.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,se.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof Ee&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(se,Ce){this._focusMonitor&&se?this._focusMonitor.focusVia(this._element,se,Ce):this._element.nativeElement.focus(Ce)}updatePosition(){var se;null===(se=this._overlayRef)||void 0===se||se.updatePosition()}_destroyMenu(se){if(!this._overlayRef||!this.menuOpen)return;const Ce=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===se||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,Ce instanceof Ee?(Ce._resetAnimation(),Ce.lazyContent?Ce._animationDone.pipe((0,w.h)(ye=>"void"===ye.toState),(0,O.q)(1),(0,k.R)(Ce.lazyContent._attached)).subscribe({next:()=>Ce.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),Ce.lazyContent&&Ce.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let se=0,Ce=this.menu.parentMenu;for(;Ce;)se++,Ce=Ce.parentMenu;this.menu.setElevation(se)}}_setIsMenuOpen(se){this._menuOpen=se,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(se)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const se=this._getOverlayConfig();this._subscribeToPositions(se.positionStrategy),this._overlayRef=this._overlay.create(se),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new fe.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(se){this.menu.setPositionClasses&&se.positionChanges.subscribe(Ce=>{this.menu.setPositionClasses("start"===Ce.connectionPair.overlayX?"after":"before","top"===Ce.connectionPair.overlayY?"below":"above")})}_setPosition(se){let[Ce,ye]="before"===this.menu.xPosition?["end","start"]:["start","end"],[re,be]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[Ye,it]=[re,be],[mt,_t]=[Ce,ye],It=0;this.triggersSubmenu()?(_t=Ce="before"===this.menu.xPosition?"start":"end",ye=mt="end"===Ce?"start":"end",It="bottom"===re?8:-8):this.menu.overlapTrigger||(Ye="top"===re?"bottom":"top",it="top"===be?"bottom":"top"),se.withPositions([{originX:Ce,originY:Ye,overlayX:mt,overlayY:re,offsetY:It},{originX:ye,originY:Ye,overlayX:_t,overlayY:re,offsetY:It},{originX:Ce,originY:it,overlayX:mt,overlayY:be,offsetY:-It},{originX:ye,originY:it,overlayX:_t,overlayY:be,offsetY:-It}])}_menuClosingActions(){const se=this._overlayRef.backdropClick(),Ce=this._overlayRef.detachments(),ye=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,D.of)(),re=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,w.h)(be=>be!==this._menuItemInstance),(0,w.h)(()=>this._menuOpen)):(0,D.of)();return(0,C.T)(se,ye,re,Ce)}_handleMousedown(se){(0,i.X6)(se)||(this._openedBy=0===se.button?"mouse":void 0,this.triggersSubmenu()&&se.preventDefault())}_handleKeydown(se){const Ce=se.keyCode;(Ce===_.K5||Ce===_.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(Ce===_.SV&&"ltr"===this.dir||Ce===_.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(se){this.triggersSubmenu()?(se.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,w.h)(se=>se===this._menuItemInstance&&!se.disabled),(0,V.g)(0,p.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Ee&&this.menu._isAnimating?this.menu._animationDone.pipe((0,O.q)(1),(0,V.g)(0,p.E),(0,k.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 ie.\u0275fac=function(se){return new(se||ie)(u.\u0275\u0275directiveInject(fe.aV),u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(u.ViewContainerRef),u.\u0275\u0275directiveInject(ge),u.\u0275\u0275directiveInject(vt,8),u.\u0275\u0275directiveInject(Re,10),u.\u0275\u0275directiveInject(le.Is,8),u.\u0275\u0275directiveInject(i.tE))},ie.\u0275dir=u.\u0275\u0275defineDirective({type:ie,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(se,Ce){1&se&&u.\u0275\u0275listener("click",function(re){return Ce._handleClick(re)})("mousedown",function(re){return Ce._handleMousedown(re)})("keydown",function(re){return Ce._handleKeydown(re)}),2&se&&u.\u0275\u0275attribute("aria-expanded",Ce.menuOpen||null)("aria-controls",Ce.menuOpen?Ce.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),ie})(),Ze=(()=>{class ie extends dt{}return ie.\u0275fac=function(){let Oe;return function(Ce){return(Oe||(Oe=u.\u0275\u0275getInheritedFactory(ie)))(Ce||ie)}}(),ie.\u0275dir=u.\u0275\u0275defineDirective({type:ie,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[u.\u0275\u0275InheritDefinitionFeature]}),ie})(),N=(()=>{class ie{}return ie.\u0275fac=function(se){return new(se||ie)},ie.\u0275mod=u.\u0275\u0275defineNgModule({type:ie}),ie.\u0275inj=u.\u0275\u0275defineInjector({providers:[pt],imports:[[ne.CommonModule,De.BQ,De.si,fe.U8],Se.ZD,De.BQ]}),ie})()},2075:(Be,m,l)=>{"use strict";l.r(m),l.d(m,{MatCell:()=>$e,MatCellDef:()=>G,MatColumnDef:()=>Ut,MatFooterCell:()=>He,MatFooterCellDef:()=>Et,MatFooterRow:()=>Bt,MatFooterRowDef:()=>je,MatHeaderCell:()=>gn,MatHeaderCellDef:()=>ot,MatHeaderRow:()=>Vt,MatHeaderRowDef:()=>ce,MatNoDataRow:()=>En,MatRecycleRows:()=>A,MatRow:()=>fn,MatRowDef:()=>ft,MatTable:()=>M,MatTableDataSource:()=>Bn,MatTableModule:()=>Jn,MatTextColumn:()=>$n,_MatTableDataSource:()=>zn});var i=l(5e3),d=l(3191),_=l(449),u=l(9808),s=l(6758),v=l(188),C=l(1135),D=l(5191),p=l(9646),y=l(2722),I=l(5698),O=l(226),w=l(925),k=l(9071);const V=[[["caption"]],[["colgroup"],["col"]]],ue=["caption","colgroup, col"];function $(H,we){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 ne(H,we){if(1&H&&(i.\u0275\u0275elementStart(0,"td",4),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&H){const W=we.$implicit,Pe=i.\u0275\u0275nextContext();i.\u0275\u0275styleProp("text-align",Pe.justify),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",Pe.dataAccessor(W,Pe.name)," ")}}function De(H){return class extends H{constructor(...we){super(...we),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(we){const W=this._sticky;this._sticky=(0,d.Ig)(we),this._hasStickyChanged=W!==this._sticky}hasStickyChanged(){const we=this._hasStickyChanged;return this._hasStickyChanged=!1,we}resetStickyChanged(){this._hasStickyChanged=!1}}}const fe=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})(),Se=(()=>{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})(),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:[["","cdkFooterCellDef",""]]}),H})();class Xe{}const lt=De(Xe);let X=(()=>{class H extends lt{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 Pe=this._stickyEnd;this._stickyEnd=(0,d.Ig)(W),this._hasStickyChanged=Pe!==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(fe,8))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","cdkColumnDef",""]],contentQueries:function(W,Pe,tt){if(1&W&&(i.\u0275\u0275contentQuery(tt,le,5),i.\u0275\u0275contentQuery(tt,Se,5),i.\u0275\u0275contentQuery(tt,Le,5)),2&W){let ct;i.\u0275\u0275queryRefresh(ct=i.\u0275\u0275loadQuery())&&(Pe.cell=ct.first),i.\u0275\u0275queryRefresh(ct=i.\u0275\u0275loadQuery())&&(Pe.headerCell=ct.first),i.\u0275\u0275queryRefresh(ct=i.\u0275\u0275loadQuery())&&(Pe.footerCell=ct.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[i.\u0275\u0275ProvidersFeature([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature]}),H})();class me{constructor(we,W){W.nativeElement.classList.add(...we._columnCssClassName)}}let K=(()=>{class H extends me{constructor(W,Pe){super(W,Pe)}}return H.\u0275fac=function(W){return new(W||H)(i.\u0275\u0275directiveInject(X),i.\u0275\u0275directiveInject(i.ElementRef))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[i.\u0275\u0275InheritDefinitionFeature]}),H})(),oe=(()=>{class H extends me{constructor(W,Pe){var tt;if(super(W,Pe),1===(null===(tt=W._table)||void 0===tt?void 0:tt._elementRef.nativeElement.nodeType)){const ct=W._table._elementRef.nativeElement.getAttribute("role");Pe.nativeElement.setAttribute("role","grid"===ct||"treegrid"===ct?"gridcell":"cell")}}}return H.\u0275fac=function(W){return new(W||H)(i.\u0275\u0275directiveInject(X),i.\u0275\u0275directiveInject(i.ElementRef))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[i.\u0275\u0275InheritDefinitionFeature]}),H})(),ke=(()=>{class H extends me{constructor(W,Pe){var tt;if(super(W,Pe),1===(null===(tt=W._table)||void 0===tt?void 0:tt._elementRef.nativeElement.nodeType)){const ct=W._table._elementRef.nativeElement.getAttribute("role");Pe.nativeElement.setAttribute("role","grid"===ct||"treegrid"===ct?"gridcell":"cell")}}}return H.\u0275fac=function(W){return new(W||H)(i.\u0275\u0275directiveInject(X),i.\u0275\u0275directiveInject(i.ElementRef))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[i.\u0275\u0275InheritDefinitionFeature]}),H})();class de{constructor(){this.tasks=[],this.endTasks=[]}}const Ue=new i.InjectionToken("_COALESCED_STYLE_SCHEDULER");let pe=(()=>{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 de,this._getScheduleObservable().pipe((0,y.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const W=this._currentSchedule;this._currentSchedule=new de;for(const Pe of W.tasks)Pe();for(const Pe of W.endTasks)Pe()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,v.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,I.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})(),Me=(()=>{class H{constructor(W,Pe){this.template=W,this._differs=Pe}ngOnChanges(W){if(!this._columnsDiffer){const Pe=W.columns&&W.columns.currentValue||[];this._columnsDiffer=this._differs.find(Pe).create(),this._columnsDiffer.diff(Pe)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(W){return this instanceof St?W.headerCell.template:this instanceof Y?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 Ge extends Me{}const vt=De(Ge);let St=(()=>{class H extends vt{constructor(W,Pe,tt){super(W,Pe),this._table=tt}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(fe,8))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[i.\u0275\u0275InheritDefinitionFeature,i.\u0275\u0275NgOnChangesFeature]}),H})();class Re extends Me{}const et=De(Re);let Y=(()=>{class H extends et{constructor(W,Pe,tt){super(W,Pe),this._table=tt}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(fe,8))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[i.\u0275\u0275InheritDefinitionFeature,i.\u0275\u0275NgOnChangesFeature]}),H})(),he=(()=>{class H extends Me{constructor(W,Pe,tt){super(W,Pe),this._table=tt}}return H.\u0275fac=function(W){return new(W||H)(i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(i.IterableDiffers),i.\u0275\u0275directiveInject(fe,8))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[i.\u0275\u0275InheritDefinitionFeature]}),H})(),Ee=(()=>{class H{constructor(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})(),Ae=(()=>{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,Pe){1&W&&i.\u0275\u0275elementContainer(0,0)},directives:[Ee],encapsulation:2}),H})(),ge=(()=>{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,Pe){1&W&&i.\u0275\u0275elementContainer(0,0)},directives:[Ee],encapsulation:2}),H})(),Je=(()=>{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,Pe){1&W&&i.\u0275\u0275elementContainer(0,0)},directives:[Ee],encapsulation:2}),H})(),pt=(()=>{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 Tt=["top","bottom","left","right"];class Rt{constructor(we,W,Pe,tt,ct=!0,At=!0,jt){this._isNativeHtmlTable=we,this._stickCellCss=W,this.direction=Pe,this._coalescedStyleScheduler=tt,this._isBrowser=ct,this._needsPositionStickyOnElement=At,this._positionListener=jt,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(we,W){const Pe=[];for(const tt of we)if(tt.nodeType===tt.ELEMENT_NODE){Pe.push(tt);for(let ct=0;ct<tt.children.length;ct++)Pe.push(tt.children[ct])}this._coalescedStyleScheduler.schedule(()=>{for(const tt of Pe)this._removeStickyStyle(tt,W)})}updateStickyColumns(we,W,Pe,tt=!0){if(!we.length||!this._isBrowser||!W.some(cn=>cn)&&!Pe.some(cn=>cn))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const ct=we[0],At=ct.children.length,jt=this._getCellWidths(ct,tt),qt=this._getStickyStartColumnPositions(jt,W),vn=this._getStickyEndColumnPositions(jt,Pe),Ht=W.lastIndexOf(!0),On=Pe.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const cn="rtl"===this.direction,Hn=cn?"right":"left",Un=cn?"left":"right";for(const Sn of we)for(let kn=0;kn<At;kn++){const ai=Sn.children[kn];W[kn]&&this._addStickyStyle(ai,Hn,qt[kn],kn===Ht),Pe[kn]&&this._addStickyStyle(ai,Un,vn[kn],kn===On)}this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:-1===Ht?[]:jt.slice(0,Ht+1).map((Sn,kn)=>W[kn]?Sn:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===On?[]:jt.slice(On).map((Sn,kn)=>Pe[kn+On]?Sn:null).reverse()}))})}stickRows(we,W,Pe){if(!this._isBrowser)return;const tt="bottom"===Pe?we.slice().reverse():we,ct="bottom"===Pe?W.slice().reverse():W,At=[],jt=[],qt=[];for(let Ht=0,On=0;Ht<tt.length;Ht++){if(!ct[Ht])continue;At[Ht]=On;const cn=tt[Ht];qt[Ht]=this._isNativeHtmlTable?Array.from(cn.children):[cn];const Hn=cn.getBoundingClientRect().height;On+=Hn,jt[Ht]=Hn}const vn=ct.lastIndexOf(!0);this._coalescedStyleScheduler.schedule(()=>{var Ht,On;for(let cn=0;cn<tt.length;cn++){if(!ct[cn])continue;const Hn=At[cn],Un=cn===vn;for(const Sn of qt[cn])this._addStickyStyle(Sn,Pe,Hn,Un)}"top"===Pe?null===(Ht=this._positionListener)||void 0===Ht||Ht.stickyHeaderRowsUpdated({sizes:jt,offsets:At,elements:qt}):null===(On=this._positionListener)||void 0===On||On.stickyFooterRowsUpdated({sizes:jt,offsets:At,elements:qt})})}updateStickyFooterContainer(we,W){if(!this._isNativeHtmlTable)return;const Pe=we.querySelector("tfoot");this._coalescedStyleScheduler.schedule(()=>{W.some(tt=>!tt)?this._removeStickyStyle(Pe,["bottom"]):this._addStickyStyle(Pe,"bottom",0,!1)})}_removeStickyStyle(we,W){for(const tt of W)we.style[tt]="",we.classList.remove(this._borderCellCss[tt]);Tt.some(tt=>-1===W.indexOf(tt)&&we.style[tt])?we.style.zIndex=this._getCalculatedZIndex(we):(we.style.zIndex="",this._needsPositionStickyOnElement&&(we.style.position=""),we.classList.remove(this._stickCellCss))}_addStickyStyle(we,W,Pe,tt){we.classList.add(this._stickCellCss),tt&&we.classList.add(this._borderCellCss[W]),we.style[W]=`${Pe}px`,we.style.zIndex=this._getCalculatedZIndex(we),this._needsPositionStickyOnElement&&(we.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(we){const W={top:100,bottom:10,left:1,right:1};let Pe=0;for(const tt of Tt)we.style[tt]&&(Pe+=W[tt]);return Pe?`${Pe}`:""}_getCellWidths(we,W=!0){if(!W&&this._cachedCellWidths.length)return this._cachedCellWidths;const Pe=[],tt=we.children;for(let ct=0;ct<tt.length;ct++)Pe.push(tt[ct].getBoundingClientRect().width);return this._cachedCellWidths=Pe,Pe}_getStickyStartColumnPositions(we,W){const Pe=[];let tt=0;for(let ct=0;ct<we.length;ct++)W[ct]&&(Pe[ct]=tt,tt+=we[ct]);return Pe}_getStickyEndColumnPositions(we,W){const Pe=[];let tt=0;for(let ct=we.length;ct>0;ct--)W[ct]&&(Pe[ct]=tt,tt+=we[ct]);return Pe}}const re=new i.InjectionToken("CDK_SPL");let Ye=(()=>{class H{constructor(W,Pe){this.viewContainer=W,this.elementRef=Pe}}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})(),it=(()=>{class H{constructor(W,Pe){this.viewContainer=W,this.elementRef=Pe}}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})(),mt=(()=>{class H{constructor(W,Pe){this.viewContainer=W,this.elementRef=Pe}}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})(),_t=(()=>{class H{constructor(W,Pe){this.viewContainer=W,this.elementRef=Pe}}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})(),on=(()=>{class H{constructor(W,Pe,tt,ct,At,jt,qt,vn,Ht,On,cn,Hn){this._differs=W,this._changeDetectorRef=Pe,this._elementRef=tt,this._dir=At,this._platform=qt,this._viewRepeater=vn,this._coalescedStyleScheduler=Ht,this._viewportRuler=On,this._stickyPositioningListener=cn,this._ngZone=Hn,this._onDestroy=new s.x,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new i.EventEmitter,this.viewChange=new C.X({start:0,end:Number.MAX_VALUE}),ct||this._elementRef.nativeElement.setAttribute("role","table"),this._document=jt,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,d.Ig)(W),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(W){this._fixedLayout=(0,d.Ig)(W),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((W,Pe)=>this.trackBy?this.trackBy(Pe.dataIndex,Pe.data):Pe),this._viewportRuler.change().pipe((0,y.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const Pe=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||Pe,this._forceRecalculateCellWidths=Pe,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),(0,_.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const W=this._dataDiffer.diff(this._renderRows);if(!W)return this._updateNoDataRow(),void this.contentChanged.next();const Pe=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(W,Pe,(tt,ct,At)=>this._getEmbeddedViewArgs(tt.item,At),tt=>tt.item.data,tt=>{1===tt.operation&&tt.context&&this._renderCellTemplateForItem(tt.record.item.rowDef,tt.context)}),this._updateRowIndexContext(),W.forEachIdentityChange(tt=>{Pe.get(tt.currentIndex).context.$implicit=tt.item.data}),this._updateNoDataRow(),this._ngZone&&i.NgZone.isInAngularZone()?this._ngZone.onStable.pipe((0,I.q)(1),(0,y.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),tt=this._elementRef.nativeElement.querySelector("thead");tt&&(tt.style.display=W.length?"":"none");const ct=this._headerRowDefs.map(At=>At.sticky);this._stickyStyler.clearStickyPositioning(W,["top"]),this._stickyStyler.stickRows(W,ct,"top"),this._headerRowDefs.forEach(At=>At.resetStickyChanged())}updateStickyFooterRowStyles(){const W=this._getRenderedRows(this._footerRowOutlet),tt=this._elementRef.nativeElement.querySelector("tfoot");tt&&(tt.style.display=W.length?"":"none");const ct=this._footerRowDefs.map(At=>At.sticky);this._stickyStyler.clearStickyPositioning(W,["bottom"]),this._stickyStyler.stickRows(W,ct,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,ct),this._footerRowDefs.forEach(At=>At.resetStickyChanged())}updateStickyColumnStyles(){const W=this._getRenderedRows(this._headerRowOutlet),Pe=this._getRenderedRows(this._rowOutlet),tt=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...W,...Pe,...tt],["left","right"]),this._stickyColumnStylesNeedReset=!1),W.forEach((ct,At)=>{this._addStickyColumnStyles([ct],this._headerRowDefs[At])}),this._rowDefs.forEach(ct=>{const At=[];for(let jt=0;jt<Pe.length;jt++)this._renderRows[jt].rowDef===ct&&At.push(Pe[jt]);this._addStickyColumnStyles(At,ct)}),tt.forEach((ct,At)=>{this._addStickyColumnStyles([ct],this._footerRowDefs[At])}),Array.from(this._columnDefsByName.values()).forEach(ct=>ct.resetStickyChanged())}_getAllRenderRows(){const W=[],Pe=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let tt=0;tt<this._data.length;tt++){let ct=this._data[tt];const At=this._getRenderRowsForData(ct,tt,Pe.get(ct));this._cachedRenderRowsMap.has(ct)||this._cachedRenderRowsMap.set(ct,new WeakMap);for(let jt=0;jt<At.length;jt++){let qt=At[jt];const vn=this._cachedRenderRowsMap.get(qt.data);vn.has(qt.rowDef)?vn.get(qt.rowDef).push(qt):vn.set(qt.rowDef,[qt]),W.push(qt)}}return W}_getRenderRowsForData(W,Pe,tt){return this._getRowDefs(W,Pe).map(At=>{const jt=tt&&tt.has(At)?tt.get(At):[];if(jt.length){const qt=jt.shift();return qt.dataIndex=Pe,qt}return{data:W,rowDef:At,dataIndex:Pe}})}_cacheColumnDefs(){this._columnDefsByName.clear(),Kt(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(Pe=>{this._columnDefsByName.has(Pe.name),this._columnDefsByName.set(Pe.name,Pe)})}_cacheRowDefs(){this._headerRowDefs=Kt(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Kt(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Kt(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const W=this._rowDefs.filter(Pe=>!Pe.when);this._defaultRowDef=W[0]}_renderUpdatedColumns(){const W=(At,jt)=>At||!!jt.getColumnsDiff(),Pe=this._rowDefs.reduce(W,!1);Pe&&this._forceRenderDataRows();const tt=this._headerRowDefs.reduce(W,!1);tt&&this._forceRenderHeaderRows();const ct=this._footerRowDefs.reduce(W,!1);return ct&&this._forceRenderFooterRows(),Pe||tt||ct}_switchDataSource(W){this._data=[],(0,_.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,_.Z9)(this.dataSource)?W=this.dataSource.connect(this):(0,D.b)(this.dataSource)?W=this.dataSource:Array.isArray(this.dataSource)&&(W=(0,p.of)(this.dataSource)),this._renderChangeSubscription=W.pipe((0,y.R)(this._onDestroy)).subscribe(Pe=>{this._data=Pe||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((W,Pe)=>this._renderRow(this._headerRowOutlet,W,Pe)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((W,Pe)=>this._renderRow(this._footerRowOutlet,W,Pe)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(W,Pe){const tt=Array.from(Pe.columns||[]).map(jt=>this._columnDefsByName.get(jt)),ct=tt.map(jt=>jt.sticky),At=tt.map(jt=>jt.stickyEnd);this._stickyStyler.updateStickyColumns(W,ct,At,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(W){const Pe=[];for(let tt=0;tt<W.viewContainer.length;tt++){const ct=W.viewContainer.get(tt);Pe.push(ct.rootNodes[0])}return Pe}_getRowDefs(W,Pe){if(1==this._rowDefs.length)return[this._rowDefs[0]];let tt=[];if(this.multiTemplateDataRows)tt=this._rowDefs.filter(ct=>!ct.when||ct.when(Pe,W));else{let ct=this._rowDefs.find(At=>At.when&&At.when(Pe,W))||this._defaultRowDef;ct&&tt.push(ct)}return tt}_getEmbeddedViewArgs(W,Pe){return{templateRef:W.rowDef.template,context:{$implicit:W.data},index:Pe}}_renderRow(W,Pe,tt,ct={}){const At=W.viewContainer.createEmbeddedView(Pe.template,ct,tt);return this._renderCellTemplateForItem(Pe,ct),At}_renderCellTemplateForItem(W,Pe){for(let tt of this._getCellTemplates(W))Ee.mostRecentCellOutlet&&Ee.mostRecentCellOutlet._viewContainer.createEmbeddedView(tt,Pe);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const W=this._rowOutlet.viewContainer;for(let Pe=0,tt=W.length;Pe<tt;Pe++){const At=W.get(Pe).context;At.count=tt,At.first=0===Pe,At.last=Pe===tt-1,At.even=Pe%2==0,At.odd=!At.even,this.multiTemplateDataRows?(At.dataIndex=this._renderRows[Pe].dataIndex,At.renderIndex=Pe):At.index=this._renderRows[Pe].dataIndex}}_getCellTemplates(W){return W&&W.columns?Array.from(W.columns,Pe=>{const tt=this._columnDefsByName.get(Pe);return W.extractCellTemplate(tt)}):[]}_applyNativeTableSections(){const W=this._document.createDocumentFragment(),Pe=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const tt of Pe){const ct=this._document.createElement(tt.tag);ct.setAttribute("role","rowgroup");for(const At of tt.outlets)ct.appendChild(At.elementRef.nativeElement);W.appendChild(ct)}this._elementRef.nativeElement.appendChild(W)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const W=(Pe,tt)=>Pe||tt.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 Rt(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,p.of)()).pipe((0,y.R)(this._onDestroy)).subscribe(Pe=>{this._stickyStyler.direction=Pe,this.updateStickyColumnStyles()})}_getOwnDefs(W){return W.filter(Pe=>!Pe._table||Pe._table===this)}_updateNoDataRow(){const W=this._customNoDataRow||this._noDataRow;if(!W)return;const Pe=0===this._rowOutlet.viewContainer.length;if(Pe===this._isShowingNoDataRow)return;const tt=this._noDataRowOutlet.viewContainer;if(Pe){const ct=tt.createEmbeddedView(W.templateRef),At=ct.rootNodes[0];1===ct.rootNodes.length&&(null==At?void 0:At.nodeType)===this._document.ELEMENT_NODE&&(At.setAttribute("role","row"),At.classList.add(W._contentClassName))}else tt.clear();this._isShowingNoDataRow=Pe}}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(O.Is,8),i.\u0275\u0275directiveInject(u.DOCUMENT),i.\u0275\u0275directiveInject(w.t4),i.\u0275\u0275directiveInject(_.k),i.\u0275\u0275directiveInject(Ue),i.\u0275\u0275directiveInject(k.rL),i.\u0275\u0275directiveInject(re,12),i.\u0275\u0275directiveInject(i.NgZone,8))},H.\u0275cmp=i.\u0275\u0275defineComponent({type:H,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(W,Pe,tt){if(1&W&&(i.\u0275\u0275contentQuery(tt,pt,5),i.\u0275\u0275contentQuery(tt,X,5),i.\u0275\u0275contentQuery(tt,he,5),i.\u0275\u0275contentQuery(tt,St,5),i.\u0275\u0275contentQuery(tt,Y,5)),2&W){let ct;i.\u0275\u0275queryRefresh(ct=i.\u0275\u0275loadQuery())&&(Pe._noDataRow=ct.first),i.\u0275\u0275queryRefresh(ct=i.\u0275\u0275loadQuery())&&(Pe._contentColumnDefs=ct),i.\u0275\u0275queryRefresh(ct=i.\u0275\u0275loadQuery())&&(Pe._contentRowDefs=ct),i.\u0275\u0275queryRefresh(ct=i.\u0275\u0275loadQuery())&&(Pe._contentHeaderRowDefs=ct),i.\u0275\u0275queryRefresh(ct=i.\u0275\u0275loadQuery())&&(Pe._contentFooterRowDefs=ct)}},viewQuery:function(W,Pe){if(1&W&&(i.\u0275\u0275viewQuery(Ye,7),i.\u0275\u0275viewQuery(it,7),i.\u0275\u0275viewQuery(mt,7),i.\u0275\u0275viewQuery(_t,7)),2&W){let tt;i.\u0275\u0275queryRefresh(tt=i.\u0275\u0275loadQuery())&&(Pe._rowOutlet=tt.first),i.\u0275\u0275queryRefresh(tt=i.\u0275\u0275loadQuery())&&(Pe._headerRowOutlet=tt.first),i.\u0275\u0275queryRefresh(tt=i.\u0275\u0275loadQuery())&&(Pe._footerRowOutlet=tt.first),i.\u0275\u0275queryRefresh(tt=i.\u0275\u0275loadQuery())&&(Pe._noDataRowOutlet=tt.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(W,Pe){2&W&&i.\u0275\u0275classProp("cdk-table-fixed-layout",Pe.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[i.\u0275\u0275ProvidersFeature([{provide:fe,useExisting:H},{provide:_.k,useClass:_.yy},{provide:Ue,useClass:pe},{provide:re,useValue:null}])],ngContentSelectors:ue,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(W,Pe){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:[it,Ye,_t,mt],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),H})();function Kt(H,we){return H.concat(Array.from(we))}let Mn=(()=>{class H{constructor(W,Pe){this._table=W,this._options=Pe,this.justify="start",this._options=Pe||{}}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,Pe)=>W[Pe])),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(on,8),i.\u0275\u0275directiveInject(_e,8))},H.\u0275cmp=i.\u0275\u0275defineComponent({type:H,selectors:[["cdk-text-column"]],viewQuery:function(W,Pe){if(1&W&&(i.\u0275\u0275viewQuery(X,7),i.\u0275\u0275viewQuery(le,7),i.\u0275\u0275viewQuery(Se,7)),2&W){let tt;i.\u0275\u0275queryRefresh(tt=i.\u0275\u0275loadQuery())&&(Pe.columnDef=tt.first),i.\u0275\u0275queryRefresh(tt=i.\u0275\u0275loadQuery())&&(Pe.cell=tt.first),i.\u0275\u0275queryRefresh(tt=i.\u0275\u0275loadQuery())&&(Pe.headerCell=tt.first)}},inputs:{name:"name",headerText:"headerText",dataAccessor:"dataAccessor",justify:"justify"},decls:3,vars:0,consts:[["cdkColumnDef",""],["cdk-header-cell","",3,"text-align",4,"cdkHeaderCellDef"],["cdk-cell","",3,"text-align",4,"cdkCellDef"],["cdk-header-cell",""],["cdk-cell",""]],template:function(W,Pe){1&W&&(i.\u0275\u0275elementContainerStart(0,0),i.\u0275\u0275template(1,$,2,3,"th",1),i.\u0275\u0275template(2,ne,2,3,"td",2),i.\u0275\u0275elementContainerEnd())},directives:[X,Se,le,K,ke],encapsulation:2}),H})(),Qt=(()=>{class H{}return H.\u0275fac=function(W){return new(W||H)},H.\u0275mod=i.\u0275\u0275defineNgModule({type:H}),H.\u0275inj=i.\u0275\u0275defineInjector({imports:[[k.Cl]]}),H})();var Ot=l(508),bn=l(6451),at=l(9841),Ke=l(4004);const Qe=[[["caption"]],[["colgroup"],["col"]]],Ie=["caption","colgroup, col"];function Te(H,we){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 S(H,we){if(1&H&&(i.\u0275\u0275elementStart(0,"td",4),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&H){const W=we.$implicit,Pe=i.\u0275\u0275nextContext();i.\u0275\u0275styleProp("text-align",Pe.justify),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",Pe.dataAccessor(W,Pe.name)," ")}}let A=(()=>{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:_.k,useClass:_.eX}])]}),H})(),M=(()=>{class H extends on{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return H.\u0275fac=function(){let we;return function(Pe){return(we||(we=i.\u0275\u0275getInheritedFactory(H)))(Pe||H)}}(),H.\u0275cmp=i.\u0275\u0275defineComponent({type:H,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(W,Pe){2&W&&i.\u0275\u0275classProp("mat-table-fixed-layout",Pe.fixedLayout)},exportAs:["matTable"],features:[i.\u0275\u0275ProvidersFeature([{provide:_.k,useClass:_.yy},{provide:on,useExisting:H},{provide:fe,useExisting:H},{provide:Ue,useClass:pe},{provide:re,useValue:null}]),i.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:Ie,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(W,Pe){1&W&&(i.\u0275\u0275projectionDef(Qe),i.\u0275\u0275projection(0),i.\u0275\u0275projection(1,1),i.\u0275\u0275elementContainer(2,0),i.\u0275\u0275elementContainer(3,1),i.\u0275\u0275elementContainer(4,2),i.\u0275\u0275elementContainer(5,3))},directives:[it,Ye,_t,mt],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),H})(),G=(()=>{class H extends le{}return H.\u0275fac=function(){let we;return function(Pe){return(we||(we=i.\u0275\u0275getInheritedFactory(H)))(Pe||H)}}(),H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","matCellDef",""]],features:[i.\u0275\u0275ProvidersFeature([{provide:le,useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature]}),H})(),ot=(()=>{class H extends Se{}return H.\u0275fac=function(){let we;return function(Pe){return(we||(we=i.\u0275\u0275getInheritedFactory(H)))(Pe||H)}}(),H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","matHeaderCellDef",""]],features:[i.\u0275\u0275ProvidersFeature([{provide:Se,useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature]}),H})(),Et=(()=>{class H extends Le{}return H.\u0275fac=function(){let we;return function(Pe){return(we||(we=i.\u0275\u0275getInheritedFactory(H)))(Pe||H)}}(),H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","matFooterCellDef",""]],features:[i.\u0275\u0275ProvidersFeature([{provide:Le,useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature]}),H})(),Ut=(()=>{class H extends X{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 we;return function(Pe){return(we||(we=i.\u0275\u0275getInheritedFactory(H)))(Pe||H)}}(),H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[i.\u0275\u0275ProvidersFeature([{provide:X,useExisting:H},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature]}),H})(),gn=(()=>{class H extends K{}return H.\u0275fac=function(){let we;return function(Pe){return(we||(we=i.\u0275\u0275getInheritedFactory(H)))(Pe||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})(),He=(()=>{class H extends oe{}return H.\u0275fac=function(){let we;return function(Pe){return(we||(we=i.\u0275\u0275getInheritedFactory(H)))(Pe||H)}}(),H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[i.\u0275\u0275InheritDefinitionFeature]}),H})(),$e=(()=>{class H extends ke{}return H.\u0275fac=function(){let we;return function(Pe){return(we||(we=i.\u0275\u0275getInheritedFactory(H)))(Pe||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})(),ce=(()=>{class H extends St{}return H.\u0275fac=function(){let we;return function(Pe){return(we||(we=i.\u0275\u0275getInheritedFactory(H)))(Pe||H)}}(),H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[i.\u0275\u0275ProvidersFeature([{provide:St,useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature]}),H})(),je=(()=>{class H extends Y{}return H.\u0275fac=function(){let we;return function(Pe){return(we||(we=i.\u0275\u0275getInheritedFactory(H)))(Pe||H)}}(),H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[i.\u0275\u0275ProvidersFeature([{provide:Y,useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature]}),H})(),ft=(()=>{class H extends he{}return H.\u0275fac=function(){let we;return function(Pe){return(we||(we=i.\u0275\u0275getInheritedFactory(H)))(Pe||H)}}(),H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[i.\u0275\u0275ProvidersFeature([{provide:he,useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature]}),H})(),Vt=(()=>{class H extends Ae{}return H.\u0275fac=function(){let we;return function(Pe){return(we||(we=i.\u0275\u0275getInheritedFactory(H)))(Pe||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:Ae,useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(W,Pe){1&W&&i.\u0275\u0275elementContainer(0,0)},directives:[Ee],encapsulation:2}),H})(),Bt=(()=>{class H extends ge{}return H.\u0275fac=function(){let we;return function(Pe){return(we||(we=i.\u0275\u0275getInheritedFactory(H)))(Pe||H)}}(),H.\u0275cmp=i.\u0275\u0275defineComponent({type:H,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[i.\u0275\u0275ProvidersFeature([{provide:ge,useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(W,Pe){1&W&&i.\u0275\u0275elementContainer(0,0)},directives:[Ee],encapsulation:2}),H})(),fn=(()=>{class H extends Je{}return H.\u0275fac=function(){let we;return function(Pe){return(we||(we=i.\u0275\u0275getInheritedFactory(H)))(Pe||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:Je,useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(W,Pe){1&W&&i.\u0275\u0275elementContainer(0,0)},directives:[Ee],encapsulation:2}),H})(),En=(()=>{class H extends pt{constructor(){super(...arguments),this._contentClassName="mat-no-data-row"}}return H.\u0275fac=function(){let we;return function(Pe){return(we||(we=i.\u0275\u0275getInheritedFactory(H)))(Pe||H)}}(),H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["ng-template","matNoDataRow",""]],features:[i.\u0275\u0275ProvidersFeature([{provide:pt,useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature]}),H})(),$n=(()=>{class H extends Mn{}return H.\u0275fac=function(){let we;return function(Pe){return(we||(we=i.\u0275\u0275getInheritedFactory(H)))(Pe||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,Pe){1&W&&(i.\u0275\u0275elementContainerStart(0,0),i.\u0275\u0275template(1,Te,2,3,"th",1),i.\u0275\u0275template(2,S,2,3,"td",2),i.\u0275\u0275elementContainerEnd())},directives:[Ut,ot,G,gn,$e],encapsulation:2}),H})(),Jn=(()=>{class H{}return H.\u0275fac=function(W){return new(W||H)},H.\u0275mod=i.\u0275\u0275defineNgModule({type:H}),H.\u0275inj=i.\u0275\u0275defineInjector({imports:[[Qt,Ot.BQ],Ot.BQ]}),H})();class zn extends _.o2{constructor(we=[]){super(),this._renderData=new C.X([]),this._filter=new C.X(""),this._internalPageChanges=new s.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(W,Pe)=>{const tt=W[Pe];if((0,d.t6)(tt)){const ct=Number(tt);return ct<9007199254740991?ct:tt}return tt},this.sortData=(W,Pe)=>{const tt=Pe.active,ct=Pe.direction;return tt&&""!=ct?W.sort((At,jt)=>{let qt=this.sortingDataAccessor(At,tt),vn=this.sortingDataAccessor(jt,tt);const Ht=typeof qt,On=typeof vn;Ht!==On&&("number"===Ht&&(qt+=""),"number"===On&&(vn+=""));let cn=0;return null!=qt&&null!=vn?qt>vn?cn=1:qt<vn&&(cn=-1):null!=qt?cn=1:null!=vn&&(cn=-1),cn*("asc"==ct?1:-1)}):W},this.filterPredicate=(W,Pe)=>{const tt=Object.keys(W).reduce((At,jt)=>At+W[jt]+"\u25ec","").toLowerCase(),ct=Pe.trim().toLowerCase();return-1!=tt.indexOf(ct)},this._data=new C.X(we),this._updateChangeSubscription()}get data(){return this._data.value}set data(we){this._data.next(we),this._renderChangesSubscription||this._filterData(we)}get filter(){return this._filter.value}set filter(we){this._filter.next(we),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(we){this._sort=we,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(we){this._paginator=we,this._updateChangeSubscription()}_updateChangeSubscription(){var we;const W=this._sort?(0,bn.T)(this._sort.sortChange,this._sort.initialized):(0,p.of)(null),Pe=this._paginator?(0,bn.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,p.of)(null),ct=(0,at.a)([this._data,this._filter]).pipe((0,Ke.U)(([qt])=>this._filterData(qt))),At=(0,at.a)([ct,W]).pipe((0,Ke.U)(([qt])=>this._orderData(qt))),jt=(0,at.a)([At,Pe]).pipe((0,Ke.U)(([qt])=>this._pageData(qt)));null===(we=this._renderChangesSubscription)||void 0===we||we.unsubscribe(),this._renderChangesSubscription=jt.subscribe(qt=>this._renderData.next(qt))}_filterData(we){return this.filteredData=null==this.filter||""===this.filter?we:we.filter(W=>this.filterPredicate(W,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(we){return this.sort?this.sortData(we.slice(),this.sort):we}_pageData(we){if(!this.paginator)return we;const W=this.paginator.pageIndex*this.paginator.pageSize;return we.slice(W,W+this.paginator.pageSize)}_updatePaginator(we){Promise.resolve().then(()=>{const W=this.paginator;if(W&&(W.length=we,W.pageIndex>0)){const Pe=Math.ceil(W.length/W.pageSize)-1||0,tt=Math.min(W.pageIndex,Pe);tt!==W.pageIndex&&(W.pageIndex=tt,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var we;null===(we=this._renderChangesSubscription)||void 0===we||we.unsubscribe(),this._renderChangesSubscription=null}}class Bn extends zn{}},3251:(Be,m,l)=>{"use strict";l.r(m),l.d(m,{MAT_TAB:()=>Je,MAT_TABS_CONFIG:()=>se,MAT_TAB_GROUP:()=>Rt,MatInkBar:()=>he,MatTab:()=>dt,MatTabBody:()=>Oe,MatTabBodyPortal:()=>N,MatTabChangeEvent:()=>on,MatTabContent:()=>Ae,MatTabGroup:()=>an,MatTabHeader:()=>It,MatTabLabel:()=>pt,MatTabLabelWrapper:()=>ye,MatTabLink:()=>Ke,MatTabNav:()=>Ot,MatTabsModule:()=>Qe,_MAT_INK_BAR_POSITIONER:()=>et,_MatTabBodyBase:()=>ie,_MatTabGroupBase:()=>Mn,_MatTabHeaderBase:()=>_t,_MatTabLinkBase:()=>at,_MatTabNavBase:()=>Qt,matTabsAnimations:()=>Ze});var i=l(5664),d=l(7144),_=l(7429),u=l(9808),s=l(5e3),v=l(508),C=l(6360),D=l(6758),p=l(6921),y=l(4968),I=l(9646),O=l(6451),w=l(2805),k=l(1777),V=l(8675),ue=l(1884),$=l(2722),ne=l(226),De=l(3191),fe=l(1159),_e=l(925),le=l(9071);function Se(Ie,Te){1&Ie&&s.\u0275\u0275projection(0)}const Le=["*"];function Xe(Ie,Te){}const lt=function(Ie){return{animationDuration:Ie}},X=function(Ie,Te){return{value:Ie,params:Te}},me=["tabListContainer"],K=["tabList"],oe=["tabListInner"],ke=["nextPaginator"],de=["previousPaginator"],Ue=["tabBodyWrapper"],pe=["tabHeader"];function qe(Ie,Te){}function Me(Ie,Te){if(1&Ie&&s.\u0275\u0275template(0,qe,0,0,"ng-template",9),2&Ie){const S=s.\u0275\u0275nextContext().$implicit;s.\u0275\u0275property("cdkPortalOutlet",S.templateLabel)}}function Ge(Ie,Te){if(1&Ie&&s.\u0275\u0275text(0),2&Ie){const S=s.\u0275\u0275nextContext().$implicit;s.\u0275\u0275textInterpolate(S.textLabel)}}function vt(Ie,Te){if(1&Ie){const S=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"div",6),s.\u0275\u0275listener("click",function(){const M=s.\u0275\u0275restoreView(S),G=M.$implicit,ot=M.index,Et=s.\u0275\u0275nextContext(),Ut=s.\u0275\u0275reference(1);return Et._handleClick(G,Ut,ot)})("cdkFocusChange",function(M){const ot=s.\u0275\u0275restoreView(S).index;return s.\u0275\u0275nextContext()._tabFocusChanged(M,ot)}),s.\u0275\u0275elementStart(1,"div",7),s.\u0275\u0275template(2,Me,1,1,"ng-template",8),s.\u0275\u0275template(3,Ge,1,1,"ng-template",8),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd()}if(2&Ie){const S=Te.$implicit,A=Te.index,M=s.\u0275\u0275nextContext();s.\u0275\u0275classProp("mat-tab-label-active",M.selectedIndex==A),s.\u0275\u0275property("id",M._getTabLabelId(A))("disabled",S.disabled)("matRippleDisabled",S.disabled||M.disableRipple),s.\u0275\u0275attribute("tabIndex",M._getTabIndex(S,A))("aria-posinset",A+1)("aria-setsize",M._tabs.length)("aria-controls",M._getTabContentId(A))("aria-selected",M.selectedIndex==A)("aria-label",S.ariaLabel||null)("aria-labelledby",!S.ariaLabel&&S.ariaLabelledby?S.ariaLabelledby:null),s.\u0275\u0275advance(2),s.\u0275\u0275property("ngIf",S.templateLabel),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngIf",!S.templateLabel)}}function St(Ie,Te){if(1&Ie){const S=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"mat-tab-body",10),s.\u0275\u0275listener("_onCentered",function(){return s.\u0275\u0275restoreView(S),s.\u0275\u0275nextContext()._removeTabBodyWrapperHeight()})("_onCentering",function(M){return s.\u0275\u0275restoreView(S),s.\u0275\u0275nextContext()._setTabBodyWrapperHeight(M)}),s.\u0275\u0275elementEnd()}if(2&Ie){const S=Te.$implicit,A=Te.index,M=s.\u0275\u0275nextContext();s.\u0275\u0275classProp("mat-tab-body-active",M.selectedIndex===A),s.\u0275\u0275property("id",M._getTabContentId(A))("content",S.content)("position",S.position)("origin",S.origin)("animationDuration",M.animationDuration),s.\u0275\u0275attribute("tabindex",null!=M.contentTabIndex&&M.selectedIndex===A?M.contentTabIndex:null)("aria-labelledby",M._getTabLabelId(A))}}const Re=["mat-tab-nav-bar",""],et=new s.InjectionToken("MatInkBarPositioner",{providedIn:"root",factory:function Y(){return Te=>({left:Te?(Te.offsetLeft||0)+"px":"0",width:Te?(Te.offsetWidth||0)+"px":"0"})}});let he=(()=>{class Ie{constructor(S,A,M,G){this._elementRef=S,this._ngZone=A,this._inkBarPositioner=M,this._animationMode=G}alignToElement(S){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(S))}):this._setStyles(S)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(S){const A=this._inkBarPositioner(S),M=this._elementRef.nativeElement;M.style.left=A.left,M.style.width=A.width}}return Ie.\u0275fac=function(S){return new(S||Ie)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(et),s.\u0275\u0275directiveInject(C.ANIMATION_MODULE_TYPE,8))},Ie.\u0275dir=s.\u0275\u0275defineDirective({type:Ie,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(S,A){2&S&&s.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===A._animationMode)}}),Ie})();const Ee=new s.InjectionToken("MatTabContent");let Ae=(()=>{class Ie{constructor(S){this.template=S}}return Ie.\u0275fac=function(S){return new(S||Ie)(s.\u0275\u0275directiveInject(s.TemplateRef))},Ie.\u0275dir=s.\u0275\u0275defineDirective({type:Ie,selectors:[["","matTabContent",""]],features:[s.\u0275\u0275ProvidersFeature([{provide:Ee,useExisting:Ie}])]}),Ie})();const ge=new s.InjectionToken("MatTabLabel"),Je=new s.InjectionToken("MAT_TAB");let pt=(()=>{class Ie extends _.ig{constructor(S,A,M){super(S,A),this._closestTab=M}}return Ie.\u0275fac=function(S){return new(S||Ie)(s.\u0275\u0275directiveInject(s.TemplateRef),s.\u0275\u0275directiveInject(s.ViewContainerRef),s.\u0275\u0275directiveInject(Je,8))},Ie.\u0275dir=s.\u0275\u0275defineDirective({type:Ie,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[s.\u0275\u0275ProvidersFeature([{provide:ge,useExisting:Ie}]),s.\u0275\u0275InheritDefinitionFeature]}),Ie})();const Tt=(0,v.Id)(class{}),Rt=new s.InjectionToken("MAT_TAB_GROUP");let dt=(()=>{class Ie extends Tt{constructor(S,A){super(),this._viewContainerRef=S,this._closestTabGroup=A,this.textLabel="",this._contentPortal=null,this._stateChanges=new D.x,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(S){this._setTemplateLabelInput(S)}get content(){return this._contentPortal}ngOnChanges(S){(S.hasOwnProperty("textLabel")||S.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new _.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(S){S&&S._closestTab===this&&(this._templateLabel=S)}}return Ie.\u0275fac=function(S){return new(S||Ie)(s.\u0275\u0275directiveInject(s.ViewContainerRef),s.\u0275\u0275directiveInject(Rt,8))},Ie.\u0275cmp=s.\u0275\u0275defineComponent({type:Ie,selectors:[["mat-tab"]],contentQueries:function(S,A,M){if(1&S&&(s.\u0275\u0275contentQuery(M,ge,5),s.\u0275\u0275contentQuery(M,Ee,7,s.TemplateRef)),2&S){let G;s.\u0275\u0275queryRefresh(G=s.\u0275\u0275loadQuery())&&(A.templateLabel=G.first),s.\u0275\u0275queryRefresh(G=s.\u0275\u0275loadQuery())&&(A._explicitContent=G.first)}},viewQuery:function(S,A){if(1&S&&s.\u0275\u0275viewQuery(s.TemplateRef,7),2&S){let M;s.\u0275\u0275queryRefresh(M=s.\u0275\u0275loadQuery())&&(A._implicitContent=M.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[s.\u0275\u0275ProvidersFeature([{provide:Je,useExisting:Ie}]),s.\u0275\u0275InheritDefinitionFeature,s.\u0275\u0275NgOnChangesFeature],ngContentSelectors:Le,decls:1,vars:0,template:function(S,A){1&S&&(s.\u0275\u0275projectionDef(),s.\u0275\u0275template(0,Se,1,0,"ng-template"))},encapsulation:2}),Ie})();const Ze={translateTab:(0,k.X$)("translateTab",[(0,k.SB)("center, void, left-origin-center, right-origin-center",(0,k.oB)({transform:"none"})),(0,k.SB)("left",(0,k.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),(0,k.SB)("right",(0,k.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),(0,k.eR)("* => left, * => right, left => center, right => center",(0,k.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,k.eR)("void => left-origin-center",[(0,k.oB)({transform:"translate3d(-100%, 0, 0)"}),(0,k.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,k.eR)("void => right-origin-center",[(0,k.oB)({transform:"translate3d(100%, 0, 0)"}),(0,k.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let N=(()=>{class Ie extends _.Pl{constructor(S,A,M,G){super(S,A,G),this._host=M,this._centeringSub=p.w0.EMPTY,this._leavingSub=p.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,V.O)(this._host._isCenterPosition(this._host._position))).subscribe(S=>{S&&!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 Ie.\u0275fac=function(S){return new(S||Ie)(s.\u0275\u0275directiveInject(s.ComponentFactoryResolver),s.\u0275\u0275directiveInject(s.ViewContainerRef),s.\u0275\u0275directiveInject((0,s.forwardRef)(()=>Oe)),s.\u0275\u0275directiveInject(u.DOCUMENT))},Ie.\u0275dir=s.\u0275\u0275defineDirective({type:Ie,selectors:[["","matTabBodyHost",""]],features:[s.\u0275\u0275InheritDefinitionFeature]}),Ie})(),ie=(()=>{class Ie{constructor(S,A,M){this._elementRef=S,this._dir=A,this._dirChangeSubscription=p.w0.EMPTY,this._translateTabComplete=new D.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",A&&(this._dirChangeSubscription=A.change.subscribe(G=>{this._computePositionAnimationState(G),M.markForCheck()})),this._translateTabComplete.pipe((0,ue.x)((G,ot)=>G.fromState===ot.fromState&&G.toState===ot.toState)).subscribe(G=>{this._isCenterPosition(G.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(G.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(S){this._positionIndex=S,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(S){const A=this._isCenterPosition(S.toState);this._beforeCentering.emit(A),A&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(S){return"center"==S||"left-origin-center"==S||"right-origin-center"==S}_computePositionAnimationState(S=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==S?"left":"right":this._positionIndex>0?"ltr"==S?"right":"left":"center"}_computePositionFromOrigin(S){const A=this._getLayoutDirection();return"ltr"==A&&S<=0||"rtl"==A&&S>0?"left-origin-center":"right-origin-center"}}return Ie.\u0275fac=function(S){return new(S||Ie)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(ne.Is,8),s.\u0275\u0275directiveInject(s.ChangeDetectorRef))},Ie.\u0275dir=s.\u0275\u0275defineDirective({type:Ie,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),Ie})(),Oe=(()=>{class Ie extends ie{constructor(S,A,M){super(S,A,M)}}return Ie.\u0275fac=function(S){return new(S||Ie)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(ne.Is,8),s.\u0275\u0275directiveInject(s.ChangeDetectorRef))},Ie.\u0275cmp=s.\u0275\u0275defineComponent({type:Ie,selectors:[["mat-tab-body"]],viewQuery:function(S,A){if(1&S&&s.\u0275\u0275viewQuery(_.Pl,5),2&S){let M;s.\u0275\u0275queryRefresh(M=s.\u0275\u0275loadQuery())&&(A._portalHost=M.first)}},hostAttrs:[1,"mat-tab-body"],features:[s.\u0275\u0275InheritDefinitionFeature],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(S,A){1&S&&(s.\u0275\u0275elementStart(0,"div",0,1),s.\u0275\u0275listener("@translateTab.start",function(G){return A._onTranslateTabStarted(G)})("@translateTab.done",function(G){return A._translateTabComplete.next(G)}),s.\u0275\u0275template(2,Xe,0,0,"ng-template",2),s.\u0275\u0275elementEnd()),2&S&&s.\u0275\u0275property("@translateTab",s.\u0275\u0275pureFunction2(3,X,A._position,s.\u0275\u0275pureFunction1(1,lt,A.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:[Ze.translateTab]}}),Ie})();const se=new s.InjectionToken("MAT_TABS_CONFIG"),Ce=(0,v.Id)(class{});let ye=(()=>{class Ie extends Ce{constructor(S){super(),this.elementRef=S}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return Ie.\u0275fac=function(S){return new(S||Ie)(s.\u0275\u0275directiveInject(s.ElementRef))},Ie.\u0275dir=s.\u0275\u0275defineDirective({type:Ie,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(S,A){2&S&&(s.\u0275\u0275attribute("aria-disabled",!!A.disabled),s.\u0275\u0275classProp("mat-tab-disabled",A.disabled))},inputs:{disabled:"disabled"},features:[s.\u0275\u0275InheritDefinitionFeature]}),Ie})();const re=(0,_e.i$)({passive:!0});let mt=(()=>{class Ie{constructor(S,A,M,G,ot,Et,Ut){this._elementRef=S,this._changeDetectorRef=A,this._viewportRuler=M,this._dir=G,this._ngZone=ot,this._platform=Et,this._animationMode=Ut,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new D.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new D.x,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new s.EventEmitter,this.indexFocused=new s.EventEmitter,ot.runOutsideAngular(()=>{(0,y.R)(S.nativeElement,"mouseleave").pipe((0,$.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(S){S=(0,De.su)(S),this._selectedIndex!=S&&(this._selectedIndexChanged=!0,this._selectedIndex=S,this._keyManager&&this._keyManager.updateActiveItem(S))}ngAfterViewInit(){(0,y.R)(this._previousPaginator.nativeElement,"touchstart",re).pipe((0,$.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,y.R)(this._nextPaginator.nativeElement,"touchstart",re).pipe((0,$.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const S=this._dir?this._dir.change:(0,I.of)("ltr"),A=this._viewportRuler.change(150),M=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new i.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(M):M(),(0,O.T)(S,A,this._items.changes).pipe((0,$.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>Promise.resolve().then(M)),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,$.R)(this._destroyed)).subscribe(G=>{this.indexFocused.emit(G),this._setTabFocus(G)})}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(S){if(!(0,fe.Vb)(S))switch(S.keyCode){case fe.K5:case fe.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(S));break;default:this._keyManager.onKeydown(S)}}_onContentChanges(){const S=this._elementRef.nativeElement.textContent;S!==this._currentTextContent&&(this._currentTextContent=S||"",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(S){!this._isValidIndex(S)||this.focusIndex===S||!this._keyManager||this._keyManager.setActiveItem(S)}_isValidIndex(S){if(!this._items)return!0;const A=this._items?this._items.toArray()[S]:null;return!!A&&!A.disabled}_setTabFocus(S){if(this._showPaginationControls&&this._scrollToLabel(S),this._items&&this._items.length){this._items.toArray()[S].focus();const A=this._tabListContainer.nativeElement;A.scrollLeft="ltr"==this._getLayoutDirection()?0:A.scrollWidth-A.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const S=this.scrollDistance,A="ltr"===this._getLayoutDirection()?-S:S;this._tabList.nativeElement.style.transform=`translateX(${Math.round(A)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(S){this._scrollTo(S)}_scrollHeader(S){return this._scrollTo(this._scrollDistance+("before"==S?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(S){this._stopInterval(),this._scrollHeader(S)}_scrollToLabel(S){if(this.disablePagination)return;const A=this._items?this._items.toArray()[S]:null;if(!A)return;const M=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:G,offsetWidth:ot}=A.elementRef.nativeElement;let Et,Ut;"ltr"==this._getLayoutDirection()?(Et=G,Ut=Et+ot):(Ut=this._tabListInner.nativeElement.offsetWidth-G,Et=Ut-ot);const gn=this.scrollDistance,He=this.scrollDistance+M;Et<gn?this.scrollDistance-=gn-Et+60:Ut>He&&(this.scrollDistance+=Ut-He+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const S=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;S||(this.scrollDistance=0),S!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=S}}_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 S=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,A=S?S.elementRef.nativeElement:null;A?this._inkBar.alignToElement(A):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(S,A){A&&null!=A.button&&0!==A.button||(this._stopInterval(),(0,w.H)(650,100).pipe((0,$.R)((0,O.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:M,distance:G}=this._scrollHeader(S);(0===G||G>=M)&&this._stopInterval()}))}_scrollTo(S){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const A=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(A,S)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:A,distance:this._scrollDistance}}}return Ie.\u0275fac=function(S){return new(S||Ie)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(le.rL),s.\u0275\u0275directiveInject(ne.Is,8),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(_e.t4),s.\u0275\u0275directiveInject(C.ANIMATION_MODULE_TYPE,8))},Ie.\u0275dir=s.\u0275\u0275defineDirective({type:Ie,inputs:{disablePagination:"disablePagination"}}),Ie})(),_t=(()=>{class Ie extends mt{constructor(S,A,M,G,ot,Et,Ut){super(S,A,M,G,ot,Et,Ut),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(S){this._disableRipple=(0,De.Ig)(S)}_itemSelected(S){S.preventDefault()}}return Ie.\u0275fac=function(S){return new(S||Ie)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(le.rL),s.\u0275\u0275directiveInject(ne.Is,8),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(_e.t4),s.\u0275\u0275directiveInject(C.ANIMATION_MODULE_TYPE,8))},Ie.\u0275dir=s.\u0275\u0275defineDirective({type:Ie,inputs:{disableRipple:"disableRipple"},features:[s.\u0275\u0275InheritDefinitionFeature]}),Ie})(),It=(()=>{class Ie extends _t{constructor(S,A,M,G,ot,Et,Ut){super(S,A,M,G,ot,Et,Ut)}}return Ie.\u0275fac=function(S){return new(S||Ie)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(le.rL),s.\u0275\u0275directiveInject(ne.Is,8),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(_e.t4),s.\u0275\u0275directiveInject(C.ANIMATION_MODULE_TYPE,8))},Ie.\u0275cmp=s.\u0275\u0275defineComponent({type:Ie,selectors:[["mat-tab-header"]],contentQueries:function(S,A,M){if(1&S&&s.\u0275\u0275contentQuery(M,ye,4),2&S){let G;s.\u0275\u0275queryRefresh(G=s.\u0275\u0275loadQuery())&&(A._items=G)}},viewQuery:function(S,A){if(1&S&&(s.\u0275\u0275viewQuery(he,7),s.\u0275\u0275viewQuery(me,7),s.\u0275\u0275viewQuery(K,7),s.\u0275\u0275viewQuery(oe,7),s.\u0275\u0275viewQuery(ke,5),s.\u0275\u0275viewQuery(de,5)),2&S){let M;s.\u0275\u0275queryRefresh(M=s.\u0275\u0275loadQuery())&&(A._inkBar=M.first),s.\u0275\u0275queryRefresh(M=s.\u0275\u0275loadQuery())&&(A._tabListContainer=M.first),s.\u0275\u0275queryRefresh(M=s.\u0275\u0275loadQuery())&&(A._tabList=M.first),s.\u0275\u0275queryRefresh(M=s.\u0275\u0275loadQuery())&&(A._tabListInner=M.first),s.\u0275\u0275queryRefresh(M=s.\u0275\u0275loadQuery())&&(A._nextPaginator=M.first),s.\u0275\u0275queryRefresh(M=s.\u0275\u0275loadQuery())&&(A._previousPaginator=M.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(S,A){2&S&&s.\u0275\u0275classProp("mat-tab-header-pagination-controls-enabled",A._showPaginationControls)("mat-tab-header-rtl","rtl"==A._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[s.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:Le,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(S,A){1&S&&(s.\u0275\u0275projectionDef(),s.\u0275\u0275elementStart(0,"div",0,1),s.\u0275\u0275listener("click",function(){return A._handlePaginatorClick("before")})("mousedown",function(G){return A._handlePaginatorPress("before",G)})("touchend",function(){return A._stopInterval()}),s.\u0275\u0275element(2,"div",2),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(3,"div",3,4),s.\u0275\u0275listener("keydown",function(G){return A._handleKeydown(G)}),s.\u0275\u0275elementStart(5,"div",5,6),s.\u0275\u0275listener("cdkObserveContent",function(){return A._onContentChanges()}),s.\u0275\u0275elementStart(7,"div",7,8),s.\u0275\u0275projection(9),s.\u0275\u0275elementEnd(),s.\u0275\u0275element(10,"mat-ink-bar"),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(11,"div",9,10),s.\u0275\u0275listener("mousedown",function(G){return A._handlePaginatorPress("after",G)})("click",function(){return A._handlePaginatorClick("after")})("touchend",function(){return A._stopInterval()}),s.\u0275\u0275element(13,"div",2),s.\u0275\u0275elementEnd()),2&S&&(s.\u0275\u0275classProp("mat-tab-header-pagination-disabled",A._disableScrollBefore),s.\u0275\u0275property("matRippleDisabled",A._disableScrollBefore||A.disableRipple),s.\u0275\u0275advance(5),s.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===A._animationMode),s.\u0275\u0275advance(6),s.\u0275\u0275classProp("mat-tab-header-pagination-disabled",A._disableScrollAfter),s.\u0275\u0275property("matRippleDisabled",A._disableScrollAfter||A.disableRipple))},directives:[v.wG,d.wD,he],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n"],encapsulation:2}),Ie})(),zt=0;class on{}const Kt=(0,v.pj)((0,v.Kr)(class{constructor(Ie){this._elementRef=Ie}}),"primary");let Mn=(()=>{class Ie extends Kt{constructor(S,A,M,G){var ot;super(S),this._changeDetectorRef=A,this._animationMode=G,this._tabs=new s.QueryList,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=p.w0.EMPTY,this._tabLabelSubscription=p.w0.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new s.EventEmitter,this.focusChange=new s.EventEmitter,this.animationDone=new s.EventEmitter,this.selectedTabChange=new s.EventEmitter(!0),this._groupId=zt++,this.animationDuration=M&&M.animationDuration?M.animationDuration:"500ms",this.disablePagination=!(!M||null==M.disablePagination)&&M.disablePagination,this.dynamicHeight=!(!M||null==M.dynamicHeight)&&M.dynamicHeight,this.contentTabIndex=null!==(ot=null==M?void 0:M.contentTabIndex)&&void 0!==ot?ot:null}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(S){this._dynamicHeight=(0,De.Ig)(S)}get selectedIndex(){return this._selectedIndex}set selectedIndex(S){this._indexToSelect=(0,De.su)(S,null)}get animationDuration(){return this._animationDuration}set animationDuration(S){this._animationDuration=/^\d+$/.test(S+"")?S+"ms":S}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(S){this._contentTabIndex=(0,De.su)(S,null)}get backgroundColor(){return this._backgroundColor}set backgroundColor(S){const A=this._elementRef.nativeElement;A.classList.remove(`mat-background-${this.backgroundColor}`),S&&A.classList.add(`mat-background-${S}`),this._backgroundColor=S}ngAfterContentChecked(){const S=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=S){const A=null==this._selectedIndex;if(!A){this.selectedTabChange.emit(this._createChangeEvent(S));const M=this._tabBodyWrapper.nativeElement;M.style.minHeight=M.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((M,G)=>M.isActive=G===S),A||(this.selectedIndexChange.emit(S),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((A,M)=>{A.position=M-S,null!=this._selectedIndex&&0==A.position&&!A.origin&&(A.origin=S-this._selectedIndex)}),this._selectedIndex!==S&&(this._selectedIndex=S,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const A=this._tabs.toArray();for(let M=0;M<A.length;M++)if(A[M].isActive){this._indexToSelect=this._selectedIndex=M;break}}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,V.O)(this._allTabs)).subscribe(S=>{this._tabs.reset(S.filter(A=>A._closestTabGroup===this||!A._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}focusTab(S){const A=this._tabHeader;A&&(A.focusIndex=S)}_focusChanged(S){this.focusChange.emit(this._createChangeEvent(S))}_createChangeEvent(S){const A=new on;return A.index=S,this._tabs&&this._tabs.length&&(A.tab=this._tabs.toArray()[S]),A}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,O.T)(...this._tabs.map(S=>S._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(S){return Math.min(this._tabs.length-1,Math.max(S||0,0))}_getTabLabelId(S){return`mat-tab-label-${this._groupId}-${S}`}_getTabContentId(S){return`mat-tab-content-${this._groupId}-${S}`}_setTabBodyWrapperHeight(S){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const A=this._tabBodyWrapper.nativeElement;A.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(A.style.height=S+"px")}_removeTabBodyWrapperHeight(){const S=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=S.clientHeight,S.style.height="",this.animationDone.emit()}_handleClick(S,A,M){S.disabled||(this.selectedIndex=A.focusIndex=M)}_getTabIndex(S,A){return S.disabled?null:this.selectedIndex===A?0:-1}_tabFocusChanged(S,A){S&&"mouse"!==S&&"touch"!==S&&(this._tabHeader.focusIndex=A)}}return Ie.\u0275fac=function(S){return new(S||Ie)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(se,8),s.\u0275\u0275directiveInject(C.ANIMATION_MODULE_TYPE,8))},Ie.\u0275dir=s.\u0275\u0275defineDirective({type:Ie,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]}),Ie})(),an=(()=>{class Ie extends Mn{constructor(S,A,M,G){super(S,A,M,G)}}return Ie.\u0275fac=function(S){return new(S||Ie)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(se,8),s.\u0275\u0275directiveInject(C.ANIMATION_MODULE_TYPE,8))},Ie.\u0275cmp=s.\u0275\u0275defineComponent({type:Ie,selectors:[["mat-tab-group"]],contentQueries:function(S,A,M){if(1&S&&s.\u0275\u0275contentQuery(M,dt,5),2&S){let G;s.\u0275\u0275queryRefresh(G=s.\u0275\u0275loadQuery())&&(A._allTabs=G)}},viewQuery:function(S,A){if(1&S&&(s.\u0275\u0275viewQuery(Ue,5),s.\u0275\u0275viewQuery(pe,5)),2&S){let M;s.\u0275\u0275queryRefresh(M=s.\u0275\u0275loadQuery())&&(A._tabBodyWrapper=M.first),s.\u0275\u0275queryRefresh(M=s.\u0275\u0275loadQuery())&&(A._tabHeader=M.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(S,A){2&S&&s.\u0275\u0275classProp("mat-tab-group-dynamic-height",A.dynamicHeight)("mat-tab-group-inverted-header","below"===A.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[s.\u0275\u0275ProvidersFeature([{provide:Rt,useExisting:Ie}]),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(S,A){1&S&&(s.\u0275\u0275elementStart(0,"mat-tab-header",0,1),s.\u0275\u0275listener("indexFocused",function(G){return A._focusChanged(G)})("selectFocusedIndex",function(G){return A.selectedIndex=G}),s.\u0275\u0275template(2,vt,4,14,"div",2),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(3,"div",3,4),s.\u0275\u0275template(5,St,1,9,"mat-tab-body",5),s.\u0275\u0275elementEnd()),2&S&&(s.\u0275\u0275property("selectedIndex",A.selectedIndex||0)("disableRipple",A.disableRipple)("disablePagination",A.disablePagination),s.\u0275\u0275advance(2),s.\u0275\u0275property("ngForOf",A._tabs),s.\u0275\u0275advance(1),s.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===A._animationMode),s.\u0275\u0275advance(2),s.\u0275\u0275property("ngForOf",A._tabs))},directives:[It,u.NgForOf,ye,v.wG,i.kH,u.NgIf,_.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}),Ie})(),Qt=(()=>{class Ie extends mt{constructor(S,A,M,G,ot,Et,Ut){super(S,G,ot,A,M,Et,Ut),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(S){const A=this._elementRef.nativeElement.classList;A.remove(`mat-background-${this.backgroundColor}`),S&&A.add(`mat-background-${S}`),this._backgroundColor=S}get disableRipple(){return this._disableRipple}set disableRipple(S){this._disableRipple=(0,De.Ig)(S)}_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 S=this._items.toArray();for(let A=0;A<S.length;A++)if(S[A].active)return this.selectedIndex=A,void this._changeDetectorRef.markForCheck();this.selectedIndex=-1,this._inkBar.hide()}}return Ie.\u0275fac=function(S){return new(S||Ie)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(ne.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(C.ANIMATION_MODULE_TYPE,8))},Ie.\u0275dir=s.\u0275\u0275defineDirective({type:Ie,inputs:{backgroundColor:"backgroundColor",disableRipple:"disableRipple",color:"color"},features:[s.\u0275\u0275InheritDefinitionFeature]}),Ie})(),Ot=(()=>{class Ie extends Qt{constructor(S,A,M,G,ot,Et,Ut){super(S,A,M,G,ot,Et,Ut)}}return Ie.\u0275fac=function(S){return new(S||Ie)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(ne.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(C.ANIMATION_MODULE_TYPE,8))},Ie.\u0275cmp=s.\u0275\u0275defineComponent({type:Ie,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(S,A,M){if(1&S&&s.\u0275\u0275contentQuery(M,Ke,5),2&S){let G;s.\u0275\u0275queryRefresh(G=s.\u0275\u0275loadQuery())&&(A._items=G)}},viewQuery:function(S,A){if(1&S&&(s.\u0275\u0275viewQuery(he,7),s.\u0275\u0275viewQuery(me,7),s.\u0275\u0275viewQuery(K,7),s.\u0275\u0275viewQuery(oe,7),s.\u0275\u0275viewQuery(ke,5),s.\u0275\u0275viewQuery(de,5)),2&S){let M;s.\u0275\u0275queryRefresh(M=s.\u0275\u0275loadQuery())&&(A._inkBar=M.first),s.\u0275\u0275queryRefresh(M=s.\u0275\u0275loadQuery())&&(A._tabListContainer=M.first),s.\u0275\u0275queryRefresh(M=s.\u0275\u0275loadQuery())&&(A._tabList=M.first),s.\u0275\u0275queryRefresh(M=s.\u0275\u0275loadQuery())&&(A._tabListInner=M.first),s.\u0275\u0275queryRefresh(M=s.\u0275\u0275loadQuery())&&(A._nextPaginator=M.first),s.\u0275\u0275queryRefresh(M=s.\u0275\u0275loadQuery())&&(A._previousPaginator=M.first)}},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:10,hostBindings:function(S,A){2&S&&s.\u0275\u0275classProp("mat-tab-header-pagination-controls-enabled",A._showPaginationControls)("mat-tab-header-rtl","rtl"==A._getLayoutDirection())("mat-primary","warn"!==A.color&&"accent"!==A.color)("mat-accent","accent"===A.color)("mat-warn","warn"===A.color)},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[s.\u0275\u0275InheritDefinitionFeature],attrs:Re,ngContentSelectors:Le,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(S,A){1&S&&(s.\u0275\u0275projectionDef(),s.\u0275\u0275elementStart(0,"div",0,1),s.\u0275\u0275listener("click",function(){return A._handlePaginatorClick("before")})("mousedown",function(G){return A._handlePaginatorPress("before",G)})("touchend",function(){return A._stopInterval()}),s.\u0275\u0275element(2,"div",2),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(3,"div",3,4),s.\u0275\u0275listener("keydown",function(G){return A._handleKeydown(G)}),s.\u0275\u0275elementStart(5,"div",5,6),s.\u0275\u0275listener("cdkObserveContent",function(){return A._onContentChanges()}),s.\u0275\u0275elementStart(7,"div",7,8),s.\u0275\u0275projection(9),s.\u0275\u0275elementEnd(),s.\u0275\u0275element(10,"mat-ink-bar"),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(11,"div",9,10),s.\u0275\u0275listener("mousedown",function(G){return A._handlePaginatorPress("after",G)})("click",function(){return A._handlePaginatorClick("after")})("touchend",function(){return A._stopInterval()}),s.\u0275\u0275element(13,"div",2),s.\u0275\u0275elementEnd()),2&S&&(s.\u0275\u0275classProp("mat-tab-header-pagination-disabled",A._disableScrollBefore),s.\u0275\u0275property("matRippleDisabled",A._disableScrollBefore||A.disableRipple),s.\u0275\u0275advance(5),s.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===A._animationMode),s.\u0275\u0275advance(6),s.\u0275\u0275classProp("mat-tab-header-pagination-disabled",A._disableScrollAfter),s.\u0275\u0275property("matRippleDisabled",A._disableScrollAfter||A.disableRipple))},directives:[v.wG,d.wD,he],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-link:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}@media(max-width: 599px){.mat-tab-link{min-width:72px}}\n"],encapsulation:2}),Ie})();const bn=(0,v.sb)((0,v.Kr)((0,v.Id)(class{})));let at=(()=>{class Ie extends bn{constructor(S,A,M,G,ot,Et){super(),this._tabNavBar=S,this.elementRef=A,this._focusMonitor=ot,this._isActive=!1,this.rippleConfig=M||{},this.tabIndex=parseInt(G)||0,"NoopAnimations"===Et&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}get active(){return this._isActive}set active(S){const A=(0,De.Ig)(S);A!==this._isActive&&(this._isActive=A,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 Ie.\u0275fac=function(S){return new(S||Ie)(s.\u0275\u0275directiveInject(Qt),s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(v.Y2,8),s.\u0275\u0275injectAttribute("tabindex"),s.\u0275\u0275directiveInject(i.tE),s.\u0275\u0275directiveInject(C.ANIMATION_MODULE_TYPE,8))},Ie.\u0275dir=s.\u0275\u0275defineDirective({type:Ie,inputs:{active:"active"},features:[s.\u0275\u0275InheritDefinitionFeature]}),Ie})(),Ke=(()=>{class Ie extends at{constructor(S,A,M,G,ot,Et,Ut,gn){super(S,A,ot,Et,Ut,gn),this._tabLinkRipple=new v.IR(this,M,A,G),this._tabLinkRipple.setupTriggerEvents(A.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}return Ie.\u0275fac=function(S){return new(S||Ie)(s.\u0275\u0275directiveInject(Ot),s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(_e.t4),s.\u0275\u0275directiveInject(v.Y2,8),s.\u0275\u0275injectAttribute("tabindex"),s.\u0275\u0275directiveInject(i.tE),s.\u0275\u0275directiveInject(C.ANIMATION_MODULE_TYPE,8))},Ie.\u0275dir=s.\u0275\u0275defineDirective({type:Ie,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:7,hostBindings:function(S,A){1&S&&s.\u0275\u0275listener("focus",function(){return A._handleFocus()}),2&S&&(s.\u0275\u0275attribute("aria-current",A.active?"page":null)("aria-disabled",A.disabled)("tabIndex",A.tabIndex),s.\u0275\u0275classProp("mat-tab-disabled",A.disabled)("mat-tab-label-active",A.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[s.\u0275\u0275InheritDefinitionFeature]}),Ie})(),Qe=(()=>{class Ie{}return Ie.\u0275fac=function(S){return new(S||Ie)},Ie.\u0275mod=s.\u0275\u0275defineNgModule({type:Ie}),Ie.\u0275inj=s.\u0275\u0275defineInjector({imports:[[u.CommonModule,v.BQ,_.eL,v.si,d.Q8,i.rt],v.BQ]}),Ie})()},7238:(Be,m,l)=>{"use strict";l.r(m),l.d(m,{MAT_TOOLTIP_DEFAULT_OPTIONS:()=>X,MAT_TOOLTIP_DEFAULT_OPTIONS_FACTORY:()=>me,MAT_TOOLTIP_SCROLL_STRATEGY:()=>Le,MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY:()=>Xe,MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER:()=>lt,MatTooltip:()=>oe,MatTooltipModule:()=>Ue,SCROLL_THROTTLE_MS:()=>ne,TOOLTIP_PANEL_CLASS:()=>De,TooltipComponent:()=>de,_MatTooltipBase:()=>K,_TooltipComponentBase:()=>ke,getMatTooltipInvalidPositionError:()=>Se,matTooltipAnimations:()=>$});var i=l(1314),d=l(5664),_=l(9808),u=l(5e3),s=l(508),v=l(9071),C=l(3191),D=l(1159),p=l(5113),y=l(925),I=l(7429),O=l(6758),w=l(2722),k=l(5698),V=l(1777),ue=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})))])},ne=20,De="mat-tooltip-panel",fe="tooltip-panel",_e=(0,y.i$)({passive:!0});function Se(pe){return Error(`Tooltip position "${pe}" is invalid.`)}const Le=new u.InjectionToken("mat-tooltip-scroll-strategy");function Xe(pe){return()=>pe.scrollStrategies.reposition({scrollThrottle:ne})}const lt={provide:Le,deps:[i.aV],useFactory:Xe},X=new u.InjectionToken("mat-tooltip-default-options",{providedIn:"root",factory:me});function me(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}let K=(()=>{class pe{constructor(Me,Ge,vt,St,Re,et,Y,he,Ee,Ae,ge,Je){this._overlay=Me,this._elementRef=Ge,this._scrollDispatcher=vt,this._viewContainerRef=St,this._ngZone=Re,this._platform=et,this._ariaDescriber=Y,this._focusMonitor=he,this._dir=Ae,this._defaultOptions=ge,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new O.x,this._handleKeydown=pt=>{this._isTooltipVisible()&&pt.keyCode===D.hY&&!(0,D.Vb)(pt)&&(pt.preventDefault(),pt.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=Ee,this._document=Je,ge&&(ge.position&&(this.position=ge.position),ge.touchGestures&&(this.touchGestures=ge.touchGestures)),Ae.change.pipe((0,w.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),Re.runOutsideAngular(()=>{Ge.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(Me){var Ge;Me!==this._position&&(this._position=Me,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(Ge=this._tooltipInstance)||void 0===Ge||Ge.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(Me){this._disabled=(0,C.Ig)(Me),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(Me){this._showDelay=(0,C.su)(Me)}get hideDelay(){return this._hideDelay}set hideDelay(Me){this._hideDelay=(0,C.su)(Me)}get message(){return this._message}set message(Me){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=Me?String(Me).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(Me){this._tooltipClass=Me,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,w.R)(this._destroyed)).subscribe(Me=>{Me?"keyboard"===Me&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const Me=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),Me.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([Ge,vt])=>{Me.removeEventListener(Ge,vt,_e)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(Me,this.message,"tooltip"),this._focusMonitor.stopMonitoring(Me)}show(Me=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const Ge=this._createOverlay();this._detach(),this._portal=this._portal||new I.C5(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=Ge.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe((0,w.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(Me)}hide(Me=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(Me)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const Me=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),Ge=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(Me);return Ge.positionChanges.pipe((0,w.R)(this._destroyed)).subscribe(vt=>{this._updateCurrentPositionClass(vt.connectionPair),this._tooltipInstance&&vt.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:Ge,panelClass:`${this._cssClassPrefix}-${fe}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,w.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,w.R)(this._destroyed)).subscribe(()=>{var vt;return null===(vt=this._tooltipInstance)||void 0===vt?void 0:vt._handleBodyInteraction()}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(Me){const Ge=Me.getConfig().positionStrategy,vt=this._getOrigin(),St=this._getOverlayPosition();Ge.withPositions([this._addOffset(Object.assign(Object.assign({},vt.main),St.main)),this._addOffset(Object.assign(Object.assign({},vt.fallback),St.fallback))])}_addOffset(Me){return Me}_getOrigin(){const Me=!this._dir||"ltr"==this._dir.value,Ge=this.position;let vt;"above"==Ge||"below"==Ge?vt={originX:"center",originY:"above"==Ge?"top":"bottom"}:"before"==Ge||"left"==Ge&&Me||"right"==Ge&&!Me?vt={originX:"start",originY:"center"}:("after"==Ge||"right"==Ge&&Me||"left"==Ge&&!Me)&&(vt={originX:"end",originY:"center"});const{x:St,y:Re}=this._invertPosition(vt.originX,vt.originY);return{main:vt,fallback:{originX:St,originY:Re}}}_getOverlayPosition(){const Me=!this._dir||"ltr"==this._dir.value,Ge=this.position;let vt;"above"==Ge?vt={overlayX:"center",overlayY:"bottom"}:"below"==Ge?vt={overlayX:"center",overlayY:"top"}:"before"==Ge||"left"==Ge&&Me||"right"==Ge&&!Me?vt={overlayX:"end",overlayY:"center"}:("after"==Ge||"right"==Ge&&Me||"left"==Ge&&!Me)&&(vt={overlayX:"start",overlayY:"center"});const{x:St,y:Re}=this._invertPosition(vt.overlayX,vt.overlayY);return{main:vt,fallback:{overlayX:St,overlayY:Re}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,k.q)(1),(0,w.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(Me){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=Me,this._tooltipInstance._markForCheck())}_invertPosition(Me,Ge){return"above"===this.position||"below"===this.position?"top"===Ge?Ge="bottom":"bottom"===Ge&&(Ge="top"):"end"===Me?Me="start":"start"===Me&&(Me="end"),{x:Me,y:Ge}}_updateCurrentPositionClass(Me){const{overlayY:Ge,originX:vt,originY:St}=Me;let Re;if(Re="center"===Ge?this._dir&&"rtl"===this._dir.value?"end"===vt?"left":"right":"start"===vt?"left":"right":"bottom"===Ge&&"top"===St?"above":"below",Re!==this._currentPosition){const et=this._overlayRef;if(et){const Y=`${this._cssClassPrefix}-${fe}-`;et.removePanelClass(Y+this._currentPosition),et.addPanelClass(Y+Re)}this._currentPosition=Re}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const Me=[];if(this._platformSupportsMouseEvents())Me.push(["mouseleave",()=>this.hide()],["wheel",Ge=>this._wheelListener(Ge)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const Ge=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};Me.push(["touchend",Ge],["touchcancel",Ge])}this._addListeners(Me),this._passiveListeners.push(...Me)}_addListeners(Me){Me.forEach(([Ge,vt])=>{this._elementRef.nativeElement.addEventListener(Ge,vt,_e)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(Me){if(this._isTooltipVisible()){const Ge=this._document.elementFromPoint(Me.clientX,Me.clientY),vt=this._elementRef.nativeElement;Ge!==vt&&!vt.contains(Ge)&&this.hide()}}_disableNativeGesturesIfNecessary(){const Me=this.touchGestures;if("off"!==Me){const Ge=this._elementRef.nativeElement,vt=Ge.style;("on"===Me||"INPUT"!==Ge.nodeName&&"TEXTAREA"!==Ge.nodeName)&&(vt.userSelect=vt.msUserSelect=vt.webkitUserSelect=vt.MozUserSelect="none"),("on"===Me||!Ge.draggable)&&(vt.webkitUserDrag="none"),vt.touchAction="none",vt.webkitTapHighlightColor="transparent"}}}return pe.\u0275fac=function(Me){u.\u0275\u0275invalidFactory()},pe.\u0275dir=u.\u0275\u0275defineDirective({type:pe,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),pe})(),oe=(()=>{class pe extends K{constructor(Me,Ge,vt,St,Re,et,Y,he,Ee,Ae,ge,Je){super(Me,Ge,vt,St,Re,et,Y,he,Ee,Ae,ge,Je),this._tooltipComponent=de}}return pe.\u0275fac=function(Me){return new(Me||pe)(u.\u0275\u0275directiveInject(i.aV),u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(v.mF),u.\u0275\u0275directiveInject(u.ViewContainerRef),u.\u0275\u0275directiveInject(u.NgZone),u.\u0275\u0275directiveInject(y.t4),u.\u0275\u0275directiveInject(d.$s),u.\u0275\u0275directiveInject(d.tE),u.\u0275\u0275directiveInject(Le),u.\u0275\u0275directiveInject(ue.Is,8),u.\u0275\u0275directiveInject(X,8),u.\u0275\u0275directiveInject(_.DOCUMENT))},pe.\u0275dir=u.\u0275\u0275defineDirective({type:pe,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[u.\u0275\u0275InheritDefinitionFeature]}),pe})(),ke=(()=>{class pe{constructor(Me){this._changeDetectorRef=Me,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new O.x}show(Me){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},Me)}hide(Me){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},Me)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(Me){const Ge=Me.toState;"hidden"===Ge&&!this.isVisible()&&this._onHide.next(),("visible"===Ge||"hidden"===Ge)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return pe.\u0275fac=function(Me){return new(Me||pe)(u.\u0275\u0275directiveInject(u.ChangeDetectorRef))},pe.\u0275dir=u.\u0275\u0275defineDirective({type:pe}),pe})(),de=(()=>{class pe extends ke{constructor(Me,Ge){super(Me),this._breakpointObserver=Ge,this._isHandset=this._breakpointObserver.observe(p.Breakpoints.Handset)}}return pe.\u0275fac=function(Me){return new(Me||pe)(u.\u0275\u0275directiveInject(u.ChangeDetectorRef),u.\u0275\u0275directiveInject(p.BreakpointObserver))},pe.\u0275cmp=u.\u0275\u0275defineComponent({type:pe,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(Me,Ge){2&Me&&u.\u0275\u0275styleProp("zoom","visible"===Ge._visibility?1:null)},features:[u.\u0275\u0275InheritDefinitionFeature],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(Me,Ge){if(1&Me&&(u.\u0275\u0275elementStart(0,"div",0),u.\u0275\u0275listener("@state.start",function(){return Ge._animationStart()})("@state.done",function(St){return Ge._animationDone(St)}),u.\u0275\u0275pipe(1,"async"),u.\u0275\u0275text(2),u.\u0275\u0275elementEnd()),2&Me){let vt;u.\u0275\u0275classProp("mat-tooltip-handset",null==(vt=u.\u0275\u0275pipeBind1(1,5,Ge._isHandset))?null:vt.matches),u.\u0275\u0275property("ngClass",Ge.tooltipClass)("@state",Ge._visibility),u.\u0275\u0275advance(2),u.\u0275\u0275textInterpolate(Ge.message)}},directives:[_.NgClass],pipes:[_.AsyncPipe],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[$.tooltipState]},changeDetection:0}),pe})(),Ue=(()=>{class pe{}return pe.\u0275fac=function(Me){return new(Me||pe)},pe.\u0275mod=u.\u0275\u0275defineNgModule({type:pe}),pe.\u0275inj=u.\u0275\u0275defineInjector({providers:[lt],imports:[[d.rt,_.CommonModule,i.U8,s.BQ],s.BQ,v.ZD]}),pe})()},6360:(Be,m,l)=>{"use strict";l.r(m),l.d(m,{ANIMATION_MODULE_TYPE:()=>$t,BrowserAnimationsModule:()=>Ni,NoopAnimationsModule:()=>wt,\u0275AnimationRenderer:()=>In,\u0275AnimationRendererFactory:()=>Dn,\u0275BrowserAnimationBuilder:()=>R,\u0275BrowserAnimationFactory:()=>te,\u0275InjectableAnimationEngine:()=>P});var i=l(5e3),d=l(2313),_=l(1777);function u(){return"undefined"!=typeof window&&void 0!==window.document}function s(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function v(B){switch(B.length){case 0:return new _.ZN;case 1:return B[0];default:return new _.ZE(B)}}function C(B,c,f,T,j={},ae={}){const Fe=[],Ve=[];let st=-1,gt=null;if(T.forEach(Ft=>{const Gt=Ft.offset,Xt=Gt==st,dn=Xt&&gt||{};Object.keys(Ft).forEach(en=>{let nn=en,hn=Ft[en];if("offset"!==en)switch(nn=c.normalizePropertyName(nn,Fe),hn){case _.k1:hn=j[en];break;case _.l3:hn=ae[en];break;default:hn=c.normalizeStyleValue(en,nn,hn,Fe)}dn[nn]=hn}),Xt||Ve.push(dn),gt=dn,st=Gt}),Fe.length){const Ft="\n - ";throw new Error(`Unable to animate due to the following errors:${Ft}${Fe.join(Ft)}`)}return Ve}function D(B,c,f,T){switch(c){case"start":B.onStart(()=>T(f&&p(f,"start",B)));break;case"done":B.onDone(()=>T(f&&p(f,"done",B)));break;case"destroy":B.onDestroy(()=>T(f&&p(f,"destroy",B)))}}function p(B,c,f){const T=f.totalTime,ae=y(B.element,B.triggerName,B.fromState,B.toState,c||B.phaseName,null==T?B.totalTime:T,!!f.disabled),Fe=B._data;return null!=Fe&&(ae._data=Fe),ae}function y(B,c,f,T,j="",ae=0,Fe){return{element:B,triggerName:c,fromState:f,toState:T,phaseName:j,totalTime:ae,disabled:!!Fe}}function I(B,c,f){let T;return B instanceof Map?(T=B.get(c),T||B.set(c,T=f)):(T=B[c],T||(T=B[c]=f)),T}function O(B){const c=B.indexOf(":");return[B.substring(1,c),B.substr(c+1)]}let w=(B,c)=>!1,k=(B,c,f)=>[];(s()||"undefined"!=typeof Element)&&(w=u()?(B,c)=>{for(;c&&c!==document.documentElement;){if(c===B)return!0;c=c.parentNode||c.host}return!1}:(B,c)=>B.contains(c),k=(B,c,f)=>{let T=[];if(f){const j=B.querySelectorAll(c);for(let ae=0;ae<j.length;ae++)T.push(j[ae])}else{const j=B.querySelector(c);j&&T.push(j)}return T});let $=null,ne=!1;function De(B){$||($=function fe(){return"undefined"!=typeof document?document.body:null}()||{},ne=!!$.style&&"WebkitAppearance"in $.style);let c=!0;return $.style&&!function ue(B){return"ebkit"==B.substring(1,6)}(B)&&(c=B in $.style,!c&&ne&&(c="Webkit"+B.charAt(0).toUpperCase()+B.substr(1)in $.style)),c}const _e=w,le=k;function Se(B){const c={};return Object.keys(B).forEach(f=>{const T=f.replace(/([a-z])([A-Z])/g,"$1-$2");c[T]=B[f]}),c}let Le=(()=>{class B{validateStyleProperty(f){return De(f)}matchesElement(f,T){return!1}containsElement(f,T){return _e(f,T)}query(f,T,j){return le(f,T,j)}computeStyle(f,T,j){return j||""}animate(f,T,j,ae,Fe,Ve=[],st){return new _.ZN(j,ae)}}return B.\u0275fac=function(f){return new(f||B)},B.\u0275prov=i.\u0275\u0275defineInjectable({token:B,factory:B.\u0275fac}),B})(),Xe=(()=>{class B{}return B.NOOP=new Le,B})();const K="ng-enter",oe="ng-leave",ke="ng-trigger",de=".ng-trigger",Ue="ng-animating",pe=".ng-animating";function qe(B){if("number"==typeof B)return B;const c=B.match(/^(-?[\.\d]+)(m?s)/);return!c||c.length<2?0:Me(parseFloat(c[1]),c[2])}function Me(B,c){return"s"===c?1e3*B:B}function Ge(B,c,f){return B.hasOwnProperty("duration")?B:function vt(B,c,f){let j,ae=0,Fe="";if("string"==typeof B){const Ve=B.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Ve)return c.push(`The provided timing value "${B}" is invalid.`),{duration:0,delay:0,easing:""};j=Me(parseFloat(Ve[1]),Ve[2]);const st=Ve[3];null!=st&&(ae=Me(parseFloat(st),Ve[4]));const gt=Ve[5];gt&&(Fe=gt)}else j=B;if(!f){let Ve=!1,st=c.length;j<0&&(c.push("Duration values below 0 are not allowed for this animation step."),Ve=!0),ae<0&&(c.push("Delay values below 0 are not allowed for this animation step."),Ve=!0),Ve&&c.splice(st,0,`The provided timing value "${B}" is invalid.`)}return{duration:j,delay:ae,easing:Fe}}(B,c,f)}function St(B,c={}){return Object.keys(B).forEach(f=>{c[f]=B[f]}),c}function et(B,c,f={}){if(c)for(let T in B)f[T]=B[T];else St(B,f);return f}function Y(B,c,f){return f?c+":"+f+";":""}function he(B){let c="";for(let f=0;f<B.style.length;f++){const T=B.style.item(f);c+=Y(0,T,B.style.getPropertyValue(T))}for(const f in B.style)B.style.hasOwnProperty(f)&&!f.startsWith("_")&&(c+=Y(0,ie(f),B.style[f]));B.setAttribute("style",c)}function Ee(B,c,f){B.style&&(Object.keys(c).forEach(T=>{const j=N(T);f&&!f.hasOwnProperty(T)&&(f[T]=B.style[j]),B.style[j]=c[T]}),s()&&he(B))}function Ae(B,c){B.style&&(Object.keys(c).forEach(f=>{const T=N(f);B.style[T]=""}),s()&&he(B))}function ge(B){return Array.isArray(B)?1==B.length?B[0]:(0,_.vP)(B):B}const pt=new RegExp("{{\\s*(.+?)\\s*}}","g");function Tt(B){let c=[];if("string"==typeof B){let f;for(;f=pt.exec(B);)c.push(f[1]);pt.lastIndex=0}return c}function Rt(B,c,f){const T=B.toString(),j=T.replace(pt,(ae,Fe)=>{let Ve=c[Fe];return c.hasOwnProperty(Fe)||(f.push(`Please provide a value for the animation param ${Fe}`),Ve=""),Ve.toString()});return j==T?B:j}function dt(B){const c=[];let f=B.next();for(;!f.done;)c.push(f.value),f=B.next();return c}const Ze=/-+([a-z0-9])/g;function N(B){return B.replace(Ze,(...c)=>c[1].toUpperCase())}function ie(B){return B.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Oe(B,c){return 0===B||0===c}function se(B,c,f){const T=Object.keys(f);if(T.length&&c.length){let ae=c[0],Fe=[];if(T.forEach(Ve=>{ae.hasOwnProperty(Ve)||Fe.push(Ve),ae[Ve]=f[Ve]}),Fe.length)for(var j=1;j<c.length;j++){let Ve=c[j];Fe.forEach(function(st){Ve[st]=ye(B,st)})}}return c}function Ce(B,c,f){switch(c.type){case 7:return B.visitTrigger(c,f);case 0:return B.visitState(c,f);case 1:return B.visitTransition(c,f);case 2:return B.visitSequence(c,f);case 3:return B.visitGroup(c,f);case 4:return B.visitAnimate(c,f);case 5:return B.visitKeyframes(c,f);case 6:return B.visitStyle(c,f);case 8:return B.visitReference(c,f);case 9:return B.visitAnimateChild(c,f);case 10:return B.visitAnimateRef(c,f);case 11:return B.visitQuery(c,f);case 12:return B.visitStagger(c,f);default:throw new Error(`Unable to resolve animation metadata node #${c.type}`)}}function ye(B,c){return window.getComputedStyle(B)[c]}function be(B,c){const f=[];return"string"==typeof B?B.split(/\s*,\s*/).forEach(T=>function Ye(B,c,f){if(":"==B[0]){const st=function it(B,c){switch(B){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(f,T)=>parseFloat(T)>parseFloat(f);case":decrement":return(f,T)=>parseFloat(T)<parseFloat(f);default:return c.push(`The transition alias value "${B}" is not supported`),"* => *"}}(B,f);if("function"==typeof st)return void c.push(st);B=st}const T=B.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==T||T.length<4)return f.push(`The provided transition expression "${B}" is not supported`),c;const j=T[1],ae=T[2],Fe=T[3];c.push(It(j,Fe));"<"==ae[0]&&!("*"==j&&"*"==Fe)&&c.push(It(Fe,j))}(T,f,c)):f.push(B),f}const mt=new Set(["true","1"]),_t=new Set(["false","0"]);function It(B,c){const f=mt.has(B)||_t.has(B),T=mt.has(c)||_t.has(c);return(j,ae)=>{let Fe="*"==B||B==j,Ve="*"==c||c==ae;return!Fe&&f&&"boolean"==typeof j&&(Fe=j?mt.has(B):_t.has(B)),!Ve&&T&&"boolean"==typeof ae&&(Ve=ae?mt.has(c):_t.has(c)),Fe&&Ve}}const on=new RegExp("s*:selfs*,?","g");function Kt(B,c,f){return new an(B).build(c,f)}class an{constructor(c){this._driver=c}build(c,f){const T=new bn(f);return this._resetContextStyleTimingState(T),Ce(this,ge(c),T)}_resetContextStyleTimingState(c){c.currentQuerySelector="",c.collectedStyles={},c.collectedStyles[""]={},c.currentTime=0}visitTrigger(c,f){let T=f.queryCount=0,j=f.depCount=0;const ae=[],Fe=[];return"@"==c.name.charAt(0)&&f.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),c.definitions.forEach(Ve=>{if(this._resetContextStyleTimingState(f),0==Ve.type){const st=Ve,gt=st.name;gt.toString().split(/\s*,\s*/).forEach(Ft=>{st.name=Ft,ae.push(this.visitState(st,f))}),st.name=gt}else if(1==Ve.type){const st=this.visitTransition(Ve,f);T+=st.queryCount,j+=st.depCount,Fe.push(st)}else f.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:c.name,states:ae,transitions:Fe,queryCount:T,depCount:j,options:null}}visitState(c,f){const T=this.visitStyle(c.styles,f),j=c.options&&c.options.params||null;if(T.containsDynamicStyles){const ae=new Set,Fe=j||{};if(T.styles.forEach(Ve=>{if(Ke(Ve)){const st=Ve;Object.keys(st).forEach(gt=>{Tt(st[gt]).forEach(Ft=>{Fe.hasOwnProperty(Ft)||ae.add(Ft)})})}}),ae.size){const Ve=dt(ae.values());f.errors.push(`state("${c.name}", ...) must define default values for all the following style substitutions: ${Ve.join(", ")}`)}}return{type:0,name:c.name,style:T,options:j?{params:j}:null}}visitTransition(c,f){f.queryCount=0,f.depCount=0;const T=Ce(this,ge(c.animation),f);return{type:1,matchers:be(c.expr,f.errors),animation:T,queryCount:f.queryCount,depCount:f.depCount,options:Ie(c.options)}}visitSequence(c,f){return{type:2,steps:c.steps.map(T=>Ce(this,T,f)),options:Ie(c.options)}}visitGroup(c,f){const T=f.currentTime;let j=0;const ae=c.steps.map(Fe=>{f.currentTime=T;const Ve=Ce(this,Fe,f);return j=Math.max(j,f.currentTime),Ve});return f.currentTime=j,{type:3,steps:ae,options:Ie(c.options)}}visitAnimate(c,f){const T=function Qe(B,c){let f=null;if(B.hasOwnProperty("duration"))f=B;else if("number"==typeof B)return Te(Ge(B,c).duration,0,"");const T=B;if(T.split(/\s+/).some(ae=>"{"==ae.charAt(0)&&"{"==ae.charAt(1))){const ae=Te(0,0,"");return ae.dynamic=!0,ae.strValue=T,ae}return f=f||Ge(T,c),Te(f.duration,f.delay,f.easing)}(c.timings,f.errors);f.currentAnimateTimings=T;let j,ae=c.styles?c.styles:(0,_.oB)({});if(5==ae.type)j=this.visitKeyframes(ae,f);else{let Fe=c.styles,Ve=!1;if(!Fe){Ve=!0;const gt={};T.easing&&(gt.easing=T.easing),Fe=(0,_.oB)(gt)}f.currentTime+=T.duration+T.delay;const st=this.visitStyle(Fe,f);st.isEmptyStep=Ve,j=st}return f.currentAnimateTimings=null,{type:4,timings:T,style:j,options:null}}visitStyle(c,f){const T=this._makeStyleAst(c,f);return this._validateStyleAst(T,f),T}_makeStyleAst(c,f){const T=[];Array.isArray(c.styles)?c.styles.forEach(Fe=>{"string"==typeof Fe?Fe==_.l3?T.push(Fe):f.errors.push(`The provided style string value ${Fe} is not allowed.`):T.push(Fe)}):T.push(c.styles);let j=!1,ae=null;return T.forEach(Fe=>{if(Ke(Fe)){const Ve=Fe,st=Ve.easing;if(st&&(ae=st,delete Ve.easing),!j)for(let gt in Ve)if(Ve[gt].toString().indexOf("{{")>=0){j=!0;break}}}),{type:6,styles:T,easing:ae,offset:c.offset,containsDynamicStyles:j,options:null}}_validateStyleAst(c,f){const T=f.currentAnimateTimings;let j=f.currentTime,ae=f.currentTime;T&&ae>0&&(ae-=T.duration+T.delay),c.styles.forEach(Fe=>{"string"!=typeof Fe&&Object.keys(Fe).forEach(Ve=>{if(!this._driver.validateStyleProperty(Ve))return void f.errors.push(`The provided animation property "${Ve}" is not a supported CSS property for animations`);const st=f.collectedStyles[f.currentQuerySelector],gt=st[Ve];let Ft=!0;gt&&(ae!=j&&ae>=gt.startTime&&j<=gt.endTime&&(f.errors.push(`The CSS property "${Ve}" that exists between the times of "${gt.startTime}ms" and "${gt.endTime}ms" is also being animated in a parallel animation between the times of "${ae}ms" and "${j}ms"`),Ft=!1),ae=gt.startTime),Ft&&(st[Ve]={startTime:ae,endTime:j}),f.options&&function Je(B,c,f){const T=c.params||{},j=Tt(B);j.length&&j.forEach(ae=>{T.hasOwnProperty(ae)||f.push(`Unable to resolve the local animation param ${ae} in the given list of values`)})}(Fe[Ve],f.options,f.errors)})})}visitKeyframes(c,f){const T={type:5,styles:[],options:null};if(!f.currentAnimateTimings)return f.errors.push("keyframes() must be placed inside of a call to animate()"),T;let ae=0;const Fe=[];let Ve=!1,st=!1,gt=0;const Ft=c.steps.map(q=>{const U=this._makeStyleAst(q,f);let Z=null!=U.offset?U.offset:function at(B){if("string"==typeof B)return null;let c=null;if(Array.isArray(B))B.forEach(f=>{if(Ke(f)&&f.hasOwnProperty("offset")){const T=f;c=parseFloat(T.offset),delete T.offset}});else if(Ke(B)&&B.hasOwnProperty("offset")){const f=B;c=parseFloat(f.offset),delete f.offset}return c}(U.styles),ee=0;return null!=Z&&(ae++,ee=U.offset=Z),st=st||ee<0||ee>1,Ve=Ve||ee<gt,gt=ee,Fe.push(ee),U});st&&f.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),Ve&&f.errors.push("Please ensure that all keyframe offsets are in order");const Gt=c.steps.length;let Xt=0;ae>0&&ae<Gt?f.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==ae&&(Xt=1/(Gt-1));const dn=Gt-1,en=f.currentTime,nn=f.currentAnimateTimings,hn=nn.duration;return Ft.forEach((q,U)=>{const Z=Xt>0?U==dn?1:Xt*U:Fe[U],ee=Z*hn;f.currentTime=en+nn.delay+ee,nn.duration=ee,this._validateStyleAst(q,f),q.offset=Z,T.styles.push(q)}),T}visitReference(c,f){return{type:8,animation:Ce(this,ge(c.animation),f),options:Ie(c.options)}}visitAnimateChild(c,f){return f.depCount++,{type:9,options:Ie(c.options)}}visitAnimateRef(c,f){return{type:10,animation:this.visitReference(c.animation,f),options:Ie(c.options)}}visitQuery(c,f){const T=f.currentQuerySelector,j=c.options||{};f.queryCount++,f.currentQuery=c;const[ae,Fe]=function Qt(B){const c=!!B.split(/\s*,\s*/).find(f=>":self"==f);return c&&(B=B.replace(on,"")),B=B.replace(/@\*/g,de).replace(/@\w+/g,f=>de+"-"+f.substr(1)).replace(/:animating/g,pe),[B,c]}(c.selector);f.currentQuerySelector=T.length?T+" "+ae:ae,I(f.collectedStyles,f.currentQuerySelector,{});const Ve=Ce(this,ge(c.animation),f);return f.currentQuery=null,f.currentQuerySelector=T,{type:11,selector:ae,limit:j.limit||0,optional:!!j.optional,includeSelf:Fe,animation:Ve,originalSelector:c.selector,options:Ie(c.options)}}visitStagger(c,f){f.currentQuery||f.errors.push("stagger() can only be used inside of query()");const T="full"===c.timings?{duration:0,delay:0,easing:"full"}:Ge(c.timings,f.errors,!0);return{type:12,animation:Ce(this,ge(c.animation),f),timings:T,options:null}}}class bn{constructor(c){this.errors=c,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function Ke(B){return!Array.isArray(B)&&"object"==typeof B}function Ie(B){return B?(B=St(B)).params&&(B.params=function Ot(B){return B?St(B):null}(B.params)):B={},B}function Te(B,c,f){return{duration:B,delay:c,easing:f}}function S(B,c,f,T,j,ae,Fe=null,Ve=!1){return{type:1,element:B,keyframes:c,preStyleProps:f,postStyleProps:T,duration:j,delay:ae,totalTime:j+ae,easing:Fe,subTimeline:Ve}}class A{constructor(){this._map=new Map}get(c){return this._map.get(c)||[]}append(c,f){let T=this._map.get(c);T||this._map.set(c,T=[]),T.push(...f)}has(c){return this._map.has(c)}clear(){this._map.clear()}}const ot=new RegExp(":enter","g"),Ut=new RegExp(":leave","g");function gn(B,c,f,T,j,ae={},Fe={},Ve,st,gt=[]){return(new He).buildKeyframes(B,c,f,T,j,ae,Fe,Ve,st,gt)}class He{buildKeyframes(c,f,T,j,ae,Fe,Ve,st,gt,Ft=[]){gt=gt||new A;const Gt=new ce(c,f,gt,j,ae,Ft,[]);Gt.options=st,Gt.currentTimeline.setStyles([Fe],null,Gt.errors,st),Ce(this,T,Gt);const Xt=Gt.timelines.filter(dn=>dn.containsAnimation());if(Xt.length&&Object.keys(Ve).length){const dn=Xt[Xt.length-1];dn.allowOnlyTimelineStyles()||dn.setStyles([Ve],null,Gt.errors,st)}return Xt.length?Xt.map(dn=>dn.buildKeyframes()):[S(f,[],[],[],0,0,"",!1)]}visitTrigger(c,f){}visitState(c,f){}visitTransition(c,f){}visitAnimateChild(c,f){const T=f.subInstructions.get(f.element);if(T){const j=f.createSubContext(c.options),ae=f.currentTimeline.currentTime,Fe=this._visitSubInstructions(T,j,j.options);ae!=Fe&&f.transformIntoNewTimeline(Fe)}f.previousNode=c}visitAnimateRef(c,f){const T=f.createSubContext(c.options);T.transformIntoNewTimeline(),this.visitReference(c.animation,T),f.transformIntoNewTimeline(T.currentTimeline.currentTime),f.previousNode=c}_visitSubInstructions(c,f,T){let ae=f.currentTimeline.currentTime;const Fe=null!=T.duration?qe(T.duration):null,Ve=null!=T.delay?qe(T.delay):null;return 0!==Fe&&c.forEach(st=>{const gt=f.appendInstructionToTimeline(st,Fe,Ve);ae=Math.max(ae,gt.duration+gt.delay)}),ae}visitReference(c,f){f.updateOptions(c.options,!0),Ce(this,c.animation,f),f.previousNode=c}visitSequence(c,f){const T=f.subContextCount;let j=f;const ae=c.options;if(ae&&(ae.params||ae.delay)&&(j=f.createSubContext(ae),j.transformIntoNewTimeline(),null!=ae.delay)){6==j.previousNode.type&&(j.currentTimeline.snapshotCurrentStyles(),j.previousNode=$e);const Fe=qe(ae.delay);j.delayNextStep(Fe)}c.steps.length&&(c.steps.forEach(Fe=>Ce(this,Fe,j)),j.currentTimeline.applyStylesToKeyframe(),j.subContextCount>T&&j.transformIntoNewTimeline()),f.previousNode=c}visitGroup(c,f){const T=[];let j=f.currentTimeline.currentTime;const ae=c.options&&c.options.delay?qe(c.options.delay):0;c.steps.forEach(Fe=>{const Ve=f.createSubContext(c.options);ae&&Ve.delayNextStep(ae),Ce(this,Fe,Ve),j=Math.max(j,Ve.currentTimeline.currentTime),T.push(Ve.currentTimeline)}),T.forEach(Fe=>f.currentTimeline.mergeTimelineCollectedStyles(Fe)),f.transformIntoNewTimeline(j),f.previousNode=c}_visitTiming(c,f){if(c.dynamic){const T=c.strValue;return Ge(f.params?Rt(T,f.params,f.errors):T,f.errors)}return{duration:c.duration,delay:c.delay,easing:c.easing}}visitAnimate(c,f){const T=f.currentAnimateTimings=this._visitTiming(c.timings,f),j=f.currentTimeline;T.delay&&(f.incrementTime(T.delay),j.snapshotCurrentStyles());const ae=c.style;5==ae.type?this.visitKeyframes(ae,f):(f.incrementTime(T.duration),this.visitStyle(ae,f),j.applyStylesToKeyframe()),f.currentAnimateTimings=null,f.previousNode=c}visitStyle(c,f){const T=f.currentTimeline,j=f.currentAnimateTimings;!j&&T.getCurrentStyleProperties().length&&T.forwardFrame();const ae=j&&j.easing||c.easing;c.isEmptyStep?T.applyEmptyStep(ae):T.setStyles(c.styles,ae,f.errors,f.options),f.previousNode=c}visitKeyframes(c,f){const T=f.currentAnimateTimings,j=f.currentTimeline.duration,ae=T.duration,Ve=f.createSubContext().currentTimeline;Ve.easing=T.easing,c.styles.forEach(st=>{Ve.forwardTime((st.offset||0)*ae),Ve.setStyles(st.styles,st.easing,f.errors,f.options),Ve.applyStylesToKeyframe()}),f.currentTimeline.mergeTimelineCollectedStyles(Ve),f.transformIntoNewTimeline(j+ae),f.previousNode=c}visitQuery(c,f){const T=f.currentTimeline.currentTime,j=c.options||{},ae=j.delay?qe(j.delay):0;ae&&(6===f.previousNode.type||0==T&&f.currentTimeline.getCurrentStyleProperties().length)&&(f.currentTimeline.snapshotCurrentStyles(),f.previousNode=$e);let Fe=T;const Ve=f.invokeQuery(c.selector,c.originalSelector,c.limit,c.includeSelf,!!j.optional,f.errors);f.currentQueryTotal=Ve.length;let st=null;Ve.forEach((gt,Ft)=>{f.currentQueryIndex=Ft;const Gt=f.createSubContext(c.options,gt);ae&&Gt.delayNextStep(ae),gt===f.element&&(st=Gt.currentTimeline),Ce(this,c.animation,Gt),Gt.currentTimeline.applyStylesToKeyframe(),Fe=Math.max(Fe,Gt.currentTimeline.currentTime)}),f.currentQueryIndex=0,f.currentQueryTotal=0,f.transformIntoNewTimeline(Fe),st&&(f.currentTimeline.mergeTimelineCollectedStyles(st),f.currentTimeline.snapshotCurrentStyles()),f.previousNode=c}visitStagger(c,f){const T=f.parentContext,j=f.currentTimeline,ae=c.timings,Fe=Math.abs(ae.duration),Ve=Fe*(f.currentQueryTotal-1);let st=Fe*f.currentQueryIndex;switch(ae.duration<0?"reverse":ae.easing){case"reverse":st=Ve-st;break;case"full":st=T.currentStaggerTime}const Ft=f.currentTimeline;st&&Ft.delayNextStep(st);const Gt=Ft.currentTime;Ce(this,c.animation,f),f.previousNode=c,T.currentStaggerTime=j.currentTime-Gt+(j.startTime-T.currentTimeline.startTime)}}const $e={};class ce{constructor(c,f,T,j,ae,Fe,Ve,st){this._driver=c,this.element=f,this.subInstructions=T,this._enterClassName=j,this._leaveClassName=ae,this.errors=Fe,this.timelines=Ve,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=$e,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=st||new je(this._driver,f,0),Ve.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(c,f){if(!c)return;const T=c;let j=this.options;null!=T.duration&&(j.duration=qe(T.duration)),null!=T.delay&&(j.delay=qe(T.delay));const ae=T.params;if(ae){let Fe=j.params;Fe||(Fe=this.options.params={}),Object.keys(ae).forEach(Ve=>{(!f||!Fe.hasOwnProperty(Ve))&&(Fe[Ve]=Rt(ae[Ve],Fe,this.errors))})}}_copyOptions(){const c={};if(this.options){const f=this.options.params;if(f){const T=c.params={};Object.keys(f).forEach(j=>{T[j]=f[j]})}}return c}createSubContext(c=null,f,T){const j=f||this.element,ae=new ce(this._driver,j,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(j,T||0));return ae.previousNode=this.previousNode,ae.currentAnimateTimings=this.currentAnimateTimings,ae.options=this._copyOptions(),ae.updateOptions(c),ae.currentQueryIndex=this.currentQueryIndex,ae.currentQueryTotal=this.currentQueryTotal,ae.parentContext=this,this.subContextCount++,ae}transformIntoNewTimeline(c){return this.previousNode=$e,this.currentTimeline=this.currentTimeline.fork(this.element,c),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(c,f,T){const j={duration:null!=f?f:c.duration,delay:this.currentTimeline.currentTime+(null!=T?T:0)+c.delay,easing:""},ae=new ft(this._driver,c.element,c.keyframes,c.preStyleProps,c.postStyleProps,j,c.stretchStartingKeyframe);return this.timelines.push(ae),j}incrementTime(c){this.currentTimeline.forwardTime(this.currentTimeline.duration+c)}delayNextStep(c){c>0&&this.currentTimeline.delayNextStep(c)}invokeQuery(c,f,T,j,ae,Fe){let Ve=[];if(j&&Ve.push(this.element),c.length>0){c=(c=c.replace(ot,"."+this._enterClassName)).replace(Ut,"."+this._leaveClassName);let gt=this._driver.query(this.element,c,1!=T);0!==T&&(gt=T<0?gt.slice(gt.length+T,gt.length):gt.slice(0,T)),Ve.push(...gt)}return!ae&&0==Ve.length&&Fe.push(`\`query("${f}")\` returned zero elements. (Use \`query("${f}", { optional: true })\` if you wish to allow this.)`),Ve}}class je{constructor(c,f,T,j){this._driver=c,this.element=f,this.startTime=T,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(f),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(f,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(c){const f=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||f?(this.forwardTime(this.currentTime+c),f&&this.snapshotCurrentStyles()):this.startTime+=c}fork(c,f){return this.applyStylesToKeyframe(),new je(this._driver,c,f||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(c){this.applyStylesToKeyframe(),this.duration=c,this._loadKeyframe()}_updateStyle(c,f){this._localTimelineStyles[c]=f,this._globalTimelineStyles[c]=f,this._styleSummary[c]={time:this.currentTime,value:f}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(c){c&&(this._previousKeyframe.easing=c),Object.keys(this._globalTimelineStyles).forEach(f=>{this._backFill[f]=this._globalTimelineStyles[f]||_.l3,this._currentKeyframe[f]=_.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(c,f,T,j){f&&(this._previousKeyframe.easing=f);const ae=j&&j.params||{},Fe=function Bt(B,c){const f={};let T;return B.forEach(j=>{"*"===j?(T=T||Object.keys(c),T.forEach(ae=>{f[ae]=_.l3})):et(j,!1,f)}),f}(c,this._globalTimelineStyles);Object.keys(Fe).forEach(Ve=>{const st=Rt(Fe[Ve],ae,T);this._pendingStyles[Ve]=st,this._localTimelineStyles.hasOwnProperty(Ve)||(this._backFill[Ve]=this._globalTimelineStyles.hasOwnProperty(Ve)?this._globalTimelineStyles[Ve]:_.l3),this._updateStyle(Ve,st)})}applyStylesToKeyframe(){const c=this._pendingStyles,f=Object.keys(c);0!=f.length&&(this._pendingStyles={},f.forEach(T=>{this._currentKeyframe[T]=c[T]}),Object.keys(this._localTimelineStyles).forEach(T=>{this._currentKeyframe.hasOwnProperty(T)||(this._currentKeyframe[T]=this._localTimelineStyles[T])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(c=>{const f=this._localTimelineStyles[c];this._pendingStyles[c]=f,this._updateStyle(c,f)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const c=[];for(let f in this._currentKeyframe)c.push(f);return c}mergeTimelineCollectedStyles(c){Object.keys(c._styleSummary).forEach(f=>{const T=this._styleSummary[f],j=c._styleSummary[f];(!T||j.time>T.time)&&this._updateStyle(f,j.value)})}buildKeyframes(){this.applyStylesToKeyframe();const c=new Set,f=new Set,T=1===this._keyframes.size&&0===this.duration;let j=[];this._keyframes.forEach((Ve,st)=>{const gt=et(Ve,!0);Object.keys(gt).forEach(Ft=>{const Gt=gt[Ft];Gt==_.k1?c.add(Ft):Gt==_.l3&&f.add(Ft)}),T||(gt.offset=st/this.duration),j.push(gt)});const ae=c.size?dt(c.values()):[],Fe=f.size?dt(f.values()):[];if(T){const Ve=j[0],st=St(Ve);Ve.offset=0,st.offset=1,j=[Ve,st]}return S(this.element,j,ae,Fe,this.duration,this.startTime,this.easing,!1)}}class ft extends je{constructor(c,f,T,j,ae,Fe,Ve=!1){super(c,f,Fe.delay),this.keyframes=T,this.preStyleProps=j,this.postStyleProps=ae,this._stretchStartingKeyframe=Ve,this.timings={duration:Fe.duration,delay:Fe.delay,easing:Fe.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let c=this.keyframes,{delay:f,duration:T,easing:j}=this.timings;if(this._stretchStartingKeyframe&&f){const ae=[],Fe=T+f,Ve=f/Fe,st=et(c[0],!1);st.offset=0,ae.push(st);const gt=et(c[0],!1);gt.offset=Vt(Ve),ae.push(gt);const Ft=c.length-1;for(let Gt=1;Gt<=Ft;Gt++){let Xt=et(c[Gt],!1);Xt.offset=Vt((f+Xt.offset*T)/Fe),ae.push(Xt)}T=Fe,f=0,j="",c=ae}return S(this.element,c,this.preStyleProps,this.postStyleProps,T,f,j,!0)}}function Vt(B,c=3){const f=Math.pow(10,c-1);return Math.round(B*f)/f}class En{}class di extends En{normalizePropertyName(c,f){return N(c)}normalizeStyleValue(c,f,T,j){let ae="";const Fe=T.toString().trim();if(Jn[f]&&0!==T&&"0"!==T)if("number"==typeof T)ae="px";else{const Ve=T.match(/^[+-]?[\d\.]+([a-z]*)$/);Ve&&0==Ve[1].length&&j.push(`Please provide a CSS unit value for ${c}:${T}`)}return Fe+ae}}const Jn=(()=>function Nn(B){const c={};return B.forEach(f=>c[f]=!0),c}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function zn(B,c,f,T,j,ae,Fe,Ve,st,gt,Ft,Gt,Xt){return{type:0,element:B,triggerName:c,isRemovalTransition:j,fromState:f,fromStyles:ae,toState:T,toStyles:Fe,timelines:Ve,queriedElements:st,preStyleProps:gt,postStyleProps:Ft,totalTime:Gt,errors:Xt}}const Bn={};class H{constructor(c,f,T){this._triggerName=c,this.ast=f,this._stateStyles=T}match(c,f,T,j){return function we(B,c,f,T,j){return B.some(ae=>ae(c,f,T,j))}(this.ast.matchers,c,f,T,j)}buildStyles(c,f,T){const j=this._stateStyles["*"],ae=this._stateStyles[c],Fe=j?j.buildStyles(f,T):{};return ae?ae.buildStyles(f,T):Fe}build(c,f,T,j,ae,Fe,Ve,st,gt,Ft){const Gt=[],Xt=this.ast.options&&this.ast.options.params||Bn,en=this.buildStyles(T,Ve&&Ve.params||Bn,Gt),nn=st&&st.params||Bn,hn=this.buildStyles(j,nn,Gt),q=new Set,U=new Map,Z=new Map,ee="void"===j,xe={params:Object.assign(Object.assign({},Xt),nn)},Ne=Ft?[]:gn(c,f,this.ast.animation,ae,Fe,en,hn,xe,gt,Gt);let nt=0;if(Ne.forEach(bt=>{nt=Math.max(bt.duration+bt.delay,nt)}),Gt.length)return zn(f,this._triggerName,T,j,ee,en,hn,[],[],U,Z,nt,Gt);Ne.forEach(bt=>{const Wt=bt.element,Yt=I(U,Wt,{});bt.preStyleProps.forEach(ln=>Yt[ln]=!0);const yn=I(Z,Wt,{});bt.postStyleProps.forEach(ln=>yn[ln]=!0),Wt!==f&&q.add(Wt)});const Ct=dt(q.values());return zn(f,this._triggerName,T,j,ee,en,hn,Ne,Ct,U,Z,nt)}}class W{constructor(c,f,T){this.styles=c,this.defaultParams=f,this.normalizer=T}buildStyles(c,f){const T={},j=St(this.defaultParams);return Object.keys(c).forEach(ae=>{const Fe=c[ae];null!=Fe&&(j[ae]=Fe)}),this.styles.styles.forEach(ae=>{if("string"!=typeof ae){const Fe=ae;Object.keys(Fe).forEach(Ve=>{let st=Fe[Ve];st.length>1&&(st=Rt(st,j,f));const gt=this.normalizer.normalizePropertyName(Ve,f);st=this.normalizer.normalizeStyleValue(Ve,gt,st,f),T[gt]=st})}}),T}}class tt{constructor(c,f,T){this.name=c,this.ast=f,this._normalizer=T,this.transitionFactories=[],this.states={},f.states.forEach(j=>{this.states[j.name]=new W(j.style,j.options&&j.options.params||{},T)}),At(this.states,"true","1"),At(this.states,"false","0"),f.transitions.forEach(j=>{this.transitionFactories.push(new H(c,j,this.states))}),this.fallbackTransition=function ct(B,c,f){return new H(B,{type:1,animation:{type:2,steps:[],options:null},matchers:[(Fe,Ve)=>!0],options:null,queryCount:0,depCount:0},c)}(c,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(c,f,T,j){return this.transitionFactories.find(Fe=>Fe.match(c,f,T,j))||null}matchStyles(c,f,T){return this.fallbackTransition.buildStyles(c,f,T)}}function At(B,c,f){B.hasOwnProperty(c)?B.hasOwnProperty(f)||(B[f]=B[c]):B.hasOwnProperty(f)&&(B[c]=B[f])}const jt=new A;class qt{constructor(c,f,T){this.bodyNode=c,this._driver=f,this._normalizer=T,this._animations={},this._playersById={},this.players=[]}register(c,f){const T=[],j=Kt(this._driver,f,T);if(T.length)throw new Error(`Unable to build the animation due to the following errors: ${T.join("\n")}`);this._animations[c]=j}_buildPlayer(c,f,T){const j=c.element,ae=C(0,this._normalizer,0,c.keyframes,f,T);return this._driver.animate(j,ae,c.duration,c.delay,c.easing,[],!0)}create(c,f,T={}){const j=[],ae=this._animations[c];let Fe;const Ve=new Map;if(ae?(Fe=gn(this._driver,f,ae,K,oe,{},{},T,jt,j),Fe.forEach(Ft=>{const Gt=I(Ve,Ft.element,{});Ft.postStyleProps.forEach(Xt=>Gt[Xt]=null)})):(j.push("The requested animation doesn't exist or has already been destroyed"),Fe=[]),j.length)throw new Error(`Unable to create the animation due to the following errors: ${j.join("\n")}`);Ve.forEach((Ft,Gt)=>{Object.keys(Ft).forEach(Xt=>{Ft[Xt]=this._driver.computeStyle(Gt,Xt,_.l3)})});const gt=v(Fe.map(Ft=>{const Gt=Ve.get(Ft.element);return this._buildPlayer(Ft,{},Gt)}));return this._playersById[c]=gt,gt.onDestroy(()=>this.destroy(c)),this.players.push(gt),gt}destroy(c){const f=this._getPlayer(c);f.destroy(),delete this._playersById[c];const T=this.players.indexOf(f);T>=0&&this.players.splice(T,1)}_getPlayer(c){const f=this._playersById[c];if(!f)throw new Error(`Unable to find the timeline player referenced by ${c}`);return f}listen(c,f,T,j){const ae=y(f,"","","");return D(this._getPlayer(c),T,ae,j),()=>{}}command(c,f,T,j){if("register"==T)return void this.register(c,j[0]);if("create"==T)return void this.create(c,f,j[0]||{});const ae=this._getPlayer(c);switch(T){case"play":ae.play();break;case"pause":ae.pause();break;case"reset":ae.reset();break;case"restart":ae.restart();break;case"finish":ae.finish();break;case"init":ae.init();break;case"setPosition":ae.setPosition(parseFloat(j[0]));break;case"destroy":this.destroy(c)}}}const vn="ng-animate-queued",On="ng-animate-disabled",Sn=[],kn={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ai={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},xn="__ng_removed";class mn{constructor(c,f=""){this.namespaceId=f;const T=c&&c.hasOwnProperty("value");if(this.value=function hi(B){return null!=B?B:null}(T?c.value:c),T){const ae=St(c);delete ae.value,this.options=ae}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(c){const f=c.params;if(f){const T=this.options.params;Object.keys(f).forEach(j=>{null==T[j]&&(T[j]=f[j])})}}}const ni="void",li=new mn(ni);class Kn{constructor(c,f,T){this.id=c,this.hostElement=f,this._engine=T,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+c,Zn(f,this._hostClassName)}listen(c,f,T,j){if(!this._triggers.hasOwnProperty(f))throw new Error(`Unable to listen on the animation trigger event "${T}" because the animation trigger "${f}" doesn't exist!`);if(null==T||0==T.length)throw new Error(`Unable to listen on the animation trigger "${f}" because the provided event is undefined!`);if(!function Sr(B){return"start"==B||"done"==B}(T))throw new Error(`The provided animation trigger event "${T}" for the animation trigger "${f}" is not supported!`);const ae=I(this._elementListeners,c,[]),Fe={name:f,phase:T,callback:j};ae.push(Fe);const Ve=I(this._engine.statesByElement,c,{});return Ve.hasOwnProperty(f)||(Zn(c,ke),Zn(c,ke+"-"+f),Ve[f]=li),()=>{this._engine.afterFlush(()=>{const st=ae.indexOf(Fe);st>=0&&ae.splice(st,1),this._triggers[f]||delete Ve[f]})}}register(c,f){return!this._triggers[c]&&(this._triggers[c]=f,!0)}_getTrigger(c){const f=this._triggers[c];if(!f)throw new Error(`The provided animation trigger "${c}" has not been registered!`);return f}trigger(c,f,T,j=!0){const ae=this._getTrigger(f),Fe=new Ci(this.id,f,c);let Ve=this._engine.statesByElement.get(c);Ve||(Zn(c,ke),Zn(c,ke+"-"+f),this._engine.statesByElement.set(c,Ve={}));let st=Ve[f];const gt=new mn(T,this.id);if(!(T&&T.hasOwnProperty("value"))&&st&&gt.absorbOptions(st.options),Ve[f]=gt,st||(st=li),gt.value!==ni&&st.value===gt.value){if(!function Ir(B,c){const f=Object.keys(B),T=Object.keys(c);if(f.length!=T.length)return!1;for(let j=0;j<f.length;j++){const ae=f[j];if(!c.hasOwnProperty(ae)||B[ae]!==c[ae])return!1}return!0}(st.params,gt.params)){const nn=[],hn=ae.matchStyles(st.value,st.params,nn),q=ae.matchStyles(gt.value,gt.params,nn);nn.length?this._engine.reportError(nn):this._engine.afterFlush(()=>{Ae(c,hn),Ee(c,q)})}return}const Xt=I(this._engine.playersByElement,c,[]);Xt.forEach(nn=>{nn.namespaceId==this.id&&nn.triggerName==f&&nn.queued&&nn.destroy()});let dn=ae.matchTransition(st.value,gt.value,c,gt.params),en=!1;if(!dn){if(!j)return;dn=ae.fallbackTransition,en=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:c,triggerName:f,transition:dn,fromState:st,toState:gt,player:Fe,isFallbackTransition:en}),en||(Zn(c,vn),Fe.onStart(()=>{Ei(c,vn)})),Fe.onDone(()=>{let nn=this.players.indexOf(Fe);nn>=0&&this.players.splice(nn,1);const hn=this._engine.playersByElement.get(c);if(hn){let q=hn.indexOf(Fe);q>=0&&hn.splice(q,1)}}),this.players.push(Fe),Xt.push(Fe),Fe}deregister(c){delete this._triggers[c],this._engine.statesByElement.forEach((f,T)=>{delete f[c]}),this._elementListeners.forEach((f,T)=>{this._elementListeners.set(T,f.filter(j=>j.name!=c))})}clearElementCache(c){this._engine.statesByElement.delete(c),this._elementListeners.delete(c);const f=this._engine.playersByElement.get(c);f&&(f.forEach(T=>T.destroy()),this._engine.playersByElement.delete(c))}_signalRemovalForInnerTriggers(c,f){const T=this._engine.driver.query(c,de,!0);T.forEach(j=>{if(j[xn])return;const ae=this._engine.fetchNamespacesByElement(j);ae.size?ae.forEach(Fe=>Fe.triggerLeaveAnimation(j,f,!1,!0)):this.clearElementCache(j)}),this._engine.afterFlushAnimationsDone(()=>T.forEach(j=>this.clearElementCache(j)))}triggerLeaveAnimation(c,f,T,j){const ae=this._engine.statesByElement.get(c),Fe=new Map;if(ae){const Ve=[];if(Object.keys(ae).forEach(st=>{if(Fe.set(st,ae[st].value),this._triggers[st]){const gt=this.trigger(c,st,ni,j);gt&&Ve.push(gt)}}),Ve.length)return this._engine.markElementAsRemoved(this.id,c,!0,f,Fe),T&&v(Ve).onDone(()=>this._engine.processLeaveNode(c)),!0}return!1}prepareLeaveAnimationListeners(c){const f=this._elementListeners.get(c),T=this._engine.statesByElement.get(c);if(f&&T){const j=new Set;f.forEach(ae=>{const Fe=ae.name;if(j.has(Fe))return;j.add(Fe);const st=this._triggers[Fe].fallbackTransition,gt=T[Fe]||li,Ft=new mn(ni),Gt=new Ci(this.id,Fe,c);this._engine.totalQueuedPlayers++,this._queue.push({element:c,triggerName:Fe,transition:st,fromState:gt,toState:Ft,player:Gt,isFallbackTransition:!0})})}}removeNode(c,f){const T=this._engine;if(c.childElementCount&&this._signalRemovalForInnerTriggers(c,f),this.triggerLeaveAnimation(c,f,!0))return;let j=!1;if(T.totalAnimations){const ae=T.players.length?T.playersByQueriedElement.get(c):[];if(ae&&ae.length)j=!0;else{let Fe=c;for(;Fe=Fe.parentNode;)if(T.statesByElement.get(Fe)){j=!0;break}}}if(this.prepareLeaveAnimationListeners(c),j)T.markElementAsRemoved(this.id,c,!1,f);else{const ae=c[xn];(!ae||ae===kn)&&(T.afterFlush(()=>this.clearElementCache(c)),T.destroyInnerAnimations(c),T._onRemovalComplete(c,f))}}insertNode(c,f){Zn(c,this._hostClassName)}drainQueuedTransitions(c){const f=[];return this._queue.forEach(T=>{const j=T.player;if(j.destroyed)return;const ae=T.element,Fe=this._elementListeners.get(ae);Fe&&Fe.forEach(Ve=>{if(Ve.name==T.triggerName){const st=y(ae,T.triggerName,T.fromState.value,T.toState.value);st._data=c,D(T.player,Ve.phase,st,Ve.callback)}}),j.markedForDestroy?this._engine.afterFlush(()=>{j.destroy()}):f.push(T)}),this._queue=[],f.sort((T,j)=>{const ae=T.transition.ast.depCount,Fe=j.transition.ast.depCount;return 0==ae||0==Fe?ae-Fe:this._engine.driver.containsElement(T.element,j.element)?1:-1})}destroy(c){this.players.forEach(f=>f.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,c)}elementContainsData(c){let f=!1;return this._elementListeners.has(c)&&(f=!0),f=!!this._queue.find(T=>T.element===c)||f,f}}class Gn{constructor(c,f,T){this.bodyNode=c,this.driver=f,this._normalizer=T,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,ae)=>{}}_onRemovalComplete(c,f){this.onRemovalComplete(c,f)}get queuedPlayers(){const c=[];return this._namespaceList.forEach(f=>{f.players.forEach(T=>{T.queued&&c.push(T)})}),c}createNamespace(c,f){const T=new Kn(c,f,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,f)?this._balanceNamespaceList(T,f):(this.newHostElements.set(f,T),this.collectEnterElement(f)),this._namespaceLookup[c]=T}_balanceNamespaceList(c,f){const T=this._namespaceList.length-1;if(T>=0){let j=!1;for(let ae=T;ae>=0;ae--)if(this.driver.containsElement(this._namespaceList[ae].hostElement,f)){this._namespaceList.splice(ae+1,0,c),j=!0;break}j||this._namespaceList.splice(0,0,c)}else this._namespaceList.push(c);return this.namespacesByHostElement.set(f,c),c}register(c,f){let T=this._namespaceLookup[c];return T||(T=this.createNamespace(c,f)),T}registerTrigger(c,f,T){let j=this._namespaceLookup[c];j&&j.register(f,T)&&this.totalAnimations++}destroy(c,f){if(!c)return;const T=this._fetchNamespace(c);this.afterFlush(()=>{this.namespacesByHostElement.delete(T.hostElement),delete this._namespaceLookup[c];const j=this._namespaceList.indexOf(T);j>=0&&this._namespaceList.splice(j,1)}),this.afterFlushAnimationsDone(()=>T.destroy(f))}_fetchNamespace(c){return this._namespaceLookup[c]}fetchNamespacesByElement(c){const f=new Set,T=this.statesByElement.get(c);if(T){const j=Object.keys(T);for(let ae=0;ae<j.length;ae++){const Fe=T[j[ae]].namespaceId;if(Fe){const Ve=this._fetchNamespace(Fe);Ve&&f.add(Ve)}}}return f}trigger(c,f,T,j){if(Wn(f)){const ae=this._fetchNamespace(c);if(ae)return ae.trigger(f,T,j),!0}return!1}insertNode(c,f,T,j){if(!Wn(f))return;const ae=f[xn];if(ae&&ae.setForRemoval){ae.setForRemoval=!1,ae.setForMove=!0;const Fe=this.collectedLeaveElements.indexOf(f);Fe>=0&&this.collectedLeaveElements.splice(Fe,1)}if(c){const Fe=this._fetchNamespace(c);Fe&&Fe.insertNode(f,T)}j&&this.collectEnterElement(f)}collectEnterElement(c){this.collectedEnterElements.push(c)}markElementAsDisabled(c,f){f?this.disabledNodes.has(c)||(this.disabledNodes.add(c),Zn(c,On)):this.disabledNodes.has(c)&&(this.disabledNodes.delete(c),Ei(c,On))}removeNode(c,f,T,j){if(Wn(f)){const ae=c?this._fetchNamespace(c):null;if(ae?ae.removeNode(f,j):this.markElementAsRemoved(c,f,!1,j),T){const Fe=this.namespacesByHostElement.get(f);Fe&&Fe.id!==c&&Fe.removeNode(f,j)}}else this._onRemovalComplete(f,j)}markElementAsRemoved(c,f,T,j,ae){this.collectedLeaveElements.push(f),f[xn]={namespaceId:c,setForRemoval:j,hasAnimation:T,removedBeforeQueried:!1,previousTriggersValues:ae}}listen(c,f,T,j,ae){return Wn(f)?this._fetchNamespace(c).listen(f,T,j,ae):()=>{}}_buildInstruction(c,f,T,j,ae){return c.transition.build(this.driver,c.element,c.fromState.value,c.toState.value,T,j,c.fromState.options,c.toState.options,f,ae)}destroyInnerAnimations(c){let f=this.driver.query(c,de,!0);f.forEach(T=>this.destroyActiveAnimationsForElement(T)),0!=this.playersByQueriedElement.size&&(f=this.driver.query(c,pe,!0),f.forEach(T=>this.finishActiveQueriedAnimationOnElement(T)))}destroyActiveAnimationsForElement(c){const f=this.playersByElement.get(c);f&&f.forEach(T=>{T.queued?T.markedForDestroy=!0:T.destroy()})}finishActiveQueriedAnimationOnElement(c){const f=this.playersByQueriedElement.get(c);f&&f.forEach(T=>T.finish())}whenRenderingDone(){return new Promise(c=>{if(this.players.length)return v(this.players).onDone(()=>c());c()})}processLeaveNode(c){var f;const T=c[xn];if(T&&T.setForRemoval){if(c[xn]=kn,T.namespaceId){this.destroyInnerAnimations(c);const j=this._fetchNamespace(T.namespaceId);j&&j.clearElementCache(c)}this._onRemovalComplete(c,T.setForRemoval)}(null===(f=c.classList)||void 0===f?void 0:f.contains(On))&&this.markElementAsDisabled(c,!1),this.driver.query(c,".ng-animate-disabled",!0).forEach(j=>{this.markElementAsDisabled(j,!1)})}flush(c=-1){let f=[];if(this.newHostElements.size&&(this.newHostElements.forEach((T,j)=>this._balanceNamespaceList(T,j)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let T=0;T<this.collectedEnterElements.length;T++)Zn(this.collectedEnterElements[T],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const T=[];try{f=this._flushAnimations(T,c)}finally{for(let j=0;j<T.length;j++)T[j]()}}else for(let T=0;T<this.collectedLeaveElements.length;T++)this.processLeaveNode(this.collectedLeaveElements[T]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(T=>T()),this._flushFns=[],this._whenQuietFns.length){const T=this._whenQuietFns;this._whenQuietFns=[],f.length?v(f).onDone(()=>{T.forEach(j=>j())}):T.forEach(j=>j())}}reportError(c){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${c.join("\n")}`)}_flushAnimations(c,f){const T=new A,j=[],ae=new Map,Fe=[],Ve=new Map,st=new Map,gt=new Map,Ft=new Set;this.disabledNodes.forEach(Pt=>{Ft.add(Pt);const kt=this.driver.query(Pt,".ng-animate-queued",!0);for(let Jt=0;Jt<kt.length;Jt++)Ft.add(kt[Jt])});const Gt=this.bodyNode,Xt=Array.from(this.statesByElement.keys()),dn=Qn(Xt,this.collectedEnterElements),en=new Map;let nn=0;dn.forEach((Pt,kt)=>{const Jt=K+nn++;en.set(kt,Jt),Pt.forEach(sn=>Zn(sn,Jt))});const hn=[],q=new Set,U=new Set;for(let Pt=0;Pt<this.collectedLeaveElements.length;Pt++){const kt=this.collectedLeaveElements[Pt],Jt=kt[xn];Jt&&Jt.setForRemoval&&(hn.push(kt),q.add(kt),Jt.hasAnimation?this.driver.query(kt,".ng-star-inserted",!0).forEach(sn=>q.add(sn)):U.add(kt))}const Z=new Map,ee=Qn(Xt,Array.from(q));ee.forEach((Pt,kt)=>{const Jt=oe+nn++;Z.set(kt,Jt),Pt.forEach(sn=>Zn(sn,Jt))}),c.push(()=>{dn.forEach((Pt,kt)=>{const Jt=en.get(kt);Pt.forEach(sn=>Ei(sn,Jt))}),ee.forEach((Pt,kt)=>{const Jt=Z.get(kt);Pt.forEach(sn=>Ei(sn,Jt))}),hn.forEach(Pt=>{this.processLeaveNode(Pt)})});const xe=[],Ne=[];for(let Pt=this._namespaceList.length-1;Pt>=0;Pt--)this._namespaceList[Pt].drainQueuedTransitions(f).forEach(Jt=>{const sn=Jt.player,jn=Jt.element;if(xe.push(sn),this.collectedEnterElements.length){const ui=jn[xn];if(ui&&ui.setForMove){if(ui.previousTriggersValues&&ui.previousTriggersValues.has(Jt.triggerName)){const Xi=ui.previousTriggersValues.get(Jt.triggerName),Li=this.statesByElement.get(Jt.element);Li&&Li[Jt.triggerName]&&(Li[Jt.triggerName].value=Xi)}return void sn.destroy()}}const Pn=!Gt||!this.driver.containsElement(Gt,jn),_i=Z.get(jn),lr=en.get(jn),Vn=this._buildInstruction(Jt,T,lr,_i,Pn);if(Vn.errors&&Vn.errors.length)return void Ne.push(Vn);if(Pn)return sn.onStart(()=>Ae(jn,Vn.fromStyles)),sn.onDestroy(()=>Ee(jn,Vn.toStyles)),void j.push(sn);if(Jt.isFallbackTransition)return sn.onStart(()=>Ae(jn,Vn.fromStyles)),sn.onDestroy(()=>Ee(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,T.append(jn,Vn.timelines),Fe.push({instruction:Vn,player:sn,element:jn}),Vn.queriedElements.forEach(ui=>I(Ve,ui,[]).push(sn)),Vn.preStyleProps.forEach((ui,Xi)=>{const Li=Object.keys(ui);if(Li.length){let Ji=st.get(Xi);Ji||st.set(Xi,Ji=new Set),Li.forEach(Ur=>Ji.add(Ur))}}),Vn.postStyleProps.forEach((ui,Xi)=>{const Li=Object.keys(ui);let Ji=gt.get(Xi);Ji||gt.set(Xi,Ji=new Set),Li.forEach(Ur=>Ji.add(Ur))})});if(Ne.length){const Pt=[];Ne.forEach(kt=>{Pt.push(`@${kt.triggerName} has failed due to:\n`),kt.errors.forEach(Jt=>Pt.push(`- ${Jt}\n`))}),xe.forEach(kt=>kt.destroy()),this.reportError(Pt)}const nt=new Map,Ct=new Map;Fe.forEach(Pt=>{const kt=Pt.element;T.has(kt)&&(Ct.set(kt,kt),this._beforeAnimationBuild(Pt.player.namespaceId,Pt.instruction,nt))}),j.forEach(Pt=>{const kt=Pt.element;this._getPreviousPlayers(kt,!1,Pt.namespaceId,Pt.triggerName,null).forEach(sn=>{I(nt,kt,[]).push(sn),sn.destroy()})});const bt=hn.filter(Pt=>wi(Pt,st,gt)),Wt=new Map;mr(Wt,this.driver,U,gt,_.l3).forEach(Pt=>{wi(Pt,st,gt)&&bt.push(Pt)});const yn=new Map;dn.forEach((Pt,kt)=>{mr(yn,this.driver,new Set(Pt),st,_.k1)}),bt.forEach(Pt=>{const kt=Wt.get(Pt),Jt=yn.get(Pt);Wt.set(Pt,Object.assign(Object.assign({},kt),Jt))});const ln=[],wn=[],_n={};Fe.forEach(Pt=>{const{element:kt,player:Jt,instruction:sn}=Pt;if(T.has(kt)){if(Ft.has(kt))return Jt.onDestroy(()=>Ee(kt,sn.toStyles)),Jt.disabled=!0,Jt.overrideTotalTime(sn.totalTime),void j.push(Jt);let jn=_n;if(Ct.size>1){let _i=kt;const lr=[];for(;_i=_i.parentNode;){const Vn=Ct.get(_i);if(Vn){jn=Vn;break}lr.push(_i)}lr.forEach(Vn=>Ct.set(Vn,jn))}const Pn=this._buildAnimation(Jt.namespaceId,sn,nt,ae,yn,Wt);if(Jt.setRealPlayer(Pn),jn===_n)ln.push(Jt);else{const _i=this.playersByElement.get(jn);_i&&_i.length&&(Jt.parentPlayer=v(_i)),j.push(Jt)}}else Ae(kt,sn.fromStyles),Jt.onDestroy(()=>Ee(kt,sn.toStyles)),wn.push(Jt),Ft.has(kt)&&j.push(Jt)}),wn.forEach(Pt=>{const kt=ae.get(Pt.element);if(kt&&kt.length){const Jt=v(kt);Pt.setRealPlayer(Jt)}}),j.forEach(Pt=>{Pt.parentPlayer?Pt.syncPlayerEvents(Pt.parentPlayer):Pt.destroy()});for(let Pt=0;Pt<hn.length;Pt++){const kt=hn[Pt],Jt=kt[xn];if(Ei(kt,oe),Jt&&Jt.hasAnimation)continue;let sn=[];if(Ve.size){let Pn=Ve.get(kt);Pn&&Pn.length&&sn.push(...Pn);let _i=this.driver.query(kt,pe,!0);for(let lr=0;lr<_i.length;lr++){let Vn=Ve.get(_i[lr]);Vn&&Vn.length&&sn.push(...Vn)}}const jn=sn.filter(Pn=>!Pn.destroyed);jn.length?Ui(this,kt,jn):this.processLeaveNode(kt)}return hn.length=0,ln.forEach(Pt=>{this.players.push(Pt),Pt.onDone(()=>{Pt.destroy();const kt=this.players.indexOf(Pt);this.players.splice(kt,1)}),Pt.play()}),ln}elementContainsData(c,f){let T=!1;const j=f[xn];return j&&j.setForRemoval&&(T=!0),this.playersByElement.has(f)&&(T=!0),this.playersByQueriedElement.has(f)&&(T=!0),this.statesByElement.has(f)&&(T=!0),this._fetchNamespace(c).elementContainsData(f)||T}afterFlush(c){this._flushFns.push(c)}afterFlushAnimationsDone(c){this._whenQuietFns.push(c)}_getPreviousPlayers(c,f,T,j,ae){let Fe=[];if(f){const Ve=this.playersByQueriedElement.get(c);Ve&&(Fe=Ve)}else{const Ve=this.playersByElement.get(c);if(Ve){const st=!ae||ae==ni;Ve.forEach(gt=>{gt.queued||!st&&gt.triggerName!=j||Fe.push(gt)})}}return(T||j)&&(Fe=Fe.filter(Ve=>!(T&&T!=Ve.namespaceId||j&&j!=Ve.triggerName))),Fe}_beforeAnimationBuild(c,f,T){const ae=f.element,Fe=f.isRemovalTransition?void 0:c,Ve=f.isRemovalTransition?void 0:f.triggerName;for(const st of f.timelines){const gt=st.element,Ft=gt!==ae,Gt=I(T,gt,[]);this._getPreviousPlayers(gt,Ft,Fe,Ve,f.toState).forEach(dn=>{const en=dn.getRealPlayer();en.beforeDestroy&&en.beforeDestroy(),dn.destroy(),Gt.push(dn)})}Ae(ae,f.fromStyles)}_buildAnimation(c,f,T,j,ae,Fe){const Ve=f.triggerName,st=f.element,gt=[],Ft=new Set,Gt=new Set,Xt=f.timelines.map(en=>{const nn=en.element;Ft.add(nn);const hn=nn[xn];if(hn&&hn.removedBeforeQueried)return new _.ZN(en.duration,en.delay);const q=nn!==st,U=function Lr(B){const c=[];return Wi(B,c),c}((T.get(nn)||Sn).map(nt=>nt.getRealPlayer())).filter(nt=>!!nt.element&&nt.element===nn),Z=ae.get(nn),ee=Fe.get(nn),xe=C(0,this._normalizer,0,en.keyframes,Z,ee),Ne=this._buildPlayer(en,xe,U);if(en.subTimeline&&j&&Gt.add(nn),q){const nt=new Ci(c,Ve,nn);nt.setRealPlayer(Ne),gt.push(nt)}return Ne});gt.forEach(en=>{I(this.playersByQueriedElement,en.element,[]).push(en),en.onDone(()=>function Mi(B,c,f){let T;if(B instanceof Map){if(T=B.get(c),T){if(T.length){const j=T.indexOf(f);T.splice(j,1)}0==T.length&&B.delete(c)}}else if(T=B[c],T){if(T.length){const j=T.indexOf(f);T.splice(j,1)}0==T.length&&delete B[c]}return T}(this.playersByQueriedElement,en.element,en))}),Ft.forEach(en=>Zn(en,Ue));const dn=v(Xt);return dn.onDestroy(()=>{Ft.forEach(en=>Ei(en,Ue)),Ee(st,f.toStyles)}),Gt.forEach(en=>{I(j,en,[]).push(dn)}),dn}_buildPlayer(c,f,T){return f.length>0?this.driver.animate(c.element,f,c.duration,c.delay,c.easing,T):new _.ZN(c.duration,c.delay)}}class Ci{constructor(c,f,T){this.namespaceId=c,this.triggerName=f,this.element=T,this._player=new _.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(c){this._containsRealPlayer||(this._player=c,Object.keys(this._queuedCallbacks).forEach(f=>{this._queuedCallbacks[f].forEach(T=>D(c,f,void 0,T))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(c.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(c){this.totalTime=c}syncPlayerEvents(c){const f=this._player;f.triggerCallback&&c.onStart(()=>f.triggerCallback("start")),c.onDone(()=>this.finish()),c.onDestroy(()=>this.destroy())}_queueEvent(c,f){I(this._queuedCallbacks,c,[]).push(f)}onDone(c){this.queued&&this._queueEvent("done",c),this._player.onDone(c)}onStart(c){this.queued&&this._queueEvent("start",c),this._player.onStart(c)}onDestroy(c){this.queued&&this._queueEvent("destroy",c),this._player.onDestroy(c)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(c){this.queued||this._player.setPosition(c)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(c){const f=this._player;f.triggerCallback&&f.triggerCallback(c)}}function Wn(B){return B&&1===B.nodeType}function nr(B,c){const f=B.style.display;return B.style.display=null!=c?c:"none",f}function mr(B,c,f,T,j){const ae=[];f.forEach(st=>ae.push(nr(st)));const Fe=[];T.forEach((st,gt)=>{const Ft={};st.forEach(Gt=>{const Xt=Ft[Gt]=c.computeStyle(gt,Gt,j);(!Xt||0==Xt.length)&&(gt[xn]=ai,Fe.push(gt))}),B.set(gt,Ft)});let Ve=0;return f.forEach(st=>nr(st,ae[Ve++])),Fe}function Qn(B,c){const f=new Map;if(B.forEach(Ve=>f.set(Ve,[])),0==c.length)return f;const j=new Set(c),ae=new Map;function Fe(Ve){if(!Ve)return 1;let st=ae.get(Ve);if(st)return st;const gt=Ve.parentNode;return st=f.has(gt)?gt:j.has(gt)?1:Fe(gt),ae.set(Ve,st),st}return c.forEach(Ve=>{const st=Fe(Ve);1!==st&&f.get(st).push(Ve)}),f}function Zn(B,c){var f;null===(f=B.classList)||void 0===f||f.add(c)}function Ei(B,c){var f;null===(f=B.classList)||void 0===f||f.remove(c)}function Ui(B,c,f){v(f).onDone(()=>B.processLeaveNode(c))}function Wi(B,c){for(let f=0;f<B.length;f++){const T=B[f];T instanceof _.ZE?Wi(T.players,c):c.push(T)}}function wi(B,c,f){const T=f.get(B);if(!T)return!1;let j=c.get(B);return j?T.forEach(ae=>j.add(ae)):c.set(B,T),f.delete(B),!0}class zi{constructor(c,f,T){this.bodyNode=c,this._driver=f,this._normalizer=T,this._triggerCache={},this.onRemovalComplete=(j,ae)=>{},this._transitionEngine=new Gn(c,f,T),this._timelineEngine=new qt(c,f,T),this._transitionEngine.onRemovalComplete=(j,ae)=>this.onRemovalComplete(j,ae)}registerTrigger(c,f,T,j,ae){const Fe=c+"-"+j;let Ve=this._triggerCache[Fe];if(!Ve){const st=[],gt=Kt(this._driver,ae,st);if(st.length)throw new Error(`The animation trigger "${j}" has failed to build due to the following errors:\n - ${st.join("\n - ")}`);Ve=function Pe(B,c,f){return new tt(B,c,f)}(j,gt,this._normalizer),this._triggerCache[Fe]=Ve}this._transitionEngine.registerTrigger(f,j,Ve)}register(c,f){this._transitionEngine.register(c,f)}destroy(c,f){this._transitionEngine.destroy(c,f)}onInsert(c,f,T,j){this._transitionEngine.insertNode(c,f,T,j)}onRemove(c,f,T,j){this._transitionEngine.removeNode(c,f,j||!1,T)}disableAnimations(c,f){this._transitionEngine.markElementAsDisabled(c,f)}process(c,f,T,j){if("@"==T.charAt(0)){const[ae,Fe]=O(T);this._timelineEngine.command(ae,f,Fe,j)}else this._transitionEngine.trigger(c,f,T,j)}listen(c,f,T,j,ae){if("@"==T.charAt(0)){const[Fe,Ve]=O(T);return this._timelineEngine.listen(Fe,f,Ve,ae)}return this._transitionEngine.listen(c,f,T,j,ae)}flush(c=-1){this._transitionEngine.flush(c)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function ci(B,c){let f=null,T=null;return Array.isArray(c)&&c.length?(f=Di(c[0]),c.length>1&&(T=Di(c[c.length-1]))):c&&(f=Di(c)),f||T?new gr(B,f,T):null}let gr=(()=>{class B{constructor(f,T,j){this._element=f,this._startStyles=T,this._endStyles=j,this._state=0;let ae=B.initialStylesByElement.get(f);ae||B.initialStylesByElement.set(f,ae={}),this._initialStyles=ae}start(){this._state<1&&(this._startStyles&&Ee(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ee(this._element,this._initialStyles),this._endStyles&&(Ee(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(B.initialStylesByElement.delete(this._element),this._startStyles&&(Ae(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ae(this._element,this._endStyles),this._endStyles=null),Ee(this._element,this._initialStyles),this._state=3)}}return B.initialStylesByElement=new WeakMap,B})();function Di(B){let c=null;const f=Object.keys(B);for(let T=0;T<f.length;T++){const j=f[T];Ar(j)&&(c=c||{},c[j]=B[j])}return c}function Ar(B){return"display"===B||"position"===B}const Ki="animation",Si="animationend";class Or{constructor(c,f,T,j,ae,Fe,Ve){this._element=c,this._name=f,this._duration=T,this._delay=j,this._easing=ae,this._fillMode=Fe,this._onDoneFn=Ve,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=st=>this._handleCallback(st)}apply(){(function _r(B,c){const f=ir(B,"").trim();let T=0;f.length&&(T=function rr(B,c){let f=0;for(let T=0;T<B.length;T++)B.charAt(T)===c&&f++;return f}(f,",")+1,c=`${f}, ${c}`),mi(B,"",c)})(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),Qi(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){Ii(this._element,this._name,"paused")}resume(){Ii(this._element,this._name,"running")}setPosition(c){const f=Ai(this._element,this._name);this._position=c*this._duration,mi(this._element,"Delay",`-${this._position}ms`,f)}getPosition(){return this._position}_handleCallback(c){const f=c._ngTestManualTimestamp||Date.now(),T=1e3*parseFloat(c.elapsedTime.toFixed(3));c.animationName==this._name&&Math.max(f-this._startTime,0)>=this._delay&&T>=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,c){const T=ir(B,"").split(","),j=pi(T,c);j>=0&&(T.splice(j,1),mi(B,"",T.join(",")))}(this._element,this._name))}}function Ii(B,c,f){mi(B,"PlayState",f,Ai(B,c))}function Ai(B,c){const f=ir(B,"");return f.indexOf(",")>0?pi(f.split(","),c):pi([f],c)}function pi(B,c){for(let f=0;f<B.length;f++)if(B[f].indexOf(c)>=0)return f;return-1}function Qi(B,c,f){f?B.removeEventListener(Si,c):B.addEventListener(Si,c)}function mi(B,c,f,T){const j=Ki+c;if(null!=T){const ae=B.style[j];if(ae.length){const Fe=ae.split(",");Fe[T]=f,f=Fe.join(",")}}B.style[j]=f}function ir(B,c){return B.style[Ki+c]||""}class xi{constructor(c,f,T,j,ae,Fe,Ve,st){this.element=c,this.keyframes=f,this.animationName=T,this._duration=j,this._delay=ae,this._finalStyles=Ve,this._specialStyles=st,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=Fe||"linear",this.totalTime=j+ae,this._buildStyler()}onStart(c){this._onStartFns.push(c)}onDone(c){this._onDoneFns.push(c)}onDestroy(c){this._onDestroyFns.push(c)}destroy(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(c=>c()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(c=>c()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(c=>c()),this._onStartFns=[]}finish(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(c){this._styler.setPosition(c)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Or(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(c){const f="start"==c?this._onStartFns:this._onDoneFns;f.forEach(T=>T()),f.length=0}beforeDestroy(){this.init();const c={};if(this.hasStarted()){const f=this._state>=3;Object.keys(this._finalStyles).forEach(T=>{"offset"!=T&&(c[T]=f?this._finalStyles[T]:ye(this.element,T))})}this.currentSnapshot=c}}class Zi extends _.ZN{constructor(c,f){super(),this.element=c,this._startingStyles={},this.__initialized=!1,this._styles=Se(f)}init(){this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(c=>{this._startingStyles[c]=this.element.style[c]}),super.init())}play(){!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(c=>this.element.style.setProperty(c,this._styles[c])),super.play())}destroy(){!this._startingStyles||(Object.keys(this._startingStyles).forEach(c=>{const f=this._startingStyles[c];f?this.element.style.setProperty(c,f):this.element.style.removeProperty(c)}),this._startingStyles=null,super.destroy())}}class or{constructor(){this._count=0}validateStyleProperty(c){return De(c)}matchesElement(c,f){return!1}containsElement(c,f){return _e(c,f)}query(c,f,T){return le(c,f,T)}computeStyle(c,f,T){return window.getComputedStyle(c)[f]}buildKeyframeElement(c,f,T){T=T.map(Ve=>Se(Ve));let j=`@keyframes ${f} {\n`,ae="";T.forEach(Ve=>{ae=" ";const st=parseFloat(Ve.offset);j+=`${ae}${100*st}% {\n`,ae+=" ",Object.keys(Ve).forEach(gt=>{const Ft=Ve[gt];switch(gt){case"offset":return;case"easing":return void(Ft&&(j+=`${ae}animation-timing-function: ${Ft};\n`));default:return void(j+=`${ae}${gt}: ${Ft};\n`)}}),j+=`${ae}}\n`}),j+="}\n";const Fe=document.createElement("style");return Fe.textContent=j,Fe}animate(c,f,T,j,ae,Fe=[],Ve){const st=Fe.filter(hn=>hn instanceof xi),gt={};Oe(T,j)&&st.forEach(hn=>{let q=hn.currentSnapshot;Object.keys(q).forEach(U=>gt[U]=q[U])});const Ft=function Yi(B){let c={};return B&&(Array.isArray(B)?B:[B]).forEach(T=>{Object.keys(T).forEach(j=>{"offset"==j||"easing"==j||(c[j]=T[j])})}),c}(f=se(c,f,gt));if(0==T)return new Zi(c,Ft);const Gt="gen_css_kf_"+this._count++,Xt=this.buildKeyframeElement(c,Gt,f);(function Fi(B){var c;const f=null===(c=B.getRootNode)||void 0===c?void 0:c.call(B);return"undefined"!=typeof ShadowRoot&&f instanceof ShadowRoot?f:document.head})(c).appendChild(Xt);const en=ci(c,f),nn=new xi(c,f,Gt,T,j,ae,Ft,en);return nn.onDestroy(()=>function ki(B){B.parentNode.removeChild(B)}(Xt)),nn}}class sr{constructor(c,f,T,j){this.element=c,this.keyframes=f,this.options=T,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=T.duration,this._delay=T.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(c=>c()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const c=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,c,this.options),this._finalKeyframe=c.length?c[c.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(c,f,T){return c.animate(f,T)}onStart(c){this._onStartFns.push(c)}onDone(c){this._onDoneFns.push(c)}onDestroy(c){this._onDestroyFns.push(c)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(c=>c()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(c=>c()),this._onDestroyFns=[])}setPosition(c){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=c*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const c={};if(this.hasStarted()){const f=this._finalKeyframe;Object.keys(f).forEach(T=>{"offset"!=T&&(c[T]=this._finished?f[T]:ye(this.element,T))})}this.currentSnapshot=c}triggerCallback(c){const f="start"==c?this._onStartFns:this._onDoneFns;f.forEach(T=>T()),f.length=0}}class ar{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(x().toString()),this._cssKeyframesDriver=new or}validateStyleProperty(c){return De(c)}matchesElement(c,f){return!1}containsElement(c,f){return _e(c,f)}query(c,f,T){return le(c,f,T)}computeStyle(c,f,T){return window.getComputedStyle(c)[f]}overrideWebAnimationsSupport(c){this._isNativeImpl=c}animate(c,f,T,j,ae,Fe=[],Ve){if(!Ve&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(c,f,T,j,ae,Fe);const Ft={duration:T,delay:j,fill:0==j?"both":"forwards"};ae&&(Ft.easing=ae);const Gt={},Xt=Fe.filter(en=>en instanceof sr);Oe(T,j)&&Xt.forEach(en=>{let nn=en.currentSnapshot;Object.keys(nn).forEach(hn=>Gt[hn]=nn[hn])});const dn=ci(c,f=se(c,f=f.map(en=>et(en,!1)),Gt));return new sr(c,f,Ft,dn)}}function x(){return u()&&Element.prototype.animate||{}}var Q=l(9808);let R=(()=>{class B extends _._j{constructor(f,T){super(),this._nextAnimationId=0,this._renderer=f.createRenderer(T.body,{id:"0",encapsulation:i.ViewEncapsulation.None,styles:[],data:{animation:[]}})}build(f){const T=this._nextAnimationId.toString();this._nextAnimationId++;const j=Array.isArray(f)?(0,_.vP)(f):f;return ht(this._renderer,null,T,"register",[j]),new te(T,this._renderer)}}return B.\u0275fac=function(f){return new(f||B)(i.\u0275\u0275inject(i.RendererFactory2),i.\u0275\u0275inject(Q.DOCUMENT))},B.\u0275prov=i.\u0275\u0275defineInjectable({token:B,factory:B.\u0275fac}),B})();class te extends _.LC{constructor(c,f){super(),this._id=c,this._renderer=f}create(c,f){return new ze(this._id,c,f||{},this._renderer)}}class ze{constructor(c,f,T,j){this.id=c,this.element=f,this._renderer=j,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",T)}_listen(c,f){return this._renderer.listen(this.element,`@@${this.id}:${c}`,f)}_command(c,...f){return ht(this._renderer,this.element,this.id,c,f)}onDone(c){this._listen("done",c)}onStart(c){this._listen("start",c)}onDestroy(c){this._listen("destroy",c)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(c){this._command("setPosition",c)}getPosition(){var c,f;return null!==(f=null===(c=this._renderer.engine.players[+this.id])||void 0===c?void 0:c.getPosition())&&void 0!==f?f:0}}function ht(B,c,f,T,j){return B.setProperty(c,`@@${f}:${T}`,j)}const Nt="@.disabled";let Dn=(()=>{class B{constructor(f,T,j){this.delegate=f,this.engine=T,this._zone=j,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),T.onRemovalComplete=(ae,Fe)=>{const Ve=null==Fe?void 0:Fe.parentNode(ae);Ve&&Fe.removeChild(Ve,ae)}}createRenderer(f,T){const ae=this.delegate.createRenderer(f,T);if(!(f&&T&&T.data&&T.data.animation)){let Ft=this._rendererCache.get(ae);return Ft||(Ft=new Tn("",ae,this.engine),this._rendererCache.set(ae,Ft)),Ft}const Fe=T.id,Ve=T.id+"-"+this._currentId;this._currentId++,this.engine.register(Ve,f);const st=Ft=>{Array.isArray(Ft)?Ft.forEach(st):this.engine.registerTrigger(Fe,Ve,f,Ft.name,Ft)};return T.data.animation.forEach(st),new In(this,Ve,ae,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(f,T,j){f>=0&&f<this._microtaskId?this._zone.run(()=>T(j)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(ae=>{const[Fe,Ve]=ae;Fe(Ve)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([T,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(f){return new(f||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 Tn{constructor(c,f,T){this.namespaceId=c,this.delegate=f,this.engine=T,this.destroyNode=this.delegate.destroyNode?j=>f.destroyNode(j):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(c,f){return this.delegate.createElement(c,f)}createComment(c){return this.delegate.createComment(c)}createText(c){return this.delegate.createText(c)}appendChild(c,f){this.delegate.appendChild(c,f),this.engine.onInsert(this.namespaceId,f,c,!1)}insertBefore(c,f,T,j=!0){this.delegate.insertBefore(c,f,T),this.engine.onInsert(this.namespaceId,f,c,j)}removeChild(c,f,T){this.engine.onRemove(this.namespaceId,f,this.delegate,T)}selectRootElement(c,f){return this.delegate.selectRootElement(c,f)}parentNode(c){return this.delegate.parentNode(c)}nextSibling(c){return this.delegate.nextSibling(c)}setAttribute(c,f,T,j){this.delegate.setAttribute(c,f,T,j)}removeAttribute(c,f,T){this.delegate.removeAttribute(c,f,T)}addClass(c,f){this.delegate.addClass(c,f)}removeClass(c,f){this.delegate.removeClass(c,f)}setStyle(c,f,T,j){this.delegate.setStyle(c,f,T,j)}removeStyle(c,f,T){this.delegate.removeStyle(c,f,T)}setProperty(c,f,T){"@"==f.charAt(0)&&f==Nt?this.disableAnimations(c,!!T):this.delegate.setProperty(c,f,T)}setValue(c,f){this.delegate.setValue(c,f)}listen(c,f,T){return this.delegate.listen(c,f,T)}disableAnimations(c,f){this.engine.disableAnimations(c,f)}}class In extends Tn{constructor(c,f,T,j){super(f,T,j),this.factory=c,this.namespaceId=f}setProperty(c,f,T){"@"==f.charAt(0)?"."==f.charAt(1)&&f==Nt?this.disableAnimations(c,T=void 0===T||!!T):this.engine.process(this.namespaceId,c,f.substr(1),T):this.delegate.setProperty(c,f,T)}listen(c,f,T){if("@"==f.charAt(0)){const j=function un(B){switch(B){case"body":return document.body;case"document":return document;case"window":return window;default:return B}}(c);let ae=f.substr(1),Fe="";return"@"!=ae.charAt(0)&&([ae,Fe]=function F(B){const c=B.indexOf(".");return[B.substring(0,c),B.substr(c+1)]}(ae)),this.engine.listen(this.namespaceId,j,ae,Fe,Ve=>{this.factory.scheduleListenerCallback(Ve._data||-1,T,Ve)})}return this.delegate.listen(c,f,T)}}let P=(()=>{class B extends zi{constructor(f,T,j){super(f.body,T,j)}ngOnDestroy(){this.flush()}}return B.\u0275fac=function(f){return new(f||B)(i.\u0275\u0275inject(Q.DOCUMENT),i.\u0275\u0275inject(Xe),i.\u0275\u0275inject(En))},B.\u0275prov=i.\u0275\u0275defineInjectable({token:B,factory:B.\u0275fac}),B})();const $t=new i.InjectionToken("AnimationModuleType"),An=[{provide:_._j,useClass:R},{provide:En,useFactory:function J(){return new di}},{provide:zi,useClass:P},{provide:i.RendererFactory2,useFactory:function ut(B,c,f){return new Dn(B,c,f)},deps:[d.\u0275DomRendererFactory2,zi,i.NgZone]}],qn=[{provide:Xe,useFactory:function b(){return function Ln(){return"function"==typeof x()}()?new ar:new or}},{provide:$t,useValue:"BrowserAnimations"},...An],gi=[{provide:Xe,useClass:Le},{provide:$t,useValue:"NoopAnimations"},...An];let Ni=(()=>{class B{static withConfig(f){return{ngModule:B,providers:f.disableAnimations?gi:qn}}}return B.\u0275fac=function(f){return new(f||B)},B.\u0275mod=i.\u0275\u0275defineNgModule({type:B}),B.\u0275inj=i.\u0275\u0275defineInjector({providers:qn,imports:[d.BrowserModule]}),B})(),wt=(()=>{class B{}return B.\u0275fac=function(f){return new(f||B)},B.\u0275mod=i.\u0275\u0275defineNgModule({type:B}),B.\u0275inj=i.\u0275\u0275defineInjector({providers:gi,imports:[d.BrowserModule]}),B})()},2313:(Be,m,l)=>{"use strict";l.r(m),l.d(m,{\u0275getDOM:()=>i.\u0275getDOM,BrowserModule:()=>dt,BrowserTransferStateModule:()=>at,By:()=>Ke,DomSanitizer:()=>ot,EVENT_MANAGER_PLUGINS:()=>k,EventManager:()=>V,HAMMER_GESTURE_CONFIG:()=>Te,HAMMER_LOADER:()=>S,HammerGestureConfig:()=>A,HammerModule:()=>G,Meta:()=>N,Title:()=>se,TransferState:()=>Ot,VERSION:()=>gn,disableDebugTools:()=>Kt,enableDebugTools:()=>on,makeStateKey:()=>Qt,platformBrowser:()=>Tt,\u0275BrowserDomAdapter:()=>u,\u0275BrowserGetTestability:()=>O,\u0275DomEventsPlugin:()=>Ge,\u0275DomRendererFactory2:()=>ke,\u0275DomSanitizerImpl:()=>Ut,\u0275DomSharedStylesHost:()=>ne,\u0275HammerGesturesPlugin:()=>M,\u0275INTERNAL_BROWSER_PLATFORM_PROVIDERS:()=>pt,\u0275KeyEventsPlugin:()=>he,\u0275NAMESPACE_URIS:()=>fe,\u0275SharedStylesHost:()=>$,\u0275TRANSITION_ID:()=>p,\u0275escapeHtml:()=>Mn,\u0275flattenStyles:()=>me,\u0275initDomAdapter:()=>Ae,\u0275shimContentAttribute:()=>lt,\u0275shimHostAttribute:()=>X});var i=l(9808),d=l(5e3);class _ extends i.\u0275DomAdapter{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class u extends _{static makeCurrent(){(0,i.\u0275setRootDomAdapter)(new u)}onAndCancel($e,ce,je){return $e.addEventListener(ce,je,!1),()=>{$e.removeEventListener(ce,je,!1)}}dispatchEvent($e,ce){$e.dispatchEvent(ce)}remove($e){$e.parentNode&&$e.parentNode.removeChild($e)}createElement($e,ce){return(ce=ce||this.getDefaultDocument()).createElement($e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode($e){return $e.nodeType===Node.ELEMENT_NODE}isShadowRoot($e){return $e instanceof DocumentFragment}getGlobalEventTarget($e,ce){return"window"===ce?window:"document"===ce?$e:"body"===ce?$e.body:null}getBaseHref($e){const ce=function v(){return s=s||document.querySelector("base"),s?s.getAttribute("href"):null}();return null==ce?null:function D(He){C=C||document.createElement("a"),C.setAttribute("href",He);const $e=C.pathname;return"/"===$e.charAt(0)?$e:`/${$e}`}(ce)}resetBaseElement(){s=null}getUserAgent(){return window.navigator.userAgent}getCookie($e){return(0,i.\u0275parseCookieValue)(document.cookie,$e)}}let C,s=null;const p=new d.InjectionToken("TRANSITION_ID"),I=[{provide:d.APP_INITIALIZER,useFactory:function y(He,$e,ce){return()=>{ce.get(d.ApplicationInitStatus).donePromise.then(()=>{const je=(0,i.\u0275getDOM)(),ft=$e.querySelectorAll(`style[ng-transition="${He}"]`);for(let Vt=0;Vt<ft.length;Vt++)je.remove(ft[Vt])})}},deps:[p,i.DOCUMENT,d.Injector],multi:!0}];class O{static init(){(0,d.setTestabilityGetter)(new O)}addToWindow($e){d.\u0275global.getAngularTestability=(je,ft=!0)=>{const Vt=$e.findTestabilityInTree(je,ft);if(null==Vt)throw new Error("Could not find testability for element.");return Vt},d.\u0275global.getAllAngularTestabilities=()=>$e.getAllTestabilities(),d.\u0275global.getAllAngularRootElements=()=>$e.getAllRootElements(),d.\u0275global.frameworkStabilizers||(d.\u0275global.frameworkStabilizers=[]),d.\u0275global.frameworkStabilizers.push(je=>{const ft=d.\u0275global.getAllAngularTestabilities();let Vt=ft.length,Bt=!1;const fn=function(En){Bt=Bt||En,Vt--,0==Vt&&je(Bt)};ft.forEach(function(En){En.whenStable(fn)})})}findTestabilityInTree($e,ce,je){if(null==ce)return null;const ft=$e.getTestability(ce);return null!=ft?ft:je?(0,i.\u0275getDOM)().isShadowRoot(ce)?this.findTestabilityInTree($e,ce.host,!0):this.findTestabilityInTree($e,ce.parentElement,!0):null}}let w=(()=>{class He{build(){return new XMLHttpRequest}}return He.\u0275fac=function(ce){return new(ce||He)},He.\u0275prov=d.\u0275\u0275defineInjectable({token:He,factory:He.\u0275fac}),He})();const k=new d.InjectionToken("EventManagerPlugins");let V=(()=>{class He{constructor(ce,je){this._zone=je,this._eventNameToPlugin=new Map,ce.forEach(ft=>ft.manager=this),this._plugins=ce.slice().reverse()}addEventListener(ce,je,ft){return this._findPluginFor(je).addEventListener(ce,je,ft)}addGlobalEventListener(ce,je,ft){return this._findPluginFor(je).addGlobalEventListener(ce,je,ft)}getZone(){return this._zone}_findPluginFor(ce){const je=this._eventNameToPlugin.get(ce);if(je)return je;const ft=this._plugins;for(let Vt=0;Vt<ft.length;Vt++){const Bt=ft[Vt];if(Bt.supports(ce))return this._eventNameToPlugin.set(ce,Bt),Bt}throw new Error(`No event manager plugin found for event ${ce}`)}}return He.\u0275fac=function(ce){return new(ce||He)(d.\u0275\u0275inject(k),d.\u0275\u0275inject(d.NgZone))},He.\u0275prov=d.\u0275\u0275defineInjectable({token:He,factory:He.\u0275fac}),He})();class ue{constructor($e){this._doc=$e}addGlobalEventListener($e,ce,je){const ft=(0,i.\u0275getDOM)().getGlobalEventTarget(this._doc,$e);if(!ft)throw new Error(`Unsupported event target ${ft} for event ${ce}`);return this.addEventListener(ft,ce,je)}}let $=(()=>{class He{constructor(){this._stylesSet=new Set}addStyles(ce){const je=new Set;ce.forEach(ft=>{this._stylesSet.has(ft)||(this._stylesSet.add(ft),je.add(ft))}),this.onStylesAdded(je)}onStylesAdded(ce){}getAllStyles(){return Array.from(this._stylesSet)}}return He.\u0275fac=function(ce){return new(ce||He)},He.\u0275prov=d.\u0275\u0275defineInjectable({token:He,factory:He.\u0275fac}),He})(),ne=(()=>{class He extends ${constructor(ce){super(),this._doc=ce,this._hostNodes=new Map,this._hostNodes.set(ce.head,[])}_addStylesToHost(ce,je,ft){ce.forEach(Vt=>{const Bt=this._doc.createElement("style");Bt.textContent=Vt,ft.push(je.appendChild(Bt))})}addHost(ce){const je=[];this._addStylesToHost(this._stylesSet,ce,je),this._hostNodes.set(ce,je)}removeHost(ce){const je=this._hostNodes.get(ce);je&&je.forEach(De),this._hostNodes.delete(ce)}onStylesAdded(ce){this._hostNodes.forEach((je,ft)=>{this._addStylesToHost(ce,ft,je)})}ngOnDestroy(){this._hostNodes.forEach(ce=>ce.forEach(De))}}return He.\u0275fac=function(ce){return new(ce||He)(d.\u0275\u0275inject(i.DOCUMENT))},He.\u0275prov=d.\u0275\u0275defineInjectable({token:He,factory:He.\u0275fac}),He})();function De(He){(0,i.\u0275getDOM)().remove(He)}const fe={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 lt(He){return"_ngcontent-%COMP%".replace(_e,He)}function X(He){return"_nghost-%COMP%".replace(_e,He)}function me(He,$e,ce){for(let je=0;je<$e.length;je++){let ft=$e[je];Array.isArray(ft)?me(He,ft,ce):(ft=ft.replace(_e,He),ce.push(ft))}return ce}function K(He){return $e=>{if("__ngUnwrap__"===$e)return He;!1===He($e)&&($e.preventDefault(),$e.returnValue=!1)}}let ke=(()=>{class He{constructor(ce,je,ft){this.eventManager=ce,this.sharedStylesHost=je,this.appId=ft,this.rendererByCompId=new Map,this.defaultRenderer=new de(ce)}createRenderer(ce,je){if(!ce||!je)return this.defaultRenderer;switch(je.encapsulation){case d.ViewEncapsulation.Emulated:{let ft=this.rendererByCompId.get(je.id);return ft||(ft=new qe(this.eventManager,this.sharedStylesHost,je,this.appId),this.rendererByCompId.set(je.id,ft)),ft.applyToHost(ce),ft}case 1:case d.ViewEncapsulation.ShadowDom:return new Me(this.eventManager,this.sharedStylesHost,ce,je);default:if(!this.rendererByCompId.has(je.id)){const ft=me(je.id,je.styles,[]);this.sharedStylesHost.addStyles(ft),this.rendererByCompId.set(je.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return He.\u0275fac=function(ce){return new(ce||He)(d.\u0275\u0275inject(V),d.\u0275\u0275inject(ne),d.\u0275\u0275inject(d.APP_ID))},He.\u0275prov=d.\u0275\u0275defineInjectable({token:He,factory:He.\u0275fac}),He})();class de{constructor($e){this.eventManager=$e,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement($e,ce){return ce?document.createElementNS(fe[ce]||ce,$e):document.createElement($e)}createComment($e){return document.createComment($e)}createText($e){return document.createTextNode($e)}appendChild($e,ce){$e.appendChild(ce)}insertBefore($e,ce,je){$e&&$e.insertBefore(ce,je)}removeChild($e,ce){$e&&$e.removeChild(ce)}selectRootElement($e,ce){let je="string"==typeof $e?document.querySelector($e):$e;if(!je)throw new Error(`The selector "${$e}" did not match any elements`);return ce||(je.textContent=""),je}parentNode($e){return $e.parentNode}nextSibling($e){return $e.nextSibling}setAttribute($e,ce,je,ft){if(ft){ce=ft+":"+ce;const Vt=fe[ft];Vt?$e.setAttributeNS(Vt,ce,je):$e.setAttribute(ce,je)}else $e.setAttribute(ce,je)}removeAttribute($e,ce,je){if(je){const ft=fe[je];ft?$e.removeAttributeNS(ft,ce):$e.removeAttribute(`${je}:${ce}`)}else $e.removeAttribute(ce)}addClass($e,ce){$e.classList.add(ce)}removeClass($e,ce){$e.classList.remove(ce)}setStyle($e,ce,je,ft){ft&(d.RendererStyleFlags2.DashCase|d.RendererStyleFlags2.Important)?$e.style.setProperty(ce,je,ft&d.RendererStyleFlags2.Important?"important":""):$e.style[ce]=je}removeStyle($e,ce,je){je&d.RendererStyleFlags2.DashCase?$e.style.removeProperty(ce):$e.style[ce]=""}setProperty($e,ce,je){$e[ce]=je}setValue($e,ce){$e.nodeValue=ce}listen($e,ce,je){return"string"==typeof $e?this.eventManager.addGlobalEventListener($e,ce,K(je)):this.eventManager.addEventListener($e,ce,K(je))}}class qe extends de{constructor($e,ce,je,ft){super($e),this.component=je;const Vt=me(ft+"-"+je.id,je.styles,[]);ce.addStyles(Vt),this.contentAttr=lt(ft+"-"+je.id),this.hostAttr=X(ft+"-"+je.id)}applyToHost($e){super.setAttribute($e,this.hostAttr,"")}createElement($e,ce){const je=super.createElement($e,ce);return super.setAttribute(je,this.contentAttr,""),je}}class Me extends de{constructor($e,ce,je,ft){super($e),this.sharedStylesHost=ce,this.hostEl=je,this.shadowRoot=je.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Vt=me(ft.id,ft.styles,[]);for(let Bt=0;Bt<Vt.length;Bt++){const fn=document.createElement("style");fn.textContent=Vt[Bt],this.shadowRoot.appendChild(fn)}}nodeOrShadowRoot($e){return $e===this.hostEl?this.shadowRoot:$e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild($e,ce){return super.appendChild(this.nodeOrShadowRoot($e),ce)}insertBefore($e,ce,je){return super.insertBefore(this.nodeOrShadowRoot($e),ce,je)}removeChild($e,ce){return super.removeChild(this.nodeOrShadowRoot($e),ce)}parentNode($e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot($e)))}}let Ge=(()=>{class He extends ue{constructor(ce){super(ce)}supports(ce){return!0}addEventListener(ce,je,ft){return ce.addEventListener(je,ft,!1),()=>this.removeEventListener(ce,je,ft)}removeEventListener(ce,je,ft){return ce.removeEventListener(je,ft)}}return He.\u0275fac=function(ce){return new(ce||He)(d.\u0275\u0275inject(i.DOCUMENT))},He.\u0275prov=d.\u0275\u0275defineInjectable({token:He,factory:He.\u0275fac}),He})();const vt=["alt","control","meta","shift"],Re={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},et={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Y={alt:He=>He.altKey,control:He=>He.ctrlKey,meta:He=>He.metaKey,shift:He=>He.shiftKey};let he=(()=>{class He extends ue{constructor(ce){super(ce)}supports(ce){return null!=He.parseEventName(ce)}addEventListener(ce,je,ft){const Vt=He.parseEventName(je),Bt=He.eventCallback(Vt.fullKey,ft,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,i.\u0275getDOM)().onAndCancel(ce,Vt.domEventName,Bt))}static parseEventName(ce){const je=ce.toLowerCase().split("."),ft=je.shift();if(0===je.length||"keydown"!==ft&&"keyup"!==ft)return null;const Vt=He._normalizeKey(je.pop());let Bt="";if(vt.forEach(En=>{const $n=je.indexOf(En);$n>-1&&(je.splice($n,1),Bt+=En+".")}),Bt+=Vt,0!=je.length||0===Vt.length)return null;const fn={};return fn.domEventName=ft,fn.fullKey=Bt,fn}static getEventFullKey(ce){let je="",ft=function Ee(He){let $e=He.key;if(null==$e){if($e=He.keyIdentifier,null==$e)return"Unidentified";$e.startsWith("U+")&&($e=String.fromCharCode(parseInt($e.substring(2),16)),3===He.location&&et.hasOwnProperty($e)&&($e=et[$e]))}return Re[$e]||$e}(ce);return ft=ft.toLowerCase()," "===ft?ft="space":"."===ft&&(ft="dot"),vt.forEach(Vt=>{Vt!=ft&&Y[Vt](ce)&&(je+=Vt+".")}),je+=ft,je}static eventCallback(ce,je,ft){return Vt=>{He.getEventFullKey(Vt)===ce&&ft.runGuarded(()=>je(Vt))}}static _normalizeKey(ce){return"esc"===ce?"escape":ce}}return He.\u0275fac=function(ce){return new(ce||He)(d.\u0275\u0275inject(i.DOCUMENT))},He.\u0275prov=d.\u0275\u0275defineInjectable({token:He,factory:He.\u0275fac}),He})();function Ae(){u.makeCurrent(),O.init()}const pt=[{provide:d.PLATFORM_ID,useValue:i.\u0275PLATFORM_BROWSER_ID},{provide:d.PLATFORM_INITIALIZER,useValue:Ae,multi:!0},{provide:i.DOCUMENT,useFactory:function Je(){return(0,d.\u0275setDocument)(document),document},deps:[]}],Tt=(0,d.createPlatformFactory)(d.platformCore,"browser",pt),Rt=[{provide:d.\u0275INJECTOR_SCOPE,useValue:"root"},{provide:d.ErrorHandler,useFactory:function ge(){return new d.ErrorHandler},deps:[]},{provide:k,useClass:Ge,multi:!0,deps:[i.DOCUMENT,d.NgZone,d.PLATFORM_ID]},{provide:k,useClass:he,multi:!0,deps:[i.DOCUMENT]},{provide:ke,useClass:ke,deps:[V,ne,d.APP_ID]},{provide:d.RendererFactory2,useExisting:ke},{provide:$,useExisting:ne},{provide:ne,useClass:ne,deps:[i.DOCUMENT]},{provide:d.Testability,useClass:d.Testability,deps:[d.NgZone]},{provide:V,useClass:V,deps:[k,d.NgZone]},{provide:i.XhrFactory,useClass:w,deps:[]}];let dt=(()=>{class He{constructor(ce){if(ce)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(ce){return{ngModule:He,providers:[{provide:d.APP_ID,useValue:ce.appId},{provide:p,useExisting:d.APP_ID},I]}}}return He.\u0275fac=function(ce){return new(ce||He)(d.\u0275\u0275inject(He,12))},He.\u0275mod=d.\u0275\u0275defineNgModule({type:He}),He.\u0275inj=d.\u0275\u0275defineInjector({providers:Rt,imports:[i.CommonModule,d.ApplicationModule]}),He})(),N=(()=>{class He{constructor(ce){this._doc=ce,this._dom=(0,i.\u0275getDOM)()}addTag(ce,je=!1){return ce?this._getOrCreateElement(ce,je):null}addTags(ce,je=!1){return ce?ce.reduce((ft,Vt)=>(Vt&&ft.push(this._getOrCreateElement(Vt,je)),ft),[]):[]}getTag(ce){return ce&&this._doc.querySelector(`meta[${ce}]`)||null}getTags(ce){if(!ce)return[];const je=this._doc.querySelectorAll(`meta[${ce}]`);return je?[].slice.call(je):[]}updateTag(ce,je){if(!ce)return null;je=je||this._parseSelector(ce);const ft=this.getTag(je);return ft?this._setMetaElementAttributes(ce,ft):this._getOrCreateElement(ce,!0)}removeTag(ce){this.removeTagElement(this.getTag(ce))}removeTagElement(ce){ce&&this._dom.remove(ce)}_getOrCreateElement(ce,je=!1){if(!je){const Bt=this._parseSelector(ce),fn=this.getTags(Bt).filter(En=>this._containsAttributes(ce,En))[0];if(void 0!==fn)return fn}const ft=this._dom.createElement("meta");return this._setMetaElementAttributes(ce,ft),this._doc.getElementsByTagName("head")[0].appendChild(ft),ft}_setMetaElementAttributes(ce,je){return Object.keys(ce).forEach(ft=>je.setAttribute(this._getMetaKeyMap(ft),ce[ft])),je}_parseSelector(ce){const je=ce.name?"name":"property";return`${je}="${ce[je]}"`}_containsAttributes(ce,je){return Object.keys(ce).every(ft=>je.getAttribute(this._getMetaKeyMap(ft))===ce[ft])}_getMetaKeyMap(ce){return ie[ce]||ce}}return He.\u0275fac=function(ce){return new(ce||He)(d.\u0275\u0275inject(i.DOCUMENT))},He.\u0275prov=d.\u0275\u0275defineInjectable({token:He,factory:function(ce){let je=null;return je=ce?new ce:function Ze(){return new N((0,d.\u0275\u0275inject)(i.DOCUMENT))}(),je},providedIn:"root"}),He})();const ie={httpEquiv:"http-equiv"};let se=(()=>{class He{constructor(ce){this._doc=ce}getTitle(){return this._doc.title}setTitle(ce){this._doc.title=ce||""}}return He.\u0275fac=function(ce){return new(ce||He)(d.\u0275\u0275inject(i.DOCUMENT))},He.\u0275prov=d.\u0275\u0275defineInjectable({token:He,factory:function(ce){let je=null;return je=ce?new ce:function Oe(){return new se((0,d.\u0275\u0275inject)(i.DOCUMENT))}(),je},providedIn:"root"}),He})();function Ye(He,$e){"undefined"!=typeof COMPILED&&COMPILED||((d.\u0275global.ng=d.\u0275global.ng||{})[He]=$e)}const it="undefined"!=typeof window&&window||{};class mt{constructor($e,ce){this.msPerTick=$e,this.numTicks=ce}}class _t{constructor($e){this.appRef=$e.injector.get(d.ApplicationRef)}timeChangeDetection($e){const ce=$e&&$e.record,je="Change Detection",ft=null!=it.console.profile;ce&&ft&&it.console.profile(je);const Vt=It();let Bt=0;for(;Bt<5||It()-Vt<500;)this.appRef.tick(),Bt++;const fn=It();ce&&ft&&it.console.profileEnd(je);const En=(fn-Vt)/Bt;return it.console.log(`ran ${Bt} change detection cycles`),it.console.log(`${En.toFixed(2)} ms per check`),new mt(En,Bt)}}function It(){return it.performance&&it.performance.now?it.performance.now():(new Date).getTime()}const zt="profiler";function on(He){return Ye(zt,new _t(He)),He}function Kt(){Ye(zt,null)}function Mn(He){const $e={"&":"&a;",'"':"&q;","'":"&s;","<":"&l;",">":"&g;"};return He.replace(/[&"'<>]/g,ce=>$e[ce])}function Qt(He){return He}let Ot=(()=>{class He{constructor(){this.store={},this.onSerializeCallbacks={}}static init(ce){const je=new He;return je.store=ce,je}get(ce,je){return void 0!==this.store[ce]?this.store[ce]:je}set(ce,je){this.store[ce]=je}remove(ce){delete this.store[ce]}hasKey(ce){return this.store.hasOwnProperty(ce)}onSerialize(ce,je){this.onSerializeCallbacks[ce]=je}toJson(){for(const ce in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(ce))try{this.store[ce]=this.onSerializeCallbacks[ce]()}catch(je){console.warn("Exception in onSerialize callback: ",je)}return JSON.stringify(this.store)}}return He.\u0275fac=function(ce){return new(ce||He)},He.\u0275prov=d.\u0275\u0275defineInjectable({token:He,factory:He.\u0275fac}),He})();function bn(He,$e){const ce=He.getElementById($e+"-state");let je={};if(ce&&ce.textContent)try{je=JSON.parse(function an(He){const $e={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"};return He.replace(/&[^;]+;/g,ce=>$e[ce])}(ce.textContent))}catch(ft){console.warn("Exception while restoring TransferState for app "+$e,ft)}return Ot.init(je)}let at=(()=>{class He{}return He.\u0275fac=function(ce){return new(ce||He)},He.\u0275mod=d.\u0275\u0275defineNgModule({type:He}),He.\u0275inj=d.\u0275\u0275defineInjector({providers:[{provide:Ot,useFactory:bn,deps:[i.DOCUMENT,d.APP_ID]}]}),He})();class Ke{static all(){return()=>!0}static css($e){return ce=>null!=ce.nativeElement&&function Qe(He,$e){return!!(0,i.\u0275getDOM)().isElementNode(He)&&(He.matches&&He.matches($e)||He.msMatchesSelector&&He.msMatchesSelector($e)||He.webkitMatchesSelector&&He.webkitMatchesSelector($e))}(ce.nativeElement,$e)}static directive($e){return ce=>-1!==ce.providerTokens.indexOf($e)}}const Ie={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},Te=new d.InjectionToken("HammerGestureConfig"),S=new d.InjectionToken("HammerLoader");let A=(()=>{class He{constructor(){this.events=[],this.overrides={}}buildHammer(ce){const je=new Hammer(ce,this.options);je.get("pinch").set({enable:!0}),je.get("rotate").set({enable:!0});for(const ft in this.overrides)je.get(ft).set(this.overrides[ft]);return je}}return He.\u0275fac=function(ce){return new(ce||He)},He.\u0275prov=d.\u0275\u0275defineInjectable({token:He,factory:He.\u0275fac}),He})(),M=(()=>{class He extends ue{constructor(ce,je,ft,Vt){super(ce),this._config=je,this.console=ft,this.loader=Vt,this._loaderPromise=null}supports(ce){return!(!Ie.hasOwnProperty(ce.toLowerCase())&&!this.isCustomEvent(ce)||!window.Hammer&&!this.loader)}addEventListener(ce,je,ft){const Vt=this.manager.getZone();if(je=je.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||this.loader();let Bt=!1,fn=()=>{Bt=!0};return this._loaderPromise.then(()=>{window.Hammer?Bt||(fn=this.addEventListener(ce,je,ft)):fn=()=>{}}).catch(()=>{fn=()=>{}}),()=>{fn()}}return Vt.runOutsideAngular(()=>{const Bt=this._config.buildHammer(ce),fn=function(En){Vt.runGuarded(function(){ft(En)})};return Bt.on(je,fn),()=>{Bt.off(je,fn),"function"==typeof Bt.destroy&&Bt.destroy()}})}isCustomEvent(ce){return this._config.events.indexOf(ce)>-1}}return He.\u0275fac=function(ce){return new(ce||He)(d.\u0275\u0275inject(i.DOCUMENT),d.\u0275\u0275inject(Te),d.\u0275\u0275inject(d.\u0275Console),d.\u0275\u0275inject(S,8))},He.\u0275prov=d.\u0275\u0275defineInjectable({token:He,factory:He.\u0275fac}),He})(),G=(()=>{class He{}return He.\u0275fac=function(ce){return new(ce||He)},He.\u0275mod=d.\u0275\u0275defineNgModule({type:He}),He.\u0275inj=d.\u0275\u0275defineInjector({providers:[{provide:k,useClass:M,multi:!0,deps:[i.DOCUMENT,Te,d.\u0275Console,[new d.Optional,S]]},{provide:Te,useClass:A,deps:[]}]}),He})(),ot=(()=>{class He{}return He.\u0275fac=function(ce){return new(ce||He)},He.\u0275prov=d.\u0275\u0275defineInjectable({token:He,factory:function(ce){let je=null;return je=ce?new(ce||He):d.\u0275\u0275inject(Ut),je},providedIn:"root"}),He})(),Ut=(()=>{class He extends ot{constructor(ce){super(),this._doc=ce}sanitize(ce,je){if(null==je)return null;switch(ce){case d.SecurityContext.NONE:return je;case d.SecurityContext.HTML:return(0,d.\u0275allowSanitizationBypassAndThrow)(je,"HTML")?(0,d.\u0275unwrapSafeValue)(je):(0,d.\u0275_sanitizeHtml)(this._doc,String(je)).toString();case d.SecurityContext.STYLE:return(0,d.\u0275allowSanitizationBypassAndThrow)(je,"Style")?(0,d.\u0275unwrapSafeValue)(je):je;case d.SecurityContext.SCRIPT:if((0,d.\u0275allowSanitizationBypassAndThrow)(je,"Script"))return(0,d.\u0275unwrapSafeValue)(je);throw new Error("unsafe value used in a script context");case d.SecurityContext.URL:return(0,d.\u0275getSanitizationBypassType)(je),(0,d.\u0275allowSanitizationBypassAndThrow)(je,"URL")?(0,d.\u0275unwrapSafeValue)(je):(0,d.\u0275_sanitizeUrl)(String(je));case d.SecurityContext.RESOURCE_URL:if((0,d.\u0275allowSanitizationBypassAndThrow)(je,"ResourceURL"))return(0,d.\u0275unwrapSafeValue)(je);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${ce} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(ce){return(0,d.\u0275bypassSanitizationTrustHtml)(ce)}bypassSecurityTrustStyle(ce){return(0,d.\u0275bypassSanitizationTrustStyle)(ce)}bypassSecurityTrustScript(ce){return(0,d.\u0275bypassSanitizationTrustScript)(ce)}bypassSecurityTrustUrl(ce){return(0,d.\u0275bypassSanitizationTrustUrl)(ce)}bypassSecurityTrustResourceUrl(ce){return(0,d.\u0275bypassSanitizationTrustResourceUrl)(ce)}}return He.\u0275fac=function(ce){return new(ce||He)(d.\u0275\u0275inject(i.DOCUMENT))},He.\u0275prov=d.\u0275\u0275defineInjectable({token:He,factory:function(ce){let je=null;return je=ce?new ce:function Et(He){return new Ut(He.get(i.DOCUMENT))}(d.\u0275\u0275inject(d.Injector)),je},providedIn:"root"}),He})();const gn=new d.Version("13.1.2")},107:(Be,m,l)=>{"use strict";l.r(m),l.d(m,{MONACO_PATH:()=>O,MonacoDiffEditorComponent:()=>ue,MonacoEditorComponent:()=>V,MonacoEditorLoaderDirective:()=>k,MonacoEditorLoaderService:()=>w,MonacoEditorModule:()=>$});var i=l(5e3),d=l(2722),_=l(9300),u=l(5698),s=l(1135),v=l(6758),C=l(655),D=l(3075);const p=["editor"],y=["diffEditor"],O="MONACO_PATH";let w=(()=>{class ne{constructor(fe,_e){this.ngZone=fe,this.monacoPathConfig=_e,this.isMonacoLoaded$=new s.X(!1),this._monacoPath="assets/monaco-editor/min/vs",window.monacoEditorAlreadyInitialized?fe.run(()=>this.isMonacoLoaded$.next(!0)):(window.monacoEditorAlreadyInitialized=!0,this.monacoPathConfig&&(this.monacoPath=this.monacoPathConfig),this.loadMonaco())}set monacoPath(fe){fe&&(this._monacoPath=fe)}loadMonaco(){const fe=()=>{let Le=this._monacoPath;window.amdRequire=window.require;const Xe=!!this.nodeRequire,lt=Le.includes("http");Xe&&(window.require=this.nodeRequire,lt||(Le=window.require("path").resolve(window.__dirname,this._monacoPath))),window.amdRequire.config({paths:{vs:Le}}),window.amdRequire(["vs/editor/editor.main"],()=>{this.ngZone.run(()=>this.isMonacoLoaded$.next(!0))},X=>console.error("Error loading monaco-editor: ",X))};if(window.amdRequire)return fe();window.require&&(this.addElectronFixScripts(),this.nodeRequire=window.require);const Se=document.createElement("script");Se.type="text/javascript",Se.src=`${this._monacoPath}/loader.js`,Se.addEventListener("load",fe),document.body.appendChild(Se)}addElectronFixScripts(){const fe=document.createElement("script"),_e=document.createTextNode("self.module = undefined;"),le=document.createTextNode("self.process.browser = true;");fe.appendChild(_e),fe.appendChild(le),document.body.appendChild(fe)}}return ne.\u0275fac=function(fe){return new(fe||ne)(i.\u0275\u0275inject(i.NgZone),i.\u0275\u0275inject(O,8))},ne.\u0275prov=i.\u0275\u0275defineInjectable({token:ne,factory:ne.\u0275fac,providedIn:"root"}),ne})(),k=(()=>{class ne{constructor(fe,_e,le){this.templateRef=fe,this.viewContainer=_e,this.monacoEditorLoaderService=le,this.isMonacoLoaded$=this.monacoEditorLoaderService.isMonacoLoaded$.asObservable(),this.destroyed$=new v.x}ngOnInit(){this.isMonacoLoaded$.pipe((0,d.R)(this.destroyed$)).subscribe(fe=>{if(!fe)return this.viewContainer.clear();this.viewContainer.createEmbeddedView(this.templateRef)})}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}}return ne.\u0275fac=function(fe){return new(fe||ne)(i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(w))},ne.\u0275dir=i.\u0275\u0275defineDirective({type:ne,selectors:[["","ngxLoadMonacoEditor",""]]}),ne})(),V=(()=>{class ne{constructor(fe){this.monacoLoader=fe,this.init=new i.EventEmitter,this.onTouched=()=>{},this.onErrorStatusChange=()=>{},this.propagateChange=()=>{}}get model(){return this.editor&&this.editor.getModel()}get modelMarkers(){return this.model&&monaco.editor.getModelMarkers({resource:this.model.uri})}ngOnInit(){this.monacoLoader.isMonacoLoaded$.pipe((0,_.h)(fe=>fe),(0,u.q)(1)).subscribe(()=>{this.initEditor()})}ngOnChanges(fe){if(this.editor&&fe.options&&!fe.options.firstChange){const _e=fe.options.currentValue,{language:le,theme:Se}=_e,Le=(0,C.__rest)(_e,["language","theme"]),{language:Xe,theme:lt}=fe.options.previousValue;Xe!==le&&monaco.editor.setModelLanguage(this.editor.getModel(),this.options&&this.options.language?this.options.language:"text"),lt!==Se&&monaco.editor.setTheme(Se),this.editor.updateOptions(Le)}if(this.editor&&fe.uri){const _e=fe.uri.currentValue,le=fe.uri.previousValue;if(le&&!_e||!le&&_e||_e&&le&&_e.path!==le.path){const Se=this.editor.getValue();let Le;this.modelUriInstance&&this.modelUriInstance.dispose(),_e&&(Le=monaco.editor.getModels().find(Xe=>Xe.uri.path===_e.path)),this.modelUriInstance=Le||monaco.editor.createModel(Se,this.options.language||"text",this.uri),this.editor.setModel(this.modelUriInstance)}}}writeValue(fe){this.value=fe,this.editor&&fe?this.editor.setValue(fe):this.editor&&this.editor.setValue("")}registerOnChange(fe){this.propagateChange=fe}registerOnTouched(fe){this.onTouched=fe}validate(){return this.parsedError?{monaco:{value:this.parsedError.split("|")}}:null}registerOnValidatorChange(fe){this.onErrorStatusChange=fe}initEditor(){const fe={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({},fe),this.options):fe),this.registerEditorListeners(),this.init.emit(this.editor)}registerEditorListeners(){this.editor.onDidChangeModelContent(()=>{this.propagateChange(this.editor.getValue())}),this.editor.onDidChangeModelDecorations(()=>{const fe=this.modelMarkers.map(({message:le})=>le).join("|");this.parsedError!==fe&&(this.parsedError=fe,this.onErrorStatusChange())}),this.editor.onDidBlurEditorText(()=>{this.onTouched()})}ngOnDestroy(){this.editor&&this.editor.dispose()}}return ne.\u0275fac=function(fe){return new(fe||ne)(i.\u0275\u0275directiveInject(w))},ne.\u0275cmp=i.\u0275\u0275defineComponent({type:ne,selectors:[["ngx-monaco-editor"]],viewQuery:function(fe,_e){if(1&fe&&i.\u0275\u0275viewQuery(p,7),2&fe){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:D.NG_VALUE_ACCESSOR,useExisting:(0,i.forwardRef)(()=>ne),multi:!0},{provide:D.NG_VALIDATORS,useExisting:(0,i.forwardRef)(()=>ne),multi:!0}]),i.\u0275\u0275NgOnChangesFeature],decls:4,vars:0,consts:[["fxFlex","",1,"editor-container"],["container",""],[1,"monaco-editor"],["editor",""]],template:function(fe,_e){1&fe&&(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}),ne})(),ue=(()=>{class ne{constructor(fe){this.monacoLoader=fe,this.init=new i.EventEmitter}ngOnInit(){this.container=this.editorContent.nativeElement,this.monacoLoader.isMonacoLoaded$.pipe((0,_.h)(fe=>fe),(0,u.q)(1)).subscribe(()=>{this.initMonaco()})}ngOnChanges(fe){if(this.editor&&(fe.code&&!fe.code.firstChange||fe.modified&&!fe.modified.firstChange)){const _e=monaco.editor.createModel(this.modified),le=monaco.editor.createModel(this.original);this.editor.setModel({original:le,modified:_e})}this.editor&&fe.options&&!fe.options.firstChange&&(fe.options.previousValue.theme!==fe.options.currentValue.theme&&monaco.editor.setTheme(fe.options.currentValue.theme),this.editor.updateOptions(fe.options.currentValue))}initMonaco(){let fe={readOnly:!0,automaticLayout:!0,theme:"vc"};this.options&&(fe=Object.assign({},fe,this.options)),this.editor=monaco.editor.createDiffEditor(this.container,fe);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 ne.\u0275fac=function(fe){return new(fe||ne)(i.\u0275\u0275directiveInject(w))},ne.\u0275cmp=i.\u0275\u0275defineComponent({type:ne,selectors:[["ngx-monaco-diff-editor"]],viewQuery:function(fe,_e){if(1&fe&&i.\u0275\u0275viewQuery(y,7),2&fe){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(fe,_e){1&fe&&(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}),ne})(),$=(()=>{class ne{}return ne.\u0275fac=function(fe){return new(fe||ne)},ne.\u0275mod=i.\u0275\u0275defineNgModule({type:ne}),ne.\u0275inj=i.\u0275\u0275defineInjector({imports:[[]]}),ne})()},1430:(Be,m,l)=>{"use strict";l.r(m),l.d(m,{ANGULAR_SPLIT_DEFAULT_OPTIONS:()=>Se,AngularSplitModule:()=>lt,SplitAreaDirective:()=>Xe,SplitComponent:()=>Le});var i=l(5e3),d=l(9808),_=l(6758),u=l(9751),s=l(8372);const v=["gutterEls"];function C(X,me){if(1&X){const K=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"div",2,3),i.\u0275\u0275listener("mousedown",function(ke){i.\u0275\u0275restoreView(K);const de=i.\u0275\u0275nextContext().index;return i.\u0275\u0275nextContext().startDragging(ke,2*de+1,de+1)})("touchstart",function(ke){i.\u0275\u0275restoreView(K);const de=i.\u0275\u0275nextContext().index;return i.\u0275\u0275nextContext().startDragging(ke,2*de+1,de+1)})("mouseup",function(ke){i.\u0275\u0275restoreView(K);const de=i.\u0275\u0275nextContext().index;return i.\u0275\u0275nextContext().clickGutter(ke,de+1)})("touchend",function(ke){i.\u0275\u0275restoreView(K);const de=i.\u0275\u0275nextContext().index;return i.\u0275\u0275nextContext().clickGutter(ke,de+1)}),i.\u0275\u0275element(2,"div",4),i.\u0275\u0275elementEnd()}if(2&X){const K=i.\u0275\u0275nextContext().index,oe=i.\u0275\u0275nextContext();i.\u0275\u0275styleProp("flex-basis",oe.gutterSize,"px")("order",2*K+1)}}function D(X,me){1&X&&i.\u0275\u0275template(0,C,3,4,"div",1),2&X&&i.\u0275\u0275property("ngIf",!1===me.last)}const p=["*"];function y(X){return void 0!==X.changedTouches&&X.changedTouches.length>0?{x:X.changedTouches[0].clientX,y:X.changedTouches[0].clientY}:void 0!==X.clientX&&void 0!==X.clientY?{x:X.clientX,y:X.clientY}:null}function I(X,me,K){return Math.abs(X.x-me.x)<=K&&Math.abs(X.y-me.y)<=K}function O(X,me){const K=X.nativeElement.getBoundingClientRect();return"horizontal"===me?K.width:K.height}function w(X){return"boolean"==typeof X?X:"false"!==X}function k(X,me){return null==X?me:(X=Number(X),!isNaN(X)&&X>=0?X:me)}function V(X,me){if("percent"===X){const K=me.reduce((oe,ke)=>null!==ke?oe+ke:oe,0);return me.every(oe=>null!==oe)&&K>99.9&&K<100.1}if("pixel"===X)return 1===me.filter(K=>null===K).length}function ue(X){return null===X.size?null:!0===X.component.lockSize?X.size:null===X.component.minSize?null:X.component.minSize>X.size?X.size:X.component.minSize}function $(X){return null===X.size?null:!0===X.component.lockSize?X.size:null===X.component.maxSize?null:X.component.maxSize<X.size?X.size:X.component.maxSize}function ne(X,me,K,oe){return me.reduce((ke,de)=>{const Ue=function De(X,me,K,oe){return 0===K?{areaSnapshot:me,pixelAbsorb:0,percentAfterAbsorption:me.sizePercentAtStart,pixelRemain:0}:0===me.sizePixelAtStart&&K<0?{areaSnapshot:me,pixelAbsorb:0,percentAfterAbsorption:0,pixelRemain:K}:"percent"===X?function fe(X,me,K){const ke=(X.sizePixelAtStart+me)/K*100;if(me>0){if(null!==X.area.maxSize&&ke>X.area.maxSize){const de=X.area.maxSize/100*K;return{areaSnapshot:X,pixelAbsorb:de,percentAfterAbsorption:X.area.maxSize,pixelRemain:X.sizePixelAtStart+me-de}}return{areaSnapshot:X,pixelAbsorb:me,percentAfterAbsorption:ke>100?100:ke,pixelRemain:0}}if(me<0){if(null!==X.area.minSize&&ke<X.area.minSize){const de=X.area.minSize/100*K;return{areaSnapshot:X,pixelAbsorb:de,percentAfterAbsorption:X.area.minSize,pixelRemain:X.sizePixelAtStart+me-de}}return ke<0?{areaSnapshot:X,pixelAbsorb:-X.sizePixelAtStart,percentAfterAbsorption:0,pixelRemain:me+X.sizePixelAtStart}:{areaSnapshot:X,pixelAbsorb:me,percentAfterAbsorption:ke,pixelRemain:0}}}(me,K,oe):"pixel"===X?function _e(X,me,K){const oe=X.sizePixelAtStart+me;return me>0?null!==X.area.maxSize&&oe>X.area.maxSize?{areaSnapshot:X,pixelAbsorb:X.area.maxSize-X.sizePixelAtStart,percentAfterAbsorption:-1,pixelRemain:oe-X.area.maxSize}:{areaSnapshot:X,pixelAbsorb:me,percentAfterAbsorption:-1,pixelRemain:0}:me<0?null!==X.area.minSize&&oe<X.area.minSize?{areaSnapshot:X,pixelAbsorb:X.area.minSize+me-oe,percentAfterAbsorption:-1,pixelRemain:oe-X.area.minSize}:oe<0?{areaSnapshot:X,pixelAbsorb:-X.sizePixelAtStart,percentAfterAbsorption:-1,pixelRemain:me+X.sizePixelAtStart}:{areaSnapshot:X,pixelAbsorb:me,percentAfterAbsorption:-1,pixelRemain:0}:void 0}(me,K):void 0}(X,de,ke.remain,oe);return ke.list.push(Ue),ke.remain=Ue.pixelRemain,ke},{remain:K,list:[]})}function le(X,me){"percent"===X?me.areaSnapshot.area.size=me.percentAfterAbsorption:"pixel"===X&&null!==me.areaSnapshot.area.size&&(me.areaSnapshot.area.size=me.areaSnapshot.sizePixelAtStart+me.pixelAbsorb)}const Se=new i.InjectionToken("angular-split-global-config");let Le=(()=>{class X{constructor(K,oe,ke,de,Ue){this.ngZone=K,this.elRef=oe,this.cdRef=ke,this.renderer=de,this.gutterClickDeltaPx=2,this._config={direction:"horizontal",unit:"percent",gutterSize:11,gutterStep:1,restrictMove:!1,useTransition:!1,disabled:!1,dir:"ltr",gutterDblClickDuration:0},this.dragStart=new i.EventEmitter(!1),this.dragEnd=new i.EventEmitter(!1),this.gutterClick=new i.EventEmitter(!1),this.gutterDblClick=new i.EventEmitter(!1),this.dragProgressSubject=new _.x,this.dragProgress$=this.dragProgressSubject.asObservable(),this.isDragging=!1,this.isWaitingClear=!1,this.isWaitingInitialMove=!1,this.dragListeners=[],this.snapshot=null,this.startPoint=null,this.endPoint=null,this.displayedAreas=[],this.hiddenAreas=[],this._clickTimeout=null,this.direction=this._direction,this._config=Ue?Object.assign(this._config,Ue):this._config,Object.keys(this._config).forEach(pe=>{this[pe]=this._config[pe]})}set direction(K){this._direction="vertical"===K?"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(K){this._unit="pixel"===K?"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(K){this._gutterSize=k(K,11),this.build(!1,!1)}get gutterSize(){return this._gutterSize}set gutterStep(K){this._gutterStep=k(K,1)}get gutterStep(){return this._gutterStep}set restrictMove(K){this._restrictMove=w(K)}get restrictMove(){return this._restrictMove}set useTransition(K){this._useTransition=w(K),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(K){this._disabled=w(K),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(K){this._dir="rtl"===K?"rtl":"ltr",this.renderer.setAttribute(this.elRef.nativeElement,"dir",this._dir)}get dir(){return this._dir}set gutterDblClickDuration(K){this._gutterDblClickDuration=k(K,0)}get gutterDblClickDuration(){return this._gutterDblClickDuration}get transitionEnd(){return new u.y(K=>this.transitionEndSubscriber=K).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(K){const oe={component:K,order:0,size:0,minSize:null,maxSize:null,sizeBeforeCollapse:null,gutterBeforeCollapse:0};!0===K.visible?(this.displayedAreas.push(oe),this.build(!0,!0)):this.hiddenAreas.push(oe)}removeArea(K){if(this.displayedAreas.some(oe=>oe.component===K)){const oe=this.displayedAreas.find(ke=>ke.component===K);this.displayedAreas.splice(this.displayedAreas.indexOf(oe),1),this.build(!0,!0)}else if(this.hiddenAreas.some(oe=>oe.component===K)){const oe=this.hiddenAreas.find(ke=>ke.component===K);this.hiddenAreas.splice(this.hiddenAreas.indexOf(oe),1)}}updateArea(K,oe,ke){!0===K.visible&&this.build(oe,ke)}showArea(K){const oe=this.hiddenAreas.find(de=>de.component===K);if(void 0===oe)return;const ke=this.hiddenAreas.splice(this.hiddenAreas.indexOf(oe),1);this.displayedAreas.push(...ke),this.build(!0,!0)}hideArea(K){const oe=this.displayedAreas.find(de=>de.component===K);if(void 0===oe)return;const ke=this.displayedAreas.splice(this.displayedAreas.indexOf(oe),1);ke.forEach(de=>{de.order=0,de.size=0}),this.hiddenAreas.push(...ke),this.build(!0,!0)}getVisibleAreaSizes(){return this.displayedAreas.map(K=>null===K.size?"*":K.size)}setVisibleAreaSizes(K){if(K.length!==this.displayedAreas.length)return!1;const oe=K.map(de=>k(de,null));return!1!==V(this.unit,oe)&&(this.displayedAreas.forEach((de,Ue)=>de.component._size=oe[Ue]),this.build(!1,!0),!0)}build(K,oe){if(this.stopDragging(),!0===K&&(this.displayedAreas.every(ke=>null!==ke.component.order)&&this.displayedAreas.sort((ke,de)=>ke.component.order-de.component.order),this.displayedAreas.forEach((ke,de)=>{ke.order=2*de,ke.component.setStyleOrder(ke.order)})),!0===oe){const ke=V(this.unit,this.displayedAreas.map(de=>de.component.size));switch(this.unit){case"percent":{const de=100/this.displayedAreas.length;this.displayedAreas.forEach(Ue=>{Ue.size=ke?Ue.component.size:de,Ue.minSize=ue(Ue),Ue.maxSize=$(Ue)});break}case"pixel":if(ke)this.displayedAreas.forEach(de=>{de.size=de.component.size,de.minSize=ue(de),de.maxSize=$(de)});else{const de=this.displayedAreas.filter(Ue=>null===Ue.component.size);if(0===de.length&&this.displayedAreas.length>0)this.displayedAreas.forEach((Ue,pe)=>{Ue.size=0===pe?null:Ue.component.size,Ue.minSize=0===pe?null:ue(Ue),Ue.maxSize=0===pe?null:$(Ue)});else if(de.length>1){let Ue=!1;this.displayedAreas.forEach(pe=>{null===pe.component.size?!1===Ue?(pe.size=null,pe.minSize=null,pe.maxSize=null,Ue=!0):(pe.size=100,pe.minSize=null,pe.maxSize=null):(pe.size=pe.component.size,pe.minSize=ue(pe),pe.maxSize=$(pe))})}}}}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 K=this.getNbGutters()*this.gutterSize;this.displayedAreas.forEach(oe=>{oe.component.setStyleFlex(0,0,`calc( ${oe.size}% - ${oe.size/100*K}px )`,null!==oe.minSize&&oe.minSize===oe.size,null!==oe.maxSize&&oe.maxSize===oe.size)})}else"pixel"===this.unit&&this.displayedAreas.forEach(K=>{null===K.size?K.component.setStyleFlex(1,1,1===this.displayedAreas.length?"100%":"auto",!1,!1):1===this.displayedAreas.length?K.component.setStyleFlex(0,0,"100%",!1,!1):K.component.setStyleFlex(0,0,`${K.size}px`,null!==K.minSize&&K.minSize===K.size,null!==K.maxSize&&K.maxSize===K.size)})}clickGutter(K,oe){const ke=y(K);this.startPoint&&I(this.startPoint,ke,this.gutterClickDeltaPx)&&(!this.isDragging||this.isWaitingInitialMove)&&(null!==this._clickTimeout?(window.clearTimeout(this._clickTimeout),this._clickTimeout=null,this.notify("dblclick",oe),this.stopDragging()):this._clickTimeout=window.setTimeout(()=>{this._clickTimeout=null,this.notify("click",oe),this.stopDragging()},this.gutterDblClickDuration))}startDragging(K,oe,ke){K.preventDefault(),K.stopPropagation(),this.startPoint=y(K),null!==this.startPoint&&!0!==this.disabled&&!0!==this.isWaitingClear&&(this.snapshot={gutterNum:ke,lastSteppedOffset:0,allAreasSizePixel:O(this.elRef,this.direction)-this.getNbGutters()*this.gutterSize,allInvolvedAreasSizePercent:100,areasBeforeGutter:[],areasAfterGutter:[]},this.displayedAreas.forEach(de=>{const Ue={area:de,sizePixelAtStart:O(de.component.elRef,this.direction),sizePercentAtStart:"percent"===this.unit?de.size:-1};de.order<oe?!0===this.restrictMove?this.snapshot.areasBeforeGutter=[Ue]:this.snapshot.areasBeforeGutter.unshift(Ue):de.order>oe&&(!0===this.restrictMove?0===this.snapshot.areasAfterGutter.length&&(this.snapshot.areasAfterGutter=[Ue]):this.snapshot.areasAfterGutter.push(Ue))}),this.snapshot.allInvolvedAreasSizePercent=[...this.snapshot.areasBeforeGutter,...this.snapshot.areasAfterGutter].reduce((de,Ue)=>de+Ue.sizePercentAtStart,0),0!==this.snapshot.areasBeforeGutter.length&&0!==this.snapshot.areasAfterGutter.length&&(this.dragListeners.push(this.renderer.listen("document","mouseup",this.stopDragging.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchend",this.stopDragging.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchcancel",this.stopDragging.bind(this))),this.ngZone.runOutsideAngular(()=>{this.dragListeners.push(this.renderer.listen("document","mousemove",this.dragEvent.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchmove",this.dragEvent.bind(this)))}),this.displayedAreas.forEach(de=>de.component.lockEvents()),this.isDragging=!0,this.isWaitingInitialMove=!0))}dragEvent(K){K.preventDefault(),K.stopPropagation();const oe=y(K);if(null!==this._clickTimeout&&!I(this.startPoint,oe,this.gutterClickDeltaPx)&&(window.clearTimeout(this._clickTimeout),this._clickTimeout=null),!1===this.isDragging||(this.endPoint=y(K),null===this.endPoint))return;if(this.isWaitingInitialMove){if(this.startPoint.x===this.endPoint.x&&this.startPoint.y===this.endPoint.y)return;this.ngZone.run(()=>{this.isWaitingInitialMove=!1,this.renderer.addClass(this.elRef.nativeElement,"as-dragging"),this.renderer.addClass(this.gutterEls.toArray()[this.snapshot.gutterNum-1].nativeElement,"as-dragged"),this.notify("start",this.snapshot.gutterNum)})}let ke="horizontal"===this.direction?this.startPoint.x-this.endPoint.x:this.startPoint.y-this.endPoint.y;"rtl"===this.dir&&(ke=-ke);const de=Math.round(ke/this.gutterStep)*this.gutterStep;if(de===this.snapshot.lastSteppedOffset)return;this.snapshot.lastSteppedOffset=de;let Ue=ne(this.unit,this.snapshot.areasBeforeGutter,-de,this.snapshot.allAreasSizePixel),pe=ne(this.unit,this.snapshot.areasAfterGutter,de,this.snapshot.allAreasSizePixel);if(0!==Ue.remain&&0!==pe.remain?Math.abs(Ue.remain)===Math.abs(pe.remain)||(Math.abs(Ue.remain)>Math.abs(pe.remain)?pe=ne(this.unit,this.snapshot.areasAfterGutter,de+Ue.remain,this.snapshot.allAreasSizePixel):Ue=ne(this.unit,this.snapshot.areasBeforeGutter,-(de-pe.remain),this.snapshot.allAreasSizePixel)):0!==Ue.remain?pe=ne(this.unit,this.snapshot.areasAfterGutter,de+Ue.remain,this.snapshot.allAreasSizePixel):0!==pe.remain&&(Ue=ne(this.unit,this.snapshot.areasBeforeGutter,-(de-pe.remain),this.snapshot.allAreasSizePixel)),"percent"===this.unit){const qe=[...Ue.list,...pe.list],Me=qe.find(Ge=>0!==Ge.percentAfterAbsorption&&Ge.percentAfterAbsorption!==Ge.areaSnapshot.area.minSize&&Ge.percentAfterAbsorption!==Ge.areaSnapshot.area.maxSize);Me&&(Me.percentAfterAbsorption=this.snapshot.allInvolvedAreasSizePercent-qe.filter(Ge=>Ge!==Me).reduce((Ge,vt)=>Ge+vt.percentAfterAbsorption,0))}Ue.list.forEach(qe=>le(this.unit,qe)),pe.list.forEach(qe=>le(this.unit,qe)),this.refreshStyleSizes(),this.notify("progress",this.snapshot.gutterNum)}stopDragging(K){if(K&&(K.preventDefault(),K.stopPropagation()),!1!==this.isDragging){for(this.displayedAreas.forEach(oe=>oe.component.unlockEvents());this.dragListeners.length>0;){const oe=this.dragListeners.pop();oe&&oe()}this.isDragging=!1,!1===this.isWaitingInitialMove&&this.notify("end",this.snapshot.gutterNum),this.renderer.removeClass(this.elRef.nativeElement,"as-dragging"),this.renderer.removeClass(this.gutterEls.toArray()[this.snapshot.gutterNum-1].nativeElement,"as-dragged"),this.snapshot=null,this.isWaitingClear=!0,this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{this.startPoint=null,this.endPoint=null,this.isWaitingClear=!1})})}}notify(K,oe){const ke=this.getVisibleAreaSizes();"start"===K?this.dragStart.emit({gutterNum:oe,sizes:ke}):"end"===K?this.dragEnd.emit({gutterNum:oe,sizes:ke}):"click"===K?this.gutterClick.emit({gutterNum:oe,sizes:ke}):"dblclick"===K?this.gutterDblClick.emit({gutterNum:oe,sizes:ke}):"transitionEnd"===K?this.transitionEndSubscriber&&this.ngZone.run(()=>this.transitionEndSubscriber.next(ke)):"progress"===K&&this.dragProgressSubject.next({gutterNum:oe,sizes:ke})}ngOnDestroy(){this.stopDragging()}collapseArea(K,oe,ke){const de=this.displayedAreas.find(qe=>qe.component===K);if(void 0===de)return;const Ue="right"===ke?1:-1;de.sizeBeforeCollapse||(de.sizeBeforeCollapse=de.size,de.gutterBeforeCollapse=Ue),de.size=oe;const pe=this.gutterEls.find(qe=>qe.nativeElement.style.order===`${de.order+Ue}`);pe&&this.renderer.addClass(pe.nativeElement,"as-split-gutter-collapsed"),this.updateArea(K,!1,!1)}expandArea(K){const oe=this.displayedAreas.find(de=>de.component===K);if(void 0===oe||!oe.sizeBeforeCollapse)return;oe.size=oe.sizeBeforeCollapse,oe.sizeBeforeCollapse=null;const ke=this.gutterEls.find(de=>de.nativeElement.style.order===`${oe.order+oe.gutterBeforeCollapse}`);ke&&this.renderer.removeClass(ke.nativeElement,"as-split-gutter-collapsed"),this.updateArea(K,!1,!1)}}return X.\u0275fac=function(K){return new(K||X)(i.\u0275\u0275directiveInject(i.NgZone),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.ChangeDetectorRef),i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(Se,8))},X.\u0275cmp=i.\u0275\u0275defineComponent({type:X,selectors:[["as-split"]],viewQuery:function(K,oe){if(1&K&&i.\u0275\u0275viewQuery(v,5),2&K){let ke;i.\u0275\u0275queryRefresh(ke=i.\u0275\u0275loadQuery())&&(oe.gutterEls=ke)}},inputs:{direction:"direction",unit:"unit",gutterSize:"gutterSize",gutterStep:"gutterStep",restrictMove:"restrictMove",useTransition:"useTransition",disabled:"disabled",dir:"dir",gutterDblClickDuration:"gutterDblClickDuration",gutterClickDeltaPx:"gutterClickDeltaPx"},outputs:{transitionEnd:"transitionEnd",dragStart:"dragStart",dragEnd:"dragEnd",gutterClick:"gutterClick",gutterDblClick:"gutterDblClick"},exportAs:["asSplit"],ngContentSelectors:p,decls:2,vars:1,consts:[["ngFor","",3,"ngForOf"],["class","as-split-gutter",3,"flex-basis","order","mousedown","touchstart","mouseup","touchend",4,"ngIf"],[1,"as-split-gutter",3,"mousedown","touchstart","mouseup","touchend"],["gutterEls",""],[1,"as-split-gutter-icon"]],template:function(K,oe){1&K&&(i.\u0275\u0275projectionDef(),i.\u0275\u0275projection(0),i.\u0275\u0275template(1,D,1,1,"ng-template",0)),2&K&&(i.\u0275\u0275advance(1),i.\u0275\u0275property("ngForOf",oe.displayedAreas))},directives:[d.NgForOf,d.NgIf],styles:["[_nghost-%COMP%]{display:flex;flex-wrap:nowrap;justify-content:flex-start;align-items:stretch;overflow:hidden;width:100%;height:100%}[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{flex-grow:0;flex-shrink:0;background-color:#eee;display:flex;align-items:center;justify-content:center}[_nghost-%COMP%] > .as-split-gutter.as-split-gutter-collapsed[_ngcontent-%COMP%]{flex-basis:1px!important;pointer-events:none}[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] > .as-split-gutter-icon[_ngcontent-%COMP%]{width:100%;height:100%;background-position:center center;background-repeat:no-repeat}[_nghost-%COMP%] >.as-split-area{flex-grow:0;flex-shrink:0;overflow-x:hidden;overflow-y:auto}[_nghost-%COMP%] >.as-split-area.as-hidden{flex:0 1 0px!important;overflow-x:hidden;overflow-y:hidden}.as-horizontal[_nghost-%COMP%]{flex-direction:row}.as-horizontal[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{flex-direction:row;cursor:col-resize;height:100%}.as-horizontal[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] > .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==)}.as-horizontal[_nghost-%COMP%] >.as-split-area{height:100%}.as-vertical[_nghost-%COMP%]{flex-direction:column}.as-vertical[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{flex-direction:column;cursor:row-resize;width:100%}.as-vertical[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAFCAMAAABl/6zIAAAABlBMVEUAAADMzMzIT8AyAAAAAXRSTlMAQObYZgAAABRJREFUeAFjYGRkwIMJSeMHlBkOABP7AEGzSuPKAAAAAElFTkSuQmCC)}.as-vertical[_nghost-%COMP%] >.as-split-area{width:100%}.as-vertical[_nghost-%COMP%] >.as-split-area.as-hidden{max-width:0}.as-disabled[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{cursor:default}.as-disabled[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url()}.as-transition.as-init[_nghost-%COMP%]:not(.as-dragging) > .as-split-gutter[_ngcontent-%COMP%], .as-transition.as-init[_nghost-%COMP%]:not(.as-dragging) >.as-split-area{transition:flex-basis .3s}"],changeDetection:0}),X})(),Xe=(()=>{class X{constructor(K,oe,ke,de){this.ngZone=K,this.elRef=oe,this.renderer=ke,this.split=de,this._order=null,this._size=null,this._minSize=null,this._maxSize=null,this._lockSize=!1,this._visible=!0,this.lockListeners=[],this.renderer.addClass(this.elRef.nativeElement,"as-split-area")}set order(K){this._order=k(K,null),this.split.updateArea(this,!0,!1)}get order(){return this._order}set size(K){this._size=k(K,null),this.split.updateArea(this,!1,!0)}get size(){return this._size}set minSize(K){this._minSize=k(K,null),this.split.updateArea(this,!1,!0)}get minSize(){return this._minSize}set maxSize(K){this._maxSize=k(K,null),this.split.updateArea(this,!1,!0)}get maxSize(){return this._maxSize}set lockSize(K){this._lockSize=w(K),this.split.updateArea(this,!1,!0)}get lockSize(){return this._lockSize}set visible(K){this._visible=w(K),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",K=>{"flex-basis"===K.propertyName&&this.split.notify("transitionEnd",-1)})})}setStyleOrder(K){this.renderer.setStyle(this.elRef.nativeElement,"order",K)}setStyleFlex(K,oe,ke,de,Ue){this.renderer.setStyle(this.elRef.nativeElement,"flex-grow",K),this.renderer.setStyle(this.elRef.nativeElement,"flex-shrink",oe),this.renderer.setStyle(this.elRef.nativeElement,"flex-basis",ke),!0===de?this.renderer.addClass(this.elRef.nativeElement,"as-min"):this.renderer.removeClass(this.elRef.nativeElement,"as-min"),!0===Ue?this.renderer.addClass(this.elRef.nativeElement,"as-max"):this.renderer.removeClass(this.elRef.nativeElement,"as-max")}lockEvents(){this.ngZone.runOutsideAngular(()=>{this.lockListeners.push(this.renderer.listen(this.elRef.nativeElement,"selectstart",()=>!1)),this.lockListeners.push(this.renderer.listen(this.elRef.nativeElement,"dragstart",()=>!1))})}unlockEvents(){for(;this.lockListeners.length>0;){const K=this.lockListeners.pop();K&&K()}}ngOnDestroy(){this.unlockEvents(),this.transitionListener&&this.transitionListener(),this.split.removeArea(this)}collapse(K=0,oe="right"){this.split.collapseArea(this,K,oe)}expand(){this.split.expandArea(this)}}return X.\u0275fac=function(K){return new(K||X)(i.\u0275\u0275directiveInject(i.NgZone),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(Le))},X.\u0275dir=i.\u0275\u0275defineDirective({type:X,selectors:[["as-split-area"],["","as-split-area",""]],inputs:{order:"order",size:"size",minSize:"minSize",maxSize:"maxSize",lockSize:"lockSize",visible:"visible"},exportAs:["asSplitArea"]}),X})(),lt=(()=>{class X{static forRoot(){return console.warn("AngularSplitModule.forRoot() is deprecated and will be removed in v6"),{ngModule:X,providers:[]}}static forChild(){return console.warn("AngularSplitModule.forChild() is deprecated and will be removed in v6"),{ngModule:X,providers:[]}}}return X.\u0275fac=function(K){return new(K||X)},X.\u0275mod=i.\u0275\u0275defineNgModule({type:X}),X.\u0275inj=i.\u0275\u0275defineInjector({imports:[[d.CommonModule]]}),X})()},2290:(Be,m,l)=>{"use strict";l.r(m),l.d(m,{BasePortalHost:()=>le,ComponentPortal:()=>_e,DefaultGlobalConfig:()=>pe,DefaultNoAnimationsGlobalConfig:()=>vt,DefaultNoComponentGlobalConfig:()=>Le,Overlay:()=>ke,OverlayContainer:()=>oe,OverlayRef:()=>K,TOAST_CONFIG:()=>Xe,Toast:()=>Ue,ToastContainerDirective:()=>De,ToastContainerModule:()=>fe,ToastInjector:()=>X,ToastNoAnimation:()=>Ge,ToastNoAnimationModule:()=>St,ToastPackage:()=>Se,ToastRef:()=>lt,ToastrComponentlessModule:()=>Me,ToastrModule:()=>qe,ToastrService:()=>de});var i=l(5e3),d=l(1777),_=l(6758),u=l(9808),s=l(2313);const v=["toast-component",""];function C(Re,et){if(1&Re){const Y=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"button",5),i.\u0275\u0275listener("click",function(){return i.\u0275\u0275restoreView(Y),i.\u0275\u0275nextContext().remove()}),i.\u0275\u0275elementStart(1,"span",6),i.\u0275\u0275text(2,"\xd7"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementEnd()}}function D(Re,et){if(1&Re&&(i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275text(1),i.\u0275\u0275elementContainerEnd()),2&Re){const Y=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1("[",Y.duplicatesCount+1,"]")}}function p(Re,et){if(1&Re&&(i.\u0275\u0275elementStart(0,"div"),i.\u0275\u0275text(1),i.\u0275\u0275template(2,D,2,1,"ng-container",4),i.\u0275\u0275elementEnd()),2&Re){const Y=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(Y.options.titleClass),i.\u0275\u0275attribute("aria-label",Y.title),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",Y.title," "),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",Y.duplicatesCount)}}function y(Re,et){if(1&Re&&i.\u0275\u0275element(0,"div",7),2&Re){const Y=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(Y.options.messageClass),i.\u0275\u0275property("innerHTML",Y.message,i.\u0275\u0275sanitizeHtml)}}function I(Re,et){if(1&Re&&(i.\u0275\u0275elementStart(0,"div",8),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&Re){const Y=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(Y.options.messageClass),i.\u0275\u0275attribute("aria-label",Y.message),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",Y.message," ")}}function O(Re,et){if(1&Re&&(i.\u0275\u0275elementStart(0,"div"),i.\u0275\u0275element(1,"div",9),i.\u0275\u0275elementEnd()),2&Re){const Y=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275styleProp("width",Y.width+"%")}}function w(Re,et){if(1&Re){const Y=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"button",5),i.\u0275\u0275listener("click",function(){return i.\u0275\u0275restoreView(Y),i.\u0275\u0275nextContext().remove()}),i.\u0275\u0275elementStart(1,"span",6),i.\u0275\u0275text(2,"\xd7"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementEnd()}}function k(Re,et){if(1&Re&&(i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275text(1),i.\u0275\u0275elementContainerEnd()),2&Re){const Y=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1("[",Y.duplicatesCount+1,"]")}}function V(Re,et){if(1&Re&&(i.\u0275\u0275elementStart(0,"div"),i.\u0275\u0275text(1),i.\u0275\u0275template(2,k,2,1,"ng-container",4),i.\u0275\u0275elementEnd()),2&Re){const Y=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(Y.options.titleClass),i.\u0275\u0275attribute("aria-label",Y.title),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",Y.title," "),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",Y.duplicatesCount)}}function ue(Re,et){if(1&Re&&i.\u0275\u0275element(0,"div",7),2&Re){const Y=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(Y.options.messageClass),i.\u0275\u0275property("innerHTML",Y.message,i.\u0275\u0275sanitizeHtml)}}function $(Re,et){if(1&Re&&(i.\u0275\u0275elementStart(0,"div",8),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&Re){const Y=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(Y.options.messageClass),i.\u0275\u0275attribute("aria-label",Y.message),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",Y.message," ")}}function ne(Re,et){if(1&Re&&(i.\u0275\u0275elementStart(0,"div"),i.\u0275\u0275element(1,"div",9),i.\u0275\u0275elementEnd()),2&Re){const Y=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275styleProp("width",Y.width+"%")}}let De=(()=>{class Re{constructor(Y){this.el=Y}getContainerElement(){return this.el.nativeElement}}return Re.\u0275fac=function(Y){return new(Y||Re)(i.\u0275\u0275directiveInject(i.ElementRef))},Re.\u0275dir=i.\u0275\u0275defineDirective({type:Re,selectors:[["","toastContainer",""]],exportAs:["toastContainer"]}),Re})(),fe=(()=>{class Re{}return Re.\u0275fac=function(Y){return new(Y||Re)},Re.\u0275mod=i.\u0275\u0275defineNgModule({type:Re}),Re.\u0275inj=i.\u0275\u0275defineInjector({}),Re})();class _e{constructor(et,Y){this.component=et,this.injector=Y}attach(et,Y){return this._attachedHost=et,et.attach(this,Y)}detach(){const et=this._attachedHost;if(et)return this._attachedHost=void 0,et.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(et){this._attachedHost=et}}class le{attach(et,Y){return this._attachedPortal=et,this.attachComponentPortal(et,Y)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(et){this._disposeFn=et}}class Se{constructor(et,Y,he,Ee,Ae,ge){this.toastId=et,this.config=Y,this.message=he,this.title=Ee,this.toastType=Ae,this.toastRef=ge,this._onTap=new _.x,this._onAction=new _.x,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(et){this._onAction.next(et)}onAction(){return this._onAction.asObservable()}}const Le={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},Xe=new i.InjectionToken("ToastConfig");class lt{constructor(et){this._overlayRef=et,this.duplicatesCount=0,this._afterClosed=new _.x,this._activate=new _.x,this._manualClose=new _.x,this._resetTimeout=new _.x,this._countDuplicate=new _.x}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(et,Y){et&&this._resetTimeout.next(),Y&&this._countDuplicate.next(++this.duplicatesCount)}}class X{constructor(et,Y){this._toastPackage=et,this._parentInjector=Y}get(et,Y,he){return et===Se?this._toastPackage:this._parentInjector.get(et,Y,he)}}class me extends le{constructor(et,Y,he){super(),this._hostDomElement=et,this._componentFactoryResolver=Y,this._appRef=he}attachComponentPortal(et,Y){const he=this._componentFactoryResolver.resolveComponentFactory(et.component);let Ee;return Ee=he.create(et.injector),this._appRef.attachView(Ee.hostView),this.setDisposeFn(()=>{this._appRef.detachView(Ee.hostView),Ee.destroy()}),Y?this._hostDomElement.insertBefore(this._getComponentRootNode(Ee),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(Ee)),Ee}_getComponentRootNode(et){return et.hostView.rootNodes[0]}}class K{constructor(et){this._portalHost=et}attach(et,Y=!0){return this._portalHost.attach(et,Y)}detach(){return this._portalHost.detach()}}let oe=(()=>{class Re{constructor(Y){this._document=Y}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const Y=this._document.createElement("div");Y.classList.add("overlay-container"),this._document.body.appendChild(Y),this._containerElement=Y}}return Re.\u0275fac=function(Y){return new(Y||Re)(i.\u0275\u0275inject(u.DOCUMENT))},Re.\u0275prov=i.\u0275\u0275defineInjectable({token:Re,factory:Re.\u0275fac,providedIn:"root"}),Re})(),ke=(()=>{class Re{constructor(Y,he,Ee,Ae){this._overlayContainer=Y,this._componentFactoryResolver=he,this._appRef=Ee,this._document=Ae,this._paneElements=new Map}create(Y,he){return this._createOverlayRef(this.getPaneElement(Y,he))}getPaneElement(Y="",he){return this._paneElements.get(he)||this._paneElements.set(he,{}),this._paneElements.get(he)[Y]||(this._paneElements.get(he)[Y]=this._createPaneElement(Y,he)),this._paneElements.get(he)[Y]}_createPaneElement(Y,he){const Ee=this._document.createElement("div");return Ee.id="toast-container",Ee.classList.add(Y),Ee.classList.add("toast-container"),he?he.getContainerElement().appendChild(Ee):this._overlayContainer.getContainerElement().appendChild(Ee),Ee}_createPortalHost(Y){return new me(Y,this._componentFactoryResolver,this._appRef)}_createOverlayRef(Y){return new K(this._createPortalHost(Y))}}return Re.\u0275fac=function(Y){return new(Y||Re)(i.\u0275\u0275inject(oe),i.\u0275\u0275inject(i.ComponentFactoryResolver),i.\u0275\u0275inject(i.ApplicationRef),i.\u0275\u0275inject(u.DOCUMENT))},Re.\u0275prov=i.\u0275\u0275defineInjectable({token:Re,factory:Re.\u0275fac,providedIn:"root"}),Re})(),de=(()=>{class Re{constructor(Y,he,Ee,Ae,ge){this.overlay=he,this._injector=Ee,this.sanitizer=Ae,this.ngZone=ge,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig=Object.assign(Object.assign({},Y.default),Y.config),Y.config.iconClasses&&(this.toastrConfig.iconClasses=Object.assign(Object.assign({},Y.default.iconClasses),Y.config.iconClasses))}show(Y,he,Ee={},Ae=""){return this._preBuildNotification(Ae,Y,he,this.applyConfig(Ee))}success(Y,he,Ee={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",Y,he,this.applyConfig(Ee))}error(Y,he,Ee={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",Y,he,this.applyConfig(Ee))}info(Y,he,Ee={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",Y,he,this.applyConfig(Ee))}warning(Y,he,Ee={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",Y,he,this.applyConfig(Ee))}clear(Y){for(const he of this.toasts)if(void 0!==Y){if(he.toastId===Y)return void he.toastRef.manualClose()}else he.toastRef.manualClose()}remove(Y){const he=this._findToast(Y);if(!he||(he.activeToast.toastRef.close(),this.toasts.splice(he.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActive<this.toastrConfig.maxOpened&&this.toasts[this.currentlyActive]){const Ee=this.toasts[this.currentlyActive].toastRef;Ee.isInactive()||(this.currentlyActive=this.currentlyActive+1,Ee.activate())}return!0}findDuplicate(Y="",he="",Ee,Ae){const{includeTitleDuplicates:ge}=this.toastrConfig;for(const Je of this.toasts){const pt=ge&&Je.title===Y;if((!ge||pt)&&Je.message===he)return Je.toastRef.onDuplicate(Ee,Ae),Je}return null}applyConfig(Y={}){return Object.assign(Object.assign({},this.toastrConfig),Y)}_findToast(Y){for(let he=0;he<this.toasts.length;he++)if(this.toasts[he].toastId===Y)return{index:he,activeToast:this.toasts[he]};return null}_preBuildNotification(Y,he,Ee,Ae){return Ae.onActivateTick?this.ngZone.run(()=>this._buildNotification(Y,he,Ee,Ae)):this._buildNotification(Y,he,Ee,Ae)}_buildNotification(Y,he,Ee,Ae){if(!Ae.toastComponent)throw new Error("toastComponent required");const ge=this.findDuplicate(Ee,he,this.toastrConfig.resetTimeoutOnDuplicate&&Ae.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&Ee||he)&&this.toastrConfig.preventDuplicates&&null!==ge)return ge;this.previousToastMessage=he;let Je=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(Je=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const pt=this.overlay.create(Ae.positionClass,this.overlayContainer);this.index=this.index+1;let Tt=he;he&&Ae.enableHtml&&(Tt=this.sanitizer.sanitize(i.SecurityContext.HTML,he));const Rt=new lt(pt),dt=new Se(this.index,Ae,Tt,Ee,Y,Rt),Ze=new X(dt,this._injector),N=new _e(Ae.toastComponent,Ze),ie=pt.attach(N,this.toastrConfig.newestOnTop);Rt.componentInstance=ie.instance;const Oe={toastId:this.index,title:Ee||"",message:he||"",toastRef:Rt,onShown:Rt.afterActivate(),onHidden:Rt.afterClosed(),onTap:dt.onTap(),onAction:dt.onAction(),portal:ie};return Je||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{Oe.toastRef.activate()})),this.toasts.push(Oe),Oe}}return Re.\u0275fac=function(Y){return new(Y||Re)(i.\u0275\u0275inject(Xe),i.\u0275\u0275inject(ke),i.\u0275\u0275inject(i.Injector),i.\u0275\u0275inject(s.DomSanitizer),i.\u0275\u0275inject(i.NgZone))},Re.\u0275prov=i.\u0275\u0275defineInjectable({token:Re,factory:Re.\u0275fac,providedIn:"root"}),Re})(),Ue=(()=>{class Re{constructor(Y,he,Ee){this.toastrService=Y,this.toastPackage=he,this.ngZone=Ee,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},this.message=he.message,this.title=he.title,this.options=he.config,this.originalTimeout=he.config.timeOut,this.toastClasses=`${he.toastType} ${he.config.toastClass}`,this.sub=he.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=he.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=he.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=he.toastRef.countDuplicate().subscribe(Ae=>{this.duplicatesCount=Ae})}get displayStyle(){if("inactive"===this.state.value)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state=Object.assign(Object.assign({},this.state),{value:"active"}),!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const Y=(new Date).getTime();this.width=(this.hideTime-Y)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state=Object.assign(Object.assign({},this.state),{value:"active"}),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state=Object.assign(Object.assign({},this.state),{value:"removed"}),this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state.value||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(Y,he){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(Y),he)):this.timeout=setTimeout(()=>Y(),he)}outsideInterval(Y,he){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(Y),he)):this.intervalId=setInterval(()=>Y(),he)}runInsideAngular(Y){this.ngZone?this.ngZone.run(()=>Y()):Y()}}return Re.\u0275fac=function(Y){return new(Y||Re)(i.\u0275\u0275directiveInject(de),i.\u0275\u0275directiveInject(Se),i.\u0275\u0275directiveInject(i.NgZone))},Re.\u0275cmp=i.\u0275\u0275defineComponent({type:Re,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(Y,he){1&Y&&i.\u0275\u0275listener("click",function(){return he.tapToast()})("mouseenter",function(){return he.stickAround()})("mouseleave",function(){return he.delayedHideToast()}),2&Y&&(i.\u0275\u0275syntheticHostProperty("@flyInOut",he.state),i.\u0275\u0275classMap(he.toastClasses),i.\u0275\u0275styleProp("display",he.displayStyle))},attrs:v,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alertdialog","aria-live","polite",3,"innerHTML"],["role","alertdialog","aria-live","polite"],[1,"toast-progress"]],template:function(Y,he){1&Y&&(i.\u0275\u0275template(0,C,3,0,"button",0),i.\u0275\u0275template(1,p,3,5,"div",1),i.\u0275\u0275template(2,y,1,3,"div",2),i.\u0275\u0275template(3,I,2,4,"div",3),i.\u0275\u0275template(4,O,2,2,"div",4)),2&Y&&(i.\u0275\u0275property("ngIf",he.options.closeButton),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",he.title),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",he.message&&he.options.enableHtml),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",he.message&&!he.options.enableHtml),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",he.options.progressBar))},directives:[u.NgIf],encapsulation:2,data:{animation:[(0,d.X$)("flyInOut",[(0,d.SB)("inactive",(0,d.oB)({opacity:0})),(0,d.SB)("active",(0,d.oB)({opacity:1})),(0,d.SB)("removed",(0,d.oB)({opacity:0})),(0,d.eR)("inactive => active",(0,d.jt)("{{ easeTime }}ms {{ easing }}")),(0,d.eR)("active => removed",(0,d.jt)("{{ easeTime }}ms {{ easing }}"))])]}}),Re})();const pe=Object.assign(Object.assign({},Le),{toastComponent:Ue});let qe=(()=>{class Re{static forRoot(Y={}){return{ngModule:Re,providers:[{provide:Xe,useValue:{default:pe,config:Y}}]}}}return Re.\u0275fac=function(Y){return new(Y||Re)},Re.\u0275mod=i.\u0275\u0275defineNgModule({type:Re}),Re.\u0275inj=i.\u0275\u0275defineInjector({imports:[[u.CommonModule]]}),Re})(),Me=(()=>{class Re{static forRoot(Y={}){return{ngModule:qe,providers:[{provide:Xe,useValue:{default:Le,config:Y}}]}}}return Re.\u0275fac=function(Y){return new(Y||Re)},Re.\u0275mod=i.\u0275\u0275defineNgModule({type:Re}),Re.\u0275inj=i.\u0275\u0275defineInjector({imports:[[u.CommonModule]]}),Re})(),Ge=(()=>{class Re{constructor(Y,he,Ee){this.toastrService=Y,this.toastPackage=he,this.appRef=Ee,this.width=-1,this.toastClasses="",this.state="inactive",this.message=he.message,this.title=he.title,this.options=he.config,this.originalTimeout=he.config.timeOut,this.toastClasses=`${he.toastType} ${he.config.toastClass}`,this.sub=he.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=he.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=he.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=he.toastRef.countDuplicate().subscribe(Ae=>{this.duplicatesCount=Ae})}get displayStyle(){if("inactive"===this.state)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state="active",!(!0===this.options.disableTimeOut||"timeOut"===this.options.disableTimeOut)&&this.options.timeOut&&(this.timeout=setTimeout(()=>{this.remove()},this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))),this.options.onActivateTick&&this.appRef.tick()}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const Y=(new Date).getTime();this.width=(this.hideTime-Y)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state="active",this.options.timeOut=this.originalTimeout,this.timeout=setTimeout(()=>this.remove(),this.originalTimeout),this.hideTime=(new Date).getTime()+(this.originalTimeout||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))}remove(){"removed"!==this.state&&(clearTimeout(this.timeout),this.state="removed",this.timeout=setTimeout(()=>this.toastrService.remove(this.toastPackage.toastId)))}tapToast(){"removed"!==this.state&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state||(this.timeout=setTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10)))}}return Re.\u0275fac=function(Y){return new(Y||Re)(i.\u0275\u0275directiveInject(de),i.\u0275\u0275directiveInject(Se),i.\u0275\u0275directiveInject(i.ApplicationRef))},Re.\u0275cmp=i.\u0275\u0275defineComponent({type:Re,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(Y,he){1&Y&&i.\u0275\u0275listener("click",function(){return he.tapToast()})("mouseenter",function(){return he.stickAround()})("mouseleave",function(){return he.delayedHideToast()}),2&Y&&(i.\u0275\u0275classMap(he.toastClasses),i.\u0275\u0275styleProp("display",he.displayStyle))},attrs:v,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["role","alert","aria-live","polite",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert","aria-live","polite",3,"innerHTML"],["role","alert","aria-live","polite"],[1,"toast-progress"]],template:function(Y,he){1&Y&&(i.\u0275\u0275template(0,w,3,0,"button",0),i.\u0275\u0275template(1,V,3,5,"div",1),i.\u0275\u0275template(2,ue,1,3,"div",2),i.\u0275\u0275template(3,$,2,4,"div",3),i.\u0275\u0275template(4,ne,2,2,"div",4)),2&Y&&(i.\u0275\u0275property("ngIf",he.options.closeButton),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",he.title),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",he.message&&he.options.enableHtml),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",he.message&&!he.options.enableHtml),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",he.options.progressBar))},directives:[u.NgIf],encapsulation:2}),Re})();const vt=Object.assign(Object.assign({},Le),{toastComponent:Ge});let St=(()=>{class Re{static forRoot(Y={}){return{ngModule:Re,providers:[{provide:Xe,useValue:{default:vt,config:Y}}]}}}return Re.\u0275fac=function(Y){return new(Y||Re)},Re.\u0275mod=i.\u0275\u0275defineNgModule({type:Re}),Re.\u0275inj=i.\u0275\u0275defineInjector({imports:[[u.CommonModule]]}),Re})()}},Be=>{Be(Be.s=4431)}]);