@sdkgen/playground 0.0.0-dev.20230203101643 → 0.0.0-dev.20230217120503

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ (self.webpackChunksdkgen_playground=self.webpackChunksdkgen_playground||[]).push([[179],{4602:function(z,o,a){"use strict";var b,n=this&&this.__extends||(b=function(v,m){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,M){C.__proto__=M}||function(C,M){for(var O in M)Object.prototype.hasOwnProperty.call(M,O)&&(C[O]=M[O])})(v,m)},function(v,m){if("function"!=typeof m&&null!==m)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");function C(){this.constructor=v}b(v,m),v.prototype=null===m?Object.create(m):(C.prototype=m.prototype,new C)}),h=this&&this.__spreadArray||function(b,v,m){if(m||2===arguments.length)for(var O,C=0,M=v.length;C<M;C++)(O||!(C in v))&&(O||(O=Array.prototype.slice.call(v,0,C)),O[C]=v[C]);return b.concat(O||Array.prototype.slice.call(v))},_=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(o,"__esModule",{value:!0}),o.decode=o.encode=void 0;var u=_(a(602)),r=["string","email","phone","html","xml"],c=h(["json","bool","url","int","uint","float","money","hex","uuid","base64","void"],r,!0),d=function(b){function v(m,C,M){var O;try{O=JSON.stringify(M)}catch(P){O=String(M)}return b.call(this,"Invalid type at '".concat(m,"', expected ").concat(C,", got ").concat(O))||this}return n(v,b),v}(Error);function p(b,v,m){if("json"===v)return null==m?null:JSON.parse(JSON.stringify(m));if("bool"===v){if("boolean"!=typeof m)throw new d(b,v,m);return m}if(r.indexOf(v)>=0){if("string"!=typeof m)throw new d(b,v,m);return m}if("hex"===v){if("string"!=typeof m||!/^(?:[A-Fa-f0-9]{2})*$/u.test(m))throw new d(b,v,m);return m.toLowerCase()}if("uuid"===v){if("string"!=typeof m||!/^[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(m))throw new d(b,v,m);return m.toLowerCase()}if("base64"===v){var C=!0;try{atob(m)}catch(O){C=!1}if("string"!=typeof m||!C)throw new d(b,v,m);return m}if("int"===v){if("number"!=typeof m||(0|m)!==m)throw new d(b,v,m);return m}if("uint"===v){if("number"!=typeof m||(0|m)!==m||m<0)throw new d(b,v,m);return m}if("float"===v){if("number"!=typeof m)throw new d(b,v,m);return m}if("money"===v){if("number"!=typeof m||!Number.isInteger(m))throw new d(b,v,m);return m}if("url"===v){var M=void 0;if("string"==typeof m)try{M=new URL(m)}catch(O){}if(!M)throw new d(b,v,m);return M.toString()}if("void"===v)return null;throw new Error("Unknown type '".concat(v,"' at '").concat(b,"'"))}o.encode=function y(b,v,m,C){if("string"==typeof m&&!m.endsWith("?")&&"void"!==m&&null==C)throw new Error("Invalid type at '".concat(v,"', cannot be null"));if(Array.isArray(m)){for(var M=0,O=m;M<O.length;M++){var P=O[M];if(P===C)return C;if(Array.isArray(C)&&2===C.length&&P===C[0])return C[0];if(Array.isArray(P)&&2===P.length){if(P[0]===C)return[C,y(b,"".concat(v,".").concat(P[0]),P[1],{})];if(Array.isArray(C)&&2===C.length&&P[0]===C[0])return[C[0],y(b,"".concat(v,".").concat(P[0]),P[1],C[1])]}}throw new d(v,m,C)}if("object"==typeof m){if("object"!=typeof C)throw new d(v,m,C);for(var N={},Y=0,U=Object.keys(m);Y<U.length;Y++){var G=U[Y];N[G]=y(b,"".concat(v,".").concat(G),m[G],C[G])}return N}if(m.endsWith("?"))return null==C?null:y(b,v,m.slice(0,m.length-1),C);if(m.endsWith("[]")){if(!Array.isArray(C))throw new d(v,m,C);return C.map(function(te,he){return y(b,"".concat(v,"[").concat(he,"]"),m.slice(0,m.length-2),te)})}if(c.indexOf(m)>=0)return p(v,m,C);if("bytes"===m){if(!(C instanceof ArrayBuffer))throw new d(v,m,C);return btoa(String.fromCharCode.apply(String,new Uint8Array(C)))}if("bigint"===m){if("bigint"!=typeof C)throw new d(v,m,C);return C.toString()}if("cpf"===m){if("string"!=typeof C)throw new d(v,m,C);return C}if("cnpj"===m){if("string"!=typeof C)throw new d(v,m,C);return C}if("date"===m){if((!(C instanceof Date)||isNaN(C.getTime()))&&("string"!=typeof C||!/^[0-9]{4}-[01][0-9]-[0123][0-9]$/u.test(C)))throw new d(v,m,C);var $=C instanceof Date?C:new Date(C);return"".concat($.getFullYear().toString().padStart(4,"0"),"-").concat(($.getMonth()+1).toString().padStart(2,"0"),"-").concat($.getDate().toString().padStart(2,"0"))}if("datetime"===m){if((!(C instanceof Date)||isNaN(C.getTime()))&&("string"!=typeof C||!/^[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(C)))throw new d(v,m,C);return("string"==typeof C?new Date(C):C).toISOString().replace("Z","")}if("decimal"===m){if(!("number"==typeof C||"string"==typeof C&&/^-?[0-9]+(?:\.[0-9]+)?$/u.test(C)||C instanceof u.default))throw new d(v,m,C);return new u.default(C).toString()}var J=b[m];if(J)return y(b,v,J,C);throw new Error("Unknown type '".concat(m,"' at '").concat(v,"'"))},o.decode=function f(b,v,m,C){if("string"==typeof m&&!m.endsWith("?")&&"void"!==m&&null==C)throw new Error("Invalid type at '".concat(v,"', cannot be null"));if(Array.isArray(m)){for(var M=0,O=m;M<O.length;M++){var P=O[M];if(P===C)return C;if(Array.isArray(C)&&2===C.length&&P===C[0])return C[0];if(Array.isArray(P)&&2===P.length){if(P[0]===C)return[C,f(b,"".concat(v,".").concat(P[0]),P[1],{})];if(Array.isArray(C)&&2===C.length&&P[0]===C[0])return[C[0],f(b,"".concat(v,".").concat(P[0]),P[1],C[1])]}}throw new d(v,m,C)}if("object"==typeof m){if("object"!=typeof C)throw new d(v,m,C);for(var N={},Y=0,U=Object.keys(m);Y<U.length;Y++){var G=U[Y];N[G]=f(b,"".concat(v,".").concat(G),m[G],C[G])}return N}if(m.endsWith("?"))return null==C?null:f(b,v,m.slice(0,m.length-1),C);if(m.endsWith("[]")){if(!Array.isArray(C))throw new d(v,m,C);return C.map(function(it,be){return f(b,"".concat(v,"[").concat(be,"]"),m.slice(0,m.length-2),it)})}if(c.indexOf(m)>=0)return p(v,m,C);if("bytes"!==m){if("bigint"===m){if("number"!=typeof C&&("string"!=typeof C||!/^-?[0-9]+$/u.test(C)))throw new d(v,m,C);return BigInt(C)}if("cpf"===m){if("string"!=typeof C)throw new d(v,m,C);return C}if("cnpj"===m){if("string"!=typeof C)throw new d(v,m,C);return C}if("date"===m){if("string"!=typeof C||!/^[0-9]{4}-[01][0-9]-[0123][0-9]$/u.test(C))throw new d(v,m,C);var $=parseInt(C.split("-")[2],10),J=parseInt(C.split("-")[1],10)-1,te=parseInt(C.split("-")[0],10),he=new Date(te,J,$);if(he.getFullYear()!==te||he.getMonth()!==J||he.getDate()!==$)throw new d(v,m,C);return he}if("datetime"===m){if("string"!=typeof C||!/^[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(C))throw new d(v,m,C);return new Date("".concat(C.endsWith("Z")?C:C.concat("Z")))}if("decimal"===m){if("number"!=typeof C&&("string"!=typeof C||!/^-?[0-9]+(?:\.[0-9]+)?$/u.test(C)))throw new d(v,m,C);return new u.default(C)}var Fe=b[m];if(Fe)return f(b,v,Fe,C);throw new Error("Unknown type '".concat(m,"' at '").concat(v,"'"))}if("string"!=typeof C)throw new d(v,"".concat(m," (base 64)"),C);try{return Uint8Array.from(atob(C),function(it){return it.charCodeAt(0)})}catch(it){throw new d(v,"".concat(m," (base 64)"),C)}}},2837:function(z,o){"use strict";var _,a=this&&this.__extends||(_=function(u,r){return(_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,d){c.__proto__=d}||function(c,d){for(var p in d)Object.prototype.hasOwnProperty.call(d,p)&&(c[p]=d[p])})(u,r)},function(u,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function c(){this.constructor=u}_(u,r),u.prototype=null===r?Object.create(r):(c.prototype=r.prototype,new c)});Object.defineProperty(o,"__esModule",{value:!0}),o.SdkgenErrorWithData=o.SdkgenError=void 0;var n=function(_){function u(){return null!==_&&_.apply(this,arguments)||this}return a(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);o.SdkgenError=n;var h=function(_){function u(r,c){var d=_.call(this,r)||this;return d.data=c,d}return a(u,_),u.prototype.toJSON=function(){return{data:this.data,message:this.message,type:this.type}},u}(n);o.SdkgenErrorWithData=h},2062:function(z,o,a){"use strict";var n=this&&this.__awaiter||function(y,f,b,v){return new(b||(b=Promise))(function(C,M){function O(Y){try{N(v.next(Y))}catch(U){M(U)}}function P(Y){try{N(v.throw(Y))}catch(U){M(U)}}function N(Y){Y.done?C(Y.value):function m(C){return C instanceof b?C:new b(function(M){M(C)})}(Y.value).then(O,P)}N((v=v.apply(y,f||[])).next())})},h=this&&this.__generator||function(y,f){var v,m,C,M,b={label:0,sent:function(){if(1&C[0])throw C[1];return C[1]},trys:[],ops:[]};return M={next:O(0),throw:O(1),return:O(2)},"function"==typeof Symbol&&(M[Symbol.iterator]=function(){return this}),M;function O(N){return function(Y){return function P(N){if(v)throw new TypeError("Generator is already executing.");for(;M&&(M=0,N[0]&&(b=0)),b;)try{if(v=1,m&&(C=2&N[0]?m.return:N[0]?m.throw||((C=m.return)&&C.call(m),0):m.next)&&!(C=C.call(m,N[1])).done)return C;switch(m=0,C&&(N=[2&N[0],C.value]),N[0]){case 0:case 1:C=N;break;case 4:return b.label++,{value:N[1],done:!1};case 5:b.label++,m=N[1],N=[0];continue;case 7:N=b.ops.pop(),b.trys.pop();continue;default:if(!(C=(C=b.trys).length>0&&C[C.length-1])&&(6===N[0]||2===N[0])){b=0;continue}if(3===N[0]&&(!C||N[1]>C[0]&&N[1]<C[3])){b.label=N[1];break}if(6===N[0]&&b.label<C[1]){b.label=C[1],C=N;break}if(C&&b.label<C[2]){b.label=C[2],b.ops.push(N);break}C[2]&&b.ops.pop(),b.trys.pop();continue}N=f.call(y,b)}catch(Y){N=[6,Y],m=0}finally{v=C=0}if(5&N[0])throw N[1];return{value:N[0]?N[1]:void 0,done:!0}}([N,Y])}}};Object.defineProperty(o,"__esModule",{value:!0}),o.SdkgenHttpClient=void 0;var _=a(4602);function u(y){for(var f="",b=0;b<2*y;++b)f+="0123456789abcdef"[Math.floor(16*Math.random())];return f}var r=u(20);function c(){try{var y=localStorage.getItem("deviceId");return y||(y=r,localStorage.setItem("deviceId",y)),y}catch(f){return r}}function d(y,f){return f in y}var p=function(){function y(f,b,v){this.baseUrl=f,this.astJson=b,this.errClasses=v,this.extra=new Map,this.successHook=function(){},this.errorHook=function(){}}return y.prototype.makeRequest=function(f,b){var v,m;return n(this,void 0,void 0,function(){var C,M,O,P,N,Y=this;return h(this,function(U){switch(U.label){case 0:if(!(C=this.astJson.functionTable[f]))throw new Error("Unknown function ".concat(f));return M={},this.extra.forEach(function(G,$){M[$]=G}),O={args:(0,_.encode)(this.astJson.typeTable,"".concat(f,".args"),C.args,b),deviceInfo:{id:c(),language:navigator.language,platform:{browserUserAgent:navigator.userAgent},timezone:"object"==typeof Intl?Intl.DateTimeFormat().resolvedOptions().timeZone:null,type:"web",version:null!==(m=null===(v=document.currentScript)||void 0===v?void 0:v.getAttribute("src"))&&void 0!==m?m:""},extra:M,name:f,requestId:u(16),version:3},[4,new Promise(function(G,$){var J=new XMLHttpRequest;J.open("POST","".concat(Y.baseUrl,"/").concat(f)),J.setRequestHeader("Content-Type","application/sdkgen"),J.onreadystatechange=function(){if(4===J.readyState)try{var te=JSON.parse(J.responseText);try{d(te,"error")&&te.error?$(te.error):G(d(te,"result")?te.result:null)}catch(Fe){var he={message:"".concat(Fe),type:"Fatal"};$(he)}}catch(Fe){$(he={message:"Falha de conex\xe3o com o servidor",type:"Fatal"})}},J.send(JSON.stringify(O))}).catch(function(G){if(Y.errorHook(G,f,b),d(G,"type")&&d(G,"message")&&"string"==typeof G.type&&"string"==typeof G.message){var $=G.type in Y.errClasses?G.type:"Fatal",J=Y.errClasses[$],te=Y.astJson.errors.find(function(Fe){return Array.isArray(Fe)?Fe[0]===$:Fe===$}),he=void 0;throw(he=te&&Array.isArray(te)&&d(G,"data")?new J(G.message,(0,_.decode)(Y.astJson.typeTable,"".concat($,".data"),te[1],G.data)):new J(G.message,void 0)).type=$,he}throw G})];case 1:return P=U.sent(),N=(0,_.decode)(this.astJson.typeTable,"".concat(f,".ret"),C.ret,P),this.successHook(N,f,b),[2,N]}})})},y}();o.SdkgenHttpClient=p},4539:function(z,o,a){"use strict";var n=this&&this.__createBinding||(Object.create?function(_,u,r,c){void 0===c&&(c=r);var d=Object.getOwnPropertyDescriptor(u,r);(!d||("get"in d?!u.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return u[r]}}),Object.defineProperty(_,c,d)}:function(_,u,r,c){void 0===c&&(c=r),_[c]=u[r]}),h=this&&this.__exportStar||function(_,u){for(var r in _)"default"!==r&&!Object.prototype.hasOwnProperty.call(u,r)&&n(u,_,r)};Object.defineProperty(o,"__esModule",{value:!0}),h(a(2837),o),h(a(2062),o)},602:function(z,o,a){var n;!function(h){"use strict";var v,_=1e9,u={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},r=!0,c="[DecimalError] ",d=c+"Invalid argument: ",p=c+"Exponent out of range: ",y=Math.floor,f=Math.pow,b=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,m=1e7,M=9007199254740991,O=y(M/7),P={};function N(V,H){var re,B,ue,ge,Te,Pe,Ce,$e,lt=V.constructor,yt=lt.precision;if(!V.s||!H.s)return H.s||(H=new lt(V)),r?be(H,yt):H;if($e=H.d,Te=V.e,ue=H.e,Ce=(Ce=V.d).slice(),ge=Te-ue){for(ge<0?(B=Ce,ge=-ge,Pe=$e.length):(B=$e,ue=Te,Pe=Ce.length),ge>(Pe=(Te=Math.ceil(yt/7))>Pe?Te+1:Pe+1)&&(ge=Pe,B.length=1),B.reverse();ge--;)B.push(0);B.reverse()}for((Pe=Ce.length)-(ge=$e.length)<0&&(ge=Pe,B=$e,$e=Ce,Ce=B),re=0;ge;)re=(Ce[--ge]=Ce[ge]+$e[ge]+re)/m|0,Ce[ge]%=m;for(re&&(Ce.unshift(re),++ue),Pe=Ce.length;0==Ce[--Pe];)Ce.pop();return H.d=Ce,H.e=ue,r?be(H,yt):H}function Y(V,H,re){if(V!==~~V||V<H||V>re)throw Error(d+V)}function U(V){var H,re,B,ue=V.length-1,ge="",Te=V[0];if(ue>0){for(ge+=Te,H=1;H<ue;H++)(re=7-(B=V[H]+"").length)&&(ge+=he(re)),ge+=B;(re=7-(B=(Te=V[H])+"").length)&&(ge+=he(re))}else if(0===Te)return"0";for(;Te%10==0;)Te/=10;return ge+Te}P.absoluteValue=P.abs=function(){var V=new this.constructor(this);return V.s&&(V.s=1),V},P.comparedTo=P.cmp=function(V){var H,re,B,ue,ge=this;if(V=new ge.constructor(V),ge.s!==V.s)return ge.s||-V.s;if(ge.e!==V.e)return ge.e>V.e^ge.s<0?1:-1;for(H=0,re=(B=ge.d.length)<(ue=V.d.length)?B:ue;H<re;++H)if(ge.d[H]!==V.d[H])return ge.d[H]>V.d[H]^ge.s<0?1:-1;return B===ue?0:B>ue^ge.s<0?1:-1},P.decimalPlaces=P.dp=function(){var V=this,H=V.d.length-1,re=7*(H-V.e);if(H=V.d[H])for(;H%10==0;H/=10)re--;return re<0?0:re},P.dividedBy=P.div=function(V){return G(this,new this.constructor(V))},P.dividedToIntegerBy=P.idiv=function(V){var re=this.constructor;return be(G(this,new re(V),0,1),re.precision)},P.equals=P.eq=function(V){return!this.cmp(V)},P.exponent=function(){return J(this)},P.greaterThan=P.gt=function(V){return this.cmp(V)>0},P.greaterThanOrEqualTo=P.gte=function(V){return this.cmp(V)>=0},P.isInteger=P.isint=function(){return this.e>this.d.length-2},P.isNegative=P.isneg=function(){return this.s<0},P.isPositive=P.ispos=function(){return this.s>0},P.isZero=function(){return 0===this.s},P.lessThan=P.lt=function(V){return this.cmp(V)<0},P.lessThanOrEqualTo=P.lte=function(V){return this.cmp(V)<1},P.logarithm=P.log=function(V){var H,re=this,B=re.constructor,ue=B.precision,ge=ue+5;if(void 0===V)V=new B(10);else if((V=new B(V)).s<1||V.eq(v))throw Error(c+"NaN");if(re.s<1)throw Error(c+(re.s?"NaN":"-Infinity"));return re.eq(v)?new B(0):(r=!1,H=G(Fe(re,ge),Fe(V,ge),ge),r=!0,be(H,ue))},P.minus=P.sub=function(V){var H=this;return V=new H.constructor(V),H.s==V.s?ke(H,V):N(H,(V.s=-V.s,V))},P.modulo=P.mod=function(V){var H,re=this,B=re.constructor,ue=B.precision;if(!(V=new B(V)).s)throw Error(c+"NaN");return re.s?(r=!1,H=G(re,V,0,1).times(V),r=!0,re.minus(H)):be(new B(re),ue)},P.naturalExponential=P.exp=function(){return $(this)},P.naturalLogarithm=P.ln=function(){return Fe(this)},P.negated=P.neg=function(){var V=new this.constructor(this);return V.s=-V.s||0,V},P.plus=P.add=function(V){var H=this;return V=new H.constructor(V),H.s==V.s?N(H,V):ke(H,(V.s=-V.s,V))},P.precision=P.sd=function(V){var H,re,B;if(void 0!==V&&V!==!!V&&1!==V&&0!==V)throw Error(d+V);if(H=J(this)+1,re=7*(B=this.d.length-1)+1,B=this.d[B]){for(;B%10==0;B/=10)re--;for(B=this.d[0];B>=10;B/=10)re++}return V&&H>re?H:re},P.squareRoot=P.sqrt=function(){var V,H,re,B,ue,ge,Te,Pe=this,Ce=Pe.constructor;if(Pe.s<1){if(!Pe.s)return new Ce(0);throw Error(c+"NaN")}for(V=J(Pe),r=!1,0==(ue=Math.sqrt(+Pe))||ue==1/0?(((H=U(Pe.d)).length+V)%2==0&&(H+="0"),ue=Math.sqrt(H),V=y((V+1)/2)-(V<0||V%2),B=new Ce(H=ue==1/0?"5e"+V:(H=ue.toExponential()).slice(0,H.indexOf("e")+1)+V)):B=new Ce(ue.toString()),ue=Te=(re=Ce.precision)+3;;)if(B=(ge=B).plus(G(Pe,ge,Te+2)).times(.5),U(ge.d).slice(0,Te)===(H=U(B.d)).slice(0,Te)){if(H=H.slice(Te-3,Te+1),ue==Te&&"4999"==H){if(be(ge,re+1,0),ge.times(ge).eq(Pe)){B=ge;break}}else if("9999"!=H)break;Te+=4}return r=!0,be(B,re)},P.times=P.mul=function(V){var H,re,B,ue,ge,Te,Pe,Ce,$e,lt=this,yt=lt.constructor,_t=lt.d,ut=(V=new yt(V)).d;if(!lt.s||!V.s)return new yt(0);for(V.s*=lt.s,re=lt.e+V.e,(Ce=_t.length)<($e=ut.length)&&(ge=_t,_t=ut,ut=ge,Te=Ce,Ce=$e,$e=Te),ge=[],B=Te=Ce+$e;B--;)ge.push(0);for(B=$e;--B>=0;){for(H=0,ue=Ce+B;ue>B;)Pe=ge[ue]+ut[B]*_t[ue-B-1]+H,ge[ue--]=Pe%m|0,H=Pe/m|0;ge[ue]=(ge[ue]+H)%m|0}for(;!ge[--Te];)ge.pop();return H?++re:ge.shift(),V.d=ge,V.e=re,r?be(V,yt.precision):V},P.toDecimalPlaces=P.todp=function(V,H){var re=this,B=re.constructor;return re=new B(re),void 0===V?re:(Y(V,0,_),void 0===H?H=B.rounding:Y(H,0,8),be(re,V+J(re)+1,H))},P.toExponential=function(V,H){var re,B=this,ue=B.constructor;return void 0===V?re=ie(B,!0):(Y(V,0,_),void 0===H?H=ue.rounding:Y(H,0,8),re=ie(B=be(new ue(B),V+1,H),!0,V+1)),re},P.toFixed=function(V,H){var re,B,ue=this,ge=ue.constructor;return void 0===V?ie(ue):(Y(V,0,_),void 0===H?H=ge.rounding:Y(H,0,8),re=ie((B=be(new ge(ue),V+J(ue)+1,H)).abs(),!1,V+J(B)+1),ue.isneg()&&!ue.isZero()?"-"+re:re)},P.toInteger=P.toint=function(){var V=this,H=V.constructor;return be(new H(V),J(V)+1,H.rounding)},P.toNumber=function(){return+this},P.toPower=P.pow=function(V){var H,re,B,ue,ge,Pe=this,Ce=Pe.constructor,lt=+(V=new Ce(V));if(!V.s)return new Ce(v);if(!(Pe=new Ce(Pe)).s){if(V.s<1)throw Error(c+"Infinity");return Pe}if(Pe.eq(v))return Pe;if(B=Ce.precision,V.eq(v))return be(Pe,B);if(ge=Pe.s,(H=V.e)>=(re=V.d.length-1)){if((re=lt<0?-lt:lt)<=M){for(ue=new Ce(v),H=Math.ceil(B/7+4),r=!1;re%2&&Ae((ue=ue.times(Pe)).d,H),0!==(re=y(re/2));)Ae((Pe=Pe.times(Pe)).d,H);return r=!0,V.s<0?new Ce(v).div(ue):be(ue,B)}}else if(ge<0)throw Error(c+"NaN");return ge=ge<0&&1&V.d[Math.max(H,re)]?-1:1,Pe.s=1,r=!1,ue=V.times(Fe(Pe,B+12)),r=!0,(ue=$(ue)).s=ge,ue},P.toPrecision=function(V,H){var re,B,ue=this,ge=ue.constructor;return void 0===V?B=ie(ue,(re=J(ue))<=ge.toExpNeg||re>=ge.toExpPos):(Y(V,1,_),void 0===H?H=ge.rounding:Y(H,0,8),B=ie(ue=be(new ge(ue),V,H),V<=(re=J(ue))||re<=ge.toExpNeg,V)),B},P.toSignificantDigits=P.tosd=function(V,H){var B=this.constructor;return void 0===V?(V=B.precision,H=B.rounding):(Y(V,1,_),void 0===H?H=B.rounding:Y(H,0,8)),be(new B(this),V,H)},P.toString=P.valueOf=P.val=P.toJSON=function(){var V=this,H=J(V),re=V.constructor;return ie(V,H<=re.toExpNeg||H>=re.toExpPos)};var G=function(){function V(B,ue){var ge,Te=0,Pe=B.length;for(B=B.slice();Pe--;)B[Pe]=(ge=B[Pe]*ue+Te)%m|0,Te=ge/m|0;return Te&&B.unshift(Te),B}function H(B,ue,ge,Te){var Pe,Ce;if(ge!=Te)Ce=ge>Te?1:-1;else for(Pe=Ce=0;Pe<ge;Pe++)if(B[Pe]!=ue[Pe]){Ce=B[Pe]>ue[Pe]?1:-1;break}return Ce}function re(B,ue,ge){for(var Te=0;ge--;)B[ge]-=Te,B[ge]=(Te=B[ge]<ue[ge]?1:0)*m+B[ge]-ue[ge];for(;!B[0]&&B.length>1;)B.shift()}return function(B,ue,ge,Te){var Pe,Ce,$e,lt,yt,_t,ut,He,Ie,je,pe,Qe,Ve,Ke,K,we,ze,Be,We=B.constructor,_e=B.s==ue.s?1:-1,Ue=B.d,dt=ue.d;if(!B.s)return new We(B);if(!ue.s)throw Error(c+"Division by zero");for(Ce=B.e-ue.e,ze=dt.length,K=Ue.length,He=(ut=new We(_e)).d=[],$e=0;dt[$e]==(Ue[$e]||0);)++$e;if(dt[$e]>(Ue[$e]||0)&&--Ce,(Qe=null==ge?ge=We.precision:Te?ge+(J(B)-J(ue))+1:ge)<0)return new We(0);if(Qe=Qe/7+2|0,$e=0,1==ze)for(lt=0,dt=dt[0],Qe++;($e<K||lt)&&Qe--;$e++)He[$e]=(Ve=lt*m+(Ue[$e]||0))/dt|0,lt=Ve%dt|0;else{for((lt=m/(dt[0]+1)|0)>1&&(dt=V(dt,lt),Ue=V(Ue,lt),ze=dt.length,K=Ue.length),Ke=ze,je=(Ie=Ue.slice(0,ze)).length;je<ze;)Ie[je++]=0;(Be=dt.slice()).unshift(0),we=dt[0],dt[1]>=m/2&&++we;do{lt=0,(Pe=H(dt,Ie,ze,je))<0?(pe=Ie[0],ze!=je&&(pe=pe*m+(Ie[1]||0)),(lt=pe/we|0)>1?(lt>=m&&(lt=m-1),1==(Pe=H(yt=V(dt,lt),Ie,_t=yt.length,je=Ie.length))&&(lt--,re(yt,ze<_t?Be:dt,_t))):(0==lt&&(Pe=lt=1),yt=dt.slice()),(_t=yt.length)<je&&yt.unshift(0),re(Ie,yt,je),-1==Pe&&(Pe=H(dt,Ie,ze,je=Ie.length))<1&&(lt++,re(Ie,ze<je?Be:dt,je)),je=Ie.length):0===Pe&&(lt++,Ie=[0]),He[$e++]=lt,Pe&&Ie[0]?Ie[je++]=Ue[Ke]||0:(Ie=[Ue[Ke]],je=1)}while((Ke++<K||void 0!==Ie[0])&&Qe--)}return He[0]||He.shift(),ut.e=Ce,be(ut,Te?ge+J(ut)+1:ge)}}();function $(V,H){var re,ue,ge,Te,Pe,Ce=0,$e=0,lt=V.constructor,yt=lt.precision;if(J(V)>16)throw Error(p+J(V));if(!V.s)return new lt(v);for(null==H?(r=!1,Pe=yt):Pe=H,Te=new lt(.03125);V.abs().gte(.1);)V=V.times(Te),$e+=5;for(Pe+=Math.log(f(2,$e))/Math.LN10*2+5|0,re=ue=ge=new lt(v),lt.precision=Pe;;){if(ue=be(ue.times(V),Pe),re=re.times(++Ce),U((Te=ge.plus(G(ue,re,Pe))).d).slice(0,Pe)===U(ge.d).slice(0,Pe)){for(;$e--;)ge=be(ge.times(ge),Pe);return lt.precision=yt,null==H?(r=!0,be(ge,yt)):ge}ge=Te}}function J(V){for(var H=7*V.e,re=V.d[0];re>=10;re/=10)H++;return H}function te(V,H,re){if(H>V.LN10.sd())throw r=!0,re&&(V.precision=re),Error(c+"LN10 precision limit exceeded");return be(new V(V.LN10),H)}function he(V){for(var H="";V--;)H+="0";return H}function Fe(V,H){var re,B,ue,ge,Te,Pe,Ce,$e,lt,yt=1,ut=V,He=ut.d,Ie=ut.constructor,je=Ie.precision;if(ut.s<1)throw Error(c+(ut.s?"NaN":"-Infinity"));if(ut.eq(v))return new Ie(0);if(null==H?(r=!1,$e=je):$e=H,ut.eq(10))return null==H&&(r=!0),te(Ie,$e);if(Ie.precision=$e+=10,B=(re=U(He)).charAt(0),ge=J(ut),!(Math.abs(ge)<15e14))return Ce=te(Ie,$e+2,je).times(ge+""),ut=Fe(new Ie(B+"."+re.slice(1)),$e-10).plus(Ce),Ie.precision=je,null==H?(r=!0,be(ut,je)):ut;for(;B<7&&1!=B||1==B&&re.charAt(1)>3;)B=(re=U((ut=ut.times(V)).d)).charAt(0),yt++;for(ge=J(ut),B>1?(ut=new Ie("0."+re),ge++):ut=new Ie(B+"."+re.slice(1)),Pe=Te=ut=G(ut.minus(v),ut.plus(v),$e),lt=be(ut.times(ut),$e),ue=3;;){if(Te=be(Te.times(lt),$e),U((Ce=Pe.plus(G(Te,new Ie(ue),$e))).d).slice(0,$e)===U(Pe.d).slice(0,$e))return Pe=Pe.times(2),0!==ge&&(Pe=Pe.plus(te(Ie,$e+2,je).times(ge+""))),Pe=G(Pe,new Ie(yt),$e),Ie.precision=je,null==H?(r=!0,be(Pe,je)):Pe;Pe=Ce,ue+=2}}function it(V,H){var re,B,ue;for((re=H.indexOf("."))>-1&&(H=H.replace(".","")),(B=H.search(/e/i))>0?(re<0&&(re=B),re+=+H.slice(B+1),H=H.substring(0,B)):re<0&&(re=H.length),B=0;48===H.charCodeAt(B);)++B;for(ue=H.length;48===H.charCodeAt(ue-1);)--ue;if(H=H.slice(B,ue)){if(ue-=B,V.e=y((re=re-B-1)/7),V.d=[],B=(re+1)%7,re<0&&(B+=7),B<ue){for(B&&V.d.push(+H.slice(0,B)),ue-=7;B<ue;)V.d.push(+H.slice(B,B+=7));B=7-(H=H.slice(B)).length}else B-=ue;for(;B--;)H+="0";if(V.d.push(+H),r&&(V.e>O||V.e<-O))throw Error(p+re)}else V.s=0,V.e=0,V.d=[0];return V}function be(V,H,re){var B,ue,ge,Te,Pe,Ce,$e,lt,yt=V.d;for(Te=1,ge=yt[0];ge>=10;ge/=10)Te++;if((B=H-Te)<0)B+=7,ue=H,$e=yt[lt=0];else{if((lt=Math.ceil((B+1)/7))>=(ge=yt.length))return V;for($e=ge=yt[lt],Te=1;ge>=10;ge/=10)Te++;ue=(B%=7)-7+Te}if(void 0!==re&&(Pe=$e/(ge=f(10,Te-ue-1))%10|0,Ce=H<0||void 0!==yt[lt+1]||$e%ge,Ce=re<4?(Pe||Ce)&&(0==re||re==(V.s<0?3:2)):Pe>5||5==Pe&&(4==re||Ce||6==re&&(B>0?ue>0?$e/f(10,Te-ue):0:yt[lt-1])%10&1||re==(V.s<0?8:7))),H<1||!yt[0])return Ce?(ge=J(V),yt.length=1,yt[0]=f(10,(7-(H=H-ge-1)%7)%7),V.e=y(-H/7)||0):(yt.length=1,yt[0]=V.e=V.s=0),V;if(0==B?(yt.length=lt,ge=1,lt--):(yt.length=lt+1,ge=f(10,7-B),yt[lt]=ue>0?($e/f(10,Te-ue)%f(10,ue)|0)*ge:0),Ce)for(;;){if(0==lt){(yt[0]+=ge)==m&&(yt[0]=1,++V.e);break}if(yt[lt]+=ge,yt[lt]!=m)break;yt[lt--]=0,ge=1}for(B=yt.length;0===yt[--B];)yt.pop();if(r&&(V.e>O||V.e<-O))throw Error(p+J(V));return V}function ke(V,H){var re,B,ue,ge,Te,Pe,Ce,$e,lt,yt,_t=V.constructor,ut=_t.precision;if(!V.s||!H.s)return H.s?H.s=-H.s:H=new _t(V),r?be(H,ut):H;if(yt=H.d,B=H.e,$e=V.e,Ce=(Ce=V.d).slice(),Te=$e-B){for((lt=Te<0)?(re=Ce,Te=-Te,Pe=yt.length):(re=yt,B=$e,Pe=Ce.length),Te>(ue=Math.max(Math.ceil(ut/7),Pe)+2)&&(Te=ue,re.length=1),re.reverse(),ue=Te;ue--;)re.push(0);re.reverse()}else{for((lt=(ue=Ce.length)<(Pe=yt.length))&&(Pe=ue),ue=0;ue<Pe;ue++)if(Ce[ue]!=yt[ue]){lt=Ce[ue]<yt[ue];break}Te=0}for(lt&&(re=Ce,Ce=yt,yt=re,H.s=-H.s),ue=yt.length-(Pe=Ce.length);ue>0;--ue)Ce[Pe++]=0;for(ue=yt.length;ue>Te;){if(Ce[--ue]<yt[ue]){for(ge=ue;ge&&0===Ce[--ge];)Ce[ge]=m-1;--Ce[ge],Ce[ue]+=m}Ce[ue]-=yt[ue]}for(;0===Ce[--Pe];)Ce.pop();for(;0===Ce[0];Ce.shift())--B;return Ce[0]?(H.d=Ce,H.e=B,r?be(H,ut):H):new _t(0)}function ie(V,H,re){var B,ue=J(V),ge=U(V.d),Te=ge.length;return H?(re&&(B=re-Te)>0?ge=ge.charAt(0)+"."+ge.slice(1)+he(B):Te>1&&(ge=ge.charAt(0)+"."+ge.slice(1)),ge=ge+(ue<0?"e":"e+")+ue):ue<0?(ge="0."+he(-ue-1)+ge,re&&(B=re-Te)>0&&(ge+=he(B))):ue>=Te?(ge+=he(ue+1-Te),re&&(B=re-ue-1)>0&&(ge=ge+"."+he(B))):((B=ue+1)<Te&&(ge=ge.slice(0,B)+"."+ge.slice(B)),re&&(B=re-Te)>0&&(ue+1===Te&&(ge+="."),ge+=he(B))),V.s<0?"-"+ge:ge}function Ae(V,H){if(V.length>H)return V.length=H,!0}function me(V){if(!V||"object"!=typeof V)throw Error(c+"Object expected");var H,re,B,ue=["precision",1,_,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(H=0;H<ue.length;H+=3)if(void 0!==(B=V[re=ue[H]])){if(!(y(B)===B&&B>=ue[H+1]&&B<=ue[H+2]))throw Error(d+re+": "+B);this[re]=B}if(void 0!==(B=V[re="LN10"])){if(B!=Math.LN10)throw Error(d+re+": "+B);this[re]=new this(B)}return this}(u=function oe(V){var H,re,B;function ue(ge){var Te=this;if(!(Te instanceof ue))return new ue(ge);if(Te.constructor=ue,ge instanceof ue)return Te.s=ge.s,Te.e=ge.e,void(Te.d=(ge=ge.d)?ge.slice():ge);if("number"==typeof ge){if(0*ge!=0)throw Error(d+ge);if(ge>0)Te.s=1;else{if(!(ge<0))return Te.s=0,Te.e=0,void(Te.d=[0]);ge=-ge,Te.s=-1}return ge===~~ge&&ge<1e7?(Te.e=0,void(Te.d=[ge])):it(Te,ge.toString())}if("string"!=typeof ge)throw Error(d+ge);if(45===ge.charCodeAt(0)?(ge=ge.slice(1),Te.s=-1):Te.s=1,!b.test(ge))throw Error(d+ge);it(Te,ge)}if(ue.prototype=P,ue.ROUND_UP=0,ue.ROUND_DOWN=1,ue.ROUND_CEIL=2,ue.ROUND_FLOOR=3,ue.ROUND_HALF_UP=4,ue.ROUND_HALF_DOWN=5,ue.ROUND_HALF_EVEN=6,ue.ROUND_HALF_CEIL=7,ue.ROUND_HALF_FLOOR=8,ue.clone=oe,ue.config=ue.set=me,void 0===V&&(V={}),V)for(B=["precision","rounding","toExpNeg","toExpPos","LN10"],H=0;H<B.length;)V.hasOwnProperty(re=B[H++])||(V[re]=this[re]);return ue.config(V),ue}(u)).default=u.Decimal=u,v=new u(1),void 0!==(n=function(){return u}.call(o,a,o,z))&&(z.exports=n)}()},3905:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.generateCSharpServerSource=void 0;const n=a(6676),h=a(4510);o.generateCSharpServerSource=function _(u){let r="using System;\nusing System.Collections.Generic;\nusing System.Globalization;\nusing System.Numerics;\nusing System.Text.Json;\nusing System.Threading.Tasks;\nusing static Sdkgen.Runtime;\nusing static Sdkgen.Context;\nusing static Sdkgen.Helpers;\n\nnamespace SdkgenGenerated\n{\n public abstract class Api : BaseApi\n {";for(const c of u.operations){const d=c.returnType instanceof n.VoidPrimitiveType?"":`<${(0,h.generateTypeName)(c.returnType)}>`;r+=`\n public virtual Task${d} ${(0,h.capitalize)(c.name)}(${["Context ctx",...c.args.map(p=>`${(0,h.generateTypeName)(p.type)} ${(0,h.ident)(p.name)}`)].join(", ")})\n {\n return Task.FromException${d}(new FatalException("Function '${c.name}' not implemented."));\n }\n`}r+="\n public async Task ExecuteFunction(Context context_, Utf8JsonWriter resultWriter_)\n {\n switch (context_.Name)\n {";for(const c of u.operations){r+=`\n case ${JSON.stringify(c.name)}:\n {`;for(const d of c.args)r+=`\n JsonElement ${d.name}Json_;\n if (!context_.Args.TryGetValue(${JSON.stringify(d.name)}, out ${d.name}Json_))\n {\n ${d.type instanceof n.OptionalType?`${d.name}Json_ = new JsonElement();`:`throw new FatalException("'${c.name}().args.${d.name}' must be set to a value of type ${d.type.name}.");`}\n }\n ${(0,h.generateTypeName)(d.type)} ${(0,h.ident)(d.name)};\n ${(0,h.decodeType)(d.type,`${d.name}Json_`,`"${c.name}().args.${d.name}"`,(0,h.ident)(d.name)).replace(/\n/gu,"\n ")}`;r+=c.returnType instanceof n.VoidPrimitiveType?`\n await ${(0,h.capitalize)(c.name)}(${["context_",...c.args.map(d=>(0,h.ident)(d.name))].join(", ")});\n resultWriter_.WriteNullValue();`:`\n var result_ = await ${(0,h.capitalize)(c.name)}(${["context_",...c.args.map(d=>(0,h.ident)(d.name))].join(", ")});\n ${(0,h.encodeType)(c.returnType,"result_",`"${c.name}().ret"`).replace(/\n/gu,"\n ")}`,r+="\n return;\n }"}r+="\n default:\n {\n throw new FatalException($\"Unknown function '{context_.Name}'.\");\n }\n }\n }\n";for(const c of u.structTypes)r+=(0,h.generateStruct)(c);for(const c of u.enumTypes)r+=(0,h.generateEnum)(c);r+=`\n public string GetAstJson() => @"${JSON.stringify((0,n.astToJson)(u),null,4).replace(/"/gu,'""').replace(/\n/gu,"\n ")}";\n }\n`;for(const c of u.errors)r+=`\n public class ${c.name}Exception : SdkgenException\n {\n public ${c.name}Exception(string message, Exception? inner = null) : base("${c.name}", message, inner) { }\n }\n`;return r+="\n}\n",r}},4510:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.generateEnum=o.generateStruct=o.encodeType=o.decodeType=o.generateTypeName=o.capitalize=o.ident=void 0;const n=a(6676),h=["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"],_=[n.StringPrimitiveType,n.HtmlPrimitiveType,n.CpfPrimitiveType,n.CnpjPrimitiveType,n.BytesPrimitiveType,n.EmailPrimitiveType,n.UrlPrimitiveType,n.UuidPrimitiveType,n.HexPrimitiveType,n.Base64PrimitiveType,n.XmlPrimitiveType,n.StructType,n.ArrayType],u=[n.BigIntPrimitiveType,n.DatePrimitiveType,n.DateTimePrimitiveType,n.FloatPrimitiveType,n.IntPrimitiveType,n.MoneyPrimitiveType,n.DecimalPrimitiveType,n.UIntPrimitiveType];function r(v){return h.includes(v)?`@${v}`:v}function c(v){return v[0].toUpperCase()+v.slice(1)}function d(v){switch(v.constructor){case n.StringPrimitiveType:return"string";case n.IntPrimitiveType:return"int";case n.UIntPrimitiveType:return"uint";case n.FloatPrimitiveType:return"double";case n.BigIntPrimitiveType:return"BigInteger";case n.DatePrimitiveType:case n.DateTimePrimitiveType:return"DateTime";case n.BoolPrimitiveType:return"bool";case n.BytesPrimitiveType:return"byte[]";case n.MoneyPrimitiveType:case n.DecimalPrimitiveType:return"decimal";case n.CpfPrimitiveType:case n.CnpjPrimitiveType:case n.EmailPrimitiveType:case n.HtmlPrimitiveType:case n.UrlPrimitiveType:case n.UuidPrimitiveType:case n.HexPrimitiveType:case n.Base64PrimitiveType:case n.XmlPrimitiveType:return"string";case n.VoidPrimitiveType:return"void";case n.JsonPrimitiveType:return"JsonElement";case n.OptionalType:return`${d(v.base)}?`;case n.ArrayType:return`List<${d(v.base)}>`;case n.StructType:case n.EnumType:return v.name;case n.TypeReference:return d(v.type);default:throw new Error(`BUG: generateTypeName with ${v.constructor.name}`)}}function p(v,m,C,M,O=1,P=!0){switch(v.constructor){case n.IntPrimitiveType:return`\n if (${m}.ValueKind != JsonValueKind.Number || !${m}.TryGetInt32(out ${M}))\n {\n throw new FatalException($"'{${C}}' must be an integer");\n }\n `.replace(/\n {16}/gu,"\n").trim();case n.UIntPrimitiveType:return`\n if (${m}.ValueKind != JsonValueKind.Number || !${m}.TryGetUInt32(out ${M}))\n {\n throw new FatalException($"'{${C}}' must be an unsigned integer.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case n.DecimalPrimitiveType:case n.MoneyPrimitiveType:return`\n if (${m}.ValueKind != JsonValueKind.Number || !${m}.TryGetDecimal(out ${M}) || ${M} % 1 != 0)\n {\n throw new FatalException($"'{${C}}' must be an integer amount of cents.");\n }\n ${M} /= 100;\n `.replace(/\n {16}/gu,"\n").trim();case n.FloatPrimitiveType:return`\n if (${m}.ValueKind != JsonValueKind.Number || !${m}.TryGetDouble(out ${M}))\n {\n throw new FatalException($"'{${C}}' must be a floating-point number.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case n.BigIntPrimitiveType:return`\n if (${m}.ValueKind != JsonValueKind.String || !BigInteger.TryParse(${m}.GetString(), out ${M}))\n {\n throw new FatalException($"'{${C}}' must be an arbitrarily large integer in a string.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case n.StringPrimitiveType:return`\n if (${m}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${C}}' must be a string.");\n }\n ${M} = ${m}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case n.HtmlPrimitiveType:return`\n if (${m}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${C}}' must be a valid HTML string.");\n }\n ${M} = ${m}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case n.CpfPrimitiveType:return`\n if (${m}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${C}}' must be a valid CPF string.");\n }\n ${M} = ${m}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case n.CnpjPrimitiveType:return`\n if (${m}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${C}}' must be a valid CNPJ string.");\n }\n ${M} = ${m}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case n.EmailPrimitiveType:return`\n if (${m}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${C}}' must be a valid email.");\n }\n ${M} = ${m}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case n.UrlPrimitiveType:return`\n if (${m}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${C}}' must be a valid URL string.");\n }\n ${M} = ${m}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case n.UuidPrimitiveType:return`\n if (${m}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${C}}' must be a valid UUID.");\n }\n ${M} = ${m}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case n.HexPrimitiveType:return`\n if (${m}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${C}}' must be a valid hex string.");\n }\n ${M} = ${m}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case n.Base64PrimitiveType:return`\n if (${m}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${C}}' must be a base64 string.");\n }\n ${M} = ${m}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case n.XmlPrimitiveType:return`\n if (${m}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${C}}' must be a XML string.");\n }\n ${M} = ${m}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case n.BoolPrimitiveType:return`\n if (${m}.ValueKind != JsonValueKind.True && ${m}.ValueKind != JsonValueKind.False)\n {\n throw new FatalException($"'{${C}}' must be either true or false.");\n }\n ${M} = ${m}.GetBoolean();\n `.replace(/\n {16}/gu,"\n").trim();case n.BytesPrimitiveType:return`\n if (${m}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${C}}' must be a string.");\n }\n try\n {\n ${M} = Convert.FromBase64String(${m}.GetString());\n }\n catch (FormatException)\n {\n throw new FatalException($"'{${C}}' must be a base64 string.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case n.TypeReference:return p(v.type,m,C,M,O);case n.OptionalType:if(u.includes(v.base.constructor)){const N=`${M.replace(/[^0-9a-zA-Z]/gu,"")}Tmp`;return`\n if (${m}.ValueKind == JsonValueKind.Null || ${m}.ValueKind == JsonValueKind.Undefined)\n {\n ${M} = null;\n }\n else\n {\n ${d(v.base)} ${N};\n ${p(v.base,m,C,N,O,!1).replace(/\n/gu,"\n ")}\n ${M} = ${N};\n }\n `.replace(/\n {20}/gu,"\n").trim()}return`\n if (${m}.ValueKind == JsonValueKind.Null || ${m}.ValueKind == JsonValueKind.Undefined)\n {\n ${M} = null;\n }\n else\n {\n ${p(v.base,m,C,M,O,!1).replace(/\n/gu,"\n ")}\n }\n `.replace(/\n {20}/gu,"\n").trim();case n.EnumType:case n.StructType:return`${M} = Decode${v.name}(${m}, ${C});`;case n.JsonPrimitiveType:return P?`\n if (${m}.ValueKind == JsonValueKind.Null || ${m}.ValueKind == JsonValueKind.Undefined)\n {\n throw new FatalException($"'{${C}}' can't be null.");\n }\n ${M} = ${m};\n `.replace(/\n {16}/gu,"\n").trim():`${M} = ${m};`;case n.DateTimePrimitiveType:return`\n if (${m}.ValueKind != JsonValueKind.String || !(DateTime.TryParseExact(${m}.GetString(), "yyyy-MM-ddTHH:mm:ss.FFFFFFF", CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal | DateTimeStyles.AssumeUniversal, out ${M}) || DateTime.TryParseExact(${m}.GetString(), "yyyy-MM-ddTHH:mm:ss.FFFFFFF'Z'", CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal | DateTimeStyles.AssumeUniversal, out ${M})))\n {\n throw new FatalException($"'{${C}}' must be a datetime.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case n.DatePrimitiveType:return`\n if (${m}.ValueKind != JsonValueKind.String || !(DateTime.TryParseExact(${m}.GetString(), "yyyy-MM-dd", CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal | DateTimeStyles.AssumeUniversal, out ${M})))\n {\n throw new FatalException($"'{${C}}' must be a date.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case n.ArrayType:return`\n if (${m}.ValueKind != JsonValueKind.Array)\n {\n throw new FatalException($"'{${C}}' must be a date.");\n }\n ${M} = new ${d(v)}();\n for (var i${O} = 0; i${O} < ${m}.GetArrayLength(); ++i${O})\n {\n ${d(v.base)} element${O};\n ${p(v.base,`${m}[i${O}]`,`$"{${C}}[{i${O}}]"`,`element${O}`,O+1).replace(/\n/gu,"\n ")}\n ${M}.Add(element${O});\n }\n `.replace(/\n {16}/gu,"\n").trim();default:throw new Error(`BUG: decodeType with ${v.constructor.name}`)}}function y(v,m,C,M=1){switch(v.constructor){case n.StringPrimitiveType:return`resultWriter_.WriteStringValue(${m});`;case n.FloatPrimitiveType:case n.UIntPrimitiveType:case n.IntPrimitiveType:return`resultWriter_.WriteNumberValue(${m});`;case n.DecimalPrimitiveType:case n.MoneyPrimitiveType:return`resultWriter_.WriteNumberValue(Math.Round(${m} * 100));`;case n.BigIntPrimitiveType:return`resultWriter_.WriteStringValue(${m}.ToString());`;case n.BoolPrimitiveType:return`resultWriter_.WriteBooleanValue(${m});`;case n.BytesPrimitiveType:return`resultWriter_.WriteStringValue(Convert.ToBase64String(${m}));`;case n.DateTimePrimitiveType:return`resultWriter_.WriteStringValue(${m}.ToString("yyyy-MM-ddTHH:mm:ss.FFFFFF'Z'"));`;case n.DatePrimitiveType:return`resultWriter_.WriteStringValue(${m}.ToString("yyyy-MM-dd"));`;case n.CpfPrimitiveType:case n.CnpjPrimitiveType:case n.EmailPrimitiveType:case n.HtmlPrimitiveType:case n.UrlPrimitiveType:case n.UuidPrimitiveType:case n.Base64PrimitiveType:case n.HexPrimitiveType:case n.XmlPrimitiveType:return`resultWriter_.WriteStringValue(${m});`;case n.OptionalType:{let O=v.base;for(;O instanceof n.TypeReference;)O=O.type;return`\n if (${m} == null)\n {\n resultWriter_.WriteNullValue();\n }\n else\n {\n ${y(O,_.includes(O.constructor)?m:`${m}.Value`,C,M).replace(/\n/gu,"\n ")}\n }`.replace(/\n {16}/gu,"\n").trim()}case n.TypeReference:return y(v.type,m,C,M);case n.EnumType:case n.StructType:return`Encode${v.name}(${m}, resultWriter_, ${C});`;case n.JsonPrimitiveType:return`${m}.WriteTo(resultWriter_);`;case n.ArrayType:return`\n resultWriter_.WriteStartArray();\n for (var i${M} = 0; i${M} < ${m}.Count; ++i${M})\n {\n ${y(v.base,`${m}[i${M}]`,`$"{${C}}[{i${M}}]"`,M+1).replace(/\n/gu,"\n ")}\n }\n resultWriter_.WriteEndArray();\n `.replace(/\n {16}/gu,"\n").trim();default:throw new Error(`BUG: encodeType with ${v.constructor.name}`)}}o.ident=r,o.capitalize=c,o.generateTypeName=d,o.decodeType=p,o.encodeType=y,o.generateStruct=function f(v){return`\n public class ${v.name}\n {${v.fields.map(m=>`\n public ${d(m.type)} ${c(m.name)};`).join("")}\n public ${v.name}(${v.fields.map(m=>`${d(m.type)} ${r(m.name)}`).join(", ")})\n {${v.fields.map(m=>`\n ${c(m.name)} = ${r(m.name)};`).join("")}\n }\n }\n\n ${v.name} Decode${v.name}(JsonElement json_, string path_)\n {\n if (json_.ValueKind != JsonValueKind.Object)\n {\n throw new FatalException($"'{path_}' must be an object.");\n }\n${v.fields.map(m=>` JsonElement ${m.name}Json_;\n if (!json_.TryGetProperty(${JSON.stringify(m.name)}, out ${m.name}Json_))\n {\n ${m.type instanceof n.OptionalType?`${m.name}Json_ = new JsonElement();`:`throw new FatalException($"'{path_}.${m.name}' must be set to a value of type ${m.type.name}.");`}\n }\n ${d(m.type)} ${r(m.name)};\n ${p(m.type,`${m.name}Json_`,`$"{path_}.${m.name}"`,r(m.name)).replace(/\n/gu,"\n ")}`).join("\n")}\n return new ${v.name}(${v.fields.map(m=>r(m.name)).join(", ")});\n }\n\n void Encode${v.name}(${v.name} obj_, Utf8JsonWriter resultWriter_, string path_)\n {\n resultWriter_.WriteStartObject();\n ${v.fields.map(m=>`resultWriter_.WritePropertyName(${JSON.stringify(m.name)});\n ${y(m.type,`obj_.${c(m.name)}`,`$"{path_}.${m.name}"`).replace(/\n/gu,"\n ")}`).join("\n ")}\n resultWriter_.WriteEndObject();\n }\n`},o.generateEnum=function b(v){return`\n public enum ${v.name}\n {${v.values.map(({value:m})=>`\n ${c(m)}`).join(",\n ")}\n }\n\n ${v.name} Decode${v.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();${v.values.map(({value:m})=>`\n if (value == "${m}")\n {\n return ${v.name}.${c(m)};\n }`).join("")}\n throw new FatalException($"'{path_}' must be one of: (${v.values.map(({value:m})=>`'${m}'`).join(", ")}).");\n }\n\n void Encode${v.name}(${v.name} obj_, Utf8JsonWriter resultWriter_, string path_)\n {${v.values.map(({value:m})=>`\n if (obj_ == ${v.name}.${c(m)})\n {\n resultWriter_.WriteStringValue("${m}");\n }`).join("")}\n }\n`}},7179:function(z,o,a){"use strict";var n=this&&this.__createBinding||(Object.create?function(_,u,r,c){void 0===c&&(c=r);var d=Object.getOwnPropertyDescriptor(u,r);(!d||("get"in d?!u.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return u[r]}}),Object.defineProperty(_,c,d)}:function(_,u,r,c){void 0===c&&(c=r),_[c]=u[r]}),h=this&&this.__exportStar||function(_,u){for(var r in _)"default"!==r&&!Object.prototype.hasOwnProperty.call(u,r)&&n(u,_,r)};Object.defineProperty(o,"__esModule",{value:!0}),h(a(3905),o)},1911:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.generateDartClientSource=void 0;const n=a(6676),h=a(5235);o.generateDartClientSource=function _(u){let r="";r+="// ignore_for_file: constant_identifier_names\nimport 'dart:ui';\n",(0,n.hasType)(u,n.BytesPrimitiveType)&&(r+="import 'dart:typed_data';\n"),(0,n.hasType)(u,n.DecimalPrimitiveType)&&(r+="import 'package:decimal/decimal.dart';\n"),r+="import 'package:sdkgen_runtime/types.dart';\nimport 'package:sdkgen_runtime/http_client.dart';\n";for(const c of u.enumTypes)r+=(0,h.generateEnum)(c),r+="\n";for(const c of u.structTypes)r+=(0,h.generateClass)(c),r+="\n";for(const c of u.errors)r+=(0,h.generateErrorClass)(c),r+="\n";r+=`class ApiClient extends SdkgenHttpClient {\n ApiClient(String baseUrl) : super(baseUrl, _typeTable, _fnTable, _errTable);\n${u.operations.filter(c=>c.annotations.every(d=>!(d instanceof n.HiddenAnnotation))).map(c=>`\n ${c.returnType instanceof n.VoidPrimitiveType?"Future<void> ":`Future<${(0,h.generateTypeName)(c.returnType)}> `}${c.name}(${0===c.args.length?"":`{${c.args.map(d=>`${d.type instanceof n.OptionalType?"":"required "}${(0,h.generateTypeName)(d.type)} ${(0,h.mangle)(d.name)}`).join(", ")}}`}) async { ${c.returnType instanceof n.VoidPrimitiveType?"":"return "}${(0,h.cast)(`await makeRequest('${c.name}', {${c.args.map(d=>`'${d.name}': ${(0,h.mangle)(d.name)}`).join(", ")}})`,c.returnType)}; }`).join("")}\n}\n\n`,r+="var _typeTable = {\n";for(const c of u.structTypes){r+=` '${c.name}': StructTypeDescription(\n`,r+=` ${c.name},\n`,r+=" {\n";for(const d of c.fields)r+=` '${d.name}': '${d.type.name}',\n`;r+=" },\n",r+=` (Map fields) => ${c.name}(\n`;for(const d of c.fields)r+=` ${(0,h.mangle)(d.name)}: ${(0,h.cast)(`fields['${d.name}']`,d.type)},\n`;r+=" ),\n",r+=` (${c.name} obj) => ({\n`;for(const d of c.fields)r+=` '${d.name}': obj.${(0,h.mangle)(d.name)},\n`;r+=" }),\n",r+=" ),\n"}for(const c of u.enumTypes)r+=` '${c.name}': EnumTypeDescription(${c.name}, ${c.name}.values, [\n ${c.values.map(d=>`'${d.value}'`).join(",\n ")}\n ]),\n`;r+="};\n\n",r+="var _fnTable = {\n";for(const c of u.operations){r+=` '${c.name}': FunctionDescription('${c.returnType.name}', {\n`;for(const d of c.args)r+=` '${d.name}': '${d.type.name}',\n`;r+=" }),\n"}r+="};\n\n",r+="var _errTable = {\n";for(const c of u.errors)r+=` '${c.name}': SdkgenErrorDescription('${c.dataType.name}', (msg, data) => ${c.name}(msg${c.dataType instanceof n.VoidPrimitiveType?"":", data"})),\n`;return r+="};\n",r}},5235:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.generateClass=o.cast=o.generateErrorClass=o.generateTypeName=o.generateEnum=o.mangle=void 0;const n=a(6676);function h(v){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(v)?`$${v}`:v}function u(v){switch(v.constructor){case n.StringPrimitiveType:return"String";case n.IntPrimitiveType:case n.UIntPrimitiveType:return"int";case n.FloatPrimitiveType:return"double";case n.BigIntPrimitiveType:return"BigInt";case n.DatePrimitiveType:case n.DateTimePrimitiveType:return"DateTime";case n.BoolPrimitiveType:return"bool";case n.BytesPrimitiveType:return"Uint8List";case n.MoneyPrimitiveType:return"int";case n.DecimalPrimitiveType:return"Decimal";case n.CpfPrimitiveType:case n.CnpjPrimitiveType:case n.EmailPrimitiveType:case n.HtmlPrimitiveType:case n.UrlPrimitiveType:case n.UuidPrimitiveType:case n.HexPrimitiveType:case n.Base64PrimitiveType:case n.XmlPrimitiveType:return"String";case n.VoidPrimitiveType:return"void";case n.JsonPrimitiveType:return"dynamic";case n.OptionalType:return`${u(v.base)}?`;case n.ArrayType:return`List<${u(v.base)}>`;case n.StructType:case n.EnumType:return v.name;case n.TypeReference:return u(v.type);default:throw new Error(`BUG: generateTypeName with ${v.constructor.name}`)}}o.mangle=h,o.generateEnum=function _(v){return`enum ${v.name} {\n ${v.values.map(m=>m.value).join(",\n ")}\n}\n`},o.generateTypeName=u,o.generateErrorClass=function r(v){if(v.dataType instanceof n.VoidPrimitiveType)return`class ${v.name} extends SdkgenError {\n ${v.name}(String msg) : super(msg);\n}\n`;const m=u(v.dataType);return`class ${v.name} extends SdkgenErrorWithData<${m}> {\n ${v.name}(String msg, ${m} data) : super(msg, data);\n}\n`},o.cast=function c(v,m){return m instanceof n.OptionalType?`${v} == null ? null : ${c(v,m.base)}`:m instanceof n.ArrayType?`(${v} as List).map((e) => ${c("e",m.base)}).toList()`:m instanceof n.VoidPrimitiveType?v:m instanceof n.FloatPrimitiveType?`(${v} as num).toDouble()`:m instanceof n.MoneyPrimitiveType?`${v} as int`:`${v} as ${u(m)}`},o.generateClass=function b(v){return`class ${v.name} {\n ${v.fields.map(m=>`final ${u(m.type)} ${h(m.name)};`).join("\n ")}\n\n${function d(v){let m=` ${v.name}({\n`;for(const C of v.fields)m+=C.type instanceof n.OptionalType?" ":" required ",m+=`this.${h(C.name)},\n`;return m+=" });\n",m}(v)}\n${function p(v){let m=" @override\n bool operator ==(other){\n";return m+=" if (identical(this, other)) return true;\n",m+=` return ${[`other is ${v.name}`,...v.fields.map(C=>`${h(C.name)} == other.${h(C.name)}`)].join(" && ")};\n`,m+=" }\n",m}(v)}\n${function y(v){return` @override\n int get hashCode => Object.hashAllUnordered([${v.fields.map(m=>h(m.name)).join(", ")}]);\n`}(v)}\n${function f(v){return` @override\n String toString() {\n return '${v.name} { ${v.fields.map(m=>`${m.name}: $${h(m.name).startsWith("$")?`{${h(m.name)}}`:h(m.name)}`).join(", ")} }';\n }\n`}(v)}}\n`}},1823:function(z,o,a){"use strict";var n=this&&this.__createBinding||(Object.create?function(_,u,r,c){void 0===c&&(c=r);var d=Object.getOwnPropertyDescriptor(u,r);(!d||("get"in d?!u.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return u[r]}}),Object.defineProperty(_,c,d)}:function(_,u,r,c){void 0===c&&(c=r),_[c]=u[r]}),h=this&&this.__exportStar||function(_,u){for(var r in _)"default"!==r&&!Object.prototype.hasOwnProperty.call(u,r)&&n(u,_,r)};Object.defineProperty(o,"__esModule",{value:!0}),h(a(1911),o)},196:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.generateFSharpServerSource=void 0;const n=a(6676),h=a(8735);o.generateFSharpServerSource=function _(u){let r="module rec SdkgenGenerated\nopen Sdkgen.Runtime\nopen Sdkgen.Helpers\nopen Sdkgen.Context\nopen System.Threading.Tasks\nopen System.Text.Json\nopen System\nopen System.Globalization\n#if NET5_0\n// To use tasks as computation expression in .NET 5 install https://www.nuget.org/packages/TaskBuilder.fs/\nopen FSharp.Control.Tasks.V2.ContextInsensitive\n#endif\n";for(const c of u.errors)r+=`\ntype ${c.name}Exception =\n inherit SdkgenException\n\n new(message: string) = {\n inherit SdkgenException("${c.name}", message, null)\n }\n\n new(message: string, inner: Exception) = {\n inherit SdkgenException("${c.name}", message, inner)\n }\n`;for(const c of u.enumTypes)r+=`\n${(0,h.generateEnum)(c)}\n`;for(const c of u.structTypes)r+=`\n${(0,h.generateStruct)(c)}\n`;r+="\ntype Api() =";for(const c of u.operations){const d=c.returnType instanceof n.VoidPrimitiveType?"":`<${(0,h.generateTypeName)(c.returnType)}>`,p=c.args.length>0?`{| ${c.args.map(y=>`${y.name}: ${(0,h.generateTypeName)(y.type)};`).join("")} |} ->`:"";r+=`\n member val ${(0,h.capitalize)(c.name)}: Context -> ${p} Task${d} =\n fun _ -> (raise (FatalException("Function '${c.name}' not implemented.")))\n with get, set\n `}r+="\n interface BaseApi with\n member __.ExecuteFunction(context_: Context, resultWriter_: Utf8JsonWriter) : Task =\n task {\n match context_.Name with";for(const c of u.operations){r+=`\n | ${JSON.stringify(c.name)} ->`;for(const d of c.args)r+=`\n let ${d.name}Json_ =\n match context_.Args.TryGetValue(${JSON.stringify(d.name)}) with\n | true, v -> v\n | _ -> raise (FatalException("'${c.name}().args.${d.name}' must be set to a value of type ${d.type.name}."))\n\n let ${(0,h.ident)(d.name)} =\n ${(0,h.decodeType)(d.type,`${d.name}Json_`,`"${c.name}().args.${d.name}"`,(0,h.ident)(d.name)).replace(/\n/gu,"\n ")}`;r+=c.returnType instanceof n.VoidPrimitiveType?`\n\n do! (__.${(0,h.capitalize)(c.name)} context_ ${c.args.length>0?"{|":""} ${c.args.map(d=>`${d.name} = ${(0,h.ident)(d.name)}`).join("; ")} ${c.args.length>0?"|}":""})\n `:`\n\n let! result_ = (__.${(0,h.capitalize)(c.name)} context_ ${c.args.length>0?"{|":""} ${c.args.map(d=>`${d.name} = ${(0,h.ident)(d.name)}`).join("; ")} ${c.args.length>0?"|}":""})\n ${(0,h.encodeType)(c.returnType,"result_",`"${c.name}().ret"`,1,!1).replace(/\n/gu,"\n ")}`}return r+="\n\n | _ -> raise (FatalException($\"Unknown function '{context_.Name}'.\"))\n } :> Task",r+=`\n member __.GetAstJson() = """${JSON.stringify((0,n.astToJson)(u),null,4).replace(/\n/gu,"\n ")}""";`,r}},8735:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.generateEnum=o.generateStruct=o.encodeType=o.decodeType=o.generateTypeName=o.capitalize=o.ident=void 0;const n=a(6676),h=["abstract","as","base","bool","break","byte","case","catch","char","checked","class","const","continue","decimal","default","delegate","do","double","else","enum","event","explicit","extern","false","finally","fixed","float","for","foreach","goto","if","implicit","in","int","interface","internal","is","lock","long","namespace","new","null","object","operator","out","override","params","private","protected","public","readonly","ref","return","sbyte","sealed","short","sizeof","stackalloc","static","string","struct","switch","this","throw","true","try","typeof","uint","ulong","unchecked","unsafe","ushort","using","using","static","virtual","void","volatile","while","type","end","id"],u=[n.BigIntPrimitiveType,n.DatePrimitiveType,n.DateTimePrimitiveType,n.FloatPrimitiveType,n.IntPrimitiveType,n.MoneyPrimitiveType,n.UIntPrimitiveType,n.ArrayType];function r(v){return h.includes(v)?`${v}'`:v}function c(v){return v[0].toUpperCase()+v.slice(1)}function d(v){switch(v.constructor){case n.StringPrimitiveType:return"string";case n.IntPrimitiveType:return"int";case n.UIntPrimitiveType:return"uint";case n.FloatPrimitiveType:return"double";case n.BigIntPrimitiveType:return"bigint";case n.DatePrimitiveType:case n.DateTimePrimitiveType:return"DateTime";case n.BoolPrimitiveType:return"bool";case n.BytesPrimitiveType:return"byte[]";case n.MoneyPrimitiveType:return"decimal";case n.UuidPrimitiveType:return"Guid";case n.CpfPrimitiveType:case n.CnpjPrimitiveType:case n.EmailPrimitiveType:case n.HtmlPrimitiveType:case n.UrlPrimitiveType:case n.HexPrimitiveType:case n.Base64PrimitiveType:case n.XmlPrimitiveType:return"string";case n.VoidPrimitiveType:return"void";case n.JsonPrimitiveType:return"JsonElement";case n.OptionalType:return`${d(v.base)} option`;case n.ArrayType:return`${d(v.base)} list`;case n.StructType:case n.EnumType:return v.name;case n.TypeReference:return d(v.type);default:throw new Error(`BUG: generateTypeName with ${v.constructor.name}`)}}function p(v,m,C,M,O=1,P=!0){switch(v.constructor){case n.IntPrimitiveType:return`\n decodeInt32 ${m} ${C}\n `.replace(/\n {16}/gu,"\n").trim();case n.UIntPrimitiveType:return`\n decodeUInt32 ${m} ${C}\n `.replace(/\n {16}/gu,"\n").trim();case n.MoneyPrimitiveType:return`\n (decodeMoney ${m} ${C}) / 100m\n `.replace(/\n {16}/gu,"\n").trim();case n.FloatPrimitiveType:return`\n decodeFloat ${m} ${C}\n `.replace(/\n {16}/gu,"\n").trim();case n.BigIntPrimitiveType:return`\n decodeBigInt ${m} ${C}\n `.replace(/\n {16}/gu,"\n").trim();case n.StringPrimitiveType:return`\n decodeString ${m} ${C}\n `.replace(/\n {16}/gu,"\n").trim();case n.HtmlPrimitiveType:return`\n decodeHtml ${m} ${C}\n `.replace(/\n {16}/gu,"\n").trim();case n.CpfPrimitiveType:return`\n decodeCpf ${m} ${C}\n `.replace(/\n {16}/gu,"\n").trim();case n.CnpjPrimitiveType:return`\n decodeCnpj ${m} ${C}\n `.replace(/\n {16}/gu,"\n").trim();case n.EmailPrimitiveType:return`\n decodeEmail ${m} ${C}\n `.replace(/\n {16}/gu,"\n").trim();case n.UrlPrimitiveType:return`\n decodeUrl ${m} ${C}\n `.replace(/\n {16}/gu,"\n").trim();case n.UuidPrimitiveType:return`\n decodeUuid ${m} ${C}\n `.replace(/\n {16}/gu,"\n").trim();case n.HexPrimitiveType:return`\n decodeHex ${m} ${C}\n `.replace(/\n {16}/gu,"\n").trim();case n.Base64PrimitiveType:return`\n decodeBase64 ${m} ${C}\n `.replace(/\n {16}/gu,"\n").trim();case n.XmlPrimitiveType:return`\n decodeXml ${m} ${C}\n `.replace(/\n {16}/gu,"\n").trim();case n.BoolPrimitiveType:return`\n decodeBool ${m} ${C}\n `.replace(/\n {16}/gu,"\n").trim();case n.BytesPrimitiveType:return`\n decodeBytes ${m} ${C}\n `.replace(/\n {16}/gu,"\n").trim();case n.TypeReference:return p(v.type,m,C,M,O);case n.OptionalType:return u.includes(v.base.constructor)?`match ${m}.ValueKind with\n | JsonValueKind.Null | JsonValueKind.Undefined -> None\n | _ ->\n (${p(v.base,m,C,M,O,!1).replace(/\n/gu,"\n ")}) |> Some\n `.replace(/\n {16}/gu,"\n").trim():v.base instanceof n.OptionalType||v.base instanceof n.ArrayType?`\n (>.>) decodeOptional ${p(v.base,m,C,M,O,!1)}\n `.replace(/\n {16}/gu,"\n").trim():`\n decodeOptional ${p(v.base,m,C,M,O,!1)}\n `.replace(/\n {16}/gu,"\n").trim();case n.EnumType:case n.StructType:return`Decode${v.name} ${m} ${C}`;case n.JsonPrimitiveType:return P?`\n ${m}\n `.replace(/\n {16}/gu,"\n").trim():`${M} <- ${m}`;case n.DateTimePrimitiveType:return`\n decodeDateTime ${m} ${C}\n `.replace(/\n {16}/gu,"\n").trim();case n.DatePrimitiveType:return`\n decodeDate ${m} ${C}\n `.replace(/\n {16}/gu,"\n").trim();case n.ArrayType:return`\n match ${m}.ValueKind with\n | JsonValueKind.Array ->\n let mutable list_ = List.empty\n for i1 in 0 .. (${m}.GetArrayLength() - 1) do\n let item = ${m}.[i1]\n let partialResult =\n ${p(v.base,`${m}.[i1]`,`${C.slice(0,-1)}.{i1}"`,M,O,!1).replace(/\n/gu,"\n ")}\n list_ <- list_ |> List.append [ partialResult ]\n list_\n | _ -> raise (FatalException(${C.slice(0,-1)} must be an array."))\n `.replace(/\n {16}/gu,"\n").trim();default:throw new Error(`BUG: decodeType with ${v.constructor.name}`)}}function y(v,m,C,M=1,O=!0){switch(v.constructor){case n.StringPrimitiveType:return`resultWriter_.WriteStringValue(${m})`;case n.FloatPrimitiveType:case n.UIntPrimitiveType:case n.IntPrimitiveType:return`resultWriter_.WriteNumberValue(${m})`;case n.MoneyPrimitiveType:return`resultWriter_.WriteNumberValue(int (Math.Round(${m} * 100m)))`;case n.BigIntPrimitiveType:return`resultWriter_.WriteStringValue(${m}.ToString())`;case n.BoolPrimitiveType:return`resultWriter_.WriteBooleanValue(${m})`;case n.BytesPrimitiveType:return`resultWriter_.WriteStringValue(Convert.ToBase64String(${m}))`;case n.DateTimePrimitiveType:return`resultWriter_.WriteStringValue(${m}.ToString("yyyy-MM-ddTHH:mm:ss.FFFFFF'Z'"))`;case n.DatePrimitiveType:return`resultWriter_.WriteStringValue(${m}.ToString("yyyy-MM-dd"))`;case n.CpfPrimitiveType:case n.CnpjPrimitiveType:case n.EmailPrimitiveType:case n.HtmlPrimitiveType:case n.UrlPrimitiveType:case n.UuidPrimitiveType:case n.Base64PrimitiveType:case n.HexPrimitiveType:case n.XmlPrimitiveType:return`resultWriter_.WriteStringValue(${m})`;case n.OptionalType:{let P=v.base;for(;P instanceof n.TypeReference;)P=P.type;return`\n if (${m}.IsNone) then\n resultWriter_.WriteNullValue()\n else\n ${y(P,`${m}.Value`,C,M,O)}\n `.replace(/\n {14}/gu,"\n").trim()}case n.TypeReference:return y(v.type,m,C,M,O);case n.EnumType:case n.StructType:return`Encode${v.name} ${m} resultWriter_ ${C}`;case n.JsonPrimitiveType:return`${m}.WriteTo(resultWriter_)`;case n.ArrayType:return`\n resultWriter_.WriteStartArray()\n for i${M} in 0..${m}.Length - 1 do\n ${y(v.base,`${m}.[i${M}]`,`${C}`,M+1).replace(/\n/gu,"\n ")}\n resultWriter_.WriteEndArray()\n `.replace(/\n {14}/gu,"\n").trim();default:throw new Error(`BUG: encodeType with ${v.constructor.name}`)}}o.ident=r,o.capitalize=c,o.generateTypeName=d,o.decodeType=p,o.encodeType=y,o.generateStruct=function f(v){return`\ntype ${v.name} = {\n ${v.fields.map(m=>`${c(m.name)}: ${d(m.type)}`).join(";\n ")}\n} with\n static member Create (${v.fields.map(m=>`${r(m.name)}: ${d(m.type)}`).join(", ")}): ${v.name} =\n { ${v.fields.map(m=>`${c(m.name)} = ${r(m.name)}`).join("; ")} }\n\nlet Decode${v.name} (json_: JsonElement) (path_: string): ${v.name} =\n if (json_.ValueKind <> JsonValueKind.Object) then raise (FatalException($"'{path_}' must be an object."))\n ${v.fields.map(m=>`\n let ${m.name}Json_ = decodeJsonElementStrict ${JSON.stringify(m.name)} json_ $"{path_}.${m.name}"\n let ${r(m.name)} =\n ${p(m.type,`${m.name}Json_`,`$"{path_}.${m.name}"`,r(m.name)).replace(/\n/gu,"\n ")}\n `).join("")}\n { ${v.fields.map(m=>`${c(m.name)} = ${r(m.name)}`).join("; ")} }\n\nlet Encode${v.name} (obj_: ${v.name}) (resultWriter_: Utf8JsonWriter) (path_: string) =\n resultWriter_.WriteStartObject()\n ${v.fields.map(m=>`\n resultWriter_.WritePropertyName(${JSON.stringify(m.name)})\n ${y(m.type,`obj_.${c(m.name)}`,`$"{path_}.${m.name}"`).replace(/\n/gu,"\n ")}`).join("\n")}\n resultWriter_.WriteEndObject()`},o.generateEnum=function b(v){return`\ntype ${v.name} =\n ${v.values.map(({value:m})=>`| ${c(m)}`).join("\n ")}\n\nlet Decode${v.name} (json_: JsonElement) (path_: string): ${v.name} =\n if (json_.ValueKind <> JsonValueKind.String) then raise (FatalException($"'{path_}' must be a string."))\n match json_.GetString() with\n ${v.values.map(({value:m})=>`| "${m}" -> ${v.name}.${c(m)}`).join("\n ")}\n | _ -> raise (FatalException($"'{path_}' must be one of: (${v.values.map(({value:m})=>`'${m}'`).join(", ")})."))\n\nlet Encode${v.name} (obj_: ${v.name}) (resultWriter_: Utf8JsonWriter) (path_: string) =\n match obj_ with\n ${v.values.map(({value:m})=>`| ${v.name}.${c(m)} -> resultWriter_.WriteStringValue("${m}")`).join("\n ")}\n\n`}},2863:function(z,o,a){"use strict";var n=this&&this.__createBinding||(Object.create?function(_,u,r,c){void 0===c&&(c=r);var d=Object.getOwnPropertyDescriptor(u,r);(!d||("get"in d?!u.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return u[r]}}),Object.defineProperty(_,c,d)}:function(_,u,r,c){void 0===c&&(c=r),_[c]=u[r]}),h=this&&this.__exportStar||function(_,u){for(var r in _)"default"!==r&&!Object.prototype.hasOwnProperty.call(u,r)&&n(u,_,r)};Object.defineProperty(o,"__esModule",{value:!0}),h(a(196),o)},9409:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.generateAndroidClientSource=void 0;const n=a(6676),h=a(7250);o.generateAndroidClientSource=function _(u,r){let c='@file:Suppress("UNNECESSARY_SAFE_CALL")\n\nimport android.os.Parcelable\nimport kotlinx.parcelize.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 kotlinx.parcelize.RawValue\nimport java.util.*\nimport okhttp3.Interceptor\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 fingerprint: String? = null,\n httpInterceptor: Interceptor? = null,\n httpNetworkInterceptor: Interceptor? = null\n) : SdkgenHttpClient(baseUrl, applicationContext, defaultTimeoutMillis, fingerprint, httpInterceptor, httpNetworkInterceptor) {\n\n private val gson = GsonBuilder()\n .registerTypeAdapter(object : TypeToken<ByteArray>() {}.type, ByteArrayDeserializer())\n .create()\n\n';for(const y of u.enumTypes)c+=` ${(0,h.generateEnum)(y)}`,c+="\n";c+=" open class Error(val message: String? = null)\n",c+=" data class Response<T>(val error: Error?, val data: T?, val stats: CallStats?)\n\n";for(const y of u.structTypes)c+=` ${(0,h.generateClass)(y)}\n`;const d=[],p=new n.ErrorNode("Connection",new n.VoidPrimitiveType);d.push(p.name),c+=` ${(0,h.generateErrorClass)(p)}`;for(const y of u.errors)c+=` ${(0,h.generateErrorClass)(y)}`,d.push(y.name);return d.length>0&&(c+=`\n enum class ErrorType {\n ${d.join(",\n ")};\n\n fun type(): Class<out ApiClient.Error> {\n return when (this) {\n ${d.map(y=>`${y} -> ApiClient.${y}::class.java`).join("\n ")}\n else -> ApiClient.Error::class.java\n }\n }\n }\n\n`),c+=" private val sdkgenIOScope = CoroutineScope(IO + SupervisorJob())\n\n",c+=u.operations.filter(y=>y.annotations.every(f=>!(f instanceof n.HiddenAnnotation))).map(y=>{let f="";const b=[];b.push("timeoutMillis: Long? = null"),r&&b.push(`callback: ((response: Response<${(0,h.generateKotlinTypeName)(y.returnType)}>) -> Unit)? = null`);const v=y.args.map(m=>`${(0,h.mangle)(m.name)}: ${(0,h.generateKotlinTypeName)(m.type)}`).concat(b);return f+=` fun ${(0,h.mangle)(y.name)}(\n ${v.join(",\n ")}\n ): Deferred<Response<out ${(0,h.generateKotlinTypeName)(y.returnType)}>> = sdkgenIOScope.async {\n`,y.args.length>0?(f+=" val bodyArgs = JsonObject().apply {\n",f+=y.args.map(m=>` ${(0,h.generateJsonAddRepresentation)(m.type,m.name)}`).join("\n"),f+="\n }\n"):f+=" val bodyArgs: JsonObject? = null",f+="\n",f+=` val call = makeRequest("${y.name}", bodyArgs, timeoutMillis)\n`,f+=` val response: Response<${(0,h.generateKotlinTypeName)(y.returnType)}> = handleCallResponse(call)\n`,r&&(f+=" withContext(Dispatchers.Main) { callback?.invoke(response) } \n"),f+=" return@async response\n",f+=" }\n",f}).join("\n"),c+='\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',c+="}\n",c}},7250:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.generateErrorClass=o.generateClass=o.getAnnotation=o.generateEnum=o.generateJsonAddRepresentation=o.mangle=o.generateKotlinTypeName=void 0;const n=a(6676);function h(y){switch(y.constructor){case n.IntPrimitiveType:case n.UIntPrimitiveType:case n.MoneyPrimitiveType:return"Int";case n.FloatPrimitiveType:return"Double";case n.BigIntPrimitiveType:return"BigInt";case n.DatePrimitiveType:case n.DateTimePrimitiveType:return"Calendar";case n.BoolPrimitiveType:return"Boolean";case n.BytesPrimitiveType:return"ByteArray";case n.StringPrimitiveType:case n.CpfPrimitiveType:case n.CnpjPrimitiveType:case n.EmailPrimitiveType:case n.HtmlPrimitiveType:case n.UrlPrimitiveType:case n.UuidPrimitiveType:case n.HexPrimitiveType:case n.Base64PrimitiveType:case n.XmlPrimitiveType:return"String";case n.VoidPrimitiveType:return"Unit";case n.JsonPrimitiveType:return"@RawValue JsonElement";case n.OptionalType:return`${h(y.base)}?`;case n.ArrayType:return`ArrayList<${h(y.base)}>`;case n.StructType:case n.EnumType:return y.name;case n.TypeReference:return h(y.type);default:throw new Error(`BUG: generateKotlinTypeName with ${y.constructor.name}`)}}function _(y){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(y)?`_${y}`:y}function c(y,f){let b="";switch(f&&f!==_(f)&&(b+=` @SerializedName("${f}")\n`),y.constructor){case n.DatePrimitiveType:b+=" @JsonAdapter(DateAdapter::class)\n";break;case n.DateTimePrimitiveType:b+=" @JsonAdapter(DateTimeAdapter::class)\n";break;case n.ArrayType:case n.OptionalType:b+=c(y.base)}return b}o.generateKotlinTypeName=h,o.mangle=_,o.generateJsonAddRepresentation=function u(y,f){switch(y.constructor){case n.StringPrimitiveType:case n.CpfPrimitiveType:case n.CnpjPrimitiveType:case n.EmailPrimitiveType:case n.HtmlPrimitiveType:case n.UrlPrimitiveType:case n.UuidPrimitiveType:case n.HexPrimitiveType:case n.Base64PrimitiveType:case n.XmlPrimitiveType:case n.IntPrimitiveType:case n.UIntPrimitiveType:case n.MoneyPrimitiveType:case n.FloatPrimitiveType:case n.BoolPrimitiveType:return`addProperty("${f}", ${_(f)})`;case n.OptionalType:return u(y.base,f);case n.DatePrimitiveType:return`addProperty("${f}", ${_(f)}?.let { DateAdapter.sdf.format(it.time)}) `;case n.DateTimePrimitiveType:return`addProperty("${f}", ${_(f)}?.let { DateTimeAdapter.sdf.format(it.time)})`;case n.ArrayType:case n.StructType:case n.EnumType:case n.TypeReference:case n.JsonPrimitiveType:return`add("${f}", gson.toJsonTree(${_(f)}))`;case n.VoidPrimitiveType:return"";case n.BytesPrimitiveType:return`addProperty("${f}", Base64.encodeToString(${_(f)}, Base64.NO_WRAP))`;default:throw new Error(`BUG: No result found for generateJsonRepresentation with ${y.constructor.name}`)}},o.generateEnum=function r(y){let f="@Parcelize \n";return f+=` enum class ${y.name} : Parcelable { ${y.values.map(b=>_(b.value)).join(", ")} }\n`,f},o.getAnnotation=c,o.generateClass=function d(y){let f="@Parcelize\n";return f+=` data class ${y.name}(\n${y.fields.map(b=>{let v=c(b.type,b.name);return v+=` var ${_(b.name)}: ${h(b.type)}${b.type.constructor===n.OptionalType?" = null":""}`,v}).join(",\n")}\n ) : Parcelable\n`,f},o.generateErrorClass=function p(y){return`class ${y.name}(message: String) : Error(message)\n`}},7402:function(z,o,a){"use strict";var n=this&&this.__createBinding||(Object.create?function(_,u,r,c){void 0===c&&(c=r);var d=Object.getOwnPropertyDescriptor(u,r);(!d||("get"in d?!u.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return u[r]}}),Object.defineProperty(_,c,d)}:function(_,u,r,c){void 0===c&&(c=r),_[c]=u[r]}),h=this&&this.__exportStar||function(_,u){for(var r in _)"default"!==r&&!Object.prototype.hasOwnProperty.call(u,r)&&n(u,_,r)};Object.defineProperty(o,"__esModule",{value:!0}),h(a(9409),o)},1942:function(z,o,a){"use strict";var n=this&&this.__rest||function(ut,He){var Ie={};for(var je in ut)Object.prototype.hasOwnProperty.call(ut,je)&&He.indexOf(je)<0&&(Ie[je]=ut[je]);if(null!=ut&&"function"==typeof Object.getOwnPropertySymbols){var pe=0;for(je=Object.getOwnPropertySymbols(ut);pe<je.length;pe++)He.indexOf(je[pe])<0&&Object.prototype.propertyIsEnumerable.call(ut,je[pe])&&(Ie[je[pe]]=ut[je[pe]])}return Ie};Object.defineProperty(o,"__esModule",{value:!0}),o.AstRoot=o.FunctionOperation=o.TypeDefinition=o.StructType=o.TypeReference=o.Spread=o.Field=o.EnumType=o.EnumValue=o.ArrayType=o.OptionalType=o.JsonPrimitiveType=o.XmlPrimitiveType=o.Base64PrimitiveType=o.HtmlPrimitiveType=o.HexPrimitiveType=o.UuidPrimitiveType=o.UrlPrimitiveType=o.EmailPrimitiveType=o.CnpjPrimitiveType=o.CpfPrimitiveType=o.DecimalPrimitiveType=o.MoneyPrimitiveType=o.VoidPrimitiveType=o.BytesPrimitiveType=o.BoolPrimitiveType=o.DateTimePrimitiveType=o.DatePrimitiveType=o.BigIntPrimitiveType=o.FloatPrimitiveType=o.UIntPrimitiveType=o.IntPrimitiveType=o.StringPrimitiveType=o.PrimitiveType=o.StatusCodeAnnotation=o.HiddenAnnotation=o.RestAnnotation=o.ArgDescriptionAnnotation=o.ThrowsAnnotation=o.DescriptionAnnotation=o.Annotation=o.ErrorNode=o.Type=o.AstNode=void 0;const h=a(9037);class _{constructor(){this.location=new h.TokenLocation,Object.defineProperty(this,"location",{enumerable:!1})}at(He){return this.location=He.location,this}atLocation(He){return this.location=He,this}}o.AstNode=_;class u extends _{toJSON(){const He=Object.assign({},this);return n(He,["name"])}}o.Type=u,o.ErrorNode=class r extends _{constructor(He,Ie){super(),this.name=He,this.dataType=Ie,this.annotations=[]}};class c extends _{}o.Annotation=c,o.DescriptionAnnotation=class d extends c{constructor(He){super(),this.text=He}},o.ThrowsAnnotation=class p extends c{constructor(He){super(),this.error=He}},o.ArgDescriptionAnnotation=class y extends c{constructor(He,Ie){super(),this.argName=He,this.text=Ie}},o.RestAnnotation=class f extends c{constructor(He,Ie,je,pe,Qe,Ve){super(),this.method=He,this.path=Ie,this.pathVariables=je,this.queryVariables=pe,this.headers=Qe,this.bodyVariable=Ve}},o.HiddenAnnotation=class b extends c{},o.StatusCodeAnnotation=class v extends c{constructor(He){super(),this.statusCode=He}};class m extends u{toJSON(){return this.name}}o.PrimitiveType=m,o.StringPrimitiveType=class C extends m{constructor(){super(...arguments),this.name="string"}},o.IntPrimitiveType=class M extends m{constructor(){super(...arguments),this.name="int"}},o.UIntPrimitiveType=class O extends m{constructor(){super(...arguments),this.name="uint"}},o.FloatPrimitiveType=class P extends m{constructor(){super(...arguments),this.name="float"}},o.BigIntPrimitiveType=class N extends m{constructor(){super(...arguments),this.name="bigint"}},o.DatePrimitiveType=class Y extends m{constructor(){super(...arguments),this.name="date"}},o.DateTimePrimitiveType=class U extends m{constructor(){super(...arguments),this.name="datetime"}},o.BoolPrimitiveType=class G extends m{constructor(){super(...arguments),this.name="bool"}},o.BytesPrimitiveType=class $ extends m{constructor(){super(...arguments),this.name="bytes"}},o.VoidPrimitiveType=class J extends m{constructor(){super(...arguments),this.name="void"}},o.MoneyPrimitiveType=class te extends m{constructor(){super(...arguments),this.name="money"}},o.DecimalPrimitiveType=class he extends m{constructor(){super(...arguments),this.name="decimal"}},o.CpfPrimitiveType=class Fe extends m{constructor(){super(...arguments),this.name="cpf"}},o.CnpjPrimitiveType=class it extends m{constructor(){super(...arguments),this.name="cnpj"}},o.EmailPrimitiveType=class be extends m{constructor(){super(...arguments),this.name="email"}},o.UrlPrimitiveType=class ke extends m{constructor(){super(...arguments),this.name="url"}},o.UuidPrimitiveType=class ie extends m{constructor(){super(...arguments),this.name="uuid"}},o.HexPrimitiveType=class Ae extends m{constructor(){super(...arguments),this.name="hex"}},o.HtmlPrimitiveType=class oe extends m{constructor(){super(...arguments),this.name="html"}},o.Base64PrimitiveType=class me extends m{constructor(){super(...arguments),this.name="base64"}},o.XmlPrimitiveType=class V extends m{constructor(){super(...arguments),this.name="xml"}},o.JsonPrimitiveType=class H extends m{constructor(){super(...arguments),this.name="json"}},o.OptionalType=class re extends u{constructor(He){super(),this.base=He}get name(){return`${this.base.name}?`}},o.ArrayType=class B extends u{constructor(He){super(),this.base=He}get name(){return`${this.base.name}[]`}},o.EnumValue=class ue extends _{constructor(He){super(),this.value=He,this.annotations=[],this.struct=null}},o.EnumType=class ge extends u{constructor(He){super(),this.values=He}get hasStructValues(){return this.values.some(He=>null!==He.struct)}},o.Field=class Te extends _{constructor(He,Ie,je=!1){super(),this.name=He,this.type=Ie,this.secret=je,this.annotations=[]}},o.Spread=class Pe extends _{constructor(He){super(),this.typeReference=He}},o.TypeReference=class Ce extends u{constructor(He){super(),this.name=He}},o.StructType=class $e extends u{constructor(He){super(),this.fieldsAndSpreads=He,this.fields=[]}},o.TypeDefinition=class lt extends _{constructor(He,Ie){super(),this.name=He,this.type=Ie,this.annotations=[]}},o.FunctionOperation=class yt extends _{constructor(He,Ie,je){super(),this.name=He,this.fieldsAndSpreads=Ie,this.returnType=je,this.annotations=[],this.args=[]}},o.AstRoot=class _t{constructor(He=[],Ie=[],je=[]){this.typeDefinitions=He,this.operations=Ie,this.errors=je,this.structTypes=[],this.enumTypes=[],this.warnings=[]}}},9747:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.compatibilityIssues=void 0;const n=a(1942);function h(r,c,d,p){var y,f;if(d instanceof n.TypeReference)h(r,c,d.type,p);else if(p instanceof n.TypeReference)h(r,c,d,p.type);else if(d instanceof n.OptionalType||!(p instanceof n.OptionalType))if(d instanceof n.OptionalType&&p instanceof n.OptionalType)h(r,c,d.base,p.base);else{if(d instanceof n.OptionalType&&!(p instanceof n.OptionalType))return c.push(`${r} was optional, but now it isn't. If the client sends a null, it will be invalid. Add the optional annotation back.`),void h(r,c,d.base,p);if(d instanceof n.ArrayType&&p instanceof n.ArrayType)h(r,c,d.base,p.base);else if(d instanceof n.StructType&&p instanceof n.StructType)for(const b of p.fields){const v=d.fields.find(m=>m.name===b.name);if(v)h(`${r}.${v.name}`,c,v.type,b.type);else{if(b.type instanceof n.OptionalType)continue;c.push(`${r}.${b.name} didn't exist before and isn't optional. Make it optional.`)}}else if(!(d instanceof n.UIntPrimitiveType&&p instanceof n.IntPrimitiveType||d instanceof n.IntPrimitiveType&&p instanceof n.FloatPrimitiveType||d instanceof n.MoneyPrimitiveType&&p instanceof n.IntPrimitiveType||d instanceof n.MoneyPrimitiveType&&p instanceof n.UIntPrimitiveType||d instanceof n.UIntPrimitiveType&&p instanceof n.BigIntPrimitiveType||d instanceof n.IntPrimitiveType&&p instanceof n.BigIntPrimitiveType||d instanceof n.MoneyPrimitiveType&&p instanceof n.BigIntPrimitiveType||d instanceof n.BigIntPrimitiveType&&p instanceof n.StringPrimitiveType||d instanceof n.UuidPrimitiveType&&p instanceof n.StringPrimitiveType||d instanceof n.XmlPrimitiveType&&p instanceof n.StringPrimitiveType||d instanceof n.DatePrimitiveType&&p instanceof n.StringPrimitiveType||d instanceof n.DateTimePrimitiveType&&p instanceof n.StringPrimitiveType||d instanceof n.CpfPrimitiveType&&p instanceof n.StringPrimitiveType||d instanceof n.CnpjPrimitiveType&&p instanceof n.StringPrimitiveType||d instanceof n.HexPrimitiveType&&p instanceof n.StringPrimitiveType||d instanceof n.HtmlPrimitiveType&&p instanceof n.StringPrimitiveType||d instanceof n.Base64PrimitiveType&&p instanceof n.StringPrimitiveType||d instanceof n.BytesPrimitiveType&&p instanceof n.StringPrimitiveType||d instanceof n.BytesPrimitiveType&&p instanceof n.Base64PrimitiveType||d instanceof n.UrlPrimitiveType&&p instanceof n.StringPrimitiveType||d instanceof n.EmailPrimitiveType&&p instanceof n.StringPrimitiveType||d instanceof n.DecimalPrimitiveType&&p instanceof n.StringPrimitiveType||d instanceof n.EnumType&&p instanceof n.StringPrimitiveType)){if(d instanceof n.EnumType&&p instanceof n.EnumType){for(const b of d.values){const v=p.values.find(m=>m.value===b.value);v?h(`${r}.${b.value}`,c,null!==(y=b.struct)&&void 0!==y?y:new n.StructType([]),null!==(f=v.struct)&&void 0!==f?f:new n.StructType([])):c.push(`The enum at ${r} used to accept the value "${b.value}" that doesn't exist now. Clients that send it will fail.`)}return}d.constructor.name!==p.constructor.name&&c.push(`${r} was ${d.name} and now it is ${p.name}. They are not compatible.`)}}else h(r,c,d,p.base)}function _(r,c,d,p){var y,f;if(d instanceof n.TypeReference)_(r,c,d.type,p);else if(p instanceof n.TypeReference)_(r,c,d,p.type);else if(!(d instanceof n.OptionalType)||p instanceof n.OptionalType)if(d instanceof n.OptionalType&&p instanceof n.OptionalType)_(r,c,d.base,p.base);else{if(!(d instanceof n.OptionalType)&&p instanceof n.OptionalType)return c.push(`${r} wasn't optional, but now it is. If the client receives a null, it will crash. Remove the optional annotation.`),void _(r,c,d,p.base);if(d instanceof n.ArrayType&&p instanceof n.ArrayType)_(r,c,d.base,p.base);else if(d instanceof n.StructType&&p instanceof n.StructType)for(const b of d.fields){const v=p.fields.find(m=>m.name===b.name);if(v)_(`${r}.${b.name}`,c,b.type,v.type);else{if(b.type instanceof n.OptionalType)continue;c.push(`${r}.${b.name} used to exist with type ${b.type.name}, but it's now missing. Add it back.`)}}else if(!(d instanceof n.IntPrimitiveType&&p instanceof n.UIntPrimitiveType||d instanceof n.FloatPrimitiveType&&p instanceof n.IntPrimitiveType||d instanceof n.IntPrimitiveType&&p instanceof n.MoneyPrimitiveType||d instanceof n.UIntPrimitiveType&&p instanceof n.MoneyPrimitiveType||d instanceof n.BigIntPrimitiveType&&p instanceof n.UIntPrimitiveType||d instanceof n.BigIntPrimitiveType&&p instanceof n.IntPrimitiveType||d instanceof n.BigIntPrimitiveType&&p instanceof n.MoneyPrimitiveType||d instanceof n.StringPrimitiveType&&p instanceof n.BigIntPrimitiveType||d instanceof n.StringPrimitiveType&&p instanceof n.UuidPrimitiveType||d instanceof n.StringPrimitiveType&&p instanceof n.XmlPrimitiveType||d instanceof n.StringPrimitiveType&&p instanceof n.DatePrimitiveType||d instanceof n.StringPrimitiveType&&p instanceof n.DateTimePrimitiveType||d instanceof n.StringPrimitiveType&&p instanceof n.CpfPrimitiveType||d instanceof n.StringPrimitiveType&&p instanceof n.CnpjPrimitiveType||d instanceof n.StringPrimitiveType&&p instanceof n.HexPrimitiveType||d instanceof n.StringPrimitiveType&&p instanceof n.HtmlPrimitiveType||d instanceof n.StringPrimitiveType&&p instanceof n.Base64PrimitiveType||d instanceof n.StringPrimitiveType&&p instanceof n.BytesPrimitiveType||d instanceof n.Base64PrimitiveType&&p instanceof n.BytesPrimitiveType||d instanceof n.StringPrimitiveType&&p instanceof n.UrlPrimitiveType||d instanceof n.StringPrimitiveType&&p instanceof n.EmailPrimitiveType||d instanceof n.StringPrimitiveType&&p instanceof n.DecimalPrimitiveType||d instanceof n.StringPrimitiveType&&p instanceof n.EnumType)){if(d instanceof n.EnumType&&p instanceof n.EnumType){for(const b of p.values){const v=d.values.find(m=>m.value===b.value);v?_(`${r}.${b.value}`,c,null!==(y=v.struct)&&void 0!==y?y:new n.StructType([]),null!==(f=b.struct)&&void 0!==f?f:new n.StructType([])):c.push(`The enum at ${r} now has the value "${b.value}" that didn't exist before. Client will crash if it receives it`)}return}d.constructor.name!==p.constructor.name&&c.push(`${r} was ${d.name} and now it is ${p.name}. They are not compatible.`)}}else _(r,c,d.base,p)}o.compatibilityIssues=function u(r,c){const d=[];for(const p of r.operations){const y=c.operations.find(f=>f.name===p.name);if(y){_(`${p.name}.ret`,d,p.returnType,y.returnType);for(const f of y.args){const b=p.args.find(v=>v.name===f.name);if(b)h(`${p.name}.args.${b.name}`,d,b.type,f.type);else{if(f.type instanceof n.OptionalType)continue;d.push(`${p.name}.args.${f.name} didn't exist before and isn't optional. Make it optional.`)}}}else d.push(`function ${p.name} used to exist, but it's now missing. Add it back.`)}for(const p of r.errors){const y=c.errors.find(f=>f.name===p.name);!y||_(`${p.name}.data`,d,p.dataType,y.dataType)}return d}},8006:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.hasType=void 0;const n=a(3154);class h extends n.Visitor{constructor(r,c){super(r),this.type=c,this.found=!1}visit(r){r.constructor===this.type&&(this.found=!0),super.visit(r)}}o.hasType=function _(u,r){const c=new h(u,r);return c.process(),c.found}},6676:function(z,o,a){"use strict";var n=this&&this.__createBinding||(Object.create?function(c,d,p,y){void 0===y&&(y=p);var f=Object.getOwnPropertyDescriptor(d,p);(!f||("get"in f?!d.__esModule:f.writable||f.configurable))&&(f={enumerable:!0,get:function(){return d[p]}}),Object.defineProperty(c,y,f)}:function(c,d,p,y){void 0===y&&(y=p),c[y]=d[p]}),h=this&&this.__exportStar||function(c,d){for(var p in c)"default"!==p&&!Object.prototype.hasOwnProperty.call(d,p)&&n(d,c,p)};Object.defineProperty(o,"__esModule",{value:!0}),o.hasType=o.Visitor=o.jsonToAst=o.astToJson=void 0,h(a(1942),o),h(a(9747),o);var _=a(1557);Object.defineProperty(o,"astToJson",{enumerable:!0,get:function(){return _.astToJson}}),Object.defineProperty(o,"jsonToAst",{enumerable:!0,get:function(){return _.jsonToAst}}),h(a(8053),o),h(a(2701),o),h(a(9037),o);var u=a(3154);Object.defineProperty(o,"Visitor",{enumerable:!0,get:function(){return u.Visitor}});var r=a(8006);Object.defineProperty(o,"hasType",{enumerable:!0,get:function(){return r.hasType}})},1557:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.jsonToAst=o.astToJson=void 0;const n=a(1942),h=a(6758),_=a(6569);function u(p){if(p instanceof n.DescriptionAnnotation)return{type:"description",value:p.text};if(p instanceof n.ThrowsAnnotation)return{type:"throws",value:p.error};if(p instanceof n.RestAnnotation)return{type:"rest",value:{bodyVariable:p.bodyVariable,headers:[...p.headers.entries()].sort(([y],[f])=>y.localeCompare(f)),method:p.method,path:p.path,pathVariables:p.pathVariables,queryVariables:[...p.queryVariables].sort((y,f)=>y.localeCompare(f))}};if(p instanceof n.HiddenAnnotation)return{type:"hidden",value:null};if(p instanceof n.StatusCodeAnnotation)return{type:"statusCode",value:p.statusCode};throw new Error(`BUG: annotationToJson with ${p.constructor.name}`)}function r(p){switch(p.type){case"description":return new n.DescriptionAnnotation(p.value);case"throws":return new n.ThrowsAnnotation(p.value);case"rest":{const{method:y,path:f,pathVariables:b,queryVariables:v,headers:m,bodyVariable:C}=p.value;return new n.RestAnnotation(y,f,b,v,new Map(m),C)}case"hidden":return new n.HiddenAnnotation;case"statusCode":return new n.StatusCodeAnnotation(p.value);default:throw new Error(`BUG: annotationFromJson with ${p.type}`)}}o.astToJson=function c(p){var y,f,b,v;const m={},C={};function M(N){return N instanceof n.ArrayType?`${M(N.base)}[]`:N instanceof n.OptionalType?`${M(N.base)}?`:N.name}for(const{name:N,fields:Y}of p.structTypes){if(N in C)throw new Error(`Duplicate struct type ${N}`);C[N]={};const U=C[N];for(const G of Y){U[G.name]=M(G.type);for(const $ of G.annotations)if($ instanceof n.DescriptionAnnotation){const J=`type.${N}.${G.name}`;null!==(y=m[J])&&void 0!==y||(m[J]=[]),m[J].push(u($))}}}for(const{name:N,values:Y}of p.enumTypes){if(N in C)throw new Error(`Duplicate enum type ${N}`);C[N]=Y.map(U=>U.struct?[U.value,U.struct.name]:U.value)}for(const{name:N,type:Y}of p.typeDefinitions)Y instanceof n.StructType||Y instanceof n.EnumType||(C[N]=M(Y));const O={};for(const N of p.operations){const Y={};for(const U of N.args){Y[U.name]=M(U.type);for(const G of U.annotations)if(G instanceof n.DescriptionAnnotation){const $=`fn.${N.name}.${U.name}`;null!==(f=m[$])&&void 0!==f||(m[$]=[]),m[$].push(u(G))}}O[N.name]={args:Y,ret:M(N.returnType)};for(const U of N.annotations){const G=`fn.${N.name}`;null!==(b=m[G])&&void 0!==b||(m[G]=[]),m[G].push(u(U))}}const P=p.errors.map(N=>N.dataType instanceof n.VoidPrimitiveType?N.name:[N.name,N.dataType.name]);for(const N of p.errors)for(const Y of N.annotations){const U=`error.${N.name}`;null!==(v=m[U])&&void 0!==v||(m[U]=[]),m[U].push(u(Y))}return{annotations:m,errors:P,functionTable:O,typeTable:C}},o.jsonToAst=function d(p){var y,f;const b=[],v=[],m=[];function C(P,N){var Y;if("string"==typeof P){const G=_.primitiveToAstClass.get(P);return G?new G:P.endsWith("?")?new n.OptionalType(C(P.slice(0,P.length-1))):P.endsWith("[]")?new n.ArrayType(C(P.slice(0,P.length-2))):new n.TypeReference(P)}if(Array.isArray(P))return new n.EnumType(P.map(G=>{if(Array.isArray(G)){const[$,J]=G,te=new n.EnumValue($);return m.push([te,J]),te}return new n.EnumValue(G)}));const U=[];for(const G of Object.keys(P)){const $=new n.Field(G,C(P[G]));if(N){const J=`type.${N}.${G}`;for(const te of null!==(Y=p.annotations[J])&&void 0!==Y?Y:[])$.annotations.push(r(te))}U.push($)}return new n.StructType(U)}for(const[P,N]of Object.entries(p.typeTable)){const Y=C(N,P);v.push(new n.TypeDefinition(P,Y))}for(const[P,N]of Object.entries(p.functionTable)){const Y=Object.keys(N.args).map($=>{var J;const te=new n.Field($,C(N.args[$])),he=`fn.${P}.${$}`;for(const Fe of null!==(J=p.annotations[he])&&void 0!==J?J:[])te.annotations.push(r(Fe));return te}),U=new n.FunctionOperation(P,Y,C(N.ret)),G=`fn.${P}`;for(const $ of null!==(y=p.annotations[G])&&void 0!==y?y:[])U.annotations.push(r($));b.push(U)}for(const[P,N]of m){const Y=null===(f=v.find(U=>U.name===N))||void 0===f?void 0:f.type;Y instanceof n.StructType&&(P.struct=Y)}const M=p.errors.map(P=>{var N;let Y;if(Array.isArray(P)){const[G,$]=P;Y=new n.ErrorNode(G,C($))}else Y=new n.ErrorNode(P,new n.VoidPrimitiveType);const U=`error.${Y.name}`;for(const G of null!==(N=p.annotations[U])&&void 0!==N?N:[])Y.annotations.push(r(G));return Y}),O=new n.AstRoot(v,b,M);return(0,h.analyse)(O),O}},8053:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.Lexer=o.LexerError=void 0;const n=a(9037);class h extends Error{}o.LexerError=h;class _{constructor(r,c="-"){this.source=r,this.filename=c,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 r=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(),r=new n.CurlyOpenSymbolToken;break;case"}":this.nextChar(),r=new n.CurlyCloseSymbolToken;break;case"(":this.nextChar(),r=new n.ParensOpenSymbolToken;break;case")":this.nextChar(),r=new n.ParensCloseSymbolToken;break;case"?":this.nextChar(),r=new n.OptionalSymbolToken;break;case":":this.nextChar(),r=new n.ColonSymbolToken;break;case"=":this.nextChar(),r=new n.EqualSymbolToken;break;case"!":this.nextChar(),r=new n.ExclamationMarkSymbolToken;break;case",":this.nextChar(),r=new n.CommaSymbolToken;break;case"[":"]"===this.nextChar()&&(this.nextChar(),r=new n.ArraySymbolToken);break;case".":"."===this.nextChar()&&"."===this.nextChar()&&(this.nextChar(),r=new n.SpreadSymbolToken);break;case"@":{let c="\\",d=this.startPos+1;for(;"\\"===c[c.length-1];){for(c=c.slice(0,c.length-1).trim();!["\0","\n"].includes(this.nextChar()););c=`${c} ${this.source.substring(d,this.pos).trim()}`.trim(),d=this.pos+1}r=new n.AnnotationToken(c.trim());break}case'"':{const c=[];e:for(;;)switch(this.nextChar()){case"\0":break e;case"\\":switch(this.nextChar()){case"\0":break e;case"n":c.push("\n");break;case"t":c.push("\t");break;default:c.push(this.currentChar())}break;case'"':this.nextChar(),r=new n.StringLiteralToken(c.join(""));break e;default:c.push(this.currentChar())}break}default:if(/[a-zA-Z_]/u.test(this.currentChar())){for(;/[a-zA-Z0-9_]/u.test(this.nextChar()););const c=this.source.substring(this.startPos,this.pos);switch(c){case"error":r=new n.ErrorKeywordToken;break;case"enum":r=new n.EnumKeywordToken;break;case"type":r=new n.TypeKeywordToken;break;case"import":r=new n.ImportKeywordToken;break;case"fn":r=new n.FnKeywordToken;break;case"true":r=new n.TrueKeywordToken;break;case"false":r=new n.FalseKeywordToken;break;default:r=_.PRIMITIVES.has(c)?new n.PrimitiveTypeToken(c):new n.IdentifierToken(c)}}}if(null!==r)return r.location.filename=this.filename,r.location.line=this.startLine,r.location.column=this.startColumn,r;throw"\0"===this.currentChar()?new h(`Unexpected end of file at ${this.filename}`):new h(`Unexpected character ${JSON.stringify(this.currentChar())} at ${this.filename}:${this.line}:${this.column}`)}}o.Lexer=_,_.PRIMITIVES=new Set(["bool","int","uint","float","bigint","string","date","datetime","bytes","money","decimal","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:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.Parser=o.ParserError=void 0;const n=a(1942),h=a(8053),_=a(7145),u=a(6758),r=a(9037),c=a(6569);class d extends Error{}o.ParserError=d,o.Parser=class p{constructor(f){this.token=null,this.annotations=[],this.warnings=[],this.readFileSync=()=>{throw"Not implemented"};try{this.readFileSync=Object(function(){var m=new Error("Cannot find module 'fs'");throw m.code="MODULE_NOT_FOUND",m}())}catch(v){}const b=Array.isArray(f)?[...f].reverse():[f];this.lexers=b.map(v=>v instanceof h.Lexer?v:new h.Lexer(this.readFileSync(v).toString(),v)),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(f){if(!this.token)throw new d(`Expected ${Object.keys(f).map(v=>v.replace("Token","")).join(" or ")}, but found end of file`);const b=this.token.constructor.name;if(b in f)return f[b](this.token);if(f.IdentifierToken){const v=this.token.maybeAsIdentifier();if(v instanceof r.IdentifierToken)return f.IdentifierToken(v)}throw new d(`Expected ${Object.keys(f).map(v=>v.replace("Token","")).join(" or ")} at ${this.token.location}, but found ${this.token}`)}expect(f){if(null===this.token)throw new d(`Expected ${f.name.replace("Token","")}, but found end of file`);if(this.token instanceof f)return this.token;if(f===r.IdentifierToken){const b=this.token.maybeAsIdentifier();if(b instanceof r.IdentifierToken)return b}throw new d(`Expected ${f.name.replace("Token","")} at ${this.token.location}, but found ${this.token}`)}parse(){const f=[],b=[],v=[];for(this.warnings=[];this.token;)this.acceptAnnotations(),this.multiExpect({ErrorKeywordToken:()=>{v.push(this.parseError())},FnKeywordToken:()=>{f.push(this.parseOperation())},ImportKeywordToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken();const C=this.expect(r.StringLiteralToken),M=C.location.filename.replace(/[^/\\]+$/u,`${C.value}.sdkgen`);this.lexers.push(new h.Lexer(this.readFileSync(M).toString(),M)),this.nextToken()},TypeKeywordToken:()=>{b.push(this.parseTypeDefinition())}});const m=new n.AstRoot(b,f,v);return m.warnings=this.warnings,(0,u.analyse)(m),m}acceptAnnotations(){for(;this.token instanceof r.AnnotationToken;){const f=this.token.value.split(" "),b=this.token.value.slice(f[0].length).trim();switch(f[0]){case"description":this.annotations.push(new n.DescriptionAnnotation(b).at(this.token));break;case"arg":this.annotations.push(new n.ArgDescriptionAnnotation(f[1],this.token.value.slice(f[0].length+1+f[1].length).trim()).at(this.token));break;case"throws":this.annotations.push(new n.ThrowsAnnotation(b).at(this.token));break;case"rest":try{this.annotations.push((0,_.parseRestAnnotation)(b).at(this.token))}catch(v){throw new d(`${v instanceof Error?v.message:v} at ${this.token.location}`)}break;case"hidden":if(""!==b)throw new d("@hidden annotation doesn't take any argument");this.annotations.push((new n.HiddenAnnotation).at(this.token));break;case"statusCode":{const v=parseInt(b,10);if(v.toString()!==b.trim())throw new d("@statusCode annotation takes an integer as argument");this.annotations.push(new n.StatusCodeAnnotation(v).at(this.token));break}default:throw new d(`Unknown annotation '${f[0]}' at ${this.token.location}`)}this.nextToken()}}checkCannotHaveAnnotationsHere(){if(this.annotations.length>0)throw new d(`Cannot have annotations at ${this.annotations[0].location}`)}parseTypeDefinition(){const f=this.expect(r.TypeKeywordToken);this.nextToken();const b=this.expect(r.IdentifierToken),v=b.value;if(!/[A-Z]/u.test(v[0]))throw new d(`The custom type name must start with an uppercase letter, but found ${JSON.stringify(v)} at ${b.location}`);this.nextToken();const{annotations:m}=this;this.annotations=[];const C=this.parseType(),M=new n.TypeDefinition(v,C).at(f);return M.annotations=m,M}parseError(){const f=this.expect(r.ErrorKeywordToken);this.nextToken();const b=this.expect(r.IdentifierToken),v=b.value;if(!/[A-Z]/u.test(v[0]))throw new d(`Error name must start with an uppercase letter, but found ${JSON.stringify(v)} at ${b.location}`);this.nextToken();let m=new n.VoidPrimitiveType;(this.token instanceof r.CurlyOpenSymbolToken||this.token instanceof r.EnumKeywordToken||this.token instanceof r.IdentifierToken||this.token instanceof r.PrimitiveTypeToken)&&(m=this.parseType());const C=new n.ErrorNode(v,m).at(f);return C.annotations=this.annotations,this.annotations=[],C}parseOperation(){let{annotations:f}=this;this.annotations=[],this.expect(r.FnKeywordToken),this.nextToken();const b=this.expect(r.IdentifierToken).value;this.nextToken(),this.expect(r.ParensOpenSymbolToken),this.nextToken();const v=new Set,m=[];let M,C=!1;for(;!C;)this.acceptAnnotations(),this.multiExpect({ParensCloseSymbolToken:N=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),C=!0,M=N},IdentifierToken:()=>{const N=this.parseField();if(v.has(N.name))throw new d(`Cannot redeclare argument '${N.name}'`);v.add(N.name),m.push(N),this.multiExpect({ParensCloseSymbolToken:Y=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),C=!0,M=Y},CommaSymbolToken:()=>this.nextToken()})},SpreadSymbolToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken();const N=this.expect(r.IdentifierToken);if(this.nextToken(),!/[A-Z]/u.test(N.value[0]))throw new d(`Expected a type but found ${JSON.stringify(N.value)} at ${N.location}`);m.push(new n.Spread(new n.TypeReference(N.value).at(N)).at(N)),this.multiExpect({ParensCloseSymbolToken:Y=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),C=!0,M=Y},CommaSymbolToken:()=>this.nextToken()})}});for(const N of f)if(N instanceof n.ArgDescriptionAnnotation){const Y=m.find(U=>U instanceof n.Field&&U.name===N.argName);if(!Y)throw new d(`Argument '${N.argName}' not found, at ${N.location}`);Y.annotations.push(new n.DescriptionAnnotation(N.text).atLocation(N.location))}f=f.filter(N=>!(N instanceof n.ArgDescriptionAnnotation));let O=(new n.VoidPrimitiveType).at(M);this.token instanceof r.ColonSymbolToken&&(this.nextToken(),O=this.parseType());const P=new n.FunctionOperation(b,m,O);return P.annotations=f,P}parseEnum(){this.checkCannotHaveAnnotationsHere();const f=this.expect(r.EnumKeywordToken);this.nextToken(),this.expect(r.CurlyOpenSymbolToken),this.nextToken();const b=new n.EnumType([]).at(f);let v=!1;for(;!v;)this.acceptAnnotations(),this.multiExpect({CurlyCloseSymbolToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),v=!0},IdentifierToken:m=>{const C=new n.EnumValue(m.value).at(m);if(C.annotations=this.annotations,this.annotations=[],b.values.push(C),this.nextToken(),!(this.token instanceof r.ParensOpenSymbolToken))return;this.nextToken();const M=new Set,O=[];for(;this.token&&this.token.maybeAsIdentifier()instanceof r.IdentifierToken;){const P=this.parseField();if("tag"===P.name&&(P.name="_tag"),M.has(P.name))throw new d(`Cannot redeclare argument '${P.name}'`);if(M.add(P.name),O.push(P),!(this.token instanceof r.CommaSymbolToken))break;this.nextToken()}C.struct=new n.StructType(O).atLocation(C.location),this.expect(r.ParensCloseSymbolToken),this.nextToken()}});return b}parseField(){const f=this.expect(r.IdentifierToken);this.nextToken(),this.expect(r.ColonSymbolToken),this.nextToken();const{annotations:b}=this;this.annotations=[];const v=this.parseType(),m=new n.Field(f.value,v).at(f);for(m.annotations=b;this.token instanceof r.ExclamationMarkSymbolToken;){if("secret"!==(this.nextToken(),this.expect(r.IdentifierToken).value))throw new d(`Unknown field mark !${this.token.value} at ${this.token.location}`);m.secret=!0,this.nextToken()}return m}parseStruct(){const f=this.expect(r.CurlyOpenSymbolToken);this.nextToken();const b=[],v=new Set;let m=!1;for(;!m;)this.acceptAnnotations(),this.multiExpect({CurlyCloseSymbolToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),m=!0},IdentifierToken:()=>{const C=this.parseField();if(v.has(C.name))throw new d(`Cannot redeclare field '${C.name}'`);v.add(C.name),b.push(C)},SpreadSymbolToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken();const C=this.expect(r.IdentifierToken);if(this.nextToken(),!/[A-Z]/u.test(C.value[0]))throw new d(`Expected a type but found ${JSON.stringify(C.value)} at ${C.location}`);b.push(new n.Spread(new n.TypeReference(C.value).at(C)).at(C))}});return new n.StructType(b).at(f)}parseType(){this.checkCannotHaveAnnotationsHere();let f=this.multiExpect({CurlyOpenSymbolToken:()=>this.parseStruct(),EnumKeywordToken:()=>this.parseEnum(),IdentifierToken:b=>{if(this.nextToken(),!/[A-Z]/u.test(b.value[0]))throw new d(`Expected a type but found ${JSON.stringify(b.value)} at ${b.location}`);return new n.TypeReference(b.value).at(b)},PrimitiveTypeToken:b=>{this.nextToken();const v=c.primitiveToAstClass.get(b.value);if(v)return(new v).at(b);throw new d(`BUG! Should handle primitive ${b.value}`)}});for(;this.token instanceof r.ArraySymbolToken||this.token instanceof r.OptionalSymbolToken;)this.multiExpect({ArraySymbolToken:b=>f=new n.ArrayType(f).at(b),OptionalSymbolToken:b=>f=new n.OptionalType(f).at(b)}),this.nextToken();return f}}},7145:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.parseRestAnnotation=void 0;const n=a(1942);function u(c){var d;const p=new RegExp("\\{(?<name>\\w+)\\}","gu"),y=[];let f;for(;null!==(f=p.exec(c));)null!==(d=f.groups)&&void 0!==d&&d.name&&y.push(f.groups.name);return y}o.parseRestAnnotation=function r(c){const d=c.split(" "),p=d[0].toUpperCase();if(!["GET","POST","PUT","DELETE","PATCH"].includes(p))throw new Error(`Unsupported method '${p}'`);let y=d[1];if(!y.startsWith("/"))throw new Error("Invalid path");let f=[];if(y.includes("?")){const[M,...O]=y.split("?");y=M;const P=O.join("?");if(!/^\{\w+\}(?:&\{\w+\})*$/u.test(P))throw new Error("Invalid querystring on path");f=u(P)}const b=u(y),v=d.slice(2).join(" "),m=function h(c){var d;const p=new RegExp('\\[header (?<header>[^()<>@,;:\\\\"/[\\]?={}\\s\\t]+): \\{(?<name>\\w+)\\}\\]',"gu"),y=new Map;let f;for(;null!==(f=p.exec(c));)(null===(d=f.groups)||void 0===d?void 0:d.header)&&f.groups.name&&y.set(f.groups.header.toLowerCase(),f.groups.name);return y}(v),C=function _(c){var d;const p=new RegExp("\\[body \\{(?<name>\\w+)\\}\\]","u").exec(c);return null!==(d=null==p?void 0:p.groups)&&void 0!==d&&d.name?p.groups.name:null}(v);return new n.RestAnnotation(p,y,b,f,m,C)}},7629:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.CheckMultipleDeclarationVisitor=void 0;const n=a(3154),h=a(1942);o.CheckMultipleDeclarationVisitor=class _ extends n.Visitor{constructor(){super(...arguments),this.nameToType=new Map}visit(r){if(r instanceof h.TypeDefinition){const c=this.nameToType.get(r.name);if(c&&JSON.stringify(c)!==JSON.stringify(r.type))throw new n.SemanticError(`Type '${r.name}' at ${r.location} is defined multiple times (also at ${c.location})`);this.nameToType.set(r.name,r.type)}super.visit(r)}}},6153:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.GiveStructAndEnumNamesTransformer=void 0;const n=a(9989),h=a(3154),_=a(1942);o.GiveStructAndEnumNamesTransformer=class u extends n.Transformer{constructor(){super(...arguments),this.path=[],this.names=new Map}transform(c){if(c instanceof _.TypeDefinition)return this.path=[c.name],super.transform(c);if(c instanceof _.ErrorNode)return this.path=[`${c.name}Data`],super.transform(c);if(c instanceof _.FunctionOperation)return this.path=[c.name],super.transform(c);if(c instanceof _.Field)try{return this.path.push(c.name),super.transform(c)}finally{this.path.pop()}else{if(!(c instanceof _.EnumValue)){if(c instanceof _.StructType||c instanceof _.EnumType){c.name=this.path.map(p=>p[0].toUpperCase()+p.slice(1)).join("");const d=this.names.get(c.name);if(d){if(d.type.constructor!==c.constructor||JSON.stringify(d.type)!==JSON.stringify(c))throw new h.SemanticError(`The name of the type '${this.path.join(".")}' at ${c.location} will conflict with '${d.path.join(".")}' at ${d.type.location}`);return d.type}return this.names.set(c.name,{path:[...this.path],type:c}),super.transform(c)}return super.transform(c)}try{return this.path.push(c.value),super.transform(c)}finally{this.path.pop()}}}}},9471:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.MatchTypeDefinitionsVisitor=void 0;const n=a(3154),h=a(1942);o.MatchTypeDefinitionsVisitor=class _ extends n.Visitor{visit(r){if(r instanceof h.TypeReference){const c=this.root.typeDefinitions.find(d=>d.name===r.name);if(void 0===c)throw new n.SemanticError(`Could not find type '${r.name}' at ${r.location}`);r.type=c.type}super.visit(r)}}},4612:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.CheckDontReturnSecretVisitor=void 0;const n=a(3154),h=a(1942);o.CheckDontReturnSecretVisitor=class _ extends n.Visitor{constructor(){super(...arguments),this.isInReturn=!1,this.path=[],this.visited=new Set}visit(r){if(!this.visited.has(r))if(this.visited.add(r),r instanceof h.FunctionOperation)this.isInReturn=!0,this.visited.clear(),this.path.push(`${r.name}(...)`),this.visit(r.returnType),this.path.pop(),this.isInReturn=!1;else if(r instanceof h.TypeReference)this.visit(r.type);else if(r instanceof h.Field){if(this.path.push(r.name),this.isInReturn&&r.secret)throw new n.SemanticError(`Can't return a secret value at ${this.path.join(".")} at ${r.location}`);super.visit(r),this.path.pop()}else super.visit(r)}}},4978:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.ExpandSpreadsVisitor=void 0;const n=a(3154),h=a(1942);o.ExpandSpreadsVisitor=class _ extends n.Visitor{constructor(){super(...arguments),this.processed=new Set}expandSpread(r,c){const d=new Map;for(const p of c){let y;if(p instanceof h.Field)y=[p];else{const f=p.typeReference.type;if(!(f instanceof h.StructType))throw new n.SemanticError(`A spread operator can't refer to something that is not a struct, in '${p.typeReference.name}' at ${p.location}.`);this.visit(f),y=f.fields}for(const f of y){const b=d.get(f.name);b?r[b]=f:(d.set(f.name,r.length),r.push(f))}}}visit(r){if(r instanceof h.StructType){if(this.processed.has(r))return;this.processed.add(r)}super.visit(r),r instanceof h.StructType?(this.expandSpread(r.fields,r.fieldsAndSpreads),r.fieldsAndSpreads=[]):r instanceof h.FunctionOperation&&(this.expandSpread(r.args,r.fieldsAndSpreads),r.fieldsAndSpreads=[])}}},9866:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.CheckEmptyStructOrEnumVisitor=void 0;const n=a(3154),h=a(1942);o.CheckEmptyStructOrEnumVisitor=class _ extends n.Visitor{visit(r){if(super.visit(r),r instanceof h.EnumType&&0===r.values.length)throw new n.SemanticError(`Enum '${r.name}' at ${r.location} is empty`);if(r instanceof h.StructType&&0===r.fields.length)throw new n.SemanticError(`Struct '${r.name}' at ${r.location} is empty`)}}},4647:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.ValidateRecursiveTypes=void 0;const n=a(3154),h=a(1942);o.ValidateRecursiveTypes=class _ extends n.Visitor{visit(r){if(super.visit(r),r instanceof h.TypeDefinition&&this.isRecursiveType(r,r.type)){if(!(r.type instanceof h.StructType||r.type instanceof h.EnumType))throw new n.SemanticError(`Type '${r.name}' at ${r.location} is recursive but is not an struct`);if(this.isInfinitelyRecursiveType(r,r.type))throw new n.SemanticError(`Type '${r.name}' at ${r.location} is infinitely recursive`)}}isRecursiveType(r,c){return c instanceof h.TypeReference?r.name===c.name:c instanceof h.ArrayType||c instanceof h.OptionalType?this.isRecursiveType(r,c.base):c instanceof h.StructType?c.fields.some(d=>this.isRecursiveType(r,d.type)):c instanceof h.EnumType&&c.values.some(d=>d.struct&&this.isRecursiveType(r,d.struct))}isInfinitelyRecursiveType(r,c){return c instanceof h.TypeReference?c.name===r.name:c instanceof h.StructType?c.fields.some(d=>this.isInfinitelyRecursiveType(r,d.type)):c instanceof h.EnumType&&c.values.every(d=>d.struct&&this.isInfinitelyRecursiveType(r,d.struct))}}},2060:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.CollectStructAndEnumTypesVisitor=void 0;const n=a(3154),h=a(1942);o.CollectStructAndEnumTypesVisitor=class _ extends n.Visitor{constructor(){super(...arguments),this.visited=new Set}visit(r){super.visit(r),!this.visited.has(r)&&(this.visited.add(r),r instanceof h.StructType?this.root.structTypes.push(r):r instanceof h.EnumType&&this.root.enumTypes.push(r))}}},4212:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.ValidateAnnotationsVisitor=void 0;const n=a(3154),h=a(1942);function u(c){return c instanceof h.TypeReference?u(c.type):c}o.ValidateAnnotationsVisitor=class r extends n.Visitor{visit(d){if(d instanceof h.EnumValue){for(const p of d.annotations)if(!(p instanceof h.DescriptionAnnotation))throw new n.SemanticError(`Cannot have @${p.constructor.name.replace("Annotation","").toLowerCase()} at ${p.location}`)}else if(d instanceof h.TypeDefinition){for(const p of d.annotations)if(!(p instanceof h.DescriptionAnnotation))throw new n.SemanticError(`Cannot have @${p.constructor.name.replace("Annotation","").toLowerCase()} at ${p.location}`)}else if(d instanceof h.Field){for(const p of d.annotations)if(!(p instanceof h.DescriptionAnnotation))throw new n.SemanticError(`Cannot have @${p.constructor.name.replace("Annotation","").toLowerCase()} at ${p.location}`)}else if(d instanceof h.FunctionOperation){for(const p of d.annotations)if(!(p instanceof h.DescriptionAnnotation))if(p instanceof h.ThrowsAnnotation){if(!this.root.errors.some(y=>y.name===p.error))throw new n.SemanticError(`Unknown error type '${p.error}' at ${p.location}`)}else if(p instanceof h.RestAnnotation){const y=[...p.pathVariables,...p.queryVariables,...p.headers.values()];if(y.length!==new Set(y).size)throw new n.SemanticError(`Arguments must appear only once for rest annotation at ${p.location}`);for(const f of y){const b=d.args.find(m=>m.name===f);if(!b)throw new n.SemanticError(`Argument '${f}' not found at ${p.location}`);if(p.pathVariables.includes(f)&&b.type instanceof h.OptionalType)throw new n.SemanticError(`The path argument '${f}' can't be nullable at ${p.location}`);if(!((c=u(b.type instanceof h.OptionalType?b.type.base:b.type))instanceof h.BoolPrimitiveType||c instanceof h.IntPrimitiveType||c instanceof h.UIntPrimitiveType||c instanceof h.BigIntPrimitiveType||c instanceof h.FloatPrimitiveType||c instanceof h.StringPrimitiveType||c instanceof h.DatePrimitiveType||c instanceof h.DateTimePrimitiveType||c instanceof h.MoneyPrimitiveType||c instanceof h.DecimalPrimitiveType||c instanceof h.CpfPrimitiveType||c instanceof h.CnpjPrimitiveType||c instanceof h.UuidPrimitiveType||c instanceof h.HexPrimitiveType||c instanceof h.Base64PrimitiveType||c instanceof h.EnumType))throw new n.SemanticError(`Argument '${f}' can't have type '${b.type.name}' for rest annotation at ${p.location}`)}for(const f of d.args){if(!y.includes(f.name)&&p.bodyVariable!==f.name)throw new n.SemanticError(`Argument '${f.name}' is missing from the rest annotation at ${p.location}`);const b=[...p.pathVariables,...p.queryVariables];if("GET"===p.method&&b.includes(f.name)&&f.secret)throw new n.SemanticError(`Argument marked as secret cannot be used in the path or query parts of a GET endpoint at ${p.location}`)}if("GET"===p.method&&d.returnType instanceof h.VoidPrimitiveType)throw new n.SemanticError(`A GET rest endpoint must return something at ${p.location}`)}else if(!(p instanceof h.HiddenAnnotation))throw new n.SemanticError(`Cannot have @${p.constructor.name.replace("Annotation","").toLowerCase()} at ${p.location}`)}else if(d instanceof h.ErrorNode){for(const p of d.annotations){if(!(p instanceof h.StatusCodeAnnotation))throw new n.SemanticError(`Cannot have @${p.constructor.name.replace("Annotation","").toLowerCase()} at ${p.location}`);if(p.statusCode<400||p.statusCode>599)throw new n.SemanticError(`Error status code can only be 4xx or 5xx at ${p.location}`)}if(d.annotations.filter(p=>p instanceof h.StatusCodeAnnotation).length>1)throw new n.SemanticError(`Can't provide more than one status code at ${d.location}`)}var c}}},2098:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.CheckDuplicatedMembersOnEnumVisitor=void 0;const n=a(3154),h=a(1942);o.CheckDuplicatedMembersOnEnumVisitor=class _ extends n.Visitor{visit(r){if(super.visit(r),r instanceof h.EnumType&&r.values.length!==new Set(r.values.map(c=>c.value)).size)throw new n.SemanticError(`Enum '${r.name}' at ${r.location} has duplicated members`)}}},6758:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.analyse=void 0;const n=a(7629),h=a(6153),_=a(9471),u=a(4612),r=a(4978),c=a(9866),d=a(4647),p=a(2060),y=a(4212),f=a(2098),b=a(1942);o.analyse=function v(m){m.errors.some(C=>"Fatal"===C.name)||m.errors.push(new b.ErrorNode("Fatal",new b.VoidPrimitiveType)),new n.CheckMultipleDeclarationVisitor(m).process(),new h.GiveStructAndEnumNamesTransformer(m).process(),new _.MatchTypeDefinitionsVisitor(m).process(),new u.CheckDontReturnSecretVisitor(m).process(),new r.ExpandSpreadsVisitor(m).process(),new c.CheckEmptyStructOrEnumVisitor(m).process(),new d.ValidateRecursiveTypes(m).process(),new p.CollectStructAndEnumTypesVisitor(m).process(),new y.ValidateAnnotationsVisitor(m).process(),new f.CheckDuplicatedMembersOnEnumVisitor(m).process()}},9989:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.Transformer=o.SemanticError=void 0;const n=a(1942);class h extends Error{}o.SemanticError=h,o.Transformer=class _{constructor(r){this.root=r}process(){this.root.errors=this.root.errors.map(r=>this.transform(r)),this.root.typeDefinitions=this.root.typeDefinitions.map(r=>this.transform(r)),this.root.operations=this.root.operations.map(r=>this.transform(r))}transform(r){return r instanceof n.FunctionOperation?(r.args=r.args.map(c=>this.transform(c)),r.fieldsAndSpreads=r.fieldsAndSpreads.map(c=>this.transform(c)),r.returnType=this.transform(r.returnType)):r instanceof n.Field||r instanceof n.TypeDefinition?r.type=this.transform(r.type):r instanceof n.StructType?(r.fields=r.fields.map(c=>this.transform(c)),r.fieldsAndSpreads=r.fieldsAndSpreads.map(c=>this.transform(c))):r instanceof n.EnumType?r.values=r.values.map(c=>this.transform(c)):r instanceof n.EnumValue?r.struct&&(r.struct=this.transform(r.struct)):r instanceof n.ArrayType||r instanceof n.OptionalType?r.base=this.transform(r.base):r instanceof n.ErrorNode?r.dataType=this.transform(r.dataType):r instanceof n.Spread&&(r.typeReference=this.transform(r.typeReference)),r}}},3154:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.Visitor=o.SemanticError=void 0;const n=a(1942);class h extends Error{}o.SemanticError=h,o.Visitor=class _{constructor(r){this.root=r}process(){for(const r of this.root.errors)this.visit(r);for(const r of this.root.typeDefinitions)this.visit(r);for(const r of this.root.operations)this.visit(r)}visit(r){if(r instanceof n.FunctionOperation){for(const c of r.args)this.visit(c);for(const c of r.fieldsAndSpreads)this.visit(c);this.visit(r.returnType)}else if(r instanceof n.Field||r instanceof n.TypeDefinition)this.visit(r.type);else if(r instanceof n.StructType){for(const c of r.fields)this.visit(c);for(const c of r.fieldsAndSpreads)this.visit(c)}else if(r instanceof n.EnumType)for(const c of r.values)this.visit(c);else r instanceof n.EnumValue?r.struct&&this.visit(r.struct):r instanceof n.ArrayType||r instanceof n.OptionalType?this.visit(r.base):r instanceof n.ErrorNode?this.visit(r.dataType):r instanceof n.Spread&&this.visit(r.typeReference)}}},9037:(z,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.PrimitiveTypeToken=o.FalseKeywordToken=o.TrueKeywordToken=o.ErrorKeywordToken=o.FnKeywordToken=o.EnumKeywordToken=o.TypeKeywordToken=o.ImportKeywordToken=o.AnnotationToken=o.SpreadSymbolToken=o.CommaSymbolToken=o.ArraySymbolToken=o.OptionalSymbolToken=o.ColonSymbolToken=o.ParensCloseSymbolToken=o.ParensOpenSymbolToken=o.CurlyCloseSymbolToken=o.CurlyOpenSymbolToken=o.ExclamationMarkSymbolToken=o.EqualSymbolToken=o.StringLiteralToken=o.IdentifierToken=o.Token=o.TokenLocation=void 0;class a{constructor(){this.filename="?",this.line=0,this.column=0}toString(){return`${this.filename}:${this.line}:${this.column}`}}o.TokenLocation=a;class n{constructor(he=""){this.value=he,this.location=new a,Object.defineProperty(this,"location",{enumerable:!1})}maybeAsIdentifier(){return this}toString(){const he=this.constructor.name.replace("Token","");return""===this.value?he:`${he}(${JSON.stringify(this.value)})`}}o.Token=n;class h extends n{}o.IdentifierToken=h,o.StringLiteralToken=class _ extends n{},o.EqualSymbolToken=class u extends n{},o.ExclamationMarkSymbolToken=class r extends n{},o.CurlyOpenSymbolToken=class c extends n{},o.CurlyCloseSymbolToken=class d extends n{},o.ParensOpenSymbolToken=class p extends n{},o.ParensCloseSymbolToken=class y extends n{},o.ColonSymbolToken=class f extends n{},o.OptionalSymbolToken=class b extends n{},o.ArraySymbolToken=class v extends n{},o.CommaSymbolToken=class m extends n{},o.SpreadSymbolToken=class C extends n{},o.AnnotationToken=class M extends n{},o.ImportKeywordToken=class O extends n{maybeAsIdentifier(){return new h("import")}},o.TypeKeywordToken=class P extends n{maybeAsIdentifier(){return new h("type")}},o.EnumKeywordToken=class N extends n{maybeAsIdentifier(){return new h("enum")}},o.FnKeywordToken=class Y extends n{maybeAsIdentifier(){return new h("fn")}},o.ErrorKeywordToken=class U extends n{maybeAsIdentifier(){return new h("error")}},o.TrueKeywordToken=class G extends n{maybeAsIdentifier(){return new h("true")}},o.FalseKeywordToken=class $ extends n{maybeAsIdentifier(){return new h("false")}},o.PrimitiveTypeToken=class J extends n{maybeAsIdentifier(){return new h(this.value)}}},6569:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.primitiveToAstClass=void 0;const n=a(1942);o.primitiveToAstClass=new Map,o.primitiveToAstClass.set("string",n.StringPrimitiveType),o.primitiveToAstClass.set("int",n.IntPrimitiveType),o.primitiveToAstClass.set("uint",n.UIntPrimitiveType),o.primitiveToAstClass.set("date",n.DatePrimitiveType),o.primitiveToAstClass.set("datetime",n.DateTimePrimitiveType),o.primitiveToAstClass.set("float",n.FloatPrimitiveType),o.primitiveToAstClass.set("bigint",n.BigIntPrimitiveType),o.primitiveToAstClass.set("bool",n.BoolPrimitiveType),o.primitiveToAstClass.set("bytes",n.BytesPrimitiveType),o.primitiveToAstClass.set("money",n.MoneyPrimitiveType),o.primitiveToAstClass.set("decimal",n.DecimalPrimitiveType),o.primitiveToAstClass.set("cpf",n.CpfPrimitiveType),o.primitiveToAstClass.set("cnpj",n.CnpjPrimitiveType),o.primitiveToAstClass.set("email",n.EmailPrimitiveType),o.primitiveToAstClass.set("html",n.HtmlPrimitiveType),o.primitiveToAstClass.set("url",n.UrlPrimitiveType),o.primitiveToAstClass.set("uuid",n.UuidPrimitiveType),o.primitiveToAstClass.set("hex",n.HexPrimitiveType),o.primitiveToAstClass.set("base64",n.Base64PrimitiveType),o.primitiveToAstClass.set("xml",n.XmlPrimitiveType),o.primitiveToAstClass.set("json",n.JsonPrimitiveType),o.primitiveToAstClass.set("void",n.VoidPrimitiveType)},5041:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.AppComponent=void 0;const n=a(655),h=a(3075),_=a(7179),u=a(1823),r=a(2863),c=a(7402),d=a(7295),p=a(2911),y=a(4327),f=n.__importStar(a(5e3)),b=n.__importStar(a(6395)),v=n.__importStar(a(2313)),m=n.__importStar(a(3293)),C=n.__importStar(a(9808)),M=n.__importStar(a(107)),O=n.__importStar(a(7423)),P=n.__importStar(a(1451)),N=n.__importStar(a(3251)),Y=n.__importStar(a(7238)),U=n.__importStar(a(7822)),G=n.__importStar(a(2253)),$=n.__importStar(a(4264)),J=n.__importStar(a(5585));function te(V,H){1&V&&(f.\u0275\u0275elementContainerStart(0),f.\u0275\u0275text(1,"Editor Avan\xe7ado"),f.\u0275\u0275elementContainerEnd())}function he(V,H){if(1&V&&(f.\u0275\u0275elementContainerStart(0),f.\u0275\u0275elementStart(1,"span",20),f.\u0275\u0275text(2),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementContainerEnd()),2&V){const re=f.\u0275\u0275nextContext(2).$implicit;f.\u0275\u0275advance(2),f.\u0275\u0275textInterpolate1("\u25b6\xa0",re.function,"")}}function Fe(V,H){if(1&V){const re=f.\u0275\u0275getCurrentView();f.\u0275\u0275elementStart(0,"span",17),f.\u0275\u0275template(1,te,2,0,"ng-container",18),f.\u0275\u0275template(2,he,3,1,"ng-container",18),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(3,"button",19),f.\u0275\u0275listener("click",function(){f.\u0275\u0275restoreView(re);const ue=f.\u0275\u0275nextContext().$implicit,ge=f.\u0275\u0275nextContext(2);return f.\u0275\u0275resetView(ge.closeTab(ue))}),f.\u0275\u0275elementStart(4,"mat-icon"),f.\u0275\u0275text(5,"close"),f.\u0275\u0275elementEnd()()}if(2&V){const re=f.\u0275\u0275nextContext().$implicit;f.\u0275\u0275property("ngSwitch",re.type),f.\u0275\u0275advance(1),f.\u0275\u0275property("ngSwitchCase","advanced"),f.\u0275\u0275advance(1),f.\u0275\u0275property("ngSwitchCase","simple")}}function it(V,H){1&V&&(f.\u0275\u0275elementContainerStart(0),f.\u0275\u0275element(1,"app-tab-editor"),f.\u0275\u0275elementContainerEnd())}function be(V,H){if(1&V&&(f.\u0275\u0275elementContainerStart(0),f.\u0275\u0275element(1,"app-simple-call",21),f.\u0275\u0275elementContainerEnd()),2&V){const re=f.\u0275\u0275nextContext().$implicit;f.\u0275\u0275advance(1),f.\u0275\u0275property("fn",re.function)}}function ke(V,H){if(1&V&&(f.\u0275\u0275elementStart(0,"mat-tab"),f.\u0275\u0275template(1,Fe,6,3,"ng-template",16),f.\u0275\u0275elementContainerStart(2,17),f.\u0275\u0275template(3,it,2,0,"ng-container",18),f.\u0275\u0275template(4,be,2,1,"ng-container",18),f.\u0275\u0275elementContainerEnd(),f.\u0275\u0275elementEnd()),2&V){const re=H.$implicit;f.\u0275\u0275advance(2),f.\u0275\u0275property("ngSwitch",re.type),f.\u0275\u0275advance(1),f.\u0275\u0275property("ngSwitchCase","advanced"),f.\u0275\u0275advance(1),f.\u0275\u0275property("ngSwitchCase","simple")}}function ie(V,H){if(1&V){const re=f.\u0275\u0275getCurrentView();f.\u0275\u0275elementStart(0,"button",22),f.\u0275\u0275listener("click",function(){f.\u0275\u0275restoreView(re);const ue=f.\u0275\u0275nextContext(2);return f.\u0275\u0275resetView(ue.addAdvancedTab())}),f.\u0275\u0275elementStart(1,"mat-icon"),f.\u0275\u0275text(2,"add_circle"),f.\u0275\u0275elementEnd()()}}function Ae(V,H){if(1&V&&(f.\u0275\u0275elementStart(0,"button",23)(1,"mat-icon"),f.\u0275\u0275text(2,"download"),f.\u0275\u0275elementEnd()()),2&V){f.\u0275\u0275nextContext(2);const re=f.\u0275\u0275reference(5);f.\u0275\u0275property("matMenuTriggerFor",re)}}function oe(V,H){if(1&V){const re=f.\u0275\u0275getCurrentView();f.\u0275\u0275elementStart(0,"mat-tab-group",11),f.\u0275\u0275listener("selectedIndexChange",function(ue){f.\u0275\u0275restoreView(re);const ge=f.\u0275\u0275nextContext();return f.\u0275\u0275resetView(ge.selected.setValue(ue))}),f.\u0275\u0275elementStart(1,"mat-tab",12)(2,"app-tab-home",13),f.\u0275\u0275listener("runFunction",function(ue){f.\u0275\u0275restoreView(re);const ge=f.\u0275\u0275nextContext();return f.\u0275\u0275resetView(ge.addSimpleTab(ue))}),f.\u0275\u0275elementEnd()(),f.\u0275\u0275template(3,ke,5,3,"mat-tab",14),f.\u0275\u0275elementStart(4,"mat-tab",15),f.\u0275\u0275template(5,ie,3,0,"ng-template",16),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(6,"mat-tab",15),f.\u0275\u0275template(7,Ae,3,1,"ng-template",16),f.\u0275\u0275elementEnd()()}if(2&V){const re=f.\u0275\u0275nextContext();f.\u0275\u0275property("selectedIndex",re.selected.value),f.\u0275\u0275advance(3),f.\u0275\u0275property("ngForOf",re.tabs)}}class me{constructor(H,re,B){this.sdkgen=H,this.domSanitizer=re,this.matIconRegistry=B,this.selected=new h.FormControl(0),this.tabs=[{id:0,type:"advanced"}],this.tabIndex=1;for(const ue of["typescript","dot-net","kotlin","swift","dart"])this.matIconRegistry.addSvgIcon(ue,this.domSanitizer.bypassSecurityTrustResourceUrl(`assets/${ue}.svg`))}ngOnInit(){this.state$=this.sdkgen.state$.subscribe(H=>{this.state=null!=H?H:void 0})}ngOnDestroy(){var H;null===(H=this.state$)||void 0===H||H.unsubscribe()}addSimpleTab(H){this.tabs.push({id:this.tabIndex++,function:H,type:"simple"}),this.selected.setValue(this.tabs.length)}addAdvancedTab(){this.tabs.push({id:this.tabIndex++,type:"advanced"}),this.selected.setValue(this.tabs.length)}closeTab(H){this.tabs.splice(this.tabs.indexOf(H),1),this.selected.setValue(0)}downloadTarget(H){if(!this.state)return;let re,B;switch(H){case"typescript_nodeserver":re=(0,p.generateNodeServerSource)(this.state.astRoot),B="node-server.ts";break;case"typescript_nodeclient":re=(0,p.generateNodeClientSource)(this.state.astRoot),B="node-client.ts";break;case"typescript_web":re=(0,p.generateBrowserClientSource)(this.state.astRoot),B="web-client.ts";break;case"typescript_interfaces":re=(0,p.generateTypescriptInterfaces)(this.state.astRoot),B="interfaces.ts";break;case"flutter":re=(0,u.generateDartClientSource)(this.state.astRoot),B="flutter-client.dart";break;case"csharp_server":re=(0,_.generateCSharpServerSource)(this.state.astRoot),B="csharp-server.cs";break;case"fsharp_server":re=(0,r.generateFSharpServerSource)(this.state.astRoot),B="fsharp-server.fs";break;case"kotlin_android":re=(0,c.generateAndroidClientSource)(this.state.astRoot,!0),B="android-client.kt";break;case"kotlin_android_without_callbacks":re=(0,c.generateAndroidClientSource)(this.state.astRoot,!1),B="android-client-no-callbacks.kt";break;case"swift_ios":re=(0,d.generateSwiftClientSource)(this.state.astRoot,!1),B="ios-client.swift";break;case"rxswift_ios":re=(0,d.generateSwiftClientSource)(this.state.astRoot,!0),B="ios-client-rx.swift"}(0,y.saveAs)(new Blob([re],{type:"application/octet-stream"}),B)}}o.AppComponent=me,me.\u0275fac=function(H){return new(H||me)(f.\u0275\u0275directiveInject(b.SdkgenService),f.\u0275\u0275directiveInject(v.DomSanitizer),f.\u0275\u0275directiveInject(m.MatIconRegistry))},me.\u0275cmp=f.\u0275\u0275defineComponent({type:me,selectors:[["app-root"]],decls:46,vars:3,consts:[[2,"width","0","height","0","opacity","0","display","block"],["id","main-tabs","animationDuration","150ms",3,"selectedIndex","selectedIndexChange",4,"ngIf"],["downloadMenu","matMenu"],["id","download-menu-size-flow"],["mat-menu-item","","disabled",""],["mat-menu-item","",3,"click"],["svgIcon","typescript"],["svgIcon","dart"],["svgIcon","kotlin"],["svgIcon","swift"],["svgIcon","dot-net"],["id","main-tabs","animationDuration","150ms",3,"selectedIndex","selectedIndexChange"],["label","Documenta\xe7\xe3o"],[3,"runFunction"],[4,"ngFor","ngForOf"],["disabled",""],["mat-tab-label",""],[3,"ngSwitch"],[4,"ngSwitchCase"],["mat-icon-button","","matTooltip","Fechar aba",3,"click"],[1,"mono","tt-none"],[3,"fn"],["mat-icon-button","","matTooltip","Nova aba de editor avan\xe7ado",3,"click"],["mat-icon-button","",3,"matMenuTriggerFor"]],template:function(H,re){1&H&&(f.\u0275\u0275element(0,"ngx-monaco-editor",0)(1,"app-tab-nav"),f.\u0275\u0275template(2,oe,8,2,"mat-tab-group",1),f.\u0275\u0275pipe(3,"async"),f.\u0275\u0275elementStart(4,"mat-menu",null,2),f.\u0275\u0275element(6,"div",3),f.\u0275\u0275elementStart(7,"button",4),f.\u0275\u0275text(8,"Cliente"),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(9,"button",5),f.\u0275\u0275listener("click",function(){return re.downloadTarget("typescript_nodeclient")}),f.\u0275\u0275element(10,"mat-icon",6),f.\u0275\u0275text(11,"Node.js"),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(12,"button",5),f.\u0275\u0275listener("click",function(){return re.downloadTarget("typescript_web")}),f.\u0275\u0275element(13,"mat-icon",6),f.\u0275\u0275text(14,"Web"),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(15,"button",5),f.\u0275\u0275listener("click",function(){return re.downloadTarget("flutter")}),f.\u0275\u0275element(16,"mat-icon",7),f.\u0275\u0275text(17,"Flutter"),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(18,"button",5),f.\u0275\u0275listener("click",function(){return re.downloadTarget("kotlin_android")}),f.\u0275\u0275element(19,"mat-icon",8),f.\u0275\u0275text(20,"Android"),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(21,"button",5),f.\u0275\u0275listener("click",function(){return re.downloadTarget("kotlin_android_without_callbacks")}),f.\u0275\u0275element(22,"mat-icon",8),f.\u0275\u0275text(23,"Android (sem callbacks)"),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(24,"button",5),f.\u0275\u0275listener("click",function(){return re.downloadTarget("swift_ios")}),f.\u0275\u0275element(25,"mat-icon",9),f.\u0275\u0275text(26,"iOS"),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(27,"button",5),f.\u0275\u0275listener("click",function(){return re.downloadTarget("rxswift_ios")}),f.\u0275\u0275element(28,"mat-icon",9),f.\u0275\u0275text(29,"iOS (Rx)"),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(30,"button",4),f.\u0275\u0275text(31,"Servidor"),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(32,"button",5),f.\u0275\u0275listener("click",function(){return re.downloadTarget("typescript_nodeserver")}),f.\u0275\u0275element(33,"mat-icon",6),f.\u0275\u0275text(34,"Node.js"),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(35,"button",5),f.\u0275\u0275listener("click",function(){return re.downloadTarget("csharp_server")}),f.\u0275\u0275element(36,"mat-icon",10),f.\u0275\u0275text(37,"C#"),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(38,"button",5),f.\u0275\u0275listener("click",function(){return re.downloadTarget("fsharp_server")}),f.\u0275\u0275element(39,"mat-icon",10),f.\u0275\u0275text(40,"F#"),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(41,"button",4),f.\u0275\u0275text(42,"Outros"),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(43,"button",5),f.\u0275\u0275listener("click",function(){return re.downloadTarget("typescript_interfaces")}),f.\u0275\u0275element(44,"mat-icon",6),f.\u0275\u0275text(45,"Interfaces"),f.\u0275\u0275elementEnd()()),2&H&&(f.\u0275\u0275advance(2),f.\u0275\u0275property("ngIf",f.\u0275\u0275pipeBind1(3,1,re.sdkgen.state$)))},dependencies:[C.NgForOf,C.NgIf,C.NgSwitch,C.NgSwitchCase,M.MonacoEditorComponent,O.MatButton,m.MatIcon,P.MatMenu,P.MatMenuItem,P.MatMenuTrigger,N.MatTabGroup,N.MatTabLabel,N.MatTab,Y.MatTooltip,U.SimpleCallComponent,G.TabNavComponent,$.TabEditorComponent,J.TabHomeComponent,C.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:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.AppModule=void 0;const n=a(655),h=a(6529),_=a(3075),u=a(7423),r=a(9417),c=a(508),d=a(9694),p=a(3293),y=a(1451),f=a(4999),b=a(3251),v=a(7238),m=a(2313),C=a(6360),M=a(107),O=a(1430),P=a(1017),N=a(2290),Y=a(5041),U=n.__importStar(a(5e3));n.__importStar(a(2290));class ${}o.AppModule=$,$.\u0275fac=function(te){return new(te||$)},$.\u0275mod=U.\u0275\u0275defineNgModule({type:$,bootstrap:[Y.AppComponent]}),$.\u0275inj=U.\u0275\u0275defineInjector({providers:[{provide:M.MONACO_PATH,useValue:"assets/vs"}],imports:[m.BrowserModule,_.FormsModule,_.ReactiveFormsModule,M.MonacoEditorModule,C.BrowserAnimationsModule,P.NgxJsonViewerModule,N.ToastrModule.forRoot(),O.AngularSplitModule,h.HttpClientModule,u.MatButtonModule,r.MatChipsModule,d.MatDialogModule,p.MatIconModule,y.MatMenuModule,c.MatRippleModule,f.MatTableModule,b.MatTabsModule,v.MatTooltipModule]})},8495:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.ConsoleComponent=void 0;const n=a(655),h=a(9972),_=n.__importStar(a(5e3)),u=n.__importStar(a(9808)),r=n.__importStar(a(1017)),c=n.__importStar(a(7423)),d=n.__importStar(a(3293));function p(C,M){1&C&&(_.\u0275\u0275elementContainerStart(0),_.\u0275\u0275text(1,"info_outline"),_.\u0275\u0275elementContainerEnd())}function y(C,M){1&C&&(_.\u0275\u0275elementContainerStart(0),_.\u0275\u0275text(1,"error"),_.\u0275\u0275elementContainerEnd())}function f(C,M){1&C&&(_.\u0275\u0275elementContainerStart(0),_.\u0275\u0275text(1,"public"),_.\u0275\u0275elementContainerEnd())}function b(C,M){if(1&C&&_.\u0275\u0275element(0,"ngx-json-viewer",6),2&C){const O=_.\u0275\u0275nextContext().$implicit;_.\u0275\u0275property("json",O.details)("expanded",!1)}}function v(C,M){if(1&C&&(_.\u0275\u0275elementStart(0,"li",2)(1,"mat-icon",3),_.\u0275\u0275template(2,p,2,0,"ng-container",4),_.\u0275\u0275template(3,y,2,0,"ng-container",4),_.\u0275\u0275template(4,f,2,0,"ng-container",4),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementStart(5,"span"),_.\u0275\u0275text(6),_.\u0275\u0275elementEnd(),_.\u0275\u0275template(7,b,1,2,"ngx-json-viewer",5),_.\u0275\u0275elementEnd()),2&C){const O=M.$implicit,P=_.\u0275\u0275nextContext();_.\u0275\u0275property("ngClass",O.type),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngSwitch",O.type)("ngClass",O.type),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngSwitchCase",P.itemTypes.INFO),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngSwitchCase",P.itemTypes.ERROR),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngSwitchCase",P.itemTypes.NETWORK),_.\u0275\u0275advance(2),_.\u0275\u0275textInterpolate(O.message),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngIf",O.details)}}class m{constructor(){this.itemTypes=h.ConsoleItemType,this.items=[]}}o.ConsoleComponent=m,m.\u0275fac=function(M){return new(M||m)},m.\u0275cmp=_.\u0275\u0275defineComponent({type:m,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(M,O){1&M&&(_.\u0275\u0275elementStart(0,"header")(1,"strong"),_.\u0275\u0275text(2,"CONSOLE"),_.\u0275\u0275elementEnd(),_.\u0275\u0275element(3,"s"),_.\u0275\u0275elementStart(4,"button",0),_.\u0275\u0275listener("click",function(){return O.items.splice(0,O.items.length)}),_.\u0275\u0275elementStart(5,"mat-icon"),_.\u0275\u0275text(6,"delete"),_.\u0275\u0275elementEnd()()(),_.\u0275\u0275elementStart(7,"ul"),_.\u0275\u0275template(8,v,8,8,"li",1),_.\u0275\u0275elementEnd()),2&M&&(_.\u0275\u0275advance(8),_.\u0275\u0275property("ngForOf",O.items))},dependencies:[u.NgClass,u.NgForOf,u.NgIf,u.NgSwitch,u.NgSwitchCase,r.NgxJsonViewerComponent,c.MatButton,d.MatIcon],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 rgb(231,231,231);line-height:27px;font-size:11pt;align-self:center}header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:0 10px}ul[_ngcontent-%COMP%]{padding:0;margin:0;box-sizing:border-box}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{list-style:none;display:block;width:100%;height:auto;padding:5px 10px;font-size:1rem;border-bottom:1px solid #444444;background-color:#111;word-break:break-all;box-sizing:border-box;word-wrap:break-word;font-family:monospace}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline;vertical-align:text-bottom}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{height:1rem;width:1rem;font-size:1rem;vertical-align:sub;margin-right:7.5px;-webkit-user-select:none;user-select:none}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] mat-icon.info[_ngcontent-%COMP%]{color:#b9b9bb}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] mat-icon.error[_ngcontent-%COMP%]{color:#ff3b6b}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] mat-icon.network_recv[_ngcontent-%COMP%], ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] mat-icon.network_send[_ngcontent-%COMP%]{color:#939395}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:hover{background-color:#0000004d}ul[_ngcontent-%COMP%] > li.error[_ngcontent-%COMP%]{color:#e69fa3;background-color:#4b2f36}"]})},9972:(z,o)=>{"use strict";var n;Object.defineProperty(o,"__esModule",{value:!0}),o.ConsoleItemType=void 0,(n=o.ConsoleItemType||(o.ConsoleItemType={})).INFO="info",n.ERROR="error",n.NETWORK="network"},4814:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.DialogAboutComponent=void 0;const n=a(655),h=a(4147),_=n.__importStar(a(5e3)),u=n.__importStar(a(7423)),r=n.__importStar(a(9417)),c=n.__importStar(a(9694)),d=n.__importStar(a(3293));class p{constructor(){this.version=h.version}}o.DialogAboutComponent=p,p.\u0275fac=function(f){return new(f||p)},p.\u0275cmp=_.\u0275\u0275defineComponent({type:p,selectors:[["app-dialog-about"]],decls:20,vars:3,consts:[["mat-dialog-title",""],[3,"selectable"],[3,"disableRipple"],["mat-icon-button","","mat-dialog-close","","tabindex","-1"],["href","https://sdkgen.github.io/","rel","external noreferer","target","_blank","mat-stroked-button",""],["href","https://github.com/sdkgen/sdkgen","rel","external noreferer","target","_blank","mat-stroked-button",""],["href","https://github.com/sdkgen/sdkgen/issues/new","rel","external noreferer","target","_blank","mat-stroked-button",""]],template:function(f,b){1&f&&(_.\u0275\u0275elementStart(0,"header")(1,"h1",0),_.\u0275\u0275text(2,"sdkgen Playground"),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementStart(3,"mat-chip-list",1)(4,"mat-chip",2),_.\u0275\u0275text(5),_.\u0275\u0275elementEnd()(),_.\u0275\u0275element(6,"s"),_.\u0275\u0275elementStart(7,"button",3)(8,"mat-icon"),_.\u0275\u0275text(9,"close"),_.\u0275\u0275elementEnd()()(),_.\u0275\u0275elementStart(10,"p"),_.\u0275\u0275text(11,"Ferramenta para explorar e invocar APIs feitas com sdkgen."),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementStart(12,"p"),_.\u0275\u0275text(13,"Feito com \u2764\ufe0f no Brasil \u{1f1e7}\u{1f1f7}"),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementStart(14,"a",4),_.\u0275\u0275text(15,"Documenta\xe7\xe3o"),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementStart(16,"a",5),_.\u0275\u0275text(17,"C\xf3digo-fonte"),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementStart(18,"a",6),_.\u0275\u0275text(19,"Reportar um problema"),_.\u0275\u0275elementEnd()),2&f&&(_.\u0275\u0275advance(3),_.\u0275\u0275property("selectable",!1),_.\u0275\u0275advance(1),_.\u0275\u0275property("disableRipple",!0),_.\u0275\u0275advance(1),_.\u0275\u0275textInterpolate(b.version))},dependencies:[u.MatButton,u.MatAnchor,r.MatChipList,r.MatChip,c.MatDialogClose,c.MatDialogTitle,d.MatIcon],styles:["header[_ngcontent-%COMP%]{display:flex;border-bottom:1px solid rgba(255,255,255,.2);padding-bottom:5px}header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], header[_ngcontent-%COMP%] button[_ngcontent-%COMP%], header[_ngcontent-%COMP%] mat-chip-list[_ngcontent-%COMP%]{display:inline;align-self:center}header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{display:flex;margin:0 10px 0 0}header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:20px}a[_ngcontent-%COMP%]:not(:last-child){margin-right:12px}"]})},4211:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.FilterPipe=void 0;const h=a(655).__importStar(a(5e3));class _{transform(r,c){if(!r)return[];if(!c)return r;const d=c.toLocaleLowerCase();return r.filter(p=>JSON.stringify(p).toLocaleLowerCase().includes(d))}}o.FilterPipe=_,_.\u0275fac=function(r){return new(r||_)},_.\u0275pipe=h.\u0275\u0275definePipe({name:"appFilter",type:_,pure:!0})},7120:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.ResponsiveService=void 0;const n=a(655),h=n.__importStar(a(5e3)),_=n.__importStar(a(5113));class u{constructor(c){this.observer=c}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)"])}}o.ResponsiveService=u,u.\u0275fac=function(c){return new(c||u)(h.\u0275\u0275inject(_.BreakpointObserver))},u.\u0275prov=h.\u0275\u0275defineInjectable({token:u,factory:u.\u0275fac,providedIn:"root"})},9435:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.getTypeDoc=o.getTypeLabels=o.getConstructorName=o.primitiveTypesExamples=o.primitiveTypes=void 0;const n=a(6676),h=a(6395);function _(c){switch(c.constructor){case n.StringPrimitiveType:return"StringPrimitiveType";case n.IntPrimitiveType:return"IntPrimitiveType";case n.UIntPrimitiveType:return"UIntPrimitiveType";case n.FloatPrimitiveType:return"FloatPrimitiveType";case n.BigIntPrimitiveType:return"BigIntPrimitiveType";case n.MoneyPrimitiveType:return"MoneyPrimitiveType";case n.DecimalPrimitiveType:return"DecimalPrimitiveType";case n.DatePrimitiveType:return"DatePrimitiveType";case n.DateTimePrimitiveType:return"DateTimePrimitiveType";case n.BoolPrimitiveType:return"BoolPrimitiveType";case n.VoidPrimitiveType:return"VoidPrimitiveType";case n.CpfPrimitiveType:return"CpfPrimitiveType";case n.CnpjPrimitiveType:return"CnpjPrimitiveType";case n.EmailPrimitiveType:return"EmailPrimitiveType";case n.UrlPrimitiveType:return"UrlPrimitiveType";case n.UuidPrimitiveType:return"UuidPrimitiveType";case n.HexPrimitiveType:return"HexPrimitiveType";case n.HtmlPrimitiveType:return"HtmlPrimitiveType";case n.BytesPrimitiveType:return"BytesPrimitiveType";case n.Base64PrimitiveType:return"Base64PrimitiveType";case n.XmlPrimitiveType:return"XmlPrimitiveType";case n.JsonPrimitiveType:return"JsonPrimitiveType";case n.OptionalType:return"OptionalType";case n.EnumType:return"EnumType";case n.ArrayType:return"ArrayType";case n.StructType:return"StructType";default:return c.constructor.name}}o.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.",DecimalPrimitiveType:"Um n\xfamero inteiro ou fracionado representado por d\xedgitos decimais e com precis\xe3o din\xe2mica. \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?."},o.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"],DecimalPrimitiveType:["100","-10.35","0.00498375617834","3864958512342567"],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}']},o.getConstructorName=_,o.getTypeLabels=function u(c){const d=[];switch(c.constructor){case n.StringPrimitiveType:case n.IntPrimitiveType:case n.UIntPrimitiveType:case n.FloatPrimitiveType:case n.BigIntPrimitiveType:case n.MoneyPrimitiveType:case n.DecimalPrimitiveType:case n.DatePrimitiveType:case n.DateTimePrimitiveType:case n.BoolPrimitiveType:case n.VoidPrimitiveType:case n.CpfPrimitiveType:case n.CnpjPrimitiveType:case n.EmailPrimitiveType:case n.UrlPrimitiveType:case n.UuidPrimitiveType:case n.HexPrimitiveType:case n.HtmlPrimitiveType:case n.BytesPrimitiveType:case n.Base64PrimitiveType:case n.XmlPrimitiveType:case n.JsonPrimitiveType:d.push("Primitivo");break;case n.OptionalType:d.push("Opcional"),d.push(...u(c.base));break;case n.TypeReference:d.push(...u(c.type));break;case n.ArrayType:d.push("Array"),d.push(...u(c.base));break;case n.EnumType:d.push("Enum");break;default:console.error("No labels for",_(c))}return d},o.getTypeDoc=function r(c){var d,p,y;switch(c.constructor){case n.StringPrimitiveType:case n.IntPrimitiveType:case n.UIntPrimitiveType:case n.FloatPrimitiveType:case n.BigIntPrimitiveType:case n.MoneyPrimitiveType:case n.DecimalPrimitiveType:case n.DatePrimitiveType:case n.DateTimePrimitiveType:case n.BoolPrimitiveType:case n.VoidPrimitiveType:case n.CpfPrimitiveType:case n.CnpjPrimitiveType:case n.EmailPrimitiveType:case n.UrlPrimitiveType:case n.UuidPrimitiveType:case n.HexPrimitiveType:case n.HtmlPrimitiveType:case n.BytesPrimitiveType:case n.Base64PrimitiveType:case n.XmlPrimitiveType:case n.JsonPrimitiveType:return{longDescription:o.primitiveTypes[_(c)],shortDescription:o.primitiveTypes[_(c)],examples:o.primitiveTypesExamples[_(c)]};case n.OptionalType:{const m=r(c.base);return Object.assign(Object.assign({},m),{longDescription:m.longDescription,shortDescription:`(opcional) ${m.shortDescription}`,examples:["null",...null!==(d=m.examples)&&void 0!==d?d:[]]})}case n.TypeReference:return r(c.type);case n.ArrayType:{const m=r(c.base);return Object.assign(Object.assign({},m),{longDescription:m.longDescription,shortDescription:`(array) ${m.shortDescription}`,examples:["[]",...null!==(y=null===(p=m.examples)||void 0===p?void 0:p.map(C=>`[${C}]`))&&void 0!==y?y:[]]})}case n.EnumType:const f=c,b=f.values.slice(0,3),v=b.map(m=>m.struct?`${m.value}: ${JSON.stringify((new h.SdkgenService).buildJsonObject(m.struct.fields),null,2)}`:m.value);return{longDescription:"enum representa um conjunto limitado de possibilidades de valores, similar as enumera\xe7\xf5es em outras linguagens.",shortDescription:`(enum) ${b.map(m=>`${m.value}${m.struct?"(\u2026)":""}`).join(", ")}${b.length>3?"\u2026":""}`,examples:v,isEnum:!0,isStruct:!0,structFields:f.values.map(m=>{var C;return{name:m.value,type:m.struct,description:null===(C=m.annotations.find(M=>M instanceof n.DescriptionAnnotation))||void 0===C?void 0:C.text,secret:!1}})};case n.StructType:return{longDescription:"",shortDescription:`(objeto complexo) ${c.fields.slice(0,3).map(m=>m.name).join(", ")}\u2026`,isStruct:!0,structFields:c.fields.map(m=>{var C;return{name:m.name,description:null===(C=m.annotations.find(M=>M instanceof n.DescriptionAnnotation))||void 0===C?void 0:C.text,type:m.type,secret:m.secret}}),examples:[JSON.stringify((new h.SdkgenService).buildJsonObject(c.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__(7156).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__(6477),i0=tslib_1.__importStar(__webpack_require__(5e3));class SdkgenService{constructor(){this.state$=new rxjs_1.BehaviorSubject(null)}buildJsonObject(z,o=new Set){const a=n=>{switch(n.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.DecimalPrimitiveType:return"0.00";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 o.has(n.name)?{}:this.buildJsonObject(n.fields,new Set([...o,n.name]));case parser_1.OptionalType:return null;case parser_1.TypeReference:return a(n.type);case parser_1.ArrayType:return[a(n.base),a(n.base),a(n.base)];case parser_1.EnumType:return n.values[0].value;default:return null}};return z.reduce((n,h)=>(n[h.name]=a(h.type),n),{})}getTypeScriptCode(z,o){return`await client.${z}(${JSON.stringify(o,null,2)});\n`}buildKotlinString(z,o=0){const a=n=>{switch(n.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.DecimalPrimitiveType:return'BigDecimal("0.00")';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`${n.name}(\n${this.buildKotlinString(n.fields,o+1)}\n${" ".repeat(o+1)})`;case parser_1.OptionalType:return"null";case parser_1.TypeReference:return a(n.type);case parser_1.ArrayType:o++;const h=a(n.base);return o--,`arrayOf(\n${" ".repeat(o+2)}${h},\n${" ".repeat(o+2)}${h}\n${" ".repeat(o+1)})`;case parser_1.EnumType:return`"${n.values[0].value}"`;default:return"<>()"}};return z.map(n=>`${" ".repeat(o+1)}${a(n.type)}`).join(",\n")}getKotlinCode(z,o){return 0===o.length?`client.${z}().await();`:`client.${z}(\n${this.buildKotlinString(o)}\n).await();`}getDartCode(z,o){return'print("todo");'}getSwiftCode(z,o){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:(z,o)=>["baseUrl","extra","successHook","errorHook","makeRequest"].includes(o.toString())?clientInstance[o.toString()]:function(){var a=_asyncToGenerator(function*(n){return clientInstance.makeRequest(o.toString(),n)});return function(n){return a.apply(this,arguments)}}()})}}exports.SdkgenService=SdkgenService,SdkgenService.\u0275fac=function z(o){return new(o||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__(7156).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=tslib_1.__importStar(__webpack_require__(5e3)),i1=tslib_1.__importStar(__webpack_require__(6395)),i2=tslib_1.__importStar(__webpack_require__(3075)),i3=tslib_1.__importStar(__webpack_require__(107)),i4=tslib_1.__importStar(__webpack_require__(1017)),i5=tslib_1.__importStar(__webpack_require__(1430)),i6=tslib_1.__importStar(__webpack_require__(7423)),i7=tslib_1.__importStar(__webpack_require__(3293)),i8=tslib_1.__importStar(__webpack_require__(3251)),i9=tslib_1.__importStar(__webpack_require__(8495));class SimpleCallComponent{constructor(z){this.sdkgen=z,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(z=>{!z||(this.generateFunctionCode(z.astRoot,this.fn),this.client=this.sdkgen.getSdkgenClient(z.url,z.astJson))})}ngOnDestroy(){var z;null===(z=this.state$)||void 0===z||z.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(z){_this.consoleItems.push({type:console_types_1.ConsoleItemType.ERROR,message:z.toString()}),delete z.toString,_this.response={error:{type:z.type,message:z.message,data:z.data}}}finally{eval(code_execution_1.unwrap),_this.selected.setValue(1)}})()}generateFunctionCode(z,o){var a;const n=null===(a=z.operations.find(h=>h.name===o))||void 0===a?void 0:a.args;n&&(this.code=JSON.stringify(this.sdkgen.buildJsonObject(n),null,2))}}exports.SimpleCallComponent=SimpleCallComponent,SimpleCallComponent.\u0275fac=function z(o){return new(o||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 z(o,a){1&o&&(i0.\u0275\u0275elementStart(0,"as-split",0)(1,"as-split-area")(2,"mat-tab-group",1),i0.\u0275\u0275listener("selectedIndexChange",function(h){return a.selected.setValue(h)}),i0.\u0275\u0275elementStart(3,"mat-tab",2)(4,"button",3),i0.\u0275\u0275listener("click",function(){return a.run()}),i0.\u0275\u0275elementStart(5,"mat-icon"),i0.\u0275\u0275text(6,"play_arrow"),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(7,"ngx-monaco-editor",4),i0.\u0275\u0275listener("ngModelChange",function(h){return a.code=h}),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(8,"mat-tab",5),i0.\u0275\u0275element(9,"ngx-json-viewer",6),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(10,"as-split-area",7),i0.\u0275\u0275element(11,"app-console",8),i0.\u0275\u0275elementEnd()()),2&o&&(i0.\u0275\u0275advance(2),i0.\u0275\u0275property("selectedIndex",a.selected.value),i0.\u0275\u0275advance(5),i0.\u0275\u0275property("options",a.editorOptions)("ngModel",a.code),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("disabled",!a.response),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("json",a.response),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("size",30),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("items",a.consoleItems))},dependencies:[i2.NgControlStatus,i2.NgModel,i3.MonacoEditorComponent,i4.NgxJsonViewerComponent,i5.SplitComponent,i5.SplitAreaDirective,i6.MatButton,i7.MatIcon,i8.MatTabGroup,i8.MatTab,i9.ConsoleComponent],styles:["[_nghost-%COMP%]{display:block;height:100%}mat-tab-group[_ngcontent-%COMP%]{height:100%}mat-tab-group[_ngcontent-%COMP%] .ngx-json-viewer{overflow:inherit!important}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%}mat-tab-group[_ngcontent-%COMP%] ngx-json-viewer[_ngcontent-%COMP%]{display:block;height:100%;width:100%;overflow-y:auto;scrollbar-width:thin}"]})},4264:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";var _asyncToGenerator=__webpack_require__(7156).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=tslib_1.__importStar(__webpack_require__(5e3)),i1=tslib_1.__importStar(__webpack_require__(6395)),i2=tslib_1.__importStar(__webpack_require__(3075)),i3=tslib_1.__importStar(__webpack_require__(107)),i4=tslib_1.__importStar(__webpack_require__(1430)),i5=tslib_1.__importStar(__webpack_require__(7423)),i6=tslib_1.__importStar(__webpack_require__(3293)),i7=tslib_1.__importStar(__webpack_require__(8495));class TabEditorComponent{constructor(z){this.sdkgen=z,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(z=>{if(!z)return;const o=`${this.patchBrowserClientSource((0,typescript_generator_1.generateBrowserClientSource)(z.astRoot))}\n\ndeclare const client: sdkgen.ApiClient;\n\n`;this.client=this.sdkgen.getSdkgenClient(z.url,z.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 a=monaco.editor.getModels().find(h=>h.uri.toString().endsWith("client.d.ts"));a?a.setValue(o):monaco.editor.createModel(o,"typescript",monaco.Uri.parse("ts:filename/client.d.ts"));const[n]=z.astRoot.operations;this.code=this.sdkgen.getTypeScriptCode(n.name,this.sdkgen.buildJsonObject(n.args))})}ngOnDestroy(){var z;null===(z=this.state$)||void 0===z||z.unsubscribe()}patchBrowserClientSource(z){return`declare namespace sdkgen {\n${z.substring(95,z.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(z){_this.consoleItems.push({type:console_types_1.ConsoleItemType.ERROR,message:z.toString()})}})()}}exports.TabEditorComponent=TabEditorComponent,TabEditorComponent.\u0275fac=function z(o){return new(o||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 z(o,a){1&o&&(i0.\u0275\u0275elementStart(0,"button",0),i0.\u0275\u0275listener("click",function(){return a.run()}),i0.\u0275\u0275elementStart(1,"mat-icon"),i0.\u0275\u0275text(2,"play_arrow"),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(3,"as-split",1)(4,"as-split-area",2)(5,"ngx-monaco-editor",3),i0.\u0275\u0275listener("ngModelChange",function(h){return a.code=h}),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(6,"as-split-area",4),i0.\u0275\u0275element(7,"app-console",5),i0.\u0275\u0275elementEnd()()),2&o&&(i0.\u0275\u0275advance(5),i0.\u0275\u0275property("options",a.editorOptions)("ngModel",a.code),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("size",30),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("items",a.consoleItems))},dependencies:[i2.NgControlStatus,i2.NgModel,i3.MonacoEditorComponent,i4.SplitComponent,i4.SplitAreaDirective,i5.MatButton,i6.MatIcon,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:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.TabHomeComponent=void 0;const n=a(655),h=a(5e3),_=a(9435),u=a(5281),r=n.__importStar(a(5e3)),c=n.__importStar(a(6395)),d=n.__importStar(a(9694)),p=n.__importStar(a(7120)),y=n.__importStar(a(9808)),f=n.__importStar(a(3075)),b=n.__importStar(a(107)),v=n.__importStar(a(1430)),m=n.__importStar(a(7423)),C=n.__importStar(a(9417)),M=n.__importStar(a(3293)),O=n.__importStar(a(4999)),P=n.__importStar(a(3251)),N=n.__importStar(a(7238)),Y=n.__importStar(a(4211));function U(pe,Qe){if(1&pe&&(r.\u0275\u0275elementStart(0,"span",8),r.\u0275\u0275text(1),r.\u0275\u0275elementEnd()),2&pe){const Ve=r.\u0275\u0275nextContext().$implicit;r.\u0275\u0275advance(1),r.\u0275\u0275textInterpolate(Ve.description)}}const G=function(pe){return{active:pe}};function $(pe,Qe){if(1&pe){const Ve=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"li",5),r.\u0275\u0275listener("click",function(){const we=r.\u0275\u0275restoreView(Ve).$implicit,ze=r.\u0275\u0275nextContext();return r.\u0275\u0275resetView(ze.selectedFunction=we)}),r.\u0275\u0275elementStart(1,"span",6),r.\u0275\u0275text(2),r.\u0275\u0275elementEnd(),r.\u0275\u0275template(3,U,2,1,"span",7),r.\u0275\u0275elementEnd()}if(2&pe){const Ve=Qe.$implicit,Ke=r.\u0275\u0275nextContext();r.\u0275\u0275property("ngClass",r.\u0275\u0275pureFunction1(3,G,(null==Ke.selectedFunction?null:Ke.selectedFunction.name)===Ve.name)),r.\u0275\u0275advance(2),r.\u0275\u0275textInterpolate(Ve.name),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",Ve.description)}}function J(pe,Qe){1&pe&&r.\u0275\u0275element(0,"span")}function te(pe,Qe){if(1&pe){const Ve=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"span"),r.\u0275\u0275element(1,"br"),r.\u0275\u0275text(2,"\xa0\xa0"),r.\u0275\u0275elementStart(3,"span",37),r.\u0275\u0275text(4),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(5,"span",14),r.\u0275\u0275text(6,":"),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(7,"\xa0"),r.\u0275\u0275elementStart(8,"u",15),r.\u0275\u0275listener("click",function(){const we=r.\u0275\u0275restoreView(Ve).$implicit,ze=r.\u0275\u0275nextContext(2);return r.\u0275\u0275resetView(ze.showDocumentation(we.rawType))}),r.\u0275\u0275text(9),r.\u0275\u0275elementEnd(),r.\u0275\u0275template(10,J,1,0,"span",38),r.\u0275\u0275elementEnd()}if(2&pe){const Ve=Qe.$implicit,Ke=Qe.index;r.\u0275\u0275nextContext();const K=r.\u0275\u0275reference(18),we=r.\u0275\u0275reference(20),ze=r.\u0275\u0275nextContext();r.\u0275\u0275advance(4),r.\u0275\u0275textInterpolate(Ve.name),r.\u0275\u0275advance(4),r.\u0275\u0275property("matTooltip",ze.getTooltip(Ve.rawType)),r.\u0275\u0275advance(1),r.\u0275\u0275textInterpolate(Ve.type),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",Ke!=ze.selectedFunction.args.length-1)("ngIfThen",K)("ngIfElse",we)}}function he(pe,Qe){1&pe&&r.\u0275\u0275text(0,",")}function Fe(pe,Qe){1&pe&&r.\u0275\u0275element(0,"br")}function it(pe,Qe){if(1&pe){const Ve=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"u",29),r.\u0275\u0275listener("click",function(){r.\u0275\u0275restoreView(Ve);const K=r.\u0275\u0275nextContext().$implicit,we=r.\u0275\u0275nextContext(3);return r.\u0275\u0275resetView(we.showDocumentation(K.dataType))}),r.\u0275\u0275text(1),r.\u0275\u0275elementEnd()}if(2&pe){const Ve=r.\u0275\u0275nextContext().$implicit,Ke=r.\u0275\u0275nextContext(3);r.\u0275\u0275property("matTooltip",Ke.getTooltip(Ve.dataType)),r.\u0275\u0275advance(1),r.\u0275\u0275textInterpolate1("(",Ve.dataType.name,")")}}function be(pe,Qe){if(1&pe&&(r.\u0275\u0275elementStart(0,"mat-chip",42)(1,"span",28),r.\u0275\u0275text(2),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(3,"i"),r.\u0275\u0275elementStart(4,"span",28),r.\u0275\u0275text(5),r.\u0275\u0275template(6,it,2,2,"u",43),r.\u0275\u0275elementEnd()()),2&pe){const Ve=Qe.$implicit;r.\u0275\u0275property("disableRipple",!0),r.\u0275\u0275advance(2),r.\u0275\u0275textInterpolate(Ve.name),r.\u0275\u0275advance(3),r.\u0275\u0275textInterpolate1("",Ve.type," "),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",Ve.dataType&&"void"!==Ve.dataType.name)}}function ke(pe,Qe){if(1&pe&&(r.\u0275\u0275elementStart(0,"section",39)(1,"mat-chip-list",40),r.\u0275\u0275template(2,be,7,4,"mat-chip",41),r.\u0275\u0275elementEnd()()),2&pe){const Ve=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(1),r.\u0275\u0275property("selectable",!1),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngForOf",Ve.selectedFunction.labels)}}function ie(pe,Qe){if(1&pe&&(r.\u0275\u0275elementStart(0,"p"),r.\u0275\u0275text(1),r.\u0275\u0275elementEnd()),2&pe){const Ve=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(1),r.\u0275\u0275textInterpolate(Ve.selectedFunction.description)}}function Ae(pe,Qe){1&pe&&(r.\u0275\u0275elementStart(0,"p",44),r.\u0275\u0275text(1,"N\xe3o h\xe1 descri\xe7\xe3o para esta fun\xe7\xe3o."),r.\u0275\u0275elementEnd())}function oe(pe,Qe){1&pe&&(r.\u0275\u0275elementStart(0,"p",44),r.\u0275\u0275text(1,"Esta fun\xe7\xe3o n\xe3o possui argumentos."),r.\u0275\u0275elementEnd())}function me(pe,Qe){1&pe&&(r.\u0275\u0275elementStart(0,"th",54),r.\u0275\u0275text(1,"Nome"),r.\u0275\u0275elementEnd())}function V(pe,Qe){if(1&pe&&(r.\u0275\u0275elementStart(0,"td",55),r.\u0275\u0275text(1),r.\u0275\u0275elementEnd()),2&pe){const Ve=Qe.$implicit;r.\u0275\u0275advance(1),r.\u0275\u0275textInterpolate(Ve.name)}}function H(pe,Qe){1&pe&&(r.\u0275\u0275elementStart(0,"th",54),r.\u0275\u0275text(1,"Tipo"),r.\u0275\u0275elementEnd())}function re(pe,Qe){if(1&pe){const Ve=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"td",55)(1,"u",29),r.\u0275\u0275listener("click",function(){const we=r.\u0275\u0275restoreView(Ve).$implicit,ze=r.\u0275\u0275nextContext(3);return r.\u0275\u0275resetView(ze.showDocumentation(we.rawType))}),r.\u0275\u0275text(2),r.\u0275\u0275elementEnd()()}if(2&pe){const Ve=Qe.$implicit,Ke=r.\u0275\u0275nextContext(3);r.\u0275\u0275advance(1),r.\u0275\u0275property("matTooltip",Ke.getTooltip(Ve.rawType)),r.\u0275\u0275advance(1),r.\u0275\u0275textInterpolate(Ve.type)}}function B(pe,Qe){1&pe&&(r.\u0275\u0275elementStart(0,"th",54),r.\u0275\u0275text(1,"Descri\xe7\xe3o"),r.\u0275\u0275elementEnd())}function ue(pe,Qe){if(1&pe&&(r.\u0275\u0275elementStart(0,"td",56),r.\u0275\u0275text(1),r.\u0275\u0275elementEnd()),2&pe){const Ve=Qe.$implicit;r.\u0275\u0275advance(1),r.\u0275\u0275textInterpolate(Ve.description||"-")}}function ge(pe,Qe){1&pe&&r.\u0275\u0275element(0,"tr",57)}function Te(pe,Qe){1&pe&&r.\u0275\u0275element(0,"tr",58)}function Pe(pe,Qe){if(1&pe&&(r.\u0275\u0275elementStart(0,"table",45),r.\u0275\u0275elementContainerStart(1,46),r.\u0275\u0275template(2,me,2,0,"th",47),r.\u0275\u0275template(3,V,2,1,"td",48),r.\u0275\u0275elementContainerEnd(),r.\u0275\u0275elementContainerStart(4,49),r.\u0275\u0275template(5,H,2,0,"th",47),r.\u0275\u0275template(6,re,3,2,"td",48),r.\u0275\u0275elementContainerEnd(),r.\u0275\u0275elementContainerStart(7,50),r.\u0275\u0275template(8,B,2,0,"th",47),r.\u0275\u0275template(9,ue,2,1,"td",51),r.\u0275\u0275elementContainerEnd(),r.\u0275\u0275template(10,ge,1,0,"tr",52),r.\u0275\u0275template(11,Te,1,0,"tr",53),r.\u0275\u0275elementEnd()),2&pe){const Ve=r.\u0275\u0275nextContext(2);r.\u0275\u0275property("dataSource",Ve.selectedFunction.args),r.\u0275\u0275advance(10),r.\u0275\u0275property("matHeaderRowDef",Ve.argumentsTableColumns),r.\u0275\u0275advance(1),r.\u0275\u0275property("matRowDefColumns",Ve.argumentsTableColumns)}}function Ce(pe,Qe){1&pe&&(r.\u0275\u0275elementStart(0,"span",59),r.\u0275\u0275text(1,"Dart"),r.\u0275\u0275elementEnd())}function $e(pe,Qe){1&pe&&(r.\u0275\u0275elementStart(0,"span",59),r.\u0275\u0275text(1,"Swift"),r.\u0275\u0275elementEnd())}const lt=function(){return{theme:"vs-dark",language:"javascript"}},yt=function(){return{theme:"vs-dark",language:"kotlin"}},_t=function(){return{theme:"vs-dark",language:"dart"}},ut=function(){return{theme:"vs-dark",language:"swift"}};function He(pe,Qe){if(1&pe){const Ve=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"article")(1,"header")(2,"h1",9)(3,"span",10)(4,"span",11),r.\u0275\u0275text(5,"fn"),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(6,"\xa0"),r.\u0275\u0275elementStart(7,"span",12),r.\u0275\u0275text(8),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(9,"("),r.\u0275\u0275template(10,te,11,6,"span",13),r.\u0275\u0275text(11,")"),r.\u0275\u0275elementStart(12,"span",14),r.\u0275\u0275text(13,":"),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(14,"\xa0"),r.\u0275\u0275elementStart(15,"u",15),r.\u0275\u0275listener("click",function(){r.\u0275\u0275restoreView(Ve);const K=r.\u0275\u0275nextContext();return r.\u0275\u0275resetView(K.showDocumentation(K.selectedFunction.returns.rawType))}),r.\u0275\u0275text(16),r.\u0275\u0275elementEnd()(),r.\u0275\u0275template(17,he,1,0,"ng-template",null,16,r.\u0275\u0275templateRefExtractor),r.\u0275\u0275template(19,Fe,1,0,"ng-template",null,17,r.\u0275\u0275templateRefExtractor),r.\u0275\u0275element(21,"s"),r.\u0275\u0275elementStart(22,"button",18),r.\u0275\u0275listener("click",function(){r.\u0275\u0275restoreView(Ve);const K=r.\u0275\u0275nextContext();return r.\u0275\u0275resetView(K.addSimpleCallTab())}),r.\u0275\u0275elementStart(23,"mat-icon"),r.\u0275\u0275text(24,"play_arrow"),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(25,"\xa0EXECUTAR "),r.\u0275\u0275elementEnd()()(),r.\u0275\u0275template(26,ke,3,2,"section",19),r.\u0275\u0275elementStart(27,"section",9)(28,"h2",20),r.\u0275\u0275text(29,"Descri\xe7\xe3o"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(30,"div",21),r.\u0275\u0275template(31,ie,2,1,"p",22),r.\u0275\u0275template(32,Ae,2,0,"p",23),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(33,"h2",24),r.\u0275\u0275text(34,"Par\xe2metros"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(35,"div",21),r.\u0275\u0275template(36,oe,2,0,"p",23),r.\u0275\u0275elementStart(37,"div",25),r.\u0275\u0275template(38,Pe,12,3,"table",26),r.\u0275\u0275elementEnd()(),r.\u0275\u0275elementStart(39,"h2",27),r.\u0275\u0275text(40,"Retorno"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(41,"div")(42,"p",28)(43,"u",29),r.\u0275\u0275listener("click",function(){r.\u0275\u0275restoreView(Ve);const K=r.\u0275\u0275nextContext();return r.\u0275\u0275resetView(K.showDocumentation(K.selectedFunction.returns.rawType))}),r.\u0275\u0275text(44),r.\u0275\u0275elementEnd()()(),r.\u0275\u0275elementStart(45,"h2",30),r.\u0275\u0275text(46,"Exemplo de Requisi\xe7\xe3o"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(47,"mat-tab-group",31)(48,"mat-tab",32),r.\u0275\u0275element(49,"ngx-monaco-editor",33),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(50,"mat-tab",34),r.\u0275\u0275element(51,"ngx-monaco-editor",33),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(52,"mat-tab",35),r.\u0275\u0275template(53,Ce,2,0,"ng-template",36),r.\u0275\u0275element(54,"ngx-monaco-editor",33),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(55,"mat-tab",35),r.\u0275\u0275template(56,$e,2,0,"ng-template",36),r.\u0275\u0275element(57,"ngx-monaco-editor",33),r.\u0275\u0275elementEnd()()()()}if(2&pe){const Ve=r.\u0275\u0275nextContext();r.\u0275\u0275advance(8),r.\u0275\u0275textInterpolate(Ve.selectedFunction.name),r.\u0275\u0275advance(2),r.\u0275\u0275property("ngForOf",Ve.selectedFunction.args),r.\u0275\u0275advance(5),r.\u0275\u0275property("matTooltip",Ve.getTooltip(Ve.selectedFunction.returns.rawType)),r.\u0275\u0275advance(1),r.\u0275\u0275textInterpolate(Ve.selectedFunction.returns.type),r.\u0275\u0275advance(10),r.\u0275\u0275property("ngIf",Ve.selectedFunction.labels.length>0),r.\u0275\u0275advance(4),r.\u0275\u0275property("ngSwitch",!!Ve.selectedFunction.description),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngSwitchCase",!0),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngSwitchCase",!1),r.\u0275\u0275advance(3),r.\u0275\u0275property("ngSwitch",Ve.selectedFunction.args.length),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngSwitchCase",0),r.\u0275\u0275advance(7),r.\u0275\u0275property("matTooltip",Ve.getTooltip(Ve.selectedFunction.returns.rawType)),r.\u0275\u0275advance(1),r.\u0275\u0275textInterpolate(Ve.selectedFunction.returns.type),r.\u0275\u0275advance(5),r.\u0275\u0275property("options",r.\u0275\u0275pureFunction0(20,lt))("ngModel",Ve.selectedFunction.examples.typeScript),r.\u0275\u0275advance(2),r.\u0275\u0275property("options",r.\u0275\u0275pureFunction0(21,yt))("ngModel",Ve.selectedFunction.examples.kotlin),r.\u0275\u0275advance(3),r.\u0275\u0275property("options",r.\u0275\u0275pureFunction0(22,_t))("ngModel",Ve.selectedFunction.examples.dart),r.\u0275\u0275advance(3),r.\u0275\u0275property("options",r.\u0275\u0275pureFunction0(23,ut))("ngModel",Ve.selectedFunction.examples.swift)}}const Ie=function(){return{standalone:!0}};class je{constructor(Qe,Ve,Ke){this.sdkgen=Qe,this.dialog=Ve,this.responsive=Ke,this.isBelowMd=!1,this.runFunction=new h.EventEmitter,this.searchText="",this.argumentsTableColumns=["name","type","description"],this.editorOptions={theme:"vs-dark",language:"javascript"}}ngOnInit(){this.state$=this.sdkgen.state$.subscribe(Qe=>{!Qe||(this.selectedFunction=void 0,this.fnTable=Qe.astRoot.operations.sort((Ve,Ke)=>Ve.name.localeCompare(Ke.name)).map(Ve=>{var Ke,K,we;const ze=Qe.astJson.annotations[`fn.${Ve.name}`],Be=this.sdkgen.buildJsonObject(Ve.args);return null!=ze&&ze.find(We=>"hidden"===We.type)?null:{name:Ve.name,description:null===(Ke=null==ze?void 0:ze.find(We=>"description"===We.type))||void 0===Ke?void 0:Ke.value,args:Ve.args.map(({name:We,type:_e})=>{var Ue,dt,xe;return{name:We,description:null===(xe=[...null!==(Ue=Qe.astJson.annotations[`type.${_e}.${We}`])&&void 0!==Ue?Ue:[],...null!==(dt=Qe.astJson.annotations[`fn.${Ve.name}.${We}`])&&void 0!==dt?dt:[]].find(ye=>"description"===ye.type))||void 0===xe?void 0:xe.value,type:_e.name,rawType:_e}}),argsStr:Ve.args.map(We=>`${We.name}: ${We.type.name}`).join(", "),argsFields:Ve.args,returns:{type:Ve.returnType.name,rawType:Ve.returnType},labels:null!==(K=null==ze?void 0:ze.filter(We=>["rest","throws"].includes(We.type)).map(We=>{var _e;return"rest"===We.type?{name:"REST",type:`${We.value.method} ${We.value.path}`}:"throws"===We.type?{name:"THROWS",type:We.value,dataType:null===(_e=Qe.astRoot.errors.find(Ue=>Ue.name===We.value))||void 0===_e?void 0:_e.dataType}:{name:"?",type:"?"}}))&&void 0!==K?K:[],throws:null===(we=null==ze?void 0:ze.find(We=>"throws"===We.type))||void 0===we?void 0:we.value,examples:{typeScript:this.sdkgen.getTypeScriptCode(Ve.name,Be),kotlin:this.sdkgen.getKotlinCode(Ve.name,Ve.args),dart:this.sdkgen.getDartCode(Ve.name,Be),swift:this.sdkgen.getSwiftCode(Ve.name,Be)}}}).filter(Ve=>Boolean(Ve)))})}ngOnDestroy(){var Qe,Ve;null===(Qe=this.state$)||void 0===Qe||Qe.unsubscribe(),null===(Ve=this.responsive$)||void 0===Ve||Ve.unsubscribe()}ngAfterViewInit(){this.responsive$=this.responsive.isBelowMd().subscribe(Qe=>{this.isBelowMd=Qe.matches})}addSimpleCallTab(){var Qe;this.runFunction.emit(null===(Qe=this.selectedFunction)||void 0===Qe?void 0:Qe.name)}getTooltip(Qe){return(0,_.getTypeDoc)(Qe).shortDescription}showDocumentation(Qe){this.dialog.open(u.TypeDetailsComponent,{position:{right:"0",top:"0",bottom:"0"},data:{type:Qe},height:"100vh",panelClass:["dialog-no-border-radius","dialog-responsive"]})}}o.TabHomeComponent=je,je.\u0275fac=function(Qe){return new(Qe||je)(r.\u0275\u0275directiveInject(c.SdkgenService),r.\u0275\u0275directiveInject(d.MatDialog),r.\u0275\u0275directiveInject(p.ResponsiveService))},je.\u0275cmp=r.\u0275\u0275defineComponent({type:je,selectors:[["app-tab-home"]],outputs:{runFunction:"runFunction"},decls:11,vars:10,consts:[["unit","pixel",3,"direction"],[3,"size"],["type","search","placeholder","Buscar\u2026",3,"ngModel","ngModelOptions","ngModelChange"],[3,"ngClass","click",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"ngClass","click"],[1,"fn-call"],["class","fn-description",4,"ngIf"],[1,"fn-description"],[1,"container"],[1,"mono","hide-overflow"],[1,"k-fn"],[1,"k-name"],[4,"ngFor","ngForOf"],[1,"k-sym"],[1,"k-type",3,"matTooltip","click"],["comma",""],["lineBreak",""],["mat-raised-button","","color","primary",3,"click"],["class","container","id","labels",4,"ngIf"],["id","description"],[3,"ngSwitch"],[4,"ngSwitchCase"],["class","no-content",4,"ngSwitchCase"],["id","parameters"],[1,"table-responsive","mat-elevation-z8"],["mat-table","",3,"dataSource",4,"ngSwitchDefault"],["id","returns"],[1,"mono"],[3,"matTooltip","click"],["id","sample-calls"],["animationDuration","0ms"],["label","TypeScript"],[3,"options","ngModel"],["label","Kotlin"],["disabled",""],["mat-tab-label",""],[1,"k-arg-name"],[4,"ngIf","ngIfThen","ngIfElse"],["id","labels",1,"container"],[3,"selectable"],["color","primary",3,"disableRipple",4,"ngFor","ngForOf"],["color","primary",3,"disableRipple"],[3,"matTooltip","click",4,"ngIf"],[1,"no-content"],["mat-table","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["class","mono","mat-cell","",4,"matCellDef"],["matColumnDef","type"],["matColumnDef","description"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"mono"],["mat-cell",""],["mat-header-row",""],["mat-row",""],["matTooltip","Em breve!"]],template:function(Qe,Ve){1&Qe&&(r.\u0275\u0275elementStart(0,"as-split",0)(1,"as-split-area",1)(2,"aside")(3,"nav")(4,"form")(5,"input",2),r.\u0275\u0275listener("ngModelChange",function(K){return Ve.searchText=K}),r.\u0275\u0275elementEnd()(),r.\u0275\u0275elementStart(6,"ul"),r.\u0275\u0275template(7,$,4,5,"li",3),r.\u0275\u0275pipe(8,"appFilter"),r.\u0275\u0275elementEnd()()()(),r.\u0275\u0275elementStart(9,"as-split-area"),r.\u0275\u0275template(10,He,58,24,"article",4),r.\u0275\u0275elementEnd()()),2&Qe&&(r.\u0275\u0275property("direction",Ve.isBelowMd?"vertical":"horizontal"),r.\u0275\u0275advance(1),r.\u0275\u0275property("size",Ve.isBelowMd?130:350),r.\u0275\u0275advance(4),r.\u0275\u0275property("ngModel",Ve.searchText)("ngModelOptions",r.\u0275\u0275pureFunction0(9,Ie)),r.\u0275\u0275advance(2),r.\u0275\u0275property("ngForOf",r.\u0275\u0275pipeBind2(8,6,Ve.fnTable,Ve.searchText)),r.\u0275\u0275advance(3),r.\u0275\u0275property("ngIf",Ve.selectedFunction))},dependencies:[y.NgClass,y.NgForOf,y.NgIf,y.NgSwitch,y.NgSwitchCase,y.NgSwitchDefault,f.\u0275NgNoValidate,f.DefaultValueAccessor,f.NgControlStatus,f.NgControlStatusGroup,f.NgModel,f.NgForm,b.MonacoEditorComponent,v.SplitComponent,v.SplitAreaDirective,m.MatButton,C.MatChipList,C.MatChip,M.MatIcon,O.MatTable,O.MatHeaderCellDef,O.MatHeaderRowDef,O.MatColumnDef,O.MatCellDef,O.MatRowDef,O.MatHeaderCell,O.MatCell,O.MatHeaderRow,O.MatRow,P.MatTabGroup,P.MatTabLabel,P.MatTab,N.MatTooltip,Y.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%]{text-decoration-style:dotted;cursor:pointer;font-family:Roboto Mono,monospace}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{background-color:#2b2b2b;padding:25px 20px;width:100%;position:sticky;top:0;left:0;right:0;z-index:3}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{display:flex;margin:0 auto;font-weight:300;line-height:36px;white-space:pre}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] span.hide-overflow[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] .k-fn[_ngcontent-%COMP%]{color:#c586c0}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] .k-name[_ngcontent-%COMP%]{color:#dcdcaa}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] .k-arg-name[_ngcontent-%COMP%]{color:#9cdcfe}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] .k-sym[_ngcontent-%COMP%]{color:#d4d4d4}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] .k-type[_ngcontent-%COMP%]{color:#569cd6}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{min-width:130px;align-self:center}article[_ngcontent-%COMP%] section[_ngcontent-%COMP%]{display:block;padding:0 20px 15px}article[_ngcontent-%COMP%] section#labels[_ngcontent-%COMP%]{padding:20px 20px 0}article[_ngcontent-%COMP%] section#labels[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{overflow:hidden}article[_ngcontent-%COMP%] section#labels[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]:focus{outline:none}article[_ngcontent-%COMP%] section#labels[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{display:block;width:1.3px;background:#FFF;margin:0 7.5px;border-radius:5px;height:calc(100% + 14px)}article[_ngcontent-%COMP%] section[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-weight:300;margin-top:40px;text-transform:uppercase}article[_ngcontent-%COMP%] section[_ngcontent-%COMP%] .no-content[_ngcontent-%COMP%]{background-color:#383838;color:#fafafa;display:inline-block;padding:15px;border-radius:5px;margin-top:0}article[_ngcontent-%COMP%] section[_ngcontent-%COMP%] table[_ngcontent-%COMP%], article[_ngcontent-%COMP%] section[_ngcontent-%COMP%] .table-responsive[_ngcontent-%COMP%], article[_ngcontent-%COMP%] section[_ngcontent-%COMP%] mat-tab-group[_ngcontent-%COMP%]{width:100%;max-width:720px}article[_ngcontent-%COMP%] section[_ngcontent-%COMP%] .mat-tab-body-content{overflow-y:hidden}article[_ngcontent-%COMP%] section[_ngcontent-%COMP%] ngx-monaco-editor[_ngcontent-%COMP%]{display:block;height:100%;min-height:300px}"]})},2253:(z,o,a)=>{"use strict";var n=a(7156).default;Object.defineProperty(o,"__esModule",{value:!0}),o.TabNavComponent=void 0;const h=a(655),_=a(3075),u=a(6676),r=a(4814),c=h.__importStar(a(5e3)),d=h.__importStar(a(6395)),p=h.__importStar(a(2290)),y=h.__importStar(a(9694)),f=h.__importStar(a(9808)),b=h.__importStar(a(3075)),v=h.__importStar(a(7423)),m=h.__importStar(a(3293)),C=h.__importStar(a(508));function M(N,Y){1&N&&(c.\u0275\u0275elementContainerStart(0),c.\u0275\u0275elementStart(1,"mat-icon",6),c.\u0275\u0275text(2,"loop"),c.\u0275\u0275elementEnd(),c.\u0275\u0275elementContainerEnd())}function O(N,Y){1&N&&(c.\u0275\u0275elementContainerStart(0),c.\u0275\u0275elementStart(1,"mat-icon"),c.\u0275\u0275text(2,"arrow_forward"),c.\u0275\u0275elementEnd(),c.\u0275\u0275elementContainerEnd())}class P{constructor(Y,U,G){this.sdkgen=Y,this.toastr=U,this.dialog=G,this.loading=!1,this.url=new _.FormControl("")}ngOnInit(){fetch("/ast.json").then(Y=>{Y.ok&&(this.url.setValue(`${window.location.protocol}//${window.location.host}`),this.loadUrl())}).catch(()=>{})}loadUrl(Y){var U=this;return n(function*(){null==Y||Y.preventDefault();try{U.loading=!0,/^https?:\/\//.test(U.url.value)||U.url.setValue(`https://${U.url.value}`);const G=new URL(U.url.value);G.pathname+=(/\/$/u.test(G.pathname)?"":"/")+"ast.json";const $=G.toString();console.debug("astUrl",$);const J=yield fetch($).then(te=>te.ok?te.json():te);if(J instanceof Response)throw J instanceof Error?J:new Error(J.statusText);if(!J.errors||!J.functionTable||!J.typeTable)throw new Error("Invalid AST");for(;"undefined"==typeof monaco;)yield new Promise(te=>setTimeout(te,250));console.debug("astJson",J),U.sdkgen.state$.next({astJson:J,astRoot:(0,u.jsonToAst)(J),url:U.url.value})}catch(G){U.toastr.error(G instanceof Error?G.message:JSON.stringify(G),"Erro ao carregar AST",{positionClass:"toast-bottom-right"})}finally{U.loading=!1}})()}openAbout(){this.dialog.open(r.DialogAboutComponent)}}o.TabNavComponent=P,P.\u0275fac=function(Y){return new(Y||P)(c.\u0275\u0275directiveInject(d.SdkgenService),c.\u0275\u0275directiveInject(p.ToastrService),c.\u0275\u0275directiveInject(y.MatDialog))},P.\u0275cmp=c.\u0275\u0275defineComponent({type:P,selectors:[["app-tab-nav"]],decls:9,vars:6,consts:[["src","assets/polvinho.png"],[3,"submit"],["placeholder","Digite uma URL aqui para conectar",3,"formControl","readonly"],["mat-ripple","","type","submit",3,"disabled","ngSwitch"],[4,"ngSwitchCase"],["mat-icon-button","",3,"click"],[1,"loader"]],template:function(Y,U){1&Y&&(c.\u0275\u0275element(0,"img",0),c.\u0275\u0275elementStart(1,"form",1),c.\u0275\u0275listener("submit",function($){return U.loadUrl($)}),c.\u0275\u0275element(2,"input",2),c.\u0275\u0275elementStart(3,"button",3),c.\u0275\u0275template(4,M,3,0,"ng-container",4),c.\u0275\u0275template(5,O,3,0,"ng-container",4),c.\u0275\u0275elementEnd()(),c.\u0275\u0275elementStart(6,"button",5),c.\u0275\u0275listener("click",function(){return U.openAbout()}),c.\u0275\u0275elementStart(7,"mat-icon"),c.\u0275\u0275text(8,"info"),c.\u0275\u0275elementEnd()()),2&Y&&(c.\u0275\u0275advance(2),c.\u0275\u0275property("formControl",U.url)("readonly",U.loading),c.\u0275\u0275advance(1),c.\u0275\u0275property("disabled",U.loading)("ngSwitch",U.loading),c.\u0275\u0275advance(1),c.\u0275\u0275property("ngSwitchCase",!0),c.\u0275\u0275advance(1),c.\u0275\u0275property("ngSwitchCase",!1))},dependencies:[f.NgSwitch,f.NgSwitchCase,b.\u0275NgNoValidate,b.DefaultValueAccessor,b.NgControlStatus,b.NgControlStatusGroup,b.NgForm,b.FormControlDirective,v.MatButton,m.MatIcon,C.MatRipple],styles:["[_nghost-%COMP%]{display:flex;height:42px;background-color:#2b2b2b;box-shadow:0 0 3px #00000080}img[_ngcontent-%COMP%]{padding:5px}form[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-grow:1;box-shadow:0 0 1px #00000080;background:#383838;border:0 none;border-radius:5px;margin:5px 10vw 5px calc(10vw - 42px);overflow:hidden}form[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{flex-grow:1;padding:10px 5px;background:transparent;border:0 none;text-align:center;color:#ccc}form[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:none}form[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background:transparent;color:#bfbfbf;border:0 none;cursor:pointer}form[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%]{animation:spin 2s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]})},5281:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.TypeDetailsComponent=void 0;const n=a(655),h=a(9694),_=a(9435),u=n.__importStar(a(5e3)),r=n.__importStar(a(9694)),c=n.__importStar(a(9808)),d=n.__importStar(a(7423)),p=n.__importStar(a(9417)),y=n.__importStar(a(3293)),f=n.__importStar(a(4999)),b=n.__importStar(a(7238));function v(ie,Ae){1&ie&&(u.\u0275\u0275elementStart(0,"button",6)(1,"mat-icon"),u.\u0275\u0275text(2,"arrow_back"),u.\u0275\u0275elementEnd()())}function m(ie,Ae){if(1&ie&&(u.\u0275\u0275elementStart(0,"mat-chip",7),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&ie){const oe=Ae.$implicit;u.\u0275\u0275property("disableRipple",!0),u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate(oe)}}function C(ie,Ae){1&ie&&(u.\u0275\u0275elementStart(0,"button",8)(1,"mat-icon"),u.\u0275\u0275text(2,"close"),u.\u0275\u0275elementEnd()())}function M(ie,Ae){1&ie&&(u.\u0275\u0275elementStart(0,"th",20),u.\u0275\u0275text(1,"Nome"),u.\u0275\u0275elementEnd())}function O(ie,Ae){if(1&ie&&(u.\u0275\u0275elementStart(0,"td",21),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&ie){const oe=Ae.$implicit;u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate(oe.name)}}function P(ie,Ae){1&ie&&(u.\u0275\u0275elementStart(0,"th",20),u.\u0275\u0275text(1,"Tipo"),u.\u0275\u0275elementEnd())}function N(ie,Ae){1&ie&&(u.\u0275\u0275elementStart(0,"span"),u.\u0275\u0275text(1,"-"),u.\u0275\u0275elementEnd())}function Y(ie,Ae){if(1&ie){const oe=u.\u0275\u0275getCurrentView();u.\u0275\u0275elementStart(0,"u",25),u.\u0275\u0275listener("click",function(){u.\u0275\u0275restoreView(oe);const V=u.\u0275\u0275nextContext().$implicit,H=u.\u0275\u0275nextContext(2);return u.\u0275\u0275resetView(H.showDocumentation(V.type))}),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()}if(2&ie){const oe=u.\u0275\u0275nextContext().$implicit,me=u.\u0275\u0275nextContext(2);u.\u0275\u0275property("matTooltip",me.getTooltip(oe.type)),u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate(oe.type.name)}}function U(ie,Ae){1&ie&&(u.\u0275\u0275elementStart(0,"td",22),u.\u0275\u0275template(1,N,2,0,"span",23),u.\u0275\u0275template(2,Y,2,2,"u",24),u.\u0275\u0275elementEnd()),2&ie&&(u.\u0275\u0275property("ngSwitch",Ae.$implicit.type),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngSwitchCase",null))}function G(ie,Ae){1&ie&&(u.\u0275\u0275elementStart(0,"th",20),u.\u0275\u0275text(1,"Descri\xe7\xe3o"),u.\u0275\u0275elementEnd())}function $(ie,Ae){if(1&ie&&(u.\u0275\u0275elementStart(0,"td",26),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&ie){const oe=Ae.$implicit;u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate(oe.description||"-")}}function J(ie,Ae){1&ie&&u.\u0275\u0275element(0,"tr",27)}function te(ie,Ae){1&ie&&u.\u0275\u0275element(0,"tr",28)}const he=function(){return[]};function Fe(ie,Ae){if(1&ie&&(u.\u0275\u0275elementStart(0,"section")(1,"div",9)(2,"table",10),u.\u0275\u0275elementContainerStart(3,11),u.\u0275\u0275template(4,M,2,0,"th",12),u.\u0275\u0275template(5,O,2,1,"td",13),u.\u0275\u0275elementContainerEnd(),u.\u0275\u0275elementContainerStart(6,14),u.\u0275\u0275template(7,P,2,0,"th",12),u.\u0275\u0275template(8,U,3,2,"td",15),u.\u0275\u0275elementContainerEnd(),u.\u0275\u0275elementContainerStart(9,16),u.\u0275\u0275template(10,G,2,0,"th",12),u.\u0275\u0275template(11,$,2,1,"td",17),u.\u0275\u0275elementContainerEnd(),u.\u0275\u0275template(12,J,1,0,"tr",18),u.\u0275\u0275template(13,te,1,0,"tr",19),u.\u0275\u0275elementEnd()()()),2&ie){const oe=u.\u0275\u0275nextContext();let me;u.\u0275\u0275advance(2),u.\u0275\u0275property("dataSource",null!==(me=null==oe.typeDoc?null:oe.typeDoc.structFields)&&void 0!==me?me:u.\u0275\u0275pureFunction0(3,he)),u.\u0275\u0275advance(10),u.\u0275\u0275property("matHeaderRowDef",oe.argumentsTableColumns),u.\u0275\u0275advance(1),u.\u0275\u0275property("matRowDefColumns",oe.argumentsTableColumns)}}function it(ie,Ae){if(1&ie&&(u.\u0275\u0275elementStart(0,"li")(1,"code",1),u.\u0275\u0275text(2),u.\u0275\u0275elementEnd()()),2&ie){const oe=Ae.$implicit;u.\u0275\u0275advance(2),u.\u0275\u0275textInterpolate(oe)}}function be(ie,Ae){if(1&ie&&(u.\u0275\u0275elementStart(0,"section")(1,"h3"),u.\u0275\u0275text(2,"Exemplos"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(3,"ul"),u.\u0275\u0275template(4,it,3,1,"li",29),u.\u0275\u0275elementEnd()()),2&ie){const oe=u.\u0275\u0275nextContext();u.\u0275\u0275advance(4),u.\u0275\u0275property("ngForOf",null==oe.typeDoc?null:oe.typeDoc.examples)}}class ke{constructor(Ae,oe,me){this.dialogRef=Ae,this.data=oe,this.dialog=me,this.labels=[],this.argumentsTableColumns=["name","type","description"]}ngOnInit(){this.labels=(0,_.getTypeLabels)(this.data.type),this.typeDoc=(0,_.getTypeDoc)(this.data.type)}getTooltip(Ae){return(0,_.getTypeDoc)(Ae).shortDescription}showDocumentation(Ae){this.dialog.open(ke,{position:{right:"0"},data:{type:Ae,subdialog:!0},height:"100vh",panelClass:["dialog-no-border-radius","dialog-responsive"]})}}o.TypeDetailsComponent=ke,ke.\u0275fac=function(Ae){return new(Ae||ke)(u.\u0275\u0275directiveInject(r.MatDialogRef),u.\u0275\u0275directiveInject(h.MAT_DIALOG_DATA),u.\u0275\u0275directiveInject(r.MatDialog))},ke.\u0275cmp=u.\u0275\u0275defineComponent({type:ke,selectors:[["app-type-details"]],decls:11,vars:8,consts:[["class","back-button","mat-icon-button","","mat-dialog-close","","tabindex","-1",4,"ngIf"],[1,"mono"],[3,"selectable"],["color","primary",3,"disableRipple",4,"ngFor","ngForOf"],["class","close-button","mat-icon-button","","mat-dialog-close","","tabindex","-1",4,"ngIf"],[4,"ngIf"],["mat-icon-button","","mat-dialog-close","","tabindex","-1",1,"back-button"],["color","primary",3,"disableRipple"],["mat-icon-button","","mat-dialog-close","","tabindex","-1",1,"close-button"],[1,"table-responsive","mat-elevation-z8"],["mat-table","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["class","mono","mat-cell","",4,"matCellDef"],["matColumnDef","type"],["class","mono","mat-cell","",3,"ngSwitch",4,"matCellDef"],["matColumnDef","description"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"mono"],["mat-cell","",1,"mono",3,"ngSwitch"],[4,"ngSwitchCase"],[3,"matTooltip","click",4,"ngSwitchDefault"],[3,"matTooltip","click"],["mat-cell",""],["mat-header-row",""],["mat-row",""],[4,"ngFor","ngForOf"]],template:function(Ae,oe){1&Ae&&(u.\u0275\u0275elementStart(0,"h1"),u.\u0275\u0275template(1,v,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,m,2,2,"mat-chip",3),u.\u0275\u0275elementEnd(),u.\u0275\u0275template(6,C,3,0,"button",4),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(7,"p"),u.\u0275\u0275text(8),u.\u0275\u0275elementEnd(),u.\u0275\u0275template(9,Fe,14,4,"section",5),u.\u0275\u0275template(10,be,5,1,"section",5)),2&Ae&&(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))},dependencies:[c.NgForOf,c.NgIf,c.NgSwitch,c.NgSwitchCase,c.NgSwitchDefault,d.MatButton,p.MatChipList,p.MatChip,r.MatDialogClose,y.MatIcon,f.MatTable,f.MatHeaderCellDef,f.MatHeaderRowDef,f.MatColumnDef,f.MatCellDef,f.MatRowDef,f.MatHeaderCell,f.MatCell,f.MatHeaderRow,f.MatRow,b.MatTooltip],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%]{text-decoration-style:dotted;cursor:pointer}"]})},8227:(z,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.unwrap=o.wrapper=void 0,o.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',o.unwrap="\n XMLHttpRequest.prototype.open = window.___originalXmlHttpRequestOpen;\n console.log = window.___originalConsoleLog;\n console.error = window.___originalConsoleError;\n"},2340:(z,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.environment=void 0,o.environment={production:!0}},4431:(z,o,a)=>{"use strict";const _=a(655).__importStar(a(2313)),u=a(5e3),r=a(6747);a(2340).environment.production&&(0,u.enableProdMode)(),_.platformBrowser().bootstrapModule(r.AppModule).catch(d=>console.error(d))},4327:function(z,o){var h;void 0!==(h=function(){"use strict";function u(f,b,v){var m=new XMLHttpRequest;m.open("GET",f),m.responseType="blob",m.onload=function(){y(m.response,b,v)},m.onerror=function(){console.error("could not download file")},m.send()}function r(f){var b=new XMLHttpRequest;b.open("HEAD",f,!1);try{b.send()}catch(v){}return 200<=b.status&&299>=b.status}function c(f){try{f.dispatchEvent(new MouseEvent("click"))}catch(v){var b=document.createEvent("MouseEvents");b.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),f.dispatchEvent(b)}}var d="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,p=d.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),y=d.saveAs||("object"!=typeof window||window!==d?function(){}:"download"in HTMLAnchorElement.prototype&&!p?function(f,b,v){var m=d.URL||d.webkitURL,C=document.createElement("a");C.download=b=b||f.name||"download",C.rel="noopener","string"==typeof f?(C.href=f,C.origin===location.origin?c(C):r(C.href)?u(f,b,v):c(C,C.target="_blank")):(C.href=m.createObjectURL(f),setTimeout(function(){m.revokeObjectURL(C.href)},4e4),setTimeout(function(){c(C)},0))}:"msSaveOrOpenBlob"in navigator?function(f,b,v){if(b=b||f.name||"download","string"!=typeof f)navigator.msSaveOrOpenBlob(function _(f,b){return void 0===b?b={autoBom:!1}:"object"!=typeof b&&(console.warn("Deprecated: Expected third argument to be a object"),b={autoBom:!b}),b.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(f.type)?new Blob(["\ufeff",f],{type:f.type}):f}(f,v),b);else if(r(f))u(f,b,v);else{var m=document.createElement("a");m.href=f,m.target="_blank",setTimeout(function(){c(m)})}}:function(f,b,v,m){if((m=m||open("","_blank"))&&(m.document.title=m.document.body.innerText="downloading..."),"string"==typeof f)return u(f,b,v);var C="application/octet-stream"===f.type,M=/constructor/i.test(d.HTMLElement)||d.safari,O=/CriOS\/[\d]+/.test(navigator.userAgent);if((O||C&&M||p)&&"undefined"!=typeof FileReader){var P=new FileReader;P.onloadend=function(){var U=P.result;U=O?U:U.replace(/^data:[^;]*;/,"data:attachment/file;"),m?m.location.href=U:location=U,m=null},P.readAsDataURL(f)}else{var N=d.URL||d.webkitURL,Y=N.createObjectURL(f);m?m.location=Y:location.href=Y,m=null,setTimeout(function(){N.revokeObjectURL(Y)},4e4)}});d.saveAs=y.saveAs=y,z.exports=y}.apply(o,[]))&&(z.exports=h)},6477:function(z,o,a){"use strict";var n=this&&this.__createBinding||(Object.create?function(mi,In,Tn,qn){void 0===qn&&(qn=Tn),Object.defineProperty(mi,qn,{enumerable:!0,get:function(){return In[Tn]}})}:function(mi,In,Tn,qn){void 0===qn&&(qn=Tn),mi[qn]=In[Tn]}),h=this&&this.__exportStar||function(mi,In){for(var Tn in mi)"default"!==Tn&&!Object.prototype.hasOwnProperty.call(In,Tn)&&n(In,mi,Tn)};Object.defineProperty(o,"__esModule",{value:!0}),o.interval=o.iif=o.generate=o.fromEventPattern=o.fromEvent=o.from=o.forkJoin=o.empty=o.defer=o.connectable=o.concat=o.combineLatest=o.bindNodeCallback=o.bindCallback=o.UnsubscriptionError=o.TimeoutError=o.SequenceError=o.ObjectUnsubscribedError=o.NotFoundError=o.EmptyError=o.ArgumentOutOfRangeError=o.firstValueFrom=o.lastValueFrom=o.isObservable=o.identity=o.noop=o.pipe=o.NotificationKind=o.Notification=o.Subscriber=o.Subscription=o.Scheduler=o.VirtualAction=o.VirtualTimeScheduler=o.animationFrameScheduler=o.animationFrame=o.queueScheduler=o.queue=o.asyncScheduler=o.async=o.asapScheduler=o.asap=o.AsyncSubject=o.ReplaySubject=o.BehaviorSubject=o.Subject=o.animationFrames=o.observable=o.ConnectableObservable=o.Observable=void 0,o.filter=o.expand=o.exhaustMap=o.exhaustAll=o.exhaust=o.every=o.endWith=o.elementAt=o.distinctUntilKeyChanged=o.distinctUntilChanged=o.distinct=o.dematerialize=o.delayWhen=o.delay=o.defaultIfEmpty=o.debounceTime=o.debounce=o.count=o.connect=o.concatWith=o.concatMapTo=o.concatMap=o.concatAll=o.combineLatestWith=o.combineLatestAll=o.combineAll=o.catchError=o.bufferWhen=o.bufferToggle=o.bufferTime=o.bufferCount=o.buffer=o.auditTime=o.audit=o.config=o.NEVER=o.EMPTY=o.scheduled=o.zip=o.using=o.timer=o.throwError=o.range=o.race=o.partition=o.pairs=o.onErrorResumeNext=o.of=o.never=o.merge=void 0,o.switchMapTo=o.switchMap=o.switchAll=o.subscribeOn=o.startWith=o.skipWhile=o.skipUntil=o.skipLast=o.skip=o.single=o.shareReplay=o.share=o.sequenceEqual=o.scan=o.sampleTime=o.sample=o.refCount=o.retryWhen=o.retry=o.repeatWhen=o.repeat=o.reduce=o.raceWith=o.publishReplay=o.publishLast=o.publishBehavior=o.publish=o.pluck=o.pairwise=o.observeOn=o.multicast=o.min=o.mergeWith=o.mergeScan=o.mergeMapTo=o.mergeMap=o.flatMap=o.mergeAll=o.max=o.materialize=o.mapTo=o.map=o.last=o.isEmpty=o.ignoreElements=o.groupBy=o.first=o.findIndex=o.find=o.finalize=void 0,o.zipWith=o.zipAll=o.withLatestFrom=o.windowWhen=o.windowToggle=o.windowTime=o.windowCount=o.window=o.toArray=o.timestamp=o.timeoutWith=o.timeout=o.timeInterval=o.throwIfEmpty=o.throttleTime=o.throttle=o.tap=o.takeWhile=o.takeUntil=o.takeLast=o.take=o.switchScan=void 0;var _=a(5821);Object.defineProperty(o,"Observable",{enumerable:!0,get:function(){return _.Observable}});var u=a(6686);Object.defineProperty(o,"ConnectableObservable",{enumerable:!0,get:function(){return u.ConnectableObservable}});var r=a(1689);Object.defineProperty(o,"observable",{enumerable:!0,get:function(){return r.observable}});var c=a(2946);Object.defineProperty(o,"animationFrames",{enumerable:!0,get:function(){return c.animationFrames}});var d=a(3768);Object.defineProperty(o,"Subject",{enumerable:!0,get:function(){return d.Subject}});var p=a(5482);Object.defineProperty(o,"BehaviorSubject",{enumerable:!0,get:function(){return p.BehaviorSubject}});var y=a(3406);Object.defineProperty(o,"ReplaySubject",{enumerable:!0,get:function(){return y.ReplaySubject}});var f=a(7606);Object.defineProperty(o,"AsyncSubject",{enumerable:!0,get:function(){return f.AsyncSubject}});var b=a(1212);Object.defineProperty(o,"asap",{enumerable:!0,get:function(){return b.asap}}),Object.defineProperty(o,"asapScheduler",{enumerable:!0,get:function(){return b.asapScheduler}});var v=a(4006);Object.defineProperty(o,"async",{enumerable:!0,get:function(){return v.async}}),Object.defineProperty(o,"asyncScheduler",{enumerable:!0,get:function(){return v.asyncScheduler}});var m=a(5668);Object.defineProperty(o,"queue",{enumerable:!0,get:function(){return m.queue}}),Object.defineProperty(o,"queueScheduler",{enumerable:!0,get:function(){return m.queueScheduler}});var C=a(1906);Object.defineProperty(o,"animationFrame",{enumerable:!0,get:function(){return C.animationFrame}}),Object.defineProperty(o,"animationFrameScheduler",{enumerable:!0,get:function(){return C.animationFrameScheduler}});var M=a(2018);Object.defineProperty(o,"VirtualTimeScheduler",{enumerable:!0,get:function(){return M.VirtualTimeScheduler}}),Object.defineProperty(o,"VirtualAction",{enumerable:!0,get:function(){return M.VirtualAction}});var O=a(2716);Object.defineProperty(o,"Scheduler",{enumerable:!0,get:function(){return O.Scheduler}});var P=a(6448);Object.defineProperty(o,"Subscription",{enumerable:!0,get:function(){return P.Subscription}});var N=a(7052);Object.defineProperty(o,"Subscriber",{enumerable:!0,get:function(){return N.Subscriber}});var Y=a(7262);Object.defineProperty(o,"Notification",{enumerable:!0,get:function(){return Y.Notification}}),Object.defineProperty(o,"NotificationKind",{enumerable:!0,get:function(){return Y.NotificationKind}});var U=a(1471);Object.defineProperty(o,"pipe",{enumerable:!0,get:function(){return U.pipe}});var G=a(31);Object.defineProperty(o,"noop",{enumerable:!0,get:function(){return G.noop}});var $=a(7884);Object.defineProperty(o,"identity",{enumerable:!0,get:function(){return $.identity}});var J=a(4341);Object.defineProperty(o,"isObservable",{enumerable:!0,get:function(){return J.isObservable}});var te=a(5257);Object.defineProperty(o,"lastValueFrom",{enumerable:!0,get:function(){return te.lastValueFrom}});var he=a(5754);Object.defineProperty(o,"firstValueFrom",{enumerable:!0,get:function(){return he.firstValueFrom}});var Fe=a(4769);Object.defineProperty(o,"ArgumentOutOfRangeError",{enumerable:!0,get:function(){return Fe.ArgumentOutOfRangeError}});var it=a(8915);Object.defineProperty(o,"EmptyError",{enumerable:!0,get:function(){return it.EmptyError}});var be=a(5477);Object.defineProperty(o,"NotFoundError",{enumerable:!0,get:function(){return be.NotFoundError}});var ke=a(3965);Object.defineProperty(o,"ObjectUnsubscribedError",{enumerable:!0,get:function(){return ke.ObjectUnsubscribedError}});var ie=a(1551);Object.defineProperty(o,"SequenceError",{enumerable:!0,get:function(){return ie.SequenceError}});var Ae=a(5001);Object.defineProperty(o,"TimeoutError",{enumerable:!0,get:function(){return Ae.TimeoutError}});var oe=a(4970);Object.defineProperty(o,"UnsubscriptionError",{enumerable:!0,get:function(){return oe.UnsubscriptionError}});var me=a(7532);Object.defineProperty(o,"bindCallback",{enumerable:!0,get:function(){return me.bindCallback}});var V=a(3488);Object.defineProperty(o,"bindNodeCallback",{enumerable:!0,get:function(){return V.bindNodeCallback}});var H=a(6892);Object.defineProperty(o,"combineLatest",{enumerable:!0,get:function(){return H.combineLatest}});var re=a(509);Object.defineProperty(o,"concat",{enumerable:!0,get:function(){return re.concat}});var B=a(9190);Object.defineProperty(o,"connectable",{enumerable:!0,get:function(){return B.connectable}});var ue=a(9954);Object.defineProperty(o,"defer",{enumerable:!0,get:function(){return ue.defer}});var ge=a(7406);Object.defineProperty(o,"empty",{enumerable:!0,get:function(){return ge.empty}});var Te=a(7928);Object.defineProperty(o,"forkJoin",{enumerable:!0,get:function(){return Te.forkJoin}});var Pe=a(4996);Object.defineProperty(o,"from",{enumerable:!0,get:function(){return Pe.from}});var Ce=a(2579);Object.defineProperty(o,"fromEvent",{enumerable:!0,get:function(){return Ce.fromEvent}});var $e=a(3975);Object.defineProperty(o,"fromEventPattern",{enumerable:!0,get:function(){return $e.fromEventPattern}});var lt=a(4318);Object.defineProperty(o,"generate",{enumerable:!0,get:function(){return lt.generate}});var yt=a(3140);Object.defineProperty(o,"iif",{enumerable:!0,get:function(){return yt.iif}});var _t=a(1836);Object.defineProperty(o,"interval",{enumerable:!0,get:function(){return _t.interval}});var ut=a(9248);Object.defineProperty(o,"merge",{enumerable:!0,get:function(){return ut.merge}});var He=a(2818);Object.defineProperty(o,"never",{enumerable:!0,get:function(){return He.never}});var Ie=a(9677);Object.defineProperty(o,"of",{enumerable:!0,get:function(){return Ie.of}});var je=a(9978);Object.defineProperty(o,"onErrorResumeNext",{enumerable:!0,get:function(){return je.onErrorResumeNext}});var pe=a(5519);Object.defineProperty(o,"pairs",{enumerable:!0,get:function(){return pe.pairs}});var Qe=a(8221);Object.defineProperty(o,"partition",{enumerable:!0,get:function(){return Qe.partition}});var Ve=a(8181);Object.defineProperty(o,"race",{enumerable:!0,get:function(){return Ve.race}});var Ke=a(4622);Object.defineProperty(o,"range",{enumerable:!0,get:function(){return Ke.range}});var K=a(338);Object.defineProperty(o,"throwError",{enumerable:!0,get:function(){return K.throwError}});var we=a(3271);Object.defineProperty(o,"timer",{enumerable:!0,get:function(){return we.timer}});var ze=a(924);Object.defineProperty(o,"using",{enumerable:!0,get:function(){return ze.using}});var Be=a(4842);Object.defineProperty(o,"zip",{enumerable:!0,get:function(){return Be.zip}});var We=a(9341);Object.defineProperty(o,"scheduled",{enumerable:!0,get:function(){return We.scheduled}});var _e=a(7406);Object.defineProperty(o,"EMPTY",{enumerable:!0,get:function(){return _e.EMPTY}});var Ue=a(2818);Object.defineProperty(o,"NEVER",{enumerable:!0,get:function(){return Ue.NEVER}}),h(a(5256),o);var dt=a(3570);Object.defineProperty(o,"config",{enumerable:!0,get:function(){return dt.config}});var xe=a(4815);Object.defineProperty(o,"audit",{enumerable:!0,get:function(){return xe.audit}});var W=a(9034);Object.defineProperty(o,"auditTime",{enumerable:!0,get:function(){return W.auditTime}});var ye=a(8544);Object.defineProperty(o,"buffer",{enumerable:!0,get:function(){return ye.buffer}});var de=a(3999);Object.defineProperty(o,"bufferCount",{enumerable:!0,get:function(){return de.bufferCount}});var Ne=a(1392);Object.defineProperty(o,"bufferTime",{enumerable:!0,get:function(){return Ne.bufferTime}});var tt=a(555);Object.defineProperty(o,"bufferToggle",{enumerable:!0,get:function(){return tt.bufferToggle}});var mt=a(7274);Object.defineProperty(o,"bufferWhen",{enumerable:!0,get:function(){return mt.bufferWhen}});var Ft=a(6e3);Object.defineProperty(o,"catchError",{enumerable:!0,get:function(){return Ft.catchError}});var At=a(8996);Object.defineProperty(o,"combineAll",{enumerable:!0,get:function(){return At.combineAll}});var Yt=a(8931);Object.defineProperty(o,"combineLatestAll",{enumerable:!0,get:function(){return Yt.combineLatestAll}});var Nt=a(8947);Object.defineProperty(o,"combineLatestWith",{enumerable:!0,get:function(){return Nt.combineLatestWith}});var rt=a(739);Object.defineProperty(o,"concatAll",{enumerable:!0,get:function(){return rt.concatAll}});var Je=a(4659);Object.defineProperty(o,"concatMap",{enumerable:!0,get:function(){return Je.concatMap}});var Ee=a(2993);Object.defineProperty(o,"concatMapTo",{enumerable:!0,get:function(){return Ee.concatMapTo}});var ve=a(5898);Object.defineProperty(o,"concatWith",{enumerable:!0,get:function(){return ve.concatWith}});var se=a(9725);Object.defineProperty(o,"connect",{enumerable:!0,get:function(){return se.connect}});var ae=a(1814);Object.defineProperty(o,"count",{enumerable:!0,get:function(){return ae.count}});var j=a(9784);Object.defineProperty(o,"debounce",{enumerable:!0,get:function(){return j.debounce}});var Me=a(7061);Object.defineProperty(o,"debounceTime",{enumerable:!0,get:function(){return Me.debounceTime}});var vt=a(926);Object.defineProperty(o,"defaultIfEmpty",{enumerable:!0,get:function(){return vt.defaultIfEmpty}});var Ge=a(2096);Object.defineProperty(o,"delay",{enumerable:!0,get:function(){return Ge.delay}});var bt=a(3264);Object.defineProperty(o,"delayWhen",{enumerable:!0,get:function(){return bt.delayWhen}});var X=a(533);Object.defineProperty(o,"dematerialize",{enumerable:!0,get:function(){return X.dematerialize}});var Oe=a(5045);Object.defineProperty(o,"distinct",{enumerable:!0,get:function(){return Oe.distinct}});var at=a(5794);Object.defineProperty(o,"distinctUntilChanged",{enumerable:!0,get:function(){return at.distinctUntilChanged}});var Dt=a(8589);Object.defineProperty(o,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return Dt.distinctUntilKeyChanged}});var Ht=a(1069);Object.defineProperty(o,"elementAt",{enumerable:!0,get:function(){return Ht.elementAt}});var rn=a(4312);Object.defineProperty(o,"endWith",{enumerable:!0,get:function(){return rn.endWith}});var Xt=a(9098);Object.defineProperty(o,"every",{enumerable:!0,get:function(){return Xt.every}});var vn=a(5429);Object.defineProperty(o,"exhaust",{enumerable:!0,get:function(){return vn.exhaust}});var qe=a(1399);Object.defineProperty(o,"exhaustAll",{enumerable:!0,get:function(){return qe.exhaustAll}});var Ye=a(5183);Object.defineProperty(o,"exhaustMap",{enumerable:!0,get:function(){return Ye.exhaustMap}});var De=a(8678);Object.defineProperty(o,"expand",{enumerable:!0,get:function(){return De.expand}});var et=a(4270);Object.defineProperty(o,"filter",{enumerable:!0,get:function(){return et.filter}});var ct=a(1587);Object.defineProperty(o,"finalize",{enumerable:!0,get:function(){return ct.finalize}});var It=a(2265);Object.defineProperty(o,"find",{enumerable:!0,get:function(){return It.find}});var Lt=a(8195);Object.defineProperty(o,"findIndex",{enumerable:!0,get:function(){return Lt.findIndex}});var Wt=a(8012);Object.defineProperty(o,"first",{enumerable:!0,get:function(){return Wt.first}});var yn=a(4075);Object.defineProperty(o,"groupBy",{enumerable:!0,get:function(){return yn.groupBy}});var gn=a(4041);Object.defineProperty(o,"ignoreElements",{enumerable:!0,get:function(){return gn.ignoreElements}});var Hn=a(6478);Object.defineProperty(o,"isEmpty",{enumerable:!0,get:function(){return Hn.isEmpty}});var ce=a(5126);Object.defineProperty(o,"last",{enumerable:!0,get:function(){return ce.last}});var Ze=a(752);Object.defineProperty(o,"map",{enumerable:!0,get:function(){return Ze.map}});var q=a(2182);Object.defineProperty(o,"mapTo",{enumerable:!0,get:function(){return q.mapTo}});var Le=a(119);Object.defineProperty(o,"materialize",{enumerable:!0,get:function(){return Le.materialize}});var ft=a(9329);Object.defineProperty(o,"max",{enumerable:!0,get:function(){return ft.max}});var Tt=a(3917);Object.defineProperty(o,"mergeAll",{enumerable:!0,get:function(){return Tt.mergeAll}});var xt=a(1463);Object.defineProperty(o,"flatMap",{enumerable:!0,get:function(){return xt.flatMap}});var Kt=a(3010);Object.defineProperty(o,"mergeMap",{enumerable:!0,get:function(){return Kt.mergeMap}});var Ut=a(929);Object.defineProperty(o,"mergeMapTo",{enumerable:!0,get:function(){return Ut.mergeMapTo}});var _n=a(2816);Object.defineProperty(o,"mergeScan",{enumerable:!0,get:function(){return _n.mergeScan}});var dn=a(9684);Object.defineProperty(o,"mergeWith",{enumerable:!0,get:function(){return dn.mergeWith}});var ln=a(6250);Object.defineProperty(o,"min",{enumerable:!0,get:function(){return ln.min}});var nn=a(9872);Object.defineProperty(o,"multicast",{enumerable:!0,get:function(){return nn.multicast}});var zn=a(4928);Object.defineProperty(o,"observeOn",{enumerable:!0,get:function(){return zn.observeOn}});var cn=a(9526);Object.defineProperty(o,"pairwise",{enumerable:!0,get:function(){return cn.pairwise}});var On=a(5199);Object.defineProperty(o,"pluck",{enumerable:!0,get:function(){return On.pluck}});var kn=a(955);Object.defineProperty(o,"publish",{enumerable:!0,get:function(){return kn.publish}});var En=a(6750);Object.defineProperty(o,"publishBehavior",{enumerable:!0,get:function(){return En.publishBehavior}});var Nn=a(1003);Object.defineProperty(o,"publishLast",{enumerable:!0,get:function(){return Nn.publishLast}});var Ti=a(5530);Object.defineProperty(o,"publishReplay",{enumerable:!0,get:function(){return Ti.publishReplay}});var wi=a(2992);Object.defineProperty(o,"raceWith",{enumerable:!0,get:function(){return wi.raceWith}});var bi=a(8587);Object.defineProperty(o,"reduce",{enumerable:!0,get:function(){return bi.reduce}});var Ln=a(8408);Object.defineProperty(o,"repeat",{enumerable:!0,get:function(){return Ln.repeat}});var Ni=a(7032);Object.defineProperty(o,"repeatWhen",{enumerable:!0,get:function(){return Ni.repeatWhen}});var Wi=a(6069);Object.defineProperty(o,"retry",{enumerable:!0,get:function(){return Wi.retry}});var Ci=a(5131);Object.defineProperty(o,"retryWhen",{enumerable:!0,get:function(){return Ci.retryWhen}});var Gi=a(904);Object.defineProperty(o,"refCount",{enumerable:!0,get:function(){return Gi.refCount}});var Ki=a(2531);Object.defineProperty(o,"sample",{enumerable:!0,get:function(){return Ki.sample}});var cr=a(306);Object.defineProperty(o,"sampleTime",{enumerable:!0,get:function(){return cr.sampleTime}});var Jr=a(251);Object.defineProperty(o,"scan",{enumerable:!0,get:function(){return Jr.scan}});var Xn=a(9788);Object.defineProperty(o,"sequenceEqual",{enumerable:!0,get:function(){return Xn.sequenceEqual}});var ur=a(3222);Object.defineProperty(o,"share",{enumerable:!0,get:function(){return ur.share}});var Xr=a(2186);Object.defineProperty(o,"shareReplay",{enumerable:!0,get:function(){return Xr.shareReplay}});var Li=a(695);Object.defineProperty(o,"single",{enumerable:!0,get:function(){return Li.single}});var dr=a(4975);Object.defineProperty(o,"skip",{enumerable:!0,get:function(){return dr.skip}});var Di=a(728);Object.defineProperty(o,"skipLast",{enumerable:!0,get:function(){return Di.skipLast}});var Or=a(7409);Object.defineProperty(o,"skipUntil",{enumerable:!0,get:function(){return Or.skipUntil}});var Yi=a(385);Object.defineProperty(o,"skipWhile",{enumerable:!0,get:function(){return Yi.skipWhile}});var Qi=a(4930);Object.defineProperty(o,"startWith",{enumerable:!0,get:function(){return Qi.startWith}});var Hr=a(1698);Object.defineProperty(o,"subscribeOn",{enumerable:!0,get:function(){return Hr.subscribeOn}});var Mi=a(8044);Object.defineProperty(o,"switchAll",{enumerable:!0,get:function(){return Mi.switchAll}});var fr=a(986);Object.defineProperty(o,"switchMap",{enumerable:!0,get:function(){return fr.switchMap}});var Ei=a(9309);Object.defineProperty(o,"switchMapTo",{enumerable:!0,get:function(){return Ei.switchMapTo}});var Ar=a(9499);Object.defineProperty(o,"switchScan",{enumerable:!0,get:function(){return Ar.switchScan}});var Si=a(1333);Object.defineProperty(o,"take",{enumerable:!0,get:function(){return Si.take}});var Zi=a(3534);Object.defineProperty(o,"takeLast",{enumerable:!0,get:function(){return Zi.takeLast}});var ni=a(5716);Object.defineProperty(o,"takeUntil",{enumerable:!0,get:function(){return ni.takeUntil}});var Ji=a(9928);Object.defineProperty(o,"takeWhile",{enumerable:!0,get:function(){return Ji.takeWhile}});var ji=a(6821);Object.defineProperty(o,"tap",{enumerable:!0,get:function(){return ji.tap}});var Ii=a(4330);Object.defineProperty(o,"throttle",{enumerable:!0,get:function(){return Ii.throttle}});var hr=a(4029);Object.defineProperty(o,"throttleTime",{enumerable:!0,get:function(){return hr.throttleTime}});var Xi=a(9194);Object.defineProperty(o,"throwIfEmpty",{enumerable:!0,get:function(){return Xi.throwIfEmpty}});var Bi=a(5904);Object.defineProperty(o,"timeInterval",{enumerable:!0,get:function(){return Bi.timeInterval}});var hi=a(5001);Object.defineProperty(o,"timeout",{enumerable:!0,get:function(){return hi.timeout}});var Vi=a(8308);Object.defineProperty(o,"timeoutWith",{enumerable:!0,get:function(){return Vi.timeoutWith}});var pr=a(250);Object.defineProperty(o,"timestamp",{enumerable:!0,get:function(){return pr.timestamp}});var mr=a(2976);Object.defineProperty(o,"toArray",{enumerable:!0,get:function(){return mr.toArray}});var Wn=a(9374);Object.defineProperty(o,"window",{enumerable:!0,get:function(){return Wn.window}});var qi=a(8427);Object.defineProperty(o,"windowCount",{enumerable:!0,get:function(){return qi.windowCount}});var pi=a(2358);Object.defineProperty(o,"windowTime",{enumerable:!0,get:function(){return pi.windowTime}});var Oi=a(6464);Object.defineProperty(o,"windowToggle",{enumerable:!0,get:function(){return Oi.windowToggle}});var gr=a(5424);Object.defineProperty(o,"windowWhen",{enumerable:!0,get:function(){return gr.windowWhen}});var Pr=a(135);Object.defineProperty(o,"withLatestFrom",{enumerable:!0,get:function(){return Pr.withLatestFrom}});var bn=a(8101);Object.defineProperty(o,"zipAll",{enumerable:!0,get:function(){return bn.zipAll}});var vr=a(9411);Object.defineProperty(o,"zipWith",{enumerable:!0,get:function(){return vr.zipWith}})},7606:function(z,o,a){"use strict";var u,n=this&&this.__extends||(u=function(r,c){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,p){d.__proto__=p}||function(d,p){for(var y in p)Object.prototype.hasOwnProperty.call(p,y)&&(d[y]=p[y])})(r,c)},function(r,c){if("function"!=typeof c&&null!==c)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function d(){this.constructor=r}u(r,c),r.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)});Object.defineProperty(o,"__esModule",{value:!0}),o.AsyncSubject=void 0;var _=function(u){function r(){var c=null!==u&&u.apply(this,arguments)||this;return c._value=null,c._hasValue=!1,c._isComplete=!1,c}return n(r,u),r.prototype._checkFinalizedStatuses=function(c){var d=this,y=d._hasValue,f=d._value,v=d.isStopped,m=d._isComplete;d.hasError?c.error(d.thrownError):(v||m)&&(y&&c.next(f),c.complete())},r.prototype.next=function(c){this.isStopped||(this._value=c,this._hasValue=!0)},r.prototype.complete=function(){var c=this,d=c._hasValue,p=c._value;c._isComplete||(this._isComplete=!0,d&&u.prototype.next.call(this,p),u.prototype.complete.call(this))},r}(a(3768).Subject);o.AsyncSubject=_},5482:function(z,o,a){"use strict";var u,n=this&&this.__extends||(u=function(r,c){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,p){d.__proto__=p}||function(d,p){for(var y in p)Object.prototype.hasOwnProperty.call(p,y)&&(d[y]=p[y])})(r,c)},function(r,c){if("function"!=typeof c&&null!==c)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function d(){this.constructor=r}u(r,c),r.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)});Object.defineProperty(o,"__esModule",{value:!0}),o.BehaviorSubject=void 0;var _=function(u){function r(c){var d=u.call(this)||this;return d._value=c,d}return n(r,u),Object.defineProperty(r.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),r.prototype._subscribe=function(c){var d=u.prototype._subscribe.call(this,c);return!d.closed&&c.next(this._value),d},r.prototype.getValue=function(){var c=this,y=c._value;if(c.hasError)throw c.thrownError;return this._throwIfClosed(),y},r.prototype.next=function(c){u.prototype.next.call(this,this._value=c)},r}(a(3768).Subject);o.BehaviorSubject=_},7262:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.observeNotification=o.Notification=o.NotificationKind=void 0;var p,n=a(7406),h=a(9677),_=a(338),u=a(7104);(p=o.NotificationKind||(o.NotificationKind={})).NEXT="N",p.ERROR="E",p.COMPLETE="C";var c=function(){function p(y,f,b){this.kind=y,this.value=f,this.error=b,this.hasValue="N"===y}return p.prototype.observe=function(y){return d(this,y)},p.prototype.do=function(y,f,b){var v=this,m=v.kind,M=v.error;return"N"===m?null==y?void 0:y(v.value):"E"===m?null==f?void 0:f(M):null==b?void 0:b()},p.prototype.accept=function(y,f,b){var v;return u.isFunction(null===(v=y)||void 0===v?void 0:v.next)?this.observe(y):this.do(y,f,b)},p.prototype.toObservable=function(){var y=this,f=y.kind,v=y.error,m="N"===f?h.of(y.value):"E"===f?_.throwError(function(){return v}):"C"===f?n.EMPTY:0;if(!m)throw new TypeError("Unexpected notification kind "+f);return m},p.createNext=function(y){return new p("N",y)},p.createError=function(y){return new p("E",void 0,y)},p.createComplete=function(){return p.completeNotification},p.completeNotification=new p("C"),p}();function d(p,y){var f,b,v,C=p.kind,M=p.value,O=p.error;if("string"!=typeof C)throw new TypeError('Invalid notification, missing "kind"');"N"===C?null===(f=y.next)||void 0===f||f.call(y,M):"E"===C?null===(b=y.error)||void 0===b||b.call(y,O):null===(v=y.complete)||void 0===v||v.call(y)}o.Notification=c,o.observeNotification=d},6941:(z,o)=>{"use strict";function h(_,u,r){return{kind:_,value:u,error:r}}Object.defineProperty(o,"__esModule",{value:!0}),o.createNotification=o.nextNotification=o.errorNotification=o.COMPLETE_NOTIFICATION=void 0,o.COMPLETE_NOTIFICATION=h("C",void 0,void 0),o.errorNotification=function a(_){return h("E",void 0,_)},o.nextNotification=function n(_){return h("N",_,void 0)},o.createNotification=h},5821:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.Observable=void 0;var n=a(7052),h=a(6448),_=a(1689),u=a(1471),r=a(3570),c=a(7104),d=a(5808),p=function(){function v(m){m&&(this._subscribe=m)}return v.prototype.lift=function(m){var C=new v;return C.source=this,C.operator=m,C},v.prototype.subscribe=function(m,C,M){var O=this,P=function b(v){return v&&v instanceof n.Subscriber||function f(v){return v&&c.isFunction(v.next)&&c.isFunction(v.error)&&c.isFunction(v.complete)}(v)&&h.isSubscription(v)}(m)?m:new n.SafeSubscriber(m,C,M);return d.errorContext(function(){var Y=O.operator,U=O.source;P.add(Y?Y.call(P,U):U?O._subscribe(P):O._trySubscribe(P))}),P},v.prototype._trySubscribe=function(m){try{return this._subscribe(m)}catch(C){m.error(C)}},v.prototype.forEach=function(m,C){var M=this;return new(C=y(C))(function(O,P){var N=new n.SafeSubscriber({next:function(Y){try{m(Y)}catch(U){P(U),N.unsubscribe()}},error:P,complete:O});M.subscribe(N)})},v.prototype._subscribe=function(m){var C;return null===(C=this.source)||void 0===C?void 0:C.subscribe(m)},v.prototype[_.observable]=function(){return this},v.prototype.pipe=function(){for(var m=[],C=0;C<arguments.length;C++)m[C]=arguments[C];return u.pipeFromArray(m)(this)},v.prototype.toPromise=function(m){var C=this;return new(m=y(m))(function(M,O){var P;C.subscribe(function(N){return P=N},function(N){return O(N)},function(){return M(P)})})},v.create=function(m){return new v(m)},v}();function y(v){var m;return null!==(m=null!=v?v:r.config.Promise)&&void 0!==m?m:Promise}o.Observable=p},3406:function(z,o,a){"use strict";var r,n=this&&this.__extends||(r=function(c,d){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,y){p.__proto__=y}||function(p,y){for(var f in y)Object.prototype.hasOwnProperty.call(y,f)&&(p[f]=y[f])})(c,d)},function(c,d){if("function"!=typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function p(){this.constructor=c}r(c,d),c.prototype=null===d?Object.create(d):(p.prototype=d.prototype,new p)});Object.defineProperty(o,"__esModule",{value:!0}),o.ReplaySubject=void 0;var h=a(3768),_=a(8354),u=function(r){function c(d,p,y){void 0===d&&(d=1/0),void 0===p&&(p=1/0),void 0===y&&(y=_.dateTimestampProvider);var f=r.call(this)||this;return f._bufferSize=d,f._windowTime=p,f._timestampProvider=y,f._buffer=[],f._infiniteTimeWindow=!0,f._infiniteTimeWindow=p===1/0,f._bufferSize=Math.max(1,d),f._windowTime=Math.max(1,p),f}return n(c,r),c.prototype.next=function(d){var p=this,f=p._buffer,b=p._infiniteTimeWindow,v=p._timestampProvider,m=p._windowTime;p.isStopped||(f.push(d),!b&&f.push(v.now()+m)),this._trimBuffer(),r.prototype.next.call(this,d)},c.prototype._subscribe=function(d){this._throwIfClosed(),this._trimBuffer();for(var p=this._innerSubscribe(d),f=this._infiniteTimeWindow,v=this._buffer.slice(),m=0;m<v.length&&!d.closed;m+=f?1:2)d.next(v[m]);return this._checkFinalizedStatuses(d),p},c.prototype._trimBuffer=function(){var d=this,p=d._bufferSize,y=d._timestampProvider,f=d._buffer,b=d._infiniteTimeWindow,v=(b?1:2)*p;if(p<1/0&&v<f.length&&f.splice(0,f.length-v),!b){for(var m=y.now(),C=0,M=1;M<f.length&&f[M]<=m;M+=2)C=M;C&&f.splice(0,C+1)}},c}(h.Subject);o.ReplaySubject=u},2716:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.Scheduler=void 0;var n=a(8354),h=function(){function _(u,r){void 0===r&&(r=_.now),this.schedulerActionCtor=u,this.now=r}return _.prototype.schedule=function(u,r,c){return void 0===r&&(r=0),new this.schedulerActionCtor(this,u).schedule(c,r)},_.now=n.dateTimestampProvider.now,_}();o.Scheduler=h},3768:function(z,o,a){"use strict";var f,n=this&&this.__extends||(f=function(b,v){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,C){m.__proto__=C}||function(m,C){for(var M in C)Object.prototype.hasOwnProperty.call(C,M)&&(m[M]=C[M])})(b,v)},function(b,v){if("function"!=typeof v&&null!==v)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");function m(){this.constructor=b}f(b,v),b.prototype=null===v?Object.create(v):(m.prototype=v.prototype,new m)}),h=this&&this.__values||function(f){var b="function"==typeof Symbol&&Symbol.iterator,v=b&&f[b],m=0;if(v)return v.call(f);if(f&&"number"==typeof f.length)return{next:function(){return f&&m>=f.length&&(f=void 0),{value:f&&f[m++],done:!f}}};throw new TypeError(b?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(o,"__esModule",{value:!0}),o.AnonymousSubject=o.Subject=void 0;var _=a(5821),u=a(6448),r=a(3965),c=a(5137),d=a(5808),p=function(f){function b(){var v=f.call(this)||this;return v.closed=!1,v.currentObservers=null,v.observers=[],v.isStopped=!1,v.hasError=!1,v.thrownError=null,v}return n(b,f),b.prototype.lift=function(v){var m=new y(this,this);return m.operator=v,m},b.prototype._throwIfClosed=function(){if(this.closed)throw new r.ObjectUnsubscribedError},b.prototype.next=function(v){var m=this;d.errorContext(function(){var C,M;if(m._throwIfClosed(),!m.isStopped){m.currentObservers||(m.currentObservers=Array.from(m.observers));try{for(var O=h(m.currentObservers),P=O.next();!P.done;P=O.next())P.value.next(v)}catch(Y){C={error:Y}}finally{try{P&&!P.done&&(M=O.return)&&M.call(O)}finally{if(C)throw C.error}}}})},b.prototype.error=function(v){var m=this;d.errorContext(function(){if(m._throwIfClosed(),!m.isStopped){m.hasError=m.isStopped=!0,m.thrownError=v;for(var C=m.observers;C.length;)C.shift().error(v)}})},b.prototype.complete=function(){var v=this;d.errorContext(function(){if(v._throwIfClosed(),!v.isStopped){v.isStopped=!0;for(var m=v.observers;m.length;)m.shift().complete()}})},b.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(b.prototype,"observed",{get:function(){var v;return(null===(v=this.observers)||void 0===v?void 0:v.length)>0},enumerable:!1,configurable:!0}),b.prototype._trySubscribe=function(v){return this._throwIfClosed(),f.prototype._trySubscribe.call(this,v)},b.prototype._subscribe=function(v){return this._throwIfClosed(),this._checkFinalizedStatuses(v),this._innerSubscribe(v)},b.prototype._innerSubscribe=function(v){var m=this,C=this,P=C.observers;return C.hasError||C.isStopped?u.EMPTY_SUBSCRIPTION:(this.currentObservers=null,P.push(v),new u.Subscription(function(){m.currentObservers=null,c.arrRemove(P,v)}))},b.prototype._checkFinalizedStatuses=function(v){var m=this,O=m.isStopped;m.hasError?v.error(m.thrownError):O&&v.complete()},b.prototype.asObservable=function(){var v=new _.Observable;return v.source=this,v},b.create=function(v,m){return new y(v,m)},b}(_.Observable);o.Subject=p;var y=function(f){function b(v,m){var C=f.call(this)||this;return C.destination=v,C.source=m,C}return n(b,f),b.prototype.next=function(v){var m,C;null===(C=null===(m=this.destination)||void 0===m?void 0:m.next)||void 0===C||C.call(m,v)},b.prototype.error=function(v){var m,C;null===(C=null===(m=this.destination)||void 0===m?void 0:m.error)||void 0===C||C.call(m,v)},b.prototype.complete=function(){var v,m;null===(m=null===(v=this.destination)||void 0===v?void 0:v.complete)||void 0===m||m.call(v)},b.prototype._subscribe=function(v){var m,C;return null!==(C=null===(m=this.source)||void 0===m?void 0:m.subscribe(v))&&void 0!==C?C:u.EMPTY_SUBSCRIPTION},b}(p);o.AnonymousSubject=y},7052:function(z,o,a){"use strict";var N,n=this&&this.__extends||(N=function(Y,U){return(N=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(G,$){G.__proto__=$}||function(G,$){for(var J in $)Object.prototype.hasOwnProperty.call($,J)&&(G[J]=$[J])})(Y,U)},function(Y,U){if("function"!=typeof U&&null!==U)throw new TypeError("Class extends value "+String(U)+" is not a constructor or null");function G(){this.constructor=Y}N(Y,U),Y.prototype=null===U?Object.create(U):(G.prototype=U.prototype,new G)});Object.defineProperty(o,"__esModule",{value:!0}),o.EMPTY_OBSERVER=o.SafeSubscriber=o.Subscriber=void 0;var h=a(7104),_=a(6448),u=a(3570),r=a(4709),c=a(31),d=a(6941),p=a(3914),y=a(5808),f=function(N){function Y(U){var G=N.call(this)||this;return G.isStopped=!1,U?(G.destination=U,_.isSubscription(U)&&U.add(G)):G.destination=o.EMPTY_OBSERVER,G}return n(Y,N),Y.create=function(U,G,$){return new C(U,G,$)},Y.prototype.next=function(U){this.isStopped?P(d.nextNotification(U),this):this._next(U)},Y.prototype.error=function(U){this.isStopped?P(d.errorNotification(U),this):(this.isStopped=!0,this._error(U))},Y.prototype.complete=function(){this.isStopped?P(d.COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())},Y.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,N.prototype.unsubscribe.call(this),this.destination=null)},Y.prototype._next=function(U){this.destination.next(U)},Y.prototype._error=function(U){try{this.destination.error(U)}finally{this.unsubscribe()}},Y.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},Y}(_.Subscription);o.Subscriber=f;var b=Function.prototype.bind;function v(N,Y){return b.call(N,Y)}var m=function(){function N(Y){this.partialObserver=Y}return N.prototype.next=function(Y){var U=this.partialObserver;if(U.next)try{U.next(Y)}catch(G){M(G)}},N.prototype.error=function(Y){var U=this.partialObserver;if(U.error)try{U.error(Y)}catch(G){M(G)}else M(Y)},N.prototype.complete=function(){var Y=this.partialObserver;if(Y.complete)try{Y.complete()}catch(U){M(U)}},N}(),C=function(N){function Y(U,G,$){var te,he,J=N.call(this)||this;return h.isFunction(U)||!U?te={next:null!=U?U:void 0,error:null!=G?G:void 0,complete:null!=$?$:void 0}:J&&u.config.useDeprecatedNextContext?((he=Object.create(U)).unsubscribe=function(){return J.unsubscribe()},te={next:U.next&&v(U.next,he),error:U.error&&v(U.error,he),complete:U.complete&&v(U.complete,he)}):te=U,J.destination=new m(te),J}return n(Y,N),Y}(f);function M(N){u.config.useDeprecatedSynchronousErrorHandling?y.captureError(N):r.reportUnhandledError(N)}function P(N,Y){var U=u.config.onStoppedNotification;U&&p.timeoutProvider.setTimeout(function(){return U(N,Y)})}o.SafeSubscriber=C,o.EMPTY_OBSERVER={closed:!0,next:c.noop,error:function O(N){throw N},complete:c.noop}},6448:function(z,o,a){"use strict";var n=this&&this.__values||function(f){var b="function"==typeof Symbol&&Symbol.iterator,v=b&&f[b],m=0;if(v)return v.call(f);if(f&&"number"==typeof f.length)return{next:function(){return f&&m>=f.length&&(f=void 0),{value:f&&f[m++],done:!f}}};throw new TypeError(b?"Object is not iterable.":"Symbol.iterator is not defined.")},h=this&&this.__read||function(f,b){var v="function"==typeof Symbol&&f[Symbol.iterator];if(!v)return f;var C,O,m=v.call(f),M=[];try{for(;(void 0===b||b-- >0)&&!(C=m.next()).done;)M.push(C.value)}catch(P){O={error:P}}finally{try{C&&!C.done&&(v=m.return)&&v.call(m)}finally{if(O)throw O.error}}return M},_=this&&this.__spreadArray||function(f,b){for(var v=0,m=b.length,C=f.length;v<m;v++,C++)f[C]=b[v];return f};Object.defineProperty(o,"__esModule",{value:!0}),o.isSubscription=o.EMPTY_SUBSCRIPTION=o.Subscription=void 0;var u=a(7104),r=a(4970),c=a(5137),d=function(){function f(b){this.initialTeardown=b,this.closed=!1,this._parentage=null,this._finalizers=null}return f.prototype.unsubscribe=function(){var b,v,m,C,M;if(!this.closed){this.closed=!0;var O=this._parentage;if(O)if(this._parentage=null,Array.isArray(O))try{for(var P=n(O),N=P.next();!N.done;N=P.next())N.value.remove(this)}catch(he){b={error:he}}finally{try{N&&!N.done&&(v=P.return)&&v.call(P)}finally{if(b)throw b.error}}else O.remove(this);var U=this.initialTeardown;if(u.isFunction(U))try{U()}catch(he){M=he instanceof r.UnsubscriptionError?he.errors:[he]}var G=this._finalizers;if(G){this._finalizers=null;try{for(var $=n(G),J=$.next();!J.done;J=$.next()){var te=J.value;try{y(te)}catch(he){M=null!=M?M:[],he instanceof r.UnsubscriptionError?M=_(_([],h(M)),h(he.errors)):M.push(he)}}}catch(he){m={error:he}}finally{try{J&&!J.done&&(C=$.return)&&C.call($)}finally{if(m)throw m.error}}}if(M)throw new r.UnsubscriptionError(M)}},f.prototype.add=function(b){var v;if(b&&b!==this)if(this.closed)y(b);else{if(b instanceof f){if(b.closed||b._hasParent(this))return;b._addParent(this)}(this._finalizers=null!==(v=this._finalizers)&&void 0!==v?v:[]).push(b)}},f.prototype._hasParent=function(b){var v=this._parentage;return v===b||Array.isArray(v)&&v.includes(b)},f.prototype._addParent=function(b){var v=this._parentage;this._parentage=Array.isArray(v)?(v.push(b),v):v?[v,b]:b},f.prototype._removeParent=function(b){var v=this._parentage;v===b?this._parentage=null:Array.isArray(v)&&c.arrRemove(v,b)},f.prototype.remove=function(b){var v=this._finalizers;v&&c.arrRemove(v,b),b instanceof f&&b._removeParent(this)},f.EMPTY=((b=new f).closed=!0,b),f;var b}();function y(f){u.isFunction(f)?f():f.unsubscribe()}o.Subscription=d,o.EMPTY_SUBSCRIPTION=d.EMPTY,o.isSubscription=function p(f){return f instanceof d||f&&"closed"in f&&u.isFunction(f.remove)&&u.isFunction(f.add)&&u.isFunction(f.unsubscribe)}},3570:(z,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.config=void 0,o.config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},5754:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.firstValueFrom=void 0;var n=a(8915),h=a(7052);o.firstValueFrom=function _(u,r){var c="object"==typeof r;return new Promise(function(d,p){var y=new h.SafeSubscriber({next:function(f){d(f),y.unsubscribe()},error:p,complete:function(){c?d(r.defaultValue):p(new n.EmptyError)}});u.subscribe(y)})}},5257:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.lastValueFrom=void 0;var n=a(8915);o.lastValueFrom=function h(_,u){var r="object"==typeof u;return new Promise(function(c,d){var y,p=!1;_.subscribe({next:function(f){y=f,p=!0},error:d,complete:function(){p?c(y):r?c(u.defaultValue):d(new n.EmptyError)}})})}},6686:function(z,o,a){"use strict";var p,n=this&&this.__extends||(p=function(y,f){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,v){b.__proto__=v}||function(b,v){for(var m in v)Object.prototype.hasOwnProperty.call(v,m)&&(b[m]=v[m])})(y,f)},function(y,f){if("function"!=typeof f&&null!==f)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");function b(){this.constructor=y}p(y,f),y.prototype=null===f?Object.create(f):(b.prototype=f.prototype,new b)});Object.defineProperty(o,"__esModule",{value:!0}),o.ConnectableObservable=void 0;var h=a(5821),_=a(6448),u=a(904),r=a(3173),c=a(9216),d=function(p){function y(f,b){var v=p.call(this)||this;return v.source=f,v.subjectFactory=b,v._subject=null,v._refCount=0,v._connection=null,c.hasLift(f)&&(v.lift=f.lift),v}return n(y,p),y.prototype._subscribe=function(f){return this.getSubject().subscribe(f)},y.prototype.getSubject=function(){var f=this._subject;return(!f||f.isStopped)&&(this._subject=this.subjectFactory()),this._subject},y.prototype._teardown=function(){this._refCount=0;var f=this._connection;this._subject=this._connection=null,null==f||f.unsubscribe()},y.prototype.connect=function(){var f=this,b=this._connection;if(!b){b=this._connection=new _.Subscription;var v=this.getSubject();b.add(this.source.subscribe(r.createOperatorSubscriber(v,void 0,function(){f._teardown(),v.complete()},function(m){f._teardown(),v.error(m)},function(){return f._teardown()}))),b.closed&&(this._connection=null,b=_.Subscription.EMPTY)}return b},y.prototype.refCount=function(){return u.refCount()(this)},y}(h.Observable);o.ConnectableObservable=d},7532:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.bindCallback=void 0;var n=a(4832);o.bindCallback=function h(_,u,r){return n.bindCallbackInternals(!1,_,u,r)}},4832:function(z,o,a){"use strict";var n=this&&this.__read||function(f,b){var v="function"==typeof Symbol&&f[Symbol.iterator];if(!v)return f;var C,O,m=v.call(f),M=[];try{for(;(void 0===b||b-- >0)&&!(C=m.next()).done;)M.push(C.value)}catch(P){O={error:P}}finally{try{C&&!C.done&&(v=m.return)&&v.call(m)}finally{if(O)throw O.error}}return M},h=this&&this.__spreadArray||function(f,b){for(var v=0,m=b.length,C=f.length;v<m;v++,C++)f[C]=b[v];return f};Object.defineProperty(o,"__esModule",{value:!0}),o.bindCallbackInternals=void 0;var _=a(1875),u=a(5821),r=a(1698),c=a(5280),d=a(4928),p=a(7606);o.bindCallbackInternals=function y(f,b,v,m){if(v){if(!_.isScheduler(v))return function(){for(var C=[],M=0;M<arguments.length;M++)C[M]=arguments[M];return y(f,b,m).apply(this,C).pipe(c.mapOneOrManyArgs(v))};m=v}return m?function(){for(var C=[],M=0;M<arguments.length;M++)C[M]=arguments[M];return y(f,b).apply(this,C).pipe(r.subscribeOn(m),d.observeOn(m))}:function(){for(var C=this,M=[],O=0;O<arguments.length;O++)M[O]=arguments[O];var P=new p.AsyncSubject,N=!0;return new u.Observable(function(Y){var U=P.subscribe(Y);if(N){N=!1;var G=!1,$=!1;b.apply(C,h(h([],n(M)),[function(){for(var J=[],te=0;te<arguments.length;te++)J[te]=arguments[te];if(f){var he=J.shift();if(null!=he)return void P.error(he)}P.next(1<J.length?J:J[0]),$=!0,G&&P.complete()}])),$&&P.complete(),G=!0}return U})}}},3488:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.bindNodeCallback=void 0;var n=a(4832);o.bindNodeCallback=function h(_,u,r){return n.bindCallbackInternals(!0,_,u,r)}},6892:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.combineLatestInit=o.combineLatest=void 0;var n=a(5821),h=a(9923),_=a(4996),u=a(7884),r=a(5280),c=a(1642),d=a(7598),p=a(3173),y=a(2590);function b(m,C,M){return void 0===M&&(M=u.identity),function(O){v(C,function(){for(var P=m.length,N=new Array(P),Y=P,U=P,G=function(J){v(C,function(){var te=_.from(m[J],C),he=!1;te.subscribe(p.createOperatorSubscriber(O,function(Fe){N[J]=Fe,he||(he=!0,U--),U||O.next(M(N.slice()))},function(){--Y||O.complete()}))},O)},$=0;$<P;$++)G($)},O)}}function v(m,C,M){m?y.executeSchedule(M,m,C):C()}o.combineLatest=function f(){for(var m=[],C=0;C<arguments.length;C++)m[C]=arguments[C];var M=c.popScheduler(m),O=c.popResultSelector(m),P=h.argsArgArrayOrObject(m),N=P.args,Y=P.keys;if(0===N.length)return _.from([],M);var U=new n.Observable(b(N,M,Y?function(G){return d.createObject(Y,G)}:u.identity));return O?U.pipe(r.mapOneOrManyArgs(O)):U},o.combineLatestInit=b},509:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.concat=void 0;var n=a(739),h=a(1642),_=a(4996);o.concat=function u(){for(var r=[],c=0;c<arguments.length;c++)r[c]=arguments[c];return n.concatAll()(_.from(r,h.popScheduler(r)))}},9190:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.connectable=void 0;var n=a(3768),h=a(5821),_=a(9954),u={connector:function(){return new n.Subject},resetOnDisconnect:!0};o.connectable=function r(c,d){void 0===d&&(d=u);var p=null,y=d.connector,f=d.resetOnDisconnect,b=void 0===f||f,v=y(),m=new h.Observable(function(C){return v.subscribe(C)});return m.connect=function(){return(!p||p.closed)&&(p=_.defer(function(){return c}).subscribe(v),b&&p.add(function(){return v=y()})),p},m}},9954:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.defer=void 0;var n=a(5821),h=a(8767);o.defer=function _(u){return new n.Observable(function(r){h.innerFrom(u()).subscribe(r)})}},2946:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.animationFrames=void 0;var n=a(5821),h=a(1038),_=a(6343);function r(d){return new n.Observable(function(p){var y=d||h.performanceTimestampProvider,f=y.now(),b=0,v=function(){p.closed||(b=_.animationFrameProvider.requestAnimationFrame(function(m){b=0;var C=y.now();p.next({timestamp:d?C:m,elapsed:C-f}),v()}))};return v(),function(){b&&_.animationFrameProvider.cancelAnimationFrame(b)}})}o.animationFrames=function u(d){return d?r(d):c};var c=r()},7406:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.empty=o.EMPTY=void 0;var n=a(5821);o.EMPTY=new n.Observable(function(u){return u.complete()}),o.empty=function h(u){return u?function _(u){return new n.Observable(function(r){return u.schedule(function(){return r.complete()})})}(u):o.EMPTY}},7928:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.forkJoin=void 0;var n=a(5821),h=a(9923),_=a(8767),u=a(1642),r=a(3173),c=a(5280),d=a(7598);o.forkJoin=function p(){for(var y=[],f=0;f<arguments.length;f++)y[f]=arguments[f];var b=u.popResultSelector(y),v=h.argsArgArrayOrObject(y),m=v.args,C=v.keys,M=new n.Observable(function(O){var P=m.length;if(P)for(var N=new Array(P),Y=P,U=P,G=function(J){var te=!1;_.innerFrom(m[J]).subscribe(r.createOperatorSubscriber(O,function(he){te||(te=!0,U--),N[J]=he},function(){return Y--},void 0,function(){(!Y||!te)&&(U||O.next(C?d.createObject(C,N):N),O.complete())}))},$=0;$<P;$++)G($);else O.complete()});return b?M.pipe(c.mapOneOrManyArgs(b)):M}},4996:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.from=void 0;var n=a(9341),h=a(8767);o.from=function _(u,r){return r?n.scheduled(u,r):h.innerFrom(u)}},2579:function(z,o,a){"use strict";var n=this&&this.__read||function(O,P){var N="function"==typeof Symbol&&O[Symbol.iterator];if(!N)return O;var U,$,Y=N.call(O),G=[];try{for(;(void 0===P||P-- >0)&&!(U=Y.next()).done;)G.push(U.value)}catch(J){$={error:J}}finally{try{U&&!U.done&&(N=Y.return)&&N.call(Y)}finally{if($)throw $.error}}return G};Object.defineProperty(o,"__esModule",{value:!0}),o.fromEvent=void 0;var h=a(8767),_=a(5821),u=a(3010),r=a(697),c=a(7104),d=a(5280),p=["addListener","removeListener"],y=["addEventListener","removeEventListener"],f=["on","off"];function v(O,P){return function(N){return function(Y){return O[N](P,Y)}}}o.fromEvent=function b(O,P,N,Y){if(c.isFunction(N)&&(Y=N,N=void 0),Y)return b(O,P,N).pipe(d.mapOneOrManyArgs(Y));var U=n(function M(O){return c.isFunction(O.addEventListener)&&c.isFunction(O.removeEventListener)}(O)?y.map(function(J){return function(te){return O[J](P,te,N)}}):function m(O){return c.isFunction(O.addListener)&&c.isFunction(O.removeListener)}(O)?p.map(v(O,P)):function C(O){return c.isFunction(O.on)&&c.isFunction(O.off)}(O)?f.map(v(O,P)):[],2),G=U[0],$=U[1];if(!G&&r.isArrayLike(O))return u.mergeMap(function(J){return b(J,P,N)})(h.innerFrom(O));if(!G)throw new TypeError("Invalid event target");return new _.Observable(function(J){var te=function(){for(var he=[],Fe=0;Fe<arguments.length;Fe++)he[Fe]=arguments[Fe];return J.next(1<he.length?he:he[0])};return G(te),function(){return $(te)}})}},3975:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.fromEventPattern=void 0;var n=a(5821),h=a(7104),_=a(5280);o.fromEventPattern=function u(r,c,d){return d?u(r,c).pipe(_.mapOneOrManyArgs(d)):new n.Observable(function(p){var y=function(){for(var b=[],v=0;v<arguments.length;v++)b[v]=arguments[v];return p.next(1===b.length?b[0]:b)},f=r(y);return h.isFunction(c)?function(){return c(y,f)}:void 0})}},5107:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.fromSubscribable=void 0;var n=a(5821);o.fromSubscribable=function h(_){return new n.Observable(function(u){return _.subscribe(u)})}},4318:function(z,o,a){"use strict";var n=this&&this.__generator||function(d,p){var f,b,v,m,y={label:0,sent:function(){if(1&v[0])throw v[1];return v[1]},trys:[],ops:[]};return m={next:C(0),throw:C(1),return:C(2)},"function"==typeof Symbol&&(m[Symbol.iterator]=function(){return this}),m;function C(O){return function(P){return function M(O){if(f)throw new TypeError("Generator is already executing.");for(;y;)try{if(f=1,b&&(v=2&O[0]?b.return:O[0]?b.throw||((v=b.return)&&v.call(b),0):b.next)&&!(v=v.call(b,O[1])).done)return v;switch(b=0,v&&(O=[2&O[0],v.value]),O[0]){case 0:case 1:v=O;break;case 4:return y.label++,{value:O[1],done:!1};case 5:y.label++,b=O[1],O=[0];continue;case 7:O=y.ops.pop(),y.trys.pop();continue;default:if(!(v=(v=y.trys).length>0&&v[v.length-1])&&(6===O[0]||2===O[0])){y=0;continue}if(3===O[0]&&(!v||O[1]>v[0]&&O[1]<v[3])){y.label=O[1];break}if(6===O[0]&&y.label<v[1]){y.label=v[1],v=O;break}if(v&&y.label<v[2]){y.label=v[2],y.ops.push(O);break}v[2]&&y.ops.pop(),y.trys.pop();continue}O=p.call(d,y)}catch(P){O=[6,P],b=0}finally{f=v=0}if(5&O[0])throw O[1];return{value:O[0]?O[1]:void 0,done:!0}}([O,P])}}};Object.defineProperty(o,"__esModule",{value:!0}),o.generate=void 0;var h=a(7884),_=a(1875),u=a(9954),r=a(9049);o.generate=function c(d,p,y,f,b){var v,m,C,M;function O(){var P;return n(this,function(N){switch(N.label){case 0:P=M,N.label=1;case 1:return!p||p(P)?[4,C(P)]:[3,4];case 2:N.sent(),N.label=3;case 3:return P=y(P),[3,1];case 4:return[2]}})}return 1===arguments.length?(M=(v=d).initialState,p=v.condition,y=v.iterate,C=void 0===(m=v.resultSelector)?h.identity:m,b=v.scheduler):(M=d,!f||_.isScheduler(f)?(C=h.identity,b=f):C=f),u.defer(b?function(){return r.scheduleIterable(O(),b)}:O)}},3140:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.iif=void 0;var n=a(9954);o.iif=function h(_,u,r){return n.defer(function(){return _()?u:r})}},8767:function(z,o,a){"use strict";var n=this&&this.__awaiter||function(te,he,Fe,it){return new(Fe||(Fe=Promise))(function(ke,ie){function Ae(V){try{me(it.next(V))}catch(H){ie(H)}}function oe(V){try{me(it.throw(V))}catch(H){ie(H)}}function me(V){V.done?ke(V.value):function be(ke){return ke instanceof Fe?ke:new Fe(function(ie){ie(ke)})}(V.value).then(Ae,oe)}me((it=it.apply(te,he||[])).next())})},h=this&&this.__generator||function(te,he){var it,be,ke,ie,Fe={label:0,sent:function(){if(1&ke[0])throw ke[1];return ke[1]},trys:[],ops:[]};return ie={next:Ae(0),throw:Ae(1),return:Ae(2)},"function"==typeof Symbol&&(ie[Symbol.iterator]=function(){return this}),ie;function Ae(me){return function(V){return function oe(me){if(it)throw new TypeError("Generator is already executing.");for(;Fe;)try{if(it=1,be&&(ke=2&me[0]?be.return:me[0]?be.throw||((ke=be.return)&&ke.call(be),0):be.next)&&!(ke=ke.call(be,me[1])).done)return ke;switch(be=0,ke&&(me=[2&me[0],ke.value]),me[0]){case 0:case 1:ke=me;break;case 4:return Fe.label++,{value:me[1],done:!1};case 5:Fe.label++,be=me[1],me=[0];continue;case 7:me=Fe.ops.pop(),Fe.trys.pop();continue;default:if(!(ke=(ke=Fe.trys).length>0&&ke[ke.length-1])&&(6===me[0]||2===me[0])){Fe=0;continue}if(3===me[0]&&(!ke||me[1]>ke[0]&&me[1]<ke[3])){Fe.label=me[1];break}if(6===me[0]&&Fe.label<ke[1]){Fe.label=ke[1],ke=me;break}if(ke&&Fe.label<ke[2]){Fe.label=ke[2],Fe.ops.push(me);break}ke[2]&&Fe.ops.pop(),Fe.trys.pop();continue}me=he.call(te,Fe)}catch(V){me=[6,V],be=0}finally{it=ke=0}if(5&me[0])throw me[1];return{value:me[0]?me[1]:void 0,done:!0}}([me,V])}}},_=this&&this.__asyncValues||function(te){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Fe,he=te[Symbol.asyncIterator];return he?he.call(te):(te="function"==typeof u?u(te):te[Symbol.iterator](),Fe={},it("next"),it("throw"),it("return"),Fe[Symbol.asyncIterator]=function(){return this},Fe);function it(ke){Fe[ke]=te[ke]&&function(ie){return new Promise(function(Ae,oe){!function be(ke,ie,Ae,oe){Promise.resolve(oe).then(function(me){ke({value:me,done:Ae})},ie)}(Ae,oe,(ie=te[ke](ie)).done,ie.value)})}}},u=this&&this.__values||function(te){var he="function"==typeof Symbol&&Symbol.iterator,Fe=he&&te[he],it=0;if(Fe)return Fe.call(te);if(te&&"number"==typeof te.length)return{next:function(){return te&&it>=te.length&&(te=void 0),{value:te&&te[it++],done:!te}}};throw new TypeError(he?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(o,"__esModule",{value:!0}),o.fromReadableStreamLike=o.fromAsyncIterable=o.fromIterable=o.fromPromise=o.fromArrayLike=o.fromInteropObservable=o.innerFrom=void 0;var r=a(697),c=a(5050),d=a(5821),p=a(7454),y=a(6175),f=a(6870),b=a(5431),v=a(7128),m=a(7104),C=a(4709),M=a(1689);function P(te){return new d.Observable(function(he){var Fe=te[M.observable]();if(m.isFunction(Fe.subscribe))return Fe.subscribe(he);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function N(te){return new d.Observable(function(he){for(var Fe=0;Fe<te.length&&!he.closed;Fe++)he.next(te[Fe]);he.complete()})}function Y(te){return new d.Observable(function(he){te.then(function(Fe){he.closed||(he.next(Fe),he.complete())},function(Fe){return he.error(Fe)}).then(null,C.reportUnhandledError)})}function U(te){return new d.Observable(function(he){var Fe,it;try{for(var be=u(te),ke=be.next();!ke.done;ke=be.next())if(he.next(ke.value),he.closed)return}catch(Ae){Fe={error:Ae}}finally{try{ke&&!ke.done&&(it=be.return)&&it.call(be)}finally{if(Fe)throw Fe.error}}he.complete()})}function G(te){return new d.Observable(function(he){(function J(te,he){var Fe,it,be,ke;return n(this,void 0,void 0,function(){var Ae;return h(this,function(oe){switch(oe.label){case 0:oe.trys.push([0,5,6,11]),Fe=_(te),oe.label=1;case 1:return[4,Fe.next()];case 2:if((it=oe.sent()).done)return[3,4];if(he.next(it.value),he.closed)return[2];oe.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return Ae=oe.sent(),be={error:Ae},[3,11];case 6:return oe.trys.push([6,,9,10]),it&&!it.done&&(ke=Fe.return)?[4,ke.call(Fe)]:[3,8];case 7:oe.sent(),oe.label=8;case 8:return[3,10];case 9:if(be)throw be.error;return[7];case 10:return[7];case 11:return he.complete(),[2]}})})})(te,he).catch(function(Fe){return he.error(Fe)})})}function $(te){return G(v.readableStreamLikeToAsyncGenerator(te))}o.innerFrom=function O(te){if(te instanceof d.Observable)return te;if(null!=te){if(p.isInteropObservable(te))return P(te);if(r.isArrayLike(te))return N(te);if(c.isPromise(te))return Y(te);if(y.isAsyncIterable(te))return G(te);if(b.isIterable(te))return U(te);if(v.isReadableStreamLike(te))return $(te)}throw f.createInvalidObservableTypeError(te)},o.fromInteropObservable=P,o.fromArrayLike=N,o.fromPromise=Y,o.fromIterable=U,o.fromAsyncIterable=G,o.fromReadableStreamLike=$},1836:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.interval=void 0;var n=a(4006),h=a(3271);o.interval=function _(u,r){return void 0===u&&(u=0),void 0===r&&(r=n.asyncScheduler),u<0&&(u=0),h.timer(u,u,r)}},9248:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.merge=void 0;var n=a(3917),h=a(8767),_=a(7406),u=a(1642),r=a(4996);o.merge=function c(){for(var d=[],p=0;p<arguments.length;p++)d[p]=arguments[p];var y=u.popScheduler(d),f=u.popNumber(d,1/0),b=d;return b.length?1===b.length?h.innerFrom(b[0]):n.mergeAll(f)(r.from(b,y)):_.EMPTY}},2818:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.never=o.NEVER=void 0;var n=a(5821),h=a(31);o.NEVER=new n.Observable(h.noop),o.never=function _(){return o.NEVER}},9677:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.of=void 0;var n=a(1642),h=a(4996);o.of=function _(){for(var u=[],r=0;r<arguments.length;r++)u[r]=arguments[r];var c=n.popScheduler(u);return h.from(u,c)}},9978:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.onErrorResumeNext=void 0;var n=a(7406),h=a(2158),_=a(3531);o.onErrorResumeNext=function u(){for(var r=[],c=0;c<arguments.length;c++)r[c]=arguments[c];return h.onErrorResumeNext(_.argsOrArgArray(r))(n.EMPTY)}},5519:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.pairs=void 0;var n=a(4996);o.pairs=function h(_,u){return n.from(Object.entries(_),u)}},8221:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.partition=void 0;var n=a(963),h=a(4270),_=a(8767);o.partition=function u(r,c,d){return[h.filter(c,d)(_.innerFrom(r)),h.filter(n.not(c,d))(_.innerFrom(r))]}},8181:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.raceInit=o.race=void 0;var n=a(5821),h=a(8767),_=a(3531),u=a(3173);function c(d){return function(p){for(var y=[],f=function(v){y.push(h.innerFrom(d[v]).subscribe(u.createOperatorSubscriber(p,function(m){if(y){for(var C=0;C<y.length;C++)C!==v&&y[C].unsubscribe();y=null}p.next(m)})))},b=0;y&&!p.closed&&b<d.length;b++)f(b)}}o.race=function r(){for(var d=[],p=0;p<arguments.length;p++)d[p]=arguments[p];return 1===(d=_.argsOrArgArray(d)).length?h.innerFrom(d[0]):new n.Observable(c(d))},o.raceInit=c},4622:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.range=void 0;var n=a(5821),h=a(7406);o.range=function _(u,r,c){if(null==r&&(r=u,u=0),r<=0)return h.EMPTY;var d=r+u;return new n.Observable(c?function(p){var y=u;return c.schedule(function(){y<d?(p.next(y++),this.schedule()):p.complete()})}:function(p){for(var y=u;y<d&&!p.closed;)p.next(y++);p.complete()})}},338:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.throwError=void 0;var n=a(5821),h=a(7104);o.throwError=function _(u,r){var c=h.isFunction(u)?u:function(){return u},d=function(p){return p.error(c())};return new n.Observable(r?function(p){return r.schedule(d,0,p)}:d)}},3271:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.timer=void 0;var n=a(5821),h=a(4006),_=a(1875),u=a(7323);o.timer=function r(c,d,p){void 0===c&&(c=0),void 0===p&&(p=h.async);var y=-1;return null!=d&&(_.isScheduler(d)?p=d:y=d),new n.Observable(function(f){var b=u.isValidDate(c)?+c-p.now():c;b<0&&(b=0);var v=0;return p.schedule(function(){f.closed||(f.next(v++),0<=y?this.schedule(void 0,y):f.complete())},b)})}},924:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.using=void 0;var n=a(5821),h=a(8767),_=a(7406);o.using=function u(r,c){return new n.Observable(function(d){var p=r(),y=c(p);return(y?h.innerFrom(y):_.EMPTY).subscribe(d),function(){p&&p.unsubscribe()}})}},4842:function(z,o,a){"use strict";var n=this&&this.__read||function(f,b){var v="function"==typeof Symbol&&f[Symbol.iterator];if(!v)return f;var C,O,m=v.call(f),M=[];try{for(;(void 0===b||b-- >0)&&!(C=m.next()).done;)M.push(C.value)}catch(P){O={error:P}}finally{try{C&&!C.done&&(v=m.return)&&v.call(m)}finally{if(O)throw O.error}}return M},h=this&&this.__spreadArray||function(f,b){for(var v=0,m=b.length,C=f.length;v<m;v++,C++)f[C]=b[v];return f};Object.defineProperty(o,"__esModule",{value:!0}),o.zip=void 0;var _=a(5821),u=a(8767),r=a(3531),c=a(7406),d=a(3173),p=a(1642);o.zip=function y(){for(var f=[],b=0;b<arguments.length;b++)f[b]=arguments[b];var v=p.popResultSelector(f),m=r.argsOrArgArray(f);return m.length?new _.Observable(function(C){var M=m.map(function(){return[]}),O=m.map(function(){return!1});C.add(function(){M=O=null});for(var P=function(Y){u.innerFrom(m[Y]).subscribe(d.createOperatorSubscriber(C,function(U){if(M[Y].push(U),M.every(function($){return $.length})){var G=M.map(function($){return $.shift()});C.next(v?v.apply(void 0,h([],n(G))):G),M.some(function($,J){return!$.length&&O[J]})&&C.complete()}},function(){O[Y]=!0,!M[Y].length&&C.complete()}))},N=0;!C.closed&&N<m.length;N++)P(N);return function(){M=O=null}}):c.EMPTY}},3173:function(z,o,a){"use strict";var r,n=this&&this.__extends||(r=function(c,d){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,y){p.__proto__=y}||function(p,y){for(var f in y)Object.prototype.hasOwnProperty.call(y,f)&&(p[f]=y[f])})(c,d)},function(c,d){if("function"!=typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function p(){this.constructor=c}r(c,d),c.prototype=null===d?Object.create(d):(p.prototype=d.prototype,new p)});Object.defineProperty(o,"__esModule",{value:!0}),o.OperatorSubscriber=o.createOperatorSubscriber=void 0;var h=a(7052);o.createOperatorSubscriber=function _(r,c,d,p,y){return new u(r,c,d,p,y)};var u=function(r){function c(d,p,y,f,b,v){var m=r.call(this,d)||this;return m.onFinalize=b,m.shouldUnsubscribe=v,m._next=p?function(C){try{p(C)}catch(M){d.error(M)}}:r.prototype._next,m._error=f?function(C){try{f(C)}catch(M){d.error(M)}finally{this.unsubscribe()}}:r.prototype._error,m._complete=y?function(){try{y()}catch(C){d.error(C)}finally{this.unsubscribe()}}:r.prototype._complete,m}return n(c,r),c.prototype.unsubscribe=function(){var d;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var p=this.closed;r.prototype.unsubscribe.call(this),!p&&(null===(d=this.onFinalize)||void 0===d||d.call(this))}},c}(h.Subscriber);o.OperatorSubscriber=u},4815:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.audit=void 0;var n=a(9216),h=a(8767),_=a(3173);o.audit=function u(r){return n.operate(function(c,d){var p=!1,y=null,f=null,b=!1,v=function(){if(null==f||f.unsubscribe(),f=null,p){p=!1;var C=y;y=null,d.next(C)}b&&d.complete()},m=function(){f=null,b&&d.complete()};c.subscribe(_.createOperatorSubscriber(d,function(C){p=!0,y=C,f||h.innerFrom(r(C)).subscribe(f=_.createOperatorSubscriber(d,v,m))},function(){b=!0,(!p||!f||f.closed)&&d.complete()}))})}},9034:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.auditTime=void 0;var n=a(4006),h=a(4815),_=a(3271);o.auditTime=function u(r,c){return void 0===c&&(c=n.asyncScheduler),h.audit(function(){return _.timer(r,c)})}},8544:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.buffer=void 0;var n=a(9216),h=a(31),_=a(3173);o.buffer=function u(r){return n.operate(function(c,d){var p=[];return c.subscribe(_.createOperatorSubscriber(d,function(y){return p.push(y)},function(){d.next(p),d.complete()})),r.subscribe(_.createOperatorSubscriber(d,function(){var y=p;p=[],d.next(y)},h.noop)),function(){p=null}})}},3999:function(z,o,a){"use strict";var n=this&&this.__values||function(c){var d="function"==typeof Symbol&&Symbol.iterator,p=d&&c[d],y=0;if(p)return p.call(c);if(c&&"number"==typeof c.length)return{next:function(){return c&&y>=c.length&&(c=void 0),{value:c&&c[y++],done:!c}}};throw new TypeError(d?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(o,"__esModule",{value:!0}),o.bufferCount=void 0;var h=a(9216),_=a(3173),u=a(5137);o.bufferCount=function r(c,d){return void 0===d&&(d=null),d=null!=d?d:c,h.operate(function(p,y){var f=[],b=0;p.subscribe(_.createOperatorSubscriber(y,function(v){var m,C,M,O,P=null;b++%d==0&&f.push([]);try{for(var N=n(f),Y=N.next();!Y.done;Y=N.next())(U=Y.value).push(v),c<=U.length&&(P=null!=P?P:[]).push(U)}catch(J){m={error:J}}finally{try{Y&&!Y.done&&(C=N.return)&&C.call(N)}finally{if(m)throw m.error}}if(P)try{for(var G=n(P),$=G.next();!$.done;$=G.next()){var U;u.arrRemove(f,U=$.value),y.next(U)}}catch(J){M={error:J}}finally{try{$&&!$.done&&(O=G.return)&&O.call(G)}finally{if(M)throw M.error}}},function(){var v,m;try{for(var C=n(f),M=C.next();!M.done;M=C.next())y.next(M.value)}catch(P){v={error:P}}finally{try{M&&!M.done&&(m=C.return)&&m.call(C)}finally{if(v)throw v.error}}y.complete()},void 0,function(){f=null}))})}},1392:function(z,o,a){"use strict";var n=this&&this.__values||function(f){var b="function"==typeof Symbol&&Symbol.iterator,v=b&&f[b],m=0;if(v)return v.call(f);if(f&&"number"==typeof f.length)return{next:function(){return f&&m>=f.length&&(f=void 0),{value:f&&f[m++],done:!f}}};throw new TypeError(b?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(o,"__esModule",{value:!0}),o.bufferTime=void 0;var h=a(6448),_=a(9216),u=a(3173),r=a(5137),c=a(4006),d=a(1642),p=a(2590);o.bufferTime=function y(f){for(var b,v,m=[],C=1;C<arguments.length;C++)m[C-1]=arguments[C];var M=null!==(b=d.popScheduler(m))&&void 0!==b?b:c.asyncScheduler,O=null!==(v=m[0])&&void 0!==v?v:null,P=m[1]||1/0;return _.operate(function(N,Y){var U=[],G=!1,$=function(he){var Fe=he.buffer;he.subs.unsubscribe(),r.arrRemove(U,he),Y.next(Fe),G&&J()},J=function(){if(U){var he=new h.Subscription;Y.add(he);var it={buffer:[],subs:he};U.push(it),p.executeSchedule(he,M,function(){return $(it)},f)}};null!==O&&O>=0?p.executeSchedule(Y,M,J,O,!0):G=!0,J();var te=u.createOperatorSubscriber(Y,function(he){var Fe,it,be=U.slice();try{for(var ke=n(be),ie=ke.next();!ie.done;ie=ke.next()){var Ae=ie.value,oe=Ae.buffer;oe.push(he),P<=oe.length&&$(Ae)}}catch(me){Fe={error:me}}finally{try{ie&&!ie.done&&(it=ke.return)&&it.call(ke)}finally{if(Fe)throw Fe.error}}},function(){for(;null!=U&&U.length;)Y.next(U.shift().buffer);null==te||te.unsubscribe(),Y.complete(),Y.unsubscribe()},void 0,function(){return U=null});N.subscribe(te)})}},555:function(z,o,a){"use strict";var n=this&&this.__values||function(y){var f="function"==typeof Symbol&&Symbol.iterator,b=f&&y[f],v=0;if(b)return b.call(y);if(y&&"number"==typeof y.length)return{next:function(){return y&&v>=y.length&&(y=void 0),{value:y&&y[v++],done:!y}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(o,"__esModule",{value:!0}),o.bufferToggle=void 0;var h=a(6448),_=a(9216),u=a(8767),r=a(3173),c=a(31),d=a(5137);o.bufferToggle=function p(y,f){return _.operate(function(b,v){var m=[];u.innerFrom(y).subscribe(r.createOperatorSubscriber(v,function(C){var M=[];m.push(M);var O=new h.Subscription;O.add(u.innerFrom(f(C)).subscribe(r.createOperatorSubscriber(v,function(){d.arrRemove(m,M),v.next(M),O.unsubscribe()},c.noop)))},c.noop)),b.subscribe(r.createOperatorSubscriber(v,function(C){var M,O;try{for(var P=n(m),N=P.next();!N.done;N=P.next())N.value.push(C)}catch(U){M={error:U}}finally{try{N&&!N.done&&(O=P.return)&&O.call(P)}finally{if(M)throw M.error}}},function(){for(;m.length>0;)v.next(m.shift());v.complete()}))})}},7274:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.bufferWhen=void 0;var n=a(9216),h=a(31),_=a(3173),u=a(8767);o.bufferWhen=function r(c){return n.operate(function(d,p){var y=null,f=null,b=function(){null==f||f.unsubscribe();var v=y;y=[],v&&p.next(v),u.innerFrom(c()).subscribe(f=_.createOperatorSubscriber(p,b,h.noop))};b(),d.subscribe(_.createOperatorSubscriber(p,function(v){return null==y?void 0:y.push(v)},function(){y&&p.next(y),p.complete()},void 0,function(){return y=f=null}))})}},6e3:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.catchError=void 0;var n=a(8767),h=a(3173),_=a(9216);o.catchError=function u(r){return _.operate(function(c,d){var f,p=null,y=!1;p=c.subscribe(h.createOperatorSubscriber(d,void 0,void 0,function(b){f=n.innerFrom(r(b,u(r)(c))),p?(p.unsubscribe(),p=null,f.subscribe(d)):y=!0})),y&&(p.unsubscribe(),p=null,f.subscribe(d))})}},8996:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.combineAll=void 0;var n=a(8931);o.combineAll=n.combineLatestAll},5538:function(z,o,a){"use strict";var n=this&&this.__read||function(f,b){var v="function"==typeof Symbol&&f[Symbol.iterator];if(!v)return f;var C,O,m=v.call(f),M=[];try{for(;(void 0===b||b-- >0)&&!(C=m.next()).done;)M.push(C.value)}catch(P){O={error:P}}finally{try{C&&!C.done&&(v=m.return)&&v.call(m)}finally{if(O)throw O.error}}return M},h=this&&this.__spreadArray||function(f,b){for(var v=0,m=b.length,C=f.length;v<m;v++,C++)f[C]=b[v];return f};Object.defineProperty(o,"__esModule",{value:!0}),o.combineLatest=void 0;var _=a(6892),u=a(9216),r=a(3531),c=a(5280),d=a(1471),p=a(1642);o.combineLatest=function y(){for(var f=[],b=0;b<arguments.length;b++)f[b]=arguments[b];var v=p.popResultSelector(f);return v?d.pipe(y.apply(void 0,h([],n(f))),c.mapOneOrManyArgs(v)):u.operate(function(m,C){_.combineLatestInit(h([m],n(r.argsOrArgArray(f))))(C)})}},8931:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.combineLatestAll=void 0;var n=a(6892),h=a(1277);o.combineLatestAll=function _(u){return h.joinAllInternals(n.combineLatest,u)}},8947:function(z,o,a){"use strict";var n=this&&this.__read||function(r,c){var d="function"==typeof Symbol&&r[Symbol.iterator];if(!d)return r;var y,b,p=d.call(r),f=[];try{for(;(void 0===c||c-- >0)&&!(y=p.next()).done;)f.push(y.value)}catch(v){b={error:v}}finally{try{y&&!y.done&&(d=p.return)&&d.call(p)}finally{if(b)throw b.error}}return f},h=this&&this.__spreadArray||function(r,c){for(var d=0,p=c.length,y=r.length;d<p;d++,y++)r[y]=c[d];return r};Object.defineProperty(o,"__esModule",{value:!0}),o.combineLatestWith=void 0;var _=a(5538);o.combineLatestWith=function u(){for(var r=[],c=0;c<arguments.length;c++)r[c]=arguments[c];return _.combineLatest.apply(void 0,h([],n(r)))}},4656:function(z,o,a){"use strict";var n=this&&this.__read||function(p,y){var f="function"==typeof Symbol&&p[Symbol.iterator];if(!f)return p;var v,C,b=f.call(p),m=[];try{for(;(void 0===y||y-- >0)&&!(v=b.next()).done;)m.push(v.value)}catch(M){C={error:M}}finally{try{v&&!v.done&&(f=b.return)&&f.call(b)}finally{if(C)throw C.error}}return m},h=this&&this.__spreadArray||function(p,y){for(var f=0,b=y.length,v=p.length;f<b;f++,v++)p[v]=y[f];return p};Object.defineProperty(o,"__esModule",{value:!0}),o.concat=void 0;var _=a(9216),u=a(739),r=a(1642),c=a(4996);o.concat=function d(){for(var p=[],y=0;y<arguments.length;y++)p[y]=arguments[y];var f=r.popScheduler(p);return _.operate(function(b,v){u.concatAll()(c.from(h([b],n(p)),f)).subscribe(v)})}},739:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.concatAll=void 0;var n=a(3917);o.concatAll=function h(){return n.mergeAll(1)}},4659:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.concatMap=void 0;var n=a(3010),h=a(7104);o.concatMap=function _(u,r){return h.isFunction(r)?n.mergeMap(u,r,1):n.mergeMap(u,1)}},2993:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.concatMapTo=void 0;var n=a(4659),h=a(7104);o.concatMapTo=function _(u,r){return h.isFunction(r)?n.concatMap(function(){return u},r):n.concatMap(function(){return u})}},5898:function(z,o,a){"use strict";var n=this&&this.__read||function(r,c){var d="function"==typeof Symbol&&r[Symbol.iterator];if(!d)return r;var y,b,p=d.call(r),f=[];try{for(;(void 0===c||c-- >0)&&!(y=p.next()).done;)f.push(y.value)}catch(v){b={error:v}}finally{try{y&&!y.done&&(d=p.return)&&d.call(p)}finally{if(b)throw b.error}}return f},h=this&&this.__spreadArray||function(r,c){for(var d=0,p=c.length,y=r.length;d<p;d++,y++)r[y]=c[d];return r};Object.defineProperty(o,"__esModule",{value:!0}),o.concatWith=void 0;var _=a(4656);o.concatWith=function u(){for(var r=[],c=0;c<arguments.length;c++)r[c]=arguments[c];return _.concat.apply(void 0,h([],n(r)))}},9725:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.connect=void 0;var n=a(3768),h=a(8767),_=a(9216),u=a(5107),r={connector:function(){return new n.Subject}};o.connect=function c(d,p){void 0===p&&(p=r);var y=p.connector;return _.operate(function(f,b){var v=y();h.innerFrom(d(u.fromSubscribable(v))).subscribe(b),b.add(f.subscribe(v))})}},1814:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.count=void 0;var n=a(8587);o.count=function h(_){return n.reduce(function(u,r,c){return!_||_(r,c)?u+1:u},0)}},9784:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.debounce=void 0;var n=a(9216),h=a(31),_=a(3173),u=a(8767);o.debounce=function r(c){return n.operate(function(d,p){var y=!1,f=null,b=null,v=function(){if(null==b||b.unsubscribe(),b=null,y){y=!1;var m=f;f=null,p.next(m)}};d.subscribe(_.createOperatorSubscriber(p,function(m){null==b||b.unsubscribe(),y=!0,f=m,b=_.createOperatorSubscriber(p,v,h.noop),u.innerFrom(c(m)).subscribe(b)},function(){v(),p.complete()},void 0,function(){f=b=null}))})}},7061:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.debounceTime=void 0;var n=a(4006),h=a(9216),_=a(3173);o.debounceTime=function u(r,c){return void 0===c&&(c=n.asyncScheduler),h.operate(function(d,p){var y=null,f=null,b=null,v=function(){if(y){y.unsubscribe(),y=null;var C=f;f=null,p.next(C)}};function m(){var C=b+r,M=c.now();if(M<C)return y=this.schedule(void 0,C-M),void p.add(y);v()}d.subscribe(_.createOperatorSubscriber(p,function(C){f=C,b=c.now(),y||(y=c.schedule(m,r),p.add(y))},function(){v(),p.complete()},void 0,function(){f=y=null}))})}},926:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.defaultIfEmpty=void 0;var n=a(9216),h=a(3173);o.defaultIfEmpty=function _(u){return n.operate(function(r,c){var d=!1;r.subscribe(h.createOperatorSubscriber(c,function(p){d=!0,c.next(p)},function(){d||c.next(u),c.complete()}))})}},2096:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.delay=void 0;var n=a(4006),h=a(3264),_=a(3271);o.delay=function u(r,c){void 0===c&&(c=n.asyncScheduler);var d=_.timer(r,c);return h.delayWhen(function(){return d})}},3264:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.delayWhen=void 0;var n=a(509),h=a(1333),_=a(4041),u=a(2182),r=a(3010);o.delayWhen=function c(d,p){return p?function(y){return n.concat(p.pipe(h.take(1),_.ignoreElements()),y.pipe(c(d)))}:r.mergeMap(function(y,f){return d(y,f).pipe(h.take(1),u.mapTo(y))})}},533:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.dematerialize=void 0;var n=a(7262),h=a(9216),_=a(3173);o.dematerialize=function u(){return h.operate(function(r,c){r.subscribe(_.createOperatorSubscriber(c,function(d){return n.observeNotification(d,c)}))})}},5045:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.distinct=void 0;var n=a(9216),h=a(3173),_=a(31);o.distinct=function u(r,c){return n.operate(function(d,p){var y=new Set;d.subscribe(h.createOperatorSubscriber(p,function(f){var b=r?r(f):f;y.has(b)||(y.add(b),p.next(f))})),null==c||c.subscribe(h.createOperatorSubscriber(p,function(){return y.clear()},_.noop))})}},5794:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.distinctUntilChanged=void 0;var n=a(7884),h=a(9216),_=a(3173);function r(c,d){return c===d}o.distinctUntilChanged=function u(c,d){return void 0===d&&(d=n.identity),c=null!=c?c:r,h.operate(function(p,y){var f,b=!0;p.subscribe(_.createOperatorSubscriber(y,function(v){var m=d(v);(b||!c(f,m))&&(b=!1,f=m,y.next(v))}))})}},8589:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.distinctUntilKeyChanged=void 0;var n=a(5794);o.distinctUntilKeyChanged=function h(_,u){return n.distinctUntilChanged(function(r,c){return u?u(r[_],c[_]):r[_]===c[_]})}},1069:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.elementAt=void 0;var n=a(4769),h=a(4270),_=a(9194),u=a(926),r=a(1333);o.elementAt=function c(d,p){if(d<0)throw new n.ArgumentOutOfRangeError;var y=arguments.length>=2;return function(f){return f.pipe(h.filter(function(b,v){return v===d}),r.take(1),y?u.defaultIfEmpty(p):_.throwIfEmpty(function(){return new n.ArgumentOutOfRangeError}))}}},4312:function(z,o,a){"use strict";var n=this&&this.__read||function(c,d){var p="function"==typeof Symbol&&c[Symbol.iterator];if(!p)return c;var f,v,y=p.call(c),b=[];try{for(;(void 0===d||d-- >0)&&!(f=y.next()).done;)b.push(f.value)}catch(m){v={error:m}}finally{try{f&&!f.done&&(p=y.return)&&p.call(y)}finally{if(v)throw v.error}}return b},h=this&&this.__spreadArray||function(c,d){for(var p=0,y=d.length,f=c.length;p<y;p++,f++)c[f]=d[p];return c};Object.defineProperty(o,"__esModule",{value:!0}),o.endWith=void 0;var _=a(509),u=a(9677);o.endWith=function r(){for(var c=[],d=0;d<arguments.length;d++)c[d]=arguments[d];return function(p){return _.concat(p,u.of.apply(void 0,h([],n(c))))}}},9098:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.every=void 0;var n=a(9216),h=a(3173);o.every=function _(u,r){return n.operate(function(c,d){var p=0;c.subscribe(h.createOperatorSubscriber(d,function(y){u.call(r,y,p++,c)||(d.next(!1),d.complete())},function(){d.next(!0),d.complete()}))})}},5429:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.exhaust=void 0;var n=a(1399);o.exhaust=n.exhaustAll},1399:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.exhaustAll=void 0;var n=a(5183),h=a(7884);o.exhaustAll=function _(){return n.exhaustMap(h.identity)}},5183:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.exhaustMap=void 0;var n=a(752),h=a(8767),_=a(9216),u=a(3173);o.exhaustMap=function r(c,d){return d?function(p){return p.pipe(r(function(y,f){return h.innerFrom(c(y,f)).pipe(n.map(function(b,v){return d(y,b,f,v)}))}))}:_.operate(function(p,y){var f=0,b=null,v=!1;p.subscribe(u.createOperatorSubscriber(y,function(m){b||(b=u.createOperatorSubscriber(y,void 0,function(){b=null,v&&y.complete()}),h.innerFrom(c(m,f++)).subscribe(b))},function(){v=!0,!b&&y.complete()}))})}},8678:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.expand=void 0;var n=a(9216),h=a(8457);o.expand=function _(u,r,c){return void 0===r&&(r=1/0),r=(r||0)<1?1/0:r,n.operate(function(d,p){return h.mergeInternals(d,p,u,r,void 0,!0,c)})}},4270:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.filter=void 0;var n=a(9216),h=a(3173);o.filter=function _(u,r){return n.operate(function(c,d){var p=0;c.subscribe(h.createOperatorSubscriber(d,function(y){return u.call(r,y,p++)&&d.next(y)}))})}},1587:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.finalize=void 0;var n=a(9216);o.finalize=function h(_){return n.operate(function(u,r){try{u.subscribe(r)}finally{r.add(_)}})}},2265:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.createFind=o.find=void 0;var n=a(9216),h=a(3173);function u(r,c,d){var p="index"===d;return function(y,f){var b=0;y.subscribe(h.createOperatorSubscriber(f,function(v){var m=b++;r.call(c,v,m,y)&&(f.next(p?m:v),f.complete())},function(){f.next(p?-1:void 0),f.complete()}))}}o.find=function _(r,c){return n.operate(u(r,c,"value"))},o.createFind=u},8195:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.findIndex=void 0;var n=a(9216),h=a(2265);o.findIndex=function _(u,r){return n.operate(h.createFind(u,r,"index"))}},8012:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.first=void 0;var n=a(8915),h=a(4270),_=a(1333),u=a(926),r=a(9194),c=a(7884);o.first=function d(p,y){var f=arguments.length>=2;return function(b){return b.pipe(p?h.filter(function(v,m){return p(v,m,b)}):c.identity,_.take(1),f?u.defaultIfEmpty(y):r.throwIfEmpty(function(){return new n.EmptyError}))}}},1463:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.flatMap=void 0;var n=a(3010);o.flatMap=n.mergeMap},4075:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.groupBy=void 0;var n=a(5821),h=a(8767),_=a(3768),u=a(9216),r=a(3173);o.groupBy=function c(d,p,y,f){return u.operate(function(b,v){var m;p&&"function"!=typeof p?(y=p.duration,m=p.element,f=p.connector):m=p;var C=new Map,M=function(G){C.forEach(G),G(v)},O=function(G){return M(function($){return $.error(G)})},P=0,N=!1,Y=new r.OperatorSubscriber(v,function(G){try{var $=d(G),J=C.get($);if(!J){C.set($,J=f?f():new _.Subject);var te=function U(G,$){var J=new n.Observable(function(te){P++;var he=$.subscribe(te);return function(){he.unsubscribe(),0==--P&&N&&Y.unsubscribe()}});return J.key=G,J}($,J);if(v.next(te),y){var he=r.createOperatorSubscriber(J,function(){J.complete(),null==he||he.unsubscribe()},void 0,void 0,function(){return C.delete($)});Y.add(h.innerFrom(y(te)).subscribe(he))}}J.next(m?m(G):G)}catch(Fe){O(Fe)}},function(){return M(function(G){return G.complete()})},O,function(){return C.clear()},function(){return N=!0,0===P});b.subscribe(Y)})}},4041:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.ignoreElements=void 0;var n=a(9216),h=a(3173),_=a(31);o.ignoreElements=function u(){return n.operate(function(r,c){r.subscribe(h.createOperatorSubscriber(c,_.noop))})}},6478:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.isEmpty=void 0;var n=a(9216),h=a(3173);o.isEmpty=function _(){return n.operate(function(u,r){u.subscribe(h.createOperatorSubscriber(r,function(){r.next(!1),r.complete()},function(){r.next(!0),r.complete()}))})}},1277:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.joinAllInternals=void 0;var n=a(7884),h=a(5280),_=a(1471),u=a(3010),r=a(2976);o.joinAllInternals=function c(d,p){return _.pipe(r.toArray(),u.mergeMap(function(y){return d(y)}),p?h.mapOneOrManyArgs(p):n.identity)}},5126:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.last=void 0;var n=a(8915),h=a(4270),_=a(3534),u=a(9194),r=a(926),c=a(7884);o.last=function d(p,y){var f=arguments.length>=2;return function(b){return b.pipe(p?h.filter(function(v,m){return p(v,m,b)}):c.identity,_.takeLast(1),f?r.defaultIfEmpty(y):u.throwIfEmpty(function(){return new n.EmptyError}))}}},752:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.map=void 0;var n=a(9216),h=a(3173);o.map=function _(u,r){return n.operate(function(c,d){var p=0;c.subscribe(h.createOperatorSubscriber(d,function(y){d.next(u.call(r,y,p++))}))})}},2182:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.mapTo=void 0;var n=a(752);o.mapTo=function h(_){return n.map(function(){return _})}},119:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.materialize=void 0;var n=a(7262),h=a(9216),_=a(3173);o.materialize=function u(){return h.operate(function(r,c){r.subscribe(_.createOperatorSubscriber(c,function(d){c.next(n.Notification.createNext(d))},function(){c.next(n.Notification.createComplete()),c.complete()},function(d){c.next(n.Notification.createError(d)),c.complete()}))})}},9329:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.max=void 0;var n=a(8587),h=a(7104);o.max=function _(u){return n.reduce(h.isFunction(u)?function(r,c){return u(r,c)>0?r:c}:function(r,c){return r>c?r:c})}},8789:function(z,o,a){"use strict";var n=this&&this.__read||function(y,f){var b="function"==typeof Symbol&&y[Symbol.iterator];if(!b)return y;var m,M,v=b.call(y),C=[];try{for(;(void 0===f||f-- >0)&&!(m=v.next()).done;)C.push(m.value)}catch(O){M={error:O}}finally{try{m&&!m.done&&(b=v.return)&&b.call(v)}finally{if(M)throw M.error}}return C},h=this&&this.__spreadArray||function(y,f){for(var b=0,v=f.length,m=y.length;b<v;b++,m++)y[m]=f[b];return y};Object.defineProperty(o,"__esModule",{value:!0}),o.merge=void 0;var _=a(9216),u=a(3531),r=a(3917),c=a(1642),d=a(4996);o.merge=function p(){for(var y=[],f=0;f<arguments.length;f++)y[f]=arguments[f];var b=c.popScheduler(y),v=c.popNumber(y,1/0);return y=u.argsOrArgArray(y),_.operate(function(m,C){r.mergeAll(v)(d.from(h([m],n(y)),b)).subscribe(C)})}},3917:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.mergeAll=void 0;var n=a(3010),h=a(7884);o.mergeAll=function _(u){return void 0===u&&(u=1/0),n.mergeMap(h.identity,u)}},8457:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.mergeInternals=void 0;var n=a(8767),h=a(2590),_=a(3173);o.mergeInternals=function u(r,c,d,p,y,f,b,v){var m=[],C=0,M=0,O=!1,P=function(){O&&!m.length&&!C&&c.complete()},N=function(U){return C<p?Y(U):m.push(U)},Y=function(U){f&&c.next(U),C++;var G=!1;n.innerFrom(d(U,M++)).subscribe(_.createOperatorSubscriber(c,function($){null==y||y($),f?N($):c.next($)},function(){G=!0},void 0,function(){if(G)try{C--;for(var $=function(){var J=m.shift();b?h.executeSchedule(c,b,function(){return Y(J)}):Y(J)};m.length&&C<p;)$();P()}catch(J){c.error(J)}}))};return r.subscribe(_.createOperatorSubscriber(c,N,function(){O=!0,P()})),function(){null==v||v()}}},3010:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.mergeMap=void 0;var n=a(752),h=a(8767),_=a(9216),u=a(8457),r=a(7104);o.mergeMap=function c(d,p,y){return void 0===y&&(y=1/0),r.isFunction(p)?c(function(f,b){return n.map(function(v,m){return p(f,v,b,m)})(h.innerFrom(d(f,b)))},y):("number"==typeof p&&(y=p),_.operate(function(f,b){return u.mergeInternals(f,b,d,y)}))}},929:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.mergeMapTo=void 0;var n=a(3010),h=a(7104);o.mergeMapTo=function _(u,r,c){return void 0===c&&(c=1/0),h.isFunction(r)?n.mergeMap(function(){return u},r,c):("number"==typeof r&&(c=r),n.mergeMap(function(){return u},c))}},2816:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.mergeScan=void 0;var n=a(9216),h=a(8457);o.mergeScan=function _(u,r,c){return void 0===c&&(c=1/0),n.operate(function(d,p){var y=r;return h.mergeInternals(d,p,function(f,b){return u(y,f,b)},c,function(f){y=f},!1,void 0,function(){return y=null})})}},9684:function(z,o,a){"use strict";var n=this&&this.__read||function(r,c){var d="function"==typeof Symbol&&r[Symbol.iterator];if(!d)return r;var y,b,p=d.call(r),f=[];try{for(;(void 0===c||c-- >0)&&!(y=p.next()).done;)f.push(y.value)}catch(v){b={error:v}}finally{try{y&&!y.done&&(d=p.return)&&d.call(p)}finally{if(b)throw b.error}}return f},h=this&&this.__spreadArray||function(r,c){for(var d=0,p=c.length,y=r.length;d<p;d++,y++)r[y]=c[d];return r};Object.defineProperty(o,"__esModule",{value:!0}),o.mergeWith=void 0;var _=a(8789);o.mergeWith=function u(){for(var r=[],c=0;c<arguments.length;c++)r[c]=arguments[c];return _.merge.apply(void 0,h([],n(r)))}},6250:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.min=void 0;var n=a(8587),h=a(7104);o.min=function _(u){return n.reduce(h.isFunction(u)?function(r,c){return u(r,c)<0?r:c}:function(r,c){return r<c?r:c})}},9872:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.multicast=void 0;var n=a(6686),h=a(7104),_=a(9725);o.multicast=function u(r,c){var d=h.isFunction(r)?r:function(){return r};return h.isFunction(c)?_.connect(c,{connector:d}):function(p){return new n.ConnectableObservable(p,d)}}},4928:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.observeOn=void 0;var n=a(2590),h=a(9216),_=a(3173);o.observeOn=function u(r,c){return void 0===c&&(c=0),h.operate(function(d,p){d.subscribe(_.createOperatorSubscriber(p,function(y){return n.executeSchedule(p,r,function(){return p.next(y)},c)},function(){return n.executeSchedule(p,r,function(){return p.complete()},c)},function(y){return n.executeSchedule(p,r,function(){return p.error(y)},c)}))})}},2158:function(z,o,a){"use strict";var n=this&&this.__read||function(y,f){var b="function"==typeof Symbol&&y[Symbol.iterator];if(!b)return y;var m,M,v=b.call(y),C=[];try{for(;(void 0===f||f-- >0)&&!(m=v.next()).done;)C.push(m.value)}catch(O){M={error:O}}finally{try{m&&!m.done&&(b=v.return)&&b.call(v)}finally{if(M)throw M.error}}return C},h=this&&this.__spreadArray||function(y,f){for(var b=0,v=f.length,m=y.length;b<v;b++,m++)y[m]=f[b];return y};Object.defineProperty(o,"__esModule",{value:!0}),o.onErrorResumeNext=void 0;var _=a(9216),u=a(8767),r=a(3531),c=a(3173),d=a(31);o.onErrorResumeNext=function p(){for(var y=[],f=0;f<arguments.length;f++)y[f]=arguments[f];var b=r.argsOrArgArray(y);return _.operate(function(v,m){var C=h([v],n(b)),M=function(){if(!m.closed)if(C.length>0){var O=void 0;try{O=u.innerFrom(C.shift())}catch(N){return void M()}var P=c.createOperatorSubscriber(m,void 0,d.noop,d.noop);O.subscribe(P),P.add(M)}else m.complete()};M()})}},9526:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.pairwise=void 0;var n=a(9216),h=a(3173);o.pairwise=function _(){return n.operate(function(u,r){var c,d=!1;u.subscribe(h.createOperatorSubscriber(r,function(p){var y=c;c=p,d&&r.next([y,p]),d=!0}))})}},5199:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.pluck=void 0;var n=a(752);o.pluck=function h(){for(var _=[],u=0;u<arguments.length;u++)_[u]=arguments[u];var r=_.length;if(0===r)throw new Error("list of properties cannot be empty.");return n.map(function(c){for(var d=c,p=0;p<r;p++){var y=null==d?void 0:d[_[p]];if(void 0===y)return;d=y}return d})}},955:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.publish=void 0;var n=a(3768),h=a(9872),_=a(9725);o.publish=function u(r){return r?function(c){return _.connect(r)(c)}:function(c){return h.multicast(new n.Subject)(c)}}},6750:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.publishBehavior=void 0;var n=a(5482),h=a(6686);o.publishBehavior=function _(u){return function(r){var c=new n.BehaviorSubject(u);return new h.ConnectableObservable(r,function(){return c})}}},1003:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.publishLast=void 0;var n=a(7606),h=a(6686);o.publishLast=function _(){return function(u){var r=new n.AsyncSubject;return new h.ConnectableObservable(u,function(){return r})}}},5530:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.publishReplay=void 0;var n=a(3406),h=a(9872),_=a(7104);o.publishReplay=function u(r,c,d,p){d&&!_.isFunction(d)&&(p=d);var y=_.isFunction(d)?d:void 0;return function(f){return h.multicast(new n.ReplaySubject(r,c,p),y)(f)}}},2992:function(z,o,a){"use strict";var n=this&&this.__read||function(d,p){var y="function"==typeof Symbol&&d[Symbol.iterator];if(!y)return d;var b,m,f=y.call(d),v=[];try{for(;(void 0===p||p-- >0)&&!(b=f.next()).done;)v.push(b.value)}catch(C){m={error:C}}finally{try{b&&!b.done&&(y=f.return)&&y.call(f)}finally{if(m)throw m.error}}return v},h=this&&this.__spreadArray||function(d,p){for(var y=0,f=p.length,b=d.length;y<f;y++,b++)d[b]=p[y];return d};Object.defineProperty(o,"__esModule",{value:!0}),o.raceWith=void 0;var _=a(8181),u=a(9216),r=a(7884);o.raceWith=function c(){for(var d=[],p=0;p<arguments.length;p++)d[p]=arguments[p];return d.length?u.operate(function(y,f){_.raceInit(h([y],n(d)))(f)}):r.identity}},8587:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.reduce=void 0;var n=a(3049),h=a(9216);o.reduce=function _(u,r){return h.operate(n.scanInternals(u,r,arguments.length>=2,!1,!0))}},904:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.refCount=void 0;var n=a(9216),h=a(3173);o.refCount=function _(){return n.operate(function(u,r){var c=null;u._refCount++;var d=h.createOperatorSubscriber(r,void 0,void 0,void 0,function(){if(!u||u._refCount<=0||0<--u._refCount)c=null;else{var p=u._connection,y=c;c=null,p&&(!y||p===y)&&p.unsubscribe(),r.unsubscribe()}});u.subscribe(d),d.closed||(c=u.connect())})}},8408:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.repeat=void 0;var n=a(7406),h=a(9216),_=a(3173),u=a(8767),r=a(3271);o.repeat=function c(d){var p,f,y=1/0;return null!=d&&("object"==typeof d?(y=void 0===(p=d.count)?1/0:p,f=d.delay):y=d),y<=0?function(){return n.EMPTY}:h.operate(function(b,v){var C,m=0,M=function(){if(null==C||C.unsubscribe(),C=null,null!=f){var P="number"==typeof f?r.timer(f):u.innerFrom(f(m)),N=_.createOperatorSubscriber(v,function(){N.unsubscribe(),O()});P.subscribe(N)}else O()},O=function(){var P=!1;C=b.subscribe(_.createOperatorSubscriber(v,void 0,function(){++m<y?C?M():P=!0:v.complete()})),P&&M()};O()})}},7032:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.repeatWhen=void 0;var n=a(3768),h=a(9216),_=a(3173);o.repeatWhen=function u(r){return h.operate(function(c,d){var p,f,y=!1,b=!1,v=!1,m=function(){return v&&b&&(d.complete(),!0)},M=function(){v=!1,p=c.subscribe(_.createOperatorSubscriber(d,void 0,function(){v=!0,!m()&&(f||(f=new n.Subject,r(f).subscribe(_.createOperatorSubscriber(d,function(){p?M():y=!0},function(){b=!0,m()}))),f).next()})),y&&(p.unsubscribe(),p=null,y=!1,M())};M()})}},6069:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.retry=void 0;var n=a(9216),h=a(3173),_=a(7884),u=a(3271),r=a(8767);o.retry=function c(d){var p;void 0===d&&(d=1/0);var y=(p=d&&"object"==typeof d?d:{count:d}).count,f=void 0===y?1/0:y,b=p.delay,v=p.resetOnSuccess,m=void 0!==v&&v;return f<=0?_.identity:n.operate(function(C,M){var P,O=0,N=function(){var Y=!1;P=C.subscribe(h.createOperatorSubscriber(M,function(U){m&&(O=0),M.next(U)},void 0,function(U){if(O++<f){var G=function(){P?(P.unsubscribe(),P=null,N()):Y=!0};if(null!=b){var $="number"==typeof b?u.timer(b):r.innerFrom(b(U,O)),J=h.createOperatorSubscriber(M,function(){J.unsubscribe(),G()},function(){M.complete()});$.subscribe(J)}else G()}else M.error(U)})),Y&&(P.unsubscribe(),P=null,N())};N()})}},5131:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.retryWhen=void 0;var n=a(3768),h=a(9216),_=a(3173);o.retryWhen=function u(r){return h.operate(function(c,d){var p,f,y=!1,b=function(){p=c.subscribe(_.createOperatorSubscriber(d,void 0,void 0,function(v){f||(f=new n.Subject,r(f).subscribe(_.createOperatorSubscriber(d,function(){return p?b():y=!0}))),f&&f.next(v)})),y&&(p.unsubscribe(),p=null,y=!1,b())};b()})}},2531:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.sample=void 0;var n=a(9216),h=a(31),_=a(3173);o.sample=function u(r){return n.operate(function(c,d){var p=!1,y=null;c.subscribe(_.createOperatorSubscriber(d,function(f){p=!0,y=f})),r.subscribe(_.createOperatorSubscriber(d,function(){if(p){p=!1;var f=y;y=null,d.next(f)}},h.noop))})}},306:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.sampleTime=void 0;var n=a(4006),h=a(2531),_=a(1836);o.sampleTime=function u(r,c){return void 0===c&&(c=n.asyncScheduler),h.sample(_.interval(r,c))}},251:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.scan=void 0;var n=a(9216),h=a(3049);o.scan=function _(u,r){return n.operate(h.scanInternals(u,r,arguments.length>=2,!0))}},3049:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.scanInternals=void 0;var n=a(3173);o.scanInternals=function h(_,u,r,c,d){return function(p,y){var f=r,b=u,v=0;p.subscribe(n.createOperatorSubscriber(y,function(m){var C=v++;b=f?_(b,m,C):(f=!0,m),c&&y.next(b)},d&&function(){f&&y.next(b),y.complete()}))}}},9788:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.sequenceEqual=void 0;var n=a(9216),h=a(3173);o.sequenceEqual=function _(r,c){return void 0===c&&(c=function(d,p){return d===p}),n.operate(function(d,p){var y={buffer:[],complete:!1},f={buffer:[],complete:!1},b=function(m){p.next(m),p.complete()},v=function(m,C){var M=h.createOperatorSubscriber(p,function(O){var P=C.buffer;0===P.length?C.complete?b(!1):m.buffer.push(O):!c(O,P.shift())&&b(!1)},function(){m.complete=!0,C.complete&&b(0===C.buffer.length),null==M||M.unsubscribe()});return M};d.subscribe(v(y,f)),r.subscribe(v(f,y))})}},3222:function(z,o,a){"use strict";var n=this&&this.__read||function(y,f){var b="function"==typeof Symbol&&y[Symbol.iterator];if(!b)return y;var m,M,v=b.call(y),C=[];try{for(;(void 0===f||f-- >0)&&!(m=v.next()).done;)C.push(m.value)}catch(O){M={error:O}}finally{try{m&&!m.done&&(b=v.return)&&b.call(v)}finally{if(M)throw M.error}}return C},h=this&&this.__spreadArray||function(y,f){for(var b=0,v=f.length,m=y.length;b<v;b++,m++)y[m]=f[b];return y};Object.defineProperty(o,"__esModule",{value:!0}),o.share=void 0;var _=a(8767),u=a(3768),r=a(7052),c=a(9216);function p(y,f){for(var b=[],v=2;v<arguments.length;v++)b[v-2]=arguments[v];if(!0!==f){if(!1!==f){var m=new r.SafeSubscriber({next:function(){m.unsubscribe(),y()}});return f.apply(void 0,h([],n(b))).subscribe(m)}}else y()}o.share=function d(y){void 0===y&&(y={});var f=y.connector,b=void 0===f?function(){return new u.Subject}:f,v=y.resetOnError,m=void 0===v||v,C=y.resetOnComplete,M=void 0===C||C,O=y.resetOnRefCountZero,P=void 0===O||O;return function(N){var Y,U,G,$=0,J=!1,te=!1,he=function(){null==U||U.unsubscribe(),U=void 0},Fe=function(){he(),Y=G=void 0,J=te=!1},it=function(){var be=Y;Fe(),null==be||be.unsubscribe()};return c.operate(function(be,ke){$++,!te&&!J&&he();var ie=G=null!=G?G:b();ke.add(function(){0==--$&&!te&&!J&&(U=p(it,P))}),ie.subscribe(ke),!Y&&$>0&&(Y=new r.SafeSubscriber({next:function(Ae){return ie.next(Ae)},error:function(Ae){te=!0,he(),U=p(Fe,m,Ae),ie.error(Ae)},complete:function(){J=!0,he(),U=p(Fe,M),ie.complete()}}),_.innerFrom(be).subscribe(Y))})(N)}}},2186:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.shareReplay=void 0;var n=a(3406),h=a(3222);o.shareReplay=function _(u,r,c){var d,p,y,f,b=!1;return u&&"object"==typeof u?(f=void 0===(d=u.bufferSize)?1/0:d,r=void 0===(p=u.windowTime)?1/0:p,b=void 0!==(y=u.refCount)&&y,c=u.scheduler):f=null!=u?u:1/0,h.share({connector:function(){return new n.ReplaySubject(f,r,c)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:b})}},695:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.single=void 0;var n=a(8915),h=a(1551),_=a(5477),u=a(9216),r=a(3173);o.single=function c(d){return u.operate(function(p,y){var b,f=!1,v=!1,m=0;p.subscribe(r.createOperatorSubscriber(y,function(C){v=!0,(!d||d(C,m++,p))&&(f&&y.error(new h.SequenceError("Too many matching values")),f=!0,b=C)},function(){f?(y.next(b),y.complete()):y.error(v?new _.NotFoundError("No matching values"):new n.EmptyError)}))})}},4975:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.skip=void 0;var n=a(4270);o.skip=function h(_){return n.filter(function(u,r){return _<=r})}},728:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.skipLast=void 0;var n=a(7884),h=a(9216),_=a(3173);o.skipLast=function u(r){return r<=0?n.identity:h.operate(function(c,d){var p=new Array(r),y=0;return c.subscribe(_.createOperatorSubscriber(d,function(f){var b=y++;if(b<r)p[b]=f;else{var v=b%r,m=p[v];p[v]=f,d.next(m)}})),function(){p=null}})}},7409:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.skipUntil=void 0;var n=a(9216),h=a(3173),_=a(8767),u=a(31);o.skipUntil=function r(c){return n.operate(function(d,p){var y=!1,f=h.createOperatorSubscriber(p,function(){null==f||f.unsubscribe(),y=!0},u.noop);_.innerFrom(c).subscribe(f),d.subscribe(h.createOperatorSubscriber(p,function(b){return y&&p.next(b)}))})}},385:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.skipWhile=void 0;var n=a(9216),h=a(3173);o.skipWhile=function _(u){return n.operate(function(r,c){var d=!1,p=0;r.subscribe(h.createOperatorSubscriber(c,function(y){return(d||(d=!u(y,p++)))&&c.next(y)}))})}},4930:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.startWith=void 0;var n=a(509),h=a(1642),_=a(9216);o.startWith=function u(){for(var r=[],c=0;c<arguments.length;c++)r[c]=arguments[c];var d=h.popScheduler(r);return _.operate(function(p,y){(d?n.concat(r,p,d):n.concat(r,p)).subscribe(y)})}},1698:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.subscribeOn=void 0;var n=a(9216);o.subscribeOn=function h(_,u){return void 0===u&&(u=0),n.operate(function(r,c){c.add(_.schedule(function(){return r.subscribe(c)},u))})}},8044:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.switchAll=void 0;var n=a(986),h=a(7884);o.switchAll=function _(){return n.switchMap(h.identity)}},986:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.switchMap=void 0;var n=a(8767),h=a(9216),_=a(3173);o.switchMap=function u(r,c){return h.operate(function(d,p){var y=null,f=0,b=!1,v=function(){return b&&!y&&p.complete()};d.subscribe(_.createOperatorSubscriber(p,function(m){null==y||y.unsubscribe();var C=0,M=f++;n.innerFrom(r(m,M)).subscribe(y=_.createOperatorSubscriber(p,function(O){return p.next(c?c(m,O,M,C++):O)},function(){y=null,v()}))},function(){b=!0,v()}))})}},9309:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.switchMapTo=void 0;var n=a(986),h=a(7104);o.switchMapTo=function _(u,r){return h.isFunction(r)?n.switchMap(function(){return u},r):n.switchMap(function(){return u})}},9499:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.switchScan=void 0;var n=a(986),h=a(9216);o.switchScan=function _(u,r){return h.operate(function(c,d){var p=r;return n.switchMap(function(y,f){return u(p,y,f)},function(y,f){return p=f,f})(c).subscribe(d),function(){p=null}})}},1333:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.take=void 0;var n=a(7406),h=a(9216),_=a(3173);o.take=function u(r){return r<=0?function(){return n.EMPTY}:h.operate(function(c,d){var p=0;c.subscribe(_.createOperatorSubscriber(d,function(y){++p<=r&&(d.next(y),r<=p&&d.complete())}))})}},3534:function(z,o,a){"use strict";var n=this&&this.__values||function(c){var d="function"==typeof Symbol&&Symbol.iterator,p=d&&c[d],y=0;if(p)return p.call(c);if(c&&"number"==typeof c.length)return{next:function(){return c&&y>=c.length&&(c=void 0),{value:c&&c[y++],done:!c}}};throw new TypeError(d?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(o,"__esModule",{value:!0}),o.takeLast=void 0;var h=a(7406),_=a(9216),u=a(3173);o.takeLast=function r(c){return c<=0?function(){return h.EMPTY}:_.operate(function(d,p){var y=[];d.subscribe(u.createOperatorSubscriber(p,function(f){y.push(f),c<y.length&&y.shift()},function(){var f,b;try{for(var v=n(y),m=v.next();!m.done;m=v.next())p.next(m.value)}catch(M){f={error:M}}finally{try{m&&!m.done&&(b=v.return)&&b.call(v)}finally{if(f)throw f.error}}p.complete()},void 0,function(){y=null}))})}},5716:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.takeUntil=void 0;var n=a(9216),h=a(3173),_=a(8767),u=a(31);o.takeUntil=function r(c){return n.operate(function(d,p){_.innerFrom(c).subscribe(h.createOperatorSubscriber(p,function(){return p.complete()},u.noop)),!p.closed&&d.subscribe(p)})}},9928:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.takeWhile=void 0;var n=a(9216),h=a(3173);o.takeWhile=function _(u,r){return void 0===r&&(r=!1),n.operate(function(c,d){var p=0;c.subscribe(h.createOperatorSubscriber(d,function(y){var f=u(y,p++);(f||r)&&d.next(y),!f&&d.complete()}))})}},6821:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.tap=void 0;var n=a(7104),h=a(9216),_=a(3173),u=a(7884);o.tap=function r(c,d,p){var y=n.isFunction(c)||d||p?{next:c,error:d,complete:p}:c;return y?h.operate(function(f,b){var v;null===(v=y.subscribe)||void 0===v||v.call(y);var m=!0;f.subscribe(_.createOperatorSubscriber(b,function(C){var M;null===(M=y.next)||void 0===M||M.call(y,C),b.next(C)},function(){var C;m=!1,null===(C=y.complete)||void 0===C||C.call(y),b.complete()},function(C){var M;m=!1,null===(M=y.error)||void 0===M||M.call(y,C),b.error(C)},function(){var C,M;m&&(null===(C=y.unsubscribe)||void 0===C||C.call(y)),null===(M=y.finalize)||void 0===M||M.call(y)}))}):u.identity}},4330:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.throttle=o.defaultThrottleConfig=void 0;var n=a(9216),h=a(3173),_=a(8767);o.defaultThrottleConfig={leading:!0,trailing:!1},o.throttle=function u(r,c){return void 0===c&&(c=o.defaultThrottleConfig),n.operate(function(d,p){var y=c.leading,f=c.trailing,b=!1,v=null,m=null,C=!1,M=function(){null==m||m.unsubscribe(),m=null,f&&(N(),C&&p.complete())},O=function(){m=null,C&&p.complete()},P=function(Y){return m=_.innerFrom(r(Y)).subscribe(h.createOperatorSubscriber(p,M,O))},N=function(){if(b){b=!1;var Y=v;v=null,p.next(Y),!C&&P(Y)}};d.subscribe(h.createOperatorSubscriber(p,function(Y){b=!0,v=Y,(!m||m.closed)&&(y?N():P(Y))},function(){C=!0,(!(f&&b&&m)||m.closed)&&p.complete()}))})}},4029:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.throttleTime=void 0;var n=a(4006),h=a(4330),_=a(3271);o.throttleTime=function u(r,c,d){void 0===c&&(c=n.asyncScheduler),void 0===d&&(d=h.defaultThrottleConfig);var p=_.timer(r,c);return h.throttle(function(){return p},d)}},9194:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.throwIfEmpty=void 0;var n=a(8915),h=a(9216),_=a(3173);function r(){return new n.EmptyError}o.throwIfEmpty=function u(c){return void 0===c&&(c=r),h.operate(function(d,p){var y=!1;d.subscribe(_.createOperatorSubscriber(p,function(f){y=!0,p.next(f)},function(){return y?p.complete():p.error(c())}))})}},5904:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.TimeInterval=o.timeInterval=void 0;var n=a(4006),h=a(9216),_=a(3173);o.timeInterval=function u(c){return void 0===c&&(c=n.asyncScheduler),h.operate(function(d,p){var y=c.now();d.subscribe(_.createOperatorSubscriber(p,function(f){var b=c.now(),v=b-y;y=b,p.next(new r(f,v))}))})};var r=function c(d,p){this.value=d,this.interval=p};o.TimeInterval=r},5001:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.timeout=o.TimeoutError=void 0;var n=a(4006),h=a(7323),_=a(9216),u=a(8767),r=a(9703),c=a(3173),d=a(2590);function y(f){throw new o.TimeoutError(f)}o.TimeoutError=r.createErrorClass(function(f){return function(v){void 0===v&&(v=null),f(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=v}}),o.timeout=function p(f,b){var v=h.isValidDate(f)?{first:f}:"number"==typeof f?{each:f}:f,m=v.first,C=v.each,M=v.with,O=void 0===M?y:M,P=v.scheduler,N=void 0===P?null!=b?b:n.asyncScheduler:P,Y=v.meta,U=void 0===Y?null:Y;if(null==m&&null==C)throw new TypeError("No timeout provided.");return _.operate(function(G,$){var J,te,he=null,Fe=0,it=function(be){te=d.executeSchedule($,N,function(){try{J.unsubscribe(),u.innerFrom(O({meta:U,lastValue:he,seen:Fe})).subscribe($)}catch(ke){$.error(ke)}},be)};J=G.subscribe(c.createOperatorSubscriber($,function(be){null==te||te.unsubscribe(),Fe++,$.next(he=be),C>0&&it(C)},void 0,void 0,function(){null!=te&&te.closed||null==te||te.unsubscribe(),he=null})),!Fe&&it(null!=m?"number"==typeof m?m:+m-N.now():C)})}},8308:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.timeoutWith=void 0;var n=a(4006),h=a(7323),_=a(5001);o.timeoutWith=function u(r,c,d){var p,y,f;if(d=null!=d?d:n.async,h.isValidDate(r)?p=r:"number"==typeof r&&(y=r),!c)throw new TypeError("No observable provided to switch to");if(f=function(){return c},null==p&&null==y)throw new TypeError("No timeout provided.");return _.timeout({first:p,each:y,scheduler:d,with:f})}},250:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.timestamp=void 0;var n=a(8354),h=a(752);o.timestamp=function _(u){return void 0===u&&(u=n.dateTimestampProvider),h.map(function(r){return{value:r,timestamp:u.now()}})}},2976:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.toArray=void 0;var n=a(8587),h=a(9216),_=function(r,c){return r.push(c),r};o.toArray=function u(){return h.operate(function(r,c){n.reduce(_,[])(r).subscribe(c)})}},9374:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.window=void 0;var n=a(3768),h=a(9216),_=a(3173),u=a(31);o.window=function r(c){return h.operate(function(d,p){var y=new n.Subject;p.next(y.asObservable());var f=function(b){y.error(b),p.error(b)};return d.subscribe(_.createOperatorSubscriber(p,function(b){return null==y?void 0:y.next(b)},function(){y.complete(),p.complete()},f)),c.subscribe(_.createOperatorSubscriber(p,function(){y.complete(),p.next(y=new n.Subject)},u.noop,f)),function(){null==y||y.unsubscribe(),y=null}})}},8427:function(z,o,a){"use strict";var n=this&&this.__values||function(c){var d="function"==typeof Symbol&&Symbol.iterator,p=d&&c[d],y=0;if(p)return p.call(c);if(c&&"number"==typeof c.length)return{next:function(){return c&&y>=c.length&&(c=void 0),{value:c&&c[y++],done:!c}}};throw new TypeError(d?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(o,"__esModule",{value:!0}),o.windowCount=void 0;var h=a(3768),_=a(9216),u=a(3173);o.windowCount=function r(c,d){void 0===d&&(d=0);var p=d>0?d:c;return _.operate(function(y,f){var b=[new h.Subject],m=0;f.next(b[0].asObservable()),y.subscribe(u.createOperatorSubscriber(f,function(C){var M,O;try{for(var P=n(b),N=P.next();!N.done;N=P.next())N.value.next(C)}catch($){M={error:$}}finally{try{N&&!N.done&&(O=P.return)&&O.call(P)}finally{if(M)throw M.error}}var U=m-c+1;if(U>=0&&U%p==0&&b.shift().complete(),++m%p==0){var G=new h.Subject;b.push(G),f.next(G.asObservable())}},function(){for(;b.length>0;)b.shift().complete();f.complete()},function(C){for(;b.length>0;)b.shift().error(C);f.error(C)},function(){b=null}))})}},2358:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.windowTime=void 0;var n=a(3768),h=a(4006),_=a(6448),u=a(9216),r=a(3173),c=a(5137),d=a(1642),p=a(2590);o.windowTime=function y(f){for(var b,v,m=[],C=1;C<arguments.length;C++)m[C-1]=arguments[C];var M=null!==(b=d.popScheduler(m))&&void 0!==b?b:h.asyncScheduler,O=null!==(v=m[0])&&void 0!==v?v:null,P=m[1]||1/0;return u.operate(function(N,Y){var U=[],G=!1,$=function(Fe){var be=Fe.subs;Fe.window.complete(),be.unsubscribe(),c.arrRemove(U,Fe),G&&J()},J=function(){if(U){var Fe=new _.Subscription;Y.add(Fe);var it=new n.Subject,be={window:it,subs:Fe,seen:0};U.push(be),Y.next(it.asObservable()),p.executeSchedule(Fe,M,function(){return $(be)},f)}};null!==O&&O>=0?p.executeSchedule(Y,M,J,O,!0):G=!0,J();var te=function(Fe){return U.slice().forEach(Fe)},he=function(Fe){te(function(it){return Fe(it.window)}),Fe(Y),Y.unsubscribe()};return N.subscribe(r.createOperatorSubscriber(Y,function(Fe){te(function(it){it.window.next(Fe),P<=++it.seen&&$(it)})},function(){return he(function(Fe){return Fe.complete()})},function(Fe){return he(function(it){return it.error(Fe)})})),function(){U=null}})}},6464:function(z,o,a){"use strict";var n=this&&this.__values||function(f){var b="function"==typeof Symbol&&Symbol.iterator,v=b&&f[b],m=0;if(v)return v.call(f);if(f&&"number"==typeof f.length)return{next:function(){return f&&m>=f.length&&(f=void 0),{value:f&&f[m++],done:!f}}};throw new TypeError(b?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(o,"__esModule",{value:!0}),o.windowToggle=void 0;var h=a(3768),_=a(6448),u=a(9216),r=a(8767),c=a(3173),d=a(31),p=a(5137);o.windowToggle=function y(f,b){return u.operate(function(v,m){var C=[],M=function(O){for(;0<C.length;)C.shift().error(O);m.error(O)};r.innerFrom(f).subscribe(c.createOperatorSubscriber(m,function(O){var P=new h.Subject;C.push(P);var U,N=new _.Subscription;try{U=r.innerFrom(b(O))}catch(G){return void M(G)}m.next(P.asObservable()),N.add(U.subscribe(c.createOperatorSubscriber(m,function(){p.arrRemove(C,P),P.complete(),N.unsubscribe()},d.noop,M)))},d.noop)),v.subscribe(c.createOperatorSubscriber(m,function(O){var P,N,Y=C.slice();try{for(var U=n(Y),G=U.next();!G.done;G=U.next())G.value.next(O)}catch(J){P={error:J}}finally{try{G&&!G.done&&(N=U.return)&&N.call(U)}finally{if(P)throw P.error}}},function(){for(;0<C.length;)C.shift().complete();m.complete()},M,function(){for(;0<C.length;)C.shift().unsubscribe()}))})}},5424:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.windowWhen=void 0;var n=a(3768),h=a(9216),_=a(3173),u=a(8767);o.windowWhen=function r(c){return h.operate(function(d,p){var y,f,b=function(m){y.error(m),p.error(m)},v=function(){var m;null==f||f.unsubscribe(),null==y||y.complete(),y=new n.Subject,p.next(y.asObservable());try{m=u.innerFrom(c())}catch(C){return void b(C)}m.subscribe(f=_.createOperatorSubscriber(p,v,v,b))};v(),d.subscribe(_.createOperatorSubscriber(p,function(m){return y.next(m)},function(){y.complete(),p.complete()},b,function(){null==f||f.unsubscribe(),y=null}))})}},135:function(z,o,a){"use strict";var n=this&&this.__read||function(f,b){var v="function"==typeof Symbol&&f[Symbol.iterator];if(!v)return f;var C,O,m=v.call(f),M=[];try{for(;(void 0===b||b-- >0)&&!(C=m.next()).done;)M.push(C.value)}catch(P){O={error:P}}finally{try{C&&!C.done&&(v=m.return)&&v.call(m)}finally{if(O)throw O.error}}return M},h=this&&this.__spreadArray||function(f,b){for(var v=0,m=b.length,C=f.length;v<m;v++,C++)f[C]=b[v];return f};Object.defineProperty(o,"__esModule",{value:!0}),o.withLatestFrom=void 0;var _=a(9216),u=a(3173),r=a(8767),c=a(7884),d=a(31),p=a(1642);o.withLatestFrom=function y(){for(var f=[],b=0;b<arguments.length;b++)f[b]=arguments[b];var v=p.popResultSelector(f);return _.operate(function(m,C){for(var M=f.length,O=new Array(M),P=f.map(function(){return!1}),N=!1,Y=function(G){r.innerFrom(f[G]).subscribe(u.createOperatorSubscriber(C,function($){O[G]=$,!N&&!P[G]&&(P[G]=!0,(N=P.every(c.identity))&&(P=null))},d.noop))},U=0;U<M;U++)Y(U);m.subscribe(u.createOperatorSubscriber(C,function(G){if(N){var $=h([G],n(O));C.next(v?v.apply(void 0,h([],n($))):$)}}))})}},5573:function(z,o,a){"use strict";var n=this&&this.__read||function(c,d){var p="function"==typeof Symbol&&c[Symbol.iterator];if(!p)return c;var f,v,y=p.call(c),b=[];try{for(;(void 0===d||d-- >0)&&!(f=y.next()).done;)b.push(f.value)}catch(m){v={error:m}}finally{try{f&&!f.done&&(p=y.return)&&p.call(y)}finally{if(v)throw v.error}}return b},h=this&&this.__spreadArray||function(c,d){for(var p=0,y=d.length,f=c.length;p<y;p++,f++)c[f]=d[p];return c};Object.defineProperty(o,"__esModule",{value:!0}),o.zip=void 0;var _=a(4842),u=a(9216);o.zip=function r(){for(var c=[],d=0;d<arguments.length;d++)c[d]=arguments[d];return u.operate(function(p,y){_.zip.apply(void 0,h([p],n(c))).subscribe(y)})}},8101:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.zipAll=void 0;var n=a(4842),h=a(1277);o.zipAll=function _(u){return h.joinAllInternals(n.zip,u)}},9411:function(z,o,a){"use strict";var n=this&&this.__read||function(r,c){var d="function"==typeof Symbol&&r[Symbol.iterator];if(!d)return r;var y,b,p=d.call(r),f=[];try{for(;(void 0===c||c-- >0)&&!(y=p.next()).done;)f.push(y.value)}catch(v){b={error:v}}finally{try{y&&!y.done&&(d=p.return)&&d.call(p)}finally{if(b)throw b.error}}return f},h=this&&this.__spreadArray||function(r,c){for(var d=0,p=c.length,y=r.length;d<p;d++,y++)r[y]=c[d];return r};Object.defineProperty(o,"__esModule",{value:!0}),o.zipWith=void 0;var _=a(5573);o.zipWith=function u(){for(var r=[],c=0;c<arguments.length;c++)r[c]=arguments[c];return _.zip.apply(void 0,h([],n(r)))}},9611:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.scheduleArray=void 0;var n=a(5821);o.scheduleArray=function h(_,u){return new n.Observable(function(r){var c=0;return u.schedule(function(){c===_.length?r.complete():(r.next(_[c++]),r.closed||this.schedule())})})}},3009:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.scheduleAsyncIterable=void 0;var n=a(5821),h=a(2590);o.scheduleAsyncIterable=function _(u,r){if(!u)throw new Error("Iterable cannot be null");return new n.Observable(function(c){h.executeSchedule(c,r,function(){var d=u[Symbol.asyncIterator]();h.executeSchedule(c,r,function(){d.next().then(function(p){p.done?c.complete():c.next(p.value)})},0,!0)})})}},9049:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.scheduleIterable=void 0;var n=a(5821),h=a(4260),_=a(7104),u=a(2590);o.scheduleIterable=function r(c,d){return new n.Observable(function(p){var y;return u.executeSchedule(p,d,function(){y=c[h.iterator](),u.executeSchedule(p,d,function(){var f,b,v;try{b=(f=y.next()).value,v=f.done}catch(m){return void p.error(m)}v?p.complete():p.next(b)},0,!0)}),function(){return _.isFunction(null==y?void 0:y.return)&&y.return()}})}},7767:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.scheduleObservable=void 0;var n=a(8767),h=a(4928),_=a(1698);o.scheduleObservable=function u(r,c){return n.innerFrom(r).pipe(_.subscribeOn(c),h.observeOn(c))}},2247:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.schedulePromise=void 0;var n=a(8767),h=a(4928),_=a(1698);o.schedulePromise=function u(r,c){return n.innerFrom(r).pipe(_.subscribeOn(c),h.observeOn(c))}},3958:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.scheduleReadableStreamLike=void 0;var n=a(3009),h=a(7128);o.scheduleReadableStreamLike=function _(u,r){return n.scheduleAsyncIterable(h.readableStreamLikeToAsyncGenerator(u),r)}},9341:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.scheduled=void 0;var n=a(7767),h=a(2247),_=a(9611),u=a(9049),r=a(3009),c=a(7454),d=a(5050),p=a(697),y=a(5431),f=a(6175),b=a(6870),v=a(7128),m=a(3958);o.scheduled=function C(M,O){if(null!=M){if(c.isInteropObservable(M))return n.scheduleObservable(M,O);if(p.isArrayLike(M))return _.scheduleArray(M,O);if(d.isPromise(M))return h.schedulePromise(M,O);if(f.isAsyncIterable(M))return r.scheduleAsyncIterable(M,O);if(y.isIterable(M))return u.scheduleIterable(M,O);if(v.isReadableStreamLike(M))return m.scheduleReadableStreamLike(M,O)}throw b.createInvalidObservableTypeError(M)}},1394:function(z,o,a){"use strict";var u,n=this&&this.__extends||(u=function(r,c){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,p){d.__proto__=p}||function(d,p){for(var y in p)Object.prototype.hasOwnProperty.call(p,y)&&(d[y]=p[y])})(r,c)},function(r,c){if("function"!=typeof c&&null!==c)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function d(){this.constructor=r}u(r,c),r.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)});Object.defineProperty(o,"__esModule",{value:!0}),o.Action=void 0;var _=function(u){function r(c,d){return u.call(this)||this}return n(r,u),r.prototype.schedule=function(c,d){return void 0===d&&(d=0),this},r}(a(6448).Subscription);o.Action=_},275:function(z,o,a){"use strict";var r,n=this&&this.__extends||(r=function(c,d){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,y){p.__proto__=y}||function(p,y){for(var f in y)Object.prototype.hasOwnProperty.call(y,f)&&(p[f]=y[f])})(c,d)},function(c,d){if("function"!=typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function p(){this.constructor=c}r(c,d),c.prototype=null===d?Object.create(d):(p.prototype=d.prototype,new p)});Object.defineProperty(o,"__esModule",{value:!0}),o.AnimationFrameAction=void 0;var h=a(4723),_=a(6343),u=function(r){function c(d,p){var y=r.call(this,d,p)||this;return y.scheduler=d,y.work=p,y}return n(c,r),c.prototype.requestAsyncId=function(d,p,y){return void 0===y&&(y=0),null!==y&&y>0?r.prototype.requestAsyncId.call(this,d,p,y):(d.actions.push(this),d._scheduled||(d._scheduled=_.animationFrameProvider.requestAnimationFrame(function(){return d.flush(void 0)})))},c.prototype.recycleAsyncId=function(d,p,y){var f;if(void 0===y&&(y=0),null!=y?y>0:this.delay>0)return r.prototype.recycleAsyncId.call(this,d,p,y);var b=d.actions;null!=p&&(null===(f=b[b.length-1])||void 0===f?void 0:f.id)!==p&&(_.animationFrameProvider.cancelAnimationFrame(p),d._scheduled=void 0)},c}(h.AsyncAction);o.AnimationFrameAction=u},3625:function(z,o,a){"use strict";var u,n=this&&this.__extends||(u=function(r,c){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,p){d.__proto__=p}||function(d,p){for(var y in p)Object.prototype.hasOwnProperty.call(p,y)&&(d[y]=p[y])})(r,c)},function(r,c){if("function"!=typeof c&&null!==c)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function d(){this.constructor=r}u(r,c),r.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)});Object.defineProperty(o,"__esModule",{value:!0}),o.AnimationFrameScheduler=void 0;var _=function(u){function r(){return null!==u&&u.apply(this,arguments)||this}return n(r,u),r.prototype.flush=function(c){this._active=!0;var d=this._scheduled;this._scheduled=void 0;var y,p=this.actions;c=c||p.shift();do{if(y=c.execute(c.state,c.delay))break}while((c=p[0])&&c.id===d&&p.shift());if(this._active=!1,y){for(;(c=p[0])&&c.id===d&&p.shift();)c.unsubscribe();throw y}},r}(a(6216).AsyncScheduler);o.AnimationFrameScheduler=_},7046:function(z,o,a){"use strict";var r,n=this&&this.__extends||(r=function(c,d){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,y){p.__proto__=y}||function(p,y){for(var f in y)Object.prototype.hasOwnProperty.call(y,f)&&(p[f]=y[f])})(c,d)},function(c,d){if("function"!=typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function p(){this.constructor=c}r(c,d),c.prototype=null===d?Object.create(d):(p.prototype=d.prototype,new p)});Object.defineProperty(o,"__esModule",{value:!0}),o.AsapAction=void 0;var h=a(4723),_=a(7766),u=function(r){function c(d,p){var y=r.call(this,d,p)||this;return y.scheduler=d,y.work=p,y}return n(c,r),c.prototype.requestAsyncId=function(d,p,y){return void 0===y&&(y=0),null!==y&&y>0?r.prototype.requestAsyncId.call(this,d,p,y):(d.actions.push(this),d._scheduled||(d._scheduled=_.immediateProvider.setImmediate(d.flush.bind(d,void 0))))},c.prototype.recycleAsyncId=function(d,p,y){var f;if(void 0===y&&(y=0),null!=y?y>0:this.delay>0)return r.prototype.recycleAsyncId.call(this,d,p,y);var b=d.actions;null!=p&&(null===(f=b[b.length-1])||void 0===f?void 0:f.id)!==p&&(_.immediateProvider.clearImmediate(p),d._scheduled=void 0)},c}(h.AsyncAction);o.AsapAction=u},3706:function(z,o,a){"use strict";var u,n=this&&this.__extends||(u=function(r,c){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,p){d.__proto__=p}||function(d,p){for(var y in p)Object.prototype.hasOwnProperty.call(p,y)&&(d[y]=p[y])})(r,c)},function(r,c){if("function"!=typeof c&&null!==c)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function d(){this.constructor=r}u(r,c),r.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)});Object.defineProperty(o,"__esModule",{value:!0}),o.AsapScheduler=void 0;var _=function(u){function r(){return null!==u&&u.apply(this,arguments)||this}return n(r,u),r.prototype.flush=function(c){this._active=!0;var d=this._scheduled;this._scheduled=void 0;var y,p=this.actions;c=c||p.shift();do{if(y=c.execute(c.state,c.delay))break}while((c=p[0])&&c.id===d&&p.shift());if(this._active=!1,y){for(;(c=p[0])&&c.id===d&&p.shift();)c.unsubscribe();throw y}},r}(a(6216).AsyncScheduler);o.AsapScheduler=_},4723:function(z,o,a){"use strict";var c,n=this&&this.__extends||(c=function(d,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,f){y.__proto__=f}||function(y,f){for(var b in f)Object.prototype.hasOwnProperty.call(f,b)&&(y[b]=f[b])})(d,p)},function(d,p){if("function"!=typeof p&&null!==p)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");function y(){this.constructor=d}c(d,p),d.prototype=null===p?Object.create(p):(y.prototype=p.prototype,new y)});Object.defineProperty(o,"__esModule",{value:!0}),o.AsyncAction=void 0;var h=a(1394),_=a(2444),u=a(5137),r=function(c){function d(p,y){var f=c.call(this,p,y)||this;return f.scheduler=p,f.work=y,f.pending=!1,f}return n(d,c),d.prototype.schedule=function(p,y){var f;if(void 0===y&&(y=0),this.closed)return this;this.state=p;var b=this.id,v=this.scheduler;return null!=b&&(this.id=this.recycleAsyncId(v,b,y)),this.pending=!0,this.delay=y,this.id=null!==(f=this.id)&&void 0!==f?f:this.requestAsyncId(v,this.id,y),this},d.prototype.requestAsyncId=function(p,y,f){return void 0===f&&(f=0),_.intervalProvider.setInterval(p.flush.bind(p,this),f)},d.prototype.recycleAsyncId=function(p,y,f){if(void 0===f&&(f=0),null!=f&&this.delay===f&&!1===this.pending)return y;null!=y&&_.intervalProvider.clearInterval(y)},d.prototype.execute=function(p,y){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var f=this._execute(p,y);if(f)return f;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},d.prototype._execute=function(p,y){var b,f=!1;try{this.work(p)}catch(v){f=!0,b=v||new Error("Scheduled action threw falsy error")}if(f)return this.unsubscribe(),b},d.prototype.unsubscribe=function(){if(!this.closed){var y=this.id,f=this.scheduler,b=f.actions;this.work=this.state=this.scheduler=null,this.pending=!1,u.arrRemove(b,this),null!=y&&(this.id=this.recycleAsyncId(f,y,null)),this.delay=null,c.prototype.unsubscribe.call(this)}},d}(h.Action);o.AsyncAction=r},6216:function(z,o,a){"use strict";var u,n=this&&this.__extends||(u=function(r,c){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,p){d.__proto__=p}||function(d,p){for(var y in p)Object.prototype.hasOwnProperty.call(p,y)&&(d[y]=p[y])})(r,c)},function(r,c){if("function"!=typeof c&&null!==c)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function d(){this.constructor=r}u(r,c),r.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)});Object.defineProperty(o,"__esModule",{value:!0}),o.AsyncScheduler=void 0;var h=a(2716),_=function(u){function r(c,d){void 0===d&&(d=h.Scheduler.now);var p=u.call(this,c,d)||this;return p.actions=[],p._active=!1,p}return n(r,u),r.prototype.flush=function(c){var d=this.actions;if(this._active)d.push(c);else{var p;this._active=!0;do{if(p=c.execute(c.state,c.delay))break}while(c=d.shift());if(this._active=!1,p){for(;c=d.shift();)c.unsubscribe();throw p}}},r}(h.Scheduler);o.AsyncScheduler=_},4954:function(z,o,a){"use strict";var u,n=this&&this.__extends||(u=function(r,c){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,p){d.__proto__=p}||function(d,p){for(var y in p)Object.prototype.hasOwnProperty.call(p,y)&&(d[y]=p[y])})(r,c)},function(r,c){if("function"!=typeof c&&null!==c)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function d(){this.constructor=r}u(r,c),r.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)});Object.defineProperty(o,"__esModule",{value:!0}),o.QueueAction=void 0;var _=function(u){function r(c,d){var p=u.call(this,c,d)||this;return p.scheduler=c,p.work=d,p}return n(r,u),r.prototype.schedule=function(c,d){return void 0===d&&(d=0),d>0?u.prototype.schedule.call(this,c,d):(this.delay=d,this.state=c,this.scheduler.flush(this),this)},r.prototype.execute=function(c,d){return d>0||this.closed?u.prototype.execute.call(this,c,d):this._execute(c,d)},r.prototype.requestAsyncId=function(c,d,p){return void 0===p&&(p=0),null!=p&&p>0||null==p&&this.delay>0?u.prototype.requestAsyncId.call(this,c,d,p):(c.flush(this),0)},r}(a(4723).AsyncAction);o.QueueAction=_},345:function(z,o,a){"use strict";var u,n=this&&this.__extends||(u=function(r,c){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,p){d.__proto__=p}||function(d,p){for(var y in p)Object.prototype.hasOwnProperty.call(p,y)&&(d[y]=p[y])})(r,c)},function(r,c){if("function"!=typeof c&&null!==c)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function d(){this.constructor=r}u(r,c),r.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)});Object.defineProperty(o,"__esModule",{value:!0}),o.QueueScheduler=void 0;var _=function(u){function r(){return null!==u&&u.apply(this,arguments)||this}return n(r,u),r}(a(6216).AsyncScheduler);o.QueueScheduler=_},2018:function(z,o,a){"use strict";var d,n=this&&this.__extends||(d=function(p,y){return(d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,b){f.__proto__=b}||function(f,b){for(var v in b)Object.prototype.hasOwnProperty.call(b,v)&&(f[v]=b[v])})(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 f(){this.constructor=p}d(p,y),p.prototype=null===y?Object.create(y):(f.prototype=y.prototype,new f)});Object.defineProperty(o,"__esModule",{value:!0}),o.VirtualAction=o.VirtualTimeScheduler=void 0;var h=a(4723),_=a(6448),r=function(d){function p(y,f){void 0===y&&(y=c),void 0===f&&(f=1/0);var b=d.call(this,y,function(){return b.frame})||this;return b.maxFrames=f,b.frame=0,b.index=-1,b}return n(p,d),p.prototype.flush=function(){for(var v,m,f=this.actions,b=this.maxFrames;(m=f[0])&&m.delay<=b&&(f.shift(),this.frame=m.delay,!(v=m.execute(m.state,m.delay))););if(v){for(;m=f.shift();)m.unsubscribe();throw v}},p.frameTimeFactor=10,p}(a(6216).AsyncScheduler);o.VirtualTimeScheduler=r;var c=function(d){function p(y,f,b){void 0===b&&(b=y.index+=1);var v=d.call(this,y,f)||this;return v.scheduler=y,v.work=f,v.index=b,v.active=!0,v.index=y.index=b,v}return n(p,d),p.prototype.schedule=function(y,f){if(void 0===f&&(f=0),Number.isFinite(f)){if(!this.id)return d.prototype.schedule.call(this,y,f);this.active=!1;var b=new p(this.scheduler,this.work);return this.add(b),b.schedule(y,f)}return _.Subscription.EMPTY},p.prototype.requestAsyncId=function(y,f,b){void 0===b&&(b=0),this.delay=y.frame+b;var v=y.actions;return v.push(this),v.sort(p.sortActions),1},p.prototype.recycleAsyncId=function(y,f,b){void 0===b&&(b=0)},p.prototype._execute=function(y,f){if(!0===this.active)return d.prototype._execute.call(this,y,f)},p.sortActions=function(y,f){return y.delay===f.delay?y.index===f.index?0:y.index>f.index?1:-1:y.delay>f.delay?1:-1},p}(h.AsyncAction);o.VirtualAction=c},1906:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.animationFrame=o.animationFrameScheduler=void 0;var n=a(275),h=a(3625);o.animationFrameScheduler=new h.AnimationFrameScheduler(n.AnimationFrameAction),o.animationFrame=o.animationFrameScheduler},6343:function(z,o,a){"use strict";var n=this&&this.__read||function(u,r){var c="function"==typeof Symbol&&u[Symbol.iterator];if(!c)return u;var p,f,d=c.call(u),y=[];try{for(;(void 0===r||r-- >0)&&!(p=d.next()).done;)y.push(p.value)}catch(b){f={error:b}}finally{try{p&&!p.done&&(c=d.return)&&c.call(d)}finally{if(f)throw f.error}}return y},h=this&&this.__spreadArray||function(u,r){for(var c=0,d=r.length,p=u.length;c<d;c++,p++)u[p]=r[c];return u};Object.defineProperty(o,"__esModule",{value:!0}),o.animationFrameProvider=void 0;var _=a(6448);o.animationFrameProvider={schedule:function(u){var r=requestAnimationFrame,c=cancelAnimationFrame,d=o.animationFrameProvider.delegate;d&&(r=d.requestAnimationFrame,c=d.cancelAnimationFrame);var p=r(function(y){c=void 0,u(y)});return new _.Subscription(function(){return null==c?void 0:c(p)})},requestAnimationFrame:function(){for(var u=[],r=0;r<arguments.length;r++)u[r]=arguments[r];var c=o.animationFrameProvider.delegate;return((null==c?void 0:c.requestAnimationFrame)||requestAnimationFrame).apply(void 0,h([],n(u)))},cancelAnimationFrame:function(){for(var u=[],r=0;r<arguments.length;r++)u[r]=arguments[r];var c=o.animationFrameProvider.delegate;return((null==c?void 0:c.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,h([],n(u)))},delegate:void 0}},1212:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.asap=o.asapScheduler=void 0;var n=a(7046),h=a(3706);o.asapScheduler=new h.AsapScheduler(n.AsapAction),o.asap=o.asapScheduler},4006:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.async=o.asyncScheduler=void 0;var n=a(4723),h=a(6216);o.asyncScheduler=new h.AsyncScheduler(n.AsyncAction),o.async=o.asyncScheduler},8354:(z,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.dateTimestampProvider=void 0,o.dateTimestampProvider={now:function(){return(o.dateTimestampProvider.delegate||Date).now()},delegate:void 0}},7766:function(z,o,a){"use strict";var n=this&&this.__read||function(c,d){var p="function"==typeof Symbol&&c[Symbol.iterator];if(!p)return c;var f,v,y=p.call(c),b=[];try{for(;(void 0===d||d-- >0)&&!(f=y.next()).done;)b.push(f.value)}catch(m){v={error:m}}finally{try{f&&!f.done&&(p=y.return)&&p.call(y)}finally{if(v)throw v.error}}return b},h=this&&this.__spreadArray||function(c,d){for(var p=0,y=d.length,f=c.length;p<y;p++,f++)c[f]=d[p];return c};Object.defineProperty(o,"__esModule",{value:!0}),o.immediateProvider=void 0;var _=a(349),u=_.Immediate.setImmediate,r=_.Immediate.clearImmediate;o.immediateProvider={setImmediate:function(){for(var c=[],d=0;d<arguments.length;d++)c[d]=arguments[d];var p=o.immediateProvider.delegate;return((null==p?void 0:p.setImmediate)||u).apply(void 0,h([],n(c)))},clearImmediate:function(c){var d=o.immediateProvider.delegate;return((null==d?void 0:d.clearImmediate)||r)(c)},delegate:void 0}},2444:function(z,o){"use strict";var a=this&&this.__read||function(h,_){var u="function"==typeof Symbol&&h[Symbol.iterator];if(!u)return h;var c,p,r=u.call(h),d=[];try{for(;(void 0===_||_-- >0)&&!(c=r.next()).done;)d.push(c.value)}catch(y){p={error:y}}finally{try{c&&!c.done&&(u=r.return)&&u.call(r)}finally{if(p)throw p.error}}return d},n=this&&this.__spreadArray||function(h,_){for(var u=0,r=_.length,c=h.length;u<r;u++,c++)h[c]=_[u];return h};Object.defineProperty(o,"__esModule",{value:!0}),o.intervalProvider=void 0,o.intervalProvider={setInterval:function(h,_){for(var u=[],r=2;r<arguments.length;r++)u[r-2]=arguments[r];var c=o.intervalProvider.delegate;return null!=c&&c.setInterval?c.setInterval.apply(c,n([h,_],a(u))):setInterval.apply(void 0,n([h,_],a(u)))},clearInterval:function(h){var _=o.intervalProvider.delegate;return((null==_?void 0:_.clearInterval)||clearInterval)(h)},delegate:void 0}},1038:(z,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.performanceTimestampProvider=void 0,o.performanceTimestampProvider={now:function(){return(o.performanceTimestampProvider.delegate||performance).now()},delegate:void 0}},5668:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.queue=o.queueScheduler=void 0;var n=a(4954),h=a(345);o.queueScheduler=new h.QueueScheduler(n.QueueAction),o.queue=o.queueScheduler},3914:function(z,o){"use strict";var a=this&&this.__read||function(h,_){var u="function"==typeof Symbol&&h[Symbol.iterator];if(!u)return h;var c,p,r=u.call(h),d=[];try{for(;(void 0===_||_-- >0)&&!(c=r.next()).done;)d.push(c.value)}catch(y){p={error:y}}finally{try{c&&!c.done&&(u=r.return)&&u.call(r)}finally{if(p)throw p.error}}return d},n=this&&this.__spreadArray||function(h,_){for(var u=0,r=_.length,c=h.length;u<r;u++,c++)h[c]=_[u];return h};Object.defineProperty(o,"__esModule",{value:!0}),o.timeoutProvider=void 0,o.timeoutProvider={setTimeout:function(h,_){for(var u=[],r=2;r<arguments.length;r++)u[r-2]=arguments[r];var c=o.timeoutProvider.delegate;return null!=c&&c.setTimeout?c.setTimeout.apply(c,n([h,_],a(u))):setTimeout.apply(void 0,n([h,_],a(u)))},clearTimeout:function(h){var _=o.timeoutProvider.delegate;return((null==_?void 0:_.clearTimeout)||clearTimeout)(h)},delegate:void 0}},4260:(z,o)=>{"use strict";function a(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}Object.defineProperty(o,"__esModule",{value:!0}),o.iterator=o.getSymbolIterator=void 0,o.getSymbolIterator=a,o.iterator=a()},1689:(z,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.observable=void 0,o.observable="function"==typeof Symbol&&Symbol.observable||"@@observable"},5256:(z,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0})},4769:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.ArgumentOutOfRangeError=void 0;var n=a(9703);o.ArgumentOutOfRangeError=n.createErrorClass(function(h){return function(){h(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}})},8915:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.EmptyError=void 0;var n=a(9703);o.EmptyError=n.createErrorClass(function(h){return function(){h(this),this.name="EmptyError",this.message="no elements in sequence"}})},349:(z,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.TestTools=o.Immediate=void 0;var n,a=1,h={};function _(u){return u in h&&(delete h[u],!0)}o.Immediate={setImmediate:function(u){var r=a++;return h[r]=!0,n||(n=Promise.resolve()),n.then(function(){return _(r)&&u()}),r},clearImmediate:function(u){_(u)}},o.TestTools={pending:function(){return Object.keys(h).length}}},5477:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.NotFoundError=void 0;var n=a(9703);o.NotFoundError=n.createErrorClass(function(h){return function(u){h(this),this.name="NotFoundError",this.message=u}})},3965:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.ObjectUnsubscribedError=void 0;var n=a(9703);o.ObjectUnsubscribedError=n.createErrorClass(function(h){return function(){h(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})},1551:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.SequenceError=void 0;var n=a(9703);o.SequenceError=n.createErrorClass(function(h){return function(u){h(this),this.name="SequenceError",this.message=u}})},4970:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.UnsubscriptionError=void 0;var n=a(9703);o.UnsubscriptionError=n.createErrorClass(function(h){return function(u){h(this),this.message=u?u.length+" errors occurred during unsubscription:\n"+u.map(function(r,c){return c+1+") "+r.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=u}})},1642:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.popNumber=o.popScheduler=o.popResultSelector=void 0;var n=a(7104),h=a(1875);function _(d){return d[d.length-1]}o.popResultSelector=function u(d){return n.isFunction(_(d))?d.pop():void 0},o.popScheduler=function r(d){return h.isScheduler(_(d))?d.pop():void 0},o.popNumber=function c(d,p){return"number"==typeof _(d)?d.pop():p}},9923:(z,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.argsArgArrayOrObject=void 0;var a=Array.isArray,n=Object.getPrototypeOf,h=Object.prototype,_=Object.keys;o.argsArgArrayOrObject=function u(c){if(1===c.length){var d=c[0];if(a(d))return{args:d,keys:null};if(function r(c){return c&&"object"==typeof c&&n(c)===h}(d)){var p=_(d);return{args:p.map(function(y){return d[y]}),keys:p}}}return{args:c,keys:null}}},3531:(z,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.argsOrArgArray=void 0;var a=Array.isArray;o.argsOrArgArray=function n(h){return 1===h.length&&a(h[0])?h[0]:h}},5137:(z,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.arrRemove=void 0,o.arrRemove=function a(n,h){if(n){var _=n.indexOf(h);0<=_&&n.splice(_,1)}}},9703:(z,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.createErrorClass=void 0,o.createErrorClass=function a(n){var _=n(function(u){Error.call(u),u.stack=(new Error).stack});return _.prototype=Object.create(Error.prototype),_.prototype.constructor=_,_}},7598:(z,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.createObject=void 0,o.createObject=function a(n,h){return n.reduce(function(_,u,r){return _[u]=h[r],_},{})}},5808:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.captureError=o.errorContext=void 0;var n=a(3570),h=null;o.errorContext=function _(r){if(n.config.useDeprecatedSynchronousErrorHandling){var c=!h;if(c&&(h={errorThrown:!1,error:null}),r(),c){var d=h;if(h=null,d.errorThrown)throw d.error}}else r()},o.captureError=function u(r){n.config.useDeprecatedSynchronousErrorHandling&&h&&(h.errorThrown=!0,h.error=r)}},2590:(z,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.executeSchedule=void 0,o.executeSchedule=function a(n,h,_,u,r){void 0===u&&(u=0),void 0===r&&(r=!1);var c=h.schedule(function(){_(),r?n.add(this.schedule(null,u)):this.unsubscribe()},u);if(n.add(c),!r)return c}},7884:(z,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.identity=void 0,o.identity=function a(n){return n}},697:(z,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.isArrayLike=void 0,o.isArrayLike=function(a){return a&&"number"==typeof a.length&&"function"!=typeof a}},6175:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.isAsyncIterable=void 0;var n=a(7104);o.isAsyncIterable=function h(_){return Symbol.asyncIterator&&n.isFunction(null==_?void 0:_[Symbol.asyncIterator])}},7323:(z,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.isValidDate=void 0,o.isValidDate=function a(n){return n instanceof Date&&!isNaN(n)}},7104:(z,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.isFunction=void 0,o.isFunction=function a(n){return"function"==typeof n}},7454:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.isInteropObservable=void 0;var n=a(1689),h=a(7104);o.isInteropObservable=function _(u){return h.isFunction(u[n.observable])}},5431:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.isIterable=void 0;var n=a(4260),h=a(7104);o.isIterable=function _(u){return h.isFunction(null==u?void 0:u[n.iterator])}},4341:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.isObservable=void 0;var n=a(5821),h=a(7104);o.isObservable=function _(u){return!!u&&(u instanceof n.Observable||h.isFunction(u.lift)&&h.isFunction(u.subscribe))}},5050:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.isPromise=void 0;var n=a(7104);o.isPromise=function h(_){return n.isFunction(null==_?void 0:_.then)}},7128:function(z,o,a){"use strict";var n=this&&this.__generator||function(d,p){var f,b,v,m,y={label:0,sent:function(){if(1&v[0])throw v[1];return v[1]},trys:[],ops:[]};return m={next:C(0),throw:C(1),return:C(2)},"function"==typeof Symbol&&(m[Symbol.iterator]=function(){return this}),m;function C(O){return function(P){return function M(O){if(f)throw new TypeError("Generator is already executing.");for(;y;)try{if(f=1,b&&(v=2&O[0]?b.return:O[0]?b.throw||((v=b.return)&&v.call(b),0):b.next)&&!(v=v.call(b,O[1])).done)return v;switch(b=0,v&&(O=[2&O[0],v.value]),O[0]){case 0:case 1:v=O;break;case 4:return y.label++,{value:O[1],done:!1};case 5:y.label++,b=O[1],O=[0];continue;case 7:O=y.ops.pop(),y.trys.pop();continue;default:if(!(v=(v=y.trys).length>0&&v[v.length-1])&&(6===O[0]||2===O[0])){y=0;continue}if(3===O[0]&&(!v||O[1]>v[0]&&O[1]<v[3])){y.label=O[1];break}if(6===O[0]&&y.label<v[1]){y.label=v[1],v=O;break}if(v&&y.label<v[2]){y.label=v[2],y.ops.push(O);break}v[2]&&y.ops.pop(),y.trys.pop();continue}O=p.call(d,y)}catch(P){O=[6,P],b=0}finally{f=v=0}if(5&O[0])throw O[1];return{value:O[0]?O[1]:void 0,done:!0}}([O,P])}}},h=this&&this.__await||function(d){return this instanceof h?(this.v=d,this):new h(d)},_=this&&this.__asyncGenerator||function(d,p,y){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var b,f=y.apply(d,p||[]),v=[];return b={},m("next"),m("throw"),m("return"),b[Symbol.asyncIterator]=function(){return this},b;function m(Y){f[Y]&&(b[Y]=function(U){return new Promise(function(G,$){v.push([Y,U,G,$])>1||C(Y,U)})})}function C(Y,U){try{!function M(Y){Y.value instanceof h?Promise.resolve(Y.value.v).then(O,P):N(v[0][2],Y)}(f[Y](U))}catch(G){N(v[0][3],G)}}function O(Y){C("next",Y)}function P(Y){C("throw",Y)}function N(Y,U){Y(U),v.shift(),v.length&&C(v[0][0],v[0][1])}};Object.defineProperty(o,"__esModule",{value:!0}),o.isReadableStreamLike=o.readableStreamLikeToAsyncGenerator=void 0;var u=a(7104);o.readableStreamLikeToAsyncGenerator=function r(d){return _(this,arguments,function(){var y,f,b;return n(this,function(m){switch(m.label){case 0:y=d.getReader(),m.label=1;case 1:m.trys.push([1,,9,10]),m.label=2;case 2:return[4,h(y.read())];case 3:return f=m.sent(),b=f.value,f.done?[4,h(void 0)]:[3,5];case 4:return[2,m.sent()];case 5:return[4,h(b)];case 6:return[4,m.sent()];case 7:return m.sent(),[3,2];case 8:return[3,10];case 9:return y.releaseLock(),[7];case 10:return[2]}})})},o.isReadableStreamLike=function c(d){return u.isFunction(null==d?void 0:d.getReader)}},1875:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.isScheduler=void 0;var n=a(7104);o.isScheduler=function h(_){return _&&n.isFunction(_.schedule)}},9216:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.operate=o.hasLift=void 0;var n=a(7104);function h(u){return n.isFunction(null==u?void 0:u.lift)}o.hasLift=h,o.operate=function _(u){return function(r){if(h(r))return r.lift(function(c){try{return u(c,this)}catch(d){this.error(d)}});throw new TypeError("Unable to lift unknown Observable type")}}},5280:function(z,o,a){"use strict";var n=this&&this.__read||function(d,p){var y="function"==typeof Symbol&&d[Symbol.iterator];if(!y)return d;var b,m,f=y.call(d),v=[];try{for(;(void 0===p||p-- >0)&&!(b=f.next()).done;)v.push(b.value)}catch(C){m={error:C}}finally{try{b&&!b.done&&(y=f.return)&&y.call(f)}finally{if(m)throw m.error}}return v},h=this&&this.__spreadArray||function(d,p){for(var y=0,f=p.length,b=d.length;y<f;y++,b++)d[b]=p[y];return d};Object.defineProperty(o,"__esModule",{value:!0}),o.mapOneOrManyArgs=void 0;var _=a(752),u=Array.isArray;o.mapOneOrManyArgs=function c(d){return _.map(function(p){return function r(d,p){return u(p)?d.apply(void 0,h([],n(p))):d(p)}(d,p)})}},31:(z,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.noop=void 0,o.noop=function a(){}},963:(z,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.not=void 0,o.not=function a(n,h){return function(_,u){return!n.call(h,_,u)}}},1471:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.pipeFromArray=o.pipe=void 0;var n=a(7884);function _(u){return 0===u.length?n.identity:1===u.length?u[0]:function(c){return u.reduce(function(d,p){return p(d)},c)}}o.pipe=function h(){for(var u=[],r=0;r<arguments.length;r++)u[r]=arguments[r];return _(u)},o.pipeFromArray=_},4709:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.reportUnhandledError=void 0;var n=a(3570),h=a(3914);o.reportUnhandledError=function _(u){h.timeoutProvider.setTimeout(function(){var r=n.config.onUnhandledError;if(!r)throw u;r(u)})}},6870:(z,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.createInvalidObservableTypeError=void 0,o.createInvalidObservableTypeError=function a(n){return new TypeError("You provided "+(null!==n&&"object"==typeof n?"an invalid object":"'"+n+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}},1135:(z,o,a)=>{"use strict";a.d(o,{X:()=>h});var n=a(7579);class h extends n.x{constructor(u){super(),this._value=u}get value(){return this.getValue()}_subscribe(u){const r=super._subscribe(u);return!r.closed&&u.next(this._value),r}getValue(){const{hasError:u,thrownError:r,_value:c}=this;if(u)throw r;return this._throwIfClosed(),c}next(u){super.next(this._value=u)}}},8306:(z,o,a)=>{"use strict";a.d(o,{y:()=>f});var n=a(930),h=a(727),_=a(8822),u=a(4671);var d=a(2416),p=a(576),y=a(2806);let f=(()=>{class C{constructor(O){O&&(this._subscribe=O)}lift(O){const P=new C;return P.source=this,P.operator=O,P}subscribe(O,P,N){const Y=function m(C){return C&&C instanceof n.Lv||function v(C){return C&&(0,p.m)(C.next)&&(0,p.m)(C.error)&&(0,p.m)(C.complete)}(C)&&(0,h.Nn)(C)}(O)?O:new n.Hp(O,P,N);return(0,y.x)(()=>{const{operator:U,source:G}=this;Y.add(U?U.call(Y,G):G?this._subscribe(Y):this._trySubscribe(Y))}),Y}_trySubscribe(O){try{return this._subscribe(O)}catch(P){O.error(P)}}forEach(O,P){return new(P=b(P))((N,Y)=>{const U=new n.Hp({next:G=>{try{O(G)}catch($){Y($),U.unsubscribe()}},error:Y,complete:N});this.subscribe(U)})}_subscribe(O){var P;return null===(P=this.source)||void 0===P?void 0:P.subscribe(O)}[_.L](){return this}pipe(...O){return function c(C){return 0===C.length?u.y:1===C.length?C[0]:function(O){return C.reduce((P,N)=>N(P),O)}}(O)(this)}toPromise(O){return new(O=b(O))((P,N)=>{let Y;this.subscribe(U=>Y=U,U=>N(U),()=>P(Y))})}}return C.create=M=>new C(M),C})();function b(C){var M;return null!==(M=null!=C?C:d.v.Promise)&&void 0!==M?M:Promise}},7579:(z,o,a)=>{"use strict";a.d(o,{x:()=>d});var n=a(8306),h=a(727);const u=(0,a(3888).d)(y=>function(){y(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var r=a(8737),c=a(2806);let d=(()=>{class y extends n.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(b){const v=new p(this,this);return v.operator=b,v}_throwIfClosed(){if(this.closed)throw new u}next(b){(0,c.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const v of this.currentObservers)v.next(b)}})}error(b){(0,c.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=b;const{observers:v}=this;for(;v.length;)v.shift().error(b)}})}complete(){(0,c.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:b}=this;for(;b.length;)b.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var b;return(null===(b=this.observers)||void 0===b?void 0:b.length)>0}_trySubscribe(b){return this._throwIfClosed(),super._trySubscribe(b)}_subscribe(b){return this._throwIfClosed(),this._checkFinalizedStatuses(b),this._innerSubscribe(b)}_innerSubscribe(b){const{hasError:v,isStopped:m,observers:C}=this;return v||m?h.Lc:(this.currentObservers=null,C.push(b),new h.w0(()=>{this.currentObservers=null,(0,r.P)(C,b)}))}_checkFinalizedStatuses(b){const{hasError:v,thrownError:m,isStopped:C}=this;v?b.error(m):C&&b.complete()}asObservable(){const b=new n.y;return b.source=this,b}}return y.create=(f,b)=>new p(f,b),y})();class p extends d{constructor(f,b){super(),this.destination=f,this.source=b}next(f){var b,v;null===(v=null===(b=this.destination)||void 0===b?void 0:b.next)||void 0===v||v.call(b,f)}error(f){var b,v;null===(v=null===(b=this.destination)||void 0===b?void 0:b.error)||void 0===v||v.call(b,f)}complete(){var f,b;null===(b=null===(f=this.destination)||void 0===f?void 0:f.complete)||void 0===b||b.call(f)}_subscribe(f){var b,v;return null!==(v=null===(b=this.source)||void 0===b?void 0:b.subscribe(f))&&void 0!==v?v:h.Lc}}},930:(z,o,a)=>{"use strict";a.d(o,{Hp:()=>O,Lv:()=>v});var n=a(576),h=a(727),_=a(2416),u=a(7849),r=a(5032);const c=y("C",void 0,void 0);function y(G,$,J){return{kind:G,value:$,error:J}}var f=a(3410),b=a(2806);class v extends h.w0{constructor($){super(),this.isStopped=!1,$?(this.destination=$,(0,h.Nn)($)&&$.add(this)):this.destination=U}static create($,J,te){return new O($,J,te)}next($){this.isStopped?Y(function p(G){return y("N",G,void 0)}($),this):this._next($)}error($){this.isStopped?Y(function d(G){return y("E",void 0,G)}($),this):(this.isStopped=!0,this._error($))}complete(){this.isStopped?Y(c,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next($){this.destination.next($)}_error($){try{this.destination.error($)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const m=Function.prototype.bind;function C(G,$){return m.call(G,$)}class M{constructor($){this.partialObserver=$}next($){const{partialObserver:J}=this;if(J.next)try{J.next($)}catch(te){P(te)}}error($){const{partialObserver:J}=this;if(J.error)try{J.error($)}catch(te){P(te)}else P($)}complete(){const{partialObserver:$}=this;if($.complete)try{$.complete()}catch(J){P(J)}}}class O extends v{constructor($,J,te){let he;if(super(),(0,n.m)($)||!$)he={next:null!=$?$:void 0,error:null!=J?J:void 0,complete:null!=te?te:void 0};else{let Fe;this&&_.v.useDeprecatedNextContext?(Fe=Object.create($),Fe.unsubscribe=()=>this.unsubscribe(),he={next:$.next&&C($.next,Fe),error:$.error&&C($.error,Fe),complete:$.complete&&C($.complete,Fe)}):he=$}this.destination=new M(he)}}function P(G){_.v.useDeprecatedSynchronousErrorHandling?(0,b.O)(G):(0,u.h)(G)}function Y(G,$){const{onStoppedNotification:J}=_.v;J&&f.z.setTimeout(()=>J(G,$))}const U={closed:!0,next:r.Z,error:function N(G){throw G},complete:r.Z}},727:(z,o,a)=>{"use strict";a.d(o,{Lc:()=>c,w0:()=>r,Nn:()=>d});var n=a(576);const _=(0,a(3888).d)(y=>function(b){y(this),this.message=b?`${b.length} errors occurred during unsubscription:\n${b.map((v,m)=>`${m+1}) ${v.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=b});var u=a(8737);class r{constructor(f){this.initialTeardown=f,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let f;if(!this.closed){this.closed=!0;const{_parentage:b}=this;if(b)if(this._parentage=null,Array.isArray(b))for(const C of b)C.remove(this);else b.remove(this);const{initialTeardown:v}=this;if((0,n.m)(v))try{v()}catch(C){f=C instanceof _?C.errors:[C]}const{_finalizers:m}=this;if(m){this._finalizers=null;for(const C of m)try{p(C)}catch(M){f=null!=f?f:[],M instanceof _?f=[...f,...M.errors]:f.push(M)}}if(f)throw new _(f)}}add(f){var b;if(f&&f!==this)if(this.closed)p(f);else{if(f instanceof r){if(f.closed||f._hasParent(this))return;f._addParent(this)}(this._finalizers=null!==(b=this._finalizers)&&void 0!==b?b:[]).push(f)}}_hasParent(f){const{_parentage:b}=this;return b===f||Array.isArray(b)&&b.includes(f)}_addParent(f){const{_parentage:b}=this;this._parentage=Array.isArray(b)?(b.push(f),b):b?[b,f]:f}_removeParent(f){const{_parentage:b}=this;b===f?this._parentage=null:Array.isArray(b)&&(0,u.P)(b,f)}remove(f){const{_finalizers:b}=this;b&&(0,u.P)(b,f),f instanceof r&&f._removeParent(this)}}r.EMPTY=(()=>{const y=new r;return y.closed=!0,y})();const c=r.EMPTY;function d(y){return y instanceof r||y&&"closed"in y&&(0,n.m)(y.remove)&&(0,n.m)(y.add)&&(0,n.m)(y.unsubscribe)}function p(y){(0,n.m)(y)?y():y.unsubscribe()}},2416:(z,o,a)=>{"use strict";a.d(o,{v:()=>n});const n={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(z,o,a)=>{"use strict";a.d(o,{a:()=>f});var n=a(8306),h=a(4742),_=a(2076),u=a(4671),r=a(3268),c=a(3269),d=a(1810),p=a(5403),y=a(9672);function f(...m){const C=(0,c.yG)(m),M=(0,c.jO)(m),{args:O,keys:P}=(0,h.D)(m);if(0===O.length)return(0,_.D)([],C);const N=new n.y(function b(m,C,M=u.y){return O=>{v(C,()=>{const{length:P}=m,N=new Array(P);let Y=P,U=P;for(let G=0;G<P;G++)v(C,()=>{const $=(0,_.D)(m[G],C);let J=!1;$.subscribe((0,p.x)(O,te=>{N[G]=te,J||(J=!0,U--),U||O.next(M(N.slice()))},()=>{--Y||O.complete()}))},O)},O)}}(O,C,P?Y=>(0,d.n)(P,Y):u.y));return M?N.pipe((0,r.Z)(M)):N}function v(m,C,M){m?(0,y.f)(M,m,C):C()}},7272:(z,o,a)=>{"use strict";a.d(o,{z:()=>r});var n=a(8189),_=a(3269),u=a(2076);function r(...c){return function h(){return(0,n.J)(1)}()((0,u.D)(c,(0,_.yG)(c)))}},515:(z,o,a)=>{"use strict";a.d(o,{E:()=>h});const h=new(a(8306).y)(r=>r.complete())},4128:(z,o,a)=>{"use strict";a.d(o,{D:()=>p});var n=a(8306),h=a(4742),_=a(8421),u=a(3269),r=a(5403),c=a(3268),d=a(1810);function p(...y){const f=(0,u.jO)(y),{args:b,keys:v}=(0,h.D)(y),m=new n.y(C=>{const{length:M}=b;if(!M)return void C.complete();const O=new Array(M);let P=M,N=M;for(let Y=0;Y<M;Y++){let U=!1;(0,_.Xf)(b[Y]).subscribe((0,r.x)(C,G=>{U||(U=!0,N--),O[Y]=G},()=>P--,void 0,()=>{(!P||!U)&&(N||C.next(v?(0,d.n)(v,O):O),C.complete())}))}});return f?m.pipe((0,c.Z)(f)):m}},2076:(z,o,a)=>{"use strict";a.d(o,{D:()=>te});var n=a(8421),h=a(9672),_=a(4482),u=a(5403);function r(he,Fe=0){return(0,_.e)((it,be)=>{it.subscribe((0,u.x)(be,ke=>(0,h.f)(be,he,()=>be.next(ke),Fe),()=>(0,h.f)(be,he,()=>be.complete(),Fe),ke=>(0,h.f)(be,he,()=>be.error(ke),Fe)))})}function c(he,Fe=0){return(0,_.e)((it,be)=>{be.add(he.schedule(()=>it.subscribe(be),Fe))})}var y=a(8306),b=a(2202),v=a(576);function C(he,Fe){if(!he)throw new Error("Iterable cannot be null");return new y.y(it=>{(0,h.f)(it,Fe,()=>{const be=he[Symbol.asyncIterator]();(0,h.f)(it,Fe,()=>{be.next().then(ke=>{ke.done?it.complete():it.next(ke.value)})},0,!0)})})}var M=a(3670),O=a(8239),P=a(1144),N=a(6495),Y=a(2206),U=a(4532),G=a(3260);function te(he,Fe){return Fe?function J(he,Fe){if(null!=he){if((0,M.c)(he))return function d(he,Fe){return(0,n.Xf)(he).pipe(c(Fe),r(Fe))}(he,Fe);if((0,P.z)(he))return function f(he,Fe){return new y.y(it=>{let be=0;return Fe.schedule(function(){be===he.length?it.complete():(it.next(he[be++]),it.closed||this.schedule())})})}(he,Fe);if((0,O.t)(he))return function p(he,Fe){return(0,n.Xf)(he).pipe(c(Fe),r(Fe))}(he,Fe);if((0,Y.D)(he))return C(he,Fe);if((0,N.T)(he))return function m(he,Fe){return new y.y(it=>{let be;return(0,h.f)(it,Fe,()=>{be=he[b.h](),(0,h.f)(it,Fe,()=>{let ke,ie;try{({value:ke,done:ie}=be.next())}catch(Ae){return void it.error(Ae)}ie?it.complete():it.next(ke)},0,!0)}),()=>(0,v.m)(null==be?void 0:be.return)&&be.return()})}(he,Fe);if((0,G.L)(he))return function $(he,Fe){return C((0,G.Q)(he),Fe)}(he,Fe)}throw(0,U.z)(he)}(he,Fe):(0,n.Xf)(he)}},4968:(z,o,a)=>{"use strict";a.d(o,{R:()=>f});var n=a(8421),h=a(8306),_=a(5577),u=a(1144),r=a(576),c=a(3268);const d=["addListener","removeListener"],p=["addEventListener","removeEventListener"],y=["on","off"];function f(M,O,P,N){if((0,r.m)(P)&&(N=P,P=void 0),N)return f(M,O,P).pipe((0,c.Z)(N));const[Y,U]=function C(M){return(0,r.m)(M.addEventListener)&&(0,r.m)(M.removeEventListener)}(M)?p.map(G=>$=>M[G](O,$,P)):function v(M){return(0,r.m)(M.addListener)&&(0,r.m)(M.removeListener)}(M)?d.map(b(M,O)):function m(M){return(0,r.m)(M.on)&&(0,r.m)(M.off)}(M)?y.map(b(M,O)):[];if(!Y&&(0,u.z)(M))return(0,_.z)(G=>f(G,O,P))((0,n.Xf)(M));if(!Y)throw new TypeError("Invalid event target");return new h.y(G=>{const $=(...J)=>G.next(1<J.length?J:J[0]);return Y($),()=>U($)})}function b(M,O){return P=>N=>M[P](O,N)}},8421:(z,o,a)=>{"use strict";a.d(o,{Xf:()=>m});var n=a(655),h=a(1144),_=a(8239),u=a(8306),r=a(3670),c=a(2206),d=a(4532),p=a(6495),y=a(3260),f=a(576),b=a(7849),v=a(8822);function m(G){if(G instanceof u.y)return G;if(null!=G){if((0,r.c)(G))return function C(G){return new u.y($=>{const J=G[v.L]();if((0,f.m)(J.subscribe))return J.subscribe($);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(G);if((0,h.z)(G))return function M(G){return new u.y($=>{for(let J=0;J<G.length&&!$.closed;J++)$.next(G[J]);$.complete()})}(G);if((0,_.t)(G))return function O(G){return new u.y($=>{G.then(J=>{$.closed||($.next(J),$.complete())},J=>$.error(J)).then(null,b.h)})}(G);if((0,c.D)(G))return N(G);if((0,p.T)(G))return function P(G){return new u.y($=>{for(const J of G)if($.next(J),$.closed)return;$.complete()})}(G);if((0,y.L)(G))return function Y(G){return N((0,y.Q)(G))}(G)}throw(0,d.z)(G)}function N(G){return new u.y($=>{(function U(G,$){var J,te,he,Fe;return(0,n.__awaiter)(this,void 0,void 0,function*(){try{for(J=(0,n.__asyncValues)(G);!(te=yield J.next()).done;)if($.next(te.value),$.closed)return}catch(it){he={error:it}}finally{try{te&&!te.done&&(Fe=J.return)&&(yield Fe.call(J))}finally{if(he)throw he.error}}$.complete()})})(G,$).catch(J=>$.error(J))})}},6451:(z,o,a)=>{"use strict";a.d(o,{T:()=>c});var n=a(8189),h=a(8421),_=a(515),u=a(3269),r=a(2076);function c(...d){const p=(0,u.yG)(d),y=(0,u._6)(d,1/0),f=d;return f.length?1===f.length?(0,h.Xf)(f[0]):(0,n.J)(y)((0,r.D)(f,p)):_.E}},9646:(z,o,a)=>{"use strict";a.d(o,{of:()=>_});var n=a(3269),h=a(2076);function _(...u){const r=(0,n.yG)(u);return(0,h.D)(u,r)}},5963:(z,o,a)=>{"use strict";a.d(o,{H:()=>r});var n=a(8306),h=a(4986),_=a(3532);function r(c=0,d,p=h.P){let y=-1;return null!=d&&((0,_.K)(d)?p=d:y=d),new n.y(f=>{let b=function u(c){return c instanceof Date&&!isNaN(c)}(c)?+c-p.now():c;b<0&&(b=0);let v=0;return p.schedule(function(){f.closed||(f.next(v++),0<=y?this.schedule(void 0,y):f.complete())},b)})}},5403:(z,o,a)=>{"use strict";a.d(o,{x:()=>h});var n=a(930);function h(u,r,c,d,p){return new _(u,r,c,d,p)}class _ extends n.Lv{constructor(r,c,d,p,y,f){super(r),this.onFinalize=y,this.shouldUnsubscribe=f,this._next=c?function(b){try{c(b)}catch(v){r.error(v)}}:super._next,this._error=p?function(b){try{p(b)}catch(v){r.error(v)}finally{this.unsubscribe()}}:super._error,this._complete=d?function(){try{d()}catch(b){r.error(b)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:c}=this;super.unsubscribe(),!c&&(null===(r=this.onFinalize)||void 0===r||r.call(this))}}}},8372:(z,o,a)=>{"use strict";a.d(o,{b:()=>u});var n=a(4986),h=a(4482),_=a(5403);function u(r,c=n.z){return(0,h.e)((d,p)=>{let y=null,f=null,b=null;const v=()=>{if(y){y.unsubscribe(),y=null;const C=f;f=null,p.next(C)}};function m(){const C=b+r,M=c.now();if(M<C)return y=this.schedule(void 0,C-M),void p.add(y);v()}d.subscribe((0,_.x)(p,C=>{f=C,b=c.now(),y||(y=c.schedule(m,r),p.add(y))},()=>{v(),p.complete()},void 0,()=>{f=y=null}))})}},1884:(z,o,a)=>{"use strict";a.d(o,{x:()=>u});var n=a(4671),h=a(4482),_=a(5403);function u(c,d=n.y){return c=null!=c?c:r,(0,h.e)((p,y)=>{let f,b=!0;p.subscribe((0,_.x)(y,v=>{const m=d(v);(b||!c(f,m))&&(b=!1,f=m,y.next(v))}))})}function r(c,d){return c===d}},9300:(z,o,a)=>{"use strict";a.d(o,{h:()=>_});var n=a(4482),h=a(5403);function _(u,r){return(0,n.e)((c,d)=>{let p=0;c.subscribe((0,h.x)(d,y=>u.call(r,y,p++)&&d.next(y)))})}},4004:(z,o,a)=>{"use strict";a.d(o,{U:()=>_});var n=a(4482),h=a(5403);function _(u,r){return(0,n.e)((c,d)=>{let p=0;c.subscribe((0,h.x)(d,y=>{d.next(u.call(r,y,p++))}))})}},8189:(z,o,a)=>{"use strict";a.d(o,{J:()=>_});var n=a(5577),h=a(4671);function _(u=1/0){return(0,n.z)(h.y,u)}},5577:(z,o,a)=>{"use strict";a.d(o,{z:()=>p});var n=a(4004),h=a(8421),_=a(4482),u=a(9672),r=a(5403),d=a(576);function p(y,f,b=1/0){return(0,d.m)(f)?p((v,m)=>(0,n.U)((C,M)=>f(v,C,m,M))((0,h.Xf)(y(v,m))),b):("number"==typeof f&&(b=f),(0,_.e)((v,m)=>function c(y,f,b,v,m,C,M,O){const P=[];let N=0,Y=0,U=!1;const G=()=>{U&&!P.length&&!N&&f.complete()},$=te=>N<v?J(te):P.push(te),J=te=>{C&&f.next(te),N++;let he=!1;(0,h.Xf)(b(te,Y++)).subscribe((0,r.x)(f,Fe=>{null==m||m(Fe),C?$(Fe):f.next(Fe)},()=>{he=!0},void 0,()=>{if(he)try{for(N--;P.length&&N<v;){const Fe=P.shift();M?(0,u.f)(f,M,()=>J(Fe)):J(Fe)}G()}catch(Fe){f.error(Fe)}}))};return y.subscribe((0,r.x)(f,$,()=>{U=!0,G()})),()=>{null==O||O()}}(v,m,y,b)))}},3099:(z,o,a)=>{"use strict";a.d(o,{B:()=>r});var n=a(8421),h=a(7579),_=a(930),u=a(4482);function r(d={}){const{connector:p=(()=>new h.x),resetOnError:y=!0,resetOnComplete:f=!0,resetOnRefCountZero:b=!0}=d;return v=>{let m,C,M,O=0,P=!1,N=!1;const Y=()=>{null==C||C.unsubscribe(),C=void 0},U=()=>{Y(),m=M=void 0,P=N=!1},G=()=>{const $=m;U(),null==$||$.unsubscribe()};return(0,u.e)(($,J)=>{O++,!N&&!P&&Y();const te=M=null!=M?M:p();J.add(()=>{O--,0===O&&!N&&!P&&(C=c(G,b))}),te.subscribe(J),!m&&O>0&&(m=new _.Hp({next:he=>te.next(he),error:he=>{N=!0,Y(),C=c(U,y,he),te.error(he)},complete:()=>{P=!0,Y(),C=c(U,f),te.complete()}}),(0,n.Xf)($).subscribe(m))})(v)}}function c(d,p,...y){if(!0===p)return void d();if(!1===p)return;const f=new _.Hp({next:()=>{f.unsubscribe(),d()}});return p(...y).subscribe(f)}},5684:(z,o,a)=>{"use strict";a.d(o,{T:()=>h});var n=a(9300);function h(_){return(0,n.h)((u,r)=>_<=r)}},8675:(z,o,a)=>{"use strict";a.d(o,{O:()=>u});var n=a(7272),h=a(3269),_=a(4482);function u(...r){const c=(0,h.yG)(r);return(0,_.e)((d,p)=>{(c?(0,n.z)(r,d,c):(0,n.z)(r,d)).subscribe(p)})}},3900:(z,o,a)=>{"use strict";a.d(o,{w:()=>u});var n=a(8421),h=a(4482),_=a(5403);function u(r,c){return(0,h.e)((d,p)=>{let y=null,f=0,b=!1;const v=()=>b&&!y&&p.complete();d.subscribe((0,_.x)(p,m=>{null==y||y.unsubscribe();let C=0;const M=f++;(0,n.Xf)(r(m,M)).subscribe(y=(0,_.x)(p,O=>p.next(c?c(m,O,M,C++):O),()=>{y=null,v()}))},()=>{b=!0,v()}))})}},5698:(z,o,a)=>{"use strict";a.d(o,{q:()=>u});var n=a(515),h=a(4482),_=a(5403);function u(r){return r<=0?()=>n.E:(0,h.e)((c,d)=>{let p=0;c.subscribe((0,_.x)(d,y=>{++p<=r&&(d.next(y),r<=p&&d.complete())}))})}},2722:(z,o,a)=>{"use strict";a.d(o,{R:()=>r});var n=a(4482),h=a(5403),_=a(8421),u=a(5032);function r(c){return(0,n.e)((d,p)=>{(0,_.Xf)(c).subscribe((0,h.x)(p,()=>p.complete(),u.Z)),!p.closed&&d.subscribe(p)})}},8505:(z,o,a)=>{"use strict";a.d(o,{b:()=>r});var n=a(576),h=a(4482),_=a(5403),u=a(4671);function r(c,d,p){const y=(0,n.m)(c)||d||p?{next:c,error:d,complete:p}:c;return y?(0,h.e)((f,b)=>{var v;null===(v=y.subscribe)||void 0===v||v.call(y);let m=!0;f.subscribe((0,_.x)(b,C=>{var M;null===(M=y.next)||void 0===M||M.call(y,C),b.next(C)},()=>{var C;m=!1,null===(C=y.complete)||void 0===C||C.call(y),b.complete()},C=>{var M;m=!1,null===(M=y.error)||void 0===M||M.call(y,C),b.error(C)},()=>{var C,M;m&&(null===(C=y.unsubscribe)||void 0===C||C.call(y)),null===(M=y.finalize)||void 0===M||M.call(y)}))}):u.y}},4408:(z,o,a)=>{"use strict";a.d(o,{o:()=>r});var n=a(727);class h extends n.w0{constructor(d,p){super()}schedule(d,p=0){return this}}const _={setInterval(c,d,...p){const{delegate:y}=_;return null!=y&&y.setInterval?y.setInterval(c,d,...p):setInterval(c,d,...p)},clearInterval(c){const{delegate:d}=_;return((null==d?void 0:d.clearInterval)||clearInterval)(c)},delegate:void 0};var u=a(8737);class r extends h{constructor(d,p){super(d,p),this.scheduler=d,this.work=p,this.pending=!1}schedule(d,p=0){var y;if(this.closed)return this;this.state=d;const f=this.id,b=this.scheduler;return null!=f&&(this.id=this.recycleAsyncId(b,f,p)),this.pending=!0,this.delay=p,this.id=null!==(y=this.id)&&void 0!==y?y:this.requestAsyncId(b,this.id,p),this}requestAsyncId(d,p,y=0){return _.setInterval(d.flush.bind(d,this),y)}recycleAsyncId(d,p,y=0){if(null!=y&&this.delay===y&&!1===this.pending)return p;null!=p&&_.clearInterval(p)}execute(d,p){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const y=this._execute(d,p);if(y)return y;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(d,p){let f,y=!1;try{this.work(d)}catch(b){y=!0,f=b||new Error("Scheduled action threw falsy error")}if(y)return this.unsubscribe(),f}unsubscribe(){if(!this.closed){const{id:d,scheduler:p}=this,{actions:y}=p;this.work=this.state=this.scheduler=null,this.pending=!1,(0,u.P)(y,this),null!=d&&(this.id=this.recycleAsyncId(p,d,null)),this.delay=null,super.unsubscribe()}}}},640:(z,o,a)=>{"use strict";a.d(o,{v:()=>_});const n={now:()=>(n.delegate||Date).now(),delegate:void 0};class h{constructor(r,c=h.now){this.schedulerActionCtor=r,this.now=c}schedule(r,c=0,d){return new this.schedulerActionCtor(this,r).schedule(d,c)}}h.now=n.now;class _ extends h{constructor(r,c=h.now){super(r,c),this.actions=[],this._active=!1}flush(r){const{actions:c}=this;if(this._active)return void c.push(r);let d;this._active=!0;do{if(d=r.execute(r.state,r.delay))break}while(r=c.shift());if(this._active=!1,d){for(;r=c.shift();)r.unsubscribe();throw d}}}},3101:(z,o,a)=>{"use strict";a.d(o,{E:()=>C});var n=a(4408);let _,h=1;const u={};function r(O){return O in u&&(delete u[O],!0)}const c={setImmediate(O){const P=h++;return u[P]=!0,_||(_=Promise.resolve()),_.then(()=>r(P)&&O()),P},clearImmediate(O){r(O)}},{setImmediate:p,clearImmediate:y}=c,f={setImmediate(...O){const{delegate:P}=f;return((null==P?void 0:P.setImmediate)||p)(...O)},clearImmediate(O){const{delegate:P}=f;return((null==P?void 0:P.clearImmediate)||y)(O)},delegate:void 0};var v=a(640);const C=new class m extends v.v{flush(P){this._active=!0;const N=this._scheduled;this._scheduled=void 0;const{actions:Y}=this;let U;P=P||Y.shift();do{if(U=P.execute(P.state,P.delay))break}while((P=Y[0])&&P.id===N&&Y.shift());if(this._active=!1,U){for(;(P=Y[0])&&P.id===N&&Y.shift();)P.unsubscribe();throw U}}}(class b extends n.o{constructor(P,N){super(P,N),this.scheduler=P,this.work=N}requestAsyncId(P,N,Y=0){return null!==Y&&Y>0?super.requestAsyncId(P,N,Y):(P.actions.push(this),P._scheduled||(P._scheduled=f.setImmediate(P.flush.bind(P,void 0))))}recycleAsyncId(P,N,Y=0){var U;if(null!=Y?Y>0:this.delay>0)return super.recycleAsyncId(P,N,Y);const{actions:G}=P;null!=N&&(null===(U=G[G.length-1])||void 0===U?void 0:U.id)!==N&&(f.clearImmediate(N),P._scheduled=void 0)}})},4986:(z,o,a)=>{"use strict";a.d(o,{P:()=>u,z:()=>_});var n=a(4408);const _=new(a(640).v)(n.o),u=_},3410:(z,o,a)=>{"use strict";a.d(o,{z:()=>n});const n={setTimeout(h,_,...u){const{delegate:r}=n;return null!=r&&r.setTimeout?r.setTimeout(h,_,...u):setTimeout(h,_,...u)},clearTimeout(h){const{delegate:_}=n;return((null==_?void 0:_.clearTimeout)||clearTimeout)(h)},delegate:void 0}},2202:(z,o,a)=>{"use strict";a.d(o,{h:()=>h});const h=function n(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(z,o,a)=>{"use strict";a.d(o,{L:()=>n});const n="function"==typeof Symbol&&Symbol.observable||"@@observable"},3269:(z,o,a)=>{"use strict";a.d(o,{_6:()=>c,jO:()=>u,yG:()=>r});var n=a(576),h=a(3532);function _(d){return d[d.length-1]}function u(d){return(0,n.m)(_(d))?d.pop():void 0}function r(d){return(0,h.K)(_(d))?d.pop():void 0}function c(d,p){return"number"==typeof _(d)?d.pop():p}},4742:(z,o,a)=>{"use strict";a.d(o,{D:()=>r});const{isArray:n}=Array,{getPrototypeOf:h,prototype:_,keys:u}=Object;function r(d){if(1===d.length){const p=d[0];if(n(p))return{args:p,keys:null};if(function c(d){return d&&"object"==typeof d&&h(d)===_}(p)){const y=u(p);return{args:y.map(f=>p[f]),keys:y}}}return{args:d,keys:null}}},8737:(z,o,a)=>{"use strict";function n(h,_){if(h){const u=h.indexOf(_);0<=u&&h.splice(u,1)}}a.d(o,{P:()=>n})},3888:(z,o,a)=>{"use strict";function n(h){const u=h(r=>{Error.call(r),r.stack=(new Error).stack});return u.prototype=Object.create(Error.prototype),u.prototype.constructor=u,u}a.d(o,{d:()=>n})},1810:(z,o,a)=>{"use strict";function n(h,_){return h.reduce((u,r,c)=>(u[r]=_[c],u),{})}a.d(o,{n:()=>n})},2806:(z,o,a)=>{"use strict";a.d(o,{O:()=>u,x:()=>_});var n=a(2416);let h=null;function _(r){if(n.v.useDeprecatedSynchronousErrorHandling){const c=!h;if(c&&(h={errorThrown:!1,error:null}),r(),c){const{errorThrown:d,error:p}=h;if(h=null,d)throw p}}else r()}function u(r){n.v.useDeprecatedSynchronousErrorHandling&&h&&(h.errorThrown=!0,h.error=r)}},9672:(z,o,a)=>{"use strict";function n(h,_,u,r=0,c=!1){const d=_.schedule(function(){u(),c?h.add(this.schedule(null,r)):this.unsubscribe()},r);if(h.add(d),!c)return d}a.d(o,{f:()=>n})},4671:(z,o,a)=>{"use strict";function n(h){return h}a.d(o,{y:()=>n})},1144:(z,o,a)=>{"use strict";a.d(o,{z:()=>n});const n=h=>h&&"number"==typeof h.length&&"function"!=typeof h},2206:(z,o,a)=>{"use strict";a.d(o,{D:()=>h});var n=a(576);function h(_){return Symbol.asyncIterator&&(0,n.m)(null==_?void 0:_[Symbol.asyncIterator])}},576:(z,o,a)=>{"use strict";function n(h){return"function"==typeof h}a.d(o,{m:()=>n})},3670:(z,o,a)=>{"use strict";a.d(o,{c:()=>_});var n=a(8822),h=a(576);function _(u){return(0,h.m)(u[n.L])}},6495:(z,o,a)=>{"use strict";a.d(o,{T:()=>_});var n=a(2202),h=a(576);function _(u){return(0,h.m)(null==u?void 0:u[n.h])}},8239:(z,o,a)=>{"use strict";a.d(o,{t:()=>h});var n=a(576);function h(_){return(0,n.m)(null==_?void 0:_.then)}},3260:(z,o,a)=>{"use strict";a.d(o,{L:()=>u,Q:()=>_});var n=a(655),h=a(576);function _(r){return(0,n.__asyncGenerator)(this,arguments,function*(){const d=r.getReader();try{for(;;){const{value:p,done:y}=yield(0,n.__await)(d.read());if(y)return yield(0,n.__await)(void 0);yield yield(0,n.__await)(p)}}finally{d.releaseLock()}})}function u(r){return(0,h.m)(null==r?void 0:r.getReader)}},3532:(z,o,a)=>{"use strict";a.d(o,{K:()=>h});var n=a(576);function h(_){return _&&(0,n.m)(_.schedule)}},4482:(z,o,a)=>{"use strict";a.d(o,{e:()=>_});var n=a(576);function _(u){return r=>{if(function h(u){return(0,n.m)(null==u?void 0:u.lift)}(r))return r.lift(function(c){try{return u(c,this)}catch(d){this.error(d)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(z,o,a)=>{"use strict";a.d(o,{Z:()=>u});var n=a(4004);const{isArray:h}=Array;function u(r){return(0,n.U)(c=>function _(r,c){return h(c)?r(...c):r(c)}(r,c))}},5032:(z,o,a)=>{"use strict";function n(){}a.d(o,{Z:()=>n})},7849:(z,o,a)=>{"use strict";a.d(o,{h:()=>_});var n=a(2416),h=a(3410);function _(u){h.z.setTimeout(()=>{const{onUnhandledError:r}=n.v;if(!r)throw u;r(u)})}},4532:(z,o,a)=>{"use strict";function n(h){return new TypeError(`You provided ${null!==h&&"object"==typeof h?"an invalid object":`'${h}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}a.d(o,{z:()=>n})},3642:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.generateRxMethod=o.generateMethodSignature=o.generateErrorClass=o.generateClass=o.generateErrorType=o.generateEnum=o.generateJsonRepresentation=o.mangle=o.generateSwiftTypeName=void 0;const n=a(6676);function h(m){switch(m.constructor){case n.IntPrimitiveType:return"Int";case n.UIntPrimitiveType:return"UInt";case n.MoneyPrimitiveType:return"Int64";case n.FloatPrimitiveType:return"Double";case n.BigIntPrimitiveType:return"Decimal";case n.DatePrimitiveType:case n.DateTimePrimitiveType:return"Date";case n.BoolPrimitiveType:return"Bool";case n.BytesPrimitiveType:return"Data";case n.StringPrimitiveType:case n.CpfPrimitiveType:case n.CnpjPrimitiveType:case n.EmailPrimitiveType:case n.HtmlPrimitiveType:case n.UuidPrimitiveType:case n.HexPrimitiveType:case n.UrlPrimitiveType:case n.Base64PrimitiveType:case n.XmlPrimitiveType:return"String";case n.VoidPrimitiveType:return"Void";case n.JsonPrimitiveType:return"AnyCodable";case n.OptionalType:return`${h(m.base)}?`;case n.ArrayType:return`[${h(m.base)}]`;case n.StructType:case n.EnumType:return`API.${m.name}`;case n.TypeReference:return h(m.type);default:throw new Error(`BUG: generateSwiftTypeName with ${m.constructor.name}`)}}function _(m){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(m)?`_${m}`:m}function u(m,C){switch(m.constructor){case n.StringPrimitiveType:case n.CpfPrimitiveType:case n.CnpjPrimitiveType:case n.EmailPrimitiveType:case n.HtmlPrimitiveType:case n.UrlPrimitiveType:case n.UuidPrimitiveType:case n.HexPrimitiveType:case n.Base64PrimitiveType:case n.XmlPrimitiveType:case n.IntPrimitiveType:case n.UIntPrimitiveType:case n.MoneyPrimitiveType:case n.FloatPrimitiveType:case n.BoolPrimitiveType:return`${C}`;case n.OptionalType:return`${C} == nil ? nil : ${u(m.base,`${C}!`)}`;case n.DatePrimitiveType:return`SdkgenHelper.encodeDate(date: ${C})`;case n.DateTimePrimitiveType:return`SdkgenHelper.encodeDateTime(date: ${C})`;case n.EnumType:return`${C}.rawValue`;case n.TypeReference:return`${u(m.type,`${C}`)}`;case n.StructType:return`${C}.toJSON()`;case n.ArrayType:return`${C}.map({ return ${u(m.base,"$0")} })`;case n.JsonPrimitiveType:return`try? ${C}.toJson()`;case n.VoidPrimitiveType:return"nil";case n.BytesPrimitiveType:return`${C}.base64EncodedString()`;default:throw new Error(`BUG: No result found for generateJsonRepresentation with ${m.constructor.name}`)}}o.generateSwiftTypeName=h,o.mangle=_,o.generateJsonRepresentation=u,o.generateEnum=function r(m){let C=` public enum ${m.name}: String, Codable {\n`;return C+=m.values.map(M=>` case ${_(M.value)} = "${M.value}"`).join("\n"),C+="\n }\n",C},o.generateErrorType=function c(m){let C=" public enum ErrorType: String, Codable {\n";return C+=m.map(M=>` case ${_(M)} = "${M}"`).join("\n"),C+="\n }\n",C},o.generateClass=function y(m){return` public struct ${m.name}: Codable {\n${m.fields.map(C=>` var ${_(C.name)}: ${h(C.type)}`).join("\n")}\n\n${function d(m){let C=" init(";return C+=m.fields.map(M=>`${_(M.name)}: ${h(M.type)}`).join(", "),C+=") {\n",C+=m.fields.map(M=>` self.${_(M.name)} = ${_(M.name)}`).join("\n"),C+="\n }\n",C}(m)}\n${function p(m){let C=" func toJSON() -> [String: Any] {\n";return C+=" var json = [String: Any]()\n",C+=m.fields.map(M=>` json["${_(M.name)}"] = ${u(M.type,M.name)}`).join("\n"),C+="\n return json",C+="\n }\n",C}(m)}\n }\n`},o.generateErrorClass=function f(){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"},o.generateMethodSignature=function b(m){const C=m.args.map(M=>`${_(M.name)}: ${h(M.type)}`).concat(["timeoutSeconds: Double?",`callback: ((_ result: ${m.returnType instanceof n.VoidPrimitiveType?"API.Result<API.NoReply>":`API.Result<${h(m.returnType)}>`}) -> Void)?`]);return` func ${_(m.name)}(${C.join(", ")})`},o.generateRxMethod=function v(m){const C=m.args.map(O=>`${_(O.name)}: ${h(O.type)}`).concat(["timeoutSeconds: Double? = nil"]);let M=` static func ${_(m.name)}(${C.join(", ")}) -> ${m.returnType instanceof n.VoidPrimitiveType?"Observable<API.Result<API.NoReply>>":`Observable<API.Result<${h(m.returnType)}>>`} {\n`;return M+=" return Observable.create { observer -> Disposable in\n",M+=` API.calls.${_(m.name)}(${m.args.map(O=>`${_(O.name)}: ${_(O.name)}`).concat(["timeoutSeconds: timeoutSeconds"]).join(", ")}) { result in \n`,M+=" observer.on(.next(result))\n",M+=" observer.on(.completed)\n",M+=" }\n",M+=" return Disposables.create()\n",M+=" }\n",M+=" }\n",M}},7295:function(z,o,a){"use strict";var n=this&&this.__createBinding||(Object.create?function(_,u,r,c){void 0===c&&(c=r);var d=Object.getOwnPropertyDescriptor(u,r);(!d||("get"in d?!u.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return u[r]}}),Object.defineProperty(_,c,d)}:function(_,u,r,c){void 0===c&&(c=r),_[c]=u[r]}),h=this&&this.__exportStar||function(_,u){for(var r in _)"default"!==r&&!Object.prototype.hasOwnProperty.call(u,r)&&n(u,_,r)};Object.defineProperty(o,"__esModule",{value:!0}),h(a(7636),o)},7636:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.generateSwiftClientSource=void 0;const n=a(6676),h=a(3642);o.generateSwiftClientSource=function _(u,r){let c="import Foundation\nimport SdkgenRuntime\n";c+=r?"import RxSwift\nimport RxCocoa\n\n":"\n",c+="protocol APICallsProtocol {\n",c+=u.operations.filter(y=>y.annotations.every(f=>!(f instanceof n.HiddenAnnotation))).map(y=>`${(0,h.generateMethodSignature)(y)}`).join("\n"),c+="\n}\n\n",c+='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 y of u.enumTypes)c+=(0,h.generateEnum)(y),c+="\n";for(const y of u.structTypes)c+=(0,h.generateClass)(y),c+="\n";const d=[],p=new n.ErrorNode("Connection",new n.VoidPrimitiveType);d.push(p.name);for(const y of u.errors)d.push(y.name);return d.length>0&&(c+=(0,h.generateErrorType)(d),c+="\n"),c+=(0,h.generateErrorClass)(),c+="\n",c+=" public enum Result<T> {\n case success(T)\n case failure(Failure)\n }\n\n",c+=" public class Calls: SdkgenHttpClient, APICallsProtocol {\n\n override init(baseUrl: String) {\n super.init(baseUrl: baseUrl)\n }\n\n",c+=u.operations.filter(y=>y.annotations.every(f=>!(f instanceof n.HiddenAnnotation))).map(y=>{let f="";return f+=` ${(0,h.generateMethodSignature)(y)} {\n`,y.args.length>0?(f+=" var jsonArgs = [String: Any]()\n",f+=y.args.map(b=>` jsonArgs["${(0,h.mangle)(b.name)}"] = ${(0,h.generateJsonRepresentation)(b.type,(0,h.mangle)(b.name))}`).join("\n")):f+=" let jsonArgs = [String: Any]()",f+="\n\n",f+=` request("${y.name}", jsonArgs, timeoutSeconds, completion: { (value: ${y.returnType instanceof n.VoidPrimitiveType?"API.NoReply":(0,h.generateSwiftTypeName)(y.returnType)}) in\n`,f+=" callback?(API.Result.success(value))\n",f+=" }, onError: { error in\n",f+=" callback?(API.Result.failure(API.Failure(message: error.message, code: error.code, type: error.type)))\n",f+=" })",f+="\n }\n",f}).join("\n"),c+=" }\n",c+="}\n",r&&(c+="\n",c+="extension API: ReactiveCompatible {}\n\n",c+="extension Reactive where Base: API {\n",c+=u.operations.filter(y=>y.annotations.every(f=>!(f instanceof n.HiddenAnnotation))).map(y=>`${(0,h.generateRxMethod)(y)}`).join("\n"),c+="}\n"),c}},8173:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.generateBrowserClientSource=void 0;const n=a(6676),h=a(5596);o.generateBrowserClientSource=function _(u){let r="";r+=`/* eslint-disable */\nimport { SdkgenError${u.errors.some(d=>!(d.dataType instanceof n.VoidPrimitiveType))?", SdkgenErrorWithData":""}, SdkgenHttpClient } from "@sdkgen/browser-runtime";\n`,(0,n.hasType)(u,n.DecimalPrimitiveType)&&(r+='import { Decimal } from "decimal.js-light";\n'),r+="\n";for(const d of u.enumTypes)r+=(0,h.generateTypescriptEnum)(d),r+="\n";for(const d of u.structTypes)r+=(0,h.generateTypescriptInterface)(d,!0),r+="\n";for(const d of u.errors)r+=(0,h.generateTypescriptErrorClass)(d,!0),r+="\n";return r+=`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 n.HiddenAnnotation))).map(d=>`\n ${d.name}(args${0===d.args.length?"?":""}: {${d.args.map(p=>`${p.name}${p.type.name.endsWith("?")?"?":""}: ${(0,h.generateTypescriptTypeName)(p.type,!0)}`).join(", ")}}): Promise<${(0,h.generateTypescriptTypeName)(d.returnType,!0)}> { return this.makeRequest("${d.name}", args || {}); }`).join("")}\n}\n\n`,r+=`const errClasses = {\n${u.errors.map(d=>` ${d.name}`).join(",\n")}\n};\n\n`,r+=`const astJson = ${JSON.stringify((0,n.astToJson)(u),null,4).replace(new RegExp('"(?<key>\\w+)":',"gu"),"$<key>:")} as const;\n`,r}},5596:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.clearForLogging=o.generateTypescriptErrorClass=o.generateTypescriptEnum=o.generateTypescriptInterface=o.generateTypescriptTypeName=void 0;const n=a(6676);function h(d,p){switch(d.constructor){case n.IntPrimitiveType:case n.UIntPrimitiveType:case n.MoneyPrimitiveType:case n.FloatPrimitiveType:return"number";case n.BigIntPrimitiveType:return"bigint";case n.DecimalPrimitiveType:return"Decimal";case n.DatePrimitiveType:case n.DateTimePrimitiveType:return"Date";case n.BoolPrimitiveType:return"boolean";case n.BytesPrimitiveType:return p?"ArrayBuffer":"Buffer";case n.StringPrimitiveType:case n.CpfPrimitiveType:case n.CnpjPrimitiveType:case n.EmailPrimitiveType:case n.HtmlPrimitiveType:case n.UrlPrimitiveType:case n.UuidPrimitiveType:case n.HexPrimitiveType:case n.Base64PrimitiveType:case n.XmlPrimitiveType:return"string";case n.VoidPrimitiveType:return"void";case n.JsonPrimitiveType:return"any";case n.OptionalType:return`${h(d.base,p)} | null`;case n.ArrayType:{const{base:y}=d,f=h(y,p);return y instanceof n.OptionalType?`(${f})[]`:`${f}[]`}case n.StructType:case n.EnumType:return d.name;case n.TypeReference:return h(d.type,p);default:throw new Error(`BUG: generateTypescriptTypeName with ${d.constructor.name}`)}}o.generateTypescriptTypeName=h,o.generateTypescriptInterface=function _(d,p){return`export interface ${d.name} {\n${d.fields.map(y=>` ${y.name}: ${h(y.type,p)}`).join("\n")}\n}\n`},o.generateTypescriptEnum=function u(d){return d.hasStructValues?`export type ${d.name} = ${d.values.map(p=>p.struct?`({tag: "${p.value}"} & ${p.struct.name})`:`{tag: "${p.value}"}`).join(" | ")};\n`:`export type ${d.name} = ${d.values.map(p=>`"${p.value}"`).join(" | ")};\n`},o.generateTypescriptErrorClass=function r(d,p){return`export class ${d.name} extends ${d.dataType instanceof n.VoidPrimitiveType?"SdkgenError":`SdkgenErrorWithData<${h(d.dataType,p)}>`} {}\n`},o.clearForLogging=function c(d,p){switch(p.constructor){case n.TypeReference:return c(d,p.type);case n.OptionalType:{const y=c(d,p.base);return y?`if (${d} !== null && ${d} !== undefined) { ${y} }`:""}case n.ArrayType:{const y=c("el",p.base);return y?`for (const el of ${d}) { ${y} }`:""}case n.StructType:{const y=[];for(const f of p.fields)if(f.secret)y.push(`${d}.${f.name} = "<secret>";`);else{const b=c(`${d}.${f.name}`,f.type);b&&y.push(b)}return y.join(" ")}default:return""}}},2911:function(z,o,a){"use strict";var n=this&&this.__createBinding||(Object.create?function(_,u,r,c){void 0===c&&(c=r);var d=Object.getOwnPropertyDescriptor(u,r);(!d||("get"in d?!u.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return u[r]}}),Object.defineProperty(_,c,d)}:function(_,u,r,c){void 0===c&&(c=r),_[c]=u[r]}),h=this&&this.__exportStar||function(_,u){for(var r in _)"default"!==r&&!Object.prototype.hasOwnProperty.call(u,r)&&n(u,_,r)};Object.defineProperty(o,"__esModule",{value:!0}),h(a(8173),o),h(a(7538),o),h(a(1727),o),h(a(615),o)},7538:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.generateTypescriptInterfaces=void 0;const n=a(5596);o.generateTypescriptInterfaces=function h(_){let u="";for(const r of _.enumTypes)u+=(0,n.generateTypescriptEnum)(r);u+="\n";for(const r of _.structTypes)u+=(0,n.generateTypescriptInterface)(r,!1),u+="\n";return u}},1727:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.generateNodeClientSource=void 0;const n=a(6676),h=a(5596);o.generateNodeClientSource=function _(u){let r="";const c=u.errors.some(p=>!(p.dataType instanceof n.VoidPrimitiveType));r+=`/* eslint-disable */\nimport { Context, Fatal${u.errors.filter(p=>"Fatal"!==p.name).some(p=>p.dataType instanceof n.VoidPrimitiveType)?", SdkgenError":""}${c?", SdkgenErrorWithData":""}, SdkgenHttpClient } from "@sdkgen/node-runtime";\nimport { PartialDeep } from "type-fest";\nexport { Fatal } from "@sdkgen/node-runtime";\n`,(0,n.hasType)(u,n.DecimalPrimitiveType)&&(r+='import { Decimal } from "decimal.js";\n'),r+="\n";for(const p of u.enumTypes)r+=(0,h.generateTypescriptEnum)(p),r+="\n";for(const p of u.structTypes)r+=(0,h.generateTypescriptInterface)(p,!1),r+="\n";for(const p of u.errors)"Fatal"!==p.name&&(r+=(0,h.generateTypescriptErrorClass)(p,!1),r+="\n");return r+=`export class ApiClient extends SdkgenHttpClient {\n constructor(baseUrl: string) {\n super(baseUrl, astJson, errClasses);\n }\n${u.operations.filter(p=>p.annotations.every(y=>!(y instanceof n.HiddenAnnotation))).map(p=>`\n ${p.name}(ctx: PartialDeep<Context> | null, args: {${p.args.map(y=>`${y.name}${y.type.name.endsWith("?")?"?":""}: ${(0,h.generateTypescriptTypeName)(y.type,!1)}`).join(", ")}}): Promise<${(0,h.generateTypescriptTypeName)(p.returnType,!1)}> { return this.makeRequest(ctx, "${p.name}", args); }`).join("")}\n}\n\n`,r+=`const errClasses = {\n${u.errors.map(p=>` ${p.name}`).join(",\n")}\n};\n\n`,r+=`const astJson = ${JSON.stringify((0,n.astToJson)(u),null,4).replace(new RegExp('"(?<key>\\w+)":',"gu"),"$<key>:")} as const;\n`,r}},615:(z,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.generateNodeServerSource=void 0;const n=a(6676),h=a(5596);o.generateNodeServerSource=function _(u){let r="";const c=u.errors.some(p=>!(p.dataType instanceof n.VoidPrimitiveType));r+=`/* eslint-disable */\nimport { BaseApiConfig, Context, Fatal${u.errors.filter(p=>"Fatal"!==p.name).some(p=>p.dataType instanceof n.VoidPrimitiveType)?", SdkgenError":""}${c?", SdkgenErrorWithData":""} } from "@sdkgen/node-runtime";\nexport { Fatal } from "@sdkgen/node-runtime";\n`,(0,n.hasType)(u,n.DecimalPrimitiveType)&&(r+='import { Decimal } from "decimal.js";\n'),r+="\n";for(const p of u.enumTypes)r+=(0,h.generateTypescriptEnum)(p),r+="\n";for(const p of u.structTypes)r+=(0,h.generateTypescriptInterface)(p,!1),r+="\n";for(const p of u.errors)"Fatal"!==p.name&&(r+=(0,h.generateTypescriptErrorClass)(p,!1),r+="\n");return r+=`export class ApiConfig<ExtraContextT> extends BaseApiConfig<ExtraContextT> {\n declare fn: {${u.operations.map(p=>`\n ${p.name}: (ctx: Context & ExtraContextT, args: {${p.args.map(y=>`${y.name}: ${(0,h.generateTypescriptTypeName)(y.type,!1)}`).join(", ")}}) => Promise<${(0,h.generateTypescriptTypeName)(p.returnType,!1)}>`).join("")}\n }\n\n astJson = ${JSON.stringify((0,n.astToJson)(u),null,4).replace(new RegExp('"(?<key>\\w+)":',"gu"),"$<key>:").replace(/\n/gu,"\n ")} as const\n}\n\nexport const api = new ApiConfig<{}>();\n`,r}},655:(z,o,a)=>{"use strict";a.r(o),a.d(o,{__assign:()=>_,__asyncDelegator:()=>J,__asyncGenerator:()=>$,__asyncValues:()=>te,__await:()=>G,__awaiter:()=>v,__classPrivateFieldGet:()=>ke,__classPrivateFieldIn:()=>Ae,__classPrivateFieldSet:()=>ie,__createBinding:()=>C,__decorate:()=>r,__esDecorate:()=>d,__exportStar:()=>M,__extends:()=>h,__generator:()=>m,__importDefault:()=>be,__importStar:()=>it,__makeTemplateObject:()=>he,__metadata:()=>b,__param:()=>c,__propKey:()=>y,__read:()=>P,__rest:()=>u,__runInitializers:()=>p,__setFunctionName:()=>f,__spread:()=>N,__spreadArray:()=>U,__spreadArrays:()=>Y,__values:()=>O});var n=function(oe,me){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(V,H){V.__proto__=H}||function(V,H){for(var re in H)Object.prototype.hasOwnProperty.call(H,re)&&(V[re]=H[re])})(oe,me)};function h(oe,me){if("function"!=typeof me&&null!==me)throw new TypeError("Class extends value "+String(me)+" is not a constructor or null");function V(){this.constructor=oe}n(oe,me),oe.prototype=null===me?Object.create(me):(V.prototype=me.prototype,new V)}var _=function(){return _=Object.assign||function(me){for(var V,H=1,re=arguments.length;H<re;H++)for(var B in V=arguments[H])Object.prototype.hasOwnProperty.call(V,B)&&(me[B]=V[B]);return me},_.apply(this,arguments)};function u(oe,me){var V={};for(var H in oe)Object.prototype.hasOwnProperty.call(oe,H)&&me.indexOf(H)<0&&(V[H]=oe[H]);if(null!=oe&&"function"==typeof Object.getOwnPropertySymbols){var re=0;for(H=Object.getOwnPropertySymbols(oe);re<H.length;re++)me.indexOf(H[re])<0&&Object.prototype.propertyIsEnumerable.call(oe,H[re])&&(V[H[re]]=oe[H[re]])}return V}function r(oe,me,V,H){var ue,re=arguments.length,B=re<3?me:null===H?H=Object.getOwnPropertyDescriptor(me,V):H;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)B=Reflect.decorate(oe,me,V,H);else for(var ge=oe.length-1;ge>=0;ge--)(ue=oe[ge])&&(B=(re<3?ue(B):re>3?ue(me,V,B):ue(me,V))||B);return re>3&&B&&Object.defineProperty(me,V,B),B}function c(oe,me){return function(V,H){me(V,H,oe)}}function d(oe,me,V,H,re,B){function ue(Ie){if(void 0!==Ie&&"function"!=typeof Ie)throw new TypeError("Function expected");return Ie}for(var $e,ge=H.kind,Te="getter"===ge?"get":"setter"===ge?"set":"value",Pe=!me&&oe?H.static?oe:oe.prototype:null,Ce=me||(Pe?Object.getOwnPropertyDescriptor(Pe,H.name):{}),lt=!1,yt=V.length-1;yt>=0;yt--){var _t={};for(var ut in H)_t[ut]="access"===ut?{}:H[ut];for(var ut in H.access)_t.access[ut]=H.access[ut];_t.addInitializer=function(Ie){if(lt)throw new TypeError("Cannot add initializers after decoration has completed");B.push(ue(Ie||null))};var He=(0,V[yt])("accessor"===ge?{get:Ce.get,set:Ce.set}:Ce[Te],_t);if("accessor"===ge){if(void 0===He)continue;if(null===He||"object"!=typeof He)throw new TypeError("Object expected");($e=ue(He.get))&&(Ce.get=$e),($e=ue(He.set))&&(Ce.set=$e),($e=ue(He.init))&&re.push($e)}else($e=ue(He))&&("field"===ge?re.push($e):Ce[Te]=$e)}Pe&&Object.defineProperty(Pe,H.name,Ce),lt=!0}function p(oe,me,V){for(var H=arguments.length>2,re=0;re<me.length;re++)V=H?me[re].call(oe,V):me[re].call(oe);return H?V:void 0}function y(oe){return"symbol"==typeof oe?oe:"".concat(oe)}function f(oe,me,V){return"symbol"==typeof me&&(me=me.description?"[".concat(me.description,"]"):""),Object.defineProperty(oe,"name",{configurable:!0,value:V?"".concat(V," ",me):me})}function b(oe,me){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(oe,me)}function v(oe,me,V,H){return new(V||(V=Promise))(function(B,ue){function ge(Ce){try{Pe(H.next(Ce))}catch($e){ue($e)}}function Te(Ce){try{Pe(H.throw(Ce))}catch($e){ue($e)}}function Pe(Ce){Ce.done?B(Ce.value):function re(B){return B instanceof V?B:new V(function(ue){ue(B)})}(Ce.value).then(ge,Te)}Pe((H=H.apply(oe,me||[])).next())})}function m(oe,me){var H,re,B,ue,V={label:0,sent:function(){if(1&B[0])throw B[1];return B[1]},trys:[],ops:[]};return ue={next:ge(0),throw:ge(1),return:ge(2)},"function"==typeof Symbol&&(ue[Symbol.iterator]=function(){return this}),ue;function ge(Pe){return function(Ce){return function Te(Pe){if(H)throw new TypeError("Generator is already executing.");for(;ue&&(ue=0,Pe[0]&&(V=0)),V;)try{if(H=1,re&&(B=2&Pe[0]?re.return:Pe[0]?re.throw||((B=re.return)&&B.call(re),0):re.next)&&!(B=B.call(re,Pe[1])).done)return B;switch(re=0,B&&(Pe=[2&Pe[0],B.value]),Pe[0]){case 0:case 1:B=Pe;break;case 4:return V.label++,{value:Pe[1],done:!1};case 5:V.label++,re=Pe[1],Pe=[0];continue;case 7:Pe=V.ops.pop(),V.trys.pop();continue;default:if(!(B=(B=V.trys).length>0&&B[B.length-1])&&(6===Pe[0]||2===Pe[0])){V=0;continue}if(3===Pe[0]&&(!B||Pe[1]>B[0]&&Pe[1]<B[3])){V.label=Pe[1];break}if(6===Pe[0]&&V.label<B[1]){V.label=B[1],B=Pe;break}if(B&&V.label<B[2]){V.label=B[2],V.ops.push(Pe);break}B[2]&&V.ops.pop(),V.trys.pop();continue}Pe=me.call(oe,V)}catch(Ce){Pe=[6,Ce],re=0}finally{H=B=0}if(5&Pe[0])throw Pe[1];return{value:Pe[0]?Pe[1]:void 0,done:!0}}([Pe,Ce])}}}var C=Object.create?function(oe,me,V,H){void 0===H&&(H=V);var re=Object.getOwnPropertyDescriptor(me,V);(!re||("get"in re?!me.__esModule:re.writable||re.configurable))&&(re={enumerable:!0,get:function(){return me[V]}}),Object.defineProperty(oe,H,re)}:function(oe,me,V,H){void 0===H&&(H=V),oe[H]=me[V]};function M(oe,me){for(var V in oe)"default"!==V&&!Object.prototype.hasOwnProperty.call(me,V)&&C(me,oe,V)}function O(oe){var me="function"==typeof Symbol&&Symbol.iterator,V=me&&oe[me],H=0;if(V)return V.call(oe);if(oe&&"number"==typeof oe.length)return{next:function(){return oe&&H>=oe.length&&(oe=void 0),{value:oe&&oe[H++],done:!oe}}};throw new TypeError(me?"Object is not iterable.":"Symbol.iterator is not defined.")}function P(oe,me){var V="function"==typeof Symbol&&oe[Symbol.iterator];if(!V)return oe;var re,ue,H=V.call(oe),B=[];try{for(;(void 0===me||me-- >0)&&!(re=H.next()).done;)B.push(re.value)}catch(ge){ue={error:ge}}finally{try{re&&!re.done&&(V=H.return)&&V.call(H)}finally{if(ue)throw ue.error}}return B}function N(){for(var oe=[],me=0;me<arguments.length;me++)oe=oe.concat(P(arguments[me]));return oe}function Y(){for(var oe=0,me=0,V=arguments.length;me<V;me++)oe+=arguments[me].length;var H=Array(oe),re=0;for(me=0;me<V;me++)for(var B=arguments[me],ue=0,ge=B.length;ue<ge;ue++,re++)H[re]=B[ue];return H}function U(oe,me,V){if(V||2===arguments.length)for(var B,H=0,re=me.length;H<re;H++)(B||!(H in me))&&(B||(B=Array.prototype.slice.call(me,0,H)),B[H]=me[H]);return oe.concat(B||Array.prototype.slice.call(me))}function G(oe){return this instanceof G?(this.v=oe,this):new G(oe)}function $(oe,me,V){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var re,H=V.apply(oe,me||[]),B=[];return re={},ue("next"),ue("throw"),ue("return"),re[Symbol.asyncIterator]=function(){return this},re;function ue(lt){H[lt]&&(re[lt]=function(yt){return new Promise(function(_t,ut){B.push([lt,yt,_t,ut])>1||ge(lt,yt)})})}function ge(lt,yt){try{!function Te(lt){lt.value instanceof G?Promise.resolve(lt.value.v).then(Pe,Ce):$e(B[0][2],lt)}(H[lt](yt))}catch(_t){$e(B[0][3],_t)}}function Pe(lt){ge("next",lt)}function Ce(lt){ge("throw",lt)}function $e(lt,yt){lt(yt),B.shift(),B.length&&ge(B[0][0],B[0][1])}}function J(oe){var me,V;return me={},H("next"),H("throw",function(re){throw re}),H("return"),me[Symbol.iterator]=function(){return this},me;function H(re,B){me[re]=oe[re]?function(ue){return(V=!V)?{value:G(oe[re](ue)),done:!1}:B?B(ue):ue}:B}}function te(oe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var V,me=oe[Symbol.asyncIterator];return me?me.call(oe):(oe=O(oe),V={},H("next"),H("throw"),H("return"),V[Symbol.asyncIterator]=function(){return this},V);function H(B){V[B]=oe[B]&&function(ue){return new Promise(function(ge,Te){!function re(B,ue,ge,Te){Promise.resolve(Te).then(function(Pe){B({value:Pe,done:ge})},ue)}(ge,Te,(ue=oe[B](ue)).done,ue.value)})}}}function he(oe,me){return Object.defineProperty?Object.defineProperty(oe,"raw",{value:me}):oe.raw=me,oe}var Fe=Object.create?function(oe,me){Object.defineProperty(oe,"default",{enumerable:!0,value:me})}:function(oe,me){oe.default=me};function it(oe){if(oe&&oe.__esModule)return oe;var me={};if(null!=oe)for(var V in oe)"default"!==V&&Object.prototype.hasOwnProperty.call(oe,V)&&C(me,oe,V);return Fe(me,oe),me}function be(oe){return oe&&oe.__esModule?oe:{default:oe}}function ke(oe,me,V,H){if("a"===V&&!H)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof me?oe!==me||!H:!me.has(oe))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===V?H:"a"===V?H.call(oe):H?H.value:me.get(oe)}function ie(oe,me,V,H,re){if("m"===H)throw new TypeError("Private method is not writable");if("a"===H&&!re)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof me?oe!==me||!re:!me.has(oe))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===H?re.call(oe,V):re?re.value=V:me.set(oe,V),V}function Ae(oe,me){if(null===me||"object"!=typeof me&&"function"!=typeof me)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof oe?me===oe:oe.has(me)}},7156:z=>{function o(n,h,_,u,r,c,d){try{var p=n[c](d),y=p.value}catch(f){return void _(f)}p.done?h(y):Promise.resolve(y).then(u,r)}z.exports=function a(n){return function(){var h=this,_=arguments;return new Promise(function(u,r){var c=n.apply(h,_);function d(y){o(c,u,r,d,p,"next",y)}function p(y){o(c,u,r,d,p,"throw",y)}d(void 0)})}},z.exports.__esModule=!0,z.exports.default=z.exports},1777:(z,o,a)=>{"use strict";a.d(o,{F4:()=>f,IO:()=>M,LC:()=>h,SB:()=>y,X$:()=>u,ZE:()=>Y,ZN:()=>N,_j:()=>n,eR:()=>b,jt:()=>r,k1:()=>U,l3:()=>_,oB:()=>p,pV:()=>m,ru:()=>c,vP:()=>d});class n{}class h{}const _="*";function u(G,$){return{type:7,name:G,definitions:$,options:{}}}function r(G,$=null){return{type:4,styles:$,timings:G}}function c(G,$=null){return{type:3,steps:G,options:$}}function d(G,$=null){return{type:2,steps:G,options:$}}function p(G){return{type:6,styles:G,offset:null}}function y(G,$,J){return{type:0,name:G,styles:$,options:J}}function f(G){return{type:5,steps:G}}function b(G,$,J=null){return{type:1,expr:G,animation:$,options:J}}function m(G=null){return{type:9,options:G}}function M(G,$,J=null){return{type:11,selector:G,animation:$,options:J}}function P(G){Promise.resolve(null).then(G)}class N{constructor($=0,J=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=$+J}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach($=>$()),this._onDoneFns=[])}onStart($){this._originalOnStartFns.push($),this._onStartFns.push($)}onDone($){this._originalOnDoneFns.push($),this._onDoneFns.push($)}onDestroy($){this._onDestroyFns.push($)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){P(()=>this._onFinish())}_onStart(){this._onStartFns.forEach($=>$()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach($=>$()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition($){this._position=this.totalTime?$*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback($){const J="start"==$?this._onStartFns:this._onDoneFns;J.forEach(te=>te()),J.length=0}}class Y{constructor($){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=$;let J=0,te=0,he=0;const Fe=this.players.length;0==Fe?P(()=>this._onFinish()):this.players.forEach(it=>{it.onDone(()=>{++J==Fe&&this._onFinish()}),it.onDestroy(()=>{++te==Fe&&this._onDestroy()}),it.onStart(()=>{++he==Fe&&this._onStart()})}),this.totalTime=this.players.reduce((it,be)=>Math.max(it,be.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach($=>$()),this._onDoneFns=[])}init(){this.players.forEach($=>$.init())}onStart($){this._onStartFns.push($)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach($=>$()),this._onStartFns=[])}onDone($){this._onDoneFns.push($)}onDestroy($){this._onDestroyFns.push($)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach($=>$.play())}pause(){this.players.forEach($=>$.pause())}restart(){this.players.forEach($=>$.restart())}finish(){this._onFinish(),this.players.forEach($=>$.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach($=>$.destroy()),this._onDestroyFns.forEach($=>$()),this._onDestroyFns=[])}reset(){this.players.forEach($=>$.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition($){const J=$*this.totalTime;this.players.forEach(te=>{const he=te.totalTime?Math.min(1,J/te.totalTime):1;te.setPosition(he)})}getPosition(){const $=this.players.reduce((J,te)=>null===J||te.totalTime>J.totalTime?te:J,null);return null!=$?$.getPosition():0}beforeDestroy(){this.players.forEach($=>{$.beforeDestroy&&$.beforeDestroy()})}triggerCallback($){const J="start"==$?this._onStartFns:this._onDoneFns;J.forEach(te=>te()),J.length=0}}const U="!"},5664:(z,o,a)=>{"use strict";a.d(o,{$s:()=>be,Em:()=>me,X6:()=>we,ic:()=>H,kH:()=>At,qV:()=>Ie,qm:()=>Je,rt:()=>Ee,tE:()=>Ft,yG:()=>ze});var n=a(9808),h=a(5e3),_=a(925),u=a(7579),r=a(727),c=a(1135),d=a(9646),p=a(1159),y=a(8505),f=a(8372),b=a(9300),v=a(4004),m=a(5698),C=a(5684),M=a(1884),O=a(2722),P=a(3191),N=a(7144),Y=a(5113);function J(ve,se){return(ve.getAttribute(se)||"").match(/\S+/g)||[]}const he="cdk-describedby-message",Fe="cdk-describedby-host";let it=0,be=(()=>{class ve{constructor(ae,j){this._platform=j,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+it++,this._document=ae,this._id=(0,h.inject)(h.APP_ID)+"-"+it++}describe(ae,j,Me){if(!this._canBeDescribed(ae,j))return;const vt=ke(j,Me);"string"!=typeof j?(ie(j,this._id),this._messageRegistry.set(vt,{messageElement:j,referenceCount:0})):this._messageRegistry.has(vt)||this._createMessageElement(j,Me),this._isElementDescribedByMessage(ae,vt)||this._addMessageReference(ae,vt)}removeDescription(ae,j,Me){var vt;if(!j||!this._isElementNode(ae))return;const Ge=ke(j,Me);if(this._isElementDescribedByMessage(ae,Ge)&&this._removeMessageReference(ae,Ge),"string"==typeof j){const bt=this._messageRegistry.get(Ge);bt&&0===bt.referenceCount&&this._deleteMessageElement(Ge)}0===(null===(vt=this._messagesContainer)||void 0===vt?void 0:vt.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var ae;const j=this._document.querySelectorAll(`[${Fe}="${this._id}"]`);for(let Me=0;Me<j.length;Me++)this._removeCdkDescribedByReferenceIds(j[Me]),j[Me].removeAttribute(Fe);null===(ae=this._messagesContainer)||void 0===ae||ae.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(ae,j){const Me=this._document.createElement("div");ie(Me,this._id),Me.textContent=ae,j&&Me.setAttribute("role",j),this._createMessagesContainer(),this._messagesContainer.appendChild(Me),this._messageRegistry.set(ke(ae,j),{messageElement:Me,referenceCount:0})}_deleteMessageElement(ae){var j,Me;null===(Me=null===(j=this._messageRegistry.get(ae))||void 0===j?void 0:j.messageElement)||void 0===Me||Me.remove(),this._messageRegistry.delete(ae)}_createMessagesContainer(){if(this._messagesContainer)return;const ae="cdk-describedby-message-container",j=this._document.querySelectorAll(`.${ae}[platform="server"]`);for(let vt=0;vt<j.length;vt++)j[vt].remove();const Me=this._document.createElement("div");Me.style.visibility="hidden",Me.classList.add(ae),Me.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&Me.setAttribute("platform","server"),this._document.body.appendChild(Me),this._messagesContainer=Me}_removeCdkDescribedByReferenceIds(ae){const j=J(ae,"aria-describedby").filter(Me=>0!=Me.indexOf(he));ae.setAttribute("aria-describedby",j.join(" "))}_addMessageReference(ae,j){const Me=this._messageRegistry.get(j);(function G(ve,se,ae){const j=J(ve,se);j.some(Me=>Me.trim()==ae.trim())||(j.push(ae.trim()),ve.setAttribute(se,j.join(" ")))})(ae,"aria-describedby",Me.messageElement.id),ae.setAttribute(Fe,this._id),Me.referenceCount++}_removeMessageReference(ae,j){const Me=this._messageRegistry.get(j);Me.referenceCount--,function $(ve,se,ae){const Me=J(ve,se).filter(vt=>vt!=ae.trim());Me.length?ve.setAttribute(se,Me.join(" ")):ve.removeAttribute(se)}(ae,"aria-describedby",Me.messageElement.id),ae.removeAttribute(Fe)}_isElementDescribedByMessage(ae,j){const Me=J(ae,"aria-describedby"),vt=this._messageRegistry.get(j),Ge=vt&&vt.messageElement.id;return!!Ge&&-1!=Me.indexOf(Ge)}_canBeDescribed(ae,j){if(!this._isElementNode(ae))return!1;if(j&&"object"==typeof j)return!0;const Me=null==j?"":`${j}`.trim(),vt=ae.getAttribute("aria-label");return!(!Me||vt&&vt.trim()===Me)}_isElementNode(ae){return ae.nodeType===this._document.ELEMENT_NODE}}return ve.\u0275fac=function(ae){return new(ae||ve)(h.\u0275\u0275inject(n.DOCUMENT),h.\u0275\u0275inject(_.t4))},ve.\u0275prov=h.\u0275\u0275defineInjectable({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})();function ke(ve,se){return"string"==typeof ve?`${se||""}/${ve}`:ve}function ie(ve,se){ve.id||(ve.id=`${he}-${se}-${it++}`)}class me extends class Ae{constructor(se){this._items=se,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new u.x,this._typeaheadSubscription=r.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=ae=>ae.disabled,this._pressedLetters=[],this.tabOut=new u.x,this.change=new u.x,se instanceof h.QueryList&&se.changes.subscribe(ae=>{if(this._activeItem){const Me=ae.toArray().indexOf(this._activeItem);Me>-1&&Me!==this._activeItemIndex&&(this._activeItemIndex=Me)}})}skipPredicate(se){return this._skipPredicateFn=se,this}withWrap(se=!0){return this._wrap=se,this}withVerticalOrientation(se=!0){return this._vertical=se,this}withHorizontalOrientation(se){return this._horizontal=se,this}withAllowedModifierKeys(se){return this._allowedModifierKeys=se,this}withTypeAhead(se=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,y.b)(ae=>this._pressedLetters.push(ae)),(0,f.b)(se),(0,b.h)(()=>this._pressedLetters.length>0),(0,v.U)(()=>this._pressedLetters.join(""))).subscribe(ae=>{const j=this._getItemsArray();for(let Me=1;Me<j.length+1;Me++){const vt=(this._activeItemIndex+Me)%j.length,Ge=j[vt];if(!this._skipPredicateFn(Ge)&&0===Ge.getLabel().toUpperCase().trim().indexOf(ae)){this.setActiveItem(vt);break}}this._pressedLetters=[]}),this}withHomeAndEnd(se=!0){return this._homeAndEnd=se,this}setActiveItem(se){const ae=this._activeItem;this.updateActiveItem(se),this._activeItem!==ae&&this.change.next(this._activeItemIndex)}onKeydown(se){const ae=se.keyCode,Me=["altKey","ctrlKey","metaKey","shiftKey"].every(vt=>!se[vt]||this._allowedModifierKeys.indexOf(vt)>-1);switch(ae){case p.Mf:return void this.tabOut.next();case p.JH:if(this._vertical&&Me){this.setNextItemActive();break}return;case p.LH:if(this._vertical&&Me){this.setPreviousItemActive();break}return;case p.SV:if(this._horizontal&&Me){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case p.oh:if(this._horizontal&&Me){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case p.Sd:if(this._homeAndEnd&&Me){this.setFirstItemActive();break}return;case p.uR:if(this._homeAndEnd&&Me){this.setLastItemActive();break}return;default:return void((Me||(0,p.Vb)(se,"shiftKey"))&&(se.key&&1===se.key.length?this._letterKeyStream.next(se.key.toLocaleUpperCase()):(ae>=p.A&&ae<=p.Z||ae>=p.xE&&ae<=p.aO)&&this._letterKeyStream.next(String.fromCharCode(ae))))}this._pressedLetters=[],se.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(se){const ae=this._getItemsArray(),j="number"==typeof se?se:ae.indexOf(se),Me=ae[j];this._activeItem=null==Me?null:Me,this._activeItemIndex=j}_setActiveItemByDelta(se){this._wrap?this._setActiveInWrapMode(se):this._setActiveInDefaultMode(se)}_setActiveInWrapMode(se){const ae=this._getItemsArray();for(let j=1;j<=ae.length;j++){const Me=(this._activeItemIndex+se*j+ae.length)%ae.length;if(!this._skipPredicateFn(ae[Me]))return void this.setActiveItem(Me)}}_setActiveInDefaultMode(se){this._setActiveItemByIndex(this._activeItemIndex+se,se)}_setActiveItemByIndex(se,ae){const j=this._getItemsArray();if(j[se]){for(;this._skipPredicateFn(j[se]);)if(!j[se+=ae])return;this.setActiveItem(se)}}_getItemsArray(){return this._items instanceof h.QueryList?this._items.toArray():this._items}}{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(se){return this._origin=se,this}setActiveItem(se){super.setActiveItem(se),this.activeItem&&this.activeItem.focus(this._origin)}}let H=(()=>{class ve{constructor(ae){this._platform=ae}isDisabled(ae){return ae.hasAttribute("disabled")}isVisible(ae){return function B(ve){return!!(ve.offsetWidth||ve.offsetHeight||"function"==typeof ve.getClientRects&&ve.getClientRects().length)}(ae)&&"visible"===getComputedStyle(ae).visibility}isTabbable(ae){if(!this._platform.isBrowser)return!1;const j=function re(ve){try{return ve.frameElement}catch(se){return null}}(function ut(ve){return ve.ownerDocument&&ve.ownerDocument.defaultView||window}(ae));if(j&&(-1===lt(j)||!this.isVisible(j)))return!1;let Me=ae.nodeName.toLowerCase(),vt=lt(ae);return ae.hasAttribute("contenteditable")?-1!==vt:!("iframe"===Me||"object"===Me||this._platform.WEBKIT&&this._platform.IOS&&!function yt(ve){let se=ve.nodeName.toLowerCase(),ae="input"===se&&ve.type;return"text"===ae||"password"===ae||"select"===se||"textarea"===se}(ae))&&("audio"===Me?!!ae.hasAttribute("controls")&&-1!==vt:"video"===Me?-1!==vt&&(null!==vt||this._platform.FIREFOX||ae.hasAttribute("controls")):ae.tabIndex>=0)}isFocusable(ae,j){return function _t(ve){return!function ge(ve){return function Pe(ve){return"input"==ve.nodeName.toLowerCase()}(ve)&&"hidden"==ve.type}(ve)&&(function ue(ve){let se=ve.nodeName.toLowerCase();return"input"===se||"select"===se||"button"===se||"textarea"===se}(ve)||function Te(ve){return function Ce(ve){return"a"==ve.nodeName.toLowerCase()}(ve)&&ve.hasAttribute("href")}(ve)||ve.hasAttribute("contenteditable")||$e(ve))}(ae)&&!this.isDisabled(ae)&&((null==j?void 0:j.ignoreVisibility)||this.isVisible(ae))}}return ve.\u0275fac=function(ae){return new(ae||ve)(h.\u0275\u0275inject(_.t4))},ve.\u0275prov=h.\u0275\u0275defineInjectable({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})();function $e(ve){if(!ve.hasAttribute("tabindex")||void 0===ve.tabIndex)return!1;let se=ve.getAttribute("tabindex");return!(!se||isNaN(parseInt(se,10)))}function lt(ve){if(!$e(ve))return null;const se=parseInt(ve.getAttribute("tabindex")||"",10);return isNaN(se)?-1:se}class He{constructor(se,ae,j,Me,vt=!1){this._element=se,this._checker=ae,this._ngZone=j,this._document=Me,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,vt||this.attachAnchors()}get enabled(){return this._enabled}set enabled(se){this._enabled=se,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(se,this._startAnchor),this._toggleAnchorTabIndex(se,this._endAnchor))}destroy(){const se=this._startAnchor,ae=this._endAnchor;se&&(se.removeEventListener("focus",this.startAnchorListener),se.remove()),ae&&(ae.removeEventListener("focus",this.endAnchorListener),ae.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(se){return new Promise(ae=>{this._executeOnStable(()=>ae(this.focusInitialElement(se)))})}focusFirstTabbableElementWhenReady(se){return new Promise(ae=>{this._executeOnStable(()=>ae(this.focusFirstTabbableElement(se)))})}focusLastTabbableElementWhenReady(se){return new Promise(ae=>{this._executeOnStable(()=>ae(this.focusLastTabbableElement(se)))})}_getRegionBoundary(se){const ae=this._element.querySelectorAll(`[cdk-focus-region-${se}], [cdkFocusRegion${se}], [cdk-focus-${se}]`);return"start"==se?ae.length?ae[0]:this._getFirstTabbableElement(this._element):ae.length?ae[ae.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(se){const ae=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(ae){if(!this._checker.isFocusable(ae)){const j=this._getFirstTabbableElement(ae);return null==j||j.focus(se),!!j}return ae.focus(se),!0}return this.focusFirstTabbableElement(se)}focusFirstTabbableElement(se){const ae=this._getRegionBoundary("start");return ae&&ae.focus(se),!!ae}focusLastTabbableElement(se){const ae=this._getRegionBoundary("end");return ae&&ae.focus(se),!!ae}hasAttached(){return this._hasAttached}_getFirstTabbableElement(se){if(this._checker.isFocusable(se)&&this._checker.isTabbable(se))return se;const ae=se.children;for(let j=0;j<ae.length;j++){const Me=ae[j].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(ae[j]):null;if(Me)return Me}return null}_getLastTabbableElement(se){if(this._checker.isFocusable(se)&&this._checker.isTabbable(se))return se;const ae=se.children;for(let j=ae.length-1;j>=0;j--){const Me=ae[j].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(ae[j]):null;if(Me)return Me}return null}_createAnchor(){const se=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,se),se.classList.add("cdk-visually-hidden"),se.classList.add("cdk-focus-trap-anchor"),se.setAttribute("aria-hidden","true"),se}_toggleAnchorTabIndex(se,ae){se?ae.setAttribute("tabindex","0"):ae.removeAttribute("tabindex")}toggleAnchors(se){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(se,this._startAnchor),this._toggleAnchorTabIndex(se,this._endAnchor))}_executeOnStable(se){this._ngZone.isStable?se():this._ngZone.onStable.pipe((0,m.q)(1)).subscribe(se)}}let Ie=(()=>{class ve{constructor(ae,j,Me){this._checker=ae,this._ngZone=j,this._document=Me}create(ae,j=!1){return new He(ae,this._checker,this._ngZone,this._document,j)}}return ve.\u0275fac=function(ae){return new(ae||ve)(h.\u0275\u0275inject(H),h.\u0275\u0275inject(h.NgZone),h.\u0275\u0275inject(n.DOCUMENT))},ve.\u0275prov=h.\u0275\u0275defineInjectable({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})();function we(ve){return 0===ve.buttons||0===ve.offsetX&&0===ve.offsetY}function ze(ve){const se=ve.touches&&ve.touches[0]||ve.changedTouches&&ve.changedTouches[0];return!(!se||-1!==se.identifier||null!=se.radiusX&&1!==se.radiusX||null!=se.radiusY&&1!==se.radiusY)}const Be=new h.InjectionToken("cdk-input-modality-detector-options"),We={ignoreKeys:[p.zL,p.jx,p.b2,p.MW,p.JU]},Ue=(0,_.i$)({passive:!0,capture:!0});let dt=(()=>{class ve{constructor(ae,j,Me,vt){this._platform=ae,this._mostRecentTarget=null,this._modality=new c.X(null),this._lastTouchMs=0,this._onKeydown=Ge=>{var bt,X;null!==(X=null===(bt=this._options)||void 0===bt?void 0:bt.ignoreKeys)&&void 0!==X&&X.some(Oe=>Oe===Ge.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,_.sA)(Ge))},this._onMousedown=Ge=>{Date.now()-this._lastTouchMs<650||(this._modality.next(we(Ge)?"keyboard":"mouse"),this._mostRecentTarget=(0,_.sA)(Ge))},this._onTouchstart=Ge=>{ze(Ge)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,_.sA)(Ge))},this._options=Object.assign(Object.assign({},We),vt),this.modalityDetected=this._modality.pipe((0,C.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,M.x)()),ae.isBrowser&&j.runOutsideAngular(()=>{Me.addEventListener("keydown",this._onKeydown,Ue),Me.addEventListener("mousedown",this._onMousedown,Ue),Me.addEventListener("touchstart",this._onTouchstart,Ue)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Ue),document.removeEventListener("mousedown",this._onMousedown,Ue),document.removeEventListener("touchstart",this._onTouchstart,Ue))}}return ve.\u0275fac=function(ae){return new(ae||ve)(h.\u0275\u0275inject(_.t4),h.\u0275\u0275inject(h.NgZone),h.\u0275\u0275inject(n.DOCUMENT),h.\u0275\u0275inject(Be,8))},ve.\u0275prov=h.\u0275\u0275defineInjectable({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})();const tt=new h.InjectionToken("cdk-focus-monitor-default-options"),mt=(0,_.i$)({passive:!0,capture:!0});let Ft=(()=>{class ve{constructor(ae,j,Me,vt,Ge){this._ngZone=ae,this._platform=j,this._inputModalityDetector=Me,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 u.x,this._rootNodeFocusAndBlurListener=bt=>{for(let Oe=(0,_.sA)(bt);Oe;Oe=Oe.parentElement)"focus"===bt.type?this._onFocus(bt,Oe):this._onBlur(bt,Oe)},this._document=vt,this._detectionMode=(null==Ge?void 0:Ge.detectionMode)||0}monitor(ae,j=!1){const Me=(0,P.fI)(ae);if(!this._platform.isBrowser||1!==Me.nodeType)return(0,d.of)(null);const vt=(0,_.kV)(Me)||this._getDocument(),Ge=this._elementInfo.get(Me);if(Ge)return j&&(Ge.checkChildren=!0),Ge.subject;const bt={checkChildren:j,subject:new u.x,rootNode:vt};return this._elementInfo.set(Me,bt),this._registerGlobalListeners(bt),bt.subject}stopMonitoring(ae){const j=(0,P.fI)(ae),Me=this._elementInfo.get(j);Me&&(Me.subject.complete(),this._setClasses(j),this._elementInfo.delete(j),this._removeGlobalListeners(Me))}focusVia(ae,j,Me){const vt=(0,P.fI)(ae);vt===this._getDocument().activeElement?this._getClosestElementsInfo(vt).forEach(([bt,X])=>this._originChanged(bt,j,X)):(this._setOrigin(j),"function"==typeof vt.focus&&vt.focus(Me))}ngOnDestroy(){this._elementInfo.forEach((ae,j)=>this.stopMonitoring(j))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(ae){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(ae)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:ae&&this._isLastInteractionFromInputLabel(ae)?"mouse":"program"}_shouldBeAttributedToTouch(ae){return 1===this._detectionMode||!(null==ae||!ae.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(ae,j){ae.classList.toggle("cdk-focused",!!j),ae.classList.toggle("cdk-touch-focused","touch"===j),ae.classList.toggle("cdk-keyboard-focused","keyboard"===j),ae.classList.toggle("cdk-mouse-focused","mouse"===j),ae.classList.toggle("cdk-program-focused","program"===j)}_setOrigin(ae,j=!1){this._ngZone.runOutsideAngular(()=>{this._origin=ae,this._originFromTouchInteraction="touch"===ae&&j,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(ae,j){const Me=this._elementInfo.get(j),vt=(0,_.sA)(ae);!Me||!Me.checkChildren&&j!==vt||this._originChanged(j,this._getFocusOrigin(vt),Me)}_onBlur(ae,j){const Me=this._elementInfo.get(j);!Me||Me.checkChildren&&ae.relatedTarget instanceof Node&&j.contains(ae.relatedTarget)||(this._setClasses(j),this._emitOrigin(Me,null))}_emitOrigin(ae,j){ae.subject.observers.length&&this._ngZone.run(()=>ae.subject.next(j))}_registerGlobalListeners(ae){if(!this._platform.isBrowser)return;const j=ae.rootNode,Me=this._rootNodeFocusListenerCount.get(j)||0;Me||this._ngZone.runOutsideAngular(()=>{j.addEventListener("focus",this._rootNodeFocusAndBlurListener,mt),j.addEventListener("blur",this._rootNodeFocusAndBlurListener,mt)}),this._rootNodeFocusListenerCount.set(j,Me+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,O.R)(this._stopInputModalityDetector)).subscribe(vt=>{this._setOrigin(vt,!0)}))}_removeGlobalListeners(ae){const j=ae.rootNode;if(this._rootNodeFocusListenerCount.has(j)){const Me=this._rootNodeFocusListenerCount.get(j);Me>1?this._rootNodeFocusListenerCount.set(j,Me-1):(j.removeEventListener("focus",this._rootNodeFocusAndBlurListener,mt),j.removeEventListener("blur",this._rootNodeFocusAndBlurListener,mt),this._rootNodeFocusListenerCount.delete(j))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(ae,j,Me){this._setClasses(ae,j),this._emitOrigin(Me,j),this._lastFocusOrigin=j}_getClosestElementsInfo(ae){const j=[];return this._elementInfo.forEach((Me,vt)=>{(vt===ae||Me.checkChildren&&vt.contains(ae))&&j.push([vt,Me])}),j}_isLastInteractionFromInputLabel(ae){const{_mostRecentTarget:j,mostRecentModality:Me}=this._inputModalityDetector;if("mouse"!==Me||!j||j===ae||"INPUT"!==ae.nodeName&&"TEXTAREA"!==ae.nodeName||ae.disabled)return!1;const vt=ae.labels;if(vt)for(let Ge=0;Ge<vt.length;Ge++)if(vt[Ge].contains(j))return!0;return!1}}return ve.\u0275fac=function(ae){return new(ae||ve)(h.\u0275\u0275inject(h.NgZone),h.\u0275\u0275inject(_.t4),h.\u0275\u0275inject(dt),h.\u0275\u0275inject(n.DOCUMENT,8),h.\u0275\u0275inject(tt,8))},ve.\u0275prov=h.\u0275\u0275defineInjectable({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})(),At=(()=>{class ve{constructor(ae,j){this._elementRef=ae,this._focusMonitor=j,this.cdkFocusChange=new h.EventEmitter}ngAfterViewInit(){const ae=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(ae,1===ae.nodeType&&ae.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(j=>this.cdkFocusChange.emit(j))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return ve.\u0275fac=function(ae){return new(ae||ve)(h.\u0275\u0275directiveInject(h.ElementRef),h.\u0275\u0275directiveInject(Ft))},ve.\u0275dir=h.\u0275\u0275defineDirective({type:ve,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),ve})();const Yt="cdk-high-contrast-black-on-white",Nt="cdk-high-contrast-white-on-black",rt="cdk-high-contrast-active";let Je=(()=>{class ve{constructor(ae,j){this._platform=ae,this._document=j,this._breakpointSubscription=(0,h.inject)(Y.BreakpointObserver).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const ae=this._document.createElement("div");ae.style.backgroundColor="rgb(1,2,3)",ae.style.position="absolute",this._document.body.appendChild(ae);const j=this._document.defaultView||window,Me=j&&j.getComputedStyle?j.getComputedStyle(ae):null,vt=(Me&&Me.backgroundColor||"").replace(/ /g,"");switch(ae.remove(),vt){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const ae=this._document.body.classList;ae.remove(rt,Yt,Nt),this._hasCheckedHighContrastMode=!0;const j=this.getHighContrastMode();1===j?ae.add(rt,Yt):2===j&&ae.add(rt,Nt)}}}return ve.\u0275fac=function(ae){return new(ae||ve)(h.\u0275\u0275inject(_.t4),h.\u0275\u0275inject(n.DOCUMENT))},ve.\u0275prov=h.\u0275\u0275defineInjectable({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})(),Ee=(()=>{class ve{constructor(ae){ae._applyBodyHighContrastModeCssClasses()}}return ve.\u0275fac=function(ae){return new(ae||ve)(h.\u0275\u0275inject(Je))},ve.\u0275mod=h.\u0275\u0275defineNgModule({type:ve}),ve.\u0275inj=h.\u0275\u0275defineInjector({imports:[N.Q8]}),ve})()},226:(z,o,a)=>{"use strict";a.d(o,{Is:()=>d,vT:()=>y});var n=a(5e3),h=a(9808);const _=new n.InjectionToken("cdk-dir-doc",{providedIn:"root",factory:function u(){return(0,n.inject)(h.DOCUMENT)}}),r=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let d=(()=>{class f{constructor(v){if(this.value="ltr",this.change=new n.EventEmitter,v){const C=v.documentElement?v.documentElement.dir:null;this.value=function c(f){const b=(null==f?void 0:f.toLowerCase())||"";return"auto"===b&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?r.test(navigator.language)?"rtl":"ltr":"rtl"===b?"rtl":"ltr"}((v.body?v.body.dir:null)||C||"ltr")}}ngOnDestroy(){this.change.complete()}}return f.\u0275fac=function(v){return new(v||f)(n.\u0275\u0275inject(_,8))},f.\u0275prov=n.\u0275\u0275defineInjectable({token:f,factory:f.\u0275fac,providedIn:"root"}),f})(),y=(()=>{class f{}return f.\u0275fac=function(v){return new(v||f)},f.\u0275mod=n.\u0275\u0275defineNgModule({type:f}),f.\u0275inj=n.\u0275\u0275defineInjector({}),f})()},3191:(z,o,a)=>{"use strict";a.d(o,{Eq:()=>r,HM:()=>c,Ig:()=>h,fI:()=>d,su:()=>_,t6:()=>u});var n=a(5e3);function h(y){return null!=y&&"false"!=`${y}`}function _(y,f=0){return u(y)?Number(y):f}function u(y){return!isNaN(parseFloat(y))&&!isNaN(Number(y))}function r(y){return Array.isArray(y)?y:[y]}function c(y){return null==y?"":"string"==typeof y?y:`${y}px`}function d(y){return y instanceof n.ElementRef?y.nativeElement:y}},449:(z,o,a)=>{"use strict";a.d(o,{Ov:()=>p,Z9:()=>u,eX:()=>d,k:()=>b,o2:()=>_,yy:()=>c});var n=a(7579),h=a(5e3);class _{}function u(v){return v&&"function"==typeof v.connect}class c{applyChanges(m,C,M,O,P){m.forEachOperation((N,Y,U)=>{let G,$;if(null==N.previousIndex){const J=M(N,Y,U);G=C.createEmbeddedView(J.templateRef,J.context,J.index),$=1}else null==U?(C.remove(Y),$=3):(G=C.get(Y),C.move(G,U),$=2);P&&P({context:null==G?void 0:G.context,operation:$,record:N})})}detach(){}}class d{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(m,C,M,O,P){m.forEachOperation((N,Y,U)=>{let G,$;null==N.previousIndex?(G=this._insertView(()=>M(N,Y,U),U,C,O(N)),$=G?1:0):null==U?(this._detachAndCacheView(Y,C),$=3):(G=this._moveView(Y,U,C,O(N)),$=2),P&&P({context:null==G?void 0:G.context,operation:$,record:N})})}detach(){for(const m of this._viewCache)m.destroy();this._viewCache=[]}_insertView(m,C,M,O){const P=this._insertViewFromCache(C,M);if(P)return void(P.context.$implicit=O);const N=m();return M.createEmbeddedView(N.templateRef,N.context,N.index)}_detachAndCacheView(m,C){const M=C.detach(m);this._maybeCacheView(M,C)}_moveView(m,C,M,O){const P=M.get(m);return M.move(P,C),P.context.$implicit=O,P}_maybeCacheView(m,C){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(m);else{const M=C.indexOf(m);-1===M?m.destroy():C.remove(M)}}_insertViewFromCache(m,C){const M=this._viewCache.pop();return M&&C.insert(M,m),M||null}}class p{constructor(m=!1,C,M=!0,O){this._multiple=m,this._emitChanges=M,this.compareWith=O,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new n.x,C&&C.length&&(m?C.forEach(P=>this._markSelected(P)):this._markSelected(C[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...m){this._verifyValueAssignment(m),m.forEach(M=>this._markSelected(M));const C=this._hasQueuedChanges();return this._emitChangeEvent(),C}deselect(...m){this._verifyValueAssignment(m),m.forEach(M=>this._unmarkSelected(M));const C=this._hasQueuedChanges();return this._emitChangeEvent(),C}setSelection(...m){this._verifyValueAssignment(m);const C=this.selected,M=new Set(m);m.forEach(P=>this._markSelected(P)),C.filter(P=>!M.has(P)).forEach(P=>this._unmarkSelected(P));const O=this._hasQueuedChanges();return this._emitChangeEvent(),O}toggle(m){return this.isSelected(m)?this.deselect(m):this.select(m)}clear(m=!0){this._unmarkAll();const C=this._hasQueuedChanges();return m&&this._emitChangeEvent(),C}isSelected(m){if(this.compareWith){for(const C of this._selection)if(this.compareWith(C,m))return!0;return!1}return this._selection.has(m)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(m){this._multiple&&this.selected&&this._selected.sort(m)}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(m){this.isSelected(m)||(this._multiple||this._unmarkAll(),this.isSelected(m)||this._selection.add(m),this._emitChanges&&this._selectedToEmit.push(m))}_unmarkSelected(m){this.isSelected(m)&&(this._selection.delete(m),this._emitChanges&&this._deselectedToEmit.push(m))}_unmarkAll(){this.isEmpty()||this._selection.forEach(m=>this._unmarkSelected(m))}_verifyValueAssignment(m){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}}const b=new h.InjectionToken("_ViewRepeater")},1159:(z,o,a)=>{"use strict";a.d(o,{A:()=>ge,JH:()=>U,JU:()=>c,K5:()=>r,LH:()=>N,L_:()=>v,MW:()=>ye,Mf:()=>_,SV:()=>Y,Sd:()=>O,Vb:()=>kn,Z:()=>W,ZH:()=>h,aO:()=>V,b2:()=>On,hY:()=>b,jx:()=>d,oh:()=>P,uR:()=>M,xE:()=>he,yY:()=>te,zL:()=>p});const h=8,_=9,r=13,c=16,d=17,p=18,b=27,v=32,M=35,O=36,P=37,N=38,Y=39,U=40,te=46,he=48,V=57,ge=65,W=90,ye=91,On=224;function kn(En,...Nn){return Nn.length?Nn.some(Ti=>En[Ti]):En.altKey||En.shiftKey||En.ctrlKey||En.metaKey}},5113:(z,o,a)=>{"use strict";a.r(o),a.d(o,{BreakpointObserver:()=>U,Breakpoints:()=>$,LayoutModule:()=>C,MediaMatcher:()=>P});var n=a(5e3),h=a(3191),_=a(7579),u=a(9841),r=a(7272),c=a(8306),d=a(5698),p=a(5684),y=a(8372),f=a(4004),b=a(8675),v=a(2722),m=a(925);let C=(()=>{class J{}return J.\u0275fac=function(he){return new(he||J)},J.\u0275mod=n.\u0275\u0275defineNgModule({type:J}),J.\u0275inj=n.\u0275\u0275defineInjector({}),J})();const M=new Set;let O,P=(()=>{class J{constructor(he){this._platform=he,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Y}matchMedia(he){return(this._platform.WEBKIT||this._platform.BLINK)&&function N(J){if(!M.has(J))try{O||(O=document.createElement("style"),O.setAttribute("type","text/css"),document.head.appendChild(O)),O.sheet&&(O.sheet.insertRule(`@media ${J} {body{ }}`,0),M.add(J))}catch(te){console.error(te)}}(he),this._matchMedia(he)}}return J.\u0275fac=function(he){return new(he||J)(n.\u0275\u0275inject(m.t4))},J.\u0275prov=n.\u0275\u0275defineInjectable({token:J,factory:J.\u0275fac,providedIn:"root"}),J})();function Y(J){return{matches:"all"===J||""===J,media:J,addListener:()=>{},removeListener:()=>{}}}let U=(()=>{class J{constructor(he,Fe){this._mediaMatcher=he,this._zone=Fe,this._queries=new Map,this._destroySubject=new _.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(he){return G((0,h.Eq)(he)).some(it=>this._registerQuery(it).mql.matches)}observe(he){const it=G((0,h.Eq)(he)).map(ke=>this._registerQuery(ke).observable);let be=(0,u.a)(it);return be=(0,r.z)(be.pipe((0,d.q)(1)),be.pipe((0,p.T)(1),(0,y.b)(0))),be.pipe((0,f.U)(ke=>{const ie={matches:!1,breakpoints:{}};return ke.forEach(({matches:Ae,query:oe})=>{ie.matches=ie.matches||Ae,ie.breakpoints[oe]=Ae}),ie}))}_registerQuery(he){if(this._queries.has(he))return this._queries.get(he);const Fe=this._mediaMatcher.matchMedia(he),be={observable:new c.y(ke=>{const ie=Ae=>this._zone.run(()=>ke.next(Ae));return Fe.addListener(ie),()=>{Fe.removeListener(ie)}}).pipe((0,b.O)(Fe),(0,f.U)(({matches:ke})=>({query:he,matches:ke})),(0,v.R)(this._destroySubject)),mql:Fe};return this._queries.set(he,be),be}}return J.\u0275fac=function(he){return new(he||J)(n.\u0275\u0275inject(P),n.\u0275\u0275inject(n.NgZone))},J.\u0275prov=n.\u0275\u0275defineInjectable({token:J,factory:J.\u0275fac,providedIn:"root"}),J})();function G(J){return J.map(te=>te.split(",")).reduce((te,he)=>te.concat(he)).map(te=>te.trim())}const $={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:(z,o,a)=>{"use strict";a.d(o,{Q8:()=>y,wD:()=>p});var n=a(3191),h=a(5e3),_=a(8306),u=a(7579),r=a(8372);let c=(()=>{class f{create(v){return"undefined"==typeof MutationObserver?null:new MutationObserver(v)}}return f.\u0275fac=function(v){return new(v||f)},f.\u0275prov=h.\u0275\u0275defineInjectable({token:f,factory:f.\u0275fac,providedIn:"root"}),f})(),d=(()=>{class f{constructor(v){this._mutationObserverFactory=v,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((v,m)=>this._cleanupObserver(m))}observe(v){const m=(0,n.fI)(v);return new _.y(C=>{const O=this._observeElement(m).subscribe(C);return()=>{O.unsubscribe(),this._unobserveElement(m)}})}_observeElement(v){if(this._observedElements.has(v))this._observedElements.get(v).count++;else{const m=new u.x,C=this._mutationObserverFactory.create(M=>m.next(M));C&&C.observe(v,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(v,{observer:C,stream:m,count:1})}return this._observedElements.get(v).stream}_unobserveElement(v){this._observedElements.has(v)&&(this._observedElements.get(v).count--,this._observedElements.get(v).count||this._cleanupObserver(v))}_cleanupObserver(v){if(this._observedElements.has(v)){const{observer:m,stream:C}=this._observedElements.get(v);m&&m.disconnect(),C.complete(),this._observedElements.delete(v)}}}return f.\u0275fac=function(v){return new(v||f)(h.\u0275\u0275inject(c))},f.\u0275prov=h.\u0275\u0275defineInjectable({token:f,factory:f.\u0275fac,providedIn:"root"}),f})(),p=(()=>{class f{constructor(v,m,C){this._contentObserver=v,this._elementRef=m,this._ngZone=C,this.event=new h.EventEmitter,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(v){this._disabled=(0,n.Ig)(v),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(v){this._debounce=(0,n.su)(v),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const v=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?v.pipe((0,r.b)(this.debounce)):v).subscribe(this.event)})}_unsubscribe(){var v;null===(v=this._currentSubscription)||void 0===v||v.unsubscribe()}}return f.\u0275fac=function(v){return new(v||f)(h.\u0275\u0275directiveInject(d),h.\u0275\u0275directiveInject(h.ElementRef),h.\u0275\u0275directiveInject(h.NgZone))},f.\u0275dir=h.\u0275\u0275defineDirective({type:f,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),f})(),y=(()=>{class f{}return f.\u0275fac=function(v){return new(v||f)},f.\u0275mod=h.\u0275\u0275defineNgModule({type:f}),f.\u0275inj=h.\u0275\u0275defineInjector({providers:[c]}),f})()},1314:(z,o,a)=>{"use strict";a.d(o,{Iu:()=>be,U8:()=>Qe,X_:()=>$,Xj:()=>ke,aV:()=>yt});var n=a(495),h=a(9808),_=a(5e3),u=a(3191),r=a(925),c=a(226),d=a(7429),p=a(7579),y=a(727),f=a(6451),b=a(5698),v=a(2722);const m=(0,r.Mq)();class C{constructor(K,we){this._viewportRuler=K,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=we}attach(){}enable(){if(this._canBeEnabled()){const K=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=K.style.left||"",this._previousHTMLStyles.top=K.style.top||"",K.style.left=(0,u.HM)(-this._previousScrollPosition.left),K.style.top=(0,u.HM)(-this._previousScrollPosition.top),K.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const K=this._document.documentElement,ze=K.style,Be=this._document.body.style,We=ze.scrollBehavior||"",_e=Be.scrollBehavior||"";this._isEnabled=!1,ze.left=this._previousHTMLStyles.left,ze.top=this._previousHTMLStyles.top,K.classList.remove("cdk-global-scrollblock"),m&&(ze.scrollBehavior=Be.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),m&&(ze.scrollBehavior=We,Be.scrollBehavior=_e)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const we=this._document.body,ze=this._viewportRuler.getViewportSize();return we.scrollHeight>ze.height||we.scrollWidth>ze.width}}class O{constructor(K,we,ze,Be){this._scrollDispatcher=K,this._ngZone=we,this._viewportRuler=ze,this._config=Be,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(K){this._overlayRef=K}enable(){if(this._scrollSubscription)return;const K=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=K.subscribe(()=>{const we=this._viewportRuler.getViewportScrollPosition().top;Math.abs(we-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=K.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class P{enable(){}disable(){}attach(){}}function N(Ke,K){return K.some(we=>Ke.bottom<we.top||Ke.top>we.bottom||Ke.right<we.left||Ke.left>we.right)}function Y(Ke,K){return K.some(we=>Ke.top<we.top||Ke.bottom>we.bottom||Ke.left<we.left||Ke.right>we.right)}class U{constructor(K,we,ze,Be){this._scrollDispatcher=K,this._viewportRuler=we,this._ngZone=ze,this._config=Be,this._scrollSubscription=null}attach(K){this._overlayRef=K}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const we=this._overlayRef.overlayElement.getBoundingClientRect(),{width:ze,height:Be}=this._viewportRuler.getViewportSize();N(we,[{width:ze,height:Be,bottom:Be,right:ze,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 G=(()=>{class Ke{constructor(we,ze,Be,We){this._scrollDispatcher=we,this._viewportRuler=ze,this._ngZone=Be,this.noop=()=>new P,this.close=_e=>new O(this._scrollDispatcher,this._ngZone,this._viewportRuler,_e),this.block=()=>new C(this._viewportRuler,this._document),this.reposition=_e=>new U(this._scrollDispatcher,this._viewportRuler,this._ngZone,_e),this._document=We}}return Ke.\u0275fac=function(we){return new(we||Ke)(_.\u0275\u0275inject(n.mF),_.\u0275\u0275inject(n.rL),_.\u0275\u0275inject(_.NgZone),_.\u0275\u0275inject(h.DOCUMENT))},Ke.\u0275prov=_.\u0275\u0275defineInjectable({token:Ke,factory:Ke.\u0275fac,providedIn:"root"}),Ke})();class ${constructor(K){if(this.scrollStrategy=new P,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,K){const we=Object.keys(K);for(const ze of we)void 0!==K[ze]&&(this[ze]=K[ze])}}}class he{constructor(K,we){this.connectionPair=K,this.scrollableViewProperties=we}}class be{constructor(K,we,ze,Be,We,_e,Ue,dt,xe,W=!1){this._portalOutlet=K,this._host=we,this._pane=ze,this._config=Be,this._ngZone=We,this._keyboardDispatcher=_e,this._document=Ue,this._location=dt,this._outsideClickDispatcher=xe,this._animationsDisabled=W,this._backdropElement=null,this._backdropClick=new p.x,this._attachments=new p.x,this._detachments=new p.x,this._locationChanges=y.w0.EMPTY,this._backdropClickHandler=ye=>this._backdropClick.next(ye),this._backdropTransitionendHandler=ye=>{this._disposeBackdrop(ye.target)},this._keydownEvents=new p.x,this._outsidePointerEvents=new p.x,Be.scrollStrategy&&(this._scrollStrategy=Be.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=Be.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(K){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const we=this._portalOutlet.attach(K);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,b.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),"function"==typeof(null==we?void 0:we.onDestroy)&&we.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),we}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const K=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),K}dispose(){var K;const we=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(K=this._host)||void 0===K||K.remove(),this._previousHostParent=this._pane=this._host=null,we&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(K){K!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=K,this.hasAttached()&&(K.attach(this),this.updatePosition()))}updateSize(K){this._config=Object.assign(Object.assign({},this._config),K),this._updateElementSize()}setDirection(K){this._config=Object.assign(Object.assign({},this._config),{direction:K}),this._updateElementDirection()}addPanelClass(K){this._pane&&this._toggleClasses(this._pane,K,!0)}removePanelClass(K){this._pane&&this._toggleClasses(this._pane,K,!1)}getDirection(){const K=this._config.direction;return K?"string"==typeof K?K:K.value:"ltr"}updateScrollStrategy(K){K!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=K,this.hasAttached()&&(K.attach(this),K.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const K=this._pane.style;K.width=(0,u.HM)(this._config.width),K.height=(0,u.HM)(this._config.height),K.minWidth=(0,u.HM)(this._config.minWidth),K.minHeight=(0,u.HM)(this._config.minHeight),K.maxWidth=(0,u.HM)(this._config.maxWidth),K.maxHeight=(0,u.HM)(this._config.maxHeight)}_togglePointerEvents(K){this._pane.style.pointerEvents=K?"":"none"}_attachBackdrop(){const K="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),this._animationsDisabled||"undefined"==typeof requestAnimationFrame?this._backdropElement.classList.add(K):this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(K)})})}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const K=this._backdropElement;if(K){if(this._animationsDisabled)return void this._disposeBackdrop(K);K.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{K.addEventListener("transitionend",this._backdropTransitionendHandler)}),K.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(K)},500))}}_toggleClasses(K,we,ze){const Be=(0,u.Eq)(we||[]).filter(We=>!!We);Be.length&&(ze?K.classList.add(...Be):K.classList.remove(...Be))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const K=this._ngZone.onStable.pipe((0,v.R)((0,f.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),K.unsubscribe())})})}_disposeScrollStrategy(){const K=this._scrollStrategy;K&&(K.disable(),K.detach&&K.detach())}_disposeBackdrop(K){K&&(K.removeEventListener("click",this._backdropClickHandler),K.removeEventListener("transitionend",this._backdropTransitionendHandler),K.remove(),this._backdropElement===K&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}let ke=(()=>{class Ke{constructor(we,ze){this._platform=ze,this._document=we}ngOnDestroy(){var we;null===(we=this._containerElement)||void 0===we||we.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const we="cdk-overlay-container";if(this._platform.isBrowser||(0,r.Oy)()){const Be=this._document.querySelectorAll(`.${we}[platform="server"], .${we}[platform="test"]`);for(let We=0;We<Be.length;We++)Be[We].remove()}const ze=this._document.createElement("div");ze.classList.add(we),(0,r.Oy)()?ze.setAttribute("platform","test"):this._platform.isBrowser||ze.setAttribute("platform","server"),this._document.body.appendChild(ze),this._containerElement=ze}}return Ke.\u0275fac=function(we){return new(we||Ke)(_.\u0275\u0275inject(h.DOCUMENT),_.\u0275\u0275inject(r.t4))},Ke.\u0275prov=_.\u0275\u0275defineInjectable({token:Ke,factory:Ke.\u0275fac,providedIn:"root"}),Ke})();const ie="cdk-overlay-connected-position-bounding-box",Ae=/([A-Za-z%]+)$/;class oe{constructor(K,we,ze,Be,We){this._viewportRuler=we,this._document=ze,this._platform=Be,this._overlayContainer=We,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 p.x,this._resizeSubscription=y.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(K)}get positions(){return this._preferredPositions}attach(K){this._validatePositions(),K.hostElement.classList.add(ie),this._overlayRef=K,this._boundingBox=K.hostElement,this._pane=K.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const K=this._originRect,we=this._overlayRect,ze=this._viewportRect,Be=this._containerRect,We=[];let _e;for(let Ue of this._preferredPositions){let dt=this._getOriginPoint(K,Be,Ue),xe=this._getOverlayPoint(dt,we,Ue),W=this._getOverlayFit(xe,we,ze,Ue);if(W.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(Ue,dt);this._canFitWithFlexibleDimensions(W,xe,ze)?We.push({position:Ue,origin:dt,overlayRect:we,boundingBoxRect:this._calculateBoundingBoxRect(dt,Ue)}):(!_e||_e.overlayFit.visibleArea<W.visibleArea)&&(_e={overlayFit:W,overlayPoint:xe,originPoint:dt,position:Ue,overlayRect:we})}if(We.length){let Ue=null,dt=-1;for(const xe of We){const W=xe.boundingBoxRect.width*xe.boundingBoxRect.height*(xe.position.weight||1);W>dt&&(dt=W,Ue=xe)}return this._isPushed=!1,void this._applyPosition(Ue.position,Ue.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(_e.position,_e.originPoint);this._applyPosition(_e.position,_e.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&me(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(ie),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const K=this._lastPosition;if(K){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const we=this._getOriginPoint(this._originRect,this._containerRect,K);this._applyPosition(K,we)}else this.apply()}withScrollableContainers(K){return this._scrollables=K,this}withPositions(K){return this._preferredPositions=K,-1===K.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(K){return this._viewportMargin=K,this}withFlexibleDimensions(K=!0){return this._hasFlexibleDimensions=K,this}withGrowAfterOpen(K=!0){return this._growAfterOpen=K,this}withPush(K=!0){return this._canPush=K,this}withLockedPosition(K=!0){return this._positionLocked=K,this}setOrigin(K){return this._origin=K,this}withDefaultOffsetX(K){return this._offsetX=K,this}withDefaultOffsetY(K){return this._offsetY=K,this}withTransformOriginOn(K){return this._transformOriginSelector=K,this}_getOriginPoint(K,we,ze){let Be,We;if("center"==ze.originX)Be=K.left+K.width/2;else{const _e=this._isRtl()?K.right:K.left,Ue=this._isRtl()?K.left:K.right;Be="start"==ze.originX?_e:Ue}return we.left<0&&(Be-=we.left),We="center"==ze.originY?K.top+K.height/2:"top"==ze.originY?K.top:K.bottom,we.top<0&&(We-=we.top),{x:Be,y:We}}_getOverlayPoint(K,we,ze){let Be,We;return Be="center"==ze.overlayX?-we.width/2:"start"===ze.overlayX?this._isRtl()?-we.width:0:this._isRtl()?0:-we.width,We="center"==ze.overlayY?-we.height/2:"top"==ze.overlayY?0:-we.height,{x:K.x+Be,y:K.y+We}}_getOverlayFit(K,we,ze,Be){const We=H(we);let{x:_e,y:Ue}=K,dt=this._getOffset(Be,"x"),xe=this._getOffset(Be,"y");dt&&(_e+=dt),xe&&(Ue+=xe);let de=0-Ue,Ne=Ue+We.height-ze.height,tt=this._subtractOverflows(We.width,0-_e,_e+We.width-ze.width),mt=this._subtractOverflows(We.height,de,Ne),Ft=tt*mt;return{visibleArea:Ft,isCompletelyWithinViewport:We.width*We.height===Ft,fitsInViewportVertically:mt===We.height,fitsInViewportHorizontally:tt==We.width}}_canFitWithFlexibleDimensions(K,we,ze){if(this._hasFlexibleDimensions){const Be=ze.bottom-we.y,We=ze.right-we.x,_e=V(this._overlayRef.getConfig().minHeight),Ue=V(this._overlayRef.getConfig().minWidth),xe=K.fitsInViewportHorizontally||null!=Ue&&Ue<=We;return(K.fitsInViewportVertically||null!=_e&&_e<=Be)&&xe}return!1}_pushOverlayOnScreen(K,we,ze){if(this._previousPushAmount&&this._positionLocked)return{x:K.x+this._previousPushAmount.x,y:K.y+this._previousPushAmount.y};const Be=H(we),We=this._viewportRect,_e=Math.max(K.x+Be.width-We.width,0),Ue=Math.max(K.y+Be.height-We.height,0),dt=Math.max(We.top-ze.top-K.y,0),xe=Math.max(We.left-ze.left-K.x,0);let W=0,ye=0;return W=Be.width<=We.width?xe||-_e:K.x<this._viewportMargin?We.left-ze.left-K.x:0,ye=Be.height<=We.height?dt||-Ue:K.y<this._viewportMargin?We.top-ze.top-K.y:0,this._previousPushAmount={x:W,y:ye},{x:K.x+W,y:K.y+ye}}_applyPosition(K,we){if(this._setTransformOrigin(K),this._setOverlayElementStyles(we,K),this._setBoundingBoxStyles(we,K),K.panelClass&&this._addPanelClasses(K.panelClass),this._lastPosition=K,this._positionChanges.observers.length){const ze=this._getScrollVisibility(),Be=new he(K,ze);this._positionChanges.next(Be)}this._isInitialRender=!1}_setTransformOrigin(K){if(!this._transformOriginSelector)return;const we=this._boundingBox.querySelectorAll(this._transformOriginSelector);let ze,Be=K.overlayY;ze="center"===K.overlayX?"center":this._isRtl()?"start"===K.overlayX?"right":"left":"start"===K.overlayX?"left":"right";for(let We=0;We<we.length;We++)we[We].style.transformOrigin=`${ze} ${Be}`}_calculateBoundingBoxRect(K,we){const ze=this._viewportRect,Be=this._isRtl();let We,_e,Ue,W,ye,de;if("top"===we.overlayY)_e=K.y,We=ze.height-_e+this._viewportMargin;else if("bottom"===we.overlayY)Ue=ze.height-K.y+2*this._viewportMargin,We=ze.height-Ue+this._viewportMargin;else{const Ne=Math.min(ze.bottom-K.y+ze.top,K.y),tt=this._lastBoundingBoxSize.height;We=2*Ne,_e=K.y-Ne,We>tt&&!this._isInitialRender&&!this._growAfterOpen&&(_e=K.y-tt/2)}if("end"===we.overlayX&&!Be||"start"===we.overlayX&&Be)de=ze.width-K.x+this._viewportMargin,W=K.x-this._viewportMargin;else if("start"===we.overlayX&&!Be||"end"===we.overlayX&&Be)ye=K.x,W=ze.right-K.x;else{const Ne=Math.min(ze.right-K.x+ze.left,K.x),tt=this._lastBoundingBoxSize.width;W=2*Ne,ye=K.x-Ne,W>tt&&!this._isInitialRender&&!this._growAfterOpen&&(ye=K.x-tt/2)}return{top:_e,left:ye,bottom:Ue,right:de,width:W,height:We}}_setBoundingBoxStyles(K,we){const ze=this._calculateBoundingBoxRect(K,we);!this._isInitialRender&&!this._growAfterOpen&&(ze.height=Math.min(ze.height,this._lastBoundingBoxSize.height),ze.width=Math.min(ze.width,this._lastBoundingBoxSize.width));const Be={};if(this._hasExactPosition())Be.top=Be.left="0",Be.bottom=Be.right=Be.maxHeight=Be.maxWidth="",Be.width=Be.height="100%";else{const We=this._overlayRef.getConfig().maxHeight,_e=this._overlayRef.getConfig().maxWidth;Be.height=(0,u.HM)(ze.height),Be.top=(0,u.HM)(ze.top),Be.bottom=(0,u.HM)(ze.bottom),Be.width=(0,u.HM)(ze.width),Be.left=(0,u.HM)(ze.left),Be.right=(0,u.HM)(ze.right),Be.alignItems="center"===we.overlayX?"center":"end"===we.overlayX?"flex-end":"flex-start",Be.justifyContent="center"===we.overlayY?"center":"bottom"===we.overlayY?"flex-end":"flex-start",We&&(Be.maxHeight=(0,u.HM)(We)),_e&&(Be.maxWidth=(0,u.HM)(_e))}this._lastBoundingBoxSize=ze,me(this._boundingBox.style,Be)}_resetBoundingBoxStyles(){me(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){me(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(K,we){const ze={},Be=this._hasExactPosition(),We=this._hasFlexibleDimensions,_e=this._overlayRef.getConfig();if(Be){const W=this._viewportRuler.getViewportScrollPosition();me(ze,this._getExactOverlayY(we,K,W)),me(ze,this._getExactOverlayX(we,K,W))}else ze.position="static";let Ue="",dt=this._getOffset(we,"x"),xe=this._getOffset(we,"y");dt&&(Ue+=`translateX(${dt}px) `),xe&&(Ue+=`translateY(${xe}px)`),ze.transform=Ue.trim(),_e.maxHeight&&(Be?ze.maxHeight=(0,u.HM)(_e.maxHeight):We&&(ze.maxHeight="")),_e.maxWidth&&(Be?ze.maxWidth=(0,u.HM)(_e.maxWidth):We&&(ze.maxWidth="")),me(this._pane.style,ze)}_getExactOverlayY(K,we,ze){let Be={top:"",bottom:""},We=this._getOverlayPoint(we,this._overlayRect,K);return this._isPushed&&(We=this._pushOverlayOnScreen(We,this._overlayRect,ze)),"bottom"===K.overlayY?Be.bottom=this._document.documentElement.clientHeight-(We.y+this._overlayRect.height)+"px":Be.top=(0,u.HM)(We.y),Be}_getExactOverlayX(K,we,ze){let _e,Be={left:"",right:""},We=this._getOverlayPoint(we,this._overlayRect,K);return this._isPushed&&(We=this._pushOverlayOnScreen(We,this._overlayRect,ze)),_e=this._isRtl()?"end"===K.overlayX?"left":"right":"end"===K.overlayX?"right":"left","right"===_e?Be.right=this._document.documentElement.clientWidth-(We.x+this._overlayRect.width)+"px":Be.left=(0,u.HM)(We.x),Be}_getScrollVisibility(){const K=this._getOriginRect(),we=this._pane.getBoundingClientRect(),ze=this._scrollables.map(Be=>Be.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Y(K,ze),isOriginOutsideView:N(K,ze),isOverlayClipped:Y(we,ze),isOverlayOutsideView:N(we,ze)}}_subtractOverflows(K,...we){return we.reduce((ze,Be)=>ze-Math.max(Be,0),K)}_getNarrowedViewportRect(){const K=this._document.documentElement.clientWidth,we=this._document.documentElement.clientHeight,ze=this._viewportRuler.getViewportScrollPosition();return{top:ze.top+this._viewportMargin,left:ze.left+this._viewportMargin,right:ze.left+K-this._viewportMargin,bottom:ze.top+we-this._viewportMargin,width:K-2*this._viewportMargin,height:we-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(K,we){return"x"===we?null==K.offsetX?this._offsetX:K.offsetX:null==K.offsetY?this._offsetY:K.offsetY}_validatePositions(){}_addPanelClasses(K){this._pane&&(0,u.Eq)(K).forEach(we=>{""!==we&&-1===this._appliedPanelClasses.indexOf(we)&&(this._appliedPanelClasses.push(we),this._pane.classList.add(we))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(K=>{this._pane.classList.remove(K)}),this._appliedPanelClasses=[])}_getOriginRect(){const K=this._origin;if(K instanceof _.ElementRef)return K.nativeElement.getBoundingClientRect();if(K instanceof Element)return K.getBoundingClientRect();const we=K.width||0,ze=K.height||0;return{top:K.y,bottom:K.y+ze,left:K.x,right:K.x+we,height:ze,width:we}}}function me(Ke,K){for(let we in K)K.hasOwnProperty(we)&&(Ke[we]=K[we]);return Ke}function V(Ke){if("number"!=typeof Ke&&null!=Ke){const[K,we]=Ke.split(Ae);return we&&"px"!==we?null:parseFloat(K)}return Ke||null}function H(Ke){return{top:Math.floor(Ke.top),right:Math.floor(Ke.right),bottom:Math.floor(Ke.bottom),left:Math.floor(Ke.left),width:Math.floor(Ke.width),height:Math.floor(Ke.height)}}const ue="cdk-global-overlay-wrapper";class ge{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(K){const we=K.getConfig();this._overlayRef=K,this._width&&!we.width&&K.updateSize({width:this._width}),this._height&&!we.height&&K.updateSize({height:this._height}),K.hostElement.classList.add(ue),this._isDisposed=!1}top(K=""){return this._bottomOffset="",this._topOffset=K,this._alignItems="flex-start",this}left(K=""){return this._xOffset=K,this._xPosition="left",this}bottom(K=""){return this._topOffset="",this._bottomOffset=K,this._alignItems="flex-end",this}right(K=""){return this._xOffset=K,this._xPosition="right",this}start(K=""){return this._xOffset=K,this._xPosition="start",this}end(K=""){return this._xOffset=K,this._xPosition="end",this}width(K=""){return this._overlayRef?this._overlayRef.updateSize({width:K}):this._width=K,this}height(K=""){return this._overlayRef?this._overlayRef.updateSize({height:K}):this._height=K,this}centerHorizontally(K=""){return this.left(K),this._xPosition="center",this}centerVertically(K=""){return this.top(K),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const K=this._overlayRef.overlayElement.style,we=this._overlayRef.hostElement.style,ze=this._overlayRef.getConfig(),{width:Be,height:We,maxWidth:_e,maxHeight:Ue}=ze,dt=!("100%"!==Be&&"100vw"!==Be||_e&&"100%"!==_e&&"100vw"!==_e),xe=!("100%"!==We&&"100vh"!==We||Ue&&"100%"!==Ue&&"100vh"!==Ue),W=this._xPosition,ye=this._xOffset,de="rtl"===this._overlayRef.getConfig().direction;let Ne="",tt="",mt="";dt?mt="flex-start":"center"===W?(mt="center",de?tt=ye:Ne=ye):de?"left"===W||"end"===W?(mt="flex-end",Ne=ye):("right"===W||"start"===W)&&(mt="flex-start",tt=ye):"left"===W||"start"===W?(mt="flex-start",Ne=ye):("right"===W||"end"===W)&&(mt="flex-end",tt=ye),K.position=this._cssPosition,K.marginLeft=dt?"0":Ne,K.marginTop=xe?"0":this._topOffset,K.marginBottom=this._bottomOffset,K.marginRight=dt?"0":tt,we.justifyContent=mt,we.alignItems=xe?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const K=this._overlayRef.overlayElement.style,we=this._overlayRef.hostElement,ze=we.style;we.classList.remove(ue),ze.justifyContent=ze.alignItems=K.marginTop=K.marginBottom=K.marginLeft=K.marginRight=K.position="",this._overlayRef=null,this._isDisposed=!0}}let Te=(()=>{class Ke{constructor(we,ze,Be,We){this._viewportRuler=we,this._document=ze,this._platform=Be,this._overlayContainer=We}global(){return new ge}flexibleConnectedTo(we){return new oe(we,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return Ke.\u0275fac=function(we){return new(we||Ke)(_.\u0275\u0275inject(n.rL),_.\u0275\u0275inject(h.DOCUMENT),_.\u0275\u0275inject(r.t4),_.\u0275\u0275inject(ke))},Ke.\u0275prov=_.\u0275\u0275defineInjectable({token:Ke,factory:Ke.\u0275fac,providedIn:"root"}),Ke})(),Pe=(()=>{class Ke{constructor(we){this._attachedOverlays=[],this._document=we}ngOnDestroy(){this.detach()}add(we){this.remove(we),this._attachedOverlays.push(we)}remove(we){const ze=this._attachedOverlays.indexOf(we);ze>-1&&this._attachedOverlays.splice(ze,1),0===this._attachedOverlays.length&&this.detach()}}return Ke.\u0275fac=function(we){return new(we||Ke)(_.\u0275\u0275inject(h.DOCUMENT))},Ke.\u0275prov=_.\u0275\u0275defineInjectable({token:Ke,factory:Ke.\u0275fac,providedIn:"root"}),Ke})(),Ce=(()=>{class Ke extends Pe{constructor(we,ze){super(we),this._ngZone=ze,this._keydownListener=Be=>{const We=this._attachedOverlays;for(let _e=We.length-1;_e>-1;_e--)if(We[_e]._keydownEvents.observers.length>0){const Ue=We[_e]._keydownEvents;this._ngZone?this._ngZone.run(()=>Ue.next(Be)):Ue.next(Be);break}}}add(we){super.add(we),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return Ke.\u0275fac=function(we){return new(we||Ke)(_.\u0275\u0275inject(h.DOCUMENT),_.\u0275\u0275inject(_.NgZone,8))},Ke.\u0275prov=_.\u0275\u0275defineInjectable({token:Ke,factory:Ke.\u0275fac,providedIn:"root"}),Ke})(),$e=(()=>{class Ke extends Pe{constructor(we,ze,Be){super(we),this._platform=ze,this._ngZone=Be,this._cursorStyleIsSet=!1,this._pointerDownListener=We=>{this._pointerDownEventTarget=(0,r.sA)(We)},this._clickListener=We=>{const _e=(0,r.sA)(We),Ue="click"===We.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:_e;this._pointerDownEventTarget=null;const dt=this._attachedOverlays.slice();for(let xe=dt.length-1;xe>-1;xe--){const W=dt[xe];if(W._outsidePointerEvents.observers.length<1||!W.hasAttached())continue;if(W.overlayElement.contains(_e)||W.overlayElement.contains(Ue))break;const ye=W._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>ye.next(We)):ye.next(We)}}}add(we){if(super.add(we),!this._isAttached){const ze=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(ze)):this._addEventListeners(ze),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=ze.style.cursor,ze.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const we=this._document.body;we.removeEventListener("pointerdown",this._pointerDownListener,!0),we.removeEventListener("click",this._clickListener,!0),we.removeEventListener("auxclick",this._clickListener,!0),we.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(we.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(we){we.addEventListener("pointerdown",this._pointerDownListener,!0),we.addEventListener("click",this._clickListener,!0),we.addEventListener("auxclick",this._clickListener,!0),we.addEventListener("contextmenu",this._clickListener,!0)}}return Ke.\u0275fac=function(we){return new(we||Ke)(_.\u0275\u0275inject(h.DOCUMENT),_.\u0275\u0275inject(r.t4),_.\u0275\u0275inject(_.NgZone,8))},Ke.\u0275prov=_.\u0275\u0275defineInjectable({token:Ke,factory:Ke.\u0275fac,providedIn:"root"}),Ke})(),lt=0,yt=(()=>{class Ke{constructor(we,ze,Be,We,_e,Ue,dt,xe,W,ye,de,Ne){this.scrollStrategies=we,this._overlayContainer=ze,this._componentFactoryResolver=Be,this._positionBuilder=We,this._keyboardDispatcher=_e,this._injector=Ue,this._ngZone=dt,this._document=xe,this._directionality=W,this._location=ye,this._outsideClickDispatcher=de,this._animationsModuleType=Ne}create(we){const ze=this._createHostElement(),Be=this._createPaneElement(ze),We=this._createPortalOutlet(Be),_e=new $(we);return _e.direction=_e.direction||this._directionality.value,new be(We,ze,Be,_e,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(we){const ze=this._document.createElement("div");return ze.id="cdk-overlay-"+lt++,ze.classList.add("cdk-overlay-pane"),we.appendChild(ze),ze}_createHostElement(){const we=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(we),we}_createPortalOutlet(we){return this._appRef||(this._appRef=this._injector.get(_.ApplicationRef)),new d.u0(we,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return Ke.\u0275fac=function(we){return new(we||Ke)(_.\u0275\u0275inject(G),_.\u0275\u0275inject(ke),_.\u0275\u0275inject(_.ComponentFactoryResolver),_.\u0275\u0275inject(Te),_.\u0275\u0275inject(Ce),_.\u0275\u0275inject(_.Injector),_.\u0275\u0275inject(_.NgZone),_.\u0275\u0275inject(h.DOCUMENT),_.\u0275\u0275inject(c.Is),_.\u0275\u0275inject(h.Location),_.\u0275\u0275inject($e),_.\u0275\u0275inject(_.ANIMATION_MODULE_TYPE,8))},Ke.\u0275prov=_.\u0275\u0275defineInjectable({token:Ke,factory:Ke.\u0275fac}),Ke})();const pe={provide:new _.InjectionToken("cdk-connected-overlay-scroll-strategy"),deps:[yt],useFactory:function je(Ke){return()=>Ke.scrollStrategies.reposition()}};let Qe=(()=>{class Ke{}return Ke.\u0275fac=function(we){return new(we||Ke)},Ke.\u0275mod=_.\u0275\u0275defineNgModule({type:Ke}),Ke.\u0275inj=_.\u0275\u0275defineInjector({providers:[yt,pe],imports:[c.vT,d.eL,n.Cl,n.Cl]}),Ke})()},925:(z,o,a)=>{"use strict";a.d(o,{Mq:()=>C,Oy:()=>G,ht:()=>Y,i$:()=>b,kV:()=>N,sA:()=>U,t4:()=>u});var n=a(5e3),h=a(9808);let _;try{_="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch($){_=!1}let y,m,O,u=(()=>{class ${constructor(te){this._platformId=te,this.isBrowser=this._platformId?(0,h.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 $.\u0275fac=function(te){return new(te||$)(n.\u0275\u0275inject(n.PLATFORM_ID))},$.\u0275prov=n.\u0275\u0275defineInjectable({token:$,factory:$.\u0275fac,providedIn:"root"}),$})();function b($){return function f(){if(null==y&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>y=!0}))}finally{y=y||!1}return y}()?$:!!$.capture}function C(){if(null==m){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return m=!1,m;if("scrollBehavior"in document.documentElement.style)m=!0;else{const $=Element.prototype.scrollTo;m=!!$&&!/\{\s*\[native code\]\s*\}/.test($.toString())}}return m}function N($){if(function P(){if(null==O){const $="undefined"!=typeof document?document.head:null;O=!(!$||!$.createShadowRoot&&!$.attachShadow)}return O}()){const J=$.getRootNode?$.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&J instanceof ShadowRoot)return J}return null}function Y(){let $="undefined"!=typeof document&&document?document.activeElement:null;for(;$&&$.shadowRoot;){const J=$.shadowRoot.activeElement;if(J===$)break;$=J}return $}function U($){return $.composedPath?$.composedPath()[0]:$.target}function G(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},7429:(z,o,a)=>{"use strict";a.d(o,{C5:()=>f,Pl:()=>Y,UE:()=>b,eL:()=>G,en:()=>m,ig:()=>P,u0:()=>M});var n=a(5e3),h=a(9808);class y{attach(te){return this._attachedHost=te,te.attach(this)}detach(){let te=this._attachedHost;null!=te&&(this._attachedHost=null,te.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(te){this._attachedHost=te}}class f extends y{constructor(te,he,Fe,it){super(),this.component=te,this.viewContainerRef=he,this.injector=Fe,this.componentFactoryResolver=it}}class b extends y{constructor(te,he,Fe,it){super(),this.templateRef=te,this.viewContainerRef=he,this.context=Fe,this.injector=it}get origin(){return this.templateRef.elementRef}attach(te,he=this.context){return this.context=he,super.attach(te)}detach(){return this.context=void 0,super.detach()}}class v extends y{constructor(te){super(),this.element=te instanceof n.ElementRef?te.nativeElement:te}}class m{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(te){return te instanceof f?(this._attachedPortal=te,this.attachComponentPortal(te)):te instanceof b?(this._attachedPortal=te,this.attachTemplatePortal(te)):this.attachDomPortal&&te instanceof v?(this._attachedPortal=te,this.attachDomPortal(te)):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(te){this._disposeFn=te}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class M extends m{constructor(te,he,Fe,it,be){super(),this.outletElement=te,this._componentFactoryResolver=he,this._appRef=Fe,this._defaultInjector=it,this.attachDomPortal=ke=>{const ie=ke.element,Ae=this._document.createComment("dom-portal");ie.parentNode.insertBefore(Ae,ie),this.outletElement.appendChild(ie),this._attachedPortal=ke,super.setDisposeFn(()=>{Ae.parentNode&&Ae.parentNode.replaceChild(ie,Ae)})},this._document=be}attachComponentPortal(te){const Fe=(te.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(te.component);let it;return te.viewContainerRef?(it=te.viewContainerRef.createComponent(Fe,te.viewContainerRef.length,te.injector||te.viewContainerRef.injector),this.setDisposeFn(()=>it.destroy())):(it=Fe.create(te.injector||this._defaultInjector||n.Injector.NULL),this._appRef.attachView(it.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(it.hostView),it.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(it)),this._attachedPortal=te,it}attachTemplatePortal(te){let he=te.viewContainerRef,Fe=he.createEmbeddedView(te.templateRef,te.context,{injector:te.injector});return Fe.rootNodes.forEach(it=>this.outletElement.appendChild(it)),Fe.detectChanges(),this.setDisposeFn(()=>{let it=he.indexOf(Fe);-1!==it&&he.remove(it)}),this._attachedPortal=te,Fe}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(te){return te.hostView.rootNodes[0]}}let P=(()=>{class J extends b{constructor(he,Fe){super(he,Fe)}}return J.\u0275fac=function(he){return new(he||J)(n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(n.ViewContainerRef))},J.\u0275dir=n.\u0275\u0275defineDirective({type:J,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[n.\u0275\u0275InheritDefinitionFeature]}),J})(),Y=(()=>{class J extends m{constructor(he,Fe,it){super(),this._componentFactoryResolver=he,this._viewContainerRef=Fe,this._isInitialized=!1,this.attached=new n.EventEmitter,this.attachDomPortal=be=>{const ke=be.element,ie=this._document.createComment("dom-portal");be.setAttachedHost(this),ke.parentNode.insertBefore(ie,ke),this._getRootNode().appendChild(ke),this._attachedPortal=be,super.setDisposeFn(()=>{ie.parentNode&&ie.parentNode.replaceChild(ke,ie)})},this._document=it}get portal(){return this._attachedPortal}set portal(he){this.hasAttached()&&!he&&!this._isInitialized||(this.hasAttached()&&super.detach(),he&&super.attach(he),this._attachedPortal=he||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(he){he.setAttachedHost(this);const Fe=null!=he.viewContainerRef?he.viewContainerRef:this._viewContainerRef,be=(he.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(he.component),ke=Fe.createComponent(be,Fe.length,he.injector||Fe.injector);return Fe!==this._viewContainerRef&&this._getRootNode().appendChild(ke.hostView.rootNodes[0]),super.setDisposeFn(()=>ke.destroy()),this._attachedPortal=he,this._attachedRef=ke,this.attached.emit(ke),ke}attachTemplatePortal(he){he.setAttachedHost(this);const Fe=this._viewContainerRef.createEmbeddedView(he.templateRef,he.context,{injector:he.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=he,this._attachedRef=Fe,this.attached.emit(Fe),Fe}_getRootNode(){const he=this._viewContainerRef.element.nativeElement;return he.nodeType===he.ELEMENT_NODE?he:he.parentNode}}return J.\u0275fac=function(he){return new(he||J)(n.\u0275\u0275directiveInject(n.ComponentFactoryResolver),n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(h.DOCUMENT))},J.\u0275dir=n.\u0275\u0275defineDirective({type:J,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[n.\u0275\u0275InheritDefinitionFeature]}),J})(),G=(()=>{class J{}return J.\u0275fac=function(he){return new(he||J)},J.\u0275mod=n.\u0275\u0275defineNgModule({type:J}),J.\u0275inj=n.\u0275\u0275defineInjector({}),J})()},495:(z,o,a)=>{"use strict";a.d(o,{ZD:()=>ut,mF:()=>V,Cl:()=>He,rL:()=>ge});var n=a(3191),h=a(5e3),_=a(4408),u=a(727);const r={schedule(Ie){let je=requestAnimationFrame,pe=cancelAnimationFrame;const{delegate:Qe}=r;Qe&&(je=Qe.requestAnimationFrame,pe=Qe.cancelAnimationFrame);const Ve=je(Ke=>{pe=void 0,Ie(Ke)});return new u.w0(()=>null==pe?void 0:pe(Ve))},requestAnimationFrame(...Ie){const{delegate:je}=r;return((null==je?void 0:je.requestAnimationFrame)||requestAnimationFrame)(...Ie)},cancelAnimationFrame(...Ie){const{delegate:je}=r;return((null==je?void 0:je.cancelAnimationFrame)||cancelAnimationFrame)(...Ie)},delegate:void 0};var d=a(640);new class p extends d.v{flush(je){this._active=!0;const pe=this._scheduled;this._scheduled=void 0;const{actions:Qe}=this;let Ve;je=je||Qe.shift();do{if(Ve=je.execute(je.state,je.delay))break}while((je=Qe[0])&&je.id===pe&&Qe.shift());if(this._active=!1,Ve){for(;(je=Qe[0])&&je.id===pe&&Qe.shift();)je.unsubscribe();throw Ve}}}(class c extends _.o{constructor(je,pe){super(je,pe),this.scheduler=je,this.work=pe}requestAsyncId(je,pe,Qe=0){return null!==Qe&&Qe>0?super.requestAsyncId(je,pe,Qe):(je.actions.push(this),je._scheduled||(je._scheduled=r.requestAnimationFrame(()=>je.flush(void 0))))}recycleAsyncId(je,pe,Qe=0){var Ve;if(null!=Qe?Qe>0:this.delay>0)return super.recycleAsyncId(je,pe,Qe);const{actions:Ke}=je;null!=pe&&(null===(Ve=Ke[Ke.length-1])||void 0===Ve?void 0:Ve.id)!==pe&&(r.cancelAnimationFrame(pe),je._scheduled=void 0)}});var b=a(7579),v=a(9646),m=a(8306),C=a(4968),O=(a(3101),a(4986)),P=a(4482),N=a(8421),Y=a(5403),G=a(5963);function $(Ie,je=O.z){return function U(Ie){return(0,P.e)((je,pe)=>{let Qe=!1,Ve=null,Ke=null,K=!1;const we=()=>{if(null==Ke||Ke.unsubscribe(),Ke=null,Qe){Qe=!1;const Be=Ve;Ve=null,pe.next(Be)}K&&pe.complete()},ze=()=>{Ke=null,K&&pe.complete()};je.subscribe((0,Y.x)(pe,Be=>{Qe=!0,Ve=Be,Ke||(0,N.Xf)(Ie(Be)).subscribe(Ke=(0,Y.x)(pe,we,ze))},()=>{K=!0,(!Qe||!Ke||Ke.closed)&&pe.complete()}))})}(()=>(0,G.H)(Ie,je))}var J=a(9300),te=a(9808),he=a(925),Fe=a(226);let V=(()=>{class Ie{constructor(pe,Qe,Ve){this._ngZone=pe,this._platform=Qe,this._scrolled=new b.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=Ve}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 m.y(Qe=>{this._globalSubscription||this._addGlobalListener();const Ve=pe>0?this._scrolled.pipe($(pe)).subscribe(Qe):this._scrolled.subscribe(Qe);return this._scrolledCount++,()=>{Ve.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,v.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((pe,Qe)=>this.deregister(Qe)),this._scrolled.complete()}ancestorScrolled(pe,Qe){const Ve=this.getAncestorScrollContainers(pe);return this.scrolled(Qe).pipe((0,J.h)(Ke=>!Ke||Ve.indexOf(Ke)>-1))}getAncestorScrollContainers(pe){const Qe=[];return this.scrollContainers.forEach((Ve,Ke)=>{this._scrollableContainsElement(Ke,pe)&&Qe.push(Ke)}),Qe}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(pe,Qe){let Ve=(0,n.fI)(Qe),Ke=pe.getElementRef().nativeElement;do{if(Ve==Ke)return!0}while(Ve=Ve.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const pe=this._getWindow();return(0,C.R)(pe.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return Ie.\u0275fac=function(pe){return new(pe||Ie)(h.\u0275\u0275inject(h.NgZone),h.\u0275\u0275inject(he.t4),h.\u0275\u0275inject(te.DOCUMENT,8))},Ie.\u0275prov=h.\u0275\u0275defineInjectable({token:Ie,factory:Ie.\u0275fac,providedIn:"root"}),Ie})(),ge=(()=>{class Ie{constructor(pe,Qe,Ve){this._platform=pe,this._change=new b.x,this._changeListener=Ke=>{this._change.next(Ke)},this._document=Ve,Qe.runOutsideAngular(()=>{if(pe.isBrowser){const Ke=this._getWindow();Ke.addEventListener("resize",this._changeListener),Ke.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:Ve}=this.getViewportSize();return{top:pe.top,left:pe.left,bottom:pe.top+Ve,right:pe.left+Qe,height:Ve,width:Qe}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const pe=this._document,Qe=this._getWindow(),Ve=pe.documentElement,Ke=Ve.getBoundingClientRect();return{top:-Ke.top||pe.body.scrollTop||Qe.scrollY||Ve.scrollTop||0,left:-Ke.left||pe.body.scrollLeft||Qe.scrollX||Ve.scrollLeft||0}}change(pe=20){return pe>0?this._change.pipe($(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 Ie.\u0275fac=function(pe){return new(pe||Ie)(h.\u0275\u0275inject(he.t4),h.\u0275\u0275inject(h.NgZone),h.\u0275\u0275inject(te.DOCUMENT,8))},Ie.\u0275prov=h.\u0275\u0275defineInjectable({token:Ie,factory:Ie.\u0275fac,providedIn:"root"}),Ie})(),ut=(()=>{class Ie{}return Ie.\u0275fac=function(pe){return new(pe||Ie)},Ie.\u0275mod=h.\u0275\u0275defineNgModule({type:Ie}),Ie.\u0275inj=h.\u0275\u0275defineInjector({}),Ie})(),He=(()=>{class Ie{}return Ie.\u0275fac=function(pe){return new(pe||Ie)},Ie.\u0275mod=h.\u0275\u0275defineNgModule({type:Ie}),Ie.\u0275inj=h.\u0275\u0275defineInjector({imports:[Fe.vT,ut,Fe.vT,ut]}),Ie})()},9808:(z,o,a)=>{"use strict";a.r(o),a.d(o,{APP_BASE_HREF:()=>N,AsyncPipe:()=>Di,CommonModule:()=>mr,CurrencyPipe:()=>Xi,DATE_PIPE_DEFAULT_TIMEZONE:()=>Mi,DOCUMENT:()=>d,DatePipe:()=>fr,DecimalPipe:()=>Ii,FormStyle:()=>be,FormatWidth:()=>ie,HashLocationStrategy:()=>U,I18nPluralPipe:()=>Ar,I18nSelectPipe:()=>Si,JsonPipe:()=>Zi,KeyValuePipe:()=>Ji,LOCATION_INITIALIZED:()=>f,Location:()=>G,LocationStrategy:()=>P,LowerCasePipe:()=>Or,NgClass:()=>_n,NgComponentOutlet:()=>dn,NgForOf:()=>cn,NgForOfContext:()=>zn,NgIf:()=>En,NgIfContext:()=>Nn,NgLocaleLocalization:()=>xt,NgLocalization:()=>ft,NgPlural:()=>Ci,NgPluralCase:()=>Gi,NgStyle:()=>Ki,NgSwitch:()=>bi,NgSwitchCase:()=>Ln,NgSwitchDefault:()=>Ni,NgTemplateOutlet:()=>cr,NumberFormatStyle:()=>Fe,NumberSymbol:()=>Ae,PathLocationStrategy:()=>Y,PercentPipe:()=>hr,PlatformLocation:()=>p,Plural:()=>it,SlicePipe:()=>Vi,TitleCasePipe:()=>Qi,TranslationWidth:()=>ke,UpperCasePipe:()=>Hr,VERSION:()=>mi,ViewportScroller:()=>In,WeekDay:()=>oe,XhrFactory:()=>Qn,formatCurrency:()=>Wt,formatDate:()=>ye,formatNumber:()=>gn,formatPercent:()=>yn,getCurrencySymbol:()=>we,getLocaleCurrencyCode:()=>ut,getLocaleCurrencyName:()=>_t,getLocaleCurrencySymbol:()=>yt,getLocaleDateFormat:()=>Te,getLocaleDateTimeFormat:()=>Ce,getLocaleDayNames:()=>H,getLocaleDayPeriods:()=>V,getLocaleDirection:()=>Ve,getLocaleEraNames:()=>B,getLocaleExtraDayPeriodRules:()=>pe,getLocaleExtraDayPeriods:()=>Qe,getLocaleFirstDayOfWeek:()=>ue,getLocaleId:()=>me,getLocaleMonthNames:()=>re,getLocaleNumberFormat:()=>lt,getLocaleNumberSymbol:()=>$e,getLocalePluralCase:()=>Ie,getLocaleTimeFormat:()=>Pe,getLocaleWeekEndRange:()=>ge,getNumberOfCurrencyDigits:()=>Be,isPlatformBrowser:()=>gr,isPlatformServer:()=>Pr,isPlatformWorkerApp:()=>bn,isPlatformWorkerUi:()=>vr,registerLocaleData:()=>Kt,\u0275BrowserPlatformLocation:()=>b,\u0275DomAdapter:()=>c,\u0275NullViewportScroller:()=>gi,\u0275PLATFORM_BROWSER_ID:()=>Wn,\u0275PLATFORM_SERVER_ID:()=>qi,\u0275PLATFORM_WORKER_APP_ID:()=>pi,\u0275PLATFORM_WORKER_UI_ID:()=>Oi,\u0275getDOM:()=>_,\u0275parseCookieValue:()=>Ut,\u0275setRootDomAdapter:()=>r});var n=a(5e3);let h=null;function _(){return h}function r(x){h||(h=x)}class c{}const d=new n.InjectionToken("DocumentToken");let p=(()=>{class x{historyGo(k){throw new Error("Not implemented")}}return x.\u0275fac=function(k){return new(k||x)},x.\u0275prov=n.\u0275\u0275defineInjectable({token:x,factory:function(){return function y(){return(0,n.\u0275\u0275inject)(b)}()},providedIn:"platform"}),x})();const f=new n.InjectionToken("Location Initialized");let b=(()=>{class x extends p{constructor(k){super(),this._doc=k,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return _().getBaseHref(this._doc)}onPopState(k){const fe=_().getGlobalEventTarget(this._doc,"window");return fe.addEventListener("popstate",k,!1),()=>fe.removeEventListener("popstate",k)}onHashChange(k){const fe=_().getGlobalEventTarget(this._doc,"window");return fe.addEventListener("hashchange",k,!1),()=>fe.removeEventListener("hashchange",k)}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(k){this.location.pathname=k}pushState(k,fe,Xe){v()?this._history.pushState(k,fe,Xe):this.location.hash=Xe}replaceState(k,fe,Xe){v()?this._history.replaceState(k,fe,Xe):this.location.hash=Xe}forward(){this._history.forward()}back(){this._history.back()}historyGo(k=0){this._history.go(k)}getState(){return this._history.state}}return x.\u0275fac=function(k){return new(k||x)(n.\u0275\u0275inject(d))},x.\u0275prov=n.\u0275\u0275defineInjectable({token:x,factory:function(){return function m(){return new b((0,n.\u0275\u0275inject)(d))}()},providedIn:"platform"}),x})();function v(){return!!window.history.pushState}function C(x,ne){if(0==x.length)return ne;if(0==ne.length)return x;let k=0;return x.endsWith("/")&&k++,ne.startsWith("/")&&k++,2==k?x+ne.substring(1):1==k?x+ne:x+"/"+ne}function M(x){const ne=x.match(/#|\?|$/),k=ne&&ne.index||x.length;return x.slice(0,k-("/"===x[k-1]?1:0))+x.slice(k)}function O(x){return x&&"?"!==x[0]?"?"+x:x}let P=(()=>{class x{historyGo(k){throw new Error("Not implemented")}}return x.\u0275fac=function(k){return new(k||x)},x.\u0275prov=n.\u0275\u0275defineInjectable({token:x,factory:function(){return(0,n.inject)(Y)},providedIn:"root"}),x})();const N=new n.InjectionToken("appBaseHref");let Y=(()=>{class x extends P{constructor(k,fe){var Xe,Et,gt;super(),this._platformLocation=k,this._removeListenerFns=[],this._baseHref=null!==(gt=null!==(Xe=null!=fe?fe:this._platformLocation.getBaseHrefFromDOM())&&void 0!==Xe?Xe:null===(Et=(0,n.inject)(d).location)||void 0===Et?void 0:Et.origin)&&void 0!==gt?gt:""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(k){this._removeListenerFns.push(this._platformLocation.onPopState(k),this._platformLocation.onHashChange(k))}getBaseHref(){return this._baseHref}prepareExternalUrl(k){return C(this._baseHref,k)}path(k=!1){const fe=this._platformLocation.pathname+O(this._platformLocation.search),Xe=this._platformLocation.hash;return Xe&&k?`${fe}${Xe}`:fe}pushState(k,fe,Xe,Et){const gt=this.prepareExternalUrl(Xe+O(Et));this._platformLocation.pushState(k,fe,gt)}replaceState(k,fe,Xe,Et){const gt=this.prepareExternalUrl(Xe+O(Et));this._platformLocation.replaceState(k,fe,gt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(k=0){var fe,Xe;null===(Xe=(fe=this._platformLocation).historyGo)||void 0===Xe||Xe.call(fe,k)}}return x.\u0275fac=function(k){return new(k||x)(n.\u0275\u0275inject(p),n.\u0275\u0275inject(N,8))},x.\u0275prov=n.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac,providedIn:"root"}),x})(),U=(()=>{class x extends P{constructor(k,fe){super(),this._platformLocation=k,this._baseHref="",this._removeListenerFns=[],null!=fe&&(this._baseHref=fe)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(k){this._removeListenerFns.push(this._platformLocation.onPopState(k),this._platformLocation.onHashChange(k))}getBaseHref(){return this._baseHref}path(k=!1){let fe=this._platformLocation.hash;return null==fe&&(fe="#"),fe.length>0?fe.substring(1):fe}prepareExternalUrl(k){const fe=C(this._baseHref,k);return fe.length>0?"#"+fe:fe}pushState(k,fe,Xe,Et){let gt=this.prepareExternalUrl(Xe+O(Et));0==gt.length&&(gt=this._platformLocation.pathname),this._platformLocation.pushState(k,fe,gt)}replaceState(k,fe,Xe,Et){let gt=this.prepareExternalUrl(Xe+O(Et));0==gt.length&&(gt=this._platformLocation.pathname),this._platformLocation.replaceState(k,fe,gt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(k=0){var fe,Xe;null===(Xe=(fe=this._platformLocation).historyGo)||void 0===Xe||Xe.call(fe,k)}}return x.\u0275fac=function(k){return new(k||x)(n.\u0275\u0275inject(p),n.\u0275\u0275inject(N,8))},x.\u0275prov=n.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac}),x})(),G=(()=>{class x{constructor(k){this._subject=new n.EventEmitter,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=k;const fe=this._locationStrategy.getBaseHref();this._baseHref=M(te(fe)),this._locationStrategy.onPopState(Xe=>{this._subject.emit({url:this.path(!0),pop:!0,state:Xe.state,type:Xe.type})})}ngOnDestroy(){var k;null===(k=this._urlChangeSubscription)||void 0===k||k.unsubscribe(),this._urlChangeListeners=[]}path(k=!1){return this.normalize(this._locationStrategy.path(k))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(k,fe=""){return this.path()==this.normalize(k+O(fe))}normalize(k){return x.stripTrailingSlash(function J(x,ne){return x&&ne.startsWith(x)?ne.substring(x.length):ne}(this._baseHref,te(k)))}prepareExternalUrl(k){return k&&"/"!==k[0]&&(k="/"+k),this._locationStrategy.prepareExternalUrl(k)}go(k,fe="",Xe=null){this._locationStrategy.pushState(Xe,"",k,fe),this._notifyUrlChangeListeners(this.prepareExternalUrl(k+O(fe)),Xe)}replaceState(k,fe="",Xe=null){this._locationStrategy.replaceState(Xe,"",k,fe),this._notifyUrlChangeListeners(this.prepareExternalUrl(k+O(fe)),Xe)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(k=0){var fe,Xe;null===(Xe=(fe=this._locationStrategy).historyGo)||void 0===Xe||Xe.call(fe,k)}onUrlChange(k){return this._urlChangeListeners.push(k),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(fe=>{this._notifyUrlChangeListeners(fe.url,fe.state)})),()=>{var fe;const Xe=this._urlChangeListeners.indexOf(k);this._urlChangeListeners.splice(Xe,1),0===this._urlChangeListeners.length&&(null===(fe=this._urlChangeSubscription)||void 0===fe||fe.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(k="",fe){this._urlChangeListeners.forEach(Xe=>Xe(k,fe))}subscribe(k,fe,Xe){return this._subject.subscribe({next:k,error:fe,complete:Xe})}}return x.normalizeQueryParams=O,x.joinWithSlash=C,x.stripTrailingSlash=M,x.\u0275fac=function(k){return new(k||x)(n.\u0275\u0275inject(P))},x.\u0275prov=n.\u0275\u0275defineInjectable({token:x,factory:function(){return function $(){return new G((0,n.\u0275\u0275inject)(P))}()},providedIn:"root"}),x})();function te(x){return x.replace(/\/index.html$/,"")}const he={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,void 0,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"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLE:[void 0,void 0,2],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 Fe=(()=>((Fe=Fe||{})[Fe.Decimal=0]="Decimal",Fe[Fe.Percent=1]="Percent",Fe[Fe.Currency=2]="Currency",Fe[Fe.Scientific=3]="Scientific",Fe))(),it=(()=>((it=it||{})[it.Zero=0]="Zero",it[it.One=1]="One",it[it.Two=2]="Two",it[it.Few=3]="Few",it[it.Many=4]="Many",it[it.Other=5]="Other",it))(),be=(()=>((be=be||{})[be.Format=0]="Format",be[be.Standalone=1]="Standalone",be))(),ke=(()=>((ke=ke||{})[ke.Narrow=0]="Narrow",ke[ke.Abbreviated=1]="Abbreviated",ke[ke.Wide=2]="Wide",ke[ke.Short=3]="Short",ke))(),ie=(()=>((ie=ie||{})[ie.Short=0]="Short",ie[ie.Medium=1]="Medium",ie[ie.Long=2]="Long",ie[ie.Full=3]="Full",ie))(),Ae=(()=>((Ae=Ae||{})[Ae.Decimal=0]="Decimal",Ae[Ae.Group=1]="Group",Ae[Ae.List=2]="List",Ae[Ae.PercentSign=3]="PercentSign",Ae[Ae.PlusSign=4]="PlusSign",Ae[Ae.MinusSign=5]="MinusSign",Ae[Ae.Exponential=6]="Exponential",Ae[Ae.SuperscriptingExponent=7]="SuperscriptingExponent",Ae[Ae.PerMille=8]="PerMille",Ae[Ae.Infinity=9]="Infinity",Ae[Ae.NaN=10]="NaN",Ae[Ae.TimeSeparator=11]="TimeSeparator",Ae[Ae.CurrencyDecimal=12]="CurrencyDecimal",Ae[Ae.CurrencyGroup=13]="CurrencyGroup",Ae))(),oe=(()=>((oe=oe||{})[oe.Sunday=0]="Sunday",oe[oe.Monday=1]="Monday",oe[oe.Tuesday=2]="Tuesday",oe[oe.Wednesday=3]="Wednesday",oe[oe.Thursday=4]="Thursday",oe[oe.Friday=5]="Friday",oe[oe.Saturday=6]="Saturday",oe))();function me(x){return(0,n.\u0275findLocaleData)(x)[n.\u0275LocaleDataIndex.LocaleId]}function V(x,ne,k){const fe=(0,n.\u0275findLocaleData)(x),Et=Ke([fe[n.\u0275LocaleDataIndex.DayPeriodsFormat],fe[n.\u0275LocaleDataIndex.DayPeriodsStandalone]],ne);return Ke(Et,k)}function H(x,ne,k){const fe=(0,n.\u0275findLocaleData)(x),Et=Ke([fe[n.\u0275LocaleDataIndex.DaysFormat],fe[n.\u0275LocaleDataIndex.DaysStandalone]],ne);return Ke(Et,k)}function re(x,ne,k){const fe=(0,n.\u0275findLocaleData)(x),Et=Ke([fe[n.\u0275LocaleDataIndex.MonthsFormat],fe[n.\u0275LocaleDataIndex.MonthsStandalone]],ne);return Ke(Et,k)}function B(x,ne){return Ke((0,n.\u0275findLocaleData)(x)[n.\u0275LocaleDataIndex.Eras],ne)}function ue(x){return(0,n.\u0275findLocaleData)(x)[n.\u0275LocaleDataIndex.FirstDayOfWeek]}function ge(x){return(0,n.\u0275findLocaleData)(x)[n.\u0275LocaleDataIndex.WeekendRange]}function Te(x,ne){return Ke((0,n.\u0275findLocaleData)(x)[n.\u0275LocaleDataIndex.DateFormat],ne)}function Pe(x,ne){return Ke((0,n.\u0275findLocaleData)(x)[n.\u0275LocaleDataIndex.TimeFormat],ne)}function Ce(x,ne){return Ke((0,n.\u0275findLocaleData)(x)[n.\u0275LocaleDataIndex.DateTimeFormat],ne)}function $e(x,ne){const k=(0,n.\u0275findLocaleData)(x),fe=k[n.\u0275LocaleDataIndex.NumberSymbols][ne];if(void 0===fe){if(ne===Ae.CurrencyDecimal)return k[n.\u0275LocaleDataIndex.NumberSymbols][Ae.Decimal];if(ne===Ae.CurrencyGroup)return k[n.\u0275LocaleDataIndex.NumberSymbols][Ae.Group]}return fe}function lt(x,ne){return(0,n.\u0275findLocaleData)(x)[n.\u0275LocaleDataIndex.NumberFormats][ne]}function yt(x){return(0,n.\u0275findLocaleData)(x)[n.\u0275LocaleDataIndex.CurrencySymbol]||null}function _t(x){return(0,n.\u0275findLocaleData)(x)[n.\u0275LocaleDataIndex.CurrencyName]||null}function ut(x){return(0,n.\u0275getLocaleCurrencyCode)(x)}const Ie=n.\u0275getLocalePluralCase;function je(x){if(!x[n.\u0275LocaleDataIndex.ExtraData])throw new Error(`Missing extra locale data for the locale "${x[n.\u0275LocaleDataIndex.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function pe(x){const ne=(0,n.\u0275findLocaleData)(x);return je(ne),(ne[n.\u0275LocaleDataIndex.ExtraData][2]||[]).map(fe=>"string"==typeof fe?K(fe):[K(fe[0]),K(fe[1])])}function Qe(x,ne,k){const fe=(0,n.\u0275findLocaleData)(x);je(fe);const Et=Ke([fe[n.\u0275LocaleDataIndex.ExtraData][0],fe[n.\u0275LocaleDataIndex.ExtraData][1]],ne)||[];return Ke(Et,k)||[]}function Ve(x){return(0,n.\u0275findLocaleData)(x)[n.\u0275LocaleDataIndex.Directionality]}function Ke(x,ne){for(let k=ne;k>-1;k--)if(void 0!==x[k])return x[k];throw new Error("Locale data API: locale data undefined")}function K(x){const[ne,k]=x.split(":");return{hours:+ne,minutes:+k}}function we(x,ne,k="en"){const fe=function He(x){return(0,n.\u0275findLocaleData)(x)[n.\u0275LocaleDataIndex.Currencies]}(k)[x]||he[x]||[],Xe=fe[1];return"narrow"===ne&&"string"==typeof Xe?Xe:fe[0]||x}function Be(x){let ne;const k=he[x];return k&&(ne=k[2]),"number"==typeof ne?ne:2}const We=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,_e={},Ue=/((?:[^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 dt=(()=>((dt=dt||{})[dt.Short=0]="Short",dt[dt.ShortGMT=1]="ShortGMT",dt[dt.Long=2]="Long",dt[dt.Extended=3]="Extended",dt))(),xe=(()=>((xe=xe||{})[xe.FullYear=0]="FullYear",xe[xe.Month=1]="Month",xe[xe.Date=2]="Date",xe[xe.Hours=3]="Hours",xe[xe.Minutes=4]="Minutes",xe[xe.Seconds=5]="Seconds",xe[xe.FractionalSeconds=6]="FractionalSeconds",xe[xe.Day=7]="Day",xe))(),W=(()=>((W=W||{})[W.DayPeriods=0]="DayPeriods",W[W.Days=1]="Days",W[W.Months=2]="Months",W[W.Eras=3]="Eras",W))();function ye(x,ne,k,fe){let Xe=function at(x){if(Ht(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[Xe,Et=1,gt=1]=x.split("-").map(Bt=>+Bt);return de(Xe,Et-1,gt)}const k=parseFloat(x);if(!isNaN(x-k))return new Date(k);let fe;if(fe=x.match(We))return function Dt(x){const ne=new Date(0);let k=0,fe=0;const Xe=x[8]?ne.setUTCFullYear:ne.setFullYear,Et=x[8]?ne.setUTCHours:ne.setHours;x[9]&&(k=Number(x[9]+x[10]),fe=Number(x[9]+x[11])),Xe.call(ne,Number(x[1]),Number(x[2])-1,Number(x[3]));const gt=Number(x[4]||0)-k,Bt=Number(x[5]||0)-fe,pn=Number(x[6]||0),Cn=Math.floor(1e3*parseFloat("0."+(x[7]||0)));return Et.call(ne,gt,Bt,pn,Cn),ne}(fe)}const ne=new Date(x);if(!Ht(ne))throw new Error(`Unable to convert "${x}" into a date`);return ne}(x);ne=Ne(k,ne)||ne;let Bt,gt=[];for(;ne;){if(Bt=Ue.exec(ne),!Bt){gt.push(ne);break}{gt=gt.concat(Bt.slice(1));const Sn=gt.pop();if(!Sn)break;ne=Sn}}let pn=Xe.getTimezoneOffset();fe&&(pn=bt(fe,pn),Xe=function Oe(x,ne,k){const fe=k?-1:1,Xe=x.getTimezoneOffset();return function X(x,ne){return(x=new Date(x.getTime())).setMinutes(x.getMinutes()+ne),x}(x,fe*(bt(ne,Xe)-Xe))}(Xe,fe,!0));let Cn="";return gt.forEach(Sn=>{const fn=function Ge(x){if(vt[x])return vt[x];let ne;switch(x){case"G":case"GG":case"GGG":ne=Nt(W.Eras,ke.Abbreviated);break;case"GGGG":ne=Nt(W.Eras,ke.Wide);break;case"GGGGG":ne=Nt(W.Eras,ke.Narrow);break;case"y":ne=At(xe.FullYear,1,0,!1,!0);break;case"yy":ne=At(xe.FullYear,2,0,!0,!0);break;case"yyy":ne=At(xe.FullYear,3,0,!1,!0);break;case"yyyy":ne=At(xe.FullYear,4,0,!1,!0);break;case"Y":ne=Me(1);break;case"YY":ne=Me(2,!0);break;case"YYY":ne=Me(3);break;case"YYYY":ne=Me(4);break;case"M":case"L":ne=At(xe.Month,1,1);break;case"MM":case"LL":ne=At(xe.Month,2,1);break;case"MMM":ne=Nt(W.Months,ke.Abbreviated);break;case"MMMM":ne=Nt(W.Months,ke.Wide);break;case"MMMMM":ne=Nt(W.Months,ke.Narrow);break;case"LLL":ne=Nt(W.Months,ke.Abbreviated,be.Standalone);break;case"LLLL":ne=Nt(W.Months,ke.Wide,be.Standalone);break;case"LLLLL":ne=Nt(W.Months,ke.Narrow,be.Standalone);break;case"w":ne=j(1);break;case"ww":ne=j(2);break;case"W":ne=j(1,!0);break;case"d":ne=At(xe.Date,1);break;case"dd":ne=At(xe.Date,2);break;case"c":case"cc":ne=At(xe.Day,1);break;case"ccc":ne=Nt(W.Days,ke.Abbreviated,be.Standalone);break;case"cccc":ne=Nt(W.Days,ke.Wide,be.Standalone);break;case"ccccc":ne=Nt(W.Days,ke.Narrow,be.Standalone);break;case"cccccc":ne=Nt(W.Days,ke.Short,be.Standalone);break;case"E":case"EE":case"EEE":ne=Nt(W.Days,ke.Abbreviated);break;case"EEEE":ne=Nt(W.Days,ke.Wide);break;case"EEEEE":ne=Nt(W.Days,ke.Narrow);break;case"EEEEEE":ne=Nt(W.Days,ke.Short);break;case"a":case"aa":case"aaa":ne=Nt(W.DayPeriods,ke.Abbreviated);break;case"aaaa":ne=Nt(W.DayPeriods,ke.Wide);break;case"aaaaa":ne=Nt(W.DayPeriods,ke.Narrow);break;case"b":case"bb":case"bbb":ne=Nt(W.DayPeriods,ke.Abbreviated,be.Standalone,!0);break;case"bbbb":ne=Nt(W.DayPeriods,ke.Wide,be.Standalone,!0);break;case"bbbbb":ne=Nt(W.DayPeriods,ke.Narrow,be.Standalone,!0);break;case"B":case"BB":case"BBB":ne=Nt(W.DayPeriods,ke.Abbreviated,be.Format,!0);break;case"BBBB":ne=Nt(W.DayPeriods,ke.Wide,be.Format,!0);break;case"BBBBB":ne=Nt(W.DayPeriods,ke.Narrow,be.Format,!0);break;case"h":ne=At(xe.Hours,1,-12);break;case"hh":ne=At(xe.Hours,2,-12);break;case"H":ne=At(xe.Hours,1);break;case"HH":ne=At(xe.Hours,2);break;case"m":ne=At(xe.Minutes,1);break;case"mm":ne=At(xe.Minutes,2);break;case"s":ne=At(xe.Seconds,1);break;case"ss":ne=At(xe.Seconds,2);break;case"S":ne=At(xe.FractionalSeconds,1);break;case"SS":ne=At(xe.FractionalSeconds,2);break;case"SSS":ne=At(xe.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":ne=Je(dt.Short);break;case"ZZZZZ":ne=Je(dt.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":ne=Je(dt.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":ne=Je(dt.Long);break;default:return null}return vt[x]=ne,ne}(Sn);Cn+=fn?fn(Xe,k,pn):"''"===Sn?"'":Sn.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Cn}function de(x,ne,k){const fe=new Date(0);return fe.setFullYear(x,ne,k),fe.setHours(0,0,0),fe}function Ne(x,ne){const k=me(x);if(_e[k]=_e[k]||{},_e[k][ne])return _e[k][ne];let fe="";switch(ne){case"shortDate":fe=Te(x,ie.Short);break;case"mediumDate":fe=Te(x,ie.Medium);break;case"longDate":fe=Te(x,ie.Long);break;case"fullDate":fe=Te(x,ie.Full);break;case"shortTime":fe=Pe(x,ie.Short);break;case"mediumTime":fe=Pe(x,ie.Medium);break;case"longTime":fe=Pe(x,ie.Long);break;case"fullTime":fe=Pe(x,ie.Full);break;case"short":const Xe=Ne(x,"shortTime"),Et=Ne(x,"shortDate");fe=tt(Ce(x,ie.Short),[Xe,Et]);break;case"medium":const gt=Ne(x,"mediumTime"),Bt=Ne(x,"mediumDate");fe=tt(Ce(x,ie.Medium),[gt,Bt]);break;case"long":const pn=Ne(x,"longTime"),Cn=Ne(x,"longDate");fe=tt(Ce(x,ie.Long),[pn,Cn]);break;case"full":const Sn=Ne(x,"fullTime"),fn=Ne(x,"fullDate");fe=tt(Ce(x,ie.Full),[Sn,fn])}return fe&&(_e[k][ne]=fe),fe}function tt(x,ne){return ne&&(x=x.replace(/\{([^}]+)}/g,function(k,fe){return null!=ne&&fe in ne?ne[fe]:k})),x}function mt(x,ne,k="-",fe,Xe){let Et="";(x<0||Xe&&x<=0)&&(Xe?x=1-x:(x=-x,Et=k));let gt=String(x);for(;gt.length<ne;)gt="0"+gt;return fe&&(gt=gt.slice(gt.length-ne)),Et+gt}function At(x,ne,k=0,fe=!1,Xe=!1){return function(Et,gt){let Bt=function Yt(x,ne){switch(x){case xe.FullYear:return ne.getFullYear();case xe.Month:return ne.getMonth();case xe.Date:return ne.getDate();case xe.Hours:return ne.getHours();case xe.Minutes:return ne.getMinutes();case xe.Seconds:return ne.getSeconds();case xe.FractionalSeconds:return ne.getMilliseconds();case xe.Day:return ne.getDay();default:throw new Error(`Unknown DateType value "${x}".`)}}(x,Et);if((k>0||Bt>-k)&&(Bt+=k),x===xe.Hours)0===Bt&&-12===k&&(Bt=12);else if(x===xe.FractionalSeconds)return function Ft(x,ne){return mt(x,3).substring(0,ne)}(Bt,ne);const pn=$e(gt,Ae.MinusSign);return mt(Bt,ne,pn,fe,Xe)}}function Nt(x,ne,k=be.Format,fe=!1){return function(Xe,Et){return function rt(x,ne,k,fe,Xe,Et){switch(k){case W.Months:return re(ne,Xe,fe)[x.getMonth()];case W.Days:return H(ne,Xe,fe)[x.getDay()];case W.DayPeriods:const gt=x.getHours(),Bt=x.getMinutes();if(Et){const Cn=pe(ne),Sn=Qe(ne,Xe,fe),fn=Cn.findIndex($n=>{if(Array.isArray($n)){const[Dn,Rn]=$n,St=gt>=Dn.hours&&Bt>=Dn.minutes,on=gt<Rn.hours||gt===Rn.hours&&Bt<Rn.minutes;if(Dn.hours<Rn.hours){if(St&&on)return!0}else if(St||on)return!0}else if($n.hours===gt&&$n.minutes===Bt)return!0;return!1});if(-1!==fn)return Sn[fn]}return V(ne,Xe,fe)[gt<12?0:1];case W.Eras:return B(ne,fe)[x.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${k}`)}}(Xe,Et,x,ne,k,fe)}}function Je(x){return function(ne,k,fe){const Xe=-1*fe,Et=$e(k,Ae.MinusSign),gt=Xe>0?Math.floor(Xe/60):Math.ceil(Xe/60);switch(x){case dt.Short:return(Xe>=0?"+":"")+mt(gt,2,Et)+mt(Math.abs(Xe%60),2,Et);case dt.ShortGMT:return"GMT"+(Xe>=0?"+":"")+mt(gt,1,Et);case dt.Long:return"GMT"+(Xe>=0?"+":"")+mt(gt,2,Et)+":"+mt(Math.abs(Xe%60),2,Et);case dt.Extended:return 0===fe?"Z":(Xe>=0?"+":"")+mt(gt,2,Et)+":"+mt(Math.abs(Xe%60),2,Et);default:throw new Error(`Unknown zone width "${x}"`)}}}function ae(x){return de(x.getFullYear(),x.getMonth(),x.getDate()+(4-x.getDay()))}function j(x,ne=!1){return function(k,fe){let Xe;if(ne){const Et=new Date(k.getFullYear(),k.getMonth(),1).getDay()-1,gt=k.getDate();Xe=1+Math.floor((gt+Et)/7)}else{const Et=ae(k),gt=function se(x){const ne=de(x,0,1).getDay();return de(x,0,1+(ne<=4?4:11)-ne)}(Et.getFullYear()),Bt=Et.getTime()-gt.getTime();Xe=1+Math.round(Bt/6048e5)}return mt(Xe,x,$e(fe,Ae.MinusSign))}}function Me(x,ne=!1){return function(k,fe){return mt(ae(k).getFullYear(),x,$e(fe,Ae.MinusSign),ne)}}const vt={};function bt(x,ne){x=x.replace(/:/g,"");const k=Date.parse("Jan 01, 1970 00:00:00 "+x)/6e4;return isNaN(k)?ne:k}function Ht(x){return x instanceof Date&&!isNaN(x.valueOf())}const rn=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function Lt(x,ne,k,fe,Xe,Et,gt=!1){let Bt="",pn=!1;if(isFinite(x)){let Cn=function Ze(x){let fe,Xe,Et,gt,Bt,ne=Math.abs(x)+"",k=0;for((Xe=ne.indexOf("."))>-1&&(ne=ne.replace(".","")),(Et=ne.search(/e/i))>0?(Xe<0&&(Xe=Et),Xe+=+ne.slice(Et+1),ne=ne.substring(0,Et)):Xe<0&&(Xe=ne.length),Et=0;"0"===ne.charAt(Et);Et++);if(Et===(Bt=ne.length))fe=[0],Xe=1;else{for(Bt--;"0"===ne.charAt(Bt);)Bt--;for(Xe-=Et,fe=[],gt=0;Et<=Bt;Et++,gt++)fe[gt]=Number(ne.charAt(Et))}return Xe>22&&(fe=fe.splice(0,21),k=Xe-1,Xe=1),{digits:fe,exponent:k,integerLen:Xe}}(x);gt&&(Cn=function ce(x){if(0===x.digits[0])return x;const ne=x.digits.length-x.integerLen;return x.exponent?x.exponent+=2:(0===ne?x.digits.push(0,0):1===ne&&x.digits.push(0),x.integerLen+=2),x}(Cn));let Sn=ne.minInt,fn=ne.minFrac,$n=ne.maxFrac;if(Et){const ai=Et.match(rn);if(null===ai)throw new Error(`${Et} is not a valid digit info`);const xn=ai[1],tr=ai[3],Hi=ai[5];null!=xn&&(Sn=Le(xn)),null!=tr&&(fn=Le(tr)),null!=Hi?$n=Le(Hi):null!=tr&&fn>$n&&($n=fn)}!function q(x,ne,k){if(ne>k)throw new Error(`The minimum number of digits after fraction (${ne}) is higher than the maximum (${k}).`);let fe=x.digits,Xe=fe.length-x.integerLen;const Et=Math.min(Math.max(ne,Xe),k);let gt=Et+x.integerLen,Bt=fe[gt];if(gt>0){fe.splice(Math.max(x.integerLen,gt));for(let fn=gt;fn<fe.length;fn++)fe[fn]=0}else{Xe=Math.max(0,Xe),x.integerLen=1,fe.length=Math.max(1,gt=Et+1),fe[0]=0;for(let fn=1;fn<gt;fn++)fe[fn]=0}if(Bt>=5)if(gt-1<0){for(let fn=0;fn>gt;fn--)fe.unshift(0),x.integerLen++;fe.unshift(1),x.integerLen++}else fe[gt-1]++;for(;Xe<Math.max(0,Et);Xe++)fe.push(0);let pn=0!==Et;const Cn=ne+x.integerLen,Sn=fe.reduceRight(function(fn,$n,Dn,Rn){return Rn[Dn]=($n+=fn)<10?$n:$n-10,pn&&(0===Rn[Dn]&&Dn>=Cn?Rn.pop():pn=!1),$n>=10?1:0},0);Sn&&(fe.unshift(Sn),x.integerLen++)}(Cn,fn,$n);let Dn=Cn.digits,Rn=Cn.integerLen;const St=Cn.exponent;let on=[];for(pn=Dn.every(ai=>!ai);Rn<Sn;Rn++)Dn.unshift(0);for(;Rn<0;Rn++)Dn.unshift(0);Rn>0?on=Dn.splice(Rn,Dn.length):(on=Dn,Dn=[0]);const $i=[];for(Dn.length>=ne.lgSize&&$i.unshift(Dn.splice(-ne.lgSize,Dn.length).join(""));Dn.length>ne.gSize;)$i.unshift(Dn.splice(-ne.gSize,Dn.length).join(""));Dn.length&&$i.unshift(Dn.join("")),Bt=$i.join($e(k,fe)),on.length&&(Bt+=$e(k,Xe)+on.join("")),St&&(Bt+=$e(k,Ae.Exponential)+"+"+St)}else Bt=$e(k,Ae.Infinity);return Bt=x<0&&!pn?ne.negPre+Bt+ne.negSuf:ne.posPre+Bt+ne.posSuf,Bt}function Wt(x,ne,k,fe,Xe){const gt=Hn(lt(ne,Fe.Currency),$e(ne,Ae.MinusSign));return gt.minFrac=Be(fe),gt.maxFrac=gt.minFrac,Lt(x,gt,ne,Ae.CurrencyGroup,Ae.CurrencyDecimal,Xe).replace("\xa4",k).replace("\xa4","").trim()}function yn(x,ne,k){return Lt(x,Hn(lt(ne,Fe.Percent),$e(ne,Ae.MinusSign)),ne,Ae.Group,Ae.Decimal,k,!0).replace(new RegExp("%","g"),$e(ne,Ae.PercentSign))}function gn(x,ne,k){return Lt(x,Hn(lt(ne,Fe.Decimal),$e(ne,Ae.MinusSign)),ne,Ae.Group,Ae.Decimal,k)}function Hn(x,ne="-"){const k={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},fe=x.split(";"),Xe=fe[0],Et=fe[1],gt=-1!==Xe.indexOf(".")?Xe.split("."):[Xe.substring(0,Xe.lastIndexOf("0")+1),Xe.substring(Xe.lastIndexOf("0")+1)],Bt=gt[0],pn=gt[1]||"";k.posPre=Bt.substring(0,Bt.indexOf("#"));for(let Sn=0;Sn<pn.length;Sn++){const fn=pn.charAt(Sn);"0"===fn?k.minFrac=k.maxFrac=Sn+1:"#"===fn?k.maxFrac=Sn+1:k.posSuf+=fn}const Cn=Bt.split(",");if(k.gSize=Cn[1]?Cn[1].length:0,k.lgSize=Cn[2]||Cn[1]?(Cn[2]||Cn[1]).length:0,Et){const Sn=Xe.length-k.posPre.length-k.posSuf.length,fn=Et.indexOf("#");k.negPre=Et.substring(0,fn).replace(/'/g,""),k.negSuf=Et.slice(fn+Sn).replace(/'/g,"")}else k.negPre=ne+k.posPre,k.negSuf=k.posSuf;return k}function Le(x){const ne=parseInt(x);if(isNaN(ne))throw new Error("Invalid integer literal when parsing "+x);return ne}let ft=(()=>{class x{}return x.\u0275fac=function(k){return new(k||x)},x.\u0275prov=n.\u0275\u0275defineInjectable({token:x,factory:function(k){let fe=null;return k?fe=new k:(Xe=n.\u0275\u0275inject(n.LOCALE_ID),fe=new xt(Xe)),fe;var Xe},providedIn:"root"}),x})();function Tt(x,ne,k,fe){let Xe=`=${x}`;if(ne.indexOf(Xe)>-1||(Xe=k.getPluralCategory(x,fe),ne.indexOf(Xe)>-1))return Xe;if(ne.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${x}"`)}let xt=(()=>{class x extends ft{constructor(k){super(),this.locale=k}getPluralCategory(k,fe){switch(Ie(fe||this.locale)(k)){case it.Zero:return"zero";case it.One:return"one";case it.Two:return"two";case it.Few:return"few";case it.Many:return"many";default:return"other"}}}return x.\u0275fac=function(k){return new(k||x)(n.\u0275\u0275inject(n.LOCALE_ID))},x.\u0275prov=n.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac}),x})();function Kt(x,ne,k){return(0,n.\u0275registerLocaleData)(x,ne,k)}function Ut(x,ne){ne=encodeURIComponent(ne);for(const k of x.split(";")){const fe=k.indexOf("="),[Xe,Et]=-1==fe?[k,""]:[k.slice(0,fe),k.slice(fe+1)];if(Xe.trim()===ne)return decodeURIComponent(Et)}return null}let _n=(()=>{class x{constructor(k,fe,Xe,Et){this._iterableDiffers=k,this._keyValueDiffers=fe,this._ngEl=Xe,this._renderer=Et,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(k){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof k?k.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(k){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof k?k.split(/\s+/):k,this._rawClass&&((0,n.\u0275isListLikeIterable)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const k=this._iterableDiffer.diff(this._rawClass);k&&this._applyIterableChanges(k)}else if(this._keyValueDiffer){const k=this._keyValueDiffer.diff(this._rawClass);k&&this._applyKeyValueChanges(k)}}_applyKeyValueChanges(k){k.forEachAddedItem(fe=>this._toggleClass(fe.key,fe.currentValue)),k.forEachChangedItem(fe=>this._toggleClass(fe.key,fe.currentValue)),k.forEachRemovedItem(fe=>{fe.previousValue&&this._toggleClass(fe.key,!1)})}_applyIterableChanges(k){k.forEachAddedItem(fe=>{if("string"!=typeof fe.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,n.\u0275stringify)(fe.item)}`);this._toggleClass(fe.item,!0)}),k.forEachRemovedItem(fe=>this._toggleClass(fe.item,!1))}_applyClasses(k){k&&(Array.isArray(k)||k instanceof Set?k.forEach(fe=>this._toggleClass(fe,!0)):Object.keys(k).forEach(fe=>this._toggleClass(fe,!!k[fe])))}_removeClasses(k){k&&(Array.isArray(k)||k instanceof Set?k.forEach(fe=>this._toggleClass(fe,!1)):Object.keys(k).forEach(fe=>this._toggleClass(fe,!1)))}_toggleClass(k,fe){(k=k.trim())&&k.split(/\s+/g).forEach(Xe=>{fe?this._renderer.addClass(this._ngEl.nativeElement,Xe):this._renderer.removeClass(this._ngEl.nativeElement,Xe)})}}return x.\u0275fac=function(k){return new(k||x)(n.\u0275\u0275directiveInject(n.IterableDiffers),n.\u0275\u0275directiveInject(n.KeyValueDiffers),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.Renderer2))},x.\u0275dir=n.\u0275\u0275defineDirective({type:x,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),x})(),dn=(()=>{class x{constructor(k){this._viewContainerRef=k,this.ngComponentOutlet=null}ngOnChanges(k){const{_viewContainerRef:fe,ngComponentOutletNgModule:Xe,ngComponentOutletNgModuleFactory:Et}=this;if(fe.clear(),this._componentRef=void 0,this.ngComponentOutlet){const gt=this.ngComponentOutletInjector||fe.parentInjector;(k.ngComponentOutletNgModule||k.ngComponentOutletNgModuleFactory)&&(this._moduleRef&&this._moduleRef.destroy(),this._moduleRef=Xe?(0,n.createNgModule)(Xe,ln(gt)):Et?Et.create(ln(gt)):void 0),this._componentRef=fe.createComponent(this.ngComponentOutlet,{index:fe.length,injector:gt,ngModuleRef:this._moduleRef,projectableNodes:this.ngComponentOutletContent})}}ngOnDestroy(){this._moduleRef&&this._moduleRef.destroy()}}return x.\u0275fac=function(k){return new(k||x)(n.\u0275\u0275directiveInject(n.ViewContainerRef))},x.\u0275dir=n.\u0275\u0275defineDirective({type:x,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},standalone:!0,features:[n.\u0275\u0275NgOnChangesFeature]}),x})();function ln(x){return x.get(n.NgModuleRef).injector}class zn{constructor(ne,k,fe,Xe){this.$implicit=ne,this.ngForOf=k,this.index=fe,this.count=Xe}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 cn=(()=>{class x{constructor(k,fe,Xe){this._viewContainer=k,this._template=fe,this._differs=Xe,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(k){this._ngForOf=k,this._ngForOfDirty=!0}set ngForTrackBy(k){this._trackByFn=k}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(k){k&&(this._template=k)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const k=this._ngForOf;!this._differ&&k&&(this._differ=this._differs.find(k).create(this.ngForTrackBy))}if(this._differ){const k=this._differ.diff(this._ngForOf);k&&this._applyChanges(k)}}_applyChanges(k){const fe=this._viewContainer;k.forEachOperation((Xe,Et,gt)=>{if(null==Xe.previousIndex)fe.createEmbeddedView(this._template,new zn(Xe.item,this._ngForOf,-1,-1),null===gt?void 0:gt);else if(null==gt)fe.remove(null===Et?void 0:Et);else if(null!==Et){const Bt=fe.get(Et);fe.move(Bt,gt),On(Bt,Xe)}});for(let Xe=0,Et=fe.length;Xe<Et;Xe++){const Bt=fe.get(Xe).context;Bt.index=Xe,Bt.count=Et,Bt.ngForOf=this._ngForOf}k.forEachIdentityChange(Xe=>{On(fe.get(Xe.currentIndex),Xe)})}static ngTemplateContextGuard(k,fe){return!0}}return x.\u0275fac=function(k){return new(k||x)(n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(n.IterableDiffers))},x.\u0275dir=n.\u0275\u0275defineDirective({type:x,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),x})();function On(x,ne){x.context.$implicit=ne.item}let En=(()=>{class x{constructor(k,fe){this._viewContainer=k,this._context=new Nn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=fe}set ngIf(k){this._context.$implicit=this._context.ngIf=k,this._updateView()}set ngIfThen(k){Ti("ngIfThen",k),this._thenTemplateRef=k,this._thenViewRef=null,this._updateView()}set ngIfElse(k){Ti("ngIfElse",k),this._elseTemplateRef=k,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(k,fe){return!0}}return x.\u0275fac=function(k){return new(k||x)(n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(n.TemplateRef))},x.\u0275dir=n.\u0275\u0275defineDirective({type:x,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),x})();class Nn{constructor(){this.$implicit=null,this.ngIf=null}}function Ti(x,ne){if(ne&&!ne.createEmbeddedView)throw new Error(`${x} must be a TemplateRef, but received '${(0,n.\u0275stringify)(ne)}'.`)}class wi{constructor(ne,k){this._viewContainerRef=ne,this._templateRef=k,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(ne){ne&&!this._created?this.create():!ne&&this._created&&this.destroy()}}let bi=(()=>{class x{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(k){this._ngSwitch=k,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(k){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(k)}_matchCase(k){const fe=k==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||fe,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),fe}_updateDefaultCases(k){if(this._defaultViews&&k!==this._defaultUsed){this._defaultUsed=k;for(let fe=0;fe<this._defaultViews.length;fe++)this._defaultViews[fe].enforceState(k)}}}return x.\u0275fac=function(k){return new(k||x)},x.\u0275dir=n.\u0275\u0275defineDirective({type:x,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),x})(),Ln=(()=>{class x{constructor(k,fe,Xe){this.ngSwitch=Xe,Xe._addCase(),this._view=new wi(k,fe)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return x.\u0275fac=function(k){return new(k||x)(n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(bi,9))},x.\u0275dir=n.\u0275\u0275defineDirective({type:x,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),x})(),Ni=(()=>{class x{constructor(k,fe,Xe){Xe._addDefault(new wi(k,fe))}}return x.\u0275fac=function(k){return new(k||x)(n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(bi,9))},x.\u0275dir=n.\u0275\u0275defineDirective({type:x,selectors:[["","ngSwitchDefault",""]],standalone:!0}),x})(),Ci=(()=>{class x{constructor(k){this._localization=k,this._caseViews={}}set ngPlural(k){this._switchValue=k,this._updateView()}addCase(k,fe){this._caseViews[k]=fe}_updateView(){this._clearViews();const k=Object.keys(this._caseViews),fe=Tt(this._switchValue,k,this._localization);this._activateView(this._caseViews[fe])}_clearViews(){this._activeView&&this._activeView.destroy()}_activateView(k){k&&(this._activeView=k,this._activeView.create())}}return x.\u0275fac=function(k){return new(k||x)(n.\u0275\u0275directiveInject(ft))},x.\u0275dir=n.\u0275\u0275defineDirective({type:x,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"},standalone:!0}),x})(),Gi=(()=>{class x{constructor(k,fe,Xe,Et){this.value=k;const gt=!isNaN(Number(k));Et.addCase(gt?`=${k}`:k,new wi(Xe,fe))}}return x.\u0275fac=function(k){return new(k||x)(n.\u0275\u0275injectAttribute("ngPluralCase"),n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(Ci,1))},x.\u0275dir=n.\u0275\u0275defineDirective({type:x,selectors:[["","ngPluralCase",""]],standalone:!0}),x})(),Ki=(()=>{class x{constructor(k,fe,Xe){this._ngEl=k,this._differs=fe,this._renderer=Xe,this._ngStyle=null,this._differ=null}set ngStyle(k){this._ngStyle=k,!this._differ&&k&&(this._differ=this._differs.find(k).create())}ngDoCheck(){if(this._differ){const k=this._differ.diff(this._ngStyle);k&&this._applyChanges(k)}}_setStyle(k,fe){const[Xe,Et]=k.split("."),gt=-1===Xe.indexOf("-")?void 0:n.RendererStyleFlags2.DashCase;null!=fe?this._renderer.setStyle(this._ngEl.nativeElement,Xe,Et?`${fe}${Et}`:fe,gt):this._renderer.removeStyle(this._ngEl.nativeElement,Xe,gt)}_applyChanges(k){k.forEachRemovedItem(fe=>this._setStyle(fe.key,null)),k.forEachAddedItem(fe=>this._setStyle(fe.key,fe.currentValue)),k.forEachChangedItem(fe=>this._setStyle(fe.key,fe.currentValue))}}return x.\u0275fac=function(k){return new(k||x)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.KeyValueDiffers),n.\u0275\u0275directiveInject(n.Renderer2))},x.\u0275dir=n.\u0275\u0275defineDirective({type:x,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),x})(),cr=(()=>{class x{constructor(k){this._viewContainerRef=k,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(k){if(k.ngTemplateOutlet||k.ngTemplateOutletInjector){const fe=this._viewContainerRef;if(this._viewRef&&fe.remove(fe.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:Xe,ngTemplateOutletContext:Et,ngTemplateOutletInjector:gt}=this;this._viewRef=fe.createEmbeddedView(Xe,Et,gt?{injector:gt}:void 0)}else this._viewRef=null}else this._viewRef&&k.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return x.\u0275fac=function(k){return new(k||x)(n.\u0275\u0275directiveInject(n.ViewContainerRef))},x.\u0275dir=n.\u0275\u0275defineDirective({type:x,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[n.\u0275\u0275NgOnChangesFeature]}),x})();function Xn(x,ne){return new n.\u0275RuntimeError(2100,!1)}class ur{createSubscription(ne,k){return ne.subscribe({next:k,error:fe=>{throw fe}})}dispose(ne){ne.unsubscribe()}}class Xr{createSubscription(ne,k){return ne.then(k,fe=>{throw fe})}dispose(ne){}}const Li=new Xr,dr=new ur;let Di=(()=>{class x{constructor(k){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=k}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(k){return this._obj?k!==this._obj?(this._dispose(),this.transform(k)):this._latestValue:(k&&this._subscribe(k),this._latestValue)}_subscribe(k){this._obj=k,this._strategy=this._selectStrategy(k),this._subscription=this._strategy.createSubscription(k,fe=>this._updateLatestValue(k,fe))}_selectStrategy(k){if((0,n.\u0275isPromise)(k))return Li;if((0,n.\u0275isSubscribable)(k))return dr;throw Xn()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(k,fe){k===this._obj&&(this._latestValue=fe,this._ref.markForCheck())}}return x.\u0275fac=function(k){return new(k||x)(n.\u0275\u0275directiveInject(n.ChangeDetectorRef,16))},x.\u0275pipe=n.\u0275\u0275definePipe({name:"async",type:x,pure:!1,standalone:!0}),x})(),Or=(()=>{class x{transform(k){if(null==k)return null;if("string"!=typeof k)throw Xn();return k.toLowerCase()}}return x.\u0275fac=function(k){return new(k||x)},x.\u0275pipe=n.\u0275\u0275definePipe({name:"lowercase",type:x,pure:!0,standalone:!0}),x})();const Yi=/(?:[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 Qi=(()=>{class x{transform(k){if(null==k)return null;if("string"!=typeof k)throw Xn();return k.replace(Yi,fe=>fe[0].toUpperCase()+fe.slice(1).toLowerCase())}}return x.\u0275fac=function(k){return new(k||x)},x.\u0275pipe=n.\u0275\u0275definePipe({name:"titlecase",type:x,pure:!0,standalone:!0}),x})(),Hr=(()=>{class x{transform(k){if(null==k)return null;if("string"!=typeof k)throw Xn();return k.toUpperCase()}}return x.\u0275fac=function(k){return new(k||x)},x.\u0275pipe=n.\u0275\u0275definePipe({name:"uppercase",type:x,pure:!0,standalone:!0}),x})();const Mi=new n.InjectionToken("DATE_PIPE_DEFAULT_TIMEZONE");let fr=(()=>{class x{constructor(k,fe){this.locale=k,this.defaultTimezone=fe}transform(k,fe="mediumDate",Xe,Et){var gt;if(null==k||""===k||k!=k)return null;try{return ye(k,fe,Et||this.locale,null!==(gt=null!=Xe?Xe:this.defaultTimezone)&&void 0!==gt?gt:void 0)}catch(Bt){throw Xn()}}}return x.\u0275fac=function(k){return new(k||x)(n.\u0275\u0275directiveInject(n.LOCALE_ID,16),n.\u0275\u0275directiveInject(Mi,24))},x.\u0275pipe=n.\u0275\u0275definePipe({name:"date",type:x,pure:!0,standalone:!0}),x})();const Ei=/#/g;let Ar=(()=>{class x{constructor(k){this._localization=k}transform(k,fe,Xe){if(null==k)return"";if("object"!=typeof fe||null===fe)throw Xn();return fe[Tt(k,Object.keys(fe),this._localization,Xe)].replace(Ei,k.toString())}}return x.\u0275fac=function(k){return new(k||x)(n.\u0275\u0275directiveInject(ft,16))},x.\u0275pipe=n.\u0275\u0275definePipe({name:"i18nPlural",type:x,pure:!0,standalone:!0}),x})(),Si=(()=>{class x{transform(k,fe){if(null==k)return"";if("object"!=typeof fe||"string"!=typeof k)throw Xn();return fe.hasOwnProperty(k)?fe[k]:fe.hasOwnProperty("other")?fe.other:""}}return x.\u0275fac=function(k){return new(k||x)},x.\u0275pipe=n.\u0275\u0275definePipe({name:"i18nSelect",type:x,pure:!0,standalone:!0}),x})(),Zi=(()=>{class x{transform(k){return JSON.stringify(k,null,2)}}return x.\u0275fac=function(k){return new(k||x)},x.\u0275pipe=n.\u0275\u0275definePipe({name:"json",type:x,pure:!1,standalone:!0}),x})(),Ji=(()=>{class x{constructor(k){this.differs=k,this.keyValues=[],this.compareFn=ji}transform(k,fe=ji){if(!k||!(k instanceof Map)&&"object"!=typeof k)return null;this.differ||(this.differ=this.differs.find(k).create());const Xe=this.differ.diff(k),Et=fe!==this.compareFn;return Xe&&(this.keyValues=[],Xe.forEachItem(gt=>{this.keyValues.push(function ni(x,ne){return{key:x,value:ne}}(gt.key,gt.currentValue))})),(Xe||Et)&&(this.keyValues.sort(fe),this.compareFn=fe),this.keyValues}}return x.\u0275fac=function(k){return new(k||x)(n.\u0275\u0275directiveInject(n.KeyValueDiffers,16))},x.\u0275pipe=n.\u0275\u0275definePipe({name:"keyvalue",type:x,pure:!1,standalone:!0}),x})();function ji(x,ne){const k=x.key,fe=ne.key;if(k===fe)return 0;if(void 0===k)return 1;if(void 0===fe)return-1;if(null===k)return 1;if(null===fe)return-1;if("string"==typeof k&&"string"==typeof fe)return k<fe?-1:1;if("number"==typeof k&&"number"==typeof fe)return k-fe;if("boolean"==typeof k&&"boolean"==typeof fe)return k<fe?-1:1;const Xe=String(k),Et=String(fe);return Xe==Et?0:Xe<Et?-1:1}let Ii=(()=>{class x{constructor(k){this._locale=k}transform(k,fe,Xe){if(!Bi(k))return null;Xe=Xe||this._locale;try{return gn(hi(k),Xe,fe)}catch(Et){throw Xn()}}}return x.\u0275fac=function(k){return new(k||x)(n.\u0275\u0275directiveInject(n.LOCALE_ID,16))},x.\u0275pipe=n.\u0275\u0275definePipe({name:"number",type:x,pure:!0,standalone:!0}),x})(),hr=(()=>{class x{constructor(k){this._locale=k}transform(k,fe,Xe){if(!Bi(k))return null;Xe=Xe||this._locale;try{return yn(hi(k),Xe,fe)}catch(Et){throw Xn()}}}return x.\u0275fac=function(k){return new(k||x)(n.\u0275\u0275directiveInject(n.LOCALE_ID,16))},x.\u0275pipe=n.\u0275\u0275definePipe({name:"percent",type:x,pure:!0,standalone:!0}),x})(),Xi=(()=>{class x{constructor(k,fe="USD"){this._locale=k,this._defaultCurrencyCode=fe}transform(k,fe=this._defaultCurrencyCode,Xe="symbol",Et,gt){if(!Bi(k))return null;gt=gt||this._locale,"boolean"==typeof Xe&&(Xe=Xe?"symbol":"code");let Bt=fe||this._defaultCurrencyCode;"code"!==Xe&&(Bt="symbol"===Xe||"symbol-narrow"===Xe?we(Bt,"symbol"===Xe?"wide":"narrow",gt):Xe);try{return Wt(hi(k),gt,Bt,fe,Et)}catch(pn){throw Xn()}}}return x.\u0275fac=function(k){return new(k||x)(n.\u0275\u0275directiveInject(n.LOCALE_ID,16),n.\u0275\u0275directiveInject(n.DEFAULT_CURRENCY_CODE,16))},x.\u0275pipe=n.\u0275\u0275definePipe({name:"currency",type:x,pure:!0,standalone:!0}),x})();function Bi(x){return!(null==x||""===x||x!=x)}function hi(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 Vi=(()=>{class x{transform(k,fe,Xe){if(null==k)return null;if(!this.supports(k))throw Xn();return k.slice(fe,Xe)}supports(k){return"string"==typeof k||Array.isArray(k)}}return x.\u0275fac=function(k){return new(k||x)},x.\u0275pipe=n.\u0275\u0275definePipe({name:"slice",type:x,pure:!1,standalone:!0}),x})(),mr=(()=>{class x{}return x.\u0275fac=function(k){return new(k||x)},x.\u0275mod=n.\u0275\u0275defineNgModule({type:x}),x.\u0275inj=n.\u0275\u0275defineInjector({}),x})();const Wn="browser",qi="server",pi="browserWorkerApp",Oi="browserWorkerUi";function gr(x){return x===Wn}function Pr(x){return x===qi}function bn(x){return x===pi}function vr(x){return x===Oi}const mi=new n.Version("14.1.3");let In=(()=>{class x{}return x.\u0275prov=(0,n.\u0275\u0275defineInjectable)({token:x,providedIn:"root",factory:()=>new Tn((0,n.\u0275\u0275inject)(d),window)}),x})();class Tn{constructor(ne,k){this.document=ne,this.window=k,this.offset=()=>[0,0]}setOffset(ne){this.offset=Array.isArray(ne)?()=>ne:ne}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(ne){this.supportsScrolling()&&this.window.scrollTo(ne[0],ne[1])}scrollToAnchor(ne){if(!this.supportsScrolling())return;const k=function er(x,ne){const k=x.getElementById(ne)||x.getElementsByName(ne)[0];if(k)return k;if("function"==typeof x.createTreeWalker&&x.body&&(x.body.createShadowRoot||x.body.attachShadow)){const fe=x.createTreeWalker(x.body,NodeFilter.SHOW_ELEMENT);let Xe=fe.currentNode;for(;Xe;){const Et=Xe.shadowRoot;if(Et){const gt=Et.getElementById(ne)||Et.querySelector(`[name="${ne}"]`);if(gt)return gt}Xe=fe.nextNode()}}return null}(this.document,ne);k&&(this.scrollToElement(k),k.focus())}setHistoryScrollRestoration(ne){if(this.supportScrollRestoration()){const k=this.window.history;k&&k.scrollRestoration&&(k.scrollRestoration=ne)}}scrollToElement(ne){const k=ne.getBoundingClientRect(),fe=k.left+this.window.pageXOffset,Xe=k.top+this.window.pageYOffset,Et=this.offset();this.window.scrollTo(fe-Et[0],Xe-Et[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const ne=qn(this.window.history)||qn(Object.getPrototypeOf(this.window.history));return!(!ne||!ne.writable&&!ne.set)}catch(ne){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(ne){return!1}}}function qn(x){return Object.getOwnPropertyDescriptor(x,"scrollRestoration")}class gi{setOffset(ne){}getScrollPosition(){return[0,0]}scrollToPosition(ne){}scrollToAnchor(ne){}setHistoryScrollRestoration(ne){}}class Qn{}},6529:(z,o,a)=>{"use strict";a.r(o),a.d(o,{HTTP_INTERCEPTORS:()=>B,HttpBackend:()=>b,HttpClient:()=>H,HttpClientJsonpModule:()=>Ue,HttpClientModule:()=>_e,HttpClientXsrfModule:()=>We,HttpContext:()=>$,HttpContextToken:()=>G,HttpErrorResponse:()=>me,HttpEventType:()=>ke,HttpHandler:()=>f,HttpHeaderResponse:()=>Ae,HttpHeaders:()=>v,HttpParams:()=>U,HttpRequest:()=>be,HttpResponse:()=>oe,HttpResponseBase:()=>ie,HttpUrlEncodingCodec:()=>C,HttpXhrBackend:()=>je,HttpXsrfTokenExtractor:()=>Ve,JsonpClientBackend:()=>_t,JsonpInterceptor:()=>ut,XhrFactory:()=>dt,\u0275HttpInterceptingHandler:()=>we});var n=a(9808),h=a(5e3),_=a(9646),u=a(8306),r=a(5577),c=a(576),p=a(9300),y=a(4004);class f{}class b{}class v{constructor(W){this.normalizedNames=new Map,this.lazyUpdate=null,W?this.lazyInit="string"==typeof W?()=>{this.headers=new Map,W.split("\n").forEach(ye=>{const de=ye.indexOf(":");if(de>0){const Ne=ye.slice(0,de),tt=Ne.toLowerCase(),mt=ye.slice(de+1).trim();this.maybeSetNormalizedName(Ne,tt),this.headers.has(tt)?this.headers.get(tt).push(mt):this.headers.set(tt,[mt])}})}:()=>{this.headers=new Map,Object.keys(W).forEach(ye=>{let de=W[ye];const Ne=ye.toLowerCase();"string"==typeof de&&(de=[de]),de.length>0&&(this.headers.set(Ne,de),this.maybeSetNormalizedName(ye,Ne))})}:this.headers=new Map}has(W){return this.init(),this.headers.has(W.toLowerCase())}get(W){this.init();const ye=this.headers.get(W.toLowerCase());return ye&&ye.length>0?ye[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(W){return this.init(),this.headers.get(W.toLowerCase())||null}append(W,ye){return this.clone({name:W,value:ye,op:"a"})}set(W,ye){return this.clone({name:W,value:ye,op:"s"})}delete(W,ye){return this.clone({name:W,value:ye,op:"d"})}maybeSetNormalizedName(W,ye){this.normalizedNames.has(ye)||this.normalizedNames.set(ye,W)}init(){this.lazyInit&&(this.lazyInit instanceof v?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(W=>this.applyUpdate(W)),this.lazyUpdate=null))}copyFrom(W){W.init(),Array.from(W.headers.keys()).forEach(ye=>{this.headers.set(ye,W.headers.get(ye)),this.normalizedNames.set(ye,W.normalizedNames.get(ye))})}clone(W){const ye=new v;return ye.lazyInit=this.lazyInit&&this.lazyInit instanceof v?this.lazyInit:this,ye.lazyUpdate=(this.lazyUpdate||[]).concat([W]),ye}applyUpdate(W){const ye=W.name.toLowerCase();switch(W.op){case"a":case"s":let de=W.value;if("string"==typeof de&&(de=[de]),0===de.length)return;this.maybeSetNormalizedName(W.name,ye);const Ne=("a"===W.op?this.headers.get(ye):void 0)||[];Ne.push(...de),this.headers.set(ye,Ne);break;case"d":const tt=W.value;if(tt){let mt=this.headers.get(ye);if(!mt)return;mt=mt.filter(Ft=>-1===tt.indexOf(Ft)),0===mt.length?(this.headers.delete(ye),this.normalizedNames.delete(ye)):this.headers.set(ye,mt)}else this.headers.delete(ye),this.normalizedNames.delete(ye)}}forEach(W){this.init(),Array.from(this.normalizedNames.keys()).forEach(ye=>W(this.normalizedNames.get(ye),this.headers.get(ye)))}}class C{encodeKey(W){return N(W)}encodeValue(W){return N(W)}decodeKey(W){return decodeURIComponent(W)}decodeValue(W){return decodeURIComponent(W)}}const O=/%(\d[a-f0-9])/gi,P={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function N(xe){return encodeURIComponent(xe).replace(O,(W,ye)=>{var de;return null!==(de=P[ye])&&void 0!==de?de:W})}function Y(xe){return`${xe}`}class U{constructor(W={}){if(this.updates=null,this.cloneFrom=null,this.encoder=W.encoder||new C,W.fromString){if(W.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function M(xe,W){const ye=new Map;return xe.length>0&&xe.replace(/^\?/,"").split("&").forEach(Ne=>{const tt=Ne.indexOf("="),[mt,Ft]=-1==tt?[W.decodeKey(Ne),""]:[W.decodeKey(Ne.slice(0,tt)),W.decodeValue(Ne.slice(tt+1))],At=ye.get(mt)||[];At.push(Ft),ye.set(mt,At)}),ye}(W.fromString,this.encoder)}else W.fromObject?(this.map=new Map,Object.keys(W.fromObject).forEach(ye=>{const de=W.fromObject[ye],Ne=Array.isArray(de)?de.map(Y):[Y(de)];this.map.set(ye,Ne)})):this.map=null}has(W){return this.init(),this.map.has(W)}get(W){this.init();const ye=this.map.get(W);return ye?ye[0]:null}getAll(W){return this.init(),this.map.get(W)||null}keys(){return this.init(),Array.from(this.map.keys())}append(W,ye){return this.clone({param:W,value:ye,op:"a"})}appendAll(W){const ye=[];return Object.keys(W).forEach(de=>{const Ne=W[de];Array.isArray(Ne)?Ne.forEach(tt=>{ye.push({param:de,value:tt,op:"a"})}):ye.push({param:de,value:Ne,op:"a"})}),this.clone(ye)}set(W,ye){return this.clone({param:W,value:ye,op:"s"})}delete(W,ye){return this.clone({param:W,value:ye,op:"d"})}toString(){return this.init(),this.keys().map(W=>{const ye=this.encoder.encodeKey(W);return this.map.get(W).map(de=>ye+"="+this.encoder.encodeValue(de)).join("&")}).filter(W=>""!==W).join("&")}clone(W){const ye=new U({encoder:this.encoder});return ye.cloneFrom=this.cloneFrom||this,ye.updates=(this.updates||[]).concat(W),ye}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(W=>this.map.set(W,this.cloneFrom.map.get(W))),this.updates.forEach(W=>{switch(W.op){case"a":case"s":const ye=("a"===W.op?this.map.get(W.param):void 0)||[];ye.push(Y(W.value)),this.map.set(W.param,ye);break;case"d":if(void 0===W.value){this.map.delete(W.param);break}{let de=this.map.get(W.param)||[];const Ne=de.indexOf(Y(W.value));-1!==Ne&&de.splice(Ne,1),de.length>0?this.map.set(W.param,de):this.map.delete(W.param)}}}),this.cloneFrom=this.updates=null)}}class G{constructor(W){this.defaultValue=W}}class ${constructor(){this.map=new Map}set(W,ye){return this.map.set(W,ye),this}get(W){return this.map.has(W)||this.map.set(W,W.defaultValue()),this.map.get(W)}delete(W){return this.map.delete(W),this}has(W){return this.map.has(W)}keys(){return this.map.keys()}}function te(xe){return"undefined"!=typeof ArrayBuffer&&xe instanceof ArrayBuffer}function he(xe){return"undefined"!=typeof Blob&&xe instanceof Blob}function Fe(xe){return"undefined"!=typeof FormData&&xe instanceof FormData}class be{constructor(W,ye,de,Ne){let tt;if(this.url=ye,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=W.toUpperCase(),function J(xe){switch(xe){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Ne?(this.body=void 0!==de?de:null,tt=Ne):tt=de,tt&&(this.reportProgress=!!tt.reportProgress,this.withCredentials=!!tt.withCredentials,tt.responseType&&(this.responseType=tt.responseType),tt.headers&&(this.headers=tt.headers),tt.context&&(this.context=tt.context),tt.params&&(this.params=tt.params)),this.headers||(this.headers=new v),this.context||(this.context=new $),this.params){const mt=this.params.toString();if(0===mt.length)this.urlWithParams=ye;else{const Ft=ye.indexOf("?");this.urlWithParams=ye+(-1===Ft?"?":Ft<ye.length-1?"&":"")+mt}}else this.params=new U,this.urlWithParams=ye}serializeBody(){return null===this.body?null:te(this.body)||he(this.body)||Fe(this.body)||function it(xe){return"undefined"!=typeof URLSearchParams&&xe instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof U?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||Fe(this.body)?null:he(this.body)?this.body.type||null:te(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof U?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(W={}){var ye;const de=W.method||this.method,Ne=W.url||this.url,tt=W.responseType||this.responseType,mt=void 0!==W.body?W.body:this.body,Ft=void 0!==W.withCredentials?W.withCredentials:this.withCredentials,At=void 0!==W.reportProgress?W.reportProgress:this.reportProgress;let Yt=W.headers||this.headers,Nt=W.params||this.params;const rt=null!==(ye=W.context)&&void 0!==ye?ye:this.context;return void 0!==W.setHeaders&&(Yt=Object.keys(W.setHeaders).reduce((Je,Ee)=>Je.set(Ee,W.setHeaders[Ee]),Yt)),W.setParams&&(Nt=Object.keys(W.setParams).reduce((Je,Ee)=>Je.set(Ee,W.setParams[Ee]),Nt)),new be(de,Ne,mt,{params:Nt,headers:Yt,context:rt,reportProgress:At,responseType:tt,withCredentials:Ft})}}var ke=(()=>((ke=ke||{})[ke.Sent=0]="Sent",ke[ke.UploadProgress=1]="UploadProgress",ke[ke.ResponseHeader=2]="ResponseHeader",ke[ke.DownloadProgress=3]="DownloadProgress",ke[ke.Response=4]="Response",ke[ke.User=5]="User",ke))();class ie{constructor(W,ye=200,de="OK"){this.headers=W.headers||new v,this.status=void 0!==W.status?W.status:ye,this.statusText=W.statusText||de,this.url=W.url||null,this.ok=this.status>=200&&this.status<300}}class Ae extends ie{constructor(W={}){super(W),this.type=ke.ResponseHeader}clone(W={}){return new Ae({headers:W.headers||this.headers,status:void 0!==W.status?W.status:this.status,statusText:W.statusText||this.statusText,url:W.url||this.url||void 0})}}class oe extends ie{constructor(W={}){super(W),this.type=ke.Response,this.body=void 0!==W.body?W.body:null}clone(W={}){return new oe({body:void 0!==W.body?W.body:this.body,headers:W.headers||this.headers,status:void 0!==W.status?W.status:this.status,statusText:W.statusText||this.statusText,url:W.url||this.url||void 0})}}class me extends ie{constructor(W){super(W,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${W.url||"(unknown url)"}`:`Http failure response for ${W.url||"(unknown url)"}: ${W.status} ${W.statusText}`,this.error=W.error||null}}function V(xe,W){return{body:W,headers:xe.headers,context:xe.context,observe:xe.observe,params:xe.params,reportProgress:xe.reportProgress,responseType:xe.responseType,withCredentials:xe.withCredentials}}let H=(()=>{class xe{constructor(ye){this.handler=ye}request(ye,de,Ne={}){let tt;if(ye instanceof be)tt=ye;else{let At,Yt;At=Ne.headers instanceof v?Ne.headers:new v(Ne.headers),Ne.params&&(Yt=Ne.params instanceof U?Ne.params:new U({fromObject:Ne.params})),tt=new be(ye,de,void 0!==Ne.body?Ne.body:null,{headers:At,context:Ne.context,params:Yt,reportProgress:Ne.reportProgress,responseType:Ne.responseType||"json",withCredentials:Ne.withCredentials})}const mt=(0,_.of)(tt).pipe(function d(xe,W){return(0,c.m)(W)?(0,r.z)(xe,W,1):(0,r.z)(xe,1)}(At=>this.handler.handle(At)));if(ye instanceof be||"events"===Ne.observe)return mt;const Ft=mt.pipe((0,p.h)(At=>At instanceof oe));switch(Ne.observe||"body"){case"body":switch(tt.responseType){case"arraybuffer":return Ft.pipe((0,y.U)(At=>{if(null!==At.body&&!(At.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return At.body}));case"blob":return Ft.pipe((0,y.U)(At=>{if(null!==At.body&&!(At.body instanceof Blob))throw new Error("Response is not a Blob.");return At.body}));case"text":return Ft.pipe((0,y.U)(At=>{if(null!==At.body&&"string"!=typeof At.body)throw new Error("Response is not a string.");return At.body}));default:return Ft.pipe((0,y.U)(At=>At.body))}case"response":return Ft;default:throw new Error(`Unreachable: unhandled observe type ${Ne.observe}}`)}}delete(ye,de={}){return this.request("DELETE",ye,de)}get(ye,de={}){return this.request("GET",ye,de)}head(ye,de={}){return this.request("HEAD",ye,de)}jsonp(ye,de){return this.request("JSONP",ye,{params:(new U).append(de,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(ye,de={}){return this.request("OPTIONS",ye,de)}patch(ye,de,Ne={}){return this.request("PATCH",ye,V(Ne,de))}post(ye,de,Ne={}){return this.request("POST",ye,V(Ne,de))}put(ye,de,Ne={}){return this.request("PUT",ye,V(Ne,de))}}return xe.\u0275fac=function(ye){return new(ye||xe)(h.\u0275\u0275inject(f))},xe.\u0275prov=h.\u0275\u0275defineInjectable({token:xe,factory:xe.\u0275fac}),xe})();class re{constructor(W,ye){this.next=W,this.interceptor=ye}handle(W){return this.interceptor.intercept(W,this.next)}}const B=new h.InjectionToken("HTTP_INTERCEPTORS");let Te,ue=(()=>{class xe{intercept(ye,de){return de.handle(ye)}}return xe.\u0275fac=function(ye){return new(ye||xe)},xe.\u0275prov=h.\u0275\u0275defineInjectable({token:xe,factory:xe.\u0275fac}),xe})(),ge=0;class yt{}let _t=(()=>{class xe{constructor(ye,de){this.callbackMap=ye,this.document=de,this.resolvedPromise=Promise.resolve()}nextCallback(){return"ng_jsonp_callback_"+ge++}handle(ye){if("JSONP"!==ye.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==ye.responseType)throw new Error("JSONP requests must use Json response type.");if(ye.headers.keys().length>0)throw new Error("JSONP requests do not support headers.");return new u.y(de=>{const Ne=this.nextCallback(),tt=ye.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,`=${Ne}$1`),mt=this.document.createElement("script");mt.src=tt;let Ft=null,At=!1;this.callbackMap[Ne]=Je=>{delete this.callbackMap[Ne],Ft=Je,At=!0};const Yt=()=>{mt.parentNode&&mt.parentNode.removeChild(mt),delete this.callbackMap[Ne]};return mt.addEventListener("load",Je=>{this.resolvedPromise.then(()=>{Yt(),At?(de.next(new oe({body:Ft,status:200,statusText:"OK",url:tt})),de.complete()):de.error(new me({url:tt,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")}))})}),mt.addEventListener("error",Je=>{Yt(),de.error(new me({error:Je,status:0,statusText:"JSONP Error",url:tt}))}),this.document.body.appendChild(mt),de.next({type:ke.Sent}),()=>{At||this.removeListeners(mt),Yt()}})}removeListeners(ye){Te||(Te=this.document.implementation.createHTMLDocument()),Te.adoptNode(ye)}}return xe.\u0275fac=function(ye){return new(ye||xe)(h.\u0275\u0275inject(yt),h.\u0275\u0275inject(n.DOCUMENT))},xe.\u0275prov=h.\u0275\u0275defineInjectable({token:xe,factory:xe.\u0275fac}),xe})(),ut=(()=>{class xe{constructor(ye){this.jsonp=ye}intercept(ye,de){return"JSONP"===ye.method?this.jsonp.handle(ye):de.handle(ye)}}return xe.\u0275fac=function(ye){return new(ye||xe)(h.\u0275\u0275inject(_t))},xe.\u0275prov=h.\u0275\u0275defineInjectable({token:xe,factory:xe.\u0275fac}),xe})();const He=/^\)\]\}',?\n/;let je=(()=>{class xe{constructor(ye){this.xhrFactory=ye}handle(ye){if("JSONP"===ye.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new u.y(de=>{const Ne=this.xhrFactory.build();if(Ne.open(ye.method,ye.urlWithParams),ye.withCredentials&&(Ne.withCredentials=!0),ye.headers.forEach((Ee,ve)=>Ne.setRequestHeader(Ee,ve.join(","))),ye.headers.has("Accept")||Ne.setRequestHeader("Accept","application/json, text/plain, */*"),!ye.headers.has("Content-Type")){const Ee=ye.detectContentTypeHeader();null!==Ee&&Ne.setRequestHeader("Content-Type",Ee)}if(ye.responseType){const Ee=ye.responseType.toLowerCase();Ne.responseType="json"!==Ee?Ee:"text"}const tt=ye.serializeBody();let mt=null;const Ft=()=>{if(null!==mt)return mt;const Ee=Ne.statusText||"OK",ve=new v(Ne.getAllResponseHeaders()),se=function Ie(xe){return"responseURL"in xe&&xe.responseURL?xe.responseURL:/^X-Request-URL:/m.test(xe.getAllResponseHeaders())?xe.getResponseHeader("X-Request-URL"):null}(Ne)||ye.url;return mt=new Ae({headers:ve,status:Ne.status,statusText:Ee,url:se}),mt},At=()=>{let{headers:Ee,status:ve,statusText:se,url:ae}=Ft(),j=null;204!==ve&&(j=void 0===Ne.response?Ne.responseText:Ne.response),0===ve&&(ve=j?200:0);let Me=ve>=200&&ve<300;if("json"===ye.responseType&&"string"==typeof j){const vt=j;j=j.replace(He,"");try{j=""!==j?JSON.parse(j):null}catch(Ge){j=vt,Me&&(Me=!1,j={error:Ge,text:j})}}Me?(de.next(new oe({body:j,headers:Ee,status:ve,statusText:se,url:ae||void 0})),de.complete()):de.error(new me({error:j,headers:Ee,status:ve,statusText:se,url:ae||void 0}))},Yt=Ee=>{const{url:ve}=Ft(),se=new me({error:Ee,status:Ne.status||0,statusText:Ne.statusText||"Unknown Error",url:ve||void 0});de.error(se)};let Nt=!1;const rt=Ee=>{Nt||(de.next(Ft()),Nt=!0);let ve={type:ke.DownloadProgress,loaded:Ee.loaded};Ee.lengthComputable&&(ve.total=Ee.total),"text"===ye.responseType&&!!Ne.responseText&&(ve.partialText=Ne.responseText),de.next(ve)},Je=Ee=>{let ve={type:ke.UploadProgress,loaded:Ee.loaded};Ee.lengthComputable&&(ve.total=Ee.total),de.next(ve)};return Ne.addEventListener("load",At),Ne.addEventListener("error",Yt),Ne.addEventListener("timeout",Yt),Ne.addEventListener("abort",Yt),ye.reportProgress&&(Ne.addEventListener("progress",rt),null!==tt&&Ne.upload&&Ne.upload.addEventListener("progress",Je)),Ne.send(tt),de.next({type:ke.Sent}),()=>{Ne.removeEventListener("error",Yt),Ne.removeEventListener("abort",Yt),Ne.removeEventListener("load",At),Ne.removeEventListener("timeout",Yt),ye.reportProgress&&(Ne.removeEventListener("progress",rt),null!==tt&&Ne.upload&&Ne.upload.removeEventListener("progress",Je)),Ne.readyState!==Ne.DONE&&Ne.abort()}})}}return xe.\u0275fac=function(ye){return new(ye||xe)(h.\u0275\u0275inject(n.XhrFactory))},xe.\u0275prov=h.\u0275\u0275defineInjectable({token:xe,factory:xe.\u0275fac}),xe})();const pe=new h.InjectionToken("XSRF_COOKIE_NAME"),Qe=new h.InjectionToken("XSRF_HEADER_NAME");class Ve{}let Ke=(()=>{class xe{constructor(ye,de,Ne){this.doc=ye,this.platform=de,this.cookieName=Ne,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const ye=this.doc.cookie||"";return ye!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,n.\u0275parseCookieValue)(ye,this.cookieName),this.lastCookieString=ye),this.lastToken}}return xe.\u0275fac=function(ye){return new(ye||xe)(h.\u0275\u0275inject(n.DOCUMENT),h.\u0275\u0275inject(h.PLATFORM_ID),h.\u0275\u0275inject(pe))},xe.\u0275prov=h.\u0275\u0275defineInjectable({token:xe,factory:xe.\u0275fac}),xe})(),K=(()=>{class xe{constructor(ye,de){this.tokenService=ye,this.headerName=de}intercept(ye,de){const Ne=ye.url.toLowerCase();if("GET"===ye.method||"HEAD"===ye.method||Ne.startsWith("http://")||Ne.startsWith("https://"))return de.handle(ye);const tt=this.tokenService.getToken();return null!==tt&&!ye.headers.has(this.headerName)&&(ye=ye.clone({headers:ye.headers.set(this.headerName,tt)})),de.handle(ye)}}return xe.\u0275fac=function(ye){return new(ye||xe)(h.\u0275\u0275inject(Ve),h.\u0275\u0275inject(Qe))},xe.\u0275prov=h.\u0275\u0275defineInjectable({token:xe,factory:xe.\u0275fac}),xe})(),we=(()=>{class xe{constructor(ye,de){this.backend=ye,this.injector=de,this.chain=null}handle(ye){if(null===this.chain){const de=this.injector.get(B,[]);this.chain=de.reduceRight((Ne,tt)=>new re(Ne,tt),this.backend)}return this.chain.handle(ye)}}return xe.\u0275fac=function(ye){return new(ye||xe)(h.\u0275\u0275inject(b),h.\u0275\u0275inject(h.Injector))},xe.\u0275prov=h.\u0275\u0275defineInjectable({token:xe,factory:xe.\u0275fac}),xe})();function Be(){return"object"==typeof window?window:{}}let We=(()=>{class xe{static disable(){return{ngModule:xe,providers:[{provide:K,useClass:ue}]}}static withOptions(ye={}){return{ngModule:xe,providers:[ye.cookieName?{provide:pe,useValue:ye.cookieName}:[],ye.headerName?{provide:Qe,useValue:ye.headerName}:[]]}}}return xe.\u0275fac=function(ye){return new(ye||xe)},xe.\u0275mod=h.\u0275\u0275defineNgModule({type:xe}),xe.\u0275inj=h.\u0275\u0275defineInjector({providers:[K,{provide:B,useExisting:K,multi:!0},{provide:Ve,useClass:Ke},{provide:pe,useValue:"XSRF-TOKEN"},{provide:Qe,useValue:"X-XSRF-TOKEN"}]}),xe})(),_e=(()=>{class xe{}return xe.\u0275fac=function(ye){return new(ye||xe)},xe.\u0275mod=h.\u0275\u0275defineNgModule({type:xe}),xe.\u0275inj=h.\u0275\u0275defineInjector({providers:[H,{provide:f,useClass:we},je,{provide:b,useExisting:je}],imports:[We.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),xe})(),Ue=(()=>{class xe{}return xe.\u0275fac=function(ye){return new(ye||xe)},xe.\u0275mod=h.\u0275\u0275defineNgModule({type:xe}),xe.\u0275inj=h.\u0275\u0275defineInjector({providers:[_t,{provide:yt,useFactory:Be},{provide:B,useClass:ut,multi:!0}]}),xe})();const dt=n.XhrFactory},5e3:(z,o,a)=>{"use strict";a.r(o),a.d(o,{ANALYZE_FOR_ENTRY_COMPONENTS:()=>Mv,ANIMATION_MODULE_TYPE:()=>wD,APP_BOOTSTRAP_LISTENER:()=>Ng,APP_ID:()=>xg,APP_INITIALIZER:()=>Rg,ApplicationInitStatus:()=>La,ApplicationModule:()=>mE,ApplicationRef:()=>Va,Attribute:()=>gd,COMPILER_OPTIONS:()=>jg,CUSTOM_ELEMENTS_SCHEMA:()=>mf,ChangeDetectionStrategy:()=>_e,ChangeDetectorRef:()=>lv,Compiler:()=>PD,CompilerFactory:()=>RD,Component:()=>mD,ComponentFactory:()=>ra,ComponentFactoryResolver:()=>gs,ComponentRef:()=>cf,ContentChild:()=>Iv,ContentChildren:()=>Sv,DEFAULT_CURRENCY_CODE:()=>ID,DebugElement:()=>Ns,DebugEventListener:()=>qD,DebugNode:()=>Gu,DefaultIterableDiffer:()=>pv,Directive:()=>Pg,ENVIRONMENT_INITIALIZER:()=>dl,ElementRef:()=>vs,EmbeddedViewRef:()=>XD,EnvironmentInjector:()=>so,ErrorHandler:()=>ys,EventEmitter:()=>Mr,Host:()=>wd,HostBinding:()=>_D,HostListener:()=>bD,INJECTOR:()=>fl,Inject:()=>Qs,InjectFlags:()=>Ve,Injectable:()=>U_,InjectionToken:()=>Pn,Injector:()=>Yr,Input:()=>vD,IterableDiffers:()=>Ju,KeyValueDiffers:()=>Xu,LOCALE_ID:()=>ja,MissingTranslationStrategy:()=>Sr,ModuleWithComponentFactories:()=>Lg,NO_ERRORS_SCHEMA:()=>gf,NgModule:()=>CD,NgModuleFactory:()=>_m,NgModuleRef:()=>Zo,NgProbeToken:()=>$D,NgZone:()=>ki,Optional:()=>us,Output:()=>yD,PACKAGE_ROOT_URL:()=>TD,PLATFORM_ID:()=>ED,PLATFORM_INITIALIZER:()=>kg,Pipe:()=>gD,PlatformRef:()=>Wu,Query:()=>os,QueryList:()=>Ra,ReflectiveInjector:()=>Ro,ReflectiveKey:()=>jr,Renderer2:()=>Ny,RendererFactory2:()=>df,RendererStyleFlags2:()=>Dr,ResolvedReflectiveFactory:()=>uh,Sanitizer:()=>ff,SecurityContext:()=>Jn,Self:()=>Zs,SimpleChange:()=>Ji,SkipSelf:()=>To,TRANSLATIONS:()=>OD,TRANSLATIONS_FORMAT:()=>AD,TemplateRef:()=>xs,Testability:()=>VD,TestabilityRegistry:()=>Gg,Type:()=>Ws,VERSION:()=>pf,Version:()=>hf,ViewChild:()=>Av,ViewChildren:()=>Ov,ViewContainerRef:()=>Fa,ViewEncapsulation:()=>xe,ViewRef:()=>uv,asNativeElements:()=>eE,assertPlatform:()=>qg,createComponent:()=>SE,createEnvironmentInjector:()=>Eu,createNgModule:()=>bm,createNgModuleRef:()=>SC,createPlatform:()=>Zg,createPlatformFactory:()=>Xg,defineInjectable:()=>Ce,destroyPlatform:()=>zD,enableProdMode:()=>YD,forwardRef:()=>b,getDebugNode:()=>qo,getModuleFactory:()=>QD,getNgModuleById:()=>ZD,getPlatform:()=>Ba,importProvidersFrom:()=>ef,inject:()=>Td,isDevMode:()=>KD,platformCore:()=>pE,reflectComponentType:()=>IE,resolveForwardRef:()=>v,setTestabilityGetter:()=>Kg,\u0275ALLOW_MULTIPLE_PLATFORMS:()=>Uu,\u0275APP_ID_RANDOM_PROVIDER:()=>DD,\u0275ChangeDetectorStatus:()=>Ue,\u0275ComponentFactory:()=>ra,\u0275Console:()=>MD,\u0275DEFAULT_LOCALE_ID:()=>fo,\u0275INJECTOR_SCOPE:()=>ml,\u0275LContext:()=>Ef,\u0275LifecycleHooksFeature:()=>Kh,\u0275LocaleDataIndex:()=>Jt,\u0275NG_COMP_DEF:()=>mt,\u0275NG_DIR_DEF:()=>Ft,\u0275NG_ELEMENT_ID:()=>rt,\u0275NG_INJ_DEF:()=>je,\u0275NG_MOD_DEF:()=>Yt,\u0275NG_PIPE_DEF:()=>At,\u0275NG_PROV_DEF:()=>Ie,\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR:()=>oa,\u0275NO_CHANGE:()=>sn,\u0275NgModuleFactory:()=>Pa,\u0275NoopNgZone:()=>Ug,\u0275ReflectionCapabilities:()=>Dd,\u0275Render3ComponentFactory:()=>Lo,\u0275Render3ComponentRef:()=>Gh,\u0275Render3NgModuleRef:()=>Du,\u0275RuntimeError:()=>M,\u0275TESTABILITY:()=>zg,\u0275TESTABILITY_GETTER:()=>Wg,\u0275ViewRef:()=>No,\u0275_sanitizeHtml:()=>Wd,\u0275_sanitizeUrl:()=>hs,\u0275allowSanitizationBypassAndThrow:()=>So,\u0275bypassSanitizationTrustHtml:()=>ay,\u0275bypassSanitizationTrustResourceUrl:()=>dy,\u0275bypassSanitizationTrustScript:()=>cy,\u0275bypassSanitizationTrustStyle:()=>ly,\u0275bypassSanitizationTrustUrl:()=>uy,\u0275clearResolutionOfComponentResourcesQueue:()=>Ad,\u0275coerceToBoolean:()=>gE,\u0275compileComponent:()=>_g,\u0275compileDirective:()=>ju,\u0275compileNgModule:()=>hg,\u0275compileNgModuleDefs:()=>pg,\u0275compileNgModuleFactory:()=>Yg,\u0275compilePipe:()=>Og,\u0275createInjector:()=>Vl,\u0275defaultIterableDiffers:()=>fE,\u0275defaultKeyValueDiffers:()=>hE,\u0275detectChanges:()=>Jh,\u0275devModeEqual:()=>Zh,\u0275findLocaleData:()=>du,\u0275flushModuleScopingQueueAsMuchAsPossible:()=>dg,\u0275getDebugNode:()=>qo,\u0275getDebugNodeR2:()=>rE,\u0275getDirectives:()=>Mm,\u0275getHostElement:()=>wu,\u0275getInjectableDef:()=>lt,\u0275getLContext:()=>ui,\u0275getLocaleCurrencyCode:()=>P0,\u0275getLocalePluralCase:()=>zp,\u0275getSanitizationBypassType:()=>Ld,\u0275getUnknownElementStrictMode:()=>By,\u0275getUnknownPropertyStrictMode:()=>$y,\u0275global:()=>W,\u0275injectChangeDetectorRef:()=>cv,\u0275internalBootstrapApplication:()=>UD,\u0275isBoundToModule:()=>Qg,\u0275isDefaultChangeDetectionStrategy:()=>dt,\u0275isListLikeIterable:()=>Ts,\u0275isObservable:()=>rp,\u0275isPromise:()=>Ac,\u0275isStandalone:()=>Xo,\u0275isSubscribable:()=>ip,\u0275ivyEnabled:()=>vE,\u0275makeDecorator:()=>Co,\u0275markDirty:()=>Xh,\u0275noSideEffects:()=>We,\u0275patchComponentDefWithScope:()=>Nu,\u0275publishDefaultGlobalUtils:()=>FD,\u0275publishGlobalUtil:()=>zi,\u0275registerLocaleData:()=>A0,\u0275resetCompiledComponents:()=>iD,\u0275resetJitOptions:()=>eD,\u0275resolveComponentResources:()=>Id,\u0275setAllowDuplicateNgModuleIdsForTest:()=>Xv,\u0275setClassMetadata:()=>Im,\u0275setCurrentInjector:()=>io,\u0275setDocument:()=>qv,\u0275setLocaleId:()=>fu,\u0275setUnknownElementStrictMode:()=>jy,\u0275setUnknownPropertyStrictMode:()=>Vy,\u0275store:()=>ep,\u0275stringify:()=>p,\u0275transitiveScopesFor:()=>ho,\u0275unregisterLocaleData:()=>R0,\u0275unwrapSafeValue:()=>Nr,\u0275whenRendered:()=>Zb,\u0275\u0275CopyDefinitionFeature:()=>Qh,\u0275\u0275FactoryTarget:()=>ii,\u0275\u0275InheritDefinitionFeature:()=>hc,\u0275\u0275NgOnChangesFeature:()=>ji,\u0275\u0275ProvidersFeature:()=>ym,\u0275\u0275StandaloneFeature:()=>Cm,\u0275\u0275advance:()=>th,\u0275\u0275attribute:()=>gc,\u0275\u0275attributeInterpolate1:()=>vc,\u0275\u0275attributeInterpolate2:()=>yc,\u0275\u0275attributeInterpolate3:()=>_c,\u0275\u0275attributeInterpolate4:()=>bc,\u0275\u0275attributeInterpolate5:()=>Cc,\u0275\u0275attributeInterpolate6:()=>Dc,\u0275\u0275attributeInterpolate7:()=>Ec,\u0275\u0275attributeInterpolate8:()=>Tc,\u0275\u0275attributeInterpolateV:()=>wc,\u0275\u0275classMap:()=>yp,\u0275\u0275classMapInterpolate1:()=>Mp,\u0275\u0275classMapInterpolate2:()=>Sp,\u0275\u0275classMapInterpolate3:()=>Ip,\u0275\u0275classMapInterpolate4:()=>Op,\u0275\u0275classMapInterpolate5:()=>Ap,\u0275\u0275classMapInterpolate6:()=>Pp,\u0275\u0275classMapInterpolate7:()=>Rp,\u0275\u0275classMapInterpolate8:()=>xp,\u0275\u0275classMapInterpolateV:()=>Fp,\u0275\u0275classProp:()=>Uc,\u0275\u0275contentQuery:()=>ig,\u0275\u0275defineComponent:()=>Ee,\u0275\u0275defineDirective:()=>Ge,\u0275\u0275defineInjectable:()=>Pe,\u0275\u0275defineInjector:()=>$e,\u0275\u0275defineNgModule:()=>j,\u0275\u0275definePipe:()=>bt,\u0275\u0275directiveInject:()=>xo,\u0275\u0275disableBindings:()=>Rn,\u0275\u0275element:()=>Ic,\u0275\u0275elementContainer:()=>Oc,\u0275\u0275elementContainerEnd:()=>Ea,\u0275\u0275elementContainerStart:()=>Da,\u0275\u0275elementEnd:()=>Ca,\u0275\u0275elementStart:()=>ba,\u0275\u0275enableBindings:()=>Dn,\u0275\u0275getCurrentView:()=>np,\u0275\u0275getInheritedFactory:()=>pd,\u0275\u0275hostProperty:()=>cu,\u0275\u0275i18n:()=>hm,\u0275\u0275i18nApply:()=>mm,\u0275\u0275i18nAttributes:()=>pm,\u0275\u0275i18nEnd:()=>gu,\u0275\u0275i18nExp:()=>vu,\u0275\u0275i18nPostprocess:()=>gm,\u0275\u0275i18nStart:()=>mu,\u0275\u0275inject:()=>ti,\u0275\u0275injectAttribute:()=>Ya,\u0275\u0275invalidFactory:()=>ph,\u0275\u0275invalidFactoryDep:()=>qa,\u0275\u0275listener:()=>Pc,\u0275\u0275loadQuery:()=>rg,\u0275\u0275namespaceHTML:()=>un,\u0275\u0275namespaceMathML:()=>an,\u0275\u0275namespaceSVG:()=>$t,\u0275\u0275nextContext:()=>lp,\u0275\u0275ngDeclareClassMetadata:()=>_E,\u0275\u0275ngDeclareComponent:()=>bE,\u0275\u0275ngDeclareDirective:()=>yE,\u0275\u0275ngDeclareFactory:()=>CE,\u0275\u0275ngDeclareInjectable:()=>EE,\u0275\u0275ngDeclareInjector:()=>TE,\u0275\u0275ngDeclareNgModule:()=>wE,\u0275\u0275ngDeclarePipe:()=>ME,\u0275\u0275pipe:()=>zm,\u0275\u0275pipeBind1:()=>Wm,\u0275\u0275pipeBind2:()=>Gm,\u0275\u0275pipeBind3:()=>Km,\u0275\u0275pipeBind4:()=>Ym,\u0275\u0275pipeBindV:()=>Qm,\u0275\u0275projection:()=>up,\u0275\u0275projectionDef:()=>cp,\u0275\u0275property:()=>Mc,\u0275\u0275propertyInterpolate:()=>xc,\u0275\u0275propertyInterpolate1:()=>Ta,\u0275\u0275propertyInterpolate2:()=>Fc,\u0275\u0275propertyInterpolate3:()=>kc,\u0275\u0275propertyInterpolate4:()=>Nc,\u0275\u0275propertyInterpolate5:()=>Lc,\u0275\u0275propertyInterpolate6:()=>jc,\u0275\u0275propertyInterpolate7:()=>Bc,\u0275\u0275propertyInterpolate8:()=>Vc,\u0275\u0275propertyInterpolateV:()=>$c,\u0275\u0275pureFunction0:()=>Om,\u0275\u0275pureFunction1:()=>Am,\u0275\u0275pureFunction2:()=>Pm,\u0275\u0275pureFunction3:()=>Rm,\u0275\u0275pureFunction4:()=>xm,\u0275\u0275pureFunction5:()=>Fm,\u0275\u0275pureFunction6:()=>km,\u0275\u0275pureFunction7:()=>Nm,\u0275\u0275pureFunction8:()=>Lm,\u0275\u0275pureFunctionV:()=>jm,\u0275\u0275queryRefresh:()=>tg,\u0275\u0275reference:()=>tp,\u0275\u0275registerNgModuleType:()=>tl,\u0275\u0275resetView:()=>ai,\u0275\u0275resolveBody:()=>Af,\u0275\u0275resolveDocument:()=>Of,\u0275\u0275resolveWindow:()=>If,\u0275\u0275restoreView:()=>$i,\u0275\u0275sanitizeHtml:()=>Gd,\u0275\u0275sanitizeResourceUrl:()=>ul,\u0275\u0275sanitizeScript:()=>Yd,\u0275\u0275sanitizeStyle:()=>Kd,\u0275\u0275sanitizeUrl:()=>cl,\u0275\u0275sanitizeUrlOrResourceUrl:()=>Jd,\u0275\u0275setComponentScope:()=>ve,\u0275\u0275setNgModuleScope:()=>Me,\u0275\u0275styleMap:()=>sr,\u0275\u0275styleMapInterpolate1:()=>kp,\u0275\u0275styleMapInterpolate2:()=>Np,\u0275\u0275styleMapInterpolate3:()=>Lp,\u0275\u0275styleMapInterpolate4:()=>jp,\u0275\u0275styleMapInterpolate5:()=>Bp,\u0275\u0275styleMapInterpolate6:()=>Vp,\u0275\u0275styleMapInterpolate7:()=>$p,\u0275\u0275styleMapInterpolate8:()=>Hp,\u0275\u0275styleMapInterpolateV:()=>Up,\u0275\u0275styleProp:()=>Hc,\u0275\u0275stylePropInterpolate1:()=>eu,\u0275\u0275stylePropInterpolate2:()=>tu,\u0275\u0275stylePropInterpolate3:()=>nu,\u0275\u0275stylePropInterpolate4:()=>iu,\u0275\u0275stylePropInterpolate5:()=>ru,\u0275\u0275stylePropInterpolate6:()=>ou,\u0275\u0275stylePropInterpolate7:()=>su,\u0275\u0275stylePropInterpolate8:()=>au,\u0275\u0275stylePropInterpolateV:()=>lu,\u0275\u0275syntheticHostListener:()=>Rc,\u0275\u0275syntheticHostProperty:()=>uu,\u0275\u0275template:()=>qh,\u0275\u0275templateRefExtractor:()=>lg,\u0275\u0275text:()=>wp,\u0275\u0275textInterpolate:()=>Wc,\u0275\u0275textInterpolate1:()=>Ma,\u0275\u0275textInterpolate2:()=>Gc,\u0275\u0275textInterpolate3:()=>Kc,\u0275\u0275textInterpolate4:()=>Yc,\u0275\u0275textInterpolate5:()=>Qc,\u0275\u0275textInterpolate6:()=>Zc,\u0275\u0275textInterpolate7:()=>Jc,\u0275\u0275textInterpolate8:()=>Xc,\u0275\u0275textInterpolateV:()=>qc,\u0275\u0275trustConstantHtml:()=>Qd,\u0275\u0275trustConstantResourceUrl:()=>Zd,\u0275\u0275viewQuery:()=>ng});var n=a(7579),h=a(727),_=a(8306),u=a(6451),r=a(3099);function c(e){for(let t in e)if(e[t]===c)return t;throw Error("Could not find renamed property on target object.")}function d(e,t){for(const i in t)t.hasOwnProperty(i)&&!e.hasOwnProperty(i)&&(e[i]=t[i])}function p(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(p).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 i=t.indexOf("\n");return-1===i?t:t.substring(0,i)}function y(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const f=c({__forward_ref__:c});function b(e){return e.__forward_ref__=b,e.toString=function(){return p(this())},e}function v(e){return m(e)?e():e}function m(e){return"function"==typeof e&&e.hasOwnProperty(f)&&e.__forward_ref__===b}class M extends Error{constructor(t,i){super(function O(e,t){return`NG0${Math.abs(e)}${t?": "+t.trim():""}`}(t,i)),this.code=t}}function P(e){return"string"==typeof e?e:null==e?"":String(e)}function N(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():P(e)}function $(e,t){throw new M(-201,!1)}function B(e,t,i,s){throw new Error(`ASSERTION ERROR: ${e}`+(null==s?"":` [Expected=> ${i} ${s} ${t} <=Actual]`))}function Pe(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}const Ce=Pe;function $e(e){return{providers:e.providers||[],imports:e.imports||[]}}function lt(e){return yt(e,Ie)||yt(e,pe)}function yt(e,t){return e.hasOwnProperty(t)?e[t]:null}function He(e){return e&&(e.hasOwnProperty(je)||e.hasOwnProperty(Qe))?e[je]:null}const Ie=c({\u0275prov:c}),je=c({\u0275inj:c}),pe=c({ngInjectableDef:c}),Qe=c({ngInjectorDef:c});var Ve=(()=>((Ve=Ve||{})[Ve.Default=0]="Default",Ve[Ve.Host=1]="Host",Ve[Ve.Self=2]="Self",Ve[Ve.SkipSelf=4]="SkipSelf",Ve[Ve.Optional=8]="Optional",Ve))();let Ke;function we(e){const t=Ke;return Ke=e,t}function ze(e,t,i){const s=lt(e);return s&&"root"==s.providedIn?void 0===s.value?s.value=s.factory():s.value:i&Ve.Optional?null:void 0!==t?t:void $(p(e))}function We(e){return{toString:e}.toString()}var _e=(()=>((_e=_e||{})[_e.OnPush=0]="OnPush",_e[_e.Default=1]="Default",_e))(),Ue=(()=>((Ue=Ue||{})[Ue.CheckOnce=0]="CheckOnce",Ue[Ue.Checked=1]="Checked",Ue[Ue.CheckAlways=2]="CheckAlways",Ue[Ue.Detached=3]="Detached",Ue[Ue.Errored=4]="Errored",Ue[Ue.Destroyed=5]="Destroyed",Ue))();function dt(e){return null==e||e===_e.Default}var xe=(()=>{return(e=xe||(xe={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",xe;var e})();const W=(()=>"undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof global&&global||"undefined"!=typeof window&&window||"undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self)(),Ne={},tt=[],mt=c({\u0275cmp:c}),Ft=c({\u0275dir:c}),At=c({\u0275pipe:c}),Yt=c({\u0275mod:c}),Nt=c({\u0275fac:c}),rt=c({__NG_ELEMENT_ID__:c});let Je=0;function Ee(e){return We(()=>{const i=!0===e.standalone,s={},l={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:s,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===_e.OnPush,directiveDefs:null,pipeDefs:null,standalone:i,dependencies:i&&e.dependencies||null,getStandaloneInjector:null,selectors:e.selectors||tt,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||xe.Emulated,id:"c"+Je++,styles:e.styles||tt,_:null,setInput:null,schemas:e.schemas||null,tView:null},g=e.dependencies,D=e.features;return l.inputs=vt(e.inputs,s),l.outputs=vt(e.outputs),D&&D.forEach(w=>w(l)),l.directiveDefs=g?()=>("function"==typeof g?g():g).map(se).filter(ae):null,l.pipeDefs=g?()=>("function"==typeof g?g():g).map(at).filter(ae):null,l})}function ve(e,t,i){const s=e.\u0275cmp;s.directiveDefs=()=>("function"==typeof t?t():t).map(se),s.pipeDefs=()=>("function"==typeof i?i():i).map(at)}function se(e){return X(e)||Oe(e)}function ae(e){return null!==e}function j(e){return We(()=>({type:e.type,bootstrap:e.bootstrap||tt,declarations:e.declarations||tt,imports:e.imports||tt,exports:e.exports||tt,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Me(e,t){return We(()=>{const i=Dt(e,!0);i.declarations=t.declarations||tt,i.imports=t.imports||tt,i.exports=t.exports||tt})}function vt(e,t){if(null==e)return Ne;const i={};for(const s in e)if(e.hasOwnProperty(s)){let l=e[s],g=l;Array.isArray(l)&&(g=l[1],l=l[0]),i[l]=s,t&&(t[l]=g)}return i}const Ge=Ee;function bt(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function X(e){return e[mt]||null}function Oe(e){return e[Ft]||null}function at(e){return e[At]||null}function Dt(e,t){const i=e[Yt]||null;if(!i&&!0===t)throw new Error(`Type ${p(e)} does not have '\u0275mod' property.`);return i}function En(e){return Array.isArray(e)&&"object"==typeof e[1]}function Nn(e){return Array.isArray(e)&&!0===e[1]}function Ti(e){return 0!=(8&e.flags)}function wi(e){return 2==(2&e.flags)}function bi(e){return 1==(1&e.flags)}function Ln(e){return null!==e.template}function Ni(e){return 0!=(256&e[2])}function ni(e,t){return e.hasOwnProperty(Nt)?e[Nt]:null}class Ji{constructor(t,i,s){this.previousValue=t,this.currentValue=i,this.firstChange=s}isFirstChange(){return this.firstChange}}function ji(){return Ii}function Ii(e){return e.type.prototype.ngOnChanges&&(e.setInput=Xi),hr}function hr(){const e=hi(this),t=null==e?void 0:e.current;if(t){const i=e.previous;if(i===Ne)e.previous=t;else for(let s in t)i[s]=t[s];e.current=null,this.ngOnChanges(t)}}function Xi(e,t,i,s){const l=hi(e)||function Vi(e,t){return e[Bi]=t}(e,{previous:Ne,current:null}),g=l.current||(l.current={}),D=l.previous,w=this.declaredInputs[i],I=D[w];g[w]=new Ji(I&&I.currentValue,t,D===Ne),e[s]=t}ji.ngInherit=!0;const Bi="__ngSimpleChanges__";function hi(e){return e[Bi]||null}let pr=null;const mr=e=>{pr=e},Wn=function(e,t,i){null!=pr&&pr(e,t,i)};function bn(e){for(;Array.isArray(e);)e=e[0];return e}function In(e,t){return bn(t[e])}function Tn(e,t){return bn(t[e.index])}function er(e,t){return e.data[t]}function gi(e,t){return e[t]}function Qn(e,t){const i=t[e];return En(i)?i:i[0]}function x(e){return 4==(4&e[2])}function ne(e){return 64==(64&e[2])}function fe(e,t){return null==t?null:e[t]}function Xe(e){e[18]=0}function Et(e,t){e[5]+=t;let i=e,s=e[3];for(;null!==s&&(1===t&&1===i[5]||-1===t&&0===i[5]);)s[5]+=t,i=s,s=s[3]}const gt={lFrame:T(null),bindingsEnabled:!0};function $n(){return gt.bindingsEnabled}function Dn(){gt.bindingsEnabled=!0}function Rn(){gt.bindingsEnabled=!1}function St(){return gt.lFrame.lView}function on(){return gt.lFrame.tView}function $i(e){return gt.lFrame.contextLView=e,e[8]}function ai(e){return gt.lFrame.contextLView=null,e}function xn(){let e=tr();for(;null!==e&&64===e.type;)e=e.parent;return e}function tr(){return gt.lFrame.currentTNode}function Hi(){const e=gt.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function F(e,t){const i=gt.lFrame;i.currentTNode=e,i.isParent=t}function A(){return gt.lFrame.isParent}function S(){gt.lFrame.isParent=!1}function Fn(){const e=gt.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function li(){return gt.lFrame.bindingIndex}function Rr(e){return gt.lFrame.bindingIndex=e}function Ur(){return gt.lFrame.bindingIndex++}function nr(e){const t=gt.lFrame,i=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,i}function js(e){gt.lFrame.inI18n=e}function Ha(e,t){const i=gt.lFrame;i.bindingIndex=i.bindingRootIndex=e,qr(t)}function qr(e){gt.lFrame.currentDirectiveIndex=e}function eo(e){const t=gt.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function Vs(){return gt.lFrame.currentQueryIndex}function es(e){gt.lFrame.currentQueryIndex=e}function Ua(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function $s(e,t,i){if(i&Ve.SkipSelf){let l=t,g=e;for(;!(l=l.parent,null!==l||i&Ve.Host||(l=Ua(g),null===l||(g=g[15],10&l.type))););if(null===l)return!1;t=l,e=g}const s=gt.lFrame=E();return s.currentTNode=t,s.lView=e,!0}function Q(e){const t=E(),i=e[1];gt.lFrame=t,t.currentTNode=i.firstChild,t.lView=e,t.tView=i,t.contextLView=e,t.bindingIndex=i.bindingStartIndex,t.inI18n=!1}function E(){const e=gt.lFrame,t=null===e?null:e.child;return null===t?T(e):t}function T(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 R(){const e=gt.lFrame;return gt.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Z=R;function Se(){const e=R();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 ht(){return gt.lFrame.selectedIndex}function wt(e){gt.lFrame.selectedIndex=e}function Pt(){const e=gt.lFrame;return er(e.tView,e.selectedIndex)}function $t(){gt.lFrame.currentNamespace="svg"}function an(){gt.lFrame.currentNamespace="math"}function un(){!function en(){gt.lFrame.currentNamespace=null}()}function wn(e,t){for(let i=t.directiveStart,s=t.directiveEnd;i<s;i++){const g=e.data[i].type.prototype,{ngAfterContentInit:D,ngAfterContentChecked:w,ngAfterViewInit:I,ngAfterViewChecked:L,ngOnDestroy:ee}=g;D&&(e.contentHooks||(e.contentHooks=[])).push(-i,D),w&&((e.contentHooks||(e.contentHooks=[])).push(i,w),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(i,w)),I&&(e.viewHooks||(e.viewHooks=[])).push(-i,I),L&&((e.viewHooks||(e.viewHooks=[])).push(i,L),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(i,L)),null!=ee&&(e.destroyHooks||(e.destroyHooks=[])).push(i,ee)}}function Gn(e,t,i){yr(e,t,3,i)}function ei(e,t,i,s){(3&e[2])===i&&yr(e,t,i,s)}function Kn(e,t){let i=e[2];(3&i)===t&&(i&=2047,i+=1,e[2]=i)}function yr(e,t,i,s){const g=null!=s?s:-1,D=t.length-1;let w=0;for(let I=void 0!==s?65535&e[18]:0;I<D;I++)if("number"==typeof t[I+1]){if(w=t[I],null!=s&&w>=s)break}else t[I]<0&&(e[18]+=65536),(w<g||-1==g)&&(_r(e,i,t,I),e[18]=(4294901760&e[18])+I+2),I++}function _r(e,t,i,s){const l=i[s]<0,g=i[s+1],w=e[l?-i[s]:i[s]];if(l){if(e[2]>>11<e[18]>>16&&(3&e[2])===t){e[2]+=2048,Wn(4,w,g);try{g.call(w)}finally{Wn(5,w,g)}}}else{Wn(4,w,g);try{g.call(w)}finally{Wn(5,w,g)}}}class si{constructor(t,i,s){this.factory=t,this.resolving=!1,this.canSeeViewProviders=i,this.injectImpl=s}}function Gt(e,t,i){let s=0;for(;s<i.length;){const l=i[s];if("number"==typeof l){if(0!==l)break;s++;const g=i[s++],D=i[s++],w=i[s++];e.setAttribute(t,D,w,g)}else{const g=l,D=i[++s];hn(g)?e.setProperty(t,g,D):e.setAttribute(t,g,D),s++}}return s}function Zt(e){return 3===e||4===e||6===e}function hn(e){return 64===e.charCodeAt(0)}function An(e,t){if(null!==t&&0!==t.length)if(null===e||0===e.length)e=t.slice();else{let i=-1;for(let s=0;s<t.length;s++){const l=t[s];"number"==typeof l?i=l:0===i||Pi(e,i,l,null,-1===i||2===i?t[++s]:null)}}return e}function Pi(e,t,i,s,l){let g=0,D=e.length;if(-1===t)D=-1;else for(;g<e.length;){const w=e[g++];if("number"==typeof w){if(w===t){D=-1;break}if(w>t){D=g-1;break}}}for(;g<e.length;){const w=e[g];if("number"==typeof w)break;if(w===i){if(null===s)return void(null!==l&&(e[g+1]=l));if(s===e[g+1])return void(e[g+2]=l)}g++,null!==s&&g++,null!==l&&g++}-1!==D&&(e.splice(D,0,t),g=D+1),e.splice(g++,0,i),null!==s&&e.splice(g++,0,s),null!==l&&e.splice(g++,0,l)}function ci(e){return-1!==e}function vi(e){return 32767&e}function Fr(e,t){let i=function Bn(e){return e>>16}(e),s=t;for(;i>0;)s=s[15],i--;return s}let ts=!0;function Zn(e){const t=ts;return ts=e,t}let ns=0;const br={};function is(e,t){const i=Ga(e,t);if(-1!==i)return i;const s=t[1];s.firstCreatePass&&(e.injectorIndex=t.length,Wa(s.data,e),Wa(t,null),Wa(s.blueprint,null));const l=Hs(e,t),g=e.injectorIndex;if(ci(l)){const D=vi(l),w=Fr(l,t),I=w[1].data;for(let L=0;L<8;L++)t[g+L]=w[D+L]|I[D+L]}return t[g+8]=l,g}function Wa(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Ga(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Hs(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let i=0,s=null,l=t;for(;null!==l;){if(s=md(l),null===s)return-1;if(i++,l=l[15],-1!==s.injectorIndex)return s.injectorIndex|i<<16}return-1}function Us(e,t,i){!function bv(e,t,i){let s;"string"==typeof i?s=i.charCodeAt(0)||0:i.hasOwnProperty(rt)&&(s=i[rt]),null==s&&(s=i[rt]=ns++);const l=255&s;t.data[e+(l>>5)]|=1<<l}(e,t,i)}function ld(e,t,i){if(i&Ve.Optional)return e;$()}function cd(e,t,i,s){if(i&Ve.Optional&&void 0===s&&(s=null),0==(i&(Ve.Self|Ve.Host))){const l=e[9],g=we(void 0);try{return l?l.get(t,s,i&Ve.Optional):ze(t,s,i&Ve.Optional)}finally{we(g)}}return ld(s,0,i)}function ud(e,t,i,s=Ve.Default,l){if(null!==e){if(1024&t[2]){const D=function wv(e,t,i,s,l){let g=e,D=t;for(;null!==g&&null!==D&&1024&D[2]&&!(256&D[2]);){const w=dd(g,D,i,s|Ve.Self,br);if(w!==br)return w;let I=g.parent;if(!I){const L=D[21];if(L){const ee=L.get(i,br,s);if(ee!==br)return ee}I=md(D),D=D[15]}g=I}return l}(e,t,i,s,br);if(D!==br)return D}const g=dd(e,t,i,s,br);if(g!==br)return g}return cd(t,i,s,l)}function dd(e,t,i,s,l){const g=function Ev(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(rt)?e[rt]:void 0;return"number"==typeof t?t>=0?255&t:Tv:t}(i);if("function"==typeof g){if(!$s(t,e,s))return s&Ve.Host?ld(l,0,s):cd(t,i,s,l);try{const D=g(s);if(null!=D||s&Ve.Optional)return D;$()}finally{Z()}}else if("number"==typeof g){let D=null,w=Ga(e,t),I=-1,L=s&Ve.Host?t[16][6]:null;for((-1===w||s&Ve.SkipSelf)&&(I=-1===w?Hs(e,t):t[w+8],-1!==I&&hd(s,!1)?(D=t[1],w=vi(I),t=Fr(I,t)):w=-1);-1!==w;){const ee=t[1];if(fd(g,w,ee.data)){const Re=Dv(w,t,i,D,s,L);if(Re!==br)return Re}I=t[w+8],-1!==I&&hd(s,t[1].data[w+8]===L)&&fd(g,w,t)?(D=ee,w=vi(I),t=Fr(I,t)):w=-1}}return l}function Dv(e,t,i,s,l,g){const D=t[1],w=D.data[e+8],ee=zs(w,D,i,null==s?wi(w)&&ts:s!=D&&0!=(3&w.type),l&Ve.Host&&g===w);return null!==ee?rs(t,D,ee,w):br}function zs(e,t,i,s,l){const g=e.providerIndexes,D=t.data,w=1048575&g,I=e.directiveStart,ee=g>>20,st=l?w+ee:e.directiveEnd;for(let pt=s?w:w+ee;pt<st;pt++){const Mt=D[pt];if(pt<I&&i===Mt||pt>=I&&Mt.type===i)return pt}if(l){const pt=D[I];if(pt&&Ln(pt)&&pt.type===i)return I}return null}function rs(e,t,i,s){let l=e[i];const g=t.data;if(function go(e){return e instanceof si}(l)){const D=l;D.resolving&&function Y(e,t){const i=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new M(-200,`Circular dependency in DI detected for ${e}${i}`)}(N(g[i]));const w=Zn(D.canSeeViewProviders);D.resolving=!0;const I=D.injectImpl?we(D.injectImpl):null;$s(e,s,Ve.Default);try{l=e[i]=D.factory(void 0,g,e,s),t.firstCreatePass&&i>=s.directiveStart&&function Mn(e,t,i){const{ngOnChanges:s,ngOnInit:l,ngDoCheck:g}=t.type.prototype;if(s){const D=Ii(t);(i.preOrderHooks||(i.preOrderHooks=[])).push(e,D),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(e,D)}l&&(i.preOrderHooks||(i.preOrderHooks=[])).push(0-e,l),g&&((i.preOrderHooks||(i.preOrderHooks=[])).push(e,g),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(e,g))}(i,g[i],t)}finally{null!==I&&we(I),Zn(w),D.resolving=!1,Z()}}return l}function fd(e,t,i){return!!(i[t+(e>>5)]&1<<e)}function hd(e,t){return!(e&Ve.Self||e&Ve.Host&&t)}class vo{constructor(t,i){this._tNode=t,this._lView=i}get(t,i,s){return ud(this._tNode,this._lView,t,s,i)}}function Tv(){return new vo(xn(),St())}function pd(e){return We(()=>{const t=e.prototype.constructor,i=t[Nt]||Ka(t),s=Object.prototype;let l=Object.getPrototypeOf(e.prototype).constructor;for(;l&&l!==s;){const g=l[Nt]||Ka(l);if(g&&g!==i)return g;l=Object.getPrototypeOf(l)}return g=>new g})}function Ka(e){return m(e)?()=>{const t=Ka(v(e));return t&&t()}:ni(e)}function md(e){const t=e[1],i=t.type;return 2===i?t.declTNode:1===i?e[6]:null}function Ya(e){return function Cv(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const i=e.attrs;if(i){const s=i.length;let l=0;for(;l<s;){const g=i[l];if(Zt(g))break;if(0===g)l+=2;else if("number"==typeof g)for(l++;l<s&&"string"==typeof i[l];)l++;else{if(g===t)return i[l+1];l+=2}}}return null}(xn(),e)}const yo="__annotations__",_o="__parameters__",bo="__prop__metadata__";function Co(e,t,i,s,l){return We(()=>{const g=Qa(t);function D(...w){if(this instanceof D)return g.call(this,...w),this;const I=new D(...w);return function(ee){return l&&l(ee,...w),(ee.hasOwnProperty(yo)?ee[yo]:Object.defineProperty(ee,yo,{value:[]})[yo]).push(I),s&&s(ee),ee}}return i&&(D.prototype=Object.create(i.prototype)),D.prototype.ngMetadataName=e,D.annotationCls=D,D})}function Qa(e){return function(...i){if(e){const s=e(...i);for(const l in s)this[l]=s[l]}}}function Do(e,t,i){return We(()=>{const s=Qa(t);function l(...g){if(this instanceof l)return s.apply(this,g),this;const D=new l(...g);return w.annotation=D,w;function w(I,L,ee){const Re=I.hasOwnProperty(_o)?I[_o]:Object.defineProperty(I,_o,{value:[]})[_o];for(;Re.length<=ee;)Re.push(null);return(Re[ee]=Re[ee]||[]).push(D),I}}return i&&(l.prototype=Object.create(i.prototype)),l.prototype.ngMetadataName=e,l.annotationCls=l,l})}function Gr(e,t,i,s){return We(()=>{const l=Qa(t);function g(...D){if(this instanceof g)return l.apply(this,D),this;const w=new g(...D);return function I(L,ee){const Re=L.constructor,st=Re.hasOwnProperty(bo)?Re[bo]:Object.defineProperty(Re,bo,{value:{}})[bo];st[ee]=st.hasOwnProperty(ee)&&st[ee]||[],st[ee].unshift(w),s&&s(L,ee,...D)}}return i&&(g.prototype=Object.create(i.prototype)),g.prototype.ngMetadataName=e,g.annotationCls=g,g})}const gd=Do("Attribute",e=>({attributeName:e,__NG_ELEMENT_ID__:()=>Ya(e)}));class Pn{constructor(t,i){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof i?this.__NG_ELEMENT_ID__=i:void 0!==i&&(this.\u0275prov=Pe({token:this,providedIn:i.providedIn||"root",factory:i.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const Mv=new Pn("AnalyzeForEntryComponents");class os{}const Sv=Gr("ContentChildren",(e,t={})=>Object.assign({selector:e,first:!1,isViewQuery:!1,descendants:!1,emitDistinctChangesOnly:!0},t),os),Iv=Gr("ContentChild",(e,t={})=>Object.assign({selector:e,first:!0,isViewQuery:!1,descendants:!0},t),os),Ov=Gr("ViewChildren",(e,t={})=>Object.assign({selector:e,first:!1,isViewQuery:!0,descendants:!0,emitDistinctChangesOnly:!0},t),os),Av=Gr("ViewChild",(e,t)=>Object.assign({selector:e,first:!0,isViewQuery:!0,descendants:!0},t),os);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=W.ng;if(t&&t.\u0275compilerFacade)return t.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}const Ws=Function;function ss(e){return"function"==typeof e}function Ri(e,t){void 0===t&&(t=e);for(let i=0;i<e.length;i++){let s=e[i];Array.isArray(s)?(t===e&&(t=e.slice(0,i)),Ri(s,t)):t!==e&&t.push(s)}return t}function kr(e,t){e.forEach(i=>Array.isArray(i)?kr(i,t):t(i))}function yd(e,t,i){t>=e.length?e.push(i):e.splice(t,0,i)}function Gs(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function as(e,t){const i=[];for(let s=0;s<e;s++)i.push(t);return i}function xi(e,t,i){let s=Eo(e,t);return s>=0?e[1|s]=i:(s=~s,function xv(e,t,i,s){let l=e.length;if(l==t)e.push(i,s);else if(1===l)e.push(s,e[0]),e[0]=i;else{for(l--,e.push(e[l-1],e[l]);l>t;)e[l]=e[l-2],l--;e[t]=i,e[t+1]=s}}(e,s,t,i)),s}function Za(e,t){const i=Eo(e,t);if(i>=0)return e[1|i]}function Eo(e,t){return function Cd(e,t,i){let s=0,l=e.length>>i;for(;l!==s;){const g=s+(l-s>>1),D=e[g<<i];if(t===D)return g<<i;D>t?l=g:s=g+1}return~(l<<i)}(e,t,1)}const Fv=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|(?:[^()]+\(\[\],)?[^()]+\(arguments\).*)\)/,kv=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,Nv=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,Lv=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{[^}]*super\(\.\.\.arguments\)/;class Dd{constructor(t){this._reflect=t||W.Reflect}factory(t){return(...i)=>new t(...i)}_zipTypesAndAnnotations(t,i){let s;s=as(void 0===t?i.length:t.length);for(let l=0;l<s.length;l++)s[l]=void 0===t?[]:t[l]&&t[l]!=Object?[t[l]]:[],i&&null!=i[l]&&(s[l]=s[l].concat(i[l]));return s}_ownParameters(t,i){if(function jv(e){return Fv.test(e)||Lv.test(e)||kv.test(e)&&!Nv.test(e)}(t.toString()))return null;if(t.parameters&&t.parameters!==i.parameters)return t.parameters;const l=t.ctorParameters;if(l&&l!==i.ctorParameters){const w="function"==typeof l?l():l,I=w.map(ee=>ee&&ee.type),L=w.map(ee=>ee&&Ja(ee.decorators));return this._zipTypesAndAnnotations(I,L)}const g=t.hasOwnProperty(_o)&&t[_o],D=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",t);return D||g?this._zipTypesAndAnnotations(D,g):as(t.length)}parameters(t){if(!ss(t))return[];const i=Ks(t);let s=this._ownParameters(t,i);return!s&&i!==Object&&(s=this.parameters(i)),s||[]}_ownAnnotations(t,i){if(t.annotations&&t.annotations!==i.annotations){let s=t.annotations;return"function"==typeof s&&s.annotations&&(s=s.annotations),s}return t.decorators&&t.decorators!==i.decorators?Ja(t.decorators):t.hasOwnProperty(yo)?t[yo]:null}annotations(t){if(!ss(t))return[];const i=Ks(t),s=this._ownAnnotations(t,i)||[];return(i!==Object?this.annotations(i):[]).concat(s)}_ownPropMetadata(t,i){if(t.propMetadata&&t.propMetadata!==i.propMetadata){let s=t.propMetadata;return"function"==typeof s&&s.propMetadata&&(s=s.propMetadata),s}if(t.propDecorators&&t.propDecorators!==i.propDecorators){const s=t.propDecorators,l={};return Object.keys(s).forEach(g=>{l[g]=Ja(s[g])}),l}return t.hasOwnProperty(bo)?t[bo]:null}propMetadata(t){if(!ss(t))return{};const i=Ks(t),s={};if(i!==Object){const g=this.propMetadata(i);Object.keys(g).forEach(D=>{s[D]=g[D]})}const l=this._ownPropMetadata(t,i);return l&&Object.keys(l).forEach(g=>{const D=[];s.hasOwnProperty(g)&&D.push(...s[g]),D.push(...l[g]),s[g]=D}),s}ownPropMetadata(t){return ss(t)&&this._ownPropMetadata(t,Ks(t))||{}}hasLifecycleHook(t,i){return t instanceof Ws&&i in t.prototype}}function Ja(e){return e?e.map(t=>new(0,t.type.annotationCls)(...t.args?t.args:[])):[]}function Ks(e){const t=e.prototype?Object.getPrototypeOf(e.prototype):null;return(t?t.constructor:null)||Object}const Kr={},Xa="__NG_DI_FLAG__",Ys="ngTempTokenPath",Vv=/\n/gm,Ed="__source";let ls;function io(e){const t=ls;return ls=e,t}function Hv(e,t=Ve.Default){if(void 0===ls)throw new M(-203,!1);return null===ls?ze(e,void 0,t):ls.get(e,t&Ve.Optional?null:void 0,t)}function ti(e,t=Ve.Default){return(function K(){return Ke}()||Hv)(v(e),t)}function qa(e){throw new M(202,!1)}function Td(e,t=Ve.Default){return"number"!=typeof t&&(t=0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)),ti(e,t)}function el(e){const t=[];for(let i=0;i<e.length;i++){const s=v(e[i]);if(Array.isArray(s)){if(0===s.length)throw new M(900,!1);let l,g=Ve.Default;for(let D=0;D<s.length;D++){const w=s[D],I=Uv(w);"number"==typeof I?-1===I?l=w.token:g|=I:l=w}t.push(ti(l,g))}else t.push(ti(s))}return t}function cs(e,t){return e[Xa]=t,e.prototype[Xa]=t,e}function Uv(e){return e[Xa]}const Qs=cs(Do("Inject",e=>({token:e})),-1),us=cs(Do("Optional"),8),Zs=cs(Do("Self"),2),To=cs(Do("SkipSelf"),4),wd=cs(Do("Host"),1);let Md=null;function ds(){return Md=Md||new Dd}function Js(e){return Sd(ds().parameters(e))}function Sd(e){return e.map(t=>function Gv(e){const t={token:null,attribute:null,host:!1,optional:!1,self:!1,skipSelf:!1};if(Array.isArray(e)&&e.length>0)for(let i=0;i<e.length;i++){const s=e[i];if(void 0===s)continue;const l=Object.getPrototypeOf(s);if(s instanceof us||"Optional"===l.ngMetadataName)t.optional=!0;else if(s instanceof To||"SkipSelf"===l.ngMetadataName)t.skipSelf=!0;else if(s instanceof Zs||"Self"===l.ngMetadataName)t.self=!0;else if(s instanceof wd||"Host"===l.ngMetadataName)t.host=!0;else if(s instanceof Qs)t.token=s.token;else if(s instanceof gd){if(void 0===s.attributeName)throw new M(204,!1);t.attribute=s.attributeName}else t.token=s}else t.token=void 0===e||Array.isArray(e)&&0===e.length?null:e;return t}(t))}function Id(e){const t=[],i=new Map;function s(l){let g=i.get(l);if(!g){const D=e(l);i.set(l,g=D.then(Qv))}return g}return wo.forEach((l,g)=>{const D=[];l.templateUrl&&D.push(s(l.templateUrl).then(Re=>{l.template=Re}));const w=l.styleUrls,I=l.styles||(l.styles=[]),L=l.styles.length;w&&w.forEach((Re,st)=>{I.push(""),D.push(s(Re).then(pt=>{I[L+st]=pt,w.splice(w.indexOf(Re),1),0==w.length&&(l.styleUrls=void 0)}))});const ee=Promise.all(D).then(()=>function Zv(e){fs.delete(e)}(g));t.push(ee)}),Ad(),Promise.all(t).then(()=>{})}let wo=new Map;const fs=new Set;function Od(e){return!!(e.templateUrl&&!e.hasOwnProperty("template")||e.styleUrls&&e.styleUrls.length)}function Ad(){const e=wo;return wo=new Map,e}function Qv(e){return"string"==typeof e?e:e.text()}const Xs=new Map;let nl,qs,ea,Pd=!0;function tl(e,t){(function Jv(e,t,i){if(t&&t!==i&&Pd)throw new Error(`Duplicate module registered for ${e} - ${p(t)} vs ${p(t.name)}`)})(t,Xs.get(t)||null,e),Xs.set(t,e)}function Rd(e){return Xs.get(e)}function Xv(e){Pd=!e}function qv(e){nl=e}function xd(){return void 0!==nl?nl:"undefined"!=typeof document?document:void 0}function il(){if(void 0===qs&&(qs=null,W.trustedTypes))try{qs=W.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return qs}function Mo(e){var t;return(null===(t=il())||void 0===t?void 0:t.createHTML(e))||e}function rl(){if(void 0===ea&&(ea=null,W.trustedTypes))try{ea=W.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return ea}function Fd(e){var t;return(null===(t=rl())||void 0===t?void 0:t.createHTML(e))||e}function kd(e){var t;return(null===(t=rl())||void 0===t?void 0:t.createScript(e))||e}function Nd(e){var t;return(null===(t=rl())||void 0===t?void 0:t.createScriptURL(e))||e}class ro{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class ny extends ro{getTypeName(){return"HTML"}}class iy extends ro{getTypeName(){return"Style"}}class ry extends ro{getTypeName(){return"Script"}}class oy extends ro{getTypeName(){return"URL"}}class sy extends ro{getTypeName(){return"ResourceURL"}}function Nr(e){return e instanceof ro?e.changingThisBreaksApplicationSecurity:e}function So(e,t){const i=Ld(e);if(null!=i&&i!==t){if("ResourceURL"===i&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${i} (see https://g.co/ng/security#xss)`)}return i===t}function Ld(e){return e instanceof ro&&e.getTypeName()||null}function ay(e){return new ny(e)}function ly(e){return new iy(e)}function cy(e){return new ry(e)}function uy(e){return new oy(e)}function dy(e){return new sy(e)}function jd(e){const t=new hy(e);return function py(){try{return!!(new window.DOMParser).parseFromString(Mo(""),"text/html")}catch(e){return!1}}()?new fy(t):t}class fy{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const i=(new window.DOMParser).parseFromString(Mo(t),"text/html").body;return null===i?this.inertDocumentHelper.getInertBodyElement(t):(i.removeChild(i.firstChild),i)}catch(i){return null}}}class hy{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const i=this.inertDocument.createElement("html");this.inertDocument.appendChild(i);const s=this.inertDocument.createElement("body");i.appendChild(s)}}getInertBodyElement(t){const i=this.inertDocument.createElement("template");if("content"in i)return i.innerHTML=Mo(t),i;const s=this.inertDocument.createElement("body");return s.innerHTML=Mo(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(s),s}stripCustomNsAttrs(t){const i=t.attributes;for(let l=i.length-1;0<l;l--){const D=i.item(l).name;("xmlns:ns1"===D||0===D.indexOf("ns1:"))&&t.removeAttribute(D)}let s=t.firstChild;for(;s;)s.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(s),s=s.nextSibling}}const my=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,gy=/^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 hs(e){return(e=String(e)).match(my)||e.match(gy)?e:"unsafe:"+e}function Bd(e){return(e=String(e)).split(",").map(t=>hs(t.trim())).join(", ")}function Cr(e){const t={};for(const i of e.split(","))t[i]=!0;return t}function ps(...e){const t={};for(const i of e)for(const s in i)i.hasOwnProperty(s)&&(t[s]=!0);return t}const Vd=Cr("area,br,col,hr,img,wbr"),$d=Cr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Hd=Cr("rp,rt"),ol=ps(Vd,ps($d,Cr("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")),ps(Hd,Cr("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")),ps(Hd,$d)),sl=Cr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),al=Cr("srcset"),Ud=ps(sl,al,Cr("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"),Cr("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")),vy=Cr("script,style,template");class yy{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let i=t.firstChild,s=!0;for(;i;)if(i.nodeType===Node.ELEMENT_NODE?s=this.startElement(i):i.nodeType===Node.TEXT_NODE?this.chars(i.nodeValue):this.sanitizedSomething=!0,s&&i.firstChild)i=i.firstChild;else for(;i;){i.nodeType===Node.ELEMENT_NODE&&this.endElement(i);let l=this.checkClobberedElement(i,i.nextSibling);if(l){i=l;break}i=this.checkClobberedElement(i,i.parentNode)}return this.buf.join("")}startElement(t){const i=t.nodeName.toLowerCase();if(!ol.hasOwnProperty(i))return this.sanitizedSomething=!0,!vy.hasOwnProperty(i);this.buf.push("<"),this.buf.push(i);const s=t.attributes;for(let l=0;l<s.length;l++){const g=s.item(l),D=g.name,w=D.toLowerCase();if(!Ud.hasOwnProperty(w)){this.sanitizedSomething=!0;continue}let I=g.value;sl[w]&&(I=hs(I)),al[w]&&(I=Bd(I)),this.buf.push(" ",D,'="',zd(I),'"')}return this.buf.push(">"),!0}endElement(t){const i=t.nodeName.toLowerCase();ol.hasOwnProperty(i)&&!Vd.hasOwnProperty(i)&&(this.buf.push("</"),this.buf.push(i),this.buf.push(">"))}chars(t){this.buf.push(zd(t))}checkClobberedElement(t,i){if(i&&(t.compareDocumentPosition(i)&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 i}}const _y=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,by=/([^\#-~ |!])/g;function zd(e){return e.replace(/&/g,"&amp;").replace(_y,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(by,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let ta;function Wd(e,t){let i=null;try{ta=ta||jd(e);let s=t?String(t):"";i=ta.getInertBodyElement(s);let l=5,g=s;do{if(0===l)throw new Error("Failed to sanitize html because the input is unstable");l--,s=g,g=i.innerHTML,i=ta.getInertBodyElement(s)}while(s!==g);return Mo((new yy).sanitizeChildren(ll(i)||i))}finally{if(i){const s=ll(i)||i;for(;s.firstChild;)s.removeChild(s.firstChild)}}}function ll(e){return"content"in e&&function Cy(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Jn=(()=>((Jn=Jn||{})[Jn.NONE=0]="NONE",Jn[Jn.HTML=1]="HTML",Jn[Jn.STYLE=2]="STYLE",Jn[Jn.SCRIPT=3]="SCRIPT",Jn[Jn.URL=4]="URL",Jn[Jn.RESOURCE_URL=5]="RESOURCE_URL",Jn))();function Gd(e){const t=ms();return t?Fd(t.sanitize(Jn.HTML,e)||""):So(e,"HTML")?Fd(Nr(e)):Wd(xd(),P(e))}function Kd(e){const t=ms();return t?t.sanitize(Jn.STYLE,e)||"":So(e,"Style")?Nr(e):P(e)}function cl(e){const t=ms();return t?t.sanitize(Jn.URL,e)||"":So(e,"URL")?Nr(e):hs(P(e))}function ul(e){const t=ms();if(t)return Nd(t.sanitize(Jn.RESOURCE_URL,e)||"");if(So(e,"ResourceURL"))return Nd(Nr(e));throw new M(904,!1)}function Yd(e){const t=ms();if(t)return kd(t.sanitize(Jn.SCRIPT,e)||"");if(So(e,"Script"))return kd(Nr(e));throw new M(905,!1)}function Qd(e){return Mo(e[0])}function Zd(e){return function ty(e){var t;return(null===(t=il())||void 0===t?void 0:t.createScriptURL(e))||e}(e[0])}function Jd(e,t,i){return function Dy(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?ul:cl}(t,i)(e)}function ms(){const e=St();return e&&e[12]}const dl=new Pn("ENVIRONMENT_INITIALIZER"),fl=new Pn("INJECTOR",-1),Xd=new Pn("INJECTOR_DEF_TYPES");class qd{get(t,i=Kr){if(i===Kr){const s=new Error(`NullInjectorError: No provider for ${p(t)}!`);throw s.name="NullInjectorError",s}return i}}function ef(...e){return{\u0275providers:tf(0,e)}}function tf(e,...t){const i=[],s=new Set;let l;return kr(t,g=>{const D=g;hl(D,i,[],s)&&(l||(l=[]),l.push(D))}),void 0!==l&&nf(l,i),i}function nf(e,t){for(let i=0;i<e.length;i++){const{providers:l}=e[i];kr(l,g=>{t.push(g)})}}function hl(e,t,i,s){if(!(e=v(e)))return!1;let l=null,g=He(e);const D=!g&&X(e);if(g||D){if(D&&!D.standalone)return!1;l=e}else{const I=e.ngModule;if(g=He(I),!g)return!1;l=I}const w=s.has(l);if(D){if(w)return!1;if(s.add(l),D.dependencies){const I="function"==typeof D.dependencies?D.dependencies():D.dependencies;for(const L of I)hl(L,t,i,s)}}else{if(!g)return!1;{if(null!=g.imports&&!w){let L;s.add(l);try{kr(g.imports,ee=>{hl(ee,t,i,s)&&(L||(L=[]),L.push(ee))})}finally{}void 0!==L&&nf(L,t)}if(!w){const L=ni(l)||(()=>new l);t.push({provide:l,useFactory:L,deps:tt},{provide:Xd,useValue:l,multi:!0},{provide:dl,useValue:()=>ti(l),multi:!0})}const I=g.providers;null==I||w||kr(I,ee=>{t.push(ee)})}}return l!==e&&void 0!==e.providers}const Ey=c({provide:String,useValue:c});function pl(e){return null!==e&&"object"==typeof e&&Ey in e}function oo(e){return"function"==typeof e}const ml=new Pn("Set Injector scope."),na={},wy={};let gl;function ia(){return void 0===gl&&(gl=new qd),gl}class so{}class af extends so{constructor(t,i,s,l){super(),this.parent=i,this.source=s,this.scopes=l,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,yl(t,D=>this.processProvider(D)),this.records.set(fl,Io(void 0,this)),l.has("environment")&&this.records.set(so,Io(void 0,this));const g=this.records.get(ml);null!=g&&"string"==typeof g.value&&this.scopes.add(g.value),this.injectorDefTypes=new Set(this.get(Xd.multi,tt,Ve.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){this._onDestroyHooks.push(t)}runInContext(t){this.assertNotDestroyed();const i=io(this),s=we(void 0);try{return t()}finally{io(i),we(s)}}get(t,i=Kr,s=Ve.Default){this.assertNotDestroyed();const l=io(this),g=we(void 0);try{if(!(s&Ve.SkipSelf)){let w=this.records.get(t);if(void 0===w){const I=function Ay(e){return"function"==typeof e||"object"==typeof e&&e instanceof Pn}(t)&&lt(t);w=I&&this.injectableDefInScope(I)?Io(vl(t),na):null,this.records.set(t,w)}if(null!=w)return this.hydrate(t,w)}return(s&Ve.Self?ia():this.parent).get(t,i=s&Ve.Optional&&i===Kr?null:i)}catch(D){if("NullInjectorError"===D.name){if((D[Ys]=D[Ys]||[]).unshift(p(t)),l)throw D;return function zv(e,t,i,s){const l=e[Ys];throw t[Ed]&&l.unshift(t[Ed]),e.message=function Wv(e,t,i,s=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let l=p(t);if(Array.isArray(t))l=t.map(p).join(" -> ");else if("object"==typeof t){let g=[];for(let D in t)if(t.hasOwnProperty(D)){let w=t[D];g.push(D+":"+("string"==typeof w?JSON.stringify(w):p(w)))}l=`{${g.join(", ")}}`}return`${i}${s?"("+s+")":""}[${l}]: ${e.replace(Vv,"\n ")}`}("\n"+e.message,l,i,s),e.ngTokenPath=l,e[Ys]=null,e}(D,t,"R3InjectorError",this.source)}throw D}finally{we(g),io(l)}}resolveInjectorInitializers(){const t=io(this),i=we(void 0);try{const s=this.get(dl.multi,tt,Ve.Self);for(const l of s)l()}finally{io(t),we(i)}}toString(){const t=[],i=this.records;for(const s of i.keys())t.push(p(s));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new M(205,!1)}processProvider(t){let i=oo(t=v(t))?t:v(t&&t.provide);const s=function Sy(e){return pl(e)?Io(void 0,e.useValue):Io(lf(e),na)}(t);if(oo(t)||!0!==t.multi)this.records.get(i);else{let l=this.records.get(i);l||(l=Io(void 0,na,!0),l.factory=()=>el(l.multi),this.records.set(i,l)),i=t,l.multi.push(t)}this.records.set(i,s)}hydrate(t,i){return i.value===na&&(i.value=wy,i.value=i.factory()),"object"==typeof i.value&&i.value&&function Oy(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(i.value)&&this._ngOnDestroyHooks.add(i.value),i.value}injectableDefInScope(t){if(!t.providedIn)return!1;const i=v(t.providedIn);return"string"==typeof i?"any"===i||this.scopes.has(i):this.injectorDefTypes.has(i)}}function vl(e){const t=lt(e),i=null!==t?t.factory:ni(e);if(null!==i)return i;if(e instanceof Pn)throw new M(204,!1);if(e instanceof Function)return function My(e){const t=e.length;if(t>0)throw as(t,"?"),new M(204,!1);const i=function _t(e){const t=e&&(e[Ie]||e[pe]);if(t){const i=function ut(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 "${i}" 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 "${i}" class.`),t}return null}(e);return null!==i?()=>i.factory(e):()=>new e}(e);throw new M(204,!1)}function lf(e,t,i){let s;if(oo(e)){const l=v(e);return ni(l)||vl(l)}if(pl(e))s=()=>v(e.useValue);else if(function sf(e){return!(!e||!e.useFactory)}(e))s=()=>e.useFactory(...el(e.deps||[]));else if(function rf(e){return!(!e||!e.useExisting)}(e))s=()=>ti(v(e.useExisting));else{const l=v(e&&(e.useClass||e.provide));if(!function Iy(e){return!!e.deps}(e))return ni(l)||vl(l);s=()=>new l(...el(e.deps))}return s}function Io(e,t,i=!1){return{factory:e,value:t,multi:i?[]:void 0}}function Py(e){return!!e.\u0275providers}function yl(e,t){for(const i of e)Array.isArray(i)?yl(i,t):Py(i)?yl(i.\u0275providers,t):t(i)}class cf{}class ra{}class xy{resolveComponentFactory(t){throw function Ry(e){const t=Error(`No component factory found for ${p(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let gs=(()=>{class e{}return e.NULL=new xy,e})();function Fy(){return Oo(xn(),St())}function Oo(e,t){return new vs(Tn(e,t))}let vs=(()=>{class e{constructor(i){this.nativeElement=i}}return e.__NG_ELEMENT_ID__=Fy,e})();function ky(e){return e instanceof vs?e.nativeElement:e}class df{}let Ny=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function Ly(){const e=St(),i=Qn(xn().index,e);return(En(i)?i:e)[11]}(),e})(),ff=(()=>{class e{}return e.\u0275prov=Pe({token:e,providedIn:"root",factory:()=>null}),e})();class hf{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const pf=new hf("14.1.3"),oa={},mf={name:"custom-elements"},gf={name:"no-errors-schema"};let _l=!1;function jy(e){_l=e}function By(){return _l}let bl=!1;function Vy(e){bl=e}function $y(){return bl}const Dl="ngOriginalError";function El(e){return e[Dl]}class ys{constructor(){this._console=console}handleError(t){const i=this._findOriginalError(t);this._console.error("ERROR",t),i&&this._console.error("ORIGINAL ERROR",i)}_findOriginalError(t){let i=t&&El(t);for(;i&&El(i);)i=El(i);return i||null}}const zy=/^>|^->|<!--|-->|--!>|<!-$/g,Wy=/(<|>)/;const Tl=new Map;let Jy=0;function Df(e){return Tl.get(e)||null}class Ef{constructor(t,i,s){this.lViewId=t,this.nodeIndex=i,this.native=s}get lView(){return Df(this.lViewId)}}function ui(e){let t=_s(e);if(t){if(En(t)){const i=t;let s,l,g;if(function t_(e){return e&&e.constructor&&e.constructor.\u0275cmp}(e)){if(s=Mf(i,e),-1==s)throw new Error("The provided component was not found in the application");l=e}else if(function n_(e){return e&&e.constructor&&e.constructor.\u0275dir}(e)){if(s=function r_(e,t){let i=e[1].firstChild;for(;i;){const l=i.directiveEnd;for(let g=i.directiveStart;g<l;g++)if(e[g]===t)return i.index;i=i_(i)}return-1}(i,e),-1==s)throw new Error("The provided directive was not found in the application");g=Sf(s,i,!1)}else if(s=wf(i,e),-1==s)return null;const D=bn(i[s]),w=_s(D),I=w&&!Array.isArray(w)?w:wl(i,s,D);if(l&&void 0===I.component&&(I.component=l,di(I.component,I)),g&&void 0===I.directives){I.directives=g;for(let L=0;L<g.length;L++)di(g[L],I)}di(I.native,I),t=I}}else{const i=e;let s=i;for(;s=s.parentNode;){const l=_s(s);if(l){const g=Array.isArray(l)?l:l.lView;if(!g)return null;const D=wf(g,i);if(D>=0){const w=bn(g[D]),I=wl(g,D,w);di(w,I),t=I;break}}}}return t||null}function wl(e,t,i){return new Ef(e[20],t,i)}function Tf(e){let i,t=_s(e);if(En(t)){const s=t,l=Mf(s,e);i=Qn(l,s);const g=wl(s,l,i[0]);g.component=e,di(e,g),di(g.native,g)}else i=Qn(t.nodeIndex,t.lView);return i}const Ml="__ngContext__";function di(e,t){En(t)?(e[Ml]=t[20],function qy(e){Tl.set(e[20],e)}(t)):e[Ml]=t}function _s(e){const t=e[Ml];return"number"==typeof t?Df(t):t||null}function Sl(e){const t=_s(e);return t?En(t)?t:t.lView:null}function wf(e,t){const i=e[1];for(let s=22;s<i.bindingStartIndex;s++)if(bn(e[s])===t)return s;return-1}function i_(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 Mf(e,t){const i=e[1].components;if(i)for(let s=0;s<i.length;s++){const l=i[s];if(Qn(l,e)[8]===t)return l}else if(Qn(22,e)[8]===t)return 22;return-1}function Sf(e,t,i){const s=t[1].data[e];let l=s.directiveStart;return 0==l?tt:(!i&&2&s.flags&&l++,t.slice(l,s.directiveEnd))}const a_=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(W))();function If(e){return e.ownerDocument.defaultView}function Of(e){return e.ownerDocument}function Af(e){return e.ownerDocument.body}function Lr(e){return e instanceof Function?e():e}var Dr=(()=>((Dr=Dr||{})[Dr.Important=1]="Important",Dr[Dr.DashCase=2]="DashCase",Dr))();let Il;function Ol(e,t){return Il(e,t)}function bs(e){const t=e[3];return Nn(t)?t[3]:t}function xf(e){return function f_(e){let t=En(e)?e:Sl(e);for(;t&&!(256&t[2]);)t=bs(t);return t}(e)[8]}function Al(e){return Ff(e[13])}function Pl(e){return Ff(e[4])}function Ff(e){for(;null!==e&&!Nn(e);)e=e[4];return e}function Po(e,t,i,s,l){if(null!=s){let g,D=!1;Nn(s)?g=s:En(s)&&(D=!0,s=s[0]);const w=bn(s);0===e&&null!==i?null==l?Vf(t,i,w):ao(t,i,w,l||null,!0):1===e&&null!==i?ao(t,i,w,l||null,!0):2===e?Kf(t,w,D):3===e&&t.destroyNode(w),null!=g&&function w_(e,t,i,s,l){const g=i[7];g!==bn(i)&&Po(t,e,s,g,l);for(let w=10;w<i.length;w++){const I=i[w];Cs(I[1],I,e,t,s,g)}}(t,e,g,i,l)}}function Rl(e,t){return e.createText(t)}function kf(e,t,i){e.setValue(t,i)}function h_(e,t){return e.createComment(function Cf(e){return e.replace(zy,t=>t.replace(Wy,"\u200b$1\u200b"))}(t))}function xl(e,t,i){return e.createElement(t,i)}function Nf(e,t){const i=e[9],s=i.indexOf(t),l=t[3];512&t[2]&&(t[2]&=-513,Et(l,-1)),i.splice(s,1)}function Fl(e,t){if(e.length<=10)return;const i=10+t,s=e[i];if(s){const l=s[17];null!==l&&l!==e&&Nf(l,s),t>0&&(e[i-1][4]=s[4]);const g=Gs(e,10+t);!function p_(e,t){Cs(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(s[1],s);const D=g[19];null!==D&&D.detachView(g[1]),s[3]=null,s[4]=null,s[2]&=-65}return s}function Lf(e,t){if(!(128&t[2])){const i=t[11];i.destroyNode&&Cs(e,t,i,3,null,null),function v_(e){let t=e[13];if(!t)return kl(e[1],e);for(;t;){let i=null;if(En(t))i=t[13];else{const s=t[10];s&&(i=s)}if(!i){for(;t&&!t[4]&&t!==e;)En(t)&&kl(t[1],t),t=t[3];null===t&&(t=e),En(t)&&kl(t[1],t),i=t&&t[4]}t=i}}(t)}}function kl(e,t){if(!(128&t[2])){t[2]&=-65,t[2]|=128,function C_(e,t){let i;if(null!=e&&null!=(i=e.destroyHooks))for(let s=0;s<i.length;s+=2){const l=t[i[s]];if(!(l instanceof si)){const g=i[s+1];if(Array.isArray(g))for(let D=0;D<g.length;D+=2){const w=l[g[D]],I=g[D+1];Wn(4,w,I);try{I.call(w)}finally{Wn(5,w,I)}}else{Wn(4,l,g);try{g.call(l)}finally{Wn(5,l,g)}}}}}(e,t),function b_(e,t){const i=e.cleanup,s=t[7];let l=-1;if(null!==i)for(let g=0;g<i.length-1;g+=2)if("string"==typeof i[g]){const D=i[g+1],w="function"==typeof D?D(t):bn(t[D]),I=s[l=i[g+2]],L=i[g+3];"boolean"==typeof L?w.removeEventListener(i[g],I,L):L>=0?s[l=L]():s[l=-L].unsubscribe(),g+=2}else{const D=s[l=i[g+1]];i[g].call(D)}if(null!==s){for(let g=l+1;g<s.length;g++)(0,s[g])();t[7]=null}}(e,t),1===t[1].type&&t[11].destroy();const i=t[17];if(null!==i&&Nn(t[3])){i!==t[3]&&Nf(i,t);const s=t[19];null!==s&&s.detachView(e)}!function e_(e){Tl.delete(e[20])}(t)}}function jf(e,t,i){return Bf(e,t.parent,i)}function Bf(e,t,i){let s=t;for(;null!==s&&40&s.type;)s=(t=s).parent;if(null===s)return i[0];if(2&s.flags){const l=e.data[s.directiveStart].encapsulation;if(l===xe.None||l===xe.Emulated)return null}return Tn(s,i)}function ao(e,t,i,s,l){e.insertBefore(t,i,s,l)}function Vf(e,t,i){e.appendChild(t,i)}function $f(e,t,i,s,l){null!==s?ao(e,t,i,s,l):Vf(e,t,i)}function sa(e,t){return e.parentNode(t)}function Hf(e,t,i){return zf(e,t,i)}function Uf(e,t,i){return 40&e.type?Tn(e,i):null}let Nl,zf=Uf;function Wf(e,t){zf=e,Nl=t}function aa(e,t,i,s){const l=jf(e,s,t),g=t[11],w=Hf(s.parent||t[6],s,t);if(null!=l)if(Array.isArray(i))for(let I=0;I<i.length;I++)$f(g,l,i[I],w,!1);else $f(g,l,i,w,!1);void 0!==Nl&&Nl(g,s,t,i,l)}function la(e,t){if(null!==t){const i=t.type;if(3&i)return Tn(t,e);if(4&i)return Ll(-1,e[t.index]);if(8&i){const s=t.child;if(null!==s)return la(e,s);{const l=e[t.index];return Nn(l)?Ll(-1,l):bn(l)}}if(32&i)return Ol(t,e)()||bn(e[t.index]);{const s=Gf(e,t);return null!==s?Array.isArray(s)?s[0]:la(bs(e[16]),s):la(e,t.next)}}return null}function Gf(e,t){return null!==t?e[16][6].projection[t.projection]:null}function Ll(e,t){const i=10+e+1;if(i<t.length){const s=t[i],l=s[1].firstChild;if(null!==l)return la(s,l)}return t[7]}function Kf(e,t,i){const s=sa(e,t);s&&function D_(e,t,i,s){e.removeChild(t,i,s)}(e,s,t,i)}function jl(e,t,i,s,l,g,D){for(;null!=i;){const w=s[i.index],I=i.type;if(D&&0===t&&(w&&di(bn(w),s),i.flags|=4),64!=(64&i.flags))if(8&I)jl(e,t,i.child,s,l,g,!1),Po(t,e,l,w,g);else if(32&I){const L=Ol(i,s);let ee;for(;ee=L();)Po(t,e,l,ee,g);Po(t,e,l,w,g)}else 16&I?Yf(e,t,s,i,l,g):Po(t,e,l,w,g);i=D?i.projectionNext:i.next}}function Cs(e,t,i,s,l,g){jl(i,s,e.firstChild,t,l,g,!1)}function Yf(e,t,i,s,l,g){const D=i[16],I=D[6].projection[s.projection];if(Array.isArray(I))for(let L=0;L<I.length;L++)Po(t,e,l,I[L],g);else jl(e,t,I,D[3],l,g,!0)}function Qf(e,t,i){e.setAttribute(t,"style",i)}function Bl(e,t,i){""===i?e.removeAttribute(t,"class"):e.setAttribute(t,"class",i)}function Zf(e,t,i){let s=e.length;for(;;){const l=e.indexOf(t,i);if(-1===l)return l;if(0===l||e.charCodeAt(l-1)<=32){const g=t.length;if(l+g===s||e.charCodeAt(l+g)<=32)return l}i=l+1}}const Jf="ng-template";function S_(e,t,i){let s=0;for(;s<e.length;){let l=e[s++];if(i&&"class"===l){if(l=e[s],-1!==Zf(l.toLowerCase(),t,0))return!0}else if(1===l){for(;s<e.length&&"string"==typeof(l=e[s++]);)if(l.toLowerCase()===t)return!0;return!1}}return!1}function Xf(e){return 4===e.type&&e.value!==Jf}function I_(e,t,i){return t===(4!==e.type||i?e.value:Jf)}function O_(e,t,i){let s=4;const l=e.attrs||[],g=function R_(e){for(let t=0;t<e.length;t++)if(Zt(e[t]))return t;return e.length}(l);let D=!1;for(let w=0;w<t.length;w++){const I=t[w];if("number"!=typeof I){if(!D)if(4&s){if(s=2|1&s,""!==I&&!I_(e,I,i)||""===I&&1===t.length){if(rr(s))return!1;D=!0}}else{const L=8&s?I:t[++w];if(8&s&&null!==e.attrs){if(!S_(e.attrs,L,i)){if(rr(s))return!1;D=!0}continue}const Re=A_(8&s?"class":I,l,Xf(e),i);if(-1===Re){if(rr(s))return!1;D=!0;continue}if(""!==L){let st;st=Re>g?"":l[Re+1].toLowerCase();const pt=8&s?st:null;if(pt&&-1!==Zf(pt,L,0)||2&s&&L!==st){if(rr(s))return!1;D=!0}}}}else{if(!D&&!rr(s)&&!rr(I))return!1;if(D&&rr(I))continue;D=!1,s=I|1&s}}return rr(s)||D}function rr(e){return 0==(1&e)}function A_(e,t,i,s){if(null===t)return-1;let l=0;if(s||!i){let g=!1;for(;l<t.length;){const D=t[l];if(D===e)return l;if(3===D||6===D)g=!0;else{if(1===D||2===D){let w=t[++l];for(;"string"==typeof w;)w=t[++l];continue}if(4===D)break;if(0===D){l+=4;continue}}l+=g?1:2}return-1}return function x_(e,t){let i=e.indexOf(4);if(i>-1)for(i++;i<e.length;){const s=e[i];if("number"==typeof s)return-1;if(s===t)return i;i++}return-1}(t,e)}function qf(e,t,i=!1){for(let s=0;s<t.length;s++)if(O_(e,t[s],i))return!0;return!1}function F_(e,t){e:for(let i=0;i<t.length;i++){const s=t[i];if(e.length===s.length){for(let l=0;l<e.length;l++)if(e[l]!==s[l])continue e;return!0}}return!1}function eh(e,t){return e?":not("+t.trim()+")":t}function k_(e){let t=e[0],i=1,s=2,l="",g=!1;for(;i<e.length;){let D=e[i];if("string"==typeof D)if(2&s){const w=e[++i];l+="["+D+(w.length>0?'="'+w+'"':"")+"]"}else 8&s?l+="."+D:4&s&&(l+=" "+D);else""!==l&&!rr(D)&&(t+=eh(g,l),l=""),s=D,g=g||!rr(s);i++}return""!==l&&(t+=eh(g,l)),t}const sn={};function th(e){nh(on(),St(),ht()+e,!1)}function nh(e,t,i,s){if(!s)if(3==(3&t[2])){const g=e.preOrderCheckHooks;null!==g&&Gn(t,g,i)}else{const g=e.preOrderHooks;null!==g&&ei(t,g,0,i)}wt(i)}const ih={\u0275\u0275defineInjectable:Pe,\u0275\u0275defineInjector:$e,\u0275\u0275inject:ti,\u0275\u0275invalidFactoryDep:qa,resolveForwardRef:v};const B_=c({provide:String,useValue:c});function rh(e){return void 0!==e.useClass}function oh(e){return void 0!==e.useFactory}const U_=Co("Injectable",void 0,void 0,void 0,(e,t)=>function j_(e,t){let i=null,s=null;e.hasOwnProperty(Ie)||Object.defineProperty(e,Ie,{get:()=>(null===i&&(i=ri().compileInjectable(ih,`ng:///${e.name}/\u0275prov.js`,function H_(e,t){const i=t||{providedIn:null},s={name:e.name,type:e,typeArgumentCount:0,providedIn:i.providedIn};return(rh(i)||oh(i))&&void 0!==i.deps&&(s.deps=Sd(i.deps)),rh(i)?s.useClass=i.useClass:function V_(e){return B_ in e}(i)?s.useValue=i.useValue:oh(i)?s.useFactory=i.useFactory:function $_(e){return void 0!==e.useExisting}(i)&&(s.useExisting=i.useExisting),s}(e,t))),i)}),e.hasOwnProperty(Nt)||Object.defineProperty(e,Nt,{get:()=>{if(null===s){const l=ri();s=l.compileFactory(ih,`ng:///${e.name}/\u0275fac.js`,{name:e.name,type:e,typeArgumentCount:0,deps:Js(e),target:l.FactoryTarget.Injectable})}return s},configurable:!0})}(e,t));function Vl(e,t=null,i=null,s){const l=sh(e,t,i,s);return l.resolveInjectorInitializers(),l}function sh(e,t=null,i=null,s,l=new Set){const g=[i||tt,ef(e)];return s=s||("object"==typeof e?void 0:p(e)),new af(g,t||ia(),s||null,l)}let Yr=(()=>{class e{static create(i,s){var l;if(Array.isArray(i))return Vl({name:""},s,i,"");{const g=null!==(l=i.name)&&void 0!==l?l:"";return Vl({name:g},i.parent,i.providers,g)}}}return e.THROW_IF_NOT_FOUND=Kr,e.NULL=new qd,e.\u0275prov=Pe({token:e,providedIn:"any",factory:()=>ti(fl)}),e.__NG_ELEMENT_ID__=-1,e})();function $l(e){return e.length>1?" ("+function z_(e){const t=[];for(let i=0;i<e.length;++i){if(t.indexOf(e[i])>-1)return t.push(e[i]),t;t.push(e[i])}return t}(e.slice().reverse()).map(s=>p(s.token)).join(" -> ")+")":""}function Hl(e,t,i,s){const l=[t],g=i(l),D=s?function Uy(e,t){const i=`${e} caused by: ${t instanceof Error?t.message:t}`,s=Error(i);return s[Dl]=t,s}(g,s):Error(g);return D.addKey=W_,D.keys=l,D.injectors=[e],D.constructResolvingMessage=i,D[Dl]=s,D}function W_(e,t){this.injectors.push(e),this.keys.push(t),this.message=this.constructResolvingMessage(this.keys)}function ah(e,t){const i=[];for(let s=0,l=t.length;s<l;s++){const g=t[s];i.push(g&&0!=g.length?g.map(p).join(" "):"?")}return Error("Cannot resolve all parameters for '"+p(e)+"'("+i.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+p(e)+"' is decorated with Injectable.")}function J_(e,t){return Error(`Cannot mix multi providers and regular providers, got: ${e} ${t}`)}class jr{constructor(t,i){if(this.token=t,this.id=i,!t)throw new M(208,!1);this.displayName=p(this.token)}static get(t){return lh.get(v(t))}static get numberOfKeys(){return lh.numberOfKeys}}class X_{constructor(){this._allKeys=new Map}get(t){if(t instanceof jr)return t;if(this._allKeys.has(t))return this._allKeys.get(t);const i=new jr(t,jr.numberOfKeys);return this._allKeys.set(t,i),i}get numberOfKeys(){return this._allKeys.size}}const lh=new X_;class ca{constructor(t,i,s){this.key=t,this.optional=i,this.visibility=s}static fromKey(t){return new ca(t,!1,null)}}const q_=[];class ch{constructor(t,i,s){this.key=t,this.resolvedFactories=i,this.multiProvider=s,this.resolvedFactory=this.resolvedFactories[0]}}class uh{constructor(t,i){this.factory=t,this.dependencies=i}}function eb(e){let t,i;if(e.useClass){const s=v(e.useClass);t=ds().factory(s),i=fh(s)}else e.useExisting?(t=s=>s,i=[ca.fromKey(jr.get(e.useExisting))]):e.useFactory?(t=e.useFactory,i=function rb(e,t){if(t){const i=t.map(s=>[s]);return t.map(s=>hh(e,s,i))}return fh(e)}(e.useFactory,e.deps)):(t=()=>e.useValue,i=q_);return new uh(t,i)}function tb(e){return new ch(jr.get(e.provide),[eb(e)],e.multi||!1)}function nb(e){const s=function ib(e,t){for(let i=0;i<e.length;i++){const s=e[i],l=t.get(s.key.id);if(l){if(s.multiProvider!==l.multiProvider)throw J_(l,s);if(s.multiProvider)for(let g=0;g<s.resolvedFactories.length;g++)l.resolvedFactories.push(s.resolvedFactories[g]);else t.set(s.key.id,s)}else{let g;g=s.multiProvider?new ch(s.key,s.resolvedFactories.slice(),s.multiProvider):s,t.set(s.key.id,g)}}return t}(dh(e,[]).map(tb),new Map);return Array.from(s.values())}function dh(e,t){return e.forEach(i=>{if(i instanceof Ws)t.push({provide:i,useClass:i});else if(i&&"object"==typeof i&&void 0!==i.provide)t.push(i);else{if(!Array.isArray(i))throw function Q_(e){return Error(`Invalid provider - only instances of Provider and Type are allowed, got: ${e}`)}(i);dh(i,t)}}),t}function fh(e){const t=ds().parameters(e);if(!t)return[];if(t.some(i=>null==i))throw ah(e,t);return t.map(i=>hh(e,i,t))}function hh(e,t,i){let s=null,l=!1;if(!Array.isArray(t))return Ul(t instanceof Qs?t.token:t,l,null);let g=null;for(let D=0;D<t.length;++D){const w=t[D];w instanceof Ws?s=w:w instanceof Qs?s=w.token:w instanceof us?l=!0:w instanceof Zs||w instanceof To?g=w:w instanceof Pn&&(s=w)}if(s=v(s),null!=s)return Ul(s,l,g);throw ah(e,i)}function Ul(e,t,i){return new ca(jr.get(e),t,i)}const Ds={};class Ro{static resolve(t){return nb(t)}static resolveAndCreate(t,i){const s=Ro.resolve(t);return Ro.fromResolvedProviders(s,i)}static fromResolvedProviders(t,i){return new ob(t,i)}}let ob=(()=>{class e{constructor(i,s){this._constructionCounter=0,this._providers=i,this.parent=s||null;const l=i.length;this.keyIds=[],this.objs=[];for(let g=0;g<l;g++)this.keyIds[g]=i[g].key.id,this.objs[g]=Ds}get(i,s=Kr){return this._getByKey(jr.get(i),null,s)}resolveAndCreateChild(i){const s=Ro.resolve(i);return this.createChildFromResolved(s)}createChildFromResolved(i){const s=new e(i);return s.parent=this,s}resolveAndInstantiate(i){return this.instantiateResolved(Ro.resolve([i])[0])}instantiateResolved(i){return this._instantiateProvider(i)}getProviderAtIndex(i){if(i<0||i>=this._providers.length)throw function Z_(e){return Error(`Index ${e} is out-of-bounds.`)}(i);return this._providers[i]}_new(i){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw function K_(e,t){return Hl(e,t,function(i){return`Cannot instantiate cyclic dependency!${$l(i)}`})}(this,i.key);return this._instantiateProvider(i)}_getMaxNumberOfObjects(){return this.objs.length}_instantiateProvider(i){if(i.multiProvider){const s=[];for(let l=0;l<i.resolvedFactories.length;++l)s[l]=this._instantiate(i,i.resolvedFactories[l]);return s}return this._instantiate(i,i.resolvedFactories[0])}_instantiate(i,s){const l=s.factory;let g,D;try{g=s.dependencies.map(w=>this._getByReflectiveDependency(w))}catch(w){throw w.addKey&&w.addKey(this,i.key),w}try{D=l(...g)}catch(w){throw function Y_(e,t,i,s){return Hl(e,s,function(l){const g=p(l[0].token);return`${t.message}: Error during instantiation of ${g}!${$l(l)}.`},t)}(this,w,0,i.key)}return D}_getByReflectiveDependency(i){return this._getByKey(i.key,i.visibility,i.optional?null:Kr)}_getByKey(i,s,l){return i===e.INJECTOR_KEY?this:s instanceof Zs?this._getByKeySelf(i,l):this._getByKeyDefault(i,l,s)}_getObjByKeyId(i){for(let s=0;s<this.keyIds.length;s++)if(this.keyIds[s]===i)return this.objs[s]===Ds&&(this.objs[s]=this._new(this._providers[s])),this.objs[s];return Ds}_throwOrNull(i,s){if(s!==Kr)return s;throw function G_(e,t){return Hl(e,t,function(i){return`No provider for ${p(i[0].token)}!${$l(i)}`})}(this,i)}_getByKeySelf(i,s){const l=this._getObjByKeyId(i.id);return l!==Ds?l:this._throwOrNull(i,s)}_getByKeyDefault(i,s,l){let g;for(g=l instanceof To?this.parent:this;g instanceof e;){const D=g,w=D._getObjByKeyId(i.id);if(w!==Ds)return w;g=D.parent}return null!==g?g.get(i.token,s):this._throwOrNull(i,s)}get displayName(){return`ReflectiveInjector(providers: [${function sb(e,t){const i=[];for(let s=0;s<e._providers.length;++s)i[s]=t(e.getProviderAtIndex(s));return i}(this,s=>' "'+s.key.displayName+'" ').join(", ")}])`}toString(){return this.displayName}}return e.INJECTOR_KEY=jr.get(Yr),e})();function xo(e,t=Ve.Default){const i=St();return null===i?ti(e,t):ud(xn(),i,v(e),t)}function ph(){throw new Error("invalid")}function ua(e,t){return e<<17|t<<2}function or(e){return e>>17&32767}function zl(e){return 2|e}function Br(e){return(131068&e)>>2}function Wl(e,t){return-131069&e|t<<2}function Gl(e){return 1|e}const ec=(()=>Promise.resolve(null))();function wh(e,t){const i=e.contentQueries;if(null!==i)for(let s=0;s<i.length;s+=2){const l=i[s],g=i[s+1];if(-1!==g){const D=e.data[g];es(l),D.contentQueries(2,t[g],g)}}}function ha(e,t,i,s,l,g,D,w,I,L,ee){const Re=t.blueprint.slice();return Re[0]=l,Re[2]=76|s,(null!==ee||e&&1024&e[2])&&(Re[2]|=1024),Xe(Re),Re[3]=Re[15]=e,Re[8]=i,Re[10]=D||e&&e[10],Re[11]=w||e&&e[11],Re[12]=I||e&&e[12]||null,Re[9]=L||e&&e[9]||null,Re[6]=g,Re[20]=function Xy(){return Jy++}(),Re[21]=ee,Re[16]=2==t.type?e[16]:Re,Re}function Fo(e,t,i,s,l){let g=e.data[t];if(null===g)g=tc(e,t,i,s,l),function Ls(){return gt.lFrame.inI18n}()&&(g.flags|=64);else if(64&g.type){g.type=i,g.value=s,g.attrs=l;const D=Hi();g.injectorIndex=null===D?-1:D.injectorIndex}return F(g,!0),g}function tc(e,t,i,s,l){const g=tr(),D=A(),I=e.data[t]=function Eb(e,t,i,s,l,g){return{type:i,index:s,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:l,attrs:g,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,D?g:g&&g.parent,i,t,s,l);return null===e.firstChild&&(e.firstChild=I),null!==g&&(D?null==g.child&&null!==I.parent&&(g.child=I):null===g.next&&(g.next=I)),I}function ko(e,t,i,s){if(0===i)return-1;const l=t.length;for(let g=0;g<i;g++)t.push(s),e.blueprint.push(s),e.data.push(null);return l}function pa(e,t,i){Q(t);try{const s=e.viewQuery;null!==s&&uc(1,s,i);const l=e.template;null!==l&&Mh(e,t,l,1,i),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&wh(e,t),e.staticViewQueries&&uc(2,e.viewQuery,i);const g=e.components;null!==g&&function _b(e,t){for(let i=0;i<t.length;i++)Bb(e,t[i])}(t,g)}catch(s){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),s}finally{t[2]&=-5,Se()}}function Es(e,t,i,s){const l=t[2];if(128!=(128&l)){Q(t);try{Xe(t),Rr(e.bindingStartIndex),null!==i&&Mh(e,t,i,2,s);const D=3==(3&l);if(D){const L=e.preOrderCheckHooks;null!==L&&Gn(t,L,null)}else{const L=e.preOrderHooks;null!==L&&ei(t,L,0,null),Kn(t,0)}if(function Lb(e){for(let t=Al(e);null!==t;t=Pl(t)){if(!t[2])continue;const i=t[9];for(let s=0;s<i.length;s++){const l=i[s],g=l[3];0==(512&l[2])&&Et(g,1),l[2]|=512}}}(t),function Nb(e){for(let t=Al(e);null!==t;t=Pl(t))for(let i=10;i<t.length;i++){const s=t[i],l=s[1];ne(s)&&Es(l,s,l.template,s[8])}}(t),null!==e.contentQueries&&wh(e,t),D){const L=e.contentCheckHooks;null!==L&&Gn(t,L)}else{const L=e.contentHooks;null!==L&&ei(t,L,1),Kn(t,1)}!function vb(e,t){const i=e.hostBindingOpCodes;if(null!==i)try{for(let s=0;s<i.length;s++){const l=i[s];if(l<0)wt(~l);else{const g=l,D=i[++s],w=i[++s];Ha(D,g),w(2,t[g])}}}finally{wt(-1)}}(e,t);const w=e.components;null!==w&&function yb(e,t){for(let i=0;i<t.length;i++)jb(e,t[i])}(t,w);const I=e.viewQuery;if(null!==I&&uc(2,I,s),D){const L=e.viewCheckHooks;null!==L&&Gn(t,L)}else{const L=e.viewHooks;null!==L&&ei(t,L,2),Kn(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),t[2]&=-41,512&t[2]&&(t[2]&=-513,Et(t[3],-1))}finally{Se()}}}function bb(e,t,i,s){const l=t[10],D=x(t);try{!D&&l.begin&&l.begin(),D&&pa(e,t,s),Es(e,t,i,s)}finally{!D&&l.end&&l.end()}}function Mh(e,t,i,s,l){const g=ht(),D=2&s;try{wt(-1),D&&t.length>22&&nh(e,t,22,!1),Wn(D?2:0,l),i(s,l)}finally{wt(g),Wn(D?3:1,l)}}function Sh(e,t,i){if(Ti(t)){const l=t.directiveEnd;for(let g=t.directiveStart;g<l;g++){const D=e.data[g];D.contentQueries&&D.contentQueries(1,i[g],g)}}}function nc(e,t,i){!$n()||(function Ib(e,t,i,s){const l=i.directiveStart,g=i.directiveEnd;e.firstCreatePass||is(i,t),di(s,t);const D=i.initialInputs;for(let w=l;w<g;w++){const I=e.data[w],L=Ln(I);L&&xb(t,i,I);const ee=rs(t,e,w,i);di(ee,t),null!==D&&Fb(0,w-l,ee,I,0,D),L&&(Qn(i.index,t)[8]=ee)}}(e,t,i,Tn(i,t)),128==(128&i.flags)&&function Ob(e,t,i){const s=i.directiveStart,l=i.directiveEnd,g=i.index,D=function Bs(){return gt.lFrame.currentDirectiveIndex}();try{wt(g);for(let w=s;w<l;w++){const I=e.data[w],L=t[w];qr(w),(null!==I.hostBindings||0!==I.hostVars||null!==I.hostAttrs)&&Fh(I,L)}}finally{wt(-1),qr(D)}}(e,t,i))}function ic(e,t,i=Tn){const s=t.localNames;if(null!==s){let l=t.index+1;for(let g=0;g<s.length;g+=2){const D=s[g+1],w=-1===D?i(t,e):e[D];e[l++]=w}}}function Ih(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=rc(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function rc(e,t,i,s,l,g,D,w,I,L){const ee=22+s,Re=ee+l,st=function Cb(e,t){const i=[];for(let s=0;s<t;s++)i.push(s<e?null:sn);return i}(ee,Re),pt="function"==typeof L?L():L;return st[1]={type:e,blueprint:st,template:i,queries:null,viewQuery:w,declTNode:t,data:st.slice().fill(null,ee),bindingStartIndex:ee,expandoStartIndex:Re,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 g?g():g,pipeRegistry:"function"==typeof D?D():D,firstChild:null,schemas:I,consts:pt,incompleteFirstPass:!1}}function Oh(e,t,i,s){const l=$h(t);null===i?l.push(s):(l.push(i),e.firstCreatePass&&Hh(e).push(s,l.length-1))}function Ah(e,t,i){for(let s in e)if(e.hasOwnProperty(s)){const l=e[s];(i=null===i?{}:i).hasOwnProperty(s)?i[s].push(t,l):i[s]=[t,l]}return i}function Ph(e,t){const s=t.directiveEnd,l=e.data,g=t.attrs,D=[];let w=null,I=null;for(let L=t.directiveStart;L<s;L++){const ee=l[L],Re=ee.inputs,st=null===g||Xf(t)?null:kb(Re,g);D.push(st),w=Ah(Re,L,w),I=Ah(ee.outputs,L,I)}null!==w&&(w.hasOwnProperty("class")&&(t.flags|=16),w.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=D,t.inputs=w,t.outputs=I}function Fi(e,t,i,s,l,g,D,w){const I=Tn(t,i);let ee,L=t.inputs;!w&&null!=L&&(ee=L[s])?(dc(e,i,ee,s,l),wi(t)&&Rh(i,t.index)):3&t.type&&(s=function Tb(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(s),l=null!=D?D(l,t.value||"",s):l,g.setProperty(I,s,l))}function Rh(e,t){const i=Qn(t,e);16&i[2]||(i[2]|=32)}function oc(e,t,i,s){let l=!1;if($n()){const g=function Ab(e,t,i){const s=e.directiveRegistry;let l=null;if(s)for(let g=0;g<s.length;g++){const D=s[g];qf(i,D.selectors,!1)&&(l||(l=[]),Us(is(i,t),e,D.type),Ln(D)?(kh(e,i),l.unshift(D)):l.push(D))}return l}(e,t,i),D=null===s?null:{"":-1};if(null!==g){l=!0,Nh(i,e.data.length,g.length);for(let ee=0;ee<g.length;ee++){const Re=g[ee];Re.providersResolver&&Re.providersResolver(Re)}let w=!1,I=!1,L=ko(e,t,g.length,null);for(let ee=0;ee<g.length;ee++){const Re=g[ee];i.mergedAttrs=An(i.mergedAttrs,Re.hostAttrs),Lh(e,i,t,L,Re),Rb(L,Re,D),null!==Re.contentQueries&&(i.flags|=8),(null!==Re.hostBindings||null!==Re.hostAttrs||0!==Re.hostVars)&&(i.flags|=128);const st=Re.type.prototype;!w&&(st.ngOnChanges||st.ngOnInit||st.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(i.index),w=!0),!I&&(st.ngOnChanges||st.ngDoCheck)&&((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(i.index),I=!0),L++}Ph(e,i)}D&&function Pb(e,t,i){if(t){const s=e.localNames=[];for(let l=0;l<t.length;l+=2){const g=i[t[l+1]];if(null==g)throw new M(-301,!1);s.push(t[l],g)}}}(i,s,D)}return i.mergedAttrs=An(i.mergedAttrs,i.attrs),l}function xh(e,t,i,s,l,g){const D=g.hostBindings;if(D){let w=e.hostBindingOpCodes;null===w&&(w=e.hostBindingOpCodes=[]);const I=~t.index;(function Sb(e){let t=e.length;for(;t>0;){const i=e[--t];if("number"==typeof i&&i<0)return i}return 0})(w)!=I&&w.push(I),w.push(s,l,D)}}function Fh(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function kh(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function Rb(e,t,i){if(i){if(t.exportAs)for(let s=0;s<t.exportAs.length;s++)i[t.exportAs[s]]=e;Ln(t)&&(i[""]=e)}}function Nh(e,t,i){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+i,e.providerIndexes=t}function Lh(e,t,i,s,l){e.data[s]=l;const g=l.factory||(l.factory=ni(l.type)),D=new si(g,Ln(l),xo);e.blueprint[s]=D,i[s]=D,xh(e,t,0,s,ko(e,i,l.hostVars,sn),l)}function xb(e,t,i){const s=Tn(t,e),l=Ih(i),g=e[10],D=ma(e,ha(e,l,null,i.onPush?32:16,s,t,g,g.createRenderer(s,i),null,null,null));e[t.index]=D}function Er(e,t,i,s,l,g){const D=Tn(e,t);sc(t[11],D,g,e.value,i,s,l)}function sc(e,t,i,s,l,g,D){if(null==g)e.removeAttribute(t,l,i);else{const w=null==D?P(g):D(g,s||"",l);e.setAttribute(t,l,w,i)}}function Fb(e,t,i,s,l,g){const D=g[t];if(null!==D){const w=s.setInput;for(let I=0;I<D.length;){const L=D[I++],ee=D[I++],Re=D[I++];null!==w?s.setInput(i,Re,L,ee):i[ee]=Re}}}function kb(e,t){let i=null,s=0;for(;s<t.length;){const l=t[s];if(0!==l)if(5!==l){if("number"==typeof l)break;e.hasOwnProperty(l)&&(null===i&&(i=[]),i.push(l,e[l],t[s+1])),s+=2}else s+=2;else s+=4}return i}function jh(e,t,i,s){return new Array(e,!0,!1,t,null,0,s,i,null,null)}function jb(e,t){const i=Qn(t,e);if(ne(i)){const s=i[1];48&i[2]?Es(s,i,s.template,i[8]):i[5]>0&&ac(i)}}function ac(e){for(let s=Al(e);null!==s;s=Pl(s))for(let l=10;l<s.length;l++){const g=s[l];if(ne(g))if(512&g[2]){const D=g[1];Es(D,g,D.template,g[8])}else g[5]>0&&ac(g)}const i=e[1].components;if(null!==i)for(let s=0;s<i.length;s++){const l=Qn(i[s],e);ne(l)&&l[5]>0&&ac(l)}}function Bb(e,t){const i=Qn(t,e),s=i[1];(function Vb(e,t){for(let i=t.length;i<e.blueprint.length;i++)t.push(e.blueprint[i])})(s,i),pa(s,i,i[8])}function ma(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function lc(e){for(;e;){e[2]|=32;const t=bs(e);if(Ni(e)&&!t)return e;e=t}return null}function Bh(e){for(let t=0;t<e.components.length;t++){const i=e.components[t],s=Sl(i);if(null!==s){const l=s[1];bb(l,s,l.template,i)}}}function cc(e,t,i){const s=t[10];s.begin&&s.begin();try{Es(e,t,e.template,i)}catch(l){throw zh(t,l),l}finally{s.end&&s.end()}}function uc(e,t,i){es(0),t(e,i)}const Hb=ec;function $h(e){return e[7]||(e[7]=[])}function Hh(e){return e.cleanup||(e.cleanup=[])}function Uh(e,t,i){return(null===e||Ln(e))&&(i=function vr(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(i[t.index])),i[11]}function zh(e,t){const i=e[9],s=i?i.get(ys,null):null;s&&s.handleError(t)}function dc(e,t,i,s,l){for(let g=0;g<i.length;){const D=i[g++],w=i[g++],I=t[D],L=e.data[D];null!==L.setInput?L.setInput(I,l,s,w):I[w]=l}}function Vr(e,t,i){const s=In(t,e);kf(e[11],s,i)}function ga(e,t,i){let s=i?e.styles:null,l=i?e.classes:null,g=0;if(null!==t)for(let D=0;D<t.length;D++){const w=t[D];"number"==typeof w?g=w:1==g?l=y(l,w):2==g&&(s=y(s,w+": "+t[++D]+";"))}i?e.styles=s:e.stylesWithoutHost=s,i?e.classes=l:e.classesWithoutHost=l}function va(e,t,i,s,l=!1){for(;null!==i;){const g=t[i.index];if(null!==g&&s.push(bn(g)),Nn(g))for(let w=10;w<g.length;w++){const I=g[w],L=I[1].firstChild;null!==L&&va(I[1],I,L,s)}const D=i.type;if(8&D)va(e,t,i.child,s);else if(32&D){const w=Ol(i,t);let I;for(;I=w();)s.push(I)}else if(16&D){const w=Gf(t,i);if(Array.isArray(w))s.push(...w);else{const I=bs(t[16]);va(I[1],I,w,s,!0)}}i=l?i.projectionNext:i.next}return s}class No{constructor(t,i){this._lView=t,this._cdRefInjectingView=i,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const t=this._lView,i=t[1];return va(i,t,i.firstChild,[])}get context(){return this._lView[8]}set context(t){this._lView[8]=t}get destroyed(){return 128==(128&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[3];if(Nn(t)){const i=t[8],s=i?i.indexOf(this):-1;s>-1&&(Fl(t,s),Gs(i,s))}this._attachedToViewContainer=!1}Lf(this._lView[1],this._lView)}onDestroy(t){Oh(this._lView[1],this._lView,null,t)}markForCheck(){lc(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){cc(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new M(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function g_(e,t){Cs(e,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new M(902,!1);this._appRef=t}}class Ub extends No{constructor(t){super(t),this._view=t}detectChanges(){!function Vh(e){Bh(e[8])}(this._view)}checkNoChanges(){}get context(){return null}}class fc extends gs{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const i=X(t);return new Lo(i,this.ngModule)}}function Wh(e){const t=[];for(let i in e)e.hasOwnProperty(i)&&t.push({propName:e[i],templateName:i});return t}class Wb{constructor(t,i){this.injector=t,this.parentInjector=i}get(t,i,s){const l=this.injector.get(t,oa,s);return l!==oa||i===oa?l:this.parentInjector.get(t,i,s)}}class Lo extends ra{constructor(t,i){super(),this.componentDef=t,this.ngModule=i,this.componentType=t.type,this.selector=function N_(e){return e.map(k_).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!i}get inputs(){return Wh(this.componentDef.inputs)}get outputs(){return Wh(this.componentDef.outputs)}create(t,i,s,l){let g=(l=l||this.ngModule)instanceof so?l:null==l?void 0:l.injector;g&&null!==this.componentDef.getStandaloneInjector&&(g=this.componentDef.getStandaloneInjector(g)||g);const D=g?new Wb(t,g):t,w=D.get(df,null);if(null===w)throw new M(407,!1);const I=D.get(ff,null),L=w.createRenderer(null,this.componentDef),ee=this.componentDef.selectors[0][0]||"div",Re=s?function Db(e,t,i){return e.selectRootElement(t,i===xe.ShadowDom)}(L,s,this.componentDef.encapsulation):xl(w.createRenderer(null,this.componentDef),ee,function zb(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(ee)),st=this.componentDef.onPush?288:272,pt=function Qb(e,t){return{components:[],scheduler:e||a_,clean:Hb,playerHandler:t||null,flags:0}}(),Mt=rc(0,null,null,1,0,null,null,null,null,null),Rt=ha(null,Mt,pt,st,null,null,w,L,I,D,null);let kt,Vt;Q(Rt);try{const qt=function Kb(e,t,i,s,l,g){const D=i[1];i[22]=e;const I=Fo(D,22,2,"#host",null),L=I.mergedAttrs=t.hostAttrs;null!==L&&(ga(I,L,!0),null!==e&&(Gt(l,e,L),null!==I.classes&&Bl(l,e,I.classes),null!==I.styles&&Qf(l,e,I.styles)));const ee=s.createRenderer(e,t),Re=ha(i,Ih(t),null,t.onPush?32:16,i[22],I,s,ee,g||null,null,null);return D.firstCreatePass&&(Us(is(I,i),D,t.type),kh(D,I),Nh(I,i.length,1)),ma(i,Re),i[22]=Re}(Re,this.componentDef,Rt,w,L);if(Re)if(s)Gt(L,Re,["ng-version",pf.full]);else{const{attrs:Ot,classes:Qt}=function L_(e){const t=[],i=[];let s=1,l=2;for(;s<e.length;){let g=e[s];if("string"==typeof g)2===l?""!==g&&t.push(g,e[++s]):8===l&&i.push(g);else{if(!rr(l))break;l=g}s++}return{attrs:t,classes:i}}(this.componentDef.selectors[0]);Ot&&Gt(L,Re,Ot),Qt&&Qt.length>0&&Bl(L,Re,Qt.join(" "))}if(Vt=er(Mt,22),void 0!==i){const Ot=Vt.projection=[];for(let Qt=0;Qt<this.ngContentSelectors.length;Qt++){const mn=i[Qt];Ot.push(null!=mn?Array.from(mn):null)}}kt=function Yb(e,t,i,s,l){const g=i[1],D=function Mb(e,t,i){const s=xn();e.firstCreatePass&&(i.providersResolver&&i.providersResolver(i),Lh(e,s,t,ko(e,t,1,null),i),Ph(e,s));const l=rs(t,e,s.directiveStart,s);di(l,t);const g=Tn(s,t);return g&&di(g,t),l}(g,i,t);if(s.components.push(D),e[8]=D,null!==l)for(const I of l)I(D,t);if(t.contentQueries){const I=xn();t.contentQueries(1,D,I.directiveStart)}const w=xn();return!g.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(wt(w.index),xh(i[1],w,0,w.directiveStart,w.directiveEnd,t),Fh(t,D)),D}(qt,this.componentDef,Rt,pt,[Kh]),pa(Mt,Rt,null)}finally{Se()}return new Gh(this.componentType,kt,Oo(Vt,Rt),Rt,Vt)}}class Gh extends cf{constructor(t,i,s,l,g){super(),this.location=s,this._rootLView=l,this._tNode=g,this.instance=i,this.hostView=this.changeDetectorRef=new Ub(l),this.componentType=t}setInput(t,i){const s=this._tNode.inputs;let l;if(null!==s&&(l=s[t])){const g=this._rootLView;dc(g[1],g,l,t,i),Rh(g,this._tNode.index)}}get injector(){return new vo(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function Kh(){const e=xn();wn(St()[1],e)}function Zb(e){return xf(e).clean}function Yh(e){return Object.getPrototypeOf(e.prototype).constructor}function hc(e){let t=Yh(e.type),i=!0;const s=[e];for(;t;){let l;if(Ln(e))l=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new M(903,!1);l=t.\u0275dir}if(l){if(i){s.push(l);const D=e;D.inputs=pc(e.inputs),D.declaredInputs=pc(e.declaredInputs),D.outputs=pc(e.outputs);const w=l.hostBindings;w&&e0(e,w);const I=l.viewQuery,L=l.contentQueries;if(I&&Xb(e,I),L&&qb(e,L),d(e.inputs,l.inputs),d(e.declaredInputs,l.declaredInputs),d(e.outputs,l.outputs),Ln(l)&&l.data.animation){const ee=e.data;ee.animation=(ee.animation||[]).concat(l.data.animation)}}const g=l.features;if(g)for(let D=0;D<g.length;D++){const w=g[D];w&&w.ngInherit&&w(e),w===hc&&(i=!1)}}t=Object.getPrototypeOf(t)}!function Jb(e){let t=0,i=null;for(let s=e.length-1;s>=0;s--){const l=e[s];l.hostVars=t+=l.hostVars,l.hostAttrs=An(l.hostAttrs,i=An(i,l.hostAttrs))}}(s)}function pc(e){return e===Ne?{}:e===tt?[]:e}function Xb(e,t){const i=e.viewQuery;e.viewQuery=i?(s,l)=>{t(s,l),i(s,l)}:t}function qb(e,t){const i=e.contentQueries;e.contentQueries=i?(s,l,g)=>{t(s,l,g),i(s,l,g)}:t}function e0(e,t){const i=e.hostBindings;e.hostBindings=i?(s,l)=>{t(s,l),i(s,l)}:t}const t0=["providersResolver"],n0=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function Qh(e){let i,t=Yh(e.type);i=Ln(e)?t.\u0275cmp:t.\u0275dir;const s=e;for(const l of t0)s[l]=i[l];if(Ln(i))for(const l of n0)s[l]=i[l]}let ya=null;function lo(){if(!ya){const e=W.Symbol;if(e&&e.iterator)ya=e.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let i=0;i<t.length;++i){const s=t[i];"entries"!==s&&"size"!==s&&Map.prototype[s]===Map.prototype.entries&&(ya=s)}}}return ya}function Ts(e){return!!mc(e)&&(Array.isArray(e)||!(e instanceof Map)&&lo()in e)}function mc(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Zh(e,t){const i=Ts(e),s=Ts(t);return i&&s?function r0(e,t,i){const s=e[lo()](),l=t[lo()]();for(;;){const g=s.next(),D=l.next();if(g.done&&D.done)return!0;if(g.done||D.done||!i(g.value,D.value))return!1}}(e,t,Zh):!(i||!e||"object"!=typeof e&&"function"!=typeof e||s||!t||"object"!=typeof t&&"function"!=typeof t)||Object.is(e,t)}function Tr(e,t,i){return e[t]=i}function ws(e,t){return e[t]}function fi(e,t,i){return!Object.is(e[t],i)&&(e[t]=i,!0)}function co(e,t,i,s){const l=fi(e,t,i);return fi(e,t+1,s)||l}function _a(e,t,i,s,l){const g=co(e,t,i,s);return fi(e,t+2,l)||g}function Ui(e,t,i,s,l,g){const D=co(e,t,i,s);return co(e,t+2,l,g)||D}function gc(e,t,i,s){const l=St();return fi(l,Ur(),t)&&(on(),Er(Pt(),l,e,t,i,s)),gc}function jo(e,t){let i=!1,s=li();for(let g=1;g<t.length;g+=2)i=fi(e,s++,t[g])||i;if(Rr(s),!i)return sn;let l=t[0];for(let g=1;g<t.length;g+=2)l+=P(t[g])+t[g+1];return l}function Bo(e,t,i,s){return fi(e,Ur(),i)?t+P(i)+s:sn}function Vo(e,t,i,s,l,g){const w=co(e,li(),i,l);return nr(2),w?t+P(i)+s+P(l)+g:sn}function $o(e,t,i,s,l,g,D,w){const L=_a(e,li(),i,l,D);return nr(3),L?t+P(i)+s+P(l)+g+P(D)+w:sn}function Ho(e,t,i,s,l,g,D,w,I,L){const Re=Ui(e,li(),i,l,D,I);return nr(4),Re?t+P(i)+s+P(l)+g+P(D)+w+P(I)+L:sn}function Uo(e,t,i,s,l,g,D,w,I,L,ee,Re){const st=li();let pt=Ui(e,st,i,l,D,I);return pt=fi(e,st+4,ee)||pt,nr(5),pt?t+P(i)+s+P(l)+g+P(D)+w+P(I)+L+P(ee)+Re:sn}function zo(e,t,i,s,l,g,D,w,I,L,ee,Re,st,pt){const Mt=li();let Rt=Ui(e,Mt,i,l,D,I);return Rt=co(e,Mt+4,ee,st)||Rt,nr(6),Rt?t+P(i)+s+P(l)+g+P(D)+w+P(I)+L+P(ee)+Re+P(st)+pt:sn}function Wo(e,t,i,s,l,g,D,w,I,L,ee,Re,st,pt,Mt,Rt){const kt=li();let Vt=Ui(e,kt,i,l,D,I);return Vt=_a(e,kt+4,ee,st,Mt)||Vt,nr(7),Vt?t+P(i)+s+P(l)+g+P(D)+w+P(I)+L+P(ee)+Re+P(st)+pt+P(Mt)+Rt:sn}function Go(e,t,i,s,l,g,D,w,I,L,ee,Re,st,pt,Mt,Rt,kt,Vt){const qt=li();let Ot=Ui(e,qt,i,l,D,I);return Ot=Ui(e,qt+4,ee,st,Mt,kt)||Ot,nr(8),Ot?t+P(i)+s+P(l)+g+P(D)+w+P(I)+L+P(ee)+Re+P(st)+pt+P(Mt)+Rt+P(kt)+Vt:sn}function vc(e,t,i,s,l,g){const D=St(),w=Bo(D,t,i,s);return w!==sn&&Er(Pt(),D,e,w,l,g),vc}function yc(e,t,i,s,l,g,D,w){const I=St(),L=Vo(I,t,i,s,l,g);return L!==sn&&Er(Pt(),I,e,L,D,w),yc}function _c(e,t,i,s,l,g,D,w,I,L){const ee=St(),Re=$o(ee,t,i,s,l,g,D,w);return Re!==sn&&Er(Pt(),ee,e,Re,I,L),_c}function bc(e,t,i,s,l,g,D,w,I,L,ee,Re){const st=St(),pt=Ho(st,t,i,s,l,g,D,w,I,L);return pt!==sn&&Er(Pt(),st,e,pt,ee,Re),bc}function Cc(e,t,i,s,l,g,D,w,I,L,ee,Re,st,pt){const Mt=St(),Rt=Uo(Mt,t,i,s,l,g,D,w,I,L,ee,Re);return Rt!==sn&&Er(Pt(),Mt,e,Rt,st,pt),Cc}function Dc(e,t,i,s,l,g,D,w,I,L,ee,Re,st,pt,Mt,Rt){const kt=St(),Vt=zo(kt,t,i,s,l,g,D,w,I,L,ee,Re,st,pt);return Vt!==sn&&Er(Pt(),kt,e,Vt,Mt,Rt),Dc}function Ec(e,t,i,s,l,g,D,w,I,L,ee,Re,st,pt,Mt,Rt,kt,Vt){const qt=St(),Ot=Wo(qt,t,i,s,l,g,D,w,I,L,ee,Re,st,pt,Mt,Rt);return Ot!==sn&&Er(Pt(),qt,e,Ot,kt,Vt),Ec}function Tc(e,t,i,s,l,g,D,w,I,L,ee,Re,st,pt,Mt,Rt,kt,Vt,qt,Ot){const Qt=St(),mn=Go(Qt,t,i,s,l,g,D,w,I,L,ee,Re,st,pt,Mt,Rt,kt,Vt);return mn!==sn&&Er(Pt(),Qt,e,mn,qt,Ot),Tc}function wc(e,t,i,s){const l=St(),g=jo(l,t);return g!==sn&&Er(Pt(),l,e,g,i,s),wc}function Jh(e){const t=Tf(e);cc(t[1],t,e)}function Xh(e){!function $b(e,t){if(0===e.flags&&e.clean==ec){let s;e.flags|=t,e.clean=new Promise(l=>s=l),e.scheduler(()=>{if(1&e.flags&&(e.flags&=-2,Bh(e)),2&e.flags){e.flags&=-3;const l=e.playerHandler;l&&l.flushPlayers()}e.clean=ec,s(null)})}}(lc(Tf(e))[8],1)}function qh(e,t,i,s,l,g,D,w){const I=St(),L=on(),ee=e+22,Re=L.firstCreatePass?function s0(e,t,i,s,l,g,D,w,I){const L=t.consts,ee=Fo(t,e,4,D||null,fe(L,w));oc(t,i,ee,fe(L,I)),wn(t,ee);const Re=ee.tViews=rc(2,ee,s,l,g,t.directiveRegistry,t.pipeRegistry,null,t.schemas,L);return null!==t.queries&&(t.queries.template(t,ee),Re.queries=t.queries.embeddedTView(ee)),ee}(ee,L,I,t,i,s,l,g,D):L.data[ee];F(Re,!1);const st=I[11].createComment("");aa(L,I,st,Re),di(st,I),ma(I,I[ee]=jh(st,I,st,Re)),bi(Re)&&nc(L,I,Re),null!=D&&ic(I,Re,w)}function ep(e,t,i,s){i>=e.data.length&&(e.data[i]=null,e.blueprint[i]=null),t[i]=s}function tp(e){return gi(function Ct(){return gt.lFrame.contextLView}(),22+e)}function Mc(e,t,i){const s=St();return fi(s,Ur(),t)&&Fi(on(),Pt(),s,e,t,s[11],i,!1),Mc}function Sc(e,t,i,s,l){const D=l?"class":"style";dc(e,i,t.inputs[D],D,s)}function ba(e,t,i,s){const l=St(),g=on(),D=22+e,w=l[11],I=l[D]=xl(w,t,function tn(){return gt.lFrame.currentNamespace}()),L=g.firstCreatePass?function a0(e,t,i,s,l,g,D){const w=t.consts,L=Fo(t,e,2,l,fe(w,g));return oc(t,i,L,fe(w,D)),null!==L.attrs&&ga(L,L.attrs,!1),null!==L.mergedAttrs&&ga(L,L.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,L),L}(D,g,l,0,t,i,s):g.data[D];F(L,!0);const ee=L.mergedAttrs;null!==ee&&Gt(w,I,ee);const Re=L.classes;null!==Re&&Bl(w,I,Re);const st=L.styles;return null!==st&&Qf(w,I,st),64!=(64&L.flags)&&aa(g,l,I,L),0===function Cn(){return gt.lFrame.elementDepthCount}()&&di(I,l),function Sn(){gt.lFrame.elementDepthCount++}(),bi(L)&&(nc(g,l,L),Sh(g,L,l)),null!==s&&ic(l,L),ba}function Ca(){let e=xn();A()?S():(e=e.parent,F(e,!1));const t=e;!function fn(){gt.lFrame.elementDepthCount--}();const i=on();return i.firstCreatePass&&(wn(i,e),Ti(e)&&i.queries.elementEnd(e)),null!=t.classesWithoutHost&&function to(e){return 0!=(16&e.flags)}(t)&&Sc(i,t,St(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function zr(e){return 0!=(32&e.flags)}(t)&&Sc(i,t,St(),t.stylesWithoutHost,!1),Ca}function Ic(e,t,i,s){return ba(e,t,i,s),Ca(),Ic}function Da(e,t,i){const s=St(),l=on(),g=e+22,D=l.firstCreatePass?function l0(e,t,i,s,l){const g=t.consts,D=fe(g,s),w=Fo(t,e,8,"ng-container",D);return null!==D&&ga(w,D,!0),oc(t,i,w,fe(g,l)),null!==t.queries&&t.queries.elementStart(t,w),w}(g,l,s,t,i):l.data[g];F(D,!0);const w=s[g]=s[11].createComment("");return aa(l,s,w,D),di(w,s),bi(D)&&(nc(l,s,D),Sh(l,D,s)),null!=i&&ic(s,D),Da}function Ea(){let e=xn();const t=on();return A()?S():(e=e.parent,F(e,!1)),t.firstCreatePass&&(wn(t,e),Ti(e)&&t.queries.elementEnd(e)),Ea}function Oc(e,t,i){return Da(e,t,i),Ea(),Oc}function np(){return St()}function Ac(e){return!!e&&"function"==typeof e.then}function ip(e){return!!e&&"function"==typeof e.subscribe}const rp=ip;function Pc(e,t,i,s){const l=St(),g=on(),D=xn();return op(g,l,l[11],D,e,t,0,s),Pc}function Rc(e,t){const i=xn(),s=St(),l=on();return op(l,s,Uh(eo(l.data),i,s),i,e,t),Rc}function op(e,t,i,s,l,g,D,w){const I=bi(s),ee=e.firstCreatePass&&Hh(e),Re=t[8],st=$h(t);let pt=!0;if(3&s.type||w){const kt=Tn(s,t),Vt=w?w(kt):kt,qt=st.length,Ot=w?mn=>w(bn(mn[s.index])):s.index;let Qt=null;if(!w&&I&&(Qt=function c0(e,t,i,s){const l=e.cleanup;if(null!=l)for(let g=0;g<l.length-1;g+=2){const D=l[g];if(D===i&&l[g+1]===s){const w=t[7],I=l[g+2];return w.length>I?w[I]:null}"string"==typeof D&&(g+=2)}return null}(e,t,l,s.index)),null!==Qt)(Qt.__ngLastListenerFn__||Qt).__ngNextListenerFn__=g,Qt.__ngLastListenerFn__=g,pt=!1;else{g=ap(s,t,Re,g,!1);const mn=i.listen(Vt,l,g);st.push(g,mn),ee&&ee.push(l,Ot,qt,qt+1)}}else g=ap(s,t,Re,g,!1);const Mt=s.outputs;let Rt;if(pt&&null!==Mt&&(Rt=Mt[l])){const kt=Rt.length;if(kt)for(let Vt=0;Vt<kt;Vt+=2){const Vn=t[Rt[Vt]][Rt[Vt+1]].subscribe(g),mo=st.length;st.push(g,Vn),ee&&ee.push(l,s.index,mo,-(mo+1))}}}function sp(e,t,i,s){try{return Wn(6,t,i),!1!==i(s)}catch(l){return zh(e,l),!1}finally{Wn(7,t,i)}}function ap(e,t,i,s,l){return function g(D){if(D===Function)return s;lc(2&e.flags?Qn(e.index,t):t);let I=sp(t,i,s,D),L=g.__ngNextListenerFn__;for(;L;)I=sp(t,i,L,D)&&I,L=L.__ngNextListenerFn__;return l&&!1===I&&(D.preventDefault(),D.returnValue=!1),I}}function lp(e=1){return function nt(e){return(gt.lFrame.contextLView=function ot(e,t){for(;e>0;)t=t[15],e--;return t}(e,gt.lFrame.contextLView))[8]}(e)}function u0(e,t){let i=null;const s=function P_(e){const t=e.attrs;if(null!=t){const i=t.indexOf(5);if(0==(1&i))return t[i+1]}return null}(e);for(let l=0;l<t.length;l++){const g=t[l];if("*"!==g){if(null===s?qf(e,g,!0):F_(s,g))return l}else i=l}return i}function cp(e){const t=St()[16][6];if(!t.projection){const s=t.projection=as(e?e.length:1,null),l=s.slice();let g=t.child;for(;null!==g;){const D=e?u0(g,e):0;null!==D&&(l[D]?l[D].projectionNext=g:s[D]=g,l[D]=g),g=g.next}}}function up(e,t=0,i){const s=St(),l=on(),g=Fo(l,22+e,16,null,i||null);null===g.projection&&(g.projection=t),S(),64!=(64&g.flags)&&function T_(e,t,i){Yf(t[11],0,t,i,jf(e,i,t),Hf(i.parent||t[6],i,t))}(l,s,g)}function xc(e,t,i){return Ta(e,"",t,"",i),xc}function Ta(e,t,i,s,l){const g=St(),D=Bo(g,t,i,s);return D!==sn&&Fi(on(),Pt(),g,e,D,g[11],l,!1),Ta}function Fc(e,t,i,s,l,g,D){const w=St(),I=Vo(w,t,i,s,l,g);return I!==sn&&Fi(on(),Pt(),w,e,I,w[11],D,!1),Fc}function kc(e,t,i,s,l,g,D,w,I){const L=St(),ee=$o(L,t,i,s,l,g,D,w);return ee!==sn&&Fi(on(),Pt(),L,e,ee,L[11],I,!1),kc}function Nc(e,t,i,s,l,g,D,w,I,L,ee){const Re=St(),st=Ho(Re,t,i,s,l,g,D,w,I,L);return st!==sn&&Fi(on(),Pt(),Re,e,st,Re[11],ee,!1),Nc}function Lc(e,t,i,s,l,g,D,w,I,L,ee,Re,st){const pt=St(),Mt=Uo(pt,t,i,s,l,g,D,w,I,L,ee,Re);return Mt!==sn&&Fi(on(),Pt(),pt,e,Mt,pt[11],st,!1),Lc}function jc(e,t,i,s,l,g,D,w,I,L,ee,Re,st,pt,Mt){const Rt=St(),kt=zo(Rt,t,i,s,l,g,D,w,I,L,ee,Re,st,pt);return kt!==sn&&Fi(on(),Pt(),Rt,e,kt,Rt[11],Mt,!1),jc}function Bc(e,t,i,s,l,g,D,w,I,L,ee,Re,st,pt,Mt,Rt,kt){const Vt=St(),qt=Wo(Vt,t,i,s,l,g,D,w,I,L,ee,Re,st,pt,Mt,Rt);return qt!==sn&&Fi(on(),Pt(),Vt,e,qt,Vt[11],kt,!1),Bc}function Vc(e,t,i,s,l,g,D,w,I,L,ee,Re,st,pt,Mt,Rt,kt,Vt,qt){const Ot=St(),Qt=Go(Ot,t,i,s,l,g,D,w,I,L,ee,Re,st,pt,Mt,Rt,kt,Vt);return Qt!==sn&&Fi(on(),Pt(),Ot,e,Qt,Ot[11],qt,!1),Vc}function $c(e,t,i){const s=St(),l=jo(s,t);return l!==sn&&Fi(on(),Pt(),s,e,l,s[11],i,!1),$c}function dp(e,t,i,s,l){const g=e[i+1],D=null===t;let w=s?or(g):Br(g),I=!1;for(;0!==w&&(!1===I||D);){const ee=e[w+1];h0(e[w],t)&&(I=!0,e[w+1]=s?Gl(ee):zl(ee)),w=s?or(ee):Br(ee)}I&&(e[i+1]=s?zl(g):Gl(g))}function h0(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Eo(e,t)>=0}const oi={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function fp(e){return e.substring(oi.key,oi.keyEnd)}function p0(e){return e.substring(oi.value,oi.valueEnd)}function hp(e,t){const i=oi.textEnd;return i===t?-1:(t=oi.keyEnd=function v0(e,t,i){for(;t<i&&e.charCodeAt(t)>32;)t++;return t}(e,oi.key=t,i),Ko(e,t,i))}function pp(e,t){const i=oi.textEnd;let s=oi.key=Ko(e,t,i);return i===s?-1:(s=oi.keyEnd=function y0(e,t,i){let s;for(;t<i&&(45===(s=e.charCodeAt(t))||95===s||(-33&s)>=65&&(-33&s)<=90||s>=48&&s<=57);)t++;return t}(e,s,i),s=gp(e,s,i),s=oi.value=Ko(e,s,i),s=oi.valueEnd=function _0(e,t,i){let s=-1,l=-1,g=-1,D=t,w=D;for(;D<i;){const I=e.charCodeAt(D++);if(59===I)return w;34===I||39===I?w=D=vp(e,I,D,i):t===D-4&&85===g&&82===l&&76===s&&40===I?w=D=vp(e,41,D,i):I>32&&(w=D),g=l,l=s,s=-33&I}return w}(e,s,i),gp(e,s,i))}function mp(e){oi.key=0,oi.keyEnd=0,oi.value=0,oi.valueEnd=0,oi.textEnd=e.length}function Ko(e,t,i){for(;t<i&&e.charCodeAt(t)<=32;)t++;return t}function gp(e,t,i,s){return(t=Ko(e,t,i))<i&&t++,t}function vp(e,t,i,s){let l=-1,g=i;for(;g<s;){const D=e.charCodeAt(g++);if(D==t&&92!==l)return g;l=92==D&&92===l?0:D}throw new Error}function Hc(e,t,i){return ar(e,t,i,!1),Hc}function Uc(e,t){return ar(e,t,null,!0),Uc}function sr(e){lr(Cp,b0,e,!1)}function b0(e,t){for(let i=function g0(e){return mp(e),pp(e,Ko(e,0,oi.textEnd))}(t);i>=0;i=pp(t,i))Cp(e,fp(t),p0(t))}function yp(e){lr(xi,wr,e,!0)}function wr(e,t){for(let i=function m0(e){return mp(e),hp(e,Ko(e,0,oi.textEnd))}(t);i>=0;i=hp(t,i))xi(e,fp(t),!0)}function ar(e,t,i,s){const l=St(),g=on(),D=nr(2);g.firstUpdatePass&&bp(g,e,D,s),t!==sn&&fi(l,D,t)&&Dp(g,g.data[ht()],l,l[11],e,l[D+1]=function S0(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=p(Nr(e)))),e}(t,i),s,D)}function lr(e,t,i,s){const l=on(),g=nr(2);l.firstUpdatePass&&bp(l,null,g,s);const D=St();if(i!==sn&&fi(D,g,i)){const w=l.data[ht()];if(Tp(w,s)&&!_p(l,g)){let I=s?w.classesWithoutHost:w.stylesWithoutHost;null!==I&&(i=y(I,i||"")),Sc(l,w,D,i,s)}else!function M0(e,t,i,s,l,g,D,w){l===sn&&(l=tt);let I=0,L=0,ee=0<l.length?l[0]:null,Re=0<g.length?g[0]:null;for(;null!==ee||null!==Re;){const st=I<l.length?l[I+1]:void 0,pt=L<g.length?g[L+1]:void 0;let Rt,Mt=null;ee===Re?(I+=2,L+=2,st!==pt&&(Mt=Re,Rt=pt)):null===Re||null!==ee&&ee<Re?(I+=2,Mt=ee):(L+=2,Mt=Re,Rt=pt),null!==Mt&&Dp(e,t,i,s,Mt,Rt,D,w),ee=I<l.length?l[I]:null,Re=L<g.length?g[L]:null}}(l,w,D,D[11],D[g+1],D[g+1]=function w0(e,t,i){if(null==i||""===i)return tt;const s=[],l=Nr(i);if(Array.isArray(l))for(let g=0;g<l.length;g++)e(s,l[g],!0);else if("object"==typeof l)for(const g in l)l.hasOwnProperty(g)&&e(s,g,l[g]);else"string"==typeof l&&t(s,l);return s}(e,t,i),s,g)}}function _p(e,t){return t>=e.expandoStartIndex}function bp(e,t,i,s){const l=e.data;if(null===l[i+1]){const g=l[ht()],D=_p(e,i);Tp(g,s)&&null===t&&!D&&(t=!1),t=function C0(e,t,i,s){const l=eo(e);let g=s?t.residualClasses:t.residualStyles;if(null===l)0===(s?t.classBindings:t.styleBindings)&&(i=Ms(i=zc(null,e,t,i,s),t.attrs,s),g=null);else{const D=t.directiveStylingLast;if(-1===D||e[D]!==l)if(i=zc(l,e,t,i,s),null===g){let I=function D0(e,t,i){const s=i?t.classBindings:t.styleBindings;if(0!==Br(s))return e[or(s)]}(e,t,s);void 0!==I&&Array.isArray(I)&&(I=zc(null,e,t,I[1],s),I=Ms(I,t.attrs,s),function E0(e,t,i,s){e[or(i?t.classBindings:t.styleBindings)]=s}(e,t,s,I))}else g=function T0(e,t,i){let s;const l=t.directiveEnd;for(let g=1+t.directiveStylingLast;g<l;g++)s=Ms(s,e[g].hostAttrs,i);return Ms(s,t.attrs,i)}(e,t,s)}return void 0!==g&&(s?t.residualClasses=g:t.residualStyles=g),i}(l,g,t,s),function d0(e,t,i,s,l,g){let D=g?t.classBindings:t.styleBindings,w=or(D),I=Br(D);e[s]=i;let ee,L=!1;if(Array.isArray(i)){const Re=i;ee=Re[1],(null===ee||Eo(Re,ee)>0)&&(L=!0)}else ee=i;if(l)if(0!==I){const st=or(e[w+1]);e[s+1]=ua(st,w),0!==st&&(e[st+1]=Wl(e[st+1],s)),e[w+1]=function ab(e,t){return 131071&e|t<<17}(e[w+1],s)}else e[s+1]=ua(w,0),0!==w&&(e[w+1]=Wl(e[w+1],s)),w=s;else e[s+1]=ua(I,0),0===w?w=s:e[I+1]=Wl(e[I+1],s),I=s;L&&(e[s+1]=zl(e[s+1])),dp(e,ee,s,!0),dp(e,ee,s,!1),function f0(e,t,i,s,l){const g=l?e.residualClasses:e.residualStyles;null!=g&&"string"==typeof t&&Eo(g,t)>=0&&(i[s+1]=Gl(i[s+1]))}(t,ee,e,s,g),D=ua(w,I),g?t.classBindings=D:t.styleBindings=D}(l,g,t,i,D,s)}}function zc(e,t,i,s,l){let g=null;const D=i.directiveEnd;let w=i.directiveStylingLast;for(-1===w?w=i.directiveStart:w++;w<D&&(g=t[w],s=Ms(s,g.hostAttrs,l),g!==e);)w++;return null!==e&&(i.directiveStylingLast=w),s}function Ms(e,t,i){const s=i?1:2;let l=-1;if(null!==t)for(let g=0;g<t.length;g++){const D=t[g];"number"==typeof D?l=D:l===s&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),xi(e,D,!!i||t[++g]))}return void 0===e?null:e}function Cp(e,t,i){xi(e,t,Nr(i))}function Dp(e,t,i,s,l,g,D,w){if(!(3&t.type))return;const I=e.data,L=I[w+1];wa(function vh(e){return 1==(1&e)}(L)?Ep(I,t,i,l,Br(L),D):void 0)||(wa(g)||function gh(e){return 2==(2&e)}(L)&&(g=Ep(I,null,i,l,w,D)),function M_(e,t,i,s,l){if(t)l?e.addClass(i,s):e.removeClass(i,s);else{let g=-1===s.indexOf("-")?void 0:Dr.DashCase;null==l?e.removeStyle(i,s,g):("string"==typeof l&&l.endsWith("!important")&&(l=l.slice(0,-10),g|=Dr.Important),e.setStyle(i,s,l,g))}}(s,D,In(ht(),i),l,g))}function Ep(e,t,i,s,l,g){const D=null===t;let w;for(;l>0;){const I=e[l],L=Array.isArray(I),ee=L?I[1]:I,Re=null===ee;let st=i[l+1];st===sn&&(st=Re?tt:void 0);let pt=Re?Za(st,s):ee===s?st:void 0;if(L&&!wa(pt)&&(pt=Za(I,s)),wa(pt)&&(w=pt,D))return w;const Mt=e[l+1];l=D?or(Mt):Br(Mt)}if(null!==t){let I=g?t.residualClasses:t.residualStyles;null!=I&&(w=Za(I,s))}return w}function wa(e){return void 0!==e}function Tp(e,t){return 0!=(e.flags&(t?16:32))}function wp(e,t=""){const i=St(),s=on(),l=e+22,g=s.firstCreatePass?Fo(s,l,1,t,null):s.data[l],D=i[l]=Rl(i[11],t);aa(s,i,D,g),F(g,!1)}function Wc(e){return Ma("",e,""),Wc}function Ma(e,t,i){const s=St(),l=Bo(s,e,t,i);return l!==sn&&Vr(s,ht(),l),Ma}function Gc(e,t,i,s,l){const g=St(),D=Vo(g,e,t,i,s,l);return D!==sn&&Vr(g,ht(),D),Gc}function Kc(e,t,i,s,l,g,D){const w=St(),I=$o(w,e,t,i,s,l,g,D);return I!==sn&&Vr(w,ht(),I),Kc}function Yc(e,t,i,s,l,g,D,w,I){const L=St(),ee=Ho(L,e,t,i,s,l,g,D,w,I);return ee!==sn&&Vr(L,ht(),ee),Yc}function Qc(e,t,i,s,l,g,D,w,I,L,ee){const Re=St(),st=Uo(Re,e,t,i,s,l,g,D,w,I,L,ee);return st!==sn&&Vr(Re,ht(),st),Qc}function Zc(e,t,i,s,l,g,D,w,I,L,ee,Re,st){const pt=St(),Mt=zo(pt,e,t,i,s,l,g,D,w,I,L,ee,Re,st);return Mt!==sn&&Vr(pt,ht(),Mt),Zc}function Jc(e,t,i,s,l,g,D,w,I,L,ee,Re,st,pt,Mt){const Rt=St(),kt=Wo(Rt,e,t,i,s,l,g,D,w,I,L,ee,Re,st,pt,Mt);return kt!==sn&&Vr(Rt,ht(),kt),Jc}function Xc(e,t,i,s,l,g,D,w,I,L,ee,Re,st,pt,Mt,Rt,kt){const Vt=St(),qt=Go(Vt,e,t,i,s,l,g,D,w,I,L,ee,Re,st,pt,Mt,Rt,kt);return qt!==sn&&Vr(Vt,ht(),qt),Xc}function qc(e){const t=St(),i=jo(t,e);return i!==sn&&Vr(t,ht(),i),qc}function Mp(e,t,i){lr(xi,wr,Bo(St(),e,t,i),!0)}function Sp(e,t,i,s,l){lr(xi,wr,Vo(St(),e,t,i,s,l),!0)}function Ip(e,t,i,s,l,g,D){lr(xi,wr,$o(St(),e,t,i,s,l,g,D),!0)}function Op(e,t,i,s,l,g,D,w,I){lr(xi,wr,Ho(St(),e,t,i,s,l,g,D,w,I),!0)}function Ap(e,t,i,s,l,g,D,w,I,L,ee){lr(xi,wr,Uo(St(),e,t,i,s,l,g,D,w,I,L,ee),!0)}function Pp(e,t,i,s,l,g,D,w,I,L,ee,Re,st){lr(xi,wr,zo(St(),e,t,i,s,l,g,D,w,I,L,ee,Re,st),!0)}function Rp(e,t,i,s,l,g,D,w,I,L,ee,Re,st,pt,Mt){lr(xi,wr,Wo(St(),e,t,i,s,l,g,D,w,I,L,ee,Re,st,pt,Mt),!0)}function xp(e,t,i,s,l,g,D,w,I,L,ee,Re,st,pt,Mt,Rt,kt){lr(xi,wr,Go(St(),e,t,i,s,l,g,D,w,I,L,ee,Re,st,pt,Mt,Rt,kt),!0)}function Fp(e){lr(xi,wr,jo(St(),e),!0)}function kp(e,t,i){sr(Bo(St(),e,t,i))}function Np(e,t,i,s,l){sr(Vo(St(),e,t,i,s,l))}function Lp(e,t,i,s,l,g,D){sr($o(St(),e,t,i,s,l,g,D))}function jp(e,t,i,s,l,g,D,w,I){sr(Ho(St(),e,t,i,s,l,g,D,w,I))}function Bp(e,t,i,s,l,g,D,w,I,L,ee){sr(Uo(St(),e,t,i,s,l,g,D,w,I,L,ee))}function Vp(e,t,i,s,l,g,D,w,I,L,ee,Re,st){sr(zo(St(),e,t,i,s,l,g,D,w,I,L,ee,Re,st))}function $p(e,t,i,s,l,g,D,w,I,L,ee,Re,st,pt,Mt){sr(Wo(St(),e,t,i,s,l,g,D,w,I,L,ee,Re,st,pt,Mt))}function Hp(e,t,i,s,l,g,D,w,I,L,ee,Re,st,pt,Mt,Rt,kt){sr(Go(St(),e,t,i,s,l,g,D,w,I,L,ee,Re,st,pt,Mt,Rt,kt))}function Up(e){sr(jo(St(),e))}function eu(e,t,i,s,l){return ar(e,Bo(St(),t,i,s),l,!1),eu}function tu(e,t,i,s,l,g,D){return ar(e,Vo(St(),t,i,s,l,g),D,!1),tu}function nu(e,t,i,s,l,g,D,w,I){return ar(e,$o(St(),t,i,s,l,g,D,w),I,!1),nu}function iu(e,t,i,s,l,g,D,w,I,L,ee){return ar(e,Ho(St(),t,i,s,l,g,D,w,I,L),ee,!1),iu}function ru(e,t,i,s,l,g,D,w,I,L,ee,Re,st){return ar(e,Uo(St(),t,i,s,l,g,D,w,I,L,ee,Re),st,!1),ru}function ou(e,t,i,s,l,g,D,w,I,L,ee,Re,st,pt,Mt){return ar(e,zo(St(),t,i,s,l,g,D,w,I,L,ee,Re,st,pt),Mt,!1),ou}function su(e,t,i,s,l,g,D,w,I,L,ee,Re,st,pt,Mt,Rt,kt){return ar(e,Wo(St(),t,i,s,l,g,D,w,I,L,ee,Re,st,pt,Mt,Rt),kt,!1),su}function au(e,t,i,s,l,g,D,w,I,L,ee,Re,st,pt,Mt,Rt,kt,Vt,qt){return ar(e,Go(St(),t,i,s,l,g,D,w,I,L,ee,Re,st,pt,Mt,Rt,kt,Vt),qt,!1),au}function lu(e,t,i){return ar(e,jo(St(),t),i,!1),lu}function cu(e,t,i){const s=St();return fi(s,Ur(),t)&&Fi(on(),Pt(),s,e,t,s[11],i,!0),cu}function uu(e,t,i){const s=St();if(fi(s,Ur(),t)){const g=on(),D=Pt();Fi(g,D,s,e,t,Uh(eo(g.data),D,s),i,!0)}return uu}const uo=void 0;var O0=["en",[["a","p"],["AM","PM"],uo],[["AM","PM"],uo,uo],[["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"]],uo,[["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"]],uo,[["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}",uo,"{1} 'at' {0}",uo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function I0(e){const i=Math.floor(Math.abs(e)),s=e.toString().replace(/^[^.]*\.?/,"").length;return 1===i&&0===s?1:5}];let Yo={};function A0(e,t,i){"string"!=typeof t&&(i=t,t=e[Jt.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),Yo[t]=e,i&&(Yo[t][Jt.ExtraData]=i)}function du(e){const t=function x0(e){return e.toLowerCase().replace(/_/g,"-")}(e);let i=Wp(t);if(i)return i;const s=t.split("-")[0];if(i=Wp(s),i)return i;if("en"===s)return O0;throw new M(701,!1)}function P0(e){return du(e)[Jt.CurrencyCode]||null}function zp(e){return du(e)[Jt.PluralCase]}function Wp(e){return e in Yo||(Yo[e]=W.ng&&W.ng.common&&W.ng.common.locales&&W.ng.common.locales[e]),Yo[e]}function R0(){Yo={}}var Jt=(()=>((Jt=Jt||{})[Jt.LocaleId=0]="LocaleId",Jt[Jt.DayPeriodsFormat=1]="DayPeriodsFormat",Jt[Jt.DayPeriodsStandalone=2]="DayPeriodsStandalone",Jt[Jt.DaysFormat=3]="DaysFormat",Jt[Jt.DaysStandalone=4]="DaysStandalone",Jt[Jt.MonthsFormat=5]="MonthsFormat",Jt[Jt.MonthsStandalone=6]="MonthsStandalone",Jt[Jt.Eras=7]="Eras",Jt[Jt.FirstDayOfWeek=8]="FirstDayOfWeek",Jt[Jt.WeekendRange=9]="WeekendRange",Jt[Jt.DateFormat=10]="DateFormat",Jt[Jt.TimeFormat=11]="TimeFormat",Jt[Jt.DateTimeFormat=12]="DateTimeFormat",Jt[Jt.NumberSymbols=13]="NumberSymbols",Jt[Jt.NumberFormats=14]="NumberFormats",Jt[Jt.CurrencyCode=15]="CurrencyCode",Jt[Jt.CurrencySymbol=16]="CurrencySymbol",Jt[Jt.CurrencyName=17]="CurrencyName",Jt[Jt.Currencies=18]="Currencies",Jt[Jt.Directionality=19]="Directionality",Jt[Jt.PluralCase=20]="PluralCase",Jt[Jt.ExtraData=21]="ExtraData",Jt))();const F0=["zero","one","two","few","many"],fo="en-US",Sa={marker:"element"},Ia={marker:"ICU"};var Yn=(()=>((Yn=Yn||{})[Yn.SHIFT=2]="SHIFT",Yn[Yn.APPEND_EAGERLY=1]="APPEND_EAGERLY",Yn[Yn.COMMENT=2]="COMMENT",Yn))();let Gp=fo;function fu(e){(function re(e,t){null==e&&B(t,e,null,"!=")})(e,"Expected localeId to be defined"),"string"==typeof e&&(Gp=e.toLowerCase().replace(/_/g,"-"))}function Kp(e,t,i){const s=t.insertBeforeIndex,l=Array.isArray(s)?s[0]:s;return null===l?Uf(e,0,i):bn(i[l])}function Yp(e,t,i,s,l){const g=t.insertBeforeIndex;if(Array.isArray(g)){let D=s,w=null;if(3&t.type||(w=D,D=l),null!==D&&0==(2&t.flags))for(let I=1;I<g.length;I++)ao(e,D,i[g[I]],w,!1)}}function Qp(e,t){if(e.push(t),e.length>1)for(let i=e.length-2;i>=0;i--){const s=e[i];Zp(s)||j0(s,t)&&null===B0(s)&&V0(s,t.index)}}function Zp(e){return!(64&e.type)}function j0(e,t){return Zp(t)||e.index>t.index}function B0(e){const t=e.insertBeforeIndex;return Array.isArray(t)?t[0]:t}function V0(e,t){const i=e.insertBeforeIndex;Array.isArray(i)?i[0]=t:(Wf(Kp,Yp),e.insertBeforeIndex=t)}function Ss(e,t){const i=e.data[t];return null===i||"string"==typeof i?null:i.hasOwnProperty("currentCaseLViewIndex")?i:i.value}function U0(e,t,i){const s=tc(e,i,64,null,null);return Qp(t,s),s}function Oa(e,t){const i=t[e.currentCaseLViewIndex];return null===i?i:i<0?~i:i}function Jp(e){return e>>>17}function Xp(e){return(131070&e)>>>1}let Is=0,Os=0;function em(e,t,i,s){const l=i[11];let D,g=null;for(let w=0;w<t.length;w++){const I=t[w];if("string"==typeof I){const L=t[++w];null===i[L]&&(i[L]=Rl(l,I))}else if("number"==typeof I)switch(1&I){case 0:const L=Jp(I);let ee,Re;if(null===g&&(g=L,D=sa(l,s)),L===g?(ee=s,Re=D):(ee=null,Re=bn(i[L])),null!==Re){const Rt=Xp(I);ao(l,Re,i[Rt],ee,!1);const Vt=Ss(e,Rt);if(null!==Vt&&"object"==typeof Vt){const qt=Oa(Vt,i);null!==qt&&em(e,Vt.create[qt],i,i[Vt.anchorIdx])}}break;case 1:const pt=t[++w],Mt=t[++w];sc(l,In(I>>>1,i),null,null,pt,Mt,null)}else switch(I){case Ia:const L=t[++w],ee=t[++w];null===i[ee]&&di(i[ee]=h_(l,L),i);break;case Sa:const Re=t[++w],st=t[++w];null===i[st]&&di(i[st]=xl(l,Re,null),i)}}}function tm(e,t,i,s,l){for(let g=0;g<i.length;g++){const D=i[g],w=i[++g];if(D&l){let I="";for(let L=g+1;L<=g+w;L++){const ee=i[L];if("string"==typeof ee)I+=ee;else if("number"==typeof ee)if(ee<0)I+=P(t[s-ee]);else{const Re=ee>>>2;switch(3&ee){case 1:const st=i[++L],pt=i[++L],Mt=e.data[Re];"string"==typeof Mt?sc(t[11],t[Re],null,Mt,st,I,pt):Fi(e,Mt,t,st,I,t[11],pt,!1);break;case 0:const Rt=t[Re];null!==Rt&&kf(t[11],Rt,I);break;case 2:Y0(e,Ss(e,Re),t,I);break;case 3:nm(e,Ss(e,Re),s,t)}}}}else{const I=i[g+1];if(I>0&&3==(3&I)){const ee=Ss(e,I>>>2);t[ee.currentCaseLViewIndex]<0&&nm(e,ee,s,t)}}g+=w}}function nm(e,t,i,s){let l=s[t.currentCaseLViewIndex];if(null!==l){let g=Is;l<0&&(l=s[t.currentCaseLViewIndex]=~l,g=-1),tm(e,s,t.update[l],i,g)}}function Y0(e,t,i,s){const l=function Q0(e,t){let i=e.cases.indexOf(t);if(-1===i)switch(e.type){case 1:{const s=function k0(e,t){const i=zp(t)(parseInt(e,10)),s=F0[i];return void 0!==s?s:"other"}(t,function L0(){return Gp}());i=e.cases.indexOf(s),-1===i&&"other"!==s&&(i=e.cases.indexOf("other"));break}case 0:i=e.cases.indexOf("other")}return-1===i?null:i}(t,s);if(Oa(t,i)!==l&&(im(e,t,i),i[t.currentCaseLViewIndex]=null===l?null:~l,null!==l)){const D=i[t.anchorIdx];D&&em(e,t.create[l],i,D)}}function im(e,t,i){let s=Oa(t,i);if(null!==s){const l=t.remove[s];for(let g=0;g<l.length;g++){const D=l[g];if(D>0){const w=In(D,i);null!==w&&Kf(i[11],w)}else im(e,Ss(e,~D),i)}}}function Z0(){const e=[];let i,s,t=-1;function g(w,I){t=0;const L=Oa(w,I);s=null!==L?w.remove[L]:tt}function D(){if(t<s.length){const w=s[t++];return w>0?i[w]:(e.push(t,s),g(i[1].data[~w],i),D())}return 0===e.length?null:(s=e.pop(),t=e.pop(),D())}return function l(w,I){for(i=I;e.length;)e.pop();return g(w.value,I),D}}const Aa=/\ufffd(\d+):?\d*\ufffd/gi,J0=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,X0=/\ufffd(\d+)\ufffd/,om=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,q0=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,eC=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,tC=/\uE500/g;function sm(e,t,i,s,l,g,D){const w=ko(e,s,1,null);let I=w<<Yn.SHIFT,L=Hi();t===L&&(L=null),null===L&&(I|=Yn.APPEND_EAGERLY),D&&(I|=Yn.COMMENT,function u_(e){void 0===Il&&(Il=e())}(Z0)),l.push(I,null===g?"":g);const ee=tc(e,w,D?32:1,null===g?"":g,null);Qp(i,ee);const Re=ee.index;return F(ee,!1),null!==L&&t!==L&&function H0(e,t){let i=e.insertBeforeIndex;null===i?(Wf(Kp,Yp),i=e.insertBeforeIndex=[null,t]):(function it(e,t,i){e!=t&&B(i,e,t,"==")}(Array.isArray(i),!0,"Expecting array here"),i.push(t))}(L,Re),ee}function rC(e,t,i,s,l,g,D){const w=D.match(Aa),I=sm(e,t,i,g,s,w?null:D,!1);w&&Qo(l,D,I.index,null,0,null)}function Qo(e,t,i,s,l,g){const D=e.length,w=D+1;e.push(null,null);const I=D+2,L=t.split(Aa);let ee=0;for(let Re=0;Re<L.length;Re++){const st=L[Re];if(1&Re){const pt=l+parseInt(st,10);e.push(-1-pt),ee|=am(pt)}else""!==st&&e.push(st)}return e.push(i<<2|(s?1:0)),s&&e.push(s,g),e[D]=ee,e[w]=e.length-I,ee}function sC(e){let t=0;for(let i=0;i<e.length;i++){const s=e[i];"number"==typeof s&&s<0&&t++}return t}function am(e){return 1<<Math.min(e,31)}function lm(e){let t,g,i="",s=0,l=!1;for(;null!==(t=q0.exec(e));)l?t[0]===`\ufffd/*${g}\ufffd`&&(s=t.index,l=!1):(i+=e.substring(s,t.index+t[0].length),g=t[1],l=!0);return i+=e.slice(s),i}function cm(e,t,i,s,l,g){let D=0;const w={type:l.type,currentCaseLViewIndex:ko(e,t,1,null),anchorIdx:g,cases:[],create:[],remove:[],update:[]};(function fC(e,t,i){e.push(am(t.mainBinding),2,-1-t.mainBinding,i<<2|2)})(i,l,g),function $0(e,t,i){const s=e.data[t];null===s?e.data[t]=i:s.value=i}(e,g,w);const I=l.values;for(let L=0;L<I.length;L++){const ee=I[L],Re=[];for(let st=0;st<ee.length;st++){const pt=ee[st];if("string"!=typeof pt){const Mt=Re.push(pt)-1;ee[st]=`\x3c!--\ufffd${Mt}\ufffd--\x3e`}}D=uC(e,w,t,i,s,l.cases[L],ee.join(""),Re)|D}D&&function hC(e,t,i){e.push(t,1,i<<2|3)}(i,D,g)}function cC(e){const t=[],i=[];let s=1,l=0;const g=hu(e=e.replace(om,function(D,w,I){return s="select"===I?0:1,l=parseInt(w.slice(1),10),""}));for(let D=0;D<g.length;){let w=g[D++].trim();1===s&&(w=w.replace(/\s*(?:=)?(\w+)\s*/,"$1")),w.length&&t.push(w);const I=hu(g[D++]);t.length>i.length&&i.push(I)}return{type:s,mainBinding:l,cases:t,values:i}}function hu(e){if(!e)return[];let t=0;const i=[],s=[],l=/[{}]/g;let g;for(l.lastIndex=0;g=l.exec(e);){const w=g.index;if("}"==g[0]){if(i.pop(),0==i.length){const I=e.substring(t,w);om.test(I)?s.push(cC(I)):s.push(I),t=w+1}}else{if(0==i.length){const I=e.substring(t,w);s.push(I),t=w+1}i.push("{")}}const D=e.substring(t);return s.push(D),s}function uC(e,t,i,s,l,g,D,w){const I=[],L=[],ee=[];t.cases.push(g),t.create.push(I),t.remove.push(L),t.update.push(ee);const st=jd(xd()).getInertBodyElement(D),pt=ll(st)||st;return pt?um(e,t,i,s,I,L,ee,pt,l,w,0):0}function um(e,t,i,s,l,g,D,w,I,L,ee){let Re=0,st=w.firstChild;for(;st;){const pt=ko(e,i,1,null);switch(st.nodeType){case Node.ELEMENT_NODE:const Mt=st,Rt=Mt.tagName.toLowerCase();if(ol.hasOwnProperty(Rt)){pu(l,Sa,Rt,I,pt),e.data[pt]=Rt;const Ot=Mt.attributes;for(let Qt=0;Qt<Ot.length;Qt++){const mn=Ot.item(Qt),Vn=mn.name.toLowerCase();mn.value.match(Aa)?Ud.hasOwnProperty(Vn)&&Qo(D,mn.value,pt,mn.name,0,sl[Vn]?hs:al[Vn]?Bd:null):pC(l,pt,mn)}Re=um(e,t,i,s,l,g,D,st,pt,L,ee+1)|Re,dm(g,pt,ee)}break;case Node.TEXT_NODE:const kt=st.textContent||"",Vt=kt.match(Aa);pu(l,null,Vt?"":kt,I,pt),dm(g,pt,ee),Vt&&(Re=Qo(D,kt,pt,null,0,null)|Re);break;case Node.COMMENT_NODE:const qt=X0.exec(st.textContent||"");if(qt){const Qt=L[parseInt(qt[1],10)];pu(l,Ia,"",I,pt),cm(e,i,s,I,Qt,pt),dC(g,pt,ee)}}st=st.nextSibling}return Re}function dm(e,t,i){0===i&&e.push(t)}function dC(e,t,i){0===i&&(e.push(~t),e.push(t))}function pu(e,t,i,s,l){null!==t&&e.push(t),e.push(i,l,function z0(e,t,i){return e|t<<17|i<<1}(0,s,l))}function pC(e,t,i){e.push(t<<1|1,i.name,i.value)}const mC=/\[(\ufffd.+?\ufffd?)\]/,gC=/\[(\ufffd.+?\ufffd?)\]|(\ufffd\/?\*\d+:\d+\ufffd)/g,vC=/({\s*)(VAR_(PLURAL|SELECT)(_\d+)?)(\s*,)/g,yC=/{([A-Z0-9_]+)}/g,_C=/\ufffdI18N_EXP_(ICU(_\d+)?)\ufffd/g,bC=/\/\*/,CC=/\d+\:(\d+)/;function mu(e,t,i=-1){const s=on(),l=St(),g=22+e,D=fe(s.consts,t),w=Hi();s.firstCreatePass&&function iC(e,t,i,s,l,g){const D=Hi(),w=[],I=[],L=[[]];l=function lC(e,t){if(function aC(e){return-1===e}(t))return lm(e);{const i=e.indexOf(`:${t}\ufffd`)+2+t.toString().length,s=e.search(new RegExp(`\ufffd\\/\\*\\d+:${t}\ufffd`));return lm(e.substring(i,s))}}(l,g);const ee=function nC(e){return e.replace(tC," ")}(l).split(eC);for(let Re=0;Re<ee.length;Re++){let st=ee[Re];if(0==(1&Re)){const pt=hu(st);for(let Mt=0;Mt<pt.length;Mt++){let Rt=pt[Mt];if(0==(1&Mt)){const kt=Rt;""!==kt&&rC(e,D,L[0],w,I,i,kt)}else{const kt=Rt;if("object"!=typeof kt)throw new Error(`Unable to parse ICU expression in "${l}" message.`);cm(e,i,I,t,kt,sm(e,D,L[0],i,w,"",!0).index)}}}else{const pt=47===st.charCodeAt(0),Rt=(st.charCodeAt(pt?1:0),22+Number.parseInt(st.substring(pt?2:1)));if(pt)L.shift(),F(Hi(),!1);else{const kt=U0(e,L[0],Rt);L.unshift([]),F(kt,!0)}}}e.data[s]={create:w,update:I}}(s,null===w?0:w.index,l,g,D,i);const I=s.data[g],ee=Bf(s,w===l[6]?null:w,l);(function K0(e,t,i,s){const l=e[11];for(let g=0;g<t.length;g++){const D=t[g++],w=t[g],I=(D&Yn.COMMENT)===Yn.COMMENT,L=(D&Yn.APPEND_EAGERLY)===Yn.APPEND_EAGERLY,ee=D>>>Yn.SHIFT;let Re=e[ee];null===Re&&(Re=e[ee]=I?l.createComment(w):Rl(l,w)),L&&null!==i&&ao(l,i,Re,s,!1)}})(l,I.create,ee,w&&8&w.type?l[w.index]:null),js(!0)}function gu(){js(!1)}function hm(e,t,i){mu(e,t,i),gu()}function pm(e,t){const i=on();!function oC(e,t,i){const l=xn().index,g=[];if(e.firstCreatePass&&null===e.data[t]){for(let D=0;D<i.length;D+=2){const w=i[D],I=i[D+1];if(""!==I){if(J0.test(I))throw new Error(`ICU expressions are not supported in attributes. Message: "${I}".`);Qo(g,I,l,w,sC(g),null)}}e.data[t]=g}}(i,e+22,fe(i.consts,t))}function vu(e){return function W0(e){e&&(Is|=1<<Math.min(Os,31)),Os++}(fi(St(),Ur(),e)),vu}function mm(e){!function G0(e,t,i){if(Os>0){const s=e.data[i];tm(e,t,Array.isArray(s)?s:s.update,li()-Os-1,Is)}Is=0,Os=0}(on(),St(),e+22)}function gm(e,t={}){return function DC(e,t={}){let i=e;if(mC.test(e)){const s={},l=[0];i=i.replace(gC,(g,D,w)=>{const I=D||w,L=s[I]||[];if(L.length||(I.split("|").forEach(Rt=>{const kt=Rt.match(CC),Vt=kt?parseInt(kt[1],10):0,qt=bC.test(Rt);L.push([Vt,qt,Rt])}),s[I]=L),!L.length)throw new Error(`i18n postprocess: unmatched placeholder - ${I}`);const ee=l[l.length-1];let Re=0;for(let Rt=0;Rt<L.length;Rt++)if(L[Rt][0]===ee){Re=Rt;break}const[st,pt,Mt]=L[Re];return pt?l.pop():ee!==st&&l.push(st),L.splice(Re,1),Mt})}return Object.keys(t).length&&(i=i.replace(vC,(s,l,g,D,w,I)=>t.hasOwnProperty(g)?`${l}${t[g]}${I}`:s),i=i.replace(yC,(s,l)=>t.hasOwnProperty(l)?t[l]:s),i=i.replace(_C,(s,l)=>{if(t.hasOwnProperty(l)){const g=t[l];if(!g.length)throw new Error(`i18n postprocess: unmatched ICU - ${s} with key: ${l}`);return g.shift()}return s})),i}(e,t)}function yu(e,t,i,s,l){if(e=v(e),Array.isArray(e))for(let g=0;g<e.length;g++)yu(e[g],t,i,s,l);else{const g=on(),D=St();let w=oo(e)?e:v(e.provide),I=lf(e);const L=xn(),ee=1048575&L.providerIndexes,Re=L.directiveStart,st=L.providerIndexes>>20;if(oo(e)||!e.multi){const pt=new si(I,l,xo),Mt=bu(w,t,l?ee:ee+st,Re);-1===Mt?(Us(is(L,D),g,w),_u(g,e,t.length),t.push(w),L.directiveStart++,L.directiveEnd++,l&&(L.providerIndexes+=1048576),i.push(pt),D.push(pt)):(i[Mt]=pt,D[Mt]=pt)}else{const pt=bu(w,t,ee+st,Re),Mt=bu(w,t,ee,ee+st),Rt=pt>=0&&i[pt],kt=Mt>=0&&i[Mt];if(l&&!kt||!l&&!Rt){Us(is(L,D),g,w);const Vt=function MC(e,t,i,s,l){const g=new si(e,i,xo);return g.multi=[],g.index=t,g.componentProviders=0,vm(g,l,s&&!i),g}(l?wC:TC,i.length,l,s,I);!l&&kt&&(i[Mt].providerFactory=Vt),_u(g,e,t.length,0),t.push(w),L.directiveStart++,L.directiveEnd++,l&&(L.providerIndexes+=1048576),i.push(Vt),D.push(Vt)}else _u(g,e,pt>-1?pt:Mt,vm(i[l?Mt:pt],I,!l&&s));!l&&s&&kt&&i[Mt].componentProviders++}}}function _u(e,t,i,s){const l=oo(t),g=function Ty(e){return!!e.useClass}(t);if(l||g){const I=(g?v(t.useClass):t).prototype.ngOnDestroy;if(I){const L=e.destroyHooks||(e.destroyHooks=[]);if(!l&&t.multi){const ee=L.indexOf(i);-1===ee?L.push(i,[s,I]):L[ee+1].push(s,I)}else L.push(i,I)}}}function vm(e,t,i){return i&&e.componentProviders++,e.multi.push(t)-1}function bu(e,t,i,s){for(let l=i;l<s;l++)if(t[l]===e)return l;return-1}function TC(e,t,i,s){return Cu(this.multi,[])}function wC(e,t,i,s){const l=this.multi;let g;if(this.providerFactory){const D=this.providerFactory.componentProviders,w=rs(i,i[1],this.providerFactory.index,s);g=w.slice(0,D),Cu(l,g);for(let I=D;I<w.length;I++)g.push(w[I])}else g=[],Cu(l,g);return g}function Cu(e,t){for(let i=0;i<e.length;i++)t.push((0,e[i])());return t}function ym(e,t=[]){return i=>{i.providersResolver=(s,l)=>function EC(e,t,i){const s=on();if(s.firstCreatePass){const l=Ln(e);yu(i,s.data,s.blueprint,l,!0),yu(t,s.data,s.blueprint,l,!1)}}(s,l?l(e):e,t)}}class Zo{}class _m{}function bm(e,t){return new Du(e,null!=t?t:null)}const SC=bm;class Du extends Zo{constructor(t,i){super(),this._parent=i,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new fc(this);const s=Dt(t);this._bootstrapComponents=Lr(s.bootstrap),this._r3Injector=sh(t,i,[{provide:Zo,useValue:this},{provide:gs,useValue:this.componentFactoryResolver}],p(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(i=>i()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Pa extends _m{constructor(t){super(),this.moduleType=t}create(t){return new Du(this.moduleType,t)}}class IC extends Zo{constructor(t,i,s){super(),this.componentFactoryResolver=new fc(this),this.instance=null;const l=new af([...t,{provide:Zo,useValue:this},{provide:gs,useValue:this.componentFactoryResolver}],i||ia(),s,new Set(["environment"]));this.injector=l,l.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function Eu(e,t,i=null){return new IC(e,t,i).injector}let OC=(()=>{class e{constructor(i){this._injector=i,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(i){if(!i.standalone)return null;if(!this.cachedInjectors.has(i.id)){const s=tf(0,i.type),l=s.length>0?Eu([s],this._injector,`Standalone[${i.type.name}]`):null;this.cachedInjectors.set(i.id,l)}return this.cachedInjectors.get(i.id)}ngOnDestroy(){try{for(const i of this.cachedInjectors.values())null!==i&&i.destroy()}finally{this.cachedInjectors.clear()}}}return e.\u0275prov=Pe({token:e,providedIn:"environment",factory:()=>new e(ti(so))}),e})();function Cm(e){e.getStandaloneInjector=t=>t.get(OC).getOrCreateStandaloneInjector(e)}function Tu(e){const t=ui(e);if(null===t)return null;if(void 0===t.component){const i=t.lView;if(null===i)return null;t.component=function o_(e,t){const i=t[1].data[e];return 2&i.flags?t[i.directiveStart]:null}(t.nodeIndex,i)}return t.component}function Dm(e){!function kC(e){if("undefined"!=typeof Element&&!(e instanceof Element))throw new Error("Expecting instance of DOM Element")}(e);const t=ui(e),i=t?t.lView:null;return null===i?null:i[8]}function Em(e){const t=ui(e);let s,i=t?t.lView:null;if(null===i)return null;for(;2===i[1].type&&(s=bs(i));)i=s;return 256&i[2]?null:i[8]}function Tm(e){const t=Sl(e);return null!==t?[...xf(t).components]:[]}function wm(e){const t=ui(e),i=t?t.lView:null;return null===i?Yr.NULL:new vo(i[1].data[t.nodeIndex],i)}function Mm(e){if(e instanceof Text)return[];const t=ui(e),i=t?t.lView:null;if(null===i)return[];const s=i[1],l=t.nodeIndex;return null!=s&&s.data[l]?(void 0===t.directives&&(t.directives=Sf(l,i,!1)),null===t.directives?[]:[...t.directives]):[]}function PC(e){const{constructor:t}=e;if(!t)throw new Error("Unable to find the instance constructor");const i=X(t);if(i)return{inputs:i.inputs,outputs:i.outputs,encapsulation:i.encapsulation,changeDetection:i.onPush?_e.OnPush:_e.Default};const s=Oe(t);return s?{inputs:s.inputs,outputs:s.outputs}:null}function wu(e){return ui(e).native}function Sm(e){const t=ui(e),i=null===t?null:t.lView;if(null===i)return[];const l=i[7],g=i[1].cleanup,D=[];if(g&&l)for(let w=0;w<g.length;){const I=g[w++],L=g[w++];if("string"==typeof I){const ee=I,Re=bn(i[L]),st=l[g[w++]],pt=g[w++],Mt="boolean"==typeof pt||pt>=0?"dom":"output",Rt="boolean"==typeof pt&&pt;e==Re&&D.push({element:e,name:ee,callback:st,useCapture:Rt,type:Mt})}}return D.sort(xC),D}function xC(e,t){return e.name==t.name?0:e.name<t.name?-1:1}function FC(e){return void 0!==e.type&&void 0!==e.template&&void 0!==e.declaredInputs}function Im(e,t,i,s){return We(()=>{const l=e;null!==t&&(l.hasOwnProperty("decorators")&&void 0!==l.decorators?l.decorators.push(...t):l.decorators=t),null!==i&&(l.ctorParameters=i),null!==s&&(l.propDecorators=l.hasOwnProperty("propDecorators")&&void 0!==l.propDecorators?Object.assign(Object.assign({},l.propDecorators),s):s)})}function Om(e,t,i){const s=Fn()+e,l=St();return l[s]===sn?Tr(l,s,i?t.call(i):t()):ws(l,s)}function Am(e,t,i,s){return Bm(St(),Fn(),e,t,i,s)}function Pm(e,t,i,s,l){return Vm(St(),Fn(),e,t,i,s,l)}function Rm(e,t,i,s,l,g){return $m(St(),Fn(),e,t,i,s,l,g)}function xm(e,t,i,s,l,g,D){return Hm(St(),Fn(),e,t,i,s,l,g,D)}function Fm(e,t,i,s,l,g,D,w){const I=Fn()+e,L=St(),ee=Ui(L,I,i,s,l,g);return fi(L,I+4,D)||ee?Tr(L,I+5,w?t.call(w,i,s,l,g,D):t(i,s,l,g,D)):ws(L,I+5)}function km(e,t,i,s,l,g,D,w,I){const L=Fn()+e,ee=St(),Re=Ui(ee,L,i,s,l,g);return co(ee,L+4,D,w)||Re?Tr(ee,L+6,I?t.call(I,i,s,l,g,D,w):t(i,s,l,g,D,w)):ws(ee,L+6)}function Nm(e,t,i,s,l,g,D,w,I,L){const ee=Fn()+e,Re=St();let st=Ui(Re,ee,i,s,l,g);return _a(Re,ee+4,D,w,I)||st?Tr(Re,ee+7,L?t.call(L,i,s,l,g,D,w,I):t(i,s,l,g,D,w,I)):ws(Re,ee+7)}function Lm(e,t,i,s,l,g,D,w,I,L,ee){const Re=Fn()+e,st=St(),pt=Ui(st,Re,i,s,l,g);return Ui(st,Re+4,D,w,I,L)||pt?Tr(st,Re+8,ee?t.call(ee,i,s,l,g,D,w,I,L):t(i,s,l,g,D,w,I,L)):ws(st,Re+8)}function jm(e,t,i,s){return Um(St(),Fn(),e,t,i,s)}function Ps(e,t){const i=e[t];return i===sn?void 0:i}function Bm(e,t,i,s,l,g){const D=t+i;return fi(e,D,l)?Tr(e,D+1,g?s.call(g,l):s(l)):Ps(e,D+1)}function Vm(e,t,i,s,l,g,D){const w=t+i;return co(e,w,l,g)?Tr(e,w+2,D?s.call(D,l,g):s(l,g)):Ps(e,w+2)}function $m(e,t,i,s,l,g,D,w){const I=t+i;return _a(e,I,l,g,D)?Tr(e,I+3,w?s.call(w,l,g,D):s(l,g,D)):Ps(e,I+3)}function Hm(e,t,i,s,l,g,D,w,I){const L=t+i;return Ui(e,L,l,g,D,w)?Tr(e,L+4,I?s.call(I,l,g,D,w):s(l,g,D,w)):Ps(e,L+4)}function Um(e,t,i,s,l,g){let D=t+i,w=!1;for(let I=0;I<l.length;I++)fi(e,D++,l[I])&&(w=!0);return w?Tr(e,D,s.apply(g,l)):Ps(e,D)}function zm(e,t){const i=on();let s;const l=e+22;i.firstCreatePass?(s=function NC(e,t){if(t)for(let i=t.length-1;i>=0;i--){const s=t[i];if(e===s.name)return s}}(t,i.pipeRegistry),i.data[l]=s,s.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(l,s.onDestroy)):s=i.data[l];const g=s.factory||(s.factory=ni(s.type)),D=we(xo);try{const w=Zn(!1),I=g();return Zn(w),ep(i,St(),l,I),I}finally{we(D)}}function Wm(e,t,i){const s=e+22,l=St(),g=gi(l,s);return Rs(l,s)?Bm(l,Fn(),t,g.transform,i,g):g.transform(i)}function Gm(e,t,i,s){const l=e+22,g=St(),D=gi(g,l);return Rs(g,l)?Vm(g,Fn(),t,D.transform,i,s,D):D.transform(i,s)}function Km(e,t,i,s,l){const g=e+22,D=St(),w=gi(D,g);return Rs(D,g)?$m(D,Fn(),t,w.transform,i,s,l,w):w.transform(i,s,l)}function Ym(e,t,i,s,l,g){const D=e+22,w=St(),I=gi(w,D);return Rs(w,D)?Hm(w,Fn(),t,I.transform,i,s,l,g,I):I.transform(i,s,l,g)}function Qm(e,t,i){const s=e+22,l=St(),g=gi(l,s);return Rs(l,s)?Um(l,Fn(),t,g.transform,i,g):g.transform.apply(g,i)}function Rs(e,t){return e[1].data[t].pure}function Mu(e){return t=>{setTimeout(e,void 0,t)}}const Mr=class LC extends n.x{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,i,s){var l,g,D;let w=t,I=i||(()=>null),L=s;if(t&&"object"==typeof t){const Re=t;w=null===(l=Re.next)||void 0===l?void 0:l.bind(Re),I=null===(g=Re.error)||void 0===g?void 0:g.bind(Re),L=null===(D=Re.complete)||void 0===D?void 0:D.bind(Re)}this.__isAsync&&(I=Mu(I),w&&(w=Mu(w)),L&&(L=Mu(L)));const ee=super.subscribe({next:w,error:I,complete:L});return t instanceof h.w0&&t.add(ee),ee}};function jC(){return this._results[lo()]()}class Ra{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 i=lo(),s=Ra.prototype;s[i]||(s[i]=jC)}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,i){return this._results.reduce(t,i)}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,i){const s=this;s.dirty=!1;const l=Ri(t);(this._changesDetected=!function Pv(e,t,i){if(e.length!==t.length)return!1;for(let s=0;s<e.length;s++){let l=e[s],g=t[s];if(i&&(l=i(l),g=i(g)),g!==l)return!1}return!0}(s._results,l,i))&&(s._results=l,s.length=l.length,s.last=l[this.length-1],s.first=l[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}let xs=(()=>{class e{}return e.__NG_ELEMENT_ID__=$C,e})();const BC=xs,VC=class extends BC{constructor(t,i,s){super(),this._declarationLView=t,this._declarationTContainer=i,this.elementRef=s}createEmbeddedView(t,i){const s=this._declarationTContainer.tViews,l=ha(this._declarationLView,s,t,16,null,s.declTNode,null,null,null,null,i||null);l[17]=this._declarationLView[this._declarationTContainer.index];const D=this._declarationLView[19];return null!==D&&(l[19]=D.createEmbeddedView(s)),pa(s,l,t),new No(l)}};function $C(){return xa(xn(),St())}function xa(e,t){return 4&e.type?new VC(t,e,Oo(e,t)):null}let Fa=(()=>{class e{}return e.__NG_ELEMENT_ID__=HC,e})();function HC(){return Xm(xn(),St())}const UC=Fa,Zm=class extends UC{constructor(t,i,s){super(),this._lContainer=t,this._hostTNode=i,this._hostLView=s}get element(){return Oo(this._hostTNode,this._hostLView)}get injector(){return new vo(this._hostTNode,this._hostLView)}get parentInjector(){const t=Hs(this._hostTNode,this._hostLView);if(ci(t)){const i=Fr(t,this._hostLView),s=vi(t);return new vo(i[1].data[s+8],i)}return new vo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const i=Jm(this._lContainer);return null!==i&&i[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,i,s){let l,g;"number"==typeof s?l=s:null!=s&&(l=s.index,g=s.injector);const D=t.createEmbeddedView(i||{},g);return this.insert(D,l),D}createComponent(t,i,s,l,g){const D=t&&!ss(t);let w;if(D)w=i;else{const Re=i||{};w=Re.index,s=Re.injector,l=Re.projectableNodes,g=Re.environmentInjector||Re.ngModuleRef}const I=D?t:new Lo(X(t)),L=s||this.parentInjector;if(!g&&null==I.ngModule){const st=(D?L:this.parentInjector).get(so,null);st&&(g=st)}const ee=I.create(L,l,void 0,g);return this.insert(ee.hostView,w),ee}insert(t,i){const s=t._lView,l=s[1];if(function k(e){return Nn(e[3])}(s)){const ee=this.indexOf(t);if(-1!==ee)this.detach(ee);else{const Re=s[3],st=new Zm(Re,Re[6],Re[3]);st.detach(st.indexOf(t))}}const g=this._adjustIndex(i),D=this._lContainer;!function y_(e,t,i,s){const l=10+s,g=i.length;s>0&&(i[l-1][4]=t),s<g-10?(t[4]=i[l],yd(i,10+s,t)):(i.push(t),t[4]=null),t[3]=i;const D=t[17];null!==D&&i!==D&&function __(e,t){const i=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===i?e[9]=[t]:i.push(t)}(D,t);const w=t[19];null!==w&&w.insertView(e),t[2]|=64}(l,s,D,g);const w=Ll(g,D),I=s[11],L=sa(I,D[7]);return null!==L&&function m_(e,t,i,s,l,g){s[0]=l,s[6]=t,Cs(e,s,i,1,l,g)}(l,D[6],I,s,L,w),t.attachToViewContainerRef(),yd(Su(D),g,t),t}move(t,i){return this.insert(t,i)}indexOf(t){const i=Jm(this._lContainer);return null!==i?i.indexOf(t):-1}remove(t){const i=this._adjustIndex(t,-1),s=Fl(this._lContainer,i);s&&(Gs(Su(this._lContainer),i),Lf(s[1],s))}detach(t){const i=this._adjustIndex(t,-1),s=Fl(this._lContainer,i);return s&&null!=Gs(Su(this._lContainer),i)?new No(s):null}_adjustIndex(t,i=0){return null==t?this.length+i:t}};function Jm(e){return e[8]}function Su(e){return e[8]||(e[8]=[])}function Xm(e,t){let i;const s=t[e.index];if(Nn(s))i=s;else{let l;if(8&e.type)l=bn(s);else{const g=t[11];l=g.createComment("");const D=Tn(e,t);ao(g,sa(g,D),l,function E_(e,t){return e.nextSibling(t)}(g,D),!1)}t[e.index]=i=jh(s,t,l,e),ma(t,i)}return new Zm(i,e,t)}class Iu{constructor(t){this.queryList=t,this.matches=null}clone(){return new Iu(this.queryList)}setDirty(){this.queryList.setDirty()}}class Ou{constructor(t=[]){this.queries=t}createEmbeddedView(t){const i=t.queries;if(null!==i){const s=null!==t.contentQueries?t.contentQueries[0]:i.length,l=[];for(let g=0;g<s;g++){const D=i.getByIndex(g);l.push(this.queries[D.indexInDeclarationView].clone())}return new Ou(l)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let i=0;i<this.queries.length;i++)null!==ag(t,i).matches&&this.queries[i].setDirty()}}class qm{constructor(t,i,s=null){this.predicate=t,this.flags=i,this.read=s}}class Au{constructor(t=[]){this.queries=t}elementStart(t,i){for(let s=0;s<this.queries.length;s++)this.queries[s].elementStart(t,i)}elementEnd(t){for(let i=0;i<this.queries.length;i++)this.queries[i].elementEnd(t)}embeddedTView(t){let i=null;for(let s=0;s<this.length;s++){const l=null!==i?i.length:0,g=this.getByIndex(s).embeddedTView(t,l);g&&(g.indexInDeclarationView=s,null!==i?i.push(g):i=[g])}return null!==i?new Au(i):null}template(t,i){for(let s=0;s<this.queries.length;s++)this.queries[s].template(t,i)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class Pu{constructor(t,i=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=i}elementStart(t,i){this.isApplyingToNode(i)&&this.matchTNode(t,i)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,i){this.elementStart(t,i)}embeddedTView(t,i){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,i),new Pu(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const i=this._declarationNodeIndex;let s=t.parent;for(;null!==s&&8&s.type&&s.index!==i;)s=s.parent;return i===(null!==s?s.index:-1)}return this._appliesToNextNode}matchTNode(t,i){const s=this.metadata.predicate;if(Array.isArray(s))for(let l=0;l<s.length;l++){const g=s[l];this.matchTNodeWithReadOption(t,i,GC(i,g)),this.matchTNodeWithReadOption(t,i,zs(i,t,g,!1,!1))}else s===xs?4&i.type&&this.matchTNodeWithReadOption(t,i,-1):this.matchTNodeWithReadOption(t,i,zs(i,t,s,!1,!1))}matchTNodeWithReadOption(t,i,s){if(null!==s){const l=this.metadata.read;if(null!==l)if(l===vs||l===Fa||l===xs&&4&i.type)this.addMatch(i.index,-2);else{const g=zs(i,t,l,!1,!1);null!==g&&this.addMatch(i.index,g)}else this.addMatch(i.index,s)}}addMatch(t,i){null===this.matches?this.matches=[t,i]:this.matches.push(t,i)}}function GC(e,t){const i=e.localNames;if(null!==i)for(let s=0;s<i.length;s+=2)if(i[s]===t)return i[s+1];return null}function YC(e,t,i,s){return-1===i?function KC(e,t){return 11&e.type?Oo(e,t):4&e.type?xa(e,t):null}(t,e):-2===i?function QC(e,t,i){return i===vs?Oo(t,e):i===xs?xa(t,e):i===Fa?Xm(t,e):void 0}(e,t,s):rs(e,e[1],i,t)}function eg(e,t,i,s){const l=t[19].queries[s];if(null===l.matches){const g=e.data,D=i.matches,w=[];for(let I=0;I<D.length;I+=2){const L=D[I];w.push(L<0?null:YC(t,g[L],D[I+1],i.metadata.read))}l.matches=w}return l.matches}function Ru(e,t,i,s){const l=e.queries.getByIndex(i),g=l.matches;if(null!==g){const D=eg(e,t,l,i);for(let w=0;w<g.length;w+=2){const I=g[w];if(I>0)s.push(D[w/2]);else{const L=g[w+1],ee=t[-I];for(let Re=10;Re<ee.length;Re++){const st=ee[Re];st[17]===st[3]&&Ru(st[1],st,L,s)}if(null!==ee[9]){const Re=ee[9];for(let st=0;st<Re.length;st++){const pt=Re[st];Ru(pt[1],pt,L,s)}}}}}return s}function tg(e){const t=St(),i=on(),s=Vs();es(s+1);const l=ag(i,s);if(e.dirty&&x(t)===(2==(2&l.metadata.flags))){if(null===l.matches)e.reset([]);else{const g=l.crossesNgTemplate?Ru(i,t,s,[]):eg(i,t,l,s);e.reset(g,ky),e.notifyOnChanges()}return!0}return!1}function ng(e,t,i){const s=on();s.firstCreatePass&&(sg(s,new qm(e,t,i),-1),2==(2&t)&&(s.staticViewQueries=!0)),og(s,St(),t)}function ig(e,t,i,s){const l=on();if(l.firstCreatePass){const g=xn();sg(l,new qm(t,i,s),g.index),function JC(e,t){const i=e.contentQueries||(e.contentQueries=[]);t!==(i.length?i[i.length-1]:-1)&&i.push(e.queries.length-1,t)}(l,e),2==(2&i)&&(l.staticContentQueries=!0)}og(l,St(),i)}function rg(){return function ZC(e,t){return e[19].queries[t].queryList}(St(),Vs())}function og(e,t,i){const s=new Ra(4==(4&i));Oh(e,t,s,s.destroy),null===t[19]&&(t[19]=new Ou),t[19].queries.push(new Iu(s))}function sg(e,t,i){null===e.queries&&(e.queries=new Au),e.queries.track(new Pu(t,i))}function ag(e,t){return e.queries.getByIndex(t)}function lg(e,t){return xa(e,t)}const _i=(()=>({\u0275\u0275attribute:gc,\u0275\u0275attributeInterpolate1:vc,\u0275\u0275attributeInterpolate2:yc,\u0275\u0275attributeInterpolate3:_c,\u0275\u0275attributeInterpolate4:bc,\u0275\u0275attributeInterpolate5:Cc,\u0275\u0275attributeInterpolate6:Dc,\u0275\u0275attributeInterpolate7:Ec,\u0275\u0275attributeInterpolate8:Tc,\u0275\u0275attributeInterpolateV:wc,\u0275\u0275defineComponent:Ee,\u0275\u0275defineDirective:Ge,\u0275\u0275defineInjectable:Pe,\u0275\u0275defineInjector:$e,\u0275\u0275defineNgModule:j,\u0275\u0275definePipe:bt,\u0275\u0275directiveInject:xo,\u0275\u0275getInheritedFactory:pd,\u0275\u0275inject:ti,\u0275\u0275injectAttribute:Ya,\u0275\u0275invalidFactory:ph,\u0275\u0275invalidFactoryDep:qa,\u0275\u0275templateRefExtractor:lg,\u0275\u0275resetView:ai,\u0275\u0275NgOnChangesFeature:ji,\u0275\u0275ProvidersFeature:ym,\u0275\u0275CopyDefinitionFeature:Qh,\u0275\u0275InheritDefinitionFeature:hc,\u0275\u0275StandaloneFeature:Cm,\u0275\u0275nextContext:lp,\u0275\u0275namespaceHTML:un,\u0275\u0275namespaceMathML:an,\u0275\u0275namespaceSVG:$t,\u0275\u0275enableBindings:Dn,\u0275\u0275disableBindings:Rn,\u0275\u0275elementStart:ba,\u0275\u0275elementEnd:Ca,\u0275\u0275element:Ic,\u0275\u0275elementContainerStart:Da,\u0275\u0275elementContainerEnd:Ea,\u0275\u0275elementContainer:Oc,\u0275\u0275pureFunction0:Om,\u0275\u0275pureFunction1:Am,\u0275\u0275pureFunction2:Pm,\u0275\u0275pureFunction3:Rm,\u0275\u0275pureFunction4:xm,\u0275\u0275pureFunction5:Fm,\u0275\u0275pureFunction6:km,\u0275\u0275pureFunction7:Nm,\u0275\u0275pureFunction8:Lm,\u0275\u0275pureFunctionV:jm,\u0275\u0275getCurrentView:np,\u0275\u0275restoreView:$i,\u0275\u0275listener:Pc,\u0275\u0275projection:up,\u0275\u0275syntheticHostProperty:uu,\u0275\u0275syntheticHostListener:Rc,\u0275\u0275pipeBind1:Wm,\u0275\u0275pipeBind2:Gm,\u0275\u0275pipeBind3:Km,\u0275\u0275pipeBind4:Ym,\u0275\u0275pipeBindV:Qm,\u0275\u0275projectionDef:cp,\u0275\u0275hostProperty:cu,\u0275\u0275property:Mc,\u0275\u0275propertyInterpolate:xc,\u0275\u0275propertyInterpolate1:Ta,\u0275\u0275propertyInterpolate2:Fc,\u0275\u0275propertyInterpolate3:kc,\u0275\u0275propertyInterpolate4:Nc,\u0275\u0275propertyInterpolate5:Lc,\u0275\u0275propertyInterpolate6:jc,\u0275\u0275propertyInterpolate7:Bc,\u0275\u0275propertyInterpolate8:Vc,\u0275\u0275propertyInterpolateV:$c,\u0275\u0275pipe:zm,\u0275\u0275queryRefresh:tg,\u0275\u0275viewQuery:ng,\u0275\u0275loadQuery:rg,\u0275\u0275contentQuery:ig,\u0275\u0275reference:tp,\u0275\u0275classMap:yp,\u0275\u0275classMapInterpolate1:Mp,\u0275\u0275classMapInterpolate2:Sp,\u0275\u0275classMapInterpolate3:Ip,\u0275\u0275classMapInterpolate4:Op,\u0275\u0275classMapInterpolate5:Ap,\u0275\u0275classMapInterpolate6:Pp,\u0275\u0275classMapInterpolate7:Rp,\u0275\u0275classMapInterpolate8:xp,\u0275\u0275classMapInterpolateV:Fp,\u0275\u0275styleMap:sr,\u0275\u0275styleMapInterpolate1:kp,\u0275\u0275styleMapInterpolate2:Np,\u0275\u0275styleMapInterpolate3:Lp,\u0275\u0275styleMapInterpolate4:jp,\u0275\u0275styleMapInterpolate5:Bp,\u0275\u0275styleMapInterpolate6:Vp,\u0275\u0275styleMapInterpolate7:$p,\u0275\u0275styleMapInterpolate8:Hp,\u0275\u0275styleMapInterpolateV:Up,\u0275\u0275styleProp:Hc,\u0275\u0275stylePropInterpolate1:eu,\u0275\u0275stylePropInterpolate2:tu,\u0275\u0275stylePropInterpolate3:nu,\u0275\u0275stylePropInterpolate4:iu,\u0275\u0275stylePropInterpolate5:ru,\u0275\u0275stylePropInterpolate6:ou,\u0275\u0275stylePropInterpolate7:su,\u0275\u0275stylePropInterpolate8:au,\u0275\u0275stylePropInterpolateV:lu,\u0275\u0275classProp:Uc,\u0275\u0275advance:th,\u0275\u0275template:qh,\u0275\u0275text:wp,\u0275\u0275textInterpolate:Wc,\u0275\u0275textInterpolate1:Ma,\u0275\u0275textInterpolate2:Gc,\u0275\u0275textInterpolate3:Kc,\u0275\u0275textInterpolate4:Yc,\u0275\u0275textInterpolate5:Qc,\u0275\u0275textInterpolate6:Zc,\u0275\u0275textInterpolate7:Jc,\u0275\u0275textInterpolate8:Xc,\u0275\u0275textInterpolateV:qc,\u0275\u0275i18n:hm,\u0275\u0275i18nAttributes:pm,\u0275\u0275i18nExp:vu,\u0275\u0275i18nStart:mu,\u0275\u0275i18nEnd:gu,\u0275\u0275i18nApply:mm,\u0275\u0275i18nPostprocess:gm,\u0275\u0275resolveWindow:If,\u0275\u0275resolveDocument:Of,\u0275\u0275resolveBody:Af,\u0275\u0275setComponentScope:ve,\u0275\u0275setNgModuleScope:Me,\u0275\u0275registerNgModuleType:tl,\u0275\u0275sanitizeHtml:Gd,\u0275\u0275sanitizeStyle:Kd,\u0275\u0275sanitizeResourceUrl:ul,\u0275\u0275sanitizeScript:Yd,\u0275\u0275sanitizeUrl:cl,\u0275\u0275sanitizeUrlOrResourceUrl:Jd,\u0275\u0275trustConstantHtml:Qd,\u0275\u0275trustConstantResourceUrl:Zd,forwardRef:b,resolveForwardRef:v}))();let Jo=null;function eD(){Jo=null}function ug(e){return!!Dt(e)}const Fs=[];let xu=!1;function dg(){if(!xu){xu=!0;try{for(let e=Fs.length-1;e>=0;e--){const{moduleType:t,ngModule:i}=Fs[e];i.declarations&&i.declarations.every(fg)&&(Fs.splice(e,1),rD(t,i))}}finally{xu=!1}}}function fg(e){return Array.isArray(e)?e.every(fg):!!v(e)}function hg(e,t={}){pg(e,t),void 0!==t.id&&tl(e,t.id),function tD(e,t){Fs.push({moduleType:e,ngModule:t})}(e,t)}function pg(e,t,i=!1){const s=Ri(t.declarations||tt);let l=null;Object.defineProperty(e,Yt,{configurable:!0,get:()=>(null===l&&(l=ri().compileNgModule(_i,`ng:///${e.name}/\u0275mod.js`,{type:e,bootstrap:Ri(t.bootstrap||tt).map(v),declarations:s.map(v),imports:Ri(t.imports||tt).map(v).map(yg),exports:Ri(t.exports||tt).map(v).map(yg),schemas:t.schemas?Ri(t.schemas):null,id:t.id||null}),l.schemas||(l.schemas=[])),l)});let g=null;Object.defineProperty(e,Nt,{get:()=>{if(null===g){const w=ri();g=w.compileFactory(_i,`ng:///${e.name}/\u0275fac.js`,{name:e.name,type:e,deps:Js(e),target:w.FactoryTarget.NgModule,typeArgumentCount:0})}return g},configurable:!1});let D=null;Object.defineProperty(e,je,{get:()=>{if(null===D){const w={name:e.name,type:e,providers:t.providers||tt,imports:[(t.imports||tt).map(v),(t.exports||tt).map(v)]};D=ri().compileInjector(_i,`ng:///${e.name}/\u0275inj.js`,w)}return D},configurable:!1})}function Xo(e){const t=X(e)||Oe(e)||at(e);return null!==t&&t.standalone}let ka=new WeakMap,ku=new WeakMap;function iD(){ka=new WeakMap,ku=new WeakMap,Fs.length=0}function rD(e,t){const i=Ri(t.declarations||tt),s=ho(e);i.forEach(l=>{(l=v(l)).hasOwnProperty(mt)?Nu(X(l),s):!l.hasOwnProperty(Ft)&&!l.hasOwnProperty(At)&&(l.ngSelectorScope=e)})}function Nu(e,t){e.directiveDefs=()=>Array.from(t.compilation.directives).map(i=>i.hasOwnProperty(mt)?X(i):Oe(i)).filter(i=>!!i),e.pipeDefs=()=>Array.from(t.compilation.pipes).map(i=>at(i)),e.schemas=t.schemas,e.tView=null}function ho(e){if(ug(e))return function oD(e){const t=Dt(e,!0);if(null!==t.transitiveCompileScopes)return t.transitiveCompileScopes;const i={schemas:t.schemas||null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set}};return Lr(t.imports).forEach(s=>{const l=ho(s);l.exported.directives.forEach(g=>i.compilation.directives.add(g)),l.exported.pipes.forEach(g=>i.compilation.pipes.add(g))}),Lr(t.declarations).forEach(s=>{at(s)?i.compilation.pipes.add(s):i.compilation.directives.add(s)}),Lr(t.exports).forEach(s=>{const l=s;if(ug(l)){const g=ho(l);g.exported.directives.forEach(D=>{i.compilation.directives.add(D),i.exported.directives.add(D)}),g.exported.pipes.forEach(D=>{i.compilation.pipes.add(D),i.exported.pipes.add(D)})}else at(l)?i.exported.pipes.add(l):i.exported.directives.add(l)}),t.transitiveCompileScopes=i,i}(e);if(Xo(e)){if(null!==(X(e)||Oe(e)))return{schemas:null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set([e]),pipes:new Set}};if(null!==at(e))return{schemas:null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set([e])}}}throw new Error(`${e.name} does not have a module def (\u0275mod property)`)}function yg(e){return function cg(e){return void 0!==e.ngModule}(e)?e.ngModule:e}let Lu=0;function _g(e,t){let i=null;(function Kv(e,t){Od(t)&&(wo.set(e,t),fs.add(e))})(e,t),Cg(e,t),Object.defineProperty(e,mt,{get:()=>{if(null===i){const s=ri();if(Od(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 l=function qC(){return Jo}();let g=t.preserveWhitespaces;void 0===g&&(g=null!==l&&void 0!==l.preserveWhitespaces&&l.preserveWhitespaces);let D=t.encapsulation;void 0===D&&(D=null!==l&&void 0!==l.defaultEncapsulation?l.defaultEncapsulation:xe.Emulated);const w=t.templateUrl||`ng:///${e.name}/template.html`,I=Object.assign(Object.assign({},Dg(e,t)),{typeSourceSpan:s.createParseSourceSpan("Component",e.name,w),template:t.template||"",preserveWhitespaces:g,styles:t.styles||tt,animations:t.animations,declarations:[],changeDetection:t.changeDetection,encapsulation:D,interpolation:t.interpolation,viewProviders:t.viewProviders||null,isStandalone:!!t.standalone});Lu++;try{if(I.usesInheritance&&Eg(e),i=s.compileComponent(_i,w,I),t.standalone){const L=Ri(t.imports||tt),{directiveDefs:ee,pipeDefs:Re}=function aD(e,t){let i=null,s=null;return{directiveDefs:()=>{if(null===i){i=[X(e)];const D=new Set;for(const w of t){const I=v(w);if(!D.has(I))if(D.add(I),Dt(I)){const L=ho(I);for(const ee of L.exported.directives){const Re=X(ee)||Oe(ee);Re&&!D.has(ee)&&(D.add(ee),i.push(Re))}}else{const L=X(I)||Oe(I);L&&i.push(L)}}}return i},pipeDefs:()=>{if(null===s){s=[];const D=new Set;for(const w of t){const I=v(w);if(!D.has(I))if(D.add(I),Dt(I)){const L=ho(I);for(const ee of L.exported.pipes){const Re=at(ee);Re&&!D.has(ee)&&(D.add(ee),s.push(Re))}}else{const L=at(I);L&&s.push(L)}}}return s}}}(e,L);i.directiveDefs=ee,i.pipeDefs=Re,i.dependencies=()=>L.map(v)}}finally{Lu--}if(0===Lu&&dg(),function lD(e){return void 0!==e.ngSelectorScope}(e)){const L=ho(e.ngSelectorScope);Nu(i,L)}if(t.schemas){if(!t.standalone)throw new Error(`The 'schemas' was specified for the ${N(e)} but is only valid on a component that is standalone.`);i.schemas=t.schemas}else t.standalone&&(i.schemas=[])}return i},configurable:!1})}function ju(e,t){let i=null;Cg(e,t||{}),Object.defineProperty(e,Ft,{get:()=>{if(null===i){const s=bg(e,t||{});i=ri().compileDirective(_i,s.sourceMapUrl,s.metadata)}return i},configurable:!1})}function bg(e,t){const i=e&&e.name,s=`ng:///${i}/\u0275dir.js`,l=ri(),g=Dg(e,t);return g.typeSourceSpan=l.createParseSourceSpan("Directive",i,s),g.usesInheritance&&Eg(e),{metadata:g,sourceMapUrl:s}}function Cg(e,t){let i=null;Object.defineProperty(e,Nt,{get:()=>{if(null===i){const s=bg(e,t),l=ri();i=l.compileFactory(_i,`ng:///${e.name}/\u0275fac.js`,{name:s.metadata.name,type:s.metadata.type,typeArgumentCount:0,deps:Js(e),target:l.FactoryTarget.Directive})}return i},configurable:!1})}function cD(e){return Object.getPrototypeOf(e.prototype)===Object.prototype}function Dg(e,t){const i=ds(),s=i.ownPropMetadata(e);return{name:e.name,type:e,selector:void 0!==t.selector?t.selector:null,host:t.host||Ne,propMetadata:s,inputs:t.inputs||tt,outputs:t.outputs||tt,queries:Tg(e,s,wg),lifecycle:{usesOnChanges:i.hasLifecycleHook(e,"ngOnChanges")},typeSourceSpan:null,usesInheritance:!cD(e),exportAs:fD(t.exportAs),providers:t.providers||null,viewQueries:Tg(e,s,Mg),isStandalone:!!t.standalone}}function Eg(e){const t=Object.prototype;let i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==t;)!Oe(i)&&!X(i)&&pD(i)&&ju(i,null),i=Object.getPrototypeOf(i)}function uD(e){return"string"==typeof e?Ig(e):v(e)}function dD(e,t){return{propertyName:e,predicate:uD(t.selector),descendants:t.descendants,first:t.first,read:t.read?t.read:null,static:!!t.static,emitDistinctChangesOnly:!!t.emitDistinctChangesOnly}}function Tg(e,t,i){const s=[];for(const l in t)if(t.hasOwnProperty(l)){const g=t[l];g.forEach(D=>{if(i(D)){if(!D.selector)throw new Error(`Can't construct a query for the property "${l}" of "${N(e)}" since the query selector wasn't defined.`);if(g.some(Sg))throw new Error("Cannot combine @Input decorators with query decorators");s.push(dD(l,D))}})}return s}function fD(e){return void 0===e?null:Ig(e)}function wg(e){const t=e.ngMetadataName;return"ContentChild"===t||"ContentChildren"===t}function Mg(e){const t=e.ngMetadataName;return"ViewChild"===t||"ViewChildren"===t}function Sg(e){return"Input"===e.ngMetadataName}function Ig(e){return e.split(",").map(t=>t.trim())}const hD=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function pD(e){const t=ds();if(hD.some(s=>t.hasLifecycleHook(e,s)))return!0;const i=t.propMetadata(e);for(const s in i){const l=i[s];for(let g=0;g<l.length;g++){const D=l[g],w=D.ngMetadataName;if(Sg(D)||wg(D)||Mg(D)||"Output"===w||"HostBinding"===w||"HostListener"===w)return!0}}return!1}function Og(e,t){let i=null,s=null;Object.defineProperty(e,Nt,{get:()=>{if(null===s){const l=Ag(e,t),g=ri();s=g.compileFactory(_i,`ng:///${l.name}/\u0275fac.js`,{name:l.name,type:l.type,typeArgumentCount:0,deps:Js(e),target:g.FactoryTarget.Pipe})}return s},configurable:!1}),Object.defineProperty(e,At,{get:()=>{if(null===i){const l=Ag(e,t);i=ri().compilePipe(_i,`ng:///${l.name}/\u0275pipe.js`,l)}return i},configurable:!1})}function Ag(e,t){return{type:e,name:e.name,pipeName:t.name,pure:void 0===t.pure||t.pure,isStandalone:!!t.standalone}}const Pg=Co("Directive",(e={})=>e,void 0,void 0,(e,t)=>ju(e,t)),mD=Co("Component",(e={})=>Object.assign({changeDetection:_e.Default},e),Pg,void 0,(e,t)=>_g(e,t)),gD=Co("Pipe",e=>Object.assign({pure:!0},e),void 0,void 0,(e,t)=>Og(e,t)),vD=Gr("Input",e=>({bindingPropertyName:e})),yD=Gr("Output",e=>({bindingPropertyName:e})),_D=Gr("HostBinding",e=>({hostPropertyName:e})),bD=Gr("HostListener",(e,t)=>({eventName:e,args:t})),CD=Co("NgModule",e=>e,void 0,void 0,(e,t)=>hg(e,t));function Na(...e){}const Rg=new Pn("Application Initializer");let La=(()=>{class e{constructor(i){this.appInits=i,this.resolve=Na,this.reject=Na,this.initialized=!1,this.done=!1,this.donePromise=new Promise((s,l)=>{this.resolve=s,this.reject=l})}runInitializers(){if(this.initialized)return;const i=[],s=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let l=0;l<this.appInits.length;l++){const g=this.appInits[l]();if(Ac(g))i.push(g);else if(rp(g)){const D=new Promise((w,I)=>{g.subscribe({complete:w,error:I})});i.push(D)}}Promise.all(i).then(()=>{s()}).catch(l=>{this.reject(l)}),0===i.length&&s(),this.initialized=!0}}return e.\u0275fac=function(i){return new(i||e)(ti(Rg,8))},e.\u0275prov=Pe({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const xg=new Pn("AppId",{providedIn:"root",factory:Fg});function Fg(){return`${Bu()}${Bu()}${Bu()}`}const DD={provide:xg,useFactory:Fg,deps:[]};function Bu(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const kg=new Pn("Platform Initializer"),ED=new Pn("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Ng=new Pn("appBootstrapListener"),TD=new Pn("Application Packages Root URL"),wD=new Pn("AnimationModuleType");let MD=(()=>{class e{log(i){console.log(i)}warn(i){console.warn(i)}}return e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=Pe({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const ja=new Pn("LocaleId",{providedIn:"root",factory:()=>Td(ja,Ve.Optional|Ve.SkipSelf)||function SD(){return"undefined"!=typeof $localize&&$localize.locale||fo}()}),ID=new Pn("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"}),OD=new Pn("Translations"),AD=new Pn("TranslationsFormat");var Sr=(()=>((Sr=Sr||{})[Sr.Error=0]="Error",Sr[Sr.Warning=1]="Warning",Sr[Sr.Ignore=2]="Ignore",Sr))();class Lg{constructor(t,i){this.ngModuleFactory=t,this.componentFactories=i}}let PD=(()=>{class e{compileModuleSync(i){return new Pa(i)}compileModuleAsync(i){return Promise.resolve(this.compileModuleSync(i))}compileModuleAndAllComponentsSync(i){const s=this.compileModuleSync(i),g=Lr(Dt(i).declarations).reduce((D,w)=>{const I=X(w);return I&&D.push(new Lo(I)),D},[]);return new Lg(s,g)}compileModuleAndAllComponentsAsync(i){return Promise.resolve(this.compileModuleAndAllComponentsSync(i))}clearCache(){}clearCacheFor(i){}getModuleId(i){}}return e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=Pe({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const jg=new Pn("compilerOptions");class RD{}function xD(e){Xh(e),Tm(e).forEach(t=>Jh(t))}let Vg=!1;function FD(){Vg||(Vg=!0,zi("\u0275setProfiler",mr),zi("getDirectiveMetadata",PC),zi("getComponent",Tu),zi("getContext",Dm),zi("getListeners",Sm),zi("getOwningComponent",Em),zi("getHostElement",wu),zi("getInjector",wm),zi("getRootComponents",Tm),zi("getDirectives",Mm),zi("applyChanges",xD))}function zi(e,t){if("undefined"==typeof COMPILED||!COMPILED){const i=W;if(i){let s=i.ng;s||(s=i.ng={}),s[e]=t}}}const kD=(()=>Promise.resolve(0))();function Vu(e){"undefined"==typeof Zone?kD.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class ki{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:s=!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 M(908,!1);Zone.assertZonePatched();const l=this;if(l._nesting=0,l._outer=l._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const g=Zone.AsyncStackTaggingZoneSpec;l._inner=l._inner.fork(new g("Angular"))}Zone.TaskTrackingZoneSpec&&(l._inner=l._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(l._inner=l._inner.fork(Zone.longStackTraceZoneSpec)),l.shouldCoalesceEventChangeDetection=!s&&i,l.shouldCoalesceRunChangeDetection=s,l.lastRequestAnimationFrameId=-1,l.nativeRequestAnimationFrame=function ND(){let e=W.requestAnimationFrame,t=W.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i);const s=t[Zone.__symbol__("OriginalDelegate")];s&&(t=s)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function BD(e){const t=()=>{!function jD(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(W,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Hu(e),e.isCheckStableRunning=!0,$u(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Hu(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(i,s,l,g,D,w)=>{try{return $g(e),i.invokeTask(l,g,D,w)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===g.type||e.shouldCoalesceRunChangeDetection)&&t(),Hg(e)}},onInvoke:(i,s,l,g,D,w,I)=>{try{return $g(e),i.invoke(l,g,D,w,I)}finally{e.shouldCoalesceRunChangeDetection&&t(),Hg(e)}},onHasTask:(i,s,l,g)=>{i.hasTask(l,g),s===l&&("microTask"==g.change?(e._hasPendingMicrotasks=g.microTask,Hu(e),$u(e)):"macroTask"==g.change&&(e.hasPendingMacrotasks=g.macroTask))},onHandleError:(i,s,l,g)=>(i.handleError(l,g),e.runOutsideAngular(()=>e.onError.emit(g)),!1)})}(l)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ki.isInAngularZone())throw new M(909,!1)}static assertNotInAngularZone(){if(ki.isInAngularZone())throw new M(909,!1)}run(t,i,s){return this._inner.run(t,i,s)}runTask(t,i,s,l){const g=this._inner,D=g.scheduleEventTask("NgZoneEvent: "+l,t,LD,Na,Na);try{return g.runTask(D,i,s)}finally{g.cancelTask(D)}}runGuarded(t,i,s){return this._inner.runGuarded(t,i,s)}runOutsideAngular(t){return this._outer.run(t)}}const LD={};function $u(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 Hu(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 Hg(e){e._nesting--,$u(e)}class Ug{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,i,s){return t.apply(i,s)}runGuarded(t,i,s){return t.apply(i,s)}runOutsideAngular(t){return t()}runTask(t,i,s,l){return t.apply(i,s)}}const zg=new Pn(""),Wg=new Pn("");let ks,VD=(()=>{class e{constructor(i,s,l){this._ngZone=i,this.registry=s,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,ks||(Kg(l),l.addToWindow(s)),this._watchAngularEvents(),i.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:()=>{ki.assertNotInAngularZone(),Vu(()=>{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())Vu(()=>{for(;0!==this._callbacks.length;){let i=this._callbacks.pop();clearTimeout(i.timeoutId),i.doneCb(this._didWork)}this._didWork=!1});else{let i=this.getPendingTasks();this._callbacks=this._callbacks.filter(s=>!s.updateCb||!s.updateCb(i)||(clearTimeout(s.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(i=>({source:i.source,creationLocation:i.creationLocation,data:i.data})):[]}addCallback(i,s,l){let g=-1;s&&s>0&&(g=setTimeout(()=>{this._callbacks=this._callbacks.filter(D=>D.timeoutId!==g),i(this._didWork,this.getPendingTasks())},s)),this._callbacks.push({doneCb:i,timeoutId:g,updateCb:l})}whenStable(i,s,l){if(l&&!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(i,s,l),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(i){this.registry.registerApplication(i,this)}unregisterApplication(i){this.registry.unregisterApplication(i)}findProviders(i,s,l){return[]}}return e.\u0275fac=function(i){return new(i||e)(ti(ki),ti(Gg),ti(Wg))},e.\u0275prov=Pe({token:e,factory:e.\u0275fac}),e})(),Gg=(()=>{class e{constructor(){this._applications=new Map}registerApplication(i,s){this._applications.set(i,s)}unregisterApplication(i){this._applications.delete(i)}unregisterAllApplications(){this._applications.clear()}getTestability(i){return this._applications.get(i)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(i,s=!0){var l;return null!==(l=null==ks?void 0:ks.findTestabilityInTree(this,i,s))&&void 0!==l?l:null}}return e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=Pe({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function Kg(e){ks=e}let Ir=null;const Uu=new Pn("AllowMultipleToken"),zu=new Pn("PlatformDestroyListeners");function Yg(e,t,i){const s=new Pa(i);return Promise.resolve(s)}function Qg(e){return e.isBoundToModule}class $D{constructor(t,i){this.name=t,this.token=i}}function Zg(e){if(Ir&&!Ir.get(Uu,!1))throw new M(400,!1);Ir=e;const t=e.get(Wu);return Jg(e),t}function Jg(e){const t=e.get(kg,null);t&&t.forEach(i=>i())}function UD(e){const{rootComponent:t,appProviders:i,platformProviders:s}=e,l=function HD(e=[]){if(Ir)return Ir;const t=ev(e);return Ir=t,Jg(t),t}(s),g=new ki(tv());return g.run(()=>{const w=Eu([{provide:ki,useValue:g},...i||[]],l,"Environment Injector"),I=w.get(ys,null);let L;return g.runOutsideAngular(()=>{L=g.onError.subscribe({next:ee=>{I.handleError(ee)}})}),nv(I,g,()=>{const ee=w.get(La);return ee.runInitializers(),ee.donePromise.then(()=>{fu(w.get(ja,fo)||fo);const st=w.get(Va),pt=()=>st.destroy(),Mt=l.get(zu,null);return null==Mt||Mt.add(pt),st.onDestroy(()=>{null==Mt||Mt.delete(pt),L.unsubscribe()}),st.bootstrap(t),st})})})}function Xg(e,t,i=[]){const s=`Platform: ${t}`,l=new Pn(s);return(g=[])=>{let D=Ba();if(!D||D.injector.get(Uu,!1)){const w=[...i,...g,{provide:l,useValue:!0}];e?e(w):Zg(ev(w,s))}return qg()}}function qg(e){const t=Ba();if(!t)throw new M(401,!1);return t}function ev(e=[],t){return Yr.create({name:t,providers:[{provide:ml,useValue:"platform"},{provide:zu,useValue:new Set([()=>Ir=null])},...e]})}function zD(){var e;null===(e=Ba())||void 0===e||e.destroy()}function Ba(){var e;return null!==(e=null==Ir?void 0:Ir.get(Wu))&&void 0!==e?e:null}let Wu=(()=>{class e{constructor(i){this._injector=i,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(i,s){const l=function WD(e,t){let i;return i="noop"===e?new Ug:("zone.js"===e?void 0:e)||new ki(t),i}(null==s?void 0:s.ngZone,tv(s)),g=[{provide:ki,useValue:l}];return l.run(()=>{const D=Yr.create({providers:g,parent:this.injector,name:i.moduleType.name}),w=i.create(D),I=w.injector.get(ys,null);if(!I)throw new M(402,!1);return l.runOutsideAngular(()=>{const L=l.onError.subscribe({next:ee=>{I.handleError(ee)}});w.onDestroy(()=>{$a(this._modules,w),L.unsubscribe()})}),nv(I,l,()=>{const L=w.injector.get(La);return L.runInitializers(),L.donePromise.then(()=>(fu(w.injector.get(ja,fo)||fo),this._moduleDoBootstrap(w),w))})})}bootstrapModule(i,s=[]){const l=iv({},s);return Yg(0,0,i).then(g=>this.bootstrapModuleFactory(g,l))}_moduleDoBootstrap(i){const s=i.injector.get(Va);if(i._bootstrapComponents.length>0)i._bootstrapComponents.forEach(l=>s.bootstrap(l));else{if(!i.instance.ngDoBootstrap)throw new M(403,!1);i.instance.ngDoBootstrap(s)}this._modules.push(i)}onDestroy(i){this._destroyListeners.push(i)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new M(404,!1);this._modules.slice().forEach(s=>s.destroy()),this._destroyListeners.forEach(s=>s());const i=this._injector.get(zu,null);i&&(i.forEach(s=>s()),i.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(i){return new(i||e)(ti(Yr))},e.\u0275prov=Pe({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function tv(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!e||!e.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!e||!e.ngZoneRunCoalescing)||!1}}function nv(e,t,i){try{const s=i();return Ac(s)?s.catch(l=>{throw t.runOutsideAngular(()=>e.handleError(l)),l}):s}catch(s){throw t.runOutsideAngular(()=>e.handleError(s)),s}}function iv(e,t){return Array.isArray(t)?t.reduce(iv,e):Object.assign(Object.assign({},e),t)}let Va=(()=>{class e{constructor(i,s,l){this._zone=i,this._injector=s,this._exceptionHandler=l,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const g=new _.y(w=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{w.next(this._stable),w.complete()})}),D=new _.y(w=>{let I;this._zone.runOutsideAngular(()=>{I=this._zone.onStable.subscribe(()=>{ki.assertNotInAngularZone(),Vu(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,w.next(!0))})})});const L=this._zone.onUnstable.subscribe(()=>{ki.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{w.next(!1)}))});return()=>{I.unsubscribe(),L.unsubscribe()}});this.isStable=(0,u.T)(g,D.pipe((0,r.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(i,s){const l=i instanceof ra;if(!this._injector.get(La).done)throw!l&&Xo(i),new M(405,false);let D;D=l?i:this._injector.get(gs).resolveComponentFactory(i),this.componentTypes.push(D.componentType);const w=Qg(D)?void 0:this._injector.get(Zo),L=D.create(Yr.NULL,[],s||D.selector,w),ee=L.location.nativeElement,Re=L.injector.get(zg,null);return null==Re||Re.registerApplication(ee),L.onDestroy(()=>{this.detachView(L.hostView),$a(this.components,L),null==Re||Re.unregisterApplication(ee)}),this._loadComponent(L),L}tick(){if(this._runningTick)throw new M(101,!1);try{this._runningTick=!0;for(let i of this._views)i.detectChanges()}catch(i){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(i))}finally{this._runningTick=!1}}attachView(i){const s=i;this._views.push(s),s.attachToAppRef(this)}detachView(i){const s=i;$a(this._views,s),s.detachFromAppRef()}_loadComponent(i){this.attachView(i.hostView),this.tick(),this.components.push(i),this._injector.get(Ng,[]).concat(this._bootstrapListeners).forEach(l=>l(i))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(i=>i()),this._views.slice().forEach(i=>i.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(i){return this._destroyListeners.push(i),()=>$a(this._destroyListeners,i)}destroy(){if(this._destroyed)throw new M(406,!1);const i=this._injector;i.destroy&&!i.destroyed&&i.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return e.\u0275fac=function(i){return new(i||e)(ti(ki),ti(so),ti(ys))},e.\u0275prov=Pe({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function $a(e,t){const i=e.indexOf(t);i>-1&&e.splice(i,1)}let ov=!0,sv=!1;function KD(){return sv=!0,ov}function YD(){if(sv)throw new Error("Cannot enable prod mode after platform setup.");ov=!1}function QD(e){const t=Rd(e);if(!t)throw av(e);return new Pa(t)}function ZD(e){const t=Rd(e);if(!t)throw av(e);return t}function av(e){return new Error(`No module with ID ${e} loaded`)}let lv=(()=>{class e{}return e.__NG_ELEMENT_ID__=cv,e})();function cv(e){return function JD(e,t,i){if(wi(e)&&!i){const s=Qn(e.index,t);return new No(s,s)}return 47&e.type?new No(t[16],t):null}(xn(),St(),16==(16&e))}class uv extends lv{}class XD extends uv{}class qD{constructor(t,i){this.name=t,this.callback=i}}function eE(e){return e.map(t=>t.nativeElement)}class Gu{constructor(t){this.nativeNode=t}get parent(){const t=this.nativeNode.parentNode;return t?new Ns(t):null}get injector(){return wm(this.nativeNode)}get componentInstance(){const t=this.nativeNode;return t&&(Tu(t)||Em(t))}get context(){return Tu(this.nativeNode)||Dm(this.nativeNode)}get listeners(){return Sm(this.nativeNode).filter(t=>"dom"===t.type)}get references(){return function RC(e){const t=ui(e);if(null===t)return{};if(void 0===t.localRefs){const i=t.lView;if(null===i)return{};t.localRefs=function s_(e,t){const i=e[1].data[t];if(i&&i.localNames){const s={};let l=i.index+1;for(let g=0;g<i.localNames.length;g+=2)s[i.localNames[g]]=e[l],l++;return s}return null}(i,t.nodeIndex)}return t.localRefs||{}}(this.nativeNode)}get providerTokens(){return function AC(e){const t=ui(e),i=t?t.lView:null;if(null===i)return[];const s=i[1],l=s.data[t.nodeIndex],g=[],w=l.directiveEnd;for(let I=1048575&l.providerIndexes;I<w;I++){let L=s.data[I];FC(L)&&(L=L.type),g.push(L)}return g}(this.nativeNode)}}class Ns extends Gu{constructor(t){super(t)}get nativeElement(){return this.nativeNode.nodeType==Node.ELEMENT_NODE?this.nativeNode:null}get name(){const t=ui(this.nativeNode),i=t?t.lView:null;return null!==i?i[1].data[t.nodeIndex].value:this.nativeNode.nodeName}get properties(){const t=ui(this.nativeNode),i=t?t.lView:null;if(null===i)return{};const s=i[1].data,l=s[t.nodeIndex],g={};return function tE(e,t){if(e){let i=Object.getPrototypeOf(e);const s=Node.prototype;for(;null!==i&&i!==s;){const l=Object.getOwnPropertyDescriptors(i);for(let g in l)if(!g.startsWith("__")&&!g.startsWith("on")){const D=e[g];nE(D)&&(t[g]=D)}i=Object.getPrototypeOf(i)}}}(this.nativeElement,g),function iE(e,t,i,s){let l=t.propertyBindings;if(null!==l)for(let g=0;g<l.length;g++){const D=l[g],I=s[D].split("\ufffd"),L=I[0];if(I.length>1){let ee=I[1];for(let Re=1;Re<I.length-1;Re++)ee+=P(i[D+Re-1])+I[Re+1];e[L]=ee}else e[L]=i[D]}}(g,l,i,s),g}get attributes(){const t={},i=this.nativeElement;if(!i)return t;const s=ui(i),l=s?s.lView:null;if(null===l)return{};const g=l[1].data[s.nodeIndex].attrs,D=[];if(g){let I=0;for(;I<g.length;){const L=g[I];if("string"!=typeof L)break;t[L]=g[I+1],D.push(L.toLowerCase()),I+=2}}const w=i.attributes;for(let I=0;I<w.length;I++){const L=w[I],ee=L.name.toLowerCase();-1===D.indexOf(ee)&&(t[ee]=L.value)}return t}get styles(){return this.nativeElement&&this.nativeElement.style?this.nativeElement.style:{}}get classes(){const t={},s=this.nativeElement.className;return("string"!=typeof s?s.baseVal.split(" "):s.split(" ")).forEach(g=>t[g]=!0),t}get childNodes(){const t=this.nativeNode.childNodes,i=[];for(let s=0;s<t.length;s++)i.push(qo(t[s]));return i}get children(){const t=this.nativeElement;if(!t)return[];const i=t.children,s=[];for(let l=0;l<i.length;l++)s.push(qo(i[l]));return s}query(t){return this.queryAll(t)[0]||null}queryAll(t){const i=[];return dv(this,t,i,!0),i}queryAllNodes(t){const i=[];return dv(this,t,i,!1),i}triggerEventHandler(t,i){const s=this.nativeNode,l=[];this.listeners.forEach(g=>{if(g.name===t){const D=g.callback;D.call(s,i),l.push(D)}}),"function"==typeof s.eventListeners&&s.eventListeners(t).forEach(g=>{if(-1!==g.toString().indexOf("__ngUnwrap__")){const D=g("__ngUnwrap__");return-1===l.indexOf(D)&&D.call(s,i)}})}}function nE(e){return"string"==typeof e||"boolean"==typeof e||"number"==typeof e||null===e}function dv(e,t,i,s){const l=ui(e.nativeNode),g=l?l.lView:null;null!==g?po(g[1].data[l.nodeIndex],g,t,i,s,e.nativeNode):Yu(e.nativeNode,t,i,s)}function po(e,t,i,s,l,g){const D=function qn(e,t){const i=null===e?-1:e.index;return-1!==i?bn(t[i]):null}(e,t);if(11&e.type){if(Ku(D,i,s,l,g),wi(e)){const I=Qn(e.index,t);I&&I[1].firstChild&&po(I[1].firstChild,I,i,s,l,g)}else e.child&&po(e.child,t,i,s,l,g),D&&Yu(D,i,s,l);const w=t[e.index];Nn(w)&&fv(w,i,s,l,g)}else if(4&e.type){const w=t[e.index];Ku(w[7],i,s,l,g),fv(w,i,s,l,g)}else if(16&e.type){const w=t[16],L=w[6].projection[e.projection];if(Array.isArray(L))for(let ee of L)Ku(ee,i,s,l,g);else if(L){const ee=w[3];po(ee[1].data[L.index],ee,i,s,l,g)}}else e.child&&po(e.child,t,i,s,l,g);if(g!==D){const w=4&e.flags?e.projectionNext:e.next;w&&po(w,t,i,s,l,g)}}function fv(e,t,i,s,l){for(let g=10;g<e.length;g++){const D=e[g],w=D[1].firstChild;w&&po(w,D,t,i,s,l)}}function Ku(e,t,i,s,l){if(l!==e){const g=qo(e);if(!g)return;(s&&g instanceof Ns&&t(g)&&-1===i.indexOf(g)||!s&&t(g)&&-1===i.indexOf(g))&&i.push(g)}}function Yu(e,t,i,s){const l=e.childNodes,g=l.length;for(let D=0;D<g;D++){const w=l[D],I=qo(w);I&&((s&&I instanceof Ns&&t(I)&&-1===i.indexOf(I)||!s&&t(I)&&-1===i.indexOf(I))&&i.push(I),Yu(w,t,i,s))}}const Zu="__ng_debug__";function qo(e){return e instanceof Node?(e.hasOwnProperty(Zu)||(e[Zu]=e.nodeType==Node.ELEMENT_NODE?new Ns(e):new Gu(e)),e[Zu]):null}function rE(e){return null}class hv{constructor(){}supports(t){return Ts(t)}create(t){return new pv(t)}}const oE=(e,t)=>t;class pv{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||oE}forEachItem(t){let i;for(i=this._itHead;null!==i;i=i._next)t(i)}forEachOperation(t){let i=this._itHead,s=this._removalsHead,l=0,g=null;for(;i||s;){const D=!s||i&&i.currentIndex<gv(s,l,g)?i:s,w=gv(D,l,g),I=D.currentIndex;if(D===s)l--,s=s._nextRemoved;else if(i=i._next,null==D.previousIndex)l++;else{g||(g=[]);const L=w-l,ee=I-l;if(L!=ee){for(let st=0;st<L;st++){const pt=st<g.length?g[st]:g[st]=0,Mt=pt+st;ee<=Mt&&Mt<L&&(g[st]=pt+1)}g[D.previousIndex]=ee-L}}w!==I&&t(D,w,I)}}forEachPreviousItem(t){let i;for(i=this._previousItHead;null!==i;i=i._nextPrevious)t(i)}forEachAddedItem(t){let i;for(i=this._additionsHead;null!==i;i=i._nextAdded)t(i)}forEachMovedItem(t){let i;for(i=this._movesHead;null!==i;i=i._nextMoved)t(i)}forEachRemovedItem(t){let i;for(i=this._removalsHead;null!==i;i=i._nextRemoved)t(i)}forEachIdentityChange(t){let i;for(i=this._identityChangesHead;null!==i;i=i._nextIdentityChange)t(i)}diff(t){if(null==t&&(t=[]),!Ts(t))throw new M(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let l,g,D,i=this._itHead,s=!1;if(Array.isArray(t)){this.length=t.length;for(let w=0;w<this.length;w++)g=t[w],D=this._trackByFn(w,g),null!==i&&Object.is(i.trackById,D)?(s&&(i=this._verifyReinsertion(i,g,D,w)),Object.is(i.item,g)||this._addIdentityChange(i,g)):(i=this._mismatch(i,g,D,w),s=!0),i=i._next}else l=0,function o0(e,t){if(Array.isArray(e))for(let i=0;i<e.length;i++)t(e[i]);else{const i=e[lo()]();let s;for(;!(s=i.next()).done;)t(s.value)}}(t,w=>{D=this._trackByFn(l,w),null!==i&&Object.is(i.trackById,D)?(s&&(i=this._verifyReinsertion(i,w,D,l)),Object.is(i.item,w)||this._addIdentityChange(i,w)):(i=this._mismatch(i,w,D,l),s=!0),i=i._next,l++}),this.length=l;return this._truncate(i),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,i,s,l){let g;return null===t?g=this._itTail:(g=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(s,null))?(Object.is(t.item,i)||this._addIdentityChange(t,i),this._reinsertAfter(t,g,l)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(s,l))?(Object.is(t.item,i)||this._addIdentityChange(t,i),this._moveAfter(t,g,l)):t=this._addAfter(new sE(i,s),g,l),t}_verifyReinsertion(t,i,s,l){let g=null===this._unlinkedRecords?null:this._unlinkedRecords.get(s,null);return null!==g?t=this._reinsertAfter(g,t._prev,l):t.currentIndex!=l&&(t.currentIndex=l,this._addToMoves(t,l)),t}_truncate(t){for(;null!==t;){const i=t._next;this._addToRemovals(this._unlink(t)),t=i}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,i,s){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const l=t._prevRemoved,g=t._nextRemoved;return null===l?this._removalsHead=g:l._nextRemoved=g,null===g?this._removalsTail=l:g._prevRemoved=l,this._insertAfter(t,i,s),this._addToMoves(t,s),t}_moveAfter(t,i,s){return this._unlink(t),this._insertAfter(t,i,s),this._addToMoves(t,s),t}_addAfter(t,i,s){return this._insertAfter(t,i,s),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,i,s){const l=null===i?this._itHead:i._next;return t._next=l,t._prev=i,null===l?this._itTail=t:l._prev=t,null===i?this._itHead=t:i._next=t,null===this._linkedRecords&&(this._linkedRecords=new mv),this._linkedRecords.put(t),t.currentIndex=s,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const i=t._prev,s=t._next;return null===i?this._itHead=s:i._next=s,null===s?this._itTail=i:s._prev=i,t}_addToMoves(t,i){return t.previousIndex===i||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new mv),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,i){return t.item=i,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class sE{constructor(t,i){this.item=t,this.trackById=i,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 aE{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,i){let s;for(s=this._head;null!==s;s=s._nextDup)if((null===i||i<=s.currentIndex)&&Object.is(s.trackById,t))return s;return null}remove(t){const i=t._prevDup,s=t._nextDup;return null===i?this._head=s:i._nextDup=s,null===s?this._tail=i:s._prevDup=i,null===this._head}}class mv{constructor(){this.map=new Map}put(t){const i=t.trackById;let s=this.map.get(i);s||(s=new aE,this.map.set(i,s)),s.add(t)}get(t,i){const l=this.map.get(t);return l?l.get(t,i):null}remove(t){const i=t.trackById;return this.map.get(i).remove(t)&&this.map.delete(i),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function gv(e,t,i){const s=e.previousIndex;if(null===s)return s;let l=0;return i&&s<i.length&&(l=i[s]),s+t+l}class vv{constructor(){}supports(t){return t instanceof Map||mc(t)}create(){return new lE}}class lE{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 i;for(i=this._mapHead;null!==i;i=i._next)t(i)}forEachPreviousItem(t){let i;for(i=this._previousMapHead;null!==i;i=i._nextPrevious)t(i)}forEachChangedItem(t){let i;for(i=this._changesHead;null!==i;i=i._nextChanged)t(i)}forEachAddedItem(t){let i;for(i=this._additionsHead;null!==i;i=i._nextAdded)t(i)}forEachRemovedItem(t){let i;for(i=this._removalsHead;null!==i;i=i._nextRemoved)t(i)}diff(t){if(t){if(!(t instanceof Map||mc(t)))throw new M(900,!1)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let i=this._mapHead;if(this._appendAfter=null,this._forEach(t,(s,l)=>{if(i&&i.key===l)this._maybeAddToChanges(i,s),this._appendAfter=i,i=i._next;else{const g=this._getOrCreateRecordForKey(l,s);i=this._insertBeforeOrAppend(i,g)}}),i){i._prev&&(i._prev._next=null),this._removalsHead=i;for(let s=i;null!==s;s=s._nextRemoved)s===this._mapHead&&(this._mapHead=null),this._records.delete(s.key),s._nextRemoved=s._next,s.previousValue=s.currentValue,s.currentValue=null,s._prev=null,s._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,i){if(t){const s=t._prev;return i._next=t,i._prev=s,t._prev=i,s&&(s._next=i),t===this._mapHead&&(this._mapHead=i),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=i,i._prev=this._appendAfter):this._mapHead=i,this._appendAfter=i,null}_getOrCreateRecordForKey(t,i){if(this._records.has(t)){const l=this._records.get(t);this._maybeAddToChanges(l,i);const g=l._prev,D=l._next;return g&&(g._next=D),D&&(D._prev=g),l._next=null,l._prev=null,l}const s=new cE(t);return this._records.set(t,s),s.currentValue=i,this._addToAdditions(s),s}_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,i){Object.is(i,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=i,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,i){t instanceof Map?t.forEach(i):Object.keys(t).forEach(s=>i(t[s],s))}}class cE{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 yv(){return new Ju([new hv])}let Ju=(()=>{class e{constructor(i){this.factories=i}static create(i,s){if(null!=s){const l=s.factories.slice();i=i.concat(l)}return new e(i)}static extend(i){return{provide:e,useFactory:s=>e.create(i,s||yv()),deps:[[e,new To,new us]]}}find(i){const s=this.factories.find(l=>l.supports(i));if(null!=s)return s;throw new M(901,!1)}}return e.\u0275prov=Pe({token:e,providedIn:"root",factory:yv}),e})();function _v(){return new Xu([new vv])}let Xu=(()=>{class e{constructor(i){this.factories=i}static create(i,s){if(s){const l=s.factories.slice();i=i.concat(l)}return new e(i)}static extend(i){return{provide:e,useFactory:s=>e.create(i,s||_v()),deps:[[e,new To,new us]]}}find(i){const s=this.factories.find(l=>l.supports(i));if(s)return s;throw new M(901,!1)}}return e.\u0275prov=Pe({token:e,providedIn:"root",factory:_v}),e})();const uE=[new vv],fE=new Ju([new hv]),hE=new Xu(uE),pE=Xg(null,"core",[]);let mE=(()=>{class e{constructor(i){}}return e.\u0275fac=function(i){return new(i||e)(ti(Va))},e.\u0275mod=j({type:e}),e.\u0275inj=$e({}),e})();function gE(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}const vE=!0;function yE(e){return ri().compileDirectiveDeclaration(_i,`ng:///${e.type.name}/\u0275fac.js`,e)}function _E(e){var t,i;Im(e.type,e.decorators,null!==(t=e.ctorParameters)&&void 0!==t?t:null,null!==(i=e.propDecorators)&&void 0!==i?i:null)}function bE(e){return ri().compileComponentDeclaration(_i,`ng:///${e.type.name}/\u0275cmp.js`,e)}function CE(e){return ri(function DE(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(_i,`ng:///${e.type.name}/\u0275fac.js`,e)}function EE(e){return ri().compileInjectableDeclaration(_i,`ng:///${e.type.name}/\u0275prov.js`,e)}function TE(e){return ri().compileInjectorDeclaration(_i,`ng:///${e.type.name}/\u0275inj.js`,e)}function wE(e){return ri().compileNgModuleDeclaration(_i,`ng:///${e.type.name}/\u0275mod.js`,e)}function ME(e){return ri().compilePipeDeclaration(_i,`ng:///${e.type.name}/\u0275pipe.js`,e)}function SE(e,t){const i=X(e),s=t.elementInjector||ia();return new Lo(i).create(s,t.projectableNodes,t.hostElement,t.environmentInjector)}function IE(e){const t=X(e);if(!t)return null;const i=new Lo(t);return{get selector(){return i.selector},get type(){return i.componentType},get inputs(){return i.inputs},get outputs(){return i.outputs},get ngContentSelectors(){return i.ngContentSelectors},get isStandalone(){return t.standalone}}}},3075:(z,o,a)=>{"use strict";a.r(o),a.d(o,{AbstractControl:()=>X,AbstractControlDirective:()=>He,AbstractFormGroupDirective:()=>Nn,COMPOSITION_BUFFER_MODE:()=>m,CheckboxControlValueAccessor:()=>f,CheckboxRequiredValidator:()=>Qn,ControlContainer:()=>je,DefaultValueAccessor:()=>C,EmailValidator:()=>ne,FormArray:()=>Rn,FormArrayName:()=>ni,FormBuilder:()=>ai,FormControl:()=>On,FormControlDirective:()=>Mi,FormControlName:()=>Ii,FormGroup:()=>Oe,FormGroupDirective:()=>Ei,FormGroupName:()=>Si,FormRecord:()=>Ht,FormsModule:()=>$n,MaxLengthValidator:()=>Et,MaxValidator:()=>mi,MinLengthValidator:()=>fe,MinValidator:()=>Tn,NG_ASYNC_VALIDATORS:()=>Y,NG_VALIDATORS:()=>N,NG_VALUE_ACCESSOR:()=>p,NgControl:()=>Ie,NgControlStatus:()=>Ke,NgControlStatusGroup:()=>K,NgForm:()=>nn,NgModel:()=>Ki,NgModelGroup:()=>Wi,NgSelectOption:()=>Vi,NonNullableFormBuilder:()=>xn,NumberValueAccessor:()=>Xn,PatternValidator:()=>Bt,RadioControlValueAccessor:()=>Di,RangeValueAccessor:()=>Yi,ReactiveFormsModule:()=>Dn,RequiredValidator:()=>gi,SelectControlValueAccessor:()=>hi,SelectMultipleControlValueAccessor:()=>pi,UntypedFormArray:()=>St,UntypedFormBuilder:()=>tr,UntypedFormControl:()=>kn,UntypedFormGroup:()=>at,VERSION:()=>Hi,Validators:()=>G,\u0275InternalFormsSharedModule:()=>fn,\u0275NgNoValidate:()=>cr,\u0275NgSelectMultipleOption:()=>Oi});var n=a(5e3),h=a(9808),_=a(2076),u=a(4128),r=a(4004);let c=(()=>{class F{constructor(S,le){this._renderer=S,this._elementRef=le,this.onChange=Ct=>{},this.onTouched=()=>{}}setProperty(S,le){this._renderer.setProperty(this._elementRef.nativeElement,S,le)}registerOnTouched(S){this.onTouched=S}registerOnChange(S){this.onChange=S}setDisabledState(S){this.setProperty("disabled",S)}}return F.\u0275fac=function(S){return new(S||F)(n.\u0275\u0275directiveInject(n.Renderer2),n.\u0275\u0275directiveInject(n.ElementRef))},F.\u0275dir=n.\u0275\u0275defineDirective({type:F}),F})(),d=(()=>{class F extends c{}return F.\u0275fac=function(){let A;return function(le){return(A||(A=n.\u0275\u0275getInheritedFactory(F)))(le||F)}}(),F.\u0275dir=n.\u0275\u0275defineDirective({type:F,features:[n.\u0275\u0275InheritDefinitionFeature]}),F})();const p=new n.InjectionToken("NgValueAccessor"),y={provide:p,useExisting:(0,n.forwardRef)(()=>f),multi:!0};let f=(()=>{class F extends d{writeValue(S){this.setProperty("checked",S)}}return F.\u0275fac=function(){let A;return function(le){return(A||(A=n.\u0275\u0275getInheritedFactory(F)))(le||F)}}(),F.\u0275dir=n.\u0275\u0275defineDirective({type:F,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(S,le){1&S&&n.\u0275\u0275listener("change",function(jt){return le.onChange(jt.target.checked)})("blur",function(){return le.onTouched()})},features:[n.\u0275\u0275ProvidersFeature([y]),n.\u0275\u0275InheritDefinitionFeature]}),F})();const b={provide:p,useExisting:(0,n.forwardRef)(()=>C),multi:!0},m=new n.InjectionToken("CompositionEventMode");let C=(()=>{class F extends c{constructor(S,le,Ct){super(S,le),this._compositionMode=Ct,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function v(){const F=(0,h.\u0275getDOM)()?(0,h.\u0275getDOM)().getUserAgent():"";return/android (\d+)/.test(F.toLowerCase())}())}writeValue(S){this.setProperty("value",null==S?"":S)}_handleInput(S){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(S)}_compositionStart(){this._composing=!0}_compositionEnd(S){this._composing=!1,this._compositionMode&&this.onChange(S)}}return F.\u0275fac=function(S){return new(S||F)(n.\u0275\u0275directiveInject(n.Renderer2),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(m,8))},F.\u0275dir=n.\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(S,le){1&S&&n.\u0275\u0275listener("input",function(jt){return le._handleInput(jt.target.value)})("blur",function(){return le.onTouched()})("compositionstart",function(){return le._compositionStart()})("compositionend",function(jt){return le._compositionEnd(jt.target.value)})},features:[n.\u0275\u0275ProvidersFeature([b]),n.\u0275\u0275InheritDefinitionFeature]}),F})();function O(F){return null==F||("string"==typeof F||Array.isArray(F))&&0===F.length}function P(F){return null!=F&&"number"==typeof F.length}const N=new n.InjectionToken("NgValidators"),Y=new n.InjectionToken("NgAsyncValidators"),U=/^(?=.{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 G{static min(A){return $(A)}static max(A){return J(A)}static required(A){return te(A)}static requiredTrue(A){return he(A)}static email(A){return Fe(A)}static minLength(A){return it(A)}static maxLength(A){return be(A)}static pattern(A){return ke(A)}static nullValidator(A){return null}static compose(A){return B(A)}static composeAsync(A){return ge(A)}}function $(F){return A=>{if(O(A.value)||O(F))return null;const S=parseFloat(A.value);return!isNaN(S)&&S<F?{min:{min:F,actual:A.value}}:null}}function J(F){return A=>{if(O(A.value)||O(F))return null;const S=parseFloat(A.value);return!isNaN(S)&&S>F?{max:{max:F,actual:A.value}}:null}}function te(F){return O(F.value)?{required:!0}:null}function he(F){return!0===F.value?null:{required:!0}}function Fe(F){return O(F.value)||U.test(F.value)?null:{email:!0}}function it(F){return A=>O(A.value)||!P(A.value)?null:A.value.length<F?{minlength:{requiredLength:F,actualLength:A.value.length}}:null}function be(F){return A=>P(A.value)&&A.value.length>F?{maxlength:{requiredLength:F,actualLength:A.value.length}}:null}function ke(F){if(!F)return ie;let A,S;return"string"==typeof F?(S="","^"!==F.charAt(0)&&(S+="^"),S+=F,"$"!==F.charAt(F.length-1)&&(S+="$"),A=new RegExp(S)):(S=F.toString(),A=F),le=>{if(O(le.value))return null;const Ct=le.value;return A.test(Ct)?null:{pattern:{requiredPattern:S,actualValue:Ct}}}}function ie(F){return null}function Ae(F){return null!=F}function oe(F){return(0,n.\u0275isPromise)(F)?(0,_.D)(F):F}function me(F){let A={};return F.forEach(S=>{A=null!=S?Object.assign(Object.assign({},A),S):A}),0===Object.keys(A).length?null:A}function V(F,A){return A.map(S=>S(F))}function re(F){return F.map(A=>function H(F){return!F.validate}(A)?A:S=>A.validate(S))}function B(F){if(!F)return null;const A=F.filter(Ae);return 0==A.length?null:function(S){return me(V(S,A))}}function ue(F){return null!=F?B(re(F)):null}function ge(F){if(!F)return null;const A=F.filter(Ae);return 0==A.length?null:function(S){const le=V(S,A).map(oe);return(0,u.D)(le).pipe((0,r.U)(me))}}function Te(F){return null!=F?ge(re(F)):null}function Pe(F,A){return null===F?[A]:Array.isArray(F)?[...F,A]:[F,A]}function Ce(F){return F._rawValidators}function $e(F){return F._rawAsyncValidators}function lt(F){return F?Array.isArray(F)?F:[F]:[]}function yt(F,A){return Array.isArray(F)?F.includes(A):F===A}function _t(F,A){const S=lt(A);return lt(F).forEach(Ct=>{yt(S,Ct)||S.push(Ct)}),S}function ut(F,A){return lt(A).filter(S=>!yt(F,S))}class He{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(A){this._rawValidators=A||[],this._composedValidatorFn=ue(this._rawValidators)}_setAsyncValidators(A){this._rawAsyncValidators=A||[],this._composedAsyncValidatorFn=Te(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(A){this._onDestroyCallbacks.push(A)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(A=>A()),this._onDestroyCallbacks=[]}reset(A){this.control&&this.control.reset(A)}hasError(A,S){return!!this.control&&this.control.hasError(A,S)}getError(A,S){return this.control?this.control.getError(A,S):null}}class Ie extends He{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class je extends He{get formDirective(){return null}get path(){return null}}class pe{constructor(A){this._cd=A}get isTouched(){var A,S;return!(null===(S=null===(A=this._cd)||void 0===A?void 0:A.control)||void 0===S||!S.touched)}get isUntouched(){var A,S;return!(null===(S=null===(A=this._cd)||void 0===A?void 0:A.control)||void 0===S||!S.untouched)}get isPristine(){var A,S;return!(null===(S=null===(A=this._cd)||void 0===A?void 0:A.control)||void 0===S||!S.pristine)}get isDirty(){var A,S;return!(null===(S=null===(A=this._cd)||void 0===A?void 0:A.control)||void 0===S||!S.dirty)}get isValid(){var A,S;return!(null===(S=null===(A=this._cd)||void 0===A?void 0:A.control)||void 0===S||!S.valid)}get isInvalid(){var A,S;return!(null===(S=null===(A=this._cd)||void 0===A?void 0:A.control)||void 0===S||!S.invalid)}get isPending(){var A,S;return!(null===(S=null===(A=this._cd)||void 0===A?void 0:A.control)||void 0===S||!S.pending)}get isSubmitted(){var A;return!(null===(A=this._cd)||void 0===A||!A.submitted)}}let Ke=(()=>{class F extends pe{constructor(S){super(S)}}return F.\u0275fac=function(S){return new(S||F)(n.\u0275\u0275directiveInject(Ie,2))},F.\u0275dir=n.\u0275\u0275defineDirective({type:F,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(S,le){2&S&&n.\u0275\u0275classProp("ng-untouched",le.isUntouched)("ng-touched",le.isTouched)("ng-pristine",le.isPristine)("ng-dirty",le.isDirty)("ng-valid",le.isValid)("ng-invalid",le.isInvalid)("ng-pending",le.isPending)},features:[n.\u0275\u0275InheritDefinitionFeature]}),F})(),K=(()=>{class F extends pe{constructor(S){super(S)}}return F.\u0275fac=function(S){return new(S||F)(n.\u0275\u0275directiveInject(je,10))},F.\u0275dir=n.\u0275\u0275defineDirective({type:F,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(S,le){2&S&&n.\u0275\u0275classProp("ng-untouched",le.isUntouched)("ng-touched",le.isTouched)("ng-pristine",le.isPristine)("ng-dirty",le.isDirty)("ng-valid",le.isValid)("ng-invalid",le.isInvalid)("ng-pending",le.isPending)("ng-submitted",le.isSubmitted)},features:[n.\u0275\u0275InheritDefinitionFeature]}),F})();const rt="VALID",Je="INVALID",Ee="PENDING",ve="DISABLED";function se(F){return(vt(F)?F.validators:F)||null}function ae(F){return Array.isArray(F)?ue(F):F||null}function j(F,A){return(vt(A)?A.asyncValidators:F)||null}function Me(F){return Array.isArray(F)?Te(F):F||null}function vt(F){return null!=F&&!Array.isArray(F)&&"object"==typeof F}function Ge(F,A,S){const le=F.controls;if(!(A?Object.keys(le):le).length)throw new n.\u0275RuntimeError(1e3,"");if(!le[S])throw new n.\u0275RuntimeError(1001,"")}function bt(F,A,S){F._forEachChild((le,Ct)=>{if(void 0===S[Ct])throw new n.\u0275RuntimeError(1002,"")})}class X{constructor(A,S){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=A,this._rawAsyncValidators=S,this._composedValidatorFn=ae(this._rawValidators),this._composedAsyncValidatorFn=Me(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(A){this._rawValidators=this._composedValidatorFn=A}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(A){this._rawAsyncValidators=this._composedAsyncValidatorFn=A}get parent(){return this._parent}get valid(){return this.status===rt}get invalid(){return this.status===Je}get pending(){return this.status==Ee}get disabled(){return this.status===ve}get enabled(){return this.status!==ve}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(A){this._rawValidators=A,this._composedValidatorFn=ae(A)}setAsyncValidators(A){this._rawAsyncValidators=A,this._composedAsyncValidatorFn=Me(A)}addValidators(A){this.setValidators(_t(A,this._rawValidators))}addAsyncValidators(A){this.setAsyncValidators(_t(A,this._rawAsyncValidators))}removeValidators(A){this.setValidators(ut(A,this._rawValidators))}removeAsyncValidators(A){this.setAsyncValidators(ut(A,this._rawAsyncValidators))}hasValidator(A){return yt(this._rawValidators,A)}hasAsyncValidator(A){return yt(this._rawAsyncValidators,A)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(A={}){this.touched=!0,this._parent&&!A.onlySelf&&this._parent.markAsTouched(A)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(A=>A.markAllAsTouched())}markAsUntouched(A={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(S=>{S.markAsUntouched({onlySelf:!0})}),this._parent&&!A.onlySelf&&this._parent._updateTouched(A)}markAsDirty(A={}){this.pristine=!1,this._parent&&!A.onlySelf&&this._parent.markAsDirty(A)}markAsPristine(A={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(S=>{S.markAsPristine({onlySelf:!0})}),this._parent&&!A.onlySelf&&this._parent._updatePristine(A)}markAsPending(A={}){this.status=Ee,!1!==A.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!A.onlySelf&&this._parent.markAsPending(A)}disable(A={}){const S=this._parentMarkedDirty(A.onlySelf);this.status=ve,this.errors=null,this._forEachChild(le=>{le.disable(Object.assign(Object.assign({},A),{onlySelf:!0}))}),this._updateValue(),!1!==A.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},A),{skipPristineCheck:S})),this._onDisabledChange.forEach(le=>le(!0))}enable(A={}){const S=this._parentMarkedDirty(A.onlySelf);this.status=rt,this._forEachChild(le=>{le.enable(Object.assign(Object.assign({},A),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:A.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},A),{skipPristineCheck:S})),this._onDisabledChange.forEach(le=>le(!1))}_updateAncestors(A){this._parent&&!A.onlySelf&&(this._parent.updateValueAndValidity(A),A.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(A){this._parent=A}getRawValue(){return this.value}updateValueAndValidity(A={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===rt||this.status===Ee)&&this._runAsyncValidator(A.emitEvent)),!1!==A.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!A.onlySelf&&this._parent.updateValueAndValidity(A)}_updateTreeValidity(A={emitEvent:!0}){this._forEachChild(S=>S._updateTreeValidity(A)),this.updateValueAndValidity({onlySelf:!0,emitEvent:A.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ve:rt}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(A){if(this.asyncValidator){this.status=Ee,this._hasOwnPendingAsyncValidator=!0;const S=oe(this.asyncValidator(this));this._asyncValidationSubscription=S.subscribe(le=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(le,{emitEvent:A})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(A,S={}){this.errors=A,this._updateControlsErrors(!1!==S.emitEvent)}get(A){let S=A;return null==S||(Array.isArray(S)||(S=S.split(".")),0===S.length)?null:S.reduce((le,Ct)=>le&&le._find(Ct),this)}getError(A,S){const le=S?this.get(S):this;return le&&le.errors?le.errors[A]:null}hasError(A,S){return!!this.getError(A,S)}get root(){let A=this;for(;A._parent;)A=A._parent;return A}_updateControlsErrors(A){this.status=this._calculateStatus(),A&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(A)}_initObservables(){this.valueChanges=new n.EventEmitter,this.statusChanges=new n.EventEmitter}_calculateStatus(){return this._allControlsDisabled()?ve:this.errors?Je:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ee)?Ee:this._anyControlsHaveStatus(Je)?Je:rt}_anyControlsHaveStatus(A){return this._anyControls(S=>S.status===A)}_anyControlsDirty(){return this._anyControls(A=>A.dirty)}_anyControlsTouched(){return this._anyControls(A=>A.touched)}_updatePristine(A={}){this.pristine=!this._anyControlsDirty(),this._parent&&!A.onlySelf&&this._parent._updatePristine(A)}_updateTouched(A={}){this.touched=this._anyControlsTouched(),this._parent&&!A.onlySelf&&this._parent._updateTouched(A)}_registerOnCollectionChange(A){this._onCollectionChange=A}_setUpdateStrategy(A){vt(A)&&null!=A.updateOn&&(this._updateOn=A.updateOn)}_parentMarkedDirty(A){return!A&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(A){return null}}class Oe extends X{constructor(A,S,le){super(se(S),j(le,S)),this.controls=A,this._initObservables(),this._setUpdateStrategy(S),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(A,S){return this.controls[A]?this.controls[A]:(this.controls[A]=S,S.setParent(this),S._registerOnCollectionChange(this._onCollectionChange),S)}addControl(A,S,le={}){this.registerControl(A,S),this.updateValueAndValidity({emitEvent:le.emitEvent}),this._onCollectionChange()}removeControl(A,S={}){this.controls[A]&&this.controls[A]._registerOnCollectionChange(()=>{}),delete this.controls[A],this.updateValueAndValidity({emitEvent:S.emitEvent}),this._onCollectionChange()}setControl(A,S,le={}){this.controls[A]&&this.controls[A]._registerOnCollectionChange(()=>{}),delete this.controls[A],S&&this.registerControl(A,S),this.updateValueAndValidity({emitEvent:le.emitEvent}),this._onCollectionChange()}contains(A){return this.controls.hasOwnProperty(A)&&this.controls[A].enabled}setValue(A,S={}){bt(this,0,A),Object.keys(A).forEach(le=>{Ge(this,!0,le),this.controls[le].setValue(A[le],{onlySelf:!0,emitEvent:S.emitEvent})}),this.updateValueAndValidity(S)}patchValue(A,S={}){null!=A&&(Object.keys(A).forEach(le=>{const Ct=this.controls[le];Ct&&Ct.patchValue(A[le],{onlySelf:!0,emitEvent:S.emitEvent})}),this.updateValueAndValidity(S))}reset(A={},S={}){this._forEachChild((le,Ct)=>{le.reset(A[Ct],{onlySelf:!0,emitEvent:S.emitEvent})}),this._updatePristine(S),this._updateTouched(S),this.updateValueAndValidity(S)}getRawValue(){return this._reduceChildren({},(A,S,le)=>(A[le]=S.getRawValue(),A))}_syncPendingControls(){let A=this._reduceChildren(!1,(S,le)=>!!le._syncPendingControls()||S);return A&&this.updateValueAndValidity({onlySelf:!0}),A}_forEachChild(A){Object.keys(this.controls).forEach(S=>{const le=this.controls[S];le&&A(le,S)})}_setUpControls(){this._forEachChild(A=>{A.setParent(this),A._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(A){for(const[S,le]of Object.entries(this.controls))if(this.contains(S)&&A(le))return!0;return!1}_reduceValue(){return this._reduceChildren({},(S,le,Ct)=>((le.enabled||this.disabled)&&(S[Ct]=le.value),S))}_reduceChildren(A,S){let le=A;return this._forEachChild((Ct,jt)=>{le=S(le,Ct,jt)}),le}_allControlsDisabled(){for(const A of Object.keys(this.controls))if(this.controls[A].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(A){return this.controls.hasOwnProperty(A)?this.controls[A]:null}}const at=Oe;class Ht extends Oe{}function Xt(F,A){return[...A.path,F]}function vn(F,A){var S,le;et(F,A),A.valueAccessor.writeValue(F.value),F.disabled&&(null===(le=(S=A.valueAccessor).setDisabledState)||void 0===le||le.call(S,!0)),function It(F,A){A.valueAccessor.registerOnChange(S=>{F._pendingValue=S,F._pendingChange=!0,F._pendingDirty=!0,"change"===F.updateOn&&Wt(F,A)})}(F,A),function yn(F,A){const S=(le,Ct)=>{A.valueAccessor.writeValue(le),Ct&&A.viewToModelUpdate(le)};F.registerOnChange(S),A._registerOnDestroy(()=>{F._unregisterOnChange(S)})}(F,A),function Lt(F,A){A.valueAccessor.registerOnTouched(()=>{F._pendingTouched=!0,"blur"===F.updateOn&&F._pendingChange&&Wt(F,A),"submit"!==F.updateOn&&F.markAsTouched()})}(F,A),function De(F,A){if(A.valueAccessor.setDisabledState){const S=le=>{A.valueAccessor.setDisabledState(le)};F.registerOnDisabledChange(S),A._registerOnDestroy(()=>{F._unregisterOnDisabledChange(S)})}}(F,A)}function qe(F,A,S=!0){const le=()=>{};A.valueAccessor&&(A.valueAccessor.registerOnChange(le),A.valueAccessor.registerOnTouched(le)),ct(F,A),F&&(A._invokeOnDestroyCallbacks(),F._registerOnCollectionChange(()=>{}))}function Ye(F,A){F.forEach(S=>{S.registerOnValidatorChange&&S.registerOnValidatorChange(A)})}function et(F,A){const S=Ce(F);null!==A.validator?F.setValidators(Pe(S,A.validator)):"function"==typeof S&&F.setValidators([S]);const le=$e(F);null!==A.asyncValidator?F.setAsyncValidators(Pe(le,A.asyncValidator)):"function"==typeof le&&F.setAsyncValidators([le]);const Ct=()=>F.updateValueAndValidity();Ye(A._rawValidators,Ct),Ye(A._rawAsyncValidators,Ct)}function ct(F,A){let S=!1;if(null!==F){if(null!==A.validator){const Ct=Ce(F);if(Array.isArray(Ct)&&Ct.length>0){const jt=Ct.filter(jn=>jn!==A.validator);jt.length!==Ct.length&&(S=!0,F.setValidators(jt))}}if(null!==A.asyncValidator){const Ct=$e(F);if(Array.isArray(Ct)&&Ct.length>0){const jt=Ct.filter(jn=>jn!==A.asyncValidator);jt.length!==Ct.length&&(S=!0,F.setAsyncValidators(jt))}}}const le=()=>{};return Ye(A._rawValidators,le),Ye(A._rawAsyncValidators,le),S}function Wt(F,A){F._pendingDirty&&F.markAsDirty(),F.setValue(F._pendingValue,{emitModelToViewChange:!1}),A.viewToModelUpdate(F._pendingValue),F._pendingChange=!1}function gn(F,A){et(F,A)}function ft(F,A){if(!F.hasOwnProperty("model"))return!1;const S=F.model;return!!S.isFirstChange()||!Object.is(A,S.currentValue)}function xt(F,A){F._syncPendingControls(),A.forEach(S=>{const le=S.control;"submit"===le.updateOn&&le._pendingChange&&(S.viewToModelUpdate(le._pendingValue),le._pendingChange=!1)})}function Kt(F,A){if(!A)return null;let S,le,Ct;return Array.isArray(A),A.forEach(jt=>{jt.constructor===C?S=jt:function Tt(F){return Object.getPrototypeOf(F.constructor)===d}(jt)?le=jt:Ct=jt}),Ct||le||S||null}const dn={provide:je,useExisting:(0,n.forwardRef)(()=>nn)},ln=(()=>Promise.resolve(null))();let nn=(()=>{class F extends je{constructor(S,le){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new n.EventEmitter,this.form=new Oe({},ue(S),Te(le))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(S){ln.then(()=>{const le=this._findContainer(S.path);S.control=le.registerControl(S.name,S.control),vn(S.control,S),S.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(S)})}getControl(S){return this.form.get(S.path)}removeControl(S){ln.then(()=>{const le=this._findContainer(S.path);le&&le.removeControl(S.name),this._directives.delete(S)})}addFormGroup(S){ln.then(()=>{const le=this._findContainer(S.path),Ct=new Oe({});gn(Ct,S),le.registerControl(S.name,Ct),Ct.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(S){ln.then(()=>{const le=this._findContainer(S.path);le&&le.removeControl(S.name)})}getFormGroup(S){return this.form.get(S.path)}updateModel(S,le){ln.then(()=>{this.form.get(S.path).setValue(le)})}setValue(S){this.control.setValue(S)}onSubmit(S){return this.submitted=!0,xt(this.form,this._directives),this.ngSubmit.emit(S),!1}onReset(){this.resetForm()}resetForm(S){this.form.reset(S),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(S){return S.pop(),S.length?this.form.get(S):this.form}}return F.\u0275fac=function(S){return new(S||F)(n.\u0275\u0275directiveInject(N,10),n.\u0275\u0275directiveInject(Y,10))},F.\u0275dir=n.\u0275\u0275defineDirective({type:F,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(S,le){1&S&&n.\u0275\u0275listener("submit",function(jt){return le.onSubmit(jt)})("reset",function(){return le.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n.\u0275\u0275ProvidersFeature([dn]),n.\u0275\u0275InheritDefinitionFeature]}),F})();function zn(F,A){const S=F.indexOf(A);S>-1&&F.splice(S,1)}function cn(F){return"object"==typeof F&&null!==F&&2===Object.keys(F).length&&"value"in F&&"disabled"in F}const On=class extends X{constructor(A=null,S,le){super(se(S),j(le,S)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(A),this._setUpdateStrategy(S),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),vt(S)&&(S.nonNullable||S.initialValueIsDefault)&&(this.defaultValue=cn(A)?A.value:A)}setValue(A,S={}){this.value=this._pendingValue=A,this._onChange.length&&!1!==S.emitModelToViewChange&&this._onChange.forEach(le=>le(this.value,!1!==S.emitViewToModelChange)),this.updateValueAndValidity(S)}patchValue(A,S={}){this.setValue(A,S)}reset(A=this.defaultValue,S={}){this._applyFormState(A),this.markAsPristine(S),this.markAsUntouched(S),this.setValue(this.value,S),this._pendingChange=!1}_updateValue(){}_anyControls(A){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(A){this._onChange.push(A)}_unregisterOnChange(A){zn(this._onChange,A)}registerOnDisabledChange(A){this._onDisabledChange.push(A)}_unregisterOnDisabledChange(A){zn(this._onDisabledChange,A)}_forEachChild(A){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(A){cn(A)?(this.value=this._pendingValue=A.value,A.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=A}},kn=On;let Nn=(()=>{class F extends je{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Xt(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return F.\u0275fac=function(){let A;return function(le){return(A||(A=n.\u0275\u0275getInheritedFactory(F)))(le||F)}}(),F.\u0275dir=n.\u0275\u0275defineDirective({type:F,features:[n.\u0275\u0275InheritDefinitionFeature]}),F})();const Ni={provide:je,useExisting:(0,n.forwardRef)(()=>Wi)};let Wi=(()=>{class F extends Nn{constructor(S,le,Ct){super(),this._parent=S,this._setValidators(le),this._setAsyncValidators(Ct)}_checkParentType(){}}return F.\u0275fac=function(S){return new(S||F)(n.\u0275\u0275directiveInject(je,5),n.\u0275\u0275directiveInject(N,10),n.\u0275\u0275directiveInject(Y,10))},F.\u0275dir=n.\u0275\u0275defineDirective({type:F,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[n.\u0275\u0275ProvidersFeature([Ni]),n.\u0275\u0275InheritDefinitionFeature]}),F})();const Ci={provide:Ie,useExisting:(0,n.forwardRef)(()=>Ki)},Gi=(()=>Promise.resolve(null))();let Ki=(()=>{class F extends Ie{constructor(S,le,Ct,jt,jn){super(),this._changeDetectorRef=jn,this.control=new On,this._registered=!1,this.update=new n.EventEmitter,this._parent=S,this._setValidators(le),this._setAsyncValidators(Ct),this.valueAccessor=Kt(0,jt)}ngOnChanges(S){if(this._checkForErrors(),!this._registered||"name"in S){if(this._registered&&(this._checkName(),this.formDirective)){const le=S.name.previousValue;this.formDirective.removeControl({name:le,path:this._getPath(le)})}this._setUpControl()}"isDisabled"in S&&this._updateDisabled(S),ft(S,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(S){this.viewModel=S,this.update.emit(S)}_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(){vn(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(S){Gi.then(()=>{var le;this.control.setValue(S,{emitViewToModelChange:!1}),null===(le=this._changeDetectorRef)||void 0===le||le.markForCheck()})}_updateDisabled(S){const le=S.isDisabled.currentValue,Ct=0!==le&&(0,n.\u0275coerceToBoolean)(le);Gi.then(()=>{var jt;Ct&&!this.control.disabled?this.control.disable():!Ct&&this.control.disabled&&this.control.enable(),null===(jt=this._changeDetectorRef)||void 0===jt||jt.markForCheck()})}_getPath(S){return this._parent?Xt(S,this._parent):[S]}}return F.\u0275fac=function(S){return new(S||F)(n.\u0275\u0275directiveInject(je,9),n.\u0275\u0275directiveInject(N,10),n.\u0275\u0275directiveInject(Y,10),n.\u0275\u0275directiveInject(p,10),n.\u0275\u0275directiveInject(n.ChangeDetectorRef,8))},F.\u0275dir=n.\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:[n.\u0275\u0275ProvidersFeature([Ci]),n.\u0275\u0275InheritDefinitionFeature,n.\u0275\u0275NgOnChangesFeature]}),F})(),cr=(()=>{class F{}return F.\u0275fac=function(S){return new(S||F)},F.\u0275dir=n.\u0275\u0275defineDirective({type:F,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),F})();const Jr={provide:p,useExisting:(0,n.forwardRef)(()=>Xn),multi:!0};let Xn=(()=>{class F extends d{writeValue(S){this.setProperty("value",null==S?"":S)}registerOnChange(S){this.onChange=le=>{S(""==le?null:parseFloat(le))}}}return F.\u0275fac=function(){let A;return function(le){return(A||(A=n.\u0275\u0275getInheritedFactory(F)))(le||F)}}(),F.\u0275dir=n.\u0275\u0275defineDirective({type:F,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(S,le){1&S&&n.\u0275\u0275listener("input",function(jt){return le.onChange(jt.target.value)})("blur",function(){return le.onTouched()})},features:[n.\u0275\u0275ProvidersFeature([Jr]),n.\u0275\u0275InheritDefinitionFeature]}),F})();const ur={provide:p,useExisting:(0,n.forwardRef)(()=>Di),multi:!0};let Li=(()=>{class F{}return F.\u0275fac=function(S){return new(S||F)},F.\u0275mod=n.\u0275\u0275defineNgModule({type:F}),F.\u0275inj=n.\u0275\u0275defineInjector({}),F})(),dr=(()=>{class F{constructor(){this._accessors=[]}add(S,le){this._accessors.push([S,le])}remove(S){for(let le=this._accessors.length-1;le>=0;--le)if(this._accessors[le][1]===S)return void this._accessors.splice(le,1)}select(S){this._accessors.forEach(le=>{this._isSameGroup(le,S)&&le[1]!==S&&le[1].fireUncheck(S.value)})}_isSameGroup(S,le){return!!S[0].control&&S[0]._parent===le._control._parent&&S[1].name===le.name}}return F.\u0275fac=function(S){return new(S||F)},F.\u0275prov=n.\u0275\u0275defineInjectable({token:F,factory:F.\u0275fac,providedIn:Li}),F})(),Di=(()=>{class F extends d{constructor(S,le,Ct,jt){super(S,le),this._registry=Ct,this._injector=jt,this.onChange=()=>{}}ngOnInit(){this._control=this._injector.get(Ie),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(S){this._state=S===this.value,this.setProperty("checked",this._state)}registerOnChange(S){this._fn=S,this.onChange=()=>{S(this.value),this._registry.select(this)}}fireUncheck(S){this.writeValue(S)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return F.\u0275fac=function(S){return new(S||F)(n.\u0275\u0275directiveInject(n.Renderer2),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(dr),n.\u0275\u0275directiveInject(n.Injector))},F.\u0275dir=n.\u0275\u0275defineDirective({type:F,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(S,le){1&S&&n.\u0275\u0275listener("change",function(){return le.onChange()})("blur",function(){return le.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[n.\u0275\u0275ProvidersFeature([ur]),n.\u0275\u0275InheritDefinitionFeature]}),F})();const Or={provide:p,useExisting:(0,n.forwardRef)(()=>Yi),multi:!0};let Yi=(()=>{class F extends d{writeValue(S){this.setProperty("value",parseFloat(S))}registerOnChange(S){this.onChange=le=>{S(""==le?null:parseFloat(le))}}}return F.\u0275fac=function(){let A;return function(le){return(A||(A=n.\u0275\u0275getInheritedFactory(F)))(le||F)}}(),F.\u0275dir=n.\u0275\u0275defineDirective({type:F,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(S,le){1&S&&n.\u0275\u0275listener("change",function(jt){return le.onChange(jt.target.value)})("input",function(jt){return le.onChange(jt.target.value)})("blur",function(){return le.onTouched()})},features:[n.\u0275\u0275ProvidersFeature([Or]),n.\u0275\u0275InheritDefinitionFeature]}),F})();const Qi=new n.InjectionToken("NgModelWithFormControlWarning"),Hr={provide:Ie,useExisting:(0,n.forwardRef)(()=>Mi)};let Mi=(()=>{class F extends Ie{constructor(S,le,Ct,jt){super(),this._ngModelWarningConfig=jt,this.update=new n.EventEmitter,this._ngModelWarningSent=!1,this._setValidators(S),this._setAsyncValidators(le),this.valueAccessor=Kt(0,Ct)}set isDisabled(S){}ngOnChanges(S){if(this._isControlChanged(S)){const le=S.form.previousValue;le&&qe(le,this,!1),vn(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}ft(S,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&qe(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(S){this.viewModel=S,this.update.emit(S)}_isControlChanged(S){return S.hasOwnProperty("form")}}return F._ngModelWarningSentOnce=!1,F.\u0275fac=function(S){return new(S||F)(n.\u0275\u0275directiveInject(N,10),n.\u0275\u0275directiveInject(Y,10),n.\u0275\u0275directiveInject(p,10),n.\u0275\u0275directiveInject(Qi,8))},F.\u0275dir=n.\u0275\u0275defineDirective({type:F,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[n.\u0275\u0275ProvidersFeature([Hr]),n.\u0275\u0275InheritDefinitionFeature,n.\u0275\u0275NgOnChangesFeature]}),F})();const fr={provide:je,useExisting:(0,n.forwardRef)(()=>Ei)};let Ei=(()=>{class F extends je{constructor(S,le){super(),this.validators=S,this.asyncValidators=le,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new n.EventEmitter,this._setValidators(S),this._setAsyncValidators(le)}ngOnChanges(S){this._checkFormPresent(),S.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(ct(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(S){const le=this.form.get(S.path);return vn(le,S),le.updateValueAndValidity({emitEvent:!1}),this.directives.push(S),le}getControl(S){return this.form.get(S.path)}removeControl(S){qe(S.control||null,S,!1),function Ut(F,A){const S=F.indexOf(A);S>-1&&F.splice(S,1)}(this.directives,S)}addFormGroup(S){this._setUpFormContainer(S)}removeFormGroup(S){this._cleanUpFormContainer(S)}getFormGroup(S){return this.form.get(S.path)}addFormArray(S){this._setUpFormContainer(S)}removeFormArray(S){this._cleanUpFormContainer(S)}getFormArray(S){return this.form.get(S.path)}updateModel(S,le){this.form.get(S.path).setValue(le)}onSubmit(S){return this.submitted=!0,xt(this.form,this.directives),this.ngSubmit.emit(S),!1}onReset(){this.resetForm()}resetForm(S){this.form.reset(S),this.submitted=!1}_updateDomValue(){this.directives.forEach(S=>{const le=S.control,Ct=this.form.get(S.path);le!==Ct&&(qe(le||null,S),(F=>F instanceof On)(Ct)&&(vn(Ct,S),S.control=Ct))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(S){const le=this.form.get(S.path);gn(le,S),le.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(S){if(this.form){const le=this.form.get(S.path);le&&function Hn(F,A){return ct(F,A)}(le,S)&&le.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){et(this.form,this),this._oldForm&&ct(this._oldForm,this)}_checkFormPresent(){}}return F.\u0275fac=function(S){return new(S||F)(n.\u0275\u0275directiveInject(N,10),n.\u0275\u0275directiveInject(Y,10))},F.\u0275dir=n.\u0275\u0275defineDirective({type:F,selectors:[["","formGroup",""]],hostBindings:function(S,le){1&S&&n.\u0275\u0275listener("submit",function(jt){return le.onSubmit(jt)})("reset",function(){return le.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n.\u0275\u0275ProvidersFeature([fr]),n.\u0275\u0275InheritDefinitionFeature,n.\u0275\u0275NgOnChangesFeature]}),F})();const Ar={provide:je,useExisting:(0,n.forwardRef)(()=>Si)};let Si=(()=>{class F extends Nn{constructor(S,le,Ct){super(),this._parent=S,this._setValidators(le),this._setAsyncValidators(Ct)}_checkParentType(){Ji(this._parent)}}return F.\u0275fac=function(S){return new(S||F)(n.\u0275\u0275directiveInject(je,13),n.\u0275\u0275directiveInject(N,10),n.\u0275\u0275directiveInject(Y,10))},F.\u0275dir=n.\u0275\u0275defineDirective({type:F,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[n.\u0275\u0275ProvidersFeature([Ar]),n.\u0275\u0275InheritDefinitionFeature]}),F})();const Zi={provide:je,useExisting:(0,n.forwardRef)(()=>ni)};let ni=(()=>{class F extends je{constructor(S,le,Ct){super(),this._parent=S,this._setValidators(le),this._setAsyncValidators(Ct)}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 Xt(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){Ji(this._parent)}}return F.\u0275fac=function(S){return new(S||F)(n.\u0275\u0275directiveInject(je,13),n.\u0275\u0275directiveInject(N,10),n.\u0275\u0275directiveInject(Y,10))},F.\u0275dir=n.\u0275\u0275defineDirective({type:F,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[n.\u0275\u0275ProvidersFeature([Zi]),n.\u0275\u0275InheritDefinitionFeature]}),F})();function Ji(F){return!(F instanceof Si||F instanceof Ei||F instanceof ni)}const ji={provide:Ie,useExisting:(0,n.forwardRef)(()=>Ii)};let Ii=(()=>{class F extends Ie{constructor(S,le,Ct,jt,jn){super(),this._ngModelWarningConfig=jn,this._added=!1,this.update=new n.EventEmitter,this._ngModelWarningSent=!1,this._parent=S,this._setValidators(le),this._setAsyncValidators(Ct),this.valueAccessor=Kt(0,jt)}set isDisabled(S){}ngOnChanges(S){this._added||this._setUpControl(),ft(S,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(S){this.viewModel=S,this.update.emit(S)}get path(){return Xt(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return F._ngModelWarningSentOnce=!1,F.\u0275fac=function(S){return new(S||F)(n.\u0275\u0275directiveInject(je,13),n.\u0275\u0275directiveInject(N,10),n.\u0275\u0275directiveInject(Y,10),n.\u0275\u0275directiveInject(p,10),n.\u0275\u0275directiveInject(Qi,8))},F.\u0275dir=n.\u0275\u0275defineDirective({type:F,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[n.\u0275\u0275ProvidersFeature([ji]),n.\u0275\u0275InheritDefinitionFeature,n.\u0275\u0275NgOnChangesFeature]}),F})();const hr={provide:p,useExisting:(0,n.forwardRef)(()=>hi),multi:!0};function Xi(F,A){return null==F?`${A}`:(A&&"object"==typeof A&&(A="Object"),`${F}: ${A}`.slice(0,50))}let hi=(()=>{class F extends d{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(S){this._compareWith=S}writeValue(S){this.value=S;const Ct=Xi(this._getOptionId(S),S);this.setProperty("value",Ct)}registerOnChange(S){this.onChange=le=>{this.value=this._getOptionValue(le),S(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(S){for(const le of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(le),S))return le;return null}_getOptionValue(S){const le=function Bi(F){return F.split(":")[0]}(S);return this._optionMap.has(le)?this._optionMap.get(le):S}}return F.\u0275fac=function(){let A;return function(le){return(A||(A=n.\u0275\u0275getInheritedFactory(F)))(le||F)}}(),F.\u0275dir=n.\u0275\u0275defineDirective({type:F,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(S,le){1&S&&n.\u0275\u0275listener("change",function(jt){return le.onChange(jt.target.value)})("blur",function(){return le.onTouched()})},inputs:{compareWith:"compareWith"},features:[n.\u0275\u0275ProvidersFeature([hr]),n.\u0275\u0275InheritDefinitionFeature]}),F})(),Vi=(()=>{class F{constructor(S,le,Ct){this._element=S,this._renderer=le,this._select=Ct,this._select&&(this.id=this._select._registerOption())}set ngValue(S){null!=this._select&&(this._select._optionMap.set(this.id,S),this._setElementValue(Xi(this.id,S)),this._select.writeValue(this._select.value))}set value(S){this._setElementValue(S),this._select&&this._select.writeValue(this._select.value)}_setElementValue(S){this._renderer.setProperty(this._element.nativeElement,"value",S)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return F.\u0275fac=function(S){return new(S||F)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.Renderer2),n.\u0275\u0275directiveInject(hi,9))},F.\u0275dir=n.\u0275\u0275defineDirective({type:F,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),F})();const pr={provide:p,useExisting:(0,n.forwardRef)(()=>pi),multi:!0};function mr(F,A){return null==F?`${A}`:("string"==typeof A&&(A=`'${A}'`),A&&"object"==typeof A&&(A="Object"),`${F}: ${A}`.slice(0,50))}let pi=(()=>{class F extends d{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(S){this._compareWith=S}writeValue(S){let le;if(this.value=S,Array.isArray(S)){const Ct=S.map(jt=>this._getOptionId(jt));le=(jt,jn)=>{jt._setSelected(Ct.indexOf(jn.toString())>-1)}}else le=(Ct,jt)=>{Ct._setSelected(!1)};this._optionMap.forEach(le)}registerOnChange(S){this.onChange=le=>{const Ct=[],jt=le.selectedOptions;if(void 0!==jt){const jn=jt;for(let Fn=0;Fn<jn.length;Fn++){const Rr=this._getOptionValue(jn[Fn].value);Ct.push(Rr)}}else{const jn=le.options;for(let Fn=0;Fn<jn.length;Fn++){const li=jn[Fn];if(li.selected){const Rr=this._getOptionValue(li.value);Ct.push(Rr)}}}this.value=Ct,S(Ct)}}_registerOption(S){const le=(this._idCounter++).toString();return this._optionMap.set(le,S),le}_getOptionId(S){for(const le of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(le)._value,S))return le;return null}_getOptionValue(S){const le=function Wn(F){return F.split(":")[0]}(S);return this._optionMap.has(le)?this._optionMap.get(le)._value:S}}return F.\u0275fac=function(){let A;return function(le){return(A||(A=n.\u0275\u0275getInheritedFactory(F)))(le||F)}}(),F.\u0275dir=n.\u0275\u0275defineDirective({type:F,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(S,le){1&S&&n.\u0275\u0275listener("change",function(jt){return le.onChange(jt.target)})("blur",function(){return le.onTouched()})},inputs:{compareWith:"compareWith"},features:[n.\u0275\u0275ProvidersFeature([pr]),n.\u0275\u0275InheritDefinitionFeature]}),F})(),Oi=(()=>{class F{constructor(S,le,Ct){this._element=S,this._renderer=le,this._select=Ct,this._select&&(this.id=this._select._registerOption(this))}set ngValue(S){null!=this._select&&(this._value=S,this._setElementValue(mr(this.id,S)),this._select.writeValue(this._select.value))}set value(S){this._select?(this._value=S,this._setElementValue(mr(this.id,S)),this._select.writeValue(this._select.value)):this._setElementValue(S)}_setElementValue(S){this._renderer.setProperty(this._element.nativeElement,"value",S)}_setSelected(S){this._renderer.setProperty(this._element.nativeElement,"selected",S)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return F.\u0275fac=function(S){return new(S||F)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.Renderer2),n.\u0275\u0275directiveInject(pi,9))},F.\u0275dir=n.\u0275\u0275defineDirective({type:F,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),F})();function gr(F){return"number"==typeof F?F:parseInt(F,10)}function Pr(F){return"number"==typeof F?F:parseFloat(F)}let bn=(()=>{class F{constructor(){this._validator=ie}ngOnChanges(S){if(this.inputName in S){const le=this.normalizeInput(S[this.inputName].currentValue);this._enabled=this.enabled(le),this._validator=this._enabled?this.createValidator(le):ie,this._onChange&&this._onChange()}}validate(S){return this._validator(S)}registerOnValidatorChange(S){this._onChange=S}enabled(S){return null!=S}}return F.\u0275fac=function(S){return new(S||F)},F.\u0275dir=n.\u0275\u0275defineDirective({type:F,features:[n.\u0275\u0275NgOnChangesFeature]}),F})();const vr={provide:N,useExisting:(0,n.forwardRef)(()=>mi),multi:!0};let mi=(()=>{class F extends bn{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=S=>Pr(S),this.createValidator=S=>J(S)}}return F.\u0275fac=function(){let A;return function(le){return(A||(A=n.\u0275\u0275getInheritedFactory(F)))(le||F)}}(),F.\u0275dir=n.\u0275\u0275defineDirective({type:F,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(S,le){2&S&&n.\u0275\u0275attribute("max",le._enabled?le.max:null)},inputs:{max:"max"},features:[n.\u0275\u0275ProvidersFeature([vr]),n.\u0275\u0275InheritDefinitionFeature]}),F})();const In={provide:N,useExisting:(0,n.forwardRef)(()=>Tn),multi:!0};let Tn=(()=>{class F extends bn{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=S=>Pr(S),this.createValidator=S=>$(S)}}return F.\u0275fac=function(){let A;return function(le){return(A||(A=n.\u0275\u0275getInheritedFactory(F)))(le||F)}}(),F.\u0275dir=n.\u0275\u0275defineDirective({type:F,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(S,le){2&S&&n.\u0275\u0275attribute("min",le._enabled?le.min:null)},inputs:{min:"min"},features:[n.\u0275\u0275ProvidersFeature([In]),n.\u0275\u0275InheritDefinitionFeature]}),F})();const qn={provide:N,useExisting:(0,n.forwardRef)(()=>gi),multi:!0},er={provide:N,useExisting:(0,n.forwardRef)(()=>Qn),multi:!0};let gi=(()=>{class F extends bn{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=n.\u0275coerceToBoolean,this.createValidator=S=>te}enabled(S){return S}}return F.\u0275fac=function(){let A;return function(le){return(A||(A=n.\u0275\u0275getInheritedFactory(F)))(le||F)}}(),F.\u0275dir=n.\u0275\u0275defineDirective({type:F,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(S,le){2&S&&n.\u0275\u0275attribute("required",le._enabled?"":null)},inputs:{required:"required"},features:[n.\u0275\u0275ProvidersFeature([qn]),n.\u0275\u0275InheritDefinitionFeature]}),F})(),Qn=(()=>{class F extends gi{constructor(){super(...arguments),this.createValidator=S=>he}}return F.\u0275fac=function(){let A;return function(le){return(A||(A=n.\u0275\u0275getInheritedFactory(F)))(le||F)}}(),F.\u0275dir=n.\u0275\u0275defineDirective({type:F,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(S,le){2&S&&n.\u0275\u0275attribute("required",le._enabled?"":null)},features:[n.\u0275\u0275ProvidersFeature([er]),n.\u0275\u0275InheritDefinitionFeature]}),F})();const x={provide:N,useExisting:(0,n.forwardRef)(()=>ne),multi:!0};let ne=(()=>{class F extends bn{constructor(){super(...arguments),this.inputName="email",this.normalizeInput=n.\u0275coerceToBoolean,this.createValidator=S=>Fe}enabled(S){return S}}return F.\u0275fac=function(){let A;return function(le){return(A||(A=n.\u0275\u0275getInheritedFactory(F)))(le||F)}}(),F.\u0275dir=n.\u0275\u0275defineDirective({type:F,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[n.\u0275\u0275ProvidersFeature([x]),n.\u0275\u0275InheritDefinitionFeature]}),F})();const k={provide:N,useExisting:(0,n.forwardRef)(()=>fe),multi:!0};let fe=(()=>{class F extends bn{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=S=>gr(S),this.createValidator=S=>it(S)}}return F.\u0275fac=function(){let A;return function(le){return(A||(A=n.\u0275\u0275getInheritedFactory(F)))(le||F)}}(),F.\u0275dir=n.\u0275\u0275defineDirective({type:F,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(S,le){2&S&&n.\u0275\u0275attribute("minlength",le._enabled?le.minlength:null)},inputs:{minlength:"minlength"},features:[n.\u0275\u0275ProvidersFeature([k]),n.\u0275\u0275InheritDefinitionFeature]}),F})();const Xe={provide:N,useExisting:(0,n.forwardRef)(()=>Et),multi:!0};let Et=(()=>{class F extends bn{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=S=>gr(S),this.createValidator=S=>be(S)}}return F.\u0275fac=function(){let A;return function(le){return(A||(A=n.\u0275\u0275getInheritedFactory(F)))(le||F)}}(),F.\u0275dir=n.\u0275\u0275defineDirective({type:F,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(S,le){2&S&&n.\u0275\u0275attribute("maxlength",le._enabled?le.maxlength:null)},inputs:{maxlength:"maxlength"},features:[n.\u0275\u0275ProvidersFeature([Xe]),n.\u0275\u0275InheritDefinitionFeature]}),F})();const gt={provide:N,useExisting:(0,n.forwardRef)(()=>Bt),multi:!0};let Bt=(()=>{class F extends bn{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=S=>S,this.createValidator=S=>ke(S)}}return F.\u0275fac=function(){let A;return function(le){return(A||(A=n.\u0275\u0275getInheritedFactory(F)))(le||F)}}(),F.\u0275dir=n.\u0275\u0275defineDirective({type:F,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(S,le){2&S&&n.\u0275\u0275attribute("pattern",le._enabled?le.pattern:null)},inputs:{pattern:"pattern"},features:[n.\u0275\u0275ProvidersFeature([gt]),n.\u0275\u0275InheritDefinitionFeature]}),F})(),fn=(()=>{class F{}return F.\u0275fac=function(S){return new(S||F)},F.\u0275mod=n.\u0275\u0275defineNgModule({type:F}),F.\u0275inj=n.\u0275\u0275defineInjector({imports:[Li]}),F})(),$n=(()=>{class F{}return F.\u0275fac=function(S){return new(S||F)},F.\u0275mod=n.\u0275\u0275defineNgModule({type:F}),F.\u0275inj=n.\u0275\u0275defineInjector({imports:[fn]}),F})(),Dn=(()=>{class F{static withConfig(S){return{ngModule:F,providers:[{provide:Qi,useValue:S.warnOnNgModelWithFormControl}]}}}return F.\u0275fac=function(S){return new(S||F)},F.\u0275mod=n.\u0275\u0275defineNgModule({type:F}),F.\u0275inj=n.\u0275\u0275defineInjector({imports:[fn]}),F})();class Rn extends X{constructor(A,S,le){super(se(S),j(le,S)),this.controls=A,this._initObservables(),this._setUpdateStrategy(S),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(A){return this.controls[this._adjustIndex(A)]}push(A,S={}){this.controls.push(A),this._registerControl(A),this.updateValueAndValidity({emitEvent:S.emitEvent}),this._onCollectionChange()}insert(A,S,le={}){this.controls.splice(A,0,S),this._registerControl(S),this.updateValueAndValidity({emitEvent:le.emitEvent})}removeAt(A,S={}){let le=this._adjustIndex(A);le<0&&(le=0),this.controls[le]&&this.controls[le]._registerOnCollectionChange(()=>{}),this.controls.splice(le,1),this.updateValueAndValidity({emitEvent:S.emitEvent})}setControl(A,S,le={}){let Ct=this._adjustIndex(A);Ct<0&&(Ct=0),this.controls[Ct]&&this.controls[Ct]._registerOnCollectionChange(()=>{}),this.controls.splice(Ct,1),S&&(this.controls.splice(Ct,0,S),this._registerControl(S)),this.updateValueAndValidity({emitEvent:le.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(A,S={}){bt(this,0,A),A.forEach((le,Ct)=>{Ge(this,!1,Ct),this.at(Ct).setValue(le,{onlySelf:!0,emitEvent:S.emitEvent})}),this.updateValueAndValidity(S)}patchValue(A,S={}){null!=A&&(A.forEach((le,Ct)=>{this.at(Ct)&&this.at(Ct).patchValue(le,{onlySelf:!0,emitEvent:S.emitEvent})}),this.updateValueAndValidity(S))}reset(A=[],S={}){this._forEachChild((le,Ct)=>{le.reset(A[Ct],{onlySelf:!0,emitEvent:S.emitEvent})}),this._updatePristine(S),this._updateTouched(S),this.updateValueAndValidity(S)}getRawValue(){return this.controls.map(A=>A.getRawValue())}clear(A={}){this.controls.length<1||(this._forEachChild(S=>S._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:A.emitEvent}))}_adjustIndex(A){return A<0?A+this.length:A}_syncPendingControls(){let A=this.controls.reduce((S,le)=>!!le._syncPendingControls()||S,!1);return A&&this.updateValueAndValidity({onlySelf:!0}),A}_forEachChild(A){this.controls.forEach((S,le)=>{A(S,le)})}_updateValue(){this.value=this.controls.filter(A=>A.enabled||this.disabled).map(A=>A.value)}_anyControls(A){return this.controls.some(S=>S.enabled&&A(S))}_setUpControls(){this._forEachChild(A=>this._registerControl(A))}_allControlsDisabled(){for(const A of this.controls)if(A.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(A){A.setParent(this),A._registerOnCollectionChange(this._onCollectionChange)}_find(A){var S;return null!==(S=this.at(A))&&void 0!==S?S:null}}const St=Rn;function $i(F){return!!F&&(void 0!==F.asyncValidators||void 0!==F.validators||void 0!==F.updateOn)}let ai=(()=>{class F{constructor(){this.useNonNullable=!1}get nonNullable(){const S=new F;return S.useNonNullable=!0,S}group(S,le=null){const Ct=this._reduceControls(S);let jt={};return $i(le)?jt=le:null!==le&&(jt.validators=le.validator,jt.asyncValidators=le.asyncValidator),new Oe(Ct,jt)}control(S,le,Ct){let jt={};return this.useNonNullable?($i(le)?jt=le:(jt.validators=le,jt.asyncValidators=Ct),new On(S,Object.assign(Object.assign({},jt),{nonNullable:!0}))):new On(S,le,Ct)}array(S,le,Ct){const jt=S.map(jn=>this._createControl(jn));return new Rn(jt,le,Ct)}_reduceControls(S){const le={};return Object.keys(S).forEach(Ct=>{le[Ct]=this._createControl(S[Ct])}),le}_createControl(S){return S instanceof On||S instanceof X?S:Array.isArray(S)?this.control(S[0],S.length>1?S[1]:null,S.length>2?S[2]:null):this.control(S)}}return F.\u0275fac=function(S){return new(S||F)},F.\u0275prov=n.\u0275\u0275defineInjectable({token:F,factory:F.\u0275fac,providedIn:Dn}),F})(),xn=(()=>{class F{}return F.\u0275fac=function(S){return new(S||F)},F.\u0275prov=n.\u0275\u0275defineInjectable({token:F,factory:function(){return(0,n.inject)(ai).nonNullable},providedIn:Dn}),F})(),tr=(()=>{class F extends ai{group(S,le=null){return super.group(S,le)}control(S,le,Ct){return super.control(S,le,Ct)}array(S,le,Ct){return super.array(S,le,Ct)}}return F.\u0275fac=function(){let A;return function(le){return(A||(A=n.\u0275\u0275getInheritedFactory(F)))(le||F)}}(),F.\u0275prov=n.\u0275\u0275defineInjectable({token:F,factory:F.\u0275fac,providedIn:Dn}),F})();const Hi=new n.Version("14.1.3")},7423:(z,o,a)=>{"use strict";a.r(o),a.d(o,{MatAnchor:()=>b,MatButton:()=>f,MatButtonModule:()=>v});var n=a(5e3),h=a(508),_=a(5664);const u=["mat-button",""],r=["*"],p=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],y=(0,h.mixinColor)((0,h.mixinDisabled)((0,h.mixinDisableRipple)(class{constructor(m){this._elementRef=m}})));let f=(()=>{class m extends y{constructor(M,O,P){super(M),this._focusMonitor=O,this._animationMode=P,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const N of p)this._hasHostAttributes(N)&&this._getHostElement().classList.add(N);M.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(M,O){M?this._focusMonitor.focusVia(this._getHostElement(),M,O):this._getHostElement().focus(O)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...M){return M.some(O=>this._getHostElement().hasAttribute(O))}}return m.\u0275fac=function(M){return new(M||m)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(_.tE),n.\u0275\u0275directiveInject(n.ANIMATION_MODULE_TYPE,8))},m.\u0275cmp=n.\u0275\u0275defineComponent({type:m,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(M,O){if(1&M&&n.\u0275\u0275viewQuery(h.MatRipple,5),2&M){let P;n.\u0275\u0275queryRefresh(P=n.\u0275\u0275loadQuery())&&(O.ripple=P.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(M,O){2&M&&(n.\u0275\u0275attribute("disabled",O.disabled||null),n.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===O._animationMode)("mat-button-disabled",O.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[n.\u0275\u0275InheritDefinitionFeature],attrs:u,ngContentSelectors:r,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(M,O){1&M&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275elementStart(0,"span",0),n.\u0275\u0275projection(1),n.\u0275\u0275elementEnd(),n.\u0275\u0275element(2,"span",1)(3,"span",2)),2&M&&(n.\u0275\u0275advance(2),n.\u0275\u0275classProp("mat-button-ripple-round",O.isRoundButton||O.isIconButton),n.\u0275\u0275property("matRippleDisabled",O._isRippleDisabled())("matRippleCentered",O.isIconButton)("matRippleTrigger",O._getHostElement()))},dependencies:[h.MatRipple],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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-fab._mat-animation-noopable{transition:none !important;animation:none !important}.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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.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}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.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}"],encapsulation:2,changeDetection:0}),m})(),b=(()=>{class m extends f{constructor(M,O,P,N){super(O,M,P),this._ngZone=N,this._haltDisabledEvents=Y=>{this.disabled&&(Y.preventDefault(),Y.stopImmediatePropagation())}}ngAfterViewInit(){super.ngAfterViewInit(),this._ngZone?this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)}):this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}}return m.\u0275fac=function(M){return new(M||m)(n.\u0275\u0275directiveInject(_.tE),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.ANIMATION_MODULE_TYPE,8),n.\u0275\u0275directiveInject(n.NgZone,8))},m.\u0275cmp=n.\u0275\u0275defineComponent({type:m,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(M,O){2&M&&(n.\u0275\u0275attribute("tabindex",O.disabled?-1:O.tabIndex)("disabled",O.disabled||null)("aria-disabled",O.disabled.toString()),n.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===O._animationMode)("mat-button-disabled",O.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[n.\u0275\u0275InheritDefinitionFeature],attrs:u,ngContentSelectors:r,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(M,O){1&M&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275elementStart(0,"span",0),n.\u0275\u0275projection(1),n.\u0275\u0275elementEnd(),n.\u0275\u0275element(2,"span",1)(3,"span",2)),2&M&&(n.\u0275\u0275advance(2),n.\u0275\u0275classProp("mat-button-ripple-round",O.isRoundButton||O.isIconButton),n.\u0275\u0275property("matRippleDisabled",O._isRippleDisabled())("matRippleCentered",O.isIconButton)("matRippleTrigger",O._getHostElement()))},dependencies:[h.MatRipple],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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-fab._mat-animation-noopable{transition:none !important;animation:none !important}.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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.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}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.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}"],encapsulation:2,changeDetection:0}),m})(),v=(()=>{class m{}return m.\u0275fac=function(M){return new(M||m)},m.\u0275mod=n.\u0275\u0275defineNgModule({type:m}),m.\u0275inj=n.\u0275\u0275defineInjector({imports:[h.MatRippleModule,h.MatCommonModule,h.MatCommonModule]}),m})()},9417:(z,o,a)=>{"use strict";a.r(o),a.d(o,{MAT_CHIPS_DEFAULT_OPTIONS:()=>mt,MAT_CHIP_AVATAR:()=>Ue,MAT_CHIP_REMOVE:()=>_e,MAT_CHIP_TRAILING_ICON:()=>dt,MatChip:()=>Ne,MatChipAvatar:()=>ye,MatChipInput:()=>At,MatChipList:()=>Je,MatChipListChange:()=>rt,MatChipRemove:()=>tt,MatChipSelectionChange:()=>We,MatChipTrailingIcon:()=>de,MatChipsModule:()=>ve});var n=a(1159),h=a(5e3),_=a(508),u=a(3191),r=a(9808),c=a(7579),d=a(6451),p=a(5698),y=a(2722),f=a(8675),b=a(925),v=a(5664),m=a(449),C=a(3075);a(1777);let re=(()=>{class se{}return se.\u0275fac=function(j){return new(j||se)},se.\u0275dir=h.\u0275\u0275defineDirective({type:se}),se})();var ze=a(226);const Be=["*"];class We{constructor(ae,j,Me=!1){this.source=ae,this.selected=j,this.isUserInput=Me}}const _e=new h.InjectionToken("MatChipRemove"),Ue=new h.InjectionToken("MatChipAvatar"),dt=new h.InjectionToken("MatChipTrailingIcon");class xe{constructor(ae){this._elementRef=ae}}const W=(0,_.mixinTabIndex)((0,_.mixinColor)((0,_.mixinDisableRipple)(xe),"primary"),-1);let ye=(()=>{class se{}return se.\u0275fac=function(j){return new(j||se)},se.\u0275dir=h.\u0275\u0275defineDirective({type:se,selectors:[["mat-chip-avatar"],["","matChipAvatar",""]],hostAttrs:[1,"mat-chip-avatar"],features:[h.\u0275\u0275ProvidersFeature([{provide:Ue,useExisting:se}])]}),se})(),de=(()=>{class se{}return se.\u0275fac=function(j){return new(j||se)},se.\u0275dir=h.\u0275\u0275defineDirective({type:se,selectors:[["mat-chip-trailing-icon"],["","matChipTrailingIcon",""]],hostAttrs:[1,"mat-chip-trailing-icon"],features:[h.\u0275\u0275ProvidersFeature([{provide:dt,useExisting:se}])]}),se})(),Ne=(()=>{class se extends W{constructor(j,Me,vt,Ge,bt,X,Oe,at){super(j),this._ngZone=Me,this._changeDetectorRef=bt,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this.role="option",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 h.EventEmitter,this.destroyed=new h.EventEmitter,this.removed=new h.EventEmitter,this._addHostClassName(),this._chipRippleTarget=X.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new _.RippleRenderer(this,Me,this._chipRippleTarget,vt),this._chipRipple.setupTriggerEvents(j),this.rippleConfig=Ge||{},this._animationsDisabled="NoopAnimations"===Oe,this.tabIndex=null!=at&&parseInt(at)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(j){const Me=(0,u.Ig)(j);Me!==this._selected&&(this._selected=Me,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(j){this._value=j}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(j){this._selectable=(0,u.Ig)(j)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(j){this._disabled=(0,u.Ig)(j)}get removable(){return this._removable}set removable(j){this._removable=(0,u.Ig)(j)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const j="mat-basic-chip",Me=this._elementRef.nativeElement;Me.hasAttribute(j)||Me.tagName.toLowerCase()===j?Me.classList.add(j):Me.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(j=!1){return this._selected=!this.selected,this._dispatchSelectionChange(j),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(j){this.disabled&&j.preventDefault()}_handleKeydown(j){if(!this.disabled)switch(j.keyCode){case n.yY:case n.ZH:this.remove(),j.preventDefault();break;case n.L_:this.selectable&&this.toggleSelected(!0),j.preventDefault()}}_blur(){this._ngZone.onStable.pipe((0,p.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(j=!1){this.selectionChange.emit({source:this,isUserInput:j,selected:this._selected})}}return se.\u0275fac=function(j){return new(j||se)(h.\u0275\u0275directiveInject(h.ElementRef),h.\u0275\u0275directiveInject(h.NgZone),h.\u0275\u0275directiveInject(b.t4),h.\u0275\u0275directiveInject(_.MAT_RIPPLE_GLOBAL_OPTIONS,8),h.\u0275\u0275directiveInject(h.ChangeDetectorRef),h.\u0275\u0275directiveInject(r.DOCUMENT),h.\u0275\u0275directiveInject(h.ANIMATION_MODULE_TYPE,8),h.\u0275\u0275injectAttribute("tabindex"))},se.\u0275dir=h.\u0275\u0275defineDirective({type:se,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(j,Me,vt){if(1&j&&(h.\u0275\u0275contentQuery(vt,Ue,5),h.\u0275\u0275contentQuery(vt,dt,5),h.\u0275\u0275contentQuery(vt,_e,5)),2&j){let Ge;h.\u0275\u0275queryRefresh(Ge=h.\u0275\u0275loadQuery())&&(Me.avatar=Ge.first),h.\u0275\u0275queryRefresh(Ge=h.\u0275\u0275loadQuery())&&(Me.trailingIcon=Ge.first),h.\u0275\u0275queryRefresh(Ge=h.\u0275\u0275loadQuery())&&(Me.removeIcon=Ge.first)}},hostAttrs:[1,"mat-chip","mat-focus-indicator"],hostVars:15,hostBindings:function(j,Me){1&j&&h.\u0275\u0275listener("click",function(Ge){return Me._handleClick(Ge)})("keydown",function(Ge){return Me._handleKeydown(Ge)})("focus",function(){return Me.focus()})("blur",function(){return Me._blur()}),2&j&&(h.\u0275\u0275attribute("tabindex",Me.disabled?null:Me.tabIndex)("role",Me.role)("disabled",Me.disabled||null)("aria-disabled",Me.disabled.toString())("aria-selected",Me.ariaSelected),h.\u0275\u0275classProp("mat-chip-selected",Me.selected)("mat-chip-with-avatar",Me.avatar)("mat-chip-with-trailing-icon",Me.trailingIcon||Me.removeIcon)("mat-chip-disabled",Me.disabled)("_mat-animation-noopable",Me._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[h.\u0275\u0275InheritDefinitionFeature]}),se})(),tt=(()=>{class se{constructor(j,Me){this._parentChip=j,"BUTTON"===Me.nativeElement.nodeName&&Me.nativeElement.setAttribute("type","button")}_handleClick(j){const Me=this._parentChip;Me.removable&&!Me.disabled&&Me.remove(),j.stopPropagation(),j.preventDefault()}}return se.\u0275fac=function(j){return new(j||se)(h.\u0275\u0275directiveInject(Ne),h.\u0275\u0275directiveInject(h.ElementRef))},se.\u0275dir=h.\u0275\u0275defineDirective({type:se,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(j,Me){1&j&&h.\u0275\u0275listener("click",function(Ge){return Me._handleClick(Ge)})},features:[h.\u0275\u0275ProvidersFeature([{provide:_e,useExisting:se}])]}),se})();const mt=new h.InjectionToken("mat-chips-default-options");let Ft=0,At=(()=>{class se{constructor(j,Me){this._elementRef=j,this._defaultOptions=Me,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new h.EventEmitter,this.placeholder="",this.id="mat-chip-list-input-"+Ft++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement}set chipList(j){j&&(this._chipList=j,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(j){this._addOnBlur=(0,u.Ig)(j)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(j){this._disabled=(0,u.Ig)(j)}get empty(){return!this.inputElement.value}ngOnChanges(){this._chipList.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(j){if(j){if(j.keyCode===n.Mf&&!(0,n.Vb)(j,"shiftKey")&&this._chipList._allowFocusEscape(),j.keyCode===n.ZH&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void j.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(j)}_keyup(j){!this._focusLastChipOnBackspace&&j.keyCode===n.ZH&&this.empty&&(this._focusLastChipOnBackspace=!0,j.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(j){!this.inputElement.value&&!!j&&this._chipList._keydown(j),(!j||this._isSeparatorKey(j))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),null==j||j.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(j){this.inputElement.focus(j)}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}_isSeparatorKey(j){return!(0,n.Vb)(j)&&new Set(this.separatorKeyCodes).has(j.keyCode)}}return se.\u0275fac=function(j){return new(j||se)(h.\u0275\u0275directiveInject(h.ElementRef),h.\u0275\u0275directiveInject(mt))},se.\u0275dir=h.\u0275\u0275defineDirective({type:se,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(j,Me){1&j&&h.\u0275\u0275listener("keydown",function(Ge){return Me._keydown(Ge)})("keyup",function(Ge){return Me._keyup(Ge)})("blur",function(){return Me._blur()})("focus",function(){return Me._focus()})("input",function(){return Me._onInput()}),2&j&&(h.\u0275\u0275hostProperty("id",Me.id),h.\u0275\u0275attribute("disabled",Me.disabled||null)("placeholder",Me.placeholder||null)("aria-invalid",Me._chipList&&Me._chipList.ngControl?Me._chipList.ngControl.invalid:null)("aria-required",Me._chipList&&Me._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:[h.\u0275\u0275NgOnChangesFeature]}),se})();const Yt=(0,_.mixinErrorState)(class{constructor(se,ae,j,Me){this._defaultErrorStateMatcher=se,this._parentForm=ae,this._parentFormGroup=j,this.ngControl=Me,this.stateChanges=new c.x}});let Nt=0;class rt{constructor(ae,j){this.source=ae,this.value=j}}let Je=(()=>{class se extends Yt{constructor(j,Me,vt,Ge,bt,X,Oe){super(X,Ge,bt,Oe),this._elementRef=j,this._changeDetectorRef=Me,this._dir=vt,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new c.x,this._uid="mat-chip-list-"+Nt++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(at,Dt)=>at===Dt,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new h.EventEmitter,this.valueChange=new h.EventEmitter,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){var j,Me;return this.multiple?(null===(j=this._selectionModel)||void 0===j?void 0:j.selected)||[]:null===(Me=this._selectionModel)||void 0===Me?void 0:Me.selected[0]}get role(){return this._explicitRole?this._explicitRole:this.empty?null:"listbox"}set role(j){this._explicitRole=j}get multiple(){return this._multiple}set multiple(j){this._multiple=(0,u.Ig)(j),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(j){this._compareWith=j,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(j){this.writeValue(j),this._value=j}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){var j,Me,vt,Ge;return null!==(Ge=null!==(j=this._required)&&void 0!==j?j:null===(vt=null===(Me=this.ngControl)||void 0===Me?void 0:Me.control)||void 0===vt?void 0:vt.hasValidator(C.Validators.required))&&void 0!==Ge&&Ge}set required(j){this._required=(0,u.Ig)(j),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(j){this._placeholder=j,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(j){this._disabled=(0,u.Ig)(j),this._syncChipsState()}get selectable(){return this._selectable}set selectable(j){this._selectable=(0,u.Ig)(j),this._syncChipsState()}set tabIndex(j){this._userTabIndex=j,this._tabIndex=j}get chipSelectionChanges(){return(0,d.T)(...this.chips.map(j=>j.selectionChange))}get chipFocusChanges(){return(0,d.T)(...this.chips.map(j=>j._onFocus))}get chipBlurChanges(){return(0,d.T)(...this.chips.map(j=>j._onBlur))}get chipRemoveChanges(){return(0,d.T)(...this.chips.map(j=>j.destroyed))}ngAfterContentInit(){this._keyManager=new v.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(j=>this._keyManager.withHorizontalOrientation(j)),this._keyManager.tabOut.pipe((0,y.R)(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe((0,f.O)(null),(0,y.R)(this._destroyed)).subscribe(()=>{(this.disabled||!this.selectable)&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new m.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(j){this._chipInput=j,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",j.id)}setDescribedByIds(j){j.length?this._elementRef.nativeElement.setAttribute("aria-describedby",j.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}writeValue(j){this.chips&&this._setSelectionByValue(j,!1)}registerOnChange(j){this._onChange=j}registerOnTouched(j){this._onTouched=j}setDisabledState(j){this.disabled=j,this.stateChanges.next()}onContainerClick(j){this._originatesFromChip(j)||this.focus()}focus(j){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(j),this.stateChanges.next()))}_focusInput(j){this._chipInput&&this._chipInput.focus(j)}_keydown(j){const Me=j.target;Me&&Me.classList.contains("mat-chip")&&(this._keyManager.onKeydown(j),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const j=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(j)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(j){return j>=0&&j<this.chips.length}_setSelectionByValue(j,Me=!0){if(this._clearSelection(),this.chips.forEach(vt=>vt.deselect()),Array.isArray(j))j.forEach(vt=>this._selectValue(vt,Me)),this._sortValues();else{const vt=this._selectValue(j,Me);vt&&Me&&this._keyManager.setActiveItem(vt)}}_selectValue(j,Me=!0){const vt=this.chips.find(Ge=>null!=Ge.value&&this._compareWith(Ge.value,j));return vt&&(Me?vt.selectViaInteraction():vt.select(),this._selectionModel.select(vt)),vt}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(j){this._selectionModel.clear(),this.chips.forEach(Me=>{Me!==j&&Me.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(j=>{j.selected&&this._selectionModel.select(j)}),this.stateChanges.next())}_propagateChanges(j){let Me=null;Me=Array.isArray(this.selected)?this.selected.map(vt=>vt.value):this.selected?this.selected.value:j,this._value=Me,this.change.emit(new rt(this,Me)),this.valueChange.emit(Me),this._onChange(Me),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(j=>{j.source.selected?this._selectionModel.select(j.source):this._selectionModel.deselect(j.source),this.multiple||this.chips.forEach(Me=>{!this._selectionModel.isSelected(Me)&&Me.selected&&Me.deselect()}),j.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(j=>{let Me=this.chips.toArray().indexOf(j.chip);this._isValidIndex(Me)&&this._keyManager.updateActiveItem(Me),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(j=>{const Me=j.chip,vt=this.chips.toArray().indexOf(j.chip);this._isValidIndex(vt)&&Me._hasFocus&&(this._lastDestroyedChipIndex=vt)})}_originatesFromChip(j){let Me=j.target;for(;Me&&Me!==this._elementRef.nativeElement;){if(Me.classList.contains("mat-chip"))return!0;Me=Me.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(j=>j._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(j=>{j._chipListDisabled=this._disabled,j._chipListMultiple=this.multiple,j.chipListSelectable=this._selectable})}}return se.\u0275fac=function(j){return new(j||se)(h.\u0275\u0275directiveInject(h.ElementRef),h.\u0275\u0275directiveInject(h.ChangeDetectorRef),h.\u0275\u0275directiveInject(ze.Is,8),h.\u0275\u0275directiveInject(C.NgForm,8),h.\u0275\u0275directiveInject(C.FormGroupDirective,8),h.\u0275\u0275directiveInject(_.ErrorStateMatcher),h.\u0275\u0275directiveInject(C.NgControl,10))},se.\u0275cmp=h.\u0275\u0275defineComponent({type:se,selectors:[["mat-chip-list"]],contentQueries:function(j,Me,vt){if(1&j&&h.\u0275\u0275contentQuery(vt,Ne,5),2&j){let Ge;h.\u0275\u0275queryRefresh(Ge=h.\u0275\u0275loadQuery())&&(Me.chips=Ge)}},hostAttrs:[1,"mat-chip-list"],hostVars:14,hostBindings:function(j,Me){1&j&&h.\u0275\u0275listener("focus",function(){return Me.focus()})("blur",function(){return Me._blur()})("keydown",function(Ge){return Me._keydown(Ge)}),2&j&&(h.\u0275\u0275hostProperty("id",Me._uid),h.\u0275\u0275attribute("tabindex",Me.disabled?null:Me._tabIndex)("aria-required",Me.role?Me.required:null)("aria-disabled",Me.disabled.toString())("aria-invalid",Me.errorState)("aria-multiselectable",Me.multiple)("role",Me.role)("aria-orientation",Me.ariaOrientation),h.\u0275\u0275classProp("mat-chip-list-disabled",Me.disabled)("mat-chip-list-invalid",Me.errorState)("mat-chip-list-required",Me.required))},inputs:{role:"role",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],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:[h.\u0275\u0275ProvidersFeature([{provide:re,useExisting:se}]),h.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:Be,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(j,Me){1&j&&(h.\u0275\u0275projectionDef(),h.\u0275\u0275elementStart(0,"div",0),h.\u0275\u0275projection(1),h.\u0275\u0275elementEnd())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-chip::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.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-standard-chip._mat-animation-noopable{transition:none !important;animation:none !important}.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.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;transform:translateZ(0)}.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}'],encapsulation:2,changeDetection:0}),se})(),ve=(()=>{class se{}return se.\u0275fac=function(j){return new(j||se)},se.\u0275mod=h.\u0275\u0275defineNgModule({type:se}),se.\u0275inj=h.\u0275\u0275defineInjector({providers:[_.ErrorStateMatcher,{provide:mt,useValue:{separatorKeyCodes:[n.K5]}}],imports:[_.MatCommonModule]}),se})()},508:(z,o,a)=>{"use strict";a.r(o),a.d(o,{AnimationCurves:()=>N,AnimationDurations:()=>Y,DateAdapter:()=>V,ErrorStateMatcher:()=>$e,MATERIAL_SANITY_CHECKS:()=>G,MAT_DATE_FORMATS:()=>H,MAT_DATE_LOCALE:()=>oe,MAT_DATE_LOCALE_FACTORY:()=>me,MAT_NATIVE_DATE_FORMATS:()=>ge,MAT_OPTGROUP:()=>ye,MAT_OPTION_PARENT_COMPONENT:()=>Ue,MAT_RIPPLE_GLOBAL_OPTIONS:()=>we,MatCommonModule:()=>$,MatLine:()=>lt,MatLineModule:()=>ut,MatNativeDateModule:()=>Pe,MatOptgroup:()=>de,MatOption:()=>Ft,MatOptionModule:()=>Nt,MatOptionSelectionChange:()=>tt,MatPseudoCheckbox:()=>We,MatPseudoCheckboxModule:()=>_e,MatRipple:()=>ze,MatRippleModule:()=>Be,NativeDateAdapter:()=>ue,NativeDateModule:()=>Te,RippleRef:()=>He,RippleRenderer:()=>Ke,ShowOnDirtyErrorStateMatcher:()=>Ce,VERSION:()=>P,_MatOptgroupBase:()=>W,_MatOptionBase:()=>mt,_countGroupLabelsBeforeOption:()=>At,_getOptionScrollPosition:()=>Yt,defaultRippleAnimationConfig:()=>Ie,mixinColor:()=>it,mixinDisableRipple:()=>be,mixinDisabled:()=>Fe,mixinErrorState:()=>ie,mixinInitialized:()=>Ae,mixinTabIndex:()=>ke,setLines:()=>yt});var n=a(5e3),h=a(226),u=a(9808),r=a(925),c=a(5664),d=a(3191),p=a(8306),y=a(7579),f=a(8675),b=a(1159);const v=["*",[["mat-option"],["ng-container"]]],m=["*","mat-option, ng-container"];function C(rt,Je){if(1&rt&&n.\u0275\u0275element(0,"mat-pseudo-checkbox",4),2&rt){const Ee=n.\u0275\u0275nextContext();n.\u0275\u0275property("state",Ee.selected?"checked":"unchecked")("disabled",Ee.disabled)}}function M(rt,Je){if(1&rt&&(n.\u0275\u0275elementStart(0,"span",5),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&rt){const Ee=n.\u0275\u0275nextContext();n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1("(",Ee.group.label,")")}}const O=["*"],P=new n.Version("14.1.3");let N=(()=>{class rt{}return rt.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",rt.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",rt.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",rt.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",rt})(),Y=(()=>{class rt{}return rt.COMPLEX="375ms",rt.ENTERING="225ms",rt.EXITING="195ms",rt})();const G=new n.InjectionToken("mat-sanity-checks",{providedIn:"root",factory:function U(){return!0}});let $=(()=>{class rt{constructor(Ee,ve,se){this._sanityChecks=ve,this._document=se,this._hasDoneGlobalChecks=!1,Ee._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(Ee){return!(0,r.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[Ee])}}return rt.\u0275fac=function(Ee){return new(Ee||rt)(n.\u0275\u0275inject(c.qm),n.\u0275\u0275inject(G,8),n.\u0275\u0275inject(u.DOCUMENT))},rt.\u0275mod=n.\u0275\u0275defineNgModule({type:rt}),rt.\u0275inj=n.\u0275\u0275defineInjector({imports:[h.vT,h.vT]}),rt})();function Fe(rt){return class extends rt{constructor(...Je){super(...Je),this._disabled=!1}get disabled(){return this._disabled}set disabled(Je){this._disabled=(0,d.Ig)(Je)}}}function it(rt,Je){return class extends rt{constructor(...Ee){super(...Ee),this.defaultColor=Je,this.color=Je}get color(){return this._color}set color(Ee){const ve=Ee||this.defaultColor;ve!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),ve&&this._elementRef.nativeElement.classList.add(`mat-${ve}`),this._color=ve)}}}function be(rt){return class extends rt{constructor(...Je){super(...Je),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(Je){this._disableRipple=(0,d.Ig)(Je)}}}function ke(rt,Je=0){return class extends rt{constructor(...Ee){super(...Ee),this._tabIndex=Je,this.defaultTabIndex=Je}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(Ee){this._tabIndex=null!=Ee?(0,d.su)(Ee):this.defaultTabIndex}}}function ie(rt){return class extends rt{constructor(...Je){super(...Je),this.errorState=!1}updateErrorState(){const Je=this.errorState,ae=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);ae!==Je&&(this.errorState=ae,this.stateChanges.next())}}}function Ae(rt){return class extends rt{constructor(...Je){super(...Je),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new p.y(Ee=>{this._isInitialized?this._notifySubscriber(Ee):this._pendingSubscribers.push(Ee)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(Je){Je.next(),Je.complete()}}}const oe=new n.InjectionToken("MAT_DATE_LOCALE",{providedIn:"root",factory:me});function me(){return(0,n.inject)(n.LOCALE_ID)}class V{constructor(){this._localeChanges=new y.x,this.localeChanges=this._localeChanges}getValidDateOrNull(Je){return this.isDateInstance(Je)&&this.isValid(Je)?Je:null}deserialize(Je){return null==Je||this.isDateInstance(Je)&&this.isValid(Je)?Je:this.invalid()}setLocale(Je){this.locale=Je,this._localeChanges.next()}compareDate(Je,Ee){return this.getYear(Je)-this.getYear(Ee)||this.getMonth(Je)-this.getMonth(Ee)||this.getDate(Je)-this.getDate(Ee)}sameDate(Je,Ee){if(Je&&Ee){let ve=this.isValid(Je),se=this.isValid(Ee);return ve&&se?!this.compareDate(Je,Ee):ve==se}return Je==Ee}clampDate(Je,Ee,ve){return Ee&&this.compareDate(Je,Ee)<0?Ee:ve&&this.compareDate(Je,ve)>0?ve:Je}}const H=new n.InjectionToken("mat-date-formats"),re=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function B(rt,Je){const Ee=Array(rt);for(let ve=0;ve<rt;ve++)Ee[ve]=Je(ve);return Ee}let ue=(()=>{class rt extends V{constructor(Ee,ve){super(),this.useUtcForDisplay=!1,super.setLocale(Ee)}getYear(Ee){return Ee.getFullYear()}getMonth(Ee){return Ee.getMonth()}getDate(Ee){return Ee.getDate()}getDayOfWeek(Ee){return Ee.getDay()}getMonthNames(Ee){const ve=new Intl.DateTimeFormat(this.locale,{month:Ee,timeZone:"utc"});return B(12,se=>this._format(ve,new Date(2017,se,1)))}getDateNames(){const Ee=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return B(31,ve=>this._format(Ee,new Date(2017,0,ve+1)))}getDayOfWeekNames(Ee){const ve=new Intl.DateTimeFormat(this.locale,{weekday:Ee,timeZone:"utc"});return B(7,se=>this._format(ve,new Date(2017,0,se+1)))}getYearName(Ee){const ve=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(ve,Ee)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(Ee){return this.getDate(this._createDateWithOverflow(this.getYear(Ee),this.getMonth(Ee)+1,0))}clone(Ee){return new Date(Ee.getTime())}createDate(Ee,ve,se){let ae=this._createDateWithOverflow(Ee,ve,se);return ae.getMonth(),ae}today(){return new Date}parse(Ee,ve){return"number"==typeof Ee?new Date(Ee):Ee?new Date(Date.parse(Ee)):null}format(Ee,ve){if(!this.isValid(Ee))throw Error("NativeDateAdapter: Cannot format invalid date.");const se=new Intl.DateTimeFormat(this.locale,Object.assign(Object.assign({},ve),{timeZone:"utc"}));return this._format(se,Ee)}addCalendarYears(Ee,ve){return this.addCalendarMonths(Ee,12*ve)}addCalendarMonths(Ee,ve){let se=this._createDateWithOverflow(this.getYear(Ee),this.getMonth(Ee)+ve,this.getDate(Ee));return this.getMonth(se)!=((this.getMonth(Ee)+ve)%12+12)%12&&(se=this._createDateWithOverflow(this.getYear(se),this.getMonth(se),0)),se}addCalendarDays(Ee,ve){return this._createDateWithOverflow(this.getYear(Ee),this.getMonth(Ee),this.getDate(Ee)+ve)}toIso8601(Ee){return[Ee.getUTCFullYear(),this._2digit(Ee.getUTCMonth()+1),this._2digit(Ee.getUTCDate())].join("-")}deserialize(Ee){if("string"==typeof Ee){if(!Ee)return null;if(re.test(Ee)){let ve=new Date(Ee);if(this.isValid(ve))return ve}}return super.deserialize(Ee)}isDateInstance(Ee){return Ee instanceof Date}isValid(Ee){return!isNaN(Ee.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(Ee,ve,se){const ae=new Date;return ae.setFullYear(Ee,ve,se),ae.setHours(0,0,0,0),ae}_2digit(Ee){return("00"+Ee).slice(-2)}_format(Ee,ve){const se=new Date;return se.setUTCFullYear(ve.getFullYear(),ve.getMonth(),ve.getDate()),se.setUTCHours(ve.getHours(),ve.getMinutes(),ve.getSeconds(),ve.getMilliseconds()),Ee.format(se)}}return rt.\u0275fac=function(Ee){return new(Ee||rt)(n.\u0275\u0275inject(oe,8),n.\u0275\u0275inject(r.t4))},rt.\u0275prov=n.\u0275\u0275defineInjectable({token:rt,factory:rt.\u0275fac}),rt})();const ge={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let Te=(()=>{class rt{}return rt.\u0275fac=function(Ee){return new(Ee||rt)},rt.\u0275mod=n.\u0275\u0275defineNgModule({type:rt}),rt.\u0275inj=n.\u0275\u0275defineInjector({providers:[{provide:V,useClass:ue}]}),rt})(),Pe=(()=>{class rt{}return rt.\u0275fac=function(Ee){return new(Ee||rt)},rt.\u0275mod=n.\u0275\u0275defineNgModule({type:rt}),rt.\u0275inj=n.\u0275\u0275defineInjector({providers:[{provide:H,useValue:ge}],imports:[Te]}),rt})(),Ce=(()=>{class rt{isErrorState(Ee,ve){return!!(Ee&&Ee.invalid&&(Ee.dirty||ve&&ve.submitted))}}return rt.\u0275fac=function(Ee){return new(Ee||rt)},rt.\u0275prov=n.\u0275\u0275defineInjectable({token:rt,factory:rt.\u0275fac}),rt})(),$e=(()=>{class rt{isErrorState(Ee,ve){return!!(Ee&&Ee.invalid&&(Ee.touched||ve&&ve.submitted))}}return rt.\u0275fac=function(Ee){return new(Ee||rt)},rt.\u0275prov=n.\u0275\u0275defineInjectable({token:rt,factory:rt.\u0275fac,providedIn:"root"}),rt})(),lt=(()=>{class rt{}return rt.\u0275fac=function(Ee){return new(Ee||rt)},rt.\u0275dir=n.\u0275\u0275defineDirective({type:rt,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),rt})();function yt(rt,Je,Ee="mat"){rt.changes.pipe((0,f.O)(rt)).subscribe(({length:ve})=>{_t(Je,`${Ee}-2-line`,!1),_t(Je,`${Ee}-3-line`,!1),_t(Je,`${Ee}-multi-line`,!1),2===ve||3===ve?_t(Je,`${Ee}-${ve}-line`,!0):ve>3&&_t(Je,`${Ee}-multi-line`,!0)})}function _t(rt,Je,Ee){rt.nativeElement.classList.toggle(Je,Ee)}let ut=(()=>{class rt{}return rt.\u0275fac=function(Ee){return new(Ee||rt)},rt.\u0275mod=n.\u0275\u0275defineNgModule({type:rt}),rt.\u0275inj=n.\u0275\u0275defineInjector({imports:[$,$]}),rt})();class He{constructor(Je,Ee,ve,se=!1){this._renderer=Je,this.element=Ee,this.config=ve,this._animationForciblyDisabledThroughCss=se,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Ie={enterDuration:225,exitDuration:150},pe=(0,r.i$)({passive:!0}),Qe=["mousedown","touchstart"],Ve=["mouseup","mouseleave","touchend","touchcancel"];class Ke{constructor(Je,Ee,ve,se){this._target=Je,this._ngZone=Ee,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,se.isBrowser&&(this._containerElement=(0,d.fI)(ve))}fadeInRipple(Je,Ee,ve={}){const se=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),ae=Object.assign(Object.assign({},Ie),ve.animation);ve.centered&&(Je=se.left+se.width/2,Ee=se.top+se.height/2);const j=ve.radius||function K(rt,Je,Ee){const ve=Math.max(Math.abs(rt-Ee.left),Math.abs(rt-Ee.right)),se=Math.max(Math.abs(Je-Ee.top),Math.abs(Je-Ee.bottom));return Math.sqrt(ve*ve+se*se)}(Je,Ee,se),Me=Je-se.left,vt=Ee-se.top,Ge=ae.enterDuration,bt=document.createElement("div");bt.classList.add("mat-ripple-element"),bt.style.left=Me-j+"px",bt.style.top=vt-j+"px",bt.style.height=2*j+"px",bt.style.width=2*j+"px",null!=ve.color&&(bt.style.backgroundColor=ve.color),bt.style.transitionDuration=`${Ge}ms`,this._containerElement.appendChild(bt);const X=window.getComputedStyle(bt),at=X.transitionDuration,Dt="none"===X.transitionProperty||"0s"===at||"0s, 0s"===at,Ht=new He(this,bt,ve,Dt);bt.style.transform="scale3d(1, 1, 1)",Ht.state=0,ve.persistent||(this._mostRecentTransientRipple=Ht);let rn=null;return!Dt&&(Ge||ae.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const Xt=()=>this._finishRippleTransition(Ht),vn=()=>this._destroyRipple(Ht);bt.addEventListener("transitionend",Xt),bt.addEventListener("transitioncancel",vn),rn={onTransitionEnd:Xt,onTransitionCancel:vn}}),this._activeRipples.set(Ht,rn),(Dt||!Ge)&&this._finishRippleTransition(Ht),Ht}fadeOutRipple(Je){if(2===Je.state||3===Je.state)return;const Ee=Je.element,ve=Object.assign(Object.assign({},Ie),Je.config.animation);Ee.style.transitionDuration=`${ve.exitDuration}ms`,Ee.style.opacity="0",Je.state=2,(Je._animationForciblyDisabledThroughCss||!ve.exitDuration)&&this._finishRippleTransition(Je)}fadeOutAll(){this._getActiveRipples().forEach(Je=>Je.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(Je=>{Je.config.persistent||Je.fadeOut()})}setupTriggerEvents(Je){const Ee=(0,d.fI)(Je);!Ee||Ee===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=Ee,this._registerEvents(Qe))}handleEvent(Je){"mousedown"===Je.type?this._onMousedown(Je):"touchstart"===Je.type?this._onTouchStart(Je):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Ve),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(Je){0===Je.state?this._startFadeOutTransition(Je):2===Je.state&&this._destroyRipple(Je)}_startFadeOutTransition(Je){const Ee=Je===this._mostRecentTransientRipple,{persistent:ve}=Je.config;Je.state=1,!ve&&(!Ee||!this._isPointerDown)&&Je.fadeOut()}_destroyRipple(Je){var Ee;const ve=null!==(Ee=this._activeRipples.get(Je))&&void 0!==Ee?Ee:null;this._activeRipples.delete(Je),this._activeRipples.size||(this._containerRect=null),Je===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),Je.state=3,null!==ve&&(Je.element.removeEventListener("transitionend",ve.onTransitionEnd),Je.element.removeEventListener("transitioncancel",ve.onTransitionCancel)),Je.element.remove()}_onMousedown(Je){const Ee=(0,c.X6)(Je),ve=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!Ee&&!ve&&(this._isPointerDown=!0,this.fadeInRipple(Je.clientX,Je.clientY,this._target.rippleConfig))}_onTouchStart(Je){if(!this._target.rippleDisabled&&!(0,c.yG)(Je)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const Ee=Je.changedTouches;for(let ve=0;ve<Ee.length;ve++)this.fadeInRipple(Ee[ve].clientX,Ee[ve].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._getActiveRipples().forEach(Je=>{!Je.config.persistent&&(1===Je.state||Je.config.terminateOnPointerUp&&0===Je.state)&&Je.fadeOut()}))}_registerEvents(Je){this._ngZone.runOutsideAngular(()=>{Je.forEach(Ee=>{this._triggerElement.addEventListener(Ee,this,pe)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(Qe.forEach(Je=>{this._triggerElement.removeEventListener(Je,this,pe)}),this._pointerUpEventsRegistered&&Ve.forEach(Je=>{this._triggerElement.removeEventListener(Je,this,pe)}))}}const we=new n.InjectionToken("mat-ripple-global-options");let ze=(()=>{class rt{constructor(Ee,ve,se,ae,j){this._elementRef=Ee,this._animationMode=j,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=ae||{},this._rippleRenderer=new Ke(this,ve,Ee,se)}get disabled(){return this._disabled}set disabled(Ee){Ee&&this.fadeOutAllNonPersistent(),this._disabled=Ee,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(Ee){this._trigger=Ee,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(Ee,ve=0,se){return"number"==typeof Ee?this._rippleRenderer.fadeInRipple(Ee,ve,Object.assign(Object.assign({},this.rippleConfig),se)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),Ee))}}return rt.\u0275fac=function(Ee){return new(Ee||rt)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.NgZone),n.\u0275\u0275directiveInject(r.t4),n.\u0275\u0275directiveInject(we,8),n.\u0275\u0275directiveInject(n.ANIMATION_MODULE_TYPE,8))},rt.\u0275dir=n.\u0275\u0275defineDirective({type:rt,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(Ee,ve){2&Ee&&n.\u0275\u0275classProp("mat-ripple-unbounded",ve.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"]}),rt})(),Be=(()=>{class rt{}return rt.\u0275fac=function(Ee){return new(Ee||rt)},rt.\u0275mod=n.\u0275\u0275defineNgModule({type:rt}),rt.\u0275inj=n.\u0275\u0275defineInjector({imports:[$,$]}),rt})(),We=(()=>{class rt{constructor(Ee){this._animationMode=Ee,this.state="unchecked",this.disabled=!1}}return rt.\u0275fac=function(Ee){return new(Ee||rt)(n.\u0275\u0275directiveInject(n.ANIMATION_MODULE_TYPE,8))},rt.\u0275cmp=n.\u0275\u0275defineComponent({type:rt,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(Ee,ve){2&Ee&&n.\u0275\u0275classProp("mat-pseudo-checkbox-indeterminate","indeterminate"===ve.state)("mat-pseudo-checkbox-checked","checked"===ve.state)("mat-pseudo-checkbox-disabled",ve.disabled)("_mat-animation-noopable","NoopAnimations"===ve._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(Ee,ve){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}'],encapsulation:2,changeDetection:0}),rt})(),_e=(()=>{class rt{}return rt.\u0275fac=function(Ee){return new(Ee||rt)},rt.\u0275mod=n.\u0275\u0275defineNgModule({type:rt}),rt.\u0275inj=n.\u0275\u0275defineInjector({imports:[$]}),rt})();const Ue=new n.InjectionToken("MAT_OPTION_PARENT_COMPONENT"),dt=Fe(class{});let xe=0,W=(()=>{class rt extends dt{constructor(Ee){var ve;super(),this._labelId="mat-optgroup-label-"+xe++,this._inert=null!==(ve=null==Ee?void 0:Ee.inertGroups)&&void 0!==ve&&ve}}return rt.\u0275fac=function(Ee){return new(Ee||rt)(n.\u0275\u0275directiveInject(Ue,8))},rt.\u0275dir=n.\u0275\u0275defineDirective({type:rt,inputs:{label:"label"},features:[n.\u0275\u0275InheritDefinitionFeature]}),rt})();const ye=new n.InjectionToken("MatOptgroup");let de=(()=>{class rt extends W{}return rt.\u0275fac=function(){let Je;return function(ve){return(Je||(Je=n.\u0275\u0275getInheritedFactory(rt)))(ve||rt)}}(),rt.\u0275cmp=n.\u0275\u0275defineComponent({type:rt,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-optgroup"],hostVars:5,hostBindings:function(Ee,ve){2&Ee&&(n.\u0275\u0275attribute("role",ve._inert?null:"group")("aria-disabled",ve._inert?null:ve.disabled.toString())("aria-labelledby",ve._inert?null:ve._labelId),n.\u0275\u0275classProp("mat-optgroup-disabled",ve.disabled))},inputs:{disabled:"disabled"},exportAs:["matOptgroup"],features:[n.\u0275\u0275ProvidersFeature([{provide:ye,useExisting:rt}]),n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:m,decls:4,vars:2,consts:[["aria-hidden","true",1,"mat-optgroup-label",3,"id"]],template:function(Ee,ve){1&Ee&&(n.\u0275\u0275projectionDef(v),n.\u0275\u0275elementStart(0,"span",0),n.\u0275\u0275text(1),n.\u0275\u0275projection(2),n.\u0275\u0275elementEnd(),n.\u0275\u0275projection(3,1)),2&Ee&&(n.\u0275\u0275property("id",ve._labelId),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1("",ve.label," "))},styles:[".mat-optgroup-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}"],encapsulation:2,changeDetection:0}),rt})(),Ne=0;class tt{constructor(Je,Ee=!1){this.source=Je,this.isUserInput=Ee}}let mt=(()=>{class rt{constructor(Ee,ve,se,ae){this._element=Ee,this._changeDetectorRef=ve,this._parent=se,this.group=ae,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Ne++,this.onSelectionChange=new n.EventEmitter,this._stateChanges=new y.x}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(Ee){this._disabled=(0,d.Ig)(Ee)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(Ee,ve){const se=this._getHostElement();"function"==typeof se.focus&&se.focus(ve)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(Ee){(Ee.keyCode===b.K5||Ee.keyCode===b.L_)&&!(0,b.Vb)(Ee)&&(this._selectViaInteraction(),Ee.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const Ee=this.viewValue;Ee!==this._mostRecentViewValue&&(this._mostRecentViewValue=Ee,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(Ee=!1){this.onSelectionChange.emit(new tt(this,Ee))}}return rt.\u0275fac=function(Ee){n.\u0275\u0275invalidFactory()},rt.\u0275dir=n.\u0275\u0275defineDirective({type:rt,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),rt})(),Ft=(()=>{class rt extends mt{constructor(Ee,ve,se,ae){super(Ee,ve,se,ae)}}return rt.\u0275fac=function(Ee){return new(Ee||rt)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.ChangeDetectorRef),n.\u0275\u0275directiveInject(Ue,8),n.\u0275\u0275directiveInject(ye,8))},rt.\u0275cmp=n.\u0275\u0275defineComponent({type:rt,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(Ee,ve){1&Ee&&n.\u0275\u0275listener("click",function(){return ve._selectViaInteraction()})("keydown",function(ae){return ve._handleKeydown(ae)}),2&Ee&&(n.\u0275\u0275hostProperty("id",ve.id),n.\u0275\u0275attribute("tabindex",ve._getTabIndex())("aria-selected",ve._getAriaSelected())("aria-disabled",ve.disabled.toString()),n.\u0275\u0275classProp("mat-selected",ve.selected)("mat-option-multiple",ve.multiple)("mat-active",ve.active)("mat-option-disabled",ve.disabled))},exportAs:["matOption"],features:[n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:O,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(Ee,ve){1&Ee&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275template(0,C,1,2,"mat-pseudo-checkbox",0),n.\u0275\u0275elementStart(1,"span",1),n.\u0275\u0275projection(2),n.\u0275\u0275elementEnd(),n.\u0275\u0275template(3,M,2,1,"span",2),n.\u0275\u0275element(4,"div",3)),2&Ee&&(n.\u0275\u0275property("ngIf",ve.multiple),n.\u0275\u0275advance(3),n.\u0275\u0275property("ngIf",ve.group&&ve.group._inert),n.\u0275\u0275advance(1),n.\u0275\u0275property("matRippleTrigger",ve._getHostElement())("matRippleDisabled",ve.disabled||ve.disableRipple))},dependencies:[ze,u.NgIf,We],styles:['.mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.mat-option.mat-active::before{content:""}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{right:auto;left:16px}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}'],encapsulation:2,changeDetection:0}),rt})();function At(rt,Je,Ee){if(Ee.length){let ve=Je.toArray(),se=Ee.toArray(),ae=0;for(let j=0;j<rt+1;j++)ve[j].group&&ve[j].group===se[ae]&&ae++;return ae}return 0}function Yt(rt,Je,Ee,ve){return rt<Ee?rt:rt+Je>Ee+ve?Math.max(0,rt-ve+Je):Ee}let Nt=(()=>{class rt{}return rt.\u0275fac=function(Ee){return new(Ee||rt)},rt.\u0275mod=n.\u0275\u0275defineNgModule({type:rt}),rt.\u0275inj=n.\u0275\u0275defineInjector({imports:[Be,u.CommonModule,$,_e]}),rt})()},9694:(z,o,a)=>{"use strict";a.r(o),a.d(o,{MAT_DIALOG_DATA:()=>Ce,MAT_DIALOG_DEFAULT_OPTIONS:()=>$e,MAT_DIALOG_SCROLL_STRATEGY:()=>lt,MAT_DIALOG_SCROLL_STRATEGY_FACTORY:()=>yt,MAT_DIALOG_SCROLL_STRATEGY_PROVIDER:()=>ut,MAT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY:()=>_t,MatDialog:()=>je,MatDialogActions:()=>K,MatDialogClose:()=>Qe,MatDialogConfig:()=>B,MatDialogContainer:()=>ge,MatDialogContent:()=>Ke,MatDialogModule:()=>ze,MatDialogRef:()=>Te,MatDialogTitle:()=>Ve,_MatDialogBase:()=>Ie,_MatDialogContainerBase:()=>ue,_closeDialogVia:()=>Pe,matDialogAnimations:()=>re});var n=a(925),h=a(7429),_=a(9808),u=a(5e3),r=a(5664),c=a(1314),d=a(1159),p=a(7579),y=a(8306),f=a(8421);function b(Be){return new y.y(We=>{(0,f.Xf)(Be()).subscribe(We)})}var v=a(9646),m=a(226),C=a(8675);function M(Be,We){}class O{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let N=(()=>{class Be extends h.en{constructor(_e,Ue,dt,xe,W,ye,de,Ne){super(),this._elementRef=_e,this._focusTrapFactory=Ue,this._config=xe,this._interactivityChecker=W,this._ngZone=ye,this._overlayRef=de,this._focusMonitor=Ne,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=tt=>{this._portalOutlet.hasAttached();const mt=this._portalOutlet.attachDomPortal(tt);return this._contentAttached(),mt},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=dt}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(_e){this._portalOutlet.hasAttached();const Ue=this._portalOutlet.attachComponentPortal(_e);return this._contentAttached(),Ue}attachTemplatePortal(_e){this._portalOutlet.hasAttached();const Ue=this._portalOutlet.attachTemplatePortal(_e);return this._contentAttached(),Ue}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(_e,Ue){this._interactivityChecker.isFocusable(_e)||(_e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const dt=()=>{_e.removeEventListener("blur",dt),_e.removeEventListener("mousedown",dt),_e.removeAttribute("tabindex")};_e.addEventListener("blur",dt),_e.addEventListener("mousedown",dt)})),_e.focus(Ue)}_focusByCssSelector(_e,Ue){let dt=this._elementRef.nativeElement.querySelector(_e);dt&&this._forceFocus(dt,Ue)}_trapFocus(){const _e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||_e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(Ue=>{Ue||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 _e=this._config.restoreFocus;let Ue=null;if("string"==typeof _e?Ue=this._document.querySelector(_e):"boolean"==typeof _e?Ue=_e?this._elementFocusedBeforeDialogWasOpened:null:_e&&(Ue=_e),this._config.restoreFocus&&Ue&&"function"==typeof Ue.focus){const dt=(0,n.ht)(),xe=this._elementRef.nativeElement;(!dt||dt===this._document.body||dt===xe||xe.contains(dt))&&(this._focusMonitor?(this._focusMonitor.focusVia(Ue,this._closeInteractionType),this._closeInteractionType=null):Ue.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const _e=this._elementRef.nativeElement,Ue=(0,n.ht)();return _e===Ue||_e.contains(Ue)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,n.ht)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return Be.\u0275fac=function(_e){return new(_e||Be)(u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(r.qV),u.\u0275\u0275directiveInject(_.DOCUMENT,8),u.\u0275\u0275directiveInject(O),u.\u0275\u0275directiveInject(r.ic),u.\u0275\u0275directiveInject(u.NgZone),u.\u0275\u0275directiveInject(c.Iu),u.\u0275\u0275directiveInject(r.tE))},Be.\u0275cmp=u.\u0275\u0275defineComponent({type:Be,selectors:[["cdk-dialog-container"]],viewQuery:function(_e,Ue){if(1&_e&&u.\u0275\u0275viewQuery(h.Pl,7),2&_e){let dt;u.\u0275\u0275queryRefresh(dt=u.\u0275\u0275loadQuery())&&(Ue._portalOutlet=dt.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(_e,Ue){2&_e&&u.\u0275\u0275attribute("id",Ue._config.id||null)("role",Ue._config.role)("aria-modal",Ue._config.ariaModal)("aria-labelledby",Ue._config.ariaLabel?null:Ue._ariaLabelledBy)("aria-label",Ue._config.ariaLabel)("aria-describedby",Ue._config.ariaDescribedBy||null)},features:[u.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(_e,Ue){1&_e&&u.\u0275\u0275template(0,M,0,0,"ng-template",0)},dependencies:[h.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),Be})();class Y{constructor(We,_e){this.overlayRef=We,this.config=_e,this.closed=new p.x,this.disableClose=_e.disableClose,this.backdropClick=We.backdropClick(),this.keydownEvents=We.keydownEvents(),this.outsidePointerEvents=We.outsidePointerEvents(),this.id=_e.id,this.keydownEvents.subscribe(Ue=>{Ue.keyCode===d.hY&&!this.disableClose&&!(0,d.Vb)(Ue)&&(Ue.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(We,_e){if(this.containerInstance){const Ue=this.closed;this.containerInstance._closeInteractionType=(null==_e?void 0:_e.focusOrigin)||"program",this.overlayRef.dispose(),Ue.next(We),Ue.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(We="",_e=""){return this.overlayRef.updateSize({width:We,height:_e}),this}addPanelClass(We){return this.overlayRef.addPanelClass(We),this}removePanelClass(We){return this.overlayRef.removePanelClass(We),this}}const U=new u.InjectionToken("DialogScrollStrategy"),G=new u.InjectionToken("DialogData"),$=new u.InjectionToken("DefaultDialogConfig"),te={provide:U,deps:[c.aV],useFactory:function J(Be){return()=>Be.scrollStrategies.block()}};let he=0,Fe=(()=>{class Be{constructor(_e,Ue,dt,xe,W,ye){this._overlay=_e,this._injector=Ue,this._defaultOptions=dt,this._parentDialog=xe,this._overlayContainer=W,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new p.x,this._afterOpenedAtThisLevel=new p.x,this._ariaHiddenElements=new Map,this.afterAllClosed=b(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,C.O)(void 0))),this._scrollStrategy=ye}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(_e,Ue){const dt=this._defaultOptions||new O;(Ue=Object.assign(Object.assign({},dt),Ue)).id=Ue.id||"cdk-dialog-"+he++,Ue.id&&this.getDialogById(Ue.id);const xe=this._getOverlayConfig(Ue),W=this._overlay.create(xe),ye=new Y(W,Ue),de=this._attachContainer(W,ye,Ue);return ye.containerInstance=de,this._attachDialogContent(_e,ye,de,Ue),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(ye),ye.closed.subscribe(()=>this._removeOpenDialog(ye,!0)),this.afterOpened.next(ye),ye}closeAll(){it(this.openDialogs,_e=>_e.close())}getDialogById(_e){return this.openDialogs.find(Ue=>Ue.id===_e)}ngOnDestroy(){it(this._openDialogsAtThisLevel,_e=>{!1===_e.config.closeOnDestroy&&this._removeOpenDialog(_e,!1)}),it(this._openDialogsAtThisLevel,_e=>_e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(_e){const Ue=new c.X_({positionStrategy:_e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:_e.scrollStrategy||this._scrollStrategy(),panelClass:_e.panelClass,hasBackdrop:_e.hasBackdrop,direction:_e.direction,minWidth:_e.minWidth,minHeight:_e.minHeight,maxWidth:_e.maxWidth,maxHeight:_e.maxHeight,width:_e.width,height:_e.height,disposeOnNavigation:_e.closeOnNavigation});return _e.backdropClass&&(Ue.backdropClass=_e.backdropClass),Ue}_attachContainer(_e,Ue,dt){var xe;const W=dt.injector||(null===(xe=dt.viewContainerRef)||void 0===xe?void 0:xe.injector),ye=[{provide:O,useValue:dt},{provide:Y,useValue:Ue},{provide:c.Iu,useValue:_e}];let de;dt.container?"function"==typeof dt.container?de=dt.container:(de=dt.container.type,ye.push(...dt.container.providers(dt))):de=N;const Ne=new h.C5(de,dt.viewContainerRef,u.Injector.create({parent:W||this._injector,providers:ye}),dt.componentFactoryResolver);return _e.attach(Ne).instance}_attachDialogContent(_e,Ue,dt,xe){if(_e instanceof u.TemplateRef){const W=this._createInjector(xe,Ue,dt,void 0);let ye={$implicit:xe.data,dialogRef:Ue};xe.templateContext&&(ye=Object.assign(Object.assign({},ye),"function"==typeof xe.templateContext?xe.templateContext():xe.templateContext)),dt.attachTemplatePortal(new h.UE(_e,null,ye,W))}else{const W=this._createInjector(xe,Ue,dt,this._injector),ye=dt.attachComponentPortal(new h.C5(_e,xe.viewContainerRef,W,xe.componentFactoryResolver));Ue.componentInstance=ye.instance}}_createInjector(_e,Ue,dt,xe){var W;const ye=_e.injector||(null===(W=_e.viewContainerRef)||void 0===W?void 0:W.injector),de=[{provide:G,useValue:_e.data},{provide:Y,useValue:Ue}];return _e.providers&&("function"==typeof _e.providers?de.push(..._e.providers(Ue,_e,dt)):de.push(..._e.providers)),_e.direction&&(!ye||!ye.get(m.Is,null,u.InjectFlags.Optional))&&de.push({provide:m.Is,useValue:{value:_e.direction,change:(0,v.of)()}}),u.Injector.create({parent:ye||xe,providers:de})}_removeOpenDialog(_e,Ue){const dt=this.openDialogs.indexOf(_e);dt>-1&&(this.openDialogs.splice(dt,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((xe,W)=>{xe?W.setAttribute("aria-hidden",xe):W.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),Ue&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const _e=this._overlayContainer.getContainerElement();if(_e.parentElement){const Ue=_e.parentElement.children;for(let dt=Ue.length-1;dt>-1;dt--){const xe=Ue[dt];xe!==_e&&"SCRIPT"!==xe.nodeName&&"STYLE"!==xe.nodeName&&!xe.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(xe,xe.getAttribute("aria-hidden")),xe.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const _e=this._parentDialog;return _e?_e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return Be.\u0275fac=function(_e){return new(_e||Be)(u.\u0275\u0275inject(c.aV),u.\u0275\u0275inject(u.Injector),u.\u0275\u0275inject($,8),u.\u0275\u0275inject(Be,12),u.\u0275\u0275inject(c.Xj),u.\u0275\u0275inject(U))},Be.\u0275prov=u.\u0275\u0275defineInjectable({token:Be,factory:Be.\u0275fac}),Be})();function it(Be,We){let _e=Be.length;for(;_e--;)We(Be[_e])}let be=(()=>{class Be{}return Be.\u0275fac=function(_e){return new(_e||Be)},Be.\u0275mod=u.\u0275\u0275defineNgModule({type:Be}),Be.\u0275inj=u.\u0275\u0275defineInjector({providers:[Fe,te],imports:[c.U8,h.eL,r.rt,h.eL]}),Be})();var ke=a(508),ie=a(6451),Ae=a(9300),oe=a(5698),me=a(1777);function V(Be,We){}const H={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},re={dialogContainer:(0,me.X$)("dialogContainer",[(0,me.SB)("void, exit",(0,me.oB)({opacity:0,transform:"scale(0.7)"})),(0,me.SB)("enter",(0,me.oB)({transform:"none"})),(0,me.eR)("* => enter",(0,me.ru)([(0,me.jt)("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",(0,me.oB)({transform:"none",opacity:1})),(0,me.IO)("@*",(0,me.pV)(),{optional:!0})]),H),(0,me.eR)("* => void, * => exit",(0,me.ru)([(0,me.jt)("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",(0,me.oB)({opacity:0})),(0,me.IO)("@*",(0,me.pV)(),{optional:!0})]),H)])};class B{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.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=H.params.enterAnimationDuration,this.exitAnimationDuration=H.params.exitAnimationDuration}}let ue=(()=>{class Be extends N{constructor(_e,Ue,dt,xe,W,ye,de,Ne){super(_e,Ue,dt,xe,W,ye,de,Ne),this._animationStateChanged=new u.EventEmitter}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(_e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:_e})}}return Be.\u0275fac=function(_e){return new(_e||Be)(u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(r.qV),u.\u0275\u0275directiveInject(_.DOCUMENT,8),u.\u0275\u0275directiveInject(B),u.\u0275\u0275directiveInject(r.ic),u.\u0275\u0275directiveInject(u.NgZone),u.\u0275\u0275directiveInject(c.Iu),u.\u0275\u0275directiveInject(r.tE))},Be.\u0275cmp=u.\u0275\u0275defineComponent({type:Be,selectors:[["ng-component"]],features:[u.\u0275\u0275InheritDefinitionFeature],decls:0,vars:0,template:function(_e,Ue){},encapsulation:2}),Be})(),ge=(()=>{class Be extends ue{constructor(_e,Ue,dt,xe,W,ye,de,Ne,tt){super(_e,Ue,dt,xe,W,ye,de,tt),this._changeDetectorRef=Ne,this._state="enter"}_onAnimationDone({toState:_e,totalTime:Ue}){"enter"===_e?this._openAnimationDone(Ue):"exit"===_e&&this._animationStateChanged.next({state:"closed",totalTime:Ue})}_onAnimationStart({toState:_e,totalTime:Ue}){"enter"===_e?this._animationStateChanged.next({state:"opening",totalTime:Ue}):("exit"===_e||"void"===_e)&&this._animationStateChanged.next({state:"closing",totalTime:Ue})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||H.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||H.params.exitAnimationDuration}}}}return Be.\u0275fac=function(_e){return new(_e||Be)(u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(r.qV),u.\u0275\u0275directiveInject(_.DOCUMENT,8),u.\u0275\u0275directiveInject(B),u.\u0275\u0275directiveInject(r.ic),u.\u0275\u0275directiveInject(u.NgZone),u.\u0275\u0275directiveInject(c.Iu),u.\u0275\u0275directiveInject(u.ChangeDetectorRef),u.\u0275\u0275directiveInject(r.tE))},Be.\u0275cmp=u.\u0275\u0275defineComponent({type:Be,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(_e,Ue){1&_e&&u.\u0275\u0275syntheticHostListener("@dialogContainer.start",function(xe){return Ue._onAnimationStart(xe)})("@dialogContainer.done",function(xe){return Ue._onAnimationDone(xe)}),2&_e&&(u.\u0275\u0275hostProperty("id",Ue._config.id),u.\u0275\u0275attribute("aria-modal",Ue._config.ariaModal)("role",Ue._config.role)("aria-labelledby",Ue._config.ariaLabel?null:Ue._ariaLabelledBy)("aria-label",Ue._config.ariaLabel)("aria-describedby",Ue._config.ariaDescribedBy||null),u.\u0275\u0275syntheticHostProperty("@dialogContainer",Ue._getAnimationState()))},features:[u.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(_e,Ue){1&_e&&u.\u0275\u0275template(0,V,0,0,"ng-template",0)},dependencies:[h.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.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.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}"],encapsulation:2,data:{animation:[re.dialogContainer]}}),Be})();class Te{constructor(We,_e,Ue){this._ref=We,this._containerInstance=Ue,this._afterOpened=new p.x,this._beforeClosed=new p.x,this._state=0,this.disableClose=_e.disableClose,this.id=We.id,Ue._animationStateChanged.pipe((0,Ae.h)(dt=>"opened"===dt.state),(0,oe.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),Ue._animationStateChanged.pipe((0,Ae.h)(dt=>"closed"===dt.state),(0,oe.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),We.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,ie.T)(this.backdropClick(),this.keydownEvents().pipe((0,Ae.h)(dt=>dt.keyCode===d.hY&&!this.disableClose&&!(0,d.Vb)(dt)))).subscribe(dt=>{this.disableClose||(dt.preventDefault(),Pe(this,"keydown"===dt.type?"keyboard":"mouse"))})}close(We){this._result=We,this._containerInstance._animationStateChanged.pipe((0,Ae.h)(_e=>"closing"===_e.state),(0,oe.q)(1)).subscribe(_e=>{this._beforeClosed.next(We),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),_e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(We){let _e=this._ref.config.positionStrategy;return We&&(We.left||We.right)?We.left?_e.left(We.left):_e.right(We.right):_e.centerHorizontally(),We&&(We.top||We.bottom)?We.top?_e.top(We.top):_e.bottom(We.bottom):_e.centerVertically(),this._ref.updatePosition(),this}updateSize(We="",_e=""){return this._ref.updateSize(We,_e),this}addPanelClass(We){return this._ref.addPanelClass(We),this}removePanelClass(We){return this._ref.removePanelClass(We),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function Pe(Be,We,_e){return Be._closeInteractionType=We,Be.close(_e)}const Ce=new u.InjectionToken("MatDialogData"),$e=new u.InjectionToken("mat-dialog-default-options"),lt=new u.InjectionToken("mat-dialog-scroll-strategy");function yt(Be){return()=>Be.scrollStrategies.block()}function _t(Be){return()=>Be.scrollStrategies.block()}const ut={provide:lt,deps:[c.aV],useFactory:_t};let He=0,Ie=(()=>{class Be{constructor(_e,Ue,dt,xe,W,ye,de,Ne,tt,mt){this._overlay=_e,this._defaultOptions=dt,this._parentDialog=xe,this._dialogRefConstructor=de,this._dialogContainerType=Ne,this._dialogDataToken=tt,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new p.x,this._afterOpenedAtThisLevel=new p.x,this._idPrefix="mat-dialog-",this.afterAllClosed=b(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,C.O)(void 0))),this._scrollStrategy=ye,this._dialog=Ue.get(Fe)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const _e=this._parentDialog;return _e?_e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(_e,Ue){let dt;(Ue=Object.assign(Object.assign({},this._defaultOptions||new B),Ue)).id=Ue.id||`${this._idPrefix}${He++}`,Ue.scrollStrategy=Ue.scrollStrategy||this._scrollStrategy();const xe=this._dialog.open(_e,Object.assign(Object.assign({},Ue),{positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:B,useValue:Ue},{provide:O,useValue:Ue}]},templateContext:()=>({dialogRef:dt}),providers:(W,ye,de)=>(dt=new this._dialogRefConstructor(W,Ue,de),dt.updatePosition(null==Ue?void 0:Ue.position),[{provide:this._dialogContainerType,useValue:de},{provide:this._dialogDataToken,useValue:ye.data},{provide:this._dialogRefConstructor,useValue:dt}])}));return dt.componentInstance=xe.componentInstance,this.openDialogs.push(dt),this.afterOpened.next(dt),dt.afterClosed().subscribe(()=>{const W=this.openDialogs.indexOf(dt);W>-1&&(this.openDialogs.splice(W,1),this.openDialogs.length||this._getAfterAllClosed().next())}),dt}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(_e){return this.openDialogs.find(Ue=>Ue.id===_e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(_e){let Ue=_e.length;for(;Ue--;)_e[Ue].close()}}return Be.\u0275fac=function(_e){u.\u0275\u0275invalidFactory()},Be.\u0275prov=u.\u0275\u0275defineInjectable({token:Be,factory:Be.\u0275fac}),Be})(),je=(()=>{class Be extends Ie{constructor(_e,Ue,dt,xe,W,ye,de,Ne){super(_e,Ue,xe,ye,de,W,Te,ge,Ce,Ne)}}return Be.\u0275fac=function(_e){return new(_e||Be)(u.\u0275\u0275inject(c.aV),u.\u0275\u0275inject(u.Injector),u.\u0275\u0275inject(_.Location,8),u.\u0275\u0275inject($e,8),u.\u0275\u0275inject(lt),u.\u0275\u0275inject(Be,12),u.\u0275\u0275inject(c.Xj),u.\u0275\u0275inject(u.ANIMATION_MODULE_TYPE,8))},Be.\u0275prov=u.\u0275\u0275defineInjectable({token:Be,factory:Be.\u0275fac}),Be})(),pe=0,Qe=(()=>{class Be{constructor(_e,Ue,dt){this.dialogRef=_e,this._elementRef=Ue,this._dialog=dt,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=we(this._elementRef,this._dialog.openDialogs))}ngOnChanges(_e){const Ue=_e._matDialogClose||_e._matDialogCloseResult;Ue&&(this.dialogResult=Ue.currentValue)}_onButtonClick(_e){Pe(this.dialogRef,0===_e.screenX&&0===_e.screenY?"keyboard":"mouse",this.dialogResult)}}return Be.\u0275fac=function(_e){return new(_e||Be)(u.\u0275\u0275directiveInject(Te,8),u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(je))},Be.\u0275dir=u.\u0275\u0275defineDirective({type:Be,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(_e,Ue){1&_e&&u.\u0275\u0275listener("click",function(xe){return Ue._onButtonClick(xe)}),2&_e&&u.\u0275\u0275attribute("aria-label",Ue.ariaLabel||null)("type",Ue.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[u.\u0275\u0275NgOnChangesFeature]}),Be})(),Ve=(()=>{class Be{constructor(_e,Ue,dt){this._dialogRef=_e,this._elementRef=Ue,this._dialog=dt,this.id="mat-dialog-title-"+pe++}ngOnInit(){this._dialogRef||(this._dialogRef=we(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const _e=this._dialogRef._containerInstance;_e&&!_e._ariaLabelledBy&&(_e._ariaLabelledBy=this.id)})}}return Be.\u0275fac=function(_e){return new(_e||Be)(u.\u0275\u0275directiveInject(Te,8),u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(je))},Be.\u0275dir=u.\u0275\u0275defineDirective({type:Be,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(_e,Ue){2&_e&&u.\u0275\u0275hostProperty("id",Ue.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),Be})(),Ke=(()=>{class Be{}return Be.\u0275fac=function(_e){return new(_e||Be)},Be.\u0275dir=u.\u0275\u0275defineDirective({type:Be,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),Be})(),K=(()=>{class Be{constructor(){this.align="start"}}return Be.\u0275fac=function(_e){return new(_e||Be)},Be.\u0275dir=u.\u0275\u0275defineDirective({type:Be,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(_e,Ue){2&_e&&u.\u0275\u0275classProp("mat-dialog-actions-align-center","center"===Ue.align)("mat-dialog-actions-align-end","end"===Ue.align)},inputs:{align:"align"}}),Be})();function we(Be,We){let _e=Be.nativeElement.parentElement;for(;_e&&!_e.classList.contains("mat-dialog-container");)_e=_e.parentElement;return _e?We.find(Ue=>Ue.id===_e.id):null}let ze=(()=>{class Be{}return Be.\u0275fac=function(_e){return new(_e||Be)},Be.\u0275mod=u.\u0275\u0275defineNgModule({type:Be}),Be.\u0275inj=u.\u0275\u0275defineInjector({providers:[je,ut],imports:[be,c.U8,h.eL,ke.MatCommonModule,ke.MatCommonModule]}),Be})()},3293:(z,o,a)=>{"use strict";a.r(o),a.d(o,{ICON_REGISTRY_PROVIDER:()=>me,ICON_REGISTRY_PROVIDER_FACTORY:()=>oe,MAT_ICON_DEFAULT_OPTIONS:()=>ue,MAT_ICON_LOCATION:()=>ge,MAT_ICON_LOCATION_FACTORY:()=>Te,MatIcon:()=>lt,MatIconModule:()=>yt,MatIconRegistry:()=>Ae,getMatIconFailedToSanitizeLiteralError:()=>ke,getMatIconFailedToSanitizeUrlError:()=>be,getMatIconNameNotFoundError:()=>Fe,getMatIconNoHttpProviderError:()=>it});var n=a(5e3),h=a(508),_=a(3191),u=a(9808),r=a(8306),c=a(576),p=a(9646),y=a(4128),f=a(727),b=a(8421),v=a(5403),m=a(4482);function C(_t){return(0,m.e)((ut,He)=>{let pe,Ie=null,je=!1;Ie=ut.subscribe((0,v.x)(He,void 0,void 0,Qe=>{pe=(0,b.Xf)(_t(Qe,C(_t)(ut))),Ie?(Ie.unsubscribe(),Ie=null,pe.subscribe(He)):je=!0})),je&&(Ie.unsubscribe(),Ie=null,pe.subscribe(He))})}var O=a(8505),P=a(4004),N=a(3099),Y=a(5698),U=a(6529),G=a(2313);const $=["*"];let J;function he(_t){var ut;return(null===(ut=function te(){if(void 0===J&&(J=null,"undefined"!=typeof window)){const _t=window;void 0!==_t.trustedTypes&&(J=_t.trustedTypes.createPolicy("angular#components",{createHTML:ut=>ut}))}return J}())||void 0===ut?void 0:ut.createHTML(_t))||_t}function Fe(_t){return Error(`Unable to find icon with the name "${_t}"`)}function it(){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 be(_t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${_t}".`)}function ke(_t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${_t}".`)}class ie{constructor(ut,He,Ie){this.url=ut,this.svgText=He,this.options=Ie}}let Ae=(()=>{class _t{constructor(He,Ie,je,pe){this._httpClient=He,this._sanitizer=Ie,this._errorHandler=pe,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","mat-ligature-font"],this._document=je}addSvgIcon(He,Ie,je){return this.addSvgIconInNamespace("",He,Ie,je)}addSvgIconLiteral(He,Ie,je){return this.addSvgIconLiteralInNamespace("",He,Ie,je)}addSvgIconInNamespace(He,Ie,je,pe){return this._addSvgIconConfig(He,Ie,new ie(je,null,pe))}addSvgIconResolver(He){return this._resolvers.push(He),this}addSvgIconLiteralInNamespace(He,Ie,je,pe){const Qe=this._sanitizer.sanitize(n.SecurityContext.HTML,je);if(!Qe)throw ke(je);const Ve=he(Qe);return this._addSvgIconConfig(He,Ie,new ie("",Ve,pe))}addSvgIconSet(He,Ie){return this.addSvgIconSetInNamespace("",He,Ie)}addSvgIconSetLiteral(He,Ie){return this.addSvgIconSetLiteralInNamespace("",He,Ie)}addSvgIconSetInNamespace(He,Ie,je){return this._addSvgIconSetConfig(He,new ie(Ie,null,je))}addSvgIconSetLiteralInNamespace(He,Ie,je){const pe=this._sanitizer.sanitize(n.SecurityContext.HTML,Ie);if(!pe)throw ke(Ie);const Qe=he(pe);return this._addSvgIconSetConfig(He,new ie("",Qe,je))}registerFontClassAlias(He,Ie=He){return this._fontCssClassesByAlias.set(He,Ie),this}classNameForFontAlias(He){return this._fontCssClassesByAlias.get(He)||He}setDefaultFontSetClass(...He){return this._defaultFontSetClass=He,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(He){const Ie=this._sanitizer.sanitize(n.SecurityContext.RESOURCE_URL,He);if(!Ie)throw be(He);const je=this._cachedIconsByUrl.get(Ie);return je?(0,p.of)(V(je)):this._loadSvgIconFromConfig(new ie(He,null)).pipe((0,O.b)(pe=>this._cachedIconsByUrl.set(Ie,pe)),(0,P.U)(pe=>V(pe)))}getNamedSvgIcon(He,Ie=""){const je=H(Ie,He);let pe=this._svgIconConfigs.get(je);if(pe)return this._getSvgFromConfig(pe);if(pe=this._getIconConfigFromResolvers(Ie,He),pe)return this._svgIconConfigs.set(je,pe),this._getSvgFromConfig(pe);const Qe=this._iconSetConfigs.get(Ie);return Qe?this._getSvgFromIconSetConfigs(He,Qe):function d(_t,ut){const He=(0,c.m)(_t)?_t:()=>_t,Ie=je=>je.error(He());return new r.y(ut?je=>ut.schedule(Ie,0,je):Ie)}(Fe(je))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(He){return He.svgText?(0,p.of)(V(this._svgElementFromConfig(He))):this._loadSvgIconFromConfig(He).pipe((0,P.U)(Ie=>V(Ie)))}_getSvgFromIconSetConfigs(He,Ie){const je=this._extractIconWithNameFromAnySet(He,Ie);if(je)return(0,p.of)(je);const pe=Ie.filter(Qe=>!Qe.svgText).map(Qe=>this._loadSvgIconSetFromConfig(Qe).pipe(C(Ve=>{const K=`Loading icon set URL: ${this._sanitizer.sanitize(n.SecurityContext.RESOURCE_URL,Qe.url)} failed: ${Ve.message}`;return this._errorHandler.handleError(new Error(K)),(0,p.of)(null)})));return(0,y.D)(pe).pipe((0,P.U)(()=>{const Qe=this._extractIconWithNameFromAnySet(He,Ie);if(!Qe)throw Fe(He);return Qe}))}_extractIconWithNameFromAnySet(He,Ie){for(let je=Ie.length-1;je>=0;je--){const pe=Ie[je];if(pe.svgText&&pe.svgText.toString().indexOf(He)>-1){const Qe=this._svgElementFromConfig(pe),Ve=this._extractSvgIconFromSet(Qe,He,pe.options);if(Ve)return Ve}}return null}_loadSvgIconFromConfig(He){return this._fetchIcon(He).pipe((0,O.b)(Ie=>He.svgText=Ie),(0,P.U)(()=>this._svgElementFromConfig(He)))}_loadSvgIconSetFromConfig(He){return He.svgText?(0,p.of)(null):this._fetchIcon(He).pipe((0,O.b)(Ie=>He.svgText=Ie))}_extractSvgIconFromSet(He,Ie,je){const pe=He.querySelector(`[id="${Ie}"]`);if(!pe)return null;const Qe=pe.cloneNode(!0);if(Qe.removeAttribute("id"),"svg"===Qe.nodeName.toLowerCase())return this._setSvgAttributes(Qe,je);if("symbol"===Qe.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(Qe),je);const Ve=this._svgElementFromString(he("<svg></svg>"));return Ve.appendChild(Qe),this._setSvgAttributes(Ve,je)}_svgElementFromString(He){const Ie=this._document.createElement("DIV");Ie.innerHTML=He;const je=Ie.querySelector("svg");if(!je)throw Error("<svg> tag not found");return je}_toSvgElement(He){const Ie=this._svgElementFromString(he("<svg></svg>")),je=He.attributes;for(let pe=0;pe<je.length;pe++){const{name:Qe,value:Ve}=je[pe];"id"!==Qe&&Ie.setAttribute(Qe,Ve)}for(let pe=0;pe<He.childNodes.length;pe++)He.childNodes[pe].nodeType===this._document.ELEMENT_NODE&&Ie.appendChild(He.childNodes[pe].cloneNode(!0));return Ie}_setSvgAttributes(He,Ie){return He.setAttribute("fit",""),He.setAttribute("height","100%"),He.setAttribute("width","100%"),He.setAttribute("preserveAspectRatio","xMidYMid meet"),He.setAttribute("focusable","false"),Ie&&Ie.viewBox&&He.setAttribute("viewBox",Ie.viewBox),He}_fetchIcon(He){var Ie;const{url:je,options:pe}=He,Qe=null!==(Ie=null==pe?void 0:pe.withCredentials)&&void 0!==Ie&&Ie;if(!this._httpClient)throw it();if(null==je)throw Error(`Cannot fetch icon from URL "${je}".`);const Ve=this._sanitizer.sanitize(n.SecurityContext.RESOURCE_URL,je);if(!Ve)throw be(je);const Ke=this._inProgressUrlFetches.get(Ve);if(Ke)return Ke;const K=this._httpClient.get(Ve,{responseType:"text",withCredentials:Qe}).pipe((0,P.U)(we=>he(we)),function M(_t){return(0,m.e)((ut,He)=>{try{ut.subscribe(He)}finally{He.add(_t)}})}(()=>this._inProgressUrlFetches.delete(Ve)),(0,N.B)());return this._inProgressUrlFetches.set(Ve,K),K}_addSvgIconConfig(He,Ie,je){return this._svgIconConfigs.set(H(He,Ie),je),this}_addSvgIconSetConfig(He,Ie){const je=this._iconSetConfigs.get(He);return je?je.push(Ie):this._iconSetConfigs.set(He,[Ie]),this}_svgElementFromConfig(He){if(!He.svgElement){const Ie=this._svgElementFromString(He.svgText);this._setSvgAttributes(Ie,He.options),He.svgElement=Ie}return He.svgElement}_getIconConfigFromResolvers(He,Ie){for(let je=0;je<this._resolvers.length;je++){const pe=this._resolvers[je](Ie,He);if(pe)return re(pe)?new ie(pe.url,null,pe.options):new ie(pe,null)}}}return _t.\u0275fac=function(He){return new(He||_t)(n.\u0275\u0275inject(U.HttpClient,8),n.\u0275\u0275inject(G.DomSanitizer),n.\u0275\u0275inject(u.DOCUMENT,8),n.\u0275\u0275inject(n.ErrorHandler))},_t.\u0275prov=n.\u0275\u0275defineInjectable({token:_t,factory:_t.\u0275fac,providedIn:"root"}),_t})();function oe(_t,ut,He,Ie,je){return _t||new Ae(ut,He,je,Ie)}const me={provide:Ae,deps:[[new n.Optional,new n.SkipSelf,Ae],[new n.Optional,U.HttpClient],G.DomSanitizer,n.ErrorHandler,[new n.Optional,u.DOCUMENT]],useFactory:oe};function V(_t){return _t.cloneNode(!0)}function H(_t,ut){return _t+":"+ut}function re(_t){return!(!_t.url||!_t.options)}const B=(0,h.mixinColor)(class{constructor(_t){this._elementRef=_t}}),ue=new n.InjectionToken("MAT_ICON_DEFAULT_OPTIONS"),ge=new n.InjectionToken("mat-icon-location",{providedIn:"root",factory:Te});function Te(){const _t=(0,n.inject)(u.DOCUMENT),ut=_t?_t.location:null;return{getPathname:()=>ut?ut.pathname+ut.search:""}}const Pe=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Ce=Pe.map(_t=>`[${_t}]`).join(", "),$e=/^url\(['"]?#(.*?)['"]?\)$/;let lt=(()=>{class _t extends B{constructor(He,Ie,je,pe,Qe,Ve){super(He),this._iconRegistry=Ie,this._location=pe,this._errorHandler=Qe,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=f.w0.EMPTY,Ve&&(Ve.color&&(this.color=this.defaultColor=Ve.color),Ve.fontSet&&(this.fontSet=Ve.fontSet)),je||He.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(He){this._inline=(0,_.Ig)(He)}get svgIcon(){return this._svgIcon}set svgIcon(He){He!==this._svgIcon&&(He?this._updateSvgIcon(He):this._svgIcon&&this._clearSvgElement(),this._svgIcon=He)}get fontSet(){return this._fontSet}set fontSet(He){const Ie=this._cleanupFontValue(He);Ie!==this._fontSet&&(this._fontSet=Ie,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(He){const Ie=this._cleanupFontValue(He);Ie!==this._fontIcon&&(this._fontIcon=Ie,this._updateFontIconClasses())}_splitIconName(He){if(!He)return["",""];const Ie=He.split(":");switch(Ie.length){case 1:return["",Ie[0]];case 2:return Ie;default:throw Error(`Invalid icon name: "${He}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const He=this._elementsWithExternalReferences;if(He&&He.size){const Ie=this._location.getPathname();Ie!==this._previousPath&&(this._previousPath=Ie,this._prependPathToReferences(Ie))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(He){this._clearSvgElement();const Ie=this._location.getPathname();this._previousPath=Ie,this._cacheChildrenWithExternalReferences(He),this._prependPathToReferences(Ie),this._elementRef.nativeElement.appendChild(He)}_clearSvgElement(){const He=this._elementRef.nativeElement;let Ie=He.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();Ie--;){const je=He.childNodes[Ie];(1!==je.nodeType||"svg"===je.nodeName.toLowerCase())&&je.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const He=this._elementRef.nativeElement,Ie=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(je=>je.length>0);this._previousFontSetClass.forEach(je=>He.classList.remove(je)),Ie.forEach(je=>He.classList.add(je)),this._previousFontSetClass=Ie,this.fontIcon!==this._previousFontIconClass&&!Ie.includes("mat-ligature-font")&&(this._previousFontIconClass&&He.classList.remove(this._previousFontIconClass),this.fontIcon&&He.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(He){return"string"==typeof He?He.trim().split(" ")[0]:He}_prependPathToReferences(He){const Ie=this._elementsWithExternalReferences;Ie&&Ie.forEach((je,pe)=>{je.forEach(Qe=>{pe.setAttribute(Qe.name,`url('${He}#${Qe.value}')`)})})}_cacheChildrenWithExternalReferences(He){const Ie=He.querySelectorAll(Ce),je=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let pe=0;pe<Ie.length;pe++)Pe.forEach(Qe=>{const Ve=Ie[pe],Ke=Ve.getAttribute(Qe),K=Ke?Ke.match($e):null;if(K){let we=je.get(Ve);we||(we=[],je.set(Ve,we)),we.push({name:Qe,value:K[1]})}})}_updateSvgIcon(He){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),He){const[Ie,je]=this._splitIconName(He);Ie&&(this._svgNamespace=Ie),je&&(this._svgName=je),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(je,Ie).pipe((0,Y.q)(1)).subscribe(pe=>this._setSvgElement(pe),pe=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${Ie}:${je}! ${pe.message}`))})}}}return _t.\u0275fac=function(He){return new(He||_t)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(Ae),n.\u0275\u0275injectAttribute("aria-hidden"),n.\u0275\u0275directiveInject(ge),n.\u0275\u0275directiveInject(n.ErrorHandler),n.\u0275\u0275directiveInject(ue,8))},_t.\u0275cmp=n.\u0275\u0275defineComponent({type:_t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(He,Ie){2&He&&(n.\u0275\u0275attribute("data-mat-icon-type",Ie._usingFontIcon()?"font":"svg")("data-mat-icon-name",Ie._svgName||Ie.fontIcon)("data-mat-icon-namespace",Ie._svgNamespace||Ie.fontSet),n.\u0275\u0275classProp("mat-icon-inline",Ie.inline)("mat-icon-no-color","primary"!==Ie.color&&"accent"!==Ie.color&&"warn"!==Ie.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:$,decls:1,vars:0,template:function(He,Ie){1&He&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275projection(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[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}"],encapsulation:2,changeDetection:0}),_t})(),yt=(()=>{class _t{}return _t.\u0275fac=function(He){return new(He||_t)},_t.\u0275mod=n.\u0275\u0275defineNgModule({type:_t}),_t.\u0275inj=n.\u0275\u0275defineInjector({imports:[h.MatCommonModule,h.MatCommonModule]}),_t})()},1451:(z,o,a)=>{"use strict";a.r(o),a.d(o,{MAT_MENU_CONTENT:()=>Ce,MAT_MENU_DEFAULT_OPTIONS:()=>pe,MAT_MENU_PANEL:()=>He,MAT_MENU_SCROLL_STRATEGY:()=>we,MatMenu:()=>K,MatMenuContent:()=>lt,MatMenuItem:()=>je,MatMenuModule:()=>xe,MatMenuTrigger:()=>dt,_MatMenuBase:()=>Ke,_MatMenuContentBase:()=>$e,_MatMenuTriggerBase:()=>Ue,fadeInItems:()=>Te,matMenuAnimations:()=>ge,transformMenu:()=>Pe});var n=a(5664),h=a(3191),_=a(1159),u=a(5e3),r=a(7579),c=a(727),d=a(6451),p=a(9646),y=a(3101),f=a(4986),b=a(7272),v=a(5698),m=a(4482),C=a(5403),M=a(5032),P=a(4004),Y=a(5577);function U(W,ye){return ye?de=>(0,b.z)(ye.pipe((0,v.q)(1),function O(){return(0,m.e)((W,ye)=>{W.subscribe((0,C.x)(ye,M.Z))})}()),de.pipe(U(W))):(0,Y.z)((de,Ne)=>W(de,Ne).pipe((0,v.q)(1),function N(W){return(0,P.U)(()=>W)}(de)))}var G=a(5963);function $(W,ye=f.z){const de=(0,G.H)(W,ye);return U(()=>de)}var J=a(8675),te=a(3900),he=a(2722),Fe=a(9300),it=a(1777),be=a(7429),ke=a(9808),ie=a(508),Ae=a(1314),oe=a(925),me=a(226),V=a(495);const H=["mat-menu-item",""];function re(W,ye){1&W&&(u.\u0275\u0275namespaceSVG(),u.\u0275\u0275elementStart(0,"svg",2),u.\u0275\u0275element(1,"polygon",3),u.\u0275\u0275elementEnd())}const B=["*"];function ue(W,ye){if(1&W){const de=u.\u0275\u0275getCurrentView();u.\u0275\u0275elementStart(0,"div",0),u.\u0275\u0275listener("keydown",function(tt){u.\u0275\u0275restoreView(de);const mt=u.\u0275\u0275nextContext();return u.\u0275\u0275resetView(mt._handleKeydown(tt))})("click",function(){u.\u0275\u0275restoreView(de);const tt=u.\u0275\u0275nextContext();return u.\u0275\u0275resetView(tt.closed.emit("click"))})("@transformMenu.start",function(tt){u.\u0275\u0275restoreView(de);const mt=u.\u0275\u0275nextContext();return u.\u0275\u0275resetView(mt._onAnimationStart(tt))})("@transformMenu.done",function(tt){u.\u0275\u0275restoreView(de);const mt=u.\u0275\u0275nextContext();return u.\u0275\u0275resetView(mt._onAnimationDone(tt))}),u.\u0275\u0275elementStart(1,"div",1),u.\u0275\u0275projection(2),u.\u0275\u0275elementEnd()()}if(2&W){const de=u.\u0275\u0275nextContext();u.\u0275\u0275property("id",de.panelId)("ngClass",de._classList)("@transformMenu",de._panelAnimationState),u.\u0275\u0275attribute("aria-label",de.ariaLabel||null)("aria-labelledby",de.ariaLabelledby||null)("aria-describedby",de.ariaDescribedby||null)}}const ge={transformMenu:(0,it.X$)("transformMenu",[(0,it.SB)("void",(0,it.oB)({opacity:0,transform:"scale(0.8)"})),(0,it.eR)("void => enter",(0,it.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,it.oB)({opacity:1,transform:"scale(1)"}))),(0,it.eR)("* => void",(0,it.jt)("100ms 25ms linear",(0,it.oB)({opacity:0})))]),fadeInItems:(0,it.X$)("fadeInItems",[(0,it.SB)("showing",(0,it.oB)({opacity:1})),(0,it.eR)("void => *",[(0,it.oB)({opacity:0}),(0,it.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Te=ge.fadeInItems,Pe=ge.transformMenu,Ce=new u.InjectionToken("MatMenuContent");let $e=(()=>{class W{constructor(de,Ne,tt,mt,Ft,At,Yt){this._template=de,this._componentFactoryResolver=Ne,this._appRef=tt,this._injector=mt,this._viewContainerRef=Ft,this._document=At,this._changeDetectorRef=Yt,this._attached=new r.x}attach(de={}){var Ne;this._portal||(this._portal=new be.UE(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new be.u0(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));const tt=this._template.elementRef.nativeElement;tt.parentNode.insertBefore(this._outlet.outletElement,tt),null===(Ne=this._changeDetectorRef)||void 0===Ne||Ne.markForCheck(),this._portal.attach(this._outlet,de),this._attached.next()}detach(){this._portal.isAttached&&this._portal.detach()}ngOnDestroy(){this._outlet&&this._outlet.dispose()}}return W.\u0275fac=function(de){return new(de||W)(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(ke.DOCUMENT),u.\u0275\u0275directiveInject(u.ChangeDetectorRef))},W.\u0275dir=u.\u0275\u0275defineDirective({type:W}),W})(),lt=(()=>{class W extends $e{}return W.\u0275fac=function(){let ye;return function(Ne){return(ye||(ye=u.\u0275\u0275getInheritedFactory(W)))(Ne||W)}}(),W.\u0275dir=u.\u0275\u0275defineDirective({type:W,selectors:[["ng-template","matMenuContent",""]],features:[u.\u0275\u0275ProvidersFeature([{provide:Ce,useExisting:W}]),u.\u0275\u0275InheritDefinitionFeature]}),W})();const He=new u.InjectionToken("MAT_MENU_PANEL"),Ie=(0,ie.mixinDisableRipple)((0,ie.mixinDisabled)(class{}));let je=(()=>{class W extends Ie{constructor(de,Ne,tt,mt,Ft){var At;super(),this._elementRef=de,this._document=Ne,this._focusMonitor=tt,this._parentMenu=mt,this._changeDetectorRef=Ft,this.role="menuitem",this._hovered=new r.x,this._focused=new r.x,this._highlighted=!1,this._triggersSubmenu=!1,null===(At=null==mt?void 0:mt.addItem)||void 0===At||At.call(mt,this)}focus(de,Ne){this._focusMonitor&&de?this._focusMonitor.focusVia(this._getHostElement(),de,Ne):this._getHostElement().focus(Ne),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(de){this.disabled&&(de.preventDefault(),de.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var de;const Ne=this._elementRef.nativeElement.cloneNode(!0),tt=Ne.querySelectorAll("mat-icon, .material-icons");for(let mt=0;mt<tt.length;mt++)tt[mt].remove();return(null===(de=Ne.textContent)||void 0===de?void 0:de.trim())||""}_setHighlighted(de){var Ne;this._highlighted=de,null===(Ne=this._changeDetectorRef)||void 0===Ne||Ne.markForCheck()}_hasFocus(){return this._document&&this._document.activeElement===this._getHostElement()}}return W.\u0275fac=function(de){return new(de||W)(u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(ke.DOCUMENT),u.\u0275\u0275directiveInject(n.tE),u.\u0275\u0275directiveInject(He,8),u.\u0275\u0275directiveInject(u.ChangeDetectorRef))},W.\u0275cmp=u.\u0275\u0275defineComponent({type:W,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(de,Ne){1&de&&u.\u0275\u0275listener("click",function(mt){return Ne._checkDisabled(mt)})("mouseenter",function(){return Ne._handleMouseEnter()}),2&de&&(u.\u0275\u0275attribute("role",Ne.role)("tabindex",Ne._getTabIndex())("aria-disabled",Ne.disabled.toString())("disabled",Ne.disabled||null),u.\u0275\u0275classProp("mat-menu-item",!0)("mat-menu-item-highlighted",Ne._highlighted)("mat-menu-item-submenu-trigger",Ne._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[u.\u0275\u0275InheritDefinitionFeature],attrs:H,ngContentSelectors:B,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(de,Ne){1&de&&(u.\u0275\u0275projectionDef(),u.\u0275\u0275projection(0),u.\u0275\u0275element(1,"div",0),u.\u0275\u0275template(2,re,2,0,"svg",1)),2&de&&(u.\u0275\u0275advance(1),u.\u0275\u0275property("matRippleDisabled",Ne.disableRipple||Ne.disabled)("matRippleTrigger",Ne._getHostElement()),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",Ne._triggersSubmenu))},dependencies:[ke.NgIf,ie.MatRipple],encapsulation:2,changeDetection:0}),W})();const pe=new u.InjectionToken("mat-menu-default-options",{providedIn:"root",factory:function Qe(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let Ve=0,Ke=(()=>{class W{constructor(de,Ne,tt,mt){this._elementRef=de,this._ngZone=Ne,this._defaultOptions=tt,this._changeDetectorRef=mt,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new u.QueryList,this._tabSubscription=c.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new r.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-"+Ve++}get xPosition(){return this._xPosition}set xPosition(de){this._xPosition=de,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(de){this._yPosition=de,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(de){this._overlapTrigger=(0,h.Ig)(de)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(de){this._hasBackdrop=(0,h.Ig)(de)}set panelClass(de){const Ne=this._previousPanelClass;Ne&&Ne.length&&Ne.split(" ").forEach(tt=>{this._classList[tt]=!1}),this._previousPanelClass=de,de&&de.length&&(de.split(" ").forEach(tt=>{this._classList[tt]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(de){this.panelClass=de}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new n.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,J.O)(this._directDescendantItems),(0,te.w)(de=>(0,d.T)(...de.map(Ne=>Ne._focused)))).subscribe(de=>this._keyManager.updateActiveItem(de)),this._directDescendantItems.changes.subscribe(de=>{var Ne;const tt=this._keyManager;if("enter"===this._panelAnimationState&&(null===(Ne=tt.activeItem)||void 0===Ne?void 0:Ne._hasFocus())){const mt=de.toArray(),Ft=Math.max(0,Math.min(mt.length-1,tt.activeItemIndex||0));mt[Ft]&&!mt[Ft].disabled?tt.setActiveItem(Ft):tt.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,J.O)(this._directDescendantItems),(0,te.w)(Ne=>(0,d.T)(...Ne.map(tt=>tt._hovered))))}addItem(de){}removeItem(de){}_handleKeydown(de){const Ne=de.keyCode,tt=this._keyManager;switch(Ne){case _.hY:(0,_.Vb)(de)||(de.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:return(Ne===_.LH||Ne===_.JH)&&tt.setFocusOrigin("keyboard"),void tt.onKeydown(de)}de.stopPropagation()}focusFirstItem(de="program"){this._ngZone.onStable.pipe((0,v.q)(1)).subscribe(()=>{let Ne=null;if(this._directDescendantItems.length&&(Ne=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!Ne||!Ne.contains(document.activeElement)){const tt=this._keyManager;tt.setFocusOrigin(de).setFirstItemActive(),!tt.activeItem&&Ne&&Ne.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(de){const Ne=Math.min(this._baseElevation+de,24),tt=`${this._elevationPrefix}${Ne}`,mt=Object.keys(this._classList).find(Ft=>Ft.startsWith(this._elevationPrefix));(!mt||mt===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[tt]=!0,this._previousElevation=tt)}setPositionClasses(de=this.xPosition,Ne=this.yPosition){var tt;const mt=this._classList;mt["mat-menu-before"]="before"===de,mt["mat-menu-after"]="after"===de,mt["mat-menu-above"]="above"===Ne,mt["mat-menu-below"]="below"===Ne,null===(tt=this._changeDetectorRef)||void 0===tt||tt.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(de){this._animationDone.next(de),this._isAnimating=!1}_onAnimationStart(de){this._isAnimating=!0,"enter"===de.toState&&0===this._keyManager.activeItemIndex&&(de.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,J.O)(this._allItems)).subscribe(de=>{this._directDescendantItems.reset(de.filter(Ne=>Ne._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return W.\u0275fac=function(de){return new(de||W)(u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(u.NgZone),u.\u0275\u0275directiveInject(pe),u.\u0275\u0275directiveInject(u.ChangeDetectorRef))},W.\u0275dir=u.\u0275\u0275defineDirective({type:W,contentQueries:function(de,Ne,tt){if(1&de&&(u.\u0275\u0275contentQuery(tt,Ce,5),u.\u0275\u0275contentQuery(tt,je,5),u.\u0275\u0275contentQuery(tt,je,4)),2&de){let mt;u.\u0275\u0275queryRefresh(mt=u.\u0275\u0275loadQuery())&&(Ne.lazyContent=mt.first),u.\u0275\u0275queryRefresh(mt=u.\u0275\u0275loadQuery())&&(Ne._allItems=mt),u.\u0275\u0275queryRefresh(mt=u.\u0275\u0275loadQuery())&&(Ne.items=mt)}},viewQuery:function(de,Ne){if(1&de&&u.\u0275\u0275viewQuery(u.TemplateRef,5),2&de){let tt;u.\u0275\u0275queryRefresh(tt=u.\u0275\u0275loadQuery())&&(Ne.templateRef=tt.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"}}),W})(),K=(()=>{class W extends Ke{constructor(de,Ne,tt,mt){super(de,Ne,tt,mt),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return W.\u0275fac=function(de){return new(de||W)(u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(u.NgZone),u.\u0275\u0275directiveInject(pe),u.\u0275\u0275directiveInject(u.ChangeDetectorRef))},W.\u0275cmp=u.\u0275\u0275defineComponent({type:W,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(de,Ne){2&de&&u.\u0275\u0275attribute("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[u.\u0275\u0275ProvidersFeature([{provide:He,useExisting:W}]),u.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:B,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(de,Ne){1&de&&(u.\u0275\u0275projectionDef(),u.\u0275\u0275template(0,ue,3,6,"ng-template"))},dependencies:[ke.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;position:relative}.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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top: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}'],encapsulation:2,data:{animation:[ge.transformMenu,ge.fadeInItems]},changeDetection:0}),W})();const we=new u.InjectionToken("mat-menu-scroll-strategy"),Be={provide:we,deps:[Ae.aV],useFactory:function ze(W){return()=>W.scrollStrategies.reposition()}},_e=(0,oe.i$)({passive:!0});let Ue=(()=>{class W{constructor(de,Ne,tt,mt,Ft,At,Yt,Nt,rt){this._overlay=de,this._element=Ne,this._viewContainerRef=tt,this._menuItemInstance=At,this._dir=Yt,this._focusMonitor=Nt,this._ngZone=rt,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=c.w0.EMPTY,this._hoverSubscription=c.w0.EMPTY,this._menuCloseSubscription=c.w0.EMPTY,this._handleTouchStart=Je=>{(0,n.yG)(Je)||(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=mt,this._parentMaterialMenu=Ft instanceof Ke?Ft:void 0,Ne.nativeElement.addEventListener("touchstart",this._handleTouchStart,_e),At&&(At._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(de){this.menu=de}get menu(){return this._menu}set menu(de){de!==this._menu&&(this._menu=de,this._menuCloseSubscription.unsubscribe(),de&&(this._menuCloseSubscription=de.close.subscribe(Ne=>{this._destroyMenu(Ne),("click"===Ne||"tab"===Ne)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(Ne)})))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,_e),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(){const de=this.menu;if(this._menuOpen||!de)return;const Ne=this._createOverlay(de),tt=Ne.getConfig(),mt=tt.positionStrategy;this._setPosition(de,mt),tt.hasBackdrop=null==de.hasBackdrop?!this.triggersSubmenu():de.hasBackdrop,Ne.attach(this._getPortal(de)),de.lazyContent&&de.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(de),de instanceof Ke&&(de._startAnimation(),de._directDescendantItems.changes.pipe((0,he.R)(de.close)).subscribe(()=>{mt.withLockedPosition(!1).reapplyLastPosition(),mt.withLockedPosition(!0)}))}closeMenu(){var de;null===(de=this.menu)||void 0===de||de.close.emit()}focus(de,Ne){this._focusMonitor&&de?this._focusMonitor.focusVia(this._element,de,Ne):this._element.nativeElement.focus(Ne)}updatePosition(){var de;null===(de=this._overlayRef)||void 0===de||de.updatePosition()}_destroyMenu(de){var Ne;if(!this._overlayRef||!this.menuOpen)return;const tt=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===de||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,tt instanceof Ke?(tt._resetAnimation(),tt.lazyContent?tt._animationDone.pipe((0,Fe.h)(mt=>"void"===mt.toState),(0,v.q)(1),(0,he.R)(tt.lazyContent._attached)).subscribe({next:()=>tt.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),null===(Ne=null==tt?void 0:tt.lazyContent)||void 0===Ne||Ne.detach())}_initMenu(de){de.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,de.direction=this.dir,this._setMenuElevation(de),de.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(de){if(de.setElevation){let Ne=0,tt=de.parentMenu;for(;tt;)Ne++,tt=tt.parentMenu;de.setElevation(Ne)}}_setIsMenuOpen(de){this._menuOpen=de,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(de)}_createOverlay(de){if(!this._overlayRef){const Ne=this._getOverlayConfig(de);this._subscribeToPositions(de,Ne.positionStrategy),this._overlayRef=this._overlay.create(Ne),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(de){return new Ae.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:de.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:de.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(de,Ne){de.setPositionClasses&&Ne.positionChanges.subscribe(tt=>{const mt="start"===tt.connectionPair.overlayX?"after":"before",Ft="top"===tt.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>de.setPositionClasses(mt,Ft)):de.setPositionClasses(mt,Ft)})}_setPosition(de,Ne){let[tt,mt]="before"===de.xPosition?["end","start"]:["start","end"],[Ft,At]="above"===de.yPosition?["bottom","top"]:["top","bottom"],[Yt,Nt]=[Ft,At],[rt,Je]=[tt,mt],Ee=0;if(this.triggersSubmenu()){if(Je=tt="before"===de.xPosition?"start":"end",mt=rt="end"===tt?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const ve=this._parentMaterialMenu.items.first;this._parentInnerPadding=ve?ve._getHostElement().offsetTop:0}Ee="bottom"===Ft?this._parentInnerPadding:-this._parentInnerPadding}}else de.overlapTrigger||(Yt="top"===Ft?"bottom":"top",Nt="top"===At?"bottom":"top");Ne.withPositions([{originX:tt,originY:Yt,overlayX:rt,overlayY:Ft,offsetY:Ee},{originX:mt,originY:Yt,overlayX:Je,overlayY:Ft,offsetY:Ee},{originX:tt,originY:Nt,overlayX:rt,overlayY:At,offsetY:-Ee},{originX:mt,originY:Nt,overlayX:Je,overlayY:At,offsetY:-Ee}])}_menuClosingActions(){const de=this._overlayRef.backdropClick(),Ne=this._overlayRef.detachments(),tt=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,p.of)(),mt=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,Fe.h)(Ft=>Ft!==this._menuItemInstance),(0,Fe.h)(()=>this._menuOpen)):(0,p.of)();return(0,d.T)(de,tt,mt,Ne)}_handleMousedown(de){(0,n.X6)(de)||(this._openedBy=0===de.button?"mouse":void 0,this.triggersSubmenu()&&de.preventDefault())}_handleKeydown(de){const Ne=de.keyCode;(Ne===_.K5||Ne===_.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(Ne===_.SV&&"ltr"===this.dir||Ne===_.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(de){this.triggersSubmenu()?(de.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,Fe.h)(de=>de===this._menuItemInstance&&!de.disabled),$(0,y.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Ke&&this.menu._isAnimating?this.menu._animationDone.pipe((0,v.q)(1),$(0,y.E),(0,he.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(de){return(!this._portal||this._portal.templateRef!==de.templateRef)&&(this._portal=new be.UE(de.templateRef,this._viewContainerRef)),this._portal}}return W.\u0275fac=function(de){return new(de||W)(u.\u0275\u0275directiveInject(Ae.aV),u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(u.ViewContainerRef),u.\u0275\u0275directiveInject(we),u.\u0275\u0275directiveInject(He,8),u.\u0275\u0275directiveInject(je,10),u.\u0275\u0275directiveInject(me.Is,8),u.\u0275\u0275directiveInject(n.tE),u.\u0275\u0275directiveInject(u.NgZone))},W.\u0275dir=u.\u0275\u0275defineDirective({type:W,hostVars:3,hostBindings:function(de,Ne){1&de&&u.\u0275\u0275listener("click",function(mt){return Ne._handleClick(mt)})("mousedown",function(mt){return Ne._handleMousedown(mt)})("keydown",function(mt){return Ne._handleKeydown(mt)}),2&de&&u.\u0275\u0275attribute("aria-haspopup",Ne.menu?"menu":null)("aria-expanded",Ne.menuOpen||null)("aria-controls",Ne.menuOpen?Ne.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"}}),W})(),dt=(()=>{class W extends Ue{}return W.\u0275fac=function(){let ye;return function(Ne){return(ye||(ye=u.\u0275\u0275getInheritedFactory(W)))(Ne||W)}}(),W.\u0275dir=u.\u0275\u0275defineDirective({type:W,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[u.\u0275\u0275InheritDefinitionFeature]}),W})(),xe=(()=>{class W{}return W.\u0275fac=function(de){return new(de||W)},W.\u0275mod=u.\u0275\u0275defineNgModule({type:W}),W.\u0275inj=u.\u0275\u0275defineInjector({providers:[Be],imports:[ke.CommonModule,ie.MatCommonModule,ie.MatRippleModule,Ae.U8,V.ZD,ie.MatCommonModule]}),W})()},4999:(z,o,a)=>{"use strict";a.r(o),a.d(o,{MatCell:()=>rn,MatCellDef:()=>bt,MatColumnDef:()=>at,MatFooterCell:()=>Ht,MatFooterCellDef:()=>Oe,MatFooterRow:()=>De,MatFooterRowDef:()=>vn,MatHeaderCell:()=>Dt,MatHeaderCellDef:()=>X,MatHeaderRow:()=>Ye,MatHeaderRowDef:()=>Xt,MatNoDataRow:()=>ct,MatRecycleRows:()=>vt,MatRow:()=>et,MatRowDef:()=>qe,MatTable:()=>Ge,MatTableDataSource:()=>Hn,MatTableModule:()=>Wt,MatTextColumn:()=>It,_MatTableDataSource:()=>gn});var n=a(5e3),h=a(3191),_=a(449),u=a(9808),r=a(7579),c=a(2076),d=a(1135),p=a(8306),y=a(576),b=a(9646),v=a(2722),m=a(5698),C=a(226),M=a(925),O=a(495);const P=[[["caption"]],[["colgroup"],["col"]]],N=["caption","colgroup, col"];function Y(ce,Ze){if(1&ce&&(n.\u0275\u0275elementStart(0,"th",3),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&ce){const q=n.\u0275\u0275nextContext();n.\u0275\u0275styleProp("text-align",q.justify),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",q.headerText," ")}}function U(ce,Ze){if(1&ce&&(n.\u0275\u0275elementStart(0,"td",4),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&ce){const q=Ze.$implicit,Le=n.\u0275\u0275nextContext();n.\u0275\u0275styleProp("text-align",Le.justify),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",Le.dataAccessor(q,Le.name)," ")}}function G(ce){return class extends ce{constructor(...Ze){super(...Ze),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(Ze){const q=this._sticky;this._sticky=(0,h.Ig)(Ze),this._hasStickyChanged=q!==this._sticky}hasStickyChanged(){const Ze=this._hasStickyChanged;return this._hasStickyChanged=!1,Ze}resetStickyChanged(){this._hasStickyChanged=!1}}}const $=new n.InjectionToken("CDK_TABLE"),J=new n.InjectionToken("text-column-options");let te=(()=>{class ce{constructor(q){this.template=q}}return ce.\u0275fac=function(q){return new(q||ce)(n.\u0275\u0275directiveInject(n.TemplateRef))},ce.\u0275dir=n.\u0275\u0275defineDirective({type:ce,selectors:[["","cdkCellDef",""]]}),ce})(),he=(()=>{class ce{constructor(q){this.template=q}}return ce.\u0275fac=function(q){return new(q||ce)(n.\u0275\u0275directiveInject(n.TemplateRef))},ce.\u0275dir=n.\u0275\u0275defineDirective({type:ce,selectors:[["","cdkHeaderCellDef",""]]}),ce})(),Fe=(()=>{class ce{constructor(q){this.template=q}}return ce.\u0275fac=function(q){return new(q||ce)(n.\u0275\u0275directiveInject(n.TemplateRef))},ce.\u0275dir=n.\u0275\u0275defineDirective({type:ce,selectors:[["","cdkFooterCellDef",""]]}),ce})();class it{}const be=G(it);let ke=(()=>{class ce extends be{constructor(q){super(),this._table=q,this._stickyEnd=!1}get name(){return this._name}set name(q){this._setNameInput(q)}get stickyEnd(){return this._stickyEnd}set stickyEnd(q){const Le=this._stickyEnd;this._stickyEnd=(0,h.Ig)(q),this._hasStickyChanged=Le!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(q){q&&(this._name=q,this.cssClassFriendlyName=q.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return ce.\u0275fac=function(q){return new(q||ce)(n.\u0275\u0275directiveInject($,8))},ce.\u0275dir=n.\u0275\u0275defineDirective({type:ce,selectors:[["","cdkColumnDef",""]],contentQueries:function(q,Le,ft){if(1&q&&(n.\u0275\u0275contentQuery(ft,te,5),n.\u0275\u0275contentQuery(ft,he,5),n.\u0275\u0275contentQuery(ft,Fe,5)),2&q){let Tt;n.\u0275\u0275queryRefresh(Tt=n.\u0275\u0275loadQuery())&&(Le.cell=Tt.first),n.\u0275\u0275queryRefresh(Tt=n.\u0275\u0275loadQuery())&&(Le.headerCell=Tt.first),n.\u0275\u0275queryRefresh(Tt=n.\u0275\u0275loadQuery())&&(Le.footerCell=Tt.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[n.\u0275\u0275ProvidersFeature([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:ce}]),n.\u0275\u0275InheritDefinitionFeature]}),ce})();class ie{constructor(Ze,q){q.nativeElement.classList.add(...Ze._columnCssClassName)}}let Ae=(()=>{class ce extends ie{constructor(q,Le){super(q,Le)}}return ce.\u0275fac=function(q){return new(q||ce)(n.\u0275\u0275directiveInject(ke),n.\u0275\u0275directiveInject(n.ElementRef))},ce.\u0275dir=n.\u0275\u0275defineDirective({type:ce,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[n.\u0275\u0275InheritDefinitionFeature]}),ce})(),oe=(()=>{class ce extends ie{constructor(q,Le){var ft;if(super(q,Le),1===(null===(ft=q._table)||void 0===ft?void 0:ft._elementRef.nativeElement.nodeType)){const Tt=q._table._elementRef.nativeElement.getAttribute("role");Le.nativeElement.setAttribute("role","grid"===Tt||"treegrid"===Tt?"gridcell":"cell")}}}return ce.\u0275fac=function(q){return new(q||ce)(n.\u0275\u0275directiveInject(ke),n.\u0275\u0275directiveInject(n.ElementRef))},ce.\u0275dir=n.\u0275\u0275defineDirective({type:ce,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[n.\u0275\u0275InheritDefinitionFeature]}),ce})(),me=(()=>{class ce extends ie{constructor(q,Le){var ft;if(super(q,Le),1===(null===(ft=q._table)||void 0===ft?void 0:ft._elementRef.nativeElement.nodeType)){const Tt=q._table._elementRef.nativeElement.getAttribute("role");Le.nativeElement.setAttribute("role","grid"===Tt||"treegrid"===Tt?"gridcell":"cell")}}}return ce.\u0275fac=function(q){return new(q||ce)(n.\u0275\u0275directiveInject(ke),n.\u0275\u0275directiveInject(n.ElementRef))},ce.\u0275dir=n.\u0275\u0275defineDirective({type:ce,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[n.\u0275\u0275InheritDefinitionFeature]}),ce})();class V{constructor(){this.tasks=[],this.endTasks=[]}}const H=new n.InjectionToken("_COALESCED_STYLE_SCHEDULER");let re=(()=>{class ce{constructor(q){this._ngZone=q,this._currentSchedule=null,this._destroyed=new r.x}schedule(q){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(q)}scheduleEnd(q){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(q)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new V,this._getScheduleObservable().pipe((0,v.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const q=this._currentSchedule;this._currentSchedule=new V;for(const Le of q.tasks)Le();for(const Le of q.endTasks)Le()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,c.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,m.q)(1))}}return ce.\u0275fac=function(q){return new(q||ce)(n.\u0275\u0275inject(n.NgZone))},ce.\u0275prov=n.\u0275\u0275defineInjectable({token:ce,factory:ce.\u0275fac}),ce})(),ue=(()=>{class ce{constructor(q,Le){this.template=q,this._differs=Le}ngOnChanges(q){if(!this._columnsDiffer){const Le=q.columns&&q.columns.currentValue||[];this._columnsDiffer=this._differs.find(Le).create(),this._columnsDiffer.diff(Le)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(q){return this instanceof Pe?q.headerCell.template:this instanceof lt?q.footerCell.template:q.cell.template}}return ce.\u0275fac=function(q){return new(q||ce)(n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(n.IterableDiffers))},ce.\u0275dir=n.\u0275\u0275defineDirective({type:ce,features:[n.\u0275\u0275NgOnChangesFeature]}),ce})();class ge extends ue{}const Te=G(ge);let Pe=(()=>{class ce extends Te{constructor(q,Le,ft){super(q,Le),this._table=ft}ngOnChanges(q){super.ngOnChanges(q)}}return ce.\u0275fac=function(q){return new(q||ce)(n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(n.IterableDiffers),n.\u0275\u0275directiveInject($,8))},ce.\u0275dir=n.\u0275\u0275defineDirective({type:ce,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[n.\u0275\u0275InheritDefinitionFeature,n.\u0275\u0275NgOnChangesFeature]}),ce})();class Ce extends ue{}const $e=G(Ce);let lt=(()=>{class ce extends $e{constructor(q,Le,ft){super(q,Le),this._table=ft}ngOnChanges(q){super.ngOnChanges(q)}}return ce.\u0275fac=function(q){return new(q||ce)(n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(n.IterableDiffers),n.\u0275\u0275directiveInject($,8))},ce.\u0275dir=n.\u0275\u0275defineDirective({type:ce,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[n.\u0275\u0275InheritDefinitionFeature,n.\u0275\u0275NgOnChangesFeature]}),ce})(),yt=(()=>{class ce extends ue{constructor(q,Le,ft){super(q,Le),this._table=ft}}return ce.\u0275fac=function(q){return new(q||ce)(n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(n.IterableDiffers),n.\u0275\u0275directiveInject($,8))},ce.\u0275dir=n.\u0275\u0275defineDirective({type:ce,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[n.\u0275\u0275InheritDefinitionFeature]}),ce})(),_t=(()=>{class ce{constructor(q){this._viewContainer=q,ce.mostRecentCellOutlet=this}ngOnDestroy(){ce.mostRecentCellOutlet===this&&(ce.mostRecentCellOutlet=null)}}return ce.mostRecentCellOutlet=null,ce.\u0275fac=function(q){return new(q||ce)(n.\u0275\u0275directiveInject(n.ViewContainerRef))},ce.\u0275dir=n.\u0275\u0275defineDirective({type:ce,selectors:[["","cdkCellOutlet",""]]}),ce})(),ut=(()=>{class ce{}return ce.\u0275fac=function(q){return new(q||ce)},ce.\u0275cmp=n.\u0275\u0275defineComponent({type:ce,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(q,Le){1&q&&n.\u0275\u0275elementContainer(0,0)},dependencies:[_t],encapsulation:2}),ce})(),He=(()=>{class ce{}return ce.\u0275fac=function(q){return new(q||ce)},ce.\u0275cmp=n.\u0275\u0275defineComponent({type:ce,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(q,Le){1&q&&n.\u0275\u0275elementContainer(0,0)},dependencies:[_t],encapsulation:2}),ce})(),Ie=(()=>{class ce{}return ce.\u0275fac=function(q){return new(q||ce)},ce.\u0275cmp=n.\u0275\u0275defineComponent({type:ce,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(q,Le){1&q&&n.\u0275\u0275elementContainer(0,0)},dependencies:[_t],encapsulation:2}),ce})(),je=(()=>{class ce{constructor(q){this.templateRef=q,this._contentClassName="cdk-no-data-row"}}return ce.\u0275fac=function(q){return new(q||ce)(n.\u0275\u0275directiveInject(n.TemplateRef))},ce.\u0275dir=n.\u0275\u0275defineDirective({type:ce,selectors:[["ng-template","cdkNoDataRow",""]]}),ce})();const pe=["top","bottom","left","right"];class Qe{constructor(Ze,q,Le,ft,Tt=!0,xt=!0,Kt){this._isNativeHtmlTable=Ze,this._stickCellCss=q,this.direction=Le,this._coalescedStyleScheduler=ft,this._isBrowser=Tt,this._needsPositionStickyOnElement=xt,this._positionListener=Kt,this._cachedCellWidths=[],this._borderCellCss={top:`${q}-border-elem-top`,bottom:`${q}-border-elem-bottom`,left:`${q}-border-elem-left`,right:`${q}-border-elem-right`}}clearStickyPositioning(Ze,q){const Le=[];for(const ft of Ze)if(ft.nodeType===ft.ELEMENT_NODE){Le.push(ft);for(let Tt=0;Tt<ft.children.length;Tt++)Le.push(ft.children[Tt])}this._coalescedStyleScheduler.schedule(()=>{for(const ft of Le)this._removeStickyStyle(ft,q)})}updateStickyColumns(Ze,q,Le,ft=!0){if(!Ze.length||!this._isBrowser||!q.some(nn=>nn)&&!Le.some(nn=>nn))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const Tt=Ze[0],xt=Tt.children.length,Kt=this._getCellWidths(Tt,ft),Ut=this._getStickyStartColumnPositions(Kt,q),_n=this._getStickyEndColumnPositions(Kt,Le),dn=q.lastIndexOf(!0),ln=Le.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const nn="rtl"===this.direction,zn=nn?"right":"left",cn=nn?"left":"right";for(const On of Ze)for(let kn=0;kn<xt;kn++){const En=On.children[kn];q[kn]&&this._addStickyStyle(En,zn,Ut[kn],kn===dn),Le[kn]&&this._addStickyStyle(En,cn,_n[kn],kn===ln)}this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:-1===dn?[]:Kt.slice(0,dn+1).map((On,kn)=>q[kn]?On:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===ln?[]:Kt.slice(ln).map((On,kn)=>Le[kn+ln]?On:null).reverse()}))})}stickRows(Ze,q,Le){if(!this._isBrowser)return;const ft="bottom"===Le?Ze.slice().reverse():Ze,Tt="bottom"===Le?q.slice().reverse():q,xt=[],Kt=[],Ut=[];for(let dn=0,ln=0;dn<ft.length;dn++){if(!Tt[dn])continue;xt[dn]=ln;const nn=ft[dn];Ut[dn]=this._isNativeHtmlTable?Array.from(nn.children):[nn];const zn=nn.getBoundingClientRect().height;ln+=zn,Kt[dn]=zn}const _n=Tt.lastIndexOf(!0);this._coalescedStyleScheduler.schedule(()=>{var dn,ln;for(let nn=0;nn<ft.length;nn++){if(!Tt[nn])continue;const zn=xt[nn],cn=nn===_n;for(const On of Ut[nn])this._addStickyStyle(On,Le,zn,cn)}"top"===Le?null===(dn=this._positionListener)||void 0===dn||dn.stickyHeaderRowsUpdated({sizes:Kt,offsets:xt,elements:Ut}):null===(ln=this._positionListener)||void 0===ln||ln.stickyFooterRowsUpdated({sizes:Kt,offsets:xt,elements:Ut})})}updateStickyFooterContainer(Ze,q){if(!this._isNativeHtmlTable)return;const Le=Ze.querySelector("tfoot");this._coalescedStyleScheduler.schedule(()=>{q.some(ft=>!ft)?this._removeStickyStyle(Le,["bottom"]):this._addStickyStyle(Le,"bottom",0,!1)})}_removeStickyStyle(Ze,q){for(const ft of q)Ze.style[ft]="",Ze.classList.remove(this._borderCellCss[ft]);pe.some(ft=>-1===q.indexOf(ft)&&Ze.style[ft])?Ze.style.zIndex=this._getCalculatedZIndex(Ze):(Ze.style.zIndex="",this._needsPositionStickyOnElement&&(Ze.style.position=""),Ze.classList.remove(this._stickCellCss))}_addStickyStyle(Ze,q,Le,ft){Ze.classList.add(this._stickCellCss),ft&&Ze.classList.add(this._borderCellCss[q]),Ze.style[q]=`${Le}px`,Ze.style.zIndex=this._getCalculatedZIndex(Ze),this._needsPositionStickyOnElement&&(Ze.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(Ze){const q={top:100,bottom:10,left:1,right:1};let Le=0;for(const ft of pe)Ze.style[ft]&&(Le+=q[ft]);return Le?`${Le}`:""}_getCellWidths(Ze,q=!0){if(!q&&this._cachedCellWidths.length)return this._cachedCellWidths;const Le=[],ft=Ze.children;for(let Tt=0;Tt<ft.length;Tt++)Le.push(ft[Tt].getBoundingClientRect().width);return this._cachedCellWidths=Le,Le}_getStickyStartColumnPositions(Ze,q){const Le=[];let ft=0;for(let Tt=0;Tt<Ze.length;Tt++)q[Tt]&&(Le[Tt]=ft,ft+=Ze[Tt]);return Le}_getStickyEndColumnPositions(Ze,q){const Le=[];let ft=0;for(let Tt=Ze.length;Tt>0;Tt--)q[Tt]&&(Le[Tt]=ft,ft+=Ze[Tt]);return Le}}const Ue=new n.InjectionToken("CDK_SPL");let xe=(()=>{class ce{constructor(q,Le){this.viewContainer=q,this.elementRef=Le}}return ce.\u0275fac=function(q){return new(q||ce)(n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(n.ElementRef))},ce.\u0275dir=n.\u0275\u0275defineDirective({type:ce,selectors:[["","rowOutlet",""]]}),ce})(),W=(()=>{class ce{constructor(q,Le){this.viewContainer=q,this.elementRef=Le}}return ce.\u0275fac=function(q){return new(q||ce)(n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(n.ElementRef))},ce.\u0275dir=n.\u0275\u0275defineDirective({type:ce,selectors:[["","headerRowOutlet",""]]}),ce})(),ye=(()=>{class ce{constructor(q,Le){this.viewContainer=q,this.elementRef=Le}}return ce.\u0275fac=function(q){return new(q||ce)(n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(n.ElementRef))},ce.\u0275dir=n.\u0275\u0275defineDirective({type:ce,selectors:[["","footerRowOutlet",""]]}),ce})(),de=(()=>{class ce{constructor(q,Le){this.viewContainer=q,this.elementRef=Le}}return ce.\u0275fac=function(q){return new(q||ce)(n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(n.ElementRef))},ce.\u0275dir=n.\u0275\u0275defineDirective({type:ce,selectors:[["","noDataRowOutlet",""]]}),ce})(),mt=(()=>{class ce{constructor(q,Le,ft,Tt,xt,Kt,Ut,_n,dn,ln,nn,zn){this._differs=q,this._changeDetectorRef=Le,this._elementRef=ft,this._dir=xt,this._platform=Ut,this._viewRepeater=_n,this._coalescedStyleScheduler=dn,this._viewportRuler=ln,this._stickyPositioningListener=nn,this._ngZone=zn,this._onDestroy=new r.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 n.EventEmitter,this.viewChange=new d.X({start:0,end:Number.MAX_VALUE}),Tt||this._elementRef.nativeElement.setAttribute("role","table"),this._document=Kt,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(q){this._trackByFn=q}get dataSource(){return this._dataSource}set dataSource(q){this._dataSource!==q&&this._switchDataSource(q)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(q){this._multiTemplateDataRows=(0,h.Ig)(q),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(q){this._fixedLayout=(0,h.Ig)(q),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((q,Le)=>this.trackBy?this.trackBy(Le.dataIndex,Le.data):Le),this._viewportRuler.change().pipe((0,v.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const Le=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||Le,this._forceRecalculateCellWidths=Le,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,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(q=>{q.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,_.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const q=this._dataDiffer.diff(this._renderRows);if(!q)return this._updateNoDataRow(),void this.contentChanged.next();const Le=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(q,Le,(ft,Tt,xt)=>this._getEmbeddedViewArgs(ft.item,xt),ft=>ft.item.data,ft=>{1===ft.operation&&ft.context&&this._renderCellTemplateForItem(ft.record.item.rowDef,ft.context)}),this._updateRowIndexContext(),q.forEachIdentityChange(ft=>{Le.get(ft.currentIndex).context.$implicit=ft.item.data}),this._updateNoDataRow(),this._ngZone&&n.NgZone.isInAngularZone()?this._ngZone.onStable.pipe((0,m.q)(1),(0,v.R)(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(q){this._customColumnDefs.add(q)}removeColumnDef(q){this._customColumnDefs.delete(q)}addRowDef(q){this._customRowDefs.add(q)}removeRowDef(q){this._customRowDefs.delete(q)}addHeaderRowDef(q){this._customHeaderRowDefs.add(q),this._headerRowDefChanged=!0}removeHeaderRowDef(q){this._customHeaderRowDefs.delete(q),this._headerRowDefChanged=!0}addFooterRowDef(q){this._customFooterRowDefs.add(q),this._footerRowDefChanged=!0}removeFooterRowDef(q){this._customFooterRowDefs.delete(q),this._footerRowDefChanged=!0}setNoDataRow(q){this._customNoDataRow=q}updateStickyHeaderRowStyles(){const q=this._getRenderedRows(this._headerRowOutlet),ft=this._elementRef.nativeElement.querySelector("thead");ft&&(ft.style.display=q.length?"":"none");const Tt=this._headerRowDefs.map(xt=>xt.sticky);this._stickyStyler.clearStickyPositioning(q,["top"]),this._stickyStyler.stickRows(q,Tt,"top"),this._headerRowDefs.forEach(xt=>xt.resetStickyChanged())}updateStickyFooterRowStyles(){const q=this._getRenderedRows(this._footerRowOutlet),ft=this._elementRef.nativeElement.querySelector("tfoot");ft&&(ft.style.display=q.length?"":"none");const Tt=this._footerRowDefs.map(xt=>xt.sticky);this._stickyStyler.clearStickyPositioning(q,["bottom"]),this._stickyStyler.stickRows(q,Tt,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,Tt),this._footerRowDefs.forEach(xt=>xt.resetStickyChanged())}updateStickyColumnStyles(){const q=this._getRenderedRows(this._headerRowOutlet),Le=this._getRenderedRows(this._rowOutlet),ft=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...q,...Le,...ft],["left","right"]),this._stickyColumnStylesNeedReset=!1),q.forEach((Tt,xt)=>{this._addStickyColumnStyles([Tt],this._headerRowDefs[xt])}),this._rowDefs.forEach(Tt=>{const xt=[];for(let Kt=0;Kt<Le.length;Kt++)this._renderRows[Kt].rowDef===Tt&&xt.push(Le[Kt]);this._addStickyColumnStyles(xt,Tt)}),ft.forEach((Tt,xt)=>{this._addStickyColumnStyles([Tt],this._footerRowDefs[xt])}),Array.from(this._columnDefsByName.values()).forEach(Tt=>Tt.resetStickyChanged())}_getAllRenderRows(){const q=[],Le=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let ft=0;ft<this._data.length;ft++){let Tt=this._data[ft];const xt=this._getRenderRowsForData(Tt,ft,Le.get(Tt));this._cachedRenderRowsMap.has(Tt)||this._cachedRenderRowsMap.set(Tt,new WeakMap);for(let Kt=0;Kt<xt.length;Kt++){let Ut=xt[Kt];const _n=this._cachedRenderRowsMap.get(Ut.data);_n.has(Ut.rowDef)?_n.get(Ut.rowDef).push(Ut):_n.set(Ut.rowDef,[Ut]),q.push(Ut)}}return q}_getRenderRowsForData(q,Le,ft){return this._getRowDefs(q,Le).map(xt=>{const Kt=ft&&ft.has(xt)?ft.get(xt):[];if(Kt.length){const Ut=Kt.shift();return Ut.dataIndex=Le,Ut}return{data:q,rowDef:xt,dataIndex:Le}})}_cacheColumnDefs(){this._columnDefsByName.clear(),Ft(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(Le=>{this._columnDefsByName.has(Le.name),this._columnDefsByName.set(Le.name,Le)})}_cacheRowDefs(){this._headerRowDefs=Ft(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Ft(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Ft(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const q=this._rowDefs.filter(Le=>!Le.when);this._defaultRowDef=q[0]}_renderUpdatedColumns(){const q=(xt,Kt)=>xt||!!Kt.getColumnsDiff(),Le=this._rowDefs.reduce(q,!1);Le&&this._forceRenderDataRows();const ft=this._headerRowDefs.reduce(q,!1);ft&&this._forceRenderHeaderRows();const Tt=this._footerRowDefs.reduce(q,!1);return Tt&&this._forceRenderFooterRows(),Le||ft||Tt}_switchDataSource(q){this._data=[],(0,_.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),q||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=q}_observeRenderChanges(){if(!this.dataSource)return;let q;(0,_.Z9)(this.dataSource)?q=this.dataSource.connect(this):function f(ce){return!!ce&&(ce instanceof p.y||(0,y.m)(ce.lift)&&(0,y.m)(ce.subscribe))}(this.dataSource)?q=this.dataSource:Array.isArray(this.dataSource)&&(q=(0,b.of)(this.dataSource)),this._renderChangeSubscription=q.pipe((0,v.R)(this._onDestroy)).subscribe(Le=>{this._data=Le||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((q,Le)=>this._renderRow(this._headerRowOutlet,q,Le)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((q,Le)=>this._renderRow(this._footerRowOutlet,q,Le)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(q,Le){const ft=Array.from(Le.columns||[]).map(Kt=>this._columnDefsByName.get(Kt)),Tt=ft.map(Kt=>Kt.sticky),xt=ft.map(Kt=>Kt.stickyEnd);this._stickyStyler.updateStickyColumns(q,Tt,xt,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(q){const Le=[];for(let ft=0;ft<q.viewContainer.length;ft++){const Tt=q.viewContainer.get(ft);Le.push(Tt.rootNodes[0])}return Le}_getRowDefs(q,Le){if(1==this._rowDefs.length)return[this._rowDefs[0]];let ft=[];if(this.multiTemplateDataRows)ft=this._rowDefs.filter(Tt=>!Tt.when||Tt.when(Le,q));else{let Tt=this._rowDefs.find(xt=>xt.when&&xt.when(Le,q))||this._defaultRowDef;Tt&&ft.push(Tt)}return ft}_getEmbeddedViewArgs(q,Le){return{templateRef:q.rowDef.template,context:{$implicit:q.data},index:Le}}_renderRow(q,Le,ft,Tt={}){const xt=q.viewContainer.createEmbeddedView(Le.template,Tt,ft);return this._renderCellTemplateForItem(Le,Tt),xt}_renderCellTemplateForItem(q,Le){for(let ft of this._getCellTemplates(q))_t.mostRecentCellOutlet&&_t.mostRecentCellOutlet._viewContainer.createEmbeddedView(ft,Le);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const q=this._rowOutlet.viewContainer;for(let Le=0,ft=q.length;Le<ft;Le++){const xt=q.get(Le).context;xt.count=ft,xt.first=0===Le,xt.last=Le===ft-1,xt.even=Le%2==0,xt.odd=!xt.even,this.multiTemplateDataRows?(xt.dataIndex=this._renderRows[Le].dataIndex,xt.renderIndex=Le):xt.index=this._renderRows[Le].dataIndex}}_getCellTemplates(q){return q&&q.columns?Array.from(q.columns,Le=>{const ft=this._columnDefsByName.get(Le);return q.extractCellTemplate(ft)}):[]}_applyNativeTableSections(){const q=this._document.createDocumentFragment(),Le=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const ft of Le){const Tt=this._document.createElement(ft.tag);Tt.setAttribute("role","rowgroup");for(const xt of ft.outlets)Tt.appendChild(xt.elementRef.nativeElement);q.appendChild(Tt)}this._elementRef.nativeElement.appendChild(q)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const q=(Le,ft)=>Le||ft.hasStickyChanged();this._headerRowDefs.reduce(q,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(q,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(q,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new Qe(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,b.of)()).pipe((0,v.R)(this._onDestroy)).subscribe(Le=>{this._stickyStyler.direction=Le,this.updateStickyColumnStyles()})}_getOwnDefs(q){return q.filter(Le=>!Le._table||Le._table===this)}_updateNoDataRow(){const q=this._customNoDataRow||this._noDataRow;if(!q)return;const Le=0===this._rowOutlet.viewContainer.length;if(Le===this._isShowingNoDataRow)return;const ft=this._noDataRowOutlet.viewContainer;if(Le){const Tt=ft.createEmbeddedView(q.templateRef),xt=Tt.rootNodes[0];1===Tt.rootNodes.length&&(null==xt?void 0:xt.nodeType)===this._document.ELEMENT_NODE&&(xt.setAttribute("role","row"),xt.classList.add(q._contentClassName))}else ft.clear();this._isShowingNoDataRow=Le}}return ce.\u0275fac=function(q){return new(q||ce)(n.\u0275\u0275directiveInject(n.IterableDiffers),n.\u0275\u0275directiveInject(n.ChangeDetectorRef),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275injectAttribute("role"),n.\u0275\u0275directiveInject(C.Is,8),n.\u0275\u0275directiveInject(u.DOCUMENT),n.\u0275\u0275directiveInject(M.t4),n.\u0275\u0275directiveInject(_.k),n.\u0275\u0275directiveInject(H),n.\u0275\u0275directiveInject(O.rL),n.\u0275\u0275directiveInject(Ue,12),n.\u0275\u0275directiveInject(n.NgZone,8))},ce.\u0275cmp=n.\u0275\u0275defineComponent({type:ce,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(q,Le,ft){if(1&q&&(n.\u0275\u0275contentQuery(ft,je,5),n.\u0275\u0275contentQuery(ft,ke,5),n.\u0275\u0275contentQuery(ft,yt,5),n.\u0275\u0275contentQuery(ft,Pe,5),n.\u0275\u0275contentQuery(ft,lt,5)),2&q){let Tt;n.\u0275\u0275queryRefresh(Tt=n.\u0275\u0275loadQuery())&&(Le._noDataRow=Tt.first),n.\u0275\u0275queryRefresh(Tt=n.\u0275\u0275loadQuery())&&(Le._contentColumnDefs=Tt),n.\u0275\u0275queryRefresh(Tt=n.\u0275\u0275loadQuery())&&(Le._contentRowDefs=Tt),n.\u0275\u0275queryRefresh(Tt=n.\u0275\u0275loadQuery())&&(Le._contentHeaderRowDefs=Tt),n.\u0275\u0275queryRefresh(Tt=n.\u0275\u0275loadQuery())&&(Le._contentFooterRowDefs=Tt)}},viewQuery:function(q,Le){if(1&q&&(n.\u0275\u0275viewQuery(xe,7),n.\u0275\u0275viewQuery(W,7),n.\u0275\u0275viewQuery(ye,7),n.\u0275\u0275viewQuery(de,7)),2&q){let ft;n.\u0275\u0275queryRefresh(ft=n.\u0275\u0275loadQuery())&&(Le._rowOutlet=ft.first),n.\u0275\u0275queryRefresh(ft=n.\u0275\u0275loadQuery())&&(Le._headerRowOutlet=ft.first),n.\u0275\u0275queryRefresh(ft=n.\u0275\u0275loadQuery())&&(Le._footerRowOutlet=ft.first),n.\u0275\u0275queryRefresh(ft=n.\u0275\u0275loadQuery())&&(Le._noDataRowOutlet=ft.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(q,Le){2&q&&n.\u0275\u0275classProp("cdk-table-fixed-layout",Le.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[n.\u0275\u0275ProvidersFeature([{provide:$,useExisting:ce},{provide:_.k,useClass:_.yy},{provide:H,useClass:re},{provide:Ue,useValue:null}])],ngContentSelectors:N,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(q,Le){1&q&&(n.\u0275\u0275projectionDef(P),n.\u0275\u0275projection(0),n.\u0275\u0275projection(1,1),n.\u0275\u0275elementContainer(2,0)(3,1)(4,2)(5,3))},dependencies:[xe,W,ye,de],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),ce})();function Ft(ce,Ze){return ce.concat(Array.from(Ze))}let At=(()=>{class ce{constructor(q,Le){this._table=q,this._options=Le,this.justify="start",this._options=Le||{}}get name(){return this._name}set name(q){this._name=q,this._syncColumnDefName()}ngOnInit(){this._syncColumnDefName(),void 0===this.headerText&&(this.headerText=this._createDefaultHeaderText()),this.dataAccessor||(this.dataAccessor=this._options.defaultDataAccessor||((q,Le)=>q[Le])),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 q=this.name;return this._options&&this._options.defaultHeaderTextTransform?this._options.defaultHeaderTextTransform(q):q[0].toUpperCase()+q.slice(1)}_syncColumnDefName(){this.columnDef&&(this.columnDef.name=this.name)}}return ce.\u0275fac=function(q){return new(q||ce)(n.\u0275\u0275directiveInject(mt,8),n.\u0275\u0275directiveInject(J,8))},ce.\u0275cmp=n.\u0275\u0275defineComponent({type:ce,selectors:[["cdk-text-column"]],viewQuery:function(q,Le){if(1&q&&(n.\u0275\u0275viewQuery(ke,7),n.\u0275\u0275viewQuery(te,7),n.\u0275\u0275viewQuery(he,7)),2&q){let ft;n.\u0275\u0275queryRefresh(ft=n.\u0275\u0275loadQuery())&&(Le.columnDef=ft.first),n.\u0275\u0275queryRefresh(ft=n.\u0275\u0275loadQuery())&&(Le.cell=ft.first),n.\u0275\u0275queryRefresh(ft=n.\u0275\u0275loadQuery())&&(Le.headerCell=ft.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(q,Le){1&q&&(n.\u0275\u0275elementContainerStart(0,0),n.\u0275\u0275template(1,Y,2,3,"th",1),n.\u0275\u0275template(2,U,2,3,"td",2),n.\u0275\u0275elementContainerEnd())},dependencies:[te,he,ke,me,Ae],encapsulation:2}),ce})(),Nt=(()=>{class ce{}return ce.\u0275fac=function(q){return new(q||ce)},ce.\u0275mod=n.\u0275\u0275defineNgModule({type:ce}),ce.\u0275inj=n.\u0275\u0275defineInjector({imports:[O.Cl]}),ce})();var rt=a(508),Je=a(6451),Ee=a(9841),ve=a(4004);const se=[[["caption"]],[["colgroup"],["col"]]],ae=["caption","colgroup, col"];function j(ce,Ze){if(1&ce&&(n.\u0275\u0275elementStart(0,"th",3),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&ce){const q=n.\u0275\u0275nextContext();n.\u0275\u0275styleProp("text-align",q.justify),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",q.headerText," ")}}function Me(ce,Ze){if(1&ce&&(n.\u0275\u0275elementStart(0,"td",4),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&ce){const q=Ze.$implicit,Le=n.\u0275\u0275nextContext();n.\u0275\u0275styleProp("text-align",Le.justify),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",Le.dataAccessor(q,Le.name)," ")}}let vt=(()=>{class ce{}return ce.\u0275fac=function(q){return new(q||ce)},ce.\u0275dir=n.\u0275\u0275defineDirective({type:ce,selectors:[["mat-table","recycleRows",""],["table","mat-table","","recycleRows",""]],features:[n.\u0275\u0275ProvidersFeature([{provide:_.k,useClass:_.eX}])]}),ce})(),Ge=(()=>{class ce extends mt{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return ce.\u0275fac=function(){let Ze;return function(Le){return(Ze||(Ze=n.\u0275\u0275getInheritedFactory(ce)))(Le||ce)}}(),ce.\u0275cmp=n.\u0275\u0275defineComponent({type:ce,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(q,Le){2&q&&n.\u0275\u0275classProp("mat-table-fixed-layout",Le.fixedLayout)},exportAs:["matTable"],features:[n.\u0275\u0275ProvidersFeature([{provide:_.k,useClass:_.yy},{provide:mt,useExisting:ce},{provide:$,useExisting:ce},{provide:H,useClass:re},{provide:Ue,useValue:null}]),n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:ae,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(q,Le){1&q&&(n.\u0275\u0275projectionDef(se),n.\u0275\u0275projection(0),n.\u0275\u0275projection(1,1),n.\u0275\u0275elementContainer(2,0)(3,1)(4,2)(5,3))},dependencies:[xe,W,ye,de],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:sticky !important}.mat-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),ce})(),bt=(()=>{class ce extends te{}return ce.\u0275fac=function(){let Ze;return function(Le){return(Ze||(Ze=n.\u0275\u0275getInheritedFactory(ce)))(Le||ce)}}(),ce.\u0275dir=n.\u0275\u0275defineDirective({type:ce,selectors:[["","matCellDef",""]],features:[n.\u0275\u0275ProvidersFeature([{provide:te,useExisting:ce}]),n.\u0275\u0275InheritDefinitionFeature]}),ce})(),X=(()=>{class ce extends he{}return ce.\u0275fac=function(){let Ze;return function(Le){return(Ze||(Ze=n.\u0275\u0275getInheritedFactory(ce)))(Le||ce)}}(),ce.\u0275dir=n.\u0275\u0275defineDirective({type:ce,selectors:[["","matHeaderCellDef",""]],features:[n.\u0275\u0275ProvidersFeature([{provide:he,useExisting:ce}]),n.\u0275\u0275InheritDefinitionFeature]}),ce})(),Oe=(()=>{class ce extends Fe{}return ce.\u0275fac=function(){let Ze;return function(Le){return(Ze||(Ze=n.\u0275\u0275getInheritedFactory(ce)))(Le||ce)}}(),ce.\u0275dir=n.\u0275\u0275defineDirective({type:ce,selectors:[["","matFooterCellDef",""]],features:[n.\u0275\u0275ProvidersFeature([{provide:Fe,useExisting:ce}]),n.\u0275\u0275InheritDefinitionFeature]}),ce})(),at=(()=>{class ce extends ke{get name(){return this._name}set name(q){this._setNameInput(q)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return ce.\u0275fac=function(){let Ze;return function(Le){return(Ze||(Ze=n.\u0275\u0275getInheritedFactory(ce)))(Le||ce)}}(),ce.\u0275dir=n.\u0275\u0275defineDirective({type:ce,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[n.\u0275\u0275ProvidersFeature([{provide:ke,useExisting:ce},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:ce}]),n.\u0275\u0275InheritDefinitionFeature]}),ce})(),Dt=(()=>{class ce extends Ae{}return ce.\u0275fac=function(){let Ze;return function(Le){return(Ze||(Ze=n.\u0275\u0275getInheritedFactory(ce)))(Le||ce)}}(),ce.\u0275dir=n.\u0275\u0275defineDirective({type:ce,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[n.\u0275\u0275InheritDefinitionFeature]}),ce})(),Ht=(()=>{class ce extends oe{}return ce.\u0275fac=function(){let Ze;return function(Le){return(Ze||(Ze=n.\u0275\u0275getInheritedFactory(ce)))(Le||ce)}}(),ce.\u0275dir=n.\u0275\u0275defineDirective({type:ce,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[n.\u0275\u0275InheritDefinitionFeature]}),ce})(),rn=(()=>{class ce extends me{}return ce.\u0275fac=function(){let Ze;return function(Le){return(Ze||(Ze=n.\u0275\u0275getInheritedFactory(ce)))(Le||ce)}}(),ce.\u0275dir=n.\u0275\u0275defineDirective({type:ce,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[n.\u0275\u0275InheritDefinitionFeature]}),ce})(),Xt=(()=>{class ce extends Pe{}return ce.\u0275fac=function(){let Ze;return function(Le){return(Ze||(Ze=n.\u0275\u0275getInheritedFactory(ce)))(Le||ce)}}(),ce.\u0275dir=n.\u0275\u0275defineDirective({type:ce,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[n.\u0275\u0275ProvidersFeature([{provide:Pe,useExisting:ce}]),n.\u0275\u0275InheritDefinitionFeature]}),ce})(),vn=(()=>{class ce extends lt{}return ce.\u0275fac=function(){let Ze;return function(Le){return(Ze||(Ze=n.\u0275\u0275getInheritedFactory(ce)))(Le||ce)}}(),ce.\u0275dir=n.\u0275\u0275defineDirective({type:ce,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[n.\u0275\u0275ProvidersFeature([{provide:lt,useExisting:ce}]),n.\u0275\u0275InheritDefinitionFeature]}),ce})(),qe=(()=>{class ce extends yt{}return ce.\u0275fac=function(){let Ze;return function(Le){return(Ze||(Ze=n.\u0275\u0275getInheritedFactory(ce)))(Le||ce)}}(),ce.\u0275dir=n.\u0275\u0275defineDirective({type:ce,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[n.\u0275\u0275ProvidersFeature([{provide:yt,useExisting:ce}]),n.\u0275\u0275InheritDefinitionFeature]}),ce})(),Ye=(()=>{class ce extends ut{}return ce.\u0275fac=function(){let Ze;return function(Le){return(Ze||(Ze=n.\u0275\u0275getInheritedFactory(ce)))(Le||ce)}}(),ce.\u0275cmp=n.\u0275\u0275defineComponent({type:ce,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[n.\u0275\u0275ProvidersFeature([{provide:ut,useExisting:ce}]),n.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(q,Le){1&q&&n.\u0275\u0275elementContainer(0,0)},dependencies:[_t],encapsulation:2}),ce})(),De=(()=>{class ce extends He{}return ce.\u0275fac=function(){let Ze;return function(Le){return(Ze||(Ze=n.\u0275\u0275getInheritedFactory(ce)))(Le||ce)}}(),ce.\u0275cmp=n.\u0275\u0275defineComponent({type:ce,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[n.\u0275\u0275ProvidersFeature([{provide:He,useExisting:ce}]),n.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(q,Le){1&q&&n.\u0275\u0275elementContainer(0,0)},dependencies:[_t],encapsulation:2}),ce})(),et=(()=>{class ce extends Ie{}return ce.\u0275fac=function(){let Ze;return function(Le){return(Ze||(Ze=n.\u0275\u0275getInheritedFactory(ce)))(Le||ce)}}(),ce.\u0275cmp=n.\u0275\u0275defineComponent({type:ce,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[n.\u0275\u0275ProvidersFeature([{provide:Ie,useExisting:ce}]),n.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(q,Le){1&q&&n.\u0275\u0275elementContainer(0,0)},dependencies:[_t],encapsulation:2}),ce})(),ct=(()=>{class ce extends je{constructor(){super(...arguments),this._contentClassName="mat-no-data-row"}}return ce.\u0275fac=function(){let Ze;return function(Le){return(Ze||(Ze=n.\u0275\u0275getInheritedFactory(ce)))(Le||ce)}}(),ce.\u0275dir=n.\u0275\u0275defineDirective({type:ce,selectors:[["ng-template","matNoDataRow",""]],features:[n.\u0275\u0275ProvidersFeature([{provide:je,useExisting:ce}]),n.\u0275\u0275InheritDefinitionFeature]}),ce})(),It=(()=>{class ce extends At{}return ce.\u0275fac=function(){let Ze;return function(Le){return(Ze||(Ze=n.\u0275\u0275getInheritedFactory(ce)))(Le||ce)}}(),ce.\u0275cmp=n.\u0275\u0275defineComponent({type:ce,selectors:[["mat-text-column"]],features:[n.\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(q,Le){1&q&&(n.\u0275\u0275elementContainerStart(0,0),n.\u0275\u0275template(1,j,2,3,"th",1),n.\u0275\u0275template(2,Me,2,3,"td",2),n.\u0275\u0275elementContainerEnd())},dependencies:[X,at,bt,Dt,rn],encapsulation:2}),ce})(),Wt=(()=>{class ce{}return ce.\u0275fac=function(q){return new(q||ce)},ce.\u0275mod=n.\u0275\u0275defineNgModule({type:ce}),ce.\u0275inj=n.\u0275\u0275defineInjector({imports:[Nt,rt.MatCommonModule,rt.MatCommonModule]}),ce})();class gn extends _.o2{constructor(Ze=[]){super(),this._renderData=new d.X([]),this._filter=new d.X(""),this._internalPageChanges=new r.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(q,Le)=>{const ft=q[Le];if((0,h.t6)(ft)){const Tt=Number(ft);return Tt<9007199254740991?Tt:ft}return ft},this.sortData=(q,Le)=>{const ft=Le.active,Tt=Le.direction;return ft&&""!=Tt?q.sort((xt,Kt)=>{let Ut=this.sortingDataAccessor(xt,ft),_n=this.sortingDataAccessor(Kt,ft);const dn=typeof Ut,ln=typeof _n;dn!==ln&&("number"===dn&&(Ut+=""),"number"===ln&&(_n+=""));let nn=0;return null!=Ut&&null!=_n?Ut>_n?nn=1:Ut<_n&&(nn=-1):null!=Ut?nn=1:null!=_n&&(nn=-1),nn*("asc"==Tt?1:-1)}):q},this.filterPredicate=(q,Le)=>{const ft=Object.keys(q).reduce((xt,Kt)=>xt+q[Kt]+"\u25ec","").toLowerCase(),Tt=Le.trim().toLowerCase();return-1!=ft.indexOf(Tt)},this._data=new d.X(Ze),this._updateChangeSubscription()}get data(){return this._data.value}set data(Ze){Ze=Array.isArray(Ze)?Ze:[],this._data.next(Ze),this._renderChangesSubscription||this._filterData(Ze)}get filter(){return this._filter.value}set filter(Ze){this._filter.next(Ze),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(Ze){this._sort=Ze,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(Ze){this._paginator=Ze,this._updateChangeSubscription()}_updateChangeSubscription(){var Ze;const q=this._sort?(0,Je.T)(this._sort.sortChange,this._sort.initialized):(0,b.of)(null),Le=this._paginator?(0,Je.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,b.of)(null),Tt=(0,Ee.a)([this._data,this._filter]).pipe((0,ve.U)(([Ut])=>this._filterData(Ut))),xt=(0,Ee.a)([Tt,q]).pipe((0,ve.U)(([Ut])=>this._orderData(Ut))),Kt=(0,Ee.a)([xt,Le]).pipe((0,ve.U)(([Ut])=>this._pageData(Ut)));null===(Ze=this._renderChangesSubscription)||void 0===Ze||Ze.unsubscribe(),this._renderChangesSubscription=Kt.subscribe(Ut=>this._renderData.next(Ut))}_filterData(Ze){return this.filteredData=null==this.filter||""===this.filter?Ze:Ze.filter(q=>this.filterPredicate(q,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(Ze){return this.sort?this.sortData(Ze.slice(),this.sort):Ze}_pageData(Ze){if(!this.paginator)return Ze;const q=this.paginator.pageIndex*this.paginator.pageSize;return Ze.slice(q,q+this.paginator.pageSize)}_updatePaginator(Ze){Promise.resolve().then(()=>{const q=this.paginator;if(q&&(q.length=Ze,q.pageIndex>0)){const Le=Math.ceil(q.length/q.pageSize)-1||0,ft=Math.min(q.pageIndex,Le);ft!==q.pageIndex&&(q.pageIndex=ft,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var Ze;null===(Ze=this._renderChangesSubscription)||void 0===Ze||Ze.unsubscribe(),this._renderChangesSubscription=null}}class Hn extends gn{}},3251:(z,o,a)=>{"use strict";a.r(o),a.d(o,{MAT_TAB:()=>pe,MAT_TABS_CONFIG:()=>_e,MAT_TAB_GROUP:()=>Ke,MatInkBar:()=>ut,MatTab:()=>K,MatTabBody:()=>We,MatTabBodyPortal:()=>ze,MatTabChangeEvent:()=>At,MatTabContent:()=>Ie,MatTabGroup:()=>rt,MatTabHeader:()=>mt,MatTabLabel:()=>Qe,MatTabLabelWrapper:()=>dt,MatTabLink:()=>j,MatTabNav:()=>ve,MatTabNavPanel:()=>Me,MatTabsModule:()=>vt,_MAT_INK_BAR_POSITIONER:()=>yt,_MatTabBodyBase:()=>Be,_MatTabGroupBase:()=>Nt,_MatTabHeaderBase:()=>tt,_MatTabLinkBase:()=>ae,_MatTabNavBase:()=>Ee,matTabsAnimations:()=>we});var n=a(5664),h=a(7144),_=a(7429),u=a(9808),r=a(5e3),c=a(508),d=a(5698),p=a(8675),y=a(1884),f=a(2722),b=a(3900),v=a(5684),m=a(7579),C=a(727),M=a(4968),O=a(9646),P=a(6451),N=a(515),Y=a(8306),U=a(5963),G=a(1777),$=a(226),J=a(3191),te=a(1159),he=a(925),Fe=a(495);function it(Ge,bt){1&Ge&&r.\u0275\u0275projection(0)}const be=["*"];function ke(Ge,bt){}const ie=function(Ge){return{animationDuration:Ge}},Ae=function(Ge,bt){return{value:Ge,params:bt}},oe=["tabListContainer"],me=["tabList"],V=["tabListInner"],H=["nextPaginator"],re=["previousPaginator"],B=["tabBodyWrapper"],ue=["tabHeader"];function ge(Ge,bt){}function Te(Ge,bt){if(1&Ge&&r.\u0275\u0275template(0,ge,0,0,"ng-template",10),2&Ge){const X=r.\u0275\u0275nextContext().$implicit;r.\u0275\u0275property("cdkPortalOutlet",X.templateLabel)}}function Pe(Ge,bt){if(1&Ge&&r.\u0275\u0275text(0),2&Ge){const X=r.\u0275\u0275nextContext().$implicit;r.\u0275\u0275textInterpolate(X.textLabel)}}function Ce(Ge,bt){if(1&Ge){const X=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",6),r.\u0275\u0275listener("click",function(){const at=r.\u0275\u0275restoreView(X),Dt=at.$implicit,Ht=at.index,rn=r.\u0275\u0275nextContext(),Xt=r.\u0275\u0275reference(1);return r.\u0275\u0275resetView(rn._handleClick(Dt,Xt,Ht))})("cdkFocusChange",function(at){const Ht=r.\u0275\u0275restoreView(X).index,rn=r.\u0275\u0275nextContext();return r.\u0275\u0275resetView(rn._tabFocusChanged(at,Ht))}),r.\u0275\u0275elementStart(1,"div",7),r.\u0275\u0275template(2,Te,1,1,"ng-template",8),r.\u0275\u0275template(3,Pe,1,1,"ng-template",null,9,r.\u0275\u0275templateRefExtractor),r.\u0275\u0275elementEnd()()}if(2&Ge){const X=bt.$implicit,Oe=bt.index,at=r.\u0275\u0275reference(4),Dt=r.\u0275\u0275nextContext();r.\u0275\u0275classProp("mat-tab-label-active",Dt.selectedIndex===Oe),r.\u0275\u0275property("id",Dt._getTabLabelId(Oe))("ngClass",X.labelClass)("disabled",X.disabled)("matRippleDisabled",X.disabled||Dt.disableRipple),r.\u0275\u0275attribute("tabIndex",Dt._getTabIndex(X,Oe))("aria-posinset",Oe+1)("aria-setsize",Dt._tabs.length)("aria-controls",Dt._getTabContentId(Oe))("aria-selected",Dt.selectedIndex===Oe)("aria-label",X.ariaLabel||null)("aria-labelledby",!X.ariaLabel&&X.ariaLabelledby?X.ariaLabelledby:null),r.\u0275\u0275advance(2),r.\u0275\u0275property("ngIf",X.templateLabel)("ngIfElse",at)}}function $e(Ge,bt){if(1&Ge){const X=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"mat-tab-body",11),r.\u0275\u0275listener("_onCentered",function(){r.\u0275\u0275restoreView(X);const at=r.\u0275\u0275nextContext();return r.\u0275\u0275resetView(at._removeTabBodyWrapperHeight())})("_onCentering",function(at){r.\u0275\u0275restoreView(X);const Dt=r.\u0275\u0275nextContext();return r.\u0275\u0275resetView(Dt._setTabBodyWrapperHeight(at))}),r.\u0275\u0275elementEnd()}if(2&Ge){const X=bt.$implicit,Oe=bt.index,at=r.\u0275\u0275nextContext();r.\u0275\u0275classProp("mat-tab-body-active",at.selectedIndex===Oe),r.\u0275\u0275property("id",at._getTabContentId(Oe))("ngClass",X.bodyClass)("content",X.content)("position",X.position)("origin",X.origin)("animationDuration",at.animationDuration)("preserveContent",at.preserveContent),r.\u0275\u0275attribute("tabindex",null!=at.contentTabIndex&&at.selectedIndex===Oe?at.contentTabIndex:null)("aria-labelledby",at._getTabLabelId(Oe))}}const lt=["mat-tab-nav-bar",""],yt=new r.InjectionToken("MatInkBarPositioner",{providedIn:"root",factory:function _t(){return bt=>({left:bt?(bt.offsetLeft||0)+"px":"0",width:bt?(bt.offsetWidth||0)+"px":"0"})}});let ut=(()=>{class Ge{constructor(X,Oe,at,Dt){this._elementRef=X,this._ngZone=Oe,this._inkBarPositioner=at,this._animationMode=Dt}alignToElement(X){this.show(),this._ngZone.run(()=>{this._ngZone.onStable.pipe((0,d.q)(1)).subscribe(()=>{const Oe=this._inkBarPositioner(X),at=this._elementRef.nativeElement;at.style.left=Oe.left,at.style.width=Oe.width})})}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}}return Ge.\u0275fac=function(X){return new(X||Ge)(r.\u0275\u0275directiveInject(r.ElementRef),r.\u0275\u0275directiveInject(r.NgZone),r.\u0275\u0275directiveInject(yt),r.\u0275\u0275directiveInject(r.ANIMATION_MODULE_TYPE,8))},Ge.\u0275dir=r.\u0275\u0275defineDirective({type:Ge,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(X,Oe){2&X&&r.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===Oe._animationMode)}}),Ge})();const He=new r.InjectionToken("MatTabContent");let Ie=(()=>{class Ge{constructor(X){this.template=X}}return Ge.\u0275fac=function(X){return new(X||Ge)(r.\u0275\u0275directiveInject(r.TemplateRef))},Ge.\u0275dir=r.\u0275\u0275defineDirective({type:Ge,selectors:[["","matTabContent",""]],features:[r.\u0275\u0275ProvidersFeature([{provide:He,useExisting:Ge}])]}),Ge})();const je=new r.InjectionToken("MatTabLabel"),pe=new r.InjectionToken("MAT_TAB");let Qe=(()=>{class Ge extends _.ig{constructor(X,Oe,at){super(X,Oe),this._closestTab=at}}return Ge.\u0275fac=function(X){return new(X||Ge)(r.\u0275\u0275directiveInject(r.TemplateRef),r.\u0275\u0275directiveInject(r.ViewContainerRef),r.\u0275\u0275directiveInject(pe,8))},Ge.\u0275dir=r.\u0275\u0275defineDirective({type:Ge,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[r.\u0275\u0275ProvidersFeature([{provide:je,useExisting:Ge}]),r.\u0275\u0275InheritDefinitionFeature]}),Ge})();const Ve=(0,c.mixinDisabled)(class{}),Ke=new r.InjectionToken("MAT_TAB_GROUP");let K=(()=>{class Ge extends Ve{constructor(X,Oe){super(),this._viewContainerRef=X,this._closestTabGroup=Oe,this.textLabel="",this._contentPortal=null,this._stateChanges=new m.x,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(X){this._setTemplateLabelInput(X)}get content(){return this._contentPortal}ngOnChanges(X){(X.hasOwnProperty("textLabel")||X.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new _.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(X){X&&X._closestTab===this&&(this._templateLabel=X)}}return Ge.\u0275fac=function(X){return new(X||Ge)(r.\u0275\u0275directiveInject(r.ViewContainerRef),r.\u0275\u0275directiveInject(Ke,8))},Ge.\u0275cmp=r.\u0275\u0275defineComponent({type:Ge,selectors:[["mat-tab"]],contentQueries:function(X,Oe,at){if(1&X&&(r.\u0275\u0275contentQuery(at,je,5),r.\u0275\u0275contentQuery(at,He,7,r.TemplateRef)),2&X){let Dt;r.\u0275\u0275queryRefresh(Dt=r.\u0275\u0275loadQuery())&&(Oe.templateLabel=Dt.first),r.\u0275\u0275queryRefresh(Dt=r.\u0275\u0275loadQuery())&&(Oe._explicitContent=Dt.first)}},viewQuery:function(X,Oe){if(1&X&&r.\u0275\u0275viewQuery(r.TemplateRef,7),2&X){let at;r.\u0275\u0275queryRefresh(at=r.\u0275\u0275loadQuery())&&(Oe._implicitContent=at.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[r.\u0275\u0275ProvidersFeature([{provide:pe,useExisting:Ge}]),r.\u0275\u0275InheritDefinitionFeature,r.\u0275\u0275NgOnChangesFeature],ngContentSelectors:be,decls:1,vars:0,template:function(X,Oe){1&X&&(r.\u0275\u0275projectionDef(),r.\u0275\u0275template(0,it,1,0,"ng-template"))},encapsulation:2}),Ge})();const we={translateTab:(0,G.X$)("translateTab",[(0,G.SB)("center, void, left-origin-center, right-origin-center",(0,G.oB)({transform:"none"})),(0,G.SB)("left",(0,G.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,G.SB)("right",(0,G.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,G.eR)("* => left, * => right, left => center, right => center",(0,G.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,G.eR)("void => left-origin-center",[(0,G.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),(0,G.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,G.eR)("void => right-origin-center",[(0,G.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),(0,G.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let ze=(()=>{class Ge extends _.Pl{constructor(X,Oe,at,Dt){super(X,Oe,Dt),this._host=at,this._centeringSub=C.w0.EMPTY,this._leavingSub=C.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,p.O)(this._host._isCenterPosition(this._host._position))).subscribe(X=>{X&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return Ge.\u0275fac=function(X){return new(X||Ge)(r.\u0275\u0275directiveInject(r.ComponentFactoryResolver),r.\u0275\u0275directiveInject(r.ViewContainerRef),r.\u0275\u0275directiveInject((0,r.forwardRef)(()=>We)),r.\u0275\u0275directiveInject(u.DOCUMENT))},Ge.\u0275dir=r.\u0275\u0275defineDirective({type:Ge,selectors:[["","matTabBodyHost",""]],features:[r.\u0275\u0275InheritDefinitionFeature]}),Ge})(),Be=(()=>{class Ge{constructor(X,Oe,at){this._elementRef=X,this._dir=Oe,this._dirChangeSubscription=C.w0.EMPTY,this._translateTabComplete=new m.x,this._onCentering=new r.EventEmitter,this._beforeCentering=new r.EventEmitter,this._afterLeavingCenter=new r.EventEmitter,this._onCentered=new r.EventEmitter(!0),this.animationDuration="500ms",this.preserveContent=!1,Oe&&(this._dirChangeSubscription=Oe.change.subscribe(Dt=>{this._computePositionAnimationState(Dt),at.markForCheck()})),this._translateTabComplete.pipe((0,y.x)((Dt,Ht)=>Dt.fromState===Ht.fromState&&Dt.toState===Ht.toState)).subscribe(Dt=>{this._isCenterPosition(Dt.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(Dt.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(X){this._positionIndex=X,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(X){const Oe=this._isCenterPosition(X.toState);this._beforeCentering.emit(Oe),Oe&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(X){return"center"==X||"left-origin-center"==X||"right-origin-center"==X}_computePositionAnimationState(X=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==X?"left":"right":this._positionIndex>0?"ltr"==X?"right":"left":"center"}_computePositionFromOrigin(X){const Oe=this._getLayoutDirection();return"ltr"==Oe&&X<=0||"rtl"==Oe&&X>0?"left-origin-center":"right-origin-center"}}return Ge.\u0275fac=function(X){return new(X||Ge)(r.\u0275\u0275directiveInject(r.ElementRef),r.\u0275\u0275directiveInject($.Is,8),r.\u0275\u0275directiveInject(r.ChangeDetectorRef))},Ge.\u0275dir=r.\u0275\u0275defineDirective({type:Ge,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),Ge})(),We=(()=>{class Ge extends Be{constructor(X,Oe,at){super(X,Oe,at)}}return Ge.\u0275fac=function(X){return new(X||Ge)(r.\u0275\u0275directiveInject(r.ElementRef),r.\u0275\u0275directiveInject($.Is,8),r.\u0275\u0275directiveInject(r.ChangeDetectorRef))},Ge.\u0275cmp=r.\u0275\u0275defineComponent({type:Ge,selectors:[["mat-tab-body"]],viewQuery:function(X,Oe){if(1&X&&r.\u0275\u0275viewQuery(_.Pl,5),2&X){let at;r.\u0275\u0275queryRefresh(at=r.\u0275\u0275loadQuery())&&(Oe._portalHost=at.first)}},hostAttrs:[1,"mat-tab-body"],features:[r.\u0275\u0275InheritDefinitionFeature],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(X,Oe){1&X&&(r.\u0275\u0275elementStart(0,"div",0,1),r.\u0275\u0275listener("@translateTab.start",function(Dt){return Oe._onTranslateTabStarted(Dt)})("@translateTab.done",function(Dt){return Oe._translateTabComplete.next(Dt)}),r.\u0275\u0275template(2,ke,0,0,"ng-template",2),r.\u0275\u0275elementEnd()),2&X&&r.\u0275\u0275property("@translateTab",r.\u0275\u0275pureFunction2(3,Ae,Oe._position,r.\u0275\u0275pureFunction1(1,ie,Oe.animationDuration)))},dependencies:[ze],styles:['.mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[we.translateTab]}}),Ge})();const _e=new r.InjectionToken("MAT_TABS_CONFIG"),Ue=(0,c.mixinDisabled)(class{});let dt=(()=>{class Ge extends Ue{constructor(X){super(),this.elementRef=X}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return Ge.\u0275fac=function(X){return new(X||Ge)(r.\u0275\u0275directiveInject(r.ElementRef))},Ge.\u0275dir=r.\u0275\u0275defineDirective({type:Ge,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(X,Oe){2&X&&(r.\u0275\u0275attribute("aria-disabled",!!Oe.disabled),r.\u0275\u0275classProp("mat-tab-disabled",Oe.disabled))},inputs:{disabled:"disabled"},features:[r.\u0275\u0275InheritDefinitionFeature]}),Ge})();const xe=(0,he.i$)({passive:!0});let Ne=(()=>{class Ge{constructor(X,Oe,at,Dt,Ht,rn,Xt){this._elementRef=X,this._changeDetectorRef=Oe,this._viewportRuler=at,this._dir=Dt,this._ngZone=Ht,this._platform=rn,this._animationMode=Xt,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new m.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new m.x,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new r.EventEmitter,this.indexFocused=new r.EventEmitter,Ht.runOutsideAngular(()=>{(0,M.R)(X.nativeElement,"mouseleave").pipe((0,f.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get disablePagination(){return this._disablePagination}set disablePagination(X){this._disablePagination=(0,J.Ig)(X)}get selectedIndex(){return this._selectedIndex}set selectedIndex(X){X=(0,J.su)(X),this._selectedIndex!=X&&(this._selectedIndexChanged=!0,this._selectedIndex=X,this._keyManager&&this._keyManager.updateActiveItem(X))}ngAfterViewInit(){(0,M.R)(this._previousPaginator.nativeElement,"touchstart",xe).pipe((0,f.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,M.R)(this._nextPaginator.nativeElement,"touchstart",xe).pipe((0,f.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const X=this._dir?this._dir.change:(0,O.of)("ltr"),Oe=this._viewportRuler.change(150),at=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new n.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,d.q)(1)).subscribe(at),(0,P.T)(X,Oe,this._items.changes,this._itemsResized()).pipe((0,f.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),at()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,f.R)(this._destroyed)).subscribe(Dt=>{this.indexFocused.emit(Dt),this._setTabFocus(Dt)})}_itemsResized(){return"function"!=typeof ResizeObserver?N.E:this._items.changes.pipe((0,p.O)(this._items),(0,b.w)(X=>new Y.y(Oe=>this._ngZone.runOutsideAngular(()=>{const at=new ResizeObserver(()=>{Oe.next()});return X.forEach(Dt=>{at.observe(Dt.elementRef.nativeElement)}),()=>{at.disconnect()}}))),(0,v.T)(1))}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(X){if(!(0,te.Vb)(X))switch(X.keyCode){case te.K5:case te.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(X));break;default:this._keyManager.onKeydown(X)}}_onContentChanges(){const X=this._elementRef.nativeElement.textContent;X!==this._currentTextContent&&(this._currentTextContent=X||"",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(X){!this._isValidIndex(X)||this.focusIndex===X||!this._keyManager||this._keyManager.setActiveItem(X)}_isValidIndex(X){if(!this._items)return!0;const Oe=this._items?this._items.toArray()[X]:null;return!!Oe&&!Oe.disabled}_setTabFocus(X){if(this._showPaginationControls&&this._scrollToLabel(X),this._items&&this._items.length){this._items.toArray()[X].focus();const Oe=this._tabListContainer.nativeElement;Oe.scrollLeft="ltr"==this._getLayoutDirection()?0:Oe.scrollWidth-Oe.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const X=this.scrollDistance,Oe="ltr"===this._getLayoutDirection()?-X:X;this._tabList.nativeElement.style.transform=`translateX(${Math.round(Oe)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(X){this._scrollTo(X)}_scrollHeader(X){return this._scrollTo(this._scrollDistance+("before"==X?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(X){this._stopInterval(),this._scrollHeader(X)}_scrollToLabel(X){if(this.disablePagination)return;const Oe=this._items?this._items.toArray()[X]:null;if(!Oe)return;const at=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:Dt,offsetWidth:Ht}=Oe.elementRef.nativeElement;let rn,Xt;"ltr"==this._getLayoutDirection()?(rn=Dt,Xt=rn+Ht):(Xt=this._tabListInner.nativeElement.offsetWidth-Dt,rn=Xt-Ht);const vn=this.scrollDistance,qe=this.scrollDistance+at;rn<vn?this.scrollDistance-=vn-rn+60:Xt>qe&&(this.scrollDistance+=Xt-qe+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const X=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;X||(this.scrollDistance=0),X!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=X}}_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 X=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,Oe=X?X.elementRef.nativeElement:null;Oe?this._inkBar.alignToElement(Oe):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(X,Oe){Oe&&null!=Oe.button&&0!==Oe.button||(this._stopInterval(),(0,U.H)(650,100).pipe((0,f.R)((0,P.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:at,distance:Dt}=this._scrollHeader(X);(0===Dt||Dt>=at)&&this._stopInterval()}))}_scrollTo(X){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const Oe=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(Oe,X)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:Oe,distance:this._scrollDistance}}}return Ge.\u0275fac=function(X){return new(X||Ge)(r.\u0275\u0275directiveInject(r.ElementRef),r.\u0275\u0275directiveInject(r.ChangeDetectorRef),r.\u0275\u0275directiveInject(Fe.rL),r.\u0275\u0275directiveInject($.Is,8),r.\u0275\u0275directiveInject(r.NgZone),r.\u0275\u0275directiveInject(he.t4),r.\u0275\u0275directiveInject(r.ANIMATION_MODULE_TYPE,8))},Ge.\u0275dir=r.\u0275\u0275defineDirective({type:Ge,inputs:{disablePagination:"disablePagination"}}),Ge})(),tt=(()=>{class Ge extends Ne{constructor(X,Oe,at,Dt,Ht,rn,Xt){super(X,Oe,at,Dt,Ht,rn,Xt),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(X){this._disableRipple=(0,J.Ig)(X)}_itemSelected(X){X.preventDefault()}}return Ge.\u0275fac=function(X){return new(X||Ge)(r.\u0275\u0275directiveInject(r.ElementRef),r.\u0275\u0275directiveInject(r.ChangeDetectorRef),r.\u0275\u0275directiveInject(Fe.rL),r.\u0275\u0275directiveInject($.Is,8),r.\u0275\u0275directiveInject(r.NgZone),r.\u0275\u0275directiveInject(he.t4),r.\u0275\u0275directiveInject(r.ANIMATION_MODULE_TYPE,8))},Ge.\u0275dir=r.\u0275\u0275defineDirective({type:Ge,inputs:{disableRipple:"disableRipple"},features:[r.\u0275\u0275InheritDefinitionFeature]}),Ge})(),mt=(()=>{class Ge extends tt{constructor(X,Oe,at,Dt,Ht,rn,Xt){super(X,Oe,at,Dt,Ht,rn,Xt)}}return Ge.\u0275fac=function(X){return new(X||Ge)(r.\u0275\u0275directiveInject(r.ElementRef),r.\u0275\u0275directiveInject(r.ChangeDetectorRef),r.\u0275\u0275directiveInject(Fe.rL),r.\u0275\u0275directiveInject($.Is,8),r.\u0275\u0275directiveInject(r.NgZone),r.\u0275\u0275directiveInject(he.t4),r.\u0275\u0275directiveInject(r.ANIMATION_MODULE_TYPE,8))},Ge.\u0275cmp=r.\u0275\u0275defineComponent({type:Ge,selectors:[["mat-tab-header"]],contentQueries:function(X,Oe,at){if(1&X&&r.\u0275\u0275contentQuery(at,dt,4),2&X){let Dt;r.\u0275\u0275queryRefresh(Dt=r.\u0275\u0275loadQuery())&&(Oe._items=Dt)}},viewQuery:function(X,Oe){if(1&X&&(r.\u0275\u0275viewQuery(ut,7),r.\u0275\u0275viewQuery(oe,7),r.\u0275\u0275viewQuery(me,7),r.\u0275\u0275viewQuery(V,7),r.\u0275\u0275viewQuery(H,5),r.\u0275\u0275viewQuery(re,5)),2&X){let at;r.\u0275\u0275queryRefresh(at=r.\u0275\u0275loadQuery())&&(Oe._inkBar=at.first),r.\u0275\u0275queryRefresh(at=r.\u0275\u0275loadQuery())&&(Oe._tabListContainer=at.first),r.\u0275\u0275queryRefresh(at=r.\u0275\u0275loadQuery())&&(Oe._tabList=at.first),r.\u0275\u0275queryRefresh(at=r.\u0275\u0275loadQuery())&&(Oe._tabListInner=at.first),r.\u0275\u0275queryRefresh(at=r.\u0275\u0275loadQuery())&&(Oe._nextPaginator=at.first),r.\u0275\u0275queryRefresh(at=r.\u0275\u0275loadQuery())&&(Oe._previousPaginator=at.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(X,Oe){2&X&&r.\u0275\u0275classProp("mat-tab-header-pagination-controls-enabled",Oe._showPaginationControls)("mat-tab-header-rtl","rtl"==Oe._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[r.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:be,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","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","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(X,Oe){1&X&&(r.\u0275\u0275projectionDef(),r.\u0275\u0275elementStart(0,"button",0,1),r.\u0275\u0275listener("click",function(){return Oe._handlePaginatorClick("before")})("mousedown",function(Dt){return Oe._handlePaginatorPress("before",Dt)})("touchend",function(){return Oe._stopInterval()}),r.\u0275\u0275element(2,"div",2),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(3,"div",3,4),r.\u0275\u0275listener("keydown",function(Dt){return Oe._handleKeydown(Dt)}),r.\u0275\u0275elementStart(5,"div",5,6),r.\u0275\u0275listener("cdkObserveContent",function(){return Oe._onContentChanges()}),r.\u0275\u0275elementStart(7,"div",7,8),r.\u0275\u0275projection(9),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(10,"mat-ink-bar"),r.\u0275\u0275elementEnd()(),r.\u0275\u0275elementStart(11,"button",9,10),r.\u0275\u0275listener("mousedown",function(Dt){return Oe._handlePaginatorPress("after",Dt)})("click",function(){return Oe._handlePaginatorClick("after")})("touchend",function(){return Oe._stopInterval()}),r.\u0275\u0275element(13,"div",2),r.\u0275\u0275elementEnd()),2&X&&(r.\u0275\u0275classProp("mat-tab-header-pagination-disabled",Oe._disableScrollBefore),r.\u0275\u0275property("matRippleDisabled",Oe._disableScrollBefore||Oe.disableRipple)("disabled",Oe._disableScrollBefore||null),r.\u0275\u0275advance(5),r.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===Oe._animationMode),r.\u0275\u0275advance(6),r.\u0275\u0275classProp("mat-tab-header-pagination-disabled",Oe._disableScrollAfter),r.\u0275\u0275property("matRippleDisabled",Oe._disableScrollAfter||Oe.disableRipple)("disabled",Oe._disableScrollAfter||null))},dependencies:[c.MatRipple,h.wD,ut],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-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:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.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-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.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-tab-list._mat-animation-noopable{transition:none !important;animation:none !important}.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}.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}.mat-tab-label::before{margin:5px}@media(max-width: 599px){.mat-tab-label{min-width:72px}}"],encapsulation:2}),Ge})(),Ft=0;class At{}const Yt=(0,c.mixinColor)((0,c.mixinDisableRipple)(class{constructor(Ge){this._elementRef=Ge}}),"primary");let Nt=(()=>{class Ge extends Yt{constructor(X,Oe,at,Dt){var Ht;super(X),this._changeDetectorRef=Oe,this._animationMode=Dt,this._tabs=new r.QueryList,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=C.w0.EMPTY,this._tabLabelSubscription=C.w0.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new r.EventEmitter,this.focusChange=new r.EventEmitter,this.animationDone=new r.EventEmitter,this.selectedTabChange=new r.EventEmitter(!0),this._groupId=Ft++,this.animationDuration=at&&at.animationDuration?at.animationDuration:"500ms",this.disablePagination=!(!at||null==at.disablePagination)&&at.disablePagination,this.dynamicHeight=!(!at||null==at.dynamicHeight)&&at.dynamicHeight,this.contentTabIndex=null!==(Ht=null==at?void 0:at.contentTabIndex)&&void 0!==Ht?Ht:null,this.preserveContent=!(null==at||!at.preserveContent)}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(X){this._dynamicHeight=(0,J.Ig)(X)}get selectedIndex(){return this._selectedIndex}set selectedIndex(X){this._indexToSelect=(0,J.su)(X,null)}get animationDuration(){return this._animationDuration}set animationDuration(X){this._animationDuration=/^\d+$/.test(X+"")?X+"ms":X}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(X){this._contentTabIndex=(0,J.su)(X,null)}get disablePagination(){return this._disablePagination}set disablePagination(X){this._disablePagination=(0,J.Ig)(X)}get preserveContent(){return this._preserveContent}set preserveContent(X){this._preserveContent=(0,J.Ig)(X)}get backgroundColor(){return this._backgroundColor}set backgroundColor(X){const Oe=this._elementRef.nativeElement;Oe.classList.remove(`mat-background-${this.backgroundColor}`),X&&Oe.classList.add(`mat-background-${X}`),this._backgroundColor=X}ngAfterContentChecked(){const X=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=X){const Oe=null==this._selectedIndex;if(!Oe){this.selectedTabChange.emit(this._createChangeEvent(X));const at=this._tabBodyWrapper.nativeElement;at.style.minHeight=at.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((at,Dt)=>at.isActive=Dt===X),Oe||(this.selectedIndexChange.emit(X),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((Oe,at)=>{Oe.position=at-X,null!=this._selectedIndex&&0==Oe.position&&!Oe.origin&&(Oe.origin=X-this._selectedIndex)}),this._selectedIndex!==X&&(this._selectedIndex=X,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const X=this._clampTabIndex(this._indexToSelect);if(X===this._selectedIndex){const Oe=this._tabs.toArray();let at;for(let Dt=0;Dt<Oe.length;Dt++)if(Oe[Dt].isActive){this._indexToSelect=this._selectedIndex=Dt,this._lastFocusedTabIndex=null,at=Oe[Dt];break}!at&&Oe[X]&&Promise.resolve().then(()=>{Oe[X].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(X))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,p.O)(this._allTabs)).subscribe(X=>{this._tabs.reset(X.filter(Oe=>Oe._closestTabGroup===this||!Oe._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(X){const Oe=this._tabHeader;Oe&&(Oe.focusIndex=X)}_focusChanged(X){this._lastFocusedTabIndex=X,this.focusChange.emit(this._createChangeEvent(X))}_createChangeEvent(X){const Oe=new At;return Oe.index=X,this._tabs&&this._tabs.length&&(Oe.tab=this._tabs.toArray()[X]),Oe}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,P.T)(...this._tabs.map(X=>X._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(X){return Math.min(this._tabs.length-1,Math.max(X||0,0))}_getTabLabelId(X){return`mat-tab-label-${this._groupId}-${X}`}_getTabContentId(X){return`mat-tab-content-${this._groupId}-${X}`}_setTabBodyWrapperHeight(X){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const Oe=this._tabBodyWrapper.nativeElement;Oe.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(Oe.style.height=X+"px")}_removeTabBodyWrapperHeight(){const X=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=X.clientHeight,X.style.height="",this.animationDone.emit()}_handleClick(X,Oe,at){X.disabled||(this.selectedIndex=Oe.focusIndex=at)}_getTabIndex(X,Oe){var at;return X.disabled?null:Oe===(null!==(at=this._lastFocusedTabIndex)&&void 0!==at?at:this.selectedIndex)?0:-1}_tabFocusChanged(X,Oe){X&&"mouse"!==X&&"touch"!==X&&(this._tabHeader.focusIndex=Oe)}}return Ge.\u0275fac=function(X){return new(X||Ge)(r.\u0275\u0275directiveInject(r.ElementRef),r.\u0275\u0275directiveInject(r.ChangeDetectorRef),r.\u0275\u0275directiveInject(_e,8),r.\u0275\u0275directiveInject(r.ANIMATION_MODULE_TYPE,8))},Ge.\u0275dir=r.\u0275\u0275defineDirective({type:Ge,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[r.\u0275\u0275InheritDefinitionFeature]}),Ge})(),rt=(()=>{class Ge extends Nt{constructor(X,Oe,at,Dt){super(X,Oe,at,Dt)}}return Ge.\u0275fac=function(X){return new(X||Ge)(r.\u0275\u0275directiveInject(r.ElementRef),r.\u0275\u0275directiveInject(r.ChangeDetectorRef),r.\u0275\u0275directiveInject(_e,8),r.\u0275\u0275directiveInject(r.ANIMATION_MODULE_TYPE,8))},Ge.\u0275cmp=r.\u0275\u0275defineComponent({type:Ge,selectors:[["mat-tab-group"]],contentQueries:function(X,Oe,at){if(1&X&&r.\u0275\u0275contentQuery(at,K,5),2&X){let Dt;r.\u0275\u0275queryRefresh(Dt=r.\u0275\u0275loadQuery())&&(Oe._allTabs=Dt)}},viewQuery:function(X,Oe){if(1&X&&(r.\u0275\u0275viewQuery(B,5),r.\u0275\u0275viewQuery(ue,5)),2&X){let at;r.\u0275\u0275queryRefresh(at=r.\u0275\u0275loadQuery())&&(Oe._tabBodyWrapper=at.first),r.\u0275\u0275queryRefresh(at=r.\u0275\u0275loadQuery())&&(Oe._tabHeader=at.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(X,Oe){2&X&&r.\u0275\u0275classProp("mat-tab-group-dynamic-height",Oe.dynamicHeight)("mat-tab-group-inverted-header","below"===Oe.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[r.\u0275\u0275ProvidersFeature([{provide:Ke,useExisting:Ge}]),r.\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","ngClass","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(X,Oe){1&X&&(r.\u0275\u0275elementStart(0,"mat-tab-header",0,1),r.\u0275\u0275listener("indexFocused",function(Dt){return Oe._focusChanged(Dt)})("selectFocusedIndex",function(Dt){return Oe.selectedIndex=Dt}),r.\u0275\u0275template(2,Ce,5,15,"div",2),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(3,"div",3,4),r.\u0275\u0275template(5,$e,1,11,"mat-tab-body",5),r.\u0275\u0275elementEnd()),2&X&&(r.\u0275\u0275property("selectedIndex",Oe.selectedIndex||0)("disableRipple",Oe.disableRipple)("disablePagination",Oe.disablePagination),r.\u0275\u0275advance(2),r.\u0275\u0275property("ngForOf",Oe._tabs),r.\u0275\u0275advance(1),r.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===Oe._animationMode),r.\u0275\u0275advance(2),r.\u0275\u0275property("ngForOf",Oe._tabs))},dependencies:[u.NgClass,u.NgForOf,u.NgIf,_.Pl,c.MatRipple,n.kH,dt,We,mt],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}.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-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}.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}"],encapsulation:2}),Ge})(),Je=0,Ee=(()=>{class Ge extends Ne{constructor(X,Oe,at,Dt,Ht,rn,Xt){super(X,Dt,Ht,Oe,at,rn,Xt),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(X){const Oe=this._elementRef.nativeElement.classList;Oe.remove(`mat-background-${this.backgroundColor}`),X&&Oe.add(`mat-background-${X}`),this._backgroundColor=X}get disableRipple(){return this._disableRipple}set disableRipple(X){this._disableRipple=(0,J.Ig)(X)}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe((0,p.O)(null),(0,f.R)(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(){if(!this._items)return;const X=this._items.toArray();for(let Oe=0;Oe<X.length;Oe++)if(X[Oe].active)return this.selectedIndex=Oe,this._changeDetectorRef.markForCheck(),void(this.tabPanel&&(this.tabPanel._activeTabId=X[Oe].id));this.selectedIndex=-1,this._inkBar.hide()}_getRole(){return this.tabPanel?"tablist":this._elementRef.nativeElement.getAttribute("role")}}return Ge.\u0275fac=function(X){return new(X||Ge)(r.\u0275\u0275directiveInject(r.ElementRef),r.\u0275\u0275directiveInject($.Is,8),r.\u0275\u0275directiveInject(r.NgZone),r.\u0275\u0275directiveInject(r.ChangeDetectorRef),r.\u0275\u0275directiveInject(Fe.rL),r.\u0275\u0275directiveInject(he.t4),r.\u0275\u0275directiveInject(r.ANIMATION_MODULE_TYPE,8))},Ge.\u0275dir=r.\u0275\u0275defineDirective({type:Ge,inputs:{backgroundColor:"backgroundColor",disableRipple:"disableRipple",color:"color",tabPanel:"tabPanel"},features:[r.\u0275\u0275InheritDefinitionFeature]}),Ge})(),ve=(()=>{class Ge extends Ee{constructor(X,Oe,at,Dt,Ht,rn,Xt){super(X,Oe,at,Dt,Ht,rn,Xt)}}return Ge.\u0275fac=function(X){return new(X||Ge)(r.\u0275\u0275directiveInject(r.ElementRef),r.\u0275\u0275directiveInject($.Is,8),r.\u0275\u0275directiveInject(r.NgZone),r.\u0275\u0275directiveInject(r.ChangeDetectorRef),r.\u0275\u0275directiveInject(Fe.rL),r.\u0275\u0275directiveInject(he.t4),r.\u0275\u0275directiveInject(r.ANIMATION_MODULE_TYPE,8))},Ge.\u0275cmp=r.\u0275\u0275defineComponent({type:Ge,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(X,Oe,at){if(1&X&&r.\u0275\u0275contentQuery(at,j,5),2&X){let Dt;r.\u0275\u0275queryRefresh(Dt=r.\u0275\u0275loadQuery())&&(Oe._items=Dt)}},viewQuery:function(X,Oe){if(1&X&&(r.\u0275\u0275viewQuery(ut,7),r.\u0275\u0275viewQuery(oe,7),r.\u0275\u0275viewQuery(me,7),r.\u0275\u0275viewQuery(V,7),r.\u0275\u0275viewQuery(H,5),r.\u0275\u0275viewQuery(re,5)),2&X){let at;r.\u0275\u0275queryRefresh(at=r.\u0275\u0275loadQuery())&&(Oe._inkBar=at.first),r.\u0275\u0275queryRefresh(at=r.\u0275\u0275loadQuery())&&(Oe._tabListContainer=at.first),r.\u0275\u0275queryRefresh(at=r.\u0275\u0275loadQuery())&&(Oe._tabList=at.first),r.\u0275\u0275queryRefresh(at=r.\u0275\u0275loadQuery())&&(Oe._tabListInner=at.first),r.\u0275\u0275queryRefresh(at=r.\u0275\u0275loadQuery())&&(Oe._nextPaginator=at.first),r.\u0275\u0275queryRefresh(at=r.\u0275\u0275loadQuery())&&(Oe._previousPaginator=at.first)}},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:11,hostBindings:function(X,Oe){2&X&&(r.\u0275\u0275attribute("role",Oe._getRole()),r.\u0275\u0275classProp("mat-tab-header-pagination-controls-enabled",Oe._showPaginationControls)("mat-tab-header-rtl","rtl"==Oe._getLayoutDirection())("mat-primary","warn"!==Oe.color&&"accent"!==Oe.color)("mat-accent","accent"===Oe.color)("mat-warn","warn"===Oe.color))},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[r.\u0275\u0275InheritDefinitionFeature],attrs:lt,ngContentSelectors:be,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","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","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(X,Oe){1&X&&(r.\u0275\u0275projectionDef(),r.\u0275\u0275elementStart(0,"button",0,1),r.\u0275\u0275listener("click",function(){return Oe._handlePaginatorClick("before")})("mousedown",function(Dt){return Oe._handlePaginatorPress("before",Dt)})("touchend",function(){return Oe._stopInterval()}),r.\u0275\u0275element(2,"div",2),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(3,"div",3,4),r.\u0275\u0275listener("keydown",function(Dt){return Oe._handleKeydown(Dt)}),r.\u0275\u0275elementStart(5,"div",5,6),r.\u0275\u0275listener("cdkObserveContent",function(){return Oe._onContentChanges()}),r.\u0275\u0275elementStart(7,"div",7,8),r.\u0275\u0275projection(9),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(10,"mat-ink-bar"),r.\u0275\u0275elementEnd()(),r.\u0275\u0275elementStart(11,"button",9,10),r.\u0275\u0275listener("mousedown",function(Dt){return Oe._handlePaginatorPress("after",Dt)})("click",function(){return Oe._handlePaginatorClick("after")})("touchend",function(){return Oe._stopInterval()}),r.\u0275\u0275element(13,"div",2),r.\u0275\u0275elementEnd()),2&X&&(r.\u0275\u0275classProp("mat-tab-header-pagination-disabled",Oe._disableScrollBefore),r.\u0275\u0275property("matRippleDisabled",Oe._disableScrollBefore||Oe.disableRipple)("disabled",Oe._disableScrollBefore||null),r.\u0275\u0275advance(5),r.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===Oe._animationMode),r.\u0275\u0275advance(6),r.\u0275\u0275classProp("mat-tab-header-pagination-disabled",Oe._disableScrollAfter),r.\u0275\u0275property("matRippleDisabled",Oe._disableScrollAfter||Oe.disableRipple)("disabled",Oe._disableScrollAfter||null))},dependencies:[c.MatRipple,h.wD,ut],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-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:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.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-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.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:rgba(0,0,0,0)}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.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}.mat-tab-link::before{margin:5px}@media(max-width: 599px){.mat-tab-link{min-width:72px}}"],encapsulation:2}),Ge})();const se=(0,c.mixinTabIndex)((0,c.mixinDisableRipple)((0,c.mixinDisabled)(class{})));let ae=(()=>{class Ge extends se{constructor(X,Oe,at,Dt,Ht,rn){super(),this._tabNavBar=X,this.elementRef=Oe,this._focusMonitor=Ht,this._isActive=!1,this.id="mat-tab-link-"+Je++,this.rippleConfig=at||{},this.tabIndex=parseInt(Dt)||0,"NoopAnimations"===rn&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}get active(){return this._isActive}set active(X){const Oe=(0,J.Ig)(X);Oe!==this._isActive&&(this._isActive=Oe,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)}_handleKeydown(X){this._tabNavBar.tabPanel&&X.keyCode===te.L_&&this.elementRef.nativeElement.click()}_getAriaControls(){var X;return this._tabNavBar.tabPanel?null===(X=this._tabNavBar.tabPanel)||void 0===X?void 0:X.id:this.elementRef.nativeElement.getAttribute("aria-controls")}_getAriaSelected(){return this._tabNavBar.tabPanel?this.active?"true":"false":this.elementRef.nativeElement.getAttribute("aria-selected")}_getAriaCurrent(){return this.active&&!this._tabNavBar.tabPanel?"page":null}_getRole(){return this._tabNavBar.tabPanel?"tab":this.elementRef.nativeElement.getAttribute("role")}_getTabIndex(){return this._tabNavBar.tabPanel?this._isActive&&!this.disabled?0:-1:this.tabIndex}}return Ge.\u0275fac=function(X){return new(X||Ge)(r.\u0275\u0275directiveInject(Ee),r.\u0275\u0275directiveInject(r.ElementRef),r.\u0275\u0275directiveInject(c.MAT_RIPPLE_GLOBAL_OPTIONS,8),r.\u0275\u0275injectAttribute("tabindex"),r.\u0275\u0275directiveInject(n.tE),r.\u0275\u0275directiveInject(r.ANIMATION_MODULE_TYPE,8))},Ge.\u0275dir=r.\u0275\u0275defineDirective({type:Ge,inputs:{active:"active",id:"id"},features:[r.\u0275\u0275InheritDefinitionFeature]}),Ge})(),j=(()=>{class Ge extends ae{constructor(X,Oe,at,Dt,Ht,rn,Xt,vn){super(X,Oe,Ht,rn,Xt,vn),this._tabLinkRipple=new c.RippleRenderer(this,at,Oe,Dt),this._tabLinkRipple.setupTriggerEvents(Oe.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}return Ge.\u0275fac=function(X){return new(X||Ge)(r.\u0275\u0275directiveInject(ve),r.\u0275\u0275directiveInject(r.ElementRef),r.\u0275\u0275directiveInject(r.NgZone),r.\u0275\u0275directiveInject(he.t4),r.\u0275\u0275directiveInject(c.MAT_RIPPLE_GLOBAL_OPTIONS,8),r.\u0275\u0275injectAttribute("tabindex"),r.\u0275\u0275directiveInject(n.tE),r.\u0275\u0275directiveInject(r.ANIMATION_MODULE_TYPE,8))},Ge.\u0275dir=r.\u0275\u0275defineDirective({type:Ge,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(X,Oe){1&X&&r.\u0275\u0275listener("focus",function(){return Oe._handleFocus()})("keydown",function(Dt){return Oe._handleKeydown(Dt)}),2&X&&(r.\u0275\u0275attribute("aria-controls",Oe._getAriaControls())("aria-current",Oe._getAriaCurrent())("aria-disabled",Oe.disabled)("aria-selected",Oe._getAriaSelected())("id",Oe.id)("tabIndex",Oe._getTabIndex())("role",Oe._getRole()),r.\u0275\u0275classProp("mat-tab-disabled",Oe.disabled)("mat-tab-label-active",Oe.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[r.\u0275\u0275InheritDefinitionFeature]}),Ge})(),Me=(()=>{class Ge{constructor(){this.id="mat-tab-nav-panel-"+Je++}}return Ge.\u0275fac=function(X){return new(X||Ge)},Ge.\u0275cmp=r.\u0275\u0275defineComponent({type:Ge,selectors:[["mat-tab-nav-panel"]],hostAttrs:["role","tabpanel",1,"mat-tab-nav-panel"],hostVars:2,hostBindings:function(X,Oe){2&X&&r.\u0275\u0275attribute("aria-labelledby",Oe._activeTabId)("id",Oe.id)},inputs:{id:"id"},exportAs:["matTabNavPanel"],ngContentSelectors:be,decls:1,vars:0,template:function(X,Oe){1&X&&(r.\u0275\u0275projectionDef(),r.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),Ge})(),vt=(()=>{class Ge{}return Ge.\u0275fac=function(X){return new(X||Ge)},Ge.\u0275mod=r.\u0275\u0275defineNgModule({type:Ge}),Ge.\u0275inj=r.\u0275\u0275defineInjector({imports:[u.CommonModule,c.MatCommonModule,_.eL,c.MatRippleModule,h.Q8,n.rt,c.MatCommonModule]}),Ge})()},7238:(z,o,a)=>{"use strict";a.r(o),a.d(o,{MAT_TOOLTIP_DEFAULT_OPTIONS:()=>it,MAT_TOOLTIP_DEFAULT_OPTIONS_FACTORY:()=>be,MAT_TOOLTIP_SCROLL_STRATEGY:()=>te,MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY:()=>he,MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER:()=>Fe,MatTooltip:()=>ie,MatTooltipModule:()=>me,SCROLL_THROTTLE_MS:()=>N,TOOLTIP_PANEL_CLASS:()=>Y,TooltipComponent:()=>oe,_MatTooltipBase:()=>ke,_TooltipComponentBase:()=>Ae,getMatTooltipInvalidPositionError:()=>J,matTooltipAnimations:()=>V});var n=a(1314),h=a(5664),_=a(9808),u=a(5e3),r=a(508),c=a(495),d=a(3191),p=a(1159),y=a(5113),f=a(925),b=a(7429),v=a(7579),m=a(2722),C=a(5698),M=a(226),O=a(1777);const P=["tooltip"],N=20,Y="mat-tooltip-panel",U="tooltip-panel",G=(0,f.i$)({passive:!0});function J(H){return Error(`Tooltip position "${H}" is invalid.`)}const te=new u.InjectionToken("mat-tooltip-scroll-strategy");function he(H){return()=>H.scrollStrategies.reposition({scrollThrottle:N})}const Fe={provide:te,deps:[n.aV],useFactory:he},it=new u.InjectionToken("mat-tooltip-default-options",{providedIn:"root",factory:be});function be(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}let ke=(()=>{class H{constructor(B,ue,ge,Te,Pe,Ce,$e,lt,yt,_t,ut,He){this._overlay=B,this._elementRef=ue,this._scrollDispatcher=ge,this._viewContainerRef=Te,this._ngZone=Pe,this._platform=Ce,this._ariaDescriber=$e,this._focusMonitor=lt,this._dir=_t,this._defaultOptions=ut,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 v.x,this._scrollStrategy=yt,this._document=He,ut&&(ut.position&&(this.position=ut.position),ut.touchGestures&&(this.touchGestures=ut.touchGestures)),_t.change.pipe((0,m.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(B){var ue;B!==this._position&&(this._position=B,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(ue=this._tooltipInstance)||void 0===ue||ue.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(B){this._disabled=(0,d.Ig)(B),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(B){this._showDelay=(0,d.su)(B)}get hideDelay(){return this._hideDelay}set hideDelay(B){this._hideDelay=(0,d.su)(B),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(B){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=B?String(B).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(B){this._tooltipClass=B,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,m.R)(this._destroyed)).subscribe(B=>{B?"keyboard"===B&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const B=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([ue,ge])=>{B.removeEventListener(ue,ge,G)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(B,this.message,"tooltip"),this._focusMonitor.stopMonitoring(B)}show(B=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const ue=this._createOverlay();this._detach(),this._portal=this._portal||new b.C5(this._tooltipComponent,this._viewContainerRef);const ge=this._tooltipInstance=ue.attach(this._portal).instance;ge._triggerElement=this._elementRef.nativeElement,ge._mouseLeaveHideDelay=this._hideDelay,ge.afterHidden().pipe((0,m.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),ge.show(B)}hide(B=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(B)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){var B;if(this._overlayRef)return this._overlayRef;const ue=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),ge=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(ue);return ge.positionChanges.pipe((0,m.R)(this._destroyed)).subscribe(Te=>{this._updateCurrentPositionClass(Te.connectionPair),this._tooltipInstance&&Te.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:ge,panelClass:`${this._cssClassPrefix}-${U}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,m.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,m.R)(this._destroyed)).subscribe(()=>{var Te;return null===(Te=this._tooltipInstance)||void 0===Te?void 0:Te._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe((0,m.R)(this._destroyed)).subscribe(Te=>{this._isTooltipVisible()&&Te.keyCode===p.hY&&!(0,p.Vb)(Te)&&(Te.preventDefault(),Te.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),!(null===(B=this._defaultOptions)||void 0===B)&&B.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(B){const ue=B.getConfig().positionStrategy,ge=this._getOrigin(),Te=this._getOverlayPosition();ue.withPositions([this._addOffset(Object.assign(Object.assign({},ge.main),Te.main)),this._addOffset(Object.assign(Object.assign({},ge.fallback),Te.fallback))])}_addOffset(B){return B}_getOrigin(){const B=!this._dir||"ltr"==this._dir.value,ue=this.position;let ge;"above"==ue||"below"==ue?ge={originX:"center",originY:"above"==ue?"top":"bottom"}:"before"==ue||"left"==ue&&B||"right"==ue&&!B?ge={originX:"start",originY:"center"}:("after"==ue||"right"==ue&&B||"left"==ue&&!B)&&(ge={originX:"end",originY:"center"});const{x:Te,y:Pe}=this._invertPosition(ge.originX,ge.originY);return{main:ge,fallback:{originX:Te,originY:Pe}}}_getOverlayPosition(){const B=!this._dir||"ltr"==this._dir.value,ue=this.position;let ge;"above"==ue?ge={overlayX:"center",overlayY:"bottom"}:"below"==ue?ge={overlayX:"center",overlayY:"top"}:"before"==ue||"left"==ue&&B||"right"==ue&&!B?ge={overlayX:"end",overlayY:"center"}:("after"==ue||"right"==ue&&B||"left"==ue&&!B)&&(ge={overlayX:"start",overlayY:"center"});const{x:Te,y:Pe}=this._invertPosition(ge.overlayX,ge.overlayY);return{main:ge,fallback:{overlayX:Te,overlayY:Pe}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,C.q)(1),(0,m.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(B){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=B,this._tooltipInstance._markForCheck())}_invertPosition(B,ue){return"above"===this.position||"below"===this.position?"top"===ue?ue="bottom":"bottom"===ue&&(ue="top"):"end"===B?B="start":"start"===B&&(B="end"),{x:B,y:ue}}_updateCurrentPositionClass(B){const{overlayY:ue,originX:ge,originY:Te}=B;let Pe;if(Pe="center"===ue?this._dir&&"rtl"===this._dir.value?"end"===ge?"left":"right":"start"===ge?"left":"right":"bottom"===ue&&"top"===Te?"above":"below",Pe!==this._currentPosition){const Ce=this._overlayRef;if(Ce){const $e=`${this._cssClassPrefix}-${U}-`;Ce.removePanelClass($e+this._currentPosition),Ce.addPanelClass($e+Pe)}this._currentPosition=Pe}}_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 B=[];if(this._platformSupportsMouseEvents())B.push(["mouseleave",ue=>{var ge;const Te=ue.relatedTarget;(!Te||null===(ge=this._overlayRef)||void 0===ge||!ge.overlayElement.contains(Te))&&this.hide()}],["wheel",ue=>this._wheelListener(ue)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const ue=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};B.push(["touchend",ue],["touchcancel",ue])}this._addListeners(B),this._passiveListeners.push(...B)}_addListeners(B){B.forEach(([ue,ge])=>{this._elementRef.nativeElement.addEventListener(ue,ge,G)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(B){if(this._isTooltipVisible()){const ue=this._document.elementFromPoint(B.clientX,B.clientY),ge=this._elementRef.nativeElement;ue!==ge&&!ge.contains(ue)&&this.hide()}}_disableNativeGesturesIfNecessary(){const B=this.touchGestures;if("off"!==B){const ue=this._elementRef.nativeElement,ge=ue.style;("on"===B||"INPUT"!==ue.nodeName&&"TEXTAREA"!==ue.nodeName)&&(ge.userSelect=ge.msUserSelect=ge.webkitUserSelect=ge.MozUserSelect="none"),("on"===B||!ue.draggable)&&(ge.webkitUserDrag="none"),ge.touchAction="none",ge.webkitTapHighlightColor="transparent"}}}return H.\u0275fac=function(B){u.\u0275\u0275invalidFactory()},H.\u0275dir=u.\u0275\u0275defineDirective({type:H,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),H})(),ie=(()=>{class H extends ke{constructor(B,ue,ge,Te,Pe,Ce,$e,lt,yt,_t,ut,He){super(B,ue,ge,Te,Pe,Ce,$e,lt,yt,_t,ut,He),this._tooltipComponent=oe}}return H.\u0275fac=function(B){return new(B||H)(u.\u0275\u0275directiveInject(n.aV),u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(c.mF),u.\u0275\u0275directiveInject(u.ViewContainerRef),u.\u0275\u0275directiveInject(u.NgZone),u.\u0275\u0275directiveInject(f.t4),u.\u0275\u0275directiveInject(h.$s),u.\u0275\u0275directiveInject(h.tE),u.\u0275\u0275directiveInject(te),u.\u0275\u0275directiveInject(M.Is,8),u.\u0275\u0275directiveInject(it,8),u.\u0275\u0275directiveInject(_.DOCUMENT))},H.\u0275dir=u.\u0275\u0275defineDirective({type:H,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[u.\u0275\u0275InheritDefinitionFeature]}),H})(),Ae=(()=>{class H{constructor(B,ue){this._changeDetectorRef=B,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new v.x,this._animationsDisabled="NoopAnimations"===ue}show(B){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},B)}hide(B){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},B)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:B}){(!B||!this._triggerElement.contains(B))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:B}){(B===this._showAnimation||B===this._hideAnimation)&&this._finalizeAnimation(B===this._showAnimation)}_finalizeAnimation(B){B?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(B){const ue=this._tooltip.nativeElement,ge=this._showAnimation,Te=this._hideAnimation;if(ue.classList.remove(B?Te:ge),ue.classList.add(B?ge:Te),this._isVisible=B,B&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const Pe=getComputedStyle(ue);("0s"===Pe.getPropertyValue("animation-duration")||"none"===Pe.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}B&&this._onShow(),this._animationsDisabled&&(ue.classList.add("_mat-animation-noopable"),this._finalizeAnimation(B))}}return H.\u0275fac=function(B){return new(B||H)(u.\u0275\u0275directiveInject(u.ChangeDetectorRef),u.\u0275\u0275directiveInject(u.ANIMATION_MODULE_TYPE,8))},H.\u0275dir=u.\u0275\u0275defineDirective({type:H}),H})(),oe=(()=>{class H extends Ae{constructor(B,ue,ge){super(B,ge),this._breakpointObserver=ue,this._isHandset=this._breakpointObserver.observe(y.Breakpoints.Handset),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return H.\u0275fac=function(B){return new(B||H)(u.\u0275\u0275directiveInject(u.ChangeDetectorRef),u.\u0275\u0275directiveInject(y.BreakpointObserver),u.\u0275\u0275directiveInject(u.ANIMATION_MODULE_TYPE,8))},H.\u0275cmp=u.\u0275\u0275defineComponent({type:H,selectors:[["mat-tooltip-component"]],viewQuery:function(B,ue){if(1&B&&u.\u0275\u0275viewQuery(P,7),2&B){let ge;u.\u0275\u0275queryRefresh(ge=u.\u0275\u0275loadQuery())&&(ue._tooltip=ge.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(B,ue){1&B&&u.\u0275\u0275listener("mouseleave",function(Te){return ue._handleMouseLeave(Te)}),2&B&&u.\u0275\u0275styleProp("zoom",ue.isVisible()?1:null)},features:[u.\u0275\u0275InheritDefinitionFeature],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(B,ue){if(1&B&&(u.\u0275\u0275elementStart(0,"div",0,1),u.\u0275\u0275listener("animationend",function(Te){return ue._handleAnimationEnd(Te)}),u.\u0275\u0275pipe(2,"async"),u.\u0275\u0275text(3),u.\u0275\u0275elementEnd()),2&B){let ge;u.\u0275\u0275classProp("mat-tooltip-handset",null==(ge=u.\u0275\u0275pipeBind1(2,4,ue._isHandset))?null:ge.matches),u.\u0275\u0275property("ngClass",ue.tooltipClass),u.\u0275\u0275advance(3),u.\u0275\u0275textInterpolate(ue.message)}},dependencies:[_.NgClass,_.AsyncPipe],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0}),H})(),me=(()=>{class H{}return H.\u0275fac=function(B){return new(B||H)},H.\u0275mod=u.\u0275\u0275defineNgModule({type:H}),H.\u0275inj=u.\u0275\u0275defineInjector({providers:[Fe],imports:[h.rt,_.CommonModule,n.U8,r.MatCommonModule,r.MatCommonModule,c.ZD]}),H})();const V={tooltipState:(0,O.X$)("state",[(0,O.SB)("initial, void, hidden",(0,O.oB)({opacity:0,transform:"scale(0)"})),(0,O.SB)("visible",(0,O.oB)({transform:"scale(1)"})),(0,O.eR)("* => visible",(0,O.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,O.F4)([(0,O.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,O.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,O.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,O.eR)("* => hidden",(0,O.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,O.oB)({opacity:0})))])}},6360:(z,o,a)=>{"use strict";a.r(o),a.d(o,{ANIMATION_MODULE_TYPE:()=>n.ANIMATION_MODULE_TYPE,BrowserAnimationsModule:()=>Vs,NoopAnimationsModule:()=>Ua,provideAnimations:()=>es,provideNoopAnimations:()=>$s,\u0275AnimationRenderer:()=>Rr,\u0275AnimationRendererFactory:()=>Fn,\u0275BrowserAnimationBuilder:()=>A,\u0275BrowserAnimationFactory:()=>S,\u0275InjectableAnimationEngine:()=>Ls});var n=a(5e3),h=a(2313),_=a(1777);function r(Q){return new n.\u0275RuntimeError(3e3,!1)}function Ce(){return"undefined"!=typeof window&&void 0!==window.document}function $e(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function lt(Q){switch(Q.length){case 0:return new _.ZN;case 1:return Q[0];default:return new _.ZE(Q)}}function yt(Q,E,T,R,Z=new Map,Se=new Map){const nt=[],ot=[];let ht=-1,wt=null;if(R.forEach(Pt=>{const $t=Pt.get("offset"),an=$t==ht,un=an&&wt||new Map;Pt.forEach((en,tn)=>{let Mn=tn,wn=en;if("offset"!==tn)switch(Mn=E.normalizePropertyName(Mn,nt),wn){case _.k1:wn=Z.get(tn);break;case _.l3:wn=Se.get(tn);break;default:wn=E.normalizeStyleValue(tn,Mn,wn,nt)}un.set(Mn,wn)}),an||ot.push(un),wt=un,ht=$t}),nt.length)throw function ke(Q){return new n.\u0275RuntimeError(3502,!1)}();return ot}function _t(Q,E,T,R){switch(E){case"start":Q.onStart(()=>R(T&&ut(T,"start",Q)));break;case"done":Q.onDone(()=>R(T&&ut(T,"done",Q)));break;case"destroy":Q.onDestroy(()=>R(T&&ut(T,"destroy",Q)))}}function ut(Q,E,T){const R=T.totalTime,Se=He(Q.element,Q.triggerName,Q.fromState,Q.toState,E||Q.phaseName,null==R?Q.totalTime:R,!!T.disabled),nt=Q._data;return null!=nt&&(Se._data=nt),Se}function He(Q,E,T,R,Z="",Se=0,nt){return{element:Q,triggerName:E,fromState:T,toState:R,phaseName:Z,totalTime:Se,disabled:!!nt}}function Ie(Q,E,T){let R=Q.get(E);return R||Q.set(E,R=T),R}function je(Q){const E=Q.indexOf(":");return[Q.substring(1,E),Q.slice(E+1)]}let pe=(Q,E)=>!1,Qe=(Q,E,T)=>[],Ve=null;function Ke(Q){const E=Q.parentNode||Q.host;return E===Ve?null:E}($e()||"undefined"!=typeof Element)&&(Ce()?(Ve=(()=>document.documentElement)(),pe=(Q,E)=>{for(;E;){if(E===Q)return!0;E=Ke(E)}return!1}):pe=(Q,E)=>Q.contains(E),Qe=(Q,E,T)=>{if(T)return Array.from(Q.querySelectorAll(E));const R=Q.querySelector(E);return R?[R]:[]});let ze=null,Be=!1;const dt=pe,xe=Qe;let ye=(()=>{class Q{validateStyleProperty(T){return function We(Q){ze||(ze=function Ue(){return"undefined"!=typeof document?document.body:null}()||{},Be=!!ze.style&&"WebkitAppearance"in ze.style);let E=!0;return ze.style&&!function we(Q){return"ebkit"==Q.substring(1,6)}(Q)&&(E=Q in ze.style,!E&&Be&&(E="Webkit"+Q.charAt(0).toUpperCase()+Q.slice(1)in ze.style)),E}(T)}matchesElement(T,R){return!1}containsElement(T,R){return dt(T,R)}getParentElement(T){return Ke(T)}query(T,R,Z){return xe(T,R,Z)}computeStyle(T,R,Z){return Z||""}animate(T,R,Z,Se,nt,ot=[],ht){return new _.ZN(Z,Se)}}return Q.\u0275fac=function(T){return new(T||Q)},Q.\u0275prov=n.\u0275\u0275defineInjectable({token:Q,factory:Q.\u0275fac}),Q})(),de=(()=>{class Q{}return Q.NOOP=new ye,Q})();const Ft="ng-enter",At="ng-leave",Yt="ng-trigger",Nt=".ng-trigger",rt="ng-animating",Je=".ng-animating";function Ee(Q){if("number"==typeof Q)return Q;const E=Q.match(/^(-?[\.\d]+)(m?s)/);return!E||E.length<2?0:ve(parseFloat(E[1]),E[2])}function ve(Q,E){return"s"===E?1e3*Q:Q}function se(Q,E,T){return Q.hasOwnProperty("duration")?Q:function ae(Q,E,T){let Z,Se=0,nt="";if("string"==typeof Q){const ot=Q.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===ot)return E.push(r()),{duration:0,delay:0,easing:""};Z=ve(parseFloat(ot[1]),ot[2]);const ht=ot[3];null!=ht&&(Se=ve(parseFloat(ht),ot[4]));const wt=ot[5];wt&&(nt=wt)}else Z=Q;if(!T){let ot=!1,ht=E.length;Z<0&&(E.push(function c(){return new n.\u0275RuntimeError(3100,!1)}()),ot=!0),Se<0&&(E.push(function d(){return new n.\u0275RuntimeError(3101,!1)}()),ot=!0),ot&&E.splice(ht,0,r())}return{duration:Z,delay:Se,easing:nt}}(Q,E,T)}function j(Q,E={}){return Object.keys(Q).forEach(T=>{E[T]=Q[T]}),E}function Me(Q){const E=new Map;return Object.keys(Q).forEach(T=>{E.set(T,Q[T])}),E}function bt(Q,E=new Map,T){if(T)for(let[R,Z]of T)E.set(R,Z);for(let[R,Z]of Q)E.set(R,Z);return E}function X(Q,E,T){return T?E+":"+T+";":""}function Oe(Q){let E="";for(let T=0;T<Q.style.length;T++){const R=Q.style.item(T);E+=X(0,R,Q.style.getPropertyValue(R))}for(const T in Q.style)Q.style.hasOwnProperty(T)&&!T.startsWith("_")&&(E+=X(0,ct(T),Q.style[T]));Q.setAttribute("style",E)}function at(Q,E,T){Q.style&&(E.forEach((R,Z)=>{const Se=et(Z);T&&!T.has(Z)&&T.set(Z,Q.style[Se]),Q.style[Se]=R}),$e()&&Oe(Q))}function Dt(Q,E){Q.style&&(E.forEach((T,R)=>{const Z=et(R);Q.style[Z]=""}),$e()&&Oe(Q))}function Ht(Q){return Array.isArray(Q)?1==Q.length?Q[0]:(0,_.vP)(Q):Q}const Xt=new RegExp("{{\\s*(.+?)\\s*}}","g");function vn(Q){let E=[];if("string"==typeof Q){let T;for(;T=Xt.exec(Q);)E.push(T[1]);Xt.lastIndex=0}return E}function qe(Q,E,T){const R=Q.toString(),Z=R.replace(Xt,(Se,nt)=>{let ot=E[nt];return null==ot&&(T.push(function y(Q){return new n.\u0275RuntimeError(3003,!1)}()),ot=""),ot.toString()});return Z==R?Q:Z}function Ye(Q){const E=[];let T=Q.next();for(;!T.done;)E.push(T.value),T=Q.next();return E}const De=/-+([a-z0-9])/g;function et(Q){return Q.replace(De,(...E)=>E[1].toUpperCase())}function ct(Q){return Q.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Wt(Q,E,T){switch(E.type){case 7:return Q.visitTrigger(E,T);case 0:return Q.visitState(E,T);case 1:return Q.visitTransition(E,T);case 2:return Q.visitSequence(E,T);case 3:return Q.visitGroup(E,T);case 4:return Q.visitAnimate(E,T);case 5:return Q.visitKeyframes(E,T);case 6:return Q.visitStyle(E,T);case 8:return Q.visitReference(E,T);case 9:return Q.visitAnimateChild(E,T);case 10:return Q.visitAnimateRef(E,T);case 11:return Q.visitQuery(E,T);case 12:return Q.visitStagger(E,T);default:throw function f(Q){return new n.\u0275RuntimeError(3004,!1)}()}}function yn(Q,E){return window.getComputedStyle(Q)[E]}function xt(Q,E){const T=[];return"string"==typeof Q?Q.split(/\s*,\s*/).forEach(R=>function Kt(Q,E,T){if(":"==Q[0]){const ht=function Ut(Q,E){switch(Q){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(T,R)=>parseFloat(R)>parseFloat(T);case":decrement":return(T,R)=>parseFloat(R)<parseFloat(T);default:return E.push(function he(Q){return new n.\u0275RuntimeError(3016,!1)}()),"* => *"}}(Q,T);if("function"==typeof ht)return void E.push(ht);Q=ht}const R=Q.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==R||R.length<4)return T.push(function te(Q){return new n.\u0275RuntimeError(3015,!1)}()),E;const Z=R[1],Se=R[2],nt=R[3];E.push(ln(Z,nt));"<"==Se[0]&&!("*"==Z&&"*"==nt)&&E.push(ln(nt,Z))}(R,T,E)):T.push(Q),T}const _n=new Set(["true","1"]),dn=new Set(["false","0"]);function ln(Q,E){const T=_n.has(Q)||dn.has(Q),R=_n.has(E)||dn.has(E);return(Z,Se)=>{let nt="*"==Q||Q==Z,ot="*"==E||E==Se;return!nt&&T&&"boolean"==typeof Z&&(nt=Z?_n.has(Q):dn.has(Q)),!ot&&R&&"boolean"==typeof Se&&(ot=Se?_n.has(E):dn.has(E)),nt&&ot}}const zn=new RegExp("s*:selfs*,?","g");function cn(Q,E,T,R){return new kn(Q).build(E,T,R)}class kn{constructor(E){this._driver=E}build(E,T,R){const Z=new Ti(T);return this._resetContextStyleTimingState(Z),Wt(this,Ht(E),Z)}_resetContextStyleTimingState(E){E.currentQuerySelector="",E.collectedStyles=new Map,E.collectedStyles.set("",new Map),E.currentTime=0}visitTrigger(E,T){let R=T.queryCount=0,Z=T.depCount=0;const Se=[],nt=[];return"@"==E.name.charAt(0)&&T.errors.push(function v(){return new n.\u0275RuntimeError(3006,!1)}()),E.definitions.forEach(ot=>{if(this._resetContextStyleTimingState(T),0==ot.type){const ht=ot,wt=ht.name;wt.toString().split(/\s*,\s*/).forEach(Pt=>{ht.name=Pt,Se.push(this.visitState(ht,T))}),ht.name=wt}else if(1==ot.type){const ht=this.visitTransition(ot,T);R+=ht.queryCount,Z+=ht.depCount,nt.push(ht)}else T.errors.push(function m(){return new n.\u0275RuntimeError(3007,!1)}())}),{type:7,name:E.name,states:Se,transitions:nt,queryCount:R,depCount:Z,options:null}}visitState(E,T){const R=this.visitStyle(E.styles,T),Z=E.options&&E.options.params||null;if(R.containsDynamicStyles){const Se=new Set,nt=Z||{};R.styles.forEach(ot=>{ot instanceof Map&&ot.forEach(ht=>{vn(ht).forEach(wt=>{nt.hasOwnProperty(wt)||Se.add(wt)})})}),Se.size&&(Ye(Se.values()),T.errors.push(function C(Q,E){return new n.\u0275RuntimeError(3008,!1)}()))}return{type:0,name:E.name,style:R,options:Z?{params:Z}:null}}visitTransition(E,T){T.queryCount=0,T.depCount=0;const R=Wt(this,Ht(E.animation),T);return{type:1,matchers:xt(E.expr,T.errors),animation:R,queryCount:T.queryCount,depCount:T.depCount,options:Ln(E.options)}}visitSequence(E,T){return{type:2,steps:E.steps.map(R=>Wt(this,R,T)),options:Ln(E.options)}}visitGroup(E,T){const R=T.currentTime;let Z=0;const Se=E.steps.map(nt=>{T.currentTime=R;const ot=Wt(this,nt,T);return Z=Math.max(Z,T.currentTime),ot});return T.currentTime=Z,{type:3,steps:Se,options:Ln(E.options)}}visitAnimate(E,T){const R=function bi(Q,E){if(Q.hasOwnProperty("duration"))return Q;if("number"==typeof Q)return Ni(se(Q,E).duration,0,"");const T=Q;if(T.split(/\s+/).some(Se=>"{"==Se.charAt(0)&&"{"==Se.charAt(1))){const Se=Ni(0,0,"");return Se.dynamic=!0,Se.strValue=T,Se}const Z=se(T,E);return Ni(Z.duration,Z.delay,Z.easing)}(E.timings,T.errors);T.currentAnimateTimings=R;let Z,Se=E.styles?E.styles:(0,_.oB)({});if(5==Se.type)Z=this.visitKeyframes(Se,T);else{let nt=E.styles,ot=!1;if(!nt){ot=!0;const wt={};R.easing&&(wt.easing=R.easing),nt=(0,_.oB)(wt)}T.currentTime+=R.duration+R.delay;const ht=this.visitStyle(nt,T);ht.isEmptyStep=ot,Z=ht}return T.currentAnimateTimings=null,{type:4,timings:R,style:Z,options:null}}visitStyle(E,T){const R=this._makeStyleAst(E,T);return this._validateStyleAst(R,T),R}_makeStyleAst(E,T){const R=[],Z=Array.isArray(E.styles)?E.styles:[E.styles];for(let ot of Z)"string"==typeof ot?ot===_.l3?R.push(ot):T.errors.push(new n.\u0275RuntimeError(3002,!1)):R.push(Me(ot));let Se=!1,nt=null;return R.forEach(ot=>{if(ot instanceof Map&&(ot.has("easing")&&(nt=ot.get("easing"),ot.delete("easing")),!Se))for(let ht of ot.values())if(ht.toString().indexOf("{{")>=0){Se=!0;break}}),{type:6,styles:R,easing:nt,offset:E.offset,containsDynamicStyles:Se,options:null}}_validateStyleAst(E,T){const R=T.currentAnimateTimings;let Z=T.currentTime,Se=T.currentTime;R&&Se>0&&(Se-=R.duration+R.delay),E.styles.forEach(nt=>{"string"!=typeof nt&&nt.forEach((ot,ht)=>{const wt=T.collectedStyles.get(T.currentQuerySelector),Pt=wt.get(ht);let $t=!0;Pt&&(Se!=Z&&Se>=Pt.startTime&&Z<=Pt.endTime&&(T.errors.push(function P(Q,E,T,R,Z){return new n.\u0275RuntimeError(3010,!1)}()),$t=!1),Se=Pt.startTime),$t&&wt.set(ht,{startTime:Se,endTime:Z}),T.options&&function rn(Q,E,T){const R=E.params||{},Z=vn(Q);Z.length&&Z.forEach(Se=>{R.hasOwnProperty(Se)||T.push(function p(Q){return new n.\u0275RuntimeError(3001,!1)}())})}(ot,T.options,T.errors)})})}visitKeyframes(E,T){const R={type:5,styles:[],options:null};if(!T.currentAnimateTimings)return T.errors.push(function N(){return new n.\u0275RuntimeError(3011,!1)}()),R;let Se=0;const nt=[];let ot=!1,ht=!1,wt=0;const Pt=E.steps.map(wn=>{const Gn=this._makeStyleAst(wn,T);let ei=null!=Gn.offset?Gn.offset:function wi(Q){if("string"==typeof Q)return null;let E=null;if(Array.isArray(Q))Q.forEach(T=>{if(T instanceof Map&&T.has("offset")){const R=T;E=parseFloat(R.get("offset")),R.delete("offset")}});else if(Q instanceof Map&&Q.has("offset")){const T=Q;E=parseFloat(T.get("offset")),T.delete("offset")}return E}(Gn.styles),Kn=0;return null!=ei&&(Se++,Kn=Gn.offset=ei),ht=ht||Kn<0||Kn>1,ot=ot||Kn<wt,wt=Kn,nt.push(Kn),Gn});ht&&T.errors.push(function Y(){return new n.\u0275RuntimeError(3012,!1)}()),ot&&T.errors.push(function U(){return new n.\u0275RuntimeError(3200,!1)}());const $t=E.steps.length;let an=0;Se>0&&Se<$t?T.errors.push(function G(){return new n.\u0275RuntimeError(3202,!1)}()):0==Se&&(an=1/($t-1));const un=$t-1,en=T.currentTime,tn=T.currentAnimateTimings,Mn=tn.duration;return Pt.forEach((wn,Gn)=>{const ei=an>0?Gn==un?1:an*Gn:nt[Gn],Kn=ei*Mn;T.currentTime=en+tn.delay+Kn,tn.duration=Kn,this._validateStyleAst(wn,T),wn.offset=ei,R.styles.push(wn)}),R}visitReference(E,T){return{type:8,animation:Wt(this,Ht(E.animation),T),options:Ln(E.options)}}visitAnimateChild(E,T){return T.depCount++,{type:9,options:Ln(E.options)}}visitAnimateRef(E,T){return{type:10,animation:this.visitReference(E.animation,T),options:Ln(E.options)}}visitQuery(E,T){const R=T.currentQuerySelector,Z=E.options||{};T.queryCount++,T.currentQuery=E;const[Se,nt]=function En(Q){const E=!!Q.split(/\s*,\s*/).find(T=>":self"==T);return E&&(Q=Q.replace(zn,"")),Q=Q.replace(/@\*/g,Nt).replace(/@\w+/g,T=>Nt+"-"+T.slice(1)).replace(/:animating/g,Je),[Q,E]}(E.selector);T.currentQuerySelector=R.length?R+" "+Se:Se,Ie(T.collectedStyles,T.currentQuerySelector,new Map);const ot=Wt(this,Ht(E.animation),T);return T.currentQuery=null,T.currentQuerySelector=R,{type:11,selector:Se,limit:Z.limit||0,optional:!!Z.optional,includeSelf:nt,animation:ot,originalSelector:E.selector,options:Ln(E.options)}}visitStagger(E,T){T.currentQuery||T.errors.push(function $(){return new n.\u0275RuntimeError(3013,!1)}());const R="full"===E.timings?{duration:0,delay:0,easing:"full"}:se(E.timings,T.errors,!0);return{type:12,animation:Wt(this,Ht(E.animation),T),timings:R,options:null}}}class Ti{constructor(E){this.errors=E,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Ln(Q){return Q?(Q=j(Q)).params&&(Q.params=function Nn(Q){return Q?j(Q):null}(Q.params)):Q={},Q}function Ni(Q,E,T){return{duration:Q,delay:E,easing:T}}function Wi(Q,E,T,R,Z,Se,nt=null,ot=!1){return{type:1,element:Q,keyframes:E,preStyleProps:T,postStyleProps:R,duration:Z,delay:Se,totalTime:Z+Se,easing:nt,subTimeline:ot}}class Ci{constructor(){this._map=new Map}get(E){return this._map.get(E)||[]}append(E,T){let R=this._map.get(E);R||this._map.set(E,R=[]),R.push(...T)}has(E){return this._map.has(E)}clear(){this._map.clear()}}const cr=new RegExp(":enter","g"),Xn=new RegExp(":leave","g");function ur(Q,E,T,R,Z,Se=new Map,nt=new Map,ot,ht,wt=[]){return(new Xr).buildKeyframes(Q,E,T,R,Z,Se,nt,ot,ht,wt)}class Xr{buildKeyframes(E,T,R,Z,Se,nt,ot,ht,wt,Pt=[]){wt=wt||new Ci;const $t=new dr(E,T,wt,Z,Se,Pt,[]);$t.options=ht;const an=ht.delay?Ee(ht.delay):0;$t.currentTimeline.delayNextStep(an),$t.currentTimeline.setStyles([nt],null,$t.errors,ht),Wt(this,R,$t);const un=$t.timelines.filter(en=>en.containsAnimation());if(un.length&&ot.size){let en;for(let tn=un.length-1;tn>=0;tn--){const Mn=un[tn];if(Mn.element===T){en=Mn;break}}en&&!en.allowOnlyTimelineStyles()&&en.setStyles([ot],null,$t.errors,ht)}return un.length?un.map(en=>en.buildKeyframes()):[Wi(T,[],[],[],0,an,"",!1)]}visitTrigger(E,T){}visitState(E,T){}visitTransition(E,T){}visitAnimateChild(E,T){const R=T.subInstructions.get(T.element);if(R){const Z=T.createSubContext(E.options),Se=T.currentTimeline.currentTime,nt=this._visitSubInstructions(R,Z,Z.options);Se!=nt&&T.transformIntoNewTimeline(nt)}T.previousNode=E}visitAnimateRef(E,T){const R=T.createSubContext(E.options);R.transformIntoNewTimeline(),this.visitReference(E.animation,R),T.transformIntoNewTimeline(R.currentTimeline.currentTime),T.previousNode=E}_visitSubInstructions(E,T,R){let Se=T.currentTimeline.currentTime;const nt=null!=R.duration?Ee(R.duration):null,ot=null!=R.delay?Ee(R.delay):null;return 0!==nt&&E.forEach(ht=>{const wt=T.appendInstructionToTimeline(ht,nt,ot);Se=Math.max(Se,wt.duration+wt.delay)}),Se}visitReference(E,T){T.updateOptions(E.options,!0),Wt(this,E.animation,T),T.previousNode=E}visitSequence(E,T){const R=T.subContextCount;let Z=T;const Se=E.options;if(Se&&(Se.params||Se.delay)&&(Z=T.createSubContext(Se),Z.transformIntoNewTimeline(),null!=Se.delay)){6==Z.previousNode.type&&(Z.currentTimeline.snapshotCurrentStyles(),Z.previousNode=Li);const nt=Ee(Se.delay);Z.delayNextStep(nt)}E.steps.length&&(E.steps.forEach(nt=>Wt(this,nt,Z)),Z.currentTimeline.applyStylesToKeyframe(),Z.subContextCount>R&&Z.transformIntoNewTimeline()),T.previousNode=E}visitGroup(E,T){const R=[];let Z=T.currentTimeline.currentTime;const Se=E.options&&E.options.delay?Ee(E.options.delay):0;E.steps.forEach(nt=>{const ot=T.createSubContext(E.options);Se&&ot.delayNextStep(Se),Wt(this,nt,ot),Z=Math.max(Z,ot.currentTimeline.currentTime),R.push(ot.currentTimeline)}),R.forEach(nt=>T.currentTimeline.mergeTimelineCollectedStyles(nt)),T.transformIntoNewTimeline(Z),T.previousNode=E}_visitTiming(E,T){if(E.dynamic){const R=E.strValue;return se(T.params?qe(R,T.params,T.errors):R,T.errors)}return{duration:E.duration,delay:E.delay,easing:E.easing}}visitAnimate(E,T){const R=T.currentAnimateTimings=this._visitTiming(E.timings,T),Z=T.currentTimeline;R.delay&&(T.incrementTime(R.delay),Z.snapshotCurrentStyles());const Se=E.style;5==Se.type?this.visitKeyframes(Se,T):(T.incrementTime(R.duration),this.visitStyle(Se,T),Z.applyStylesToKeyframe()),T.currentAnimateTimings=null,T.previousNode=E}visitStyle(E,T){const R=T.currentTimeline,Z=T.currentAnimateTimings;!Z&&R.hasCurrentStyleProperties()&&R.forwardFrame();const Se=Z&&Z.easing||E.easing;E.isEmptyStep?R.applyEmptyStep(Se):R.setStyles(E.styles,Se,T.errors,T.options),T.previousNode=E}visitKeyframes(E,T){const R=T.currentAnimateTimings,Z=T.currentTimeline.duration,Se=R.duration,ot=T.createSubContext().currentTimeline;ot.easing=R.easing,E.styles.forEach(ht=>{ot.forwardTime((ht.offset||0)*Se),ot.setStyles(ht.styles,ht.easing,T.errors,T.options),ot.applyStylesToKeyframe()}),T.currentTimeline.mergeTimelineCollectedStyles(ot),T.transformIntoNewTimeline(Z+Se),T.previousNode=E}visitQuery(E,T){const R=T.currentTimeline.currentTime,Z=E.options||{},Se=Z.delay?Ee(Z.delay):0;Se&&(6===T.previousNode.type||0==R&&T.currentTimeline.hasCurrentStyleProperties())&&(T.currentTimeline.snapshotCurrentStyles(),T.previousNode=Li);let nt=R;const ot=T.invokeQuery(E.selector,E.originalSelector,E.limit,E.includeSelf,!!Z.optional,T.errors);T.currentQueryTotal=ot.length;let ht=null;ot.forEach((wt,Pt)=>{T.currentQueryIndex=Pt;const $t=T.createSubContext(E.options,wt);Se&&$t.delayNextStep(Se),wt===T.element&&(ht=$t.currentTimeline),Wt(this,E.animation,$t),$t.currentTimeline.applyStylesToKeyframe(),nt=Math.max(nt,$t.currentTimeline.currentTime)}),T.currentQueryIndex=0,T.currentQueryTotal=0,T.transformIntoNewTimeline(nt),ht&&(T.currentTimeline.mergeTimelineCollectedStyles(ht),T.currentTimeline.snapshotCurrentStyles()),T.previousNode=E}visitStagger(E,T){const R=T.parentContext,Z=T.currentTimeline,Se=E.timings,nt=Math.abs(Se.duration),ot=nt*(T.currentQueryTotal-1);let ht=nt*T.currentQueryIndex;switch(Se.duration<0?"reverse":Se.easing){case"reverse":ht=ot-ht;break;case"full":ht=R.currentStaggerTime}const Pt=T.currentTimeline;ht&&Pt.delayNextStep(ht);const $t=Pt.currentTime;Wt(this,E.animation,T),T.previousNode=E,R.currentStaggerTime=Z.currentTime-$t+(Z.startTime-R.currentTimeline.startTime)}}const Li={};class dr{constructor(E,T,R,Z,Se,nt,ot,ht){this._driver=E,this.element=T,this.subInstructions=R,this._enterClassName=Z,this._leaveClassName=Se,this.errors=nt,this.timelines=ot,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Li,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=ht||new Di(this._driver,T,0),ot.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(E,T){if(!E)return;const R=E;let Z=this.options;null!=R.duration&&(Z.duration=Ee(R.duration)),null!=R.delay&&(Z.delay=Ee(R.delay));const Se=R.params;if(Se){let nt=Z.params;nt||(nt=this.options.params={}),Object.keys(Se).forEach(ot=>{(!T||!nt.hasOwnProperty(ot))&&(nt[ot]=qe(Se[ot],nt,this.errors))})}}_copyOptions(){const E={};if(this.options){const T=this.options.params;if(T){const R=E.params={};Object.keys(T).forEach(Z=>{R[Z]=T[Z]})}}return E}createSubContext(E=null,T,R){const Z=T||this.element,Se=new dr(this._driver,Z,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(Z,R||0));return Se.previousNode=this.previousNode,Se.currentAnimateTimings=this.currentAnimateTimings,Se.options=this._copyOptions(),Se.updateOptions(E),Se.currentQueryIndex=this.currentQueryIndex,Se.currentQueryTotal=this.currentQueryTotal,Se.parentContext=this,this.subContextCount++,Se}transformIntoNewTimeline(E){return this.previousNode=Li,this.currentTimeline=this.currentTimeline.fork(this.element,E),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(E,T,R){const Z={duration:null!=T?T:E.duration,delay:this.currentTimeline.currentTime+(null!=R?R:0)+E.delay,easing:""},Se=new Or(this._driver,E.element,E.keyframes,E.preStyleProps,E.postStyleProps,Z,E.stretchStartingKeyframe);return this.timelines.push(Se),Z}incrementTime(E){this.currentTimeline.forwardTime(this.currentTimeline.duration+E)}delayNextStep(E){E>0&&this.currentTimeline.delayNextStep(E)}invokeQuery(E,T,R,Z,Se,nt){let ot=[];if(Z&&ot.push(this.element),E.length>0){E=(E=E.replace(cr,"."+this._enterClassName)).replace(Xn,"."+this._leaveClassName);let wt=this._driver.query(this.element,E,1!=R);0!==R&&(wt=R<0?wt.slice(wt.length+R,wt.length):wt.slice(0,R)),ot.push(...wt)}return!Se&&0==ot.length&&nt.push(function J(Q){return new n.\u0275RuntimeError(3014,!1)}()),ot}}class Di{constructor(E,T,R,Z){this._driver=E,this.element=T,this.startTime=R,this._elementTimelineStylesLookup=Z,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(T),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(T,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(E){const T=1===this._keyframes.size&&this._pendingStyles.size;this.duration||T?(this.forwardTime(this.currentTime+E),T&&this.snapshotCurrentStyles()):this.startTime+=E}fork(E,T){return this.applyStylesToKeyframe(),new Di(this._driver,E,T||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(E){this.applyStylesToKeyframe(),this.duration=E,this._loadKeyframe()}_updateStyle(E,T){this._localTimelineStyles.set(E,T),this._globalTimelineStyles.set(E,T),this._styleSummary.set(E,{time:this.currentTime,value:T})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(E){E&&this._previousKeyframe.set("easing",E);for(let[T,R]of this._globalTimelineStyles)this._backFill.set(T,R||_.l3),this._currentKeyframe.set(T,_.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(E,T,R,Z){var Se;T&&this._previousKeyframe.set("easing",T);const nt=Z&&Z.params||{},ot=function Qi(Q,E){const T=new Map;let R;return Q.forEach(Z=>{if("*"===Z){R=R||E.keys();for(let Se of R)T.set(Se,_.l3)}else bt(Z,T)}),T}(E,this._globalTimelineStyles);for(let[ht,wt]of ot){const Pt=qe(wt,nt,R);this._pendingStyles.set(ht,Pt),this._localTimelineStyles.has(ht)||this._backFill.set(ht,null!==(Se=this._globalTimelineStyles.get(ht))&&void 0!==Se?Se:_.l3),this._updateStyle(ht,Pt)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((E,T)=>{this._currentKeyframe.set(T,E)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((E,T)=>{this._currentKeyframe.has(T)||this._currentKeyframe.set(T,E)}))}snapshotCurrentStyles(){for(let[E,T]of this._localTimelineStyles)this._pendingStyles.set(E,T),this._updateStyle(E,T)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const E=[];for(let T in this._currentKeyframe)E.push(T);return E}mergeTimelineCollectedStyles(E){E._styleSummary.forEach((T,R)=>{const Z=this._styleSummary.get(R);(!Z||T.time>Z.time)&&this._updateStyle(R,T.value)})}buildKeyframes(){this.applyStylesToKeyframe();const E=new Set,T=new Set,R=1===this._keyframes.size&&0===this.duration;let Z=[];this._keyframes.forEach((ot,ht)=>{const wt=bt(ot,new Map,this._backFill);wt.forEach((Pt,$t)=>{Pt===_.k1?E.add($t):Pt===_.l3&&T.add($t)}),R||wt.set("offset",ht/this.duration),Z.push(wt)});const Se=E.size?Ye(E.values()):[],nt=T.size?Ye(T.values()):[];if(R){const ot=Z[0],ht=new Map(ot);ot.set("offset",0),ht.set("offset",1),Z=[ot,ht]}return Wi(this.element,Z,Se,nt,this.duration,this.startTime,this.easing,!1)}}class Or extends Di{constructor(E,T,R,Z,Se,nt,ot=!1){super(E,T,nt.delay),this.keyframes=R,this.preStyleProps=Z,this.postStyleProps=Se,this._stretchStartingKeyframe=ot,this.timings={duration:nt.duration,delay:nt.delay,easing:nt.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let E=this.keyframes,{delay:T,duration:R,easing:Z}=this.timings;if(this._stretchStartingKeyframe&&T){const Se=[],nt=R+T,ot=T/nt,ht=bt(E[0]);ht.set("offset",0),Se.push(ht);const wt=bt(E[0]);wt.set("offset",Yi(ot)),Se.push(wt);const Pt=E.length-1;for(let $t=1;$t<=Pt;$t++){let an=bt(E[$t]);const un=an.get("offset");an.set("offset",Yi((T+un*R)/nt)),Se.push(an)}R=nt,T=0,Z="",E=Se}return Wi(this.element,E,this.preStyleProps,this.postStyleProps,R,T,Z,!0)}}function Yi(Q,E=3){const T=Math.pow(10,E-1);return Math.round(Q*T)/T}class Mi{}const Ei=new Set(["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"]);class Ar extends Mi{normalizePropertyName(E,T){return et(E)}normalizeStyleValue(E,T,R,Z){let Se="";const nt=R.toString().trim();if(Ei.has(T)&&0!==R&&"0"!==R)if("number"==typeof R)Se="px";else{const ot=R.match(/^[+-]?[\d\.]+([a-z]*)$/);ot&&0==ot[1].length&&Z.push(function b(Q,E){return new n.\u0275RuntimeError(3005,!1)}())}return nt+Se}}function Si(Q,E,T,R,Z,Se,nt,ot,ht,wt,Pt,$t,an){return{type:0,element:Q,triggerName:E,isRemovalTransition:Z,fromState:T,fromStyles:Se,toState:R,toStyles:nt,timelines:ot,queriedElements:ht,preStyleProps:wt,postStyleProps:Pt,totalTime:$t,errors:an}}const Zi={};class ni{constructor(E,T,R){this._triggerName=E,this.ast=T,this._stateStyles=R}match(E,T,R,Z){return function ji(Q,E,T,R,Z){return Q.some(Se=>Se(E,T,R,Z))}(this.ast.matchers,E,T,R,Z)}buildStyles(E,T,R){let Z=this._stateStyles.get("*");return void 0!==E&&(Z=this._stateStyles.get(null==E?void 0:E.toString())||Z),Z?Z.buildStyles(T,R):new Map}build(E,T,R,Z,Se,nt,ot,ht,wt,Pt){var $t;const an=[],un=this.ast.options&&this.ast.options.params||Zi,tn=this.buildStyles(R,ot&&ot.params||Zi,an),Mn=ht&&ht.params||Zi,wn=this.buildStyles(Z,Mn,an),Gn=new Set,ei=new Map,Kn=new Map,yr="void"===Z,_r={params:Ii(Mn,un),delay:null===($t=this.ast.options)||void 0===$t?void 0:$t.delay},Un=Pt?[]:ur(E,T,this.ast.animation,Se,nt,tn,wn,_r,wt,an);let si=0;if(Un.forEach(Ai=>{si=Math.max(Ai.duration+Ai.delay,si)}),an.length)return Si(T,this._triggerName,R,Z,yr,tn,wn,[],[],ei,Kn,si,an);Un.forEach(Ai=>{const ir=Ai.element,xr=Ie(ei,ir,new Set);Ai.preStyleProps.forEach(zr=>xr.add(zr));const to=Ie(Kn,ir,new Set);Ai.postStyleProps.forEach(zr=>to.add(zr)),ir!==T&&Gn.add(ir)});const go=Ye(Gn.values());return Si(T,this._triggerName,R,Z,yr,tn,wn,Un,go,ei,Kn,si)}}function Ii(Q,E){const T=j(E);for(const R in Q)Q.hasOwnProperty(R)&&null!=Q[R]&&(T[R]=Q[R]);return T}class hr{constructor(E,T,R){this.styles=E,this.defaultParams=T,this.normalizer=R}buildStyles(E,T){const R=new Map,Z=j(this.defaultParams);return Object.keys(E).forEach(Se=>{const nt=E[Se];null!==nt&&(Z[Se]=nt)}),this.styles.styles.forEach(Se=>{"string"!=typeof Se&&Se.forEach((nt,ot)=>{nt&&(nt=qe(nt,Z,T));const ht=this.normalizer.normalizePropertyName(ot,T);nt=this.normalizer.normalizeStyleValue(ot,ht,nt,T),R.set(ht,nt)})}),R}}class Bi{constructor(E,T,R){this.name=E,this.ast=T,this._normalizer=R,this.transitionFactories=[],this.states=new Map,T.states.forEach(Z=>{this.states.set(Z.name,new hr(Z.style,Z.options&&Z.options.params||{},R))}),Vi(this.states,"true","1"),Vi(this.states,"false","0"),T.transitions.forEach(Z=>{this.transitionFactories.push(new ni(E,Z,this.states))}),this.fallbackTransition=function hi(Q,E,T){return new ni(Q,{type:1,animation:{type:2,steps:[],options:null},matchers:[(nt,ot)=>!0],options:null,queryCount:0,depCount:0},E)}(E,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(E,T,R,Z){return this.transitionFactories.find(nt=>nt.match(E,T,R,Z))||null}matchStyles(E,T,R){return this.fallbackTransition.buildStyles(E,T,R)}}function Vi(Q,E,T){Q.has(E)?Q.has(T)||Q.set(T,Q.get(E)):Q.has(T)&&Q.set(E,Q.get(T))}const pr=new Ci;class mr{constructor(E,T,R){this.bodyNode=E,this._driver=T,this._normalizer=R,this._animations=new Map,this._playersById=new Map,this.players=[]}register(E,T){const R=[],Se=cn(this._driver,T,R,[]);if(R.length)throw function ie(Q){return new n.\u0275RuntimeError(3503,!1)}();this._animations.set(E,Se)}_buildPlayer(E,T,R){const Z=E.element,Se=yt(0,this._normalizer,0,E.keyframes,T,R);return this._driver.animate(Z,Se,E.duration,E.delay,E.easing,[],!0)}create(E,T,R={}){const Z=[],Se=this._animations.get(E);let nt;const ot=new Map;if(Se?(nt=ur(this._driver,T,Se,Ft,At,new Map,new Map,R,pr,Z),nt.forEach(Pt=>{const $t=Ie(ot,Pt.element,new Map);Pt.postStyleProps.forEach(an=>$t.set(an,null))})):(Z.push(function Ae(){return new n.\u0275RuntimeError(3300,!1)}()),nt=[]),Z.length)throw function oe(Q){return new n.\u0275RuntimeError(3504,!1)}();ot.forEach((Pt,$t)=>{Pt.forEach((an,un)=>{Pt.set(un,this._driver.computeStyle($t,un,_.l3))})});const wt=lt(nt.map(Pt=>{const $t=ot.get(Pt.element);return this._buildPlayer(Pt,new Map,$t)}));return this._playersById.set(E,wt),wt.onDestroy(()=>this.destroy(E)),this.players.push(wt),wt}destroy(E){const T=this._getPlayer(E);T.destroy(),this._playersById.delete(E);const R=this.players.indexOf(T);R>=0&&this.players.splice(R,1)}_getPlayer(E){const T=this._playersById.get(E);if(!T)throw function me(Q){return new n.\u0275RuntimeError(3301,!1)}();return T}listen(E,T,R,Z){const Se=He(T,"","","");return _t(this._getPlayer(E),R,Se,Z),()=>{}}command(E,T,R,Z){if("register"==R)return void this.register(E,Z[0]);if("create"==R)return void this.create(E,T,Z[0]||{});const Se=this._getPlayer(E);switch(R){case"play":Se.play();break;case"pause":Se.pause();break;case"reset":Se.reset();break;case"restart":Se.restart();break;case"finish":Se.finish();break;case"init":Se.init();break;case"setPosition":Se.setPosition(parseFloat(Z[0]));break;case"destroy":this.destroy(E)}}}const Wn="ng-animate-queued",pi="ng-animate-disabled",bn=[],vr={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},mi={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},In="__ng_removed";class Tn{constructor(E,T=""){this.namespaceId=T;const R=E&&E.hasOwnProperty("value");if(this.value=function k(Q){return null!=Q?Q:null}(R?E.value:E),R){const Se=j(E);delete Se.value,this.options=Se}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(E){const T=E.params;if(T){const R=this.options.params;Object.keys(T).forEach(Z=>{null==R[Z]&&(R[Z]=T[Z])})}}}const qn="void",er=new Tn(qn);class gi{constructor(E,T,R){this.id=E,this.hostElement=T,this._engine=R,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+E,pn(T,this._hostClassName)}listen(E,T,R,Z){if(!this._triggers.has(T))throw function V(Q,E){return new n.\u0275RuntimeError(3302,!1)}();if(null==R||0==R.length)throw function H(Q){return new n.\u0275RuntimeError(3303,!1)}();if(!function Xe(Q){return"start"==Q||"done"==Q}(R))throw function re(Q,E){return new n.\u0275RuntimeError(3400,!1)}();const Se=Ie(this._elementListeners,E,[]),nt={name:T,phase:R,callback:Z};Se.push(nt);const ot=Ie(this._engine.statesByElement,E,new Map);return ot.has(T)||(pn(E,Yt),pn(E,Yt+"-"+T),ot.set(T,er)),()=>{this._engine.afterFlush(()=>{const ht=Se.indexOf(nt);ht>=0&&Se.splice(ht,1),this._triggers.has(T)||ot.delete(T)})}}register(E,T){return!this._triggers.has(E)&&(this._triggers.set(E,T),!0)}_getTrigger(E){const T=this._triggers.get(E);if(!T)throw function B(Q){return new n.\u0275RuntimeError(3401,!1)}();return T}trigger(E,T,R,Z=!0){const Se=this._getTrigger(T),nt=new x(this.id,T,E);let ot=this._engine.statesByElement.get(E);ot||(pn(E,Yt),pn(E,Yt+"-"+T),this._engine.statesByElement.set(E,ot=new Map));let ht=ot.get(T);const wt=new Tn(R,this.id);if(!(R&&R.hasOwnProperty("value"))&&ht&&wt.absorbOptions(ht.options),ot.set(T,wt),ht||(ht=er),wt.value!==qn&&ht.value===wt.value){if(!function Dn(Q,E){const T=Object.keys(Q),R=Object.keys(E);if(T.length!=R.length)return!1;for(let Z=0;Z<T.length;Z++){const Se=T[Z];if(!E.hasOwnProperty(Se)||Q[Se]!==E[Se])return!1}return!0}(ht.params,wt.params)){const tn=[],Mn=Se.matchStyles(ht.value,ht.params,tn),wn=Se.matchStyles(wt.value,wt.params,tn);tn.length?this._engine.reportError(tn):this._engine.afterFlush(()=>{Dt(E,Mn),at(E,wn)})}return}const an=Ie(this._engine.playersByElement,E,[]);an.forEach(tn=>{tn.namespaceId==this.id&&tn.triggerName==T&&tn.queued&&tn.destroy()});let un=Se.matchTransition(ht.value,wt.value,E,wt.params),en=!1;if(!un){if(!Z)return;un=Se.fallbackTransition,en=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:E,triggerName:T,transition:un,fromState:ht,toState:wt,player:nt,isFallbackTransition:en}),en||(pn(E,Wn),nt.onStart(()=>{Cn(E,Wn)})),nt.onDone(()=>{let tn=this.players.indexOf(nt);tn>=0&&this.players.splice(tn,1);const Mn=this._engine.playersByElement.get(E);if(Mn){let wn=Mn.indexOf(nt);wn>=0&&Mn.splice(wn,1)}}),this.players.push(nt),an.push(nt),nt}deregister(E){this._triggers.delete(E),this._engine.statesByElement.forEach(T=>T.delete(E)),this._elementListeners.forEach((T,R)=>{this._elementListeners.set(R,T.filter(Z=>Z.name!=E))})}clearElementCache(E){this._engine.statesByElement.delete(E),this._elementListeners.delete(E);const T=this._engine.playersByElement.get(E);T&&(T.forEach(R=>R.destroy()),this._engine.playersByElement.delete(E))}_signalRemovalForInnerTriggers(E,T){const R=this._engine.driver.query(E,Nt,!0);R.forEach(Z=>{if(Z[In])return;const Se=this._engine.fetchNamespacesByElement(Z);Se.size?Se.forEach(nt=>nt.triggerLeaveAnimation(Z,T,!1,!0)):this.clearElementCache(Z)}),this._engine.afterFlushAnimationsDone(()=>R.forEach(Z=>this.clearElementCache(Z)))}triggerLeaveAnimation(E,T,R,Z){const Se=this._engine.statesByElement.get(E),nt=new Map;if(Se){const ot=[];if(Se.forEach((ht,wt)=>{if(nt.set(wt,ht.value),this._triggers.has(wt)){const Pt=this.trigger(E,wt,qn,Z);Pt&&ot.push(Pt)}}),ot.length)return this._engine.markElementAsRemoved(this.id,E,!0,T,nt),R&&lt(ot).onDone(()=>this._engine.processLeaveNode(E)),!0}return!1}prepareLeaveAnimationListeners(E){const T=this._elementListeners.get(E),R=this._engine.statesByElement.get(E);if(T&&R){const Z=new Set;T.forEach(Se=>{const nt=Se.name;if(Z.has(nt))return;Z.add(nt);const ht=this._triggers.get(nt).fallbackTransition,wt=R.get(nt)||er,Pt=new Tn(qn),$t=new x(this.id,nt,E);this._engine.totalQueuedPlayers++,this._queue.push({element:E,triggerName:nt,transition:ht,fromState:wt,toState:Pt,player:$t,isFallbackTransition:!0})})}}removeNode(E,T){const R=this._engine;if(E.childElementCount&&this._signalRemovalForInnerTriggers(E,T),this.triggerLeaveAnimation(E,T,!0))return;let Z=!1;if(R.totalAnimations){const Se=R.players.length?R.playersByQueriedElement.get(E):[];if(Se&&Se.length)Z=!0;else{let nt=E;for(;nt=nt.parentNode;)if(R.statesByElement.get(nt)){Z=!0;break}}}if(this.prepareLeaveAnimationListeners(E),Z)R.markElementAsRemoved(this.id,E,!1,T);else{const Se=E[In];(!Se||Se===vr)&&(R.afterFlush(()=>this.clearElementCache(E)),R.destroyInnerAnimations(E),R._onRemovalComplete(E,T))}}insertNode(E,T){pn(E,this._hostClassName)}drainQueuedTransitions(E){const T=[];return this._queue.forEach(R=>{const Z=R.player;if(Z.destroyed)return;const Se=R.element,nt=this._elementListeners.get(Se);nt&&nt.forEach(ot=>{if(ot.name==R.triggerName){const ht=He(Se,R.triggerName,R.fromState.value,R.toState.value);ht._data=E,_t(R.player,ot.phase,ht,ot.callback)}}),Z.markedForDestroy?this._engine.afterFlush(()=>{Z.destroy()}):T.push(R)}),this._queue=[],T.sort((R,Z)=>{const Se=R.transition.ast.depCount,nt=Z.transition.ast.depCount;return 0==Se||0==nt?Se-nt:this._engine.driver.containsElement(R.element,Z.element)?1:-1})}destroy(E){this.players.forEach(T=>T.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,E)}elementContainsData(E){let T=!1;return this._elementListeners.has(E)&&(T=!0),T=!!this._queue.find(R=>R.element===E)||T,T}}class Qn{constructor(E,T,R){this.bodyNode=E,this.driver=T,this._normalizer=R,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=(Z,Se)=>{}}_onRemovalComplete(E,T){this.onRemovalComplete(E,T)}get queuedPlayers(){const E=[];return this._namespaceList.forEach(T=>{T.players.forEach(R=>{R.queued&&E.push(R)})}),E}createNamespace(E,T){const R=new gi(E,T,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,T)?this._balanceNamespaceList(R,T):(this.newHostElements.set(T,R),this.collectEnterElement(T)),this._namespaceLookup[E]=R}_balanceNamespaceList(E,T){const R=this._namespaceList,Z=this.namespacesByHostElement;if(R.length-1>=0){let nt=!1,ot=this.driver.getParentElement(T);for(;ot;){const ht=Z.get(ot);if(ht){const wt=R.indexOf(ht);R.splice(wt+1,0,E),nt=!0;break}ot=this.driver.getParentElement(ot)}nt||R.unshift(E)}else R.push(E);return Z.set(T,E),E}register(E,T){let R=this._namespaceLookup[E];return R||(R=this.createNamespace(E,T)),R}registerTrigger(E,T,R){let Z=this._namespaceLookup[E];Z&&Z.register(T,R)&&this.totalAnimations++}destroy(E,T){if(!E)return;const R=this._fetchNamespace(E);this.afterFlush(()=>{this.namespacesByHostElement.delete(R.hostElement),delete this._namespaceLookup[E];const Z=this._namespaceList.indexOf(R);Z>=0&&this._namespaceList.splice(Z,1)}),this.afterFlushAnimationsDone(()=>R.destroy(T))}_fetchNamespace(E){return this._namespaceLookup[E]}fetchNamespacesByElement(E){const T=new Set,R=this.statesByElement.get(E);if(R)for(let Z of R.values())if(Z.namespaceId){const Se=this._fetchNamespace(Z.namespaceId);Se&&T.add(Se)}return T}trigger(E,T,R,Z){if(fe(T)){const Se=this._fetchNamespace(E);if(Se)return Se.trigger(T,R,Z),!0}return!1}insertNode(E,T,R,Z){if(!fe(T))return;const Se=T[In];if(Se&&Se.setForRemoval){Se.setForRemoval=!1,Se.setForMove=!0;const nt=this.collectedLeaveElements.indexOf(T);nt>=0&&this.collectedLeaveElements.splice(nt,1)}if(E){const nt=this._fetchNamespace(E);nt&&nt.insertNode(T,R)}Z&&this.collectEnterElement(T)}collectEnterElement(E){this.collectedEnterElements.push(E)}markElementAsDisabled(E,T){T?this.disabledNodes.has(E)||(this.disabledNodes.add(E),pn(E,pi)):this.disabledNodes.has(E)&&(this.disabledNodes.delete(E),Cn(E,pi))}removeNode(E,T,R,Z){if(fe(T)){const Se=E?this._fetchNamespace(E):null;if(Se?Se.removeNode(T,Z):this.markElementAsRemoved(E,T,!1,Z),R){const nt=this.namespacesByHostElement.get(T);nt&&nt.id!==E&&nt.removeNode(T,Z)}}else this._onRemovalComplete(T,Z)}markElementAsRemoved(E,T,R,Z,Se){this.collectedLeaveElements.push(T),T[In]={namespaceId:E,setForRemoval:Z,hasAnimation:R,removedBeforeQueried:!1,previousTriggersValues:Se}}listen(E,T,R,Z,Se){return fe(T)?this._fetchNamespace(E).listen(T,R,Z,Se):()=>{}}_buildInstruction(E,T,R,Z,Se){return E.transition.build(this.driver,E.element,E.fromState.value,E.toState.value,R,Z,E.fromState.options,E.toState.options,T,Se)}destroyInnerAnimations(E){let T=this.driver.query(E,Nt,!0);T.forEach(R=>this.destroyActiveAnimationsForElement(R)),0!=this.playersByQueriedElement.size&&(T=this.driver.query(E,Je,!0),T.forEach(R=>this.finishActiveQueriedAnimationOnElement(R)))}destroyActiveAnimationsForElement(E){const T=this.playersByElement.get(E);T&&T.forEach(R=>{R.queued?R.markedForDestroy=!0:R.destroy()})}finishActiveQueriedAnimationOnElement(E){const T=this.playersByQueriedElement.get(E);T&&T.forEach(R=>R.finish())}whenRenderingDone(){return new Promise(E=>{if(this.players.length)return lt(this.players).onDone(()=>E());E()})}processLeaveNode(E){var T;const R=E[In];if(R&&R.setForRemoval){if(E[In]=vr,R.namespaceId){this.destroyInnerAnimations(E);const Z=this._fetchNamespace(R.namespaceId);Z&&Z.clearElementCache(E)}this._onRemovalComplete(E,R.setForRemoval)}!(null===(T=E.classList)||void 0===T)&&T.contains(pi)&&this.markElementAsDisabled(E,!1),this.driver.query(E,".ng-animate-disabled",!0).forEach(Z=>{this.markElementAsDisabled(Z,!1)})}flush(E=-1){let T=[];if(this.newHostElements.size&&(this.newHostElements.forEach((R,Z)=>this._balanceNamespaceList(R,Z)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let R=0;R<this.collectedEnterElements.length;R++)pn(this.collectedEnterElements[R],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const R=[];try{T=this._flushAnimations(R,E)}finally{for(let Z=0;Z<R.length;Z++)R[Z]()}}else for(let R=0;R<this.collectedLeaveElements.length;R++)this.processLeaveNode(this.collectedLeaveElements[R]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(R=>R()),this._flushFns=[],this._whenQuietFns.length){const R=this._whenQuietFns;this._whenQuietFns=[],T.length?lt(T).onDone(()=>{R.forEach(Z=>Z())}):R.forEach(Z=>Z())}}reportError(E){throw function ue(Q){return new n.\u0275RuntimeError(3402,!1)}()}_flushAnimations(E,T){const R=new Ci,Z=[],Se=new Map,nt=[],ot=new Map,ht=new Map,wt=new Map,Pt=new Set;this.disabledNodes.forEach(zt=>{Pt.add(zt);const Gt=this.driver.query(zt,".ng-animate-queued",!0);for(let Zt=0;Zt<Gt.length;Zt++)Pt.add(Gt[Zt])});const $t=this.bodyNode,an=Array.from(this.statesByElement.keys()),un=Bt(an,this.collectedEnterElements),en=new Map;let tn=0;un.forEach((zt,Gt)=>{const Zt=Ft+tn++;en.set(Gt,Zt),zt.forEach(hn=>pn(hn,Zt))});const Mn=[],wn=new Set,Gn=new Set;for(let zt=0;zt<this.collectedLeaveElements.length;zt++){const Gt=this.collectedLeaveElements[zt],Zt=Gt[In];Zt&&Zt.setForRemoval&&(Mn.push(Gt),wn.add(Gt),Zt.hasAnimation?this.driver.query(Gt,".ng-star-inserted",!0).forEach(hn=>wn.add(hn)):Gn.add(Gt))}const ei=new Map,Kn=Bt(an,Array.from(wn));Kn.forEach((zt,Gt)=>{const Zt=At+tn++;ei.set(Gt,Zt),zt.forEach(hn=>pn(hn,Zt))}),E.push(()=>{un.forEach((zt,Gt)=>{const Zt=en.get(Gt);zt.forEach(hn=>Cn(hn,Zt))}),Kn.forEach((zt,Gt)=>{const Zt=ei.get(Gt);zt.forEach(hn=>Cn(hn,Zt))}),Mn.forEach(zt=>{this.processLeaveNode(zt)})});const yr=[],_r=[];for(let zt=this._namespaceList.length-1;zt>=0;zt--)this._namespaceList[zt].drainQueuedTransitions(T).forEach(Zt=>{const hn=Zt.player,An=Zt.element;if(yr.push(hn),this.collectedEnterElements.length){const Zn=An[In];if(Zn&&Zn.setForMove){if(Zn.previousTriggersValues&&Zn.previousTriggersValues.has(Zt.triggerName)){const Wr=Zn.previousTriggersValues.get(Zt.triggerName),yi=this.statesByElement.get(Zt.element);if(yi&&yi.has(Zt.triggerName)){const no=yi.get(Zt.triggerName);no.value=Wr,yi.set(Zt.triggerName,no)}}return void hn.destroy()}}const Pi=!$t||!this.driver.containsElement($t,An),ci=ei.get(An),vi=en.get(An),Bn=this._buildInstruction(Zt,R,vi,ci,Pi);if(Bn.errors&&Bn.errors.length)return void _r.push(Bn);if(Pi)return hn.onStart(()=>Dt(An,Bn.fromStyles)),hn.onDestroy(()=>at(An,Bn.toStyles)),void Z.push(hn);if(Zt.isFallbackTransition)return hn.onStart(()=>Dt(An,Bn.fromStyles)),hn.onDestroy(()=>at(An,Bn.toStyles)),void Z.push(hn);const Fr=[];Bn.timelines.forEach(Zn=>{Zn.stretchStartingKeyframe=!0,this.disabledNodes.has(Zn.element)||Fr.push(Zn)}),Bn.timelines=Fr,R.append(An,Bn.timelines),nt.push({instruction:Bn,player:hn,element:An}),Bn.queriedElements.forEach(Zn=>Ie(ot,Zn,[]).push(hn)),Bn.preStyleProps.forEach((Zn,Wr)=>{if(Zn.size){let yi=ht.get(Wr);yi||ht.set(Wr,yi=new Set),Zn.forEach((no,ns)=>yi.add(ns))}}),Bn.postStyleProps.forEach((Zn,Wr)=>{let yi=wt.get(Wr);yi||wt.set(Wr,yi=new Set),Zn.forEach((no,ns)=>yi.add(ns))})});if(_r.length){const zt=[];_r.forEach(Gt=>{zt.push(function Te(Q,E){return new n.\u0275RuntimeError(3505,!1)}())}),yr.forEach(Gt=>Gt.destroy()),this.reportError(zt)}const Un=new Map,si=new Map;nt.forEach(zt=>{const Gt=zt.element;R.has(Gt)&&(si.set(Gt,Gt),this._beforeAnimationBuild(zt.player.namespaceId,zt.instruction,Un))}),Z.forEach(zt=>{const Gt=zt.element;this._getPreviousPlayers(Gt,!1,zt.namespaceId,zt.triggerName,null).forEach(hn=>{Ie(Un,Gt,[]).push(hn),hn.destroy()})});const go=Mn.filter(zt=>Rn(zt,ht,wt)),Ai=new Map;gt(Ai,this.driver,Gn,wt,_.l3).forEach(zt=>{Rn(zt,ht,wt)&&go.push(zt)});const xr=new Map;un.forEach((zt,Gt)=>{gt(xr,this.driver,new Set(zt),ht,_.k1)}),go.forEach(zt=>{var Gt,Zt;const hn=Ai.get(zt),An=xr.get(zt);Ai.set(zt,new Map([...Array.from(null!==(Gt=null==hn?void 0:hn.entries())&&void 0!==Gt?Gt:[]),...Array.from(null!==(Zt=null==An?void 0:An.entries())&&void 0!==Zt?Zt:[])]))});const to=[],zr=[],za={};nt.forEach(zt=>{const{element:Gt,player:Zt,instruction:hn}=zt;if(R.has(Gt)){if(Pt.has(Gt))return Zt.onDestroy(()=>at(Gt,hn.toStyles)),Zt.disabled=!0,Zt.overrideTotalTime(hn.totalTime),void Z.push(Zt);let An=za;if(si.size>1){let ci=Gt;const vi=[];for(;ci=ci.parentNode;){const Bn=si.get(ci);if(Bn){An=Bn;break}vi.push(ci)}vi.forEach(Bn=>si.set(Bn,An))}const Pi=this._buildAnimation(Zt.namespaceId,hn,Un,Se,xr,Ai);if(Zt.setRealPlayer(Pi),An===za)to.push(Zt);else{const ci=this.playersByElement.get(An);ci&&ci.length&&(Zt.parentPlayer=lt(ci)),Z.push(Zt)}}else Dt(Gt,hn.fromStyles),Zt.onDestroy(()=>at(Gt,hn.toStyles)),zr.push(Zt),Pt.has(Gt)&&Z.push(Zt)}),zr.forEach(zt=>{const Gt=Se.get(zt.element);if(Gt&&Gt.length){const Zt=lt(Gt);zt.setRealPlayer(Zt)}}),Z.forEach(zt=>{zt.parentPlayer?zt.syncPlayerEvents(zt.parentPlayer):zt.destroy()});for(let zt=0;zt<Mn.length;zt++){const Gt=Mn[zt],Zt=Gt[In];if(Cn(Gt,At),Zt&&Zt.hasAnimation)continue;let hn=[];if(ot.size){let Pi=ot.get(Gt);Pi&&Pi.length&&hn.push(...Pi);let ci=this.driver.query(Gt,Je,!0);for(let vi=0;vi<ci.length;vi++){let Bn=ot.get(ci[vi]);Bn&&Bn.length&&hn.push(...Bn)}}const An=hn.filter(Pi=>!Pi.destroyed);An.length?Sn(this,Gt,An):this.processLeaveNode(Gt)}return Mn.length=0,to.forEach(zt=>{this.players.push(zt),zt.onDone(()=>{zt.destroy();const Gt=this.players.indexOf(zt);this.players.splice(Gt,1)}),zt.play()}),to}elementContainsData(E,T){let R=!1;const Z=T[In];return Z&&Z.setForRemoval&&(R=!0),this.playersByElement.has(T)&&(R=!0),this.playersByQueriedElement.has(T)&&(R=!0),this.statesByElement.has(T)&&(R=!0),this._fetchNamespace(E).elementContainsData(T)||R}afterFlush(E){this._flushFns.push(E)}afterFlushAnimationsDone(E){this._whenQuietFns.push(E)}_getPreviousPlayers(E,T,R,Z,Se){let nt=[];if(T){const ot=this.playersByQueriedElement.get(E);ot&&(nt=ot)}else{const ot=this.playersByElement.get(E);if(ot){const ht=!Se||Se==qn;ot.forEach(wt=>{wt.queued||!ht&&wt.triggerName!=Z||nt.push(wt)})}}return(R||Z)&&(nt=nt.filter(ot=>!(R&&R!=ot.namespaceId||Z&&Z!=ot.triggerName))),nt}_beforeAnimationBuild(E,T,R){const Se=T.element,nt=T.isRemovalTransition?void 0:E,ot=T.isRemovalTransition?void 0:T.triggerName;for(const ht of T.timelines){const wt=ht.element,Pt=wt!==Se,$t=Ie(R,wt,[]);this._getPreviousPlayers(wt,Pt,nt,ot,T.toState).forEach(un=>{const en=un.getRealPlayer();en.beforeDestroy&&en.beforeDestroy(),un.destroy(),$t.push(un)})}Dt(Se,T.fromStyles)}_buildAnimation(E,T,R,Z,Se,nt){const ot=T.triggerName,ht=T.element,wt=[],Pt=new Set,$t=new Set,an=T.timelines.map(en=>{const tn=en.element;Pt.add(tn);const Mn=tn[In];if(Mn&&Mn.removedBeforeQueried)return new _.ZN(en.duration,en.delay);const wn=tn!==ht,Gn=function fn(Q){const E=[];return $n(Q,E),E}((R.get(tn)||bn).map(Un=>Un.getRealPlayer())).filter(Un=>!!Un.element&&Un.element===tn),ei=Se.get(tn),Kn=nt.get(tn),yr=yt(0,this._normalizer,0,en.keyframes,ei,Kn),_r=this._buildPlayer(en,yr,Gn);if(en.subTimeline&&Z&&$t.add(tn),wn){const Un=new x(E,ot,tn);Un.setRealPlayer(_r),wt.push(Un)}return _r});wt.forEach(en=>{Ie(this.playersByQueriedElement,en.element,[]).push(en),en.onDone(()=>function ne(Q,E,T){let R=Q.get(E);if(R){if(R.length){const Z=R.indexOf(T);R.splice(Z,1)}0==R.length&&Q.delete(E)}return R}(this.playersByQueriedElement,en.element,en))}),Pt.forEach(en=>pn(en,rt));const un=lt(an);return un.onDestroy(()=>{Pt.forEach(en=>Cn(en,rt)),at(ht,T.toStyles)}),$t.forEach(en=>{Ie(Z,en,[]).push(un)}),un}_buildPlayer(E,T,R){return T.length>0?this.driver.animate(E.element,T,E.duration,E.delay,E.easing,R):new _.ZN(E.duration,E.delay)}}class x{constructor(E,T,R){this.namespaceId=E,this.triggerName=T,this.element=R,this._player=new _.ZN,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(E){this._containsRealPlayer||(this._player=E,this._queuedCallbacks.forEach((T,R)=>{T.forEach(Z=>_t(E,R,void 0,Z))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(E.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(E){this.totalTime=E}syncPlayerEvents(E){const T=this._player;T.triggerCallback&&E.onStart(()=>T.triggerCallback("start")),E.onDone(()=>this.finish()),E.onDestroy(()=>this.destroy())}_queueEvent(E,T){Ie(this._queuedCallbacks,E,[]).push(T)}onDone(E){this.queued&&this._queueEvent("done",E),this._player.onDone(E)}onStart(E){this.queued&&this._queueEvent("start",E),this._player.onStart(E)}onDestroy(E){this.queued&&this._queueEvent("destroy",E),this._player.onDestroy(E)}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(E){this.queued||this._player.setPosition(E)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(E){const T=this._player;T.triggerCallback&&T.triggerCallback(E)}}function fe(Q){return Q&&1===Q.nodeType}function Et(Q,E){const T=Q.style.display;return Q.style.display=null!=E?E:"none",T}function gt(Q,E,T,R,Z){const Se=[];T.forEach(ht=>Se.push(Et(ht)));const nt=[];R.forEach((ht,wt)=>{const Pt=new Map;ht.forEach($t=>{const an=E.computeStyle(wt,$t,Z);Pt.set($t,an),(!an||0==an.length)&&(wt[In]=mi,nt.push(wt))}),Q.set(wt,Pt)});let ot=0;return T.forEach(ht=>Et(ht,Se[ot++])),nt}function Bt(Q,E){const T=new Map;if(Q.forEach(ot=>T.set(ot,[])),0==E.length)return T;const Z=new Set(E),Se=new Map;function nt(ot){if(!ot)return 1;let ht=Se.get(ot);if(ht)return ht;const wt=ot.parentNode;return ht=T.has(wt)?wt:Z.has(wt)?1:nt(wt),Se.set(ot,ht),ht}return E.forEach(ot=>{const ht=nt(ot);1!==ht&&T.get(ht).push(ot)}),T}function pn(Q,E){var T;null===(T=Q.classList)||void 0===T||T.add(E)}function Cn(Q,E){var T;null===(T=Q.classList)||void 0===T||T.remove(E)}function Sn(Q,E,T){lt(T).onDone(()=>Q.processLeaveNode(E))}function $n(Q,E){for(let T=0;T<Q.length;T++){const R=Q[T];R instanceof _.ZE?$n(R.players,E):E.push(R)}}function Rn(Q,E,T){const R=T.get(Q);if(!R)return!1;let Z=E.get(Q);return Z?R.forEach(Se=>Z.add(Se)):E.set(Q,R),T.delete(Q),!0}class St{constructor(E,T,R){this.bodyNode=E,this._driver=T,this._normalizer=R,this._triggerCache={},this.onRemovalComplete=(Z,Se)=>{},this._transitionEngine=new Qn(E,T,R),this._timelineEngine=new mr(E,T,R),this._transitionEngine.onRemovalComplete=(Z,Se)=>this.onRemovalComplete(Z,Se)}registerTrigger(E,T,R,Z,Se){const nt=E+"-"+Z;let ot=this._triggerCache[nt];if(!ot){const ht=[],Pt=cn(this._driver,Se,ht,[]);if(ht.length)throw function be(Q,E){return new n.\u0275RuntimeError(3404,!1)}();ot=function Xi(Q,E,T){return new Bi(Q,E,T)}(Z,Pt,this._normalizer),this._triggerCache[nt]=ot}this._transitionEngine.registerTrigger(T,Z,ot)}register(E,T){this._transitionEngine.register(E,T)}destroy(E,T){this._transitionEngine.destroy(E,T)}onInsert(E,T,R,Z){this._transitionEngine.insertNode(E,T,R,Z)}onRemove(E,T,R,Z){this._transitionEngine.removeNode(E,T,Z||!1,R)}disableAnimations(E,T){this._transitionEngine.markElementAsDisabled(E,T)}process(E,T,R,Z){if("@"==R.charAt(0)){const[Se,nt]=je(R);this._timelineEngine.command(Se,T,nt,Z)}else this._transitionEngine.trigger(E,T,R,Z)}listen(E,T,R,Z,Se){if("@"==R.charAt(0)){const[nt,ot]=je(R);return this._timelineEngine.listen(nt,T,ot,Se)}return this._transitionEngine.listen(E,T,R,Z,Se)}flush(E=-1){this._transitionEngine.flush(E)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let $i=(()=>{class Q{constructor(T,R,Z){this._element=T,this._startStyles=R,this._endStyles=Z,this._state=0;let Se=Q.initialStylesByElement.get(T);Se||Q.initialStylesByElement.set(T,Se=new Map),this._initialStyles=Se}start(){this._state<1&&(this._startStyles&&at(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(at(this._element,this._initialStyles),this._endStyles&&(at(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Q.initialStylesByElement.delete(this._element),this._startStyles&&(Dt(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Dt(this._element,this._endStyles),this._endStyles=null),at(this._element,this._initialStyles),this._state=3)}}return Q.initialStylesByElement=new WeakMap,Q})();function ai(Q){let E=null;return Q.forEach((T,R)=>{(function xn(Q){return"display"===Q||"position"===Q})(R)&&(E=E||new Map,E.set(R,T))}),E}class tr{constructor(E,T,R,Z){this.element=E,this.keyframes=T,this.options=R,this._specialStyles=Z,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=R.duration,this._delay=R.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(E=>E()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const E=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,E,this.options),this._finalKeyframe=E.length?E[E.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(E){const T=[];return E.forEach(R=>{T.push(Object.fromEntries(R))}),T}_triggerWebAnimation(E,T,R){return E.animate(this._convertKeyframesToObject(T),R)}onStart(E){this._originalOnStartFns.push(E),this._onStartFns.push(E)}onDone(E){this._originalOnDoneFns.push(E),this._onDoneFns.push(E)}onDestroy(E){this._onDestroyFns.push(E)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(E=>E()),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,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_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(E=>E()),this._onDestroyFns=[])}setPosition(E){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=E*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const E=new Map;this.hasStarted()&&this._finalKeyframe.forEach((R,Z)=>{"offset"!==Z&&E.set(Z,this._finished?R:yn(this.element,Z))}),this.currentSnapshot=E}triggerCallback(E){const T="start"===E?this._onStartFns:this._onDoneFns;T.forEach(R=>R()),T.length=0}}class Hi{validateStyleProperty(E){return!0}validateAnimatableStyleProperty(E){return!0}matchesElement(E,T){return!1}containsElement(E,T){return dt(E,T)}getParentElement(E){return Ke(E)}query(E,T,R){return xe(E,T,R)}computeStyle(E,T,R){return window.getComputedStyle(E)[T]}animate(E,T,R,Z,Se,nt=[]){const ht={duration:R,delay:Z,fill:0==Z?"both":"forwards"};Se&&(ht.easing=Se);const wt=new Map,Pt=nt.filter(un=>un instanceof tr);(function It(Q,E){return 0===Q||0===E})(R,Z)&&Pt.forEach(un=>{un.currentSnapshot.forEach((en,tn)=>wt.set(tn,en))});let $t=function vt(Q){return Q.length?Q[0]instanceof Map?Q:Q.map(E=>Me(E)):[]}(T).map(un=>bt(un));$t=function Lt(Q,E,T){if(T.size&&E.length){let R=E[0],Z=[];if(T.forEach((Se,nt)=>{R.has(nt)||Z.push(nt),R.set(nt,Se)}),Z.length)for(let Se=1;Se<E.length;Se++){let nt=E[Se];Z.forEach(ot=>nt.set(ot,yn(Q,ot)))}}return E}(E,$t,wt);const an=function on(Q,E){let T=null,R=null;return Array.isArray(E)&&E.length?(T=ai(E[0]),E.length>1&&(R=ai(E[E.length-1]))):E instanceof Map&&(T=ai(E)),T||R?new $i(Q,T,R):null}(E,$t);return new tr(E,$t,ht,an)}}var F=a(9808);let A=(()=>{class Q extends _._j{constructor(T,R){super(),this._nextAnimationId=0,this._renderer=T.createRenderer(R.body,{id:"0",encapsulation:n.ViewEncapsulation.None,styles:[],data:{animation:[]}})}build(T){const R=this._nextAnimationId.toString();this._nextAnimationId++;const Z=Array.isArray(T)?(0,_.vP)(T):T;return Ct(this._renderer,null,R,"register",[Z]),new S(R,this._renderer)}}return Q.\u0275fac=function(T){return new(T||Q)(n.\u0275\u0275inject(n.RendererFactory2),n.\u0275\u0275inject(F.DOCUMENT))},Q.\u0275prov=n.\u0275\u0275defineInjectable({token:Q,factory:Q.\u0275fac}),Q})();class S extends _.LC{constructor(E,T){super(),this._id=E,this._renderer=T}create(E,T){return new le(this._id,E,T||{},this._renderer)}}class le{constructor(E,T,R,Z){this.id=E,this.element=T,this._renderer=Z,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",R)}_listen(E,T){return this._renderer.listen(this.element,`@@${this.id}:${E}`,T)}_command(E,...T){return Ct(this._renderer,this.element,this.id,E,T)}onDone(E){this._listen("done",E)}onStart(E){this._listen("start",E)}onDestroy(E){this._listen("destroy",E)}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(E){this._command("setPosition",E)}getPosition(){var E,T;return null!==(T=null===(E=this._renderer.engine.players[+this.id])||void 0===E?void 0:E.getPosition())&&void 0!==T?T:0}}function Ct(Q,E,T,R,Z){return Q.setProperty(E,`@@${T}:${R}`,Z)}const jn="@.disabled";let Fn=(()=>{class Q{constructor(T,R,Z){this.delegate=T,this.engine=R,this._zone=Z,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),R.onRemovalComplete=(Se,nt)=>{const ot=null==nt?void 0:nt.parentNode(Se);ot&&nt.removeChild(ot,Se)}}createRenderer(T,R){const Se=this.delegate.createRenderer(T,R);if(!(T&&R&&R.data&&R.data.animation)){let Pt=this._rendererCache.get(Se);return Pt||(Pt=new li("",Se,this.engine),this._rendererCache.set(Se,Pt)),Pt}const nt=R.id,ot=R.id+"-"+this._currentId;this._currentId++,this.engine.register(ot,T);const ht=Pt=>{Array.isArray(Pt)?Pt.forEach(ht):this.engine.registerTrigger(nt,ot,T,Pt.name,Pt)};return R.data.animation.forEach(ht),new Rr(this,ot,Se,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(T,R,Z){T>=0&&T<this._microtaskId?this._zone.run(()=>R(Z)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(Se=>{const[nt,ot]=Se;nt(ot)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([R,Z]))}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 Q.\u0275fac=function(T){return new(T||Q)(n.\u0275\u0275inject(n.RendererFactory2),n.\u0275\u0275inject(St),n.\u0275\u0275inject(n.NgZone))},Q.\u0275prov=n.\u0275\u0275defineInjectable({token:Q,factory:Q.\u0275fac}),Q})();class li{constructor(E,T,R){this.namespaceId=E,this.delegate=T,this.engine=R,this.destroyNode=this.delegate.destroyNode?Z=>T.destroyNode(Z):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(E,T){return this.delegate.createElement(E,T)}createComment(E){return this.delegate.createComment(E)}createText(E){return this.delegate.createText(E)}appendChild(E,T){this.delegate.appendChild(E,T),this.engine.onInsert(this.namespaceId,T,E,!1)}insertBefore(E,T,R,Z=!0){this.delegate.insertBefore(E,T,R),this.engine.onInsert(this.namespaceId,T,E,Z)}removeChild(E,T,R){this.engine.onRemove(this.namespaceId,T,this.delegate,R)}selectRootElement(E,T){return this.delegate.selectRootElement(E,T)}parentNode(E){return this.delegate.parentNode(E)}nextSibling(E){return this.delegate.nextSibling(E)}setAttribute(E,T,R,Z){this.delegate.setAttribute(E,T,R,Z)}removeAttribute(E,T,R){this.delegate.removeAttribute(E,T,R)}addClass(E,T){this.delegate.addClass(E,T)}removeClass(E,T){this.delegate.removeClass(E,T)}setStyle(E,T,R,Z){this.delegate.setStyle(E,T,R,Z)}removeStyle(E,T,R){this.delegate.removeStyle(E,T,R)}setProperty(E,T,R){"@"==T.charAt(0)&&T==jn?this.disableAnimations(E,!!R):this.delegate.setProperty(E,T,R)}setValue(E,T){this.delegate.setValue(E,T)}listen(E,T,R){return this.delegate.listen(E,T,R)}disableAnimations(E,T){this.engine.disableAnimations(E,T)}}class Rr extends li{constructor(E,T,R,Z){super(T,R,Z),this.factory=E,this.namespaceId=T}setProperty(E,T,R){"@"==T.charAt(0)?"."==T.charAt(1)&&T==jn?this.disableAnimations(E,R=void 0===R||!!R):this.engine.process(this.namespaceId,E,T.slice(1),R):this.delegate.setProperty(E,T,R)}listen(E,T,R){if("@"==T.charAt(0)){const Z=function Ur(Q){switch(Q){case"body":return document.body;case"document":return document;case"window":return window;default:return Q}}(E);let Se=T.slice(1),nt="";return"@"!=Se.charAt(0)&&([Se,nt]=function nr(Q){const E=Q.indexOf(".");return[Q.substring(0,E),Q.slice(E+1)]}(Se)),this.engine.listen(this.namespaceId,Z,Se,nt,ot=>{this.factory.scheduleListenerCallback(ot._data||-1,R,ot)})}return this.delegate.listen(E,T,R)}}let Ls=(()=>{class Q extends St{constructor(T,R,Z,Se){super(T.body,R,Z)}ngOnDestroy(){this.flush()}}return Q.\u0275fac=function(T){return new(T||Q)(n.\u0275\u0275inject(F.DOCUMENT),n.\u0275\u0275inject(de),n.\u0275\u0275inject(Mi),n.\u0275\u0275inject(n.ApplicationRef))},Q.\u0275prov=n.\u0275\u0275defineInjectable({token:Q,factory:Q.\u0275fac}),Q})();const Bs=[{provide:_._j,useClass:A},{provide:Mi,useFactory:function js(){return new Ar}},{provide:St,useClass:Ls},{provide:n.RendererFactory2,useFactory:function Ha(Q,E,T){return new Fn(Q,E,T)},deps:[h.\u0275DomRendererFactory2,St,n.NgZone]}],qr=[{provide:de,useFactory:()=>new Hi},{provide:n.ANIMATION_MODULE_TYPE,useValue:"BrowserAnimations"},...Bs],eo=[{provide:de,useClass:ye},{provide:n.ANIMATION_MODULE_TYPE,useValue:"NoopAnimations"},...Bs];let Vs=(()=>{class Q{static withConfig(T){return{ngModule:Q,providers:T.disableAnimations?eo:qr}}}return Q.\u0275fac=function(T){return new(T||Q)},Q.\u0275mod=n.\u0275\u0275defineNgModule({type:Q}),Q.\u0275inj=n.\u0275\u0275defineInjector({providers:qr,imports:[h.BrowserModule]}),Q})();function es(){return[...qr]}let Ua=(()=>{class Q{}return Q.\u0275fac=function(T){return new(T||Q)},Q.\u0275mod=n.\u0275\u0275defineNgModule({type:Q}),Q.\u0275inj=n.\u0275\u0275defineInjector({providers:eo,imports:[h.BrowserModule]}),Q})();function $s(){return[...eo]}},2313:(z,o,a)=>{"use strict";a.r(o),a.d(o,{BrowserModule:()=>ze,BrowserTransferStateModule:()=>j,By:()=>Me,DomSanitizer:()=>Ht,EVENT_MANAGER_PLUGINS:()=>C,EventManager:()=>M,HAMMER_GESTURE_CONFIG:()=>bt,HAMMER_LOADER:()=>X,HammerGestureConfig:()=>Oe,HammerModule:()=>Dt,Meta:()=>We,Title:()=>dt,TransferState:()=>se,VERSION:()=>vn,bootstrapApplication:()=>ut,disableDebugTools:()=>rt,enableDebugTools:()=>Nt,makeStateKey:()=>ve,platformBrowser:()=>Ve,provideProtractorTestingSupport:()=>He,\u0275BrowserDomAdapter:()=>u,\u0275BrowserGetTestability:()=>v,\u0275DomEventsPlugin:()=>ue,\u0275DomRendererFactory2:()=>Ae,\u0275DomSanitizerImpl:()=>Xt,\u0275DomSharedStylesHost:()=>N,\u0275HammerGesturesPlugin:()=>at,\u0275INTERNAL_BROWSER_PLATFORM_PROVIDERS:()=>Qe,\u0275KeyEventsPlugin:()=>lt,\u0275NAMESPACE_URIS:()=>U,\u0275SharedStylesHost:()=>P,\u0275TRANSITION_ID:()=>y,\u0275escapeHtml:()=>Je,\u0275flattenStyles:()=>be,\u0275getDOM:()=>n.\u0275getDOM,\u0275initDomAdapter:()=>Ie,\u0275shimContentAttribute:()=>Fe,\u0275shimHostAttribute:()=>it});var n=a(9808),h=a(5e3);class _ extends n.\u0275DomAdapter{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class u extends _{static makeCurrent(){(0,n.\u0275setRootDomAdapter)(new u)}onAndCancel(Ye,De,et){return Ye.addEventListener(De,et,!1),()=>{Ye.removeEventListener(De,et,!1)}}dispatchEvent(Ye,De){Ye.dispatchEvent(De)}remove(Ye){Ye.parentNode&&Ye.parentNode.removeChild(Ye)}createElement(Ye,De){return(De=De||this.getDefaultDocument()).createElement(Ye)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Ye){return Ye.nodeType===Node.ELEMENT_NODE}isShadowRoot(Ye){return Ye instanceof DocumentFragment}getGlobalEventTarget(Ye,De){return"window"===De?window:"document"===De?Ye:"body"===De?Ye.body:null}getBaseHref(Ye){const De=function c(){return r=r||document.querySelector("base"),r?r.getAttribute("href"):null}();return null==De?null:function p(qe){d=d||document.createElement("a"),d.setAttribute("href",qe);const Ye=d.pathname;return"/"===Ye.charAt(0)?Ye:`/${Ye}`}(De)}resetBaseElement(){r=null}getUserAgent(){return window.navigator.userAgent}getCookie(Ye){return(0,n.\u0275parseCookieValue)(document.cookie,Ye)}}let d,r=null;const y=new h.InjectionToken("TRANSITION_ID"),b=[{provide:h.APP_INITIALIZER,useFactory:function f(qe,Ye,De){return()=>{De.get(h.ApplicationInitStatus).donePromise.then(()=>{const et=(0,n.\u0275getDOM)(),ct=Ye.querySelectorAll(`style[ng-transition="${qe}"]`);for(let It=0;It<ct.length;It++)et.remove(ct[It])})}},deps:[y,n.DOCUMENT,h.Injector],multi:!0}];class v{addToWindow(Ye){h.\u0275global.getAngularTestability=(et,ct=!0)=>{const It=Ye.findTestabilityInTree(et,ct);if(null==It)throw new Error("Could not find testability for element.");return It},h.\u0275global.getAllAngularTestabilities=()=>Ye.getAllTestabilities(),h.\u0275global.getAllAngularRootElements=()=>Ye.getAllRootElements(),h.\u0275global.frameworkStabilizers||(h.\u0275global.frameworkStabilizers=[]),h.\u0275global.frameworkStabilizers.push(et=>{const ct=h.\u0275global.getAllAngularTestabilities();let It=ct.length,Lt=!1;const Wt=function(yn){Lt=Lt||yn,It--,0==It&&et(Lt)};ct.forEach(function(yn){yn.whenStable(Wt)})})}findTestabilityInTree(Ye,De,et){if(null==De)return null;const ct=Ye.getTestability(De);return null!=ct?ct:et?(0,n.\u0275getDOM)().isShadowRoot(De)?this.findTestabilityInTree(Ye,De.host,!0):this.findTestabilityInTree(Ye,De.parentElement,!0):null}}let m=(()=>{class qe{build(){return new XMLHttpRequest}}return qe.\u0275fac=function(De){return new(De||qe)},qe.\u0275prov=h.\u0275\u0275defineInjectable({token:qe,factory:qe.\u0275fac}),qe})();const C=new h.InjectionToken("EventManagerPlugins");let M=(()=>{class qe{constructor(De,et){this._zone=et,this._eventNameToPlugin=new Map,De.forEach(ct=>ct.manager=this),this._plugins=De.slice().reverse()}addEventListener(De,et,ct){return this._findPluginFor(et).addEventListener(De,et,ct)}addGlobalEventListener(De,et,ct){return this._findPluginFor(et).addGlobalEventListener(De,et,ct)}getZone(){return this._zone}_findPluginFor(De){const et=this._eventNameToPlugin.get(De);if(et)return et;const ct=this._plugins;for(let It=0;It<ct.length;It++){const Lt=ct[It];if(Lt.supports(De))return this._eventNameToPlugin.set(De,Lt),Lt}throw new Error(`No event manager plugin found for event ${De}`)}}return qe.\u0275fac=function(De){return new(De||qe)(h.\u0275\u0275inject(C),h.\u0275\u0275inject(h.NgZone))},qe.\u0275prov=h.\u0275\u0275defineInjectable({token:qe,factory:qe.\u0275fac}),qe})();class O{constructor(Ye){this._doc=Ye}addGlobalEventListener(Ye,De,et){const ct=(0,n.\u0275getDOM)().getGlobalEventTarget(this._doc,Ye);if(!ct)throw new Error(`Unsupported event target ${ct} for event ${De}`);return this.addEventListener(ct,De,et)}}let P=(()=>{class qe{constructor(){this._stylesSet=new Set}addStyles(De){const et=new Set;De.forEach(ct=>{this._stylesSet.has(ct)||(this._stylesSet.add(ct),et.add(ct))}),this.onStylesAdded(et)}onStylesAdded(De){}getAllStyles(){return Array.from(this._stylesSet)}}return qe.\u0275fac=function(De){return new(De||qe)},qe.\u0275prov=h.\u0275\u0275defineInjectable({token:qe,factory:qe.\u0275fac}),qe})(),N=(()=>{class qe extends P{constructor(De){super(),this._doc=De,this._hostNodes=new Map,this._hostNodes.set(De.head,[])}_addStylesToHost(De,et,ct){De.forEach(It=>{const Lt=this._doc.createElement("style");Lt.textContent=It,ct.push(et.appendChild(Lt))})}addHost(De){const et=[];this._addStylesToHost(this._stylesSet,De,et),this._hostNodes.set(De,et)}removeHost(De){const et=this._hostNodes.get(De);et&&et.forEach(Y),this._hostNodes.delete(De)}onStylesAdded(De){this._hostNodes.forEach((et,ct)=>{this._addStylesToHost(De,ct,et)})}ngOnDestroy(){this._hostNodes.forEach(De=>De.forEach(Y))}}return qe.\u0275fac=function(De){return new(De||qe)(h.\u0275\u0275inject(n.DOCUMENT))},qe.\u0275prov=h.\u0275\u0275defineInjectable({token:qe,factory:qe.\u0275fac}),qe})();function Y(qe){(0,n.\u0275getDOM)().remove(qe)}const U={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},G=/%COMP%/g,J="%COMP%",te=`_nghost-${J}`,he=`_ngcontent-${J}`;function Fe(qe){return he.replace(G,qe)}function it(qe){return te.replace(G,qe)}function be(qe,Ye,De){for(let et=0;et<Ye.length;et++){let ct=Ye[et];Array.isArray(ct)?be(qe,ct,De):(ct=ct.replace(G,qe),De.push(ct))}return De}function ke(qe){return Ye=>{if("__ngUnwrap__"===Ye)return qe;!1===qe(Ye)&&(Ye.preventDefault(),Ye.returnValue=!1)}}let Ae=(()=>{class qe{constructor(De,et,ct){this.eventManager=De,this.sharedStylesHost=et,this.appId=ct,this.rendererByCompId=new Map,this.defaultRenderer=new oe(De)}createRenderer(De,et){if(!De||!et)return this.defaultRenderer;switch(et.encapsulation){case h.ViewEncapsulation.Emulated:{let ct=this.rendererByCompId.get(et.id);return ct||(ct=new re(this.eventManager,this.sharedStylesHost,et,this.appId),this.rendererByCompId.set(et.id,ct)),ct.applyToHost(De),ct}case 1:case h.ViewEncapsulation.ShadowDom:return new B(this.eventManager,this.sharedStylesHost,De,et);default:if(!this.rendererByCompId.has(et.id)){const ct=be(et.id,et.styles,[]);this.sharedStylesHost.addStyles(ct),this.rendererByCompId.set(et.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return qe.\u0275fac=function(De){return new(De||qe)(h.\u0275\u0275inject(M),h.\u0275\u0275inject(N),h.\u0275\u0275inject(h.APP_ID))},qe.\u0275prov=h.\u0275\u0275defineInjectable({token:qe,factory:qe.\u0275fac}),qe})();class oe{constructor(Ye){this.eventManager=Ye,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(Ye,De){return De?document.createElementNS(U[De]||De,Ye):document.createElement(Ye)}createComment(Ye){return document.createComment(Ye)}createText(Ye){return document.createTextNode(Ye)}appendChild(Ye,De){(H(Ye)?Ye.content:Ye).appendChild(De)}insertBefore(Ye,De,et){Ye&&(H(Ye)?Ye.content:Ye).insertBefore(De,et)}removeChild(Ye,De){Ye&&Ye.removeChild(De)}selectRootElement(Ye,De){let et="string"==typeof Ye?document.querySelector(Ye):Ye;if(!et)throw new Error(`The selector "${Ye}" did not match any elements`);return De||(et.textContent=""),et}parentNode(Ye){return Ye.parentNode}nextSibling(Ye){return Ye.nextSibling}setAttribute(Ye,De,et,ct){if(ct){De=ct+":"+De;const It=U[ct];It?Ye.setAttributeNS(It,De,et):Ye.setAttribute(De,et)}else Ye.setAttribute(De,et)}removeAttribute(Ye,De,et){if(et){const ct=U[et];ct?Ye.removeAttributeNS(ct,De):Ye.removeAttribute(`${et}:${De}`)}else Ye.removeAttribute(De)}addClass(Ye,De){Ye.classList.add(De)}removeClass(Ye,De){Ye.classList.remove(De)}setStyle(Ye,De,et,ct){ct&(h.RendererStyleFlags2.DashCase|h.RendererStyleFlags2.Important)?Ye.style.setProperty(De,et,ct&h.RendererStyleFlags2.Important?"important":""):Ye.style[De]=et}removeStyle(Ye,De,et){et&h.RendererStyleFlags2.DashCase?Ye.style.removeProperty(De):Ye.style[De]=""}setProperty(Ye,De,et){Ye[De]=et}setValue(Ye,De){Ye.nodeValue=De}listen(Ye,De,et){return"string"==typeof Ye?this.eventManager.addGlobalEventListener(Ye,De,ke(et)):this.eventManager.addEventListener(Ye,De,ke(et))}}function H(qe){return"TEMPLATE"===qe.tagName&&void 0!==qe.content}class re extends oe{constructor(Ye,De,et,ct){super(Ye),this.component=et;const It=be(ct+"-"+et.id,et.styles,[]);De.addStyles(It),this.contentAttr=Fe(ct+"-"+et.id),this.hostAttr=it(ct+"-"+et.id)}applyToHost(Ye){super.setAttribute(Ye,this.hostAttr,"")}createElement(Ye,De){const et=super.createElement(Ye,De);return super.setAttribute(et,this.contentAttr,""),et}}class B extends oe{constructor(Ye,De,et,ct){super(Ye),this.sharedStylesHost=De,this.hostEl=et,this.shadowRoot=et.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const It=be(ct.id,ct.styles,[]);for(let Lt=0;Lt<It.length;Lt++){const Wt=document.createElement("style");Wt.textContent=It[Lt],this.shadowRoot.appendChild(Wt)}}nodeOrShadowRoot(Ye){return Ye===this.hostEl?this.shadowRoot:Ye}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(Ye,De){return super.appendChild(this.nodeOrShadowRoot(Ye),De)}insertBefore(Ye,De,et){return super.insertBefore(this.nodeOrShadowRoot(Ye),De,et)}removeChild(Ye,De){return super.removeChild(this.nodeOrShadowRoot(Ye),De)}parentNode(Ye){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(Ye)))}}let ue=(()=>{class qe extends O{constructor(De){super(De)}supports(De){return!0}addEventListener(De,et,ct){return De.addEventListener(et,ct,!1),()=>this.removeEventListener(De,et,ct)}removeEventListener(De,et,ct){return De.removeEventListener(et,ct)}}return qe.\u0275fac=function(De){return new(De||qe)(h.\u0275\u0275inject(n.DOCUMENT))},qe.\u0275prov=h.\u0275\u0275defineInjectable({token:qe,factory:qe.\u0275fac}),qe})();const ge=["alt","control","meta","shift"],Pe={"\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"},Ce={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"},$e={alt:qe=>qe.altKey,control:qe=>qe.ctrlKey,meta:qe=>qe.metaKey,shift:qe=>qe.shiftKey};let lt=(()=>{class qe extends O{constructor(De){super(De)}supports(De){return null!=qe.parseEventName(De)}addEventListener(De,et,ct){const It=qe.parseEventName(et),Lt=qe.eventCallback(It.fullKey,ct,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,n.\u0275getDOM)().onAndCancel(De,It.domEventName,Lt))}static parseEventName(De){const et=De.toLowerCase().split("."),ct=et.shift();if(0===et.length||"keydown"!==ct&&"keyup"!==ct)return null;const It=qe._normalizeKey(et.pop());let Lt="";if(ge.forEach(yn=>{const gn=et.indexOf(yn);gn>-1&&(et.splice(gn,1),Lt+=yn+".")}),Lt+=It,0!=et.length||0===It.length)return null;const Wt={};return Wt.domEventName=ct,Wt.fullKey=Lt,Wt}static getEventFullKey(De){let et="",ct=function yt(qe){let Ye=qe.key;if(null==Ye){if(Ye=qe.keyIdentifier,null==Ye)return"Unidentified";Ye.startsWith("U+")&&(Ye=String.fromCharCode(parseInt(Ye.substring(2),16)),3===qe.location&&Ce.hasOwnProperty(Ye)&&(Ye=Ce[Ye]))}return Pe[Ye]||Ye}(De);return ct=ct.toLowerCase()," "===ct?ct="space":"."===ct&&(ct="dot"),ge.forEach(It=>{It!=ct&&(0,$e[It])(De)&&(et+=It+".")}),et+=ct,et}static eventCallback(De,et,ct){return It=>{qe.getEventFullKey(It)===De&&ct.runGuarded(()=>et(It))}}static _normalizeKey(De){return"esc"===De?"escape":De}}return qe.\u0275fac=function(De){return new(De||qe)(h.\u0275\u0275inject(n.DOCUMENT))},qe.\u0275prov=h.\u0275\u0275defineInjectable({token:qe,factory:qe.\u0275fac}),qe})();function ut(qe,Ye){var De;return(0,h.\u0275internalBootstrapApplication)({rootComponent:qe,appProviders:[...we,...null!==(De=null==Ye?void 0:Ye.providers)&&void 0!==De?De:[]],platformProviders:Qe})}function He(){return[...K]}function Ie(){u.makeCurrent()}const Qe=[{provide:h.PLATFORM_ID,useValue:n.\u0275PLATFORM_BROWSER_ID},{provide:h.PLATFORM_INITIALIZER,useValue:Ie,multi:!0},{provide:n.DOCUMENT,useFactory:function pe(){return(0,h.\u0275setDocument)(document),document},deps:[]}],Ve=(0,h.createPlatformFactory)(h.platformCore,"browser",Qe),Ke=new h.InjectionToken(""),K=[{provide:h.\u0275TESTABILITY_GETTER,useClass:v,deps:[]},{provide:h.\u0275TESTABILITY,useClass:h.Testability,deps:[h.NgZone,h.TestabilityRegistry,h.\u0275TESTABILITY_GETTER]},{provide:h.Testability,useClass:h.Testability,deps:[h.NgZone,h.TestabilityRegistry,h.\u0275TESTABILITY_GETTER]}],we=[{provide:h.\u0275INJECTOR_SCOPE,useValue:"root"},{provide:h.ErrorHandler,useFactory:function je(){return new h.ErrorHandler},deps:[]},{provide:C,useClass:ue,multi:!0,deps:[n.DOCUMENT,h.NgZone,h.PLATFORM_ID]},{provide:C,useClass:lt,multi:!0,deps:[n.DOCUMENT]},{provide:Ae,useClass:Ae,deps:[M,N,h.APP_ID]},{provide:h.RendererFactory2,useExisting:Ae},{provide:P,useExisting:N},{provide:N,useClass:N,deps:[n.DOCUMENT]},{provide:M,useClass:M,deps:[C,h.NgZone]},{provide:n.XhrFactory,useClass:m,deps:[]},[]];let ze=(()=>{class qe{constructor(De){}static withServerTransition(De){return{ngModule:qe,providers:[{provide:h.APP_ID,useValue:De.appId},{provide:y,useExisting:h.APP_ID},b]}}}return qe.\u0275fac=function(De){return new(De||qe)(h.\u0275\u0275inject(Ke,12))},qe.\u0275mod=h.\u0275\u0275defineNgModule({type:qe}),qe.\u0275inj=h.\u0275\u0275defineInjector({providers:[...we,...K],imports:[n.CommonModule,h.ApplicationModule]}),qe})(),We=(()=>{class qe{constructor(De){this._doc=De,this._dom=(0,n.\u0275getDOM)()}addTag(De,et=!1){return De?this._getOrCreateElement(De,et):null}addTags(De,et=!1){return De?De.reduce((ct,It)=>(It&&ct.push(this._getOrCreateElement(It,et)),ct),[]):[]}getTag(De){return De&&this._doc.querySelector(`meta[${De}]`)||null}getTags(De){if(!De)return[];const et=this._doc.querySelectorAll(`meta[${De}]`);return et?[].slice.call(et):[]}updateTag(De,et){if(!De)return null;et=et||this._parseSelector(De);const ct=this.getTag(et);return ct?this._setMetaElementAttributes(De,ct):this._getOrCreateElement(De,!0)}removeTag(De){this.removeTagElement(this.getTag(De))}removeTagElement(De){De&&this._dom.remove(De)}_getOrCreateElement(De,et=!1){if(!et){const Lt=this._parseSelector(De),Wt=this.getTags(Lt).filter(yn=>this._containsAttributes(De,yn))[0];if(void 0!==Wt)return Wt}const ct=this._dom.createElement("meta");return this._setMetaElementAttributes(De,ct),this._doc.getElementsByTagName("head")[0].appendChild(ct),ct}_setMetaElementAttributes(De,et){return Object.keys(De).forEach(ct=>et.setAttribute(this._getMetaKeyMap(ct),De[ct])),et}_parseSelector(De){const et=De.name?"name":"property";return`${et}="${De[et]}"`}_containsAttributes(De,et){return Object.keys(De).every(ct=>et.getAttribute(this._getMetaKeyMap(ct))===De[ct])}_getMetaKeyMap(De){return _e[De]||De}}return qe.\u0275fac=function(De){return new(De||qe)(h.\u0275\u0275inject(n.DOCUMENT))},qe.\u0275prov=h.\u0275\u0275defineInjectable({token:qe,factory:function(De){let et=null;return et=De?new De:function Be(){return new We((0,h.\u0275\u0275inject)(n.DOCUMENT))}(),et},providedIn:"root"}),qe})();const _e={httpEquiv:"http-equiv"};let dt=(()=>{class qe{constructor(De){this._doc=De}getTitle(){return this._doc.title}setTitle(De){this._doc.title=De||""}}return qe.\u0275fac=function(De){return new(De||qe)(h.\u0275\u0275inject(n.DOCUMENT))},qe.\u0275prov=h.\u0275\u0275defineInjectable({token:qe,factory:function(De){let et=null;return et=De?new De:function Ue(){return new dt((0,h.\u0275\u0275inject)(n.DOCUMENT))}(),et},providedIn:"root"}),qe})();function Ne(qe,Ye){"undefined"!=typeof COMPILED&&COMPILED||((h.\u0275global.ng=h.\u0275global.ng||{})[qe]=Ye)}const tt="undefined"!=typeof window&&window||{};class mt{constructor(Ye,De){this.msPerTick=Ye,this.numTicks=De}}class Ft{constructor(Ye){this.appRef=Ye.injector.get(h.ApplicationRef)}timeChangeDetection(Ye){const De=Ye&&Ye.record,et="Change Detection",ct=null!=tt.console.profile;De&&ct&&tt.console.profile(et);const It=At();let Lt=0;for(;Lt<5||At()-It<500;)this.appRef.tick(),Lt++;const Wt=At();De&&ct&&tt.console.profileEnd(et);const yn=(Wt-It)/Lt;return tt.console.log(`ran ${Lt} change detection cycles`),tt.console.log(`${yn.toFixed(2)} ms per check`),new mt(yn,Lt)}}function At(){return tt.performance&&tt.performance.now?tt.performance.now():(new Date).getTime()}const Yt="profiler";function Nt(qe){return Ne(Yt,new Ft(qe)),qe}function rt(){Ne(Yt,null)}function Je(qe){const Ye={"&":"&a;",'"':"&q;","'":"&s;","<":"&l;",">":"&g;"};return qe.replace(/[&"'<>]/g,De=>Ye[De])}function ve(qe){return qe}let se=(()=>{class qe{constructor(){this.store={},this.onSerializeCallbacks={}}get(De,et){return void 0!==this.store[De]?this.store[De]:et}set(De,et){this.store[De]=et}remove(De){delete this.store[De]}hasKey(De){return this.store.hasOwnProperty(De)}onSerialize(De,et){this.onSerializeCallbacks[De]=et}toJson(){for(const De in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(De))try{this.store[De]=this.onSerializeCallbacks[De]()}catch(et){console.warn("Exception in onSerialize callback: ",et)}return JSON.stringify(this.store)}}return qe.\u0275fac=function(De){return new(De||qe)},qe.\u0275prov=h.\u0275\u0275defineInjectable({token:qe,factory:function(){return(()=>{const Ye=(0,h.inject)(n.DOCUMENT),De=(0,h.inject)(h.APP_ID),et=new qe;return et.store=function ae(qe,Ye){const De=qe.getElementById(Ye+"-state");let et={};if(De&&De.textContent)try{et=JSON.parse(function Ee(qe){const Ye={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"};return qe.replace(/&[^;]+;/g,De=>Ye[De])}(De.textContent))}catch(ct){console.warn("Exception while restoring TransferState for app "+Ye,ct)}return et}(Ye,De),et})()},providedIn:"root"}),qe})(),j=(()=>{class qe{}return qe.\u0275fac=function(De){return new(De||qe)},qe.\u0275mod=h.\u0275\u0275defineNgModule({type:qe}),qe.\u0275inj=h.\u0275\u0275defineInjector({}),qe})();class Me{static all(){return()=>!0}static css(Ye){return De=>null!=De.nativeElement&&function vt(qe,Ye){return!!(0,n.\u0275getDOM)().isElementNode(qe)&&(qe.matches&&qe.matches(Ye)||qe.msMatchesSelector&&qe.msMatchesSelector(Ye)||qe.webkitMatchesSelector&&qe.webkitMatchesSelector(Ye))}(De.nativeElement,Ye)}static directive(Ye){return De=>-1!==De.providerTokens.indexOf(Ye)}}const Ge={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},bt=new h.InjectionToken("HammerGestureConfig"),X=new h.InjectionToken("HammerLoader");let Oe=(()=>{class qe{constructor(){this.events=[],this.overrides={}}buildHammer(De){const et=new Hammer(De,this.options);et.get("pinch").set({enable:!0}),et.get("rotate").set({enable:!0});for(const ct in this.overrides)et.get(ct).set(this.overrides[ct]);return et}}return qe.\u0275fac=function(De){return new(De||qe)},qe.\u0275prov=h.\u0275\u0275defineInjectable({token:qe,factory:qe.\u0275fac}),qe})(),at=(()=>{class qe extends O{constructor(De,et,ct,It){super(De),this._config=et,this.console=ct,this.loader=It,this._loaderPromise=null}supports(De){return!(!Ge.hasOwnProperty(De.toLowerCase())&&!this.isCustomEvent(De)||!window.Hammer&&!this.loader)}addEventListener(De,et,ct){const It=this.manager.getZone();if(et=et.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||It.runOutsideAngular(()=>this.loader());let Lt=!1,Wt=()=>{Lt=!0};return It.runOutsideAngular(()=>this._loaderPromise.then(()=>{window.Hammer?Lt||(Wt=this.addEventListener(De,et,ct)):Wt=()=>{}}).catch(()=>{Wt=()=>{}})),()=>{Wt()}}return It.runOutsideAngular(()=>{const Lt=this._config.buildHammer(De),Wt=function(yn){It.runGuarded(function(){ct(yn)})};return Lt.on(et,Wt),()=>{Lt.off(et,Wt),"function"==typeof Lt.destroy&&Lt.destroy()}})}isCustomEvent(De){return this._config.events.indexOf(De)>-1}}return qe.\u0275fac=function(De){return new(De||qe)(h.\u0275\u0275inject(n.DOCUMENT),h.\u0275\u0275inject(bt),h.\u0275\u0275inject(h.\u0275Console),h.\u0275\u0275inject(X,8))},qe.\u0275prov=h.\u0275\u0275defineInjectable({token:qe,factory:qe.\u0275fac}),qe})(),Dt=(()=>{class qe{}return qe.\u0275fac=function(De){return new(De||qe)},qe.\u0275mod=h.\u0275\u0275defineNgModule({type:qe}),qe.\u0275inj=h.\u0275\u0275defineInjector({providers:[{provide:C,useClass:at,multi:!0,deps:[n.DOCUMENT,bt,h.\u0275Console,[new h.Optional,X]]},{provide:bt,useClass:Oe,deps:[]}]}),qe})(),Ht=(()=>{class qe{}return qe.\u0275fac=function(De){return new(De||qe)},qe.\u0275prov=h.\u0275\u0275defineInjectable({token:qe,factory:function(De){let et=null;return et=De?new(De||qe):h.\u0275\u0275inject(Xt),et},providedIn:"root"}),qe})(),Xt=(()=>{class qe extends Ht{constructor(De){super(),this._doc=De}sanitize(De,et){if(null==et)return null;switch(De){case h.SecurityContext.NONE:return et;case h.SecurityContext.HTML:return(0,h.\u0275allowSanitizationBypassAndThrow)(et,"HTML")?(0,h.\u0275unwrapSafeValue)(et):(0,h.\u0275_sanitizeHtml)(this._doc,String(et)).toString();case h.SecurityContext.STYLE:return(0,h.\u0275allowSanitizationBypassAndThrow)(et,"Style")?(0,h.\u0275unwrapSafeValue)(et):et;case h.SecurityContext.SCRIPT:if((0,h.\u0275allowSanitizationBypassAndThrow)(et,"Script"))return(0,h.\u0275unwrapSafeValue)(et);throw new Error("unsafe value used in a script context");case h.SecurityContext.URL:return(0,h.\u0275allowSanitizationBypassAndThrow)(et,"URL")?(0,h.\u0275unwrapSafeValue)(et):(0,h.\u0275_sanitizeUrl)(String(et));case h.SecurityContext.RESOURCE_URL:if((0,h.\u0275allowSanitizationBypassAndThrow)(et,"ResourceURL"))return(0,h.\u0275unwrapSafeValue)(et);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${De} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(De){return(0,h.\u0275bypassSanitizationTrustHtml)(De)}bypassSecurityTrustStyle(De){return(0,h.\u0275bypassSanitizationTrustStyle)(De)}bypassSecurityTrustScript(De){return(0,h.\u0275bypassSanitizationTrustScript)(De)}bypassSecurityTrustUrl(De){return(0,h.\u0275bypassSanitizationTrustUrl)(De)}bypassSecurityTrustResourceUrl(De){return(0,h.\u0275bypassSanitizationTrustResourceUrl)(De)}}return qe.\u0275fac=function(De){return new(De||qe)(h.\u0275\u0275inject(n.DOCUMENT))},qe.\u0275prov=h.\u0275\u0275defineInjectable({token:qe,factory:function(De){let et=null;return et=De?new De:function rn(qe){return new Xt(qe.get(n.DOCUMENT))}(h.\u0275\u0275inject(h.Injector)),et},providedIn:"root"}),qe})();const vn=new h.Version("14.1.3")},107:(z,o,a)=>{"use strict";a.r(o),a.d(o,{MONACO_PATH:()=>v,MonacoDiffEditorComponent:()=>O,MonacoEditorComponent:()=>M,MonacoEditorLoaderDirective:()=>C,MonacoEditorLoaderService:()=>m,MonacoEditorModule:()=>P});var n=a(5e3),h=a(2722),_=a(9300),u=a(5698),r=a(1135),c=a(7579),d=a(655),p=a(3075);const y=["editor"],f=["diffEditor"],v="MONACO_PATH";let m=(()=>{class N{constructor(U,G){this.ngZone=U,this.monacoPathConfig=G,this.isMonacoLoaded$=new r.X(!1),this._monacoPath="assets/monaco-editor/min/vs",window.monacoEditorAlreadyInitialized?U.run(()=>this.isMonacoLoaded$.next(!0)):(window.monacoEditorAlreadyInitialized=!0,this.monacoPathConfig&&(this.monacoPath=this.monacoPathConfig),this.loadMonaco())}set monacoPath(U){U&&(this._monacoPath=U)}loadMonaco(){const U=()=>{let te=this._monacoPath;window.amdRequire=window.require;const he=!!this.nodeRequire,Fe=te.includes("http");he&&(window.require=this.nodeRequire,Fe||(te=window.require("path").resolve(window.__dirname,this._monacoPath))),window.amdRequire.config({paths:{vs:te}}),window.amdRequire(["vs/editor/editor.main"],()=>{this.ngZone.run(()=>this.isMonacoLoaded$.next(!0))},it=>console.error("Error loading monaco-editor: ",it))};if(window.amdRequire)return U();window.require&&(this.addElectronFixScripts(),this.nodeRequire=window.require);const J=document.createElement("script");J.type="text/javascript",J.src=`${this._monacoPath}/loader.js`,J.addEventListener("load",U),document.body.appendChild(J)}addElectronFixScripts(){const U=document.createElement("script"),G=document.createTextNode("self.module = undefined;"),$=document.createTextNode("self.process.browser = true;");U.appendChild(G),U.appendChild($),document.body.appendChild(U)}}return N.\u0275fac=function(U){return new(U||N)(n.\u0275\u0275inject(n.NgZone),n.\u0275\u0275inject(v,8))},N.\u0275prov=n.\u0275\u0275defineInjectable({token:N,factory:N.\u0275fac,providedIn:"root"}),N})(),C=(()=>{class N{constructor(U,G,$){this.templateRef=U,this.viewContainer=G,this.monacoEditorLoaderService=$,this.isMonacoLoaded$=this.monacoEditorLoaderService.isMonacoLoaded$.asObservable(),this.destroyed$=new c.x}ngOnInit(){this.isMonacoLoaded$.pipe((0,h.R)(this.destroyed$)).subscribe(U=>{if(!U)return this.viewContainer.clear();this.viewContainer.createEmbeddedView(this.templateRef)})}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}}return N.\u0275fac=function(U){return new(U||N)(n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(m))},N.\u0275dir=n.\u0275\u0275defineDirective({type:N,selectors:[["","ngxLoadMonacoEditor",""]]}),N})(),M=(()=>{class N{constructor(U){this.monacoLoader=U,this.init=new n.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)(U=>U),(0,u.q)(1)).subscribe(()=>{this.initEditor()})}ngOnChanges(U){if(this.editor&&U.options&&!U.options.firstChange){const G=U.options.currentValue,{language:$,theme:J}=G,te=(0,d.__rest)(G,["language","theme"]),{language:he,theme:Fe}=U.options.previousValue;he!==$&&monaco.editor.setModelLanguage(this.editor.getModel(),this.options&&this.options.language?this.options.language:"text"),Fe!==J&&monaco.editor.setTheme(J),this.editor.updateOptions(te)}if(this.editor&&U.uri){const G=U.uri.currentValue,$=U.uri.previousValue;if($&&!G||!$&&G||G&&$&&G.path!==$.path){const J=this.editor.getValue();let te;this.modelUriInstance&&this.modelUriInstance.dispose(),G&&(te=monaco.editor.getModels().find(he=>he.uri.path===G.path)),this.modelUriInstance=te||monaco.editor.createModel(J,this.options.language||"text",this.uri),this.editor.setModel(this.modelUriInstance)}}}writeValue(U){this.value=U,this.editor&&U?this.editor.setValue(U):this.editor&&this.editor.setValue("")}registerOnChange(U){this.propagateChange=U}registerOnTouched(U){this.onTouched=U}validate(){return this.parsedError?{monaco:{value:this.parsedError.split("|")}}:null}registerOnValidatorChange(U){this.onErrorStatusChange=U}initEditor(){const U={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({},U),this.options):U),this.registerEditorListeners(),this.init.emit(this.editor)}registerEditorListeners(){this.editor.onDidChangeModelContent(()=>{this.propagateChange(this.editor.getValue())}),this.editor.onDidChangeModelDecorations(()=>{const U=this.modelMarkers.map(({message:$})=>$).join("|");this.parsedError!==U&&(this.parsedError=U,this.onErrorStatusChange())}),this.editor.onDidBlurEditorText(()=>{this.onTouched()})}ngOnDestroy(){this.editor&&this.editor.dispose()}}return N.\u0275fac=function(U){return new(U||N)(n.\u0275\u0275directiveInject(m))},N.\u0275cmp=n.\u0275\u0275defineComponent({type:N,selectors:[["ngx-monaco-editor"]],viewQuery:function(U,G){if(1&U&&n.\u0275\u0275viewQuery(y,7),2&U){let $;n.\u0275\u0275queryRefresh($=n.\u0275\u0275loadQuery())&&(G.editorContent=$.first)}},inputs:{options:"options",uri:"uri"},outputs:{init:"init"},features:[n.\u0275\u0275ProvidersFeature([{provide:p.NG_VALUE_ACCESSOR,useExisting:(0,n.forwardRef)(()=>N),multi:!0},{provide:p.NG_VALIDATORS,useExisting:(0,n.forwardRef)(()=>N),multi:!0}]),n.\u0275\u0275NgOnChangesFeature],decls:4,vars:0,consts:[["fxFlex","",1,"editor-container"],["container",""],[1,"monaco-editor"],["editor",""]],template:function(U,G){1&U&&(n.\u0275\u0275elementStart(0,"div",0,1),n.\u0275\u0275element(2,"div",2,3),n.\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}),N})(),O=(()=>{class N{constructor(U){this.monacoLoader=U,this.init=new n.EventEmitter}ngOnInit(){this.container=this.editorContent.nativeElement,this.monacoLoader.isMonacoLoaded$.pipe((0,_.h)(U=>U),(0,u.q)(1)).subscribe(()=>{this.initMonaco()})}ngOnChanges(U){if(this.editor&&(U.code&&!U.code.firstChange||U.modified&&!U.modified.firstChange)){const G=monaco.editor.createModel(this.modified),$=monaco.editor.createModel(this.original);this.editor.setModel({original:$,modified:G})}this.editor&&U.options&&!U.options.firstChange&&(U.options.previousValue.theme!==U.options.currentValue.theme&&monaco.editor.setTheme(U.options.currentValue.theme),this.editor.updateOptions(U.options.currentValue))}initMonaco(){let U={readOnly:!0,automaticLayout:!0,theme:"vc"};this.options&&(U=Object.assign({},U,this.options)),this.editor=monaco.editor.createDiffEditor(this.container,U);const G=monaco.editor.createModel(this.original),$=monaco.editor.createModel(this.modified);this.editor.setModel({original:G,modified:$}),this.editor.layout(),this.init.emit(this.editor)}ngOnDestroy(){this.editor&&this.editor.dispose()}}return N.\u0275fac=function(U){return new(U||N)(n.\u0275\u0275directiveInject(m))},N.\u0275cmp=n.\u0275\u0275defineComponent({type:N,selectors:[["ngx-monaco-diff-editor"]],viewQuery:function(U,G){if(1&U&&n.\u0275\u0275viewQuery(f,7),2&U){let $;n.\u0275\u0275queryRefresh($=n.\u0275\u0275loadQuery())&&(G.editorContent=$.first)}},inputs:{original:"original",modified:"modified",options:"options"},outputs:{init:"init"},features:[n.\u0275\u0275NgOnChangesFeature],decls:4,vars:0,consts:[["fxFlex","",1,"editor-container"],["container",""],[1,"monaco-editor"],["diffEditor",""]],template:function(U,G){1&U&&(n.\u0275\u0275elementStart(0,"div",0,1),n.\u0275\u0275element(2,"div",2,3),n.\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}),N})(),P=(()=>{class N{}return N.\u0275fac=function(U){return new(U||N)},N.\u0275mod=n.\u0275\u0275defineNgModule({type:N}),N.\u0275inj=n.\u0275\u0275defineInjector({imports:[[]]}),N})()},1430:(z,o,a)=>{"use strict";a.r(o),a.d(o,{ANGULAR_SPLIT_DEFAULT_OPTIONS:()=>te,AngularSplitModule:()=>it,SplitAreaDirective:()=>Fe,SplitComponent:()=>he});var n=a(5e3),h=a(9808),_=a(7579),u=a(8306),r=a(8372);const c=["gutterEls"];function d(be,ke){if(1&be){const ie=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"div",2,3),n.\u0275\u0275listener("keydown",function(oe){n.\u0275\u0275restoreView(ie);const me=n.\u0275\u0275nextContext().index,V=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(V.startKeyboardDrag(oe,2*me+1,me+1))})("mousedown",function(oe){n.\u0275\u0275restoreView(ie);const me=n.\u0275\u0275nextContext().index,V=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(V.startMouseDrag(oe,2*me+1,me+1))})("touchstart",function(oe){n.\u0275\u0275restoreView(ie);const me=n.\u0275\u0275nextContext().index,V=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(V.startMouseDrag(oe,2*me+1,me+1))})("mouseup",function(oe){n.\u0275\u0275restoreView(ie);const me=n.\u0275\u0275nextContext().index,V=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(V.clickGutter(oe,me+1))})("touchend",function(oe){n.\u0275\u0275restoreView(ie);const me=n.\u0275\u0275nextContext().index,V=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(V.clickGutter(oe,me+1))}),n.\u0275\u0275element(2,"div",4),n.\u0275\u0275elementEnd()}if(2&be){const ie=n.\u0275\u0275nextContext(),Ae=ie.index,oe=ie.$implicit,me=n.\u0275\u0275nextContext();n.\u0275\u0275styleProp("flex-basis",me.gutterSize,"px")("order",2*Ae+1),n.\u0275\u0275attribute("aria-label",me.gutterAriaLabel)("aria-orientation",me.direction)("aria-valuemin",oe.minSize)("aria-valuemax",oe.maxSize)("aria-valuenow",oe.size)("aria-valuetext",me.getAriaAreaSizeText(oe.size))}}function p(be,ke){1&be&&n.\u0275\u0275template(0,d,3,10,"div",1),2&be&&n.\u0275\u0275property("ngIf",!1===ke.last)}const y=["*"];function f(be){if(void 0!==be.changedTouches&&be.changedTouches.length>0)return{x:be.changedTouches[0].clientX,y:be.changedTouches[0].clientY};if(void 0!==be.clientX&&void 0!==be.clientY)return{x:be.clientX,y:be.clientY};if(void 0!==be.currentTarget){const ke=be.currentTarget;return{x:ke.offsetLeft,y:ke.offsetTop}}return null}function b(be,ke,ie){return Math.abs(be.x-ke.x)<=ie&&Math.abs(be.y-ke.y)<=ie}function m(be,ke){const ie=be.nativeElement.getBoundingClientRect();return"horizontal"===ke?ie.width:ie.height}function C(be){return"boolean"==typeof be?be:"false"!==be}function M(be,ke){return null==be?ke:(be=Number(be),!isNaN(be)&&be>=0?be:ke)}function O(be,ke){if("percent"===be){const ie=ke.reduce((Ae,oe)=>null!==oe?Ae+oe:Ae,0);return ke.every(Ae=>null!==Ae)&&ie>99.9&&ie<100.1}if("pixel"===be)return 1===ke.filter(ie=>null===ie).length}function P(be){return null===be.size?null:!0===be.component.lockSize?be.size:null===be.component.minSize?null:be.component.minSize>be.size?be.size:be.component.minSize}function N(be){return null===be.size?null:!0===be.component.lockSize?be.size:null===be.component.maxSize?null:be.component.maxSize<be.size?be.size:be.component.maxSize}function Y(be,ke,ie,Ae){return ke.reduce((oe,me)=>{const V=function U(be,ke,ie,Ae){return 0===ie?{areaSnapshot:ke,pixelAbsorb:0,percentAfterAbsorption:ke.sizePercentAtStart,pixelRemain:0}:0===ke.sizePixelAtStart&&ie<0?{areaSnapshot:ke,pixelAbsorb:0,percentAfterAbsorption:0,pixelRemain:ie}:"percent"===be?function G(be,ke,ie){const oe=(be.sizePixelAtStart+ke)/ie*100;if(ke>0){if(null!==be.area.maxSize&&oe>be.area.maxSize){const me=be.area.maxSize/100*ie;return{areaSnapshot:be,pixelAbsorb:me,percentAfterAbsorption:be.area.maxSize,pixelRemain:be.sizePixelAtStart+ke-me}}return{areaSnapshot:be,pixelAbsorb:ke,percentAfterAbsorption:oe>100?100:oe,pixelRemain:0}}if(ke<0){if(null!==be.area.minSize&&oe<be.area.minSize){const me=be.area.minSize/100*ie;return{areaSnapshot:be,pixelAbsorb:me,percentAfterAbsorption:be.area.minSize,pixelRemain:be.sizePixelAtStart+ke-me}}return oe<0?{areaSnapshot:be,pixelAbsorb:-be.sizePixelAtStart,percentAfterAbsorption:0,pixelRemain:ke+be.sizePixelAtStart}:{areaSnapshot:be,pixelAbsorb:ke,percentAfterAbsorption:oe,pixelRemain:0}}}(ke,ie,Ae):"pixel"===be?function $(be,ke,ie){const Ae=be.sizePixelAtStart+ke;return ke>0?null!==be.area.maxSize&&Ae>be.area.maxSize?{areaSnapshot:be,pixelAbsorb:be.area.maxSize-be.sizePixelAtStart,percentAfterAbsorption:-1,pixelRemain:Ae-be.area.maxSize}:{areaSnapshot:be,pixelAbsorb:ke,percentAfterAbsorption:-1,pixelRemain:0}:ke<0?null!==be.area.minSize&&Ae<be.area.minSize?{areaSnapshot:be,pixelAbsorb:be.area.minSize+ke-Ae,percentAfterAbsorption:-1,pixelRemain:Ae-be.area.minSize}:Ae<0?{areaSnapshot:be,pixelAbsorb:-be.sizePixelAtStart,percentAfterAbsorption:-1,pixelRemain:ke+be.sizePixelAtStart}:{areaSnapshot:be,pixelAbsorb:ke,percentAfterAbsorption:-1,pixelRemain:0}:void 0}(ke,ie):void 0}(be,me,oe.remain,Ae);return oe.list.push(V),oe.remain=V.pixelRemain,oe},{remain:ie,list:[]})}function J(be,ke){"percent"===be?ke.areaSnapshot.area.size=ke.percentAfterAbsorption:"pixel"===be&&null!==ke.areaSnapshot.area.size&&(ke.areaSnapshot.area.size=ke.areaSnapshot.sizePixelAtStart+ke.pixelAbsorb)}const te=new n.InjectionToken("angular-split-global-config");let he=(()=>{class be{constructor(ie,Ae,oe,me,V){this.ngZone=ie,this.elRef=Ae,this.cdRef=oe,this.renderer=me,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 n.EventEmitter(!1),this.dragEnd=new n.EventEmitter(!1),this.gutterClick=new n.EventEmitter(!1),this.gutterDblClick=new n.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=V?Object.assign(this._config,V):this._config,Object.keys(this._config).forEach(H=>{this[H]=this._config[H]})}set direction(ie){this._direction="vertical"===ie?"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(ie){this._unit="pixel"===ie?"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(ie){this._gutterSize=M(ie,11),this.build(!1,!1)}get gutterSize(){return this._gutterSize}set gutterStep(ie){this._gutterStep=M(ie,1)}get gutterStep(){return this._gutterStep}set restrictMove(ie){this._restrictMove=C(ie)}get restrictMove(){return this._restrictMove}set useTransition(ie){this._useTransition=C(ie),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(ie){this._disabled=C(ie),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(ie){this._dir="rtl"===ie?"rtl":"ltr",this.renderer.setAttribute(this.elRef.nativeElement,"dir",this._dir)}get dir(){return this._dir}set gutterDblClickDuration(ie){this._gutterDblClickDuration=M(ie,0)}get gutterDblClickDuration(){return this._gutterDblClickDuration}get transitionEnd(){return new u.y(ie=>this.transitionEndSubscriber=ie).pipe((0,r.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(ie){const Ae={component:ie,order:0,size:0,minSize:null,maxSize:null,sizeBeforeCollapse:null,gutterBeforeCollapse:0};!0===ie.visible?(this.displayedAreas.push(Ae),this.build(!0,!0)):this.hiddenAreas.push(Ae)}removeArea(ie){if(this.displayedAreas.some(Ae=>Ae.component===ie)){const Ae=this.displayedAreas.find(oe=>oe.component===ie);this.displayedAreas.splice(this.displayedAreas.indexOf(Ae),1),this.build(!0,!0)}else if(this.hiddenAreas.some(Ae=>Ae.component===ie)){const Ae=this.hiddenAreas.find(oe=>oe.component===ie);this.hiddenAreas.splice(this.hiddenAreas.indexOf(Ae),1)}}updateArea(ie,Ae,oe){!0===ie.visible&&this.build(Ae,oe)}showArea(ie){const Ae=this.hiddenAreas.find(me=>me.component===ie);if(void 0===Ae)return;const oe=this.hiddenAreas.splice(this.hiddenAreas.indexOf(Ae),1);this.displayedAreas.push(...oe),this.build(!0,!0)}hideArea(ie){const Ae=this.displayedAreas.find(me=>me.component===ie);if(void 0===Ae)return;const oe=this.displayedAreas.splice(this.displayedAreas.indexOf(Ae),1);oe.forEach(me=>{me.order=0,me.size=0}),this.hiddenAreas.push(...oe),this.build(!0,!0)}getVisibleAreaSizes(){return this.displayedAreas.map(ie=>null===ie.size?"*":ie.size)}setVisibleAreaSizes(ie){if(ie.length!==this.displayedAreas.length)return!1;const Ae=ie.map(me=>M(me,null));return!1!==O(this.unit,Ae)&&(this.displayedAreas.forEach((me,V)=>me.component._size=Ae[V]),this.build(!1,!0),!0)}build(ie,Ae){if(this.stopDragging(),!0===ie&&(this.displayedAreas.every(oe=>null!==oe.component.order)&&this.displayedAreas.sort((oe,me)=>oe.component.order-me.component.order),this.displayedAreas.forEach((oe,me)=>{oe.order=2*me,oe.component.setStyleOrder(oe.order)})),!0===Ae){const oe=O(this.unit,this.displayedAreas.map(me=>me.component.size));switch(this.unit){case"percent":{const me=100/this.displayedAreas.length;this.displayedAreas.forEach(V=>{V.size=oe?V.component.size:me,V.minSize=P(V),V.maxSize=N(V)});break}case"pixel":if(oe)this.displayedAreas.forEach(me=>{me.size=me.component.size,me.minSize=P(me),me.maxSize=N(me)});else{const me=this.displayedAreas.filter(V=>null===V.component.size);if(0===me.length&&this.displayedAreas.length>0)this.displayedAreas.forEach((V,H)=>{V.size=0===H?null:V.component.size,V.minSize=0===H?null:P(V),V.maxSize=0===H?null:N(V)});else if(me.length>1){let V=!1;this.displayedAreas.forEach(H=>{null===H.component.size?!1===V?(H.size=null,H.minSize=null,H.maxSize=null,V=!0):(H.size=100,H.minSize=null,H.maxSize=null):(H.size=H.component.size,H.minSize=P(H),H.maxSize=N(H))})}}}}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 ie=this.getNbGutters()*this.gutterSize;this.displayedAreas.forEach(Ae=>{Ae.component.setStyleFlex(0,0,`calc( ${Ae.size}% - ${Ae.size/100*ie}px )`,null!==Ae.minSize&&Ae.minSize===Ae.size,null!==Ae.maxSize&&Ae.maxSize===Ae.size)})}else"pixel"===this.unit&&this.displayedAreas.forEach(ie=>{null===ie.size?ie.component.setStyleFlex(1,1,1===this.displayedAreas.length?"100%":"auto",!1,!1):1===this.displayedAreas.length?ie.component.setStyleFlex(0,0,"100%",!1,!1):ie.component.setStyleFlex(0,0,`${ie.size}px`,null!==ie.minSize&&ie.minSize===ie.size,null!==ie.maxSize&&ie.maxSize===ie.size)})}clickGutter(ie,Ae){const oe=f(ie);this.startPoint&&b(this.startPoint,oe,this.gutterClickDeltaPx)&&(!this.isDragging||this.isWaitingInitialMove)&&(null!==this._clickTimeout?(window.clearTimeout(this._clickTimeout),this._clickTimeout=null,this.notify("dblclick",Ae),this.stopDragging()):this._clickTimeout=window.setTimeout(()=>{this._clickTimeout=null,this.notify("click",Ae),this.stopDragging()},this.gutterDblClickDuration))}startKeyboardDrag(ie,Ae,oe){if(!0===this.disabled||!0===this.isWaitingClear)return;const me=function v(be,ke){if("horizontal"===ke)switch(be.key){case"ArrowLeft":case"ArrowRight":case"PageUp":case"PageDown":break;default:return null}if("vertical"===ke)switch(be.key){case"ArrowUp":case"ArrowDown":case"PageUp":case"PageDown":break;default:return null}const ie=be.currentTarget,Ae="PageUp"===be.key||"PageDown"===be.key?500:50;let oe=ie.offsetLeft,me=ie.offsetTop;switch(be.key){case"ArrowLeft":oe-=Ae;break;case"ArrowRight":oe+=Ae;break;case"ArrowUp":me-=Ae;break;case"ArrowDown":me+=Ae;break;case"PageUp":"vertical"===ke?me-=Ae:oe+=Ae;break;case"PageDown":"vertical"===ke?me+=Ae:oe-=Ae;break;default:return null}return{x:oe,y:me}}(ie,this.direction);null!==me&&(this.endPoint=me,this.startPoint=f(ie),ie.preventDefault(),ie.stopPropagation(),this.setupForDragEvent(Ae,oe),this.startDragging(),this.drag(),this.stopDragging())}startMouseDrag(ie,Ae,oe){ie.preventDefault(),ie.stopPropagation(),this.startPoint=f(ie),null!==this.startPoint&&!0!==this.disabled&&!0!==this.isWaitingClear&&(this.setupForDragEvent(Ae,oe),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.mouseDragEvent.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchmove",this.mouseDragEvent.bind(this)))}),this.startDragging())}setupForDragEvent(ie,Ae){this.snapshot={gutterNum:Ae,lastSteppedOffset:0,allAreasSizePixel:m(this.elRef,this.direction)-this.getNbGutters()*this.gutterSize,allInvolvedAreasSizePercent:100,areasBeforeGutter:[],areasAfterGutter:[]},this.displayedAreas.forEach(oe=>{const me={area:oe,sizePixelAtStart:m(oe.component.elRef,this.direction),sizePercentAtStart:"percent"===this.unit?oe.size:-1};oe.order<ie?!0===this.restrictMove?this.snapshot.areasBeforeGutter=[me]:this.snapshot.areasBeforeGutter.unshift(me):oe.order>ie&&(!0===this.restrictMove?0===this.snapshot.areasAfterGutter.length&&(this.snapshot.areasAfterGutter=[me]):this.snapshot.areasAfterGutter.push(me))}),this.snapshot.allInvolvedAreasSizePercent=[...this.snapshot.areasBeforeGutter,...this.snapshot.areasAfterGutter].reduce((oe,me)=>oe+me.sizePercentAtStart,0)}startDragging(){this.displayedAreas.forEach(ie=>ie.component.lockEvents()),this.isDragging=!0,this.isWaitingInitialMove=!0}mouseDragEvent(ie){ie.preventDefault(),ie.stopPropagation();const Ae=f(ie);null!==this._clickTimeout&&!b(this.startPoint,Ae,this.gutterClickDeltaPx)&&(window.clearTimeout(this._clickTimeout),this._clickTimeout=null),!1!==this.isDragging&&(this.endPoint=f(ie),null!==this.endPoint&&this.drag())}drag(){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 ie="horizontal"===this.direction?this.startPoint.x-this.endPoint.x:this.startPoint.y-this.endPoint.y;"rtl"===this.dir&&(ie=-ie);const Ae=Math.round(ie/this.gutterStep)*this.gutterStep;if(Ae===this.snapshot.lastSteppedOffset)return;this.snapshot.lastSteppedOffset=Ae;let oe=Y(this.unit,this.snapshot.areasBeforeGutter,-Ae,this.snapshot.allAreasSizePixel),me=Y(this.unit,this.snapshot.areasAfterGutter,Ae,this.snapshot.allAreasSizePixel);if(0!==oe.remain&&0!==me.remain?Math.abs(oe.remain)===Math.abs(me.remain)||(Math.abs(oe.remain)>Math.abs(me.remain)?me=Y(this.unit,this.snapshot.areasAfterGutter,Ae+oe.remain,this.snapshot.allAreasSizePixel):oe=Y(this.unit,this.snapshot.areasBeforeGutter,-(Ae-me.remain),this.snapshot.allAreasSizePixel)):0!==oe.remain?me=Y(this.unit,this.snapshot.areasAfterGutter,Ae+oe.remain,this.snapshot.allAreasSizePixel):0!==me.remain&&(oe=Y(this.unit,this.snapshot.areasBeforeGutter,-(Ae-me.remain),this.snapshot.allAreasSizePixel)),"percent"===this.unit){const V=[...oe.list,...me.list],H=V.find(re=>0!==re.percentAfterAbsorption&&re.percentAfterAbsorption!==re.areaSnapshot.area.minSize&&re.percentAfterAbsorption!==re.areaSnapshot.area.maxSize);H&&(H.percentAfterAbsorption=this.snapshot.allInvolvedAreasSizePercent-V.filter(re=>re!==H).reduce((re,B)=>re+B.percentAfterAbsorption,0))}oe.list.forEach(V=>J(this.unit,V)),me.list.forEach(V=>J(this.unit,V)),this.refreshStyleSizes(),this.notify("progress",this.snapshot.gutterNum)}stopDragging(ie){if(ie&&(ie.preventDefault(),ie.stopPropagation()),!1!==this.isDragging){for(this.displayedAreas.forEach(Ae=>Ae.component.unlockEvents());this.dragListeners.length>0;){const Ae=this.dragListeners.pop();Ae&&Ae()}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(ie,Ae){const oe=this.getVisibleAreaSizes();"start"===ie?this.dragStart.emit({gutterNum:Ae,sizes:oe}):"end"===ie?this.dragEnd.emit({gutterNum:Ae,sizes:oe}):"click"===ie?this.gutterClick.emit({gutterNum:Ae,sizes:oe}):"dblclick"===ie?this.gutterDblClick.emit({gutterNum:Ae,sizes:oe}):"transitionEnd"===ie?this.transitionEndSubscriber&&this.ngZone.run(()=>this.transitionEndSubscriber.next(oe)):"progress"===ie&&this.dragProgressSubject.next({gutterNum:Ae,sizes:oe})}ngOnDestroy(){this.stopDragging()}collapseArea(ie,Ae,oe){const me=this.displayedAreas.find(re=>re.component===ie);if(void 0===me)return;const V="right"===oe?1:-1;me.sizeBeforeCollapse||(me.sizeBeforeCollapse=me.size,me.gutterBeforeCollapse=V),me.size=Ae;const H=this.gutterEls.find(re=>re.nativeElement.style.order===`${me.order+V}`);H&&this.renderer.addClass(H.nativeElement,"as-split-gutter-collapsed"),this.updateArea(ie,!1,!1)}expandArea(ie){const Ae=this.displayedAreas.find(me=>me.component===ie);if(void 0===Ae||!Ae.sizeBeforeCollapse)return;Ae.size=Ae.sizeBeforeCollapse,Ae.sizeBeforeCollapse=null;const oe=this.gutterEls.find(me=>me.nativeElement.style.order===`${Ae.order+Ae.gutterBeforeCollapse}`);oe&&this.renderer.removeClass(oe.nativeElement,"as-split-gutter-collapsed"),this.updateArea(ie,!1,!1)}getAriaAreaSizeText(ie){return null===ie?null:ie.toFixed(0)+" "+this.unit}}return be.\u0275fac=function(ie){return new(ie||be)(n.\u0275\u0275directiveInject(n.NgZone),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.ChangeDetectorRef),n.\u0275\u0275directiveInject(n.Renderer2),n.\u0275\u0275directiveInject(te,8))},be.\u0275cmp=n.\u0275\u0275defineComponent({type:be,selectors:[["as-split"]],viewQuery:function(ie,Ae){if(1&ie&&n.\u0275\u0275viewQuery(c,5),2&ie){let oe;n.\u0275\u0275queryRefresh(oe=n.\u0275\u0275loadQuery())&&(Ae.gutterEls=oe)}},inputs:{direction:"direction",unit:"unit",gutterSize:"gutterSize",gutterStep:"gutterStep",restrictMove:"restrictMove",useTransition:"useTransition",disabled:"disabled",dir:"dir",gutterDblClickDuration:"gutterDblClickDuration",gutterClickDeltaPx:"gutterClickDeltaPx",gutterAriaLabel:"gutterAriaLabel"},outputs:{transitionEnd:"transitionEnd",dragStart:"dragStart",dragEnd:"dragEnd",gutterClick:"gutterClick",gutterDblClick:"gutterDblClick"},exportAs:["asSplit"],ngContentSelectors:y,decls:2,vars:1,consts:[["ngFor","",3,"ngForOf"],["role","slider","tabindex","0","class","as-split-gutter",3,"flex-basis","order","keydown","mousedown","touchstart","mouseup","touchend",4,"ngIf"],["role","slider","tabindex","0",1,"as-split-gutter",3,"keydown","mousedown","touchstart","mouseup","touchend"],["gutterEls",""],[1,"as-split-gutter-icon"]],template:function(ie,Ae){1&ie&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275projection(0),n.\u0275\u0275template(1,p,1,1,"ng-template",0)),2&ie&&(n.\u0275\u0275advance(1),n.\u0275\u0275property("ngForOf",Ae.displayedAreas))},dependencies:[h.NgForOf,h.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%]{border:none;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(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==)}.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}),be})(),Fe=(()=>{class be{constructor(ie,Ae,oe,me){this.ngZone=ie,this.elRef=Ae,this.renderer=oe,this.split=me,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(ie){this._order=M(ie,null),this.split.updateArea(this,!0,!1)}get order(){return this._order}set size(ie){this._size=M(ie,null),this.split.updateArea(this,!1,!0)}get size(){return this._size}set minSize(ie){this._minSize=M(ie,null),this.split.updateArea(this,!1,!0)}get minSize(){return this._minSize}set maxSize(ie){this._maxSize=M(ie,null),this.split.updateArea(this,!1,!0)}get maxSize(){return this._maxSize}set lockSize(ie){this._lockSize=C(ie),this.split.updateArea(this,!1,!0)}get lockSize(){return this._lockSize}set visible(ie){this._visible=C(ie),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",ie=>{"flex-basis"===ie.propertyName&&this.split.notify("transitionEnd",-1)})})}setStyleOrder(ie){this.renderer.setStyle(this.elRef.nativeElement,"order",ie)}setStyleFlex(ie,Ae,oe,me,V){this.renderer.setStyle(this.elRef.nativeElement,"flex-grow",ie),this.renderer.setStyle(this.elRef.nativeElement,"flex-shrink",Ae),this.renderer.setStyle(this.elRef.nativeElement,"flex-basis",oe),!0===me?this.renderer.addClass(this.elRef.nativeElement,"as-min"):this.renderer.removeClass(this.elRef.nativeElement,"as-min"),!0===V?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 ie=this.lockListeners.pop();ie&&ie()}}ngOnDestroy(){this.unlockEvents(),this.transitionListener&&this.transitionListener(),this.split.removeArea(this)}collapse(ie=0,Ae="right"){this.split.collapseArea(this,ie,Ae)}expand(){this.split.expandArea(this)}}return be.\u0275fac=function(ie){return new(ie||be)(n.\u0275\u0275directiveInject(n.NgZone),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.Renderer2),n.\u0275\u0275directiveInject(he))},be.\u0275dir=n.\u0275\u0275defineDirective({type:be,selectors:[["as-split-area"],["","as-split-area",""]],inputs:{order:"order",size:"size",minSize:"minSize",maxSize:"maxSize",lockSize:"lockSize",visible:"visible"},exportAs:["asSplitArea"]}),be})(),it=(()=>{class be{static forRoot(){return console.warn("AngularSplitModule.forRoot() is deprecated and will be removed in v6"),{ngModule:be,providers:[]}}static forChild(){return console.warn("AngularSplitModule.forChild() is deprecated and will be removed in v6"),{ngModule:be,providers:[]}}}return be.\u0275fac=function(ie){return new(ie||be)},be.\u0275mod=n.\u0275\u0275defineNgModule({type:be}),be.\u0275inj=n.\u0275\u0275defineInjector({imports:[h.CommonModule]}),be})()},1017:(z,o,a)=>{"use strict";a.r(o),a.d(o,{NgxJsonViewerComponent:()=>y,NgxJsonViewerModule:()=>f});var n=a(5e3),h=a(9808);function _(b,v){1&b&&n.\u0275\u0275element(0,"div",9)}function u(b,v){if(1&b&&(n.\u0275\u0275elementStart(0,"span",10),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&b){const m=n.\u0275\u0275nextContext().$implicit;n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate(m.description)}}function r(b,v){if(1&b&&(n.\u0275\u0275elementStart(0,"section",11),n.\u0275\u0275element(1,"ngx-json-viewer",12),n.\u0275\u0275elementEnd()),2&b){const m=n.\u0275\u0275nextContext().$implicit,C=n.\u0275\u0275nextContext();n.\u0275\u0275advance(1),n.\u0275\u0275property("json",m.value)("expanded",C.expanded)("depth",C.depth)("_currentDepth",C._currentDepth+1)}}const c=function(b){return["segment",b]},d=function(b,v){return{"segment-main":!0,expandable:b,expanded:v}};function p(b,v){if(1&b){const m=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"section",2)(1,"section",3),n.\u0275\u0275listener("click",function(){const O=n.\u0275\u0275restoreView(m).$implicit,P=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(P.toggle(O))}),n.\u0275\u0275template(2,_,1,0,"div",4),n.\u0275\u0275elementStart(3,"span",5),n.\u0275\u0275text(4),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(5,"span",6),n.\u0275\u0275text(6,": "),n.\u0275\u0275elementEnd(),n.\u0275\u0275template(7,u,2,1,"span",7),n.\u0275\u0275elementEnd(),n.\u0275\u0275template(8,r,2,4,"section",8),n.\u0275\u0275elementEnd()}if(2&b){const m=v.$implicit,C=n.\u0275\u0275nextContext();n.\u0275\u0275property("ngClass",n.\u0275\u0275pureFunction1(6,c,"segment-type-"+m.type)),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngClass",n.\u0275\u0275pureFunction2(8,d,C.isExpandable(m),m.expanded)),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",C.isExpandable(m)),n.\u0275\u0275advance(2),n.\u0275\u0275textInterpolate(m.key),n.\u0275\u0275advance(3),n.\u0275\u0275property("ngIf",!m.expanded||!C.isExpandable(m)),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",m.expanded&&C.isExpandable(m))}}let y=(()=>{class b{constructor(){this.expanded=!0,this.depth=-1,this._currentDepth=0,this.segments=[]}ngOnChanges(){this.segments=[],this.json=this.decycle(this.json),"object"==typeof this.json?Object.keys(this.json).forEach(m=>{this.segments.push(this.parseKeyValue(m,this.json[m]))}):this.segments.push(this.parseKeyValue(`(${typeof this.json})`,this.json))}isExpandable(m){return"object"===m.type||"array"===m.type}toggle(m){this.isExpandable(m)&&(m.expanded=!m.expanded)}parseKeyValue(m,C){const M={key:m,value:C,type:void 0,description:""+C,expanded:this.isExpanded()};switch(typeof M.value){case"number":M.type="number";break;case"boolean":M.type="boolean";break;case"function":M.type="function";break;case"string":M.type="string",M.description='"'+M.value+'"';break;case"undefined":M.type="undefined",M.description="undefined";break;case"object":null===M.value?(M.type="null",M.description="null"):Array.isArray(M.value)?(M.type="array",M.description="Array["+M.value.length+"] "+JSON.stringify(M.value)):M.value instanceof Date?M.type="date":(M.type="object",M.description="Object "+JSON.stringify(M.value))}return M}isExpanded(){return this.expanded&&!(this.depth>-1&&this._currentDepth>=this.depth)}decycle(m){const C=new WeakMap;return function M(O,P){let N,Y;return"object"!=typeof O||null===O||O instanceof Boolean||O instanceof Date||O instanceof Number||O instanceof RegExp||O instanceof String?O:(N=C.get(O),void 0!==N?{$ref:N}:(C.set(O,P),Array.isArray(O)?(Y=[],O.forEach(function(U,G){Y[G]=M(U,P+"["+G+"]")})):(Y={},Object.keys(O).forEach(function(U){Y[U]=M(O[U],P+"["+JSON.stringify(U)+"]")})),Y))}(m,"$")}}return b.\u0275fac=function(m){return new(m||b)},b.\u0275cmp=n.\u0275\u0275defineComponent({type:b,selectors:[["ngx-json-viewer"]],inputs:{json:"json",expanded:"expanded",depth:"depth",_currentDepth:"_currentDepth"},features:[n.\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(m,C){1&m&&(n.\u0275\u0275elementStart(0,"section",0),n.\u0275\u0275template(1,p,9,11,"section",1),n.\u0275\u0275elementEnd()),2&m&&(n.\u0275\u0275advance(1),n.\u0275\u0275property("ngForOf",C.segments))},dependencies:[h.NgClass,h.NgForOf,h.NgIf,b],styles:['@charset "UTF-8";.ngx-json-viewer[_ngcontent-%COMP%]{font-family:var(--ngx-json-font-family, monospace);font-size:var(--ngx-json-font-size, 1em);width:100%;height:100%;overflow:hidden;position:relative}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%]{padding:2px;margin:1px 1px 1px 12px}.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%]{position:absolute;margin-left:-14px;margin-top:3px;font-size:.8em;line-height:1.2em;vertical-align:middle;color:var(--ngx-json-toggler, #787878)}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .toggler[_ngcontent-%COMP%]:after{display:inline-block;content:"\\25ba";transition:transform .1s ease-in}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .segment-key[_ngcontent-%COMP%]{color:var(--ngx-json-key, #4E187C)}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .segment-separator[_ngcontent-%COMP%]{color:var(--ngx-json-separator, #999)}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-value, #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:var(--ngx-json-string, #FF6B6B)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-number[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-number, #009688)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-boolean[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-boolean, #B938A4)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-date[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-date, #05668D)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-array[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-array, #999)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-object[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-object, #999)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-function[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-function, #999)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-null[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-null, #fff)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-undefined[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-undefined, #fff)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-null[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{background-color:var(--ngx-json-null-bg, red)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-undefined[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-key[_ngcontent-%COMP%]{color:var(--ngx-json-undefined-key, #999)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-undefined[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{background-color:var(--ngx-json-undefined-key, #999)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-object[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%], .ngx-json-viewer[_ngcontent-%COMP%] .segment-type-array[_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}']}),b})(),f=(()=>{class b{}return b.\u0275fac=function(m){return new(m||b)},b.\u0275mod=n.\u0275\u0275defineNgModule({type:b}),b.\u0275inj=n.\u0275\u0275defineInjector({imports:[h.CommonModule]}),b})()},2290:(z,o,a)=>{"use strict";a.r(o),a.d(o,{BasePortalHost:()=>$,ComponentPortal:()=>G,DefaultGlobalConfig:()=>V,DefaultNoAnimationsGlobalConfig:()=>ue,DefaultNoComponentGlobalConfig:()=>te,Overlay:()=>Ae,OverlayContainer:()=>ie,OverlayRef:()=>ke,TOAST_CONFIG:()=>he,Toast:()=>me,ToastContainerDirective:()=>Y,ToastContainerModule:()=>U,ToastInjector:()=>it,ToastNoAnimation:()=>B,ToastNoAnimationModule:()=>ge,ToastPackage:()=>J,ToastRef:()=>Fe,ToastrComponentlessModule:()=>re,ToastrModule:()=>H,ToastrService:()=>oe});var n=a(5e3),h=a(1777),_=a(7579),u=a(9808),r=a(2313);const c=["toast-component",""];function d(Te,Pe){if(1&Te){const Ce=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"button",5),n.\u0275\u0275listener("click",function(){n.\u0275\u0275restoreView(Ce);const lt=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(lt.remove())}),n.\u0275\u0275elementStart(1,"span",6),n.\u0275\u0275text(2,"\xd7"),n.\u0275\u0275elementEnd()()}}function p(Te,Pe){if(1&Te&&(n.\u0275\u0275elementContainerStart(0),n.\u0275\u0275text(1),n.\u0275\u0275elementContainerEnd()),2&Te){const Ce=n.\u0275\u0275nextContext(2);n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1("[",Ce.duplicatesCount+1,"]")}}function y(Te,Pe){if(1&Te&&(n.\u0275\u0275elementStart(0,"div"),n.\u0275\u0275text(1),n.\u0275\u0275template(2,p,2,1,"ng-container",4),n.\u0275\u0275elementEnd()),2&Te){const Ce=n.\u0275\u0275nextContext();n.\u0275\u0275classMap(Ce.options.titleClass),n.\u0275\u0275attribute("aria-label",Ce.title),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",Ce.title," "),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",Ce.duplicatesCount)}}function f(Te,Pe){if(1&Te&&n.\u0275\u0275element(0,"div",7),2&Te){const Ce=n.\u0275\u0275nextContext();n.\u0275\u0275classMap(Ce.options.messageClass),n.\u0275\u0275property("innerHTML",Ce.message,n.\u0275\u0275sanitizeHtml)}}function b(Te,Pe){if(1&Te&&(n.\u0275\u0275elementStart(0,"div",8),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&Te){const Ce=n.\u0275\u0275nextContext();n.\u0275\u0275classMap(Ce.options.messageClass),n.\u0275\u0275attribute("aria-label",Ce.message),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",Ce.message," ")}}function v(Te,Pe){if(1&Te&&(n.\u0275\u0275elementStart(0,"div"),n.\u0275\u0275element(1,"div",9),n.\u0275\u0275elementEnd()),2&Te){const Ce=n.\u0275\u0275nextContext();n.\u0275\u0275advance(1),n.\u0275\u0275styleProp("width",Ce.width+"%")}}function m(Te,Pe){if(1&Te){const Ce=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"button",5),n.\u0275\u0275listener("click",function(){n.\u0275\u0275restoreView(Ce);const lt=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(lt.remove())}),n.\u0275\u0275elementStart(1,"span",6),n.\u0275\u0275text(2,"\xd7"),n.\u0275\u0275elementEnd()()}}function C(Te,Pe){if(1&Te&&(n.\u0275\u0275elementContainerStart(0),n.\u0275\u0275text(1),n.\u0275\u0275elementContainerEnd()),2&Te){const Ce=n.\u0275\u0275nextContext(2);n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1("[",Ce.duplicatesCount+1,"]")}}function M(Te,Pe){if(1&Te&&(n.\u0275\u0275elementStart(0,"div"),n.\u0275\u0275text(1),n.\u0275\u0275template(2,C,2,1,"ng-container",4),n.\u0275\u0275elementEnd()),2&Te){const Ce=n.\u0275\u0275nextContext();n.\u0275\u0275classMap(Ce.options.titleClass),n.\u0275\u0275attribute("aria-label",Ce.title),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",Ce.title," "),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",Ce.duplicatesCount)}}function O(Te,Pe){if(1&Te&&n.\u0275\u0275element(0,"div",7),2&Te){const Ce=n.\u0275\u0275nextContext();n.\u0275\u0275classMap(Ce.options.messageClass),n.\u0275\u0275property("innerHTML",Ce.message,n.\u0275\u0275sanitizeHtml)}}function P(Te,Pe){if(1&Te&&(n.\u0275\u0275elementStart(0,"div",8),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&Te){const Ce=n.\u0275\u0275nextContext();n.\u0275\u0275classMap(Ce.options.messageClass),n.\u0275\u0275attribute("aria-label",Ce.message),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",Ce.message," ")}}function N(Te,Pe){if(1&Te&&(n.\u0275\u0275elementStart(0,"div"),n.\u0275\u0275element(1,"div",9),n.\u0275\u0275elementEnd()),2&Te){const Ce=n.\u0275\u0275nextContext();n.\u0275\u0275advance(1),n.\u0275\u0275styleProp("width",Ce.width+"%")}}let Y=(()=>{class Te{constructor(Ce){this.el=Ce}getContainerElement(){return this.el.nativeElement}}return Te.\u0275fac=function(Ce){return new(Ce||Te)(n.\u0275\u0275directiveInject(n.ElementRef))},Te.\u0275dir=n.\u0275\u0275defineDirective({type:Te,selectors:[["","toastContainer",""]],exportAs:["toastContainer"]}),Te})(),U=(()=>{class Te{}return Te.\u0275fac=function(Ce){return new(Ce||Te)},Te.\u0275mod=n.\u0275\u0275defineNgModule({type:Te}),Te.\u0275inj=n.\u0275\u0275defineInjector({}),Te})();class G{constructor(Pe,Ce){this.component=Pe,this.injector=Ce}attach(Pe,Ce){return this._attachedHost=Pe,Pe.attach(this,Ce)}detach(){const Pe=this._attachedHost;if(Pe)return this._attachedHost=void 0,Pe.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(Pe){this._attachedHost=Pe}}class ${attach(Pe,Ce){return this._attachedPortal=Pe,this.attachComponentPortal(Pe,Ce)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(Pe){this._disposeFn=Pe}}class J{constructor(Pe,Ce,$e,lt,yt,_t){this.toastId=Pe,this.config=Ce,this.message=$e,this.title=lt,this.toastType=yt,this.toastRef=_t,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(Pe){this._onAction.next(Pe)}onAction(){return this._onAction.asObservable()}}const te={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},he=new n.InjectionToken("ToastConfig");class Fe{constructor(Pe){this._overlayRef=Pe,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(Pe,Ce){Pe&&this._resetTimeout.next(),Ce&&this._countDuplicate.next(++this.duplicatesCount)}}class it{constructor(Pe,Ce){this._toastPackage=Pe,this._parentInjector=Ce}get(Pe,Ce,$e){return Pe===J?this._toastPackage:this._parentInjector.get(Pe,Ce,$e)}}class be extends ${constructor(Pe,Ce,$e){super(),this._hostDomElement=Pe,this._componentFactoryResolver=Ce,this._appRef=$e}attachComponentPortal(Pe,Ce){const $e=this._componentFactoryResolver.resolveComponentFactory(Pe.component);let lt;return lt=$e.create(Pe.injector),this._appRef.attachView(lt.hostView),this.setDisposeFn(()=>{this._appRef.detachView(lt.hostView),lt.destroy()}),Ce?this._hostDomElement.insertBefore(this._getComponentRootNode(lt),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(lt)),lt}_getComponentRootNode(Pe){return Pe.hostView.rootNodes[0]}}class ke{constructor(Pe){this._portalHost=Pe}attach(Pe,Ce=!0){return this._portalHost.attach(Pe,Ce)}detach(){return this._portalHost.detach()}}let ie=(()=>{class Te{constructor(Ce){this._document=Ce}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const Ce=this._document.createElement("div");Ce.classList.add("overlay-container"),Ce.setAttribute("aria-live","polite"),this._document.body.appendChild(Ce),this._containerElement=Ce}}return Te.\u0275fac=function(Ce){return new(Ce||Te)(n.\u0275\u0275inject(u.DOCUMENT))},Te.\u0275prov=n.\u0275\u0275defineInjectable({token:Te,factory:Te.\u0275fac,providedIn:"root"}),Te})(),Ae=(()=>{class Te{constructor(Ce,$e,lt,yt){this._overlayContainer=Ce,this._componentFactoryResolver=$e,this._appRef=lt,this._document=yt,this._paneElements=new Map}create(Ce,$e){return this._createOverlayRef(this.getPaneElement(Ce,$e))}getPaneElement(Ce="",$e){return this._paneElements.get($e)||this._paneElements.set($e,{}),this._paneElements.get($e)[Ce]||(this._paneElements.get($e)[Ce]=this._createPaneElement(Ce,$e)),this._paneElements.get($e)[Ce]}_createPaneElement(Ce,$e){const lt=this._document.createElement("div");return lt.id="toast-container",lt.classList.add(Ce),lt.classList.add("toast-container"),$e?$e.getContainerElement().appendChild(lt):this._overlayContainer.getContainerElement().appendChild(lt),lt}_createPortalHost(Ce){return new be(Ce,this._componentFactoryResolver,this._appRef)}_createOverlayRef(Ce){return new ke(this._createPortalHost(Ce))}}return Te.\u0275fac=function(Ce){return new(Ce||Te)(n.\u0275\u0275inject(ie),n.\u0275\u0275inject(n.ComponentFactoryResolver),n.\u0275\u0275inject(n.ApplicationRef),n.\u0275\u0275inject(u.DOCUMENT))},Te.\u0275prov=n.\u0275\u0275defineInjectable({token:Te,factory:Te.\u0275fac,providedIn:"root"}),Te})(),oe=(()=>{class Te{constructor(Ce,$e,lt,yt,_t){this.overlay=$e,this._injector=lt,this.sanitizer=yt,this.ngZone=_t,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig=Object.assign(Object.assign({},Ce.default),Ce.config),Ce.config.iconClasses&&(this.toastrConfig.iconClasses=Object.assign(Object.assign({},Ce.default.iconClasses),Ce.config.iconClasses))}show(Ce,$e,lt={},yt=""){return this._preBuildNotification(yt,Ce,$e,this.applyConfig(lt))}success(Ce,$e,lt={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",Ce,$e,this.applyConfig(lt))}error(Ce,$e,lt={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",Ce,$e,this.applyConfig(lt))}info(Ce,$e,lt={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",Ce,$e,this.applyConfig(lt))}warning(Ce,$e,lt={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",Ce,$e,this.applyConfig(lt))}clear(Ce){for(const $e of this.toasts)if(void 0!==Ce){if($e.toastId===Ce)return void $e.toastRef.manualClose()}else $e.toastRef.manualClose()}remove(Ce){const $e=this._findToast(Ce);if(!$e||($e.activeToast.toastRef.close(),this.toasts.splice($e.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 lt=this.toasts[this.currentlyActive].toastRef;lt.isInactive()||(this.currentlyActive=this.currentlyActive+1,lt.activate())}return!0}findDuplicate(Ce="",$e="",lt,yt){const{includeTitleDuplicates:_t}=this.toastrConfig;for(const ut of this.toasts){const He=_t&&ut.title===Ce;if((!_t||He)&&ut.message===$e)return ut.toastRef.onDuplicate(lt,yt),ut}return null}applyConfig(Ce={}){return Object.assign(Object.assign({},this.toastrConfig),Ce)}_findToast(Ce){for(let $e=0;$e<this.toasts.length;$e++)if(this.toasts[$e].toastId===Ce)return{index:$e,activeToast:this.toasts[$e]};return null}_preBuildNotification(Ce,$e,lt,yt){return yt.onActivateTick?this.ngZone.run(()=>this._buildNotification(Ce,$e,lt,yt)):this._buildNotification(Ce,$e,lt,yt)}_buildNotification(Ce,$e,lt,yt){if(!yt.toastComponent)throw new Error("toastComponent required");const _t=this.findDuplicate(lt,$e,this.toastrConfig.resetTimeoutOnDuplicate&&yt.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&lt||$e)&&this.toastrConfig.preventDuplicates&&null!==_t)return _t;this.previousToastMessage=$e;let ut=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(ut=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const He=this.overlay.create(yt.positionClass,this.overlayContainer);this.index=this.index+1;let Ie=$e;$e&&yt.enableHtml&&(Ie=this.sanitizer.sanitize(n.SecurityContext.HTML,$e));const je=new Fe(He),pe=new J(this.index,yt,Ie,lt,Ce,je),Qe=new it(pe,this._injector),Ve=new G(yt.toastComponent,Qe),Ke=He.attach(Ve,this.toastrConfig.newestOnTop);je.componentInstance=Ke.instance;const K={toastId:this.index,title:lt||"",message:$e||"",toastRef:je,onShown:je.afterActivate(),onHidden:je.afterClosed(),onTap:pe.onTap(),onAction:pe.onAction(),portal:Ke};return ut||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{K.toastRef.activate()})),this.toasts.push(K),K}}return Te.\u0275fac=function(Ce){return new(Ce||Te)(n.\u0275\u0275inject(he),n.\u0275\u0275inject(Ae),n.\u0275\u0275inject(n.Injector),n.\u0275\u0275inject(r.DomSanitizer),n.\u0275\u0275inject(n.NgZone))},Te.\u0275prov=n.\u0275\u0275defineInjectable({token:Te,factory:Te.\u0275fac,providedIn:"root"}),Te})(),me=(()=>{class Te{constructor(Ce,$e,lt){this.toastrService=Ce,this.toastPackage=$e,this.ngZone=lt,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},this.message=$e.message,this.title=$e.title,this.options=$e.config,this.originalTimeout=$e.config.timeOut,this.toastClasses=`${$e.toastType} ${$e.config.toastClass}`,this.sub=$e.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=$e.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=$e.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=$e.toastRef.countDuplicate().subscribe(yt=>{this.duplicatesCount=yt})}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 Ce=(new Date).getTime();this.width=(this.hideTime-Ce)/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(Ce,$e){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(Ce),$e)):this.timeout=setTimeout(()=>Ce(),$e)}outsideInterval(Ce,$e){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(Ce),$e)):this.intervalId=setInterval(()=>Ce(),$e)}runInsideAngular(Ce){this.ngZone?this.ngZone.run(()=>Ce()):Ce()}}return Te.\u0275fac=function(Ce){return new(Ce||Te)(n.\u0275\u0275directiveInject(oe),n.\u0275\u0275directiveInject(J),n.\u0275\u0275directiveInject(n.NgZone))},Te.\u0275cmp=n.\u0275\u0275defineComponent({type:Te,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(Ce,$e){1&Ce&&n.\u0275\u0275listener("click",function(){return $e.tapToast()})("mouseenter",function(){return $e.stickAround()})("mouseleave",function(){return $e.delayedHideToast()}),2&Ce&&(n.\u0275\u0275syntheticHostProperty("@flyInOut",$e.state),n.\u0275\u0275classMap($e.toastClasses),n.\u0275\u0275styleProp("display",$e.displayStyle))},attrs:c,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(Ce,$e){1&Ce&&(n.\u0275\u0275template(0,d,3,0,"button",0),n.\u0275\u0275template(1,y,3,5,"div",1),n.\u0275\u0275template(2,f,1,3,"div",2),n.\u0275\u0275template(3,b,2,4,"div",3),n.\u0275\u0275template(4,v,2,2,"div",4)),2&Ce&&(n.\u0275\u0275property("ngIf",$e.options.closeButton),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",$e.title),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",$e.message&&$e.options.enableHtml),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",$e.message&&!$e.options.enableHtml),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",$e.options.progressBar))},dependencies:[u.NgIf],encapsulation:2,data:{animation:[(0,h.X$)("flyInOut",[(0,h.SB)("inactive",(0,h.oB)({opacity:0})),(0,h.SB)("active",(0,h.oB)({opacity:1})),(0,h.SB)("removed",(0,h.oB)({opacity:0})),(0,h.eR)("inactive => active",(0,h.jt)("{{ easeTime }}ms {{ easing }}")),(0,h.eR)("active => removed",(0,h.jt)("{{ easeTime }}ms {{ easing }}"))])]}}),Te})();const V=Object.assign(Object.assign({},te),{toastComponent:me});let H=(()=>{class Te{static forRoot(Ce={}){return{ngModule:Te,providers:[{provide:he,useValue:{default:V,config:Ce}}]}}}return Te.\u0275fac=function(Ce){return new(Ce||Te)},Te.\u0275mod=n.\u0275\u0275defineNgModule({type:Te}),Te.\u0275inj=n.\u0275\u0275defineInjector({imports:[[u.CommonModule]]}),Te})(),re=(()=>{class Te{static forRoot(Ce={}){return{ngModule:H,providers:[{provide:he,useValue:{default:te,config:Ce}}]}}}return Te.\u0275fac=function(Ce){return new(Ce||Te)},Te.\u0275mod=n.\u0275\u0275defineNgModule({type:Te}),Te.\u0275inj=n.\u0275\u0275defineInjector({imports:[[u.CommonModule]]}),Te})(),B=(()=>{class Te{constructor(Ce,$e,lt){this.toastrService=Ce,this.toastPackage=$e,this.appRef=lt,this.width=-1,this.toastClasses="",this.state="inactive",this.message=$e.message,this.title=$e.title,this.options=$e.config,this.originalTimeout=$e.config.timeOut,this.toastClasses=`${$e.toastType} ${$e.config.toastClass}`,this.sub=$e.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=$e.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=$e.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=$e.toastRef.countDuplicate().subscribe(yt=>{this.duplicatesCount=yt})}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 Ce=(new Date).getTime();this.width=(this.hideTime-Ce)/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 Te.\u0275fac=function(Ce){return new(Ce||Te)(n.\u0275\u0275directiveInject(oe),n.\u0275\u0275directiveInject(J),n.\u0275\u0275directiveInject(n.ApplicationRef))},Te.\u0275cmp=n.\u0275\u0275defineComponent({type:Te,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(Ce,$e){1&Ce&&n.\u0275\u0275listener("click",function(){return $e.tapToast()})("mouseenter",function(){return $e.stickAround()})("mouseleave",function(){return $e.delayedHideToast()}),2&Ce&&(n.\u0275\u0275classMap($e.toastClasses),n.\u0275\u0275styleProp("display",$e.displayStyle))},attrs:c,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(Ce,$e){1&Ce&&(n.\u0275\u0275template(0,m,3,0,"button",0),n.\u0275\u0275template(1,M,3,5,"div",1),n.\u0275\u0275template(2,O,1,3,"div",2),n.\u0275\u0275template(3,P,2,4,"div",3),n.\u0275\u0275template(4,N,2,2,"div",4)),2&Ce&&(n.\u0275\u0275property("ngIf",$e.options.closeButton),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",$e.title),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",$e.message&&$e.options.enableHtml),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",$e.message&&!$e.options.enableHtml),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",$e.options.progressBar))},dependencies:[u.NgIf],encapsulation:2}),Te})();const ue=Object.assign(Object.assign({},te),{toastComponent:B});let ge=(()=>{class Te{static forRoot(Ce={}){return{ngModule:Te,providers:[{provide:he,useValue:{default:ue,config:Ce}}]}}}return Te.\u0275fac=function(Ce){return new(Ce||Te)},Te.\u0275mod=n.\u0275\u0275defineNgModule({type:Te}),Te.\u0275inj=n.\u0275\u0275defineInjector({imports:[[u.CommonModule]]}),Te})()},4147:z=>{"use strict";z.exports=JSON.parse('{"name":"@sdkgen/playground","version":"0.0.0-dev.20230217120503","description":"","main":"index.js","types":"index.d.ts","repository":{"type":"git","url":"git+https://github.com/sdkgen/sdkgen.git"},"publishConfig":{"access":"public"},"scripts":{"eslint:fix":"eslint --fix \'src/**/*.{t,j}s\'","eslint:check":"eslint \'src/**/*.{t,j}s\'","ng":"ng","start":"ng serve","build":"ng build","build:stats":"ng build --stats-json","analyze":"webpack-bundle-analyzer dist/stats.json","watch":"ng build --watch --configuration development"},"dependencies":{},"devDependencies":{"@angular-devkit/build-angular":"~14.1.0","@angular/animations":"~14.1.0","@angular/cdk":"~14.1.0","@angular/cli":"~14.1.0","@angular/common":"~14.1.0","@angular/compiler":"~14.1.0","@angular/compiler-cli":"~14.1.0","@angular/core":"~14.1.0","@angular/forms":"~14.1.0","@angular/material":"~14.1.0","@angular/platform-browser":"~14.1.0","@angular/platform-browser-dynamic":"~14.1.0","@angular/router":"~14.1.0","@cubos/eslint-config":"^2.0.0","@materia-ui/ngx-monaco-editor":"^6.0.0","@sdkgen/browser-runtime":"file:../browser-runtime","@sdkgen/csharp-generator":"file:../csharp-generator","@sdkgen/dart-generator":"file:../dart-generator","@sdkgen/fsharp-generator":"file:../fsharp-generator","@sdkgen/kotlin-generator":"file:../kotlin-generator","@sdkgen/parser":"file:../parser","@sdkgen/swift-generator":"file:../swift-generator","@sdkgen/typescript-generator":"file:../typescript-generator","@types/file-saver":"^2.0.5","@types/node":"^16.0.0","angular-split":"^14.0.0","file-saver":"^2.0.5","json":"^11.0.0","monaco-editor":"^0.33.0","ngx-json-viewer":"^3.0.2","ngx-toastr":"^14.3.0","rxjs":"~7.5.5","tslib":"^2.2.0","typescript":"~4.7.0","webpack-bundle-analyzer":"^4.5.0","zone.js":"~0.11.5"}}')}},z=>{z(z.s=4431)}]);