1import{a as S,b as J,e as En,f as Kt,i as Te,j as ot,k as je}from"./chunk-W4BNGQYG.js";import{a as ze}from"./chunk-7JYDW3JE.js";import{a as vn,b as ge}from"./chunk-VTOZJYWO.js";import{a as qt}from"./chunk-GGGKY4ZL.js";import{a as rt}from"./chunk-D2FQ7XGU.js";import"./chunk-SHXV7OEZ.js";import"./chunk-VSGJ6TW3.js";import"./chunk-VFYKRPLX.js";import"./chunk-MWT3VHV5.js";import{a as Sn,b as st}from"./chunk-TJPLC6BI.js";import"./chunk-XG3WD4KD.js";import"./chunk-67CQE4GX.js";import"./chunk-W4YIALSM.js";import{a as _n}from"./chunk-22O6SAFU.js";import{a as it}from"./chunk-ACJRRKHW.js";import{$a as gn,D as Xi,Da as cn,E as Zi,Ea as un,Fa as mn,G as pe,J as en,K as tn,Mb as fe,Oa as dn,Pa as pn,Qa as hn,R as nn,Ra as nt,S as rn,T as an,Ua as fn,ba as ln,e as Hi,h as de,kb as yn,nb as Kr,o as Gi,v as Ze,w as Wi,x as Yi,y as Ji}from"./chunk-BXNZQW2D.js";import{a as sn,b as et,d as on,f as he,g as tt}from"./chunk-QB5NFKQE.js";import{Ab as me,Ac as Fe,Bb as x,Cb as We,Db as Ye,Dc as ji,Ec as qi,Fc as Je,Gb as Di,Gc as Ft,Hb as Ni,Hc as Ki,Ib as ki,Ic as Bi,Ja as Ot,Kc as Vi,Lb as xe,Lc as Xe,Mb as T,Mc as zt,Nc as ke,Ob as Ne,Oc as Qi,Pc as $i,Qa as P,Qc as Ui,Rc as jt,Sa as Pi,Ua as ne,Vb as xt,Za as H,_a as re,a as De,ac as Ii,b as Ci,c as wi,cc as Ri,d as jr,db as K,ea as A,f as qr,ga as j,h as M,ha as ie,ja as q,jb as G,ka as le,lc as Li,ob as $,qc as Oi,ra as ce,sa as ue,sb as E,tb as v,ub as Y,va as Ge,wc as xi,yb as Ee,yc as Fi,za as Mi,zc as zi}from"./chunk-SPB3D6FE.js";var Dr=jr((vi,Si)=>{"use strict";(function(n,e){typeof vi=="object"&&typeof Si<"u"?Si.exports=e(Kr()):typeof define=="function"&&define.amd?define(["dayjs"],e):n.dayjs_locale_pt_br=e(n.dayjs)})(vi,function(n){"use strict";n=n&&n.hasOwnProperty("default")?n.default:n;var e={name:"pt-br",weekdays:"Domingo_Segunda-feira_Ter\xE7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xE1bado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xE1b".split("_"),weekdaysMin:"Do_2\xAA_3\xAA_4\xAA_5\xAA_6\xAA_S\xE1".split("_"),months:"Janeiro_Fevereiro_Mar\xE7o_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),ordinal:function(t){return t+"\xBA"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xE0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xE0s] HH:mm"},relativeTime:{future:"em %s",past:"h\xE1 %s",s:"poucos segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xEAs",MM:"%d meses",y:"um ano",yy:"%d anos"}};return n.locale(e,null,!0),e})});function Tn(n,e){return M(this,null,function*(){let t=le(he),i=le(ke);yield t.ready;let r=yield t.checkLoginAndTryRefresh(),s=n.children[0]?.component==e;if(s)return r?!0:i.parseUrl("/login");if(!s){if(r){let o=t.getExternalProviderState();if(o){let a=JSON.parse(decodeURIComponent(o));if(a.redirectUri)return i.parseUrl(a.redirectUri)}return i.parseUrl("/u")}return!0}return!0})}function Bt(n){return M(this,null,function*(){return yield Tn(n,rt)})}var $r=["avisoDenunciaDialogTemplate"],Ur=()=>["atendimentos","reclamacoes","criar"],Hr=()=>["atendimentos","denuncias","criar"];function Gr(n,e){n&1&&(E(0,"a",15)(1,"mat-icon"),T(2,"sync_problem"),v(),T(3," Recalls "),v())}function Wr(n,e){n&1&&(E(0,"a",16)(1,"mat-icon"),T(2,"verified"),v(),T(3," Consultar empresa verificada "),v())}function Yr(n,e){if(n&1){let t=Ee();E(0,"button",17,5),me("click",function(){ce(t);let r=x();return ue(r.mostrarAvisoDeDenuncia())}),E(2,"mat-icon",18),T(3,"campaign"),v(),T(4," Den\xFAncia "),v()}}function Jr(n,e){if(n&1){let t=Ee();E(0,"h2",19),T(1,"Aten\xE7\xE3o!"),v(),E(2,"mat-dialog-content"),T(3," Para atendimento individual, como por exemplo a entrega de produto ou execu\xE7\xE3o de servi\xE7o, "),E(4,"a",20),me("click",function(){ce(t);let r=x();return ue(r.dddSpGovBrAlertDialoService.verificarAndAbrirAsync())}),T(5,"clique aqui"),v(),T(6,". "),Y(7,"br")(8,"br"),T(9," Para denunciar um fornecedor para a Diretoria de Fiscaliza\xE7\xE3o, "),E(10,"a",21),me("click",function(){ce(t);let r=x();return ue(r.dddSpGovBrAlertDialoService.verificarAndAbrirAsync())}),T(11,"clique aqui"),v(),T(12,". "),Y(13,"br")(14,"br"),T(15," Os protocolos cadastrados como den\xFAncia s\xE3o direcionados para a Diretoria de Fiscaliza\xE7\xE3o, c
1om objetivo de constatar irregularidades frente ao C\xF3digo de Defesa do Consumidor, sem atendimento individual. "),v()}if(n&2){let t=x();P(4),G("disableRipple",!0)("relativeTo",t.route)("routerLink",xt(5,Ur)),P(6),G("relativeTo",t.route)("routerLink",xt(6,Hr))}}var An=(()=>{class n{constructor(t,i,r,s){this.route=t,this.versaoService=i,this.matDialog=r,this.router=s,this.endpointService=le(tt),this.podeAbrirDenuncia=!1,this.TipoDeAtendimentoExtendido=ge,this.dddSpGovBrAlertDialoService=le(vn),this.tiposOptions=[{text:"Reclama\xE7\xE3o",color:"reclamacao",value:ge.Cip,marcado:!0,cssId:"opt-color-reclamacao"},{text:"Consulta",color:"primary",value:ge.Consulta,marcado:!0,cssId:"opt-color-consulta"},{text:"Processo administrativo",color:"processo",value:ge.ProcessoAdministrativo,marcado:!0,cssId:"opt-color-processo"},{text:"Den\xFAncia",color:"denuncia",value:ge.Denuncia,marcado:!0,cssId:"opt-color-denuncia"},{text:"Superendividado",value:ge.ApoioSuperendividado,marcado:!0,cssId:"opt-color-superendividado"}],this.mostrarSuperendividado=!1,i.pronto.then(()=>this.features=i.info?.features??void 0)}mostrarAvisoDeDenuncia(){pe.isDefined(this.avisoDenunciaDialogTemplate)&&this.matDialog.open(this.avisoDenunciaDialogTemplate,{width:"480px"})}ngOnInit(){return M(this,null,function*(){this.pessoa=yield this.endpointService.requestAsync(new _n);let t=isNaN(this.pessoa.idade)||this.pessoa.idade>=18;this.podeAbrirDenuncia=t,this.mostrarSuperendividado=this.versaoService.info?.features?.superendividado??!1,this.mostrarSuperendividado||(this.tiposOptions=this.tiposOptions.filter(i=>i.value!=ge.ApoioSuperendividado))})}criarSuperendividado(){return M(this,null,function*(){yield this.router.navigate(["atendimentos","superendividados","instrucoes"],{relativeTo:this.route})})}abrirAvisoSuperendividado(){return M(this,null,function*(){})}static{this.\u0275fac=function(i){return new(i||n)(ne(Vi),ne(it),ne(Ze),ne(ke))}}static{this.\u0275cmp=H({type:n,selectors:[["ng-component"]],viewQuery:function(i,r){if(i&1&&Di($r,5),i&2){let s;Ni(s=ki())&&(r.avisoDenunciaDialogTemplate=s.first)}},decls:27,vars:7,consts:[["rlaAtendimentos","routerLinkActive"],["rlaNaoMeLigue","routerLinkActive"],["menu","matMenu"],["tabPanelParaServicos",""],["avisoDenunciaDialogTemplate",""],["tooltip","matTooltip"],["mat-tab-nav-bar","","mat-stretch-tabs","false","mat-align-tabs","start",1,"bg-white",3,"tabPanel"],["mat-tab-link","","routerLinkActive","","routerLink","atendimentos",1,"text-primary","!opacity-100","md:text-lg",3,"active"],["mat-tab-link","","routerLinkActive","","routerLink","nao-me-ligue",1,"md:text-lg",3,"active"],["mat-tab-link","",1,"md:text-lg",3,"matMenuTriggerFor"],[1,"flex","items-center","justify-center"],["mat-menu-item","","routerLink","recalls",4,"ngIf"],["mat-menu-item","","routerLink","consultar-empresa-verificada",4,"ngIf"],["mat-menu-item","","routerLink","consultar-cvd","matTooltip","Certid\xE3o de Viola\xE7\xE3o aos Direitos do Consumidor","matTooltipPosition","right"],["mat-menu-item","","matTooltipClass","text-sm","matTooltip","Aten\xE7\xE3o! Para solucionar um problema individual, como por exemplo a entrega de produto ou execu\xE7\xE3o de servi\xE7o, selecione a op\xE7\xE3o + Novo Atendimento/Reclama\xE7\xE3o.","matTooltipPosition","right",3,"click",4,"ngIf"],["mat-menu-item","","routerLink","recalls"],["mat-menu-item","","routerLink","consultar-empresa-verificada"],["mat-menu-item","","matTooltipClass","text-sm","matTooltip","Aten\xE7\xE3o! Para solucionar um problema individual, como por exemplo a entrega de produto ou execu\xE7\xE3o de servi\xE7o, selecione a op\xE7\xE3o + Novo Atendimento/Reclama\xE7\xE3o.","matTooltipPosition","right",3,"click"],[1,"!text-red-900"],["mat-dialog-title",""],["mat-dialog-close","","mat-button","","color","primary",1,"!px-2",3,"click","disableRipple","relativeTo","routerLink"],["mat-button","","mat-dialog-close","","color","primary",1,"!px-2",3,"click","relativeTo","routerLink"]],template:function(i,r){if(i&1&&(E(0,"nav",6)(1,"a",7,0),T(3," Meus atendimentos "),v(),E(4,"a",8,1),T(6," N\xE3o me ligue "),v(),E(7,"a",9)(8,"div",10),T(9," Outros servi\xE7os "),E(10,"mat-icon"),T(11,"arrow_drop_down"),v()()(),E(12,"mat-menu",null,2),K(14,Gr,4,0,"a",11)(15,Wr,4,0,"a",12),E(16,"a",13)(17,"mat-icon"),T(18,"fact_check"),v(
1),T(19," Consultar CVD "),v(),Y(20,"mat-divider"),K(21,Yr,5,0,"button",14),v()(),E(22,"mat-tab-nav-panel",null,3),Y(24,"router-outlet"),v(),K(25,Jr,16,7,"ng-template",null,4,Ii)),i&2){let s=xe(2),o=xe(5),a=xe(13),l=xe(23);G("tabPanel",l),P(),G("active",s.isActive),P(3),G("active",o.isActive),P(3),G("matMenuTriggerFor",a),P(7),G("ngIf",r.features==null?null:r.features.recall),P(),G("ngIf",r.features==null?null:r.features.seloEmpresaVerificada),P(6),G("ngIf",r.podeAbrirDenuncia)}},dependencies:[fe,Zi,Wi,Yi,Ji,ln,gn,pn,dn,hn,cn,mn,un,an,Oi,Xe,Qi,$i],encapsulation:2})}}return n})();var Cn=[{path:":reclamacaoId/completar-cadastro",loadComponent:()=>import("./chunk-THCKJQAG.js"),data:{fluxoCompletarCadastro:!0}},{path:"",loadComponent:()=>import("./chunk-UPQF2EJA.js").then(n=>n.ReclamacaoEditarPageComponent),children:[{path:":reclamacaoId",redirectTo:":reclamacaoId/identificacao"},{path:":reclamacaoId/identificacao",loadComponent:()=>import("./chunk-C2ZMDJ2I.js").then(n=>n.IdentificacaoComponent),canDeactivate:[ze]},{path:":reclamacaoId/detalhes",loadComponent:()=>import("./chunk-BYU4JYWI.js").then(n=>n.DetalhesComponent),canDeactivate:[ze]},{path:":reclamacaoId/reclamacao",loadComponent:()=>import("./chunk-KWIV6HCC.js").then(n=>n.ReclamacaoComponent),canDeactivate:[ze]},{path:":reclamacaoId/anexos",loadComponent:()=>import("./chunk-KNDBEGHJ.js").then(n=>n.AnexosComponent),canDeactivate:[ze]},{path:":reclamacaoId/finalizar",loadComponent:()=>import("./chunk-N7DEGJFV.js").then(n=>n.FinalizarComponent)}]}];var wn=[{path:"",component:rt,children:[{path:"",component:An,children:[{path:"",redirectTo:"atendimentos",pathMatch:"full"},{path:"atendimentos",title:"Meus atendimentos",loadComponent:()=>import("./chunk-6WCO3CFT.js")},{path:"nao-me-ligue",loadComponent:()=>import("./chunk-FLRRYE6X.js").then(n=>n.NaoMeLiguePageComponent)}]},{path:"atendimentos/consultas/criar",title:"Criar consulta",loadComponent:()=>import("./chunk-K32FSDVA.js")},{path:"atendimentos/consultas/:id/acompanhar",title:"Acompanhar consulta",loadComponent:()=>import("./chunk-H37ZNGSC.js")},{path:"atendimentos/consultas/:id/acompanhar/denuncias/criar",loadChildren:()=>import("./chunk-RK63TKSK.js").then(n=>n.CriarDenunciaModule)},{path:"atendimentos/consultas/:id/criar-nova",loadComponent:()=>import("./chunk-K32FSDVA.js")},{path:"atendimentos/denuncias/:id/acompanhar",title:"Acompanhar den\xFAncia",loadComponent:()=>import("./chunk-57ASM2IO.js").then(n=>n.AcompanharDenunciaComponent)},{path:"atendimentos/ocorrencias-nao-me-ligue/:id/acompanhar",title:"Detalhes da ocorr\xEAncia - N\xE3o Me Ligue",loadComponent:()=>import("./chunk-KXXSGYR6.js").then(n=>n.AcompanharOcorrenciaNaoMeLiguePageComponent)},{path:"processos-administrativos/:id/acompanhar",title:"Detalhes do processo administrativo",loadComponent:()=>import("./chunk-6UZYUKQ4.js").then(n=>n.AcompanharProcessoComponent)},{path:"atendimentos/superendividados",loadChildren:()=>import("./chunk-YVJRCCH3.js").then(n=>n.SuperEndividadosModule)},{path:"atendimentos/superendividados/:id/acompanhar",loadChildren:()=>import("./chunk-ZDKSEOWQ.js").then(n=>n.AcompanharSuperEndividadosModule)},{path:"atendimentos/reclamacoes/criar",title:"Registrar reclama\xE7\xE3o",loadChildren:()=>import("./chunk-UFGCYPTI.js").then(n=>n.CriarRascunhoModule)},{path:"atendimentos/reclamacoes/criar-para-consumidor-pj",loadChildren:()=>import("./chunk-MO4CHYGF.js").then(n=>n.CriarRascunhoParaPjModule)},{path:"atendimentos/reclamacoes/:id/acompanhar",title:"Detalhes da reclama\xE7\xE3o",loadComponent:()=>import("./chunk-5LNWUXDR.js").then(n=>n.AcompanharReclamacaoComponent)},{path:"atendimentos/reclamacoes/:id/acompanhar/denuncias/criar",loadChildren:()=>import("./chunk-RK63TKSK.js").then(n=>n.CriarDenunciaModule),data:{ehCip:!0}},{path:"atendimentos/reclamacoes",children:Cn},{path:"atendimentos/denuncias/criar",loadChildren:()=>import("./chunk-RK63TKSK.js").then(n=>n.CriarDenunciaModule)},{path:"conta/cadastro",loadComponent:()=>import("./chunk-THCKJQAG.js")},{path:"consultar-empresa-verificada",loadComponent:()=>import("./chunk-HRAULBY5.js")},{path:"consultar-cvd",title:"Certid\xE3o de Viola\xE7\xE3o aos Direitos do Consumidor",loadComponent:()=>import("./chunk-375BAHFR.js").then(n=>n.ConsultarCvdPageComponent)},{path:"nao-me-ligue/:id/criar-ocorrencia",loadChildren:()=>import("./chunk-6K2SFOIH.js").then(n=>n.OcorrenciaNaoMeLigueModule)},{path:"recalls",loadChildren:()=>import("./chunk-SQYHWKH5.js").then(n=>n.RecallsModule)},{path:"recalls/:recallId/detalhes",loadChildren:()=>import("./chunk-DHIEFND2.js").then(n=>n.DetalhesDoRecallModule)}]}];var Xr=[{path:"login",title:"Login",loadComponent:()=>import("./chunk-IO7N376X.js"),canActivate:[Bt]},{path:"authentication/login-callback",loadComponent:()=>import("./chunk-BBC4QIXK.js").then(n=>n.LoginCallbackComponent),title:"Login Callback"},{path:"u",children:wn,canActivate:[Bt]},{path:"**",redirectTo:"login"}],Mn=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=re({type:n})}static{this.\u0275inj=ie({imports:[jt.forRoot(Xr,{preloadingStrategy:Ui}),jt]})}}return n})();var es=["*"];function ts(n,e){if(n&1&&(E(0,"div",0)(1,"h2"),T(2," Aplica\xE7\xE3o em configura\xE7\xE3o. "),v(),E(3,"div"),T(4," Corrija o problema abaixo e recarregue a p\xE1gina. "),v(),E(5,"div",1),T(6),v()()),n&2){let t=x();P(6),Ne(" ",t.erroAoCarregarConfiguracoes," ")}}function is(n,e){n&1&&Ye(0)}var Pn=(()=>{class n{constructor(t){this.config=t,this.erroAoCarregarConfiguracoes=""}
1ngOnInit(){return M(this,null,function*(){try{yield this.config.configuracoesCarregadas}catch(t){this.erroAoCarregarConfiguracoes=t}})}static{this.\u0275fac=function(i){return new(i||n)(ne(et))}}static{this.\u0275cmp=H({type:n,selectors:[["carregamento-configuracoes"]],standalone:!1,ngContentSelectors:es,decls:2,vars:1,consts:[[1,"app-stack","app-padding"],[1,"text-danger"]],template:function(i,r){i&1&&(We(),K(0,ts,7,1,"div",0)(1,is,1,0)),i&2&&$(r.erroAoCarregarConfiguracoes?0:1)},encapsulation:2})}}return n})();function ss(n,e){if(n&1&&(E(0,"div",0)(1,"div",2),T(2),v()()),n&2){let t=x();P(2),Ne(" ",t.versaoService.info.tarja," ")}}function os(n,e){n&1&&(E(0,"div",1),T(1," Se necess\xE1rio, altere a inst\xE2ncia de dynamics no Program.cs "),v())}var at=(()=>{class n{constructor(t,i){this.versaoService=t,this.httpClient=i,this.dynamics=localStorage.getItem("x-dynamics")??"1"}onChange(){localStorage.setItem("x-dynamics",this.dynamics),this.httpClient.post("api/change-dyn",{dynamics:this.dynamics}).subscribe(()=>setTimeout(()=>window.location.reload(),5e3))}static{this.\u0275fac=function(i){return new(i||n)(ne(it),ne(Je))}}static{this.\u0275cmp=H({type:n,selectors:[["cons-tarja"]],decls:2,vars:2,consts:[[1,"fixed","-left-6","top-3","pointer-events-none","z-10"],[1,"fixed","bottom-0","left-0"],[1,"bg-red-600","-rotate-45","px-8","text-white"]],template:function(i,r){i&1&&K(0,ss,3,1,"div",0)(1,os,2,0,"div",1),i&2&&($(r.versaoService.info!=null&&r.versaoService.info.tarja?0:-1),P(),$(r.versaoService.info!=null&&r.versaoService.info.debug?1:-1))},dependencies:[xi,Gi],encapsulation:2})}}return n})();var ls=["*"];function cs(n,e){n&1&&Y(0,"mat-progress-spinner",3),n&2&&G("diameter",40)}function us(n,e){if(n&1){let t=Ee();E(0,"button",6),me("click",function(){ce(t);let r=x(2);return ue(r.tentarNovamente())}),T(1,"Tentar agora"),v()}}function ms(n,e){if(n&1&&(E(0,"div"),T(1),v()),n&2){let t=x(2);P(),Ne(" ",t.tryingPhrases[t.retryCount%t.tryingPhrases.length]," ")}}function ds(n,e){n&1&&(E(0,"div"),T(1," N\xE3o foi poss\xEDvel entrar no sistema. Tente novamente mais tarde. "),v())}function ps(n,e){if(n&1&&(E(0,"div",0),Y(1,"img",1),E(2,"div",2),K(3,cs,1,1,"mat-progress-spinner",3)(4,us,2,0,"button",4),v(),E(5,"div",5),K(6,ms,2,1,"div")(7,ds,2,0,"div"),v()()),n&2){let t=x();P(3),$(t.retryCount?3:-1),P(),$(t.retryCount?-1:4),P(2),$(t.retryCount?6:-1),P(),$(t.retryCount?-1:7)}}function hs(n,e){n&1&&Ye(0)}var lt=(()=>{class n{constructor(){this.service=le(he),this.ready=!1,this.tryingPhrases=["Carregando...","Mais um momento...","Aguarde um momento..."],this.retryCount=3}
1ngOnInit(){this.configureAuth()}tentarNovamente(){this.retryCount=3,this.configureAuth()}configureAuth(){return M(this,null,function*(){try{yield this.service.configureAuth(),this.ready=!0}catch{this.retryCount>0&&setTimeout(()=>{this.retryCount--,this.configureAuth()},5e3)}})}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=H({type:n,selectors:[["shrd-auth-config-wall"]],ngContentSelectors:ls,decls:2,vars:1,consts:[[1,"flex","flex-col","items-center","justify-center","h-full"],["width","300px","src","./assets/logo-digital.jpg","alt","Logo do ProconSP"],[1,"app-padding"],["mode","indeterminate",3,"diameter"],["mat-button","","color","primary"],[1,"app-padding","text-center"],["mat-button","","color","primary",3,"click"]],template:function(i,r){i&1&&(We(),K(0,ps,8,4,"div",0)(1,hs,1,0)),i&2&&$(r.ready?1:0)},dependencies:[tn,en],encapsulation:2})}}return n})();function gs(n,e){if(n&1){let t=Ee();E(0,"div",0)(1,"div",1)(2,"div"),T(3,"Usamos cookies para auxiliar e melhorar sua navega\xE7\xE3o em nosso site. Ao continuar a usar este site, voc\xEA concorda com o uso que fazemos dos cookies."),v(),E(4,"button",2),me("click",function(){ce(t);let r=x();return ue(r.aceitar())}),T(5,"Continuar"),v()()()}}var ct=(()=>{class n{constructor(){this.termoKey="termoCookies"}get aceito(){return localStorage.getItem(this.termoKey)=="true"}aceitar(){return localStorage.setItem(this.termoKey,"true")}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=H({type:n,selectors:[["termo-cookies"]],decls:1,vars:1,consts:[[1,"cookies-container","bg-gray-100","border","border-black","text-black","px-3","py-2","rounded"],[1,"flex","flex-row","justify-end","md:justify-between","py-3","px-3","!items-center","flex-wrap","md:flex-nowrap","gap-3"],["mat-stroked-button","","color","primary",1,"!min-w-[122px]","uppercase",3,"click"]],template:function(i,r){i&1&&K(0,gs,6,0,"div",0),i&2&&$(r.aceito?-1:0)},dependencies:[fe,Xi],styles:[".cookies-container[_ngcontent-%COMP%]{position:fixed;bottom:10px;left:10px;right:10px;z-index:40}"]})}}return n})();var Dn=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=H({type:n,selectors:[["cons-app-root"]],standalone:!1,decls:5,vars:0,template:function(i,r){i&1&&(E(0,"carregamento-configuracoes")(1,"shrd-auth-config-wall"),Y(2,"router-outlet"),v()(),Y(3,"cons-tarja")(4,"termo-cookies"))},dependencies:[Xe,Pn,at,lt,ct],styles:[".preparando[_ngcontent-%COMP%]{display:flex;flex-flow:column;justify-content:center;align-items:center;height:100%}"]})}}return n})();var Nn=function(){function n(){}return n}();var kn=(()=>{class n{constructor(t,i,r){this.http=t,this.authService=i,this.sharedConfig=r}request(t,i,r,s,o){return M(this,null,function*(){yield this.sharedConfig.configuracoesCarregadas,yield this.authService.ready,yield this.authService.checkLoginAndTryRefresh();try{let a=this.http.request(t,this.sharedConfig.backendUrl+i,{body:s,params:r,reportProgress:!!o?.watcher,observe:o?.watcher?"events":void 0}),l;return yield new Promise((c,m)=>{a.subscribe({next:u=>{if(l=u,u?.type==ji.UploadProgress){let _=Math.round(100*(u.loaded/u.total));console.log(_),o?.watcher.next(_)}},complete:()=>c(l),error:u=>m(u)})})}catch(a){throw this.reloadToLoginIfUnauthorized(a),a}})}reloadToLoginIfUnauthorized(t){if(t instanceof qi){if(t.error?.shouldReauthenticate){this.authService.logout(),location.reload();return}t.status==401&&(this.authService.logout(),location.reload())}}static{this.\u0275fac=function(i){return new(i||n)(q(Je),q(he),q(et))}}static{this.\u0275prov=j({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();function In(n){return new A(3e3,!1)}function _s(){return new A(3100,!1)}function vs(){return new A(3101,!1)}function Ss(n){return new A(3001,!1)}function Es(n){return new A(3003,!1)}function Ts(n){return new A(3004,!1)}function Ln(n,e){return new A(3005,!1)}function On(){return new A(3006,!1)}function xn(){return new A(3007,!1)}function Fn(n,e){return new A(3008,!1)}function zn(n){return new A(3002,!1)}function jn(n,e,t,i,r){return new A(3010,!1)}function qn(){return new A(3011,!1)}function Kn(){return new A(3012,!1)}function Bn(){return new A(3200,!1)}function Vn(){return new A(3202,!1)}function Qn(){return new A(3013,!1)}function $n(n){return new A(3014,!1)}function Un(n){return new A(3015,!1)}function Hn(n){return new A(3016,!1)}function Gn(n,e){return new A(3404,!1)}function bs(n){return new A(3502,!1)}function Wn(n){return new A(3503,!1)}function Yn(){return new A(3300,!1)}function Jn(n){return new A(3504,!1)}function Xn(n){return new A(3301,!1)}function Zn(n,e){return new A(3302,!1)}function er(n){return new A(3303,!1)}function tr(n,e){return new A(3400,!1)}function ir(n){return new A(3401,!1)}function nr(n){return new A(3402,!1)}function rr(n,e){return new A(3505,!1)}function oe(n){switch(n.length){case 0:return new Te;case 1:return n[0];default:return new ot(n)}}function Ut(n,e,t=new Map,i=new Map){let r=[],s=[],o=-1,a=null;if(e.forEach(l=>{let c=l.get("offset"),m=c==o,u=m&&a||new Map;l.forEach((_,y)=>{let p=y,g=_;if(y!=="offset")switch(p=n.normalizePropertyName(p,r),g){case je:g=t.get(y);break;case J:g=i.get(y);break;default:g=n.normalizeStyleValue(y,p,g,r);break}u.set(p,g)}),m||s.push(u),a=u,o=c}),r.length)throw bs(r);return s}function ut(n,e,t,i){switch(e){case"start":n.onStart(()=>i(t&&Vt(t,"start",n)));break;case"done":n.onDone(()=>i(t&&Vt(t,"done",n)));break;
vendor: 50,623 bytes, line 1
1case"destroy":n.onDestroy(()=>i(t&&Vt(t,"destroy",n)));break}}function Vt(n,e,t){let i=t.totalTime,r=!!t.disabled,s=mt(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,i??n.totalTime,r),o=n._data;return o!=null&&(s._data=o),s}function mt(n,e,t,i,r="",s=0,o){return{element:n,triggerName:e,fromState:t,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function B(n,e,t){let i=n.get(e);return i||n.set(e,i=t),i}function Ht(n){let e=n.indexOf(":"),t=n.substring(1,e),i=n.slice(e+1);return[t,i]}var As=typeof document>"u"?null:document.documentElement;function dt(n){let e=n.parentNode||n.host||null;return e===As?null:e}function Cs(n){return n.substring(1,6)=="ebkit"}var be=null,Rn=!1;function sr(n){be||(be=ws()||{},Rn=be.style?"WebkitAppearance"in be.style:!1);let e=!0;return be.style&&!Cs(n)&&(e=n in be.style,!e&&Rn&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in be.style)),e}function ws(){return typeof document<"u"?document.body:null}function Gt(n,e){for(;e;){if(e===n)return!0;e=dt(e)}return!1}function Wt(n,e,t){if(t)return Array.from(n.querySelectorAll(e));let i=n.querySelector(e);return i?[i]:[]}var Ms=1e3,Yt="{{",Ps="}}",Jt="ng-enter",pt="ng-leave",qe="ng-trigger",Ke=".ng-trigger",Xt="ng-animating",ht=".ng-animating";function se(n){if(typeof n=="number")return n;let e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Qt(parseFloat(e[1]),e[2])}function Qt(n,e){switch(e){case"s":return n*Ms;default:return n}}function Be(n,e,t){return n.hasOwnProperty("duration")?n:Ds(n,e,t)}function Ds(n,e,t){let i=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,r,s=0,o="";if(typeof n=="string"){let a=n.match(i);if(a===null)return e.push(In(n)),{duration:0,delay:0,easing:""};r=Qt(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(s=Qt(parseFloat(l),a[4]));let c=a[5];c&&(o=c)}else r=n;if(!t){let a=!1,l=e.length;r<0&&(e.push(_s()),a=!0),s<0&&(e.push(vs()),a=!0),a&&e.splice(l,0,In(n))}return{duration:r,delay:s,easing:o}}function or(n){return n.length?n[0]instanceof Map?n:n.map(e=>new Map(Object.entries(e))):[]}function X(n,e,t){e.forEach((i,r)=>{let s=ft(r);t&&!t.has(r)&&t.set(r,n.style[s]),n.style[s]=i})}function ye(n,e){e.forEach((t,i)=>{let r=ft(i);n.style[r]=""})}function Ie(n){return Array.isArray(n)?n.length==1?n[0]:En(n):n}function ar(n,e,t){let i=e.params||{},r=Zt(n);r.length&&r.forEach(s=>{i.hasOwnProperty(s)||t.push(Ss(s))})}var $t=new RegExp(`${Yt}\\s*(.+?)\\s*${Ps}`,"g");function Zt(n){let e=[];if(typeof n=="string"){let t;for(;t=$t.exec(n);)e.push(t[1]);$t.lastIndex=0}return e}function Re(n,e,t){let i=`${n}`,r=i.replace($t,(s,o)=>{let a=e[o];return a==null&&(t.push(Es(o)),a=""),a.toString()});return r==i?n:r}var Ns=/-+([a-z0-9])/g;function ft(n){return n.replace(Ns,(...e)=>e[1].toUpperCase())}function lr(n,e){return n===0||e===0}function cr(n,e,t){if(t.size&&e.length){let i=e[0],r=[];if(t.forEach((s,o)=>{i.has(o)||r.push(o),i.set(o,s)}),r.length)for(let s=1;s<e.length;s++){let o=e[s];r.forEach(a=>o.set(a,gt(n,a)))}}return e}function V(n,e,t){switch(e.type){case S.Trigger:return n.visitTrigger(e,t);case S.State:return n.visitState(e,t);case S.Transition:return n.visitTransition(e,t);case S.Sequence:return n.visitSequence(e,t);case S.Group:return n.visitGroup(e,t);case S.Animate:return n.visitAnimate(e,t);case S.Keyframes:return n.visitKeyframes(e,t);case S.Style:return n.visitStyle(e,t);case S.Reference:return n.visitReference(e,t);case S.AnimateChild:return n.visitAnimateChild(e,t);case S.AnimateRef:return n.visitAnimateRef(e,t);case S.Query:return n.visitQuery(e,t);case S.Stagger:return n.visitStagger(e,t);default:throw Ts(e.type)}}function gt(n,e){return window.getComputedStyle(n)[e]}var gi=(()=>{class n{validateStyleProperty(t){return sr(t)}containsElement(t,i){return Gt(t,i)}getParentElement(t){return dt(t)}query(t,i,r){return Wt(t,i,r)}computeStyle(t,i,r){return r||""}animate(t,i,r,s,o,a=[],l){return new Te(r,s)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=j({token:n,factory:n.\u0275fac})}return n})(),Ce=class{static NOOP=new gi},we=class{};var ks=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"]),Et=class extends we{normalizePropertyName(e,t){return ft(e)}normalizeStyleValue(e,t,i,r){let s="",o=i.toString().trim();if(ks.has(t)&&i!==0&&i!=="0")if(typeof i=="number")s="px";else{let a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&r.push(Ln(e,i))}return o+s}};var Tt="*";function Is(n,e){let t=[];return typeof n=="string"?n.split(/\s*,\s*/).forEach(i=>Rs(i,t,e)):t.push(n),t}function Rs(n,e,t){if(n[0]==":"){let l=Ls(n,t);if(typeof l=="function"){e.push(l);return}n=l}let i=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(i==null||i.length<4)return t.push(Un(n)),e;let r=i[1],s=i[2],o=i[3];e.push(ur(r,o));let a=r==Tt&&o==Tt;s[0]=="<"&&!a&&e.push(ur(o,r))}function Ls(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,i)=>parseFloat(i)>parseFloat(t);case":decrement":return(t,i)=>parseFloat(i)<parseFloat(t);default:return e.push(Hn(n)),"* => *"}}var yt=new Set(["true","1"]),_t=new Set(["false","0"]);function ur(n,e){let t=yt.has(n)||_t.has(n),i=yt.has(e)||_t.has(e);return(r,s)=>{let o=n==Tt||n==r,a=e==Tt||e==s;return!o&&t&&typeof r=="boolean"&&(o=r?yt.has(n):_t.has(n)),!a&&i&&typeof s=="boolean"&&(a=s?yt.has(e):_t.has(e)),o&&a}}var Sr=":self",Os=new RegExp(`s*${Sr}s*,?`,"g");function Er(n,e,t,i){return new si(n).build(e,t,i)}var mr="",si=class{_driver;constructor(e){this._driver=e}build(e,t,i){let r=new oi(t);return this._resetContextStyleTimingState(r),V(this,Ie(e),r)}_resetContextStyleTimingState(e){e.currentQuerySelector=mr,e.collectedStyles=new Map,e.collectedStyles.set(mr,new Map),e.currentTime=0}visitTrigger(e,t){let i=t.queryCount=0,r=t.depCount=0,s=[],o=[];return e.name.charAt(0)=="@"&&t.errors.push(On()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==S.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(m=>{l.name=m,s.push(this.visitState(l,t))}),l.name=c}else if(a.type==S.Transition){let l=this.visitTransition(a,t);i+=l.queryCount,r+=l.depCount,o.push(l)}else t.errors.push(xn())}),{type:S.Trigger,name:e.name,states:s,transitions:o,queryCount:i,depCount:r,options:null}}visitState(e,t){let i=this.visitStyle(e.styles,t),r=e.options&&e.options.params||null;if(i.containsDynamicStyles){let s=new Set,o=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{Zt(l).forEach(c=>{o.hasOwnProperty(c)||s.add(c)})})}),s.size&&t.errors.push(Fn(e.name,[...s.values()]))}return{type:S.State,name:e.name,style:i,options:r?{params:r}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let i=V(this,Ie(e.animation),t),r=Is(e.expr,t.errors);return{type:S.Transition,matchers:r,animation:i,queryCount:t.queryCount,depCount:t.depCount,options:Ae(e.options)}}visitSequence(e,t){return{type:S.Sequence,steps:e.steps.map(i=>V(this,i,t)),options:Ae(e.options)}}visitGroup(e,t){let i=t.currentTime,r=0,s=e.steps.map(o=>{t.currentTime=i;let a=V(this,o,t);return r=Math.max(r,t.currentTime),a});return t.currentTime=r,{type:S.Group,steps:s,options:Ae(e.options)}}visitAnimate(e,t){let i=js(e.timings,t.errors);t.currentAnimateTimings=i;let r,s=e.styles?e.styles:Kt({});if(s.type==S.Keyframes)r=this.visitKeyframes(s,t);else{let o=e.styles,a=!1;if(!o){a=!0;let c={};i.easing&&(c.easing=i.easing),o=Kt(c)}t.currentTime+=i.duration+i.delay;let l=this.visitStyle(o,t);l.isEmptyStep=a,r=l}return t.currentAnimateTimings=null,{type:S.Animate,timings:i,style:r,options:null}}visitStyle(e,t){let i=this._makeStyleAst(e,t);return this._validateStyleAst(i,t),i}_makeStyleAst(e,t){let i=[],r=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of r)typeof a=="string"?a===J?i.push(a):t.errors.push(zn(a)):i.push(new Map(Object.entries(a)));let s=!1,o=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!s)){for(let l of a.values())if(l.toString().indexOf(Yt)>=0){s=!0;break}}}),{type:S.Style,styles:i,easing:o,offset:e.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(e,t){let i=t.currentAnimateTimings,r=t.currentTime,s=t.currentTime;i&&s>0&&(s-=i.duration+i.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let c=t.collectedStyles.get(t.currentQuerySelector),m=c.get(l),u=!0;m&&(s!=r&&s>=m.startTime&&r<=m.endTime&&(t.errors.push(jn(l,m.startTime,m.endTime,s,r)),u=!1),s=m.startTime),u&&c.set(l,{startTime:s,endTime:r}),t.options&&ar(a,t.options,t.errors)})})}visitKeyframes(e,t){let i={type:S.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(qn()),i;let r=1,s=0,o=[],a=!1,l=!1,c=0,m=e.steps.map(D=>{let N=this._makeStyleAst(D,t),L=N.offset!=null?N.offset:zs(N.styles),I=0;return L!=null&&(s++,I=N.offset=L),l=l||I<0||I>1,a=a||I<c,c=I,o.push(I),N});l&&t.errors.push(Kn()),a&&t.errors.push(Bn());let u=e.steps.length,_=0;s>0&&s<u?t.errors.push(Vn()):s==0&&(_=r/(u-1));let y=u-1,p=t.currentTime,g=t.currentAnimateTimings,C=g.duration;return m.forEach((D,N)=>{let L=_>0?N==y?1:_*N:o[N],I=L*C;t.currentTime=p+g.delay+I,g.duration=I,this._validateStyleAst(D,t),D.offset=L,i.styles.push(D)}),i}visitReference(e,t){return{type:S.Reference,animation:V(this,Ie(e.animation),t),options:Ae(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:S.AnimateChild,options:Ae(e.options)}}visitAnimateRef(e,t){return{type:S.AnimateRef,animation:this.visitReference(e.animation,t),options:Ae(e.options)}}visitQuery(e,t){let i=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;let[s,o]=xs(e.selector);t.currentQuerySelector=i.length?i+" "+s:s,B(t.collectedStyles,t.currentQuerySelector,new Map);let a=V(this,Ie(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=i,{type:S.Query,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:Ae(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(Qn());let i=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Be(e.timings,t.errors,!0);return{type:S.Stagger,animation:V(this,Ie(e.animation),t),timings:i,options:null}}};function xs(n){let e=!!n.split(/\s*,\s*/).find(t=>t==Sr);return e&&(n=n.replace(Os,"")),n=n.replace(/@\*/g,Ke).replace(/@\w+/g,t=>Ke+"-"+t.slice(1)).replace(/:animating/g,ht),[n,e]}function Fs(n){return n?De({},n):null}var oi=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(e){this.errors=e}};function zs(n){if(typeof n=="string")return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(t instanceof Map&&t.has("offset")){let i=t;e=parseFloat(i.get("offset")),i.delete("offset")}});else if(n instanceof Map&&n.has("offset")){let t=n;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function js(n,e){if(n.hasOwnProperty("duration"))return n;if(typeof n=="number"){let s=Be(n,e).duration;return ei(s,0,"")}let t=n;if(t.split(/\s+/).some(s=>s.charAt(0)=="{"&&s.charAt(1)=="{")){let s=ei(0,0,"");return s.dynamic=!0,s.strValue=t,s}let r=Be(t,e);return ei(r.duration,r.delay,r.easing)}function Ae(n){return n?(n=De({},n),n.params&&(n.params=Fs(n.params))):n={},n}function ei(n,e,t){return{duration:n,delay:e,easing:t}}function yi(n,e,t,i,r,s,o=null,a=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}var Qe=class{_map=new Map;get(e){return this._map.get(e)||[]}append(e,t){let i=this._map.get(e);i||this._map.set(e,i=[]),i.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},qs=1,Ks=":enter",Bs=new RegExp(Ks,"g"),Vs=":leave",Qs=new RegExp(Vs,"g");function Tr(n,e,t,i,r,s=new Map,o=new Map,a,l,c=[]){return new ai().buildKeyframes(n,e,t,i,r,s,o,a,l,c)}var ai=class{buildKeyframes(e,t,i,r,s,o,a,l,c,m=[]){c=c||new Qe;let u=new li(e,t,c,r,s,m,[]);u.options=l;let _=l.delay?se(l.delay):0;u.currentTimeline.delayNextStep(_),u.currentTimeline.setStyles([o],null,u.errors,l),V(this,i,u);let y=u.timelines.filter(p=>p.containsAnimation());if(y.length&&a.size){let p;for(let g=y.length-1;g>=0;g--){let C=y[g];if(C.element===t){p=C;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,u.errors,l)}return y.length?y.map(p=>p.buildKeyframes()):[yi(t,[],[],[],0,_,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let i=t.subInstructions.get(t.element);if(i){let r=t.createSubContext(e.options),s=t.currentTimeline.currentTime,o=this._visitSubInstructions(i,r,r.options);s!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){let i=t.createSubContext(e.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,i),this.visitReference(e.animation,i),t.transformIntoNewTimeline(i.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,i){for(let r of e){let s=r?.delay;if(s){let o=typeof s=="number"?s:se(Re(s,r?.params??{},t.errors));i.delayNextStep(o)}}}_visitSubInstructions(e,t,i){let s=t.currentTimeline.currentTime,o=i.duration!=null?se(i.duration):null,a=i.delay!=null?se(i.delay):null;return o!==0&&e.forEach(l=>{let c=t.appendInstructionToTimeline(l,o,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(e,t){t.updateOptions(e.options,!0),V(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let i=t.subContextCount,r=t,s=e.options;if(s&&(s.params||s.delay)&&(r=t.createSubContext(s),r.transformIntoNewTimeline(),s.delay!=null)){r.previousNode.type==S.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=bt);let o=se(s.delay);r.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>V(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let i=[],r=t.currentTimeline.currentTime,s=e.options&&e.options.delay?se(e.options.delay):0;e.steps.forEach(o=>{let a=t.createSubContext(e.options);s&&a.delayNextStep(s),V(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(r),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let i=e.strValue,r=t.params?Re(i,t.params,t.errors):i;return Be(r,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let i=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;i.delay&&(t.incrementTime(i.delay),r.snapshotCurrentStyles());let s=e.style;s.type==S.Keyframes?this.visitKeyframes(s,t):(t.incrementTime(i.duration),this.visitStyle(s,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let i=t.currentTimeline,r=t.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();let s=r&&r.easing||e.easing;e.isEmptyStep?i.applyEmptyStep(s):i.setStyles(e.styles,s,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let i=t.currentAnimateTimings,r=t.currentTimeline.duration,s=i.duration,a=t.createSubContext().currentTimeline;a.easing=i.easing,e.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*s),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(r+s),t.previousNode=e}visitQuery(e,t){let i=t.currentTimeline.currentTime,r=e.options||{},s=r.delay?se(r.delay):0;s&&(t.previousNode.type===S.Style||i==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=bt);let o=i,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,m)=>{t.currentQueryIndex=m;let u=t.createSubContext(e.options,c);s&&u.delayNextStep(s),c===t.element&&(l=u.currentTimeline),V(this,e.animation,u),u.currentTimeline.applyStylesToKeyframe();let _=u.currentTimeline.currentTime;o=Math.max(o,_)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let i=t.parentContext,r=t.currentTimeline,s=e.timings,o=Math.abs(s.duration),a=o*(t.currentQueryTotal-1),l=o*t.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime;break}let m=t.currentTimeline;l&&m.delayNextStep(l);let u=m.currentTime;V(this,e.animation,t),t.previousNode=e,i.currentStaggerTime=r.currentTime-u+(r.startTime-i.currentTimeline.startTime)}},bt={},li=class n{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=bt;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(e,t,i,r,s,o,a,l){this._driver=e,this.element=t,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=a,this.currentTimeline=l||new At(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let i=e,r=this.options;i.duration!=null&&(r.duration=se(i.duration)),i.delay!=null&&(r.delay=se(i.delay));let s=i.params;if(s){let o=r.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=Re(s[a],o,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let i=e.params={};Object.keys(t).forEach(r=>{i[r]=t[r]})}}return e}createSubContext(e=null,t,i){let r=t||this.element,s=new n(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(e),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(e){return this.previousNode=bt,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,i){let r={duration:t??e.duration,delay:this.currentTimeline.currentTime+(i??0)+e.delay,easing:""},s=new ci(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,i,r,s,o){let a=[];if(r&&a.push(this.element),e.length>0){e=e.replace(Bs,"."+this._enterClassName),e=e.replace(Qs,"."+this._leaveClassName);let l=i!=1,c=this._driver.query(this.element,e,l);i!==0&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!s&&a.length==0&&o.push($n(t)),a}},At=class n{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(e,t,i,r){this._driver=e,this.element=t,this.startTime=i,this._elementTimelineStylesLookup=r,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){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new n(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+=qs,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,i]of this._globalTimelineStyles)this._backFill.set(t,i||J),this._currentKeyframe.set(t,J);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,i,r){t&&this._previousKeyframe.set("easing",t);let s=r&&r.params||{},o=$s(e,this._globalTimelineStyles);for(let[a,l]of o){let c=Re(l,s,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??J),this._updateStyle(a,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(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(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,i)=>{let r=this._styleSummary.get(i);(!r||t.time>r.time)&&this._updateStyle(i,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,i=this._keyframes.size===1&&this.duration===0,r=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((m,u)=>{m===je?e.add(u):m===J&&t.add(u)}),i||c.set("offset",l/this.duration),r.push(c)});let s=[...e.values()],o=[...t.values()];if(i){let a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return yi(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}},ci=class extends At{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(e,t,i,r,s,o,a=!1){super(e,t,o.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&t){let s=[],o=i+t,a=t/o,l=new Map(e[0]);l.set("offset",0),s.push(l);let c=new Map(e[0]);c.set("offset",dr(a)),s.push(c);let m=e.length-1;for(let u=1;u<=m;u++){let _=new Map(e[u]),y=_.get("offset"),p=t+y*i;_.set("offset",dr(p/o)),s.push(_)}i=o,t=0,r="",e=s}return yi(this.element,e,this.preStyleProps,this.postStyleProps,i,t,r,!0)}};function dr(n,e=3){let t=Math.pow(10,e-1);return Math.round(n*t)/t}function $s(n,e){let t=new Map,i;return n.forEach(r=>{if(r==="*"){i??=e.keys();for(let s of i)t.set(s,J)}else for(let[s,o]of r)t.set(s,o)}),t}function pr(n,e,t,i,r,s,o,a,l,c,m,u,_){return{type:0,element:n,triggerName:e,isRemovalTransition:r,fromState:t,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:m,totalTime:u,errors:_}}var ti={},Ct=class{_triggerName;ast;_stateStyles;constructor(e,t,i){this._triggerName=e,this.ast=t,this._stateStyles=i}match(e,t,i,r){return Us(this.ast.matchers,e,t,i,r)}buildStyles(e,t,i){let r=this._stateStyles.get("*");return e!==void 0&&(r=this._stateStyles.get(e?.toString())||r),r?r.buildStyles(t,i):new Map}build(e,t,i,r,s,o,a,l,c,m){let u=[],_=this.ast.options&&this.ast.options.params||ti,y=a&&a.params||ti,p=this.buildStyles(i,y,u),g=l&&l.params||ti,C=this.buildStyles(r,g,u),D=new Set,N=new Map,L=new Map,I=r==="void",Me={params:br(g,_),delay:this.ast.options?.delay},ee=m?[]:Tr(e,t,this.ast.animation,s,o,p,C,Me,c,u),O=0;return ee.forEach(z=>{O=Math.max(z.duration+z.delay,O)}),u.length?pr(t,this._triggerName,i,r,I,p,C,[],[],N,L,O,u):(ee.forEach(z=>{let _e=z.element,Pe=B(N,_e,new Set);z.preStyleProps.forEach(ve=>Pe.add(ve));let Ei=B(L,_e,new Set);z.postStyleProps.forEach(ve=>Ei.add(ve)),_e!==t&&D.add(_e)}),pr(t,this._triggerName,i,r,I,p,C,ee,[...D.values()],N,L,O))}};function Us(n,e,t,i,r){return n.some(s=>s(e,t,i,r))}function br(n,e){let t=De({},e);return Object.entries(n).forEach(([i,r])=>{r!=null&&(t[i]=r)}),t}var ui=class{styles;defaultParams;normalizer;constructor(e,t,i){this.styles=e,this.defaultParams=t,this.normalizer=i}buildStyles(e,t){let i=new Map,r=br(e,this.defaultParams);return this.styles.styles.forEach(s=>{typeof s!="string"&&s.forEach((o,a)=>{o&&(o=Re(o,r,t));let l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),i.set(a,o)})}),i}};function Hs(n,e,t){return new mi(n,e,t)}var mi=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(e,t,i){this.name=e,this.ast=t,this._normalizer=i,t.states.forEach(r=>{let s=r.options&&r.options.params||{};this.states.set(r.name,new ui(r.style,s,i))}),hr(this.states,"true","1"),hr(this.states,"false","0"),t.transitions.forEach(r=>{this.transitionFactories.push(new Ct(e,r,this.states))}),this.fallbackTransition=Gs(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,i,r){return this.transitionFactories.find(o=>o.match(e,t,i,r))||null}matchStyles(e,t,i){return this.fallbackTransition.buildStyles(e,t,i)}};function Gs(n,e,t){let i=[(o,a)=>!0],r={type:S.Sequence,steps:[],options:null},s={type:S.Transition,animation:r,matchers:i,options:null,queryCount:0,depCount:0};return new Ct(n,s,e)}function hr(n,e,t){n.has(e)?n.has(t)||n.set(t,n.get(e)):n.has(t)&&n.set(e,n.get(t))}var Ws=new Qe,di=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i}register(e,t){let i=[],r=[],s=Er(this._driver,t,i,r);if(i.length)throw Wn(i);this._animations.set(e,s)}_buildPlayer(e,t,i){let r=e.element,s=Ut(this._normalizer,e.keyframes,t,i);return this._driver.animate(r,s,e.duration,e.delay,e.easing,[],!0)}create(e,t,i={}){let r=[],s=this._animations.get(e),o,a=new Map;if(s?(o=Tr(this._driver,t,s,Jt,pt,new Map,new Map,i,Ws,r),o.forEach(m=>{let u=B(a,m.element,new Map);m.postStyleProps.forEach(_=>u.set(_,null))})):(r.push(Yn()),o=[]),r.length)throw Jn(r);a.forEach((m,u)=>{m.forEach((_,y)=>{m.set(y,this._driver.computeStyle(u,y,J))})});let l=o.map(m=>{let u=a.get(m.element);return this._buildPlayer(m,new Map,u)}),c=oe(l);return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let i=this.players.indexOf(t);i>=0&&this.players.splice(i,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw Xn(e);return t}listen(e,t,i,r){let s=mt(t,"","","");return ut(this._getPlayer(e),i,s,r),()=>{}}command(e,t,i,r){if(i=="register"){this.register(e,r[0]);return}if(i=="create"){let o=r[0]||{};this.create(e,t,o);return}let s=this._getPlayer(e);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e);break}}},fr="ng-animate-queued",Ys=".ng-animate-queued",ii="ng-animate-disabled",Js=".ng-animate-disabled",Xs="ng-star-inserted",Zs=".ng-star-inserted",eo=[],Ar={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},to={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Z="__ng_removed",$e=class{namespaceId;value;options;get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let i=e&&e.hasOwnProperty("value"),r=i?e.value:e;if(this.value=no(r),i){let s=e,{value:o}=s,a=wi(s,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let i=this.options.params;Object.keys(t).forEach(r=>{i[r]==null&&(i[r]=t[r])})}}},Ve="void",ni=new $e(Ve),pi=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(e,t,i){this.id=e,this.hostElement=t,this._engine=i,this._hostClassName="ng-tns-"+e,W(t,this._hostClassName)}listen(e,t,i,r){if(!this._triggers.has(t))throw Zn(i,t);if(i==null||i.length==0)throw er(t);if(!ro(i))throw tr(i,t);let s=B(this._elementListeners,e,[]),o={name:t,phase:i,callback:r};s.push(o);let a=B(this._engine.statesByElement,e,new Map);return a.has(t)||(W(e,qe),W(e,qe+"-"+t),a.set(t,ni)),()=>{this._engine.afterFlush(()=>{let l=s.indexOf(o);l>=0&&s.splice(l,1),this._triggers.has(t)||a.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw ir(e);return t}trigger(e,t,i,r=!0){let s=this._getTrigger(t),o=new Ue(this.id,t,e),a=this._engine.statesByElement.get(e);a||(W(e,qe),W(e,qe+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t),c=new $e(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=ni),!(c.value===Ve)&&l.value===c.value){if(!ao(l.params,c.params)){let g=[],C=s.matchStyles(l.value,l.params,g),D=s.matchStyles(c.value,c.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{ye(e,C),X(e,D)})}return}let _=B(this._engine.playersByElement,e,[]);_.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy()});let y=s.matchTransition(l.value,c.value,e,c.params),p=!1;if(!y){if(!r)return;y=s.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:y,fromState:l,toState:c,player:o,isFallbackTransition:p}),p||(W(e,fr),o.onStart(()=>{Le(e,fr)})),o.onDone(()=>{let g=this.players.indexOf(o);g>=0&&this.players.splice(g,1);let C=this._engine.playersByElement.get(e);if(C){let D=C.indexOf(o);D>=0&&C.splice(D,1)}}),this.players.push(o),_.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,i)=>{this._elementListeners.set(i,t.filter(r=>r.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(i=>i.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let i=this._engine.driver.query(e,Ke,!0);i.forEach(r=>{if(r[Z])return;let s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(o=>o.triggerLeaveAnimation(r,t,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(e,t,i,r){let s=this._engine.statesByElement.get(e),o=new Map;if(s){let a=[];if(s.forEach((l,c)=>{if(o.set(c,l.value),this._triggers.has(c)){let m=this.trigger(e,c,Ve,r);m&&a.push(m)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),i&&oe(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),i=this._engine.statesByElement.get(e);if(t&&i){let r=new Set;t.forEach(s=>{let o=s.name;if(r.has(o))return;r.add(o);let l=this._triggers.get(o).fallbackTransition,c=i.get(o)||ni,m=new $e(Ve),u=new Ue(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:m,player:u,isFallbackTransition:!0})})}}removeNode(e,t){let i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let r=!1;if(i.totalAnimations){let s=i.players.length?i.playersByQueriedElement.get(e):[];if(s&&s.length)r=!0;else{let o=e;for(;o=o.parentNode;)if(i.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(e),r)i.markElementAsRemoved(this.id,e,!1,t);else{let s=e[Z];(!s||s===Ar)&&(i.afterFlush(()=>this.clearElementCache(e)),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}insertNode(e,t){W(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(i=>{let r=i.player;if(r.destroyed)return;let s=i.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==i.triggerName){let l=mt(s,i.triggerName,i.fromState.value,i.toState.value);l._data=e,ut(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):t.push(i)}),this._queue=[],t.sort((i,r)=>{let s=i.transition.ast.depCount,o=r.transition.ast.depCount;return s==0||o==0?s-o:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},hi=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(e,t)=>{};_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,i){this.bodyNode=e,this.driver=t,this._normalizer=i}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(i=>{i.queued&&e.push(i)})}),e}createNamespace(e,t){let i=new pi(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(i,t):(this.newHostElements.set(t,i),this.collectEnterElement(t)),this._namespaceLookup[e]=i}_balanceNamespaceList(e,t){let i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let o=!1,a=this.driver.getParentElement(t);for(;a;){let l=r.get(a);if(l){let c=i.indexOf(l);i.splice(c+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}o||i.unshift(e)}else i.push(e);return r.set(t,e),e}register(e,t){let i=this._namespaceLookup[e];return i||(i=this.createNamespace(e,t)),i}registerTrigger(e,t,i){let r=this._namespaceLookup[e];r&&r.register(t,i)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let i=this._fetchNamespace(e);this.namespacesByHostElement.delete(i.hostElement);let r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1),i.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,i=this.statesByElement.get(e);if(i){for(let r of i.values())if(r.namespaceId){let s=this._fetchNamespace(r.namespaceId);s&&t.add(s)}}return t}trigger(e,t,i,r){if(vt(t)){let s=this._fetchNamespace(e);if(s)return s.trigger(t,i,r),!0}return!1}insertNode(e,t,i,r){if(!vt(t))return;let s=t[Z];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;let o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){let o=this._fetchNamespace(e);o&&o.insertNode(t,i)}r&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),W(e,ii)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Le(e,ii))}removeNode(e,t,i){if(vt(t)){let r=e?this._fetchNamespace(e):null;r?r.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i);let s=this.namespacesByHostElement.get(t);s&&s.id!==e&&s.removeNode(t,i)}else this._onRemovalComplete(t,i)}markElementAsRemoved(e,t,i,r,s){this.collectedLeaveElements.push(t),t[Z]={namespaceId:e,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:s}}listen(e,t,i,r,s){return vt(t)?this._fetchNamespace(e).listen(t,i,r,s):()=>{}}_buildInstruction(e,t,i,r,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,i,r,e.fromState.options,e.toState.options,t,s)}destroyInnerAnimations(e){let t=this.driver.query(e,Ke,!0);t.forEach(i=>this.destroyActiveAnimationsForElement(i)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,ht,!0),t.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return oe(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[Z];if(t&&t.setForRemoval){if(e[Z]=Ar,t.namespaceId){this.destroyInnerAnimations(e);let i=this._fetchNamespace(t.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(ii)&&this.markElementAsDisabled(e,!1),this.driver.query(e,Js,!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++){let r=this.collectedEnterElements[i];W(r,Xs)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let i=[];try{t=this._flushAnimations(i,e)}finally{for(let r=0;r<i.length;r++)i[r]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++){let r=this.collectedLeaveElements[i];this.processLeaveNode(r)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){let i=this._whenQuietFns;this._whenQuietFns=[],t.length?oe(t).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(e){throw nr(e)}_flushAnimations(e,t){let i=new Qe,r=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,m=new Set;this.disabledNodes.forEach(d=>{m.add(d);let h=this.driver.query(d,Ys,!0);for(let f=0;f<h.length;f++)m.add(h[f])});let u=this.bodyNode,_=Array.from(this.statesByElement.keys()),y=_r(_,this.collectedEnterElements),p=new Map,g=0;y.forEach((d,h)=>{let f=Jt+g++;p.set(h,f),d.forEach(b=>W(b,f))});let C=[],D=new Set,N=new Set;for(let d=0;d<this.collectedLeaveElements.length;d++){let h=this.collectedLeaveElements[d],f=h[Z];f&&f.setForRemoval&&(C.push(h),D.add(h),f.hasAnimation?this.driver.query(h,Zs,!0).forEach(b=>D.add(b)):N.add(h))}let L=new Map,I=_r(_,Array.from(D));I.forEach((d,h)=>{let f=pt+g++;L.set(h,f),d.forEach(b=>W(b,f))}),e.push(()=>{y.forEach((d,h)=>{let f=p.get(h);d.forEach(b=>Le(b,f))}),I.forEach((d,h)=>{let f=L.get(h);d.forEach(b=>Le(b,f))}),C.forEach(d=>{this.processLeaveNode(d)})});let Me=[],ee=[];for(let d=this._namespaceList.length-1;d>=0;d--)this._namespaceList[d].drainQueuedTransitions(t).forEach(f=>{let b=f.player,k=f.element;if(Me.push(b),this.collectedEnterElements.length){let R=k[Z];if(R&&R.setForMove){if(R.previousTriggersValues&&R.previousTriggersValues.has(f.triggerName)){let Se=R.previousTriggersValues.get(f.triggerName),U=this.statesByElement.get(f.element);if(U&&U.has(f.triggerName)){let He=U.get(f.triggerName);He.value=Se,U.set(f.triggerName,He)}}b.destroy();return}}let te=!u||!this.driver.containsElement(u,k),Q=L.get(k),ae=p.get(k),w=this._buildInstruction(f,i,ae,Q,te);if(w.errors&&w.errors.length){ee.push(w);return}if(te){b.onStart(()=>ye(k,w.fromStyles)),b.onDestroy(()=>X(k,w.toStyles)),r.push(b);return}if(f.isFallbackTransition){b.onStart(()=>ye(k,w.fromStyles)),b.onDestroy(()=>X(k,w.toStyles)),r.push(b);return}let Ai=[];w.timelines.forEach(R=>{R.stretchStartingKeyframe=!0,this.disabledNodes.has(R.element)||Ai.push(R)}),w.timelines=Ai,i.append(k,w.timelines);let zr={instruction:w,player:b,element:k};o.push(zr),w.queriedElements.forEach(R=>B(a,R,[]).push(b)),w.preStyleProps.forEach((R,Se)=>{if(R.size){let U=l.get(Se);U||l.set(Se,U=new Set),R.forEach((He,Lt)=>U.add(Lt))}}),w.postStyleProps.forEach((R,Se)=>{let U=c.get(Se);U||c.set(Se,U=new Set),R.forEach((He,Lt)=>U.add(Lt))})});if(ee.length){let d=[];ee.forEach(h=>{d.push(rr(h.triggerName,h.errors))}),Me.forEach(h=>h.destroy()),this.reportError(d)}let O=new Map,z=new Map;o.forEach(d=>{let h=d.element;i.has(h)&&(z.set(h,h),this._beforeAnimationBuild(d.player.namespaceId,d.instruction,O))}),r.forEach(d=>{let h=d.element;this._getPreviousPlayers(h,!1,d.namespaceId,d.triggerName,null).forEach(b=>{B(O,h,[]).push(b),b.destroy()})});let _e=C.filter(d=>vr(d,l,c)),Pe=new Map;yr(Pe,this.driver,N,c,J).forEach(d=>{vr(d,l,c)&&_e.push(d)});let ve=new Map;y.forEach((d,h)=>{yr(ve,this.driver,new Set(d),l,je)}),_e.forEach(d=>{let h=Pe.get(d),f=ve.get(d);Pe.set(d,new Map([...h?.entries()??[],...f?.entries()??[]]))});let Rt=[],Ti=[],bi={};o.forEach(d=>{let{element:h,player:f,instruction:b}=d;if(i.has(h)){if(m.has(h)){f.onDestroy(()=>X(h,b.toStyles)),f.disabled=!0,f.overrideTotalTime(b.totalTime),r.push(f);return}let k=bi;if(z.size>1){let Q=h,ae=[];for(;Q=Q.parentNode;){let w=z.get(Q);if(w){k=w;break}ae.push(Q)}ae.forEach(w=>z.set(w,k))}let te=this._buildAnimation(f.namespaceId,b,O,s,ve,Pe);if(f.setRealPlayer(te),k===bi)Rt.push(f);else{let Q=this.playersByElement.get(k);Q&&Q.length&&(f.parentPlayer=oe(Q)),r.push(f)}}else ye(h,b.fromStyles),f.onDestroy(()=>X(h,b.toStyles)),Ti.push(f),m.has(h)&&r.push(f)}),Ti.forEach(d=>{let h=s.get(d.element);if(h&&h.length){let f=oe(h);d.setRealPlayer(f)}}),r.forEach(d=>{d.parentPlayer?d.syncPlayerEvents(d.parentPlayer):d.destroy()});for(let d=0;d<C.length;d++){let h=C[d],f=h[Z];if(Le(h,pt),f&&f.hasAnimation)continue;let b=[];if(a.size){let te=a.get(h);te&&te.length&&b.push(...te);let Q=this.driver.query(h,ht,!0);for(let ae=0;ae<Q.length;ae++){let w=a.get(Q[ae]);w&&w.length&&b.push(...w)}}let k=b.filter(te=>!te.destroyed);k.length?so(this,h,k):this.processLeaveNode(h)}return C.length=0,Rt.forEach(d=>{this.players.push(d),d.onDone(()=>{d.destroy();let h=this.players.indexOf(d);this.players.splice(h,1)}),d.play()}),Rt}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,i,r,s){let o=[];if(t){let a=this.playersByQueriedElement.get(e);a&&(o=a)}else{let a=this.playersByElement.get(e);if(a){let l=!s||s==Ve;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||o.push(c)})}}return(i||r)&&(o=o.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),o}_beforeAnimationBuild(e,t,i){let r=t.triggerName,s=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:r;for(let l of t.timelines){let c=l.element,m=c!==s,u=B(i,c,[]);this._getPreviousPlayers(c,m,o,a,t.toState).forEach(y=>{let p=y.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),y.destroy(),u.push(y)})}ye(s,t.fromStyles)}_buildAnimation(e,t,i,r,s,o){let a=t.triggerName,l=t.element,c=[],m=new Set,u=new Set,_=t.timelines.map(p=>{let g=p.element;m.add(g);let C=g[Z];if(C&&C.removedBeforeQueried)return new Te(p.duration,p.delay);let D=g!==l,N=oo((i.get(g)||eo).map(O=>O.getRealPlayer())).filter(O=>{let z=O;return z.element?z.element===g:!1}),L=s.get(g),I=o.get(g),Me=Ut(this._normalizer,p.keyframes,L,I),ee=this._buildPlayer(p,Me,N);if(p.subTimeline&&r&&u.add(g),D){let O=new Ue(e,a,g);O.setRealPlayer(ee),c.push(O)}return ee});c.forEach(p=>{B(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>io(this.playersByQueriedElement,p.element,p))}),m.forEach(p=>W(p,Xt));let y=oe(_);return y.onDestroy(()=>{m.forEach(p=>Le(p,Xt)),X(l,t.toStyles)}),u.forEach(p=>{B(r,p,[]).push(y)}),y}_buildPlayer(e,t,i){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,i):new Te(e.duration,e.delay)}},Ue=class{namespaceId;triggerName;element;_player=new Te;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(e,t,i){this.namespaceId=e,this.triggerName=t,this.element=i}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,i)=>{t.forEach(r=>ut(e,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){B(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?!1: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){let t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function io(n,e,t){let i=n.get(e);if(i){if(i.length){let r=i.indexOf(t);i.splice(r,1)}i.length==0&&n.delete(e)}return i}function no(n){return n??null}function vt(n){return n&&n.nodeType===1}function ro(n){return n=="start"||n=="done"}function gr(n,e){let t=n.style.display;return n.style.display=e??"none",t}function yr(n,e,t,i,r){let s=[];t.forEach(l=>s.push(gr(l)));let o=[];i.forEach((l,c)=>{let m=new Map;l.forEach(u=>{let _=e.computeStyle(c,u,r);m.set(u,_),(!_||_.length==0)&&(c[Z]=to,o.push(c))}),n.set(c,m)});let a=0;return t.forEach(l=>gr(l,s[a++])),o}function _r(n,e){let t=new Map;if(n.forEach(a=>t.set(a,[])),e.length==0)return t;let i=1,r=new Set(e),s=new Map;function o(a){if(!a)return i;let l=s.get(a);if(l)return l;let c=a.parentNode;return t.has(c)?l=c:r.has(c)?l=i:l=o(c),s.set(a,l),l}return e.forEach(a=>{let l=o(a);l!==i&&t.get(l).push(a)}),t}function W(n,e){n.classList?.add(e)}function Le(n,e){n.classList?.remove(e)}function so(n,e,t){oe(t).onDone(()=>n.processLeaveNode(e))}function oo(n){let e=[];return Cr(n,e),e}function Cr(n,e){for(let t=0;t<n.length;t++){let i=n[t];i instanceof ot?Cr(i.players,e):e.push(i)}}function ao(n,e){let t=Object.keys(n),i=Object.keys(e);if(t.length!=i.length)return!1;for(let r=0;r<t.length;r++){let s=t[r];if(!e.hasOwnProperty(s)||n[s]!==e[s])return!1}return!0}function vr(n,e,t){let i=t.get(n);if(!i)return!1;let r=e.get(n);return r?i.forEach(s=>r.add(s)):e.set(n,i),t.delete(n),!0}var Oe=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(e,t)=>{};constructor(e,t,i){this._driver=t,this._normalizer=i,this._transitionEngine=new hi(e.body,t,i),this._timelineEngine=new di(e.body,t,i),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(e,t,i,r,s){let o=e+"-"+r,a=this._triggerCache[o];if(!a){let l=[],c=[],m=Er(this._driver,s,l,c);if(l.length)throw Gn(r,l);a=Hs(r,m,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,r,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,i,r){this._transitionEngine.insertNode(e,t,i,r)}onRemove(e,t,i){this._transitionEngine.removeNode(e,t,i)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,i,r){if(i.charAt(0)=="@"){let[s,o]=Ht(i),a=r;this._timelineEngine.command(s,t,o,a)}else this._transitionEngine.trigger(e,t,i,r)}listen(e,t,i,r,s){if(i.charAt(0)=="@"){let[o,a]=Ht(i);return this._timelineEngine.listen(o,t,a,s)}return this._transitionEngine.listen(e,t,i,r,s)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function lo(n,e){let t=null,i=null;return Array.isArray(e)&&e.length?(t=ri(e[0]),e.length>1&&(i=ri(e[e.length-1]))):e instanceof Map&&(t=ri(e)),t||i?new co(n,t,i):null}var co=(()=>{class n{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(t,i,r){this._element=t,this._startStyles=i,this._endStyles=r;let s=n.initialStylesByElement.get(t);s||n.initialStylesByElement.set(t,s=new Map),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&X(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(X(this._element,this._initialStyles),this._endStyles&&(X(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(ye(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ye(this._element,this._endStyles),this._endStyles=null),X(this._element,this._initialStyles),this._state=3)}}return n})();function ri(n){let e=null;return n.forEach((t,i)=>{uo(i)&&(e=e||new Map,e.set(i,t))}),e}function uo(n){return n==="display"||n==="position"}var wt=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(e,t,i,r){this.element=e,this.keyframes=t,this.options=i,this._specialStyles=r,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e
1=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(i=>{t.push(Object.fromEntries(i))}),t}_triggerWebAnimation(e,t,i){return e.animate(this._convertKeyframesToObject(t),i)}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){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{r!=="offset"&&e.set(r,this._finished?i:gt(this.element,r))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}},Mt=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return Gt(e,t)}getParentElement(e){return dt(e)}query(e,t,i){return Wt(e,t,i)}computeStyle(e,t,i){return gt(e,t)}animate(e,t,i,r,s,o=[]){let a=r==0?"both":"forwards",l={duration:i,delay:r,fill:a};s&&(l.easing=s);let c=new Map,m=o.filter(y=>y instanceof wt);lr(i,r)&&m.forEach(y=>{y.currentSnapshot.forEach((p,g)=>c.set(g,p))});let u=or(t).map(y=>new Map(y));u=cr(e,u,c);let _=lo(e,u);return new wt(e,u,l,_)}};var St="@",wr="@.disabled",Pt=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(e,t,i,r){this.namespaceId=e,this.delegate=t,this.engine=i,this._onDestroy=r}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}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,i,r=!0){this.delegate.insertBefore(e,t,i),this.engine.onInsert(this.namespaceId,t,e,r)}removeChild(e,t,i){this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate)}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,i,r){this.delegate.setAttribute(e,t,i,r)}removeAttribute(e,t,i){this.delegate.removeAttribute(e,t,i)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,i,r){this.delegate.setStyle(e,t,i,r)}removeStyle(e,t,i){this.delegate.removeStyle(e,t,i)}setProperty(e,t,i){t.charAt(0)==St&&t==wr?this.disableAnimations(e,!!i):this.delegate.setProperty(e,t,i)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,i,r){return this.delegate.listen(e,t,i,r)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},fi=class extends Pt{factory;constructor(e,t,i,r,s){super(t,i,r,s),this.factory=e,this.namespaceId=t}setProperty(e,t,i){t.charAt(0)==St?t.charAt(1)=="."&&t==wr?(i=i===void 0?!0:!!i,this.disableAnimations(e,i)):this.engine.process(this.namespaceId,e,t.slice(1),i):this.delegate.setProperty(e,t,i)}listen(e,t,i,r){if(t.charAt(0)==St){let s=mo(e),o=t.slice(1),a="";return o.charAt(0)!=St&&([o,a]=po(o)),this.engine.listen(this.namespaceId,s,o,a,l=>{let c=l._data||-1;this.factory.scheduleListenerCallback(c,i,l)})}return this.delegate.listen(e,t,i,r)}};function mo(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}function po(n){let e=n.indexOf("."),t=n.substring(0,e),i=n.slice(e+1);return[t,i]}var Dt=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(e,t,i){this.delegate=e,this.engine=t,this._zone=i,t.onRemovalComplete=(r,s)=>{s?.removeChild(null,r)}}createRenderer(e,t){let i="",r=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let c=this._rendererCache,m=c.get(r);if(!m){let u=()=>c.delete(r);m=new Pt(i,r,this.engine,u),c.set(r,m)}
1return m}let s=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);let a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(s,o,e,c.name,c)};return t.data.animation.forEach(a),new fi(this,o,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,i){if(e>=0&&e<this._microtaskId){this._zone.run(()=>t(i));return}let r=this._animationCallbacksBuffer;r.length==0&&queueMicrotask(()=>{this._zone.run(()=>{r.forEach(s=>{let[o,a]=s;o(a)}),this._animationCallbacksBuffer=[]})}),r.push([t,i])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}componentReplaced(e){this.engine.flush(),this.delegate.componentReplaced?.(e)}};var fo=(()=>{class n extends Oe{constructor(t,i,r){super(t,i,r)}ngOnDestroy(){this.flush()}static \u0275fac=function(i){return new(i||n)(q(Li),q(Ce),q(we))};static \u0275prov=j({token:n,factory:n.\u0275fac})}return n})();function go(){return new Et}function yo(n,e,t){return new Dt(n,e,t)}var Pr=[{provide:we,useFactory:go},{provide:Oe,useClass:fo},{provide:Pi,useFactory:yo,deps:[Fi,Oe,Mi]}],_o=[{provide:Ce,useClass:gi},{provide:Ot,useValue:"NoopAnimations"},...Pr],Mr=[{provide:Ce,useFactory:()=>new Mt},{provide:Ot,useFactory:()=>"BrowserAnimations"},...Pr],_i=(()=>{class n{static withConfig(t){return{ngModule:n,providers:t.disableAnimations?_o:Mr}}static \u0275fac=function(i){return new(i||n)};static \u0275mod=re({type:n});static \u0275inj=ie({providers:Mr,imports:[Fe]})}return n})();(function(n){n.ng??={},n.ng.common??={},n.ng.common.locales??={};let e=void 0;function t(i){let r=i,s=Math.floor(Math.abs(i)),o=i.toString().replace(/^[^.]*\.?/,"").length,a=parseInt(i.toString().replace(/^[^e]*(e([-+]?\d+))?/,"$2"))||0;return s===Math.floor(s)&&s>=0&&s<=1?1:a===0&&s!==0&&s%1e6===0&&o===0||!(a>=0&&a<=5)?4:5}n.ng.common.locales.pt=["pt",[["AM","PM"],e,e],e,[["D","S","T","Q","Q","S","S"],["dom.","seg.","ter.","qua.","qui.","sex.","s\xE1b."],["domingo","segunda-feira","ter\xE7a-feira","quarta-feira","quinta-feira","sexta-feira","s\xE1bado"],["dom.","seg.","ter.","qua.","qui.","sex.","s\xE1b."]],e,[["J","F","M","A","M","J","J","A","S","O","N","D"],["jan.","fev.","mar.","abr.","mai.","jun.","jul.","ago.","set.","out.","nov.","dez."],["janeiro","fevereiro","mar\xE7o","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]],e,[["a.C.","d.C."],e,["antes de Cristo","depois de Cristo"]],0,[6,0],["dd/MM/y","d 'de' MMM 'de' y","d 'de' MMMM 'de' y","EEEE, d 'de' MMMM 'de' y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}",e,e,e],[",",".",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4\xA0#,##0.00","#E0"],"BRL","R$","Real brasileiro",{AUD:["AU$","$"],BYN:[e,"\u0440."],JPY:["JP\xA5","\xA5"],PHP:[e,"\u20B1"],PTE:["Esc."],RON:[e,"L"],SYP:[e,"S\xA3"],THB:["\u0E3F"],TWD:["NT$"],USD:["US$","$"]},"ltr",t,[[["meia-noite","meio-dia","da manh\xE3","da tarde","da noite","da madrugada"],e,e],[["meia-noite","meio-dia","manh\xE3","tarde","noite","madrugada"],e,e],["00:00","12:00",["06:00","12:00"],["12:00","19:00"],["19:00","24:00"],["00:00","06:00"]]]]})(globalThis);var ol=qr(Dr());var Nr=(()=>{class n{intercept(t,i){let r=location.origin.includes("localhost"),s=location.origin.includes(".cblx.dev"),o=r||s,a="1";return r&&(a=localStorage.getItem("x-dynamics")??"1"),s&&(location.origin.includes("2.cblx.dev")&&(a="2"),location.origin.includes("3.cblx.dev")&&(a="3"),location.origin.includes("r.cblx.dev")&&(a="1")),o&&!t.url.includes("/realms/idpsp/")&&(t=t.clone({headers:t.headers.set("x-dynamics",a)})),i.handle(t)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=j({token:n,factory:n.\u0275fac})}}return n})();var kr={email:"email inv\xE1lido",exclusiveMax:n=>`deve ser menor que ${n.max}`,exclusiveMin:n=>`deve ser maior que ${n.min}`,max:n=>`m\xE1ximo deve ser ${n.max}`,maxlength:n=>`m\xE1ximo ${n.requiredLength} caracteres`,min:n=>`m\xEDnimo deve ser ${n.min}`,minlength:n=>n.actualLength?`utilize mais ${n.requiredLength-n.actualLength} caracteres`:`m\xEDnimo ${n.requiredLength} caracteres`,pattern:"valor inv\xE1lido",required:"obrigat\xF3rio"};de.prototype.withOptions=function(n){return this.options=n,this};de.prototype.withName=function(n){return this.name=n,this};de.prototype.withMaxLength=function(n){return this.maxLength=n,this};de.prototype.withMaximum=function(n){return this.maximum=n,this};de.prototype.withMinimum=function(n){return this.minimum=n,this};var Ir=(()=>{class n{intercept(t,i){if(!t.headers.get("Authorization")){let s=localStorage.getItem(he.IDPSP_EMULATOR_DEV_AUTH_KEY);if(s){let o=JSON.parse(s);t=t.clone({headers:t.headers.set("Authorization",`Bearer ${o.accessToken}`)})}}return i.handle(t)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=j({token:n,factory:n.\u0275fac})}}return n})();var Rr=(()=>{class n{constructor(t,i,r){this.matDialog=r,de.prototype.assertIsValidAsync=function(){return pe.assertIsValidAsync(this)},Hi.prototype.assertIsValidAsync=function(){return pe.assertIsValidAsync(this)},Promise.prototype.delay=function(s=8e3){return M(this,null,function*(){let o=yield this;return yield t.esperarUmTempo(s),o})},Promise.prototype.showBusy=function(s){return t.ocupadoComMensagemCustomizada(s??"Aguarde...",this),this},Promise.prototype.showError=function(){return M(this,null,function*(){try{return yield this}catch(s){throw t.mostrarErro(s),s}})},Promise.prototype.showSuccess=function(s){return M(this,null,function*(){let o=yield this;return t.informar(s??"Opera\xE7\xE3o realizada com sucesso"),o})},pe.goToHome=()=>M(this,null,function*(){return i.navigate(["./"])}),pe.matDialog=r,pe.helpers=t}static forRoot(t){return{ngModule:n,providers:[{provide:sn,useValue:t.environment},{provide:Ri,useValue:"pt"},{provide:yn,useValue:Ci(De({},kr),{matDatepickerMin:()=>"data abaixo do limite",matDatepickerMax:()=>"data acima do limite",matDatepickerParse:()=>"data inv\xE1lida"})},{provide:Ft,useClass:Nr,multi:!0},{provide:Ft,useClass:Ir,multi:!0},{provide:Nn,useClass:kn}]}}static{this.\u0275fac=function(i){return new(i||n)(q(rn),q(ke),q(Ze))}}static{this.\u0275mod=re({type:n})}static{this.\u0275inj=ie({providers:[Ki(Bi())],imports:[Fe,_i,nn,fn.forRoot({validation:!1}),on.forRoot({resourceServer:{sendAccessToken:!0}}),Fe,_i]})}}return n})();var Lr=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=re({type:n})}static{this.\u0275inj=ie({imports:[fe]})}}return n})();var vo=(n,e,t)=>{if(t===0||e===0)return`0 - ${t}`;t=Math.max(t,0);let i=n*e,r=i<t?Math.min(i+e,t):i+e;return`${i+1} - ${r} de ${t}`};function Or(){let n=new nt;return n.itemsPerPageLabel="Resultados por pagina:",n.nextPageLabel="Pr\xF3xima p\xE1gina",n.previousPageLabel="P\xE1gina anterior",n.getRangeLabel=vo,n}var xr=(()=>{class n extends st{constructor(){super(...arguments),this.tipo=Sn.PortalDoConsumidor}static{this.\u0275fac=(()=>{let t;return function(r){return(t||(t=Ge(n)))(r||n)}})()}static{this.\u0275prov=j({token:n,factory:n.\u0275fac})}}return n})();var Nt={production:!0}
1;var kt=class{constructor(){this.path="api/Procon/Portais/Consumidores/Application/Interacoes/CriarInteracaoDoAtendimentoEndpoint",this.method="POST"}};var It=class{constructor(){this.path="api/Procon/Portais/Consumidores/Application/Interacoes/CriarInteracaoDoProcessoAdministrativoEndpoint",this.method="POST"}};var So=(()=>{class n extends zt{updateTitle(t){let i=this.buildTitle(t),r="ProconSP Digital - Portal do Consumidor";i!==void 0?document.title=`${i} - ${r}`:document.title=r}static{this.\u0275fac=(()=>{let t;return function(r){return(t||(t=Ge(n)))(r||n)}})()}static{this.\u0275prov=j({token:n,factory:n.\u0275fac})}}return n})(),Fr=(()=>{class n{constructor(t){this.endpointServices=t,qt.criarInteracaoDoAtendimento=this.criarInteracaoDoAtendimento.bind(this),qt.criarInteracaoDoProcessoAdministrativo=this.criarInteracaoDoProcessoAdministrativo.bind(this)}criarInteracaoDoAtendimento(t){return M(this,null,function*(){yield this.endpointServices.requestAsync(new kt,t.body)})}criarInteracaoDoProcessoAdministrativo(t){return M(this,null,function*(){yield this.endpointServices.requestAsync(new It,t.body)})}static{this.\u0275fac=function(i){return new(i||n)(q(tt))}}static{this.\u0275mod=re({type:n,bootstrap:[Dn]})}static{this.\u0275inj=ie({providers:[{provide:nt,useValue:Or()},{provide:st,useClass:xr},{provide:zt,useClass:So}],imports:[fe,Mn,Lr,Rr.forRoot({environment:Nt}),at,lt,ct]})}}return n})();Nt.production&&void 0;zi().bootstrapModule(Fr).catch(n=>console.error(n));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.