diff --git a/CNAME b/CNAME new file mode 100644 index 0000000..98e0d72 --- /dev/null +++ b/CNAME @@ -0,0 +1 @@ +articleapp.webart.work \ No newline at end of file diff --git a/assets/default.png b/assets/default.png new file mode 100644 index 0000000..f738295 Binary files /dev/null and b/assets/default.png differ diff --git a/assets/favicon.ico b/assets/favicon.ico new file mode 100644 index 0000000..47bb5e2 Binary files /dev/null and b/assets/favicon.ico differ diff --git a/assets/logo.png b/assets/logo.png new file mode 100644 index 0000000..f738295 Binary files /dev/null and b/assets/logo.png differ diff --git a/chunk-3TBMT7WO.js b/chunk-3TBMT7WO.js new file mode 100644 index 0000000..056c620 --- /dev/null +++ b/chunk-3TBMT7WO.js @@ -0,0 +1 @@ +import{o as r}from"./chunk-FBONLC6U.js";var m=(()=>{let p=class p{constructor(){this.createParentIdToChildrenIds=(c,s,i)=>()=>{for(let t in c)for(let u=c[t].length-1;u>=0;u--)s.find(f=>Array.isArray(f[i])?f[i].includes(c[t][u]._id):f[i]===c[t][u]._id)||c[t].splice(u,1);for(let t of s)!t[i]||!t[i]?.length||(Array.isArray(t[i])?t[i].forEach(u=>{c[u]=c[u]||[],c[u].find(f=>f._id===t._id)||c[u].push(t)}):(c[t[i]]=c[t[i]]||[],c[t[i]].find(u=>u._id===t._id)||c[t[i]].push(t)))}}};p.\u0275fac=function(s){return new(s||p)},p.\u0275prov=r({token:p,factory:p.\u0275fac,providedIn:"root"});let a=p;return a})();export{m as a}; diff --git a/chunk-7K7WWIA4.js b/chunk-7K7WWIA4.js new file mode 100644 index 0000000..1c29a9a --- /dev/null +++ b/chunk-7K7WWIA4.js @@ -0,0 +1 @@ +import{Va as o,Ya as l,Za as p,_a as u,bb as d,o as n,r as e}from"./chunk-FBONLC6U.js";var j=(()=>{let t=class t extends l{constructor(a,s,f,c){super({name:"articletag"},a,s,f,c),this.articletags=[],this.get().subscribe(i=>this.articletags.push(...i)),c.on("articletag_create").subscribe(i=>{this.articletags.push(i)}),c.on("articletag_delete").subscribe(i=>{this.articletags.splice(this.articletags.findIndex(h=>h._id===i._id),1)})}};t.\u0275fac=function(s){return new(s||t)(e(u),e(p),e(d),e(o))},t.\u0275prov=n({token:t,factory:t.\u0275fac,providedIn:"root"});let r=t;return r})();export{j as a}; diff --git a/chunk-A6YJADE2.js b/chunk-A6YJADE2.js new file mode 100644 index 0000000..6d764ec --- /dev/null +++ b/chunk-A6YJADE2.js @@ -0,0 +1 @@ +import{Ja as d,Oa as a,Va as u,Ya as l,Za as m,_a as p,bb as f,o as c,r as i}from"./chunk-FBONLC6U.js";var P=(()=>{let t=class t extends l{constructor(e,s,r,h,g){super({name:"user"},e,s,r,h),this._router=g,this.roles=(a.roles||[]).concat(["admin"]),this.employees=a.roles||[],this.mode="",this.users=this.getDocs(),this.user=localStorage.getItem("waw_user")?JSON.parse(localStorage.getItem("waw_user")):this.new(),this._changingPassword=!1,this.store=s,this.http=e,this.alert=r,this.core=h,this.http.header("token")&&(this.fetch({},{name:"me"}).subscribe(this.setUser.bind(this)),this.get()),this.store.get("mode",n=>{n&&this.setMode(n)})}setMode(e=""){e?(this.store.set("mode",e),document.body.parentNode.classList.add(e)):(this.store.remove("mode"),document.body.parentNode.classList.remove("dark")),this.mode=e}setUser(e){this.user=e,localStorage.setItem("waw_user",JSON.stringify(e)),this.core.complete("us.user")}role(e){return!!(this.user?.is||{})[e]}updateMe(){this.setUser(this.user),this.update(this.user)}updateMeAfterWhile(){this.setUser(this.user),this.updateAfterWhile(this.user)}changePassword(e,s){this._changingPassword||(this._changingPassword=!0,this.http.post("/api/user/changePassword",{newPass:s,oldPass:e},r=>{this._changingPassword=!1,r?this.alert.info({text:"Successfully changed password"}):this.alert.error({text:"Incorrect current password"})}))}logout(){this.user=this.new(),localStorage.removeItem("waw_user"),this._router.navigateByUrl("/sign"),this.http.remove("token"),setTimeout(()=>{location.reload()},100)}updateAdmin(e){this.update(e,{name:"admin"})}deleteAdmin(e){this.delete(e,{name:"admin"})}};t.\u0275fac=function(s){return new(s||t)(i(p),i(m),i(f),i(u),i(d))},t.\u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})();export{P as a}; diff --git a/chunk-BEJZKM57.js b/chunk-BEJZKM57.js new file mode 100644 index 0000000..998998b --- /dev/null +++ b/chunk-BEJZKM57.js @@ -0,0 +1 @@ +import{a as k}from"./chunk-A6YJADE2.js";import{a as j,g as I,h as L,j as N}from"./chunk-HLEBBEIB.js";import{F as m,G as l,K as P,M as p,Na as C,Oa as M,Q as n,R as a,V as x,Va as O,W as c,X as u,da as f,hb as S,ib as T,la as y,p as g,pb as E,qb as F,t as h,u as _,w,x as b,za as v}from"./chunk-FBONLC6U.js";var A=()=>({"border-radius":"var(--c-img-round)",width:"52px",height:"52px"});function B(i,t){if(i&1){let d=x();n(0,"wform",13),c("wChange",function(r){w(d);let o=u();return b(o.update(r))}),a()}if(i&2){let d=u();p("config",d.formProfile)("submition",d.user)}}var z=(()=>{let t=class t{constructor(e,r,o){this._form=e,this._core=r,this.us=o,this.url=M.url,this.formProfile=this._form.getForm("profile",{formId:"profile",title:"Profile Settings",components:[{name:"Text",key:"name",focused:!0,fields:[{name:"Placeholder",value:"Enter your name"},{name:"Label",value:"Name"}]},{name:"Text",key:"phone",fields:[{name:"Placeholder",value:"Enter your phone"},{name:"Label",value:"Phone"}]},{name:"Text",key:"bio",fields:[{name:"Placeholder",value:"Enter your bio"},{name:"Label",value:"Bio"},{name:"Textarea",value:!0}]}]}),this.formPassword=this._form.getForm("change password",{formId:"change password",title:"Change password",components:[{name:"Password",key:"oldPass",focused:!0,fields:[{name:"Placeholder",value:"Enter your old password"},{name:"Label",value:"Old Password"}]},{name:"Password",key:"newPass",fields:[{name:"Placeholder",value:"Enter your new password"},{name:"Label",value:"New Password"}]}]}),this._core.onComplete("us.user").then(()=>{let s={};this._core.copy(this.us.user,s),this.user=s})}update(e){this._core.copy(e,this.us.user),this.us.updateMe()}changePassword(){this._form.modal(this.formPassword,{label:"Change",click:(e,r)=>{this.us.changePassword(e.oldPass,e.newPass),r()}}).then(e=>{this.us.changePassword(e.oldPass,e.newPass)})}updateThumb(e){this.us.user.thumb=Array.isArray(e)?e[0]:e,this.us.updateMe()}};t.\u0275fac=function(r){return new(r||t)(l(E),l(O),l(k))},t.\u0275cmp=h({type:t,selectors:[["app-profile"]],decls:18,vars:8,consts:[[1,"container"],[1,"profile__header"],[1,"avatar","_profile"],["err","assets/default.png","container","user",3,"update","value","name","isPhoto","imgStyle","height","width"],[1,"profile__body"],[3,"config","submition","wChange",4,"ngIf"],[1,"profile__footer"],[1,"profile__logout"],["type","danger",3,"click"],[1,"material-icons"],["translate",""],[1,"profile__password"],["type","link","translate","",3,"click"],[3,"wChange","config","submition"]],template:function(r,o){r&1&&(n(0,"div",0)(1,"wcard")(2,"div",1)(3,"div")(4,"div",2)(5,"ngx-file",3),c("update",function(D){return o.updateThumb(D)}),a()()()(),n(6,"div",4),P(7,B,1,2,"wform",5),n(8,"div",6)(9,"div",7)(10,"wbutton",8),c("click",function(){return o.us.logout()}),n(11,"span",9),f(12,"logout"),a(),n(13,"span",10),f(14,"Profile.Logout"),a()()(),n(15,"div",11)(16,"wbutton",12),c("click",function(){return o.changePassword()}),f(17," Profile.Change Password "),a()()()()()()),r&2&&(m(5),p("value",o.us.user.thumb?o.url+o.us.user.thumb:"assets/default.png")("name",o.us.user._id+".jpg")("isPhoto",!0)("imgStyle",y(7,A))("height",512)("width",512),m(2),p("ngIf",o.user))},dependencies:[S,v,T,j,F,I],styles:["[_ngcontent-%COMP%]:root{--c-white: #fff;--c-basic: #3558ae;--c-primary: #256eff;--c-primary-hover: #0051f1;--c-secondary: rgb(197, 61, 61);--c-secondary-hover: rgb(150, 42, 42);--c-bg-primary: #f3f4f7;--c-bg-secondary: #ffffff;--c-bg-tertiary: #fcfdfe;--c-border: #f0f1f7;--c-shadow: #f3f3f3;--c-text-primary: #666666;--c-text-secondary: #19235c;--c-placeholder: #313335ab;--c-img-round: 50%;--card-background: #fefefe;--card-border-radius: 10px;--card-box-shadow: 0 4px 12px rgba(0, 0, 0, .15);--card-margin-bottom: 24px;--card-header-padding: 20px;--card-header-background: #e0e0e0;--card-body-padding: 20px;--card-section-padding: 10px 0;--card-footer-padding: 20px;--card-footer-background: #e0e0e0;--card-border-width: 2px;--card-border-color: #cccccc;--file-img-border-radius: 50%;--file-add-bg: #28a745;--file-add-bg-hover: #218838;--file-item-border-radius: 10px}html.dark[_ngcontent-%COMP%]:root{--c-white: #fff;--c-basic: #333;--c-bg-primary: #282828;--c-bg-secondary: #343434;--c-bg-tertiary: #404040;--c-border: #404040;--c-shadow: #444444;--c-text-primary: #ffffff;--c-text-secondary: #ffffff;--c-placeholder: #d3cdcd}[_nghost-%COMP%]{width:100%}[_nghost-%COMP%] wcard[_ngcontent-%COMP%]{width:100%;transition:all .3s;display:block}.container[_ngcontent-%COMP%]{padding:unset}.profile__header[_ngcontent-%COMP%]{z-index:9;top:20px;position:absolute;right:30px;letter-spacing:0;line-height:23px;font-weight:500;font-size:20px;color:var(--c-text-primary);display:flex;justify-content:space-between;align-items:center;border-radius:8px}.profile__footer[_ngcontent-%COMP%]{margin-top:20px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap}@media (max-width: 767.9px){.profile__footer[_ngcontent-%COMP%]{flex-direction:column;align-items:center}.profile__footer[_ngcontent-%COMP%] .profile__logout[_ngcontent-%COMP%]{order:2;margin-top:20px}}.profile__logout[_ngcontent-%COMP%] .w-btn[_ngcontent-%COMP%]{margin:0;display:flex;justify-content:space-between;align-items:center}.profile__logout[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{margin-right:10px}.imgClass[_ngcontent-%COMP%]{height:52px;width:52px}.avatar[_ngcontent-%COMP%]{border-radius:50%;border:1px solid var(--c-border);position:relative;margin:0 auto;padding:3px}.avatar._profile[_ngcontent-%COMP%]{width:60px;height:60px}.avatar__img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover;border-radius:50%}.avatar__upload[_ngcontent-%COMP%]{cursor:pointer;position:absolute;right:0;bottom:0;width:24px;height:24px;border-radius:50%;background:var(--c-primary);display:flex;justify-content:center;align-items:center;transition:.3s all ease-in-out}.avatar__icon[_ngcontent-%COMP%]{color:#fff;font-size:16px}.profile__password[_ngcontent-%COMP%]{cursor:pointer}"]});let i=t;return i})();var R=[{path:"",component:z}],oe=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=_({type:t}),t.\u0275inj=g({imports:[C.forChild(R),N,L]});let i=t;return i})();export{oe as ProfileModule}; diff --git a/chunk-CHIORARV.js b/chunk-CHIORARV.js new file mode 100644 index 0000000..6109bf8 --- /dev/null +++ b/chunk-CHIORARV.js @@ -0,0 +1,2 @@ +import{a as C}from"./chunk-7K7WWIA4.js";import{a as z}from"./chunk-3TBMT7WO.js";import{j as Y}from"./chunk-HLEBBEIB.js";import{F as m,G as a,Ja as L,K as p,M as d,Na as N,Q as h,R as f,T as F,U as k,Va as g,X as A,Ya as P,Za as O,_a as q,bb as _,da as u,ea as D,fa as B,gb as H,mb as R,nb as $,o as S,p as T,pb as U,r as l,s as j,t as x,u as w,ya as M,za as E}from"./chunk-FBONLC6U.js";var J=(()=>{let e=class e extends P{constructor(s,i,n,c){super({name:"article"},s,i,n,c),this._helper=j(z),this.articles=[],this.articlesByTagId={},this.setarticlesByTagId=this._helper.createParentIdToChildrenIds(this.articlesByTagId,this.articles,"tags"),this.get().subscribe(o=>{this.articles.push(...o),this.setarticlesByTagId()}),c.on("article_create").subscribe(o=>{this.articles.push(o),this.setarticlesByTagId()}),c.on("article_delete").subscribe(o=>{this.articles.splice(this.articles.findIndex(I=>I._id===o._id),1),this.setarticlesByTagId()})}};e.\u0275fac=function(i){return new(i||e)(l(q),l(O),l(_),l(g))},e.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function X(t,e){t&1&&(h(0,"span"),u(1,", "),f())}function Z(t,e){if(t&1&&(F(0),p(1,X,2,0,"span",3),h(2,"span"),u(3),f(),k()),t&2){let v=e.$implicit,s=e.index,i=A(2);m(),d("ngIf",s),m(2),D(i.ats.doc(v).name)}}function ee(t,e){if(t&1&&p(0,Z,4,2,"ng-container",2),t&2){let v=e.$implicit;d("ngForOf",v.tags)}}var b=(()=>{let e=class e{get rows(){return this.tagId?this._sa.articlesByTagId[this.tagId]:this._sa.articles}constructor(s,i,n,c,o,I,K,Q){this._translate=s,this._alert=i,this._sa=n,this._ats=c,this._form=o,this._core=I,this._router=K,this.ats=Q,this.columns=["title","description","shortDescription","published","tags"],this.tagId=this._router.url.includes("/articles/")?this._router.url.replace("/articles/",""):"",this.form=this._form.getForm("articles",{formId:"articles",title:"Articles",components:[{name:"Text",key:"title",focused:!0,fields:[{name:"Placeholder",value:"fill articles title"},{name:"Label",value:"Title"}]},{name:"TinyMCE",key:"description",fields:[{name:"Placeholder",value:"fill articles description"},{name:"Label",value:"Description"}]},{name:"Text",key:"shortDescription",fields:[{name:"Placeholder",value:"fill articles short description"},{name:"Label",value:"Short Description"}]},{name:"Date",key:"published",fields:[{name:"Label",value:"Date"}]},{name:"Select",key:"tags",fields:[{name:"Items",value:this._ats.articletags},{name:"Placeholder",value:"Select tags"},{name:"Label",value:"Tags"},{name:"Multiple",value:!0}]}]}),this.config={create:()=>{this._form.modal(this.form,{label:"Create",click:(r,y)=>{this._sa.create(r),y()}})},update:r=>{this._form.modal(this.form,[],r).then(y=>{this._core.copy(y,r),this._sa.update(r)})},delete:r=>{this._alert.question({text:this._translate.translate("Common.Are you sure you want to delete this cservice?"),buttons:[{text:this._translate.translate("Common.No")},{text:this._translate.translate("Common.Yes"),callback:()=>{this._sa.delete(r)}}]})},buttons:[{icon:"cloud_download",click:r=>{this._form.modalUnique("articles","url",r)}},{icon:"comment",hrefFunc:r=>"/comments/"+r._id}]}}};e.\u0275fac=function(i){return new(i||e)(a(H),a(_),a(J),a(C),a(U),a(g),a(L),a(C))},e.\u0275cmp=x({type:e,selectors:[["ng-component"]],decls:3,vars:4,consts:[["title","Articles",3,"columns","config","rows"],["cell","tags"],[4,"ngFor","ngForOf"],[4,"ngIf"]],template:function(i,n){i&1&&(u(0),h(1,"wtable",0),p(2,ee,1,1,"ng-template",1),f()),i&2&&(B("",n.tagId,` +`),m(),d("columns",n.columns)("config",n.config)("rows",n.rows))},dependencies:[M,E,$,R]});let t=e;return t})();var te=[{path:"",component:b},{path:":article",component:b}],_e=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=w({type:e}),e.\u0275inj=T({imports:[N.forChild(te),Y]});let t=e;return t})();export{_e as ArticlesModule}; diff --git a/chunk-DJZ5CL5F.js b/chunk-DJZ5CL5F.js new file mode 100644 index 0000000..90f2e01 --- /dev/null +++ b/chunk-DJZ5CL5F.js @@ -0,0 +1 @@ +import{Ba as T,F as u,G as f,K as v,M as _,Na as O,Q as o,R as l,Ta as S,W as g,X as y,_a as j,da as p,fa as x,fb as k,gb as I,hb as A,ib as E,jb as F,mb as N,na as M,nb as D,oa as P,p as w,pb as z,sb as B,t as b,tb as J,u as C,ub as L,vb as $,wb as H}from"./chunk-FBONLC6U.js";function q(r,t){if(r&1&&p(0),r&2){let c=t.$implicit;x(" ",c==null||c.slug==null?null:c.slug.split(".")[0]," ")}}function G(r,t){if(r&1&&(p(0),M(1,"translate")),r&2){let c=t.$implicit,e=y();x(" ",P(1,1,c==null?null:c.slug,e.ts.now)," ")}}var R=(()=>{let t=class t{setPage(e){this.page=e,localStorage.setItem("page",e)}get rows(){return this.ts.words.filter(e=>this.page&&typeof e=="object"?this.page===e.slug.split(".")[0]:!0)}constructor(e,a,n){this.ts=e,this._form=a,this._http=n,this.columns=["page","word","translation"],this.form=this._form.getForm("translate",{formId:"translate",title:"Translate",components:[{name:"Text",key:"translate",focused:!0,fields:[{name:"Placeholder",value:"fill Translate"},{name:"Label",value:"Translate"},{name:"Textarea",value:!0}]}]}),this.formAll=this._form.getForm("translateAll",{formId:"translateAll",title:"Translate All",components:[{name:"Text",key:"words",fields:[{name:"Placeholder",value:"fill Translate"},{name:"Label",value:"Translate"},{name:"Textarea",value:!0}]},{name:"Text",key:"translates",focused:!0,fields:[{name:"Placeholder",value:"fill Translate"},{name:"Label",value:"Translate"},{name:"Textarea",value:!0}]}]}),this.config={update:i=>{this._form.modal(this.form,[],{translate:this.ts.translate(i.slug)}).then(m=>{this._http.post("/api/translate/create",{appId:this.ts.appId,slug:i.slug,lang:this.ts.language.code,translate:m.translate}),this.ts.translates[this.ts.language.code][i.slug]=m.translate,this.ts.reset()})}},this.pages=[{name:this.ts.translate("Common.All"),_id:""}].concat(this.ts.pages.map(i=>({name:i,_id:i}))),this.page=localStorage.getItem("page")||""}translateAll(e=!1){let a=e?this.rows.filter(s=>!this.ts.translates[this.ts.language.code][s.slug]):this.rows,n=JSON.stringify(a.map(s=>s.word)),i=a.map(s=>s.slug),m=JSON.stringify(a.map(s=>this.ts.translate(s.slug)));this._form.modal(this.formAll,[],{words:n,translates:m}).then(s=>{if(m===s.translates)return;let h=JSON.parse(s.translates);for(let d=0;da.code===e))}};t.\u0275fac=function(a){return new(a||t)(f(I),f(z),f(j))},t.\u0275cmp=b({type:t,selectors:[["ng-component"]],decls:26,vars:7,consts:[[1,"container-fluid"],[1,"page-wrapper"],[1,"translate__top-inner"],[1,"translate__inner"],["for","",1,"formboxs"],["translate","",1,"formboxs_title"],["value","code",3,"modelChange","items","select"],[2,"width","300px",3,"modelChange","items","select"],[1,"translate__buttons"],[1,"translate__dawn-jcon",3,"click"],[1,"material-icons","ng-tns-c405976996-4"],["translate",""],[3,"columns","config","rows"],["cell","page"],["cell","translation"]],template:function(a,n){a&1&&(o(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"label",4)(5,"div",5),p(6," Common.Select language "),l(),o(7,"wselect",6),g("modelChange",function(m){return n.set_language(m)}),l()(),o(8,"label",4)(9,"div",5),p(10," Common.Select page "),l(),o(11,"wselect",7),g("modelChange",function(m){return n.setPage(m)}),l()()(),o(12,"div",8)(13,"wbutton",9),g("click",function(){return n.translateAll()}),o(14,"span",10),p(15," translate "),l(),o(16,"span",11),p(17,"Common.Translate all"),l()(),o(18,"wbutton",9),g("click",function(){return n.translateAll(!0)}),o(19,"span",10),p(20," translate "),l(),o(21,"span",11),p(22,"Common.Translate missed"),l()()()(),o(23,"wtable",12),v(24,q,1,1,"ng-template",13)(25,G,2,4,"ng-template",14),l()()()),a&2&&(u(7),_("items",n.ts.languages)("select",n.ts.language.code),u(4),_("items",n.pages)("select",n.page),u(12),_("columns",n.columns)("config",n.config)("rows",n.rows))},dependencies:[A,E,D,N,$,J],styles:['.translate__top-inner[_ngcontent-%COMP%]{width:100%;max-width:100vw;display:flex;background:var(--c-bg-secondary);padding:15px;align-items:end;flex-wrap:wrap;gap:20px;justify-content:space-between;border-radius:10px;margin:0 auto;position:relative}@media screen and (max-width: 1250px){.translate__top-inner[_ngcontent-%COMP%]{justify-content:center}}@media (max-width: 767px){.translate__top-inner[_ngcontent-%COMP%]{flex-direction:column;align-items:center;padding:15px}}.translate__top-inner[_ngcontent-%COMP%]:before{content:"";position:absolute;height:100px;width:100%;background-color:var(--c-bg-secondary);z-index:-1;left:0;right:0;bottom:-50px}.translate__btn[_ngcontent-%COMP%]{position:absolute;top:-5px;right:25px;font-size:23px}.translate__dawn-jcon[_ngcontent-%COMP%] span.material-icons[_ngcontent-%COMP%]{padding-right:5px}.translate__buttons[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;gap:10px}@media (max-width: 575px){.translate__buttons[_ngcontent-%COMP%]{flex-direction:column}.translate__buttons[_ngcontent-%COMP%] wbutton[_ngcontent-%COMP%]{width:100%}}.translate__inner[_ngcontent-%COMP%]{display:flex;gap:40px;flex-wrap:wrap}@media (max-width: 575px){.translate__inner[_ngcontent-%COMP%]{flex-direction:column;align-items:center;gap:20px}}.formboxs_label[_ngcontent-%COMP%]{width:100%;color:var(--c-text-primary);position:relative;display:flex;justify-content:space-between;padding-bottom:10px;padding-right:52px}.translate__main-wrap[_ngcontent-%COMP%]{justify-content:center}.translate__select[_ngcontent-%COMP%]{min-width:200px;max-width:200px;background:var(--c-grey);padding:5px;border:1px solid #7f8c8d;border-radius:5px}.translate__main-inner[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;flex-direction:column;width:100%;max-width:350px;border-radius:10px;margin:5px 15px 35px;padding:10px;height:fit-content;background:var(--c-bg-secondary);border:2px solid var(--c-primary);cursor:pointer}@media (max-width: 575px){.translate__main-inner[_ngcontent-%COMP%]{margin:0}}.title[_ngcontent-%COMP%]{text-align:center}.input[_ngcontent-%COMP%]{width:100%;margin-right:10px;border-radius:5px;padding:5px 10px;border:1px solid var(--c-text-primary)}.formboxs[_ngcontent-%COMP%]{display:flex;gap:10px;flex-direction:column;align-items:flex-start}.formboxs_title[_ngcontent-%COMP%]{color:var(--c-text-primary);display:flex;justify-content:center;align-items:center}.main__sub-inner[_ngcontent-%COMP%]{margin:20px;display:flex;flex-wrap:wrap}@media (max-width: 767px){.main__sub-inner[_ngcontent-%COMP%]{margin:20px 0}}@media (max-width: 575px){.main__sub-inner[_ngcontent-%COMP%]{gap:20px}}.img-close[_ngcontent-%COMP%]{width:25px;height:25px;border-radius:50%;position:absolute;top:-6px;right:-6px;z-index:2;transition:all .3s;cursor:pointer}.img-close[_ngcontent-%COMP%]:before{content:"";position:absolute;left:50%;top:50%;width:80%;height:2px;transform:translate(-50%,-50%) rotate(45deg);background:var(--c-text-primary)}.img-close[_ngcontent-%COMP%]:after{content:"";position:absolute;left:50%;top:50%;width:80%;height:2px;transform:translate(-50%,-50%) rotate(-45deg);background:var(--c-text-primary)}']});let r=t;return r})();var K=[{path:"",component:R}],gt=(()=>{let t=class t{};t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=C({type:t}),t.\u0275inj=w({imports:[O.forChild(K),L,T,F,S,B,k,H]});let r=t;return r})();export{gt as TranslatesModule}; diff --git a/chunk-FBONLC6U.js b/chunk-FBONLC6U.js new file mode 100644 index 0000000..7ec322e --- /dev/null +++ b/chunk-FBONLC6U.js @@ -0,0 +1,8 @@ +var gh=Object.defineProperty,P0=Object.defineProperties;var R0=Object.getOwnPropertyDescriptors;var Go=Object.getOwnPropertySymbols;var mh=Object.prototype.hasOwnProperty,yh=Object.prototype.propertyIsEnumerable;var ph=(t,e,n)=>e in t?gh(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,C=(t,e)=>{for(var n in e||={})mh.call(e,n)&&ph(t,n,e[n]);if(Go)for(var n of Go(e))yh.call(e,n)&&ph(t,n,e[n]);return t},z=(t,e)=>P0(t,R0(e));var k0=(t,e)=>{var n={};for(var r in t)mh.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Go)for(var r of Go(t))e.indexOf(r)<0&&yh.call(t,r)&&(n[r]=t[r]);return n};var F0=(t,e)=>{for(var n in e)gh(t,n,{get:e[n],enumerable:!0})};var _t=(t,e,n)=>new Promise((r,i)=>{var o=c=>{try{a(n.next(c))}catch(l){i(l)}},s=c=>{try{a(n.throw(c))}catch(l){i(l)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(o,s);a((n=n.apply(t,e)).next())});function vh(t,e){return Object.is(t,e)}var De=null,Wo=!1,Zo=1,Zt=Symbol("SIGNAL");function J(t){let e=De;return De=t,e}function _h(){return De}var Oi={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Yc(t){if(Wo)throw new Error("");if(De===null)return;De.consumerOnSignalRead(t);let e=De.nextProducerIndex++;if(Jo(De),et.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function Kc(t){Jo(t);for(let e=0;e0}function Jo(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function Eh(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function Ih(t){return t.producerNode!==void 0}function xh(t){let e=Object.create(j0);e.computation=t;let n=()=>{if(wh(e),Yc(e),e.value===Yo)throw e.error;return e.value};return n[Zt]=e,n}var Wc=Symbol("UNSET"),Zc=Symbol("COMPUTING"),Yo=Symbol("ERRORED"),j0=z(C({},Oi),{value:Wc,dirty:!0,error:null,equal:vh,producerMustRecompute(t){return t.value===Wc||t.value===Zc},producerRecomputeValue(t){if(t.value===Zc)throw new Error("Detected cycle in computations.");let e=t.value;t.value=Zc;let n=Qo(t),r;try{r=t.computation()}catch(i){r=Yo,t.error=i}finally{Qc(t,n)}if(e!==Wc&&e!==Yo&&r!==Yo&&t.equal(e,r)){t.value=e;return}t.value=r,t.version++}});function B0(){throw new Error}var Mh=B0;function Sh(){Mh()}function Th(t){Mh=t}var U0=null;function Ah(t){let e=Object.create(Nh);e.value=t;let n=()=>(Yc(e),e.value);return n[Zt]=e,n}function Xc(t,e){Ch()||Sh(),t.equal(t.value,e)||(t.value=e,$0(t))}function Oh(t,e){Ch()||Sh(),Xc(t,e(t.value))}var Nh=z(C({},Oi),{equal:vh,value:void 0});function $0(t){t.version++,L0(),bh(t),U0?.()}function F(t){return typeof t=="function"}function Cr(t){let n=t(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Xo=Cr(t=>function(n){t(this),this.message=n?`${n.length} errors occurred during unsubscription: +${n.map((r,i)=>`${i+1}) ${r.toString()}`).join(` + `)}`:"",this.name="UnsubscriptionError",this.errors=n});function Ni(t,e){if(t){let n=t.indexOf(e);0<=n&&t.splice(n,1)}}var be=class t{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let o of n)o.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(F(r))try{r()}catch(o){e=o instanceof Xo?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{Ph(o)}catch(s){e=e??[],s instanceof Xo?e=[...e,...s.errors]:e.push(s)}}if(e)throw new Xo(e)}}add(e){var n;if(e&&e!==this)if(this.closed)Ph(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(e)}}_hasParent(e){let{_parentage:n}=this;return n===e||Array.isArray(n)&&n.includes(e)}_addParent(e){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(e),n):n?[n,e]:e}_removeParent(e){let{_parentage:n}=this;n===e?this._parentage=null:Array.isArray(n)&&Ni(n,e)}remove(e){let{_finalizers:n}=this;n&&Ni(n,e),e instanceof t&&e._removeParent(this)}};be.EMPTY=(()=>{let t=new be;return t.closed=!0,t})();var el=be.EMPTY;function es(t){return t instanceof be||t&&"closed"in t&&F(t.remove)&&F(t.add)&&F(t.unsubscribe)}function Ph(t){F(t)?t():t.unsubscribe()}var wt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Dr={setTimeout(t,e,...n){let{delegate:r}=Dr;return r?.setTimeout?r.setTimeout(t,e,...n):setTimeout(t,e,...n)},clearTimeout(t){let{delegate:e}=Dr;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function ts(t){Dr.setTimeout(()=>{let{onUnhandledError:e}=wt;if(e)e(t);else throw t})}function Pi(){}var Rh=tl("C",void 0,void 0);function kh(t){return tl("E",void 0,t)}function Fh(t){return tl("N",t,void 0)}function tl(t,e,n){return{kind:t,value:e,error:n}}var Un=null;function Er(t){if(wt.useDeprecatedSynchronousErrorHandling){let e=!Un;if(e&&(Un={errorThrown:!1,error:null}),t(),e){let{errorThrown:n,error:r}=Un;if(Un=null,n)throw r}}else t()}function Lh(t){wt.useDeprecatedSynchronousErrorHandling&&Un&&(Un.errorThrown=!0,Un.error=t)}var $n=class extends be{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,es(e)&&e.add(this)):this.destination=q0}static create(e,n,r){return new Yt(e,n,r)}next(e){this.isStopped?rl(Fh(e),this):this._next(e)}error(e){this.isStopped?rl(kh(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?rl(Rh,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},H0=Function.prototype.bind;function nl(t,e){return H0.call(t,e)}var il=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:n}=this;if(n.next)try{n.next(e)}catch(r){ns(r)}}error(e){let{partialObserver:n}=this;if(n.error)try{n.error(e)}catch(r){ns(r)}else ns(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(n){ns(n)}}},Yt=class extends $n{constructor(e,n,r){super();let i;if(F(e)||!e)i={next:e??void 0,error:n??void 0,complete:r??void 0};else{let o;this&&wt.useDeprecatedNextContext?(o=Object.create(e),o.unsubscribe=()=>this.unsubscribe(),i={next:e.next&&nl(e.next,o),error:e.error&&nl(e.error,o),complete:e.complete&&nl(e.complete,o)}):i=e}this.destination=new il(i)}};function ns(t){wt.useDeprecatedSynchronousErrorHandling?Lh(t):ts(t)}function z0(t){throw t}function rl(t,e){let{onStoppedNotification:n}=wt;n&&Dr.setTimeout(()=>n(t,e))}var q0={closed:!0,next:Pi,error:z0,complete:Pi};var Ir=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Ye(t){return t}function ol(...t){return sl(t)}function sl(t){return t.length===0?Ye:t.length===1?t[0]:function(n){return t.reduce((r,i)=>i(r),n)}}var G=(()=>{class t{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new t;return r.source=this,r.operator=n,r}subscribe(n,r,i){let o=W0(n)?n:new Yt(n,r,i);return Er(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=Vh(r),new r((i,o)=>{let s=new Yt({next:a=>{try{n(a)}catch(c){o(c),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[Ir](){return this}pipe(...n){return sl(n)(this)}toPromise(n){return n=Vh(n),new n((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return t.create=e=>new t(e),t})();function Vh(t){var e;return(e=t??wt.Promise)!==null&&e!==void 0?e:Promise}function G0(t){return t&&F(t.next)&&F(t.error)&&F(t.complete)}function W0(t){return t&&t instanceof $n||G0(t)&&es(t)}function al(t){return F(t?.lift)}function Z(t){return e=>{if(al(e))return e.lift(function(n){try{return t(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function Y(t,e,n,r,i){return new cl(t,e,n,r,i)}var cl=class extends $n{constructor(e,n,r,i,o,s){super(e),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){e.error(c)}}:super._next,this._error=i?function(a){try{i(a)}catch(c){e.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}};function xr(){return Z((t,e)=>{let n=null;t._refCount++;let r=Y(e,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){n=null;return}let i=t._connection,o=n;n=null,i&&(!o||i===o)&&i.unsubscribe(),e.unsubscribe()});t.subscribe(r),r.closed||(n=t.connect())})}var Mr=class extends G{constructor(e,n){super(),this.source=e,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,al(e)&&(this.lift=e.lift)}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){let e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:e}=this;this._subject=this._connection=null,e?.unsubscribe()}connect(){let e=this._connection;if(!e){e=this._connection=new be;let n=this.getSubject();e.add(this.source.subscribe(Y(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),e.closed&&(this._connection=null,e=be.EMPTY)}return e}refCount(){return xr()(this)}};var jh=Cr(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ue=(()=>{class t extends G{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new rs(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new jh}next(n){Er(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Er(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){Er(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:i,observers:o}=this;return r||i?el:(this.currentObservers=null,o.push(n),new be(()=>{this.currentObservers=null,Ni(o,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:i,isStopped:o}=this;r?n.error(i):o&&n.complete()}asObservable(){let n=new G;return n.source=this,n}}return t.create=(e,n)=>new rs(e,n),t})(),rs=class extends ue{constructor(e,n){super(),this.destination=e,this.source=n}next(e){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,e)}error(e){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,e)}complete(){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||n===void 0||n.call(e)}_subscribe(e){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(e))!==null&&r!==void 0?r:el}};var Ae=class extends ue{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let n=super._subscribe(e);return!n.closed&&e.next(this._value),n}getValue(){let{hasError:e,thrownError:n,_value:r}=this;if(e)throw n;return this._throwIfClosed(),r}next(e){super.next(this._value=e)}};var ll={now(){return(ll.delegate||Date).now()},delegate:void 0};var Ri=class extends ue{constructor(e=1/0,n=1/0,r=ll){super(),this._bufferSize=e,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,n)}next(e){let{isStopped:n,_buffer:r,_infiniteTimeWindow:i,_timestampProvider:o,_windowTime:s}=this;n||(r.push(e),!i&&r.push(o.now()+s)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(e),{_infiniteTimeWindow:r,_buffer:i}=this,o=i.slice();for(let s=0;st.complete());function Bh(t){return t&&F(t.schedule)}function ul(t){return t[t.length-1]}function is(t){return F(ul(t))?t.pop():void 0}function Rt(t){return Bh(ul(t))?t.pop():void 0}function Uh(t,e){return typeof ul(t)=="number"?t.pop():e}function Hh(t,e,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(u){try{l(r.next(u))}catch(d){s(d)}}function c(u){try{l(r.throw(u))}catch(d){s(d)}}function l(u){u.done?o(u.value):i(u.value).then(a,c)}l((r=r.apply(t,e||[])).next())})}function $h(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Hn(t){return this instanceof Hn?(this.v=t,this):new Hn(t)}function zh(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(t,e||[]),i,o=[];return i={},a("next"),a("throw"),a("return",s),i[Symbol.asyncIterator]=function(){return this},i;function s(h){return function(w){return Promise.resolve(w).then(h,d)}}function a(h,w){r[h]&&(i[h]=function(O){return new Promise(function(x,I){o.push([h,O,x,I])>1||c(h,O)})},w&&(i[h]=w(i[h])))}function c(h,w){try{l(r[h](w))}catch(O){f(o[0][3],O)}}function l(h){h.value instanceof Hn?Promise.resolve(h.value.v).then(u,d):f(o[0][2],h)}function u(h){c("next",h)}function d(h){c("throw",h)}function f(h,w){h(w),o.shift(),o.length&&c(o[0][0],o[0][1])}}function qh(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=typeof $h=="function"?$h(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=t[o]&&function(s){return new Promise(function(a,c){s=t[o](s),i(a,c,s.done,s.value)})}}function i(o,s,a,c){Promise.resolve(c).then(function(l){o({value:l,done:a})},s)}}var Sr=t=>t&&typeof t.length=="number"&&typeof t!="function";function os(t){return F(t?.then)}function ss(t){return F(t[Ir])}function as(t){return Symbol.asyncIterator&&F(t?.[Symbol.asyncIterator])}function cs(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Z0(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var ls=Z0();function us(t){return F(t?.[ls])}function ds(t){return zh(this,arguments,function*(){let n=t.getReader();try{for(;;){let{value:r,done:i}=yield Hn(n.read());if(i)return yield Hn(void 0);yield yield Hn(r)}}finally{n.releaseLock()}})}function fs(t){return F(t?.getReader)}function se(t){if(t instanceof G)return t;if(t!=null){if(ss(t))return Y0(t);if(Sr(t))return Q0(t);if(os(t))return K0(t);if(as(t))return Gh(t);if(us(t))return J0(t);if(fs(t))return X0(t)}throw cs(t)}function Y0(t){return new G(e=>{let n=t[Ir]();if(F(n.subscribe))return n.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Q0(t){return new G(e=>{for(let n=0;n{t.then(n=>{e.closed||(e.next(n),e.complete())},n=>e.error(n)).then(null,ts)})}function J0(t){return new G(e=>{for(let n of t)if(e.next(n),e.closed)return;e.complete()})}function Gh(t){return new G(e=>{ew(t,e).catch(n=>e.error(n))})}function X0(t){return Gh(ds(t))}function ew(t,e){var n,r,i,o;return Hh(this,void 0,void 0,function*(){try{for(n=qh(t);r=yield n.next(),!r.done;){let s=r.value;if(e.next(s),e.closed)return}}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=n.return)&&(yield o.call(n))}finally{if(i)throw i.error}}e.complete()})}function He(t,e,n,r=0,i=!1){let o=e.schedule(function(){n(),i?t.add(this.schedule(null,r)):this.unsubscribe()},r);if(t.add(o),!i)return o}function hs(t,e=0){return Z((n,r)=>{n.subscribe(Y(r,i=>He(r,t,()=>r.next(i),e),()=>He(r,t,()=>r.complete(),e),i=>He(r,t,()=>r.error(i),e)))})}function ps(t,e=0){return Z((n,r)=>{r.add(t.schedule(()=>n.subscribe(r),e))})}function Wh(t,e){return se(t).pipe(ps(e),hs(e))}function Zh(t,e){return se(t).pipe(ps(e),hs(e))}function Yh(t,e){return new G(n=>{let r=0;return e.schedule(function(){r===t.length?n.complete():(n.next(t[r++]),n.closed||this.schedule())})})}function Qh(t,e){return new G(n=>{let r;return He(n,e,()=>{r=t[ls](),He(n,e,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){n.error(s);return}o?n.complete():n.next(i)},0,!0)}),()=>F(r?.return)&&r.return()})}function gs(t,e){if(!t)throw new Error("Iterable cannot be null");return new G(n=>{He(n,e,()=>{let r=t[Symbol.asyncIterator]();He(n,e,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function Kh(t,e){return gs(ds(t),e)}function Jh(t,e){if(t!=null){if(ss(t))return Wh(t,e);if(Sr(t))return Yh(t,e);if(os(t))return Zh(t,e);if(as(t))return gs(t,e);if(us(t))return Qh(t,e);if(fs(t))return Kh(t,e)}throw cs(t)}function te(t,e){return e?Jh(t,e):se(t)}function k(...t){let e=Rt(t);return te(t,e)}function Tr(t,e){let n=F(t)?t:()=>t,r=i=>i.error(n());return new G(e?i=>e.schedule(r,0,i):r)}function dl(t){return!!t&&(t instanceof G||F(t.lift)&&F(t.subscribe))}var Qt=Cr(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function j(t,e){return Z((n,r)=>{let i=0;n.subscribe(Y(r,o=>{r.next(t.call(e,o,i++))}))})}var{isArray:tw}=Array;function nw(t,e){return tw(e)?t(...e):t(e)}function Ar(t){return j(e=>nw(t,e))}var{isArray:rw}=Array,{getPrototypeOf:iw,prototype:ow,keys:sw}=Object;function ms(t){if(t.length===1){let e=t[0];if(rw(e))return{args:e,keys:null};if(aw(e)){let n=sw(e);return{args:n.map(r=>e[r]),keys:n}}}return{args:t,keys:null}}function aw(t){return t&&typeof t=="object"&&iw(t)===ow}function ys(t,e){return t.reduce((n,r,i)=>(n[r]=e[i],n),{})}function ki(...t){let e=Rt(t),n=is(t),{args:r,keys:i}=ms(t);if(r.length===0)return te([],e);let o=new G(cw(r,e,i?s=>ys(i,s):Ye));return n?o.pipe(Ar(n)):o}function cw(t,e,n=Ye){return r=>{Xh(e,()=>{let{length:i}=t,o=new Array(i),s=i,a=i;for(let c=0;c{let l=te(t[c],e),u=!1;l.subscribe(Y(r,d=>{o[c]=d,u||(u=!0,a--),a||r.next(n(o.slice()))},()=>{--s||r.complete()}))},r)},r)}}function Xh(t,e,n){t?He(n,t,e):e()}function ep(t,e,n,r,i,o,s,a){let c=[],l=0,u=0,d=!1,f=()=>{d&&!c.length&&!l&&e.complete()},h=O=>l{o&&e.next(O),l++;let x=!1;se(n(O,u++)).subscribe(Y(e,I=>{i?.(I),o?h(I):e.next(I)},()=>{x=!0},void 0,()=>{if(x)try{for(l--;c.length&&lw(I)):w(I)}f()}catch(I){e.error(I)}}))};return t.subscribe(Y(e,h,()=>{d=!0,f()})),()=>{a?.()}}function pe(t,e,n=1/0){return F(e)?pe((r,i)=>j((o,s)=>e(r,o,i,s))(se(t(r,i))),n):(typeof e=="number"&&(n=e),Z((r,i)=>ep(r,i,t,n)))}function kt(t=1/0){return pe(Ye,t)}function tp(){return kt(1)}function Or(...t){return tp()(te(t,Rt(t)))}function vs(t){return new G(e=>{se(t()).subscribe(e)})}function fl(...t){let e=is(t),{args:n,keys:r}=ms(t),i=new G(o=>{let{length:s}=n;if(!s){o.complete();return}let a=new Array(s),c=s,l=s;for(let u=0;u{d||(d=!0,l--),a[u]=f},()=>c--,void 0,()=>{(!c||!d)&&(l||o.next(r?ys(r,a):a),o.complete())}))}});return e?i.pipe(Ar(e)):i}var lw=["addListener","removeListener"],uw=["addEventListener","removeEventListener"],dw=["on","off"];function hl(t,e,n,r){if(F(n)&&(r=n,n=void 0),r)return hl(t,e,n).pipe(Ar(r));let[i,o]=pw(t)?uw.map(s=>a=>t[s](e,a,n)):fw(t)?lw.map(np(t,e)):hw(t)?dw.map(np(t,e)):[];if(!i&&Sr(t))return pe(s=>hl(s,e,n))(se(t));if(!i)throw new TypeError("Invalid event target");return new G(s=>{let a=(...c)=>s.next(1o(a)})}function np(t,e){return n=>r=>t[n](e,r)}function fw(t){return F(t.addListener)&&F(t.removeListener)}function hw(t){return F(t.on)&&F(t.off)}function pw(t){return F(t.addEventListener)&&F(t.removeEventListener)}function gw(...t){let e=Rt(t),n=Uh(t,1/0),r=t;return r.length?r.length===1?se(r[0]):kt(n)(te(r,e)):Oe}function ze(t,e){return Z((n,r)=>{let i=0;n.subscribe(Y(r,o=>t.call(e,o,i++)&&r.next(o)))})}function bt(t){return Z((e,n)=>{let r=null,i=!1,o;r=e.subscribe(Y(n,void 0,void 0,s=>{o=se(t(s,bt(t)(e))),r?(r.unsubscribe(),r=null,o.subscribe(n)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(n))})}function rp(t,e,n,r,i){return(o,s)=>{let a=n,c=e,l=0;o.subscribe(Y(s,u=>{let d=l++;c=a?t(c,u,d):(a=!0,u),r&&s.next(c)},i&&(()=>{a&&s.next(c),s.complete()})))}}function Kt(t,e){return F(e)?pe(t,e,1):pe(t,1)}function yn(t){return Z((e,n)=>{let r=!1;e.subscribe(Y(n,i=>{r=!0,n.next(i)},()=>{r||n.next(t),n.complete()}))})}function Jt(t){return t<=0?()=>Oe:Z((e,n)=>{let r=0;e.subscribe(Y(n,i=>{++r<=t&&(n.next(i),t<=r&&n.complete())}))})}function pl(t){return j(()=>t)}function _s(t=mw){return Z((e,n)=>{let r=!1;e.subscribe(Y(n,i=>{r=!0,n.next(i)},()=>r?n.complete():n.error(t())))})}function mw(){return new Qt}function vn(t){return Z((e,n)=>{try{e.subscribe(n)}finally{n.add(t)}})}function lt(t,e){let n=arguments.length>=2;return r=>r.pipe(t?ze((i,o)=>t(i,o,r)):Ye,Jt(1),n?yn(e):_s(()=>new Qt))}function Nr(t){return t<=0?()=>Oe:Z((e,n)=>{let r=[];e.subscribe(Y(n,i=>{r.push(i),t{for(let i of r)n.next(i);n.complete()},void 0,()=>{r=null}))})}function gl(t,e){let n=arguments.length>=2;return r=>r.pipe(t?ze((i,o)=>t(i,o,r)):Ye,Nr(1),n?yn(e):_s(()=>new Qt))}function ml(t,e){return Z(rp(t,e,arguments.length>=2,!0))}function yw(t={}){let{connector:e=()=>new ue,resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:i=!0}=t;return o=>{let s,a,c,l=0,u=!1,d=!1,f=()=>{a?.unsubscribe(),a=void 0},h=()=>{f(),s=c=void 0,u=d=!1},w=()=>{let O=s;h(),O?.unsubscribe()};return Z((O,x)=>{l++,!d&&!u&&f();let I=c=c??e();x.add(()=>{l--,l===0&&!d&&!u&&(a=yl(w,i))}),I.subscribe(x),!s&&l>0&&(s=new Yt({next:K=>I.next(K),error:K=>{d=!0,f(),a=yl(h,n,K),I.error(K)},complete:()=>{u=!0,f(),a=yl(h,r),I.complete()}}),se(O).subscribe(s))})(o)}}function yl(t,e,...n){if(e===!0){t();return}if(e===!1)return;let r=new Yt({next:()=>{r.unsubscribe(),t()}});return e(...n).subscribe(r)}function vl(...t){let e=Rt(t);return Z((n,r)=>{(e?Or(t,n,e):Or(t,n)).subscribe(r)})}function qe(t,e){return Z((n,r)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&r.complete();n.subscribe(Y(r,c=>{i?.unsubscribe();let l=0,u=o++;se(t(c,u)).subscribe(i=Y(r,d=>r.next(e?e(c,d,u,l++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function _l(t){return Z((e,n)=>{se(t).subscribe(Y(n,()=>n.complete(),Pi)),!n.closed&&e.subscribe(n)})}function xe(t,e,n){let r=F(t)||e||n?{next:t,error:e,complete:n}:t;return r?Z((i,o)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;i.subscribe(Y(o,c=>{var l;(l=r.next)===null||l===void 0||l.call(r,c),o.next(c)},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),o.complete()},c=>{var l;a=!1,(l=r.error)===null||l===void 0||l.call(r,c),o.error(c)},()=>{var c,l;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(l=r.finalize)===null||l===void 0||l.call(r)}))}):Ye}var Hp="https://g.co/ng/security#xss",S=class extends Error{constructor(e,n){super(sa(e,n)),this.code=e}};function sa(t,e){return`${`NG0${Math.abs(t)}`}${e?": "+e:""}`}function Wi(t){return{toString:t}.toString()}var ws="__parameters__";function vw(t){return function(...n){if(t){let r=t(...n);for(let i in r)this[i]=r[i]}}}function zp(t,e,n){return Wi(()=>{let r=vw(e);function i(...o){if(this instanceof i)return r.apply(this,o),this;let s=new i(...o);return a.annotation=s,a;function a(c,l,u){let d=c.hasOwnProperty(ws)?c[ws]:Object.defineProperty(c,ws,{value:[]})[ws];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),c}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i})}var Ke=globalThis;function re(t){for(let e in t)if(t[e]===re)return e;throw Error("Could not find renamed property on target object.")}function _w(t,e){for(let n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function je(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(je).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;let e=t.toString();if(e==null)return""+e;let n=e.indexOf(` +`);return n===-1?e:e.substring(0,n)}function Pl(t,e){return t==null||t===""?e===null?"":e:e==null||e===""?t:t+" "+e}var ww=re({__forward_ref__:re});function nr(t){return t.__forward_ref__=nr,t.toString=function(){return je(this())},t}function Ve(t){return qp(t)?t():t}function qp(t){return typeof t=="function"&&t.hasOwnProperty(ww)&&t.__forward_ref__===nr}function D(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function ae(t){return{providers:t.providers||[],imports:t.imports||[]}}function aa(t){return ip(t,Wp)||ip(t,Zp)}function Gp(t){return aa(t)!==null}function ip(t,e){return t.hasOwnProperty(e)?t[e]:null}function bw(t){let e=t&&(t[Wp]||t[Zp]);return e||null}function op(t){return t&&(t.hasOwnProperty(sp)||t.hasOwnProperty(Cw))?t[sp]:null}var Wp=re({\u0275prov:re}),sp=re({\u0275inj:re}),Zp=re({ngInjectableDef:re}),Cw=re({ngInjectorDef:re}),M=class{constructor(e,n){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=D({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Yp(t){return t&&!!t.\u0275providers}var Dw=re({\u0275cmp:re}),Ew=re({\u0275dir:re}),Iw=re({\u0275pipe:re}),xw=re({\u0275mod:re}),Ps=re({\u0275fac:re}),Li=re({__NG_ELEMENT_ID__:re}),ap=re({__NG_ENV_ID__:re});function jr(t){return typeof t=="string"?t:t==null?"":String(t)}function Mw(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():jr(t)}function Sw(t,e){let n=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new S(-200,t)}function Uu(t,e){throw new S(-201,!1)}var q=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(q||{}),Rl;function Qp(){return Rl}function Ge(t){let e=Rl;return Rl=t,e}function Kp(t,e,n){let r=aa(t);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&q.Optional)return null;if(e!==void 0)return e;Uu(t,"Injector")}var Tw={},ji=Tw,kl="__NG_DI_FLAG__",Rs="ngTempTokenPath",Aw="ngTokenPath",Ow=/\n/gm,Nw="\u0275",cp="__source",Lr;function Pw(){return Lr}function _n(t){let e=Lr;return Lr=t,e}function Rw(t,e=q.Default){if(Lr===void 0)throw new S(-203,!1);return Lr===null?Kp(t,void 0,e):Lr.get(t,e&q.Optional?null:void 0,e)}function _(t,e=q.Default){return(Qp()||Rw)(Ve(t),e)}function b(t,e=q.Default){return _(t,ca(e))}function ca(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function Fl(t){let e=[];for(let n=0;n ");else if(typeof e=="object"){let o=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):je(a)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${t.replace(Ow,` + `)}`}var Zi=Jp(zp("Optional"),8);var la=Jp(zp("SkipSelf"),4);function Wn(t,e){let n=t.hasOwnProperty(Ps);return n?t[Ps]:null}function Vw(t,e,n){if(t.length!==e.length)return!1;for(let r=0;rArray.isArray(n)?$u(n,e):e(n))}function Xp(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function ks(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Bw(t,e){let n=[];for(let r=0;re;){let o=i-2;t[i]=t[o],i--}t[e]=n,t[e+1]=r}}function ua(t,e,n){let r=Yi(t,e);return r>=0?t[r|1]=n:(r=~r,Uw(t,r,e,n)),r}function wl(t,e){let n=Yi(t,e);if(n>=0)return t[n|1]}function Yi(t,e){return $w(t,e,1)}function $w(t,e,n){let r=0,i=t.length>>n;for(;i!==r;){let o=r+(i-r>>1),s=t[o<e?i=o:r=o+1}return~(i<e){s=o-1;break}}}for(;o-1){let o;for(;++io?d="":d=i[u+1].toLowerCase(),r&2&&l!==d){if(Ct(r))return!1;s=!0}}}}return Ct(r)||s}function Ct(t){return(t&1)===0}function Zw(t,e,n,r){if(e===null)return-1;let i=0;if(r||!n){let o=!1;for(;i-1)for(n++;n0?'="'+a+'"':"")+"]"}else r&8?i+="."+s:r&4&&(i+=" "+s);else i!==""&&!Ct(s)&&(e+=up(o,i),i=""),r=s,o=o||!Ct(r);n++}return i!==""&&(e+=up(o,i)),e}function eb(t){return t.map(Xw).join(",")}function tb(t){let e=[],n=[],r=1,i=2;for(;r{let e=ug(t),n=z(C({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===ng.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Vt.Emulated,styles:t.styles||We,_:null,schemas:t.schemas||null,tView:null,id:""});dg(n);let r=t.dependencies;return n.directiveDefs=Ls(r,!1),n.pipeDefs=Ls(r,!0),n.id=ib(n),n})}function nb(t){return Dn(t)||sg(t)}function rb(t){return t!==null}function ce(t){return Wi(()=>({type:t.type,bootstrap:t.bootstrap||We,declarations:t.declarations||We,imports:t.imports||We,exports:t.exports||We,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function dp(t,e){if(t==null)return Br;let n={};for(let r in t)if(t.hasOwnProperty(r)){let i=t[r],o,s,a=Cn.None;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o):(o=i,s=i),e?(n[o]=a!==Cn.None?[r,a]:r,e[o]=s):n[o]=r}return n}function ie(t){return Wi(()=>{let e=ug(t);return dg(e),e})}function rr(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone===!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function Dn(t){return t[Dw]||null}function sg(t){return t[Ew]||null}function ag(t){return t[Iw]||null}function cg(t){let e=Dn(t)||sg(t)||ag(t);return e!==null?e.standalone:!1}function lg(t,e){let n=t[xw]||null;if(!n&&e===!0)throw new Error(`Type ${je(t)} does not have '\u0275mod' property.`);return n}function ug(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:t.inputs||Br,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||We,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:dp(t.inputs,e),outputs:dp(t.outputs),debugInfo:null}}function dg(t){t.features?.forEach(e=>e(t))}function Ls(t,e){if(!t)return null;let n=e?ag:nb;return()=>(typeof t=="function"?t():t).map(r=>n(r)).filter(rb)}function ib(t){let e=0,n=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(let i of n)e=Math.imul(31,e)+i.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function da(t){return{\u0275providers:t}}function ob(...t){return{\u0275providers:fg(!0,t),\u0275fromNgModule:!0}}function fg(t,...e){let n=[],r=new Set,i,o=s=>{n.push(s)};return $u(e,s=>{let a=s;Vl(a,o,[],r)&&(i||=[],i.push(a))}),i!==void 0&&hg(i,o),n}function hg(t,e){for(let n=0;n{e(o,r)})}}function Vl(t,e,n,r){if(t=Ve(t),!t)return!1;let i=null,o=op(t),s=!o&&Dn(t);if(!o&&!s){let c=t.ngModule;if(o=op(c),o)i=c;else return!1}else{if(s&&!s.standalone)return!1;i=t}let a=r.has(i);if(s){if(a)return!1;if(r.add(i),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let l of c)Vl(l,e,n,r)}}else if(o){if(o.imports!=null&&!a){r.add(i);let l;try{$u(o.imports,u=>{Vl(u,e,n,r)&&(l||=[],l.push(u))})}finally{}l!==void 0&&hg(l,e)}if(!a){let l=Wn(i)||(()=>new i);e({provide:i,useFactory:l,deps:We},i),e({provide:tg,useValue:i,multi:!0},i),e({provide:Ur,useValue:()=>_(i),multi:!0},i)}let c=o.providers;if(c!=null&&!a){let l=t;zu(c,u=>{e(u,l)})}}else return!1;return i!==t&&t.providers!==void 0}function zu(t,e){for(let n of t)Yp(n)&&(n=n.\u0275providers),Array.isArray(n)?zu(n,e):e(n)}var sb=re({provide:String,useValue:re});function pg(t){return t!==null&&typeof t=="object"&&sb in t}function ab(t){return!!(t&&t.useExisting)}function cb(t){return!!(t&&t.useFactory)}function $r(t){return typeof t=="function"}function lb(t){return!!t.useClass}var fa=new M(""),Ss={},ub={},bl;function qu(){return bl===void 0&&(bl=new Fs),bl}var Be=class{},Ui=class extends Be{get destroyed(){return this._destroyed}constructor(e,n,r,i){super(),this.parent=n,this.source=r,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Bl(e,s=>this.processProvider(s)),this.records.set(eg,Pr(void 0,this)),i.has("environment")&&this.records.set(Be,Pr(void 0,this));let o=this.records.get(fa);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(tg,We,q.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let e=J(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),J(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let n=_n(this),r=Ge(void 0),i;try{return e()}finally{_n(n),Ge(r)}}get(e,n=ji,r=q.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(ap))return e[ap](this);r=ca(r);let i,o=_n(this),s=Ge(void 0);try{if(!(r&q.SkipSelf)){let c=this.records.get(e);if(c===void 0){let l=gb(e)&&aa(e);l&&this.injectableDefInScope(l)?c=Pr(jl(e),Ss):c=null,this.records.set(e,c)}if(c!=null)return this.hydrate(e,c)}let a=r&q.Self?qu():this.parent;return n=r&q.Optional&&n===ji?null:n,a.get(e,n)}catch(a){if(a.name==="NullInjectorError"){if((a[Rs]=a[Rs]||[]).unshift(je(e)),o)throw a;return Fw(a,e,"R3InjectorError",this.source)}else throw a}finally{Ge(s),_n(o)}}resolveInjectorInitializers(){let e=J(null),n=_n(this),r=Ge(void 0),i;try{let o=this.get(Ur,We,q.Self);for(let s of o)s()}finally{_n(n),Ge(r),J(e)}}toString(){let e=[],n=this.records;for(let r of n.keys())e.push(je(r));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new S(205,!1)}processProvider(e){e=Ve(e);let n=$r(e)?e:Ve(e&&e.provide),r=fb(e);if(!$r(e)&&e.multi===!0){let i=this.records.get(n);i||(i=Pr(void 0,Ss,!0),i.factory=()=>Fl(i.multi),this.records.set(n,i)),n=e,i.multi.push(e)}this.records.set(n,r)}hydrate(e,n){let r=J(null);try{return n.value===Ss&&(n.value=ub,n.value=n.factory()),typeof n.value=="object"&&n.value&&pb(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{J(r)}}injectableDefInScope(e){if(!e.providedIn)return!1;let n=Ve(e.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(e){let n=this._onDestroyHooks.indexOf(e);n!==-1&&this._onDestroyHooks.splice(n,1)}};function jl(t){let e=aa(t),n=e!==null?e.factory:Wn(t);if(n!==null)return n;if(t instanceof M)throw new S(204,!1);if(t instanceof Function)return db(t);throw new S(204,!1)}function db(t){if(t.length>0)throw new S(204,!1);let n=bw(t);return n!==null?()=>n.factory(t):()=>new t}function fb(t){if(pg(t))return Pr(void 0,t.useValue);{let e=gg(t);return Pr(e,Ss)}}function gg(t,e,n){let r;if($r(t)){let i=Ve(t);return Wn(i)||jl(i)}else if(pg(t))r=()=>Ve(t.useValue);else if(cb(t))r=()=>t.useFactory(...Fl(t.deps||[]));else if(ab(t))r=()=>_(Ve(t.useExisting));else{let i=Ve(t&&(t.useClass||t.provide));if(hb(t))r=()=>new i(...Fl(t.deps));else return Wn(i)||jl(i)}return r}function Pr(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function hb(t){return!!t.deps}function pb(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function gb(t){return typeof t=="function"||typeof t=="object"&&t instanceof M}function Bl(t,e){for(let n of t)Array.isArray(n)?Bl(n,e):n&&Yp(n)?Bl(n.\u0275providers,e):e(n)}function ht(t,e){t instanceof Ui&&t.assertNotDestroyed();let n,r=_n(t),i=Ge(void 0);try{return e()}finally{_n(r),Ge(i)}}function mg(){return Qp()!==void 0||Pw()!=null}function mb(t){if(!mg())throw new S(-203,!1)}function yb(t){let e=Ke.ng;if(e&&e.\u0275compilerFacade)return e.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function vb(t){return typeof t=="function"}var nn=0,U=1,L=2,Pe=3,Et=4,Ze=5,$i=6,Vs=7,It=8,Hr=9,jt=10,ge=11,Hi=12,fp=13,Qr=14,dt=15,Zn=16,Rr=17,Xt=18,ha=19,yg=20,wn=21,Cl=22,ut=23,Re=25,vg=1;var Yn=7,js=8,zr=9,Qe=10,Bs=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(Bs||{});function bn(t){return Array.isArray(t)&&typeof t[vg]=="object"}function rn(t){return Array.isArray(t)&&t[vg]===!0}function Gu(t){return(t.flags&4)!==0}function pa(t){return t.componentOffset>-1}function ga(t){return(t.flags&1)===1}function En(t){return!!t.template}function Ul(t){return(t[L]&512)!==0}var $l=class{constructor(e,n,r){this.previousValue=e,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function _g(t,e,n,r){e!==null?e.applyValueToInputSignal(e,r):t[n]=r}function Je(){return wg}function wg(t){return t.type.prototype.ngOnChanges&&(t.setInput=wb),_b}Je.ngInherit=!0;function _b(){let t=Cg(this),e=t?.current;if(e){let n=t.previous;if(n===Br)t.previous=e;else for(let r in e)n[r]=e[r];t.current=null,this.ngOnChanges(e)}}function wb(t,e,n,r,i){let o=this.declaredInputs[r],s=Cg(t)||bb(t,{previous:Br,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[o];a[o]=new $l(l&&l.currentValue,n,c===Br),_g(t,e,i,n)}var bg="__ngSimpleChanges__";function Cg(t){return t[bg]||null}function bb(t,e){return t[bg]=e}var hp=null;var Ft=function(t,e,n){hp?.(t,e,n)},Dg="svg",Cb="math";function Bt(t){for(;Array.isArray(t);)t=t[nn];return t}function Eg(t,e){return Bt(e[t])}function pt(t,e){return Bt(e[t.index])}function Ig(t,e){return t.data[e]}function ma(t,e){return t[e]}function Mn(t,e){let n=e[t];return bn(n)?n:n[nn]}function Db(t){return(t[L]&4)===4}function Wu(t){return(t[L]&128)===128}function Eb(t){return rn(t[Pe])}function qr(t,e){return e==null?null:t[e]}function xg(t){t[Rr]=0}function Mg(t){t[L]&1024||(t[L]|=1024,Wu(t)&&va(t))}function Ib(t,e){for(;t>0;)e=e[Qr],t--;return e}function ya(t){return!!(t[L]&9216||t[ut]?.dirty)}function Hl(t){t[jt].changeDetectionScheduler?.notify(8),t[L]&64&&(t[L]|=1024),ya(t)&&va(t)}function va(t){t[jt].changeDetectionScheduler?.notify(0);let e=Qn(t);for(;e!==null&&!(e[L]&8192||(e[L]|=8192,!Wu(e)));)e=Qn(e)}function Sg(t,e){if((t[L]&256)===256)throw new S(911,!1);t[wn]===null&&(t[wn]=[]),t[wn].push(e)}function xb(t,e){if(t[wn]===null)return;let n=t[wn].indexOf(e);n!==-1&&t[wn].splice(n,1)}function Qn(t){let e=t[Pe];return rn(e)?e[Pe]:e}var B={lFrame:Lg(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Tg=!1;function Mb(){return B.lFrame.elementDepthCount}function Sb(){B.lFrame.elementDepthCount++}function Tb(){B.lFrame.elementDepthCount--}function Ag(){return B.bindingsEnabled}function Og(){return B.skipHydrationRootTNode!==null}function Ab(t){return B.skipHydrationRootTNode===t}function Ob(){B.skipHydrationRootTNode=null}function V(){return B.lFrame.lView}function ve(){return B.lFrame.tView}function P(t){return B.lFrame.contextLView=t,t[It]}function R(t){return B.lFrame.contextLView=null,t}function Ne(){let t=Ng();for(;t!==null&&t.type===64;)t=t.parent;return t}function Ng(){return B.lFrame.currentTNode}function Nb(){let t=B.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function ir(t,e){let n=B.lFrame;n.currentTNode=t,n.isParent=e}function Zu(){return B.lFrame.isParent}function Yu(){B.lFrame.isParent=!1}function Pb(){return B.lFrame.contextLView}function Pg(){return Tg}function pp(t){Tg=t}function or(){let t=B.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Rb(){return B.lFrame.bindingIndex}function kb(t){return B.lFrame.bindingIndex=t}function _a(){return B.lFrame.bindingIndex++}function Qu(t){let e=B.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function Fb(){return B.lFrame.inI18n}function Lb(t,e){let n=B.lFrame;n.bindingIndex=n.bindingRootIndex=t,zl(e)}function Vb(){return B.lFrame.currentDirectiveIndex}function zl(t){B.lFrame.currentDirectiveIndex=t}function jb(t){let e=B.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function Rg(){return B.lFrame.currentQueryIndex}function Ku(t){B.lFrame.currentQueryIndex=t}function Bb(t){let e=t[U];return e.type===2?e.declTNode:e.type===1?t[Ze]:null}function kg(t,e,n){if(n&q.SkipSelf){let i=e,o=t;for(;i=i.parent,i===null&&!(n&q.Host);)if(i=Bb(o),i===null||(o=o[Qr],i.type&10))break;if(i===null)return!1;e=i,t=o}let r=B.lFrame=Fg();return r.currentTNode=e,r.lView=t,!0}function Ju(t){let e=Fg(),n=t[U];B.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function Fg(){let t=B.lFrame,e=t===null?null:t.child;return e===null?Lg(t):e}function Lg(t){let e={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:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function Vg(){let t=B.lFrame;return B.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var jg=Vg;function Xu(){let t=Vg();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Ub(t){return(B.lFrame.contextLView=Ib(t,B.lFrame.contextLView))[It]}function Sn(){return B.lFrame.selectedIndex}function Kn(t){B.lFrame.selectedIndex=t}function ed(){let t=B.lFrame;return Ig(t.tView,t.selectedIndex)}function wa(){B.lFrame.currentNamespace=Dg}function Bg(){$b()}function $b(){B.lFrame.currentNamespace=null}function Hb(){return B.lFrame.currentNamespace}var Ug=!0;function ba(){return Ug}function Ca(t){Ug=t}function zb(t,e,n){let{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=e.type.prototype;if(r){let s=wg(e);(n.preOrderHooks??=[]).push(t,s),(n.preOrderCheckHooks??=[]).push(t,s)}i&&(n.preOrderHooks??=[]).push(0-t,i),o&&((n.preOrderHooks??=[]).push(t,o),(n.preOrderCheckHooks??=[]).push(t,o))}function Da(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n=r)break}else e[c]<0&&(t[Rr]+=65536),(a>14>16&&(t[L]&3)===e&&(t[L]+=16384,gp(a,o)):gp(a,o)}var Vr=-1,Jn=class{constructor(e,n,r){this.factory=e,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function Gb(t){return t instanceof Jn}function Wb(t){return(t.flags&8)!==0}function Zb(t){return(t.flags&16)!==0}var El={},ql=class{constructor(e,n){this.injector=e,this.parentInjector=n}get(e,n,r){r=ca(r);let i=this.injector.get(e,El,r);return i!==El||n===El?i:this.parentInjector.get(e,n,r)}};function Hg(t){return t!==Vr}function Us(t){return t&32767}function Yb(t){return t>>16}function $s(t,e){let n=Yb(t),r=e;for(;n>0;)r=r[Qr],n--;return r}var Gl=!0;function Hs(t){let e=Gl;return Gl=t,e}var Qb=256,zg=Qb-1,qg=5,Kb=0,Lt={};function Jb(t,e,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Li)&&(r=n[Li]),r==null&&(r=n[Li]=Kb++);let i=r&zg,o=1<>qg)]|=o}function zs(t,e){let n=Gg(t,e);if(n!==-1)return n;let r=e[U];r.firstCreatePass&&(t.injectorIndex=e.length,Il(r.data,t),Il(e,null),Il(r.blueprint,null));let i=td(t,e),o=t.injectorIndex;if(Hg(i)){let s=Us(i),a=$s(i,e),c=a[U].data;for(let l=0;l<8;l++)e[o+l]=a[s+l]|c[s+l]}return e[o+8]=i,o}function Il(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Gg(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function td(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let n=0,r=null,i=e;for(;i!==null;){if(r=Kg(i),r===null)return Vr;if(n++,i=i[Qr],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Vr}function Wl(t,e,n){Jb(t,e,n)}function Xb(t,e){if(e==="class")return t.classes;if(e==="style")return t.styles;let n=t.attrs;if(n){let r=n.length,i=0;for(;i>20,d=r?a:a+u,f=i?a+u:l;for(let h=d;h=c&&w.type===n)return h}if(i){let h=s[c];if(h&&En(h)&&h.type===n)return c}return null}function Xn(t,e,n,r){let i=t[n],o=e.data;if(Gb(i)){let s=i;s.resolving&&Sw(Mw(o[n]));let a=Hs(s.canSeeViewProviders);s.resolving=!0;let c,l=s.injectImpl?Ge(s.injectImpl):null,u=kg(t,r,q.Default);try{i=t[n]=s.factory(void 0,o,t,r),e.firstCreatePass&&n>=r.directiveStart&&zb(n,o[n],e)}finally{l!==null&&Ge(l),Hs(a),s.resolving=!1,jg()}}return i}function tC(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(Li)?t[Li]:void 0;return typeof e=="number"?e>=0?e&zg:nC:e}function mp(t,e,n){let r=1<>qg)]&r)}function yp(t,e){return!(t&q.Self)&&!(t&q.Host&&e)}var Gn=class{constructor(e,n){this._tNode=e,this._lView=n}get(e,n,r){return Yg(this._tNode,this._lView,e,ca(r),n)}};function nC(){return new Gn(Ne(),V())}function Kr(t){return Wi(()=>{let e=t.prototype.constructor,n=e[Ps]||Zl(e),r=Object.prototype,i=Object.getPrototypeOf(t.prototype).constructor;for(;i&&i!==r;){let o=i[Ps]||Zl(i);if(o&&o!==n)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function Zl(t){return qp(t)?()=>{let e=Zl(Ve(t));return e&&e()}:Wn(t)}function rC(t,e,n,r,i){let o=t,s=e;for(;o!==null&&s!==null&&s[L]&2048&&!(s[L]&512);){let a=Qg(o,s,n,r|q.Self,Lt);if(a!==Lt)return a;let c=o.parent;if(!c){let l=s[yg];if(l){let u=l.get(n,Lt,r);if(u!==Lt)return u}c=Kg(s),s=s[Qr]}o=c}return i}function Kg(t){let e=t[U],n=e.type;return n===2?e.declTNode:n===1?t[Ze]:null}function nd(t){return Xb(Ne(),t)}function vp(t,e=null,n=null,r){let i=Jg(t,e,n,r);return i.resolveInjectorInitializers(),i}function Jg(t,e=null,n=null,r,i=new Set){let o=[n||We,ob(t)];return r=r||(typeof t=="object"?void 0:je(t)),new Ui(o,e||qu(),r||null,i)}var zn=class zn{static create(e,n){if(Array.isArray(e))return vp({name:""},n,e,"");{let r=e.name??"";return vp({name:r},e.parent,e.providers,r)}}};zn.THROW_IF_NOT_FOUND=ji,zn.NULL=new Fs,zn.\u0275prov=D({token:zn,providedIn:"any",factory:()=>_(eg)}),zn.__NG_ELEMENT_ID__=-1;var Me=zn;var iC=new M("");iC.__NG_ELEMENT_ID__=t=>{let e=Ne();if(e===null)throw new S(204,!1);if(e.type&2)return e.value;if(t&q.Optional)return null;throw new S(204,!1)};var oC="ngOriginalError";function xl(t){return t[oC]}var Xg=!0,rd=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=sC,e.__NG_ENV_ID__=r=>r;let t=e;return t})(),Yl=class extends rd{constructor(e){super(),this._lView=e}onDestroy(e){return Sg(this._lView,e),()=>xb(this._lView,e)}};function sC(){return new Yl(V())}var on=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Ae(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let r=this.taskId++;return this.pendingTasks.add(r),r}remove(r){this.pendingTasks.delete(r),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};e.\u0275prov=D({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();var Ql=class extends ue{constructor(e=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=e,mg()&&(this.destroyRef=b(rd,{optional:!0})??void 0,this.pendingTasks=b(on,{optional:!0})??void 0)}emit(e){let n=J(null);try{super.next(e)}finally{J(n)}}subscribe(e,n,r){let i=e,o=n||(()=>null),s=r;if(e&&typeof e=="object"){let c=e;i=c.next?.bind(c),o=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(o=this.wrapInTimeout(o),i&&(i=this.wrapInTimeout(i)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:i,error:o,complete:s});return e instanceof be&&e.add(a),a}wrapInTimeout(e){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{e(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},H=Ql;function qs(...t){}function em(t){let e,n;function r(){t=qs;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),e!==void 0&&clearTimeout(e)}catch{}}return e=setTimeout(()=>{t(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{t(),r()})),()=>r()}function _p(t){return queueMicrotask(()=>t()),()=>{t=qs}}var id="isAngularZone",Gs=id+"_ID",aC=0,ne=class t{constructor(e){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new H(!1),this.onMicrotaskEmpty=new H(!1),this.onStable=new H(!1),this.onError=new H(!1);let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1,scheduleInRootZone:o=Xg}=e;if(typeof Zone>"u")throw new S(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!i&&r,s.shouldCoalesceRunChangeDetection=i,s.callbackScheduled=!1,s.scheduleInRootZone=o,uC(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(id)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new S(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new S(909,!1)}run(e,n,r){return this._inner.run(e,n,r)}runTask(e,n,r,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,e,cC,qs,qs);try{return o.runTask(s,n,r)}finally{o.cancelTask(s)}}runGuarded(e,n,r){return this._inner.runGuarded(e,n,r)}runOutsideAngular(e){return this._outer.run(e)}},cC={};function od(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function lC(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function e(){em(()=>{t.callbackScheduled=!1,Kl(t),t.isCheckStableRunning=!0,od(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{e()}):t._outer.run(()=>{e()}),Kl(t)}function uC(t){let e=()=>{lC(t)},n=aC++;t._inner=t._inner.fork({name:"angular",properties:{[id]:!0,[Gs]:n,[Gs+n]:!0},onInvokeTask:(r,i,o,s,a,c)=>{if(dC(c))return r.invokeTask(o,s,a,c);try{return wp(t),r.invokeTask(o,s,a,c)}finally{(t.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),bp(t)}},onInvoke:(r,i,o,s,a,c,l)=>{try{return wp(t),r.invoke(o,s,a,c,l)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!fC(c)&&e(),bp(t)}},onHasTask:(r,i,o,s)=>{r.hasTask(o,s),i===o&&(s.change=="microTask"?(t._hasPendingMicrotasks=s.microTask,Kl(t),od(t)):s.change=="macroTask"&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,i,o,s)=>(r.handleError(o,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}function Kl(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function wp(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function bp(t){t._nesting--,od(t)}var Ws=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new H,this.onMicrotaskEmpty=new H,this.onStable=new H,this.onError=new H}run(e,n,r){return e.apply(n,r)}runGuarded(e,n,r){return e.apply(n,r)}runOutsideAngular(e){return e()}runTask(e,n,r,i){return e.apply(n,r)}};function dC(t){return tm(t,"__ignore_ng_zone__")}function fC(t){return tm(t,"__scheduler_tick__")}function tm(t,e){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[e]===!0}function hC(t="zone.js",e){return t==="noop"?new Ws:t==="zone.js"?new ne(e):t}var en=class{constructor(){this._console=console}handleError(e){let n=this._findOriginalError(e);this._console.error("ERROR",e),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(e){let n=e&&xl(e);for(;n&&xl(n);)n=xl(n);return n||null}},pC=new M("",{providedIn:"root",factory:()=>{let t=b(ne),e=b(en);return n=>t.runOutsideAngular(()=>e.handleError(n))}});function gC(){return Jr(Ne(),V())}function Jr(t,e){return new Ee(pt(t,e))}var Ee=(()=>{let e=class e{constructor(r){this.nativeElement=r}};e.__NG_ELEMENT_ID__=gC;let t=e;return t})();function mC(t){return t instanceof Ee?t.nativeElement:t}function yC(){return this._results[Symbol.iterator]()}var Jl=class t{get changes(){return this._changes??=new H}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let n=t.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=yC)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,n){return this._results.reduce(e,n)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,n){this.dirty=!1;let r=jw(e);(this._changesDetected=!Vw(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function nm(t){return(t.flags&128)===128}var rm=new Map,vC=0;function _C(){return vC++}function wC(t){rm.set(t[ha],t)}function Xl(t){rm.delete(t[ha])}var Cp="__ngContext__";function In(t,e){bn(e)?(t[Cp]=e[ha],wC(e)):t[Cp]=e}function im(t){return sm(t[Hi])}function om(t){return sm(t[Et])}function sm(t){for(;t!==null&&!rn(t);)t=t[Et];return t}var eu;function am(t){eu=t}function bC(){if(eu!==void 0)return eu;if(typeof document<"u")return document;throw new S(210,!1)}var Ea=new M("",{providedIn:"root",factory:()=>CC}),CC="ng",sd=new M(""),gt=new M("",{providedIn:"platform",factory:()=>"unknown"});var TL=new M(""),ad=new M("",{providedIn:"root",factory:()=>bC().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var DC="h",EC="b";var IC=()=>null;function cd(t,e,n=!1){return IC(t,e,n)}var cm=!1,xC=new M("",{providedIn:"root",factory:()=>cm});var bs;function MC(){if(bs===void 0&&(bs=null,Ke.trustedTypes))try{bs=Ke.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return bs}function Ia(t){return MC()?.createHTML(t)||t}var Cs;function SC(){if(Cs===void 0&&(Cs=null,Ke.trustedTypes))try{Cs=Ke.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Cs}function Dp(t){return SC()?.createScriptURL(t)||t}var tn=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Hp})`}},tu=class extends tn{getTypeName(){return"HTML"}},nu=class extends tn{getTypeName(){return"Style"}},ru=class extends tn{getTypeName(){return"Script"}},iu=class extends tn{getTypeName(){return"URL"}},ou=class extends tn{getTypeName(){return"ResourceURL"}};function Mt(t){return t instanceof tn?t.changingThisBreaksApplicationSecurity:t}function Tn(t,e){let n=TC(t);if(n!=null&&n!==e){if(n==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${n} (see ${Hp})`)}return n===e}function TC(t){return t instanceof tn&&t.getTypeName()||null}function lm(t){return new tu(t)}function um(t){return new nu(t)}function dm(t){return new ru(t)}function fm(t){return new iu(t)}function hm(t){return new ou(t)}function AC(t){let e=new au(t);return OC()?new su(e):e}var su=class{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e=""+e;try{let n=new window.DOMParser().parseFromString(Ia(e),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(e):(n.firstChild?.remove(),n)}catch{return null}}},au=class{constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){let n=this.inertDocument.createElement("template");return n.innerHTML=Ia(e),n}};function OC(){try{return!!new window.DOMParser().parseFromString(Ia(""),"text/html")}catch{return!1}}var NC=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function xa(t){return t=String(t),t.match(NC)?t:"unsafe:"+t}function sn(t){let e={};for(let n of t.split(","))e[n]=!0;return e}function Qi(...t){let e={};for(let n of t)for(let r in n)n.hasOwnProperty(r)&&(e[r]=!0);return e}var pm=sn("area,br,col,hr,img,wbr"),gm=sn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),mm=sn("rp,rt"),PC=Qi(mm,gm),RC=Qi(gm,sn("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")),kC=Qi(mm,sn("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")),Ep=Qi(pm,RC,kC,PC),ym=sn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),FC=sn("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,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),LC=sn("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"),VC=Qi(ym,FC,LC),jC=sn("script,style,template"),cu=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let n=e.firstChild,r=!0,i=[];for(;n;){if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild){i.push(n),n=$C(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let o=UC(n);if(o){n=o;break}n=i.pop()}}return this.buf.join("")}startElement(e){let n=Ip(e).toLowerCase();if(!Ep.hasOwnProperty(n))return this.sanitizedSomething=!0,!jC.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=e.attributes;for(let i=0;i"),!0}endElement(e){let n=Ip(e).toLowerCase();Ep.hasOwnProperty(n)&&!pm.hasOwnProperty(n)&&(this.buf.push(""))}chars(e){this.buf.push(xp(e))}};function BC(t,e){return(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function UC(t){let e=t.nextSibling;if(e&&t!==e.previousSibling)throw vm(e);return e}function $C(t){let e=t.firstChild;if(e&&BC(t,e))throw vm(e);return e}function Ip(t){let e=t.nodeName;return typeof e=="string"?e:"FORM"}function vm(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var HC=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,zC=/([^\#-~ |!])/g;function xp(t){return t.replace(/&/g,"&").replace(HC,function(e){let n=e.charCodeAt(0),r=e.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(zC,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}var Ds;function _m(t,e){let n=null;try{Ds=Ds||AC(t);let r=e?String(e):"";n=Ds.getInertBodyElement(r);let i=5,o=r;do{if(i===0)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=Ds.getInertBodyElement(r)}while(r!==o);let a=new cu().sanitizeChildren(Mp(n)||n);return Ia(a)}finally{if(n){let r=Mp(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function Mp(t){return"content"in t&&qC(t)?t.content:null}function qC(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var Ht=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Ht||{});function Ma(t){let e=bm();return e?e.sanitize(Ht.URL,t)||"":Tn(t,"URL")?Mt(t):xa(jr(t))}function GC(t){let e=bm();if(e)return Dp(e.sanitize(Ht.RESOURCE_URL,t)||"");if(Tn(t,"ResourceURL"))return Dp(Mt(t));throw new S(904,!1)}function WC(t,e){return e==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||e==="href"&&(t==="base"||t==="link")?GC:Ma}function wm(t,e,n){return WC(e,n)(t)}function bm(){let t=V();return t&&t[jt].sanitizer}var ZC=/^>|^->||--!>|)/g,QC="\u200B$1\u200B";function KC(t){return t.replace(ZC,e=>e.replace(YC,QC))}function AL(t){return t.ownerDocument.defaultView}function Cm(t){return t.ownerDocument}function Dm(t){return t instanceof Function?t():t}function JC(t){return(t??b(Me)).get(gt)==="browser"}var Ut=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(Ut||{}),XC;function ld(t,e){return XC(t,e)}function kr(t,e,n,r,i){if(r!=null){let o,s=!1;rn(r)?o=r:bn(r)&&(s=!0,r=r[nn]);let a=Bt(r);t===0&&n!==null?i==null?Tm(e,n,a):Zs(e,n,a,i||null,!0):t===1&&n!==null?Zs(e,n,a,i||null,!0):t===2?hD(e,a,s):t===3&&e.destroyNode(a),o!=null&&gD(e,t,o,n,i)}}function eD(t,e){return t.createText(e)}function tD(t,e,n){t.setValue(e,n)}function nD(t,e){return t.createComment(KC(e))}function Em(t,e,n){return t.createElement(e,n)}function rD(t,e){Im(t,e),e[nn]=null,e[Ze]=null}function iD(t,e,n,r,i,o){r[nn]=i,r[Ze]=e,Ta(t,r,n,1,i,o)}function Im(t,e){e[jt].changeDetectionScheduler?.notify(9),Ta(t,e,e[ge],2,null,null)}function oD(t){let e=t[Hi];if(!e)return Ml(t[U],t);for(;e;){let n=null;if(bn(e))n=e[Hi];else{let r=e[Qe];r&&(n=r)}if(!n){for(;e&&!e[Et]&&e!==t;)bn(e)&&Ml(e[U],e),e=e[Pe];e===null&&(e=t),bn(e)&&Ml(e[U],e),n=e&&e[Et]}e=n}}function sD(t,e,n,r){let i=Qe+r,o=n.length;r>0&&(n[i-1][Et]=e),r0&&(t[n-1][Et]=r[Et]);let o=ks(t,Qe+e);rD(r[U],r);let s=o[Xt];s!==null&&s.detachView(o[U]),r[Pe]=null,r[Et]=null,r[L]&=-129}return r}function Mm(t,e){if(!(e[L]&256)){let n=e[ge];n.destroyNode&&Ta(t,e,n,3,null,null),oD(e)}}function Ml(t,e){if(e[L]&256)return;let n=J(null);try{e[L]&=-129,e[L]|=256,e[ut]&&Jc(e[ut]),cD(t,e),aD(t,e),e[U].type===1&&e[ge].destroy();let r=e[Zn];if(r!==null&&rn(e[Pe])){r!==e[Pe]&&ud(r,e);let i=e[Xt];i!==null&&i.detachView(t)}Xl(e)}finally{J(n)}}function aD(t,e){let n=t.cleanup,r=e[Vs];if(n!==null)for(let o=0;o=0?r[s]():r[-s].unsubscribe(),o+=2}else{let s=r[n[o+1]];n[o].call(s)}r!==null&&(e[Vs]=null);let i=e[wn];if(i!==null){e[wn]=null;for(let o=0;o-1){let{encapsulation:o}=t.data[r.directiveStart+i];if(o===Vt.None||o===Vt.Emulated)return null}return pt(r,n)}}function Zs(t,e,n,r,i){t.insertBefore(e,n,r,i)}function Tm(t,e,n){t.appendChild(e,n)}function Sp(t,e,n,r,i){r!==null?Zs(t,e,n,r,i):Tm(t,e,n)}function Am(t,e){return t.parentNode(e)}function uD(t,e){return t.nextSibling(e)}function Om(t,e,n){return fD(t,e,n)}function dD(t,e,n){return t.type&40?pt(t,n):null}var fD=dD,Tp;function Sa(t,e,n,r){let i=Sm(t,r,e),o=e[ge],s=r.parent||e[Ze],a=Om(s,r,e);if(i!=null)if(Array.isArray(n))for(let c=0;cRe&&Fm(t,e,Re,!1),Ft(s?2:0,i),n(r,i)}finally{Kn(o),Ft(s?3:1,i)}}function fd(t,e,n){if(Gu(e)){let r=J(null);try{let i=e.directiveStart,o=e.directiveEnd;for(let s=i;snull;function ED(t,e,n,r){let i=Wm(e);i.push(n),t.firstCreatePass&&Zm(t).push(r,i.length-1)}function ID(t,e,n,r,i,o){let s=e?e.injectorIndex:-1,a=0;return Og()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Ap(t,e,n,r,i){for(let o in e){if(!e.hasOwnProperty(o))continue;let s=e[o];if(s===void 0)continue;r??={};let a,c=Cn.None;Array.isArray(s)?(a=s[0],c=s[1]):a=s;let l=o;if(i!==null){if(!i.hasOwnProperty(o))continue;l=i[o]}t===0?Op(r,n,l,a,c):Op(r,n,l,a)}return r}function Op(t,e,n,r,i){let o;t.hasOwnProperty(n)?(o=t[n]).push(e,r):o=t[n]=[e,r],i!==void 0&&o.push(i)}function xD(t,e,n){let r=e.directiveStart,i=e.directiveEnd,o=t.data,s=e.attrs,a=[],c=null,l=null;for(let u=r;u0;){let n=t[--e];if(typeof n=="number"&&n<0)return n}return 0}function OD(t,e,n,r){let i=n.directiveStart,o=n.directiveEnd;pa(n)&&VD(e,n,t.data[i+n.componentOffset]),t.firstCreatePass||zs(n,e),In(r,e);let s=n.initialInputs;for(let a=i;a{va(t.lView)},consumerOnSignalRead(){this.lView[ut]=this}});function KD(t){let e=t[ut]??Object.create(JD);return e.lView=t,e}var JD=z(C({},Oi),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{let e=Qn(t.lView);for(;e&&!ey(e[U]);)e=Qn(e);e&&Mg(e)},consumerOnSignalRead(){this.lView[ut]=this}});function ey(t){return t.type!==2}var XD=100;function ty(t,e=!0,n=0){let r=t[jt],i=r.rendererFactory,o=!1;o||i.begin?.();try{eE(t,n)}catch(s){throw e&&Ym(t,s),s}finally{o||(i.end?.(),r.inlineEffectRunner?.flush())}}function eE(t,e){let n=Pg();try{pp(!0),pu(t,e);let r=0;for(;ya(t);){if(r===XD)throw new S(103,!1);r++,pu(t,1)}}finally{pp(n)}}function tE(t,e,n,r){let i=e[L];if((i&256)===256)return;let o=!1,s=!1;!o&&e[jt].inlineEffectRunner?.flush(),Ju(e);let a=!0,c=null,l=null;o||(ey(t)?(l=WD(e),c=Qo(l)):_h()===null?(a=!1,l=KD(e),c=Qo(l)):e[ut]&&(Jc(e[ut]),e[ut]=null));try{xg(e),kb(t.bindingStartIndex),n!==null&&Bm(t,e,n,2,r);let u=(i&3)===3;if(!o)if(u){let h=t.preOrderCheckHooks;h!==null&&Ts(e,h,null)}else{let h=t.preOrderHooks;h!==null&&As(e,h,0,null),Dl(e,0)}if(s||nE(e),ny(e,0),t.contentQueries!==null&&Gm(t,e),!o)if(u){let h=t.contentCheckHooks;h!==null&&Ts(e,h)}else{let h=t.contentHooks;h!==null&&As(e,h,1),Dl(e,1)}vD(t,e);let d=t.components;d!==null&&iy(e,d,0);let f=t.viewQuery;if(f!==null&&fu(2,f,r),!o)if(u){let h=t.viewCheckHooks;h!==null&&Ts(e,h)}else{let h=t.viewHooks;h!==null&&As(e,h,2),Dl(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[Cl]){for(let h of e[Cl])h();e[Cl]=null}o||(e[L]&=-73)}catch(u){throw o||va(e),u}finally{l!==null&&(Qc(l,c),a&&YD(l)),Xu()}}function ny(t,e){for(let n=im(t);n!==null;n=om(n))for(let r=Qe;r-1&&(lu(e,r),ks(n,r))}this._attachedToViewContainer=!1}Mm(this._lView[U],this._lView)}onDestroy(e){Sg(this._lView,e)}markForCheck(){_d(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[L]&=-129}reattach(){Hl(this._lView),this._lView[L]|=128}detectChanges(){this._lView[L]|=1024,ty(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new S(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=Ul(this._lView),n=this._lView[Zn];n!==null&&!e&&ud(n,this._lView),Im(this._lView[U],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new S(902,!1);this._appRef=e;let n=Ul(this._lView),r=this._lView[Zn];r!==null&&!n&&xm(r,this._lView),Hl(this._lView)}},ft=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=sE;let t=e;return t})(),iE=ft,oE=class extends iE{constructor(e,n,r){super(),this._declarationLView=e,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,n){return this.createEmbeddedViewImpl(e,n)}createEmbeddedViewImpl(e,n,r){let i=Km(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:n,dehydratedView:r});return new er(i)}};function sE(){return Na(Ne(),V())}function Na(t,e){return t.type&4?new oE(e,t,Jr(t,e)):null}var NL=new RegExp(`^(\\d+)*(${EC}|${DC})*(.*)`);var aE=()=>null;function gu(t,e){return aE(t,e)}var Gr=class{},wd=new M("",{providedIn:"root",factory:()=>!1});var oy=new M(""),sy=new M(""),mu=class{},Qs=class{};function cE(t){let e=Error(`No component factory found for ${je(t)}.`);return e[lE]=t,e}var lE="ngComponent";var yu=class{resolveComponentFactory(e){throw cE(e)}},kd=class kd{};kd.NULL=new yu;var $t=kd,Wr=class{},St=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>uE();let t=e;return t})();function uE(){let t=V(),e=Ne(),n=Mn(e.index,t);return(bn(n)?n:t)[ge]}var dE=(()=>{let e=class e{};e.\u0275prov=D({token:e,providedIn:"root",factory:()=>null});let t=e;return t})();function Ks(t,e,n){let r=n?t.styles:null,i=n?t.classes:null,o=0;if(e!==null)for(let s=0;s0&&Rm(t,n,o.join(" "))}}function vE(t,e,n){let r=t.projection=[];for(let i=0;i{let e=class e{};e.__NG_ELEMENT_ID__=wE;let t=e;return t})();function wE(){let t=Ne();return cy(t,V())}var bE=an,ay=class extends bE{constructor(e,n,r){super(),this._lContainer=e,this._hostTNode=n,this._hostLView=r}get element(){return Jr(this._hostTNode,this._hostLView)}get injector(){return new Gn(this._hostTNode,this._hostLView)}get parentInjector(){let e=td(this._hostTNode,this._hostLView);if(Hg(e)){let n=$s(e,this._hostLView),r=Us(e),i=n[U].data[r+8];return new Gn(i,n)}else return new Gn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let n=Pp(this._lContainer);return n!==null&&n[e]||null}get length(){return this._lContainer.length-Qe}createEmbeddedView(e,n,r){let i,o;typeof r=="number"?i=r:r!=null&&(i=r.index,o=r.injector);let s=gu(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(n||{},o,s);return this.insertImpl(a,i,hu(this._hostTNode,s)),a}createComponent(e,n,r,i,o){let s=e&&!vb(e),a;if(s)a=n;else{let w=n||{};a=w.index,r=w.injector,i=w.projectableNodes,o=w.environmentInjector||w.ngModuleRef}let c=s?e:new Zr(Dn(e)),l=r||this.parentInjector;if(!o&&c.ngModule==null){let O=(s?l:this.parentInjector).get(Be,null);O&&(o=O)}let u=Dn(c.componentType??{}),d=gu(this._lContainer,u?.id??null),f=d?.firstChild??null,h=c.create(l,i,f,o);return this.insertImpl(h.hostView,a,hu(this._hostTNode,d)),h}insert(e,n){return this.insertImpl(e,n,!0)}insertImpl(e,n,r){let i=e._lView;if(Eb(i)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let c=i[Pe],l=new ay(c,c[Ze],c[Pe]);l.detach(l.indexOf(e))}}let o=this._adjustIndex(n),s=this._lContainer;return Jm(s,i,o,r),e.attachToViewContainerRef(),Xp(Sl(s),o,e),e}move(e,n){return this.insert(e,n)}indexOf(e){let n=Pp(this._lContainer);return n!==null?n.indexOf(e):-1}remove(e){let n=this._adjustIndex(e,-1),r=lu(this._lContainer,n);r&&(ks(Sl(this._lContainer),n),Mm(r[U],r))}detach(e){let n=this._adjustIndex(e,-1),r=lu(this._lContainer,n);return r&&ks(Sl(this._lContainer),n)!=null?new er(r):null}_adjustIndex(e,n=0){return e??this.length+n}};function Pp(t){return t[js]}function Sl(t){return t[js]||(t[js]=[])}function cy(t,e){let n,r=e[t.index];return rn(r)?n=r:(n=qm(r,e,null,t),e[t.index]=n,Oa(e,n)),DE(n,e,t,r),new ay(n,t,e)}function CE(t,e){let n=t[ge],r=n.createComment(""),i=pt(e,t),o=Am(n,i);return Zs(n,o,r,uD(n,i),!1),r}var DE=xE,EE=()=>!1;function IE(t,e,n){return EE(t,e,n)}function xE(t,e,n,r){if(t[Yn])return;let i;n.type&8?i=Bt(r):i=CE(e,n),t[Yn]=i}var _u=class t{constructor(e){this.queryList=e,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},wu=class t{constructor(e=[]){this.queries=e}createEmbeddedView(e){let n=e.queries;if(n!==null){let r=e.contentQueries!==null?e.contentQueries[0]:n.length,i=[];for(let o=0;o0)r.push(s[a/2]);else{let l=o[a+1],u=e[-c];for(let d=Qe;de.trim())}function dy(t,e,n){t.queries===null&&(t.queries=new bu),t.queries.track(new Cu(e,n))}function kE(t,e){let n=t.contentQueries||(t.contentQueries=[]),r=n.length?n[n.length-1]:-1;e!==r&&n.push(t.queries.length-1,e)}function bd(t,e){return t.queries.getByIndex(e)}function FE(t,e){let n=t[U],r=bd(n,e);return r.crossesNgTemplate?Du(n,t,e,[]):ly(n,t,r,e)}var Rp=new Set;function ei(t){Rp.has(t)||(Rp.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function LE(t){return typeof t=="function"&&t[Zt]!==void 0}function Pa(t,e){ei("NgSignals");let n=Ah(t),r=n[Zt];return e?.equal&&(r.equal=e.equal),n.set=i=>Xc(r,i),n.update=i=>Oh(r,i),n.asReadonly=VE.bind(n),n}function VE(){let t=this[Zt];if(t.readonlyFn===void 0){let e=()=>this();e[Zt]=t,t.readonlyFn=e}return t.readonlyFn}function fy(t){return LE(t)&&typeof t.set=="function"}function jE(t){let e=[],n=new Map;function r(i){let o=n.get(i);if(!o){let s=t(i);n.set(i,o=s.then(HE))}return o}return ea.forEach((i,o)=>{let s=[];i.templateUrl&&s.push(r(i.templateUrl).then(l=>{i.template=l}));let a=typeof i.styles=="string"?[i.styles]:i.styles||[];if(i.styles=a,i.styleUrl&&i.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(i.styleUrls?.length){let l=i.styles.length,u=i.styleUrls;i.styleUrls.forEach((d,f)=>{a.push(""),s.push(r(d).then(h=>{a[l+f]=h,u.splice(u.indexOf(d),1),u.length==0&&(i.styleUrls=void 0)}))})}else i.styleUrl&&s.push(r(i.styleUrl).then(l=>{a.push(l),i.styleUrl=void 0}));let c=Promise.all(s).then(()=>zE(o));e.push(c)}),UE(),Promise.all(e).then(()=>{})}var ea=new Map,BE=new Set;function UE(){let t=ea;return ea=new Map,t}function $E(){return ea.size===0}function HE(t){return typeof t=="string"?t:t.text()}function zE(t){BE.delete(t)}function qE(t){return Object.getPrototypeOf(t.prototype).constructor}function An(t){let e=qE(t.type),n=!0,r=[t];for(;e;){let i;if(En(t))i=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new S(903,!1);i=e.\u0275dir}if(i){if(n){r.push(i);let s=t;s.inputs=Es(t.inputs),s.inputTransforms=Es(t.inputTransforms),s.declaredInputs=Es(t.declaredInputs),s.outputs=Es(t.outputs);let a=i.hostBindings;a&&QE(t,a);let c=i.viewQuery,l=i.contentQueries;if(c&&ZE(t,c),l&&YE(t,l),GE(t,i),_w(t.outputs,i.outputs),En(i)&&i.data.animation){let u=t.data;u.animation=(u.animation||[]).concat(i.data.animation)}}let o=i.features;if(o)for(let s=0;s=0;r--){let i=t[r];i.hostVars=e+=i.hostVars,i.hostAttrs=Bi(i.hostAttrs,n=Bi(n,i.hostAttrs))}}function Es(t){return t===Br?{}:t===We?[]:t}function ZE(t,e){let n=t.viewQuery;n?t.viewQuery=(r,i)=>{e(r,i),n(r,i)}:t.viewQuery=e}function YE(t,e){let n=t.contentQueries;n?t.contentQueries=(r,i,o)=>{e(r,i,o),n(r,i,o)}:t.contentQueries=e}function QE(t,e){let n=t.hostBindings;n?t.hostBindings=(r,i)=>{e(r,i),n(r,i)}:t.hostBindings=e}function Cd(t){let e=t.inputConfig,n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r];Array.isArray(i)&&i[3]&&(n[r]=i[3])}t.inputTransforms=n}var xn=class{},zi=class{};var ta=class extends xn{constructor(e,n,r,i=!0){super(),this.ngModuleType=e,this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Js(this);let o=lg(e);this._bootstrapComponents=Dm(o.bootstrap),this._r3Injector=Jg(e,n,[{provide:xn,useValue:this},{provide:$t,useValue:this.componentFactoryResolver},...r],je(e),new Set(["environment"])),i&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},na=class extends zi{constructor(e){super(),this.moduleType=e}create(e){return new ta(this.moduleType,e,[])}};function KE(t,e,n){return new ta(t,e,n,!1)}var Eu=class extends xn{constructor(e){super(),this.componentFactoryResolver=new Js(this),this.instance=null;let n=new Ui([...e.providers,{provide:xn,useValue:this},{provide:$t,useValue:this.componentFactoryResolver}],e.parent||qu(),e.debugName,new Set(["environment"]));this.injector=n,e.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function Ra(t,e,n=null){return new Eu({providers:t,parent:e,debugName:n,runEnvironmentInitializers:!0}).injector}function hy(t){return Dd(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function JE(t,e){if(Array.isArray(t))for(let n=0;n{let e=class e{constructor(){this.impl=null}execute(){this.impl?.execute()}};e.\u0275prov=D({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})(),qn=class qn{constructor(){this.ngZone=b(ne),this.scheduler=b(Gr),this.errorHandler=b(en,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}execute(){this.executing=!0;for(let e of qn.PHASES)for(let n of this.sequences)if(!(n.erroredOrDestroyed||!n.hooks[e]))try{n.pipelinedValue=this.ngZone.runOutsideAngular(()=>n.hooks[e](n.pipelinedValue))}catch(r){n.erroredOrDestroyed=!0,this.errorHandler?.handleError(r)}this.executing=!1;for(let e of this.sequences)e.afterRun(),e.once&&this.sequences.delete(e);for(let e of this.deferredRegistrations)this.sequences.add(e);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear()}register(e){this.executing?this.deferredRegistrations.add(e):(this.sequences.add(e),this.scheduler.notify(6))}unregister(e){this.executing&&this.sequences.has(e)?(e.erroredOrDestroyed=!0,e.pipelinedValue=void 0,e.once=!0):(this.sequences.delete(e),this.deferredRegistrations.delete(e))}};qn.PHASES=[Fr.EarlyRead,Fr.Write,Fr.MixedReadWrite,Fr.Read],qn.\u0275prov=D({token:qn,providedIn:"root",factory:()=>new qn});var xu=qn,Mu=class{constructor(e,n,r,i){this.impl=e,this.hooks=n,this.once=r,this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.()}};function Ed(t,e){!e?.injector&&mb(Ed);let n=e?.injector??b(Me);return JC(n)?(ei("NgAfterNextRender"),oI(t,n,e,!0)):sI}function iI(t,e){if(t instanceof Function){let n=[void 0,void 0,void 0,void 0];return n[e]=t,n}else return[t.earlyRead,t.write,t.mixedReadWrite,t.read]}function oI(t,e,n,r){let i=e.get(my);i.impl??=e.get(xu);let o=n?.phase??Fr.MixedReadWrite,s=n?.manualCleanup!==!0?e.get(rd):null,a=new Mu(i.impl,iI(t,o),r,s);return i.impl.register(a),a}var sI={destroy(){}};function ar(t,e,n,r){let i=V(),o=_a();if(xt(i,o,e)){let s=ve(),a=ed();jD(a,i,t,e,n,r)}return ar}function yy(t,e,n,r){return xt(t,_a(),n)?e+jr(n)+r:mt}function aI(t,e,n,r,i,o){let s=Rb(),a=qi(t,s,n,i);return Qu(2),a?e+jr(n)+r+jr(i)+o:mt}function Is(t,e){return t<<17|e<<2}function tr(t){return t>>17&32767}function cI(t){return(t&2)==2}function lI(t,e){return t&131071|e<<17}function Su(t){return t|2}function Yr(t){return(t&131068)>>2}function Tl(t,e){return t&-131069|e<<2}function uI(t){return(t&1)===1}function Tu(t){return t|1}function dI(t,e,n,r,i,o){let s=o?e.classBindings:e.styleBindings,a=tr(s),c=Yr(s);t[r]=n;let l=!1,u;if(Array.isArray(n)){let d=n;u=d[1],(u===null||Yi(d,u)>0)&&(l=!0)}else u=n;if(i)if(c!==0){let f=tr(t[a+1]);t[r+1]=Is(f,a),f!==0&&(t[f+1]=Tl(t[f+1],r)),t[a+1]=lI(t[a+1],r)}else t[r+1]=Is(a,0),a!==0&&(t[a+1]=Tl(t[a+1],r)),a=r;else t[r+1]=Is(c,0),a===0?a=r:t[c+1]=Tl(t[c+1],r),c=r;l&&(t[r+1]=Su(t[r+1])),kp(t,u,r,!0),kp(t,u,r,!1),fI(e,u,t,r,o),s=Is(a,c),o?e.classBindings=s:e.styleBindings=s}function fI(t,e,n,r,i){let o=i?t.residualClasses:t.residualStyles;o!=null&&typeof e=="string"&&Yi(o,e)>=0&&(n[r+1]=Tu(n[r+1]))}function kp(t,e,n,r){let i=t[n+1],o=e===null,s=r?tr(i):Yr(i),a=!1;for(;s!==0&&(a===!1||o);){let c=t[s],l=t[s+1];hI(c,e)&&(a=!0,t[s+1]=r?Tu(l):Su(l)),s=r?tr(l):Yr(l)}a&&(t[n+1]=r?Su(i):Tu(i))}function hI(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?Yi(t,e)>=0:!1}var Dt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function pI(t){return t.substring(Dt.key,Dt.keyEnd)}function gI(t){return mI(t),vy(t,_y(t,0,Dt.textEnd))}function vy(t,e){let n=Dt.textEnd;return n===e?-1:(e=Dt.keyEnd=yI(t,Dt.key=e,n),_y(t,e,n))}function mI(t){Dt.key=0,Dt.keyEnd=0,Dt.value=0,Dt.valueEnd=0,Dt.textEnd=t.length}function _y(t,e,n){for(;e32;)e++;return e}function m(t,e,n){let r=V(),i=_a();if(xt(r,i,e)){let o=ve(),s=ed();$m(o,s,r,t,e,r[ge],n,!1)}return m}function Au(t,e,n,r,i){let o=e.inputs,s=i?"class":"style";yd(t,n,o[s],s,r)}function wy(t,e,n){return Cy(t,e,n,!1),wy}function he(t,e){return Cy(t,e,null,!0),he}function cr(t){Dy(DI,by,t,!0)}function by(t,e){for(let n=gI(e);n>=0;n=vy(e,n))ua(t,pI(e),!0)}function Cy(t,e,n,r){let i=V(),o=ve(),s=Qu(2);if(o.firstUpdatePass&&Iy(o,t,s,r),e!==mt&&xt(i,s,e)){let a=o.data[Sn()];xy(o,a,i,i[ge],t,i[s+1]=II(e,n),r,s)}}function Dy(t,e,n,r){let i=ve(),o=Qu(2);i.firstUpdatePass&&Iy(i,null,o,r);let s=V();if(n!==mt&&xt(s,o,n)){let a=i.data[Sn()];if(My(a,r)&&!Ey(i,o)){let c=r?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(n=Pl(c,n||"")),Au(i,a,s,n,r)}else EI(i,a,s,s[ge],s[o+1],s[o+1]=CI(t,e,n),r,o)}}function Ey(t,e){return e>=t.expandoStartIndex}function Iy(t,e,n,r){let i=t.data;if(i[n+1]===null){let o=i[Sn()],s=Ey(t,n);My(o,r)&&e===null&&!s&&(e=!1),e=vI(i,o,e,r),dI(i,o,e,n,s,r)}}function vI(t,e,n,r){let i=jb(t),o=r?e.residualClasses:e.residualStyles;if(i===null)(r?e.classBindings:e.styleBindings)===0&&(n=Al(null,t,e,n,r),n=Gi(n,e.attrs,r),o=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==i)if(n=Al(i,t,e,n,r),o===null){let c=_I(t,e,r);c!==void 0&&Array.isArray(c)&&(c=Al(null,t,e,c[1],r),c=Gi(c,e.attrs,r),wI(t,e,r,c))}else o=bI(t,e,r)}return o!==void 0&&(r?e.residualClasses=o:e.residualStyles=o),n}function _I(t,e,n){let r=n?e.classBindings:e.styleBindings;if(Yr(r)!==0)return t[tr(r)]}function wI(t,e,n,r){let i=n?e.classBindings:e.styleBindings;t[tr(i)]=r}function bI(t,e,n){let r,i=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0;){let c=t[i],l=Array.isArray(c),u=l?c[1]:c,d=u===null,f=n[i+1];f===mt&&(f=d?We:void 0);let h=d?wl(f,r):u===r?f:void 0;if(l&&!ra(h)&&(h=wl(c,r)),ra(h)&&(a=h,s))return a;let w=t[i+1];i=s?tr(w):Yr(w)}if(e!==null){let c=o?e.residualClasses:e.residualStyles;c!=null&&(a=wl(c,r))}return a}function ra(t){return t!==void 0}function II(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=je(Mt(t)))),t}function My(t,e){return(t.flags&(e?8:16))!==0}function Sy(t,e,n){let r=V(),i=yy(r,t,e,n);Dy(ua,by,i,!0)}function xI(t,e,n,r,i,o){let s=e.consts,a=qr(s,i),c=Xr(e,t,2,r,a);return md(e,n,c,qr(s,o)),c.attrs!==null&&Ks(c,c.attrs,!1),c.mergedAttrs!==null&&Ks(c,c.mergedAttrs,!0),e.queries!==null&&e.queries.elementStart(e,c),c}function y(t,e,n,r){let i=V(),o=ve(),s=Re+t,a=i[ge],c=o.firstCreatePass?xI(s,o,i,e,n,r):o.data[s],l=MI(o,i,c,a,e,t);i[s]=l;let u=ga(c);return ir(c,!0),km(a,l,c),!eI(c)&&ba()&&Sa(o,i,l,c),Mb()===0&&In(l,i),Sb(),u&&(hd(o,i,c),fd(o,c,i)),r!==null&&pd(i,c),y}function v(){let t=Ne();Zu()?Yu():(t=t.parent,ir(t,!1));let e=t;Ab(e)&&Ob(),Tb();let n=ve();return n.firstCreatePass&&(Da(n,t),Gu(t)&&n.queries.elementEnd(t)),e.classesWithoutHost!=null&&Wb(e)&&Au(n,e,V(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&Zb(e)&&Au(n,e,V(),e.stylesWithoutHost,!1),v}function ke(t,e,n,r){return y(t,e,n,r),v(),ke}var MI=(t,e,n,r,i,o)=>(Ca(!0),Em(r,i,Hb()));function SI(t,e,n,r,i){let o=e.consts,s=qr(o,r),a=Xr(e,t,8,"ng-container",s);s!==null&&Ks(a,s,!0);let c=qr(o,i);return md(e,n,a,c),e.queries!==null&&e.queries.elementStart(e,a),a}function _e(t,e,n){let r=V(),i=ve(),o=t+Re,s=i.firstCreatePass?SI(o,i,r,e,n):i.data[o];ir(s,!0);let a=TI(i,r,s,t);return r[o]=a,ba()&&Sa(i,r,a,s),In(a,r),ga(s)&&(hd(i,r,s),fd(i,s,r)),n!=null&&pd(r,s),_e}function we(){let t=Ne(),e=ve();return Zu()?Yu():(t=t.parent,ir(t,!1)),e.firstCreatePass&&(Da(e,t),Gu(t)&&e.queries.elementEnd(t)),we}function yt(t,e,n){return _e(t,e,n),we(),yt}var TI=(t,e,n,r)=>(Ca(!0),nD(e[ge],""));function W(){return V()}var ia="en-US";var AI=ia;function OI(t){typeof t=="string"&&(AI=t.toLowerCase().replace(/_/g,"-"))}var NI=(t,e,n)=>{};function N(t,e,n,r){let i=V(),o=ve(),s=Ne();return Ty(o,i,i[ge],s,t,e,r),N}function PI(t,e,n,r){let i=t.cleanup;if(i!=null)for(let o=0;oc?a[c]:null}typeof s=="string"&&(o+=2)}return null}function Ty(t,e,n,r,i,o,s){let a=ga(r),l=t.firstCreatePass&&Zm(t),u=e[It],d=Wm(e),f=!0;if(r.type&3||s){let O=pt(r,e),x=s?s(O):O,I=d.length,K=s?ee=>s(Bt(ee[r.index])):r.index,me=null;if(!s&&a&&(me=PI(t,e,i,r.index)),me!==null){let ee=me.__ngLastListenerFn__||me;ee.__ngNextListenerFn__=o,me.__ngLastListenerFn__=o,f=!1}else{o=Vp(r,e,u,o),NI(O,i,o);let ee=n.listen(x,i,o);d.push(o,ee),l&&l.push(i,K,I,I+1)}}else o=Vp(r,e,u,o);let h=r.outputs,w;if(f&&h!==null&&(w=h[i])){let O=w.length;if(O)for(let x=0;x-1?Mn(t.index,e):e;_d(s,5);let a=Lp(e,n,r,o),c=i.__ngNextListenerFn__;for(;c;)a=Lp(e,n,c,o)&&a,c=c.__ngNextListenerFn__;return a}}function g(t=1){return Ub(t)}function RI(t,e){let n=null,r=Yw(t);for(let i=0;i=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=r}function Tt(t){let e=Pb();return ma(e,Re+t)}function A(t,e=""){let n=V(),r=ve(),i=t+Re,o=r.firstCreatePass?Xr(r,i,1,e,null):r.data[i],s=LI(r,n,o,e,t);n[i]=s,ba()&&Sa(r,n,s,o),ir(o,!1)}var LI=(t,e,n,r,i)=>(Ca(!0),eD(e[ge],r));function Ie(t){return de("",t,""),Ie}function de(t,e,n){let r=V(),i=yy(r,t,e,n);return i!==mt&&Qm(r,Sn(),i),de}function Id(t,e,n,r,i){let o=V(),s=aI(o,t,e,n,r,i);return s!==mt&&Qm(o,Sn(),s),Id}function Ji(t,e,n){fy(e)&&(e=e());let r=V(),i=_a();if(xt(r,i,e)){let o=ve(),s=ed();$m(o,s,r,t,e,r[ge],n,!1)}return Ji}function Fa(t,e){let n=fy(t);return n&&t.set(e),n}function Xi(t,e){let n=V(),r=ve(),i=Ne();return Ty(r,n,n[ge],i,t,e),Xi}function VI(t,e,n){let r=ve();if(r.firstCreatePass){let i=En(t);Ou(n,r.data,r.blueprint,i,!0),Ou(e,r.data,r.blueprint,i,!1)}}function Ou(t,e,n,r,i){if(t=Ve(t),Array.isArray(t))for(let o=0;o>20;if($r(t)||!t.multi){let h=new Jn(l,i,E),w=Nl(c,e,i?u:u+f,d);w===-1?(Wl(zs(a,s),o,c),Ol(o,t,e.length),e.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(h),s.push(h)):(n[w]=h,s[w]=h)}else{let h=Nl(c,e,u+f,d),w=Nl(c,e,u,u+f),O=h>=0&&n[h],x=w>=0&&n[w];if(i&&!x||!i&&!O){Wl(zs(a,s),o,c);let I=UI(i?BI:jI,n.length,i,r,l);!i&&x&&(n[w].providerFactory=I),Ol(o,t,e.length,0),e.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(I),s.push(I)}else{let I=Ay(n[i?w:h],l,!i&&r);Ol(o,t,h>-1?h:w,I)}!i&&r&&x&&n[w].componentProviders++}}}function Ol(t,e,n,r){let i=$r(e),o=lb(e);if(i||o){let c=(o?Ve(e.useClass):e).prototype.ngOnDestroy;if(c){let l=t.destroyHooks||(t.destroyHooks=[]);if(!i&&e.multi){let u=l.indexOf(n);u===-1?l.push(n,[r,c]):l[u+1].push(r,c)}else l.push(n,c)}}}function Ay(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function Nl(t,e,n,r){for(let i=n;i{n.providersResolver=(r,i)=>VI(r,i?i(t):t,e)}}var $I=(()=>{let e=class e{constructor(r){this._injector=r,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(r){if(!r.standalone)return null;if(!this.cachedInjectors.has(r)){let i=fg(!1,r.type),o=i.length>0?Ra([i],this._injector,`Standalone[${r.type.name}]`):null;this.cachedInjectors.set(r,o)}return this.cachedInjectors.get(r)}ngOnDestroy(){try{for(let r of this.cachedInjectors.values())r!==null&&r.destroy()}finally{this.cachedInjectors.clear()}}};e.\u0275prov=D({token:e,providedIn:"environment",factory:()=>new e(_(Be))});let t=e;return t})();function Oy(t){ei("NgStandalone"),t.getStandaloneInjector=e=>e.get($I).getOrCreateStandaloneInjector(t)}function xd(t,e,n){let r=t.\u0275cmp;r.directiveDefs=Ls(e,!1),r.pipeDefs=Ls(n,!0)}function RL(t,e,n){let r=or()+t,i=V();return i[r]===mt?sr(i,r,n?e.call(n):e()):py(i,r)}function On(t,e,n,r){return HI(V(),or(),t,e,n,r)}function Ny(t,e,n,r,i,o,s,a,c,l,u){let d=or()+t,f=V(),h=Iu(f,d,n,r,i,o);return Iu(f,d+4,s,a,c,l)||h?sr(f,d+8,u?e.call(u,n,r,i,o,s,a,c,l):e(n,r,i,o,s,a,c,l)):py(f,d+8)}function Py(t,e,n,r){return WI(V(),or(),t,e,n,r)}function to(t,e){let n=t[e];return n===mt?void 0:n}function HI(t,e,n,r,i,o){let s=e+n;return xt(t,s,i)?sr(t,s+1,o?r.call(o,i):r(i)):to(t,s+1)}function zI(t,e,n,r,i,o,s){let a=e+n;return qi(t,a,i,o)?sr(t,a+2,s?r.call(s,i,o):r(i,o)):to(t,a+2)}function qI(t,e,n,r,i,o,s,a){let c=e+n;return XE(t,c,i,o,s)?sr(t,c+3,a?r.call(a,i,o,s):r(i,o,s)):to(t,c+3)}function GI(t,e,n,r,i,o,s,a,c){let l=e+n;return Iu(t,l,i,o,s,a)?sr(t,l+4,c?r.call(c,i,o,s,a):r(i,o,s,a)):to(t,l+4)}function WI(t,e,n,r,i,o){let s=e+n,a=!1;for(let c=0;c=0;n--){let r=e[n];if(t===r.name)return r}}function kL(t,e,n,r){let i=t+Re,o=V(),s=ma(o,i);return Md(o,i)?zI(o,or(),e,s.transform,n,r,s):s.transform(n,r)}function ni(t,e,n,r,i){let o=t+Re,s=V(),a=ma(s,o);return Md(s,o)?qI(s,or(),e,a.transform,n,r,i,a):a.transform(n,r,i)}function Ry(t,e,n,r,i,o){let s=t+Re,a=V(),c=ma(a,s);return Md(a,s)?GI(a,or(),e,c.transform,n,r,i,o,c):c.transform(n,r,i,o)}function Md(t,e){return t[U].data[e].pure}function cn(t,e){return Na(t,e)}var xs=null;function YI(t){xs!==null&&(t.defaultEncapsulation!==xs.defaultEncapsulation||t.preserveWhitespaces!==xs.preserveWhitespaces)||(xs=t)}var La=(()=>{let e=class e{log(r){console.log(r)}warn(r){console.warn(r)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();var Sd=new M(""),no=new M(""),Va=(()=>{let e=class e{constructor(r,i,o){this._ngZone=r,this.registry=i,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,Td||(QI(o),o.addToWindow(i)),this._watchAngularEvents(),r.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ne.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let r=this._callbacks.pop();clearTimeout(r.timeoutId),r.doneCb()}});else{let r=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>i.updateCb&&i.updateCb(r)?(clearTimeout(i.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(r=>({source:r.source,creationLocation:r.creationLocation,data:r.data})):[]}addCallback(r,i,o){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==s),r()},i)),this._callbacks.push({doneCb:r,timeoutId:s,updateCb:o})}whenStable(r,i,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(r,i,o),this._runCallbacksIfReady()}registerApplication(r){this.registry.registerApplication(r,this)}unregisterApplication(r){this.registry.unregisterApplication(r)}findProviders(r,i,o){return[]}};e.\u0275fac=function(i){return new(i||e)(_(ne),_(ja),_(no))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),ja=(()=>{let e=class e{constructor(){this._applications=new Map}registerApplication(r,i){this._applications.set(r,i)}unregisterApplication(r){this._applications.delete(r)}unregisterAllApplications(){this._applications.clear()}getTestability(r){return this._applications.get(r)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(r,i=!0){return Td?.findTestabilityInTree(this,r,i)??null}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();function QI(t){Td=t}var Td;function dr(t){return!!t&&typeof t.then=="function"}function ky(t){return!!t&&typeof t.subscribe=="function"}var Ba=new M(""),Fy=(()=>{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,i)=>{this.resolve=r,this.reject=i}),this.appInits=b(Ba,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let r=[];for(let o of this.appInits){let s=o();if(dr(s))r.push(s);else if(ky(s)){let a=new Promise((c,l)=>{s.subscribe({complete:c,error:l})});r.push(a)}}let i=()=>{this.done=!0,this.resolve()};Promise.all(r).then(()=>{i()}).catch(o=>{this.reject(o)}),r.length===0&&i(),this.initialized=!0}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Ua=new M("");function KI(){Th(()=>{throw new S(600,!1)})}function JI(t){return t.isBoundToModule}var XI=10;function ex(t,e,n){try{let r=n();return dr(r)?r.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}function Ly(t,e){return Array.isArray(e)?e.reduce(Ly,t):C(C({},t),e)}var tt=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=b(pC),this.afterRenderManager=b(my),this.zonelessEnabled=b(wd),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new ue,this.afterTick=new ue,this.componentTypes=[],this.components=[],this.isStable=b(on).hasPendingTasks.pipe(j(r=>!r)),this._injector=b(Be)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let r;return new Promise(i=>{r=this.isStable.subscribe({next:o=>{o&&i()}})}).finally(()=>{r.unsubscribe()})}get injector(){return this._injector}bootstrap(r,i){let o=r instanceof Qs;if(!this._injector.get(Fy).done){let h=!o&&cg(r),w=!1;throw new S(405,w)}let a;o?a=r:a=this._injector.get($t).resolveComponentFactory(r),this.componentTypes.push(a.componentType);let c=JI(a)?void 0:this._injector.get(xn),l=i||a.selector,u=a.create(Me.NULL,[],l,c),d=u.location.nativeElement,f=u.injector.get(Sd,null);return f?.registerApplication(d),u.onDestroy(()=>{this.detachView(u.hostView),Ns(this.components,u),f?.unregisterApplication(d)}),this._loadComponent(u),u}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new S(101,!1);let r=J(null);try{this._runningTick=!0,this.synchronize()}catch(i){this.internalErrorHandler(i)}finally{this._runningTick=!1,J(r),this.afterTick.next()}}synchronize(){let r=null;this._injector.destroyed||(r=this._injector.get(Wr,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let i=0;for(;this.dirtyFlags!==0&&i++ya(r))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(r){let i=r;this._views.push(i),i.attachToAppRef(this)}detachView(r){let i=r;Ns(this._views,i),i.detachFromAppRef()}_loadComponent(r){this.attachView(r.hostView),this.tick(),this.components.push(r);let i=this._injector.get(Ua,[]);[...this._bootstrapListeners,...i].forEach(o=>o(r))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(r=>r()),this._views.slice().forEach(r=>r.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(r){return this._destroyListeners.push(r),()=>Ns(this._destroyListeners,r)}destroy(){if(this._destroyed)throw new S(406,!1);let r=this._injector;r.destroy&&!r.destroyed&&r.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Ns(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}function tx(t,e,n,r){if(!n&&!ya(t))return;ty(t,e,n&&!r?0:1)}var Pu=class{constructor(e,n){this.ngModuleFactory=e,this.componentFactories=n}},$a=(()=>{let e=class e{compileModuleSync(r){return new na(r)}compileModuleAsync(r){return Promise.resolve(this.compileModuleSync(r))}compileModuleAndAllComponentsSync(r){let i=this.compileModuleSync(r),o=lg(r),s=Dm(o.declarations).reduce((a,c)=>{let l=Dn(c);return l&&a.push(new Zr(l)),a},[]);return new Pu(i,s)}compileModuleAndAllComponentsAsync(r){return Promise.resolve(this.compileModuleAndAllComponentsSync(r))}clearCache(){}clearCacheFor(r){}getModuleId(r){}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),nx=new M("");function rx(t,e,n){let r=new na(n);return Promise.resolve(r)}function jp(t){for(let e=t.length-1;e>=0;e--)if(t[e]!==void 0)return t[e]}var ix=(()=>{let e=class e{constructor(){this.zone=b(ne),this.changeDetectionScheduler=b(Gr),this.applicationRef=b(tt)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function ox({ngZoneFactory:t,ignoreChangesOutsideZone:e,scheduleInRootZone:n}){return t??=()=>new ne(z(C({},Vy()),{scheduleInRootZone:n})),[{provide:ne,useFactory:t},{provide:Ur,multi:!0,useFactory:()=>{let r=b(ix,{optional:!0});return()=>r.initialize()}},{provide:Ur,multi:!0,useFactory:()=>{let r=b(sx);return()=>{r.initialize()}}},e===!0?{provide:oy,useValue:!0}:[],{provide:sy,useValue:n??Xg}]}function Vy(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var sx=(()=>{let e=class e{constructor(){this.subscription=new be,this.initialized=!1,this.zone=b(ne),this.pendingTasks=b(on)}initialize(){if(this.initialized)return;this.initialized=!0;let r=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(r=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{ne.assertNotInAngularZone(),queueMicrotask(()=>{r!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(r),r=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ne.assertInAngularZone(),r??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var ax=(()=>{let e=class e{constructor(){this.appRef=b(tt),this.taskService=b(on),this.ngZone=b(ne),this.zonelessEnabled=b(wd),this.disableScheduling=b(oy,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new be,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Gs):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(b(sy,{optional:!0})??!1),this.cancelScheduledCallback=null,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Ws||!this.zoneIsDefined)}notify(r){if(!this.zonelessEnabled&&r===5)return;switch(r){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 7:{this.appRef.deferredDirtyFlags|=8;break}case 9:case 8:case 6:case 10:default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick())return;let i=this.useMicrotaskScheduler?_p:em;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>i(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>i(()=>this.tick()))}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Gs+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let r=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(i){throw this.taskService.remove(r),i}finally{this.cleanup()}this.useMicrotaskScheduler=!0,_p(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(r)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let r=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(r)}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function cx(){return typeof $localize<"u"&&$localize.locale||ia}var Ad=new M("",{providedIn:"root",factory:()=>b(Ad,q.Optional|q.SkipSelf)||cx()});var Od=new M("");function Ms(t){return!!t.platformInjector}function lx(t){let e=Ms(t)?t.r3Injector:t.moduleRef.injector,n=e.get(ne);return n.run(()=>{Ms(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let r=e.get(en,null),i;if(n.runOutsideAngular(()=>{i=n.onError.subscribe({next:o=>{r.handleError(o)}})}),Ms(t)){let o=()=>e.destroy(),s=t.platformInjector.get(Od);s.add(o),e.onDestroy(()=>{i.unsubscribe(),s.delete(o)})}else t.moduleRef.onDestroy(()=>{Ns(t.allPlatformModules,t.moduleRef),i.unsubscribe()});return ex(r,n,()=>{let o=e.get(Fy);return o.runInitializers(),o.donePromise.then(()=>{let s=e.get(Ad,ia);if(OI(s||ia),Ms(t)){let a=e.get(tt);return t.rootComponent!==void 0&&a.bootstrap(t.rootComponent),a}else return ux(t.moduleRef,t.allPlatformModules),t.moduleRef})})})}function ux(t,e){let n=t.injector.get(tt);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(t.instance.ngDoBootstrap)t.instance.ngDoBootstrap(n);else throw new S(-403,!1);e.push(t)}var jy=(()=>{let e=class e{constructor(r){this._injector=r,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(r,i){let o=i?.scheduleInRootZone,s=()=>hC(i?.ngZone,z(C({},Vy({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing})),{scheduleInRootZone:o})),a=i?.ignoreChangesOutsideZone,c=[ox({ngZoneFactory:s,ignoreChangesOutsideZone:a}),{provide:Gr,useExisting:ax}],l=KE(r.moduleType,this.injector,c);return lx({moduleRef:l,allPlatformModules:this._modules})}bootstrapModule(r,i=[]){let o=Ly({},i);return rx(this.injector,o,r).then(s=>this.bootstrapModuleFactory(s,o))}onDestroy(r){this._destroyListeners.push(r)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new S(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());let r=this._injector.get(Od,null);r&&(r.forEach(i=>i()),r.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}};e.\u0275fac=function(i){return new(i||e)(_(Me))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})(),Vi=null,By=new M("");function dx(t){if(Vi&&!Vi.get(By,!1))throw new S(400,!1);KI(),Vi=t;let e=t.get(jy);return px(t),e}function Nd(t,e,n=[]){let r=`Platform: ${e}`,i=new M(r);return(o=[])=>{let s=Uy();if(!s||s.injector.get(By,!1)){let a=[...n,...o,{provide:i,useValue:!0}];t?t(a):dx(fx(a,r))}return hx(i)}}function fx(t=[],e){return Me.create({name:e,providers:[{provide:fa,useValue:"platform"},{provide:Od,useValue:new Set([()=>Vi=null])},...t]})}function hx(t){let e=Uy();if(!e)throw new S(401,!1);return e}function Uy(){return Vi?.get(jy)??null}function px(t){t.get(sd,null)?.forEach(n=>n())}function FL(){return!1}var Nn=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=gx;let t=e;return t})();function gx(t){return mx(Ne(),V(),(t&16)===16)}function mx(t,e,n){if(pa(t)&&!n){let r=Mn(t.index,e);return new er(r,r)}else if(t.type&175){let r=e[dt];return new er(r,e)}return null}var Ru=class{constructor(){}supports(e){return hy(e)}create(e){return new ku(e)}},yx=(t,e)=>e,ku=class{constructor(e){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=e||yx}forEachItem(e){let n;for(n=this._itHead;n!==null;n=n._next)e(n)}forEachOperation(e){let n=this._itHead,r=this._removalsHead,i=0,o=null;for(;n||r;){let s=!r||n&&n.currentIndex{s=this._trackByFn(i,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,i),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,i)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,i++}),this.length=i;return this._truncate(n),this.collection=e,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,n,r,i){let o;return e===null?o=this._itTail:(o=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),e!==null?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._reinsertAfter(e,o,i)):(e=this._linkedRecords===null?null:this._linkedRecords.get(r,i),e!==null?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._moveAfter(e,o,i)):e=this._addAfter(new Fu(n,r),o,i)),e}_verifyReinsertion(e,n,r,i){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return o!==null?e=this._reinsertAfter(o,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),e}_truncate(e){for(;e!==null;){let n=e._next;this._addToRemovals(this._unlink(e)),e=n}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let i=e._prevRemoved,o=e._nextRemoved;return i===null?this._removalsHead=o:i._nextRemoved=o,o===null?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(e,n,r),this._addToMoves(e,r),e}_moveAfter(e,n,r){return this._unlink(e),this._insertAfter(e,n,r),this._addToMoves(e,r),e}_addAfter(e,n,r){return this._insertAfter(e,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,n,r){let i=n===null?this._itHead:n._next;return e._next=i,e._prev=n,i===null?this._itTail=e:i._prev=e,n===null?this._itHead=e:n._next=e,this._linkedRecords===null&&(this._linkedRecords=new oa),this._linkedRecords.put(e),e.currentIndex=r,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let n=e._prev,r=e._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,e}_addToMoves(e,n){return e.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new oa),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,n){return e.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},Fu=class{constructor(e,n){this.item=e,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},Lu=class{constructor(){this._head=null,this._tail=null}add(e){this._head===null?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,e))return r;return null}remove(e){let n=e._prevDup,r=e._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},oa=class{constructor(){this.map=new Map}put(e){let n=e.trackById,r=this.map.get(n);r||(r=new Lu,this.map.set(n,r)),r.add(e)}get(e,n){let r=e,i=this.map.get(r);return i?i.get(e,n):null}remove(e){let n=e.trackById;return this.map.get(n).remove(e)&&this.map.delete(n),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function Bp(t,e,n){let r=t.previousIndex;if(r===null)return r;let i=0;return n&&r{if(n&&n.key===i)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{let o=this._getOrCreateRecordForKey(i,r);n=this._insertBeforeOrAppend(n,o)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;r!==null;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,n){if(e){let r=e._prev;return n._next=e,n._prev=r,e._prev=n,r&&(r._next=n),e===this._mapHead&&(this._mapHead=n),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(e,n){if(this._records.has(e)){let i=this._records.get(e);this._maybeAddToChanges(i,n);let o=i._prev,s=i._next;return o&&(o._next=s),s&&(s._prev=o),i._next=null,i._prev=null,i}let r=new Bu(e);return this._records.set(e,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;e!==null;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;e!=null;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,n){Object.is(n,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=n,this._addToChanges(e))}_addToAdditions(e){this._additionsHead===null?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){this._changesHead===null?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,n){e instanceof Map?e.forEach(n):Object.keys(e).forEach(r=>n(e[r],r))}},Bu=class{constructor(e){this.key=e,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 Up(){return new Pd([new Ru])}var Pd=(()=>{let e=class e{constructor(r){this.factories=r}static create(r,i){if(i!=null){let o=i.factories.slice();r=r.concat(o)}return new e(r)}static extend(r){return{provide:e,useFactory:i=>e.create(r,i||Up()),deps:[[e,new la,new Zi]]}}find(r){let i=this.factories.find(o=>o.supports(r));if(i!=null)return i;throw new S(901,!1)}};e.\u0275prov=D({token:e,providedIn:"root",factory:Up});let t=e;return t})();function $p(){return new Rd([new Vu])}var Rd=(()=>{let e=class e{constructor(r){this.factories=r}static create(r,i){if(i){let o=i.factories.slice();r=r.concat(o)}return new e(r)}static extend(r){return{provide:e,useFactory:i=>e.create(r,i||$p()),deps:[[e,new la,new Zi]]}}find(r){let i=this.factories.find(o=>o.supports(r));if(i)return i;throw new S(901,!1)}};e.\u0275prov=D({token:e,providedIn:"root",factory:$p});let t=e;return t})();var $y=Nd(null,"core",[]),Hy=(()=>{let e=class e{constructor(r){}};e.\u0275fac=function(i){return new(i||e)(_(tt))},e.\u0275mod=ce({type:e}),e.\u0275inj=ae({});let t=e;return t})();function fr(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function vx(t,e=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):e}function Ha(t,e){ei("NgSignals");let n=xh(t);return e?.equal&&(n[Zt].equal=e.equal),n}function Pn(t){let e=J(null);try{return t()}finally{J(e)}}function zy(t){let e=Dn(t);if(!e)return null;let n=new Zr(e);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return e.standalone},get isSignal(){return e.signals}}}var Qy=null;function At(){return Qy}function Ky(t){Qy??=t}var za=class{};var Se=new M(""),$d=(()=>{let e=class e{historyGo(r){throw new Error("")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>b(wx),providedIn:"platform"});let t=e;return t})(),Jy=new M(""),wx=(()=>{let e=class e extends $d{constructor(){super(),this._doc=b(Se),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return At().getBaseHref(this._doc)}onPopState(r){let i=At().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",r,!1),()=>i.removeEventListener("popstate",r)}onHashChange(r){let i=At().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",r,!1),()=>i.removeEventListener("hashchange",r)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(r){this._location.pathname=r}pushState(r,i,o){this._history.pushState(r,i,o)}replaceState(r,i,o){this._history.replaceState(r,i,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(r=0){this._history.go(r)}getState(){return this._history.state}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>new e,providedIn:"platform"});let t=e;return t})();function Hd(t,e){if(t.length==0)return e;if(e.length==0)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,n==2?t+e.substring(1):n==1?t+e:t+"/"+e}function qy(t){let e=t.match(/#|\?|$/),n=e&&e.index||t.length,r=n-(t[n-1]==="/"?1:0);return t.slice(0,r)+t.slice(n)}function ln(t){return t&&t[0]!=="?"?"?"+t:t}var un=(()=>{let e=class e{historyGo(r){throw new Error("")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>b(zd),providedIn:"root"});let t=e;return t})(),Xy=new M(""),zd=(()=>{let e=class e extends un{constructor(r,i){super(),this._platformLocation=r,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??b(Se).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(r){this._removeListenerFns.push(this._platformLocation.onPopState(r),this._platformLocation.onHashChange(r))}getBaseHref(){return this._baseHref}prepareExternalUrl(r){return Hd(this._baseHref,r)}path(r=!1){let i=this._platformLocation.pathname+ln(this._platformLocation.search),o=this._platformLocation.hash;return o&&r?`${i}${o}`:i}pushState(r,i,o,s){let a=this.prepareExternalUrl(o+ln(s));this._platformLocation.pushState(r,i,a)}replaceState(r,i,o,s){let a=this.prepareExternalUrl(o+ln(s));this._platformLocation.replaceState(r,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(r=0){this._platformLocation.historyGo?.(r)}};e.\u0275fac=function(i){return new(i||e)(_($d),_(Xy,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ev=(()=>{let e=class e extends un{constructor(r,i){super(),this._platformLocation=r,this._baseHref="",this._removeListenerFns=[],i!=null&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(r){this._removeListenerFns.push(this._platformLocation.onPopState(r),this._platformLocation.onHashChange(r))}getBaseHref(){return this._baseHref}path(r=!1){let i=this._platformLocation.hash??"#";return i.length>0?i.substring(1):i}prepareExternalUrl(r){let i=Hd(this._baseHref,r);return i.length>0?"#"+i:i}pushState(r,i,o,s){let a=this.prepareExternalUrl(o+ln(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.pushState(r,i,a)}replaceState(r,i,o,s){let a=this.prepareExternalUrl(o+ln(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(r,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(r=0){this._platformLocation.historyGo?.(r)}};e.\u0275fac=function(i){return new(i||e)(_($d),_(Xy,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),ii=(()=>{let e=class e{constructor(r){this._subject=new H,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=r;let i=this._locationStrategy.getBaseHref();this._basePath=Dx(qy(Gy(i))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(r=!1){return this.normalize(this._locationStrategy.path(r))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(r,i=""){return this.path()==this.normalize(r+ln(i))}normalize(r){return e.stripTrailingSlash(Cx(this._basePath,Gy(r)))}prepareExternalUrl(r){return r&&r[0]!=="/"&&(r="/"+r),this._locationStrategy.prepareExternalUrl(r)}go(r,i="",o=null){this._locationStrategy.pushState(o,"",r,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(r+ln(i)),o)}replaceState(r,i="",o=null){this._locationStrategy.replaceState(o,"",r,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(r+ln(i)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(r=0){this._locationStrategy.historyGo?.(r)}onUrlChange(r){return this._urlChangeListeners.push(r),this._urlChangeSubscription??=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{let i=this._urlChangeListeners.indexOf(r);this._urlChangeListeners.splice(i,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(r="",i){this._urlChangeListeners.forEach(o=>o(r,i))}subscribe(r,i,o){return this._subject.subscribe({next:r,error:i,complete:o})}};e.normalizeQueryParams=ln,e.joinWithSlash=Hd,e.stripTrailingSlash=qy,e.\u0275fac=function(i){return new(i||e)(_(un))},e.\u0275prov=D({token:e,factory:()=>bx(),providedIn:"root"});let t=e;return t})();function bx(){return new ii(_(un))}function Cx(t,e){if(!t||!e.startsWith(t))return e;let n=e.substring(t.length);return n===""||["/",";","?","#"].includes(n[0])?n:e}function Gy(t){return t.replace(/\/index.html$/,"")}function Dx(t){if(new RegExp("^(https?:)?//").test(t)){let[,n]=t.split(/\/\/[^\/]+/);return n}return t}function qa(t,e){e=encodeURIComponent(e);for(let n of t.split(";")){let r=n.indexOf("="),[i,o]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===e)return decodeURIComponent(o)}return null}var Fd=/\s+/,Wy=[],dn=(()=>{let e=class e{constructor(r,i){this._ngEl=r,this._renderer=i,this.initialClasses=Wy,this.stateMap=new Map}set klass(r){this.initialClasses=r!=null?r.trim().split(Fd):Wy}set ngClass(r){this.rawClass=typeof r=="string"?r.trim().split(Fd):r}ngDoCheck(){for(let i of this.initialClasses)this._updateState(i,!0);let r=this.rawClass;if(Array.isArray(r)||r instanceof Set)for(let i of r)this._updateState(i,!0);else if(r!=null)for(let i of Object.keys(r))this._updateState(i,!!r[i]);this._applyStateDiff()}_updateState(r,i){let o=this.stateMap.get(r);o!==void 0?(o.enabled!==i&&(o.changed=!0,o.enabled=i),o.touched=!0):this.stateMap.set(r,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(let r of this.stateMap){let i=r[0],o=r[1];o.changed?(this._toggleClass(i,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),o.touched=!1}}_toggleClass(r,i){r=r.trim(),r.length>0&&r.split(Fd).forEach(o=>{i?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}};e.\u0275fac=function(i){return new(i||e)(E(Ee),E(St))},e.\u0275dir=ie({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0});let t=e;return t})();var Ld=class{constructor(e,n,r,i){this.$implicit=e,this.ngForOf=n,this.index=r,this.count=i}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},Ue=(()=>{let e=class e{set ngForOf(r){this._ngForOf=r,this._ngForOfDirty=!0}set ngForTrackBy(r){this._trackByFn=r}get ngForTrackBy(){return this._trackByFn}constructor(r,i,o){this._viewContainer=r,this._template=i,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(r){r&&(this._template=r)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let r=this._ngForOf;if(!this._differ&&r)if(0)try{}catch{}else this._differ=this._differs.find(r).create(this.ngForTrackBy)}if(this._differ){let r=this._differ.diff(this._ngForOf);r&&this._applyChanges(r)}}_applyChanges(r){let i=this._viewContainer;r.forEachOperation((o,s,a)=>{if(o.previousIndex==null)i.createEmbeddedView(this._template,new Ld(o.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)i.remove(s===null?void 0:s);else if(s!==null){let c=i.get(s);i.move(c,a),Zy(c,o)}});for(let o=0,s=i.length;o{let s=i.get(o.currentIndex);Zy(s,o)})}static ngTemplateContextGuard(r,i){return!0}};e.\u0275fac=function(i){return new(i||e)(E(an),E(ft),E(Pd))},e.\u0275dir=ie({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let t=e;return t})();function Zy(t,e){t.context.$implicit=e.item}var nt=(()=>{let e=class e{constructor(r,i){this._viewContainer=r,this._context=new Vd,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(r){this._context.$implicit=this._context.ngIf=r,this._updateView()}set ngIfThen(r){Yy("ngIfThen",r),this._thenTemplateRef=r,this._thenViewRef=null,this._updateView()}set ngIfElse(r){Yy("ngIfElse",r),this._elseTemplateRef=r,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(r,i){return!0}};e.\u0275fac=function(i){return new(i||e)(E(an),E(ft))},e.\u0275dir=ie({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let t=e;return t})(),Vd=class{constructor(){this.$implicit=null,this.ngIf=null}};function Yy(t,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${je(e)}'.`)}var tv=(()=>{let e=class e{constructor(r,i,o){this._ngEl=r,this._differs=i,this._renderer=o,this._ngStyle=null,this._differ=null}set ngStyle(r){this._ngStyle=r,!this._differ&&r&&(this._differ=this._differs.find(r).create())}ngDoCheck(){if(this._differ){let r=this._differ.diff(this._ngStyle);r&&this._applyChanges(r)}}_setStyle(r,i){let[o,s]=r.split("."),a=o.indexOf("-")===-1?void 0:Ut.DashCase;i!=null?this._renderer.setStyle(this._ngEl.nativeElement,o,s?`${i}${s}`:i,a):this._renderer.removeStyle(this._ngEl.nativeElement,o,a)}_applyChanges(r){r.forEachRemovedItem(i=>this._setStyle(i.key,null)),r.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),r.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}};e.\u0275fac=function(i){return new(i||e)(E(Ee),E(Rd),E(St))},e.\u0275dir=ie({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0});let t=e;return t})(),oi=(()=>{let e=class e{constructor(r){this._viewContainerRef=r,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(r){if(this._shouldRecreateView(r)){let i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=i.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(r){return!!r.ngTemplateOutlet||!!r.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(r,i,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,i,o):!1,get:(r,i,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,i,o)}})}};e.\u0275fac=function(i){return new(i||e)(E(an))},e.\u0275dir=ie({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Je]});let t=e;return t})();var Fe=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ce({type:e}),e.\u0275inj=ae({});let t=e;return t})(),qd="browser",Ex="server";function Ix(t){return t===qd}function hr(t){return t===Ex}var nv=(()=>{let e=class e{};e.\u0275prov=D({token:e,providedIn:"root",factory:()=>Ix(b(gt))?new jd(b(Se),window):new Bd});let t=e;return t})(),jd=class{constructor(e,n){this.document=e,this.window=n,this.offset=()=>[0,0]}setOffset(e){Array.isArray(e)?this.offset=()=>e:this.offset=e}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(e){this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){let n=xx(this.document,e);n&&(this.scrollToElement(n),n.focus())}setHistoryScrollRestoration(e){this.window.history.scrollRestoration=e}scrollToElement(e){let n=e.getBoundingClientRect(),r=n.left+this.window.pageXOffset,i=n.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(r-o[0],i-o[1])}};function xx(t,e){let n=t.getElementById(e)||t.getElementsByName(e)[0];if(n)return n;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let r=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),i=r.currentNode;for(;i;){let o=i.shadowRoot;if(o){let s=o.getElementById(e)||o.querySelector(`[name="${e}"]`);if(s)return s}i=r.nextNode()}}return null}var Bd=class{setOffset(e){}getScrollPosition(){return[0,0]}scrollToPosition(e){}scrollToAnchor(e){}setHistoryScrollRestoration(e){}},ri=class{};var io=class{},Wa=class{},$e=class t{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(` +`).forEach(n=>{let r=n.indexOf(":");if(r>0){let i=n.slice(0,r),o=i.toLowerCase(),s=n.slice(r+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((n,r)=>{this.setHeaderEntries(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let n=this.headers.get(e.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,n){return this.clone({name:e,value:n,op:"a"})}set(e,n){return this.clone({name:e,value:n,op:"s"})}delete(e,n){return this.clone({name:e,value:n,op:"d"})}maybeSetNormalizedName(e,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,e)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(n=>{this.headers.set(n,e.headers.get(n)),this.normalizedNames.set(n,e.normalizedNames.get(n))})}clone(e){let n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n}applyUpdate(e){let n=e.name.toLowerCase();switch(e.op){case"a":case"s":let r=e.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(e.name,n);let i=(e.op==="a"?this.headers.get(n):void 0)||[];i.push(...r),this.headers.set(n,i);break;case"d":let o=e.value;if(!o)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=this.headers.get(n);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}break}}setHeaderEntries(e,n){let r=(Array.isArray(n)?n:[n]).map(o=>o.toString()),i=e.toLowerCase();this.headers.set(i,r),this.maybeSetNormalizedName(e,i)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>e(this.normalizedNames.get(n),this.headers.get(n)))}};var Wd=class{encodeKey(e){return rv(e)}encodeValue(e){return rv(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function Mx(t,e){let n=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(i=>{let o=i.indexOf("="),[s,a]=o==-1?[e.decodeKey(i),""]:[e.decodeKey(i.slice(0,o)),e.decodeValue(i.slice(o+1))],c=n.get(s)||[];c.push(a),n.set(s,c)}),n}var Sx=/%(\d[a-f0-9])/gi,Tx={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function rv(t){return encodeURIComponent(t).replace(Sx,(e,n)=>Tx[n]??e)}function Ga(t){return`${t}`}var kn=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new Wd,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=Mx(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(n=>{let r=e.fromObject[n],i=Array.isArray(r)?r.map(Ga):[Ga(r)];this.map.set(n,i)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let n=this.map.get(e);return n?n[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,n){return this.clone({param:e,value:n,op:"a"})}appendAll(e){let n=[];return Object.keys(e).forEach(r=>{let i=e[r];Array.isArray(i)?i.forEach(o=>{n.push({param:r,value:o,op:"a"})}):n.push({param:r,value:i,op:"a"})}),this.clone(n)}set(e,n){return this.clone({param:e,value:n,op:"s"})}delete(e,n){return this.clone({param:e,value:n,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let n=this.encoder.encodeKey(e);return this.map.get(e).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(e),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let n=(e.op==="a"?this.map.get(e.param):void 0)||[];n.push(Ga(e.value)),this.map.set(e.param,n);break;case"d":if(e.value!==void 0){let r=this.map.get(e.param)||[],i=r.indexOf(Ga(e.value));i!==-1&&r.splice(i,1),r.length>0?this.map.set(e.param,r):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var Zd=class{constructor(){this.map=new Map}set(e,n){return this.map.set(e,n),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function Ax(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function iv(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function ov(t){return typeof Blob<"u"&&t instanceof Blob}function sv(t){return typeof FormData<"u"&&t instanceof FormData}function Ox(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var ro=class t{constructor(e,n,r,i){this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let o;if(Ax(this.method)||i?(this.body=r!==void 0?r:null,o=i):o=r,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new $e,this.context??=new Zd,!this.params)this.params=new kn,this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let a=n.indexOf("?"),c=a===-1?"?":af.set(h,e.setHeaders[h]),l)),e.setParams&&(u=Object.keys(e.setParams).reduce((f,h)=>f.set(h,e.setParams[h]),u)),new t(n,r,s,{params:u,headers:l,context:d,reportProgress:c,responseType:i,withCredentials:a,transferCache:o})}},Fn=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(Fn||{}),oo=class{constructor(e,n=200,r="OK"){this.headers=e.headers||new $e,this.status=e.status!==void 0?e.status:n,this.statusText=e.statusText||r,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},Za=class t extends oo{constructor(e={}){super(e),this.type=Fn.ResponseHeader}clone(e={}){return new t({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},so=class t extends oo{constructor(e={}){super(e),this.type=Fn.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new t({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Rn=class extends oo{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},dv=200,Nx=204;function Gd(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var Kd=(()=>{let e=class e{constructor(r){this.handler=r}request(r,i,o={}){let s;if(r instanceof ro)s=r;else{let l;o.headers instanceof $e?l=o.headers:l=new $e(o.headers);let u;o.params&&(o.params instanceof kn?u=o.params:u=new kn({fromObject:o.params})),s=new ro(r,i,o.body!==void 0?o.body:null,{headers:l,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let a=k(s).pipe(Kt(l=>this.handler.handle(l)));if(r instanceof ro||o.observe==="events")return a;let c=a.pipe(ze(l=>l instanceof so));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return c.pipe(j(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return c.pipe(j(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return c.pipe(j(l=>{if(l.body!==null&&typeof l.body!="string")throw new Error("Response is not a string.");return l.body}));case"json":default:return c.pipe(j(l=>l.body))}case"response":return c;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(r,i={}){return this.request("DELETE",r,i)}get(r,i={}){return this.request("GET",r,i)}head(r,i={}){return this.request("HEAD",r,i)}jsonp(r,i){return this.request("JSONP",r,{params:new kn().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(r,i={}){return this.request("OPTIONS",r,i)}patch(r,i,o={}){return this.request("PATCH",r,Gd(o,i))}post(r,i,o={}){return this.request("POST",r,Gd(o,i))}put(r,i,o={}){return this.request("PUT",r,Gd(o,i))}};e.\u0275fac=function(i){return new(i||e)(_(io))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),Px=/^\)\]\}',?\n/,Rx="X-Request-URL";function av(t){if(t.url)return t.url;let e=Rx.toLocaleLowerCase();return t.headers.get(e)}var kx=(()=>{let e=class e{constructor(){this.fetchImpl=b(Yd,{optional:!0})?.fetch??((...r)=>globalThis.fetch(...r)),this.ngZone=b(ne)}handle(r){return new G(i=>{let o=new AbortController;return this.doRequest(r,o.signal,i).then(Qd,s=>i.error(new Rn({error:s}))),()=>o.abort()})}doRequest(r,i,o){return _t(this,null,function*(){let s=this.createRequestInit(r),a;try{let w=this.ngZone.runOutsideAngular(()=>this.fetchImpl(r.urlWithParams,C({signal:i},s)));Fx(w),o.next({type:Fn.Sent}),a=yield w}catch(w){o.error(new Rn({error:w,status:w.status??0,statusText:w.statusText,url:r.urlWithParams,headers:w.headers}));return}let c=new $e(a.headers),l=a.statusText,u=av(a)??r.urlWithParams,d=a.status,f=null;if(r.reportProgress&&o.next(new Za({headers:c,status:d,statusText:l,url:u})),a.body){let w=a.headers.get("content-length"),O=[],x=a.body.getReader(),I=0,K,me,ee=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>_t(this,null,function*(){for(;;){let{done:ye,value:ct}=yield x.read();if(ye)break;if(O.push(ct),I+=ct.length,r.reportProgress){me=r.responseType==="text"?(me??"")+(K??=new TextDecoder).decode(ct,{stream:!0}):void 0;let br=()=>o.next({type:Fn.DownloadProgress,total:w?+w:void 0,loaded:I,partialText:me});ee?ee.run(br):br()}}}));let at=this.concatChunks(O,I);try{let ye=a.headers.get("Content-Type")??"";f=this.parseBody(r,at,ye)}catch(ye){o.error(new Rn({error:ye,headers:new $e(a.headers),status:a.status,statusText:a.statusText,url:av(a)??r.urlWithParams}));return}}d===0&&(d=f?dv:0),d>=200&&d<300?(o.next(new so({body:f,headers:c,status:d,statusText:l,url:u})),o.complete()):o.error(new Rn({error:f,headers:c,status:d,statusText:l,url:u}))})}parseBody(r,i,o){switch(r.responseType){case"json":let s=new TextDecoder().decode(i).replace(Px,"");return s===""?null:JSON.parse(s);case"text":return new TextDecoder().decode(i);case"blob":return new Blob([i],{type:o});case"arraybuffer":return i.buffer}}createRequestInit(r){let i={},o=r.withCredentials?"include":void 0;if(r.headers.forEach((s,a)=>i[s]=a.join(",")),r.headers.has("Accept")||(i.Accept="application/json, text/plain, */*"),!r.headers.has("Content-Type")){let s=r.detectContentTypeHeader();s!==null&&(i["Content-Type"]=s)}return{body:r.serializeBody(),method:r.method,headers:i,credentials:o}}concatChunks(r,i){let o=new Uint8Array(i),s=0;for(let a of r)o.set(a,s),s+=a.length;return o}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),Yd=class{};function Qd(){}function Fx(t){t.then(Qd,Qd)}function fv(t,e){return e(t)}function Lx(t,e){return(n,r)=>e.intercept(n,{handle:i=>t(i,r)})}function Vx(t,e,n){return(r,i)=>ht(n,()=>e(r,o=>t(o,i)))}var jx=new M(""),Jd=new M(""),Bx=new M(""),hv=new M("",{providedIn:"root",factory:()=>!0});function Ux(){let t=null;return(e,n)=>{t===null&&(t=(b(jx,{optional:!0})??[]).reduceRight(Lx,fv));let r=b(on);if(b(hv)){let o=r.add();return t(e,n).pipe(vn(()=>r.remove(o)))}else return t(e,n)}}var cv=(()=>{let e=class e extends io{constructor(r,i){super(),this.backend=r,this.injector=i,this.chain=null,this.pendingTasks=b(on),this.contributeToStability=b(hv)}handle(r){if(this.chain===null){let i=Array.from(new Set([...this.injector.get(Jd),...this.injector.get(Bx,[])]));this.chain=i.reduceRight((o,s)=>Vx(o,s,this.injector),fv)}if(this.contributeToStability){let i=this.pendingTasks.add();return this.chain(r,o=>this.backend.handle(o)).pipe(vn(()=>this.pendingTasks.remove(i)))}else return this.chain(r,i=>this.backend.handle(i))}};e.\u0275fac=function(i){return new(i||e)(_(Wa),_(Be))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();var $x=/^\)\]\}',?\n/;function Hx(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var lv=(()=>{let e=class e{constructor(r){this.xhrFactory=r}handle(r){if(r.method==="JSONP")throw new S(-2800,!1);let i=this.xhrFactory;return(i.\u0275loadImpl?te(i.\u0275loadImpl()):k(null)).pipe(qe(()=>new G(s=>{let a=i.build();if(a.open(r.method,r.urlWithParams),r.withCredentials&&(a.withCredentials=!0),r.headers.forEach((x,I)=>a.setRequestHeader(x,I.join(","))),r.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!r.headers.has("Content-Type")){let x=r.detectContentTypeHeader();x!==null&&a.setRequestHeader("Content-Type",x)}if(r.responseType){let x=r.responseType.toLowerCase();a.responseType=x!=="json"?x:"text"}let c=r.serializeBody(),l=null,u=()=>{if(l!==null)return l;let x=a.statusText||"OK",I=new $e(a.getAllResponseHeaders()),K=Hx(a)||r.url;return l=new Za({headers:I,status:a.status,statusText:x,url:K}),l},d=()=>{let{headers:x,status:I,statusText:K,url:me}=u(),ee=null;I!==Nx&&(ee=typeof a.response>"u"?a.responseText:a.response),I===0&&(I=ee?dv:0);let at=I>=200&&I<300;if(r.responseType==="json"&&typeof ee=="string"){let ye=ee;ee=ee.replace($x,"");try{ee=ee!==""?JSON.parse(ee):null}catch(ct){ee=ye,at&&(at=!1,ee={error:ct,text:ee})}}at?(s.next(new so({body:ee,headers:x,status:I,statusText:K,url:me||void 0})),s.complete()):s.error(new Rn({error:ee,headers:x,status:I,statusText:K,url:me||void 0}))},f=x=>{let{url:I}=u(),K=new Rn({error:x,status:a.status||0,statusText:a.statusText||"Unknown Error",url:I||void 0});s.error(K)},h=!1,w=x=>{h||(s.next(u()),h=!0);let I={type:Fn.DownloadProgress,loaded:x.loaded};x.lengthComputable&&(I.total=x.total),r.responseType==="text"&&a.responseText&&(I.partialText=a.responseText),s.next(I)},O=x=>{let I={type:Fn.UploadProgress,loaded:x.loaded};x.lengthComputable&&(I.total=x.total),s.next(I)};return a.addEventListener("load",d),a.addEventListener("error",f),a.addEventListener("timeout",f),a.addEventListener("abort",f),r.reportProgress&&(a.addEventListener("progress",w),c!==null&&a.upload&&a.upload.addEventListener("progress",O)),a.send(c),s.next({type:Fn.Sent}),()=>{a.removeEventListener("error",f),a.removeEventListener("abort",f),a.removeEventListener("load",d),a.removeEventListener("timeout",f),r.reportProgress&&(a.removeEventListener("progress",w),c!==null&&a.upload&&a.upload.removeEventListener("progress",O)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(i){return new(i||e)(_(ri))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),pv=new M(""),zx="XSRF-TOKEN",qx=new M("",{providedIn:"root",factory:()=>zx}),Gx="X-XSRF-TOKEN",Wx=new M("",{providedIn:"root",factory:()=>Gx}),Ya=class{},Zx=(()=>{let e=class e{constructor(r,i,o){this.doc=r,this.platform=i,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let r=this.doc.cookie||"";return r!==this.lastCookieString&&(this.parseCount++,this.lastToken=qa(r,this.cookieName),this.lastCookieString=r),this.lastToken}};e.\u0275fac=function(i){return new(i||e)(_(Se),_(gt),_(qx))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function Yx(t,e){let n=t.url.toLowerCase();if(!b(pv)||t.method==="GET"||t.method==="HEAD"||n.startsWith("http://")||n.startsWith("https://"))return e(t);let r=b(Ya).getToken(),i=b(Wx);return r!=null&&!t.headers.has(i)&&(t=t.clone({headers:t.headers.set(i,r)})),e(t)}var gv=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(gv||{});function Qx(t,e){return{\u0275kind:t,\u0275providers:e}}function mv(...t){let e=[Kd,lv,cv,{provide:io,useExisting:cv},{provide:Wa,useFactory:()=>b(kx,{optional:!0})??b(lv)},{provide:Jd,useValue:Yx,multi:!0},{provide:pv,useValue:!0},{provide:Ya,useClass:Zx}];for(let n of t)e.push(...n.\u0275providers);return da(e)}var uv=new M("");function yv(){return Qx(gv.LegacyInterceptors,[{provide:uv,useFactory:Ux},{provide:Jd,useExisting:uv,multi:!0}])}var tf=class extends za{constructor(){super(...arguments),this.supportsDOMEvents=!0}},nf=class t extends tf{static makeCurrent(){Ky(new t)}onAndCancel(e,n,r){return e.addEventListener(n,r),()=>{e.removeEventListener(n,r)}}dispatchEvent(e,n){e.dispatchEvent(n)}remove(e){e.remove()}createElement(e,n){return n=n||this.getDefaultDocument(),n.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,n){return n==="window"?window:n==="document"?e:n==="body"?e.body:null}getBaseHref(e){let n=Jx();return n==null?null:Xx(n)}resetBaseElement(){ao=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return qa(document.cookie,e)}},ao=null;function Jx(){return ao=ao||document.querySelector("base"),ao?ao.getAttribute("href"):null}function Xx(t){return new URL(t,document.baseURI).pathname}var rf=class{addToWindow(e){Ke.getAngularTestability=(r,i=!0)=>{let o=e.findTestabilityInTree(r,i);if(o==null)throw new S(5103,!1);return o},Ke.getAllAngularTestabilities=()=>e.getAllTestabilities(),Ke.getAllAngularRootElements=()=>e.getAllRootElements();let n=r=>{let i=Ke.getAllAngularTestabilities(),o=i.length,s=function(){o--,o==0&&r()};i.forEach(a=>{a.whenStable(s)})};Ke.frameworkStabilizers||(Ke.frameworkStabilizers=[]),Ke.frameworkStabilizers.push(n)}findTestabilityInTree(e,n,r){if(n==null)return null;let i=e.getTestability(n);return i??(r?At().isShadowRoot(n)?this.findTestabilityInTree(e,n.host,!0):this.findTestabilityInTree(e,n.parentElement,!0):null)}},eM=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),of=new M(""),bv=(()=>{let e=class e{constructor(r,i){this._zone=i,this._eventNameToPlugin=new Map,r.forEach(o=>{o.manager=this}),this._plugins=r.slice().reverse()}addEventListener(r,i,o){return this._findPluginFor(i).addEventListener(r,i,o)}getZone(){return this._zone}_findPluginFor(r){let i=this._eventNameToPlugin.get(r);if(i)return i;if(i=this._plugins.find(s=>s.supports(r)),!i)throw new S(5101,!1);return this._eventNameToPlugin.set(r,i),i}};e.\u0275fac=function(i){return new(i||e)(_(of),_(ne))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),Qa=class{constructor(e){this._doc=e}},Xd="ng-app-id",Cv=(()=>{let e=class e{constructor(r,i,o,s={}){this.doc=r,this.appId=i,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=hr(s),this.resetHostNodes()}addStyles(r){for(let i of r)this.changeUsageCount(i,1)===1&&this.onStyleAdded(i)}removeStyles(r){for(let i of r)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){let r=this.styleNodesInDOM;r&&(r.forEach(i=>i.remove()),r.clear());for(let i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(r){this.hostNodes.add(r);for(let i of this.getAllStyles())this.addStyleToHost(r,i)}removeHost(r){this.hostNodes.delete(r)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(r){for(let i of this.hostNodes)this.addStyleToHost(i,r)}onStyleRemoved(r){let i=this.styleRef;i.get(r)?.elements?.forEach(o=>o.remove()),i.delete(r)}collectServerRenderedStyles(){let r=this.doc.head?.querySelectorAll(`style[${Xd}="${this.appId}"]`);if(r?.length){let i=new Map;return r.forEach(o=>{o.textContent!=null&&i.set(o.textContent,o)}),i}return null}changeUsageCount(r,i){let o=this.styleRef;if(o.has(r)){let s=o.get(r);return s.usage+=i,s.usage}return o.set(r,{usage:i,elements:[]}),i}getStyleElement(r,i){let o=this.styleNodesInDOM,s=o?.get(i);if(s?.parentNode===r)return o.delete(i),s.removeAttribute(Xd),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=i,this.platformIsServer&&a.setAttribute(Xd,this.appId),r.appendChild(a),a}}addStyleToHost(r,i){let o=this.getStyleElement(r,i),s=this.styleRef,a=s.get(i)?.elements;a?a.push(o):s.set(i,{elements:[o],usage:1})}resetHostNodes(){let r=this.hostNodes;r.clear(),r.add(this.doc.head)}};e.\u0275fac=function(i){return new(i||e)(_(Se),_(Ea),_(ad,8),_(gt))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),ef={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/Math/MathML"},af=/%COMP%/g,Dv="%COMP%",tM=`_nghost-${Dv}`,nM=`_ngcontent-${Dv}`,rM=!0,iM=new M("",{providedIn:"root",factory:()=>rM});function oM(t){return nM.replace(af,t)}function sM(t){return tM.replace(af,t)}function Ev(t,e){return e.map(n=>n.replace(af,t))}var vv=(()=>{let e=class e{constructor(r,i,o,s,a,c,l,u=null){this.eventManager=r,this.sharedStylesHost=i,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=c,this.ngZone=l,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=hr(c),this.defaultRenderer=new co(r,a,l,this.platformIsServer)}createRenderer(r,i){if(!r||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===Vt.ShadowDom&&(i=z(C({},i),{encapsulation:Vt.Emulated}));let o=this.getOrCreateRenderer(r,i);return o instanceof Ka?o.applyToHost(r):o instanceof lo&&o.applyStyles(),o}getOrCreateRenderer(r,i){let o=this.rendererByCompId,s=o.get(i.id);if(!s){let a=this.doc,c=this.ngZone,l=this.eventManager,u=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,f=this.platformIsServer;switch(i.encapsulation){case Vt.Emulated:s=new Ka(l,u,i,this.appId,d,a,c,f);break;case Vt.ShadowDom:return new sf(l,u,r,i,a,c,this.nonce,f);default:s=new lo(l,u,i,d,a,c,f);break}o.set(i.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(i){return new(i||e)(_(bv),_(Cv),_(Ea),_(iM),_(Se),_(gt),_(ne),_(ad))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),co=class{constructor(e,n,r,i){this.eventManager=e,this.doc=n,this.ngZone=r,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,n){return n?this.doc.createElementNS(ef[n]||n,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,n){(_v(e)?e.content:e).appendChild(n)}insertBefore(e,n,r){e&&(_v(e)?e.content:e).insertBefore(n,r)}removeChild(e,n){n.remove()}selectRootElement(e,n){let r=typeof e=="string"?this.doc.querySelector(e):e;if(!r)throw new S(-5104,!1);return n||(r.textContent=""),r}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,n,r,i){if(i){n=i+":"+n;let o=ef[i];o?e.setAttributeNS(o,n,r):e.setAttribute(n,r)}else e.setAttribute(n,r)}removeAttribute(e,n,r){if(r){let i=ef[r];i?e.removeAttributeNS(i,n):e.removeAttribute(`${r}:${n}`)}else e.removeAttribute(n)}addClass(e,n){e.classList.add(n)}removeClass(e,n){e.classList.remove(n)}setStyle(e,n,r,i){i&(Ut.DashCase|Ut.Important)?e.style.setProperty(n,r,i&Ut.Important?"important":""):e.style[n]=r}removeStyle(e,n,r){r&Ut.DashCase?e.style.removeProperty(n):e.style[n]=""}setProperty(e,n,r){e!=null&&(e[n]=r)}setValue(e,n){e.nodeValue=n}listen(e,n,r){if(typeof e=="string"&&(e=At().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${n}`);return this.eventManager.addEventListener(e,n,this.decoratePreventDefault(r))}decoratePreventDefault(e){return n=>{if(n==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(n)):e(n))===!1&&n.preventDefault()}}};function _v(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var sf=class extends co{constructor(e,n,r,i,o,s,a,c){super(e,o,s,c),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let l=Ev(i.id,i.styles);for(let u of l){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=u,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,n){return super.appendChild(this.nodeOrShadowRoot(e),n)}insertBefore(e,n,r){return super.insertBefore(this.nodeOrShadowRoot(e),n,r)}removeChild(e,n){return super.removeChild(null,n)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},lo=class extends co{constructor(e,n,r,i,o,s,a,c){super(e,o,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=i,this.styles=c?Ev(c,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Ka=class extends lo{constructor(e,n,r,i,o,s,a,c){let l=i+"-"+r.id;super(e,n,r,o,s,a,c,l),this.contentAttr=oM(l),this.hostAttr=sM(l)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,n){let r=super.createElement(e,n);return super.setAttribute(r,this.contentAttr,""),r}},aM=(()=>{let e=class e extends Qa{constructor(r){super(r)}supports(r){return!0}addEventListener(r,i,o){return r.addEventListener(i,o,!1),()=>this.removeEventListener(r,i,o)}removeEventListener(r,i,o){return r.removeEventListener(i,o)}};e.\u0275fac=function(i){return new(i||e)(_(Se))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),wv=["alt","control","meta","shift"],cM={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},lM={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},uM=(()=>{let e=class e extends Qa{constructor(r){super(r)}supports(r){return e.parseEventName(r)!=null}addEventListener(r,i,o){let s=e.parseEventName(i),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>At().onAndCancel(r,s.domEventName,a))}static parseEventName(r){let i=r.toLowerCase().split("."),o=i.shift();if(i.length===0||!(o==="keydown"||o==="keyup"))return null;let s=e._normalizeKey(i.pop()),a="",c=i.indexOf("code");if(c>-1&&(i.splice(c,1),a="code."),wv.forEach(u=>{let d=i.indexOf(u);d>-1&&(i.splice(d,1),a+=u+".")}),a+=s,i.length!=0||s.length===0)return null;let l={};return l.domEventName=o,l.fullKey=a,l}static matchEventFullKeyCode(r,i){let o=cM[r.key]||r.key,s="";return i.indexOf("code.")>-1&&(o=r.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),wv.forEach(a=>{if(a!==o){let c=lM[a];c(r)&&(s+=a+".")}}),s+=o,s===i)}static eventCallback(r,i,o){return s=>{e.matchEventFullKeyCode(s,r)&&o.runGuarded(()=>i(s))}}static _normalizeKey(r){return r==="esc"?"escape":r}};e.\u0275fac=function(i){return new(i||e)(_(Se))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function dM(){nf.makeCurrent()}function fM(){return new en}function hM(){return am(document),document}var pM=[{provide:gt,useValue:qd},{provide:sd,useValue:dM,multi:!0},{provide:Se,useFactory:hM,deps:[]}],T2=Nd($y,"browser",pM),gM=new M(""),mM=[{provide:no,useClass:rf,deps:[]},{provide:Sd,useClass:Va,deps:[ne,ja,no]},{provide:Va,useClass:Va,deps:[ne,ja,no]}],yM=[{provide:fa,useValue:"root"},{provide:en,useFactory:fM,deps:[]},{provide:of,useClass:aM,multi:!0,deps:[Se,ne,gt]},{provide:of,useClass:uM,multi:!0,deps:[Se]},vv,Cv,bv,{provide:Wr,useExisting:vv},{provide:ri,useClass:eM,deps:[]},[]],A2=(()=>{let e=class e{constructor(r){}static withServerTransition(r){return{ngModule:e,providers:[{provide:Ea,useValue:r.appId}]}}};e.\u0275fac=function(i){return new(i||e)(_(gM,12))},e.\u0275mod=ce({type:e}),e.\u0275inj=ae({providers:[...yM,...mM],imports:[Fe,Hy]});let t=e;return t})(),Iv=(()=>{let e=class e{constructor(r){this._doc=r,this._dom=At()}addTag(r,i=!1){return r?this._getOrCreateElement(r,i):null}addTags(r,i=!1){return r?r.reduce((o,s)=>(s&&o.push(this._getOrCreateElement(s,i)),o),[]):[]}getTag(r){return r&&this._doc.querySelector(`meta[${r}]`)||null}getTags(r){if(!r)return[];let i=this._doc.querySelectorAll(`meta[${r}]`);return i?[].slice.call(i):[]}updateTag(r,i){if(!r)return null;i=i||this._parseSelector(r);let o=this.getTag(i);return o?this._setMetaElementAttributes(r,o):this._getOrCreateElement(r,!0)}removeTag(r){this.removeTagElement(this.getTag(r))}removeTagElement(r){r&&this._dom.remove(r)}_getOrCreateElement(r,i=!1){if(!i){let a=this._parseSelector(r),c=this.getTags(a).filter(l=>this._containsAttributes(r,l))[0];if(c!==void 0)return c}let o=this._dom.createElement("meta");return this._setMetaElementAttributes(r,o),this._doc.getElementsByTagName("head")[0].appendChild(o),o}_setMetaElementAttributes(r,i){return Object.keys(r).forEach(o=>i.setAttribute(this._getMetaKeyMap(o),r[o])),i}_parseSelector(r){let i=r.name?"name":"property";return`${i}="${r[i]}"`}_containsAttributes(r,i){return Object.keys(r).every(o=>i.getAttribute(this._getMetaKeyMap(o))===r[o])}_getMetaKeyMap(r){return vM[r]||r}};e.\u0275fac=function(i){return new(i||e)(_(Se))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),vM={httpEquiv:"http-equiv"},Ja=(()=>{let e=class e{constructor(r){this._doc=r}getTitle(){return this._doc.title}setTitle(r){this._doc.title=r||""}};e.\u0275fac=function(i){return new(i||e)(_(Se))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var O2=new M("HammerLoader");var xv=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:function(i){let o=null;return i?o=new(i||e):o=_(_M),o},providedIn:"root"});let t=e;return t})(),_M=(()=>{let e=class e extends xv{constructor(r){super(),this._doc=r}sanitize(r,i){if(i==null)return null;switch(r){case Ht.NONE:return i;case Ht.HTML:return Tn(i,"HTML")?Mt(i):_m(this._doc,String(i)).toString();case Ht.STYLE:return Tn(i,"Style")?Mt(i):i;case Ht.SCRIPT:if(Tn(i,"Script"))return Mt(i);throw new S(5200,!1);case Ht.URL:return Tn(i,"URL")?Mt(i):xa(String(i));case Ht.RESOURCE_URL:if(Tn(i,"ResourceURL"))return Mt(i);throw new S(5201,!1);default:throw new S(5202,!1)}}bypassSecurityTrustHtml(r){return lm(r)}bypassSecurityTrustStyle(r){return um(r)}bypassSecurityTrustScript(r){return dm(r)}bypassSecurityTrustUrl(r){return fm(r)}bypassSecurityTrustResourceUrl(r){return hm(r)}};e.\u0275fac=function(i){return new(i||e)(_(Se))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var $="primary",Eo=Symbol("RouteTitle"),ff=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let n=this.params[e];return Array.isArray(n)?n[0]:n}return null}getAll(e){if(this.has(e)){let n=this.params[e];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}};function di(t){return new ff(t)}function wM(t,e,n){let r=n.path.split("/");if(r.length>t.length||n.pathMatch==="full"&&(e.hasChildren()||r.lengthr[o]===i)}else return t===e}function jv(t){return t.length>0?t[t.length-1]:null}function Vn(t){return dl(t)?t:dr(t)?te(Promise.resolve(t)):k(t)}var CM={exact:Uv,subset:$v},Bv={exact:DM,subset:EM,ignored:()=>!0};function Sv(t,e,n){return CM[n.paths](t.root,e.root,n.matrixParams)&&Bv[n.queryParams](t.queryParams,e.queryParams)&&!(n.fragment==="exact"&&t.fragment!==e.fragment)}function DM(t,e){return qt(t,e)}function Uv(t,e,n){if(!gr(t.segments,e.segments)||!tc(t.segments,e.segments,n)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let r in e.children)if(!t.children[r]||!Uv(t.children[r],e.children[r],n))return!1;return!0}function EM(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>Vv(t[n],e[n]))}function $v(t,e,n){return Hv(t,e,e.segments,n)}function Hv(t,e,n,r){if(t.segments.length>n.length){let i=t.segments.slice(0,n.length);return!(!gr(i,n)||e.hasChildren()||!tc(i,n,r))}else if(t.segments.length===n.length){if(!gr(t.segments,n)||!tc(t.segments,n,r))return!1;for(let i in e.children)if(!t.children[i]||!$v(t.children[i],e.children[i],r))return!1;return!0}else{let i=n.slice(0,t.segments.length),o=n.slice(t.segments.length);return!gr(t.segments,i)||!tc(t.segments,i,r)||!t.children[$]?!1:Hv(t.children[$],e,o,r)}}function tc(t,e,n){return e.every((r,i)=>Bv[n](t[i].parameters,r.parameters))}var hn=class{constructor(e=new X([],{}),n={},r=null){this.root=e,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap??=di(this.queryParams),this._queryParamMap}toString(){return MM.serialize(this)}},X=class{constructor(e,n){this.segments=e,this.children=n,this.parent=null,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return nc(this)}},pr=class{constructor(e,n){this.path=e,this.parameters=n}get parameterMap(){return this._parameterMap??=di(this.parameters),this._parameterMap}toString(){return qv(this)}};function IM(t,e){return gr(t,e)&&t.every((n,r)=>qt(n.parameters,e[r].parameters))}function gr(t,e){return t.length!==e.length?!1:t.every((n,r)=>n.path===e[r].path)}function xM(t,e){let n=[];return Object.entries(t.children).forEach(([r,i])=>{r===$&&(n=n.concat(e(i,r)))}),Object.entries(t.children).forEach(([r,i])=>{r!==$&&(n=n.concat(e(i,r)))}),n}var Io=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>new fi,providedIn:"root"});let t=e;return t})(),fi=class{parse(e){let n=new gf(e);return new hn(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(e){let n=`/${uo(e.root,!0)}`,r=AM(e.queryParams),i=typeof e.fragment=="string"?`#${SM(e.fragment)}`:"";return`${n}${r}${i}`}},MM=new fi;function nc(t){return t.segments.map(e=>qv(e)).join("/")}function uo(t,e){if(!t.hasChildren())return nc(t);if(e){let n=t.children[$]?uo(t.children[$],!1):"",r=[];return Object.entries(t.children).forEach(([i,o])=>{i!==$&&r.push(`${i}:${uo(o,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}else{let n=xM(t,(r,i)=>i===$?[uo(t.children[$],!1)]:[`${i}:${uo(r,!1)}`]);return Object.keys(t.children).length===1&&t.children[$]!=null?`${nc(t)}/${n[0]}`:`${nc(t)}/(${n.join("//")})`}}function zv(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Xa(t){return zv(t).replace(/%3B/gi,";")}function SM(t){return encodeURI(t)}function pf(t){return zv(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function rc(t){return decodeURIComponent(t)}function Tv(t){return rc(t.replace(/\+/g,"%20"))}function qv(t){return`${pf(t.path)}${TM(t.parameters)}`}function TM(t){return Object.entries(t).map(([e,n])=>`;${pf(e)}=${pf(n)}`).join("")}function AM(t){let e=Object.entries(t).map(([n,r])=>Array.isArray(r)?r.map(i=>`${Xa(n)}=${Xa(i)}`).join("&"):`${Xa(n)}=${Xa(r)}`).filter(n=>n);return e.length?`?${e.join("&")}`:""}var OM=/^[^\/()?;#]+/;function cf(t){let e=t.match(OM);return e?e[0]:""}var NM=/^[^\/()?;=#]+/;function PM(t){let e=t.match(NM);return e?e[0]:""}var RM=/^[^=?&#]+/;function kM(t){let e=t.match(RM);return e?e[0]:""}var FM=/^[^&#]+/;function LM(t){let e=t.match(FM);return e?e[0]:""}var gf=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new X([],{}):new X([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(e.length>0||Object.keys(n).length>0)&&(r[$]=new X(e,n)),r}parseSegment(){let e=cf(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new S(4009,!1);return this.capture(e),new pr(rc(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let n=PM(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let i=cf(this.remaining);i&&(r=i,this.capture(r))}e[rc(n)]=rc(r)}parseQueryParam(e){let n=kM(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=LM(this.remaining);s&&(r=s,this.capture(r))}let i=Tv(n),o=Tv(r);if(e.hasOwnProperty(i)){let s=e[i];Array.isArray(s)||(s=[s],e[i]=s),s.push(o)}else e[i]=o}parseParens(e){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=cf(this.remaining),i=this.remaining[r.length];if(i!=="/"&&i!==")"&&i!==";")throw new S(4010,!1);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):e&&(o=$);let s=this.parseChildren();n[o]=Object.keys(s).length===1?s[$]:new X([],s),this.consumeOptional("//")}return n}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new S(4011,!1)}};function Gv(t){return t.segments.length>0?new X([],{[$]:t}):t}function Wv(t){let e={};for(let[r,i]of Object.entries(t.children)){let o=Wv(i);if(r===$&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))e[s]=a;else(o.segments.length>0||o.hasChildren())&&(e[r]=o)}let n=new X(t.segments,e);return VM(n)}function VM(t){if(t.numberOfChildren===1&&t.children[$]){let e=t.children[$];return new X(t.segments.concat(e.segments),e.children)}return t}function mr(t){return t instanceof hn}function jM(t,e,n=null,r=null){let i=Zv(t);return Yv(i,e,n,r)}function Zv(t){let e;function n(o){let s={};for(let c of o.children){let l=n(c);s[c.outlet]=l}let a=new X(o.url,s);return o===t&&(e=a),a}let r=n(t.root),i=Gv(r);return e??i}function Yv(t,e,n,r){let i=t;for(;i.parent;)i=i.parent;if(e.length===0)return lf(i,i,i,n,r);let o=BM(e);if(o.toRoot())return lf(i,i,new X([],{}),n,r);let s=UM(o,i,t),a=s.processChildren?po(s.segmentGroup,s.index,o.commands):Kv(s.segmentGroup,s.index,o.commands);return lf(i,s.segmentGroup,a,n,r)}function ic(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function yo(t){return typeof t=="object"&&t!=null&&t.outlets}function lf(t,e,n,r,i){let o={};r&&Object.entries(r).forEach(([c,l])=>{o[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`});let s;t===e?s=n:s=Qv(t,e,n);let a=Gv(Wv(s));return new hn(a,o,i)}function Qv(t,e,n){let r={};return Object.entries(t.children).forEach(([i,o])=>{o===e?r[i]=n:r[i]=Qv(o,e,n)}),new X(t.segments,r)}var oc=class{constructor(e,n,r){if(this.isAbsolute=e,this.numberOfDoubleDots=n,this.commands=r,e&&r.length>0&&ic(r[0]))throw new S(4003,!1);let i=r.find(yo);if(i&&i!==jv(r))throw new S(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function BM(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new oc(!0,0,t);let e=0,n=!1,r=t.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([c,l])=>{a[c]=typeof l=="string"?l.split("/"):l}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?n=!0:a===".."?e++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new oc(n,e,r)}var ci=class{constructor(e,n,r){this.segmentGroup=e,this.processChildren=n,this.index=r}};function UM(t,e,n){if(t.isAbsolute)return new ci(e,!0,0);if(!n)return new ci(e,!1,NaN);if(n.parent===null)return new ci(n,!0,0);let r=ic(t.commands[0])?0:1,i=n.segments.length-1+r;return $M(n,i,t.numberOfDoubleDots)}function $M(t,e,n){let r=t,i=e,o=n;for(;o>i;){if(o-=i,r=r.parent,!r)throw new S(4005,!1);i=r.segments.length}return new ci(r,!1,i-o)}function HM(t){return yo(t[0])?t[0].outlets:{[$]:t}}function Kv(t,e,n){if(t??=new X([],{}),t.segments.length===0&&t.hasChildren())return po(t,e,n);let r=zM(t,e,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndexo!==$)&&t.children[$]&&t.numberOfChildren===1&&t.children[$].segments.length===0){let o=po(t.children[$],e,n);return new X(t.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=Kv(t.children[o],e,s))}),Object.entries(t.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new X(t.segments,i)}}function zM(t,e,n){let r=0,i=e,o={match:!1,pathIndex:0,commandIndex:0};for(;i=n.length)return o;let s=t.segments[i],a=n[r];if(yo(a))break;let c=`${a}`,l=r0&&c===void 0)break;if(c&&l&&typeof l=="object"&&l.outlets===void 0){if(!Ov(c,l,s))return o;r+=2}else{if(!Ov(c,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function mf(t,e,n){let r=t.segments.slice(0,e),i=0;for(;i{typeof r=="string"&&(r=[r]),r!==null&&(e[n]=mf(new X([],{}),0,r))}),e}function Av(t){let e={};return Object.entries(t).forEach(([n,r])=>e[n]=`${r}`),e}function Ov(t,e,n){return t==n.path&&qt(e,n.parameters)}var go="imperative",Te=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(Te||{}),vt=class{constructor(e,n){this.id=e,this.url=n}},hi=class extends vt{constructor(e,n,r="imperative",i=null){super(e,n),this.type=Te.NavigationStart,this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Nt=class extends vt{constructor(e,n,r){super(e,n),this.urlAfterRedirects=r,this.type=Te.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},it=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(it||{}),sc=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(sc||{}),fn=class extends vt{constructor(e,n,r,i){super(e,n),this.reason=r,this.code=i,this.type=Te.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Ln=class extends vt{constructor(e,n,r,i){super(e,n),this.reason=r,this.code=i,this.type=Te.NavigationSkipped}},vo=class extends vt{constructor(e,n,r,i){super(e,n),this.error=r,this.target=i,this.type=Te.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},ac=class extends vt{constructor(e,n,r,i){super(e,n),this.urlAfterRedirects=r,this.state=i,this.type=Te.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},yf=class extends vt{constructor(e,n,r,i){super(e,n),this.urlAfterRedirects=r,this.state=i,this.type=Te.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},vf=class extends vt{constructor(e,n,r,i,o){super(e,n),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o,this.type=Te.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},_f=class extends vt{constructor(e,n,r,i){super(e,n),this.urlAfterRedirects=r,this.state=i,this.type=Te.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},wf=class extends vt{constructor(e,n,r,i){super(e,n),this.urlAfterRedirects=r,this.state=i,this.type=Te.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},bf=class{constructor(e){this.route=e,this.type=Te.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Cf=class{constructor(e){this.route=e,this.type=Te.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Df=class{constructor(e){this.snapshot=e,this.type=Te.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ef=class{constructor(e){this.snapshot=e,this.type=Te.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},If=class{constructor(e){this.snapshot=e,this.type=Te.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},xf=class{constructor(e){this.snapshot=e,this.type=Te.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},cc=class{constructor(e,n,r){this.routerEvent=e,this.position=n,this.anchor=r,this.type=Te.Scroll}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},_o=class{},pi=class{constructor(e,n){this.url=e,this.navigationBehaviorOptions=n}};function GM(t,e){return t.providers&&!t._injector&&(t._injector=Ra(t.providers,e,`Route: ${t.path}`)),t._injector??e}function Ot(t){return t.outlet||$}function WM(t,e){let n=t.filter(r=>Ot(r)===e);return n.push(...t.filter(r=>Ot(r)!==e)),n}function xo(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let n=e.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}var Mf=class{get injector(){return xo(this.route?.snapshot)??this.rootInjector}set injector(e){}constructor(e){this.rootInjector=e,this.outlet=null,this.route=null,this.children=new Mo(this.rootInjector),this.attachRef=null}},Mo=(()=>{let e=class e{constructor(r){this.rootInjector=r,this.contexts=new Map}onChildOutletCreated(r,i){let o=this.getOrCreateContext(r);o.outlet=i,this.contexts.set(r,o)}onChildOutletDestroyed(r){let i=this.getContext(r);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let r=this.contexts;return this.contexts=new Map,r}onOutletReAttached(r){this.contexts=r}getOrCreateContext(r){let i=this.getContext(r);return i||(i=new Mf(this.rootInjector),this.contexts.set(r,i)),i}getContext(r){return this.contexts.get(r)||null}};e.\u0275fac=function(i){return new(i||e)(_(Be))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),lc=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let n=this.pathFromRoot(e);return n.length>1?n[n.length-2]:null}children(e){let n=Sf(e,this._root);return n?n.children.map(r=>r.value):[]}firstChild(e){let n=Sf(e,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(e){let n=Tf(e,this._root);return n.length<2?[]:n[n.length-2].children.map(i=>i.value).filter(i=>i!==e)}pathFromRoot(e){return Tf(e,this._root).map(n=>n.value)}};function Sf(t,e){if(t===e.value)return e;for(let n of e.children){let r=Sf(t,n);if(r)return r}return null}function Tf(t,e){if(t===e.value)return[e];for(let n of e.children){let r=Tf(t,n);if(r.length)return r.unshift(e),r}return[]}var rt=class{constructor(e,n){this.value=e,this.children=n}toString(){return`TreeNode(${this.value})`}};function ai(t){let e={};return t&&t.children.forEach(n=>e[n.value.outlet]=n),e}var uc=class extends lc{constructor(e,n){super(e),this.snapshot=n,Vf(this,e)}toString(){return this.snapshot.toString()}};function Jv(t){let e=ZM(t),n=new Ae([new pr("",{})]),r=new Ae({}),i=new Ae({}),o=new Ae({}),s=new Ae(""),a=new yr(n,r,o,s,i,$,t,e.root);return a.snapshot=e.root,new uc(new rt(a,[]),e)}function ZM(t){let e={},n={},r={},i="",o=new li([],e,r,i,n,$,t,null,{});return new fc("",new rt(o,[]))}var yr=class{constructor(e,n,r,i,o,s,a,c){this.urlSubject=e,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(j(l=>l[Eo]))??k(void 0),this.url=e,this.params=n,this.queryParams=r,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(j(e=>di(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(j(e=>di(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function dc(t,e,n="emptyOnly"){let r,{routeConfig:i}=t;return e!==null&&(n==="always"||i?.path===""||!e.component&&!e.routeConfig?.loadComponent)?r={params:C(C({},e.params),t.params),data:C(C({},e.data),t.data),resolve:C(C(C(C({},t.data),e.data),i?.data),t._resolvedData)}:r={params:C({},t.params),data:C({},t.data),resolve:C(C({},t.data),t._resolvedData??{})},i&&e_(i)&&(r.resolve[Eo]=i.title),r}var li=class{get title(){return this.data?.[Eo]}constructor(e,n,r,i,o,s,a,c,l){this.url=e,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=l}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=di(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=di(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(r=>r.toString()).join("/"),n=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${n}')`}},fc=class extends lc{constructor(e,n){super(n),this.url=e,Vf(this,n)}toString(){return Xv(this._root)}};function Vf(t,e){e.value._routerState=t,e.children.forEach(n=>Vf(t,n))}function Xv(t){let e=t.children.length>0?` { ${t.children.map(Xv).join(", ")} } `:"";return`${t.value}${e}`}function uf(t){if(t.snapshot){let e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,qt(e.queryParams,n.queryParams)||t.queryParamsSubject.next(n.queryParams),e.fragment!==n.fragment&&t.fragmentSubject.next(n.fragment),qt(e.params,n.params)||t.paramsSubject.next(n.params),bM(e.url,n.url)||t.urlSubject.next(n.url),qt(e.data,n.data)||t.dataSubject.next(n.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function Af(t,e){let n=qt(t.params,e.params)&&IM(t.url,e.url),r=!t.parent!=!e.parent;return n&&!r&&(!t.parent||Af(t.parent,e.parent))}function e_(t){return typeof t.title=="string"||t.title===null}var YM=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=$,this.activateEvents=new H,this.deactivateEvents=new H,this.attachEvents=new H,this.detachEvents=new H,this.parentContexts=b(Mo),this.location=b(an),this.changeDetector=b(Nn),this.inputBinder=b(vc,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(r){if(r.name){let{firstChange:i,previousValue:o}=r.name;if(i)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(r){return this.parentContexts.getContext(r)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let r=this.parentContexts.getContext(this.name);r?.route&&(r.attachRef?this.attach(r.attachRef,r.route):this.activateWith(r.route,r.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new S(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new S(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new S(4012,!1);this.location.detach();let r=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(r.instance),r}attach(r,i){this.activated=r,this._activatedRoute=i,this.location.insert(r.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(r.instance)}deactivate(){if(this.activated){let r=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(r)}}activateWith(r,i){if(this.isActivated)throw new S(4013,!1);this._activatedRoute=r;let o=this.location,a=r.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,l=new Of(r,c,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:l,environmentInjector:i}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=ie({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Je]});let t=e;return t})(),Of=class t{__ngOutletInjector(e){return new t(this.route,this.childContexts,e)}constructor(e,n,r){this.route=e,this.childContexts=n,this.parent=r}get(e,n){return e===yr?this.route:e===Mo?this.childContexts:this.parent.get(e,n)}},vc=new M(""),Nv=(()=>{let e=class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(r){this.unsubscribeFromRouteData(r),this.subscribeToRouteData(r)}unsubscribeFromRouteData(r){this.outletDataSubscriptions.get(r)?.unsubscribe(),this.outletDataSubscriptions.delete(r)}subscribeToRouteData(r){let{activatedRoute:i}=r,o=ki([i.queryParams,i.params,i.data]).pipe(qe(([s,a,c],l)=>(c=C(C(C({},s),a),c),l===0?k(c):Promise.resolve(c)))).subscribe(s=>{if(!r.isActivated||!r.activatedComponentRef||r.activatedRoute!==i||i.component===null){this.unsubscribeFromRouteData(r);return}let a=zy(i.component);if(!a){this.unsubscribeFromRouteData(r);return}for(let{templateName:c}of a.inputs)r.activatedComponentRef.setInput(c,s[c])});this.outletDataSubscriptions.set(r,o)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function QM(t,e,n){let r=wo(t,e._root,n?n._root:void 0);return new uc(r,e)}function wo(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){let r=n.value;r._futureSnapshot=e.value;let i=KM(t,e,n);return new rt(r,i)}else{if(t.shouldAttach(e.value)){let o=t.retrieve(e.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(a=>wo(t,a)),s}}let r=JM(e.value),i=e.children.map(o=>wo(t,o));return new rt(r,i)}}function KM(t,e,n){return e.children.map(r=>{for(let i of n.children)if(t.shouldReuseRoute(r.value,i.value.snapshot))return wo(t,r,i);return wo(t,r)})}function JM(t){return new yr(new Ae(t.url),new Ae(t.params),new Ae(t.queryParams),new Ae(t.fragment),new Ae(t.data),t.outlet,t.component,t)}var bo=class{constructor(e,n){this.redirectTo=e,this.navigationBehaviorOptions=n}},t_="ngNavigationCancelingError";function hc(t,e){let{redirectTo:n,navigationBehaviorOptions:r}=mr(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,i=n_(!1,it.Redirect);return i.url=n,i.navigationBehaviorOptions=r,i}function n_(t,e){let n=new Error(`NavigationCancelingError: ${t||""}`);return n[t_]=!0,n.cancellationCode=e,n}function XM(t){return r_(t)&&mr(t.url)}function r_(t){return!!t&&t[t_]}var eS=(t,e,n,r)=>j(i=>(new Nf(e,i.targetRouterState,i.currentRouterState,n,r).activate(t),i)),Nf=class{constructor(e,n,r,i,o){this.routeReuseStrategy=e,this.futureState=n,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(e){let n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,e),uf(this.futureState.root),this.activateChildRoutes(n,r,e)}deactivateChildRoutes(e,n,r){let i=ai(n);e.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(e,n,r){let i=e.value,o=n?n.value:null;if(i===o)if(i.component){let s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(e,n,s.children)}else this.deactivateChildRoutes(e,n,r);else o&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(e,n){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,n):this.deactivateRouteAndOutlet(e,n)}detachAndStoreRouteSubtree(e,n){let r=n.getContext(e.value.outlet),i=r&&e.value.component?r.children:n,o=ai(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:a})}}deactivateRouteAndOutlet(e,n){let r=n.getContext(e.value.outlet),i=r&&e.value.component?r.children:n,o=ai(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(e,n,r){let i=ai(n);e.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new xf(o.value.snapshot))}),e.children.length&&this.forwardEvent(new Ef(e.value.snapshot))}activateRoutes(e,n,r){let i=e.value,o=n?n.value:null;if(uf(i),i===o)if(i.component){let s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(e,n,s.children)}else this.activateChildRoutes(e,n,r);else if(i.component){let s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),uf(a.route.value),this.activateChildRoutes(e,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(e,null,s.children)}else this.activateChildRoutes(e,null,r)}},pc=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},ui=class{constructor(e,n){this.component=e,this.route=n}};function tS(t,e,n){let r=t._root,i=e?e._root:null;return fo(r,i,n,[r.value])}function nS(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function mi(t,e){let n=Symbol(),r=e.get(t,n);return r===n?typeof t=="function"&&!Gp(t)?t:e.get(t):r}function fo(t,e,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=ai(e);return t.children.forEach(s=>{rS(s,o[s.value.outlet],n,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>mo(a,n.getContext(s),i)),i}function rS(t,e,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let c=iS(s,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new pc(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?fo(t,e,a?a.children:null,r,i):fo(t,e,n,r,i),c&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new ui(a.outlet.component,s))}else s&&mo(e,a,i),i.canActivateChecks.push(new pc(r)),o.component?fo(t,null,a?a.children:null,r,i):fo(t,null,n,r,i);return i}function iS(t,e,n){if(typeof n=="function")return n(t,e);switch(n){case"pathParamsChange":return!gr(t.url,e.url);case"pathParamsOrQueryParamsChange":return!gr(t.url,e.url)||!qt(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Af(t,e)||!qt(t.queryParams,e.queryParams);case"paramsChange":default:return!Af(t,e)}}function mo(t,e,n){let r=ai(t),i=t.value;Object.entries(r).forEach(([o,s])=>{i.component?e?mo(s,e.children.getContext(o),n):mo(s,null,n):mo(s,e,n)}),i.component?e&&e.outlet&&e.outlet.isActivated?n.canDeactivateChecks.push(new ui(e.outlet.component,i)):n.canDeactivateChecks.push(new ui(null,i)):n.canDeactivateChecks.push(new ui(null,i))}function So(t){return typeof t=="function"}function oS(t){return typeof t=="boolean"}function sS(t){return t&&So(t.canLoad)}function aS(t){return t&&So(t.canActivate)}function cS(t){return t&&So(t.canActivateChild)}function lS(t){return t&&So(t.canDeactivate)}function uS(t){return t&&So(t.canMatch)}function i_(t){return t instanceof Qt||t?.name==="EmptyError"}var ec=Symbol("INITIAL_VALUE");function gi(){return qe(t=>ki(t.map(e=>e.pipe(Jt(1),vl(ec)))).pipe(j(e=>{for(let n of e)if(n!==!0){if(n===ec)return ec;if(n===!1||dS(n))return n}return!0}),ze(e=>e!==ec),Jt(1)))}function dS(t){return mr(t)||t instanceof bo}function fS(t,e){return pe(n=>{let{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=n;return s.length===0&&o.length===0?k(z(C({},n),{guardsResult:!0})):hS(s,r,i,t).pipe(pe(a=>a&&oS(a)?pS(r,o,t,e):k(a)),j(a=>z(C({},n),{guardsResult:a})))})}function hS(t,e,n,r){return te(t).pipe(pe(i=>_S(i.component,i.route,n,e,r)),lt(i=>i!==!0,!0))}function pS(t,e,n,r){return te(e).pipe(Kt(i=>Or(mS(i.route.parent,r),gS(i.route,r),vS(t,i.path,n),yS(t,i.route,n))),lt(i=>i!==!0,!0))}function gS(t,e){return t!==null&&e&&e(new If(t)),k(!0)}function mS(t,e){return t!==null&&e&&e(new Df(t)),k(!0)}function yS(t,e,n){let r=e.routeConfig?e.routeConfig.canActivate:null;if(!r||r.length===0)return k(!0);let i=r.map(o=>vs(()=>{let s=xo(e)??n,a=mi(o,s),c=aS(a)?a.canActivate(e,t):ht(s,()=>a(e,t));return Vn(c).pipe(lt())}));return k(i).pipe(gi())}function vS(t,e,n){let r=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(s=>nS(s)).filter(s=>s!==null).map(s=>vs(()=>{let a=s.guards.map(c=>{let l=xo(s.node)??n,u=mi(c,l),d=cS(u)?u.canActivateChild(r,t):ht(l,()=>u(r,t));return Vn(d).pipe(lt())});return k(a).pipe(gi())}));return k(o).pipe(gi())}function _S(t,e,n,r,i){let o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||o.length===0)return k(!0);let s=o.map(a=>{let c=xo(e)??i,l=mi(a,c),u=lS(l)?l.canDeactivate(t,e,n,r):ht(c,()=>l(t,e,n,r));return Vn(u).pipe(lt())});return k(s).pipe(gi())}function wS(t,e,n,r){let i=e.canLoad;if(i===void 0||i.length===0)return k(!0);let o=i.map(s=>{let a=mi(s,t),c=sS(a)?a.canLoad(e,n):ht(t,()=>a(e,n));return Vn(c)});return k(o).pipe(gi(),o_(r))}function o_(t){return ol(xe(e=>{if(typeof e!="boolean")throw hc(t,e)}),j(e=>e===!0))}function bS(t,e,n,r){let i=e.canMatch;if(!i||i.length===0)return k(!0);let o=i.map(s=>{let a=mi(s,t),c=uS(a)?a.canMatch(e,n):ht(t,()=>a(e,n));return Vn(c)});return k(o).pipe(gi(),o_(r))}var Co=class{constructor(e){this.segmentGroup=e||null}},Do=class extends Error{constructor(e){super(),this.urlTree=e}};function si(t){return Tr(new Co(t))}function CS(t){return Tr(new S(4e3,!1))}function DS(t){return Tr(n_(!1,it.GuardRejected))}var Pf=class{constructor(e,n){this.urlSerializer=e,this.urlTree=n}lineralizeSegments(e,n){let r=[],i=n.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return k(r);if(i.numberOfChildren>1||!i.children[$])return CS(`${e.redirectTo}`);i=i.children[$]}}applyRedirectCommands(e,n,r,i,o){if(typeof n!="string"){let a=n,{queryParams:c,fragment:l,routeConfig:u,url:d,outlet:f,params:h,data:w,title:O}=i,x=ht(o,()=>a({params:h,data:w,queryParams:c,fragment:l,routeConfig:u,url:d,outlet:f,title:O}));if(x instanceof hn)throw new Do(x);n=x}let s=this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),e,r);if(n[0]==="/")throw new Do(s);return s}applyRedirectCreateUrlTree(e,n,r,i){let o=this.createSegmentGroup(e,n.root,r,i);return new hn(o,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(e,n){let r={};return Object.entries(e).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);r[i]=n[a]}else r[i]=o}),r}createSegmentGroup(e,n,r,i){let o=this.createSegments(e,n.segments,r,i),s={};return Object.entries(n.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(e,c,r,i)}),new X(o,s)}createSegments(e,n,r,i){return n.map(o=>o.path[0]===":"?this.findPosParam(e,o,i):this.findOrReturn(o,r))}findPosParam(e,n,r){let i=r[n.path.substring(1)];if(!i)throw new S(4001,!1);return i}findOrReturn(e,n){let r=0;for(let i of n){if(i.path===e.path)return n.splice(r),i;r++}return e}},Rf={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ES(t,e,n,r,i){let o=s_(t,e,n);return o.matched?(r=GM(e,r),bS(r,e,n,i).pipe(j(s=>s===!0?o:C({},Rf)))):k(o)}function s_(t,e,n){if(e.path==="**")return IS(n);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||n.length>0)?C({},Rf):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let i=(e.matcher||wM)(n,t,e);if(!i)return C({},Rf);let o={};Object.entries(i.posParams??{}).forEach(([a,c])=>{o[a]=c.path});let s=i.consumed.length>0?C(C({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:n.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function IS(t){return{matched:!0,parameters:t.length>0?jv(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function Pv(t,e,n,r){return n.length>0&&SS(t,n,r)?{segmentGroup:new X(e,MS(r,new X(n,t.children))),slicedSegments:[]}:n.length===0&&TS(t,n,r)?{segmentGroup:new X(t.segments,xS(t,n,r,t.children)),slicedSegments:n}:{segmentGroup:new X(t.segments,t.children),slicedSegments:n}}function xS(t,e,n,r){let i={};for(let o of n)if(_c(t,e,o)&&!r[Ot(o)]){let s=new X([],{});i[Ot(o)]=s}return C(C({},r),i)}function MS(t,e){let n={};n[$]=e;for(let r of t)if(r.path===""&&Ot(r)!==$){let i=new X([],{});n[Ot(r)]=i}return n}function SS(t,e,n){return n.some(r=>_c(t,e,r)&&Ot(r)!==$)}function TS(t,e,n){return n.some(r=>_c(t,e,r))}function _c(t,e,n){return(t.hasChildren()||e.length>0)&&n.pathMatch==="full"?!1:n.path===""}function AS(t,e,n){return e.length===0&&!t.children[n]}var kf=class{};function OS(t,e,n,r,i,o,s="emptyOnly"){return new Ff(t,e,n,r,i,s,o).recognize()}var NS=31,Ff=class{constructor(e,n,r,i,o,s,a){this.injector=e,this.configLoader=n,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new Pf(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new S(4002,`'${e.segmentGroup}'`)}recognize(){let e=Pv(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(j(({children:n,rootSnapshot:r})=>{let i=new rt(r,n),o=new fc("",i),s=jM(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(e){let n=new li([],Object.freeze({}),Object.freeze(C({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),$,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,e,$,n).pipe(j(r=>({children:r,rootSnapshot:n})),bt(r=>{if(r instanceof Do)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof Co?this.noMatchError(r):r}))}processSegmentGroup(e,n,r,i,o){return r.segments.length===0&&r.hasChildren()?this.processChildren(e,n,r,o):this.processSegment(e,n,r,r.segments,i,!0,o).pipe(j(s=>s instanceof rt?[s]:[]))}processChildren(e,n,r,i){let o=[];for(let s of Object.keys(r.children))s==="primary"?o.unshift(s):o.push(s);return te(o).pipe(Kt(s=>{let a=r.children[s],c=WM(n,s);return this.processSegmentGroup(e,c,a,s,i)}),ml((s,a)=>(s.push(...a),s)),yn(null),gl(),pe(s=>{if(s===null)return si(r);let a=a_(s);return PS(a),k(a)}))}processSegment(e,n,r,i,o,s,a){return te(n).pipe(Kt(c=>this.processSegmentAgainstRoute(c._injector??e,n,c,r,i,o,s,a).pipe(bt(l=>{if(l instanceof Co)return k(null);throw l}))),lt(c=>!!c),bt(c=>{if(i_(c))return AS(r,i,o)?k(new kf):si(r);throw c}))}processSegmentAgainstRoute(e,n,r,i,o,s,a,c){return Ot(r)!==s&&(s===$||!_c(i,o,r))?si(i):r.redirectTo===void 0?this.matchSegmentAgainstRoute(e,i,r,o,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,i,n,r,o,s,c):si(i)}expandSegmentAgainstRouteUsingRedirect(e,n,r,i,o,s,a){let{matched:c,parameters:l,consumedSegments:u,positionalParamSegments:d,remainingSegments:f}=s_(n,i,o);if(!c)return si(n);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>NS&&(this.allowRedirects=!1));let h=new li(o,l,Object.freeze(C({},this.urlTree.queryParams)),this.urlTree.fragment,Rv(i),Ot(i),i.component??i._loadedComponent??null,i,kv(i)),w=dc(h,a,this.paramsInheritanceStrategy);h.params=Object.freeze(w.params),h.data=Object.freeze(w.data);let O=this.applyRedirects.applyRedirectCommands(u,i.redirectTo,d,h,e);return this.applyRedirects.lineralizeSegments(i,O).pipe(pe(x=>this.processSegment(e,r,n,x.concat(f),s,!1,a)))}matchSegmentAgainstRoute(e,n,r,i,o,s){let a=ES(n,r,i,e,this.urlSerializer);return r.path==="**"&&(n.children={}),a.pipe(qe(c=>c.matched?(e=r._injector??e,this.getChildConfig(e,r,i).pipe(qe(({routes:l})=>{let u=r._loadedInjector??e,{parameters:d,consumedSegments:f,remainingSegments:h}=c,w=new li(f,d,Object.freeze(C({},this.urlTree.queryParams)),this.urlTree.fragment,Rv(r),Ot(r),r.component??r._loadedComponent??null,r,kv(r)),O=dc(w,s,this.paramsInheritanceStrategy);w.params=Object.freeze(O.params),w.data=Object.freeze(O.data);let{segmentGroup:x,slicedSegments:I}=Pv(n,f,h,l);if(I.length===0&&x.hasChildren())return this.processChildren(u,l,x,w).pipe(j(me=>new rt(w,me)));if(l.length===0&&I.length===0)return k(new rt(w,[]));let K=Ot(r)===o;return this.processSegment(u,l,x,I,K?$:o,!0,w).pipe(j(me=>new rt(w,me instanceof rt?[me]:[])))}))):si(n)))}getChildConfig(e,n,r){return n.children?k({routes:n.children,injector:e}):n.loadChildren?n._loadedRoutes!==void 0?k({routes:n._loadedRoutes,injector:n._loadedInjector}):wS(e,n,r,this.urlSerializer).pipe(pe(i=>i?this.configLoader.loadChildren(e,n).pipe(xe(o=>{n._loadedRoutes=o.routes,n._loadedInjector=o.injector})):DS(n))):k({routes:[],injector:e})}};function PS(t){t.sort((e,n)=>e.value.outlet===$?-1:n.value.outlet===$?1:e.value.outlet.localeCompare(n.value.outlet))}function RS(t){let e=t.value.routeConfig;return e&&e.path===""}function a_(t){let e=[],n=new Set;for(let r of t){if(!RS(r)){e.push(r);continue}let i=e.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),n.add(i)):e.push(r)}for(let r of n){let i=a_(r.children);e.push(new rt(r.value,i))}return e.filter(r=>!n.has(r))}function Rv(t){return t.data||{}}function kv(t){return t.resolve||{}}function kS(t,e,n,r,i,o){return pe(s=>OS(t,e,n,r,s.extractedUrl,i,o).pipe(j(({state:a,tree:c})=>z(C({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function FS(t,e){return pe(n=>{let{targetSnapshot:r,guards:{canActivateChecks:i}}=n;if(!i.length)return k(n);let o=new Set(i.map(c=>c.route)),s=new Set;for(let c of o)if(!s.has(c))for(let l of c_(c))s.add(l);let a=0;return te(s).pipe(Kt(c=>o.has(c)?LS(c,r,t,e):(c.data=dc(c,c.parent,t).resolve,k(void 0))),xe(()=>a++),Nr(1),pe(c=>a===s.size?k(n):Oe))})}function c_(t){let e=t.children.map(n=>c_(n)).flat();return[t,...e]}function LS(t,e,n,r){let i=t.routeConfig,o=t._resolve;return i?.title!==void 0&&!e_(i)&&(o[Eo]=i.title),VS(o,t,e,r).pipe(j(s=>(t._resolvedData=s,t.data=dc(t,t.parent,n).resolve,null)))}function VS(t,e,n,r){let i=hf(t);if(i.length===0)return k({});let o={};return te(i).pipe(pe(s=>jS(t[s],e,n,r).pipe(lt(),xe(a=>{if(a instanceof bo)throw hc(new fi,a);o[s]=a}))),Nr(1),pl(o),bt(s=>i_(s)?Oe:Tr(s)))}function jS(t,e,n,r){let i=xo(e)??r,o=mi(t,i),s=o.resolve?o.resolve(e,n):ht(i,()=>o(e,n));return Vn(s)}function df(t){return qe(e=>{let n=t(e);return n?te(n).pipe(j(()=>e)):k(e)})}var l_=(()=>{let e=class e{buildTitle(r){let i,o=r.root;for(;o!==void 0;)i=this.getResolvedTitleForRoute(o)??i,o=o.children.find(s=>s.outlet===$);return i}getResolvedTitleForRoute(r){return r.data[Eo]}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>b(BS),providedIn:"root"});let t=e;return t})(),BS=(()=>{let e=class e extends l_{constructor(r){super(),this.title=r}updateTitle(r){let i=this.buildTitle(r);i!==void 0&&this.title.setTitle(i)}};e.\u0275fac=function(i){return new(i||e)(_(Ja))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),To=new M("",{providedIn:"root",factory:()=>({})}),US=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=fe({type:e,selectors:[["ng-component"]],standalone:!0,features:[Oy],decls:1,vars:0,template:function(i,o){i&1&&ke(0,"router-outlet")},dependencies:[YM],encapsulation:2});let t=e;return t})();function jf(t){let e=t.children&&t.children.map(jf),n=e?z(C({},t),{children:e}):C({},t);return!n.component&&!n.loadComponent&&(e||n.loadChildren)&&n.outlet&&n.outlet!==$&&(n.component=US),n}var gc=new M(""),Bf=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=b($a)}loadComponent(r){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return k(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let i=Vn(r.loadComponent()).pipe(j(u_),xe(s=>{this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=s}),vn(()=>{this.componentLoaders.delete(r)})),o=new Mr(i,()=>new ue).pipe(xr());return this.componentLoaders.set(r,o),o}loadChildren(r,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return k({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let s=$S(i,this.compiler,r,this.onLoadEndListener).pipe(vn(()=>{this.childrenLoaders.delete(i)})),a=new Mr(s,()=>new ue).pipe(xr());return this.childrenLoaders.set(i,a),a}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function $S(t,e,n,r){return Vn(t.loadChildren()).pipe(j(u_),pe(i=>i instanceof zi||Array.isArray(i)?k(i):te(e.compileModuleAsync(i))),j(i=>{r&&r(t);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(n).injector,s=o.get(gc,[],{optional:!0,self:!0}).flat()),{routes:s.map(jf),injector:o}}))}function HS(t){return t&&typeof t=="object"&&"default"in t}function u_(t){return HS(t)?t.default:t}var Uf=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>b(zS),providedIn:"root"});let t=e;return t})(),zS=(()=>{let e=class e{shouldProcessUrl(r){return!0}extract(r){return r}merge(r,i){return r}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),d_=new M(""),f_=new M("");function qS(t,e,n){let r=t.get(f_),i=t.get(Se);return t.get(ne).runOutsideAngular(()=>{if(!i.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,new Promise(l=>setTimeout(l));let o,s=new Promise(l=>{o=l}),a=i.startViewTransition(()=>(o(),GS(t))),{onViewTransitionCreated:c}=r;return c&&ht(t,()=>c({transition:a,from:e,to:n})),s})}function GS(t){return new Promise(e=>{Ed({read:()=>setTimeout(e)},{injector:t})})}var WS=new M(""),$f=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new ue,this.transitionAbortSubject=new ue,this.configLoader=b(Bf),this.environmentInjector=b(Be),this.urlSerializer=b(Io),this.rootContexts=b(Mo),this.location=b(ii),this.inputBindingEnabled=b(vc,{optional:!0})!==null,this.titleStrategy=b(l_),this.options=b(To,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=b(Uf),this.createViewTransition=b(d_,{optional:!0}),this.navigationErrorHandler=b(WS,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>k(void 0),this.rootComponentType=null;let r=o=>this.events.next(new bf(o)),i=o=>this.events.next(new Cf(o));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=r}complete(){this.transitions?.complete()}handleNavigationRequest(r){let i=++this.navigationId;this.transitions?.next(z(C(C({},this.transitions.value),r),{id:i}))}setupNavigations(r,i,o){return this.transitions=new Ae({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:go,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(ze(s=>s.id!==0),j(s=>z(C({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),qe(s=>{let a=!1,c=!1;return k(s).pipe(qe(l=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",it.SupersededByNewNavigation),Oe;this.currentTransition=s,this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,targetBrowserUrl:typeof l.extras.browserUrl=="string"?this.urlSerializer.parse(l.extras.browserUrl):l.extras.browserUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?z(C({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let u=!r.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=l.extras.onSameUrlNavigation??r.onSameUrlNavigation;if(!u&&d!=="reload"){let f="";return this.events.next(new Ln(l.id,this.urlSerializer.serialize(l.rawUrl),f,sc.IgnoredSameUrlNavigation)),l.resolve(!1),Oe}if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return k(l).pipe(qe(f=>{let h=this.transitions?.getValue();return this.events.next(new hi(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),h!==this.transitions?.getValue()?Oe:Promise.resolve(f)}),kS(this.environmentInjector,this.configLoader,this.rootComponentType,r.config,this.urlSerializer,this.paramsInheritanceStrategy),xe(f=>{s.targetSnapshot=f.targetSnapshot,s.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation=z(C({},this.currentNavigation),{finalUrl:f.urlAfterRedirects});let h=new ac(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(h)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){let{id:f,extractedUrl:h,source:w,restoredState:O,extras:x}=l,I=new hi(f,this.urlSerializer.serialize(h),w,O);this.events.next(I);let K=Jv(this.rootComponentType).snapshot;return this.currentTransition=s=z(C({},l),{targetSnapshot:K,urlAfterRedirects:h,extras:z(C({},x),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=h,k(s)}else{let f="";return this.events.next(new Ln(l.id,this.urlSerializer.serialize(l.extractedUrl),f,sc.IgnoredByUrlHandlingStrategy)),l.resolve(!1),Oe}}),xe(l=>{let u=new yf(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(u)}),j(l=>(this.currentTransition=s=z(C({},l),{guards:tS(l.targetSnapshot,l.currentSnapshot,this.rootContexts)}),s)),fS(this.environmentInjector,l=>this.events.next(l)),xe(l=>{if(s.guardsResult=l.guardsResult,l.guardsResult&&typeof l.guardsResult!="boolean")throw hc(this.urlSerializer,l.guardsResult);let u=new vf(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(u)}),ze(l=>l.guardsResult?!0:(this.cancelNavigationTransition(l,"",it.GuardRejected),!1)),df(l=>{if(l.guards.canActivateChecks.length)return k(l).pipe(xe(u=>{let d=new _f(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}),qe(u=>{let d=!1;return k(u).pipe(FS(this.paramsInheritanceStrategy,this.environmentInjector),xe({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(u,"",it.NoDataFromResolver)}}))}),xe(u=>{let d=new wf(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}))}),df(l=>{let u=d=>{let f=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&f.push(this.configLoader.loadComponent(d.routeConfig).pipe(xe(h=>{d.component=h}),j(()=>{})));for(let h of d.children)f.push(...u(h));return f};return ki(u(l.targetSnapshot.root)).pipe(yn(null),Jt(1))}),df(()=>this.afterPreactivation()),qe(()=>{let{currentSnapshot:l,targetSnapshot:u}=s,d=this.createViewTransition?.(this.environmentInjector,l.root,u.root);return d?te(d).pipe(j(()=>s)):k(s)}),j(l=>{let u=QM(r.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=s=z(C({},l),{targetRouterState:u}),this.currentNavigation.targetRouterState=u,s}),xe(()=>{this.events.next(new _o)}),eS(this.rootContexts,r.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),Jt(1),xe({next:l=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Nt(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{a=!0}}),_l(this.transitionAbortSubject.pipe(xe(l=>{throw l}))),vn(()=>{!a&&!c&&this.cancelNavigationTransition(s,"",it.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),bt(l=>{if(c=!0,r_(l))this.events.next(new fn(s.id,this.urlSerializer.serialize(s.extractedUrl),l.message,l.cancellationCode)),XM(l)?this.events.next(new pi(l.url,l.navigationBehaviorOptions)):s.resolve(!1);else{let u=new vo(s.id,this.urlSerializer.serialize(s.extractedUrl),l,s.targetSnapshot??void 0);try{let d=ht(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(d instanceof bo){let{message:f,cancellationCode:h}=hc(this.urlSerializer,d);this.events.next(new fn(s.id,this.urlSerializer.serialize(s.extractedUrl),f,h)),this.events.next(new pi(d.redirectTo,d.navigationBehaviorOptions))}else{this.events.next(u);let f=r.errorHandler(l);s.resolve(!!f)}}catch(d){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(d)}}return Oe}))}))}cancelNavigationTransition(r,i,o){let s=new fn(r.id,this.urlSerializer.serialize(r.extractedUrl),i,o);this.events.next(s),r.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let r=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),i=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return r.toString()!==i?.toString()&&!this.currentNavigation?.extras.skipLocationChange}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function ZS(t){return t!==go}var YS=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>b(QS),providedIn:"root"});let t=e;return t})(),Lf=class{shouldDetach(e){return!1}store(e,n){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,n){return e.routeConfig===n.routeConfig}},QS=(()=>{let e=class e extends Lf{};e.\u0275fac=(()=>{let r;return function(o){return(r||(r=Kr(e)))(o||e)}})(),e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),h_=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>b(KS),providedIn:"root"});let t=e;return t})(),KS=(()=>{let e=class e extends h_{constructor(){super(...arguments),this.location=b(ii),this.urlSerializer=b(Io),this.options=b(To,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=b(Uf),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new hn,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Jv(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(r){return this.location.subscribe(i=>{i.type==="popstate"&&r(i.url,i.state)})}handleRouterEvent(r,i){if(r instanceof hi)this.stateMemento=this.createStateMemento();else if(r instanceof Ln)this.rawUrlTree=i.initialUrl;else if(r instanceof ac){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(i.targetBrowserUrl??o,i)}}else r instanceof _o?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,this.urlUpdateStrategy==="deferred"&&!i.extras.skipLocationChange&&this.setBrowserUrl(i.targetBrowserUrl??this.rawUrlTree,i)):r instanceof fn&&(r.code===it.GuardRejected||r.code===it.NoDataFromResolver)?this.restoreHistory(i):r instanceof vo?this.restoreHistory(i,!0):r instanceof Nt&&(this.lastSuccessfulId=r.id,this.currentPageId=this.browserPageId)}setBrowserUrl(r,i){let o=r instanceof hn?this.urlSerializer.serialize(r):r;if(this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl){let s=this.browserPageId,a=C(C({},i.extras.state),this.generateNgRouterState(i.id,s));this.location.replaceState(o,"",a)}else{let s=C(C({},i.extras.state),this.generateNgRouterState(i.id,this.browserPageId+1));this.location.go(o,"",s)}}restoreHistory(r,i=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,s=this.currentPageId-o;s!==0?this.location.historyGo(s):this.currentUrlTree===r.finalUrl&&s===0&&(this.resetState(r),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&this.resetState(r),this.resetUrlToCurrentUrlTree())}resetState(r){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,r.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(r,i){return this.canceledNavigationResolution==="computed"?{navigationId:r,\u0275routerPageId:i}:{navigationId:r}}};e.\u0275fac=(()=>{let r;return function(o){return(r||(r=Kr(e)))(o||e)}})(),e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ho=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(ho||{});function p_(t,e){t.events.pipe(ze(n=>n instanceof Nt||n instanceof fn||n instanceof vo||n instanceof Ln),j(n=>n instanceof Nt||n instanceof Ln?ho.COMPLETE:(n instanceof fn?n.code===it.Redirect||n.code===it.SupersededByNewNavigation:!1)?ho.REDIRECTING:ho.FAILED),ze(n=>n!==ho.REDIRECTING),Jt(1)).subscribe(()=>{e()})}function JS(t){throw t}var XS={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},eT={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},ot=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=b(La),this.stateManager=b(h_),this.options=b(To,{optional:!0})||{},this.pendingTasks=b(on),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=b($f),this.urlSerializer=b(Io),this.location=b(ii),this.urlHandlingStrategy=b(Uf),this._events=new ue,this.errorHandler=this.options.errorHandler||JS,this.navigated=!1,this.routeReuseStrategy=b(YS),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=b(gc,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!b(vc,{optional:!0}),this.eventsSubscription=new be,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:r=>{this.console.warn(r)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let r=this.navigationTransitions.events.subscribe(i=>{try{let o=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(o!==null&&s!==null){if(this.stateManager.handleRouterEvent(i,s),i instanceof fn&&i.code!==it.Redirect&&i.code!==it.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof Nt)this.navigated=!0;else if(i instanceof pi){let a=i.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(i.url,o.currentRawUrl),l=C({browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||ZS(o.source)},a);this.scheduleNavigation(c,go,null,l,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}nT(i)&&this._events.next(i)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(r)}resetRootComponentType(r){this.routerState.root.component=r,this.navigationTransitions.rootComponentType=r}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),go,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((r,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(r,"popstate",i)},0)})}navigateToSyncWithBrowser(r,i,o){let s={replaceUrl:!0},a=o?.navigationId?o:null;if(o){let l=C({},o);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(s.state=l)}let c=this.parseUrl(r);this.scheduleNavigation(c,i,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(r){this.config=r.map(jf),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(r,i={}){let{relativeTo:o,queryParams:s,fragment:a,queryParamsHandling:c,preserveFragment:l}=i,u=l?this.currentUrlTree.fragment:a,d=null;switch(c??this.options.defaultQueryParamsHandling){case"merge":d=C(C({},this.currentUrlTree.queryParams),s);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}d!==null&&(d=this.removeEmptyProps(d));let f;try{let h=o?o.snapshot:this.routerState.snapshot.root;f=Zv(h)}catch{(typeof r[0]!="string"||r[0][0]!=="/")&&(r=[]),f=this.currentUrlTree.root}return Yv(f,r,d,u??null)}navigateByUrl(r,i={skipLocationChange:!1}){let o=mr(r)?r:this.parseUrl(r),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,go,null,i)}navigate(r,i={skipLocationChange:!1}){return tT(r),this.navigateByUrl(this.createUrlTree(r,i),i)}serializeUrl(r){return this.urlSerializer.serialize(r)}parseUrl(r){try{return this.urlSerializer.parse(r)}catch{return this.urlSerializer.parse("/")}}isActive(r,i){let o;if(i===!0?o=C({},XS):i===!1?o=C({},eT):o=i,mr(r))return Sv(this.currentUrlTree,r,o);let s=this.parseUrl(r);return Sv(this.currentUrlTree,s,o)}removeEmptyProps(r){return Object.entries(r).reduce((i,[o,s])=>(s!=null&&(i[o]=s),i),{})}scheduleNavigation(r,i,o,s,a){if(this.disposed)return Promise.resolve(!1);let c,l,u;a?(c=a.resolve,l=a.reject,u=a.promise):u=new Promise((f,h)=>{c=f,l=h});let d=this.pendingTasks.add();return p_(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:r,extras:s,resolve:c,reject:l,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(f=>Promise.reject(f))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function tT(t){for(let e=0;e{let e=class e{constructor(r,i,o,s,a,c){this.router=r,this.route=i,this.tabIndexAttribute=o,this.renderer=s,this.el=a,this.locationStrategy=c,this.href=null,this.onChanges=new ue,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;let l=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=l==="a"||l==="area",this.isAnchorElement?this.subscription=r.events.subscribe(u=>{u instanceof Nt&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(r){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",r)}ngOnChanges(r){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(r){r==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(mr(r)?this.routerLinkInput=r:this.routerLinkInput=Array.isArray(r)?r:[r],this.setTabIndexIfNotOnNativeEl("0"))}onClick(r,i,o,s,a){let c=this.urlTree;if(c===null||this.isAnchorElement&&(r!==0||i||o||s||a||typeof this.target=="string"&&this.target!="_self"))return!0;let l={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(c,l),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let r=this.urlTree;this.href=r!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(r)):null;let i=this.href===null?null:wm(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",i)}applyAttributeValue(r,i){let o=this.renderer,s=this.el.nativeElement;i!==null?o.setAttribute(s,r,i):o.removeAttribute(s,r)}get urlTree(){return this.routerLinkInput===null?null:mr(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};e.\u0275fac=function(i){return new(i||e)(E(ot),E(yr),nd("tabindex"),E(St),E(Ee),E(un))},e.\u0275dir=ie({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,o){i&1&&N("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),i&2&&ar("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",fr],skipLocationChange:[2,"skipLocationChange","skipLocationChange",fr],replaceUrl:[2,"replaceUrl","replaceUrl",fr],routerLink:"routerLink"},standalone:!0,features:[Cd,Je]});let t=e;return t})(),Y2=(()=>{let e=class e{get isActive(){return this._isActive}constructor(r,i,o,s,a){this.router=r,this.element=i,this.renderer=o,this.cdr=s,this.link=a,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new H,this.routerEventsSubscription=r.events.subscribe(c=>{c instanceof Nt&&this.update()})}ngAfterContentInit(){k(this.links.changes,k(null)).pipe(kt()).subscribe(r=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let r=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=te(r).pipe(kt()).subscribe(i=>{this._isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(r){let i=Array.isArray(r)?r:r.split(" ");this.classes=i.filter(o=>!!o)}ngOnChanges(r){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let r=this.hasActiveLinks();this.classes.forEach(i=>{r?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),r&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==r&&(this._isActive=r,this.cdr.markForCheck(),this.isActiveChange.emit(r))})}isLinkActive(r){let i=rT(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>{let s=o.urlTree;return s?r.isActive(s,i):!1}}hasActiveLinks(){let r=this.isLinkActive(this.router);return this.link&&r(this.link)||this.links.some(r)}};e.\u0275fac=function(i){return new(i||e)(E(ot),E(Ee),E(St),E(Nn),E(mc,8))},e.\u0275dir=ie({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(i,o,s){if(i&1&&lr(s,mc,5),i&2){let a;Xe(a=et())&&(o.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Je]});let t=e;return t})();function rT(t){return!!t.paths}var yc=class{},Q2=(()=>{let e=class e{preload(r,i){return i().pipe(bt(()=>k(null)))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var iT=(()=>{let e=class e{constructor(r,i,o,s,a){this.router=r,this.injector=o,this.preloadingStrategy=s,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(ze(r=>r instanceof Nt),Kt(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(r,i){let o=[];for(let s of i){s.providers&&!s._injector&&(s._injector=Ra(s.providers,r,`Route: ${s.path}`));let a=s._injector??r,c=s._loadedInjector??a;(s.loadChildren&&!s._loadedRoutes&&s.canLoad===void 0||s.loadComponent&&!s._loadedComponent)&&o.push(this.preloadConfig(a,s)),(s.children||s._loadedRoutes)&&o.push(this.processRoutes(c,s.children??s._loadedRoutes))}return te(o).pipe(kt())}preloadConfig(r,i){return this.preloadingStrategy.preload(i,()=>{let o;i.loadChildren&&i.canLoad===void 0?o=this.loader.loadChildren(r,i):o=k(null);let s=o.pipe(pe(a=>a===null?k(void 0):(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,this.processRoutes(a.injector??r,a.routes))));if(i.loadComponent&&!i._loadedComponent){let a=this.loader.loadComponent(i);return te([s,a]).pipe(kt())}else return s})}};e.\u0275fac=function(i){return new(i||e)(_(ot),_($a),_(Be),_(yc),_(Bf))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),g_=new M(""),oT=(()=>{let e=class e{constructor(r,i,o,s,a={}){this.urlSerializer=r,this.transitions=i,this.viewportScroller=o,this.zone=s,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(r=>{r instanceof hi?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=r.navigationTrigger,this.restoredId=r.restoredState?r.restoredState.navigationId:0):r instanceof Nt?(this.lastId=r.id,this.scheduleScrollEvent(r,this.urlSerializer.parse(r.urlAfterRedirects).fragment)):r instanceof Ln&&r.code===sc.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(r,this.urlSerializer.parse(r.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(r=>{r instanceof cc&&(r.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(r.position):r.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(r.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(r,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new cc(r,this.lastSource==="popstate"?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};e.\u0275fac=function(i){Lm()},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function sT(t){return t.routerState.root}function Ao(t,e){return{\u0275kind:t,\u0275providers:e}}function aT(){let t=b(Me);return e=>{let n=t.get(tt);if(e!==n.components[0])return;let r=t.get(ot),i=t.get(m_);t.get(Hf)===1&&r.initialNavigation(),t.get(y_,null,q.Optional)?.setUpPreloading(),t.get(g_,null,q.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var m_=new M("",{factory:()=>new ue}),Hf=new M("",{providedIn:"root",factory:()=>1});function cT(){return Ao(2,[{provide:Hf,useValue:0},{provide:Ba,multi:!0,deps:[Me],useFactory:e=>{let n=e.get(Jy,Promise.resolve());return()=>n.then(()=>new Promise(r=>{let i=e.get(ot),o=e.get(m_);p_(i,()=>{r(!0)}),e.get($f).afterPreactivation=()=>(r(!0),o.closed?k(void 0):o),i.initialNavigation()}))}}])}function lT(){return Ao(3,[{provide:Ba,multi:!0,useFactory:()=>{let e=b(ot);return()=>{e.setUpLocationChangeListener()}}},{provide:Hf,useValue:2}])}var y_=new M("");function uT(t){return Ao(0,[{provide:y_,useExisting:iT},{provide:yc,useExisting:t}])}function dT(){return Ao(8,[Nv,{provide:vc,useExisting:Nv}])}function fT(t){let e=[{provide:d_,useValue:qS},{provide:f_,useValue:C({skipNextTransition:!!t?.skipInitialTransition},t)}];return Ao(9,e)}var Fv=new M("ROUTER_FORROOT_GUARD"),hT=[ii,{provide:Io,useClass:fi},ot,Mo,{provide:yr,useFactory:sT,deps:[ot]},Bf,[]],v_=(()=>{let e=class e{constructor(r){}static forRoot(r,i){return{ngModule:e,providers:[hT,[],{provide:gc,multi:!0,useValue:r},{provide:Fv,useFactory:yT,deps:[[ot,new Zi,new la]]},{provide:To,useValue:i||{}},i?.useHash?gT():mT(),pT(),i?.preloadingStrategy?uT(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?vT(i):[],i?.bindToComponentInputs?dT().\u0275providers:[],i?.enableViewTransitions?fT().\u0275providers:[],_T()]}}static forChild(r){return{ngModule:e,providers:[{provide:gc,multi:!0,useValue:r}]}}};e.\u0275fac=function(i){return new(i||e)(_(Fv,8))},e.\u0275mod=ce({type:e}),e.\u0275inj=ae({});let t=e;return t})();function pT(){return{provide:g_,useFactory:()=>{let t=b(nv),e=b(ne),n=b(To),r=b($f),i=b(Io);return n.scrollOffset&&t.setOffset(n.scrollOffset),new oT(i,r,t,e,n)}}}function gT(){return{provide:un,useClass:ev}}function mT(){return{provide:un,useClass:zd}}function yT(t){return"guarded"}function vT(t){return[t.initialNavigation==="disabled"?lT().\u0275providers:[],t.initialNavigation==="enabledBlocking"?cT().\u0275providers:[]]}var Lv=new M("");function _T(){return[{provide:Lv,useFactory:aT},{provide:Ua,multi:!0,useExisting:Lv}]}var yi={production:!0,appId:"article",url:"https://webart.work"};var M_=(()=>{let e=class e{constructor(r,i){this._renderer=r,this._elementRef=i,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(r,i){this._renderer.setProperty(this._elementRef.nativeElement,r,i)}registerOnTouched(r){this.onTouched=r}registerOnChange(r){this.onChange=r}setDisabledState(r){this.setProperty("disabled",r)}};e.\u0275fac=function(i){return new(i||e)(E(St),E(Ee))},e.\u0275dir=ie({type:e});let t=e;return t})(),Zf=(()=>{let e=class e extends M_{};e.\u0275fac=(()=>{let r;return function(o){return(r||(r=Kr(e)))(o||e)}})(),e.\u0275dir=ie({type:e,features:[An]});let t=e;return t})(),Ec=new M(""),wT={provide:Ec,useExisting:nr(()=>Yf),multi:!0},Yf=(()=>{let e=class e extends Zf{writeValue(r){this.setProperty("checked",r)}};e.\u0275fac=(()=>{let r;return function(o){return(r||(r=Kr(e)))(o||e)}})(),e.\u0275dir=ie({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(i,o){i&1&&N("change",function(a){return o.onChange(a.target.checked)})("blur",function(){return o.onTouched()})},features:[eo([wT]),An]});let t=e;return t})(),bT={provide:Ec,useExisting:nr(()=>jn),multi:!0};function CT(){let t=At()?At().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var DT=new M(""),jn=(()=>{let e=class e extends M_{constructor(r,i,o){super(r,i),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!CT())}writeValue(r){let i=r??"";this.setProperty("value",i)}_handleInput(r){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(r)}_compositionStart(){this._composing=!0}_compositionEnd(r){this._composing=!1,this._compositionMode&&this.onChange(r)}};e.\u0275fac=function(i){return new(i||e)(E(St),E(Ee),E(DT,8))},e.\u0275dir=ie({type:e,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(i,o){i&1&&N("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[eo([bT]),An]});let t=e;return t})();var ET=new M(""),IT=new M("");function S_(t){return t!=null}function T_(t){return dr(t)?te(t):t}function A_(t){let e={};return t.forEach(n=>{e=n!=null?C(C({},e),n):e}),Object.keys(e).length===0?null:e}function O_(t,e){return e.map(n=>n(t))}function xT(t){return!t.validate}function N_(t){return t.map(e=>xT(e)?e:n=>e.validate(n))}function MT(t){if(!t)return null;let e=t.filter(S_);return e.length==0?null:function(n){return A_(O_(n,e))}}function P_(t){return t!=null?MT(N_(t)):null}function ST(t){if(!t)return null;let e=t.filter(S_);return e.length==0?null:function(n){let r=O_(n,e).map(T_);return fl(r).pipe(j(A_))}}function R_(t){return t!=null?ST(N_(t)):null}function w_(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function TT(t){return t._rawValidators}function AT(t){return t._rawAsyncValidators}function zf(t){return t?Array.isArray(t)?t:[t]:[]}function bc(t,e){return Array.isArray(t)?t.includes(e):t===e}function b_(t,e){let n=zf(e);return zf(t).forEach(i=>{bc(n,i)||n.push(i)}),n}function C_(t,e){return zf(e).filter(n=>!bc(t,n))}var Cc=class{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(e){this._rawValidators=e||[],this._composedValidatorFn=P_(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=R_(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,n){return this.control?this.control.hasError(e,n):!1}getError(e,n){return this.control?this.control.getError(e,n):null}},qf=class extends Cc{get formDirective(){return null}get path(){return null}},wi=class extends Cc{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Gf=class{constructor(e){this._cd=e}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},OT={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},pV=z(C({},OT),{"[class.ng-submitted]":"isSubmitted"}),Ci=(()=>{let e=class e extends Gf{constructor(r){super(r)}};e.\u0275fac=function(i){return new(i||e)(E(wi,2))},e.\u0275dir=ie({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,o){i&2&&he("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[An]});let t=e;return t})();var Oo="VALID",wc="INVALID",vi="PENDING",No="DISABLED",bi=class{},Dc=class extends bi{constructor(e,n){super(),this.value=e,this.source=n}},Po=class extends bi{constructor(e,n){super(),this.pristine=e,this.source=n}},Ro=class extends bi{constructor(e,n){super(),this.touched=e,this.source=n}},_i=class extends bi{constructor(e,n){super(),this.status=e,this.source=n}};function NT(t){return(Ic(t)?t.validators:t)||null}function PT(t){return Array.isArray(t)?P_(t):t||null}function RT(t,e){return(Ic(e)?e.asyncValidators:t)||null}function kT(t){return Array.isArray(t)?R_(t):t||null}function Ic(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}var Wf=class{constructor(e,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=Ha(()=>this.statusReactive()),this.statusReactive=Pa(void 0),this._pristine=Ha(()=>this.pristineReactive()),this.pristineReactive=Pa(!0),this._touched=Ha(()=>this.touchedReactive()),this.touchedReactive=Pa(!1),this._events=new ue,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get status(){return Pn(this.statusReactive)}set status(e){Pn(()=>this.statusReactive.set(e))}get valid(){return this.status===Oo}get invalid(){return this.status===wc}get pending(){return this.status==vi}get disabled(){return this.status===No}get enabled(){return this.status!==No}get pristine(){return Pn(this.pristineReactive)}set pristine(e){Pn(()=>this.pristineReactive.set(e))}get dirty(){return!this.pristine}get touched(){return Pn(this.touchedReactive)}set touched(e){Pn(()=>this.touchedReactive.set(e))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(b_(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(b_(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(C_(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(C_(e,this._rawAsyncValidators))}hasValidator(e){return bc(this._rawValidators,e)}hasAsyncValidator(e){return bc(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let n=this.touched===!1;this.touched=!0;let r=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(z(C({},e),{sourceControl:r})),n&&e.emitEvent!==!1&&this._events.next(new Ro(!0,r))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(e))}markAsUntouched(e={}){let n=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let r=e.sourceControl??this;this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:r})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,r),n&&e.emitEvent!==!1&&this._events.next(new Ro(!1,r))}markAsDirty(e={}){let n=this.pristine===!0;this.pristine=!1;let r=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(z(C({},e),{sourceControl:r})),n&&e.emitEvent!==!1&&this._events.next(new Po(!1,r))}markAsPristine(e={}){let n=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=e.sourceControl??this;this._forEachChild(i=>{i.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,r),n&&e.emitEvent!==!1&&this._events.next(new Po(!0,r))}markAsPending(e={}){this.status=vi;let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new _i(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(z(C({},e),{sourceControl:n}))}disable(e={}){let n=this._parentMarkedDirty(e.onlySelf);this.status=No,this.errors=null,this._forEachChild(i=>{i.disable(z(C({},e),{onlySelf:!0}))}),this._updateValue();let r=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Dc(this.value,r)),this._events.next(new _i(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(z(C({},e),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(i=>i(!0))}enable(e={}){let n=this._parentMarkedDirty(e.onlySelf);this.status=Oo,this._forEachChild(r=>{r.enable(z(C({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(z(C({},e),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(e,n){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},n),this._parent._updateTouched({},n))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Oo||this.status===vi)&&this._runAsyncValidator(r,e.emitEvent)}let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Dc(this.value,n)),this._events.next(new _i(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(z(C({},e),{sourceControl:n}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?No:Oo}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,n){if(this.asyncValidator){this.status=vi,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1};let r=T_(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(i=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(i,{emitEvent:n,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,n={}){this.errors=e,this._updateControlsErrors(n.emitEvent!==!1,this,n.shouldHaveEmitted)}get(e){let n=e;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((r,i)=>r&&r._find(i),this)}getError(e,n){let r=n?this.get(n):this;return r&&r.errors?r.errors[e]:null}hasError(e,n){return!!this.getError(e,n)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,n,r){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||r)&&this._events.next(new _i(this.status,n)),this._parent&&this._parent._updateControlsErrors(e,n,r)}_initObservables(){this.valueChanges=new H,this.statusChanges=new H}_calculateStatus(){return this._allControlsDisabled()?No:this.errors?wc:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(vi)?vi:this._anyControlsHaveStatus(wc)?wc:Oo}_anyControlsHaveStatus(e){return this._anyControls(n=>n.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,n){let r=!this._anyControlsDirty(),i=this.pristine!==r;this.pristine=r,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,n),i&&this._events.next(new Po(this.pristine,n))}_updateTouched(e={},n){this.touched=this._anyControlsTouched(),this._events.next(new Ro(this.touched,n)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,n)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Ic(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let n=this._parent&&this._parent.dirty;return!e&&!!n&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=PT(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=kT(this._rawAsyncValidators)}};var xc=new M("CallSetDisabledState",{providedIn:"root",factory:()=>ko}),ko="always";function FT(t,e){return[...e.path,t]}function LT(t,e,n=ko){jT(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||n==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),BT(t,e),$T(t,e),UT(t,e),VT(t,e)}function D_(t,e){t.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(e)})}function VT(t,e){if(e.valueAccessor.setDisabledState){let n=r=>{e.valueAccessor.setDisabledState(r)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}function jT(t,e){let n=TT(t);e.validator!==null?t.setValidators(w_(n,e.validator)):typeof n=="function"&&t.setValidators([n]);let r=AT(t);e.asyncValidator!==null?t.setAsyncValidators(w_(r,e.asyncValidator)):typeof r=="function"&&t.setAsyncValidators([r]);let i=()=>t.updateValueAndValidity();D_(e._rawValidators,i),D_(e._rawAsyncValidators,i)}function BT(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&k_(t,e)})}function UT(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&k_(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function k_(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function $T(t,e){let n=(r,i)=>{e.valueAccessor.writeValue(r),i&&e.viewToModelUpdate(r)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}function HT(t,e){if(!t.hasOwnProperty("model"))return!1;let n=t.model;return n.isFirstChange()?!0:!Object.is(e,n.currentValue)}function zT(t){return Object.getPrototypeOf(t.constructor)===Zf}function qT(t,e){if(!e)return null;Array.isArray(e);let n,r,i;return e.forEach(o=>{o.constructor===jn?n=o:zT(o)?r=o:i=o}),i||r||n||null}function E_(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}function I_(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var GT=class extends Wf{constructor(e=null,n,r){super(NT(n),RT(r,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Ic(n)&&(n.nonNullable||n.initialValueIsDefault)&&(I_(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,n={}){this.value=this._pendingValue=e,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(e,n={}){this.setValue(e,n)}reset(e=this.defaultValue,n={}){this._applyFormState(e),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){E_(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){E_(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){I_(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var WT={provide:wi,useExisting:nr(()=>vr)},x_=Promise.resolve(),vr=(()=>{let e=class e extends wi{constructor(r,i,o,s,a,c){super(),this._changeDetectorRef=a,this.callSetDisabledState=c,this.control=new GT,this._registered=!1,this.name="",this.update=new H,this._parent=r,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=qT(this,s)}ngOnChanges(r){if(this._checkForErrors(),!this._registered||"name"in r){if(this._registered&&(this._checkName(),this.formDirective)){let i=r.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in r&&this._updateDisabled(r),HT(r,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(r){this.viewModel=r,this.update.emit(r)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){LT(this.control,this,this.callSetDisabledState),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()&&this.name}_updateValue(r){x_.then(()=>{this.control.setValue(r,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(r){let i=r.isDisabled.currentValue,o=i!==0&&fr(i);x_.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(r){return this._parent?FT(r,this._parent):[r]}};e.\u0275fac=function(i){return new(i||e)(E(qf,9),E(ET,10),E(IT,10),E(Ec,10),E(Nn,8),E(xc,8))},e.\u0275dir=ie({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[eo([WT]),An,Je]});let t=e;return t})();var ZT={provide:Ec,useExisting:nr(()=>Qf),multi:!0};var YT=(()=>{let e=class e{constructor(){this._accessors=[]}add(r,i){this._accessors.push([r,i])}remove(r){for(let i=this._accessors.length-1;i>=0;--i)if(this._accessors[i][1]===r){this._accessors.splice(i,1);return}}select(r){this._accessors.forEach(i=>{this._isSameGroup(i,r)&&i[1]!==r&&i[1].fireUncheck(r.value)})}_isSameGroup(r,i){return r[0].control?r[0]._parent===i._control._parent&&r[1].name===i.name:!1}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Qf=(()=>{let e=class e extends Zf{constructor(r,i,o,s){super(r,i),this._registry=o,this._injector=s,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=b(xc,{optional:!0})??ko}ngOnInit(){this._control=this._injector.get(wi),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(r){this._state=r===this.value,this.setProperty("checked",this._state)}registerOnChange(r){this._fn=r,this.onChange=()=>{r(this.value),this._registry.select(this)}}setDisabledState(r){(this.setDisabledStateFired||r||this.callSetDisabledState==="whenDisabledForLegacyCode")&&this.setProperty("disabled",r),this.setDisabledStateFired=!0}fireUncheck(r){this.writeValue(r)}_checkName(){this.name&&this.formControlName&&(this.name,this.formControlName),!this.name&&this.formControlName&&(this.name=this.formControlName)}};e.\u0275fac=function(i){return new(i||e)(E(St),E(Ee),E(YT),E(Me))},e.\u0275dir=ie({type:e,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(i,o){i&1&&N("change",function(){return o.onChange()})("blur",function(){return o.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[eo([ZT]),An]});let t=e;return t})();var QT=new M("");var F_=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ce({type:e}),e.\u0275inj=ae({});let t=e;return t})();var Gt=(()=>{let e=class e{static withConfig(r){return{ngModule:e,providers:[{provide:xc,useValue:r.callSetDisabledState??ko}]}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ce({type:e}),e.\u0275inj=ae({imports:[F_]});let t=e;return t})(),mV=(()=>{let e=class e{static withConfig(r){return{ngModule:e,providers:[{provide:QT,useValue:r.warnOnNgModelWithFormControl??"always"},{provide:xc,useValue:r.callSetDisabledState??ko}]}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ce({type:e}),e.\u0275inj=ae({imports:[F_]});let t=e;return t})();var Pt=Object.create(null);Pt.open="0";Pt.close="1";Pt.ping="2";Pt.pong="3";Pt.message="4";Pt.upgrade="5";Pt.noop="6";var Fo=Object.create(null);Object.keys(Pt).forEach(t=>{Fo[Pt[t]]=t});var Lo={type:"error",data:"parser error"};var j_=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",B_=typeof ArrayBuffer=="function",U_=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,Vo=({type:t,data:e},n,r)=>j_&&e instanceof Blob?n?r(e):L_(e,r):B_&&(e instanceof ArrayBuffer||U_(e))?n?r(e):L_(new Blob([e]),r):r(Pt[t]+(e||"")),L_=(t,e)=>{let n=new FileReader;return n.onload=function(){let r=n.result.split(",")[1];e("b"+(r||""))},n.readAsDataURL(t)};function V_(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}var Jf;function $_(t,e){if(j_&&t.data instanceof Blob)return t.data.arrayBuffer().then(V_).then(e);if(B_&&(t.data instanceof ArrayBuffer||U_(t.data)))return e(V_(t.data));Vo(t,!1,n=>{Jf||(Jf=new TextEncoder),e(Jf.encode(n))})}var H_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",jo=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t{let e=t.length*.75,n=t.length,r,i=0,o,s,a,c;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);let l=new ArrayBuffer(e),u=new Uint8Array(l);for(r=0;r>4,u[i++]=(s&15)<<4|a>>2,u[i++]=(a&3)<<6|c&63;return l};var KT=typeof ArrayBuffer=="function",Bo=(t,e)=>{if(typeof t!="string")return{type:"message",data:q_(t,e)};let n=t.charAt(0);return n==="b"?{type:"message",data:JT(t.substring(1),e)}:Fo[n]?t.length>1?{type:Fo[n],data:t.substring(1)}:{type:Fo[n]}:Lo},JT=(t,e)=>{if(KT){let n=z_(t);return q_(n,e)}else return{base64:!0,data:t}},q_=(t,e)=>{switch(e){case"blob":return t instanceof Blob?t:new Blob([t]);case"arraybuffer":default:return t instanceof ArrayBuffer?t:t.buffer}};var G_="",W_=(t,e)=>{let n=t.length,r=new Array(n),i=0;t.forEach((o,s)=>{Vo(o,!1,a=>{r[s]=a,++i===n&&e(r.join(G_))})})},Z_=(t,e)=>{let n=t.split(G_),r=[];for(let i=0;i{let r=n.length,i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);let o=new DataView(i.buffer);o.setUint8(0,126),o.setUint16(1,r)}else{i=new Uint8Array(9);let o=new DataView(i.buffer);o.setUint8(0,127),o.setBigUint64(1,BigInt(r))}t.data&&typeof t.data!="string"&&(i[0]|=128),e.enqueue(i),e.enqueue(n)})}})}var Xf;function Mc(t){return t.reduce((e,n)=>e+n.length,0)}function Sc(t,e){if(t[0].length===e)return t.shift();let n=new Uint8Array(e),r=0;for(let i=0;iMath.pow(2,21)-1){a.enqueue(Lo);break}i=u*Math.pow(2,32)+l.getUint32(4),r=3}else{if(Mc(n)t){a.enqueue(Lo);break}}}})}var eh=4;function le(t){if(t)return XT(t)}function XT(t){for(var e in le.prototype)t[e]=le.prototype[e];return t}le.prototype.on=le.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this};le.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this};le.prototype.off=le.prototype.removeListener=le.prototype.removeAllListeners=le.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+t];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var r,i=0;i(t.hasOwnProperty(r)&&(n[r]=t[r]),n),{})}var e1=Le.setTimeout,t1=Le.clearTimeout;function pn(t,e){e.useNativeTimers?(t.setTimeoutFn=e1.bind(Le),t.clearTimeoutFn=t1.bind(Le)):(t.setTimeoutFn=Le.setTimeout.bind(Le),t.clearTimeoutFn=Le.clearTimeout.bind(Le))}var n1=1.33;function K_(t){return typeof t=="string"?r1(t):Math.ceil((t.byteLength||t.size)*n1)}function r1(t){let e=0,n=0;for(let r=0,i=t.length;r=57344?n+=3:(r++,n+=4);return n}function J_(t){let e="";for(let n in t)t.hasOwnProperty(n)&&(e.length&&(e+="&"),e+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e}function X_(t){let e={},n=t.split("&");for(let r=0,i=n.length;r0);return e}function Nc(){let t=n0(+new Date);return t!==t0?(e0=0,t0=t):t+"."+n0(e0++)}for(;Oc{this.readyState="paused",e()};if(this.polling||!this.writable){let r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){let n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};Z_(e,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){let e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,W_(e,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=Nc()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(e,n)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Pc(this.uri(),e)}doWrite(e,n){let r=this.request({method:"POST",data:e});r.on("success",n),r.on("error",(i,o)=>{this.onError("xhr post error",i,o)})}doPoll(){let e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=e}},Pc=(()=>{class t extends le{constructor(n,r){super(),pn(this,r),this.opts=r,this.method=r.method||"GET",this.uri=n,this.data=r.data!==void 0?r.data:null,this.create()}create(){var n;let r=Tc(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this.opts.xd;let i=this.xhr=new nh(r);try{i.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){i.setDisableHeaderCheck&&i.setDisableHeaderCheck(!0);for(let o in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(o)&&i.setRequestHeader(o,this.opts.extraHeaders[o])}}catch{}if(this.method==="POST")try{i.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{i.setRequestHeader("Accept","*/*")}catch{}(n=this.opts.cookieJar)===null||n===void 0||n.addCookies(i),"withCredentials"in i&&(i.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(i.timeout=this.opts.requestTimeout),i.onreadystatechange=()=>{var o;i.readyState===3&&((o=this.opts.cookieJar)===null||o===void 0||o.parseCookies(i)),i.readyState===4&&(i.status===200||i.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof i.status=="number"?i.status:0)},0))},i.send(this.data)}catch(o){this.setTimeoutFn(()=>{this.onError(o)},0);return}typeof document<"u"&&(this.index=t.requestsCount++,t.requests[this.index]=this)}onError(n){this.emitReserved("error",n,this.xhr),this.cleanup(!0)}cleanup(n){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=o1,n)try{this.xhr.abort()}catch{}typeof document<"u"&&delete t.requests[this.index],this.xhr=null}}onLoad(){let n=this.xhr.responseText;n!==null&&(this.emitReserved("data",n),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}return t.requestsCount=0,t.requests={},t})();if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",s0);else if(typeof addEventListener=="function"){let t="onpagehide"in Le?"pagehide":"unload";addEventListener(t,s0,!1)}}function s0(){for(let t in Pc.requests)Pc.requests.hasOwnProperty(t)&&Pc.requests[t].abort()}var _r=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,n)=>n(e,0),Uo=Le.WebSocket||Le.MozWebSocket,kc=!0,a0="arraybuffer";var c0=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",Fc=class extends gn{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;let e=this.uri(),n=this.opts.protocols,r=c0?{}:Tc(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=kc&&!c0?n?new Uo(e,n):new Uo(e):new Uo(e,n,r)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let n=0;n{let s={};kc||(r.options&&(s.compress=r.options.compress),this.opts.perMessageDeflate&&(typeof o=="string"?Buffer.byteLength(o):o.length){this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){let e=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=Nc()),this.supportsBinary||(n.b64=1),this.createUri(e,n)}check(){return!!Uo}};var Lc=class extends gn{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(e=>{let n=Q_(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=e.readable.pipeThrough(n).getReader(),i=Y_();i.readable.pipeTo(e.writable),this.writer=i.writable.getWriter();let o=()=>{r.read().then(({done:a,value:c})=>{a||(this.onPacket(c),o())}).catch(a=>{})};o();let s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this.writer.write(s).then(()=>this.onOpen())})}))}write(e){this.writable=!1;for(let n=0;n{i&&_r(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this.transport)===null||e===void 0||e.close()}};var rh={websocket:Fc,webtransport:Lc,polling:Rc};var a1=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,c1=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Di(t){if(t.length>2e3)throw"URI too long";let e=t,n=t.indexOf("["),r=t.indexOf("]");n!=-1&&r!=-1&&(t=t.substring(0,n)+t.substring(n,r).replace(/:/g,";")+t.substring(r,t.length));let i=a1.exec(t||""),o={},s=14;for(;s--;)o[c1[s]]=i[s]||"";return n!=-1&&r!=-1&&(o.source=e,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=l1(o,o.path),o.queryKey=u1(o,o.query),o}function l1(t,e){let n=/\/{2,9}/g,r=e.replace(n,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&r.splice(0,1),e.slice(-1)=="/"&&r.splice(r.length-1,1),r}function u1(t,e){let n={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,o){i&&(n[i]=o)}),n}var Vc=(()=>{class t extends le{constructor(n,r={}){super(),this.binaryType=a0,this.writeBuffer=[],n&&typeof n=="object"&&(r=n,n=null),n?(n=Di(n),r.hostname=n.host,r.secure=n.protocol==="https"||n.protocol==="wss",r.port=n.port,n.query&&(r.query=n.query)):r.host&&(r.hostname=Di(r.host).host),pn(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=r.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=X_(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(n){let r=Object.assign({},this.opts.query);r.EIO=eh,r.transport=n,this.id&&(r.sid=this.id);let i=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[n]);return new rh[n](i)}open(){let n;if(this.opts.rememberUpgrade&&t.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)n="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else n=this.transports[0];this.readyState="opening";try{n=this.createTransport(n)}catch{this.transports.shift(),this.open();return}n.open(),this.setTransport(n)}setTransport(n){this.transport&&this.transport.removeAllListeners(),this.transport=n,n.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",r=>this.onClose("transport close",r))}probe(n){let r=this.createTransport(n),i=!1;t.priorWebsocketSuccess=!1;let o=()=>{i||(r.send([{type:"ping",data:"probe"}]),r.once("packet",f=>{if(!i)if(f.type==="pong"&&f.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;t.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{i||this.readyState!=="closed"&&(d(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{let h=new Error("probe error");h.transport=r.name,this.emitReserved("upgradeError",h)}}))};function s(){i||(i=!0,d(),r.close(),r=null)}let a=f=>{let h=new Error("probe error: "+f);h.transport=r.name,s(),this.emitReserved("upgradeError",h)};function c(){a("transport closed")}function l(){a("socket closed")}function u(f){r&&f.name!==r.name&&s()}let d=()=>{r.removeListener("open",o),r.removeListener("error",a),r.removeListener("close",c),this.off("close",l),this.off("upgrading",u)};r.once("open",o),r.once("error",a),r.once("close",c),this.once("close",l),this.once("upgrading",u),this.upgrades.indexOf("webtransport")!==-1&&n!=="webtransport"?this.setTimeoutFn(()=>{i||r.open()},200):r.open()}onOpen(){if(this.readyState="open",t.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let n=0,r=this.upgrades.length;for(;n{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let n=this.getWritablePackets();this.transport.send(n),this.prevBufferLen=n.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let r=1;for(let i=0;i0&&r>this.maxPayload)return this.writeBuffer.slice(0,i);r+=2}return this.writeBuffer}write(n,r,i){return this.sendPacket("message",n,r,i),this}send(n,r,i){return this.sendPacket("message",n,r,i),this}sendPacket(n,r,i,o){if(typeof r=="function"&&(o=r,r=void 0),typeof i=="function"&&(o=i,i=null),this.readyState==="closing"||this.readyState==="closed")return;i=i||{},i.compress=i.compress!==!1;let s={type:n,data:r,options:i};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),o&&this.once("flush",o),this.flush()}close(){let n=()=>{this.onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),n()},i=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?i():n()}):this.upgrading?i():n()),this}onError(n){t.priorWebsocketSuccess=!1,this.emitReserved("error",n),this.onClose("transport error",n)}onClose(n,r){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",n,r),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(n){let r=[],i=0,o=n.length;for(;iah,Encoder:()=>sh,PacketType:()=>Q,protocol:()=>p0});var d1=typeof ArrayBuffer=="function",f1=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,u0=Object.prototype.toString,h1=typeof Blob=="function"||typeof Blob<"u"&&u0.call(Blob)==="[object BlobConstructor]",p1=typeof File=="function"||typeof File<"u"&&u0.call(File)==="[object FileConstructor]";function Ho(t){return d1&&(t instanceof ArrayBuffer||f1(t))||h1&&t instanceof Blob||p1&&t instanceof File}function $o(t,e){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let n=0,r=t.length;n=0&&t.num{delete this.acks[e];for(let s=0;s{this.io.clearTimeoutFn(o),n.apply(this,[null,...s])}}emitWithAck(e,...n){let r=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((i,o)=>{n.push((s,a)=>r?s?o(s):i(a):i(s)),this.emit(e,...n)})}_addToQueue(e){let n;typeof e[e.length-1]=="function"&&(n=e.pop());let r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((i,...o)=>r!==this._queue[0]?void 0:(i!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(i)):(this._queue.shift(),n&&n(null,...o)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;let n=this._queue[0];n.pending&&!e||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:Q.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,n)}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case Q.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Q.EVENT:case Q.BINARY_EVENT:this.onevent(e);break;case Q.ACK:case Q.BINARY_ACK:this.onack(e);break;case Q.DISCONNECT:this.ondisconnect();break;case Q.CONNECT_ERROR:this.destroy();let r=new Error(e.data.message);r.data=e.data.data,this.emitReserved("connect_error",r);break}}onevent(e){let n=e.data||[];e.id!=null&&n.push(this.ack(e.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){let n=this._anyListeners.slice();for(let r of n)r.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){let n=this,r=!1;return function(...i){r||(r=!0,n.packet({type:Q.ACK,id:e,data:i}))}}onack(e){let n=this.acks[e.id];typeof n=="function"&&(n.apply(this,e.data),delete this.acks[e.id])}onconnect(e,n){this.id=e,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Q.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){let n=this._anyListeners;for(let r=0;r0&&t.jitter<=1?t.jitter:0,this.attempts=0}wr.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),n=Math.floor(e*this.jitter*t);t=Math.floor(e*10)&1?t+n:t-n}return Math.min(t,this.max)|0};wr.prototype.reset=function(){this.attempts=0};wr.prototype.setMin=function(t){this.ms=t};wr.prototype.setMax=function(t){this.max=t};wr.prototype.setJitter=function(t){this.jitter=t};var Ii=class extends le{constructor(e,n){var r;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(n=e,e=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,pn(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new wr({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=e;let i=n.parser||lh;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var n;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(n=this.backoff)===null||n===void 0||n.setMin(e),this)}randomizationFactor(e){var n;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(n=this.backoff)===null||n===void 0||n.setJitter(e),this)}reconnectionDelayMax(e){var n;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(n=this.backoff)===null||n===void 0||n.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new Vc(this.uri,this.opts);let n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;let i=st(n,"open",function(){r.onopen(),e&&e()}),o=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),e?e(a):this.maybeReconnectOnOpen()},s=st(n,"error",o);if(this._timeout!==!1){let a=this._timeout,c=this.setTimeoutFn(()=>{i(),o(new Error("timeout")),n.close()},a);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}return this.subs.push(i),this.subs.push(s),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let e=this.engine;this.subs.push(st(e,"ping",this.onping.bind(this)),st(e,"data",this.ondata.bind(this)),st(e,"error",this.onerror.bind(this)),st(e,"close",this.onclose.bind(this)),st(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(n){this.onclose("parse error",n)}}ondecoded(e){_r(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,n){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new Ei(this,e,n),this.nsps[e]=r),r}_destroy(e){let n=Object.keys(this.nsps);for(let r of n)if(this.nsps[r].active)return;this._close()}_packet(e){let n=this.encoder.encode(e);for(let r=0;re()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let n=this.backoff.duration();this._reconnecting=!0;let r=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(i=>{i?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",i)):e.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}};var zo={};function jc(t,e){typeof t=="object"&&(e=t,t=void 0),e=e||{};let n=l0(t,e.path||"/socket.io"),r=n.source,i=n.id,o=n.path,s=zo[i]&&o in zo[i].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||s,c;return a?c=new Ii(r,e):(zo[i]||(zo[i]=new Ii(r,e)),c=zo[i]),n.query&&!e.query&&(e.query=n.queryKey),c.socket(n.path,e)}Object.assign(jc,{Manager:Ii,Socket:Ei,io:jc,connect:jc});var v1=["alert"],_1=t=>({"animation-duration":t});function w1(t,e){if(t&1&&(y(0,"div",9),ke(1,"span",10),v()),t&2){let n=g(2);p(),m("ngStyle",On(1,_1,(n.timeout+350)/1e3+"s"))}}function b1(t,e){if(t&1&&ke(0,"div"),t&2){let n=g(3);cr(n.icon)}}function C1(t,e){if(t&1&&(y(0,"div",11),T(1,b1,1,3,"div",12),y(2,"div",13),A(3),v()()),t&2){let n=g(2);p(),m("ngIf",n.icon),p(2),Ie(n.text)}}function D1(t,e){if(t&1){let n=W();y(0,"button",15),N("click",function(){let i=P(n).$implicit;return g(3).remove(),R(i.callback&&i.callback())}),A(1),v()}if(t&2){let n=e.$implicit;p(),de(" ",n.text," ")}}function E1(t,e){if(t&1&&(y(0,"div"),T(1,D1,2,1,"button",14),v()),t&2){let n=g(2);p(),m("ngForOf",n.buttons)}}function I1(t,e){if(t&1){let n=W();y(0,"div",16),N("click",function(){P(n);let i=g(2);return R(i.remove())}),v()}}function x1(t,e){if(t&1&&(y(0,"div",2)(1,"div",3,0),T(3,w1,2,3,"div",4),y(4,"div",5),T(5,C1,4,2,"div",6)(6,E1,2,1,"div",7)(7,I1,1,0,"div",8),v()()()),t&2){let n=g();he("_close",n.delete_animation),m("ngClass",n.class),p(),he("waw-alert-color-blue",n.type=="info")("waw-alert-color-red",n.type=="error")("waw-alert-color-green",n.type=="success")("waw-alert-color-orange",n.type=="warning")("waw-alert-color-yellow",n.type=="question"),p(2),m("ngIf",n.progress),p(2),m("ngIf",!n.component),p(),m("ngIf",!n.component&&n.type=="question"),p(),m("ngIf",n.closable)}}function M1(t,e){if(t&1){let n=W();y(0,"span",3),N("click",function(){P(n);let i=g();return R(i.close())}),A(1,"\xD7"),v()}}function S1(t,e){if(t&1){let n=W();_e(0),y(1,"input",2,0),N("change",function(i){let o=P(n).$implicit,s=Tt(2);return g().fs.change(i,o),R(s.value="")}),v(),we()}if(t&2){let n=e.$implicit;p(),m("id",n.id)("hidden",!0)("accept",n.accept||n.part&&"image/*"||"")("multiple",n.multiple&&!0||"")}}var Bn=new M("config"),xi={meta:{useTitleSuffix:!1,warnMissingGuard:!0,defaults:{}},socket:!1,http:{url:"",headers:{}},store:{prefix:""}},uh={alerts:{},text:"",type:"info",class:"",progress:!0,position:"bottomRight",timeout:5e3,closable:!0,buttons:[]};String.prototype.capitalize||(String.prototype.capitalize=function(){return this.length>0?this.charAt(0).toUpperCase()+this.slice(1).toLowerCase():""});var Ce=(()=>{class t{platformId;ssr=!1;localStorage;navigator;document;window;constructor(n){this.platformId=n,this.ssr=hr(this.platformId),hr(this.platformId)?(this.localStorage={getItem:()=>{},setItem:()=>{},removeItem:()=>{},clear:()=>{}},this.document={querySelectorAll:()=>{},addEventListener:()=>{},removeEventListener:()=>{},documentElement:{},body:{}},this.window={location:{host:""},addEventListener:()=>{},removeEventListener:()=>{},setTimeout:()=>{}},this.navigator={userAgent:"",platform:""}):(this.localStorage=localStorage,this.document=document,this.window=window,this.navigator=navigator),this.detectDevice()}ota(n,r=!1){if(Array.isArray(n))return n;if(typeof n!="object"||n===null)return[];let i=[];for(let o in n)n.hasOwnProperty(o)&&(n[o]||typeof n[o]=="number"||typeof n[o]=="boolean")&&(r?i.push(o):i.push(n[o]));return i}splice(n,r,i="_id"){if(!Array.isArray(n)||!Array.isArray(r))return r;let o=new Set(n.map(s=>s[i]));return r.filter(s=>!o.has(s[i]))}ids2id(...n){return n.sort((r,i)=>Number(r.toString().substring(0,8))>Number(i.toString().substring(0,8))?1:-1),n.join()}_afterWhile={};afterWhile(n,r,i=1e3){typeof n=="function"&&(r=n,n="common"),typeof r=="function"&&typeof i=="number"&&(typeof n=="string"?(clearTimeout(this._afterWhile[n]),this._afterWhile[n]=this.window.setTimeout(r,i)):typeof n=="object"?(clearTimeout(n.__afterWhile),n.__afterWhile=this.window.setTimeout(r,i)):console.warn("badly configured after while"))}copy(n,r){for(let i in n)typeof n[i]!="object"||n[i]instanceof Date||Array.isArray(n[i])||n[i]===null?r[i]=n[i]:((typeof r[i]!="object"||r[i]instanceof Date||Array.isArray(r[i])||r[i]===null)&&(r[i]={}),this.copy(n[i],r[i]))}device="";detectDevice(){let n=this.navigator.userAgent||this.navigator.vendor||this.window.opera;/windows phone/i.test(n)?this.device="Windows Phone":/android/i.test(n)?this.device="Android":/iPad|iPhone|iPod/.test(n)&&!this.window.MSStream?this.device="iOS":this.device="Web"}isMobile(){return this.device==="Windows Phone"||this.device==="Android"||this.device==="iOS"}isTablet(){return this.device==="iOS"&&/iPad/.test(navigator.userAgent)}isWeb(){return this.device==="Web"}isAndroid(){return this.device==="Android"}isIos(){return this.device==="iOS"}version="1.0.0";appVersion="";dateVersion="";setVersion(){this.version=this.appVersion||"",this.version+=this.version&&this.dateVersion?" ":"",this.version+=this.dateVersion||""}setAppVersion(n){this.appVersion=n,this.setVersion()}setDateVersion(n){this.dateVersion=n,this.setVersion()}_signals={};emit(n,r){this._signals[n]||(this._signals[n]=new ue),this._signals[n].next(r)}on(n){return this._signals[n]||(this._signals[n]=new ue),this._signals[n].asObservable()}off(n){this._signals[n]&&(this._signals[n].complete(),delete this._signals[n])}_completed={};_completeResolvers={};complete(n){this._completed[n]=!0,this._completeResolvers[n]&&(this._completeResolvers[n].forEach(r=>r()),this._completeResolvers[n]=[])}onComplete(n){return this._completed[n]?Promise.resolve():new Promise(r=>{this._completeResolvers[n]||(this._completeResolvers[n]=[]),this._completeResolvers[n].push(r)})}completed(n){return!!this._completed[n]}_locked={};_unlockResolvers={};lock(n){this._locked[n]=!0,this._unlockResolvers[n]||(this._unlockResolvers[n]=[])}unlock(n){this._locked[n]=!1,this._unlockResolvers[n]&&(this._unlockResolvers[n].forEach(r=>r()),this._unlockResolvers[n]=[])}onUnlock(n){return this._locked[n]?new Promise(r=>{this._unlockResolvers[n]||(this._unlockResolvers[n]=[]),this._unlockResolvers[n].push(r)}):Promise.resolve()}locked(n){return!!this._locked[n]}static \u0275fac=function(r){return new(r||t)(_(gt))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),qo=t=>typeof t<"u",g0=(()=>{class t{router;meta;core;titleService;config;_meta;constructor(n,r,i,o,s){this.router=n,this.meta=r,this.core=i,this.titleService=o,this.config=s,this.config=this.config||xi,this._meta=this.config.meta||{},this._warnMissingGuard()}setDefaults(n){this._meta.defaults=n}setTitle(n,r){let i=qo(n)?n:this._meta.defaults.title||"";return this._meta.useTitleSuffix&&(i+=qo(r)?r:this._meta.defaults.titleSuffix||""),this._updateMetaTag("title",i),this._updateMetaTag("og:title",i),this.titleService.setTitle(i),this}setLink(n){return Object.keys(n).forEach(r=>{let i=this.core.document.createElement("link");i.setAttribute("rel",r),i.setAttribute("href",n[r]),this.core.document.head.appendChild(i)}),this}setTag(n,r,i){if(n==="title"||n==="titleSuffix")throw new Error(`Attempt to set ${n} through 'setTag': 'title' and 'titleSuffix' are reserved tag names. Please use 'MetaService.setTitle' instead`);let o=qo(r)?r:this._meta.defaults[n]||"";return this._updateMetaTag(n,o,i),n==="description"&&(this._updateMetaTag("og:description",o,i),this._updateMetaTag("twitter:description",o,i)),this}_updateMetaTag(n,r,i){i=i||(n.startsWith("og:")||n.startsWith("twitter:")?"property":"name"),this.meta.updateTag({[i]:n,content:r})}removeTag(n,r){r=r||(n.startsWith("og:")||n.startsWith("twitter:")?"property":"name"),this.meta.removeTag(`${r}="${n}"`)}_warnMissingGuard(){if(qo(this._meta.warnMissingGuard)&&!this._meta.warnMissingGuard)return;let n=!!Object.keys(this._meta.defaults).length,r=o=>o&&o.IDENTIFIER==="MetaGuard",i=!1;this.router.config.forEach(o=>{let s=o.data&&o.data.meta;!qo(o.redirectTo)&&(n||s)&&!(o.canActivate||[]).some(r)&&(console.warn(`Route with path "${o.path}" has ${s?"":"default "}meta tags, but does not use MetaGuard. Please add MetaGuard to the canActivate array in your route configuration`),i=!0)}),i&&console.warn("To disable these warnings, set metaConfig.warnMissingGuard: false in your MetaConfig passed to MetaModule.forRoot()")}static \u0275fac=function(r){return new(r||t)(_(ot),_(Iv),_(Ce),_(Ja),_(Bn,8))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),T1=(()=>{class t{metaService;config;static IDENTIFIER="MetaGuard";_meta;constructor(n,r){this.metaService=n,this.config=r,this._meta=r.meta,this.config||(this.config=xi)}canActivate(n,r){return this._processRouteMetaTags(n.data&&n.data.meta),!0}_processRouteMetaTags(n={}){n.disableUpdate||(n.title&&this.metaService.setTitle(n.title,n.titleSuffix),Array.isArray(n.links)?this.metaService.setLink(n.links):typeof n.links=="string"&&this.metaService.setLink(n.links.split(" ")),Array.isArray(this._meta.defaults?.links)?this.metaService.setLink(this._meta.defaults?.links):typeof this._meta.defaults?.links=="string"&&this.metaService.setLink(this._meta.defaults?.links.split(" ")),Object.keys(n).forEach(r=>{r==="title"||r==="titleSuffix"||r==="links"||Object.keys(n[r]).forEach(i=>{this.metaService.setTag(i,n[r][i],r)})}),Object.keys(this._meta.defaults).forEach(r=>{r in n||r==="title"||r==="titleSuffix"||r==="links"||this.metaService.setTag(r,this._meta.defaults[r])}))}static \u0275fac=function(r){return new(r||t)(_(g0),_(Bn,8))};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})(),A1=(()=>{class t{core;alert;component;text="";class="";type="info";progress=!0;position="bottomRight";icon="";timeout=5e3;close;closable=!0;buttons=[];constructor(n){this.core=n,setTimeout(()=>{if(this.timeout){let r=JSON.parse(JSON.stringify(this.timeout)),i=setTimeout(()=>{this.remove()},r),o=new Date;this.alert.nativeElement.addEventListener("mouseenter",()=>{clearTimeout(i),r-=new Date().getTime()-o.getTime()},!1),this.alert.nativeElement.addEventListener("mouseleave",()=>{o=new Date,clearTimeout(i),i=n.window.setTimeout(()=>{this.remove()},r)},!1)}})}delete_animation=!1;remove(){this.delete_animation=!0,setTimeout(()=>{this.close(),this.delete_animation=!1},350)}static \u0275fac=function(r){return new(r||t)(E(Ce))};static \u0275cmp=fe({type:t,selectors:[["alert"]],viewQuery:function(r,i){if(r&1&&ti(v1,5),r&2){let o;Xe(o=et())&&(i.alert=o.first)}},decls:1,vars:1,consts:[["alert",""],["class","waw-alert-container height",3,"ngClass","_close",4,"ngIf"],[1,"waw-alert-container","height",3,"ngClass"],[1,"waw-alert","bounceInUp","waw-alert-theme-light","waw-alert-animateInside","waw-alert-opened"],["class","waw-alert__progress",4,"ngIf"],[1,"waw-alert-body"],["class","waw-alert-texts",4,"ngIf"],[4,"ngIf"],["class","waw-alert__close",3,"click",4,"ngIf"],[1,"waw-alert__progress"],[3,"ngStyle"],[1,"waw-alert-texts"],[3,"class",4,"ngIf"],[1,"waw-alert-message","slideIn"],["class","alert-btn",3,"click",4,"ngFor","ngForOf"],[1,"alert-btn",3,"click"],[1,"waw-alert__close",3,"click"]],template:function(r,i){r&1&&T(0,x1,8,17,"div",1),r&2&&m("ngIf",i.text)},dependencies:[dn,Ue,nt,tv],styles:['@keyframes _ngcontent-%COMP%_iziT-bounceInUp{0%{opacity:0;transform:translateY(200px)}50%{opacity:1;transform:translateY(-10px)}70%{transform:translateY(5px)}to{transform:translateY(0)}}@keyframes _ngcontent-%COMP%_iziT-fadeIn{0%{opacity:0}to{opacity:1}}@keyframes _ngcontent-%COMP%_iziT-fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes _ngcontent-%COMP%_iziT-fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes _ngcontent-%COMP%_iziT-bounceInLeft{0%{opacity:0;transform:translate(280px)}50%{opacity:1;transform:translate(-20px)}70%{transform:translate(10px)}to{transform:translate(0)}}@keyframes _ngcontent-%COMP%_iziT-bounceInDown{0%{opacity:0;transform:translateY(-200px)}50%{opacity:1;transform:translateY(10px)}70%{transform:translateY(-5px)}to{transform:translateY(0)}}.alert-wrapper[_ngcontent-%COMP%]{position:fixed;bottom:50px;left:0;width:100%;height:60px;overflow:hidden}.alert[_ngcontent-%COMP%]{display:flex;-webkit-box-align:center;align-items:center;width:auto;background:#3aed92;color:#fff;max-width:700px;margin:0 auto;transform:translateY(300px) scale(0);transition:.3s all ease-in-out}.alert._show[_ngcontent-%COMP%]{transform:translateY(0) scale(1);transition:.3s all ease-in-out}.alert-icon[_ngcontent-%COMP%]{min-width:60px;min-height:60px;position:relative;display:flex;justify-content:center;align-items:center;background-color:#2bd17d}.alert-icon[_ngcontent-%COMP%]:before{content:"";position:absolute;width:25px;height:25px;border-radius:50%;border:2px solid #fff}.alert-icon[_ngcontent-%COMP%]:after{content:"";position:absolute;top:22px;width:7px;height:11px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}.alert-text[_ngcontent-%COMP%]{padding:0 20px;word-break:break-all;overflow:auto;height:60px}.alert-text[_ngcontent-%COMP%] .text-block[_ngcontent-%COMP%]{width:99%}.alert-text[_ngcontent-%COMP%] .text-block__text[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;white-space:pre}.alert-close[_ngcontent-%COMP%]{min-width:50px;margin-left:auto;font-size:25px;display:flex;justify-content:center;align-items:center}.font-bold[_ngcontent-%COMP%]{font-weight:700}.waw-alert__progress[_ngcontent-%COMP%]{bottom:0;position:absolute;width:100%;margin-bottom:0;border-radius:50px}.waw-alert__progress[_ngcontent-%COMP%]:hover span[_ngcontent-%COMP%]{animation-play-state:paused}.waw-alert__progress[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;width:100%;height:2px;background-color:#a5a5a5ed;animation-name:_ngcontent-%COMP%_waw-alert-progress;animation-duration:10s;border-radius:50px}.waw-alert__progress[_ngcontent-%COMP%] span._red[_ngcontent-%COMP%]{background-color:#ffafb4}.waw-alert__progress[_ngcontent-%COMP%] span._green[_ngcontent-%COMP%]{background-color:#a6efb8}.waw-alert__progress[_ngcontent-%COMP%] span._yellow[_ngcontent-%COMP%]{background-color:#fff9b2}.waw-alert__progress[_ngcontent-%COMP%] span._orange[_ngcontent-%COMP%], .waw-alert__progress[_ngcontent-%COMP%] span._blue[_ngcontent-%COMP%]{background-color:#ffcfa5}.waw-alert__progress[_ngcontent-%COMP%] span._white[_ngcontent-%COMP%]{background-color:#fff}.waw-alert__progress[_ngcontent-%COMP%] span._black[_ngcontent-%COMP%]{background-color:#000}.waw-alert[_ngcontent-%COMP%]:hover .waw-alert__progress[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{animation-play-state:paused}.waw-alert__close[_ngcontent-%COMP%]{width:15px;height:15px;opacity:.3;position:relative;order:2}.waw-alert__close[_ngcontent-%COMP%]:hover{opacity:1}.waw-alert__close[_ngcontent-%COMP%]:before, .waw-alert__close[_ngcontent-%COMP%]:after{cursor:pointer;position:absolute;left:15px;content:" ";height:12px;width:2px;background-color:#47525d}.waw-alert__close[_ngcontent-%COMP%]:before{transform:rotate(45deg)}.waw-alert__close[_ngcontent-%COMP%]:after{transform:rotate(-45deg)}@keyframes _ngcontent-%COMP%_waw-alert-progress{0%{width:100%}to{width:0%}}.waw-alert-container[_ngcontent-%COMP%]{font-size:0;height:100px;width:100%;transform:translateZ(0);backface-visibility:hidden;transition:.3s all ease-in-out;opacity:1}.waw-alert-container._close[_ngcontent-%COMP%]{opacity:0;transition:.3s all ease-in-out}.waw-alert[_ngcontent-%COMP%]{display:inline-block;clear:both;position:relative;font-family:Lato,Tahoma,Arial;font-size:14px;padding:8px 25px 9px 0;background:#eeeeeee6;border-color:#eeeeeee6;width:100%;pointer-events:all;cursor:default;transform:translate(0);-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;min-height:54px}.waw-alert[_ngcontent-%COMP%] > .waw-alert-progressbar[_ngcontent-%COMP%]{position:absolute;left:0;bottom:0;width:100%;z-index:1;background:#fff3}.waw-alert[_ngcontent-%COMP%] > .waw-alert-progressbar[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:2px;width:100%;background:#0000004d;border-radius:0 0 3px 3px}.waw-alert[_ngcontent-%COMP%] > .waw-alert-close[_ngcontent-%COMP%]{position:absolute;right:0;top:0;border:0;padding:0;opacity:.6;width:42px;height:100%;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAJPAAACTwBcGfW0QAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAD3SURBVFiF1ZdtDoMgDEBfdi4PwAX8vLFn0qT7wxantojKupmQmCi8R4tSACpgjC2ICCUbEBa8ingjsU1AXRBeR8aLN64FiknswN8CYefBBDQ3whuFESy7WyQMeC0ipEI0A+0FeBvHUFN8xPaUhAH/iKoWsnXHGegy4J0yxialOfaHJAz4bhRzQzgDvdGnz4GbAonZbCQMuBm1K/kcFu8Mp1N2cFFpsxsMuJqqbIGExGl4loARajU1twskJLLhIsID7+tvUoDnIjTg5T9DPH9EBrz8rxjPzciAl9+O8SxI8CzJ8CxKFfh3ynK8Dyb8wNHM/XDqejx/AtNyPO87tNybAAAAAElFTkSuQmCC) no-repeat 50% 50%;background-size:8px;cursor:pointer;outline:none}.waw-alert[_ngcontent-%COMP%] > .waw-alert-close[_ngcontent-%COMP%]:hover{opacity:1}.waw-alert[_ngcontent-%COMP%] > .waw-alert-body[_ngcontent-%COMP%]{position:relative;padding:0 0 0 10px;height:auto;min-height:36px;margin:0 0 0 15px;text-align:left;display:flex;justify-content:space-between;align-items:center}.waw-alert[_ngcontent-%COMP%] > .waw-alert-body[_ngcontent-%COMP%]:after{content:"";display:table;clear:both}.waw-alert[_ngcontent-%COMP%] > .waw-alert-body[_ngcontent-%COMP%] .waw-alert-texts[_ngcontent-%COMP%]{margin:10px 0 0;padding-right:2px;display:inline-block;float:left;display:flex;justify-content:space-between;align-items:center}.waw-alert[_ngcontent-%COMP%] > .waw-alert-body[_ngcontent-%COMP%] .waw-alert-icon[_ngcontent-%COMP%]{height:100%;position:absolute;left:0;top:50%;display:table;font-size:23px;line-height:24px;margin-top:-12px;color:#000;width:24px;height:24px}.waw-alert[_ngcontent-%COMP%] > .waw-alert-body[_ngcontent-%COMP%] .waw-alert-title[_ngcontent-%COMP%]{padding:0;margin:0 10px 0 0;line-height:16px;font-size:14px;text-align:left;float:left;color:#000;white-space:normal;font-weight:700}.waw-alert[_ngcontent-%COMP%] > .waw-alert-body[_ngcontent-%COMP%] .waw-alert-message[_ngcontent-%COMP%]{padding:0;font-size:14px;line-height:16px;text-align:left;float:left;color:#0009;white-space:normal}@media only screen and (min-width: 568px){.waw-alert-wrapper[_ngcontent-%COMP%]{padding:10px 15px}.waw-alert[_ngcontent-%COMP%]{margin:5px;border-radius:3px;width:auto}.waw-alert[_ngcontent-%COMP%]:after{content:"";z-index:-1;position:absolute;top:0;left:0;width:100%;height:100%;border-radius:3px;box-shadow:inset 0 -10px 20px -10px #0003,inset 0 0 5px #0000001a,0 8px 8px -5px #00000040}.waw-alert[_ngcontent-%COMP%]:not(.waw-alert-rtl) .waw-alert-cover[_ngcontent-%COMP%]{border-radius:3px 0 0 3px}.waw-alert.waw-alert-rtl[_ngcontent-%COMP%] .waw-alert-cover[_ngcontent-%COMP%]{border-radius:0 3px 3px 0}.waw-alert.waw-alert-color-dark[_ngcontent-%COMP%]:after{box-shadow:inset 0 -10px 20px -10px #ffffff4d,0 10px 10px -5px #00000040}.waw-alert.waw-alert-balloon[_ngcontent-%COMP%] .waw-alert-progressbar[_ngcontent-%COMP%]{background:transparent}.waw-alert.waw-alert-balloon[_ngcontent-%COMP%]:after{box-shadow:0 10px 10px -5px #00000040,inset 0 10px 20px -5px #00000040}.waw-alert-target[_ngcontent-%COMP%] .waw-alert[_ngcontent-%COMP%]:after{box-shadow:inset 0 -10px 20px -10px #0003,inset 0 0 5px #0000001a}}.waw-alert.waw-alert-theme-dark[_ngcontent-%COMP%]{background:#565c70;border-color:#565c70}.waw-alert.waw-alert-theme-dark[_ngcontent-%COMP%] .waw-alert-title[_ngcontent-%COMP%]{color:#fff}.waw-alert.waw-alert-theme-dark[_ngcontent-%COMP%] .waw-alert-message[_ngcontent-%COMP%]{color:#ffffffb3;font-weight:300}.waw-alert.waw-alert-theme-dark[_ngcontent-%COMP%] .waw-alert-icon[_ngcontent-%COMP%]{color:#fff}.waw-alert.waw-alert-color-red[_ngcontent-%COMP%]{background:#ffafb4e6;border-color:#ffafb4e6}.waw-alert.waw-alert-color-orange[_ngcontent-%COMP%]{background:#ffcfa5e6;border-color:#ffcfa5e6}.waw-alert.waw-alert-color-yellow[_ngcontent-%COMP%]{background:#fff9b2e6;border-color:#fff9b2e6}.waw-alert.waw-alert-color-blue[_ngcontent-%COMP%]{background:#9ddeffe6;border-color:#9ddeffe6}.waw-alert.waw-alert-color-green[_ngcontent-%COMP%]{background:#a6efb8e6;border-color:#a6efb8e6}.waw-alert.slideIn[_ngcontent-%COMP%], .waw-alert[_ngcontent-%COMP%] .slideIn[_ngcontent-%COMP%]{-webkit-animation:iziT-slideIn 1s cubic-bezier(.16,.81,.32,1) both;-moz-animation:iziT-slideIn 1s cubic-bezier(.16,.81,.32,1) both;animation:iziT-slideIn 1s cubic-bezier(.16,.81,.32,1) both}.waw-alert.bounceInLeft[_ngcontent-%COMP%]{-webkit-animation:_ngcontent-%COMP%_iziT-bounceInLeft .7s ease-in-out both;animation:_ngcontent-%COMP%_iziT-bounceInLeft .7s ease-in-out both}.waw-alert.bounceInRight[_ngcontent-%COMP%]{-webkit-animation:iziT-bounceInRight .85s ease-in-out both;animation:iziT-bounceInRight .85s ease-in-out both}.waw-alert.bounceInDown[_ngcontent-%COMP%]{-webkit-animation:_ngcontent-%COMP%_iziT-bounceInDown .7s ease-in-out both;animation:_ngcontent-%COMP%_iziT-bounceInDown .7s ease-in-out both}.waw-alert.bounceInUp[_ngcontent-%COMP%]{-webkit-animation:_ngcontent-%COMP%_iziT-bounceInUp .7s ease-in-out both;animation:_ngcontent-%COMP%_iziT-bounceInUp .7s ease-in-out both}.height[_ngcontent-%COMP%]{height:auto!important}']})}return t})(),O1=(()=>{class t{class="";size="flex";closable=!0;close;onOpen;timestart;timeout;showModal=!1;allowClose=!0;onClickOutside;ngOnInit(){typeof this.onClickOutside!="function"&&(this.onClickOutside=this.close),typeof this.onOpen=="function"&&this.onOpen(),window.addEventListener("popstate",this.popStateListener.bind(this))}ngAfterViewInit(){setTimeout(()=>{this.showModal=!0},this.timestart||0)}ngOnDestroy(){window.removeEventListener("popstate",this.popStateListener.bind(this))}popStateListener(n){this.close()}static \u0275fac=function(r){return new(r||t)};static \u0275cmp=fe({type:t,selectors:[["lib-modal"]],decls:4,vars:3,consts:[[1,"modal",3,"click","hidden","ngClass"],[1,"modal-content",3,"click"],["class","close",3,"click",4,"ngIf"],[1,"close",3,"click"]],template:function(r,i){r&1&&(y(0,"div",0),N("click",function(){return i.onClickOutside()}),y(1,"div",1),N("click",function(s){return s.stopPropagation()}),ke(2,"div"),T(3,M1,2,0,"span",2),v()()),r&2&&(m("hidden",!i.showModal)("ngClass",i.class+" "+i.size),p(3),m("ngIf",i.closable))},dependencies:[dn,nt],styles:[".modal[_ngcontent-%COMP%]{position:fixed;z-index:9999;left:0;top:0;width:100%;height:100%;overflow-y:auto;background-color:#000;background-color:#00000080}.modal-content[_ngcontent-%COMP%]{position:relative;background-color:#fff;margin:15% auto;padding:20px;border:1px solid #888;min-width:20%;max-width:80%}.close[_ngcontent-%COMP%]{color:#aaa;position:absolute;right:10px;top:3px;font-size:32px;line-height:1}.close[_ngcontent-%COMP%]:hover, .close[_ngcontent-%COMP%]:focus{color:#000;text-decoration:none;cursor:pointer}"]})}return t})();var Uc=(()=>{class t{elementRef;clickOutside=new H;constructor(n){this.elementRef=n}onClick(n){this.elementRef.nativeElement.contains(n.target)||this.clickOutside.emit(n)}static \u0275fac=function(r){return new(r||t)(E(Ee))};static \u0275dir=ie({type:t,selectors:[["","clickOutside",""]],hostBindings:function(r,i){r&1&&N("click",function(s){return i.onClick(s)},!1,Cm)},outputs:{clickOutside:"clickOutside"}})}return t})();var $c=(()=>{class t{c=0;transform(n,r,i,o,s,a){if(!r)return n;if(typeof i=="number"&&(o=i,i=null),s||!r)return o&&Array.isArray(n)?n.slice(0,o):n||[];let c=[],l={};if(!Array.isArray(r)&&typeof r=="object"){let f=[];for(let h in r)r[h]&&f.push(h);r=f}typeof r=="string"&&(r=[r]),i||(i=["name"]),typeof i=="string"&&(i=i.split(" "));let u=function(f,h,w,O){if(f){if(h.indexOf(".")>-1){let x=h.split("."),I=x.shift();if(Array.isArray(f[I])){for(let K=0;K-1||r[x].toLowerCase().indexOf(f[h].toString().toLowerCase())>-1)){l[O]||c.push(w),l[O]=!0,I=!0;break}if(I)break}}},d=function(f,h){for(let w=0;w{class t{now=new Date().getTime();refreshNow(){this.now=new Date().getTime()}static \u0275fac=function(r){return new(r||t)};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Bc=class extends N1{_config;_http;_store;_alert;_core;_url="/api/";_docs=[];_perPage=20;_filteredDocumentsCallbacks=[];constructor(e,n,r,i,o){super(),this._config=e,this._http=n,this._store=r,this._alert=i,this._core=o,this._url+=this._config.name,this._store.getJson("docs_"+this._config.name,s=>{Array.isArray(s)&&(this._docs.push(...s),this._filterDocuments())})}setDocs(){this._store.setJson("docs_"+this._config.name,this._docs)}getDocs(){return this._docs}addDocs(e){if(Array.isArray(e))for(let n of e)this.addDoc(n)}addDoc(e){this._config.replace&&this._config.replace(e);let n=this._docs.find(r=>this._id(r)===this._id(e));n?(this._core.copy(e,n),this._core.copy(n,e)):this._docs.push(e),this.setDocs()}new(e={}){return z(C({},e),{_id:Date.now().toString(),__created:!1,__modified:!1})}doc(e){return this._docs.find(n=>this._id(n)===e)||this.new()}setPerPage(e){this._perPage=e}get(e={},n={}){let r=`${this._url}/get${n.name||""}`,i=typeof e.page=="number"?`?skip=${this._perPage*(e.page-1)}&limit=${this._perPage}`:"",o=this._http.get(`${r}${i}`);return o.subscribe({next:s=>{s.forEach(a=>this.addDoc(a)),n.callback&&n.callback(s),typeof e.page!="number"&&this._filterDocuments()},error:s=>{n.errCallback&&n.errCallback(s)}}),o}create(e,n={}){if(e.__created)return;e.__created=!0;let r=this._http.post(`${this._url}/create${n.name||""}`,e);return r.subscribe({next:i=>{i?(this._core.copy(i,e),this.addDoc(e),this._filterDocuments(),n.callback&&n.callback(e),n.alert&&this._alert.show({unique:`${this._config.name}create`,text:n.alert})):(e.__created=!1,n.errCallback&&n.errCallback(i)),this._core.emit(`${this._config.name}_create`,e)},error:i=>{e.__created=!1,n.errCallback&&n.errCallback(i)}}),r}fetch(e={},n={}){let r=this._http.post(`${this._url}/fetch${n.name||""}`,e);return r.subscribe({next:i=>{i?(this.addDoc(i),this._filterDocuments(),n.callback&&n.callback(i),n.alert&&this._alert.show({unique:`${this._config.name}create`,text:n.alert})):n.errCallback&&n.errCallback(i)},error:i=>{n.errCallback&&n.errCallback(i)}}),r}updateAfterWhile(e,n={}){e.__modified=!0,this._core.afterWhile(this._id(e),()=>{this.update(e,n)})}update(e,n={}){e.__modified=!0;let r=this._http.post(`${this._url}/update${n.name||""}`,e);return r.subscribe({next:i=>{i?(e.__modified=!1,this._core.copy(i,e),n.callback&&n.callback(e),n.alert&&this._alert.show({unique:`${this._config.name}update`,text:n.alert})):n.errCallback&&n.errCallback(i),this._core.emit(`${this._config.name}_update`,e)},error:i=>{n.errCallback&&n.errCallback(i)}}),r}unique(e,n={}){e.__modified=!0;let r=this._http.post(`${this._url}/unique${n.name||""}`,e);return r.subscribe({next:i=>{i?(e.__modified=!1,e[n.name]=i,n.callback&&n.callback(e),n.alert&&this._alert.show({unique:`${this._config.name}unique`,text:n.alert})):n.errCallback&&n.errCallback(i),this._core.emit(`${this._config.name}_unique`,e)},error:i=>{n.errCallback&&n.errCallback(i)}}),r}delete(e,n={}){let r=this._http.post(`${this._url}/delete${n.name||""}`,e);return r.subscribe({next:i=>{i?(this._docs.splice(this._docs.findIndex(o=>this._id(o)!==this._id(e)),1),this.setDocs(),this._filterDocuments(),n.callback&&n.callback(e),n.alert&&this._alert.show({unique:`${this._config.name}delete`,text:n.alert})):n.errCallback&&n.errCallback(i),this._core.emit(`${this._config.name}_delete`,e)},error:i=>{n.errCallback&&n.errCallback(i)}}),r}filteredDocuments(e,n="author",r,i=(o,s)=>o[this._id(o)]s[this._id(s)]?1:0){let o=()=>{for(let s in e)for(let a=e[s].length-1;a>=0;a--){let c=typeof n=="function"?n(e[s][a]):n,l=e[s][a];this._docs.find(u=>Array.isArray(u[c])?u[c].includes(l[this._id(u)]):u[c]===l[this._id(u)])||e[s].splice(a,1)}for(let s of this._docs){let a=typeof n=="function"?n(s):n;(typeof r=="function"?!r(s):Array.isArray(s[a])?!s[a]?.length:!s[a])||(typeof n=="function"?n(s)&&!e[s[a]].find(c=>c._id===s._id)&&e[s[a]].push(s):Array.isArray(s[a])?s[a].forEach(c=>{e[c]=e[c]||[],e[c].find(l=>l._id===s._id)||e[c].push(s)}):(e[s[a]]=e[s[a]]||[],e[s[a]].find(c=>c._id===s._id)||e[s[a]].push(s)))}for(let s in e)e[s].sort(i)};return this._filteredDocumentsCallbacks.push(o),o}_id(e){return e[this._config._id||"_id"]?.toString()}_filterDocuments(){for(let e of this._filteredDocumentsCallbacks)e()}},Wt=(()=>{class t{config;core;_prefix="";constructor(n,r){this.config=n,this.core=r,this.config=this.config||xi}setPrefix(n){this._prefix=n}set(n,r,i=()=>{},o=()=>{}){if(n=this.applyPrefix(n),this.config.store?.set)this.config.store.set(n,r,i,o);else try{this.core.localStorage.setItem(n,r),i()}catch{o()}}setAsync(n,r){return _t(this,null,function*(){n=this.applyPrefix(n);try{return this.config.store?.set?yield this.config.store.set(n,r):this.core.localStorage.setItem(n,r),!0}catch(i){return console.error(i),!1}})}get(n,r=()=>{},i=()=>{}){if(n=this.applyPrefix(n),this.config.store?.get)this.config.store.get(n,r,i);else{let o=this.core.localStorage.getItem(n)||"";r(o)}}getAsync(n){return _t(this,null,function*(){n=this.applyPrefix(n);try{return this.config.store?.get?yield this.config.store.get(n):this.core.localStorage.getItem(n)||""}catch(r){return console.error(r),""}})}setJson(n,r,i=()=>{},o=()=>{}){this.set(n,JSON.stringify(r),i,o)}setJsonAsync(n,r){return _t(this,null,function*(){return this.setAsync(n,JSON.stringify(r))})}getJson(n,r=()=>{},i=()=>{}){this.get(n,o=>{try{let s=JSON.parse(o);r(s)}catch{r(null)}},i)}getJsonAsync(n){return _t(this,null,function*(){let r=yield this.getAsync(n);try{return JSON.parse(r)}catch(i){return console.error(i),null}})}remove(n,r,i){return _t(this,null,function*(){n=this.applyPrefix(n);try{return this.config.store?.remove?yield this.config.store.remove(n,r,i):this.core.localStorage.removeItem(n),r?.(),!0}catch(o){return console.error(o),i?.(),!1}})}clear(n,r){return _t(this,null,function*(){try{return this.config.store?.clear?yield this.config.store.clear():this.core.localStorage.clear(),n?.(),!0}catch(i){return console.error(i),r?.(),!1}})}applyPrefix(n){return this.config.store?.prefix&&(n=this.config.store.prefix+n),this._prefix&&(n=this._prefix+n),n}static \u0275fac=function(r){return new(r||t)(_(Bn,8),_(Ce))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Mi=(()=>{class t{store;http;_config;errors=[];url="";locked=!1;awaitLocked=[];_http;_headers={};_http_headers=new $e(this._headers);constructor(n,r,i){if(this.store=n,this.http=r,this._config=i,this._http=this._config.http||{},typeof this._http.headers=="object"){for(let o in this._http.headers)this._headers[o]=this._http.headers[o];this._http_headers=new $e(this._headers)}this.store.get("http_url",o=>{this.url=o||this._http.url||""}),this.store.getJson("http_headers",o=>{if(o){for(let s in o)this._headers[s]=o[s];this._http_headers=new $e(this._headers)}})}setUrl(n){this.url=n,this.store.set("http_url",n)}removeUrl(){this.url=this._http.url||"",this.store.remove("http_url")}set(n,r){this._headers[n]=r,this.store.setJson("http_headers",this._headers),this._http_headers=new $e(this._headers)}header(n){return this._headers[n]}remove(n){delete this._headers[n],this._http_headers=new $e(this._headers),this.store.setJson("http_headers",this._headers)}_httpMethod(n,r,i,o){return n==="post"?this.http.post(r,i,o):n==="put"?this.http.put(r,i,o):n==="patch"?this.http.patch(r,i,o):n==="delete"?this.http.delete(r,o):this.http.get(r,o)}_post(n,r,i=a=>{},o={},s="post"){if(typeof o=="function"&&(o={err:o}),o.err||(o.err=l=>{}),this.locked&&!o.skipLock)return new G(l=>{let u=setTimeout(()=>{this._post(n,r,i,o,s).subscribe(l)},100);this.awaitLocked.push(u)});let a=(o.url||this.url)+n;this.prepare_handle(a,r);let c=new Ri(1);return this._httpMethod(s,a,r,{headers:this._http_headers}).pipe(lt(),bt(l=>(this.handleError(o.err,()=>{this._post(n,r,i,o,s).subscribe(c)})(l),c.error(l),Oe))).subscribe({next:l=>{this.response_handle(a,l,()=>i(l)),c.next(l),c.complete()},error:l=>c.error(l),complete:()=>c.complete()}),c.asObservable()}post(n,r,i=s=>{},o={}){return this._post(n,r,i,o)}put(n,r,i=s=>{},o={}){return this._post(n,r,i,o,"put")}patch(n,r,i=s=>{},o={}){return this._post(n,r,i,o,"patch")}delete(n,r=o=>{},i={}){return this._post(n,null,r,i,"delete")}get(n,r=o=>{},i={}){return this._post(n,null,r,i,"get")}clearLocked(){for(let n of this.awaitLocked)clearTimeout(n);this.awaitLocked=[]}lock(){this.locked=!0}unlock(){this.locked=!1}handleError(n,r){return i=>new Promise(o=>{this.err_handle(i,n,r),o()})}err_handle(n,r,i){typeof r=="function"&&r(n);for(let o of this.errors)typeof o=="function"&&o(n,i)}prepare_handle(n,r){}response_handle(n,r,i){typeof i=="function"&&i()}static \u0275fac=function(r){return new(r||t)(_(Wt),_(Kd),_(Bn,8))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),m0=(()=>{class t{store;http;core;data={};socket={emit:(n,r)=>{console.log(n,r,"is not used on sockets")}};config(n,r){if(!this.data["opts"+n]){if(this.data["arr"+n]||(this.data["arr"+n]=[]),this.data["obj"+n]||(this.data["obj"+n]={}),this.data["opts"+n])for(let i in r)this.data["opts"+n][i]=r[i];else this.data["opts"+n]=r=r||{};if(typeof r.use=="string"&&(r.use=r.use.split(" ")),r.query)for(let i in r.query)typeof r.query[i]=="function"&&(r.query[i]={allow:r.query[i]}),this.data["obj"+n][i]=[];if(r.groups){if(typeof r.groups=="string"&&(r.groups=r.groups.split(" ")),Array.isArray(r.groups)){let i=r.groups;r.groups={};for(let o=0;o{s?(this.socket.emit("create",{_id:s._id,part:n}),this.push(n,s),typeof i=="function"&&i(s)):typeof i=="function"&&i(!1)},{url:o.base_url||this.http.url}))}fetch(n,r=void 0,i=void 0){if(r.query&&r.query._id&&!r.force&&this.data["obj"+n][r.query._id])return this.data["obj"+n][r.query._id];typeof r=="function"&&(i=r,r={}),r||(r={}),this.config(n,r);let o="/api/"+n+"/fetch"+(r.name||""),s;if(r.query&&r.query._id&&this.data["obj"+n][r.query._id])s=this.data["obj"+n][r.query._id];else{s={};for(let a in this.data["opts"+n].replace)this.replace(s,a,this.data["opts"+n].replace[a])}return this.http.post(r.url||o,r.query||{},a=>{if(!a)return i&&i(!1);for(let c in a)s[c]=a[c];for(let c in s)s[c]=a[c];this.push(n,s),a&&typeof i=="function"&&i(s)},{url:r.base_url||this.http.url}),s}get(n,r=void 0,i=void 0){typeof r=="function"&&(i=r,r={}),r||(r={}),this.config(n,r);let o="/api/"+n+"/get"+(r.name||"")+(r.param||"");return this.http.get(r.url||o,s=>{if(Array.isArray(s)){for(let a=0;a{a&&this.socket.emit("update",{_id:r._id,part:n}),a&&typeof o=="function"?o(a):typeof o=="function"&&o(!1)},{url:i.base_url||this.http.url})}unique(n,r,i=void 0,o=void 0){typeof i=="function"&&(o=i,i={}),typeof i!="object"&&(i={}),r=this.prepare_update(n,r,i);let s="/api/"+n+"/unique"+(i.name||"");this.http.post(i.url||s,r,a=>{if(a){this.socket.emit("update",{_id:r._id,part:n});let c=this.data["obj"+n][r._id];for(let l in r)c[l]=r[l];this.renew(n,c)}(a||typeof a=="string")&&typeof o=="function"?o(a):typeof o=="function"&&o(!1)},{url:i.base_url||this.http.url})}delete(n,r,i=void 0,o=void 0){if(typeof i=="function"&&(o=i,i={}),typeof i!="object"&&(i={}),i.fields){typeof i.fields=="string"&&(i.fields=i.fields.split(" "));let a={};for(let c=0;c{a&&(this.socket.emit("delete",{_id:r._id,part:n}),this.remove(n,r)),a&&typeof o=="function"?o(a):typeof o=="function"&&o(!1)},{url:i.base_url||this.http.url})}_id(n){typeof n=="function"&&this.http.get("/waw/newId",n)}to_id(n){if(!n)return[];if(Array.isArray(n))n=n.slice();else if(typeof n=="object"){if(n._id)return[n._id];let r=[];for(let i in n)n[i]&&r.push(n[i]._id||n[i]);n=r}for(let r=0;r-1){r=r.split(".");let o=r.shift();return typeof n[o]!="object"?void 0:this.populate(n[o],r.join("."),i)}if(Array.isArray(n[r])){for(let o=n[r].length-1;o>=0;o--)this.data["obj"+i][n[r][o]]?n[r][o]=this.data["obj"+i][n[r][o]]:n[r].splice(o,1);return}else if(typeof n[r]=="string")n[r]=this.data["obj"+i][n[r]]||null;else return}else setTimeout(()=>{this.populate(n,r,i)},100)}}on(n,r){typeof n=="string"&&(n=n.split(" "));for(var i=0;i{this.on(n,r)},100);r(this.data)}track(n,r){return r&&r._id&&r._id||n}sortAscId(){return function(n,r){return n._id>r._id?1:-1}}sortDescId(){return function(n,r){return n._idi[n.field].toLowerCase()?1:r[n.field].toLowerCase()i[n.field].toLowerCase()||!n.next?-1:n.next(r,i)}}sortAscDate(n){return typeof n=="string"&&(n={field:n}),function(r,i){return r[n.field].getTime()>i[n.field].getTime()?1:r[n.field].getTime()i[n.field].getTime()||!n.next?-1:n.next(r,i)}}sortAscNumber(n){return typeof n=="string"&&(n={field:n}),function(r,i){return r[n.field]>i[n.field]?1:r[n.field]i[n.field]||!n.next?-1:n.next(r,i)}}sortAscBoolean(n){return typeof n=="string"&&(n={field:n}),function(r,i){return!r[n.field]&&i[n.field]?1:r[n.field]&&!i[n.field]||!n.next?-1:n.next(r,i)}}sortDescBoolean(n){return typeof n=="string"&&(n={field:n}),function(r,i){return r[n.field]&&!i[n.field]?1:!r[n.field]&&i[n.field]||!n.next?-1:n.next(r,i)}}beArr(n,r){Array.isArray(n)?r(n):r([])}beObj(n,r){(typeof n!="object"||Array.isArray(n)||!n)&&(n={}),r(n)}beDate(n,r){r(new Date(n))}beString(n,r){typeof n!="string"&&(n=""),r(n)}beDoc=(n,r)=>{this.beObj(n,i=>{i._id?r(i):this._id(o=>{i._id=o,r(i)})})};forceArr(n,r){r([])}forceObj(n,r){r({})}forceString(n,r){r("")}forceDoc=(n,r)=>{this._id(i=>{r({_id:i})})};getCreated(n,r,i){r(new Date(parseInt(i._id.substring(0,8),16)*1e3))}replace(n,r,i){if(r.indexOf(".")>-1){r=r.split(".");let o=r.shift();return n[o]&&(typeof n[o]!="object"||Array.isArray(n[o]))?void 0:(n[o]||(n[o]={}),this.replace(n[o],r.join("."),i))}typeof i=="function"&&i(n[r],function(o){n[r]=o},n)}renew(n,r){if(!this.data["obj"+n][r._id])return this.push(n,r);if(this.data["opts"+n].replace)for(let i in this.data["opts"+n].replace)this.replace(r,i,this.data["opts"+n].replace[i]);for(let i in this.data["obj"+n][r._id])this.data["obj"+n][r._id][i]=r[i];for(let i in r)this.data["obj"+n][r._id][i]=r[i];for(let i=0;i{if(a[l]=!0,!!l){if(Array.isArray(this.data["obj"+n][i][l])||(this.data["obj"+n][i][l]=[]),o){for(let u=this.data["obj"+n][i][l].length-1;u>=0;u--)if(this.data["obj"+n][i][l][u]._id==r._id)return;this.data["obj"+n][i][l].push(r)}else for(let u=this.data["obj"+n][i][l].length-1;u>=0;u--)this.data["obj"+n][i][l][u]._id==r._id&&this.data["obj"+n][i][l].splice(u,1);typeof s.sort=="function"&&this.data["obj"+n][i][l].sort(s.sort)}};c(s.field(r,c.bind(this)));for(let l in this.data["obj"+n][i])if(!a[l])for(let u=this.data["obj"+n][i][l].length-1;u>=0;u--)this.data["obj"+n][i][l][u]._id==r._id&&this.data["obj"+n][i][l].splice(u,1)}if(this.data["opts"+n].query)for(let i in this.data["opts"+n].query){let o=!0,s=this.data["opts"+n].query[i];if(typeof s.ignore=="function"&&s.ignore(r)&&(o=!1),typeof s.allow=="function"&&!s.allow(r)&&(o=!1),this.data["obj"+n][i]||(this.data["obj"+n][i]=[]),o){for(let a=this.data["obj"+n][i].length-1;a>=0;a--)if(this.data["obj"+n][i][a]._id==r._id)return;this.data["obj"+n][i].push(r)}else for(let a=this.data["obj"+n][i].length-1;a>=0;a--)this.data["obj"+n][i][a]._id==r._id&&this.data["obj"+n][i].splice(a,1);typeof s.sort=="function"&&this.data["obj"+n][i].sort(s.sort)}}push(n,r){if(this.data["arr"+n]||(this.data["arr"+n]=[]),this.data["obj"+n]||(this.data["obj"+n]={}),this.data["opts"+n]||(this.data["opts"+n]={}),this.data["obj"+n][r._id])return this.renew(n,r);if(this.data["opts"+n].replace)for(let i in this.data["opts"+n].replace)this.replace(r,i,this.data["opts"+n].replace[i]);if(this.data["opts"+n].populate){let i=this.data["opts"+n].populate;if(Array.isArray(i))for(let o=0;o{a&&(Array.isArray(this.data["obj"+n][i][a])||(this.data["obj"+n][i][a]=[]),this.data["obj"+n][i][a].push(r),typeof o.sort=="function"&&this.data["obj"+n][i][a].sort(o.sort))};s(o.field(r,a=>{s(a)}))}if(this.data["opts"+n].query)for(let i in this.data["opts"+n].query){let o=this.data["opts"+n].query[i];typeof o.ignore=="function"&&o.ignore(r)||typeof o.allow=="function"&&!o.allow(r)||(this.data["obj"+n][i]||(this.data["obj"+n][i]=[]),this.data["obj"+n][i].push(r),typeof o.sort=="function"&&this.data["obj"+n][i].sort(o.sort))}for(let i=0;i=0;s--)this.data["obj"+n][i][o][s]._id==r._id&&this.data["obj"+n][i][o].splice(s,1);if(this.data["opts"+n].query){for(let i in this.data["opts"+n].query)for(let o=this.data["obj"+n][i].length-1;o>=0;o--)if(this.data["obj"+n][i][o]._id==r._id){this.data["obj"+n][i].splice(o,1);break}}}}constructor(n,r,i){this.store=n,this.http=r,this.core=i,console.warn("Mongo Service is deprecated"),this.core.onComplete("socket").then(o=>{this.socket=o,o.on("create",s=>{this.fetch(s.part,{force:!0,query:{_id:s._id}})}),o.on("update",s=>{this.fetch(s.part,{force:!0,query:{_id:s._id}})}),o.on("delete",s=>{this.remove(s.part,s)})})}static \u0275fac=function(r){return new(r||t)(_(Wt),_(Mi),_(Ce))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var _B=(()=>{class t{core;replacements=[{from:"%20",to:" "}];hash={};done=!1;constructor(n){this.core=n,this.initialize()}initialize(){if(!this.core.window.location.hash){this.done=!0;return}this.load(),this.done=!0}load(){this.hash={};let n=this.core.window.location.hash.replace("#!#","").replace("#","").split("&");for(let r of n){let[i,o]=r.split("=");i=this.applyReplacements(i),o=this.applyReplacements(o),this.hash[i]=o}}applyReplacements(n){if(!n)return"";for(let r of this.replacements)n=n.split(r.from).join(r.to);return n}on(n,r){if(!this.done){setTimeout(()=>this.on(n,r),100);return}r(this.hash[n])}save(){let n=Object.entries(this.hash).map(([r,i])=>`${r}=${i}`).join("&");this.core.window.location.hash=n}set(n,r){this.hash[n]=r,this.save()}get(n){return this.hash[n]}clear(n){n?delete this.hash[n]:this.hash={},this.save()}static \u0275fac=function(r){return new(r||t)(_(Ce))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),dh=(()=>{class t{componentFactoryResolver;appRef;injector;core;providedIn={};constructor(n,r,i,o){this.componentFactoryResolver=n,this.appRef=r,this.injector=i,this.core=o}appendById(n,r={},i){let o=this.componentFactoryResolver.resolveComponentFactory(n).create(this.injector);this.projectComponentInputs(o,r),this.appRef.attachView(o.hostView);let s=o.hostView.rootNodes[0],a=this.core.document.getElementById(i);return a&&typeof a.appendChild=="function"&&a.appendChild(s),{nativeElement:s,componentRef:o}}appendComponent(n,r={},i=this.core.document.body){if(r.providedIn){if(this.providedIn[r.providedIn])return;this.providedIn[r.providedIn]=!0}let o=this.componentFactoryResolver.resolveComponentFactory(n).create(this.injector);this.projectComponentInputs(o,r),this.appRef.attachView(o.hostView);let s=o.hostView.rootNodes[0];return i&&typeof i.appendChild=="function"&&i.appendChild(s),{nativeElement:s,componentRef:o}}getComponentRef(n,r={}){let i=this.componentFactoryResolver.resolveComponentFactory(n).create(this.injector);return this.projectComponentInputs(i,r),this.appRef.attachView(i.hostView),i}projectComponentInputs(n,r){if(r){let i=Object.getOwnPropertyNames(r);for(let o of i)n.instance[o]=r[o]}return n}static \u0275fac=function(r){return new(r||t)(_($t),_(tt),_(Me),_(Ce))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),P1=(()=>{class t{constructor(){}static \u0275fac=function(r){return new(r||t)};static \u0275cmp=fe({type:t,selectors:[["lib-wrapper"]],decls:8,vars:0,consts:[["id","bottomRight",1,"waw-alert-wrapper","waw-alert-wrapper-bottomRight"],["id","bottomLeft",1,"waw-alert-wrapper","waw-alert-wrapper-bottomLeft"],["id","topRight",1,"waw-alert-wrapper","waw-alert-wrapper-topRight"],["id","topLeft",1,"waw-alert-wrapper","waw-alert-wrapper-topLeft"],["id","topCenter",1,"waw-alert-wrapper","waw-alert-wrapper-topCenter"],["id","bottomCenter",1,"waw-alert-wrapper","waw-alert-wrapper-bottomCenter"],["id","center",1,"waw-alert-wrapper","waw-alert-wrapper-center"]],template:function(r,i){r&1&&(y(0,"div"),ke(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"div",5)(7,"div",6),v())},styles:[".waw-alert-wrapper[_ngcontent-%COMP%]{z-index:99999;position:fixed;width:100%;pointer-events:none;display:flex;flex-direction:column}.waw-alert-wrapper-bottomLeft[_ngcontent-%COMP%]{left:0;bottom:0;text-align:left}.waw-alert-wrapper-bottomRight[_ngcontent-%COMP%]{right:0;bottom:0;text-align:right}.waw-alert-wrapper-topLeft[_ngcontent-%COMP%]{left:0;top:0;text-align:left}.waw-alert-wrapper-topRight[_ngcontent-%COMP%]{top:0;right:0;text-align:right}.waw-alert-wrapper-topCenter[_ngcontent-%COMP%]{top:0;left:0;right:0;text-align:center}.waw-alert-wrapper-bottomCenter[_ngcontent-%COMP%]{bottom:0;left:0;right:0;text-align:center}.waw-alert-wrapper-center[_ngcontent-%COMP%]{inset:0;text-align:center;justify-content:center;flex-flow:column;align-items:center}"]})}return t})(),y0=(()=>{class t{dom;core;config;alert;_container;constructor(n,r,i){if(this.dom=n,this.core=r,this.config=i,this.config||(this.config=xi),this.alert=this.config.alert,!this.alert)this.alert=uh;else for(let o in uh)this.alert[o]||(this.alert[o]=uh[o]);this._container=this.dom.appendComponent(P1)}uniques={};shortcuts={tl:"topLeft",tc:"topCenter",tr:"topRight",r:"right",br:"bottomRight",bc:"bottomCenter",bl:"bottomLeft",l:"left",c:"center"};positionNumber={topLeft:3,topCenter:4,topRight:2,right:"",bottomRight:0,bottomCenter:5,bottomLeft:1,left:"",center:6};show(n){typeof n=="string"&&(n={text:n}),n||(n={}),n.type||(n.type="info");for(let o in this.alert)o=="class"?n[o]=n[o]+" "+this.alert[o]:typeof n[o]>"u"&&(n[o]=this.alert[o]);this.shortcuts[n.position]&&(n.position=this.shortcuts[n.position]),n.position||(n.position="bottomRight");var r;n.close=()=>{r&&r.componentRef.destroy(),n.component.nativeElement.remove(),typeof n.onClose=="function"&&n.onClose()};let i=!1;return typeof n.component=="string"&&this.alert.alerts[n.component]?(n.component=this.alert.alerts[n.component],i=!0):n.component=this.dom.appendById(A1,n,n.position),typeof n.component=="function"&&(r=this.dom.appendComponent(n.component,n,this._container.nativeElement.children[0].children[this.positionNumber[n.position]||0])),n.unique&&(this.uniques[n.unique]&&this.uniques[n.unique].remove(),this.uniques[n.unique]=n.component.nativeElement),typeof n.timeout!="number"&&(n.timeout=2e3),n.timeout&&setTimeout(()=>{n.close()},n.timeout),n.component.nativeElement}open(n){this.show(n)}info(n){n.type="info",this.show(n)}success(n){n.type="success",this.show(n)}warning(n){n.type="warning",this.show(n)}error(n){n.type="error",this.show(n)}question(n){n.type="question",this.show(n)}destroy(){this.core.document.getElementById("bottomRight").innerHTML="",this.core.document.getElementById("bottomLeft").innerHTML="",this.core.document.getElementById("bottomCenter").innerHTML="",this.core.document.getElementById("topRight").innerHTML="",this.core.document.getElementById("topLeft").innerHTML="",this.core.document.getElementById("topCenter").innerHTML="",this.core.document.getElementById("center").innerHTML=""}static \u0275fac=function(r){return new(r||t)(_(dh),_(Ce),_(Bn,8))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var v0=(()=>{class t{dom;core;config;_modal;constructor(n,r,i){this.dom=n,this.core=r,this.config=i,this.config||(this.config={}),this.config.modal||(this.config.modal={}),this.config.modal.modals||(this.config.modal.modals={}),this._modal=i.modal}show(n){if(this.locked)return;if((typeof n=="string"||typeof n=="function")&&(n={component:n}),(!n||typeof n!="object")&&(n={}),typeof n.component=="string"&&this._modal.modals[n.component]&&(n.component=this._modal.modals[n.component]),typeof n.component!="function"){console.log("This component does not exists.");return}n.class||(n.class="");for(let o in this.config.modal)o=="class"?n.class+=(n.class&&" "||"")+this.config.modal.class:n[o]||(n[o]=this._modal[o]);n.id=Math.floor(Math.random()*Date.now())+Date.now(),this.opened[n.id]=n,this.core.document.body.classList.add("modalOpened");let r,i;return n.close=()=>{i.componentRef.destroy(),r.nativeElement.remove(),typeof n.onClose=="function"&&n.onClose(),delete this.opened[n.id],Object.keys(this.opened).length||this.core.document.body.classList.remove("modalOpened")},typeof n.timeout=="number"&&n.timeout>0&&setTimeout(n.close,n.timeout),r=this.dom.appendComponent(O1,n),i=this.dom.appendComponent(n.component,n,r.nativeElement.children[0].children[0].children[0]),r.nativeElement}open(n){this.show(n)}small(n){(typeof n=="string"||typeof n=="function")&&(n={component:n}),n.size="small",this.show(n)}mid(n){(typeof n=="string"||typeof n=="function")&&(n={component:n}),n.size="mid",this.show(n)}big(n){(typeof n=="string"||typeof n=="function")&&(n={component:n}),n.size="big",this.show(n)}full(n){(typeof n=="string"||typeof n=="function")&&(n={component:n}),n.size="full",this.show(n)}opened={};locked=!1;destroy(){if(!this.locked){for(let n in this.opened)this.opened[n].close();this.core.document.body.classList.remove("modalOpened")}}static \u0275fac=function(r){return new(r||t)(_(dh),_(Ce),_(Bn,8))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),R1=(()=>{class t{fs;constructor(){}static \u0275fac=function(r){return new(r||t)};static \u0275cmp=fe({type:t,selectors:[["lib-files"]],decls:1,vars:1,consts:[["input",""],[4,"ngFor","ngForOf"],["type","file","name","file",3,"change","id","hidden","accept","multiple"]],template:function(r,i){r&1&&T(0,S1,3,4,"ng-container",1),r&2&&m("ngForOf",i.fs.files)},dependencies:[Ue]})}return t})(),wB=(()=>{class t{dom;core;http;added={};files=[];constructor(n,r,i){this.dom=n,this.core=r,this.http=i,this.dom.appendComponent(R1,{fs:this})}add(n){if(typeof n=="string"&&(n={id:n}),!n.id){console.log("You have to pass ID into file object");return}if(n.type=n.type||"image",typeof n.resize=="number"&&(n.resize={width:n.resize,height:n.resize}),this.added[n.id]&&(this.files=this.files.filter(r=>r.id!==n.id)),this.files.push(n),this.added[n.id]=n,n.save)return()=>{n.complete?.()}}change(n,r){let i=n.target;i.files&&(r.type==="image"?r.multiple?(r.multiple_cb&&(r.multiple_files=[],r.multiple_counter=i.files.length),Array.from(i.files).forEach(o=>this.process(o,r))):this.process(i.files[0],r):r.type==="file"?(r.multiple&&r.multiple_cb?.(Array.from(i.files).map(o=>({dataUrl:"",file:o}))),Array.from(i.files).forEach(o=>r.cb?.("",o)),(r.part||r.url)&&this.uploadFiles(r,i.files)):console.log("Provide type `image` or `file`"))}remove(n,r,i={},o=()=>{}){if(i.url=r,i.save)return()=>{this.http.post(i.api||`/api/${n}/file/delete`,i,o)};this.http.post(i.api||`/api/${n}/file/delete`,i,o)}uploadFiles(n,r,i=()=>{}){let o=new FormData;n.append?n.append(o,r):r.forEach((a,c)=>o.append(`file[${c}]`,a));let s=typeof n.body=="function"?n.body():n.body||{};Object.entries(s).forEach(([a,c])=>o.append(a,c)),n.save?n.complete=()=>{this.http.post(n.api||`/api/${n.part}/file${n.name?`/${n.name}`:""}`,o,a=>{n.resp?.(a),i(a)})}:this.http.post(n.api||`/api/${n.part}/file${n.name?`/${n.name}`:""}`,o,a=>{n.resp?.(a),i(a)})}image(n,r=()=>{}){if(n.save)return()=>{this.http.post(n.api||`/api/${n.part}/file${n.name?`/${n.name}`:""}`,n,r)};this.http.post(n.api||`/api/${n.part}/file${n.name?`/${n.name}`:""}`,n,r)}update(n,r,i){if(r.cb?.(n,i),r.multiple_cb&&(r.multiple_files.push({dataUrl:n,file:i}),--r.multiple_counter===0&&r.multiple_cb(r.multiple_files)),!r.part)return;let o=typeof r.body=="function"?r.body():r.body||{};o.dataUrl=n,r.save?r.complete=()=>{this.http.post(r.api||`/api/${r.part}/file${r.name?`/${r.name}`:""}`,o,s=>{r.cb?.(s)})}:this.http.post(r.api||`/api/${r.part}/file${r.name?`/${r.name}`:""}`,o,s=>{r.cb?.(s)})}process(n,r){if(!n.type.startsWith("image/")){r.cb?.(!1,n),r.multiple_cb&&(r.multiple_files.push({dataUrl:"",file:n}),--r.multiple_counter===0&&r.multiple_cb(r.multiple_files));return}r.resize&&(r.resize.width=r.resize.width||1920,r.resize.height=r.resize.height||1080);let i=new FileReader;i.onload=o=>{if(!r.resize)return this.update(o.target?.result,r,n);let s=this.core.document.createElement("canvas"),a=this.core.document.createElement("img");a.onload=()=>{if(a.width<=r.resize.width&&a.height<=r.resize.height)return this.update(o.target?.result,r,n);let c=r.resize.width/r.resize.height,l=a.width/a.height,u,d;l>c?(u=Math.min(r.resize.width,a.width),d=u/l):(d=Math.min(r.resize.height,a.height),u=d*l),s.width=u,s.height=d,s.getContext("2d").drawImage(a,0,0,u,d);let h=s.toDataURL("image/jpeg",1);this.update(h,r,n)},a.src=o.target?.result},i.readAsDataURL(n)}static \u0275fac=function(r){return new(r||t)(_(dh),_(Ce),_(Mi))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),bB=(()=>{class t{core;variables={};_forms={};var={};constructor(n){this.core=n;let r=this.core.localStorage.getItem("css_variables");this.variables=r?JSON.parse(r):{};for(let i in this.variables)this.setProperty(i,this.variables[i])}form(n){return typeof n!="string"?{}:(this._forms[n]||(this._forms[n]={}),this._forms[n])}valid(n,r="email",i=0){let o={email:s=>/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,10})+$/.test(s||""),text:s=>typeof s=="string",array:s=>Array.isArray(s),object:s=>typeof s=="object"&&!Array.isArray(s)&&s!==null,number:s=>typeof s=="number",password:s=>{if(!s)return!1;switch(i){case 1:return/^((?=.*[a-z])(?=.*[0-9]))|((?=.*[A-Z])(?=.*[0-9]))/.test(s||"");case 2:return/^(((?=.*[a-z])(?=.*[0-9]))|((?=.*[A-Z])(?=.*[0-9])))(?=.{8,})/.test(s||"");case 3:return/^((?=.*[a-z])(?=.*[A-Z])(?=.*[0-9]))(?=.{8,})/.test(s||"");case 4:return/^((?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[@#$%&!-_]))(?=.{8,})/.test(s||"");default:return!!s}}};return o[r]?o[r](n):!1}level(n=""){if(!n)return 0;let r=0;return n.length>8&&r++,/[a-z]/.test(n)&&r++,/[A-Z]/.test(n)&&r++,/[1-9]/.test(n)&&r++,/[`!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?~]/.test(n)&&r++,r}save(){this.core.localStorage.setItem("css_variables",JSON.stringify(this.variables))}setProperty(n,r){this.core.document.documentElement.style.setProperty(n,r)}set(n,r={}){if(typeof r=="string"&&(r=r==="local"?{local:!0}:{host:r}),!(r.host&&this.core.window.location.host!==r.host)){for(let i in n){if(r.local)this.variables[i]=n[i];else if(this.variables[i])continue;this.setProperty(i,n[i])}r.local&&this.save()}}get(){return this.variables}remove(n){let r=Array.isArray(n)?n:n.split(" ");for(let i of r)delete this.variables[i];this.save()}arr(n=10,r="number"){let i=[];for(let o=0;o{class t{static forRoot(n=xi){return{ngModule:t,providers:[{provide:Bn,useValue:n}]}}static \u0275fac=function(r){return new(r||t)};static \u0275mod=ce({type:t});static \u0275inj=ae({providers:[{provide:Bn,useValue:xi},T1,g0,mv(yv())],imports:[Fe,Gt]})}return t})();var k1=["*"],F1=(t,e,n,r,i,o,s,a,c)=>({_primary:t,_secondary:e,_success:n,_danger:r,_warning:i,_info:o,_light:s,_dark:a,_link:c}),Hc=(()=>{let e=class e{constructor(){this.type="primary",this.class="",this.disabled=!1,this.disableSubmit=!1,this.wClick=new H}clicked(){this.disabled||(typeof this.click=="function"&&this.click(),this.wClick.emit())}setDisabled(r){this.disabled=r}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=fe({type:e,selectors:[["wbutton"]],inputs:{type:"type",class:"class",disabled:"disabled",disableSubmit:"disableSubmit",click:"click"},outputs:{wClick:"wClick"},ngContentSelectors:k1,decls:2,vars:16,consts:[[3,"click","ngClass","type","disabled"]],template:function(i,o){i&1&&(ka(),y(0,"button",0),N("click",function(){return o.clicked()}),Ki(1),v()),i&2&&(Sy("w-btn",o.class?" "+o.class:"",""),m("ngClass",Py(6,F1,[o.type==="primary",o.type==="secondary",o.type==="success",o.type==="danger",o.type==="warning",o.type==="info",o.type==="light",o.type==="dark",o.type==="link"]))("type",o.click||o.disableSubmit?"button":"submit")("disabled",o.disabled))},dependencies:[dn]});let t=e;return t})();var zc=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ce({type:e}),e.\u0275inj=ae({imports:[Fe]});let t=e;return t})();var w0=(()=>{let e=class e{constructor(r){this.template=r}};e.\u0275fac=function(i){return new(i||e)(E(ft))},e.\u0275dir=ie({type:e,selectors:[["ng-template","cell",""]],inputs:{cell:"cell"}});let t=e;return t})(),b0=(()=>{let e=class e{constructor(r){this.template=r}};e.\u0275fac=function(i){return new(i||e)(E(ft))},e.\u0275dir=ie({type:e,selectors:[["ng-template","sort",""]],inputs:{cell:"cell"}});let t=e;return t})(),C0=(()=>{let e=class e{constructor(r){this.template=r}};e.\u0275fac=function(i){return new(i||e)(E(ft))},e.\u0275dir=ie({type:e,selectors:[["ng-template","actions",""]]});let t=e;return t})(),D0=(()=>{let e=class e{constructor(r){this.template=r}};e.\u0275fac=function(i){return new(i||e)(E(ft))},e.\u0275dir=ie({type:e,selectors:[["ng-template","customEdit",""]]});let t=e;return t})();var E0=(()=>{let e=class e{transform(r,i,o,s){if(!Array.isArray(r))return[];if(i.perPage===-1)return r;r=r.slice();for(let a=0;aa[o.title]c[o.title]?o.direction=="desc"?-1:1:0),r.slice((i.page-1)*i.perPage,i.page*i.perPage)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=rr({name:"perPage",type:e,pure:!0});let t=e;return t})();var V1=t=>({$implicit:t});function j1(t,e){if(t&1){let n=W();y(0,"div",17)(1,"input",18),N("keyup.enter",function(){P(n);let i=g();return i.search(),R(i.searchShow=!1)})("ngModelChange",function(){P(n);let i=g();return R(i.searching())}),Xi("ngModelChange",function(i){P(n);let o=g();return Fa(o.searching_text,i)||(o.searching_text=i),R(i)}),v(),y(2,"span",19),N("click",function(){P(n);let i=g();return i.search(),R(i.searchShow=!1)}),A(3," search "),v()()}if(t&2){let n=g();he("table-search--active",n.searchShow),p(),Ji("ngModel",n.searching_text)}}function B1(t,e){if(t&1){let n=W();y(0,"div",20)(1,"span",21),N("click",function(){P(n);let i=g();return R(i.searchShow=!0)}),A(2," search "),v()()}}function U1(t,e){if(t&1&&(y(0,"i",24),A(1),v()),t&2){let n=g(2).$implicit;m("title",n.icon),p(),de(" ",n.icon," ")}}function $1(t,e){if(t&1&&(y(0,"span"),A(1),v()),t&2){let n=g(2).$implicit;p(),Ie(n.text)}}function H1(t,e){if(t&1){let n=W();y(0,"wbutton",22),N("click",function(){P(n);let i=g().$implicit;return R(i.click())}),T(1,U1,2,2,"i",23)(2,$1,2,1,"span",9),v()}if(t&2){let n=g().$implicit;m("disableSubmit",!0),p(),m("ngIf",n.icon),p(),m("ngIf",n.text)}}function z1(t,e){if(t&1&&(_e(0),T(1,H1,3,3,"wbutton",10),we()),t&2){let n=e.$implicit,r=g(2);p(),m("ngIf",r.config.create&&n)}}function q1(t,e){if(t&1&&(_e(0),T(1,z1,2,1,"ng-container",15),we()),t&2){let n=g();p(),m("ngForOf",n.config.headerButtons)}}function G1(t,e){if(t&1){let n=W();y(0,"wbutton",22),N("click",function(){P(n);let i=g();return R(i.config.create())}),A(1," + "),y(2,"span"),A(3,"Add new"),v()()}t&2&&m("disableSubmit",!0)}function W1(t,e){t&1&&(y(0,"th"),A(1,"No."),v())}function Z1(t,e){t&1&&(y(0,"span",28),A(1," keyboard_backspace "),v())}function Y1(t,e){if(t&1){let n=W();y(0,"th",25)(1,"div",26),N("click",function(){let i=P(n).$implicit,o=g();return R(o.sort(i))}),y(2,"span"),A(3),v(),T(4,Z1,2,0,"span",27),v()()}if(t&2){let n=e.$implicit,r=g();p(),he("_sortActiveDown",r.sort_type.direction==="desc"&&n.field===r.sort_type.title)("_sortActiveUp",r.sort_type.direction==="asc"&&n.field===r.sort_type.title),p(2),Ie(n.title),p(),m("ngIf",r.sortable[n.field])}}function Q1(t,e){t&1&&yt(0)}function K1(t,e){if(t&1&&T(0,Q1,1,0,"ng-container",30),t&2){let n=g(2);m("ngTemplateOutlet",n.action.template)}}function J1(t,e){t&1&&A(0,"Actions")}function X1(t,e){t&1&&yt(0)}function eA(t,e){if(t&1&&(y(0,"th"),T(1,K1,1,1,"ng-template",null,0,cn)(3,J1,1,0,"ng-template",null,1,cn)(5,X1,1,0,"ng-container",29),v()),t&2){let n=Tt(2),r=Tt(4),i=g();p(5),m("ngIf",i.action)("ngIfThen",n)("ngIfElse",r)}}function tA(t,e){if(t&1&&(y(0,"td"),A(1),v()),t&2){let n=g().$implicit;p(),Ie(n.num)}}function nA(t,e){if(t&1&&(y(0,"td"),A(1),v()),t&2){let n=g().$implicit,r=g().$implicit;ar("data-label",n.title+":\xA0"),p(),de(" ",r[n.field]," ")}}function rA(t,e){t&1&&yt(0)}function iA(t,e){if(t&1&&(y(0,"td"),T(1,rA,1,0,"ng-container",32),v()),t&2){let n=g().$implicit,r=g().$implicit,i=g();ar("data-label",n.title+":\xA0"),p(),m("ngTemplateOutlet",i.custom_cell[n.field])("ngTemplateOutletContext",On(3,V1,r))}}function oA(t,e){t&1&&yt(0)}function sA(t,e){if(t&1&&(_e(0),T(1,nA,2,2,"ng-template",null,2,cn)(3,iA,2,5,"ng-template",null,3,cn)(5,oA,1,0,"ng-container",29),we()),t&2){let n=e.$implicit,r=Tt(2),i=Tt(4),o=g(2);p(5),m("ngIf",o.custom_cell[n.field])("ngIfThen",i)("ngIfElse",r)}}function aA(t,e){if(t&1){let n=W();y(0,"i",40),N("click",function(){P(n);let i=g(2).$implicit,o=g(3).$implicit;return R(i.click(o))}),A(1),v()}if(t&2){let n=g(2).$implicit;m("title",n.icon),p(),de(" ",n.icon," ")}}function cA(t,e){if(t&1&&(y(0,"a",41)(1,"i",24),A(2),v()()),t&2){let n=g(2).$implicit;m("href",n.ahref,Ma)("target",n.target||"_blank"),p(),m("title",n.icon),p(),de(" ",n.icon," ")}}function lA(t,e){if(t&1&&(y(0,"a",41)(1,"i",24),A(2),v()()),t&2){let n=g(2).$implicit,r=g(3).$implicit;m("href",n.ahrefFunc(r),Ma)("target",n.target||"_blank"),p(),m("title",n.icon),p(),de(" ",n.icon," ")}}function uA(t,e){if(t&1&&(y(0,"a",42)(1,"i",24),A(2),v()()),t&2){let n=g(2).$implicit;m("routerLink",n.href),p(),m("title",n.icon),p(),de(" ",n.icon," ")}}function dA(t,e){if(t&1&&(y(0,"a",42)(1,"i",24),A(2),v()()),t&2){let n=g(2).$implicit,r=g(3).$implicit;m("routerLink",n.hrefFunc(r)),p(),m("title",n.icon),p(),de(" ",n.icon," ")}}function fA(t,e){if(t&1&&(_e(0),T(1,aA,2,2,"i",37)(2,cA,3,4,"a",38)(3,lA,3,4,"a",38)(4,uA,3,3,"a",39)(5,dA,3,3,"a",39),we()),t&2){let n=g().$implicit;p(),m("ngIf",!n.ahref&&!n.ahrefFunc&&!n.href&&!n.hrefFunc),p(),m("ngIf",n.href),p(),m("ngIf",n.ahrefFunc),p(),m("ngIf",n.href),p(),m("ngIf",n.hrefFunc)}}function hA(t,e){if(t&1&&(_e(0),T(1,fA,6,5,"ng-container",9),we()),t&2){let n=e.$implicit;p(),m("ngIf",n)}}function pA(t,e){if(t&1&&(_e(0),T(1,hA,2,1,"ng-container",15),we()),t&2){let n=g(3);p(),m("ngForOf",n.config.buttons)}}function gA(t,e){if(t&1){let n=W();y(0,"i",43),N("click",function(){P(n);let i=g(2).$implicit,o=g();return R(o.config.update(i))}),A(1," edit "),v()}}function mA(t,e){if(t&1){let n=W();y(0,"i",44),N("click",function(){P(n);let i=g(2).$implicit,o=g();return R(o.config.delete(i))}),A(1," delete_outline "),v()}}function yA(t,e){if(t&1&&(y(0,"td",33)(1,"div",34),T(2,pA,2,1,"ng-container",9)(3,gA,2,0,"i",35)(4,mA,2,0,"i",36),v()()),t&2){let n=g(2);p(2),m("ngIf",n.config.buttons),p(),m("ngIf",n.config.update),p(),m("ngIf",n.config.delete)}}function vA(t,e){if(t&1&&(y(0,"tr"),T(1,tA,2,1,"td",9)(2,sA,6,3,"ng-container",15)(3,yA,5,3,"td",31),v()),t&2){let n=g();p(),m("ngIf",n.config.num),p(),m("ngForOf",n.columns),p(),m("ngIf",n.config.delete||n.config.update||n.config.buttons)}}function _A(t,e){if(t&1){let n=W();y(0,"div",56)(1,"div",57),N("click",function(){let i=P(n).$implicit,o=g(3);return R(o.changePerPage(i))}),A(2),v()()}if(t&2){let n=e.$implicit,r=g(3);p(),he("selected",r.config.perPage===n),p(),de(" ",n," ")}}function wA(t,e){if(t&1){let n=W();y(0,"div",56)(1,"div",57),N("click",function(){P(n);let i=g(3);return R(i.changePerPage(-1))}),A(2," All "),v()()}if(t&2){let n=g(3);p(),he("selected",n.config.perPage===-1)}}function bA(t,e){if(t&1&&(y(0,"div",58),A(1),v()),t&2){let n=g(3);p(),de(" Page ",n.config.page," ")}}function CA(t,e){if(t&1&&(y(0,"div",58)(1,"span"),A(2),v(),y(3,"span"),A(4," of "),v(),y(5,"span"),A(6),ur(7,"search"),v()()),t&2){let n,r=g(3);p(2),Id("",(r.config.page-1)*r.config.perPage+1," - ",r.config.page*r.config.perPage>(r.rows==null?null:r.rows.length)&&(r.rows==null?null:r.rows.length)||r.config.page*r.config.perPage,""),p(4),Ie((n=ni(7,3,r.rows,r.searching_text,r.config.searchBy||"title"))==null?null:n.length)}}function DA(t,e){if(t&1){let n=W();y(0,"div",48)(1,"div",49),A(2,"Showing items per page"),v(),y(3,"div",50),N("clickOutside",function(){P(n);let i=g(2);return R(i.select_page_size=!1)}),y(4,"div",51),N("click",function(){P(n);let i=g(2);return R(i.select_page_size=!i.select_page_size)}),A(5),v(),y(6,"div",52),T(7,_A,3,3,"div",53)(8,wA,3,2,"div",54),v()(),T(9,bA,2,1,"div",55)(10,CA,8,7,"div",55),v()}if(t&2){let n=g(2);p(3),he("open",n.select_page_size),p(2),de(" ",n.config.perPage===-1?"All":n.config.perPage," "),p(2),m("ngForOf",n.config.pageSizeOptions),p(),m("ngIf",n.config.allDocs),p(),m("ngIf",n.config.perPage>=0&&!n.config.allDocs),p(),m("ngIf",n.config.perPage>=0&&n.config.allDocs)}}function EA(t,e){if(t&1){let n=W();y(0,"div",59)(1,"wbutton",60),N("click",function(){P(n);let i=g(2);return R(i.config.page=1)}),y(2,"span",61),A(3,"keyboard_double_arrow_left"),v()(),y(4,"wbutton",62),N("click",function(){P(n);let i=g(2);return R(i.previous())}),y(5,"span",61),A(6,"chevron_left"),v()(),y(7,"wbutton",63),N("click",function(){P(n);let i=g(2);return R(i.next())}),y(8,"span",61),A(9,"chevron_right"),v()(),y(10,"wbutton",64),N("click",function(){P(n);let i=g(2);return R(i.lastPage())}),y(11,"span",61),A(12,"keyboard_double_arrow_right"),v()()()}if(t&2){let n=g(2);p(),m("disabled",n.config.page===1),p(3),m("disabled",n.config.page===1),p(3),m("disabled",n.config.page*n.config.perPage>(n.rows==null?null:n.rows.length)),p(3),m("disabled",n.isLast())}}function IA(t,e){if(t&1){let n=W();y(0,"div",59)(1,"wbutton",62),N("click",function(){P(n);let i=g(2);return R(i.previous())}),y(2,"span",61),A(3,"chevron_left"),v()(),y(4,"wbutton",63),N("click",function(){P(n);let i=g(2);return R(i.next())}),y(5,"span",61),A(6,"chevron_right"),v()()()}if(t&2){let n=g(2);p(),m("disabled",n.config.page===1),p(3),m("disabled",n.rows.length!==n.config.perPage)}}function xA(t,e){if(t&1&&(y(0,"tfoot",45),T(1,DA,11,7,"div",46)(2,EA,13,4,"div",47)(3,IA,7,2,"div",47),v()),t&2){let n=g();p(),m("ngIf",n.config.perPage),p(),m("ngIf",n.config.perPage!==-1&&n.config.allDocs),p(),m("ngIf",!n.config.allDocs)}}var jB=(()=>{let e=class e{constructor(r,i){this._router=r,this._store=i,this.tableId="table_"+this._router.url.split("/").filter(o=>o&&o.length!==24).join("/"),this.config={},this.columns=[],this.rows=[],this.value="_id",this.title="",this.now=Date.now(),this.searchShow=!1,this.searching_text="",this.filter_filter="",this.onSearch=new H,this.custom_cell={},this.sort_type={},this.sortable={},this.select_page_size=!1}ngOnInit(){this.default_config();for(let r=0;r{r&&this.changePerPage(Number(r))})}default_config(){this.config.pageSizeOptions||(this.config.pageSizeOptions=[1,10,20,50]),this.config.perPage||(this.config.perPage=-1),this.config.page||(this.config.page=1),this.config.searchable||(this.config.searchable=!1),typeof this.config.allDocs!="boolean"&&(this.config.allDocs=!0)}ngAfterContentInit(){for(let i=0;i{this.refresh()},1e3);setTimeout(()=>{clearInterval(r)},2e4)}refresh(){this.now=Date.now()}searching(){setTimeout(()=>{this.config.globalSearch||(this.filter_filter=this.searching_text)},100),clearTimeout(this._search_timeout),this._search_timeout=setTimeout(this.searching.bind(this),2e3)}search(){clearTimeout(this._search_timeout),setTimeout(()=>{this.config.globalSearch||(this.filter_filter=this.searching_text),this.refresh()},100),this.onSearch.emit(this.searching_text)}next(){(typeof this.config.paginate=="function"||this.config.page*this.config.perPage1&&(this.config.page-=1,typeof this.config.paginate=="function"&&this.config.paginate(this.config.page),this.refresh())}changePerPage(r){this.config.perPage=r,typeof this.config.setPerPage=="function"&&this.config.setPerPage(this.config.perPage),this.config.page=1,typeof this.config.paginate=="function"&&this.config.paginate(this.config.page),this._store.set(this.tableId+"perPage",r.toString()),(this.config.page-1)*this.config.perPage>this.rows.length&&this.lastPage(),this.select_page_size=!1,this.refresh()}lastPage(){this.config.page=Math.ceil(this.rows.length/this.config.perPage)}isLast(){return this.rows&&this.config.page==Math.ceil(this.rows.length/this.config.perPage)}sort(r){this.sort_type.title!=r.title&&(this.sort_type={}),this.sortable[r.field]&&(this.sort_type={title:r.field,direction:typeof this.sort_type.direction!="string"&&"asc"||this.sort_type.direction=="asc"&&"desc"||void 0})}};e.\u0275fac=function(i){return new(i||e)(E(ot),E(Wt))},e.\u0275cmp=fe({type:e,selectors:[["wtable"]],contentQueries:function(i,o,s){if(i&1&&(lr(s,C0,5),lr(s,D0,5),lr(s,w0,4),lr(s,b0,4)),i&2){let a;Xe(a=et())&&(o.action=a.first),Xe(a=et())&&(o.editForm=a.first),Xe(a=et())&&(o.cell=a),Xe(a=et())&&(o.sortHeaders=a)}},inputs:{config:"config",columns:"columns",rows:"rows",value:"value",title:"title"},outputs:{onSearch:"onSearch"},decls:19,vars:19,consts:[["customAction",""],["defaultAction",""],["defaultRows",""],["customRows",""],[1,"wtable"],[1,"users__header","w-card__header"],[1,"w-forms__title"],["class","table-search",3,"table-search--active",4,"ngIf"],["class","table-search__icon-mobile",4,"ngIf"],[4,"ngIf"],["class","table-plus-btn",3,"disableSubmit","click",4,"ngIf"],["cellpadding","0","cellspacing","0",1,"table"],[1,"table-header"],["scope","col",4,"ngFor","ngForOf"],[1,"table-body"],[4,"ngFor","ngForOf"],["class","table-footer",4,"ngIf"],[1,"table-search"],["placeholder","Search...","type","text",1,"table-search__input",3,"keyup.enter","ngModelChange","ngModel"],[1,"material-icons","material-symbols-outlined","table-search__icon",3,"click"],[1,"table-search__icon-mobile"],[1,"material-icons","material-symbols-outlined",3,"click"],[1,"table-plus-btn",3,"click","disableSubmit"],["class","material-icons",3,"title",4,"ngIf"],[1,"material-icons",3,"title"],["scope","col"],[1,"table-header__sort",3,"click"],["class","material-icons icon-arrow",4,"ngIf"],[1,"material-icons","icon-arrow"],[4,"ngIf","ngIfThen","ngIfElse"],[4,"ngTemplateOutlet"],["class","table-body__last-td","data-label","Actions:\xA0",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["data-label","Actions:\xA0",1,"table-body__last-td"],[1,"table__actions"],["class","material-icons","title","Edit",3,"click",4,"ngIf"],["class","material-icons","title","Delete",3,"click",4,"ngIf"],["class","material-icons",3,"title","click",4,"ngIf"],[3,"href","target",4,"ngIf"],[3,"routerLink",4,"ngIf"],[1,"material-icons",3,"click","title"],[3,"href","target"],[3,"routerLink"],["title","Edit",1,"material-icons",3,"click"],["title","Delete",1,"material-icons",3,"click"],[1,"table-footer"],["class","item-page",4,"ngIf"],["class","table-footer__pagination",4,"ngIf"],[1,"item-page"],[1,"item-page__text"],[1,"item-page__dropdown",3,"clickOutside"],[1,"caption",3,"click"],[1,"list"],["class","item",4,"ngFor","ngForOf"],["class","item",4,"ngIf"],["class","item-page__result",4,"ngIf"],[1,"item"],[3,"click"],[1,"item-page__result"],[1,"table-footer__pagination"],[1,"table-footer__arrow","_start",3,"click","disabled"],[1,"material-icons"],[1,"table-footer__arrow","_left",3,"click","disabled"],[1,"table-footer__arrow","_right",3,"click","disabled"],[1,"table-footer__arrow","_end",3,"click","disabled"]],template:function(i,o){i&1&&(y(0,"div",4)(1,"div",5)(2,"h3",6),A(3),v(),T(4,j1,4,3,"div",7)(5,B1,3,0,"div",8)(6,q1,2,1,"ng-container",9)(7,G1,4,1,"wbutton",10),v(),y(8,"table",11)(9,"thead",12)(10,"tr"),T(11,W1,2,0,"th",9)(12,Y1,5,6,"th",13)(13,eA,6,3,"th",9),v()(),y(14,"tbody",14),T(15,vA,4,3,"tr",15),ur(16,"search"),ur(17,"perPage"),v(),T(18,xA,4,3,"tfoot",16),v()()),i&2&&(p(3),Ie(o.title),p(),m("ngIf",o.config.searchable),p(),m("ngIf",!o.searchShow),p(),m("ngIf",o.config.headerButtons),p(),m("ngIf",o.config.create),p(4),m("ngIf",o.config.num),p(),m("ngForOf",o.columns),p(),m("ngIf",o.config.delete||o.config.update),p(2),m("ngForOf",o.config.allDocs?Ry(17,14,ni(16,10,o.rows,o.filter_filter,o.config.searchBy||"title"),o.config,o.sort_type,o.filter_filter+o.now):o.rows),p(3),m("ngIf",o.config.perPage||o.config.formCreate&&o.config.create))},dependencies:[Ue,nt,oi,jn,Ci,vr,Uc,Hc,mc,$c,E0],styles:['[_ngcontent-%COMP%]:root{--c-white: #fff;--c-basic: #3558ae;--c-primary: #256eff;--c-primary-hover: #0051f1;--c-secondary: rgb(197, 61, 61);--c-secondary-hover: rgb(150, 42, 42);--c-bg-primary: #f3f4f7;--c-bg-secondary: #ffffff;--c-bg-tertiary: #fcfdfe;--c-border: #f0f1f7;--c-shadow: #f3f3f3;--c-text-primary: #666666;--c-text-secondary: #19235c;--c-placeholder: #313335ab;--c-img-round: 50%;--card-background: #fefefe;--card-border-radius: 10px;--card-box-shadow: 0 4px 12px rgba(0, 0, 0, .15);--card-margin-bottom: 24px;--card-header-padding: 20px;--card-header-background: #e0e0e0;--card-body-padding: 20px;--card-section-padding: 10px 0;--card-footer-padding: 20px;--card-footer-background: #e0e0e0;--card-border-width: 2px;--card-border-color: #cccccc;--file-img-border-radius: 50%;--file-add-bg: #28a745;--file-add-bg-hover: #218838;--file-item-border-radius: 10px}html.dark[_ngcontent-%COMP%]:root{--c-white: #fff;--c-basic: #333;--c-bg-primary: #282828;--c-bg-secondary: #343434;--c-bg-tertiary: #404040;--c-border: #404040;--c-shadow: #444444;--c-text-primary: #ffffff;--c-text-secondary: #ffffff;--c-placeholder: #d3cdcd}.wtable[_ngcontent-%COMP%]{background:var(--c-bg-secondary);box-shadow:var(--c-shadow);border-radius:10px;padding-bottom:70px;max-width:100%;height:auto;margin:0 auto;position:relative}@media (max-width: 991px){.wtable[_ngcontent-%COMP%]{padding-left:10px;padding-right:10px}}@media screen and (max-width: 599px){.wtable[_ngcontent-%COMP%]{padding-bottom:20px}}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%]{border-collapse:collapse;margin:0;padding:0;width:100%;table-layout:auto}.wtable[_ngcontent-%COMP%] .table-plus-btn[_ngcontent-%COMP%]{cursor:pointer;font-size:16px;font-weight:500;border:0;display:flex;justify-content:center;align-items:center;min-width:140px;height:45px;border-radius:4px;padding:5px 12px;background-color:var(--c-primary);color:var(--c-primary);border:1px solid var(--c-primary)}.wtable[_ngcontent-%COMP%] .table-plus-btn[_ngcontent-%COMP%]:hover{box-shadow:0 0 3px 0 var(--c-primary);background-color:var(--c-primary)}.wtable[_ngcontent-%COMP%] .table-plus-btn[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin-left:5px}@media screen and (max-width: 599px){.wtable[_ngcontent-%COMP%] .table-plus-btn[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:none}}@media screen and (max-width: 599px){.wtable[_ngcontent-%COMP%] .table-plus-btn[_ngcontent-%COMP%]{position:absolute;right:15px;min-width:45px;top:15px}}.wtable[_ngcontent-%COMP%] .table-search[_ngcontent-%COMP%]{position:relative;display:flex;flex-grow:1;margin:0 30px}.wtable[_ngcontent-%COMP%] .table-search--active[_ngcontent-%COMP%] .table-search__input[_ngcontent-%COMP%]{opacity:1}.wtable[_ngcontent-%COMP%] .table-search__input[_ngcontent-%COMP%]{width:100%;height:45px;border-radius:4px;padding:0 10px;color:inherit;background:var(--c-bg-secondary);border:1px solid var(--c-primary)}.wtable[_ngcontent-%COMP%] .table-search__input[_ngcontent-%COMP%]:focus{border:2px solid var(--c-primary)}.wtable[_ngcontent-%COMP%] .table-search__icon[_ngcontent-%COMP%]{width:40px;position:absolute;right:0;top:50%;transform:translateY(-50%);z-index:4;cursor:pointer}.wtable[_ngcontent-%COMP%] .table-search__icon-mobile[_ngcontent-%COMP%]{display:none;margin-left:auto;margin-right:130px}@media (max-width: 599px){.wtable[_ngcontent-%COMP%] .table-search[_ngcontent-%COMP%]{display:none}.wtable[_ngcontent-%COMP%] .table-search.table-search--active[_ngcontent-%COMP%]{display:block;position:absolute;margin:0;width:100%;z-index:2}.wtable[_ngcontent-%COMP%] .table-search.table-search--active[_ngcontent-%COMP%] + .table-plus-btn[_ngcontent-%COMP%]{display:none}.wtable[_ngcontent-%COMP%] .table-search.table-search--active[_ngcontent-%COMP%] + .w-forms__title[_ngcontent-%COMP%]{display:none}.wtable[_ngcontent-%COMP%] .table-search__icon-mobile[_ngcontent-%COMP%]{display:inherit}}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .table-header__sort[_ngcontent-%COMP%]{position:relative;cursor:pointer}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .table-header__sort[_ngcontent-%COMP%] .icon-arrow[_ngcontent-%COMP%]{transform:rotate(90deg);font-size:var(--fs);position:absolute;top:3px;cursor:pointer}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{position:relative;padding:0 16px;height:48px;text-align:left;font-weight:500;font-size:calc(var(--fs) - 2px);font-size:var(--fs);line-height:calc(var(--fs) + 8px);letter-spacing:var(--letter-spacing);text-transform:capitalize;color:var(--c-text-primary);border-bottom:1px solid var(--c-border);overflow:hidden;text-overflow:ellipsis}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] th[_ngcontent-%COMP%] .icon-arrow[_ngcontent-%COMP%]{opacity:0;transition:.3s all ease-in-out}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:hover .icon-arrow[_ngcontent-%COMP%]{opacity:1;transition:.3s all ease-in-out}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] th[_ngcontent-%COMP%] .table-header__sort._sortActiveDown[_ngcontent-%COMP%] .icon-arrow[_ngcontent-%COMP%]{transform:rotate(-90deg);opacity:1}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] th[_ngcontent-%COMP%] .table-header__sort._sortActiveUp[_ngcontent-%COMP%] .icon-arrow[_ngcontent-%COMP%]{opacity:1}@media all and (max-width: 991.9px){.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{display:none;text-align:left}}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:last-child{width:140px}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{cursor:pointer;padding:5px 16px;height:60px;text-align:left;vertical-align:middle;font-size:calc(var(--fs) - 2px);line-height:calc(var(--fs) + 8px);letter-spacing:var(--letter-spacing);color:var(--c-text-primary);word-break:break-word;display:table-cell;border-bottom:1px solid var(--c-border)}@media all and (max-width: 991.9px){.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;column-gap:5px;border-bottom:0;border:2px solid var(--c-border);height:auto;min-height:60px}}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:before{content:attr(data-label);word-break:keep-all;display:inline-block;font-weight:500;font-size:var(--fs);line-height:calc(var(--fs) + 8px);letter-spacing:var(--letter-spacing);text-transform:capitalize;color:var(--c-text-primary);text-overflow:ellipsis}@media (min-width: 992px){.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:before{display:none}}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:last-child td[_ngcontent-%COMP%]{border-bottom:none}@media (max-width: 991.9px){.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:last-child td[_ngcontent-%COMP%]{border-bottom:2px solid var(--c-border)}}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{border-right:none}@media (max-width: 992px){.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{border-right:2px solid var(--c-border)}}@media (max-width: 992px){.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{margin-top:20px}}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:last-child{border-right:none}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .table__actions[_ngcontent-%COMP%]{display:flex;gap:6px}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .table__actions[_ngcontent-%COMP%] a[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:var(--c-text-primary)}@media (max-width: 991.9px){.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .table-body__last-td[_ngcontent-%COMP%]{margin-bottom:20px;border-bottom:3px solid var(--c-border)}}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .table-body__last-td[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:22px;width:22px}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .table-body__last-td[_ngcontent-%COMP%] i[_ngcontent-%COMP%]:hover{color:var(--c-primary)}.wtable[_ngcontent-%COMP%] .table-footer[_ngcontent-%COMP%]{height:65px;display:flex;gap:120px;position:absolute;width:100%;left:0;bottom:0;padding:0 8px 0 15px;align-items:center;justify-content:space-between}@media screen and (max-width: 599px){.wtable[_ngcontent-%COMP%] .table-footer[_ngcontent-%COMP%]{height:90px;padding:10px 20px;flex-direction:column;position:static;gap:20px}}.wtable[_ngcontent-%COMP%] .table-footer__pagination[_ngcontent-%COMP%]{display:flex;align-items:center;position:relative;bottom:15px}@media (max-width: 599px){.wtable[_ngcontent-%COMP%] .table-footer__pagination[_ngcontent-%COMP%]{bottom:0;left:5px}}.wtable[_ngcontent-%COMP%] .table-footer__arrow[_ngcontent-%COMP%]{border:0;background:none;width:30px;height:30px;margin-right:30px;cursor:pointer}.wtable[_ngcontent-%COMP%] .table-footer__arrow[_ngcontent-%COMP%] .chevron[_ngcontent-%COMP%]{position:relative;display:block;min-width:22px;min-height:22px;border:2px solid transparent;border-radius:100px}.wtable[_ngcontent-%COMP%] .table-footer__arrow[_ngcontent-%COMP%] .chevron[_ngcontent-%COMP%]:before{position:absolute;width:2px;height:90%;background-color:var(--c-grey);mix-blend-mode:overlay;top:8%}.wtable[_ngcontent-%COMP%] .table-footer__arrow[_ngcontent-%COMP%] .chevron[_ngcontent-%COMP%]:after{content:"";display:block;box-sizing:border-box;position:absolute;width:10px;height:10px;border-bottom:2px solid var(--c-grey);border-right:2px solid var(--c-grey);mix-blend-mode:overlay;transform:rotate(135deg);left:2px;top:2px}.wtable[_ngcontent-%COMP%] .table-footer__arrow[_ngcontent-%COMP%]:disabled i[_ngcontent-%COMP%]:after{border-color:#9f9f9f}.wtable[_ngcontent-%COMP%] .table-footer__arrow[_ngcontent-%COMP%]:disabled i[_ngcontent-%COMP%]:before{background:#9f9f9f}.wtable[_ngcontent-%COMP%] .table-footer__arrow._start[_ngcontent-%COMP%] .chevron[_ngcontent-%COMP%]{position:relative;left:1px}.wtable[_ngcontent-%COMP%] .table-footer__arrow._start[_ngcontent-%COMP%] .chevron[_ngcontent-%COMP%]:after{left:8px;top:4px}.wtable[_ngcontent-%COMP%] .table-footer__arrow._start[_ngcontent-%COMP%] .chevron[_ngcontent-%COMP%]:before{display:block;left:2px;content:""}.wtable[_ngcontent-%COMP%] .table-footer__arrow._left[_ngcontent-%COMP%] .chevron[_ngcontent-%COMP%]{position:relative;left:4px}.wtable[_ngcontent-%COMP%] .table-footer__arrow._left[_ngcontent-%COMP%] .chevron[_ngcontent-%COMP%]:after{top:4px}.wtable[_ngcontent-%COMP%] .table-footer__arrow._right[_ngcontent-%COMP%] .chevron[_ngcontent-%COMP%]:after{transform:rotate(315deg);top:4px}.wtable[_ngcontent-%COMP%] .table-footer__arrow._end[_ngcontent-%COMP%] .chevron[_ngcontent-%COMP%]{position:relative;left:2px}.wtable[_ngcontent-%COMP%] .table-footer__arrow._end[_ngcontent-%COMP%] .chevron[_ngcontent-%COMP%]:after{left:-3px;top:4px;transform:rotate(315deg)}.wtable[_ngcontent-%COMP%] .table-footer__arrow._end[_ngcontent-%COMP%] .chevron[_ngcontent-%COMP%]:before{display:block;left:11px;content:""}.wtable[_ngcontent-%COMP%] .table-footer[_ngcontent-%COMP%] .item-page[_ngcontent-%COMP%]{font-size:12px;color:#9f9f9f;letter-spacing:1px;display:flex;align-items:center}.wtable[_ngcontent-%COMP%] .table-footer[_ngcontent-%COMP%] .item-page__dropdown[_ngcontent-%COMP%]{position:relative;margin:0 10px;font-weight:700}.wtable[_ngcontent-%COMP%] .table-footer[_ngcontent-%COMP%] .item-page__dropdown[_ngcontent-%COMP%] .caption[_ngcontent-%COMP%]{background-color:transparent;padding:11px 24px;border-radius:4px;border:1px solid var(--c-border);cursor:pointer}.wtable[_ngcontent-%COMP%] .table-footer[_ngcontent-%COMP%] .item-page__dropdown[_ngcontent-%COMP%] .caption[_ngcontent-%COMP%]:hover{background-color:var(--c-primary);color:var(--c-bg-secondary)}.wtable[_ngcontent-%COMP%] .table-footer[_ngcontent-%COMP%] .item-page__dropdown[_ngcontent-%COMP%] .list[_ngcontent-%COMP%]{position:absolute;background-color:var(--c-bg-secondary);width:100%;bottom:100%;flex-direction:column;border-radius:4px 4px 0 0;display:none;z-index:999}.wtable[_ngcontent-%COMP%] .table-footer[_ngcontent-%COMP%] .item-page__dropdown[_ngcontent-%COMP%] .list[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{padding:11px 20px;cursor:pointer;text-align:center}.wtable[_ngcontent-%COMP%] .table-footer[_ngcontent-%COMP%] .item-page__dropdown[_ngcontent-%COMP%] .list[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:hover{background-color:var(--c-primary);color:var(--c-bg-secondary)}.wtable[_ngcontent-%COMP%] .table-footer[_ngcontent-%COMP%] .item-page__dropdown[_ngcontent-%COMP%] .list[_ngcontent-%COMP%] .item.selected[_ngcontent-%COMP%]{font-weight:700}.wtable[_ngcontent-%COMP%] .table-footer[_ngcontent-%COMP%] .item-page__dropdown.open[_ngcontent-%COMP%] .caption[_ngcontent-%COMP%]{border-radius:0 0 4px 4px}.wtable[_ngcontent-%COMP%] .table-footer[_ngcontent-%COMP%] .item-page__dropdown.open[_ngcontent-%COMP%] .list[_ngcontent-%COMP%]{display:flex;flex-direction:column-reverse;border:1px solid var(--c-border);border-bottom:0}']});let t=e;return t})();var MA=["inputEl"],I0=["*","*"];function SA(t,e){if(t&1&&(y(0,"span",7),A(1),v()),t&2){let n=g(2);p(),Ie(n.label)}}function TA(t,e){if(t&1&&(y(0,"div",8),A(1),v()),t&2){let n=g(2);p(),de(" ",n.label||n.placeholder," is invalid. ")}}function AA(t,e){if(t&1){let n=W();y(0,"label",3),T(1,SA,2,1,"span",4),y(2,"input",5,0),N("ngModelChange",function(i){P(n);let o=g();return o.value=i,R(o.onChange())})("keyup.enter",function(){P(n);let i=g();return R(i.onSubmit())})("blur",function(){P(n);let i=g();return R(i.wBlur.emit())}),v(),T(4,TA,2,1,"div",6),Ki(5),v()}if(t&2){let n=g();m("for",n.name),p(),m("ngIf",n.label),p(),he("error",n.error),m("placeholder",n.placeholder||"Enter text...")("type",n.type||"text")("disabled",n.disabled)("ngModel",n.value)("ngClass",n.wClass)("name",n.name),p(2),m("ngIf",n.error)}}function OA(t,e){if(t&1&&(y(0,"div",8),A(1),v()),t&2){let n=g(2);p(),de(" ",n.label||n.placeholder," is invalid. ")}}function NA(t,e){if(t&1){let n=W();_e(0),y(1,"label",3)(2,"span",7),A(3),v(),y(4,"textarea",9,0),N("ngModelChange",function(i){P(n);let o=g();return o.value=i,R(o.onChange())})("keyup.enter",function(){P(n);let i=g();return R(i.onSubmit())})("blur",function(){P(n);let i=g();return R(i.wBlur.emit())}),v(),T(6,OA,2,1,"div",6),v(),we()}if(t&2){let n=g();p(),m("for",n.name),p(2),Ie(n.label),p(),he("error",n.error),m("placeholder",n.placeholder)("disabled",n.disabled)("ngModel",n.value)("ngClass",n.wClass)("name",n.name),p(2),m("ngIf",n.error)}}function PA(t,e){if(t&1){let n=W();y(0,"label",11)(1,"span",12),A(2),v(),y(3,"input",13,0),N("ngModelChange",function(i){P(n);let o=g(2);return o.value=i,R(o.onChange())}),v(),ke(5,"span",14),Ki(6,1),v()}if(t&2){let n=e.$implicit,r=g(2);p(2),Ie(n),p(),he("error",r.error),m("disabled",r.disabled)("ngModel",r.value)("ngClass",r.wClass)("value",n)("name",r.name)}}function RA(t,e){if(t&1&&(_e(0),T(1,PA,7,8,"label",10),we()),t&2){let n=g();p(),m("ngForOf",n.items)}}function kA(t,e){if(t&1&&(y(0,"span",19),A(1),v()),t&2){let n=g(2);p(),Ie(n.label)}}function FA(t,e){if(t&1){let n=W();_e(0),y(1,"label",15)(2,"input",16,0),N("ngModelChange",function(i){P(n);let o=g();return o.value=i,R(o.onChange())}),v(),ke(4,"span",17),T(5,kA,2,1,"span",18),v(),we()}if(t&2){let n=g();p(2),he("error",n.error),m("disabled",n.disabled)("ngModel",n.value)("ngClass",n.wClass)("name",n.name),p(3),m("ngIf",n.label)}}var GB=(()=>{let e=class e{constructor(r){this._core=r,this.value="",this.valid=i=>!!i,this.items=[],this.placeholder="",this.disabled=!1,this.focused=!1,this.name="name",this.type="text",this.label="",this.wChange=new H,this.wSubmit=new H,this.wBlur=new H,this.error=!1}ngOnInit(){this.focused&&this.focus(),this.setFocus&&(this.setFocus.focus=this.focus.bind(this))}ngOnChanges(r){console.log(r),r.disabled&&(this.disabled=r.disabled.currentValue)}focus(){setTimeout(()=>{this.inputEl.nativeElement.focus()},100)}onChange(){this._core.afterWhile("winput",()=>{this.value=typeof this.replace=="function"?this.replace(this.value):this.value,this.wChange.emit(this.value)},100)}onSubmit(){this.valid(this.value)?this.wSubmit.emit(this.value):this.error=!0}setDisabled(r){this.disabled=r}};e.\u0275fac=function(i){return new(i||e)(E(Ce))},e.\u0275cmp=fe({type:e,selectors:[["winput"]],viewQuery:function(i,o){if(i&1&&ti(MA,5),i&2){let s;Xe(s=et())&&(o.inputEl=s.first)}},inputs:{value:"value",replace:"replace",valid:"valid",items:"items",placeholder:"placeholder",disabled:"disabled",focused:"focused",wClass:"wClass",name:"name",type:"type",label:"label",setFocus:"setFocus"},outputs:{wChange:"wChange",wSubmit:"wSubmit",wBlur:"wBlur"},features:[Je],ngContentSelectors:I0,decls:4,vars:4,consts:[["inputEl",""],["class","w-forms",3,"for",4,"ngIf"],[4,"ngIf"],[1,"w-forms",3,"for"],["class","w-forms__title",4,"ngIf"],[1,"w-forms__input",3,"ngModelChange","keyup.enter","blur","placeholder","type","disabled","ngModel","ngClass","name"],["class","error-message",4,"ngIf"],[1,"w-forms__title"],[1,"error-message"],[1,"w-forms__textarea",3,"ngModelChange","keyup.enter","blur","placeholder","disabled","ngModel","ngClass","name"],["class","check-label",4,"ngFor","ngForOf"],[1,"check-label"],[1,"form-label"],["type","radio",3,"ngModelChange","disabled","ngModel","ngClass","value","name"],[1,"checkbox","_radio"],[1,"container-box"],["type","checkbox",1,"w-input__checkbox",3,"ngModelChange","disabled","ngModel","ngClass","name"],[1,"checkmark"],["class","check-text",4,"ngIf"],[1,"check-text"]],template:function(i,o){i&1&&(ka(I0),T(0,AA,6,11,"label",1)(1,NA,7,10,"ng-container",2)(2,RA,2,1,"ng-container",2)(3,FA,6,7,"ng-container",2)),i&2&&(m("ngIf",o.type!=="radio"&&o.type!=="checkbox"&&o.type!=="textarea"),p(),m("ngIf",o.type==="textarea"),p(),m("ngIf",o.type==="radio"),p(),m("ngIf",o.type==="checkbox"))},dependencies:[jn,Yf,Qf,Ci,vr,dn,Ue,nt],styles:['[_ngcontent-%COMP%]:root{--c-white: #fff;--c-basic: #3558ae;--c-primary: #256eff;--c-primary-hover: #0051f1;--c-secondary: rgb(197, 61, 61);--c-secondary-hover: rgb(150, 42, 42);--c-bg-primary: #f3f4f7;--c-bg-secondary: #ffffff;--c-bg-tertiary: #fcfdfe;--c-border: #f0f1f7;--c-shadow: #f3f3f3;--c-text-primary: #666666;--c-text-secondary: #19235c;--c-placeholder: #313335ab;--c-img-round: 50%;--card-background: #fefefe;--card-border-radius: 10px;--card-box-shadow: 0 4px 12px rgba(0, 0, 0, .15);--card-margin-bottom: 24px;--card-header-padding: 20px;--card-header-background: #e0e0e0;--card-body-padding: 20px;--card-section-padding: 10px 0;--card-footer-padding: 20px;--card-footer-background: #e0e0e0;--card-border-width: 2px;--card-border-color: #cccccc;--file-img-border-radius: 50%;--file-add-bg: #28a745;--file-add-bg-hover: #218838;--file-item-border-radius: 10px}html.dark[_ngcontent-%COMP%]:root{--c-white: #fff;--c-basic: #333;--c-bg-primary: #282828;--c-bg-secondary: #343434;--c-bg-tertiary: #404040;--c-border: #404040;--c-shadow: #444444;--c-text-primary: #ffffff;--c-text-secondary: #ffffff;--c-placeholder: #d3cdcd}.w-forms[_ngcontent-%COMP%]{position:relative;padding:10px 0;display:block}.w-forms__title[_ngcontent-%COMP%]{letter-spacing:0;line-height:23px;font-weight:500;font-size:20px;color:var(--c-text-primary);display:flex;justify-content:space-between;align-items:center;border-radius:var(--b-radius);margin-bottom:10px}.w-forms__field[_ngcontent-%COMP%], .w-forms[_ngcontent-%COMP%] .w-forms__textarea[_ngcontent-%COMP%]{background-color:transparent;border:1px solid var(--c-border);border-radius:var(--b-radius);color:var(--c-text-secondary);font-size:calc(var(--fs) - 2px);line-height:calc(var(--fs) + 4px);transition:var(--transition);width:100%;display:block;letter-spacing:var(--letter-spacing);padding:8px 12px;appearance:textfield;-webkit-appearance:textfield;-moz-appearance:textfield}.w-forms__field[_ngcontent-%COMP%]::placeholder, .w-forms[_ngcontent-%COMP%] .w-forms__textarea[_ngcontent-%COMP%]::placeholder{color:var(--c-placeholder);transition:var(--transition)}.w-forms__field[_ngcontent-%COMP%]:focus, .w-forms[_ngcontent-%COMP%] .w-forms__textarea[_ngcontent-%COMP%]:focus{transition:var(--transition);border-color:var(--c-primary);outline:none}.w-forms__field[_ngcontent-%COMP%]:disabled, .w-forms[_ngcontent-%COMP%] .w-forms__textarea[_ngcontent-%COMP%]:disabled{background-color:var(--c-grey);border-color:var(--c-grey);color:var(--c-grey);cursor:default;opacity:.6}.w-forms__field[type=time][_ngcontent-%COMP%], .w-forms[_ngcontent-%COMP%] .w-forms__textarea[type=time][_ngcontent-%COMP%]{-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.w-forms__checkbox[_ngcontent-%COMP%]{display:none}.w-forms__checkbox[_ngcontent-%COMP%]:checked ~ .checkbox[_ngcontent-%COMP%]:before{opacity:1}input.error[_ngcontent-%COMP%], textarea.error[_ngcontent-%COMP%]{border:1px solid red}.error-message[_ngcontent-%COMP%]{color:red;font-size:12px;margin-top:4px}.check-label[_ngcontent-%COMP%]{display:flex;column-gap:5px;cursor:pointer}.check-label[_ngcontent-%COMP%] .checkbox[_ngcontent-%COMP%]{position:relative;width:18px;height:18px;display:inline-block;border-radius:4px;transform:scale(1);border:1px solid var(--c-border);transition:var(--transition);box-shadow:0 1px 1px var(--c-shadow)}.check-label[_ngcontent-%COMP%] .checkbox[_ngcontent-%COMP%]:before{position:absolute;left:50%;top:50%;transition:var(--transition);opacity:0;transform:translate(-50%,-65%) rotate(45deg);height:11px;width:7px;display:block;content:"";border-bottom:2px solid var(--c-primary);border-right:2px solid var(--c-primary)}.container-box[_ngcontent-%COMP%]{position:relative;padding-left:35px;margin-bottom:12px;cursor:pointer;font-size:22px;-webkit-user-select:none;user-select:none}.container-box[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.container-box[_ngcontent-%COMP%] .checkmark[_ngcontent-%COMP%]{position:absolute;top:0;left:0;height:32px;width:32px;background-color:#12677a6e;border-radius:50%;transition:all .3s}.container-box[_ngcontent-%COMP%] .checkmark[_ngcontent-%COMP%]:after, .container-box[_ngcontent-%COMP%] .checkmark[_ngcontent-%COMP%]:before{content:"";position:absolute;display:none}.container-box[_ngcontent-%COMP%] .checkmark[_ngcontent-%COMP%]:after{left:10px;top:47%;width:8px;height:14px;border:solid white;border-width:0 3px 3px 0;transform:rotate(45deg) translate(-50%,-50%)}.container-box[_ngcontent-%COMP%]:hover input[_ngcontent-%COMP%] ~ .checkmark[_ngcontent-%COMP%]{background-color:#0f353d60}.container-box[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ .checkmark[_ngcontent-%COMP%]{background-color:var(--c-primary)}.container-box[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ .checkmark[_ngcontent-%COMP%]:after{display:block}']});let t=e;return t})();var x0=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ce({type:e}),e.\u0275inj=ae({imports:[Gt,Fe]});let t=e;return t})();function LA(t,e){if(t&1){let n=W();y(0,"wbutton",4),N("click",function(){let i=P(n).$implicit,o=g();return R(i.click(o.submition,o.close))}),A(1),v()}if(t&2){let n=e.$implicit;m("ngClass",n.class),p(),de(" ",n.label," ")}}var qc=(()=>{let e=class e{set(r){this._core.copy(r,this.submition),this._core.copy(r.data,this.submition.data)}constructor(r){this._core=r}};e.\u0275fac=function(i){return new(i||e)(E(Ce))},e.\u0275cmp=fe({type:e,selectors:[["ng-component"]],decls:4,vars:3,consts:[["formRef",""],[3,"wSubmit","wChange","config","submition"],[1,"btn-action","btn-action_w95p"],["class","w-btn _primary",3,"ngClass","click",4,"ngFor","ngForOf"],[1,"w-btn","_primary",3,"click","ngClass"]],template:function(i,o){if(i&1){let s=W();y(0,"wform",1,0),N("wSubmit",function(){return P(s),o.set(o.submition),o.submit(o.submition),R(o.close())})("wChange",function(){return P(s),o.set(o.submition),R(o.change(o.submition))}),v(),y(2,"div",2),T(3,LA,2,2,"wbutton",3),v()}i&2&&(m("config",o.form)("submition",o.submition),p(3),m("ngForOf",o.buttons))},styles:[".btn-action[_ngcontent-%COMP%]{padding:30px 0 0}.btn-action[_ngcontent-%COMP%] .w-btn[_ngcontent-%COMP%]{width:100%;display:block}"]});let t=e;return t})();var Gc=(()=>{let e=class e{constructor(r){this._mongo=r}get getDoc(){return this.doc}change(){this._mongo.unique(this.module,this.doc,{name:this.field},r=>{this.doc[this.field]!==r&&(this.doc[this.field]=r)})}};e.\u0275fac=function(i){return new(i||e)(E(m0))},e.\u0275cmp=fe({type:e,selectors:[["app-modal-unique"]],decls:1,vars:2,consts:[[3,"wChange","config","submition"]],template:function(i,o){i&1&&(y(0,"wform",0),N("wChange",function(){return o.change()}),v()),i&2&&m("config",o.form)("submition",o.getDoc)}});let t=e;return t})();var M0=(()=>{let e=class e extends Bc{constructor(r,i,o,s){super({name:"form"},r,i,o,s),this.customforms=[],this.get().subscribe(a=>this.customforms.push(...a)),s.on("customform_create").subscribe(a=>{this.customforms.push(a)}),s.on("customform_delete").subscribe(a=>{this.customforms.splice(this.customforms.findIndex(c=>c._id===a._id),1)})}};e.\u0275fac=function(i){return new(i||e)(_(Mi),_(Wt),_(y0),_(Ce))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var S0=[{name:"Afrikaans",origin:"Afrikaans",code:"af"},{name:"Albanian",origin:"shqiptare",code:"sq"},{name:"Amharic",origin:"\u12A0\u121B\u122D\u129B",code:"am"},{name:"Arabic",origin:"\u0639\u0631\u0628\u064A",code:"ar"},{name:"Armenian",origin:"\u0570\u0561\u0575\u0565\u0580\u0565\u0576",code:"hy"},{name:"Assamese",origin:"\u0985\u09B8\u09AE\u09C0\u09DF\u09BE",code:"as"},{name:"Aymara",origin:"Aymara",code:"ay"},{name:"Azerbaijani",origin:"Az\u0259rbaycan",code:"az"},{name:"Bambara",origin:"U b'a don",code:"bm"},{name:"Basque",origin:"euskara",code:"eu"},{name:"Belarusian",origin:"\u0431\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0456",code:"be"},{name:"Bengali",origin:"\u09AC\u09BE\u0982\u09B2\u09BE",code:"bn"},{name:"Bhojpuri",origin:"\u092D\u094B\u091C\u092A\u0941\u0930\u0940",code:"bho"},{name:"Bosnian",origin:"bosanski",code:"bs"},{name:"Bulgarian",origin:"\u0431\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438",code:"bg"},{name:"Catalan",origin:"catal\xE0",code:"ca"},{name:"Cebuano",origin:"Cebuano",code:"ceb"},{name:"Chinese (Simplified)",origin:"\u7B80\u4F53\u4E2D\u6587\uFF09",code:"zh-CN"},{name:"Chinese (Traditional)",origin:"\u4E2D\u570B\u50B3\u7D71\u7684\uFF09",code:"zh-TW"},{name:"Corsican",origin:"Corsu",code:"co"},{name:"Croatian",origin:"Hrvatski",code:"hr"},{name:"Czech",origin:"\u010De\u0161tina",code:"cs"},{name:"Danish",origin:"dansk",code:"da"},{name:"Dhivehi",origin:"\u078B\u07A8\u0788\u07AC\u0780\u07A8",code:"dv"},{name:"Dogri",origin:"\u0921\u094B\u0917\u0930\u0940",code:"doi"},{name:"Dutch",origin:"Nederlands",code:"nl"},{name:"English",origin:"English",code:"en"},{name:"English (British)",origin:"English (British)",code:"en-GB"},{name:"English (Australian)",origin:"English (Australian)",code:"en-AU"},{name:"Esperanto",origin:"Esperanto",code:"eo"},{name:"Estonian",origin:"eesti keel",code:"et"},{name:"Ewe",origin:"A\u014Bgba",code:"ee"},{name:"Filipino (Tagalog)",origin:"Filipino (Tagalog)",code:"fil"},{name:"Finnish",origin:"Suomalainen",code:"fi"},{name:"French",origin:"Fran\xE7ais",code:"fr"},{name:"Frisian",origin:"Frysk",code:"fy"},{name:"Galician",origin:"galego",code:"gl"},{name:"Georgian",origin:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8",code:"ka"},{name:"German",origin:"Deutsch",code:"de"},{name:"Greek",origin:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",code:"el"},{name:"Guarani",origin:"guarani",code:"gn"},{name:"Gujarati",origin:"\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0",code:"gu"},{name:"Haitian Creole",origin:"Krey\xF2l ayisyen",code:"ht"},{name:"Hausa",origin:"Hausa",code:"ha"},{name:"Hawaiian",origin:"\u02BB\u014Clelo Hawai\u02BBi",code:"haw"},{name:"Hebrew",origin:"\u05E2\u05B4\u05D1\u05E8\u05B4\u05D9\u05EA",code:"he"},{name:"Hindi",origin:"\u0928\u0939\u0940\u0902",code:"hi"},{name:"Hmong",origin:"Hmong",code:"hmn"},{name:"Hungarian",origin:"Magyar",code:"hu"},{name:"Icelandic",origin:"\xEDslenskur",code:"is"},{name:"Igbo",origin:"Igbo",code:"ig"},{name:"Ilocano",origin:"Ilocano",code:"ilo"},{name:"Indonesian",origin:"bahasa Indonesia",code:"id"},{name:"Irish",origin:"Gaeilge",code:"ga"},{name:"Italian",origin:"Italiano",code:"it"},{name:"Japanese",origin:"\u65E5\u672C",code:"ja"},{name:"Javanese",origin:"basa jawa",code:"jv"},{name:"Kannada",origin:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",code:"kn"},{name:"Kazakh",origin:"\u049B\u0430\u0437\u0430\u049B",code:"kk"},{name:"Khmer",origin:"\u1781\u17D2\u1798\u17C2\u179A",code:"km"},{name:"Kinyarwanda",origin:"Kinyarwanda",code:"rw"},{name:"Konkani",origin:"\u0915\u094B\u0902\u0915\u0923\u0940",code:"gom"},{name:"Korean",origin:"\uD55C\uAD6D\uC778",code:"ko"},{name:"Krio",origin:"Kryo we de na di w\u0254l",code:"kri"},{name:"Kurdish",origin:"Kurd\xEE",code:"ku"},{name:"Kurdish (Sorani)",origin:"\u06A9\u0648\u0631\u062F\u06CC (\u0633\u06C6\u0631\u0627\u0646\u06CC)",code:"ckb"},{name:"Kyrgyz",origin:"\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430",code:"ky"},{name:"Lao",origin:"\u0EC1\u0EAE\u0E87\u200B\u0E87\u0EB2\u0E99",code:"lo"},{name:"Latin",origin:"Latinus",code:"la"},{name:"Latvian",origin:"latviski",code:"lv"},{name:"Lingala",origin:"Lingala",code:"ln"},{name:"Lithuanian",origin:"lietuvi\u0173",code:"lt"},{name:"Luganda",origin:"Luganda",code:"lg"},{name:"Luxembourgish",origin:"l\xEBtzebuergesch",code:"lb"},{name:"Macedonian",origin:"\u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438",code:"mk"},{name:"Maithili",origin:"\u092E\u0948\u0925\u093F\u0932\u0940",code:"mai"},{name:"Malagasy",origin:"Malagasy",code:"mg"},{name:"Malay",origin:"Melayu",code:"ms"},{name:"Malayalam",origin:"\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02",code:"ml"},{name:"Maltese",origin:"Malti",code:"mt"},{name:"Maori",origin:"Maori",code:"mi"},{name:"Marathi",origin:"\u092E\u0930\u093E\u0920\u0940",code:"mr"},{name:"Meiteilon (Manipuri)",origin:"\uABC3\uABE6\uABCF\uABC7\uABE6\uABCF\uABC2\uABE3\uABDF (\uABC3\uABC5\uABE4\uABC4\uABE8\uABD4\uABE4) \uABF4.",code:"mni-Mtei"},{name:"Mizo",origin:"Mizo",code:"lus"},{name:"Mongolian",origin:"\u041C\u043E\u043D\u0433\u043E\u043B",code:"mn"},{name:"Myanmar (Burmese)",origin:"\u1019\u103C\u1014\u103A\u1019\u102C (\u1017\u1019\u102C)\u104A",code:"my"},{name:"Nepali",origin:"\u0928\u0947\u092A\u093E\u0932\u0940",code:"ne"},{name:"Norwegian",origin:"norsk",code:"no"},{name:"Nyanja (Chichewa)",origin:"Nyanja (Chichewa)",code:"ny"},{name:"Odia (Oriya)",origin:"\u0B13\u0B21\u0B3F\u0B06 (\u0B13\u0B21\u0B3F\u0B06)",code:"or"},{name:"Oromo",origin:"Oromo",code:"om"},{name:"Pashto",origin:"\u067E\u069A\u062A\u0648",code:"ps"},{name:"Persian",origin:"\u0641\u0627\u0631\u0633\u06CC",code:"fa"},{name:"Polish",origin:"Polski",code:"pl"},{name:"Portuguese (Portugal, Brazil)",origin:"Portugu\xEAs (Portugal, Brasil)",code:"pt"},{name:"Punjabi",origin:"\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40",code:"pa"},{name:"Quechua",origin:"Runasimi",code:"qu"},{name:"Romanian",origin:"Rom\xE2n\u0103",code:"ro"},{name:"Russian",origin:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",code:"ru"},{name:"Samoan",origin:"Samoa",code:"sm"},{name:"Sanskrit",origin:"\u0938\u0902\u0938\u094D\u0915\u0943\u0924",code:"sa"},{name:"Scots Gaelic",origin:"G\xE0idhlig na h-Alba",code:"gd"},{name:"Sepedi",origin:"Sepedi",code:"nso"},{name:"Serbian",origin:"\u0421\u0440\u043F\u0441\u043A\u0438",code:"sr"},{name:"Sesotho",origin:"Senyesemane",code:"st"},{name:"Shona",origin:"Shona",code:"sn"},{name:"Sindhi",origin:"\u0633\u0646\u068C\u064A",code:"sd"},{name:"Sinhala (Sinhalese)",origin:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD (\u0DC3\u0DD2\u0D82\u0DC4\u0DBD)",code:"si"},{name:"Slovak",origin:"slovensk\xFD",code:"sk"},{name:"Slovenian",origin:"Sloven\u0161\u010Dina",code:"sl"},{name:"Somali",origin:"Somali",code:"so"},{name:"Spanish",origin:"espa\xF1ol",code:"es"},{name:"Sundanese",origin:"Sundanese",code:"su"},{name:"Swahili",origin:"kiswahili",code:"sw"},{name:"Swedish",origin:"svenska",code:"sv"},{name:"Tagalog (Filipino)",origin:"Tagalog (Filipino)",code:"tl"},{name:"Tajik",origin:"\u0442\u043E\u04B7\u0438\u043A\u04E3",code:"tg"},{name:"Tamil",origin:"\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD",code:"ta"},{name:"Tatar",origin:"\u0422\u0430\u0442\u0430\u0440",code:"tt"},{name:"Telugu",origin:"\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41",code:"te"},{name:"Thai",origin:"\u0E41\u0E1A\u0E1A\u0E44\u0E17\u0E22",code:"th"},{name:"Tigrinya",origin:"\u1275\u130D\u122A\u129B",code:"ti"},{name:"Tsonga",origin:"Tsonga",code:"ts"},{name:"Turkish",origin:"T\xFCrk",code:"tr"},{name:"Turkmen",origin:"T\xFCrkmenler",code:"tk"},{name:"Twi (Akan)",origin:"Twi (Will) .",code:"ak"},{name:"Ukrainian",origin:"\u0443\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",code:"uk"},{name:"Urdu",origin:"\u0627\u0631\u062F\u0648",code:"ur"},{name:"Uyghur",origin:"\u0626\u06C7\u064A\u063A\u06C7\u0631",code:"ug"},{name:"Uzbek",origin:"o'zbek",code:"uz"},{name:"Vietnamese",origin:"Ti\u1EBFng Vi\u1EC7t",code:"vi"},{name:"Welsh",origin:"Cymraeg",code:"cy"},{name:"Xhosa",origin:"isiXhosa",code:"xh"},{name:"Yiddish",origin:"\u05D9\u05D9\u05D3\u05D9\u05E9",code:"yi"},{name:"Yoruba",origin:"Yoruba",code:"yo"},{name:"Zulu",origin:"Zulu",code:"zu"}];var Ti=(()=>{let e=class e{constructor(r,i,o){this.store=r,this.http=i,this._core=o,this.allLanguages=S0,this.appId=yi.appId,this.words=[],this.pages=[],this.languages=yi.languages?yi.languages:[{code:"en",name:"English",origin:"English"}],this.language=this.languages.length?this.languages[0]:{code:"en",name:"English",origin:"English"},this.translates={},this.resets={},this.now=Date.now(),this._created={},this._wordsLoaded=!1,this.store.getJson("translates",s=>{s&&(this.translates=s||{})}),this._core.on("languages").subscribe(s=>{this.languages=s}),this.store.getJson("words",s=>{s&&(this.words=s)}),this.store.getJson("language",s=>{s&&this.set_language(s)}),this.http.get("/api/translate/get"+(this.appId?"/"+this.appId:""),s=>{s&&(this.translates=s,this.store.setJson("translates",this.translates))}),this.http.get("/api/word/get"+(this.appId?"/"+this.appId:""),s=>{if(s){this.words=s,this.store.setJson("words",this.words);for(let a=0;a=0;i--)this.words[i]._id==r._id&&this.words.splice(i,1);this.http.post("/api/word/delete"+(this.appId?"/"+this.appId:""),{_id:r._id}),this.http.post("/api/translate/delete"+(this.appId?"/"+this.appId:""),{slug:r.slug})}set_language(r){r&&(this.http.post("/api/translate/set",{appId:this.appId,language:r.code}),this.language=r,this.reset(),this.store.setJson("language",r))}next_language(){for(let r=0;ro?.slug||"").filter(o=>!!o).indexOf(r)<0&&this.create_word(r),this._slug2name(r))):""}create_word(r){this._created[r]||(this._wordsLoaded?(this._created[r]=!0,this.http.post("/api/word/create",{appId:this.appId,slug:r,word:this._slug2name(r),page:r.split(".")[0],lang:this.language.code},i=>{i&&this.words.push(i)})):setTimeout(()=>{this.create_word(r)},500))}update_translate(r,i,o){this._core.afterWhile(this,()=>{if(this.http.post("/api/translate/create",{appId:this.appId,slug:r,translate:o,lang:i}),this.store.setJson("translates",this.translates),this.language.code===i&&Array.isArray(this.resets[r]))for(let s=0;s{let i="data:text/json;charset=utf-8,"+encodeURIComponent(JSON.stringify(this.translates)),o=document.createElement("a");o.href=i,o.download="translate.json",o.click(),o.remove()})}_slug2name(r){return r.substr(r.indexOf(".")+1)}};e.\u0275fac=function(i){return new(i||e)(_(Wt),_(Mi),_(Ce))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var T0=(()=>{let e=class e{constructor(r,i,o,s,a,c,l){this.componentFactoryResolver=r,this._cfs=i,this._translate=o,this._modal=s,this._store=a,this.appRef=c,this.injector=l,this.appId=yi.appId,this._injectedComponent={},this.templateFields={},this.customTemplateFields={},this._templateComponent={},this.forms=[],this.formIds=[],this._store.getJson("formIds",u=>{Array.isArray(u)&&this.formIds.push(...u)})}getTemplateFields(r){return this.templateFields[r]||["Placeholder","Label"]}setTemplateFields(r,i,o={}){this.templateFields[r]=i,this.customTemplateFields[r]=C(C({},this.customTemplateFields[r]||{}),o)}getCustomTemplateFields(r){return this.customTemplateFields[r]||{}}injectComponent(r,i,o=["Placeholder","Label"],s={}){if(!this._injectedComponent[r]){this._injectedComponent[r]=!0,this.templateFields[r]=o,this.customTemplateFields[r]=s;let c=this.componentFactoryResolver.resolveComponentFactory(i).create(this.injector);this.appRef.attachView(c.hostView);let l=c.hostView.rootNodes[0];document.body.appendChild(l)}}addTemplateComponent(r,i){this._templateComponent[r]||(this._templateComponent[r]=i)}getTemplateComponent(r){return this._templateComponent[r]}getTemplateComponentsNames(){let r=[];for(let i in this._templateComponent)r.push(i);return r}translateForm(r){if(r.title){r.title=this._translate.translate(`Form_${r.formId}.${r.title}`,i=>{r.title=i});for(let i of r.components)for(let o of i.fields||[])this.translateFormComponent(r,o)}}translateFormComponent(r,i){let o=i.value;typeof o=="string"&&!i.skipTranslation&&(i.value=this._translate.translate(`Form_${r.formId}.${o}`,s=>{i.value=s}))}getDefaultForm(r,i=["name","description"]){return this.formIds.indexOf(r)===-1&&(this.formIds.push(r),this._store.setJson("formIds",this.formIds)),{id:r,components:i.map((s,a)=>({name:s.includes(".")?s.split(".")[1]:"Text",key:s,focused:!a,fields:[{name:"Placeholder",value:"Enter your "+s.split(".")[0]},{name:"Label",value:s.split(".")[0].capitalize()}]}))}}getForm(r,i){if(i&&this.forms.map(s=>s.formId).indexOf(i?.formId)===-1&&this.forms.push(i),this.formIds.indexOf(r)===-1&&(this.formIds.push(r),this._store.setJson("formIds",this.formIds)),i=i||this.forms.find(s=>s.formId===r),i=i||this.getDefaultForm(r),i)for(let s of i.components)s.root=!0;let o=this._cfs.customforms.filter(s=>s.active&&s.formId===r);i.formId=r;for(let s of o){i.title=i.title||s.name,i.class=i.class||s.class;for(let a of s.components)a.root=!1,i.components.push(a)}return this.translateForm(i),i}modal(r,i=[],o={},s=c=>{},a={}){return new Promise(c=>{this._modal.show(z(C({},a),{component:qc,class:"forms_modal",form:r,buttons:Array.isArray(i)?i:[i],submition:o,onClose:function(){c(this.submition)},submit:l=>{c(l)},change:l=>{typeof s=="function"&&s(l)}}))})}modalUnique(r,i,o,s="",a=()=>{}){this._modal.show({component:Gc,form:this.getDefaultForm("unique",[i+(s?"."+s:"")]),module:r,field:i,doc:o,class:"forms_modal",onClose:a})}};e.\u0275fac=function(i){return new(i||e)(_($t),_(M0),_(Ti),_(v0),_(Wt),_(tt),_(Me))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var BA=(t,e,n,r,i,o,s,a)=>({field:t,config:e,component:n,key:r,submition:i,wSubmit:o,wChange:s,wClick:a}),UA=t=>({$implicit:t});function $A(t,e){if(t&1){let n=W();y(0,"form-component",4),N("wSubmit",function(){P(n);let i=g(3);return R(i.wSubmit.emit(i.submition))})("wChange",function(){P(n);let i=g(3);return R(i.wChange.emit())})("wClick",function(){P(n);let i=g(3);return R(i.wClick.emit())}),v()}if(t&2){let n=g(),r=n.$implicit,i=n.index,o=g(2);cr(o.config.formId+"_"+o.index+"_"+i+" "+(o.component.class||"")),m("component",r)("submition",o.submition)("config",o.config)("index",o.index+"_"+i)}}function HA(t,e){if(t&1&&(_e(0),T(1,$A,1,6,"form-component",3),we()),t&2){let n=g(2);p(),m("ngIf",!n.component.hidden)}}function zA(t,e){if(t&1&&(_e(0),y(1,"div",1),T(2,HA,2,1,"ng-container",2),v(),we()),t&2){let n=g();p(),cr(n.component.class||""),p(),m("ngForOf",n.component.components)}}function qA(t,e){t&1&&yt(0)}function GA(t,e){if(t&1&&(_e(0),y(1,"div",5),T(2,qA,1,0,"ng-container",6),v(),we()),t&2){let n=g();p(2),m("ngTemplateOutlet",n.template)("ngTemplateOutletContext",On(11,UA,Ny(2,BA,n.field,n.config,n.component,n.localKey,n.localSubmition,n.submit.bind(n),n.change.bind(n),n.click.bind(n))))}}var A0=(()=>{let e=class e{submit(){this.wSubmit.emit(this.submition)}change(){this.wChange.emit(this.submition)}click(){this.wClick.emit(this.submition)}get hasComponents(){return Array.isArray(this.component.components)}get template(){return this._form.getTemplateComponent(this.component.name)}constructor(r){this._form=r,this.submition={},this.wSubmit=new H,this.wChange=new H,this.wClick=new H,this.field={}}ngOnInit(){if(Array.isArray(this.component.fields))for(let i of this.component.fields)this.field[i.name]=i.value;this.localSubmition=this.submition;let r=(this.component.key||"")?.split(".");for(;r.length>1;){let i=r.shift();if(i.endsWith("[]")){i=i.replace("[]","");let o=this._getIndex();for(this.localSubmition[i]=this.localSubmition[i]||[];o+1>this.localSubmition[i].length;)this.localSubmition[i].push({});this.localSubmition=this.localSubmition[i][o]}else this.localSubmition=this.localSubmition[this.localKey]}this.localKey=r[0]}_getIndex(r=this.config.components){for(let i of r)if(i.components){if(this._getIndex(i.components)>=0){for(let s=0;s=0)return i.components.indexOf(this.component)}return-1}};e.\u0275fac=function(i){return new(i||e)(E(T0))},e.\u0275cmp=fe({type:e,selectors:[["form-component"]],inputs:{index:"index",config:"config",component:"component",submition:"submition"},outputs:{wSubmit:"wSubmit",wChange:"wChange",wClick:"wClick"},decls:2,vars:2,consts:[[4,"ngIf"],[1,"form-components-container"],[4,"ngFor","ngForOf"],["class","w-forms__component",3,"class","component","submition","config","index","wSubmit","wChange","wClick",4,"ngIf"],[1,"w-forms__component",3,"wSubmit","wChange","wClick","component","submition","config","index"],[1,"form-container"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,o){i&1&&T(0,zA,3,3,"ng-container",0)(1,GA,3,13,"ng-container",0),i&2&&(m("ngIf",o.hasComponents),p(),m("ngIf",o.component.name&&o.template&&(!o.component.key||o.localKey&&o.localSubmition)))},dependencies:[Ue,nt,oi,e],styles:["[_nghost-%COMP%]{position:relative}.w-forms[_ngcontent-%COMP%]{position:relative;padding:0!important;background-color:red}.w-forms__component[_ngcontent-%COMP%]{align-items:end;margin:0 0 10px}.w-forms__level[_ngcontent-%COMP%]{top:3px;right:5px;position:absolute;display:inline-block;color:var(--c-text-secondary);font-size:22px;line-height:calc(var(--fs) + 4px);letter-spacing:var(--letter-spacing);transition:var(--transition)}.w-forms__level._sky[_ngcontent-%COMP%]{color:var(--c-info)}.w-forms__level._orange[_ngcontent-%COMP%]{color:var(--c-warn)}.w-forms__level._green[_ngcontent-%COMP%]{color:var(--c-success)}.w-forms__input[_ngcontent-%COMP%]{padding-right:35px}.w-forms__input-block[_ngcontent-%COMP%]{position:relative}.w-forms__toggle[_ngcontent-%COMP%]{display:flex;position:absolute;right:10px;bottom:10px;color:var(--c-placeholder);transform:translateY(-50%);cursor:pointer}.w-forms__toggle[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:21px}.w-forms[_ngcontent-%COMP%] .icon-visibility[_ngcontent-%COMP%]{color:var(--c-primary)}"]});let t=e;return t})();function ZA(t,e){if(t&1&&(y(0,"h1",4),A(1),v()),t&2){let n=g();p(),Ie(n.config.title)}}function YA(t,e){if(t&1){let n=W();y(0,"form-component",6),N("wSubmit",function(){P(n);let i=g(2);return R(i.onSubmit())})("wChange",function(){P(n);let i=g(2);return R(i.onChange())})("wClick",function(){P(n);let i=g(2);return R(i.onClick())}),v()}if(t&2){let n=g(),r=n.$implicit,i=n.index,o=g();cr(o.config.formId+"_"+i+" "+(r.class||"")+" "+o.config.formId),m("component",r)("submition",o.submition)("config",o.config)("index",""+i)}}function QA(t,e){if(t&1&&(_e(0),T(1,YA,1,6,"form-component",5),we()),t&2){let n=e.$implicit;p(),m("ngIf",!n.hidden)}}var hh=(()=>{let e=class e{constructor(r){this._core=r,this.submition={},this.wChange=new H,this.wSubmit=new H}ngAfterViewInit(){this.submition.data=this.submition.data||{}}component(r,i=this.config.components){for(let o of i){if(o.key===r)return o;if(o.components?.length){let s=this.component(r,o.components);if(s)return s}}return!1}onSubmit(){this._core.afterWhile(this,()=>{for(let r of this.config.components)if(r.key&&r.required&&(r.valid&&!r.valid()||!r.valid&&!this.submition[r.key])){typeof r.focus=="function"&&r.focus();return}this.wSubmit.emit(this.submition)})}onChange(){this._core.afterWhile(this,()=>{this.wChange.emit(this.submition)})}onClick(){}};e.\u0275fac=function(i){return new(i||e)(E(Ce))},e.\u0275cmp=fe({type:e,selectors:[["wform"]],inputs:{config:"config",submition:"submition"},outputs:{wChange:"wChange",wSubmit:"wSubmit"},decls:4,vars:2,consts:[[1,"w-forms"],["class","w-forms__title",4,"ngIf"],[3,"ngSubmit"],[4,"ngFor","ngForOf"],[1,"w-forms__title"],["class","w-forms__component",3,"class","component","submition","config","index","wSubmit","wChange","wClick",4,"ngIf"],[1,"w-forms__component",3,"wSubmit","wChange","wClick","component","submition","config","index"]],template:function(i,o){i&1&&(y(0,"div",0),T(1,ZA,2,1,"h1",1),y(2,"form",2),N("ngSubmit",function(){return o.onSubmit()}),T(3,QA,2,1,"ng-container",3),v()()),i&2&&(p(),m("ngIf",o.config.title),p(2),m("ngForOf",o.config.components))},dependencies:[Ue,nt,A0]});let t=e;return t})();var O0=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ce({type:e}),e.\u0275inj=ae({imports:[Fe,zc]});let t=e;return t})();xd(qc,[dn,Ue,Hc,hh],[]);xd(Gc,[hh],[]);var q3=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ce({type:e}),e.\u0275inj=ae({imports:[Fe,Gt,Si,O0,zc,v_,x0]});let t=e;return t})();var W3=(()=>{let e=class e{constructor(r,i){this.elementRef=r,this.tr=i}ngOnInit(){this.elementRef.nativeElement.innerHTML=this.tr.translate(this.elementRef.nativeElement.innerHTML,r=>{this.elementRef.nativeElement.innerHTML=r})}};e.\u0275fac=function(i){return new(i||e)(E(Ee),E(Ti))},e.\u0275dir=ie({type:e,selectors:[["","translate",""]]});let t=e;return t})();var Y3=(()=>{let e=class e{constructor(r){this._tr=r}transform(r,i){return this._tr.translate(r)}};e.\u0275fac=function(i){return new(i||e)(E(Ti,16))},e.\u0275pipe=rr({name:"translate",type:e,pure:!0});let t=e;return t})();var iU=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ce({type:e}),e.\u0275inj=ae({imports:[Fe,Gt,Si]});let t=e;return t})();var KA=["e_search"],JA=t=>({item:t});function XA(t,e){if(t&1&&(y(0,"div",21),A(1),v()),t&2){let n=g();p(),Ie(n.label)}}function eO(t,e){if(t&1&&(y(0,"div"),A(1),v()),t&2){let n=g(3);p(),Ie(n.placeholder)}}function tO(t,e){t&1&&(y(0,"span"),A(1,", "),v())}function nO(t,e){if(t&1){let n=W();y(0,"span"),A(1),y(2,"i",27),N("click",function(){P(n);let i=g().index,o=g(3);return o._values.splice(i,1),R(o.modelChange.emit(o._values))}),A(3,"close"),v()()}if(t&2){let n=g().$implicit,r=g(3);p(),de("",r._items[n][r.name]," ")}}function rO(t,e){if(t&1&&(y(0,"span"),T(1,tO,2,0,"span",25)(2,nO,4,1,"span",25),v()),t&2){let n=e.$implicit,r=e.index,i=g(3);p(),m("ngIf",r),p(),m("ngIf",i._items[n])}}function iO(t,e){if(t&1&&(y(0,"div",24),T(1,eO,2,1,"div",25)(2,rO,3,2,"span",26),v()),t&2){let n=g(2);p(),m("ngIf",!n._values.length),p(),m("ngForOf",n._values)}}function oO(t,e){if(t&1&&(y(0,"div",24),A(1),v()),t&2){let n=g(2);p(),de(" ",n._selected||n.placeholder," ")}}function sO(t,e){if(t&1&&(y(0,"div",22),T(1,iO,3,2,"div",23)(2,oO,2,1,"div",23),v()),t&2){let n=g();p(),m("ngIf",n.multiple),p(),m("ngIf",!n.multiple)}}function aO(t,e){if(t&1){let n=W();y(0,"div",17),N("click",function(){P(n);let i=g();return R(i.clear())}),y(1,"span",28),A(2,"close"),v()()}}function cO(t,e){if(t&1){let n=W();y(0,"div",33)(1,"input",34,3),Xi("ngModelChange",function(i){P(n);let o=g(3);return Fa(o.search,i)||(o.search=i),R(i)}),v(),wa(),y(3,"svg",35),ke(4,"path",36),v()()}if(t&2){let n=g(3);p(),Ji("ngModel",n.search)}}function lO(t,e){if(t&1&&(y(0,"div"),yt(1,15),T(2,cO,5,1,"ng-template",null,2,cn),v()),t&2){let n=Tt(3),r=g(2);p(),m("ngTemplateOutlet",r.t_search?r.t_search:n)}}function uO(t,e){if(t&1&&yt(0,37),t&2){let n=e.$implicit;g();let r=Tt(8),i=g();m("ngTemplateOutlet",i.t_item?i.t_item:r)("ngTemplateOutletContext",On(2,JA,n))}}function dO(t,e){t&1&&(y(0,"div",38),A(1," Nothing was found "),v())}function fO(t,e){if(t&1){let n=W();y(0,"div",39),N("click",function(){let i=P(n).item,o=g(2);return R(o.item_onclick(i))}),y(1,"div",40),A(2),v()()}if(t&2){let n=e.item,r=g(2);he("disabled",r._values.indexOf(n.value)!==-1),p(),he("selected",r._values.indexOf(n[r.value])!==-1),p(),de(" ",n[r.name]," ")}}function hO(t,e){if(t&1&&(y(0,"div",29),T(1,lO,4,1,"div",25),y(2,"div",30),T(3,uO,1,4,"ng-container",31),ur(4,"search"),T(5,dO,2,0,"div",32),ur(6,"search"),v(),T(7,fO,3,5,"ng-template",null,1,cn),v()),t&2){let n,r=g();he("_search",r.searchable),p(),m("ngIf",r.searchable),p(2),m("ngForOf",ni(4,5,r.items,r.search,r.searchableBy)),p(2),m("ngIf",!((n=ni(6,9,r.items,r.search,r.searchableBy))!=null&&n.length))}}var dU=(()=>{let e=class e{constructor(){this.placeholder="",this.items=[],this._items={},this.disabled=!1,this.clearable=!1,this.name="name",this.value="_id",this.multiple=!1,this.label="",this.searchable=!1,this.searchableBy="name",this.modelChange=new H,this._values=[],this._names=[],this.search=""}clear(){this.multiple?(this._values=[],this.modelChange.emit(this._values)):(this._selected="",this.modelChange.emit(""))}ngOnInit(){for(let r=0;r{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ce({type:e}),e.\u0275inj=ae({imports:[Gt,Fe,Si]});let t=e;return t})();export{C as a,z as b,k0 as c,_t as d,ol as e,Ae as f,hl as g,gw as h,ze as i,lt as j,yw as k,_l as l,S as m,nr as n,D as o,ae as p,M as q,_ as r,b as s,fe as t,ce as u,Je as v,P as w,R as x,wa as y,H as z,ne as A,gt as B,TL as C,Ma as D,AL as E,p as F,E as G,ft as H,Wr as I,Cd as J,T as K,ar as L,m as M,wy as N,he as O,cr as P,y as Q,v as R,ke as S,_e as T,we as U,W as V,N as W,g as X,ka as Y,Ki as Z,lr as _,ti as $,Xe as aa,et as ba,Tt as ca,A as da,Ie as ea,de as fa,Ji as ga,Fa as ha,Xi as ia,eo as ja,Oy as ka,RL as la,On as ma,ur as na,kL as oa,cn as pa,FL as qa,Nn as ra,fr as sa,vx as ta,Se as ua,un as va,ev as wa,dn as xa,Ue as ya,nt as za,tv as Aa,Fe as Ba,Ix as Ca,vv as Da,T2 as Ea,A2 as Fa,O2 as Ga,xv as Ha,YM as Ia,ot as Ja,mc as Ka,Y2 as La,Q2 as Ma,v_ as Na,yi as Oa,Ec as Pa,Yf as Qa,Ci as Ra,vr as Sa,Gt as Ta,mV as Ua,Ce as Va,T1 as Wa,Uc as Xa,Bc as Ya,Wt as Za,Mi as _a,_B as $a,dh as ab,y0 as bb,v0 as cb,wB as db,bB as eb,Si as fb,Ti as gb,W3 as hb,Hc as ib,zc as jb,GB as kb,x0 as lb,w0 as mb,jB as nb,M0 as ob,T0 as pb,hh as qb,O0 as rb,q3 as sb,Y3 as tb,iU as ub,dU as vb,vU as wb}; diff --git a/chunk-HLEBBEIB.js b/chunk-HLEBBEIB.js new file mode 100644 index 0000000..402e218 --- /dev/null +++ b/chunk-HLEBBEIB.js @@ -0,0 +1,3 @@ +import{$ as A,A as be,Aa as Ae,Ba as F,D as ue,E as et,F as _,G as w,Ga as ht,H as tt,Ha as gt,J as it,K as C,L as le,M as p,N as pe,O as ie,P as nt,Pa as ft,Q as c,R as l,Ra as ut,S as O,Sa as _t,T as me,Ta as ne,U as de,V as b,Va as Ct,W as u,X as f,Y as ve,Z as he,_ as Ve,_a as wt,a as E,aa as v,b as se,ba as M,ca as ot,cb as xt,d as Z,da as T,db as yt,e as $e,ea as $,eb as bt,f as Xe,fa as ge,fb as _e,g as fe,ga as rt,h as Ee,ha as at,i as ze,ia as st,ib as J,j as qe,ja as ct,jb as ee,k as Ze,ka as lt,kb as D,l as Ge,lb as Ie,ma as pt,n as Ke,o as G,p as z,pa as P,pb as S,qa as mt,r as ce,ra as Me,rb as vt,sa as Fe,sb as Mt,t as y,ta as dt,u as V,ua as Oe,ub as Ot,v as ye,vb as At,w as d,wb as Se,x as h,xa as R,y as Je,ya as K,z as N,za as B}from"./chunk-FBONLC6U.js";var ai=["wrapper"],si=["sourceImage"];function ci(r,o){if(r&1){let e=b();c(0,"img",5,1),u("load",function(){d(e);let i=f();return h(i.imageLoadedInView())})("mousedown",function(i){d(e);let n=f();return h(n.startMove(i,n.moveTypes.Drag))})("touchstart",function(i){d(e);let n=f();return h(n.startMove(i,n.moveTypes.Drag))})("error",function(i){d(e);let n=f();return h(n.loadImageError(i))}),l()}if(r&2){let e=f();pe("visibility",e.imageVisible?"visible":"hidden")("transform",e.safeTransformStyle),ie("ngx-ic-draggable",!e.disabled&&e.allowMoveImage),p("src",e.safeImgDataUrl,ue),le("alt",e.imageAltText)}}function li(r,o){if(r&1){let e=b();me(0),c(1,"span",9),u("mousedown",function(i){d(e);let n=f(2);return h(n.startMove(i,n.moveTypes.Resize,"topleft"))})("touchstart",function(i){d(e);let n=f(2);return h(n.startMove(i,n.moveTypes.Resize,"topleft"))}),O(2,"span",10),l(),c(3,"span",11),O(4,"span",10),l(),c(5,"span",12),u("mousedown",function(i){d(e);let n=f(2);return h(n.startMove(i,n.moveTypes.Resize,"topright"))})("touchstart",function(i){d(e);let n=f(2);return h(n.startMove(i,n.moveTypes.Resize,"topright"))}),O(6,"span",10),l(),c(7,"span",13),O(8,"span",10),l(),c(9,"span",14),u("mousedown",function(i){d(e);let n=f(2);return h(n.startMove(i,n.moveTypes.Resize,"bottomright"))})("touchstart",function(i){d(e);let n=f(2);return h(n.startMove(i,n.moveTypes.Resize,"bottomright"))}),O(10,"span",10),l(),c(11,"span",15),O(12,"span",10),l(),c(13,"span",16),u("mousedown",function(i){d(e);let n=f(2);return h(n.startMove(i,n.moveTypes.Resize,"bottomleft"))})("touchstart",function(i){d(e);let n=f(2);return h(n.startMove(i,n.moveTypes.Resize,"bottomleft"))}),O(14,"span",10),l(),c(15,"span",17),O(16,"span",10),l(),c(17,"span",18),u("mousedown",function(i){d(e);let n=f(2);return h(n.startMove(i,n.moveTypes.Resize,"top"))})("touchstart",function(i){d(e);let n=f(2);return h(n.startMove(i,n.moveTypes.Resize,"top"))}),l(),c(18,"span",19),u("mousedown",function(i){d(e);let n=f(2);return h(n.startMove(i,n.moveTypes.Resize,"right"))})("touchstart",function(i){d(e);let n=f(2);return h(n.startMove(i,n.moveTypes.Resize,"right"))}),l(),c(19,"span",20),u("mousedown",function(i){d(e);let n=f(2);return h(n.startMove(i,n.moveTypes.Resize,"bottom"))})("touchstart",function(i){d(e);let n=f(2);return h(n.startMove(i,n.moveTypes.Resize,"bottom"))}),l(),c(20,"span",21),u("mousedown",function(i){d(e);let n=f(2);return h(n.startMove(i,n.moveTypes.Resize,"left"))})("touchstart",function(i){d(e);let n=f(2);return h(n.startMove(i,n.moveTypes.Resize,"left"))}),l(),de()}}function pi(r,o){if(r&1){let e=b();c(0,"div",6),u("keydown",function(i){d(e);let n=f();return h(n.keyboardAccess(i))}),c(1,"div",7),u("mousedown",function(i){d(e);let n=f();return h(n.startMove(i,n.moveTypes.Move))})("touchstart",function(i){d(e);let n=f();return h(n.startMove(i,n.moveTypes.Move))}),l(),C(2,li,21,0,"ng-container",8),l()}if(r&2){let e=f();pe("top",e.cropper.y1,"px")("left",e.cropper.x1,"px")("width",e.cropper.x2-e.cropper.x1,"px")("height",e.cropper.y2-e.cropper.y1,"px")("margin-left",e.alignImage==="center"?e.marginLeft:null)("visibility",e.imageVisible?"visible":"hidden"),ie("ngx-ic-round",e.roundCropper),le("aria-label",e.cropperFrameAriaLabel),_(2),p("ngIf",!e.hideResizeSquares)}}var De=class{constructor(){this.format="png",this.output="blob",this.maintainAspectRatio=!0,this.transform={},this.aspectRatio=1,this.resetCropOnAspectRatioChange=!0,this.resizeToWidth=0,this.resizeToHeight=0,this.cropperMinWidth=0,this.cropperMinHeight=0,this.cropperMaxHeight=0,this.cropperMaxWidth=0,this.cropperStaticWidth=0,this.cropperStaticHeight=0,this.canvasRotation=0,this.initialStepSize=3,this.roundCropper=!1,this.onlyScaleDown=!1,this.imageQuality=92,this.autoCrop=!0,this.backgroundColor=null,this.containWithinAspectRatio=!1,this.hideResizeSquares=!1,this.alignImage="center",this.cropperFrameAriaLabel="Crop photo",this.cropperScaledMinWidth=20,this.cropperScaledMinHeight=20,this.cropperScaledMaxWidth=20,this.cropperScaledMaxHeight=20,this.stepSize=this.initialStepSize}setOptions(o){Object.keys(o).filter(e=>e in this).forEach(e=>this[e]=o[e]),this.validateOptions()}setOptionsFromChanges(o){Object.keys(o).filter(e=>e in this).forEach(e=>this[e]=o[e].currentValue),this.validateOptions()}validateOptions(){if(this.maintainAspectRatio&&!this.aspectRatio)throw new Error("`aspectRatio` should > 0 when `maintainAspectRatio` is enabled")}},H=function(r){return r.Drag="drag",r.Move="move",r.Resize="resize",r.Pinch="pinch",r}(H||{});function mi(r){switch(r){case"ArrowUp":return"top";case"ArrowRight":return"right";case"ArrowDown":return"bottom";case"ArrowLeft":default:return"left"}}function di(r){switch(r){case"ArrowUp":return"bottom";case"ArrowRight":return"left";case"ArrowDown":return"top";case"ArrowLeft":default:return"right"}}function hi(r,o){switch(r){case"ArrowUp":return{clientX:0,clientY:o*-1};case"ArrowRight":return{clientX:o,clientY:0};case"ArrowDown":return{clientX:0,clientY:o};case"ArrowLeft":default:return{clientX:o*-1,clientY:0}}}function gi(r,o,e){let t=r.width,i=r.height;o=Math.round(o),e=Math.round(e);let n=t/o,a=i/e,s=Math.ceil(n/2),m=Math.ceil(a/2),x=r.getContext("2d");if(x){let g=x.getImageData(0,0,t,i),k=x.createImageData(o,e),U=g.data,te=k.data;for(let X=0;X=1)continue;L=2*re*re*re-3*re*re+1;let ae=4*(xe+we*t);We+=L*U[ae+3],je+=L,U[ae+3]<255&&(L=L*U[ae+3]/250),Be+=L*U[ae],He+=L*U[ae+1],Ue+=L*U[ae+2],Ce+=L}}te[Y]=Be/Ce,te[Y+1]=He/Ce,te[Y+2]=Ue/Ce,te[Y+3]=We/je}r.width=o,r.height=e,x.putImageData(k,0,0)}}function It(r,o){return r/100*o}var fi=(()=>{class r{crop(e,t,i,n,a){let s=this.getImagePosition(e,t,i,a),m=s.x2-s.x1,x=s.y2-s.y1,g=document.createElement("canvas");g.width=m,g.height=x;let k=g.getContext("2d");if(!k)return null;i.backgroundColor!=null&&(k.fillStyle=i.backgroundColor,k.fillRect(0,0,m,x));let U=(i.transform.scale||1)*(i.transform.flipH?-1:1),te=(i.transform.scale||1)*(i.transform.flipV?-1:1),{translateH:X,translateV:q}=this.getCanvasTranslate(e,i,a),Y=e.transformed;k.setTransform(U,0,0,te,Y.size.width/2+X,Y.size.height/2+q),k.translate(-s.x1/U,-s.y1/te),k.rotate((i.transform.rotate||0)*Math.PI/180),k.drawImage(Y.image,-Y.size.width/2,-Y.size.height/2);let W={width:m,height:x,imagePosition:s,cropperPosition:E({},t)};i.containWithinAspectRatio&&(W.offsetImagePosition=this.getOffsetImagePosition(e,t,i,a));let L=this.getResizeRatio(m,x,i);return L!==1&&(W.width=Math.round(m*L),W.height=i.maintainAspectRatio?Math.round(W.width/i.aspectRatio):Math.round(x*L),gi(g,W.width,W.height)),n==="blob"?this.cropToBlob(W,g,i):(W.base64=g.toDataURL("image/"+i.format,this.getQuality(i)),W)}cropToBlob(e,t,i){return Z(this,null,function*(){return e.blob=yield new Promise(n=>t.toBlob(n,"image/"+i.format,this.getQuality(i))),e.blob&&(e.objectUrl=URL.createObjectURL(e.blob)),e})}getCanvasTranslate(e,t,i){if(t.transform.translateUnit==="px"){let n=this.getRatio(e,i);return{translateH:(t.transform.translateH||0)*n,translateV:(t.transform.translateV||0)*n}}else return{translateH:t.transform.translateH?It(t.transform.translateH,e.transformed.size.width):0,translateV:t.transform.translateV?It(t.transform.translateV,e.transformed.size.height):0}}getRatio(e,t){return e.transformed.size.width/t.width}getImagePosition(e,t,i,n){let a=this.getRatio(e,n),s={x1:Math.round(t.x1*a),y1:Math.round(t.y1*a),x2:Math.round(t.x2*a),y2:Math.round(t.y2*a)};return i.containWithinAspectRatio||(s.x1=Math.max(s.x1,0),s.y1=Math.max(s.y1,0),s.x2=Math.min(s.x2,e.transformed.size.width),s.y2=Math.min(s.y2,e.transformed.size.height)),s}getOffsetImagePosition(e,t,i,n){let a=i.canvasRotation+e.exifTransform.rotate,s=this.getRatio(e,n),m,x;a%2?(m=(e.transformed.size.width-e.original.size.height)/2,x=(e.transformed.size.height-e.original.size.width)/2):(m=(e.transformed.size.width-e.original.size.width)/2,x=(e.transformed.size.height-e.original.size.height)/2);let g={x1:Math.round(t.x1*s)-m,y1:Math.round(t.y1*s)-x,x2:Math.round(t.x2*s)-m,y2:Math.round(t.y2*s)-x};return i.containWithinAspectRatio||(g.x1=Math.max(g.x1,0),g.y1=Math.max(g.y1,0),g.x2=Math.min(g.x2,e.transformed.size.width),g.y2=Math.min(g.y2,e.transformed.size.height)),g}getResizeRatio(e,t,i){let n=i.resizeToWidth/e,a=i.resizeToHeight/t,s=new Array;i.resizeToWidth>0&&s.push(n),i.resizeToHeight>0&&s.push(a);let m=s.length===0?1:Math.min(...s);return m>1&&!i.onlyScaleDown?m:Math.min(m,1)}getQuality(e){return Math.min(1,Math.max(0,e.imageQuality/100))}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),ui=(()=>{class r{resetCropperPosition(e,t,i,n){if(e?.nativeElement)if(i.cropperStaticHeight&&i.cropperStaticWidth)t.x1=0,t.x2=n.width>i.cropperStaticWidth?i.cropperStaticWidth:n.width,t.y1=0,t.y2=n.height>i.cropperStaticHeight?i.cropperStaticHeight:n.height;else{let a=Math.min(i.cropperScaledMaxWidth,n.width),s=Math.min(i.cropperScaledMaxHeight,n.height);if(!i.maintainAspectRatio)t.x1=0,t.x2=a,t.y1=0,t.y2=s;else if(n.width/i.aspectRation.width&&(i.x1-=i.x2-n.width,i.x2=n.width),i.y1<0?(i.y2-=i.y1,i.y1=0):i.y2>n.height&&(i.y1-=i.y2-n.height,i.y2=n.height);break}a.maintainAspectRatio&&this.checkAspectRatio(t.position,i,n,a)}checkAspectRatio(e,t,i,n){let a=0,s=0;switch(e){case"top":t.x2=t.x1+(t.y2-t.y1)*n.aspectRatio,a=Math.max(t.x2-i.width,0),s=Math.max(0-t.y1,0),(a>0||s>0)&&(t.x2-=s*n.aspectRatio>a?s*n.aspectRatio:a,t.y1+=s*n.aspectRatio>a?s:a/n.aspectRatio);break;case"bottom":t.x2=t.x1+(t.y2-t.y1)*n.aspectRatio,a=Math.max(t.x2-i.width,0),s=Math.max(t.y2-i.height,0),(a>0||s>0)&&(t.x2-=s*n.aspectRatio>a?s*n.aspectRatio:a,t.y2-=s*n.aspectRatio>a?s:a/n.aspectRatio);break;case"topleft":t.y1=t.y2-(t.x2-t.x1)/n.aspectRatio,a=Math.max(0-t.x1,0),s=Math.max(0-t.y1,0),(a>0||s>0)&&(t.x1+=s*n.aspectRatio>a?s*n.aspectRatio:a,t.y1+=s*n.aspectRatio>a?s:a/n.aspectRatio);break;case"topright":t.y1=t.y2-(t.x2-t.x1)/n.aspectRatio,a=Math.max(t.x2-i.width,0),s=Math.max(0-t.y1,0),(a>0||s>0)&&(t.x2-=s*n.aspectRatio>a?s*n.aspectRatio:a,t.y1+=s*n.aspectRatio>a?s:a/n.aspectRatio);break;case"right":case"bottomright":t.y2=t.y1+(t.x2-t.x1)/n.aspectRatio,a=Math.max(t.x2-i.width,0),s=Math.max(t.y2-i.height,0),(a>0||s>0)&&(t.x2-=s*n.aspectRatio>a?s*n.aspectRatio:a,t.y2-=s*n.aspectRatio>a?s:a/n.aspectRatio);break;case"left":case"bottomleft":t.y2=t.y1+(t.x2-t.x1)/n.aspectRatio,a=Math.max(0-t.x1,0),s=Math.max(t.y2-i.height,0),(a>0||s>0)&&(t.x1+=s*n.aspectRatio>a?s*n.aspectRatio:a,t.y2-=s*n.aspectRatio>a?s:a/n.aspectRatio);break;case"center":t.x2=t.x1+(t.y2-t.y1)*n.aspectRatio,t.y2=t.y1+(t.x2-t.x1)/n.aspectRatio;let m=Math.max(0-t.x1,0),x=Math.max(t.x2-i.width,0),g=Math.max(t.y2-i.height,0),k=Math.max(0-t.y1,0);(m>0||x>0||g>0||k>0)&&(t.x1+=g*n.aspectRatio>m?g*n.aspectRatio:m,t.x2-=k*n.aspectRatio>x?k*n.aspectRatio:x,t.y1+=k*n.aspectRatio>x?k:x/n.aspectRatio,t.y2-=g*n.aspectRatio>m?g:m/n.aspectRatio);break}}getClientX(e){return e.touches?.[0].clientX||e.clientX||0}getClientY(e){return e.touches?.[0].clientY||e.clientY||0}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),_i="data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAEAAgMBEQACEQEDEQH/xABKAAEAAAAAAAAAAAAAAAAAAAALEAEAAAAAAAAAAAAAAAAAAAAAAQEAAAAAAAAAAAAAAAAAAAAAEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwA/8H//2Q==";function Ci(){return new Promise(r=>{let o=new Image;o.onload=()=>{let e=o.width===1&&o.height===2;r(e)},o.src=_i})}function wi(r){switch(typeof r=="object"&&(r=xi(r)),r){case 2:return{rotate:0,flip:!0};case 3:return{rotate:2,flip:!1};case 4:return{rotate:2,flip:!0};case 5:return{rotate:1,flip:!0};case 6:return{rotate:1,flip:!1};case 7:return{rotate:3,flip:!0};case 8:return{rotate:3,flip:!1};default:return{rotate:0,flip:!1}}}function xi(r){let o=new DataView(r);if(o.getUint16(0,!1)!==65496)return-2;let e=o.byteLength,t=2;for(;t{class r{constructor(){this.autoRotateSupported=Ci()}loadImageFile(e,t){return e.arrayBuffer().then(i=>this.checkImageTypeAndLoadImageFromArrayBuffer(i,e.type,t))}checkImageTypeAndLoadImageFromArrayBuffer(e,t,i){return this.isValidImageType(t)?this.loadImageFromArrayBuffer(e,i):Promise.reject(new Error("Invalid image type"))}isValidImageType(e){return/image\/(png|jpg|jpeg|bmp|gif|tiff|webp|x-icon|vnd.microsoft.icon)/.test(e)}loadImageFromURL(e,t){return fetch(e).then(i=>i.arrayBuffer()).then(i=>this.loadImageFromArrayBuffer(i,t))}loadBase64Image(e,t){let i=this.base64ToArrayBuffer(e);return this.loadImageFromArrayBuffer(i,t)}base64ToArrayBuffer(e){e=e.replace(/^data\:([^\;]+)\;base64,/gmi,"");let t=atob(e),i=t.length,n=new Uint8Array(i);for(let a=0;a{let a=new Blob([e]),s=URL.createObjectURL(a),m=new Image;m.onload=()=>i({originalImage:m,originalObjectUrl:s,originalArrayBuffer:e}),m.onerror=n,m.src=s}).then(i=>this.transformImageFromArrayBuffer(i,t))}transformImageFromArrayBuffer(e,t){return Z(this,null,function*(){let i=yield this.autoRotateSupported,n=yield wi(i?-1:e.originalArrayBuffer);if(!e.originalImage||!e.originalImage.complete)return Promise.reject(new Error("No image loaded"));let a={original:{objectUrl:e.originalObjectUrl,image:e.originalImage,size:{width:e.originalImage.naturalWidth,height:e.originalImage.naturalHeight}},exifTransform:n};return this.transformLoadedImage(a,t)})}transformLoadedImage(e,t){return Z(this,null,function*(){let i=t.canvasRotation+e.exifTransform.rotate,n={width:e.original.image.naturalWidth,height:e.original.image.naturalHeight};if(i===0&&!e.exifTransform.flip&&!t.containWithinAspectRatio)return{original:{objectUrl:e.original.objectUrl,image:e.original.image,size:E({},n)},transformed:{objectUrl:e.original.objectUrl,image:e.original.image,size:E({},n)},exifTransform:e.exifTransform};let a=this.getTransformedSize(n,e.exifTransform,t),s=document.createElement("canvas");s.width=a.width,s.height=a.height;let m=s.getContext("2d");m?.setTransform(e.exifTransform.flip?-1:1,0,0,1,s.width/2,s.height/2),m?.rotate(Math.PI*(i/2)),m?.drawImage(e.original.image,-n.width/2,-n.height/2);let x=yield new Promise(U=>s.toBlob(U,t.format));if(!x)throw new Error("Failed to get Blob for transformed image.");let g=URL.createObjectURL(x),k=yield this.loadImageFromObjectUrl(g);return{original:{objectUrl:e.original.objectUrl,image:e.original.image,size:E({},n)},transformed:{objectUrl:g,image:k,size:{width:k.width,height:k.height}},exifTransform:e.exifTransform}})}loadImageFromObjectUrl(e){return new Promise((t,i)=>{let n=new Image;n.onload=()=>t(n),n.onerror=i,n.src=e})}getTransformedSize(e,t,i){let n=i.canvasRotation+t.rotate;if(i.containWithinAspectRatio)if(n%2){let a=e.width*i.aspectRatio,s=e.height/i.aspectRatio;return{width:Math.max(e.height,a),height:Math.max(e.width,s)}}else{let a=e.height*i.aspectRatio,s=e.width/i.aspectRatio;return{width:Math.max(e.width,a),height:Math.max(e.height,s)}}return n%2?{height:e.width,width:e.height}:{width:e.width,height:e.height}}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),St=(()=>{class r{constructor(e,t,i,n,a,s,m){this.cropService=e,this.cropperPositionService=t,this.loadImageService=i,this.sanitizer=n,this.cd=a,this.zone=s,this.hammerLoader=m,this.settings=new De,this.setImageMaxSizeRetries=0,this.resizedWhileHidden=!1,this.marginLeft="0px",this.maxSize={width:0,height:0},this.moveTypes=H,this.imageVisible=!1,this.cropperFrameAriaLabel=this.settings.cropperFrameAriaLabel,this.output=this.settings.output,this.format=this.settings.format,this.transform={},this.maintainAspectRatio=this.settings.maintainAspectRatio,this.aspectRatio=this.settings.aspectRatio,this.resetCropOnAspectRatioChange=this.settings.resetCropOnAspectRatioChange,this.resizeToWidth=this.settings.resizeToWidth,this.resizeToHeight=this.settings.resizeToHeight,this.cropperMinWidth=this.settings.cropperMinWidth,this.cropperMinHeight=this.settings.cropperMinHeight,this.cropperMaxHeight=this.settings.cropperMaxHeight,this.cropperMaxWidth=this.settings.cropperMaxWidth,this.cropperStaticWidth=this.settings.cropperStaticWidth,this.cropperStaticHeight=this.settings.cropperStaticHeight,this.canvasRotation=this.settings.canvasRotation,this.initialStepSize=this.settings.initialStepSize,this.roundCropper=this.settings.roundCropper,this.onlyScaleDown=this.settings.onlyScaleDown,this.imageQuality=this.settings.imageQuality,this.autoCrop=this.settings.autoCrop,this.backgroundColor=this.settings.backgroundColor,this.containWithinAspectRatio=this.settings.containWithinAspectRatio,this.hideResizeSquares=this.settings.hideResizeSquares,this.allowMoveImage=!1,this.cropper={x1:-100,y1:-100,x2:1e4,y2:1e4},this.alignImage=this.settings.alignImage,this.disabled=!1,this.hidden=!1,this.imageCropped=new N,this.startCropImage=new N,this.imageLoaded=new N,this.cropperReady=new N,this.loadImageFailed=new N,this.transformChange=new N,this.reset()}ngOnChanges(e){this.onChangesUpdateSettings(e),this.onChangesInputImage(e),this.loadedImage?.original.image.complete&&(e.containWithinAspectRatio||e.canvasRotation)&&this.loadImageService.transformLoadedImage(this.loadedImage,this.settings).then(t=>this.setLoadedImage(t)).catch(t=>this.loadImageError(t)),(e.cropper||e.maintainAspectRatio||e.aspectRatio)&&(this.setMaxSize(),this.setCropperScaledMinSize(),this.setCropperScaledMaxSize(),this.maintainAspectRatio&&(this.resetCropOnAspectRatioChange||!this.aspectRatioIsCorrect())&&(e.maintainAspectRatio||e.aspectRatio)?this.resetCropperPosition():e.cropper&&(this.checkCropperPosition(!1),this.doAutoCrop())),e.transform&&(this.transform=this.transform||{},this.setCssTransform(),this.doAutoCrop()),e.hidden&&this.resizedWhileHidden&&!this.hidden&&setTimeout(()=>{this.onResize(),this.resizedWhileHidden=!1})}onChangesUpdateSettings(e){this.settings.setOptionsFromChanges(e),this.settings.cropperStaticHeight&&this.settings.cropperStaticWidth&&(this.hideResizeSquares=!0,this.settings.setOptions({hideResizeSquares:!0,cropperMinWidth:this.settings.cropperStaticWidth,cropperMinHeight:this.settings.cropperStaticHeight,cropperMaxHeight:this.settings.cropperStaticHeight,cropperMaxWidth:this.settings.cropperStaticWidth,maintainAspectRatio:!1}))}onChangesInputImage(e){(e.imageChangedEvent||e.imageURL||e.imageBase64||e.imageFile)&&this.reset(),e.imageChangedEvent&&this.isValidImageChangedEvent()&&this.loadImageFile(this.imageChangedEvent.target.files[0]),e.imageURL&&this.imageURL&&this.loadImageFromURL(this.imageURL),e.imageBase64&&this.imageBase64&&this.loadBase64Image(this.imageBase64),e.imageFile&&this.imageFile&&this.loadImageFile(this.imageFile)}isValidImageChangedEvent(){return this.imageChangedEvent?.target?.files?.length>0}setCssTransform(){let e=this.transform?.translateUnit||"%";this.safeTransformStyle=this.sanitizer.bypassSecurityTrustStyle(`translate(${this.transform.translateH||0}${e}, ${this.transform.translateV||0}${e}) scaleX(`+(this.transform.scale||1)*(this.transform.flipH?-1:1)+") scaleY("+(this.transform.scale||1)*(this.transform.flipV?-1:1)+") rotate("+(this.transform.rotate||0)+"deg)")}ngOnInit(){this.settings.stepSize=this.initialStepSize,this.activatePinchGesture()}reset(){this.imageVisible=!1,this.loadedImage=void 0,this.safeImgDataUrl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=",this.moveStart={active:!1,type:null,position:null,x1:0,y1:0,x2:0,y2:0,clientX:0,clientY:0},this.maxSize={width:0,height:0},this.cropper.x1=-100,this.cropper.y1=-100,this.cropper.x2=1e4,this.cropper.y2=1e4}loadImageFile(e){this.loadImageService.loadImageFile(e,this.settings).then(t=>this.setLoadedImage(t)).catch(t=>this.loadImageError(t))}loadBase64Image(e){this.loadImageService.loadBase64Image(e,this.settings).then(t=>this.setLoadedImage(t)).catch(t=>this.loadImageError(t))}loadImageFromURL(e){this.loadImageService.loadImageFromURL(e,this.settings).then(t=>this.setLoadedImage(t)).catch(t=>this.loadImageError(t))}setLoadedImage(e){this.loadedImage=e,this.safeImgDataUrl=this.sanitizer.bypassSecurityTrustResourceUrl(e.transformed.objectUrl),this.cd.markForCheck()}loadImageError(e){console.error(e),this.loadImageFailed.emit()}imageLoadedInView(){this.loadedImage!=null&&(this.imageLoaded.emit(this.loadedImage),this.setImageMaxSizeRetries=0,setTimeout(()=>this.checkImageMaxSizeRecursively()))}checkImageMaxSizeRecursively(){this.setImageMaxSizeRetries>40?this.loadImageFailed.emit():this.sourceImageLoaded()?(this.setMaxSize(),this.setCropperScaledMinSize(),this.setCropperScaledMaxSize(),this.resetCropperPosition(),this.cropperReady.emit(E({},this.maxSize)),this.cd.markForCheck()):(this.setImageMaxSizeRetries++,setTimeout(()=>this.checkImageMaxSizeRecursively(),50))}sourceImageLoaded(){return this.sourceImage?.nativeElement?.offsetWidth>0}onResize(){if(this.loadedImage)if(this.hidden)this.resizedWhileHidden=!0;else{let e=E({},this.maxSize);this.setMaxSize(),this.resizeCropperPosition(e),this.setCropperScaledMinSize(),this.setCropperScaledMaxSize()}}activatePinchGesture(){return Z(this,null,function*(){yield this.hammerLoader?.();let e=window?.Hammer||null;if(e){let t=new e(this.wrapper.nativeElement);t.get("pinch").set({enable:!0}),t.on("pinchmove",this.onPinch.bind(this)),t.on("pinchend",this.pinchStop.bind(this)),t.on("pinchstart",this.startPinch.bind(this))}else mt()&&console.warn("[NgxImageCropper] Could not find HammerJS - Pinch Gesture won't work")})}resizeCropperPosition(e){(e.width!==this.maxSize.width||e.height!==this.maxSize.height)&&(this.cropper.x1=this.cropper.x1*this.maxSize.width/e.width,this.cropper.x2=this.cropper.x2*this.maxSize.width/e.width,this.cropper.y1=this.cropper.y1*this.maxSize.height/e.height,this.cropper.y2=this.cropper.y2*this.maxSize.height/e.height)}resetCropperPosition(){this.cropperPositionService.resetCropperPosition(this.sourceImage,this.cropper,this.settings,this.maxSize),this.doAutoCrop(),this.imageVisible=!0}keyboardAccess(e){this.changeKeyboardStepSize(e),this.keyboardMoveCropper(e)}changeKeyboardStepSize(e){let t=+e.key;t>=1&&t<=9&&(this.settings.stepSize=t)}keyboardMoveCropper(e){if(!["ArrowUp","ArrowDown","ArrowRight","ArrowLeft"].includes(e.key))return;let i=e.shiftKey?H.Resize:H.Move,n=e.altKey?di(e.key):mi(e.key),a=hi(e.key,this.settings.stepSize);e.preventDefault(),e.stopPropagation(),this.startMove({clientX:0,clientY:0},i,n),this.handleMouseMove(a),this.handleMouseUp()}startMove(e,t,i=null){this.disabled||this.moveStart?.active&&this.moveStart?.type===H.Pinch||t===H.Drag&&!this.allowMoveImage||(e.preventDefault&&e.preventDefault(),this.moveStart=E({active:!0,type:t,position:i,transform:E({},this.transform),clientX:this.cropperPositionService.getClientX(e),clientY:this.cropperPositionService.getClientY(e)},this.cropper),this.initMouseMove())}initMouseMove(){Ee(fe(document,"mousemove"),fe(document,"touchmove")).pipe(Ge(Ee(fe(document,"mouseup"),fe(document,"touchend")).pipe(qe()))).subscribe({next:e=>this.zone.run(()=>{this.handleMouseMove(e),this.cd.markForCheck()}),complete:()=>this.zone.run(()=>{this.handleMouseUp(),this.cd.markForCheck()})})}startPinch(e){this.safeImgDataUrl&&(e.preventDefault&&e.preventDefault(),this.moveStart=E({active:!0,type:H.Pinch,position:"center",clientX:this.cropper.x1+(this.cropper.x2-this.cropper.x1)/2,clientY:this.cropper.y1+(this.cropper.y2-this.cropper.y1)/2},this.cropper))}handleMouseMove(e){if(this.moveStart.active){if(e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),this.moveStart.type===H.Move)this.cropperPositionService.move(e,this.moveStart,this.cropper),this.checkCropperPosition(!0);else if(this.moveStart.type===H.Resize)!this.cropperStaticWidth&&!this.cropperStaticHeight&&this.cropperPositionService.resize(e,this.moveStart,this.cropper,this.maxSize,this.settings),this.checkCropperPosition(!1);else if(this.moveStart.type===H.Drag){let t=this.cropperPositionService.getClientX(e)-this.moveStart.clientX,i=this.cropperPositionService.getClientY(e)-this.moveStart.clientY;this.transform=se(E({},this.transform),{translateH:(this.moveStart.transform?.translateH||0)+t,translateV:(this.moveStart.transform?.translateV||0)+i}),this.setCssTransform()}}}onPinch(e){this.moveStart.active&&(e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),this.moveStart.type===H.Pinch&&(this.cropperPositionService.resize(e,this.moveStart,this.cropper,this.maxSize,this.settings),this.checkCropperPosition(!1)),this.cd.markForCheck())}setMaxSize(){if(this.sourceImage){let e=getComputedStyle(this.sourceImage.nativeElement);this.maxSize.width=parseFloat(e.width),this.maxSize.height=parseFloat(e.height),this.marginLeft=this.sanitizer.bypassSecurityTrustStyle("calc(50% - "+this.maxSize.width/2+"px)")}}setCropperScaledMinSize(){this.loadedImage?.transformed?.image?(this.setCropperScaledMinWidth(),this.setCropperScaledMinHeight()):(this.settings.cropperScaledMinWidth=20,this.settings.cropperScaledMinHeight=20)}setCropperScaledMinWidth(){this.settings.cropperScaledMinWidth=this.cropperMinWidth>0?Math.max(20,this.cropperMinWidth/this.loadedImage.transformed.image.width*this.maxSize.width):20}setCropperScaledMinHeight(){this.maintainAspectRatio?this.settings.cropperScaledMinHeight=Math.max(20,this.settings.cropperScaledMinWidth/this.aspectRatio):this.cropperMinHeight>0?this.settings.cropperScaledMinHeight=Math.max(20,this.cropperMinHeight/this.loadedImage.transformed.image.height*this.maxSize.height):this.settings.cropperScaledMinHeight=20}setCropperScaledMaxSize(){if(this.loadedImage?.transformed?.image){let e=this.loadedImage.transformed.size.width/this.maxSize.width;this.settings.cropperScaledMaxWidth=this.cropperMaxWidth>20?this.cropperMaxWidth/e:this.maxSize.width,this.settings.cropperScaledMaxHeight=this.cropperMaxHeight>20?this.cropperMaxHeight/e:this.maxSize.height,this.maintainAspectRatio&&(this.settings.cropperScaledMaxWidth>this.settings.cropperScaledMaxHeight*this.aspectRatio?this.settings.cropperScaledMaxWidth=this.settings.cropperScaledMaxHeight*this.aspectRatio:this.settings.cropperScaledMaxWidththis.maxSize.width&&(this.cropper.x1-=e?this.cropper.x2-this.maxSize.width:0,this.cropper.x2=this.maxSize.width),this.cropper.y2>this.maxSize.height&&(this.cropper.y1-=e?this.cropper.y2-this.maxSize.height:0,this.cropper.y2=this.maxSize.height)}handleMouseUp(){this.moveStart.active&&(this.moveStart.active=!1,this.moveStart?.type===H.Drag?this.transformChange.emit(this.transform):this.doAutoCrop())}pinchStop(){this.moveStart.active&&(this.moveStart.active=!1,this.doAutoCrop())}doAutoCrop(){this.autoCrop&&this.crop()}crop(e=this.settings.output){if(this.loadedImage?.transformed?.image!=null){if(this.startCropImage.emit(),e==="blob")return this.cropToBlob();if(e==="base64")return this.cropToBase64()}return null}cropToBlob(){return new Promise((e,t)=>this.zone.run(()=>Z(this,null,function*(){let i=yield this.cropService.crop(this.loadedImage,this.cropper,this.settings,"blob",this.maxSize);i?(this.imageCropped.emit(i),e(i)):t("Crop image failed")})))}cropToBase64(){let e=this.cropService.crop(this.loadedImage,this.cropper,this.settings,"base64",this.maxSize);return e?(this.imageCropped.emit(e),e):null}aspectRatioIsCorrect(){return(this.cropper.x2-this.cropper.x1)/(this.cropper.y2-this.cropper.y1)===this.aspectRatio}}return r.\u0275fac=function(e){return new(e||r)(w(fi),w(ui),w(yi),w(gt),w(Me),w(be),w(ht,8))},r.\u0275cmp=y({type:r,selectors:[["image-cropper"]],viewQuery:function(e,t){if(e&1&&(A(ai,7),A(si,5)),e&2){let i;v(i=M())&&(t.wrapper=i.first),v(i=M())&&(t.sourceImage=i.first)}},hostVars:6,hostBindings:function(e,t){e&1&&u("resize",function(){return t.onResize()},!1,et),e&2&&(pe("text-align",t.alignImage),ie("disabled",t.disabled)("ngx-ix-hidden",t.hidden))},inputs:{imageChangedEvent:"imageChangedEvent",imageURL:"imageURL",imageBase64:"imageBase64",imageFile:"imageFile",imageAltText:"imageAltText",cropperFrameAriaLabel:"cropperFrameAriaLabel",output:"output",format:"format",transform:"transform",maintainAspectRatio:"maintainAspectRatio",aspectRatio:"aspectRatio",resetCropOnAspectRatioChange:"resetCropOnAspectRatioChange",resizeToWidth:"resizeToWidth",resizeToHeight:"resizeToHeight",cropperMinWidth:"cropperMinWidth",cropperMinHeight:"cropperMinHeight",cropperMaxHeight:"cropperMaxHeight",cropperMaxWidth:"cropperMaxWidth",cropperStaticWidth:"cropperStaticWidth",cropperStaticHeight:"cropperStaticHeight",canvasRotation:"canvasRotation",initialStepSize:"initialStepSize",roundCropper:"roundCropper",onlyScaleDown:"onlyScaleDown",imageQuality:"imageQuality",autoCrop:"autoCrop",backgroundColor:"backgroundColor",containWithinAspectRatio:"containWithinAspectRatio",hideResizeSquares:"hideResizeSquares",allowMoveImage:"allowMoveImage",cropper:"cropper",alignImage:"alignImage",disabled:"disabled",hidden:"hidden"},outputs:{imageCropped:"imageCropped",startCropImage:"startCropImage",imageLoaded:"imageLoaded",cropperReady:"cropperReady",loadImageFailed:"loadImageFailed",transformChange:"transformChange"},features:[ye],decls:5,vars:10,consts:[["wrapper",""],["sourceImage",""],["class","ngx-ic-source-image","role","presentation",3,"src","visibility","transform","ngx-ic-draggable","load","mousedown","touchstart","error",4,"ngIf"],[1,"ngx-ic-overlay"],["class","ngx-ic-cropper","tabindex","0",3,"ngx-ic-round","top","left","width","height","margin-left","visibility","keydown",4,"ngIf"],["role","presentation",1,"ngx-ic-source-image",3,"load","mousedown","touchstart","error","src"],["tabindex","0",1,"ngx-ic-cropper",3,"keydown"],["role","presentation",1,"ngx-ic-move",3,"mousedown","touchstart"],[4,"ngIf"],["role","presentation",1,"ngx-ic-resize","ngx-ic-topleft",3,"mousedown","touchstart"],[1,"ngx-ic-square"],[1,"ngx-ic-resize","ngx-ic-top"],["role","presentation",1,"ngx-ic-resize","ngx-ic-topright",3,"mousedown","touchstart"],[1,"ngx-ic-resize","ngx-ic-right"],["role","presentation",1,"ngx-ic-resize","ngx-ic-bottomright",3,"mousedown","touchstart"],[1,"ngx-ic-resize","ngx-ic-bottom"],["role","presentation",1,"ngx-ic-resize","ngx-ic-bottomleft",3,"mousedown","touchstart"],[1,"ngx-ic-resize","ngx-ic-left"],["role","presentation",1,"ngx-ic-resize-bar","ngx-ic-top",3,"mousedown","touchstart"],["role","presentation",1,"ngx-ic-resize-bar","ngx-ic-right",3,"mousedown","touchstart"],["role","presentation",1,"ngx-ic-resize-bar","ngx-ic-bottom",3,"mousedown","touchstart"],["role","presentation",1,"ngx-ic-resize-bar","ngx-ic-left",3,"mousedown","touchstart"]],template:function(e,t){e&1&&(c(0,"div",null,0),C(2,ci,2,8,"img",2),O(3,"div",3),C(4,pi,3,16,"div",4),l()),e&2&&(pe("background",t.imageVisible&&t.backgroundColor),_(2),p("ngIf",t.safeImgDataUrl),_(),pe("width",t.maxSize.width,"px")("height",t.maxSize.height,"px")("margin-left",t.alignImage==="center"?t.marginLeft:null),_(),p("ngIf",t.imageVisible))},dependencies:[B],styles:['[_nghost-%COMP%]{display:flex;position:relative;width:100%;max-width:100%;max-height:100%;overflow:hidden;padding:5px;text-align:center}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{width:100%;position:relative}[_nghost-%COMP%] > div[_ngcontent-%COMP%] img.ngx-ic-source-image[_ngcontent-%COMP%]{max-width:100%;max-height:100%;transform-origin:center}[_nghost-%COMP%] > div[_ngcontent-%COMP%] img.ngx-ic-source-image.ngx-ic-draggable[_ngcontent-%COMP%]{user-drag:none;-webkit-user-drag:none;user-select:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;cursor:grab}[_nghost-%COMP%] .ngx-ic-overlay[_ngcontent-%COMP%]{position:absolute;pointer-events:none;touch-action:none;outline:var(--cropper-overlay-color, white) solid 100vw;top:0;left:0}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%]{position:absolute;display:flex;color:#53535c;background:transparent;outline:rgba(255,255,255,.3) solid 100vw;outline:var(--cropper-outline-color, rgba(255, 255, 255, .3)) solid 100vw;touch-action:none}@media (orientation: portrait){[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%]{outline-width:100vh}}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%]:after{position:absolute;content:"";inset:0;pointer-events:none;border:dashed 1px;opacity:.75;color:inherit;z-index:1}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-move[_ngcontent-%COMP%]{width:100%;cursor:move;border:1px solid rgba(255,255,255,.5)}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%]:focus .ngx-ic-move[_ngcontent-%COMP%]{border-color:#1e90ff;border-width:2px}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize[_ngcontent-%COMP%]{position:absolute;display:inline-block;line-height:6px;padding:8px;opacity:.85;z-index:1}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize[_ngcontent-%COMP%] .ngx-ic-square[_ngcontent-%COMP%]{display:inline-block;background:#53535C;width:6px;height:6px;border:1px solid rgba(255,255,255,.5);box-sizing:content-box}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-topleft[_ngcontent-%COMP%]{top:-12px;left:-12px;cursor:nwse-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-top[_ngcontent-%COMP%]{top:-12px;left:calc(50% - 12px);cursor:ns-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-topright[_ngcontent-%COMP%]{top:-12px;right:-12px;cursor:nesw-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-right[_ngcontent-%COMP%]{top:calc(50% - 12px);right:-12px;cursor:ew-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-bottomright[_ngcontent-%COMP%]{bottom:-12px;right:-12px;cursor:nwse-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-bottom[_ngcontent-%COMP%]{bottom:-12px;left:calc(50% - 12px);cursor:ns-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-bottomleft[_ngcontent-%COMP%]{bottom:-12px;left:-12px;cursor:nesw-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-left[_ngcontent-%COMP%]{top:calc(50% - 12px);left:-12px;cursor:ew-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar[_ngcontent-%COMP%]{position:absolute;z-index:1}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar.ngx-ic-top[_ngcontent-%COMP%]{top:-11px;left:11px;width:calc(100% - 22px);height:22px;cursor:ns-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar.ngx-ic-right[_ngcontent-%COMP%]{top:11px;right:-11px;height:calc(100% - 22px);width:22px;cursor:ew-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar.ngx-ic-bottom[_ngcontent-%COMP%]{bottom:-11px;left:11px;width:calc(100% - 22px);height:22px;cursor:ns-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar.ngx-ic-left[_ngcontent-%COMP%]{top:11px;left:-11px;height:calc(100% - 22px);width:22px;cursor:ew-resize}[_nghost-%COMP%] .ngx-ic-cropper.ngx-ic-round[_ngcontent-%COMP%]{outline-color:transparent}[_nghost-%COMP%] .ngx-ic-cropper.ngx-ic-round[_ngcontent-%COMP%]:after{border-radius:100%;box-shadow:0 0 0 100vw #ffffff4d;box-shadow:0 0 0 100vw var(--cropper-outline-color, rgba(255, 255, 255, .3))}@media (orientation: portrait){[_nghost-%COMP%] .ngx-ic-cropper.ngx-ic-round[_ngcontent-%COMP%]:after{box-shadow:0 0 0 100vh #ffffff4d;box-shadow:0 0 0 100vh var(--cropper-outline-color, rgba(255, 255, 255, .3))}}[_nghost-%COMP%] .ngx-ic-cropper.ngx-ic-round[_ngcontent-%COMP%] .ngx-ic-move[_ngcontent-%COMP%]{border-radius:100%}.disabled[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize[_ngcontent-%COMP%], .disabled[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar[_ngcontent-%COMP%], .disabled[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-move[_ngcontent-%COMP%]{display:none}.ngx-ix-hidden[_nghost-%COMP%]{display:none}'],changeDetection:0}),r})(),Pt=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=V({type:r}),r.\u0275inj=z({imports:[[F]]}),r})();var Rt=(()=>{let o=class o{imageCropped(t){this.croppedDataUrl=t.base64}};o.\u0275fac=function(i){return new(i||o)},o.\u0275cmp=y({type:o,selectors:[["app-file-cropper"]],decls:3,vars:5,consts:[["output","base64","format","png",3,"imageCropped","maintainAspectRatio","imageBase64","aspectRatio","cropperStaticWidth","cropperStaticHeight"],[1,"mt10",3,"click"]],template:function(i,n){i&1&&(c(0,"image-cropper",0),u("imageCropped",function(s){return n.imageCropped(s)}),l(),c(1,"wbutton",1),u("click",function(){return n.uploadImage(n.croppedDataUrl),n.close()}),T(2,"Cropper"),l()),i&2&&p("maintainAspectRatio",!0)("imageBase64",n.dataUrl)("aspectRatio",1)("cropperStaticWidth",n.width)("cropperStaticHeight",n.height)},dependencies:[St,J]});let r=o;return r})();var kt=(()=>{let o=class o{constructor(t){this._file=t,this._file.add({id:"formPhoto",resize:1920,cb:i=>{typeof i=="string"&&typeof this.setFile=="function"&&this.setFile(i)}}),this._file.add({id:"formPhotos",multiple:!0,resize:1920,cb:i=>{typeof i=="string"&&typeof this.setFile=="function"&&this.setFile(i)}})}};o.\u0275fac=function(i){return new(i||o)(ce(yt))},o.\u0275prov=G({token:o,factory:o.\u0275fac,providedIn:"root"});let r=o;return r})();function Mi(r,o){if(r&1&&(c(0,"h3"),T(1),l()),r&2){let e=f(2);_(),$(e.label)}}function Oi(r,o){if(r&1){let e=b();c(0,"label",6)(1,"img",7),u("error",function(){d(e);let i=f(2);return h(i.force=i.err)}),l()()}if(r&2){let e=f(2);_(),p("src",e.force||e.value||"/assets/default.png",ue)("ngStyle",e.imgStyle)}}function Ai(r,o){r&1&&(c(0,"label",8),T(1,"Add"),l())}function Ii(r,o){if(r&1){let e=b();c(0,"div",11),O(1,"img",12),c(2,"i",13),u("click",function(){let i=d(e).index,n=f(3);return h(n.files.splice(i,1))}),T(3,"X"),l()()}if(r&2){let e=o.$implicit;_(),p("src",e,ue)}}function Si(r,o){if(r&1&&(c(0,"div",9),C(1,Ii,4,1,"div",10),l()),r&2){let e=f(2);_(),p("ngForOf",e.files)}}function Pi(r,o){if(r&1){let e=b();c(0,"div",1),u("click",function(){d(e);let i=f();return h(i.set())}),C(1,Mi,2,1,"h3",2)(2,Oi,2,2,"label",3)(3,Ai,2,0,"label",4)(4,Si,2,1,"div",5),l()}if(r&2){let e=f();p("ngClass",e.class),_(),p("ngIf",e.label),_(),p("ngIf",!e.multiple),_(),p("ngIf",e.multiple),_(),p("ngIf",e.multiple)}}var Pe=(()=>{let o=class o{get files(){return this.value}constructor(t,i,n){this._modal=t,this._http=i,this._fs=n,this.container="general",this.name="",this.err="",this.label="",this.class="",this.imgStyle={},this.multiple=!1,this.isPhoto=!1,this.isRound=!1,this.value=this.multiple?[]:"",this.update=new N,this.force=""}ngOnInit(){if(!this.name&&!this.multiple&&this.value){let t=(this.value||"").split("/");this.name=t[t.length-1].split("?")[0]}}set(){this._fs.setFile=t=>{this.width&&this.height?this._modal.show({uploadImage:this.uploadImage.bind(this),component:Rt,width:this.width,height:this.height,dataUrl:t}):this.uploadImage(t)}}uploadImage(t){this._http.post("/api/file/photo",{container:this.container,name:this.name,dataUrl:t},i=>{this.multiple?(this.value||(this.value=[]),this.value.push(i)):(this.name=i.split("/")[5].split("?")[0],this.value=i),this.update.emit(this.value)})}};o.\u0275fac=function(i){return new(i||o)(w(xt),w(wt),w(kt))},o.\u0275cmp=y({type:o,selectors:[["ngx-file"]],inputs:{container:"container",name:"name",err:"err",label:"label",class:"class",imgStyle:"imgStyle",multiple:"multiple",isPhoto:"isPhoto",isRound:"isRound",resize:"resize",width:"width",height:"height",value:"value"},outputs:{update:"update"},decls:1,vars:1,consts:[[3,"ngClass","click",4,"ngIf"],[3,"click","ngClass"],[4,"ngIf"],["for","formPhoto",4,"ngIf"],["for","formPhotos","class","file__add",4,"ngIf"],["class","file__list",4,"ngIf"],["for","formPhoto"],["alt","Picture",1,"file__img",3,"error","src","ngStyle"],["for","formPhotos",1,"file__add"],[1,"file__list"],["class","file__item",4,"ngFor","ngForOf"],[1,"file__item"],["alt","Picture",1,"file__item-img",3,"src"],[1,"file__item-remove",3,"click"]],template:function(i,n){i&1&&C(0,Pi,5,5,"div",0),i&2&&p("ngIf",n.isPhoto)},dependencies:[R,K,B,Ae],styles:[".file__img[_ngcontent-%COMP%]{display:block;max-width:100%;height:auto;border-radius:var(--file-img-border-radius, 8px);cursor:pointer}.file__img.round[_ngcontent-%COMP%]{border-radius:50%}.file__add[_ngcontent-%COMP%]{display:inline-block;padding:10px 20px;background-color:var(--file-add-bg, #007bff);color:#fff;border-radius:4px;cursor:pointer;text-align:center;transition:background-color .3s ease}.file__add[_ngcontent-%COMP%]:hover{background-color:var(--file-add-bg-hover, #0056b3)}.file__list[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}.file__item[_ngcontent-%COMP%]{position:relative;display:inline-block}.file__item-img[_ngcontent-%COMP%]{display:block;width:100px;height:100px;object-fit:cover;border-radius:var(--file-item-border-radius, 4px);cursor:pointer}.file__item-remove[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;background-color:#f00c;color:#fff;border-radius:50%;width:20px;height:20px;text-align:center;line-height:20px;font-size:12px;cursor:pointer;transition:background-color .3s ease}.file__item-remove[_ngcontent-%COMP%]:hover{background-color:red}"]});let r=o;return r})();var Et=(()=>{let o=class o{};o.\u0275fac=function(i){return new(i||o)},o.\u0275mod=V({type:o}),o.\u0275inj=z({imports:[Pt,F,ee]});let r=o;return r})();var Ri=["header"],ki=["footer"],Ti=[[["","header",""]],"*",[["","footer",""]]],Ei=["[header]","*","[footer]"];function zi(r,o){r&1&&(c(0,"div",6),he(1),l())}function Vi(r,o){r&1&&he(0,1,["*ngIf","!sections"])}function Fi(r,o){if(r&1&&(c(0,"div",7),T(1),l()),r&2){let e=o.$implicit;_(),ge(" ",e," ")}}function Di(r,o){r&1&&(c(0,"div",8),he(1,2),l())}var mo=(()=>{let o=class o{constructor(){this.cardClass="",this.sections=null,this.hasHeader=!1,this.hasFooter=!1}ngAfterContentInit(){this.hasHeader=!!this.headerContent,this.hasFooter=!!this.footerContent}};o.\u0275fac=function(i){return new(i||o)},o.\u0275cmp=y({type:o,selectors:[["wcard"]],contentQueries:function(i,n,a){if(i&1&&(Ve(a,Ri,5),Ve(a,ki,5)),i&2){let s;v(s=M())&&(n.headerContent=s.first),v(s=M())&&(n.footerContent=s.first)}},inputs:{cardClass:"cardClass",sections:"sections"},ngContentSelectors:Ei,decls:6,vars:5,consts:[[1,"w-card",3,"ngClass"],["class","w-card__header",4,"ngIf"],[1,"w-card__body"],[4,"ngIf"],["class","w-card__body-section",4,"ngFor","ngForOf"],["class","w-card__footer",4,"ngIf"],[1,"w-card__header"],[1,"w-card__body-section"],[1,"w-card__footer"]],template:function(i,n){i&1&&(ve(Ti),c(0,"div",0),C(1,zi,2,0,"div",1),c(2,"div",2),C(3,Vi,1,0,"ng-content",3)(4,Fi,2,1,"div",4),l(),C(5,Di,2,0,"div",5),l()),i&2&&(p("ngClass",n.cardClass),_(),p("ngIf",n.hasHeader),_(2),p("ngIf",!n.sections),_(),p("ngForOf",n.sections),_(),p("ngIf",n.hasFooter))},dependencies:[R,K,B],styles:[".w-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;background-color:var(--c-bg-secondary);border-radius:var(--card-border-radius, 8px);box-shadow:var(--card-box-shadow, 0 2px 8px rgba(0, 0, 0, .1));overflow:hidden;margin-bottom:var(--card-margin-bottom, 20px);position:relative}.w-card__header[_ngcontent-%COMP%]{padding:var(--card-header-padding, 16px);border-bottom:var(--card-border-width, 1px) solid var(--card-border-color, #eaeaea);flex-shrink:0}.w-card__body[_ngcontent-%COMP%]{padding:var(--card-body-padding, 16px);flex-grow:1;display:flex;flex-direction:column}.w-card__body-section[_ngcontent-%COMP%]{padding:var(--card-section-padding, 8px 0);border-bottom:var(--card-border-width, 1px) solid var(--card-border-color, #eaeaea)}.w-card__body-section[_ngcontent-%COMP%]:last-child{border-bottom:none}.w-card__footer[_ngcontent-%COMP%]{padding:var(--card-footer-padding, 16px);border-top:var(--card-border-width, 1px) solid var(--card-border-color, #eaeaea);background-color:var(--card-footer-background, #f5f5f5);flex-shrink:0}"]});let r=o;return r})();var zt=(()=>{let o=class o{};o.\u0275fac=function(i){return new(i||o)},o.\u0275mod=V({type:o}),o.\u0275inj=z({imports:[ne,F,_e]});let r=o;return r})();var Li=(()=>{let o=class o{};o.\u0275fac=function(i){return new(i||o)},o.\u0275cmp=y({type:o,selectors:[["icon-spider"]],decls:30,vars:0,consts:[["viewBox","0 0 72 84","width","300px","height","300px","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M29.7441 38.2845C29.7441 38.2845 31.8474 35.0824 33.6034 33.46C35.2166 31.9737 35.9191 31.6079 36.0232 31.5575C36.1314 31.6079 36.8298 31.9737 38.443 33.46C40.1991 35.0824 42.3025 38.2845 42.3025 38.2845C42.3025 38.2845 47.196 35.9266 47.196 29.1802C47.196 22.4337 42.8736 18.9516 42.8736 18.9516C47.9679 27.7872 43.1013 33.2694 43.1013 33.2694C43.1013 33.2694 42.1364 33.1137 40.3998 31.0165C39.0996 29.5517 37.6333 28.246 36.031 27.126V27.1064V27.126C34.4245 28.2391 32.953 29.5384 31.6468 30.9971C29.9139 33.0942 28.9452 33.2498 28.9452 33.2498C28.9452 33.2498 24.0746 27.7679 29.1691 18.9321C29.1691 18.9321 24.8504 22.3948 24.8504 29.1607C24.8504 35.9266 29.7441 38.2845 29.7441 38.2845Z","fill","url(#paint0_linear_5_30)"],["d","M31.1333 41.3775C30.7938 44.101 32.322 45.2097 32.322 45.2097C32.3393 44.5685 32.4233 43.9308 32.5729 43.3072C32.7736 42.7159 33.8967 41.3618 35.0583 41.3618H36.988C38.1459 41.3618 39.2727 42.7003 39.4772 43.3072C39.6241 43.9312 39.707 44.5688 39.7242 45.2097C39.7242 45.2097 41.268 44.101 40.9167 41.3775C40.5965 38.8135 36.5132 35.3236 36.0464 34.9306V34.8917H36.0232H36V34.9306C35.533 35.3236 31.4499 38.8135 31.1333 41.3775Z","fill","url(#paint1_linear_5_30)"],["d","M43.2673 45.91C42.5186 47.5046 41.2429 48.7867 39.6587 49.5362C39.6587 49.5362 36.2085 44.7117 36.0386 44.5639V44.5406V44.5639C35.8688 44.7117 32.4224 49.5362 32.4224 49.5362C30.8254 48.7934 29.5365 47.5106 28.7792 45.91C27.6832 43.3578 28.7792 40.0742 28.7792 40.0742C27.8222 40.9534 25.823 45.91 28.0074 49.7775C28.644 50.9108 29.5247 51.8858 30.5848 52.6305C31.6448 53.3753 32.857 53.8708 34.1322 54.0805C34.1322 54.0805 33.395 52.9756 34.0125 51.1587C34.3557 50.1073 35.0716 49.2207 36.0232 48.6687C36.9748 49.2207 37.6907 50.1073 38.034 51.1587C38.6552 52.9756 37.9143 54.0805 37.9143 54.0805C39.1933 53.8718 40.4095 53.3761 41.473 52.6299C42.5364 51.8838 43.4201 50.9063 44.0583 49.7696C46.2235 45.879 44.2244 40.9456 43.2866 40.0663C43.2673 40.0742 44.3827 43.3578 43.2673 45.91Z","fill","url(#paint2_linear_5_30)"],["d","M18.7064 30.4135C19.2274 31.2189 25.8191 39.9729 25.8191 39.9729C25.8191 39.9729 27.1042 37.4868 25.9232 36.0005C24.7424 34.5144 21.5507 30.3474 20.9486 29.363C20.4509 28.4918 20.1627 27.515 20.1073 26.5111C20.034 25.6902 19.0767 14.6757 19.0767 14.6757C19.8965 11.6482 21.2001 8.77554 22.9362 6.17063C24.3439 4.00548 25.9018 1.94346 27.5982 0C27.5982 0 23.0403 3.23317 20.4314 7.2717C18.8838 9.64045 17.6645 12.2114 16.8074 14.913C16.8074 14.913 17.4134 24.6125 17.5407 26.5189C17.5809 27.8983 17.9831 29.2421 18.7064 30.4135Z","fill","url(#paint3_linear_5_30)"],["d","M19.0923 59.368C19.0923 59.368 19.0923 57.6639 20.1227 54.7848C21.1531 51.9056 24.7539 45.416 24.7539 45.416L25.0279 40.8056L24.3139 39.8095C24.3139 39.8095 19.096 37.7863 16.9811 36.6464C14.8663 35.5064 14.3105 35.1952 14.3105 35.1952C13.5116 33.6583 12.8328 32.0608 12.2805 30.4174C11.1922 27.3555 10.7599 25.9625 10.7599 25.9625C10.5214 22.9704 10.4609 19.9668 10.5785 16.9673C10.7599 11.781 11.0301 10.1158 11.0301 10.1158C11.0301 10.1158 9.72946 12.0067 9.15056 16.4031C8.57166 20.7996 8.44816 26.2622 8.44816 26.2622L11.7054 36.6152C11.7054 36.6152 14.407 38.4827 17.9074 40.4204C19.0234 41.0646 20.2047 41.5863 21.431 41.9767L12.4464 43.3735L3.91342 50.7658C2.51875 53.6073 1.48155 56.6135 0.825943 59.7142C-0.277831 64.9084 0.0540732 70.581 0.0540732 70.581C0.0540732 70.581 1.39713 64.9084 2.99104 59.8194C4.58495 54.7304 5.95501 52.3647 5.95501 52.3647L13.6737 46.3343L19.787 45.7468L15.0708 57.8078C15.0708 57.8078 15.0283 59.3641 15.7037 62.8657C16.3792 66.3673 19.266 75.67 19.266 75.67L26.6296 84L27.3397 83.8715L21.7822 74.6156L19.0923 59.368Z","fill","url(#paint4_linear_5_30)"],["d","M52.923 14.6757C52.923 14.6757 51.9659 25.6786 51.8888 26.5111C51.8333 27.515 51.5451 28.4918 51.0475 29.363C50.4492 30.3513 47.2537 34.5105 46.0728 36.0005C44.8918 37.4907 46.1769 39.9729 46.1769 39.9729C46.1769 39.9729 52.7725 31.2189 53.2936 30.4135C54.0144 29.2429 54.4139 27.9002 54.4514 26.5228C54.5826 24.6164 55.1886 14.9169 55.1886 14.9169C54.3296 12.216 53.1105 9.64533 51.5646 7.27559C48.9596 3.23317 44.4017 0 44.4017 0C46.1041 1.94244 47.6672 4.00452 49.0791 6.17063C50.8088 8.7772 52.1069 11.6496 52.923 14.6757Z","fill","url(#paint5_linear_5_30)"],["d","M71.1821 59.7027C70.5274 56.6015 69.4902 53.5952 68.0945 50.7541L59.5576 43.3617L50.5576 41.9689C51.7828 41.5784 52.9627 41.0566 54.0774 40.4126C57.5932 38.4673 60.2833 36.6075 60.2833 36.6075L63.5366 26.2544C63.5366 26.2544 63.4132 20.8074 62.8343 16.3992C62.2554 11.9911 60.9779 10.1158 60.9779 10.1158C60.9779 10.1158 61.248 11.7771 61.4295 16.9634C61.5448 19.9628 61.4841 22.9665 61.248 25.9586C61.248 25.9586 60.8081 27.3516 59.7313 30.4135C59.179 32.0569 58.5003 33.6544 57.7014 35.1913C57.7014 35.1913 57.1456 35.4986 55.0307 36.6425C52.9158 37.7863 47.6979 39.8056 47.6979 39.8056L46.9839 40.8017L47.2541 45.4121C47.2541 45.4121 50.8664 51.9017 51.8853 54.7808C52.9041 57.66 52.9158 59.3641 52.9158 59.3641L50.2142 74.6117L44.6528 83.8715L45.3629 84L52.7305 75.6778C52.7305 75.6778 55.6134 66.3868 56.2927 62.8735C56.972 59.3603 56.9256 57.8156 56.9256 57.8156L52.2094 45.7544L58.3189 46.3419L66.0375 52.3725C66.0375 52.3725 67.4115 54.738 69.0054 59.8272C70.5993 64.9162 71.9423 70.5888 71.9423 70.5888C71.9423 70.5888 72.2896 64.8967 71.1821 59.7027Z","fill","url(#paint6_linear_5_30)"],["id","paint0_linear_5_30","x1","36.0232","y1","18.9321","x2","36.0232","y2","38.2845","gradientUnits","userSpaceOnUse"],["stop-color","#F6C93C"],["offset","1","stop-color","#A79F1E"],["id","paint1_linear_5_30","x1","36.0264","y1","34.8917","x2","36.0264","y2","45.2097","gradientUnits","userSpaceOnUse"],["id","paint2_linear_5_30","x1","36.0264","y1","40.0663","x2","36.0264","y2","54.0805","gradientUnits","userSpaceOnUse"],["id","paint3_linear_5_30","x1","22.2029","y1","0","x2","22.2029","y2","39.9729","gradientUnits","userSpaceOnUse"],["id","paint4_linear_5_30","x1","13.6735","y1","10.1158","x2","13.6735","y2","84","gradientUnits","userSpaceOnUse"],["id","paint5_linear_5_30","x1","49.7951","y1","0","x2","49.7951","y2","39.9729","gradientUnits","userSpaceOnUse"],["id","paint6_linear_5_30","x1","58.3234","y1","10.1158","x2","58.3234","y2","84","gradientUnits","userSpaceOnUse"]],template:function(i,n){i&1&&(Je(),c(0,"svg",0),O(1,"path",1)(2,"path",2)(3,"path",3)(4,"path",4)(5,"path",5)(6,"path",6)(7,"path",7),c(8,"defs")(9,"linearGradient",8),O(10,"stop",9)(11,"stop",10),l(),c(12,"linearGradient",11),O(13,"stop",9)(14,"stop",10),l(),c(15,"linearGradient",12),O(16,"stop",9)(17,"stop",10),l(),c(18,"linearGradient",13),O(19,"stop",9)(20,"stop",10),l(),c(21,"linearGradient",14),O(22,"stop",9)(23,"stop",10),l(),c(24,"linearGradient",15),O(25,"stop",9)(26,"stop",10),l(),c(27,"linearGradient",16),O(28,"stop",9)(29,"stop",10),l()()())}});let r=o;return r})();var Vt=(()=>{let o=class o{};o.\u0275fac=function(i){return new(i||o)},o.\u0275mod=V({type:o}),o.\u0275inj=z({});let r=o;return r})();var Qi=["alert"],ji=r=>({"animation-duration":r});function Bi(r,o){if(r&1&&(c(0,"div",8),O(1,"span",9),l()),r&2){let e=f();_(),p("ngStyle",pt(1,ji,(e.timeout+350)/1e3+"s"))}}function Hi(r,o){if(r&1&&O(0,"div"),r&2){let e=f(2);nt(e.icon)}}function Ui(r,o){if(r&1&&(c(0,"div",10),C(1,Hi,1,3,"div",11),c(2,"div",12),T(3),l()()),r&2){let e=f();_(),p("ngIf",e.icon),_(2),$(e.text)}}function Wi(r,o){if(r&1){let e=b();c(0,"wbutton",14),u("click",function(){let i=d(e).$implicit;return f(2).remove(),h(i.callback&&i.callback())}),T(1),l()}if(r&2){let e=o.$implicit;_(),ge(" ",e.text," ")}}function Ni(r,o){if(r&1&&(c(0,"div"),C(1,Wi,2,1,"wbutton",13),l()),r&2){let e=f();_(),p("ngForOf",e.buttons)}}function Yi(r,o){if(r&1){let e=b();c(0,"div",15),u("click",function(){d(e);let i=f();return h(i.remove())}),l()}}var Mo=(()=>{let o=class o{constructor(t){this.core=t,this.text="",this.class="",this.type="info",this.progress=!0,this.position="bottomRight",this.icon="",this.timeout=5e3,this.closable=!0,this.buttons=[],this.delete_animation=!1,setTimeout(()=>{if(this.timeout){let i=JSON.parse(JSON.stringify(this.timeout)),n=setTimeout(()=>{this.remove()},i),a=new Date;this.alert.nativeElement.addEventListener("mouseenter",()=>{clearTimeout(n),i-=new Date().getTime()-a.getTime()},!1),this.alert.nativeElement.addEventListener("mouseleave",()=>{a=new Date,clearTimeout(n),n=t.window.setTimeout(()=>{this.remove()},i)},!1)}})}remove(){this.delete_animation=!0,setTimeout(()=>{this.close(),this.delete_animation=!1},350)}};o.\u0275fac=function(i){return new(i||o)(w(Ct))},o.\u0275cmp=y({type:o,selectors:[["alert"]],viewQuery:function(i,n){if(i&1&&A(Qi,5),i&2){let a;v(a=M())&&(n.alert=a.first)}},decls:8,vars:17,consts:[["alert",""],[1,"waw-alert-container","height",3,"ngClass"],[1,"waw-alert","bounceInUp","waw-alert-theme-light","waw-alert-animateInside","waw-alert-opened"],["class","waw-alert__progress",4,"ngIf"],[1,"waw-alert-body"],["class","waw-alert-texts",4,"ngIf"],[4,"ngIf"],["class","waw-alert__close",3,"click",4,"ngIf"],[1,"waw-alert__progress"],[3,"ngStyle"],[1,"waw-alert-texts"],[3,"class",4,"ngIf"],[1,"waw-alert-message","slideIn"],["class","alert-btn",3,"click",4,"ngFor","ngForOf"],[1,"alert-btn",3,"click"],[1,"waw-alert__close",3,"click"]],template:function(i,n){i&1&&(c(0,"div",1)(1,"div",2,0),C(3,Bi,2,3,"div",3),c(4,"div",4),C(5,Ui,4,2,"div",5)(6,Ni,2,1,"div",6)(7,Yi,1,0,"div",7),l()()()),i&2&&(ie("_close",n.delete_animation),p("ngClass",n.class),_(),ie("waw-alert-color-blue",n.type==="info")("waw-alert-color-red",n.type==="error")("waw-alert-color-green",n.type==="success")("waw-alert-color-orange",n.type==="warning")("waw-alert-color-yellow",n.type==="question"),_(2),p("ngIf",n.progress),_(2),p("ngIf",!n.component),_(),p("ngIf",!n.component&&n.type==="question"),_(),p("ngIf",n.closable))},dependencies:[R,K,B,Ae,J],styles:['@keyframes _ngcontent-%COMP%_iziT-bounceInUp{0%{opacity:0;transform:translateY(200px)}50%{opacity:1;transform:translateY(-10px)}70%{transform:translateY(5px)}to{transform:translateY(0)}}@keyframes _ngcontent-%COMP%_iziT-fadeIn{0%{opacity:0}to{opacity:1}}@keyframes _ngcontent-%COMP%_iziT-fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes _ngcontent-%COMP%_iziT-fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes _ngcontent-%COMP%_iziT-bounceInLeft{0%{opacity:0;transform:translate(280px)}50%{opacity:1;transform:translate(-20px)}70%{transform:translate(10px)}to{transform:translate(0)}}@keyframes _ngcontent-%COMP%_iziT-bounceInDown{0%{opacity:0;transform:translateY(-200px)}50%{opacity:1;transform:translateY(10px)}70%{transform:translateY(-5px)}to{transform:translateY(0)}}.alert-wrapper[_ngcontent-%COMP%]{position:fixed;bottom:50px;left:0;width:100%;height:60px;overflow:hidden}.alert[_ngcontent-%COMP%]{display:flex;-webkit-box-align:center;align-items:center;width:auto;background:#3aed92;color:#fff;max-width:700px;margin:0 auto;transform:translateY(300px) scale(0);transition:.3s all ease-in-out}.alert._show[_ngcontent-%COMP%]{transform:translateY(0) scale(1);transition:.3s all ease-in-out}.alert-icon[_ngcontent-%COMP%]{min-width:60px;min-height:60px;position:relative;display:flex;justify-content:center;align-items:center;background-color:#2bd17d}.alert-icon[_ngcontent-%COMP%]:before{content:"";position:absolute;width:25px;height:25px;border-radius:50%;border:2px solid #fff}.alert-icon[_ngcontent-%COMP%]:after{content:"";position:absolute;top:22px;width:7px;height:11px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}.alert-text[_ngcontent-%COMP%]{padding:0 20px;word-break:break-all;overflow:auto;height:60px}.alert-text[_ngcontent-%COMP%] .text-block[_ngcontent-%COMP%]{width:99%}.alert-text[_ngcontent-%COMP%] .text-block__text[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;white-space:pre}.alert-close[_ngcontent-%COMP%]{min-width:50px;margin-left:auto;font-size:25px;display:flex;justify-content:center;align-items:center}.font-bold[_ngcontent-%COMP%]{font-weight:700}.waw-alert__progress[_ngcontent-%COMP%]{bottom:0;position:absolute;width:100%;margin-bottom:0;border-radius:50px}.waw-alert__progress[_ngcontent-%COMP%]:hover span[_ngcontent-%COMP%]{animation-play-state:paused}.waw-alert__progress[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;width:100%;height:2px;background-color:#a5a5a5ed;animation-name:_ngcontent-%COMP%_waw-alert-progress;animation-duration:10s;border-radius:50px}.waw-alert__progress[_ngcontent-%COMP%] span._red[_ngcontent-%COMP%]{background-color:#ffafb4}.waw-alert__progress[_ngcontent-%COMP%] span._green[_ngcontent-%COMP%]{background-color:#a6efb8}.waw-alert__progress[_ngcontent-%COMP%] span._yellow[_ngcontent-%COMP%]{background-color:#fff9b2}.waw-alert__progress[_ngcontent-%COMP%] span._orange[_ngcontent-%COMP%], .waw-alert__progress[_ngcontent-%COMP%] span._blue[_ngcontent-%COMP%]{background-color:#ffcfa5}.waw-alert__progress[_ngcontent-%COMP%] span._white[_ngcontent-%COMP%]{background-color:#fff}.waw-alert__progress[_ngcontent-%COMP%] span._black[_ngcontent-%COMP%]{background-color:#000}.waw-alert[_ngcontent-%COMP%]:hover .waw-alert__progress[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{animation-play-state:paused}.waw-alert__close[_ngcontent-%COMP%]{width:15px;height:15px;opacity:.3;position:relative;order:2}.waw-alert__close[_ngcontent-%COMP%]:hover{opacity:1}.waw-alert__close[_ngcontent-%COMP%]:before, .waw-alert__close[_ngcontent-%COMP%]:after{cursor:pointer;position:absolute;left:15px;content:" ";height:12px;width:2px;background-color:#47525d}.waw-alert__close[_ngcontent-%COMP%]:before{transform:rotate(45deg)}.waw-alert__close[_ngcontent-%COMP%]:after{transform:rotate(-45deg)}@keyframes _ngcontent-%COMP%_waw-alert-progress{0%{width:100%}to{width:0%}}.waw-alert-container[_ngcontent-%COMP%]{font-size:0;height:100px;width:100%;transform:translateZ(0);backface-visibility:hidden;transition:.3s all ease-in-out;opacity:1}.waw-alert-container._close[_ngcontent-%COMP%]{opacity:0;transition:.3s all ease-in-out}.waw-alert[_ngcontent-%COMP%]{display:inline-block;clear:both;position:relative;font-family:Lato,Tahoma,Arial;font-size:14px;padding:8px 25px 9px 0;background:#eeeeeee6;border-color:#eeeeeee6;width:100%;pointer-events:all;cursor:default;transform:translate(0);-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;min-height:54px}.waw-alert[_ngcontent-%COMP%] > .waw-alert-progressbar[_ngcontent-%COMP%]{position:absolute;left:0;bottom:0;width:100%;z-index:1;background:#fff3}.waw-alert[_ngcontent-%COMP%] > .waw-alert-progressbar[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:2px;width:100%;background:#0000004d;border-radius:0 0 3px 3px}.waw-alert[_ngcontent-%COMP%] > .waw-alert-close[_ngcontent-%COMP%]{position:absolute;right:0;top:0;border:0;padding:0;opacity:.6;width:42px;height:100%;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAJPAAACTwBcGfW0QAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAD3SURBVFiF1ZdtDoMgDEBfdi4PwAX8vLFn0qT7wxantojKupmQmCi8R4tSACpgjC2ICCUbEBa8ingjsU1AXRBeR8aLN64FiknswN8CYefBBDQ3whuFESy7WyQMeC0ipEI0A+0FeBvHUFN8xPaUhAH/iKoWsnXHGegy4J0yxialOfaHJAz4bhRzQzgDvdGnz4GbAonZbCQMuBm1K/kcFu8Mp1N2cFFpsxsMuJqqbIGExGl4loARajU1twskJLLhIsID7+tvUoDnIjTg5T9DPH9EBrz8rxjPzciAl9+O8SxI8CzJ8CxKFfh3ynK8Dyb8wNHM/XDqejx/AtNyPO87tNybAAAAAElFTkSuQmCC) no-repeat 50% 50%;background-size:8px;cursor:pointer;outline:none}.waw-alert[_ngcontent-%COMP%] > .waw-alert-close[_ngcontent-%COMP%]:hover{opacity:1}.waw-alert[_ngcontent-%COMP%] > .waw-alert-body[_ngcontent-%COMP%]{position:relative;padding:0 0 0 10px;height:auto;min-height:36px;margin:0 0 0 15px;text-align:left;display:flex;justify-content:space-between;align-items:center}.waw-alert[_ngcontent-%COMP%] > .waw-alert-body[_ngcontent-%COMP%]:after{content:"";display:table;clear:both}.waw-alert[_ngcontent-%COMP%] > .waw-alert-body[_ngcontent-%COMP%] .waw-alert-texts[_ngcontent-%COMP%]{margin:10px 0 0;padding-right:2px;display:inline-block;float:left;display:flex;justify-content:space-between;align-items:center}.waw-alert[_ngcontent-%COMP%] > .waw-alert-body[_ngcontent-%COMP%] .waw-alert-icon[_ngcontent-%COMP%]{height:100%;position:absolute;left:0;top:50%;display:table;font-size:23px;line-height:24px;margin-top:-12px;color:#000;width:24px;height:24px}.waw-alert[_ngcontent-%COMP%] > .waw-alert-body[_ngcontent-%COMP%] .waw-alert-title[_ngcontent-%COMP%]{padding:0;margin:0 10px 0 0;line-height:16px;font-size:14px;text-align:left;float:left;color:#000;white-space:normal;font-weight:700}.waw-alert[_ngcontent-%COMP%] > .waw-alert-body[_ngcontent-%COMP%] .waw-alert-message[_ngcontent-%COMP%]{padding:0;font-size:14px;line-height:16px;text-align:left;float:left;color:#0009;white-space:normal}@media only screen and (min-width: 568px){.waw-alert-wrapper[_ngcontent-%COMP%]{padding:10px 15px}.waw-alert[_ngcontent-%COMP%]{margin:5px;border-radius:3px;width:auto}.waw-alert[_ngcontent-%COMP%]:after{content:"";z-index:-1;position:absolute;top:0;left:0;width:100%;height:100%;border-radius:3px;box-shadow:inset 0 -10px 20px -10px #0003,inset 0 0 5px #0000001a,0 8px 8px -5px #00000040}.waw-alert[_ngcontent-%COMP%]:not(.waw-alert-rtl) .waw-alert-cover[_ngcontent-%COMP%]{border-radius:3px 0 0 3px}.waw-alert.waw-alert-rtl[_ngcontent-%COMP%] .waw-alert-cover[_ngcontent-%COMP%]{border-radius:0 3px 3px 0}.waw-alert.waw-alert-color-dark[_ngcontent-%COMP%]:after{box-shadow:inset 0 -10px 20px -10px #ffffff4d,0 10px 10px -5px #00000040}.waw-alert.waw-alert-balloon[_ngcontent-%COMP%] .waw-alert-progressbar[_ngcontent-%COMP%]{background:transparent}.waw-alert.waw-alert-balloon[_ngcontent-%COMP%]:after{box-shadow:0 10px 10px -5px #00000040,inset 0 10px 20px -5px #00000040}.waw-alert-target[_ngcontent-%COMP%] .waw-alert[_ngcontent-%COMP%]:after{box-shadow:inset 0 -10px 20px -10px #0003,inset 0 0 5px #0000001a}}.waw-alert.waw-alert-theme-dark[_ngcontent-%COMP%]{background:#565c70;border-color:#565c70}.waw-alert.waw-alert-theme-dark[_ngcontent-%COMP%] .waw-alert-title[_ngcontent-%COMP%]{color:#fff}.waw-alert.waw-alert-theme-dark[_ngcontent-%COMP%] .waw-alert-message[_ngcontent-%COMP%]{color:#ffffffb3;font-weight:300}.waw-alert.waw-alert-theme-dark[_ngcontent-%COMP%] .waw-alert-icon[_ngcontent-%COMP%]{color:#fff}.waw-alert.waw-alert-color-red[_ngcontent-%COMP%]{background:#ffafb4e6;border-color:#ffafb4e6}.waw-alert.waw-alert-color-orange[_ngcontent-%COMP%]{background:#ffcfa5e6;border-color:#ffcfa5e6}.waw-alert.waw-alert-color-yellow[_ngcontent-%COMP%]{background:#fff9b2e6;border-color:#fff9b2e6}.waw-alert.waw-alert-color-blue[_ngcontent-%COMP%]{background:#9ddeffe6;border-color:#9ddeffe6}.waw-alert.waw-alert-color-green[_ngcontent-%COMP%]{background:#a6efb8e6;border-color:#a6efb8e6}.waw-alert.slideIn[_ngcontent-%COMP%], .waw-alert[_ngcontent-%COMP%] .slideIn[_ngcontent-%COMP%]{-webkit-animation:iziT-slideIn 1s cubic-bezier(.16,.81,.32,1) both;-moz-animation:iziT-slideIn 1s cubic-bezier(.16,.81,.32,1) both;animation:iziT-slideIn 1s cubic-bezier(.16,.81,.32,1) both}.waw-alert.bounceInLeft[_ngcontent-%COMP%]{-webkit-animation:_ngcontent-%COMP%_iziT-bounceInLeft .7s ease-in-out both;animation:_ngcontent-%COMP%_iziT-bounceInLeft .7s ease-in-out both}.waw-alert.bounceInRight[_ngcontent-%COMP%]{-webkit-animation:iziT-bounceInRight .85s ease-in-out both;animation:iziT-bounceInRight .85s ease-in-out both}.waw-alert.bounceInDown[_ngcontent-%COMP%]{-webkit-animation:_ngcontent-%COMP%_iziT-bounceInDown .7s ease-in-out both;animation:_ngcontent-%COMP%_iziT-bounceInDown .7s ease-in-out both}.waw-alert.bounceInUp[_ngcontent-%COMP%]{-webkit-animation:_ngcontent-%COMP%_iziT-bounceInUp .7s ease-in-out both;animation:_ngcontent-%COMP%_iziT-bounceInUp .7s ease-in-out both}.height[_ngcontent-%COMP%]{height:auto!important}']});let r=o;return r})();var Ao=(()=>{let o=class o{};o.\u0275fac=function(i){return new(i||o)},o.\u0275cmp=y({type:o,selectors:[["app-alert-wrapper"]],decls:8,vars:0,consts:[["id","bottomRight",1,"waw-alert-wrapper","waw-alert-wrapper-bottomRight"],["id","bottomLeft",1,"waw-alert-wrapper","waw-alert-wrapper-bottomLeft"],["id","topRight",1,"waw-alert-wrapper","waw-alert-wrapper-topRight"],["id","topLeft",1,"waw-alert-wrapper","waw-alert-wrapper-topLeft"],["id","topCenter",1,"waw-alert-wrapper","waw-alert-wrapper-topCenter"],["id","bottomCenter",1,"waw-alert-wrapper","waw-alert-wrapper-bottomCenter"],["id","center",1,"waw-alert-wrapper","waw-alert-wrapper-center"]],template:function(i,n){i&1&&(c(0,"div"),O(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"div",5)(7,"div",6),l())},styles:[".waw-alert-wrapper[_ngcontent-%COMP%]{z-index:99999;position:fixed;width:100%;pointer-events:none;display:flex;flex-direction:column}.waw-alert-wrapper-bottomLeft[_ngcontent-%COMP%]{left:0;bottom:0;text-align:left}.waw-alert-wrapper-bottomRight[_ngcontent-%COMP%]{right:0;bottom:0;text-align:right}.waw-alert-wrapper-topLeft[_ngcontent-%COMP%]{left:0;top:0;text-align:left}.waw-alert-wrapper-topRight[_ngcontent-%COMP%]{top:0;right:0;text-align:right}.waw-alert-wrapper-topCenter[_ngcontent-%COMP%]{top:0;left:0;right:0;text-align:center}.waw-alert-wrapper-bottomCenter[_ngcontent-%COMP%]{bottom:0;left:0;right:0;text-align:center}.waw-alert-wrapper-center[_ngcontent-%COMP%]{inset:0;text-align:center;justify-content:center;flex-flow:column;align-items:center}"]});let r=o;return r})();var Ft=(()=>{let o=class o{};o.\u0275fac=function(i){return new(i||o)},o.\u0275mod=V({type:o}),o.\u0275inj=z({imports:[F,ee]});let r=o;return r})();var Dt=(()=>{let o=class o{};o.\u0275fac=function(i){return new(i||o)},o.\u0275mod=V({type:o}),o.\u0275inj=z({imports:[F]});let r=o;return r})();var $i=["templateRef"];function Xi(r,o){if(r&1){let e=b();c(0,"winput",1),u("wChange",function(i){let n=d(e).$implicit;return n.submition[n.key]=i,h(n.wChange())})("wSubmit",function(){let i=d(e).$implicit;return h(i.wSubmit())}),l()}if(r&2){let e=o.$implicit;p("value",e.submition[e.key])("placeholder",e.field.Placeholder)("name",e.field.Label||"name")("focused",e.component.focused)("ngClass",e.component.class)("setFocus",e.component)("label",e.field.Label)}}var Lt=(()=>{let o=class o{constructor(t){this._form=t}ngOnInit(){this._form.addTemplateComponent("Email",this.templateRef)}};o.\u0275fac=function(i){return new(i||o)(w(S))},o.\u0275cmp=y({type:o,selectors:[["ng-component"]],viewQuery:function(i,n){if(i&1&&A($i,7),i&2){let a;v(a=M())&&(n.templateRef=a.first)}},decls:2,vars:0,consts:[["templateRef",""],["type","email",3,"wChange","wSubmit","value","placeholder","name","focused","ngClass","setFocus","label"]],template:function(i,n){i&1&&C(0,Xi,1,7,"ng-template",null,0,P)},dependencies:[D,R]});let r=o;return r})();var qi=["templateRef"];function Zi(r,o){if(r&1){let e=b();c(0,"winput",1),u("wChange",function(i){let n=d(e).$implicit;return h(n.submition[n.key]=i)}),l()}if(r&2){let e=o.$implicit;p("value",e.submition[e.key])("placeholder",e.field.Placeholder)("name",e.field.Label||"name")("focused",e.component.focused)("ngClass",e.component.class)("label",e.field.Label)}}var Qt=(()=>{let o=class o{constructor(t){this._form=t}ngOnInit(){this._form.addTemplateComponent("Number",this.templateRef)}};o.\u0275fac=function(i){return new(i||o)(w(S))},o.\u0275cmp=y({type:o,selectors:[["ng-component"]],viewQuery:function(i,n){if(i&1&&A(qi,7),i&2){let a;v(a=M())&&(n.templateRef=a.first)}},decls:2,vars:0,consts:[["templateRef",""],["type","number",3,"wChange","value","placeholder","name","focused","ngClass","label"]],template:function(i,n){i&1&&C(0,Zi,1,6,"ng-template",null,0,P)},dependencies:[D,R]});let r=o;return r})();var Gi=["templateRef"];function Ki(r,o){if(r&1){let e=b();c(0,"winput",1),u("wChange",function(i){let n=d(e).$implicit;return h(n.submition[n.key]=i)}),l()}if(r&2){let e=o.$implicit;p("value",e.submition[e.key])("placeholder",e.field.Placeholder)("name",e.field.Label||"name")("focused",e.component.focused)("ngClass",e.component.class)("label",e.field.Label)}}var jt=(()=>{let o=class o{constructor(t){this._form=t}ngOnInit(){this._form.addTemplateComponent("Time",this.templateRef)}};o.\u0275fac=function(i){return new(i||o)(w(S))},o.\u0275cmp=y({type:o,selectors:[["ng-component"]],viewQuery:function(i,n){if(i&1&&A(Gi,7),i&2){let a;v(a=M())&&(n.templateRef=a.first)}},decls:2,vars:0,consts:[["templateRef",""],["type","time",3,"wChange","value","placeholder","name","focused","ngClass","label"]],template:function(i,n){i&1&&C(0,Ki,1,6,"ng-template",null,0,P)},dependencies:[D,R]});let r=o;return r})();var Ji=["templateRef"];function en(r,o){if(r&1){let e=b();c(0,"ngx-file",1),u("update",function(i){let n=d(e).$implicit;return h(n.control.setValue(i))}),l()}if(r&2){let e=o.$implicit;p("label",e.field.Label)("width",e.field.Width)("height",e.field.Height)("value",e.value)("isPhoto",!0)}}var Bt=(()=>{let o=class o{constructor(t){this._form=t}ngOnInit(){this._form.addTemplateComponent("Photo",this.templateRef)}};o.\u0275fac=function(i){return new(i||o)(w(S))},o.\u0275cmp=y({type:o,selectors:[["ng-component"]],viewQuery:function(i,n){if(i&1&&A(Ji,7),i&2){let a;v(a=M())&&(n.templateRef=a.first)}},decls:2,vars:0,consts:[["templateRef",""],[3,"update","label","width","height","value","isPhoto"]],template:function(i,n){i&1&&C(0,en,1,5,"ng-template",null,0,P)},dependencies:[Pe]});let r=o;return r})();var tn=["templateRef"];function nn(r,o){if(r&1){let e=b();c(0,"ngx-file",1),u("update",function(i){let n=d(e).$implicit;return h(n.control.setValue(i))}),l()}if(r&2){let e=o.$implicit;p("container",e.config.formId)("label",e.field.Label)("width",e.field.Width)("height",e.field.Height)("value",e.value)("multiple",!0)("isPhoto",!0)}}var Ht=(()=>{let o=class o{constructor(t){this._form=t}ngOnInit(){this._form.addTemplateComponent("Photos",this.templateRef)}};o.\u0275fac=function(i){return new(i||o)(w(S))},o.\u0275cmp=y({type:o,selectors:[["ng-component"]],viewQuery:function(i,n){if(i&1&&A(tn,7),i&2){let a;v(a=M())&&(n.templateRef=a.first)}},decls:2,vars:0,consts:[["templateRef",""],[3,"update","container","label","width","height","value","multiple","isPhoto"]],template:function(i,n){i&1&&C(0,nn,1,7,"ng-template",null,0,P)},dependencies:[Pe]});let r=o;return r})();var on=["templateRef"];function rn(r,o){if(r&1){let e=b();c(0,"winput",1),u("wChange",function(i){let n=d(e).$implicit;return h(n.submition[n.key]=i)}),l()}if(r&2){let e=o.$implicit;p("value",e.submition[e.key])("placeholder",e.field.Placeholder)("name",e.field.Label||"name")("focused",e.component.focused)("ngClass",e.component.class)("label",e.field.Label)}}var Ut=(()=>{let o=class o{constructor(t){this._form=t}ngOnInit(){this._form.addTemplateComponent("Date",this.templateRef)}};o.\u0275fac=function(i){return new(i||o)(w(S))},o.\u0275cmp=y({type:o,selectors:[["ng-component"]],viewQuery:function(i,n){if(i&1&&A(on,7),i&2){let a;v(a=M())&&(n.templateRef=a.first)}},decls:2,vars:0,consts:[["templateRef",""],["type","date",3,"wChange","value","placeholder","name","focused","ngClass","label"]],template:function(i,n){i&1&&C(0,rn,1,6,"ng-template",null,0,P)},dependencies:[D,R]});let r=o;return r})();var an=["templateRef"];function sn(r,o){if(r&1){let e=b();c(0,"winput",1),u("wChange",function(i){let n=d(e).$implicit;return n.submition[n.key]=i,h(n.wChange())}),l()}if(r&2){let e=o.$implicit;p("type",e.field.Textarea?"textarea":"text")("placeholder",e.field.Placeholder)("name",e.field.Label||"name")("value",e.submition[e.key])("focused",e.component.focused)("ngClass",e.component.class)("label",e.field.Label)}}var Wt=(()=>{let o=class o{constructor(t){this._form=t}ngOnInit(){this._form.addTemplateComponent("Text",this.templateRef)}};o.\u0275fac=function(i){return new(i||o)(w(S))},o.\u0275cmp=y({type:o,selectors:[["ng-component"]],viewQuery:function(i,n){if(i&1&&A(an,7),i&2){let a;v(a=M())&&(n.templateRef=a.first)}},decls:2,vars:0,consts:[["templateRef",""],[3,"wChange","type","placeholder","name","value","focused","ngClass","label"]],template:function(i,n){i&1&&C(0,sn,1,7,"ng-template",null,0,P)},dependencies:[D,R]});let r=o;return r})();var cn=["templateRef"];function ln(r,o){if(r&1){let e=b();c(0,"wbutton",1),u("click",function(){let i=d(e).$implicit,n=f();return h(n.click(i))}),T(1),l()}if(r&2){let e=o.$implicit;p("disableSubmit",!0),_(),$(e.field.Label)}}var Nt=(()=>{let o=class o{constructor(t){this._form=t}ngOnInit(){this._form.addTemplateComponent("Button",this.templateRef)}click(t){typeof t.field.Click=="function"&&t.field.Click()}};o.\u0275fac=function(i){return new(i||o)(w(S))},o.\u0275cmp=y({type:o,selectors:[["button-formcomponents"]],viewQuery:function(i,n){if(i&1&&A(cn,7),i&2){let a;v(a=M())&&(n.templateRef=a.first)}},decls:2,vars:0,consts:[["templateRef",""],[3,"click","disableSubmit"]],template:function(i,n){i&1&&C(0,ln,2,2,"ng-template",null,0,P)},dependencies:[J],styles:[".w-btn[_ngcontent-%COMP%]{font-size:var(--fs);font-weight:500;font-family:var(--ff-base);background-color:var(--c-primary);border-radius:var(--b-radius-btn);transition:var(--transition);color:var(--c-white);position:relative;padding:11px 25px;line-height:19px;white-space:nowrap;display:inline-flex;justify-content:center;align-items:center;-webkit-user-select:none;user-select:none;text-align:center;width:100%;border:none;cursor:pointer;transition:all .3s;border-radius:4px}.w-btn._primary[_ngcontent-%COMP%]{background-color:var(--c-primary)}.w-btn._primary[_ngcontent-%COMP%]:hover{background-color:var(--c-primary-hover)}.w-btn._second[_ngcontent-%COMP%]{border:1px solid #256eff;background-color:var(--c-white);color:#256eff}.w-btn._danger[_ngcontent-%COMP%]{background-color:var(--c-secondary);color:#fff}.w-btn._danger[_ngcontent-%COMP%]:hover{background:var(--c-secondary-hover)}.w-btn._link[_ngcontent-%COMP%]{background:transparent;color:var(--c-text-primary);font-size:14px;font-weight:400}.w-btn._link[_ngcontent-%COMP%]:hover{color:var(--c-text-secondary)}.w-btn[_ngcontent-%COMP%]:disabled{background-color:var(--c-grey-dark);cursor:default}.w-btn[_ngcontent-%COMP%]:disabled:hover{background-color:var(--c-grey-dark)}"]});let r=o;return r})();var pn=["templateRef"];function mn(r,o){r&1&&O(0,"span",10)}function dn(r,o){r&1&&O(0,"span",11)}function hn(r,o){r&1&&O(0,"span",12)}function gn(r,o){r&1&&O(0,"span",13)}function fn(r,o){if(r&1){let e=b();c(0,"div",1)(1,"winput",2),u("wChange",function(i){let n=d(e).$implicit;return n.submition[n.key]=i,h(n.wChange())})("wSubmit",function(){let i=d(e).$implicit;return h(i.wSubmit())}),l(),c(2,"div",3),C(3,mn,1,0,"span",4)(4,dn,1,0,"span",5)(5,hn,1,0,"span",6)(6,gn,1,0,"span",7),l(),c(7,"div",8)(8,"span",9),u("click",function(){let i=d(e).$implicit;return h(i.field.Show=!i.field.Show)}),T(9," visibility "),l()()()}if(r&2){let e=o.$implicit,t=f();_(),p("value",e.submition[e.key])("type",e.field.Show?"text":"password")("placeholder",e.field.Placeholder)("name",e.field.Label||"name")("focused",e.component.focused)("ngClass",e.component.class)("setFocus",e.component)("label",e.field.Label),_(2),p("ngIf",t.ui.level(e.value)>1),_(),p("ngIf",t.ui.level(e.value)>2),_(),p("ngIf",t.ui.level(e.value)>3),_(),p("ngIf",t.ui.level(e.value)>4)}}var Yt=(()=>{let o=class o{constructor(t,i){this._form=t,this.ui=i}ngOnInit(){this._form.addTemplateComponent("Password",this.templateRef)}};o.\u0275fac=function(i){return new(i||o)(w(S),w(bt))},o.\u0275cmp=y({type:o,selectors:[["ng-component"]],viewQuery:function(i,n){if(i&1&&A(pn,7),i&2){let a;v(a=M())&&(n.templateRef=a.first)}},decls:2,vars:0,consts:[["templateRef",""],[1,"pass_container"],["type","password",3,"wChange","wSubmit","value","type","placeholder","name","focused","ngClass","setFocus","label"],[1,"smart"],["class","red",4,"ngIf"],["class","orange",4,"ngIf"],["class","yellow",4,"ngIf"],["class","green",4,"ngIf"],[1,"eye"],[1,"material-icons",3,"click"],[1,"red"],[1,"orange"],[1,"yellow"],[1,"green"]],template:function(i,n){i&1&&C(0,fn,10,12,"ng-template",null,0,P)},dependencies:[D,R,B],styles:[".pass_container[_ngcontent-%COMP%]{position:relative}.smart[_ngcontent-%COMP%]{position:absolute;right:0;top:0}.red[_ngcontent-%COMP%]{width:3px;height:8px;background-color:#bb1717;display:inline-block;margin-left:5px}.orange[_ngcontent-%COMP%]{width:3px;height:10px;background-color:#eb9719;display:inline-block;margin-left:5px}.yellow[_ngcontent-%COMP%]{width:3px;height:12px;background-color:#fffb00;display:inline-block;margin-left:5px}.green[_ngcontent-%COMP%]{width:3px;height:14px;background-color:#21d311;display:inline-block;margin-left:5px}.eye[_ngcontent-%COMP%]{position:relative;cursor:pointer}.eye[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:absolute;top:-32px;right:10px;font-size:22px;color:var(--c-text-primary)}@media screen and (max-width: 768px){.red[_ngcontent-%COMP%]{width:3px;height:8px;background-color:#bb1717;display:inline-block;margin-left:5px}.orange[_ngcontent-%COMP%]{width:3px;height:10px;background-color:#eb9719;display:inline-block;margin-left:5px}.yellow[_ngcontent-%COMP%]{width:3px;height:12px;background-color:#fffb00;display:inline-block;margin-left:5px}.green[_ngcontent-%COMP%]{width:3px;height:14px;background-color:#21d311;display:inline-block;margin-left:5px}#eye[_ngcontent-%COMP%]{position:absolute;left:165px;top:252px;font-size:22px;color:#5a5a5a}}"]});let r=o;return r})();var un=["templateRef"];function _n(r,o){if(r&1){let e=b();c(0,"wselect",1),u("modelChange",function(i){let n=d(e).$implicit;return n.submition[n.key]=i,h(n.wChange())}),l()}if(r&2){let e=o.$implicit;p("select",e.submition[e.key])("multiple",e.field.Multiple||!1)("placeholder",e.field.Placeholder)("value",e.field.Value||"_id")("name",e.field.Name||"name")("ngClass",e.component.class)("items",e.field.Items)("searchable",!0)}}var $t=(()=>{let o=class o{constructor(t){this._form=t}ngOnInit(){this._form.addTemplateComponent("Select",this.templateRef)}select(t){return t.value?.name||t.value||""}};o.\u0275fac=function(i){return new(i||o)(w(S))},o.\u0275cmp=y({type:o,selectors:[["ng-component"]],viewQuery:function(i,n){if(i&1&&A(un,7),i&2){let a;v(a=M())&&(n.templateRef=a.first)}},decls:2,vars:0,consts:[["templateRef",""],[3,"modelChange","select","multiple","placeholder","value","name","ngClass","items","searchable"]],template:function(i,n){i&1&&C(0,_n,1,8,"ng-template",null,0,P)},dependencies:[R,At],styles:[".w-select[_ngcontent-%COMP%]{width:100%}.w-select__label[_ngcontent-%COMP%]{margin-bottom:5px}.w-select__body[_ngcontent-%COMP%]{position:relative;cursor:pointer;display:flex;min-height:50px;height:50px;align-items:center;border:2px solid var(--c-text-primary);border-radius:12px;transition:var(--transition)}.w-select__body._active[_ngcontent-%COMP%]{border-color:var(--c-sky)}.w-select__header[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%;overflow:hidden;white-space:nowrap;padding:14px 10px 14px 40px;color:#666;position:relative}.w-select__header[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{position:absolute;left:10px;top:50%;transform:translateY(-50%)}.w-select__header[_ngcontent-%COMP%] svg[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:var(--c-primary)}.w-select__text[_ngcontent-%COMP%]{margin-right:10px;flex-grow:1;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.w-select__text[_ngcontent-%COMP%] .text-overflow[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;word-break:keep-all;color:var(--c-text-primary)}.w-select__arrow[_ngcontent-%COMP%]{margin-right:15px;transition:var(--transition);display:flex;align-items:center;justify-content:center;border-radius:50%}.w-select__arrow[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:12px;height:12px}.w-select__arrow[_ngcontent-%COMP%] svg[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:var(--c-text-primary)}.w-select__arrow._active[_ngcontent-%COMP%]{transform:rotate(180deg)}.w-select[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{padding:10px;transition:var(--transition);border-bottom:1px solid var(--c-text-primary)}.w-select[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:hover{background:var(--c-shadow);border-bottom:1px solid #1ac5eb;color:#1ac5eb}.w-select__popup[_ngcontent-%COMP%]{z-index:9;width:100%;left:0;position:absolute;top:calc(100% + 10px);background:var(--c-white);box-shadow:0 0 4px var(--c-border);border-radius:10px;border:2px solid #173b59;background:#f8f6f6;color:#666;padding-bottom:15px;padding-top:15px}.w-select__popup._search[_ngcontent-%COMP%]{padding-top:60px}.w-select__popup[_ngcontent-%COMP%] .popup-block[_ngcontent-%COMP%]{max-height:180px;overflow-y:auto;padding:0 15px}.w-select__popup[_ngcontent-%COMP%] .popup-block__empty-search[_ngcontent-%COMP%]{padding:15px;text-align:center;color:#717171}.w-select__search[_ngcontent-%COMP%]{top:10px;position:absolute;display:flex;justify-content:center;align-items:center;width:100%;left:0;padding:0 15px}.w-select__search[_ngcontent-%COMP%] .search-input[_ngcontent-%COMP%]{outline:none;width:100%;cursor:pointer;display:flex;padding:10px 30px 10px 10px;align-items:center;border:1px solid var(--c-border);border-radius:10px;transition:var(--transition)}.w-select__search[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%]{position:absolute;top:50%;right:25px;transform:translateY(-50%)}.w-select[_ngcontent-%COMP%] *[_ngcontent-%COMP%]::-webkit-scrollbar{width:5px;height:5px;background-color:var(--c-white)}.w-select[_ngcontent-%COMP%] *[_ngcontent-%COMP%] [_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:10px;background-color:var(--c-border)}.w-select[_ngcontent-%COMP%] .checkbox__body[_ngcontent-%COMP%]{display:inline-flex;-webkit-user-select:none;user-select:none;cursor:pointer;padding:6px 8px;color:var(--c-text);border-radius:6px;overflow:hidden;transition:var(--transition)}.w-select[_ngcontent-%COMP%] .checkbox__body[_ngcontent-%COMP%]:not(:last-child){margin-right:6px}.w-select[_ngcontent-%COMP%] .checkbox__body[_ngcontent-%COMP%]:hover{background:rgba(var(--c-sky),.09)}.w-select[_ngcontent-%COMP%] .checkbox__body[_ngcontent-%COMP%]:hover .checkbox__svg[_ngcontent-%COMP%]{border-color:var(--c-sky)}.w-select[_ngcontent-%COMP%] .checkbox__input[_ngcontent-%COMP%]{display:none}.w-select[_ngcontent-%COMP%] .checkbox__input[_ngcontent-%COMP%]:checked + .checkbox__body[_ngcontent-%COMP%] .checkbox__svg[_ngcontent-%COMP%]{background:var(--c-sky);border-color:var(--c-sky);animation:_ngcontent-%COMP%_wave .4s ease}.w-select[_ngcontent-%COMP%] .checkbox__input[_ngcontent-%COMP%]:checked + .checkbox__body[_ngcontent-%COMP%] .checkbox__svg[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{stroke-dashoffset:0}.w-select[_ngcontent-%COMP%] .checkbox__svg[_ngcontent-%COMP%]{position:relative;min-width:18px;min-height:18px;width:18px;height:18px;display:inline-block;border-radius:4px;transform:scale(1);border:1px solid var(--c-border);transition:var(--transition);box-shadow:0 1px 1px var(--c-shadow)}.w-select[_ngcontent-%COMP%] .checkbox__svg[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{position:absolute;top:3px;left:2px;fill:none;stroke:var(--c-white);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:16px;stroke-dashoffset:16px;transition:all .3s ease;transition-delay:.1s;transform:translateZ(0)}.w-select[_ngcontent-%COMP%] .checkbox__text[_ngcontent-%COMP%]{padding-left:8px;line-height:18px;text-overflow:ellipsis;overflow:hidden}.w-select[_ngcontent-%COMP%] .checkbox__svg-icon[_ngcontent-%COMP%]{position:absolute;width:0;height:0;pointer-events:none;-webkit-user-select:none;user-select:none}@keyframes _ngcontent-%COMP%_wave{50%{transform:scale(.9)}}.selected[_ngcontent-%COMP%]{font-weight:700}"]});let r=o;return r})();var Cn=["templateRef"];function wn(r,o){if(r&1){let e=b();c(0,"winput",1),u("wChange",function(i){let n=d(e).$implicit;return h(n.submition[n.key]=i)}),l()}if(r&2){let e=o.$implicit;p("value",e.submition[e.key])("name",e.field.Label||"name")("focused",e.component.focused)("ngClass",e.component.class)("label",e.field.Label)}}var Xt=(()=>{let o=class o{constructor(t){this._form=t}ngOnInit(){this._form.addTemplateComponent("Boolean",this.templateRef)}};o.\u0275fac=function(i){return new(i||o)(w(S))},o.\u0275cmp=y({type:o,selectors:[["ng-component"]],viewQuery:function(i,n){if(i&1&&A(Cn,7),i&2){let a;v(a=M())&&(n.templateRef=a.first)}},decls:2,vars:0,consts:[["templateRef",""],["type","checkbox",3,"wChange","value","name","focused","ngClass","label"]],template:function(i,n){i&1&&C(0,wn,1,5,"ng-template",null,0,P)},dependencies:[D,R]});let r=o;return r})();var xn=["templateRef"],yn=["inputRef"];function bn(r,o){if(r&1){let e=b();me(0),c(1,"span"),T(2),l(),c(3,"i",5),u("click",function(){let i=d(e).index,n=f().$implicit;return h(n.submition[n.key].splice(i,1))}),T(4,"X"),l(),de()}if(r&2){let e=o.$implicit;_(2),$(e)}}function vn(r,o){if(r&1){let e=b();c(0,"div")(1,"winput",2,1),u("wSubmit",function(){let i=d(e).$implicit,n=f();return h(n.addTag(i))}),l(),C(3,bn,5,1,"ng-container",3),c(4,"wbutton",4),u("click",function(){let i=d(e).$implicit,n=f();return h(n.addTag(i))}),T(5),l()()}if(r&2){let e=o.$implicit,t=ot(2);_(),p("placeholder",e.field.Placeholder)("label",e.field.Label),_(2),p("ngForOf",e.submition[e.key]),_(),p("disabled",!t.value),_(),ge(" ",e.field.Button||"Add"," ")}}var qt=(()=>{let o=class o{constructor(t){this._form=t}ngOnInit(){this._form.addTemplateComponent("Tags",this.templateRef)}addTag(t){t.submition[t.key]=t.submition[t.key]||[],t.submition[t.key].push(this.inputRef.value.replace(` +`,"")),this.inputRef.value="",t.wChange.emit(),setTimeout(()=>{this.inputRef.focus()},100)}};o.\u0275fac=function(i){return new(i||o)(w(S))},o.\u0275cmp=y({type:o,selectors:[["ng-component"]],viewQuery:function(i,n){if(i&1&&(A(xn,7),A(yn,5)),i&2){let a;v(a=M())&&(n.templateRef=a.first),v(a=M())&&(n.inputRef=a.first)}},decls:2,vars:0,consts:[["templateRef",""],["inputRef",""],[3,"wSubmit","placeholder","label"],[4,"ngFor","ngForOf"],[3,"click","disabled"],[3,"click"]],template:function(i,n){i&1&&C(0,vn,6,5,"ng-template",null,0,P)},dependencies:[D,J,K]});let r=o;return r})();var Zt=(()=>{let o=class o{constructor(t){this.doc=t,this.list={},this.cached={},this._notify=new Xe([])}fixPaths(t){return t=t||[],Array.isArray(t)||(t=[t]),t.map(i=>{let n=typeof i=="string"?{path:i}:i;return n.type||(n.type=n.path.endsWith(".js")||n.callback?"script":"style"),n})}monitor(t){let i=this.fixPaths(t),n=[Ze(),ze(a=>a.length!==0)];return i.length>0&&n.push(ze(a=>a.length===i.length&&a.every(s=>s.status==="ok"&&i.find(m=>m.path===s.path)))),this._notify.asObservable().pipe($e.apply(this,n))}clear(){this.list={},this.cached={}}load(t){return Z(this,null,function*(){return t=this.fixPaths(t),Promise.all(t.map(i=>i.type==="script"?this.loadScript(i.path,{callback:i.callback}):this.loadStyle(i.path))).then(i=>(this._notify.next(i),Promise.resolve(i)))})}loadScript(t,i){let{innerContent:n}=E({},i);return new Promise(a=>{if(this.list[t]===!0){a(se(E({},this.cached[t]),{status:"loading"}));return}this.list[t]=!0;let s=g=>{g.status==="ok"&&i?.callback?window[i?.callback]=()=>{m(g)}:m(g)},m=g=>{g.type="script",this.cached[t]=g,a(g),this._notify.next([g])},x=this.doc.createElement("script");x.type="text/javascript",x.src=t,x.charset="utf-8",n&&(x.innerHTML=n),x.readyState?x.onreadystatechange=()=>{(x.readyState==="loaded"||x.readyState==="complete")&&(x.onreadystatechange=null,s({path:t,status:"ok"}))}:x.onload=()=>s({path:t,status:"ok"}),x.onerror=g=>s({path:t,status:"error",error:g}),this.doc.getElementsByTagName("head")[0].appendChild(x)})}loadStyle(t,i){let{rel:n,innerContent:a}=E({rel:"stylesheet"},i);return new Promise(s=>{if(this.list[t]===!0){s(this.cached[t]);return}this.list[t]=!0;let m=this.doc.createElement("link");m.rel=n,m.type="text/css",m.href=t,a&&(m.innerHTML=a),this.doc.getElementsByTagName("head")[0].appendChild(m);let x={path:t,status:"ok",type:"style"};this.cached[t]=x,s(x)})}};o.\u0275fac=function(i){return new(i||o)(ce(Oe))},o.\u0275prov=G({token:o,factory:o.\u0275fac,providedIn:"root"});let r=o;return r})();var On=["*"];function An(r,o){if(r&1&&O(0,"textarea",3),r&2){let e=f();le("id",e.id)("placeholder",e.placeholder)}}function In(r,o){if(r&1&&(c(0,"div"),he(1),l()),r&2){let e=f();le("id",e.id)}}function Sn(r,o){if(r&1&&(me(0),T(1),de()),r&2){let e=f(2);_(),$(e._loading)}}function Pn(r,o){if(r&1&&(c(0,"div",4),C(1,Sn,2,1,"ng-container",5),l()),r&2){let e=f();_(),p("ngIf",e._loading)("ngIfElse",e._loadingTpl)}}var Re=class{constructor(){this.baseURL="./assets/tinymce/",this.fileName="tinymce.min.js"}},Gt=!(typeof document=="object"&&document),Kt=(()=>{let o=class o{set disabled(t){this._disabled=t,this.setDisabled()}set loading(t){t instanceof tt?(this._loading=null,this._loadingTpl=t):this._loading=t}get instance(){return this._instance}_getWin(){return this.doc.defaultView||window}constructor(t,i,n,a,s){this.defConfig=t,this.lazySrv=i,this.ngZone=n,this.doc=a,this.cd=s,this.value="",this.load=!0,this.id=`_tinymce-${Math.random().toString(36).substring(2)}`,this.placeholder="",this.inline=!1,this._disabled=!1,this._loading=null,this._loadingTpl=null,this.delay=0,this.ready=new N}initDelay(){Gt||setTimeout(()=>this.init(),Math.max(0,this.delay))}init(){let t=this._getWin();if(!t.tinymce)throw new Error("tinymce js\u6587\u4EF6\u52A0\u8F7D\u5931\u8D25");let{defConfig:i,config:n,id:a,inline:s}=this;if(this._instance)return;if(i?.baseURL){let g=""+i.baseURL;g.endsWith("/")&&(g=g.substring(0,g.length-1)),t.tinymce.baseURL=g}let m=E(E({},i?.config),n),x=se(E(E({selector:"#"+a,inline:s},i?.config),n),{setup:g=>{this._instance=g,this.onChange&&g.on("change keyup",()=>{this.value=g.getContent(),this.ngZone.run(()=>this.onChange(this.value))}),typeof m.setup=="function"&&m.setup(g)},init_instance_callback:g=>{g&&this.value&&g.setContent(this.value),this.setDisabled(),typeof m.init_instance_callback=="function"&&m.init_instance_callback(g),this.ready.emit(g)}});m.auto_focus&&(x.auto_focus=a),this.ngZone.runOutsideAngular(()=>t.tinymce.init(x)),this.load=!1,this.cd.detectChanges()}destroy(){this._instance!=null&&(this.ngZone.runOutsideAngular(()=>{this._instance.off(),this._instance.remove()}),this._instance=null)}setDisabled(){this._instance&&this.ngZone.runOutsideAngular(()=>{let t=this._disabled?"readonly":"design",i=this._instance.setMode;typeof i=="function"?i(t):this._instance.mode.set(t)})}ngAfterViewInit(){if(Gt)return;if(this._getWin().tinymce){this.initDelay();return}let{defConfig:t}=this,i=t&&t.baseURL,n=t&&t.fileName,a=(i||"./assets/tinymce/")+(n||"tinymce.min.js");this.lazySrv.monitor(a).subscribe(()=>this.initDelay()),this.lazySrv.load(a)}ngOnChanges(t){this._instance&&t.config&&(this.destroy(),this.initDelay())}ngOnDestroy(){this.destroy()}writeValue(t){this.value=t||"",this._instance&&this.ngZone.runOutsideAngular(()=>this._instance.setContent(this.value))}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t,this.setDisabled()}};o.\u0275fac=function(i){return new(i||o)(w(Re,8),w(Zt),w(be),w(Oe),w(Me))},o.\u0275cmp=y({type:o,selectors:[["tinymce"]],inputs:{config:"config",placeholder:"placeholder",inline:[2,"inline","inline",Fe],disabled:[2,"disabled","disabled",Fe],loading:"loading",delay:[2,"delay","delay",dt]},outputs:{ready:"ready"},exportAs:["tinymce"],standalone:!0,features:[ct([{provide:ft,useExisting:Ke(()=>o),multi:!0}]),it,ye,lt],ngContentSelectors:On,decls:3,vars:3,consts:[["class","tinymce-selector",4,"ngIf"],[4,"ngIf"],["class","loading",4,"ngIf"],[1,"tinymce-selector"],[1,"loading"],[4,"ngIf","ngIfElse"]],template:function(i,n){i&1&&(ve(),C(0,An,1,2,"textarea",0)(1,In,2,1,"div",1)(2,Pn,2,2,"div",2)),i&2&&(p("ngIf",!n.inline),_(),p("ngIf",n.inline),_(),p("ngIf",n.load))},dependencies:[B],styles:[`tinymce .tinymce-selector{display:none} +`],encapsulation:2,changeDetection:0});let r=o;return r})(),Jt=(()=>{let o=class o{static forRoot(t){return{ngModule:o,providers:[{provide:Re,useValue:t}]}}};o.\u0275fac=function(i){return new(i||o)},o.\u0275mod=V({type:o}),o.\u0275inj=z({imports:[F]});let r=o;return r})();var kn=["templateRef"];function Tn(r,o){if(r&1){let e=b();c(0,"tinymce",1),st("ngModelChange",function(i){let n=d(e).$implicit;return at(n.submition[n.component.key],i)||(n.submition[n.component.key]=i),h(i)}),u("ngModelChange",function(){let i=d(e).$implicit;return h(i.wChange())}),l()}if(r&2){let e=o.$implicit,t=f();p("config",t.editorOptions),rt("ngModel",e.submition[e.component.key]),p("ngClass",e.component.class)}}var ei=(()=>{let o=class o{constructor(t){this._form=t,this.htmlContent="",this.editorOptions={inline:!1,menubar:!1,toolbar:"undo redo | bold italic underline | alignleft aligncenter alignright",plugins:"link image"}}ngOnInit(){this._form.addTemplateComponent("TinyMCE",this.templateRef)}handleEditorChange(t){this.htmlContent=t.editor.getContent()}};o.\u0275fac=function(i){return new(i||o)(w(S))},o.\u0275cmp=y({type:o,selectors:[["app-tinymce"]],viewQuery:function(i,n){if(i&1&&A(kn,7),i&2){let a;v(a=M())&&(n.templateRef=a.first)}},decls:2,vars:0,consts:[["templateRef",""],[3,"ngModelChange","config","ngModel","ngClass"]],template:function(i,n){i&1&&C(0,Tn,1,3,"ng-template",null,0,P)},dependencies:[R,ut,_t,Kt],styles:[".editable-textfield[_ngcontent-%COMP%]{border:1px solid #ccc;padding:5px;min-height:30px}"]});let r=o;return r})();var ti=(()=>{let o=class o{constructor(t){this._form=t,this._form.injectComponent("Boolean",Xt,["Label"]),this._form.injectComponent("Button",Nt,["Label"]),this._form.injectComponent("Date",Ut),this._form.injectComponent("Email",Lt),this._form.injectComponent("Number",Qt),this._form.injectComponent("Password",Yt),this._form.injectComponent("Photo",Bt,["Label","Width","Height"],{Width:"Number",Height:"Number"}),this._form.injectComponent("Photos",Ht,["Label","Width","Height"],{Width:"Number",Height:"Number"}),this._form.injectComponent("Select",$t,["Placeholder","Label","Items","Multiple"],{Items:"Tags",Multiple:"Boolean"}),this._form.injectComponent("Tags",qt,["Button","Placeholder","Label"]),this._form.injectComponent("Text",Wt,["Textarea","Placeholder","Label"],{Textarea:"Boolean"}),this._form.injectComponent("Time",jt),this._form.injectComponent("TinyMCE",ei)}};o.\u0275fac=function(i){return new(i||o)(ce(S))},o.\u0275mod=V({type:o}),o.\u0275inj=z({imports:[Ie,ee,F,Et,Se,ne,Jt]});let r=o;return r})();var ta=(()=>{let o=class o{};o.\u0275fac=function(i){return new(i||o)},o.\u0275mod=V({type:o}),o.\u0275inj=z({imports:[F,ne,_e,ti,Ot,Se,F,ne,_e,ee,Ie,zt,vt,Ft,Dt,Mt,Vt]});let r=o;return r})();export{mo as a,Li as b,Mo as c,Ao as d,Ft as e,Dt as f,Pe as g,Et as h,Jt as i,ta as j}; diff --git a/chunk-MEVUXYIT.js b/chunk-MEVUXYIT.js new file mode 100644 index 0000000..07ac746 --- /dev/null +++ b/chunk-MEVUXYIT.js @@ -0,0 +1,2 @@ +import{a as q}from"./chunk-3TBMT7WO.js";import{j as N}from"./chunk-HLEBBEIB.js";import{F as _,G as c,Ja as S,M as b,Na as w,S as j,Va as l,Ya as x,Za as B,_a as k,bb as h,da as g,fa as A,gb as F,nb as T,o as u,p as I,pb as M,r as a,s as v,t as C,u as y}from"./chunk-FBONLC6U.js";var H=(()=>{let t=class t extends x{constructor(s,e,o,m){super({name:"articlecomment"},s,e,o,m),this._helper=v(q),this.articlecomments=[],this.commentsByArticleId={},this.setCommentsByArticleId=this._helper.createParentIdToChildrenIds(this.commentsByArticleId,this.articlecomments,"article"),this.get().subscribe(n=>{this.articlecomments.push(...n),this.setCommentsByArticleId()}),m.on("articlecomment_create").subscribe(n=>{this.articlecomments.push(n),this.setCommentsByArticleId()}),m.on("articlecomment_delete").subscribe(n=>{this.articlecomments.splice(this.articlecomments.findIndex(d=>d._id===n._id),1),this.setCommentsByArticleId()})}};t.\u0275fac=function(e){return new(e||t)(a(k),a(B),a(h),a(l))},t.\u0275prov=u({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();var f=(()=>{let t=class t{get rows(){return this.articleId?this._sa.commentsByArticleId[this.articleId]||[]:this._sa.articlecomments}constructor(s,e,o,m,n,d){this._translate=s,this._alert=e,this._sa=o,this._form=m,this._core=n,this._router=d,this.columns=["content"],this.articleId=this._router.url.includes("/comments/")?this._router.url.replace("/comments/",""):"",this.form=this._form.getForm("comments",{formId:"comments",title:"Comments",components:[{name:"Text",key:"content",focused:!0,fields:[{name:"Placeholder",value:"fill comments content"},{name:"Label",value:"Content"}]}]}),this.config={create:()=>{this._form.modal(this.form,{label:"Create",click:(r,p)=>{this.articleId&&(r.article=this.articleId),this._sa.create(r),p()}})},update:r=>{this._form.modal(this.form,[],r).then(p=>{this._core.copy(p,r),this._sa.update(r)})},delete:r=>{this._alert.question({text:this._translate.translate("Common.Are you sure you want to delete this Articlecomment?"),buttons:[{text:this._translate.translate("Common.No")},{text:this._translate.translate("Common.Yes"),callback:()=>{this._sa.delete(r)}}]})},buttons:[{icon:"cloud_download",click:r=>{this._form.modalUnique("comments","url",r)}}]}}};t.\u0275fac=function(e){return new(e||t)(c(F),c(h),c(H),c(M),c(l),c(S))},t.\u0275cmp=C({type:t,selectors:[["ng-component"]],decls:2,vars:4,consts:[["title","Comments",3,"columns","config","rows"]],template:function(e,o){e&1&&(g(0),j(1,"wtable",0)),e&2&&(A("",o.articleId,` +`),_(),b("columns",o.columns)("config",o.config)("rows",o.rows))},dependencies:[T]});let i=t;return i})();var L=[{path:"",component:f},{path:":articlecomment",component:f}],Z=(()=>{let t=class t{};t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=y({type:t}),t.\u0275inj=I({imports:[w.forChild(L),N]});let i=t;return i})();export{Z as CommentsModule}; diff --git a/chunk-O54DGQYU.js b/chunk-O54DGQYU.js new file mode 100644 index 0000000..80c0bd5 --- /dev/null +++ b/chunk-O54DGQYU.js @@ -0,0 +1 @@ +import{a as F}from"./chunk-A6YJADE2.js";import{b as H,c as z,d as U,j as q}from"./chunk-HLEBBEIB.js";import{$a as L,F as d,G as r,Ja as E,K as P,M as f,Na as S,Q as a,R as c,V as x,Va as k,W as m,X as w,_a as T,ab as j,da as y,eb as R,gb as A,o as C,p as b,pb as B,q as v,qb as N,r as l,t as M,u as O,w as _,x as u,za as I}from"./chunk-FBONLC6U.js";var D=new v("alertConfig"),V={};var K=(()=>{let i=class i{constructor(t,e,o){this.config=t,this._core=e,this._dom=o,this.uniques={},this.shortcuts={tl:"topLeft",tc:"topCenter",tr:"topRight",r:"right",br:"bottomRight",bc:"bottomCenter",bl:"bottomLeft",l:"left",c:"center"},this.config||(this.config=V),this._dom.appendComponent(U)}show(t){let e=typeof t=="string"?{text:t}:t||{};e.type||(e.type="info"),e.position||(e.position="bottomRight");let o;e.close=()=>{o&&o.componentRef.destroy(),s.nativeElement.remove()};let s=this._dom.appendById(z,e,e.position);if(typeof e.component=="function"){let g=s.nativeElement.children[0].children[0].children[0];o=this._dom.appendComponent(e.component,t,g)}return s.nativeElement}open(t){this.show(t)}info(t){typeof t=="string"?this.show({text:t,type:"info"}):(t.type="info",this.show(t))}success(t){typeof t=="string"?this.show({text:t,type:"success"}):(t.type="success",this.show(t))}warning(t){typeof t=="string"?this.show({text:t,type:"warning"}):(t.type="warning",this.show(t))}error(t){typeof t=="string"?this.show({text:t,type:"error"}):(t.type="error",this.show(t))}question(t){typeof t=="string"?this.show({text:t,type:"question"}):(t.type="question",this.show(t))}destroy(){this._core.document.getElementById("bottomRight").innerHTML="",this._core.document.getElementById("bottomLeft").innerHTML="",this._core.document.getElementById("bottomCenter").innerHTML="",this._core.document.getElementById("topRight").innerHTML="",this._core.document.getElementById("topLeft").innerHTML="",this._core.document.getElementById("topCenter").innerHTML="",this._core.document.getElementById("center").innerHTML=""}};i.\u0275fac=function(e){return new(e||i)(l(D,8),l(k),l(j))},i.\u0275prov=C({token:i,factory:i.\u0275fac,providedIn:"root"});let n=i;return n})();function $(n,i){if(n&1){let h=x();a(0,"span",8),m("click",function(){_(h);let e=w();return u(e.us.setMode("dark"))}),y(1," dark_mode "),c()}}function tt(n,i){if(n&1){let h=x();a(0,"span",8),m("click",function(){_(h);let e=w();return u(e.us.setMode())}),y(1," light_mode "),c()}}var J=(()=>{let i=class i{constructor(t,e,o,s,g,W,Y,Q){this.us=t,this.ui=e,this._alert=o,this._http=s,this._hash=g,this._router=W,this._form=Y,this._translate=Q,this.form=this._form.getForm("sign",{formId:"sign",title:"Sign In / Sign Up",components:[{name:"Email",key:"email",focused:!0,required:!0,fields:[{name:"Placeholder",value:"Enter your email"},{name:"Label",value:"Email"}]},{name:"Password",key:"password",required:!0,fields:[{name:"Placeholder",value:"Enter your password"},{name:"Label",value:"Password"}]},{name:"Text",key:"code",fields:[{name:"Placeholder",value:"Enter code from email"},{name:"Label",value:"code"}],hidden:!0},{name:"Button",fields:[{name:"Label",value:"Let's go"},{name:"Submit",value:!0},{name:"Click",value:()=>{this.submit()}}]}]}),this.user={email:"ceo@webart.work",password:"asdasdasdasd",code:""},this._set=p=>{p?(localStorage.setItem("waw_user",JSON.stringify(p)),this._http.set("token",p.token),this.us.setUser(p),this.us.get(),this._router.navigateByUrl("/profile")):this._alert.error({text:"Something went wrong"})}}submit(){!this.form.components[2].hidden&&this.user.code?this.save():this.user.email||this._alert.error({text:this._translate.translate("Sign.Enter your email")}),this.ui.valid(this.user.email)?this.user.password?(this._hash.set("email",this.user.email),this._http.post("/api/user/status",this.user,t=>{t.email&&t.pass?this.login():t.email?this.reset():this.sign()})):this._alert.error({text:this._translate.translate("Sign.Enter your password")}):this._alert.error({text:this._translate.translate("Sign.Enter proper email")})}login(){this._http.post("/api/user/login",this.user,this._set.bind(this))}sign(){this._http.post("/api/user/sign",this.user,this._set.bind(this))}reset(){this._http.post("/api/user/request",this.user,()=>{this.form.components[2].hidden=!1}),this._alert.info({text:"Mail will sent to your email"})}save(){}};i.\u0275fac=function(e){return new(e||i)(r(F),r(R),r(K),r(T),r(L),r(E),r(B),r(A))},i.\u0275cmp=M({type:i,selectors:[["ng-component"]],decls:9,vars:4,consts:[[1,"auth-wrapper"],[1,"auth__wrap"],[1,"auth__img"],[3,"click"],[1,"auth__form"],[1,"auth"],["class","material-icons",3,"click",4,"ngIf"],[3,"wSubmit","submition","config"],[1,"material-icons",3,"click"]],template:function(e,o){e&1&&(a(0,"div",0)(1,"div",1)(2,"div",2)(3,"icon-spider",3),m("click",function(){return o.us.setMode(o.us.mode?"":"dark")}),c()(),a(4,"div",4)(5,"div",5),P(6,$,2,0,"span",6)(7,tt,2,0,"span",6),a(8,"wform",7),m("wSubmit",function(){return o.submit()}),c()()()()()),e&2&&(d(6),f("ngIf",!o.us.mode),d(),f("ngIf",o.us.mode),d(),f("submition",o.user)("config",o.form))},dependencies:[I,N,H],styles:["[_ngcontent-%COMP%]:root{--c-white: #fff;--c-basic: #3558ae;--c-primary: #256eff;--c-primary-hover: #0051f1;--c-secondary: rgb(197, 61, 61);--c-secondary-hover: rgb(150, 42, 42);--c-bg-primary: #f3f4f7;--c-bg-secondary: #ffffff;--c-bg-tertiary: #fcfdfe;--c-border: #f0f1f7;--c-shadow: #f3f3f3;--c-text-primary: #666666;--c-text-secondary: #19235c;--c-placeholder: #313335ab;--c-img-round: 50%;--card-background: #fefefe;--card-border-radius: 10px;--card-box-shadow: 0 4px 12px rgba(0, 0, 0, .15);--card-margin-bottom: 24px;--card-header-padding: 20px;--card-header-background: #e0e0e0;--card-body-padding: 20px;--card-section-padding: 10px 0;--card-footer-padding: 20px;--card-footer-background: #e0e0e0;--card-border-width: 2px;--card-border-color: #cccccc;--file-img-border-radius: 50%;--file-add-bg: #28a745;--file-add-bg-hover: #218838;--file-item-border-radius: 10px}html.dark[_ngcontent-%COMP%]:root{--c-white: #fff;--c-basic: #333;--c-bg-primary: #282828;--c-bg-secondary: #343434;--c-bg-tertiary: #404040;--c-border: #404040;--c-shadow: #444444;--c-text-primary: #ffffff;--c-text-secondary: #ffffff;--c-placeholder: #d3cdcd}[_nghost-%COMP%]{position:fixed;width:100%;height:100%;overflow-y:auto;display:flex;flex-direction:column}.auth-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;background:var(--c-bg-primary);flex-grow:1;padding:20px;transition:all .3s}.auth[_ngcontent-%COMP%]{max-width:340px;width:100%;padding:30px;border-radius:10px;box-shadow:0 0 6px var(--c-shadow);background:var(--c-bg-secondary);display:flex;flex-flow:row wrap;position:relative}.auth[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:absolute;right:25px;top:25px;z-index:9;cursor:pointer}@media (max-width: 767.9px){.auth[_ngcontent-%COMP%]{padding:25px;flex-flow:column wrap}}.auth__title[_ngcontent-%COMP%]{font-size:24px;font-weight:700;color:var(--c-text-primary);text-align:center;margin-bottom:15px}@media (max-width: 767.9px){.auth__title[_ngcontent-%COMP%]{font-size:18px}}.auth__btn[_ngcontent-%COMP%]{text-align:center;margin-top:30px}.auth__btn[_ngcontent-%COMP%] .w-btn[_ngcontent-%COMP%]{margin:0;width:100%}.auth__wrap[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;align-items:center;max-width:880px;width:100%}@media (max-width: 767.9px){.auth__wrap[_ngcontent-%COMP%]{padding:25px;flex-flow:column wrap}}.auth__img[_ngcontent-%COMP%]{flex:0 0 50%;max-width:50%;display:flex;position:relative;padding-right:40px}.auth__img[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{left:50%;transform:translate(-78%);font-size:320px;position:absolute;opacity:0;cursor:pointer}@media (max-width: 767.9px){.auth__img[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:70px;transform:translate(-50%)}}.auth__img[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:260px;width:100%;object-fit:cover}.auth__img[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{max-width:260px;width:100%;height:100%}@media (max-width: 767.9px){.auth__img[_ngcontent-%COMP%]{max-width:60px;margin:0 auto;flex:0 0 100%;padding:0 0 30px}.auth__img[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{height:100%;width:100%}}.auth__form[_ngcontent-%COMP%]{width:95%;flex:0 0 50%;max-width:50%;padding-left:40px;display:flex;justify-content:flex-end}@media (max-width: 767.9px){.auth__form[_ngcontent-%COMP%]{flex:0 0 100%;max-width:100%;justify-content:center;padding:0}}@media (max-width: 767.9px){.auth[_ngcontent-%COMP%] .form__title[_ngcontent-%COMP%]{font-size:14px}}wform[_ngcontent-%COMP%]{flex:1 0}@media (max-width: 767.9px){wform[_ngcontent-%COMP%]{flex:0 0 100%;padding:0}}.w-forms[_ngcontent-%COMP%]{position:relative}.w-forms__level[_ngcontent-%COMP%]{top:5px;right:5px;position:absolute;display:inline-block;color:var(--c-text-secondary);font-size:22px;line-height:20px;letter-spacing:.3px;transition:.3s all ease-in-out}.w-forms__level._sky[_ngcontent-%COMP%]{color:#17a2b8}.w-forms__level._orange[_ngcontent-%COMP%]{color:#e67e22}.w-forms__level._green[_ngcontent-%COMP%]{color:#14c76e}.w-forms__input[_ngcontent-%COMP%]{padding-right:35px}.w-forms__input-block[_ngcontent-%COMP%]{position:relative}.w-forms__toggle[_ngcontent-%COMP%]{display:flex;position:absolute;right:10px;top:50%;color:var(--c-placeholder);transform:translateY(-50%);cursor:pointer}.w-forms__toggle[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:21px}.w-forms[_ngcontent-%COMP%] .icon-visibility[_ngcontent-%COMP%]{color:var(--c-primary)}@media screen and (max-width: 768px){.auth__img[_ngcontent-%COMP%]{display:none}}"]});let n=i;return n})();var et=[{path:"",component:J}],xt=(()=>{let i=class i{};i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=O({type:i}),i.\u0275inj=b({imports:[S.forChild(et),q]});let n=i;return n})();export{xt as SignModule}; diff --git a/chunk-UF2FTEOS.js b/chunk-UF2FTEOS.js new file mode 100644 index 0000000..b2c3d4c --- /dev/null +++ b/chunk-UF2FTEOS.js @@ -0,0 +1 @@ +import{a as j}from"./chunk-A6YJADE2.js";import{j as $}from"./chunk-HLEBBEIB.js";import{F as w,G as a,K as f,M as s,Na as P,Q as g,R as h,V as y,Va as v,W as M,X as l,bb as k,gb as F,kb as I,mb as S,nb as U,p as _,pb as T,t as u,u as b,w as C,x,ya as O}from"./chunk-FBONLC6U.js";function D(t,e){if(t&1){let c=y();g(0,"winput",3),M("wChange",function(n){let r=C(c).$implicit,d=l().$implicit,m=l();return r.is[d]=n,x(m.update(r))}),h()}if(t&2){let c=e.$implicit,i=l().$implicit;s("value",c.is[i])}}function V(t,e){if(t&1&&f(0,D,1,1,"ng-template",2),t&2){let c=e.$implicit;s("cell",c)}}var N=(()=>{let e=class e{get roles(){return this._us.roles}get users(){return this._us.users}constructor(i,n,r,d,m){this._translate=i,this._us=n,this._form=r,this._alert=d,this._core=m,this.form=this._form.getForm("user"),this.config={create:()=>{this._form.modal(this.form,{label:"Create",click:(o,p)=>{this._us.create(o,{alert:"User has been created",callback:p.bind(this)})}}).then(this._us.create.bind(this))},update:o=>{this._form.modal(this.form,[],o).then(p=>{this._core.copy(p,o),this._us.update(o,{alert:"User has been updated"})})},delete:o=>{this._alert.question({text:this._translate.translate("Common.Are you sure you want to delete this user?"),buttons:[{text:this._translate.translate("Common.No")},{text:this._translate.translate("Common.Yes"),callback:()=>{this._us.delete(o,{name:"admin",alert:"User has been deleted",callback:()=>{}})}}]})}},this.columns=["name","email"];for(let o of this._us.roles)this.columns.push(o)}update(i){this._us.updateAdmin(i)}};e.\u0275fac=function(n){return new(n||e)(a(F),a(j),a(T),a(k),a(v))},e.\u0275cmp=u({type:e,selectors:[["app-users"]],decls:2,vars:4,consts:[["title","Users",3,"columns","config","rows"],[4,"ngFor","ngForOf"],[3,"cell"],["type","checkbox",3,"wChange","value"]],template:function(n,r){n&1&&(g(0,"wtable",0),f(1,V,1,1,null,1),h()),n&2&&(s("columns",r.columns)("config",r.config)("rows",r.users),w(),s("ngForOf",r.roles))},dependencies:[O,I,U,S],styles:["[_ngcontent-%COMP%]:root{--c-white: #fff;--c-basic: #3558ae;--c-primary: #256eff;--c-primary-hover: #0051f1;--c-secondary: rgb(197, 61, 61);--c-secondary-hover: rgb(150, 42, 42);--c-bg-primary: #f3f4f7;--c-bg-secondary: #ffffff;--c-bg-tertiary: #fcfdfe;--c-border: #f0f1f7;--c-shadow: #f3f3f3;--c-text-primary: #666666;--c-text-secondary: #19235c;--c-placeholder: #313335ab;--c-img-round: 50%;--card-background: #fefefe;--card-border-radius: 10px;--card-box-shadow: 0 4px 12px rgba(0, 0, 0, .15);--card-margin-bottom: 24px;--card-header-padding: 20px;--card-header-background: #e0e0e0;--card-body-padding: 20px;--card-section-padding: 10px 0;--card-footer-padding: 20px;--card-footer-background: #e0e0e0;--card-border-width: 2px;--card-border-color: #cccccc;--file-img-border-radius: 50%;--file-add-bg: #28a745;--file-add-bg-hover: #218838;--file-item-border-radius: 10px}html.dark[_ngcontent-%COMP%]:root{--c-white: #fff;--c-basic: #333;--c-bg-primary: #282828;--c-bg-secondary: #343434;--c-bg-tertiary: #404040;--c-border: #404040;--c-shadow: #444444;--c-text-primary: #ffffff;--c-text-secondary: #ffffff;--c-placeholder: #d3cdcd}.w-table-user[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap}.w-table-user__img[_ngcontent-%COMP%]{width:30px;height:30px;min-width:30px;min-height:30px;margin-right:10px}.w-table-user__img[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:var(--b-radius-img)}@media (max-width: 991.9px){.w-table-user__img[_ngcontent-%COMP%]{display:none}}@media (max-width: 991.9px){.w-table[_ngcontent-%COMP%] .email[_ngcontent-%COMP%], .w-table[_ngcontent-%COMP%] .role[_ngcontent-%COMP%]{display:none}}.w-table[_ngcontent-%COMP%] .checkbox[_ngcontent-%COMP%]{height:18px;max-height:18px;display:block}.w-table[_ngcontent-%COMP%] .checkbox__body[_ngcontent-%COMP%]{padding:2px}.users-field[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:flex-end}.users-field[_ngcontent-%COMP%] .w-btn[_ngcontent-%COMP%]{margin:10px}.users-field[_ngcontent-%COMP%] .forms[_ngcontent-%COMP%]{width:100%}@media (max-width: 575.9px){.users-field[_ngcontent-%COMP%]{flex-direction:column;align-items:center}.users-field[_ngcontent-%COMP%] .w-btn[_ngcontent-%COMP%]{margin-bottom:20px;width:100%}}.w-table__td.actions[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{transition:var(--transition)}.w-table__td.actions[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]:hover{color:var(--c-error)}.w-table__td.actions[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%] i[_ngcontent-%COMP%] + i[_ngcontent-%COMP%]{margin-left:15px}.users__header[_ngcontent-%COMP%]{letter-spacing:0;line-height:23px;font-weight:500;font-size:20px;color:var(--c-text-primary);display:flex;justify-content:space-between;align-items:center;border-radius:var(--b-radius)}"]});let t=e;return t})();var E=[{path:"",component:N}],X=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=b({type:e}),e.\u0275inj=_({imports:[P.forChild(E),$]});let t=e;return t})();export{X as UsersModule}; diff --git a/chunk-WPWACWBI.js b/chunk-WPWACWBI.js new file mode 100644 index 0000000..a96ae85 --- /dev/null +++ b/chunk-WPWACWBI.js @@ -0,0 +1 @@ +import{g as x,h,j as b}from"./chunk-HLEBBEIB.js";import{F as u,M as s,Na as w,Q as e,R as n,S as r,da as i,ib as y,kb as f,la as c,p as m,t as a,u as d}from"./chunk-FBONLC6U.js";var H=()=>["banana","lemon","lime"],g=(()=>{let t=class t{};t.\u0275fac=function(p){return new(p||t)},t.\u0275cmp=a({type:t,selectors:[["ng-component"]],decls:38,vars:2,consts:[[1,"wrapper-com"],["type","textarea"],["type","radio",3,"items"],["type","checkbox","label","Hello World"],["type","password"],["type","email"],["type","number"],["type","tel"],["type","url"],["type","search"],["type","date"],["type","datetime-local"],["type","month"],["type","week"],["type","time"],["type","color"],["type","datetime"],["type","range"],["type","primary"],["type","secondary"],["type","success"],["type","danger"],["type","warning"],["type","info"],["type","light"],["type","dark"],["type","link"]],template:function(p,W){p&1&&(e(0,"div",0),r(1,"winput")(2,"winput",1)(3,"winput",2)(4,"winput",3)(5,"winput",4)(6,"winput",5)(7,"winput",6)(8,"winput",7)(9,"winput",8)(10,"winput",9)(11,"winput",10)(12,"winput",11)(13,"winput",12)(14,"winput",13)(15,"winput",14)(16,"winput",15)(17,"winput",16)(18,"winput",17),e(19,"wbutton",18),i(20,"Hello World"),n(),e(21,"wbutton",19),i(22,"Hello World"),n(),e(23,"wbutton",20),i(24,"Hello World"),n(),e(25,"wbutton",21),i(26,"Hello World"),n(),e(27,"wbutton",22),i(28,"Hello World"),n(),e(29,"wbutton",23),i(30,"Hello World"),n(),e(31,"wbutton",24),i(32,"Hello World"),n(),e(33,"wbutton",25),i(34,"Hello World"),n(),e(35,"wbutton",26),i(36,"Hello World"),n(),r(37,"ngx-file"),n()),p&2&&(u(3),s("items",c(1,H)))},dependencies:[y,f,x],styles:[".wrapper-com[_ngcontent-%COMP%]{height:100vh;overflow:scroll;padding:20px}"]});let o=t;return o})();var S=[{path:"",component:g}],N=(()=>{let t=class t{};t.\u0275fac=function(p){return new(p||t)},t.\u0275mod=d({type:t}),t.\u0275inj=m({imports:[w.forChild(S),b,h]});let o=t;return o})();export{N as ComponentsModule}; diff --git a/chunk-XIKCDR3T.js b/chunk-XIKCDR3T.js new file mode 100644 index 0000000..4e34b1c --- /dev/null +++ b/chunk-XIKCDR3T.js @@ -0,0 +1 @@ +import{a as C}from"./chunk-7K7WWIA4.js";import{j as y}from"./chunk-HLEBBEIB.js";import{G as r,M as f,Na as p,S as d,Va as u,bb as h,gb as g,nb as v,p as c,pb as _,t as m,u as l}from"./chunk-FBONLC6U.js";var w=(()=>{let t=class t{get rows(){return this._sa.articletags}constructor(n,i,s,b,j){this._translate=n,this._alert=i,this._sa=s,this._form=b,this._core=j,this.columns=["name","description"],this.form=this._form.getForm("tags",{formId:"tags",title:"Tags",components:[{name:"Text",key:"name",focused:!0,fields:[{name:"Placeholder",value:"fill tags title"},{name:"Label",value:"Title"}]},{name:"Text",key:"description",fields:[{name:"Placeholder",value:"fill tags description"},{name:"Label",value:"Description"}]}]}),this.config={create:()=>{this._form.modal(this.form,{label:"Create",click:(e,a)=>{this._sa.create(e),a()}})},update:e=>{this._form.modal(this.form,[],e).then(a=>{this._core.copy(a,e),this._sa.update(e)})},delete:e=>{this._alert.question({text:this._translate.translate("Common.Are you sure you want to delete this cservice?"),buttons:[{text:this._translate.translate("Common.No")},{text:this._translate.translate("Common.Yes"),callback:()=>{this._sa.delete(e)}}]})},buttons:[{icon:"cloud_download",click:e=>{this._form.modalUnique("tags","url",e)}},{icon:"article",hrefFunc:e=>"/articles/"+e._id}]}}};t.\u0275fac=function(i){return new(i||t)(r(g),r(h),r(C),r(_),r(u))},t.\u0275cmp=m({type:t,selectors:[["ng-component"]],decls:1,vars:3,consts:[["title","Tags",3,"columns","config","rows"]],template:function(i,s){i&1&&d(0,"wtable",0),i&2&&f("columns",s.columns)("config",s.config)("rows",s.rows)},dependencies:[v]});let o=t;return o})();var T=[{path:"",component:w}],L=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=l({type:t}),t.\u0275inj=c({imports:[p.forChild(T),y]});let o=t;return o})();export{L as TagsModule}; diff --git a/chunk-YBE2ZFV5.js b/chunk-YBE2ZFV5.js new file mode 100644 index 0000000..0e47c69 --- /dev/null +++ b/chunk-YBE2ZFV5.js @@ -0,0 +1 @@ +import{j as $}from"./chunk-HLEBBEIB.js";import{F as y,G as p,K as T,M as w,Na as W,Q as h,Qa as j,R as u,Ra as N,S as x,Sa as P,V as I,W as S,X as F,bb as D,da as g,fa as M,ga as A,gb as E,ha as L,ia as V,mb as z,nb as B,ob as R,p as v,pb as U,t as b,u as k,w as _,x as C}from"./chunk-FBONLC6U.js";function G(m,n){if(m&1&&g(0),m&2){let a=n.$implicit;M(" ",a.components==null?null:a.components.length," ")}}function H(m,n){if(m&1){let a=I();h(0,"label",3)(1,"input",4),S("ngModelChange",function(){let o=_(a).$implicit,l=F();return C(l.changeStatus(o))}),V("ngModelChange",function(o){let l=_(a).$implicit;return L(l.active,o)||(l.active=o),C(o)}),u(),x(2,"span",5),h(3,"span",6),g(4,"Active"),u()()}if(m&2){let a=n.$implicit;y(),A("ngModel",a.active)}}var q=(()=>{let n=class n{get rows(){return this._cfs.customforms}constructor(s,o,l,d){this._translate=s,this._cfs=o,this._alert=l,this._form=d,this.columns=["formId","components","active"],this.form=this._form.getForm("form",{formId:"form",title:"Custom form",components:[{name:"Text",key:"title",focused:!0,fields:[{name:"Placeholder",value:"fill title"},{name:"Label",value:"Title"}]},{name:"Select",key:"formId",fields:[{name:"Placeholder",value:"Select form id"},{name:"Label",value:"Form ID"},{name:"Items",value:this._form.formIds}]}]}),this.components=[],this.formComponents=this._form.getForm("formComponents",{formId:"formComponents",title:"Custom components",components:[{components:this.components},{name:"Select",key:"addComponent",fields:[{name:"Placeholder",value:"Select form componnet"},{name:"Label",value:"Form Component"},{name:"Value",value:"name",skipTranslation:!0},{name:"Items",value:this._form.getTemplateComponentsNames()}]}]}),this.config={create:()=>{this._form.modal(this.form,{label:"Create",click:(t,i)=>{this._cfs.create(t,{callback:i.bind(this)})}}).then(this._cfs.create.bind(this))},update:t=>{this._form.modal(this.form,{label:"Update",click:(i,f)=>{this._cfs.update(i,{callback:f.bind(this)})}},t).then(this._cfs.update.bind(this))},delete:t=>{this._alert.question({text:this._translate.translate("Common.Are you sure you want to delete this user?"),buttons:[{text:this._translate.translate("Common.No")},{text:this._translate.translate("Common.Yes"),callback:()=>{this._cfs.delete(t)}}]})},buttons:[{icon:"text_fields",click:t=>{console.log(this.formComponents),this.components.splice(0,this.components.length);let i={addComponent:"Text"};t.components=t.components||[];for(let e=t.components.length-1;e>=0;e--){let r=this._form.getTemplateFields(t.components[e].name);t.components[e].fields=t.components[e].fields.filter(c=>r.includes(c.name));for(let c of r)t.components[e].fields.find(K=>K.name===c)||t.components[e].fields.push({value:"",name:c});i["key"+e]=t.components[e].key;for(let c of t.components[e].fields)i[c.name+e]=c.value}let f=e=>{this.components.splice(e,1),t.components.splice(e,1),this._cfs.updateAfterWhile(t)};(t.components||[]).forEach(e=>{this.components.push(this._addCustomComponent(e.name,this.components.length,f))}),this._form.modal(this.formComponents,{label:"Add component",click:()=>{let e=i.addComponent;this.components.push(this._addCustomComponent(e,this.components.length,f)),t.components.push({name:i.addComponent,fields:this._form.getTemplateFields(e).map(r=>({value:"",name:r}))})}},i,()=>{},{size:"big"}).then(()=>{for(let e=0;e({name:this._form.getCustomTemplateFields(s)[i]||"Text",key:i+o,fields:[{name:"Placeholder",value:"fill "+i},{name:"Label",value:i.charAt(0).toUpperCase()+i.slice(1,i.length)}]}));return{class:"d-f mt10",components:[{name:"Text",key:"key"+o,fields:[{name:"Placeholder",value:"fill key"},{name:"Label",value:"Key"}]},...d,{name:"Button",fields:[{name:"Label",value:"Remove"},{name:"Click",value:()=>{l(o)}}]}]}}changeStatus(s){setTimeout(()=>{if(s.active)for(let o of this._cfs.customforms)o._id===s._id||o.formId!==s.formId||o.active&&(o.active=!1,this._cfs.updateAfterWhile(o));this._cfs.updateAfterWhile(s)})}};n.\u0275fac=function(o){return new(o||n)(p(E),p(R),p(D),p(U))},n.\u0275cmp=b({type:n,selectors:[["ng-component"]],decls:3,vars:3,consts:[["title","Forms Customization",3,"columns","config","rows"],["cell","components"],["cell","active"],[1,"container-box"],["type","checkbox",1,"w-input__checkbox",3,"ngModelChange","ngModel"],[1,"checkmark"],[1,"checkmark-text"]],template:function(o,l){o&1&&(h(0,"wtable",0),T(1,G,1,1,"ng-template",1)(2,H,5,1,"ng-template",2),u()),o&2&&w("columns",l.columns)("config",l.config)("rows",l.rows)},dependencies:[j,N,P,B,z]});let m=n;return m})();var J=[{path:"",component:q}],le=(()=>{let n=class n{};n.\u0275fac=function(o){return new(o||n)},n.\u0275mod=k({type:n}),n.\u0275inj=v({imports:[W.forChild(J),$]});let m=n;return m})();export{le as CustomformsModule}; diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000..997406a Binary files /dev/null and b/favicon.ico differ diff --git a/index.html b/index.html new file mode 100644 index 0000000..7ad59c6 --- /dev/null +++ b/index.html @@ -0,0 +1,29 @@ + + + + + + + + + Platform default waw project + + + + + + + + + + + + + + + + + + + + diff --git a/main-BZCVDIWX.js b/main-BZCVDIWX.js new file mode 100644 index 0000000..7655cee --- /dev/null +++ b/main-BZCVDIWX.js @@ -0,0 +1 @@ +import{a as vn}from"./chunk-A6YJADE2.js";import{e as En,f as bn,i as wn,j as Tn}from"./chunk-HLEBBEIB.js";import{A as Jt,B as en,C as ht,Ca as cn,D as tn,Da as un,Ea as hn,F as O,Fa as Ue,G as dt,I as nn,Ia as we,Ja as Te,K as qe,Ka as dn,La as fn,M as I,Ma as mn,Na as pn,O as De,Oa as ce,Q as b,R as P,S as H,Ua as gn,V as be,W as z,Wa as Y,X as ae,Xa as yn,a as je,c as Zt,da as D,ea as rn,fb as _n,hb as Sn,la as le,m as E,o as U,p as ke,r as V,t as ve,u as Oe,ua as sn,va as on,w as Se,wa as an,x as Ee,za as ln}from"./chunk-FBONLC6U.js";var Pn=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=ve({type:e,selectors:[["guest"]],decls:1,vars:0,template:function(i,s){i&1&&H(0,"router-outlet")},dependencies:[we]});let r=e;return r})();var _=function(r){return r[r.State=0]="State",r[r.Transition=1]="Transition",r[r.Sequence=2]="Sequence",r[r.Group=3]="Group",r[r.Animate=4]="Animate",r[r.Keyframes=5]="Keyframes",r[r.Style=6]="Style",r[r.Trigger=7]="Trigger",r[r.Reference=8]="Reference",r[r.AnimateChild=9]="AnimateChild",r[r.AnimateRef=10]="AnimateRef",r[r.Query=11]="Query",r[r.Stagger=12]="Stagger",r}(_||{}),X="*";function Ve(r,e){return{type:_.Trigger,name:r,definitions:e,options:{}}}function ue(r,e=null){return{type:_.Animate,styles:e,timings:r}}function An(r,e=null){return{type:_.Sequence,steps:r,options:e}}function B(r){return{type:_.Style,styles:r,offset:null}}function Qe(r,e,t){return{type:_.State,name:r,styles:e,options:t}}function he(r,e,t=null){return{type:_.Transition,expr:r,animation:e,options:t}}var ne=class{constructor(e=0,t=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=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}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)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0}},Ie=class{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,n=0,i=0,s=this.players.length;s==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++t==s&&this._onFinish()}),o.onDestroy(()=>{++n==s&&this._onDestroy()}),o.onStart(()=>{++i==s&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){let t=e*this.totalTime;this.players.forEach(n=>{let i=n.totalTime?Math.min(1,t/n.totalTime):1;n.setPosition(i)})}getPosition(){let e=this.players.reduce((t,n)=>t===null||n.totalTime>t.totalTime?n:t,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0}},$e="!";var Mn=[Ve("flyInOut",[Qe("in",B({transform:"translateX(0)"})),he("void => *",[B({transform:"translateY(-10px)",opacity:0,height:"0"}),ue(400)]),he("* => void",[ue(400,B({opacity:0,height:"0",transform:"translateY(-10px)"}))])]),Ve("tabInOut",[Qe("in",B({transform:"translateX(0)"})),he("void => *",[B({transform:"translateX(10px)",opacity:0}),ue(300)]),he("* => void",[ue(300,B({opacity:0,transform:"translateX(10px)"}))])]),Ve("showInOut",[Qe("in",B({})),he("void => *",[B({opacity:0}),ue(300)]),he("* => void",[ue(300,B({opacity:0}))])])];var ft;try{ft=typeof Intl<"u"&&Intl.v8BreakIterator}catch{ft=!1}var Cn=(()=>{let e=class e{constructor(n){this._platformId=n,this.isBrowser=this._platformId?cn(this._platformId):typeof document=="object"&&!!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||ft)&&typeof CSS<"u"&&!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}};e.\u0275fac=function(i){return new(i||e)(V(en))},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let r=e;return r})();var Pe=()=>({exact:!0});function ci(r,e){if(r&1&&H(0,"div",26),r&2){let t=ae();I("@showInOut",t.showSidebar)}}function ui(r,e){if(r&1){let t=be();b(0,"span",27),z("click",function(){Se(t);let i=ae();return Ee(i.us.setMode("dark"))}),D(1," dark_mode "),P()}}function hi(r,e){if(r&1){let t=be();b(0,"span",27),z("click",function(){Se(t);let i=ae();return Ee(i.us.setMode())}),D(1," light_mode "),P()}}function di(r,e){if(r&1){let t=be();b(0,"a",28),z("click",function(){Se(t);let i=ae();return Ee(i.hideSidebar())}),b(1,"span",5),D(2,"people"),P(),b(3,"span",23),D(4,"Theme.Users"),P()()}r&2&&I("routerLinkActiveOptions",le(1,Pe))}function fi(r,e){if(r&1){let t=be();b(0,"a",29),z("click",function(){Se(t);let i=ae();return Ee(i.hideSidebar())}),b(1,"span",5),D(2,"backup_table"),P(),b(3,"span",23),D(4,"Theme.Forms"),P()()}r&2&&I("routerLinkActiveOptions",le(1,Pe))}function mi(r,e){if(r&1){let t=be();b(0,"a",30),z("click",function(){Se(t);let i=ae();return Ee(i.hideSidebar())}),b(1,"span",5),D(2,"translate"),P(),b(3,"span",23),D(4,"Theme.Translates"),P()()}r&2&&I("routerLinkActiveOptions",le(1,Pe))}function pi(r,e){r&1&&H(0,"hr")}var mt=(()=>{let e=class e{hideSidebar(){!this._platform.ANDROID&&!this._platform.IOS&&(this.showSidebar=!1)}constructor(n,i){this.us=n,this._platform=i,this.url=ce.url,this.forceAvatarUrl="",this.showSidebar=!1}};e.\u0275fac=function(i){return new(i||e)(dt(vn),dt(Cn))},e.\u0275cmp=ve({type:e,selectors:[["app-user"]],decls:42,vars:23,consts:[["id","wrapper",1,"wrapper"],[1,"nav",3,"clickOutside"],[1,"nav__ul","container"],[1,"nav__li"],["routerLinkActive","_activeLink","routerLink","/profile",1,"nav__a",3,"click"],[1,"material-icons"],[1,"nav__li","_burger",3,"click"],[1,"nav__toggle"],[1,"nav__toggle-line"],[1,"main"],["class","fade",4,"ngIf"],[1,"nav__burger","_active"],[1,"nav__burger-list"],[1,"theme-switch"],["class","material-icons",3,"click",4,"ngIf"],["routerLink","/profile",1,"nav__burger-link","nav__burger-user"],["alt","Profile Picture","height","50","width","50",1,"avatar__img",3,"error","src"],[1,"name"],["routerLinkActive","_activeLink","routerLink","/admin/users","class","nav__burger-link",3,"routerLinkActiveOptions","click",4,"ngIf"],["routerLinkActive","_activeLink","routerLink","/admin/forms","class","nav__burger-link",3,"routerLinkActiveOptions","click",4,"ngIf"],["routerLinkActive","_activeLink","routerLink","/admin/translates","class","nav__burger-link",3,"routerLinkActiveOptions","click",4,"ngIf"],[4,"ngIf"],["routerLinkActive","_activeLink","routerLink","/tags",1,"nav__burger-link",3,"click","routerLinkActiveOptions"],["translate",""],["routerLinkActive","_activeLink","routerLink","/articles",1,"nav__burger-link",3,"click","routerLinkActiveOptions"],["routerLinkActive","_activeLink","routerLink","/comments",1,"nav__burger-link",3,"click","routerLinkActiveOptions"],[1,"fade"],[1,"material-icons",3,"click"],["routerLinkActive","_activeLink","routerLink","/admin/users",1,"nav__burger-link",3,"click","routerLinkActiveOptions"],["routerLinkActive","_activeLink","routerLink","/admin/forms",1,"nav__burger-link",3,"click","routerLinkActiveOptions"],["routerLinkActive","_activeLink","routerLink","/admin/translates",1,"nav__burger-link",3,"click","routerLinkActiveOptions"]],template:function(i,s){i&1&&(b(0,"div",0)(1,"nav",1),z("clickOutside",function(){return s.showSidebar=!1}),b(2,"ul",2)(3,"li",3)(4,"a",4),z("click",function(){return s.showSidebar=!1}),b(5,"span",5),D(6,"home"),P()()(),b(7,"li",6),z("click",function(){return s.showSidebar=!s.showSidebar}),b(8,"a",7),H(9,"span",8),P()()()(),b(10,"div",9),qe(11,ci,1,1,"div",10),b(12,"div",11)(13,"div",12)(14,"div",13),qe(15,ui,2,0,"span",14)(16,hi,2,0,"span",14),P(),b(17,"a",15)(18,"img",16),z("error",function(){return s.forceAvatarUrl="assets/default.png"}),P(),b(19,"div",17),D(20),P()(),H(21,"hr"),qe(22,di,5,2,"a",18)(23,fi,5,2,"a",19)(24,mi,5,2,"a",20)(25,pi,1,0,"hr",21),b(26,"a",22),z("click",function(){return s.hideSidebar()}),b(27,"span",5),D(28,"tag"),P(),b(29,"span",23),D(30,"Theme.Tags"),P()(),b(31,"a",24),z("click",function(){return s.hideSidebar()}),b(32,"span",5),D(33,"article"),P(),b(34,"span",23),D(35,"Theme.Articles"),P()(),b(36,"a",25),z("click",function(){return s.hideSidebar()}),b(37,"span",5),D(38,"comment"),P(),b(39,"span",23),D(40,"Theme.Comments"),P()()()(),H(41,"router-outlet"),P()()),i&2&&(O(2),De("_active",s.showSidebar),O(6),De("_active",s.showSidebar),O(2),De("showTable",s.showSidebar),O(),I("ngIf",s.showSidebar),O(),De("_active",s.showSidebar),O(3),I("ngIf",!s.us.mode),O(),I("ngIf",s.us.mode),O(2),I("src",s.forceAvatarUrl||s.us.user.thumb?s.url+s.us.user.thumb:"assets/default.png",tn),O(2),rn(s.us.user.name||"Profile"),O(2),I("ngIf",s.us.role("admin")),O(),I("ngIf",s.us.role("admin")),O(),I("ngIf",s.us.role("admin")),O(),I("ngIf",s.us.role("admin")),O(),I("routerLinkActiveOptions",le(20,Pe)),O(5),I("routerLinkActiveOptions",le(21,Pe)),O(5),I("routerLinkActiveOptions",le(22,Pe)))},dependencies:[Sn,ln,yn,we,dn,fn],styles:['[_ngcontent-%COMP%]:root{--c-white: #fff;--c-basic: #3558ae;--c-primary: #256eff;--c-primary-hover: #0051f1;--c-secondary: rgb(197, 61, 61);--c-secondary-hover: rgb(150, 42, 42);--c-bg-primary: #f3f4f7;--c-bg-secondary: #ffffff;--c-bg-tertiary: #fcfdfe;--c-border: #f0f1f7;--c-shadow: #f3f3f3;--c-text-primary: #666666;--c-text-secondary: #19235c;--c-placeholder: #313335ab;--c-img-round: 50%;--card-background: #fefefe;--card-border-radius: 10px;--card-box-shadow: 0 4px 12px rgba(0, 0, 0, .15);--card-margin-bottom: 24px;--card-header-padding: 20px;--card-header-background: #e0e0e0;--card-body-padding: 20px;--card-section-padding: 10px 0;--card-footer-padding: 20px;--card-footer-background: #e0e0e0;--card-border-width: 2px;--card-border-color: #cccccc;--file-img-border-radius: 50%;--file-add-bg: #28a745;--file-add-bg-hover: #218838;--file-item-border-radius: 10px}html.dark[_ngcontent-%COMP%]:root{--c-white: #fff;--c-basic: #333;--c-bg-primary: #282828;--c-bg-secondary: #343434;--c-bg-tertiary: #404040;--c-border: #404040;--c-shadow: #444444;--c-text-primary: #ffffff;--c-text-secondary: #ffffff;--c-placeholder: #d3cdcd}.wrapper[_ngcontent-%COMP%]{position:fixed;width:100%;height:100%;overflow:hidden;display:flex;flex-direction:column;background:var(--c-bg-primary);transition:all .5s ease-in-out}.wrapper[_ngcontent-%COMP%] .main[_ngcontent-%COMP%]{flex-grow:1;overflow-y:auto;display:flex;flex-direction:column;position:relative;max-width:2000px;margin:0 auto;width:100%;padding:20px 270px 0 20px;transition:all .5s ease-in-out}@media screen and (max-width: 991px){.wrapper[_ngcontent-%COMP%] .main[_ngcontent-%COMP%]{padding:20px}}@media screen and (max-width: 767px){.wrapper[_ngcontent-%COMP%] .main[_ngcontent-%COMP%]{padding:10px}}hr[_ngcontent-%COMP%]{border:none;border-top:2px solid var(--c-text-primary);margin:5px 0}.nav[_ngcontent-%COMP%]{transition:all .5s ease-in-out;background:var(--c-basic);width:100%;box-shadow:0 3px 5px -1px #0003,0 6px 10px #00000024,0 1px 18px #0000001f;display:flex;justify-content:space-between;align-items:center;min-height:50px;z-index:100;overflow:hidden}.nav__ul[_ngcontent-%COMP%]{z-index:1;margin-top:0;margin-bottom:0;padding:0 20px;transition:all .5s ease-in-out;display:flex;align-items:center;width:100%}@media screen and (max-width: 767px){.nav__ul[_ngcontent-%COMP%]{justify-content:end!important}}.nav__li[_ngcontent-%COMP%]{display:inline-block}.nav__li._burger[_ngcontent-%COMP%]{width:44px;height:34px}.nav__li[_ngcontent-%COMP%]:last-child{margin-left:auto}.nav__li[_ngcontent-%COMP%]:not(:last-child){margin-right:10px}.nav__a[_ngcontent-%COMP%]{cursor:pointer;color:#fff;font-size:var(--fs)-2px;padding:5px 10px;border-radius:8px;transition:all .5s ease-in-out;display:flex;justify-content:center;align-items:center;position:relative}.nav__a[_ngcontent-%COMP%]:before{content:"";position:absolute;width:5px;height:5px;background-color:#fff;bottom:-1px;border-radius:50%;transform:translateY(15px);opacity:0}@media (max-width: 991.9px){.nav__a[_ngcontent-%COMP%]:before{top:-3px}}.nav__a._activeLink[_ngcontent-%COMP%]:before{animation:_ngcontent-%COMP%_navLinkAnimation .75s forwards}@keyframes _ngcontent-%COMP%_navLinkAnimation{0%{opacity:0;transform:translateY(15px)}to{opacity:1;transform:translateY(0)}}.nav__a[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{color:#fff;width:24px}.nav__toggle[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;align-items:center;position:relative;order:3;cursor:pointer;justify-content:center}.nav__toggle-line[_ngcontent-%COMP%], .nav__toggle-line[_ngcontent-%COMP%]:before, .nav__toggle-line[_ngcontent-%COMP%]:after{cursor:pointer;border-radius:1px;height:2px;width:24px;position:absolute;display:block;content:"";transition:all .5s ease-in-out;background-color:transparent}.nav__toggle-line[_ngcontent-%COMP%]:before{top:0;transform:rotate(45deg);background:#fff}.nav__toggle-line[_ngcontent-%COMP%]:after{bottom:-7px;top:0;transform:rotate(-45deg);background:#fff}@media screen and (max-width: 767px){.nav__toggle[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%], .nav__toggle[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%]:before, .nav__toggle[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%]:after{background:#fff}.nav__toggle-line[_ngcontent-%COMP%]:before{top:-7px;transform:unset;background:#fff}.nav__toggle-line[_ngcontent-%COMP%]:after{top:7px;transform:unset;background:#fff}}.nav__toggle._active[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%]{background:#fff}.nav__toggle._active[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%]:before, .nav__toggle._active[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%]:after{top:0}.nav__toggle._active[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%]:before{transform:unset;top:-7px}.nav__toggle._active[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%]:after{transform:unset;top:7px}@media screen and (max-width: 767px){.nav__toggle._active[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%]{background:transparent}.nav__toggle._active[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%]:before{transform:rotate(45deg);top:0}.nav__toggle._active[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%]:after{transform:rotate(-45deg);bottom:-7px;top:0}}.nav__burger[_ngcontent-%COMP%]{margin:0;max-width:250px;width:100%;height:calc(100% - 50px);transform:translate(0)!important;top:50px;position:fixed;background-color:var(--c-bg-secondary);right:0;transform:translate(120%);z-index:10;box-shadow:0 3px 5px -1px #00000008,0 6px 10px #0000003d,0 1px 18px #0000004f;transition:all .5s ease-in-out;display:flex;flex-direction:column}@media screen and (max-width: 767px){.nav__burger[_ngcontent-%COMP%]{transform:translate(120%)!important}}.nav__burger._active[_ngcontent-%COMP%]{transform:translate(120%)!important;z-index:0}@media screen and (max-width: 767px){.nav__burger._active[_ngcontent-%COMP%]{transform:translate(0)!important;z-index:10}}.nav__burger-list[_ngcontent-%COMP%]{flex-grow:1;height:100%;display:flex;flex-direction:column;overflow-y:auto;padding:20px}.nav__burger-list[_ngcontent-%COMP%] .nav__burger-link[_ngcontent-%COMP%]{color:var(--c-text-primary);padding:10px}.nav__burger-list[_ngcontent-%COMP%] .nav__burger-link[_ngcontent-%COMP%] .avatar__img[_ngcontent-%COMP%]{border-radius:50%}.nav__burger-link[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px}.nav__burger-link[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{color:var(--c-text-primary);font-size:30px}.nav__burger-user[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;color:var(--c-text-primary);padding:5px}.nav__burger-user[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{word-break:break-word}.nav__burger-user[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{color:var(--c-text-primary);font-size:48px}@media (max-width: 991.9px){.nav[_ngcontent-%COMP%]{order:2}.nav__ul[_ngcontent-%COMP%]{justify-content:space-between}.nav__li[_ngcontent-%COMP%]:last-child{margin-left:0}.nav__burger[_ngcontent-%COMP%]{top:0}}.theme-switch[_ngcontent-%COMP%]{position:absolute;right:10px;display:flex;justify-content:flex-end;margin-right:10px}.theme-switch[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{cursor:pointer}'],data:{animation:[Mn]}});let r=e;return r})();var kn=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=ve({type:e,selectors:[["app-root"]],decls:1,vars:0,template:function(i,s){i&1&&H(0,"router-outlet")},dependencies:[we]});let r=e;return r})();function On(r){return new E(3e3,!1)}function gi(){return new E(3100,!1)}function yi(){return new E(3101,!1)}function _i(r){return new E(3001,!1)}function vi(r){return new E(3003,!1)}function Si(r){return new E(3004,!1)}function Ei(r,e){return new E(3005,!1)}function bi(){return new E(3006,!1)}function wi(){return new E(3007,!1)}function Ti(r,e){return new E(3008,!1)}function Pi(r){return new E(3002,!1)}function Ai(r,e,t,n,i){return new E(3010,!1)}function Mi(){return new E(3011,!1)}function Ci(){return new E(3012,!1)}function ki(){return new E(3200,!1)}function Oi(){return new E(3202,!1)}function Di(){return new E(3013,!1)}function Ni(r){return new E(3014,!1)}function Ii(r){return new E(3015,!1)}function Li(r){return new E(3016,!1)}function Fi(r,e){return new E(3404,!1)}function Ri(r){return new E(3502,!1)}function xi(r){return new E(3503,!1)}function zi(){return new E(3300,!1)}function Bi(r){return new E(3504,!1)}function Ki(r){return new E(3301,!1)}function ji(r,e){return new E(3302,!1)}function qi(r){return new E(3303,!1)}function Ui(r,e){return new E(3400,!1)}function Vi(r){return new E(3401,!1)}function Qi(r){return new E(3402,!1)}function $i(r,e){return new E(3505,!1)}function ie(r){switch(r.length){case 0:return new ne;case 1:return r[0];default:return new Ie(r)}}function Vn(r,e,t=new Map,n=new Map){let i=[],s=[],o=-1,a=null;if(e.forEach(l=>{let c=l.get("offset"),h=c==o,u=h&&a||new Map;l.forEach((v,y)=>{let f=y,g=v;if(y!=="offset")switch(f=r.normalizePropertyName(f,i),g){case $e:g=t.get(y);break;case X:g=n.get(y);break;default:g=r.normalizeStyleValue(y,f,g,i);break}u.set(f,g)}),h||s.push(u),a=u,o=c}),i.length)throw Ri(i);return s}function xt(r,e,t,n){switch(e){case"start":r.onStart(()=>n(t&&pt(t,"start",r)));break;case"done":r.onDone(()=>n(t&&pt(t,"done",r)));break;case"destroy":r.onDestroy(()=>n(t&&pt(t,"destroy",r)));break}}function pt(r,e,t){let n=t.totalTime,i=!!t.disabled,s=zt(r.element,r.triggerName,r.fromState,r.toState,e||r.phaseName,n??r.totalTime,i),o=r._data;return o!=null&&(s._data=o),s}function zt(r,e,t,n,i="",s=0,o){return{element:r,triggerName:e,fromState:t,toState:n,phaseName:i,totalTime:s,disabled:!!o}}function j(r,e,t){let n=r.get(e);return n||r.set(e,n=t),n}function Dn(r){let e=r.indexOf(":"),t=r.substring(1,e),n=r.slice(e+1);return[t,n]}var Wi=typeof document>"u"?null:document.documentElement;function Bt(r){let e=r.parentNode||r.host||null;return e===Wi?null:e}function Gi(r){return r.substring(1,6)=="ebkit"}var de=null,Nn=!1;function Hi(r){de||(de=Yi()||{},Nn=de.style?"WebkitAppearance"in de.style:!1);let e=!0;return de.style&&!Gi(r)&&(e=r in de.style,!e&&Nn&&(e="Webkit"+r.charAt(0).toUpperCase()+r.slice(1)in de.style)),e}function Yi(){return typeof document<"u"?document.body:null}function Qn(r,e){for(;e;){if(e===r)return!0;e=Bt(e)}return!1}function $n(r,e,t){if(t)return Array.from(r.querySelectorAll(e));let n=r.querySelector(e);return n?[n]:[]}var Kt=(()=>{let e=class e{validateStyleProperty(n){return Hi(n)}containsElement(n,i){return Qn(n,i)}getParentElement(n){return Bt(n)}query(n,i,s){return $n(n,i,s)}computeStyle(n,i,s){return s||""}animate(n,i,s,o,a,l=[],c){return new ne(s,o)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=U({token:e,factory:e.\u0275fac});let r=e;return r})(),Vt=class Vt{};Vt.NOOP=new Kt;var pe=Vt,ge=class{};var Xi=1e3,Wn="{{",Zi="}}",Gn="ng-enter",Et="ng-leave",We="ng-trigger",Ze=".ng-trigger",In="ng-animating",bt=".ng-animating";function ee(r){if(typeof r=="number")return r;let e=r.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:wt(parseFloat(e[1]),e[2])}function wt(r,e){switch(e){case"s":return r*Xi;default:return r}}function Je(r,e,t){return r.hasOwnProperty("duration")?r:Ji(r,e,t)}function Ji(r,e,t){let n=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,i,s=0,o="";if(typeof r=="string"){let a=r.match(n);if(a===null)return e.push(On(r)),{duration:0,delay:0,easing:""};i=wt(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(s=wt(parseFloat(l),a[4]));let c=a[5];c&&(o=c)}else i=r;if(!t){let a=!1,l=e.length;i<0&&(e.push(gi()),a=!0),s<0&&(e.push(yi()),a=!0),a&&e.splice(l,0,On(r))}return{duration:i,delay:s,easing:o}}function er(r){return r.length?r[0]instanceof Map?r:r.map(e=>new Map(Object.entries(e))):[]}function Z(r,e,t){e.forEach((n,i)=>{let s=jt(i);t&&!t.has(i)&&t.set(i,r.style[s]),r.style[s]=n})}function me(r,e){e.forEach((t,n)=>{let i=jt(n);r.style[i]=""})}function Le(r){return Array.isArray(r)?r.length==1?r[0]:An(r):r}function tr(r,e,t){let n=e.params||{},i=Hn(r);i.length&&i.forEach(s=>{n.hasOwnProperty(s)||t.push(_i(s))})}var Tt=new RegExp(`${Wn}\\s*(.+?)\\s*${Zi}`,"g");function Hn(r){let e=[];if(typeof r=="string"){let t;for(;t=Tt.exec(r);)e.push(t[1]);Tt.lastIndex=0}return e}function Re(r,e,t){let n=`${r}`,i=n.replace(Tt,(s,o)=>{let a=e[o];return a==null&&(t.push(vi(o)),a=""),a.toString()});return i==n?r:i}var nr=/-+([a-z0-9])/g;function jt(r){return r.replace(nr,(...e)=>e[1].toUpperCase())}function ir(r,e){return r===0||e===0}function rr(r,e,t){if(t.size&&e.length){let n=e[0],i=[];if(t.forEach((s,o)=>{n.has(o)||i.push(o),n.set(o,s)}),i.length)for(let s=1;so.set(a,qt(r,a)))}}return e}function K(r,e,t){switch(e.type){case _.Trigger:return r.visitTrigger(e,t);case _.State:return r.visitState(e,t);case _.Transition:return r.visitTransition(e,t);case _.Sequence:return r.visitSequence(e,t);case _.Group:return r.visitGroup(e,t);case _.Animate:return r.visitAnimate(e,t);case _.Keyframes:return r.visitKeyframes(e,t);case _.Style:return r.visitStyle(e,t);case _.Reference:return r.visitReference(e,t);case _.AnimateChild:return r.visitAnimateChild(e,t);case _.AnimateRef:return r.visitAnimateRef(e,t);case _.Query:return r.visitQuery(e,t);case _.Stagger:return r.visitStagger(e,t);default:throw Si(e.type)}}function qt(r,e){return window.getComputedStyle(r)[e]}var sr=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 ge{normalizePropertyName(e,t){return jt(e)}normalizeStyleValue(e,t,n,i){let s="",o=n.toString().trim();if(sr.has(t)&&n!==0&&n!=="0")if(typeof n=="number")s="px";else{let a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&i.push(Ei(e,n))}return o+s}};var tt="*";function or(r,e){let t=[];return typeof r=="string"?r.split(/\s*,\s*/).forEach(n=>ar(n,t,e)):t.push(r),t}function ar(r,e,t){if(r[0]==":"){let l=lr(r,t);if(typeof l=="function"){e.push(l);return}r=l}let n=r.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return t.push(Ii(r)),e;let i=n[1],s=n[2],o=n[3];e.push(Ln(i,o));let a=i==tt&&o==tt;s[0]=="<"&&!a&&e.push(Ln(o,i))}function lr(r,e){switch(r){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,n)=>parseFloat(n)>parseFloat(t);case":decrement":return(t,n)=>parseFloat(n) *"}}var Ge=new Set(["true","1"]),He=new Set(["false","0"]);function Ln(r,e){let t=Ge.has(r)||He.has(r),n=Ge.has(e)||He.has(e);return(i,s)=>{let o=r==tt||r==i,a=e==tt||e==s;return!o&&t&&typeof i=="boolean"&&(o=i?Ge.has(r):He.has(r)),!a&&n&&typeof s=="boolean"&&(a=s?Ge.has(e):He.has(e)),o&&a}}var Yn=":self",cr=new RegExp(`s*${Yn}s*,?`,"g");function Xn(r,e,t,n){return new Pt(r).build(e,t,n)}var Fn="",Pt=class{constructor(e){this._driver=e}build(e,t,n){let i=new At(t);return this._resetContextStyleTimingState(i),K(this,Le(e),i)}_resetContextStyleTimingState(e){e.currentQuerySelector=Fn,e.collectedStyles=new Map,e.collectedStyles.set(Fn,new Map),e.currentTime=0}visitTrigger(e,t){let n=t.queryCount=0,i=t.depCount=0,s=[],o=[];return e.name.charAt(0)=="@"&&t.errors.push(bi()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==_.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(h=>{l.name=h,s.push(this.visitState(l,t))}),l.name=c}else if(a.type==_.Transition){let l=this.visitTransition(a,t);n+=l.queryCount,i+=l.depCount,o.push(l)}else t.errors.push(wi())}),{type:_.Trigger,name:e.name,states:s,transitions:o,queryCount:n,depCount:i,options:null}}visitState(e,t){let n=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(n.containsDynamicStyles){let s=new Set,o=i||{};n.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{Hn(l).forEach(c=>{o.hasOwnProperty(c)||s.add(c)})})}),s.size&&t.errors.push(Ti(e.name,[...s.values()]))}return{type:_.State,name:e.name,style:n,options:i?{params:i}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let n=K(this,Le(e.animation),t),i=or(e.expr,t.errors);return{type:_.Transition,matchers:i,animation:n,queryCount:t.queryCount,depCount:t.depCount,options:fe(e.options)}}visitSequence(e,t){return{type:_.Sequence,steps:e.steps.map(n=>K(this,n,t)),options:fe(e.options)}}visitGroup(e,t){let n=t.currentTime,i=0,s=e.steps.map(o=>{t.currentTime=n;let a=K(this,o,t);return i=Math.max(i,t.currentTime),a});return t.currentTime=i,{type:_.Group,steps:s,options:fe(e.options)}}visitAnimate(e,t){let n=fr(e.timings,t.errors);t.currentAnimateTimings=n;let i,s=e.styles?e.styles:B({});if(s.type==_.Keyframes)i=this.visitKeyframes(s,t);else{let o=e.styles,a=!1;if(!o){a=!0;let c={};n.easing&&(c.easing=n.easing),o=B(c)}t.currentTime+=n.duration+n.delay;let l=this.visitStyle(o,t);l.isEmptyStep=a,i=l}return t.currentAnimateTimings=null,{type:_.Animate,timings:n,style:i,options:null}}visitStyle(e,t){let n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){let n=[],i=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of i)typeof a=="string"?a===X?n.push(a):t.errors.push(Pi(a)):n.push(new Map(Object.entries(a)));let s=!1,o=null;return n.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(Wn)>=0){s=!0;break}}}),{type:_.Style,styles:n,easing:o,offset:e.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(e,t){let n=t.currentAnimateTimings,i=t.currentTime,s=t.currentTime;n&&s>0&&(s-=n.duration+n.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let c=t.collectedStyles.get(t.currentQuerySelector),h=c.get(l),u=!0;h&&(s!=i&&s>=h.startTime&&i<=h.endTime&&(t.errors.push(Ai(l,h.startTime,h.endTime,s,i)),u=!1),s=h.startTime),u&&c.set(l,{startTime:s,endTime:i}),t.options&&tr(a,t.options,t.errors)})})}visitKeyframes(e,t){let n={type:_.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(Mi()),n;let i=1,s=0,o=[],a=!1,l=!1,c=0,h=e.steps.map(A=>{let M=this._makeStyleAst(A,t),L=M.offset!=null?M.offset:dr(M.styles),k=0;return L!=null&&(s++,k=M.offset=L),l=l||k<0||k>1,a=a||k0&&s{let L=v>0?M==y?1:v*M:o[M],k=L*w;t.currentTime=f+g.delay+k,g.duration=k,this._validateStyleAst(A,t),A.offset=L,n.styles.push(A)}),n}visitReference(e,t){return{type:_.Reference,animation:K(this,Le(e.animation),t),options:fe(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:_.AnimateChild,options:fe(e.options)}}visitAnimateRef(e,t){return{type:_.AnimateRef,animation:this.visitReference(e.animation,t),options:fe(e.options)}}visitQuery(e,t){let n=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;let[s,o]=ur(e.selector);t.currentQuerySelector=n.length?n+" "+s:s,j(t.collectedStyles,t.currentQuerySelector,new Map);let a=K(this,Le(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:_.Query,selector:s,limit:i.limit||0,optional:!!i.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:fe(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(Di());let n=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Je(e.timings,t.errors,!0);return{type:_.Stagger,animation:K(this,Le(e.animation),t),timings:n,options:null}}};function ur(r){let e=!!r.split(/\s*,\s*/).find(t=>t==Yn);return e&&(r=r.replace(cr,"")),r=r.replace(/@\*/g,Ze).replace(/@\w+/g,t=>Ze+"-"+t.slice(1)).replace(/:animating/g,bt),[r,e]}function hr(r){return r?je({},r):null}var At=class{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 dr(r){if(typeof r=="string")return null;let e=null;if(Array.isArray(r))r.forEach(t=>{if(t instanceof Map&&t.has("offset")){let n=t;e=parseFloat(n.get("offset")),n.delete("offset")}});else if(r instanceof Map&&r.has("offset")){let t=r;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function fr(r,e){if(r.hasOwnProperty("duration"))return r;if(typeof r=="number"){let s=Je(r,e).duration;return gt(s,0,"")}let t=r;if(t.split(/\s+/).some(s=>s.charAt(0)=="{"&&s.charAt(1)=="{")){let s=gt(0,0,"");return s.dynamic=!0,s.strValue=t,s}let i=Je(t,e);return gt(i.duration,i.delay,i.easing)}function fe(r){return r?(r=je({},r),r.params&&(r.params=hr(r.params))):r={},r}function gt(r,e,t){return{duration:r,delay:e,easing:t}}function Ut(r,e,t,n,i,s,o=null,a=!1){return{type:1,element:r,keyframes:e,preStyleProps:t,postStyleProps:n,duration:i,delay:s,totalTime:i+s,easing:o,subTimeline:a}}var xe=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},mr=1,pr=":enter",gr=new RegExp(pr,"g"),yr=":leave",_r=new RegExp(yr,"g");function Zn(r,e,t,n,i,s=new Map,o=new Map,a,l,c=[]){return new Mt().buildKeyframes(r,e,t,n,i,s,o,a,l,c)}var Mt=class{buildKeyframes(e,t,n,i,s,o,a,l,c,h=[]){c=c||new xe;let u=new Ct(e,t,c,i,s,h,[]);u.options=l;let v=l.delay?ee(l.delay):0;u.currentTimeline.delayNextStep(v),u.currentTimeline.setStyles([o],null,u.errors,l),K(this,n,u);let y=u.timelines.filter(f=>f.containsAnimation());if(y.length&&a.size){let f;for(let g=y.length-1;g>=0;g--){let w=y[g];if(w.element===t){f=w;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,u.errors,l)}return y.length?y.map(f=>f.buildKeyframes()):[Ut(t,[],[],[],0,v,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let n=t.subInstructions.get(t.element);if(n){let i=t.createSubContext(e.options),s=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,i,i.options);s!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){let n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,n),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,n){for(let i of e){let s=i?.delay;if(s){let o=typeof s=="number"?s:ee(Re(s,i?.params??{},t.errors));n.delayNextStep(o)}}}_visitSubInstructions(e,t,n){let s=t.currentTimeline.currentTime,o=n.duration!=null?ee(n.duration):null,a=n.delay!=null?ee(n.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),K(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let n=t.subContextCount,i=t,s=e.options;if(s&&(s.params||s.delay)&&(i=t.createSubContext(s),i.transformIntoNewTimeline(),s.delay!=null)){i.previousNode.type==_.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=nt);let o=ee(s.delay);i.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>K(this,o,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let n=[],i=t.currentTimeline.currentTime,s=e.options&&e.options.delay?ee(e.options.delay):0;e.steps.forEach(o=>{let a=t.createSubContext(e.options);s&&a.delayNextStep(s),K(this,o,a),i=Math.max(i,a.currentTimeline.currentTime),n.push(a.currentTimeline)}),n.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(i),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let n=e.strValue,i=t.params?Re(n,t.params,t.errors):n;return Je(i,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let n=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());let s=e.style;s.type==_.Keyframes?this.visitKeyframes(s,t):(t.incrementTime(n.duration),this.visitStyle(s,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.hasCurrentStyleProperties()&&n.forwardFrame();let s=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(s):n.setStyles(e.styles,s,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let n=t.currentAnimateTimings,i=t.currentTimeline.duration,s=n.duration,a=t.createSubContext().currentTimeline;a.easing=n.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(i+s),t.previousNode=e}visitQuery(e,t){let n=t.currentTimeline.currentTime,i=e.options||{},s=i.delay?ee(i.delay):0;s&&(t.previousNode.type===_.Style||n==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=nt);let o=n,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,h)=>{t.currentQueryIndex=h;let u=t.createSubContext(e.options,c);s&&u.delayNextStep(s),c===t.element&&(l=u.currentTimeline),K(this,e.animation,u),u.currentTimeline.applyStylesToKeyframe();let v=u.currentTimeline.currentTime;o=Math.max(o,v)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let n=t.parentContext,i=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=n.currentStaggerTime;break}let h=t.currentTimeline;l&&h.delayNextStep(l);let u=h.currentTime;K(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-u+(i.startTime-n.currentTimeline.startTime)}},nt={},Ct=class r{constructor(e,t,n,i,s,o,a,l){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=nt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new it(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let n=e,i=this.options;n.duration!=null&&(i.duration=ee(n.duration)),n.delay!=null&&(i.delay=ee(n.delay));let s=n.params;if(s){let o=i.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 n=e.params={};Object.keys(t).forEach(i=>{n[i]=t[i]})}}return e}createSubContext(e=null,t,n){let i=t||this.element,s=new r(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||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=nt,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){let i={duration:t??e.duration,delay:this.currentTimeline.currentTime+(n??0)+e.delay,easing:""},s=new kt(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(s),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,n,i,s,o){let a=[];if(i&&a.push(this.element),e.length>0){e=e.replace(gr,"."+this._enterClassName),e=e.replace(_r,"."+this._leaveClassName);let l=n!=1,c=this._driver.query(this.element,e,l);n!==0&&(c=n<0?c.slice(c.length+n,c.length):c.slice(0,n)),a.push(...c)}return!s&&a.length==0&&o.push(Ni(t)),a}},it=class r{constructor(e,t,n,i){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=i,this.duration=0,this.easing=null,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){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 r(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+=mr,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,n]of this._globalTimelineStyles)this._backFill.set(t,n||X),this._currentKeyframe.set(t,X);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,n,i){t&&this._previousKeyframe.set("easing",t);let s=i&&i.params||{},o=vr(e,this._globalTimelineStyles);for(let[a,l]of o){let c=Re(l,s,n);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??X),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,n)=>{let i=this._styleSummary.get(n);(!i||t.time>i.time)&&this._updateStyle(n,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,n=this._keyframes.size===1&&this.duration===0,i=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((h,u)=>{h===$e?e.add(u):h===X&&t.add(u)}),n||c.set("offset",l/this.duration),i.push(c)});let s=[...e.values()],o=[...t.values()];if(n){let a=i[0],l=new Map(a);a.set("offset",0),l.set("offset",1),i=[a,l]}return Ut(this.element,i,s,o,this.duration,this.startTime,this.easing,!1)}},kt=class extends it{constructor(e,t,n,i,s,o,a=!1){super(e,t,o.delay),this.keyframes=n,this.preStyleProps=i,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:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&t){let s=[],o=n+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",Rn(a)),s.push(c);let h=e.length-1;for(let u=1;u<=h;u++){let v=new Map(e[u]),y=v.get("offset"),f=t+y*n;v.set("offset",Rn(f/o)),s.push(v)}n=o,t=0,i="",e=s}return Ut(this.element,e,this.preStyleProps,this.postStyleProps,n,t,i,!0)}};function Rn(r,e=3){let t=Math.pow(10,e-1);return Math.round(r*t)/t}function vr(r,e){let t=new Map,n;return r.forEach(i=>{if(i==="*"){n??=e.keys();for(let s of n)t.set(s,X)}else for(let[s,o]of i)t.set(s,o)}),t}function xn(r,e,t,n,i,s,o,a,l,c,h,u,v){return{type:0,element:r,triggerName:e,isRemovalTransition:i,fromState:t,fromStyles:s,toState:n,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:h,totalTime:u,errors:v}}var yt={},rt=class{constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}match(e,t,n,i){return Sr(this.ast.matchers,e,t,n,i)}buildStyles(e,t,n){let i=this._stateStyles.get("*");return e!==void 0&&(i=this._stateStyles.get(e?.toString())||i),i?i.buildStyles(t,n):new Map}build(e,t,n,i,s,o,a,l,c,h){let u=[],v=this.ast.options&&this.ast.options.params||yt,y=a&&a.params||yt,f=this.buildStyles(n,y,u),g=l&&l.params||yt,w=this.buildStyles(i,g,u),A=new Set,M=new Map,L=new Map,k=i==="void",ye={params:Jn(g,v),delay:this.ast.options?.delay},W=h?[]:Zn(e,t,this.ast.animation,s,o,f,w,ye,c,u),F=0;return W.forEach(R=>{F=Math.max(R.duration+R.delay,F)}),u.length?xn(t,this._triggerName,n,i,k,f,w,[],[],M,L,F,u):(W.forEach(R=>{let re=R.element,_e=j(M,re,new Set);R.preStyleProps.forEach(se=>_e.add(se));let Gt=j(L,re,new Set);R.postStyleProps.forEach(se=>Gt.add(se)),re!==t&&A.add(re)}),xn(t,this._triggerName,n,i,k,f,w,W,[...A.values()],M,L,F))}};function Sr(r,e,t,n,i){return r.some(s=>s(e,t,n,i))}function Jn(r,e){let t=je({},e);return Object.entries(r).forEach(([n,i])=>{i!=null&&(t[n]=i)}),t}var Ot=class{constructor(e,t,n){this.styles=e,this.defaultParams=t,this.normalizer=n}buildStyles(e,t){let n=new Map,i=Jn(e,this.defaultParams);return this.styles.styles.forEach(s=>{typeof s!="string"&&s.forEach((o,a)=>{o&&(o=Re(o,i,t));let l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),n.set(a,o)})}),n}};function Er(r,e,t){return new Dt(r,e,t)}var Dt=class{constructor(e,t,n){this.name=e,this.ast=t,this._normalizer=n,this.transitionFactories=[],this.states=new Map,t.states.forEach(i=>{let s=i.options&&i.options.params||{};this.states.set(i.name,new Ot(i.style,s,n))}),zn(this.states,"true","1"),zn(this.states,"false","0"),t.transitions.forEach(i=>{this.transitionFactories.push(new rt(e,i,this.states))}),this.fallbackTransition=br(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,i){return this.transitionFactories.find(o=>o.match(e,t,n,i))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}};function br(r,e,t){let n=[(o,a)=>!0],i={type:_.Sequence,steps:[],options:null},s={type:_.Transition,animation:i,matchers:n,options:null,queryCount:0,depCount:0};return new rt(r,s,e)}function zn(r,e,t){r.has(e)?r.has(t)||r.set(t,r.get(e)):r.has(t)&&r.set(e,r.get(t))}var wr=new xe,Nt=class{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){let n=[],i=[],s=Xn(this._driver,t,n,i);if(n.length)throw xi(n);i.length&&void 0,this._animations.set(e,s)}_buildPlayer(e,t,n){let i=e.element,s=Vn(this._normalizer,e.keyframes,t,n);return this._driver.animate(i,s,e.duration,e.delay,e.easing,[],!0)}create(e,t,n={}){let i=[],s=this._animations.get(e),o,a=new Map;if(s?(o=Zn(this._driver,t,s,Gn,Et,new Map,new Map,n,wr,i),o.forEach(h=>{let u=j(a,h.element,new Map);h.postStyleProps.forEach(v=>u.set(v,null))})):(i.push(zi()),o=[]),i.length)throw Bi(i);a.forEach((h,u)=>{h.forEach((v,y)=>{h.set(y,this._driver.computeStyle(u,y,X))})});let l=o.map(h=>{let u=a.get(h.element);return this._buildPlayer(h,new Map,u)}),c=ie(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 n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw Ki(e);return t}listen(e,t,n,i){let s=zt(t,"","","");return xt(this._getPlayer(e),n,s,i),()=>{}}command(e,t,n,i){if(n=="register"){this.register(e,i[0]);return}if(n=="create"){let o=i[0]||{};this.create(e,t,o);return}let s=this._getPlayer(e);switch(n){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(i[0]));break;case"destroy":this.destroy(e);break}}},Bn="ng-animate-queued",Tr=".ng-animate-queued",_t="ng-animate-disabled",Pr=".ng-animate-disabled",Ar="ng-star-inserted",Mr=".ng-star-inserted",Cr=[],ei={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},kr={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},$="__ng_removed",ze=class{get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let n=e&&e.hasOwnProperty("value"),i=n?e.value:e;if(this.value=Dr(i),n){let s=e,{value:o}=s,a=Zt(s,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let n=this.options.params;Object.keys(t).forEach(i=>{n[i]==null&&(n[i]=t[i])})}}},Fe="void",vt=new ze(Fe),It=class{constructor(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Q(t,this._hostClassName)}listen(e,t,n,i){if(!this._triggers.has(t))throw ji(n,t);if(n==null||n.length==0)throw qi(t);if(!Nr(n))throw Ui(n,t);let s=j(this._elementListeners,e,[]),o={name:t,phase:n,callback:i};s.push(o);let a=j(this._engine.statesByElement,e,new Map);return a.has(t)||(Q(e,We),Q(e,We+"-"+t),a.set(t,vt)),()=>{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 Vi(e);return t}trigger(e,t,n,i=!0){let s=this._getTrigger(t),o=new Be(this.id,t,e),a=this._engine.statesByElement.get(e);a||(Q(e,We),Q(e,We+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t),c=new ze(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=vt),!(c.value===Fe)&&l.value===c.value){if(!Fr(l.params,c.params)){let g=[],w=s.matchStyles(l.value,l.params,g),A=s.matchStyles(c.value,c.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{me(e,w),Z(e,A)})}return}let v=j(this._engine.playersByElement,e,[]);v.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy()});let y=s.matchTransition(l.value,c.value,e,c.params),f=!1;if(!y){if(!i)return;y=s.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:y,fromState:l,toState:c,player:o,isFallbackTransition:f}),f||(Q(e,Bn),o.onStart(()=>{Ae(e,Bn)})),o.onDone(()=>{let g=this.players.indexOf(o);g>=0&&this.players.splice(g,1);let w=this._engine.playersByElement.get(e);if(w){let A=w.indexOf(o);A>=0&&w.splice(A,1)}}),this.players.push(o),v.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(i=>i.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(n=>n.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let n=this._engine.driver.query(e,Ze,!0);n.forEach(i=>{if(i[$])return;let s=this._engine.fetchNamespacesByElement(i);s.size?s.forEach(o=>o.triggerLeaveAnimation(i,t,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(e,t,n,i){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 h=this.trigger(e,c,Fe,i);h&&a.push(h)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),n&&ie(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),n=this._engine.statesByElement.get(e);if(t&&n){let i=new Set;t.forEach(s=>{let o=s.name;if(i.has(o))return;i.add(o);let l=this._triggers.get(o).fallbackTransition,c=n.get(o)||vt,h=new ze(Fe),u=new Be(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:h,player:u,isFallbackTransition:!0})})}}removeNode(e,t){let n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let i=!1;if(n.totalAnimations){let s=n.players.length?n.playersByQueriedElement.get(e):[];if(s&&s.length)i=!0;else{let o=e;for(;o=o.parentNode;)if(n.statesByElement.get(o)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(e),i)n.markElementAsRemoved(this.id,e,!1,t);else{let s=e[$];(!s||s===ei)&&(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t))}}insertNode(e,t){Q(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(n=>{let i=n.player;if(i.destroyed)return;let s=n.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==n.triggerName){let l=zt(s,n.triggerName,n.fromState.value,n.toState.value);l._data=e,xt(n.player,a.phase,l,a.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):t.push(n)}),this._queue=[],t.sort((n,i)=>{let s=n.transition.ast.depCount,o=i.transition.ast.depCount;return s==0||o==0?s-o:this._engine.driver.containsElement(n.element,i.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Lt=class{_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,n){this.bodyNode=e,this.driver=t,this._normalizer=n,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=(i,s)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(n=>{n.queued&&e.push(n)})}),e}createNamespace(e,t){let n=new It(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){let n=this._namespaceList,i=this.namespacesByHostElement;if(n.length-1>=0){let o=!1,a=this.driver.getParentElement(t);for(;a;){let l=i.get(a);if(l){let c=n.indexOf(l);n.splice(c+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}o||n.unshift(e)}else n.push(e);return i.set(t,e),e}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let i=this._namespaceLookup[e];i&&i.register(t,n)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(e);this.namespacesByHostElement.delete(n.hostElement);let i=this._namespaceList.indexOf(n);i>=0&&this._namespaceList.splice(i,1),n.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,n=this.statesByElement.get(e);if(n){for(let i of n.values())if(i.namespaceId){let s=this._fetchNamespace(i.namespaceId);s&&t.add(s)}}return t}trigger(e,t,n,i){if(Ye(t)){let s=this._fetchNamespace(e);if(s)return s.trigger(t,n,i),!0}return!1}insertNode(e,t,n,i){if(!Ye(t))return;let s=t[$];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,n)}i&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Q(e,_t)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Ae(e,_t))}removeNode(e,t,n){if(Ye(t)){let i=e?this._fetchNamespace(e):null;i?i.removeNode(t,n):this.markElementAsRemoved(e,t,!1,n);let s=this.namespacesByHostElement.get(t);s&&s.id!==e&&s.removeNode(t,n)}else this._onRemovalComplete(t,n)}markElementAsRemoved(e,t,n,i,s){this.collectedLeaveElements.push(t),t[$]={namespaceId:e,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:s}}listen(e,t,n,i,s){return Ye(t)?this._fetchNamespace(e).listen(t,n,i,s):()=>{}}_buildInstruction(e,t,n,i,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,i,e.fromState.options,e.toState.options,t,s)}destroyInnerAnimations(e){let t=this.driver.query(e,Ze,!0);t.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,bt,!0),t.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return ie(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[$];if(t&&t.setForRemoval){if(e[$]=ei,t.namespaceId){this.destroyInnerAnimations(e);let n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(_t)&&this.markElementAsDisabled(e,!1),this.driver.query(e,Pr,!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,i)=>this._balanceNamespaceList(n,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nn()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],t.length?ie(t).onDone(()=>{n.forEach(i=>i())}):n.forEach(i=>i())}}reportError(e){throw Qi(e)}_flushAnimations(e,t){let n=new xe,i=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,h=new Set;this.disabledNodes.forEach(d=>{h.add(d);let m=this.driver.query(d,Tr,!0);for(let p=0;p{let p=Gn+g++;f.set(m,p),d.forEach(S=>Q(S,p))});let w=[],A=new Set,M=new Set;for(let d=0;dA.add(S)):M.add(m))}let L=new Map,k=qn(v,Array.from(A));k.forEach((d,m)=>{let p=Et+g++;L.set(m,p),d.forEach(S=>Q(S,p))}),e.push(()=>{y.forEach((d,m)=>{let p=f.get(m);d.forEach(S=>Ae(S,p))}),k.forEach((d,m)=>{let p=L.get(m);d.forEach(S=>Ae(S,p))}),w.forEach(d=>{this.processLeaveNode(d)})});let ye=[],W=[];for(let d=this._namespaceList.length-1;d>=0;d--)this._namespaceList[d].drainQueuedTransitions(t).forEach(p=>{let S=p.player,C=p.element;if(ye.push(S),this.collectedEnterElements.length){let N=C[$];if(N&&N.setForMove){if(N.previousTriggersValues&&N.previousTriggersValues.has(p.triggerName)){let oe=N.previousTriggersValues.get(p.triggerName),q=this.statesByElement.get(p.element);if(q&&q.has(p.triggerName)){let Ke=q.get(p.triggerName);Ke.value=oe,q.set(p.triggerName,Ke)}}S.destroy();return}}let G=!u||!this.driver.containsElement(u,C),x=L.get(C),te=f.get(C),T=this._buildInstruction(p,n,te,x,G);if(T.errors&&T.errors.length){W.push(T);return}if(G){S.onStart(()=>me(C,T.fromStyles)),S.onDestroy(()=>Z(C,T.toStyles)),i.push(S);return}if(p.isFallbackTransition){S.onStart(()=>me(C,T.fromStyles)),S.onDestroy(()=>Z(C,T.toStyles)),i.push(S);return}let Xt=[];T.timelines.forEach(N=>{N.stretchStartingKeyframe=!0,this.disabledNodes.has(N.element)||Xt.push(N)}),T.timelines=Xt,n.append(C,T.timelines);let ai={instruction:T,player:S,element:C};o.push(ai),T.queriedElements.forEach(N=>j(a,N,[]).push(S)),T.preStyleProps.forEach((N,oe)=>{if(N.size){let q=l.get(oe);q||l.set(oe,q=new Set),N.forEach((Ke,ut)=>q.add(ut))}}),T.postStyleProps.forEach((N,oe)=>{let q=c.get(oe);q||c.set(oe,q=new Set),N.forEach((Ke,ut)=>q.add(ut))})});if(W.length){let d=[];W.forEach(m=>{d.push($i(m.triggerName,m.errors))}),ye.forEach(m=>m.destroy()),this.reportError(d)}let F=new Map,R=new Map;o.forEach(d=>{let m=d.element;n.has(m)&&(R.set(m,m),this._beforeAnimationBuild(d.player.namespaceId,d.instruction,F))}),i.forEach(d=>{let m=d.element;this._getPreviousPlayers(m,!1,d.namespaceId,d.triggerName,null).forEach(S=>{j(F,m,[]).push(S),S.destroy()})});let re=w.filter(d=>Un(d,l,c)),_e=new Map;jn(_e,this.driver,M,c,X).forEach(d=>{Un(d,l,c)&&re.push(d)});let se=new Map;y.forEach((d,m)=>{jn(se,this.driver,new Set(d),l,$e)}),re.forEach(d=>{let m=_e.get(d),p=se.get(d);_e.set(d,new Map([...m?.entries()??[],...p?.entries()??[]]))});let ct=[],Ht=[],Yt={};o.forEach(d=>{let{element:m,player:p,instruction:S}=d;if(n.has(m)){if(h.has(m)){p.onDestroy(()=>Z(m,S.toStyles)),p.disabled=!0,p.overrideTotalTime(S.totalTime),i.push(p);return}let C=Yt;if(R.size>1){let x=m,te=[];for(;x=x.parentNode;){let T=R.get(x);if(T){C=T;break}te.push(x)}te.forEach(T=>R.set(T,C))}let G=this._buildAnimation(p.namespaceId,S,F,s,se,_e);if(p.setRealPlayer(G),C===Yt)ct.push(p);else{let x=this.playersByElement.get(C);x&&x.length&&(p.parentPlayer=ie(x)),i.push(p)}}else me(m,S.fromStyles),p.onDestroy(()=>Z(m,S.toStyles)),Ht.push(p),h.has(m)&&i.push(p)}),Ht.forEach(d=>{let m=s.get(d.element);if(m&&m.length){let p=ie(m);d.setRealPlayer(p)}}),i.forEach(d=>{d.parentPlayer?d.syncPlayerEvents(d.parentPlayer):d.destroy()});for(let d=0;d!G.destroyed);C.length?Ir(this,m,C):this.processLeaveNode(m)}return w.length=0,ct.forEach(d=>{this.players.push(d),d.onDone(()=>{d.destroy();let m=this.players.indexOf(d);this.players.splice(m,1)}),d.play()}),ct}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,n,i,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==Fe;a.forEach(c=>{c.queued||!l&&c.triggerName!=i||o.push(c)})}}return(n||i)&&(o=o.filter(a=>!(n&&n!=a.namespaceId||i&&i!=a.triggerName))),o}_beforeAnimationBuild(e,t,n){let i=t.triggerName,s=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:i;for(let l of t.timelines){let c=l.element,h=c!==s,u=j(n,c,[]);this._getPreviousPlayers(c,h,o,a,t.toState).forEach(y=>{let f=y.getRealPlayer();f.beforeDestroy&&f.beforeDestroy(),y.destroy(),u.push(y)})}me(s,t.fromStyles)}_buildAnimation(e,t,n,i,s,o){let a=t.triggerName,l=t.element,c=[],h=new Set,u=new Set,v=t.timelines.map(f=>{let g=f.element;h.add(g);let w=g[$];if(w&&w.removedBeforeQueried)return new ne(f.duration,f.delay);let A=g!==l,M=Lr((n.get(g)||Cr).map(F=>F.getRealPlayer())).filter(F=>{let R=F;return R.element?R.element===g:!1}),L=s.get(g),k=o.get(g),ye=Vn(this._normalizer,f.keyframes,L,k),W=this._buildPlayer(f,ye,M);if(f.subTimeline&&i&&u.add(g),A){let F=new Be(e,a,g);F.setRealPlayer(W),c.push(F)}return W});c.forEach(f=>{j(this.playersByQueriedElement,f.element,[]).push(f),f.onDone(()=>Or(this.playersByQueriedElement,f.element,f))}),h.forEach(f=>Q(f,In));let y=ie(v);return y.onDestroy(()=>{h.forEach(f=>Ae(f,In)),Z(l,t.toStyles)}),u.forEach(f=>{j(i,f,[]).push(y)}),y}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new ne(e.duration,e.delay)}},Be=class{constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new ne,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,n)=>{t.forEach(i=>xt(e,n,void 0,i))}),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){j(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 Or(r,e,t){let n=r.get(e);if(n){if(n.length){let i=n.indexOf(t);n.splice(i,1)}n.length==0&&r.delete(e)}return n}function Dr(r){return r??null}function Ye(r){return r&&r.nodeType===1}function Nr(r){return r=="start"||r=="done"}function Kn(r,e){let t=r.style.display;return r.style.display=e??"none",t}function jn(r,e,t,n,i){let s=[];t.forEach(l=>s.push(Kn(l)));let o=[];n.forEach((l,c)=>{let h=new Map;l.forEach(u=>{let v=e.computeStyle(c,u,i);h.set(u,v),(!v||v.length==0)&&(c[$]=kr,o.push(c))}),r.set(c,h)});let a=0;return t.forEach(l=>Kn(l,s[a++])),o}function qn(r,e){let t=new Map;if(r.forEach(a=>t.set(a,[])),e.length==0)return t;let n=1,i=new Set(e),s=new Map;function o(a){if(!a)return n;let l=s.get(a);if(l)return l;let c=a.parentNode;return t.has(c)?l=c:i.has(c)?l=n:l=o(c),s.set(a,l),l}return e.forEach(a=>{let l=o(a);l!==n&&t.get(l).push(a)}),t}function Q(r,e){r.classList?.add(e)}function Ae(r,e){r.classList?.remove(e)}function Ir(r,e,t){ie(t).onDone(()=>r.processLeaveNode(e))}function Lr(r){let e=[];return ti(r,e),e}function ti(r,e){for(let t=0;ti.add(s)):e.set(r,n),t.delete(r),!0}var Ce=class{constructor(e,t,n){this._driver=t,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(i,s)=>{},this._transitionEngine=new Lt(e.body,t,n),this._timelineEngine=new Nt(e.body,t,n),this._transitionEngine.onRemovalComplete=(i,s)=>this.onRemovalComplete(i,s)}registerTrigger(e,t,n,i,s){let o=e+"-"+i,a=this._triggerCache[o];if(!a){let l=[],c=[],h=Xn(this._driver,s,l,c);if(l.length)throw Fi(i,l);c.length&&void 0,a=Er(i,h,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,i,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,n,i){this._transitionEngine.insertNode(e,t,n,i)}onRemove(e,t,n){this._transitionEngine.removeNode(e,t,n)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,n,i){if(n.charAt(0)=="@"){let[s,o]=Dn(n),a=i;this._timelineEngine.command(s,t,o,a)}else this._transitionEngine.trigger(e,t,n,i)}listen(e,t,n,i,s){if(n.charAt(0)=="@"){let[o,a]=Dn(n);return this._timelineEngine.listen(o,t,a,s)}return this._transitionEngine.listen(e,t,n,i,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 Rr(r,e){let t=null,n=null;return Array.isArray(e)&&e.length?(t=St(e[0]),e.length>1&&(n=St(e[e.length-1]))):e instanceof Map&&(t=St(e)),t||n?new Ft(r,t,n):null}var Me=class Me{constructor(e,t,n){this._element=e,this._startStyles=t,this._endStyles=n,this._state=0;let i=Me.initialStylesByElement.get(e);i||Me.initialStylesByElement.set(e,i=new Map),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&Z(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Z(this._element,this._initialStyles),this._endStyles&&(Z(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Me.initialStylesByElement.delete(this._element),this._startStyles&&(me(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(me(this._element,this._endStyles),this._endStyles=null),Z(this._element,this._initialStyles),this._state=3)}};Me.initialStylesByElement=new WeakMap;var Ft=Me;function St(r){let e=null;return r.forEach((t,n)=>{xr(n)&&(e=e||new Map,e.set(n,t))}),e}function xr(r){return r==="display"||r==="position"}var st=class{constructor(e,t,n,i){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=i,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=n.duration,this._delay=n.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;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(n=>{t.push(Object.fromEntries(n))}),t}_triggerWebAnimation(e,t,n){return e.animate(this._convertKeyframesToObject(t),n)}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((n,i)=>{i!=="offset"&&e.set(i,this._finished?n:qt(this.element,i))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0}},ot=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return Qn(e,t)}getParentElement(e){return Bt(e)}query(e,t,n){return $n(e,t,n)}computeStyle(e,t,n){return qt(e,t)}animate(e,t,n,i,s,o=[]){let a=i==0?"both":"forwards",l={duration:n,delay:i,fill:a};s&&(l.easing=s);let c=new Map,h=o.filter(y=>y instanceof st);ir(n,i)&&h.forEach(y=>{y.currentSnapshot.forEach((f,g)=>c.set(g,f))});let u=er(t).map(y=>new Map(y));u=rr(e,u,c);let v=Rr(e,u);return new st(e,u,l,v)}};var Xe="@",ni="@.disabled",at=class{constructor(e,t,n,i){this.namespaceId=e,this.delegate=t,this.engine=n,this._onDestroy=i,this.\u0275type=0}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,n,i=!0){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,i)}removeChild(e,t,n){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,n,i){this.delegate.setAttribute(e,t,n,i)}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,n,i){this.delegate.setStyle(e,t,n,i)}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){t.charAt(0)==Xe&&t==ni?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,n){return this.delegate.listen(e,t,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},Rt=class extends at{constructor(e,t,n,i,s){super(t,n,i,s),this.factory=e,this.namespaceId=t}setProperty(e,t,n){t.charAt(0)==Xe?t.charAt(1)=="."&&t==ni?(n=n===void 0?!0:!!n,this.disableAnimations(e,n)):this.engine.process(this.namespaceId,e,t.slice(1),n):this.delegate.setProperty(e,t,n)}listen(e,t,n){if(t.charAt(0)==Xe){let i=zr(e),s=t.slice(1),o="";return s.charAt(0)!=Xe&&([s,o]=Br(s)),this.engine.listen(this.namespaceId,i,s,o,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,n,a)})}return this.delegate.listen(e,t,n)}};function zr(r){switch(r){case"body":return document.body;case"document":return document;case"window":return window;default:return r}}function Br(r){let e=r.indexOf("."),t=r.substring(0,e),n=r.slice(e+1);return[t,n]}var lt=class{constructor(e,t,n){this.delegate=e,this.engine=t,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,t.onRemovalComplete=(i,s)=>{s?.removeChild(null,i)}}createRenderer(e,t){let n="",i=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let c=this._rendererCache,h=c.get(i);if(!h){let u=()=>c.delete(i);h=new at(n,i,this.engine,u),c.set(i,h)}return h}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 Rt(this,o,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,n){if(e>=0&&et(n));return}let i=this._animationCallbacksBuffer;i.length==0&&queueMicrotask(()=>{this._zone.run(()=>{i.forEach(s=>{let[o,a]=s;o(a)}),this._animationCallbacksBuffer=[]})}),i.push([t,n])}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()}};var jr=(()=>{let e=class e extends Ce{constructor(n,i,s){super(n,i,s)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(i){return new(i||e)(V(sn),V(pe),V(ge))},e.\u0275prov=U({token:e,factory:e.\u0275fac});let r=e;return r})();function qr(){return new et}function Ur(r,e,t){return new lt(r,e,t)}var ri=[{provide:ge,useFactory:qr},{provide:Ce,useClass:jr},{provide:nn,useFactory:Ur,deps:[un,Ce,Jt]}],ii=[{provide:pe,useFactory:()=>new ot},{provide:ht,useValue:"BrowserAnimations"},...ri],Vr=[{provide:pe,useClass:Kt},{provide:ht,useValue:"NoopAnimations"},...ri],si=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:n.disableAnimations?Vr:ii}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Oe({type:e}),e.\u0275inj=ke({providers:ii,imports:[Ue]});let r=e;return r})();var Qt=(()=>{let e=class e{constructor(n){this.router=n}canActivate(){return localStorage.getItem("waw_user")?!0:(this.router.navigateByUrl("/sign"),!1)}};e.\u0275fac=function(i){return new(i||e)(V(Te))},e.\u0275prov=U({token:e,factory:e.\u0275fac});let r=e;return r})();var $t=(()=>{let e=class e{constructor(n){this.router=n}canActivate(){return localStorage.getItem("waw_user")?(this.router.navigateByUrl("/profile"),!1):!0}};e.\u0275fac=function(i){return new(i||e)(V(Te))},e.\u0275prov=U({token:e,factory:e.\u0275fac});let r=e;return r})();var Wt=(()=>{let e=class e{constructor(n){this.router=n}canActivate(){if(localStorage.getItem("waw_user")){let n=JSON.parse(localStorage.getItem("waw_user"));return n.is&&n.is.admin?!0:(this.router.navigate(["/profile"]),!1)}else return this.router.navigate(["/sign"]),!1}};e.\u0275fac=function(i){return new(i||e)(V(Te))},e.\u0275prov=U({token:e,factory:e.\u0275fac});let r=e;return r})();var Qr=[{path:"",redirectTo:"/sign",pathMatch:"full"},{path:"",canActivate:[$t],component:Pn,children:[{path:"components",canActivate:[Y],data:{meta:{title:"Components"}},loadChildren:()=>import("./chunk-WPWACWBI.js").then(r=>r.ComponentsModule)},{path:"sign",canActivate:[Y],data:{meta:{title:"Sign"}},loadChildren:()=>import("./chunk-O54DGQYU.js").then(r=>r.SignModule)}]},{path:"",canActivate:[Qt],component:mt,children:[{path:"profile",canActivate:[Y],data:{meta:{title:"My Profile"}},loadChildren:()=>import("./chunk-BEJZKM57.js").then(r=>r.ProfileModule)},{path:"articles",canActivate:[Y],data:{meta:{title:"Articles"}},loadChildren:()=>import("./chunk-CHIORARV.js").then(r=>r.ArticlesModule)},{path:"tags",canActivate:[Y],data:{meta:{title:"Tags"}},loadChildren:()=>import("./chunk-XIKCDR3T.js").then(r=>r.TagsModule)},{path:"comments",canActivate:[Y],data:{meta:{title:"Comments"}},loadChildren:()=>import("./chunk-MEVUXYIT.js").then(r=>r.CommentsModule)}]},{path:"admin",canActivate:[Wt],component:mt,children:[{path:"users",canActivate:[Y],data:{meta:{title:"Users"}},loadChildren:()=>import("./chunk-UF2FTEOS.js").then(r=>r.UsersModule)},{path:"forms",canActivate:[Y],data:{meta:{title:"Forms"}},loadChildren:()=>import("./chunk-YBE2ZFV5.js").then(r=>r.CustomformsModule)},{path:"translates",canActivate:[Y],data:{meta:{title:"Translates"}},loadChildren:()=>import("./chunk-DJZ5CL5F.js").then(r=>r.TranslatesModule)}]},{path:"**",redirectTo:"profile",pathMatch:"full"}],oi=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Oe({type:e,bootstrap:[kn]}),e.\u0275inj=ke({providers:[Qt,$t,Wt,{provide:on,useClass:an}],imports:[En,bn,Tn,Ue,gn,si,_n.forRoot({store:{},http:{url:ce.url},socket:ce.production,meta:{useTitleSuffix:!0,defaults:{title:"Web Art Work",titleSuffix:" | Web Art Work","og:image":"https://webart.work/api/user/cdn/waw-logo.png"}},modal:{modals:{}}}),pn.forRoot(Qr,{scrollPositionRestoration:"enabled",preloadingStrategy:mn}),wn.forRoot({baseURL:"//cdnjs.cloudflare.com/ajax/libs/tinymce/5.7.1/"})]});let r=e;return r})();ce.production&&void 0;hn().bootstrapModule(oi).catch(r=>console.error(r)); diff --git a/media/1-I5WRTGCC.woff2 b/media/1-I5WRTGCC.woff2 new file mode 100644 index 0000000..a8fc845 Binary files /dev/null and b/media/1-I5WRTGCC.woff2 differ diff --git a/media/2-SO44HAFF.woff2 b/media/2-SO44HAFF.woff2 new file mode 100644 index 0000000..bd4e3bd Binary files /dev/null and b/media/2-SO44HAFF.woff2 differ diff --git a/media/3-O3LXZE7D.woff2 b/media/3-O3LXZE7D.woff2 new file mode 100644 index 0000000..d7c16dc Binary files /dev/null and b/media/3-O3LXZE7D.woff2 differ diff --git a/media/4-BAXDZN46.woff2 b/media/4-BAXDZN46.woff2 new file mode 100644 index 0000000..fd7e21b Binary files /dev/null and b/media/4-BAXDZN46.woff2 differ diff --git a/media/5-F4YEHKRH.woff2 b/media/5-F4YEHKRH.woff2 new file mode 100644 index 0000000..295b9f0 Binary files /dev/null and b/media/5-F4YEHKRH.woff2 differ diff --git a/polyfills-AXUTU6D7.js b/polyfills-AXUTU6D7.js new file mode 100644 index 0000000..5ad99ce --- /dev/null +++ b/polyfills-AXUTU6D7.js @@ -0,0 +1,2 @@ +var ce=globalThis;function ee(t){return(ce.__Zone_symbol_prefix||"__zone_symbol__")+t}function dt(){let t=ce.performance;function r(M){t&&t.mark&&t.mark(M)}function i(M,_){t&&t.measure&&t.measure(M,_)}r("Zone");let n=(()=>{let _=class _{static assertZonePatched(){if(ce.Promise!==L.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let e=_.current;for(;e.parent;)e=e.parent;return e}static get current(){return b.zone}static get currentTask(){return S}static __load_patch(e,d,O=!1){if(L.hasOwnProperty(e)){let N=ce[ee("forceDuplicateZoneCheck")]===!0;if(!O&&N)throw Error("Already loaded patch: "+e)}else if(!ce["__Zone_disable_"+e]){let N="Zone:"+e;r(N),L[e]=d(ce,_,w),i(N,N)}}get parent(){return this._parent}get name(){return this._name}constructor(e,d){this._parent=e,this._name=d?d.name||"unnamed":"",this._properties=d&&d.properties||{},this._zoneDelegate=new f(this,this._parent&&this._parent._zoneDelegate,d)}get(e){let d=this.getZoneWith(e);if(d)return d._properties[e]}getZoneWith(e){let d=this;for(;d;){if(d._properties.hasOwnProperty(e))return d;d=d._parent}return null}fork(e){if(!e)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,e)}wrap(e,d){if(typeof e!="function")throw new Error("Expecting function got: "+e);let O=this._zoneDelegate.intercept(this,e,d),N=this;return function(){return N.runGuarded(O,this,arguments,d)}}run(e,d,O,N){b={parent:b,zone:this};try{return this._zoneDelegate.invoke(this,e,d,O,N)}finally{b=b.parent}}runGuarded(e,d=null,O,N){b={parent:b,zone:this};try{try{return this._zoneDelegate.invoke(this,e,d,O,N)}catch(D){if(this._zoneDelegate.handleError(this,D))throw D}}finally{b=b.parent}}runTask(e,d,O){if(e.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(e.zone||K).name+"; Execution: "+this.name+")");let N=e,{type:D,data:{isPeriodic:_e=!1,isRefreshable:ae=!1}={}}=e;if(e.state===X&&(D===W||D===y))return;let ne=e.state!=H;ne&&N._transitionTo(H,h);let Ee=S;S=N,b={parent:b,zone:this};try{D==y&&e.data&&!_e&&!ae&&(e.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,N,d,O)}catch(l){if(this._zoneDelegate.handleError(this,l))throw l}}finally{let l=e.state;if(l!==X&&l!==Y)if(D==W||_e||ae&&l===k)ne&&N._transitionTo(h,H,k);else{let a=N._zoneDelegates;this._updateTaskCount(N,-1),ne&&N._transitionTo(X,H,X),ae&&(N._zoneDelegates=a)}b=b.parent,S=Ee}}scheduleTask(e){if(e.zone&&e.zone!==this){let O=this;for(;O;){if(O===e.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${e.zone.name}`);O=O.parent}}e._transitionTo(k,X);let d=[];e._zoneDelegates=d,e._zone=this;try{e=this._zoneDelegate.scheduleTask(this,e)}catch(O){throw e._transitionTo(Y,k,X),this._zoneDelegate.handleError(this,O),O}return e._zoneDelegates===d&&this._updateTaskCount(e,1),e.state==k&&e._transitionTo(h,k),e}scheduleMicroTask(e,d,O,N){return this.scheduleTask(new T(F,e,d,O,N,void 0))}scheduleMacroTask(e,d,O,N,D){return this.scheduleTask(new T(y,e,d,O,N,D))}scheduleEventTask(e,d,O,N,D){return this.scheduleTask(new T(W,e,d,O,N,D))}cancelTask(e){if(e.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(e.zone||K).name+"; Execution: "+this.name+")");if(!(e.state!==h&&e.state!==H)){e._transitionTo(G,h,H);try{this._zoneDelegate.cancelTask(this,e)}catch(d){throw e._transitionTo(Y,G),this._zoneDelegate.handleError(this,d),d}return this._updateTaskCount(e,-1),e._transitionTo(X,G),e.runCount=-1,e}}_updateTaskCount(e,d){let O=e._zoneDelegates;d==-1&&(e._zoneDelegates=null);for(let N=0;NM.hasTask(c,e),onScheduleTask:(M,_,c,e)=>M.scheduleTask(c,e),onInvokeTask:(M,_,c,e,d,O)=>M.invokeTask(c,e,d,O),onCancelTask:(M,_,c,e)=>M.cancelTask(c,e)};class f{get zone(){return this._zone}constructor(_,c,e){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this._zone=_,this._parentDelegate=c,this._forkZS=e&&(e&&e.onFork?e:c._forkZS),this._forkDlgt=e&&(e.onFork?c:c._forkDlgt),this._forkCurrZone=e&&(e.onFork?this._zone:c._forkCurrZone),this._interceptZS=e&&(e.onIntercept?e:c._interceptZS),this._interceptDlgt=e&&(e.onIntercept?c:c._interceptDlgt),this._interceptCurrZone=e&&(e.onIntercept?this._zone:c._interceptCurrZone),this._invokeZS=e&&(e.onInvoke?e:c._invokeZS),this._invokeDlgt=e&&(e.onInvoke?c:c._invokeDlgt),this._invokeCurrZone=e&&(e.onInvoke?this._zone:c._invokeCurrZone),this._handleErrorZS=e&&(e.onHandleError?e:c._handleErrorZS),this._handleErrorDlgt=e&&(e.onHandleError?c:c._handleErrorDlgt),this._handleErrorCurrZone=e&&(e.onHandleError?this._zone:c._handleErrorCurrZone),this._scheduleTaskZS=e&&(e.onScheduleTask?e:c._scheduleTaskZS),this._scheduleTaskDlgt=e&&(e.onScheduleTask?c:c._scheduleTaskDlgt),this._scheduleTaskCurrZone=e&&(e.onScheduleTask?this._zone:c._scheduleTaskCurrZone),this._invokeTaskZS=e&&(e.onInvokeTask?e:c._invokeTaskZS),this._invokeTaskDlgt=e&&(e.onInvokeTask?c:c._invokeTaskDlgt),this._invokeTaskCurrZone=e&&(e.onInvokeTask?this._zone:c._invokeTaskCurrZone),this._cancelTaskZS=e&&(e.onCancelTask?e:c._cancelTaskZS),this._cancelTaskDlgt=e&&(e.onCancelTask?c:c._cancelTaskDlgt),this._cancelTaskCurrZone=e&&(e.onCancelTask?this._zone:c._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;let d=e&&e.onHasTask,O=c&&c._hasTaskZS;(d||O)&&(this._hasTaskZS=d?e:s,this._hasTaskDlgt=c,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,e.onScheduleTask||(this._scheduleTaskZS=s,this._scheduleTaskDlgt=c,this._scheduleTaskCurrZone=this._zone),e.onInvokeTask||(this._invokeTaskZS=s,this._invokeTaskDlgt=c,this._invokeTaskCurrZone=this._zone),e.onCancelTask||(this._cancelTaskZS=s,this._cancelTaskDlgt=c,this._cancelTaskCurrZone=this._zone))}fork(_,c){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,_,c):new n(_,c)}intercept(_,c,e){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,_,c,e):c}invoke(_,c,e,d,O){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,_,c,e,d,O):c.apply(e,d)}handleError(_,c){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,_,c):!0}scheduleTask(_,c){let e=c;if(this._scheduleTaskZS)this._hasTaskZS&&e._zoneDelegates.push(this._hasTaskDlgtOwner),e=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,_,c),e||(e=c);else if(c.scheduleFn)c.scheduleFn(c);else if(c.type==F)z(c);else throw new Error("Task is missing scheduleFn.");return e}invokeTask(_,c,e,d){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,_,c,e,d):c.callback.apply(e,d)}cancelTask(_,c){let e;if(this._cancelTaskZS)e=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,_,c);else{if(!c.cancelFn)throw Error("Task is not cancelable");e=c.cancelFn(c)}return e}hasTask(_,c){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,_,c)}catch(e){this.handleError(_,e)}}_updateTaskCount(_,c){let e=this._taskCounts,d=e[_],O=e[_]=d+c;if(O<0)throw new Error("More tasks executed then were scheduled.");if(d==0||O==0){let N={microTask:e.microTask>0,macroTask:e.macroTask>0,eventTask:e.eventTask>0,change:_};this.hasTask(this._zone,N)}}}class T{constructor(_,c,e,d,O,N){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=_,this.source=c,this.data=d,this.scheduleFn=O,this.cancelFn=N,!e)throw new Error("callback is not defined");this.callback=e;let D=this;_===W&&d&&d.useG?this.invoke=T.invokeTask:this.invoke=function(){return T.invokeTask.call(ce,D,this,arguments)}}static invokeTask(_,c,e){_||(_=this),Q++;try{return _.runCount++,_.zone.runTask(_,c,e)}finally{Q==1&&J(),Q--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(X,k)}_transitionTo(_,c,e){if(this._state===c||this._state===e)this._state=_,_==X&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${_}', expecting state '${c}'${e?" or '"+e+"'":""}, was '${this._state}'.`)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}let g=ee("setTimeout"),p=ee("Promise"),C=ee("then"),E=[],P=!1,j;function V(M){if(j||ce[p]&&(j=ce[p].resolve(0)),j){let _=j[C];_||(_=j.then),_.call(j,M)}else ce[g](M,0)}function z(M){Q===0&&E.length===0&&V(J),M&&E.push(M)}function J(){if(!P){for(P=!0;E.length;){let M=E;E=[];for(let _=0;_b,onUnhandledError:q,microtaskDrainDone:q,scheduleMicroTask:z,showUncaughtError:()=>!n[ee("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:q,patchMethod:()=>q,bindArguments:()=>[],patchThen:()=>q,patchMacroTask:()=>q,patchEventPrototype:()=>q,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>q,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>q,wrapWithCurrentZone:()=>q,filterProperties:()=>[],attachOriginToPatched:()=>q,_redefineProperty:()=>q,patchCallbacks:()=>q,nativeScheduleMicroTask:V},b={parent:null,zone:new n(null,null)},S=null,Q=0;function q(){}return i("Zone","Zone"),n}function _t(){let t=globalThis,r=t[ee("forceDuplicateZoneCheck")]===!0;if(t.Zone&&(r||typeof t.Zone.__symbol__!="function"))throw new Error("Zone already loaded.");return t.Zone??=dt(),t.Zone}var be=Object.getOwnPropertyDescriptor,Ae=Object.defineProperty,je=Object.getPrototypeOf,Et=Object.create,Tt=Array.prototype.slice,He="addEventListener",xe="removeEventListener",Le=ee(He),Ie=ee(xe),le="true",ue="false",Pe=ee("");function Ve(t,r){return Zone.current.wrap(t,r)}function Ge(t,r,i,n,s){return Zone.current.scheduleMacroTask(t,r,i,n,s)}var x=ee,De=typeof window<"u",pe=De?window:void 0,$=De&&pe||globalThis,gt="removeAttribute";function Fe(t,r){for(let i=t.length-1;i>=0;i--)typeof t[i]=="function"&&(t[i]=Ve(t[i],r+"_"+i));return t}function yt(t,r){let i=t.constructor.name;for(let n=0;n{let p=function(){return g.apply(this,Fe(arguments,i+"."+s))};return he(p,g),p})(f)}}}function tt(t){return t?t.writable===!1?!1:!(typeof t.get=="function"&&typeof t.set>"u"):!0}var nt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Se=!("nw"in $)&&typeof $.process<"u"&&$.process.toString()==="[object process]",Be=!Se&&!nt&&!!(De&&pe.HTMLElement),rt=typeof $.process<"u"&&$.process.toString()==="[object process]"&&!nt&&!!(De&&pe.HTMLElement),Ce={},mt=x("enable_beforeunload"),Ye=function(t){if(t=t||$.event,!t)return;let r=Ce[t.type];r||(r=Ce[t.type]=x("ON_PROPERTY"+t.type));let i=this||t.target||$,n=i[r],s;if(Be&&i===pe&&t.type==="error"){let f=t;s=n&&n.call(this,f.message,f.filename,f.lineno,f.colno,f.error),s===!0&&t.preventDefault()}else s=n&&n.apply(this,arguments),t.type==="beforeunload"&&$[mt]&&typeof s=="string"?t.returnValue=s:s!=null&&!s&&t.preventDefault();return s};function $e(t,r,i){let n=be(t,r);if(!n&&i&&be(i,r)&&(n={enumerable:!0,configurable:!0}),!n||!n.configurable)return;let s=x("on"+r+"patched");if(t.hasOwnProperty(s)&&t[s])return;delete n.writable,delete n.value;let f=n.get,T=n.set,g=r.slice(2),p=Ce[g];p||(p=Ce[g]=x("ON_PROPERTY"+g)),n.set=function(C){let E=this;if(!E&&t===$&&(E=$),!E)return;typeof E[p]=="function"&&E.removeEventListener(g,Ye),T&&T.call(E,null),E[p]=C,typeof C=="function"&&E.addEventListener(g,Ye,!1)},n.get=function(){let C=this;if(!C&&t===$&&(C=$),!C)return null;let E=C[p];if(E)return E;if(f){let P=f.call(this);if(P)return n.set.call(this,P),typeof C[gt]=="function"&&C.removeAttribute(r),P}return null},Ae(t,r,n),t[s]=!0}function ot(t,r,i){if(r)for(let n=0;nfunction(T,g){let p=i(T,g);return p.cbIdx>=0&&typeof g[p.cbIdx]=="function"?Ge(p.name,g[p.cbIdx],p,s):f.apply(T,g)})}function he(t,r){t[x("OriginalDelegate")]=r}var Je=!1,Me=!1;function kt(){try{let t=pe.navigator.userAgent;if(t.indexOf("MSIE ")!==-1||t.indexOf("Trident/")!==-1)return!0}catch{}return!1}function vt(){if(Je)return Me;Je=!0;try{let t=pe.navigator.userAgent;(t.indexOf("MSIE ")!==-1||t.indexOf("Trident/")!==-1||t.indexOf("Edge/")!==-1)&&(Me=!0)}catch{}return Me}function Ke(t){return typeof t=="function"}function Qe(t){return typeof t=="number"}var me=!1;if(typeof window<"u")try{let t=Object.defineProperty({},"passive",{get:function(){me=!0}});window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch{me=!1}var bt={useG:!0},te={},st={},it=new RegExp("^"+Pe+"(\\w+)(true|false)$"),ct=x("propagationStopped");function at(t,r){let i=(r?r(t):t)+ue,n=(r?r(t):t)+le,s=Pe+i,f=Pe+n;te[t]={},te[t][ue]=s,te[t][le]=f}function Pt(t,r,i,n){let s=n&&n.add||He,f=n&&n.rm||xe,T=n&&n.listeners||"eventListeners",g=n&&n.rmAll||"removeAllListeners",p=x(s),C="."+s+":",E="prependListener",P="."+E+":",j=function(k,h,H){if(k.isRemoved)return;let G=k.callback;typeof G=="object"&&G.handleEvent&&(k.callback=y=>G.handleEvent(y),k.originalDelegate=G);let Y;try{k.invoke(k,h,[H])}catch(y){Y=y}let F=k.options;if(F&&typeof F=="object"&&F.once){let y=k.originalDelegate?k.originalDelegate:k.callback;h[f].call(h,H.type,y,F)}return Y};function V(k,h,H){if(h=h||t.event,!h)return;let G=k||h.target||t,Y=G[te[h.type][H?le:ue]];if(Y){let F=[];if(Y.length===1){let y=j(Y[0],G,h);y&&F.push(y)}else{let y=Y.slice();for(let W=0;W{throw W})}}}let z=function(k){return V(this,k,!1)},J=function(k){return V(this,k,!0)};function K(k,h){if(!k)return!1;let H=!0;h&&h.useG!==void 0&&(H=h.useG);let G=h&&h.vh,Y=!0;h&&h.chkDup!==void 0&&(Y=h.chkDup);let F=!1;h&&h.rt!==void 0&&(F=h.rt);let y=k;for(;y&&!y.hasOwnProperty(s);)y=je(y);if(!y&&k[s]&&(y=k),!y||y[p])return!1;let W=h&&h.eventNameToString,L={},w=y[p]=y[s],b=y[x(f)]=y[f],S=y[x(T)]=y[T],Q=y[x(g)]=y[g],q;h&&h.prepend&&(q=y[x(h.prepend)]=y[h.prepend]);function M(o,u){return!me&&typeof o=="object"&&o?!!o.capture:!me||!u?o:typeof o=="boolean"?{capture:o,passive:!0}:o?typeof o=="object"&&o.passive!==!1?{...o,passive:!0}:o:{passive:!0}}let _=function(o){if(!L.isExisting)return w.call(L.target,L.eventName,L.capture?J:z,L.options)},c=function(o){if(!o.isRemoved){let u=te[o.eventName],v;u&&(v=u[o.capture?le:ue]);let R=v&&o.target[v];if(R){for(let m=0;mre.zone.cancelTask(re);o.call(Te,"abort",ie,{once:!0}),re.removeAbortListener=()=>Te.removeEventListener("abort",ie)}if(L.target=null,ke&&(ke.taskData=null),Ue&&(L.options.once=!0),!me&&typeof re.options=="boolean"||(re.options=se),re.target=Z,re.capture=Oe,re.eventName=A,U&&(re.originalDelegate=B),I?ge.unshift(re):ge.push(re),m)return Z}};return y[s]=a(w,C,N,D,F),q&&(y[E]=a(q,P,d,D,F,!0)),y[f]=function(){let o=this||t,u=arguments[0];h&&h.transferEventName&&(u=h.transferEventName(u));let v=arguments[2],R=v?typeof v=="boolean"?!0:v.capture:!1,m=arguments[1];if(!m)return b.apply(this,arguments);if(G&&!G(b,m,o,arguments))return;let I=te[u],Z;I&&(Z=I[R?le:ue]);let A=Z&&o[Z];if(A)for(let B=0;Bfunction(s,f){s[ct]=!0,n&&n.apply(s,f)})}function Rt(t,r){r.patchMethod(t,"queueMicrotask",i=>function(n,s){Zone.current.scheduleMicroTask("queueMicrotask",s[0])})}var Re=x("zoneTask");function ye(t,r,i,n){let s=null,f=null;r+=n,i+=n;let T={};function g(C){let E=C.data;E.args[0]=function(){return C.invoke.apply(this,arguments)};let P=s.apply(t,E.args);return Qe(P)?E.handleId=P:(E.handle=P,E.isRefreshable=Ke(P.refresh)),C}function p(C){let{handle:E,handleId:P}=C.data;return f.call(t,E??P)}s=fe(t,r,C=>function(E,P){if(Ke(P[0])){let j={isRefreshable:!1,isPeriodic:n==="Interval",delay:n==="Timeout"||n==="Interval"?P[1]||0:void 0,args:P},V=P[0];P[0]=function(){try{return V.apply(this,arguments)}finally{let{handle:H,handleId:G,isPeriodic:Y,isRefreshable:F}=j;!Y&&!F&&(G?delete T[G]:H&&(H[Re]=null))}};let z=Ge(r,P[0],j,g,p);if(!z)return z;let{handleId:J,handle:K,isRefreshable:X,isPeriodic:k}=z.data;if(J)T[J]=z;else if(K&&(K[Re]=z,X&&!k)){let h=K.refresh;K.refresh=function(){let{zone:H,state:G}=z;return G==="notScheduled"?(z._state="scheduled",H._updateTaskCount(z,1)):G==="running"&&(z._state="scheduling"),h.call(this)}}return K??J??z}else return C.apply(t,P)}),f=fe(t,i,C=>function(E,P){let j=P[0],V;Qe(j)?(V=T[j],delete T[j]):(V=j?.[Re],V?j[Re]=null:V=j),V?.type?V.cancelFn&&V.zone.cancelTask(V):C.apply(t,P)})}function Ct(t,r){let{isBrowser:i,isMix:n}=r.getGlobalObjects();if(!i&&!n||!t.customElements||!("customElements"in t))return;let s=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"];r.patchCallbacks(r,t.customElements,"customElements","define",s)}function Dt(t,r){if(Zone[r.symbol("patchEventTarget")])return;let{eventNames:i,zoneSymbolEventNames:n,TRUE_STR:s,FALSE_STR:f,ZONE_SYMBOL_PREFIX:T}=r.getGlobalObjects();for(let p=0;pf.target===t);if(!n||n.length===0)return r;let s=n[0].ignoreProperties;return r.filter(f=>s.indexOf(f)===-1)}function et(t,r,i,n){if(!t)return;let s=ut(t,r,i);ot(t,s,n)}function Ze(t){return Object.getOwnPropertyNames(t).filter(r=>r.startsWith("on")&&r.length>2).map(r=>r.substring(2))}function Ot(t,r){if(Se&&!rt||Zone[t.symbol("patchEvents")])return;let i=r.__Zone_ignore_on_properties,n=[];if(Be){let s=window;n=n.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);let f=kt()?[{target:s,ignoreProperties:["error"]}]:[];et(s,Ze(s),i&&i.concat(f),je(s))}n=n.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let s=0;s{let i=r[t.__symbol__("legacyPatch")];i&&i()}),t.__load_patch("timers",r=>{let i="set",n="clear";ye(r,i,n,"Timeout"),ye(r,i,n,"Interval"),ye(r,i,n,"Immediate")}),t.__load_patch("requestAnimationFrame",r=>{ye(r,"request","cancel","AnimationFrame"),ye(r,"mozRequest","mozCancel","AnimationFrame"),ye(r,"webkitRequest","webkitCancel","AnimationFrame")}),t.__load_patch("blocking",(r,i)=>{let n=["alert","prompt","confirm"];for(let s=0;sfunction(C,E){return i.current.run(T,r,E,p)})}}),t.__load_patch("EventTarget",(r,i,n)=>{St(r,n),Dt(r,n);let s=r.XMLHttpRequestEventTarget;s&&s.prototype&&n.patchEventTarget(r,n,[s.prototype])}),t.__load_patch("MutationObserver",(r,i,n)=>{ve("MutationObserver"),ve("WebKitMutationObserver")}),t.__load_patch("IntersectionObserver",(r,i,n)=>{ve("IntersectionObserver")}),t.__load_patch("FileReader",(r,i,n)=>{ve("FileReader")}),t.__load_patch("on_property",(r,i,n)=>{Ot(n,r)}),t.__load_patch("customElements",(r,i,n)=>{Ct(r,n)}),t.__load_patch("XHR",(r,i)=>{C(r);let n=x("xhrTask"),s=x("xhrSync"),f=x("xhrListener"),T=x("xhrScheduled"),g=x("xhrURL"),p=x("xhrErrorBeforeScheduled");function C(E){let P=E.XMLHttpRequest;if(!P)return;let j=P.prototype;function V(w){return w[n]}let z=j[Le],J=j[Ie];if(!z){let w=E.XMLHttpRequestEventTarget;if(w){let b=w.prototype;z=b[Le],J=b[Ie]}}let K="readystatechange",X="scheduled";function k(w){let b=w.data,S=b.target;S[T]=!1,S[p]=!1;let Q=S[f];z||(z=S[Le],J=S[Ie]),Q&&J.call(S,K,Q);let q=S[f]=()=>{if(S.readyState===S.DONE)if(!b.aborted&&S[T]&&w.state===X){let _=S[i.__symbol__("loadfalse")];if(S.status!==0&&_&&_.length>0){let c=w.invoke;w.invoke=function(){let e=S[i.__symbol__("loadfalse")];for(let d=0;dfunction(w,b){return w[s]=b[2]==!1,w[g]=b[1],G.apply(w,b)}),Y="XMLHttpRequest.send",F=x("fetchTaskAborting"),y=x("fetchTaskScheduling"),W=fe(j,"send",()=>function(w,b){if(i.current[y]===!0||w[s])return W.apply(w,b);{let S={target:w,url:w[g],isPeriodic:!1,args:b,aborted:!1},Q=Ge(Y,h,S,k,H);w&&w[p]===!0&&!S.aborted&&Q.state===X&&Q.invoke()}}),L=fe(j,"abort",()=>function(w,b){let S=V(w);if(S&&typeof S.type=="string"){if(S.cancelFn==null||S.data&&S.data.aborted)return;S.zone.cancelTask(S)}else if(i.current[F]===!0)return L.apply(w,b)})}}),t.__load_patch("geolocation",r=>{r.navigator&&r.navigator.geolocation&&yt(r.navigator.geolocation,["getCurrentPosition","watchPosition"])}),t.__load_patch("PromiseRejectionEvent",(r,i)=>{function n(s){return function(f){lt(r,s).forEach(g=>{let p=r.PromiseRejectionEvent;if(p){let C=new p(s,{promise:f.promise,reason:f.rejection});g.invoke(C)}})}}r.PromiseRejectionEvent&&(i[x("unhandledPromiseRejectionHandler")]=n("unhandledrejection"),i[x("rejectionHandledHandler")]=n("rejectionhandled"))}),t.__load_patch("queueMicrotask",(r,i,n)=>{Rt(r,n)})}function Lt(t){t.__load_patch("ZoneAwarePromise",(r,i,n)=>{let s=Object.getOwnPropertyDescriptor,f=Object.defineProperty;function T(l){if(l&&l.toString===Object.prototype.toString){let a=l.constructor&&l.constructor.name;return(a||"")+": "+JSON.stringify(l)}return l?l.toString():Object.prototype.toString.call(l)}let g=n.symbol,p=[],C=r[g("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,E=g("Promise"),P=g("then"),j="__creationTrace__";n.onUnhandledError=l=>{if(n.showUncaughtError()){let a=l&&l.rejection;a?console.error("Unhandled Promise rejection:",a instanceof Error?a.message:a,"; Zone:",l.zone.name,"; Task:",l.task&&l.task.source,"; Value:",a,a instanceof Error?a.stack:void 0):console.error(l)}},n.microtaskDrainDone=()=>{for(;p.length;){let l=p.shift();try{l.zone.runGuarded(()=>{throw l.throwOriginal?l.rejection:l})}catch(a){z(a)}}};let V=g("unhandledPromiseRejectionHandler");function z(l){n.onUnhandledError(l);try{let a=i[V];typeof a=="function"&&a.call(this,l)}catch{}}function J(l){return l&&l.then}function K(l){return l}function X(l){return D.reject(l)}let k=g("state"),h=g("value"),H=g("finally"),G=g("parentPromiseValue"),Y=g("parentPromiseState"),F="Promise.then",y=null,W=!0,L=!1,w=0;function b(l,a){return o=>{try{M(l,a,o)}catch(u){M(l,!1,u)}}}let S=function(){let l=!1;return function(o){return function(){l||(l=!0,o.apply(null,arguments))}}},Q="Promise resolved with itself",q=g("currentTaskTrace");function M(l,a,o){let u=S();if(l===o)throw new TypeError(Q);if(l[k]===y){let v=null;try{(typeof o=="object"||typeof o=="function")&&(v=o&&o.then)}catch(R){return u(()=>{M(l,!1,R)})(),l}if(a!==L&&o instanceof D&&o.hasOwnProperty(k)&&o.hasOwnProperty(h)&&o[k]!==y)c(o),M(l,o[k],o[h]);else if(a!==L&&typeof v=="function")try{v.call(o,u(b(l,a)),u(b(l,!1)))}catch(R){u(()=>{M(l,!1,R)})()}else{l[k]=a;let R=l[h];if(l[h]=o,l[H]===H&&a===W&&(l[k]=l[Y],l[h]=l[G]),a===L&&o instanceof Error){let m=i.currentTask&&i.currentTask.data&&i.currentTask.data[j];m&&f(o,q,{configurable:!0,enumerable:!1,writable:!0,value:m})}for(let m=0;m{try{let I=l[h],Z=!!o&&H===o[H];Z&&(o[G]=I,o[Y]=R);let A=a.run(m,void 0,Z&&m!==X&&m!==K?[]:[I]);M(o,!0,A)}catch(I){M(o,!1,I)}},o)}let d="function ZoneAwarePromise() { [native code] }",O=function(){},N=r.AggregateError;class D{static toString(){return d}static resolve(a){return a instanceof D?a:M(new this(null),W,a)}static reject(a){return M(new this(null),L,a)}static withResolvers(){let a={};return a.promise=new D((o,u)=>{a.resolve=o,a.reject=u}),a}static any(a){if(!a||typeof a[Symbol.iterator]!="function")return Promise.reject(new N([],"All promises were rejected"));let o=[],u=0;try{for(let m of a)u++,o.push(D.resolve(m))}catch{return Promise.reject(new N([],"All promises were rejected"))}if(u===0)return Promise.reject(new N([],"All promises were rejected"));let v=!1,R=[];return new D((m,I)=>{for(let Z=0;Z{v||(v=!0,m(A))},A=>{R.push(A),u--,u===0&&(v=!0,I(new N(R,"All promises were rejected")))})})}static race(a){let o,u,v=new this((I,Z)=>{o=I,u=Z});function R(I){o(I)}function m(I){u(I)}for(let I of a)J(I)||(I=this.resolve(I)),I.then(R,m);return v}static all(a){return D.allWithCallback(a)}static allSettled(a){return(this&&this.prototype instanceof D?this:D).allWithCallback(a,{thenCallback:u=>({status:"fulfilled",value:u}),errorCallback:u=>({status:"rejected",reason:u})})}static allWithCallback(a,o){let u,v,R=new this((A,B)=>{u=A,v=B}),m=2,I=0,Z=[];for(let A of a){J(A)||(A=this.resolve(A));let B=I;try{A.then(U=>{Z[B]=o?o.thenCallback(U):U,m--,m===0&&u(Z)},U=>{o?(Z[B]=o.errorCallback(U),m--,m===0&&u(Z)):v(U)})}catch(U){v(U)}m++,I++}return m-=2,m===0&&u(Z),R}constructor(a){let o=this;if(!(o instanceof D))throw new Error("Must be an instanceof Promise.");o[k]=y,o[h]=[];try{let u=S();a&&a(u(b(o,W)),u(b(o,L)))}catch(u){M(o,!1,u)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return D}then(a,o){let u=this.constructor?.[Symbol.species];(!u||typeof u!="function")&&(u=this.constructor||D);let v=new u(O),R=i.current;return this[k]==y?this[h].push(R,v,a,o):e(this,R,v,a,o),v}catch(a){return this.then(null,a)}finally(a){let o=this.constructor?.[Symbol.species];(!o||typeof o!="function")&&(o=D);let u=new o(O);u[H]=H;let v=i.current;return this[k]==y?this[h].push(v,u,a,a):e(this,v,u,a,a),u}}D.resolve=D.resolve,D.reject=D.reject,D.race=D.race,D.all=D.all;let _e=r[E]=r.Promise;r.Promise=D;let ae=g("thenPatched");function ne(l){let a=l.prototype,o=s(a,"then");if(o&&(o.writable===!1||!o.configurable))return;let u=a.then;a[P]=u,l.prototype.then=function(v,R){return new D((I,Z)=>{u.call(this,I,Z)}).then(v,R)},l[ae]=!0}n.patchThen=ne;function Ee(l){return function(a,o){let u=l.apply(a,o);if(u instanceof D)return u;let v=u.constructor;return v[ae]||ne(v),u}}return _e&&(ne(_e),fe(r,"fetch",l=>Ee(l))),Promise[i.__symbol__("uncaughtPromiseErrors")]=p,D})}function It(t){t.__load_patch("toString",r=>{let i=Function.prototype.toString,n=x("OriginalDelegate"),s=x("Promise"),f=x("Error"),T=function(){if(typeof this=="function"){let E=this[n];if(E)return typeof E=="function"?i.call(E):Object.prototype.toString.call(E);if(this===Promise){let P=r[s];if(P)return i.call(P)}if(this===Error){let P=r[f];if(P)return i.call(P)}}return i.call(this)};T[n]=i,Function.prototype.toString=T;let g=Object.prototype.toString,p="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?p:g.call(this)}})}function Mt(t,r,i,n,s){let f=Zone.__symbol__(n);if(r[f])return;let T=r[f]=r[n];r[n]=function(g,p,C){return p&&p.prototype&&s.forEach(function(E){let P=`${i}.${n}::`+E,j=p.prototype;try{if(j.hasOwnProperty(E)){let V=t.ObjectGetOwnPropertyDescriptor(j,E);V&&V.value?(V.value=t.wrapWithCurrentZone(V.value,P),t._redefineProperty(p.prototype,E,V)):j[E]&&(j[E]=t.wrapWithCurrentZone(j[E],P))}else j[E]&&(j[E]=t.wrapWithCurrentZone(j[E],P))}catch{}}),T.call(r,g,p,C)},t.attachOriginToPatched(r[n],T)}function Zt(t){t.__load_patch("util",(r,i,n)=>{let s=Ze(r);n.patchOnProperties=ot,n.patchMethod=fe,n.bindArguments=Fe,n.patchMacroTask=pt;let f=i.__symbol__("BLACK_LISTED_EVENTS"),T=i.__symbol__("UNPATCHED_EVENTS");r[T]&&(r[f]=r[T]),r[f]&&(i[f]=i[T]=r[f]),n.patchEventPrototype=wt,n.patchEventTarget=Pt,n.isIEOrEdge=vt,n.ObjectDefineProperty=Ae,n.ObjectGetOwnPropertyDescriptor=be,n.ObjectCreate=Et,n.ArraySlice=Tt,n.patchClass=ve,n.wrapWithCurrentZone=Ve,n.filterProperties=ut,n.attachOriginToPatched=he,n._redefineProperty=Object.defineProperty,n.patchCallbacks=Mt,n.getGlobalObjects=()=>({globalSources:st,zoneSymbolEventNames:te,eventNames:s,isBrowser:Be,isMix:rt,isNode:Se,TRUE_STR:le,FALSE_STR:ue,ZONE_SYMBOL_PREFIX:Pe,ADD_EVENT_LISTENER_STR:He,REMOVE_EVENT_LISTENER_STR:xe})})}function At(t){Lt(t),It(t),Zt(t)}var ft=_t();At(ft);Nt(ft);window.global=window; diff --git a/styles-P2IVOYYR.css b/styles-P2IVOYYR.css new file mode 100644 index 0000000..33fa5d5 --- /dev/null +++ b/styles-P2IVOYYR.css @@ -0,0 +1 @@ +html,*,*:before,*:after{box-sizing:border-box}html{line-height:1.15;-webkit-text-size-adjust:100%}*{outline:0}html,body{margin:0;padding:0}main{display:block}h1{font-size:2em;margin:0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}[hidden]{display:none}img{max-width:100%;display:inline-block;vertical-align:top}a{text-decoration:none}@font-face{font-family:Poppins;src:url("./media/1-I5WRTGCC.woff2") format("woff2");font-weight:300;font-style:normal;font-display:swap}@font-face{font-family:Poppins;src:url("./media/2-SO44HAFF.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:Poppins;src:url("./media/3-O3LXZE7D.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap}@font-face{font-family:Poppins;src:url("./media/4-BAXDZN46.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}@font-face{font-family:Material Icons;font-style:normal;font-weight:400;src:url("./media/5-F4YEHKRH.woff2") format("woff2")}.material-icons,i{font-family:Material Icons;font-weight:400;font-style:normal;font-size:26px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr}html{font-size:16px;overflow:hidden;height:100%}body{font-family:Poppins,sans-serif;color:var(--c-text-primary);line-height:1.4;position:relative;overflow:hidden;height:100%;display:flex;flex-direction:column}.container{margin-left:auto;margin-right:auto;padding:10px;max-width:100%;width:100%}.container-box{display:flex;align-items:center}.container-box .w-input__checkbox{margin-right:5px}.showTable{padding:20px 20px 0!important}*::-webkit-scrollbar-track{box-shadow:inset 0 0 6px var(--c-shadow);background-color:#fff;display:none}*::-webkit-scrollbar{width:5px;height:5px;background-color:#fff}* ::-webkit-scrollbar-thumb{box-shadow:inset 0 0 6px var(--c-basic);background-color:var(--c-basic)}@keyframes iziT-bounceInUp{0%{opacity:0;transform:translateY(200px)}50%{opacity:1;transform:translateY(-10px)}70%{transform:translateY(5px)}to{transform:translateY(0)}}@keyframes iziT-fadeIn{0%{opacity:0}to{opacity:1}}@keyframes iziT-fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes iziT-fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes iziT-bounceInLeft{0%{opacity:0;transform:translate(280px)}50%{opacity:1;transform:translate(-20px)}70%{transform:translate(10px)}to{transform:translate(0)}}@keyframes iziT-bounceInDown{0%{opacity:0;transform:translateY(-200px)}50%{opacity:1;transform:translateY(10px)}70%{transform:translateY(-5px)}to{transform:translateY(0)}}.alert-wrapper{position:fixed;bottom:50px;left:0;width:100%;height:60px;overflow:hidden}.alert{display:flex;-webkit-box-align:center;align-items:center;width:auto;background:#3aed92;color:#fff;max-width:700px;margin:0 auto;transform:translateY(300px) scale(0);transition:.3s all ease-in-out}.alert._show{transform:translateY(0) scale(1);transition:.3s all ease-in-out}.alert-icon{min-width:60px;min-height:60px;position:relative;display:flex;justify-content:center;align-items:center;background-color:#2bd17d}.alert-icon:before{content:"";position:absolute;width:25px;height:25px;border-radius:50%;border:2px solid #fff}.alert-icon:after{content:"";position:absolute;top:22px;width:7px;height:11px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}.alert-text{padding:0 20px;word-break:break-all;overflow:auto;height:60px}.alert-text .text-block{width:99%}.alert-text .text-block__text{text-overflow:ellipsis;overflow:hidden;white-space:pre}.alert-close{min-width:50px;margin-left:auto;font-size:25px;display:flex;justify-content:center;align-items:center}.font-bold{font-weight:700}.waw-alert__progress{bottom:0;position:absolute;width:100%;margin-bottom:0;border-radius:50px}.waw-alert__progress:hover span{animation-play-state:paused}.waw-alert__progress span{display:block;width:100%;height:2px;background-color:#a5a5a5ed;animation-name:waw-alert-progress;animation-duration:10s;border-radius:50px}.waw-alert__progress span._red{background-color:#ffafb4}.waw-alert__progress span._green{background-color:#a6efb8}.waw-alert__progress span._yellow{background-color:#fff9b2}.waw-alert__progress span._orange,.waw-alert__progress span._blue{background-color:#ffcfa5}.waw-alert__progress span._white{background-color:#fff}.waw-alert__progress span._black{background-color:#000}.waw-alert:hover .waw-alert__progress>span{animation-play-state:paused}.waw-alert__close{width:15px;height:15px;opacity:.3;position:relative;order:2}.waw-alert__close:hover{opacity:1}.waw-alert__close:before,.waw-alert__close:after{cursor:pointer;position:absolute;left:15px;content:" ";height:12px;width:2px;background-color:#47525d}.waw-alert__close:before{transform:rotate(45deg)}.waw-alert__close:after{transform:rotate(-45deg)}@keyframes waw-alert-progress{0%{width:100%}to{width:0%}}.waw-alert-container{font-size:0;height:100px;width:100%;transform:translateZ(0);backface-visibility:hidden;transition:.3s all ease-in-out;opacity:1}.waw-alert-container._close{opacity:0;transition:.3s all ease-in-out}.waw-alert{display:inline-block;clear:both;position:relative;font-family:Lato,Tahoma,Arial;font-size:14px;padding:8px 25px 9px 0;background:#eeeeeee6;border-color:#eeeeeee6;width:100%;pointer-events:all;cursor:default;transform:translate(0);-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;min-height:54px}.waw-alert>.waw-alert-progressbar{position:absolute;left:0;bottom:0;width:100%;z-index:1;background:#fff3}.waw-alert>.waw-alert-progressbar>div{height:2px;width:100%;background:#0000004d;border-radius:0 0 3px 3px}.waw-alert>.waw-alert-close{position:absolute;right:0;top:0;border:0;padding:0;opacity:.6;width:42px;height:100%;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAJPAAACTwBcGfW0QAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAD3SURBVFiF1ZdtDoMgDEBfdi4PwAX8vLFn0qT7wxantojKupmQmCi8R4tSACpgjC2ICCUbEBa8ingjsU1AXRBeR8aLN64FiknswN8CYefBBDQ3whuFESy7WyQMeC0ipEI0A+0FeBvHUFN8xPaUhAH/iKoWsnXHGegy4J0yxialOfaHJAz4bhRzQzgDvdGnz4GbAonZbCQMuBm1K/kcFu8Mp1N2cFFpsxsMuJqqbIGExGl4loARajU1twskJLLhIsID7+tvUoDnIjTg5T9DPH9EBrz8rxjPzciAl9+O8SxI8CzJ8CxKFfh3ynK8Dyb8wNHM/XDqejx/AtNyPO87tNybAAAAAElFTkSuQmCC) no-repeat 50% 50%;background-size:8px;cursor:pointer;outline:none}.waw-alert>.waw-alert-close:hover{opacity:1}.waw-alert>.waw-alert-body{position:relative;padding:0 0 0 10px;height:auto;min-height:36px;margin:0 0 0 15px;text-align:left;display:flex;justify-content:space-between;align-items:center}.waw-alert>.waw-alert-body:after{content:"";display:table;clear:both}.waw-alert>.waw-alert-body .waw-alert-texts{margin:10px 0 0;padding-right:2px;display:inline-block;float:left;display:flex;justify-content:space-between;align-items:center}.waw-alert>.waw-alert-body .waw-alert-icon{height:100%;position:absolute;left:0;top:50%;display:table;font-size:23px;line-height:24px;margin-top:-12px;color:#000;width:24px;height:24px}.waw-alert>.waw-alert-body .waw-alert-title{padding:0;margin:0 10px 0 0;line-height:16px;font-size:14px;text-align:left;float:left;color:#000;white-space:normal;font-weight:700}.waw-alert>.waw-alert-body .waw-alert-message{padding:0;font-size:14px;line-height:16px;text-align:left;float:left;color:#0009;white-space:normal}@media only screen and (min-width: 568px){.waw-alert-wrapper{padding:10px 15px}.waw-alert{margin:5px;border-radius:3px;width:auto}.waw-alert:after{content:"";z-index:-1;position:absolute;top:0;left:0;width:100%;height:100%;border-radius:3px;box-shadow:inset 0 -10px 20px -10px #0003,inset 0 0 5px #0000001a,0 8px 8px -5px #00000040}.waw-alert:not(.waw-alert-rtl) .waw-alert-cover{border-radius:3px 0 0 3px}.waw-alert.waw-alert-rtl .waw-alert-cover{border-radius:0 3px 3px 0}.waw-alert.waw-alert-color-dark:after{box-shadow:inset 0 -10px 20px -10px #ffffff4d,0 10px 10px -5px #00000040}.waw-alert.waw-alert-balloon .waw-alert-progressbar{background:transparent}.waw-alert.waw-alert-balloon:after{box-shadow:0 10px 10px -5px #00000040,inset 0 10px 20px -5px #00000040}.waw-alert-target .waw-alert:after{box-shadow:inset 0 -10px 20px -10px #0003,inset 0 0 5px #0000001a}}.waw-alert.waw-alert-theme-dark{background:#565c70;border-color:#565c70}.waw-alert.waw-alert-theme-dark .waw-alert-title{color:#fff}.waw-alert.waw-alert-theme-dark .waw-alert-message{color:#ffffffb3;font-weight:300}.waw-alert.waw-alert-theme-dark .waw-alert-icon{color:#fff}.waw-alert.waw-alert-color-red{background:#ffafb4e6;border-color:#ffafb4e6}.waw-alert.waw-alert-color-orange{background:#ffcfa5e6;border-color:#ffcfa5e6}.waw-alert.waw-alert-color-yellow{background:#fff9b2e6;border-color:#fff9b2e6}.waw-alert.waw-alert-color-blue{background:#9ddeffe6;border-color:#9ddeffe6}.waw-alert.waw-alert-color-green{background:#a6efb8e6;border-color:#a6efb8e6}.waw-alert.slideIn,.waw-alert .slideIn{-webkit-animation:iziT-slideIn 1s cubic-bezier(.16,.81,.32,1) both;-moz-animation:iziT-slideIn 1s cubic-bezier(.16,.81,.32,1) both;animation:iziT-slideIn 1s cubic-bezier(.16,.81,.32,1) both}.waw-alert.bounceInLeft{-webkit-animation:iziT-bounceInLeft .7s ease-in-out both;animation:iziT-bounceInLeft .7s ease-in-out both}.waw-alert.bounceInRight{-webkit-animation:iziT-bounceInRight .85s ease-in-out both;animation:iziT-bounceInRight .85s ease-in-out both}.waw-alert.bounceInDown{-webkit-animation:iziT-bounceInDown .7s ease-in-out both;animation:iziT-bounceInDown .7s ease-in-out both}.waw-alert.bounceInUp{-webkit-animation:iziT-bounceInUp .7s ease-in-out both;animation:iziT-bounceInUp .7s ease-in-out both}.height{height:auto!important}.w-btn{font-size:var(--fs);font-weight:500;font-family:var(--ff-base);background-color:var(--c-primary);border-radius:var(--b-radius-btn);transition:var(--transition);color:var(--c-white);position:relative;padding:11px 25px;line-height:19px;white-space:nowrap;display:inline-flex;justify-content:center;align-items:center;-webkit-user-select:none;user-select:none;text-align:center;width:100%;border:none;cursor:pointer;transition:all .3s;border-radius:4px}.w-btn._primary{background-color:var(--c-primary)}.w-btn._primary:hover{background-color:var(--c-primary-hover)}.w-btn._second{border:1px solid #256eff;background-color:var(--c-white);color:#256eff}.w-btn._danger{background-color:var(--c-secondary);color:#fff}.w-btn._danger:hover{background:var(--c-secondary-hover)}.w-btn._link{background:transparent;color:var(--c-text-primary);font-size:14px;font-weight:400}.w-btn._link:hover{color:var(--c-text-secondary)}.w-btn:disabled{background-color:var(--c-grey-dark);cursor:default}.w-btn:disabled:hover{background-color:var(--c-grey-dark)}.w-switch{display:flex;align-items:center;cursor:pointer}.w-switch__toggle{position:relative;width:45px;height:25px}.w-switch__input{display:none}.w-switch__input:checked+.w-switch__slider{background-color:var(--c-primary);border:1px solid var(--c-primary)}.w-switch__input:focus+.w-switch__slider{box-shadow:0 0 1px var(--c-shadow)}.w-switch__input:checked+.w-switch__slider:before{transform:translate(15px,-50%);background-color:#fff}.w-switch__slider{position:absolute;inset:0;background-color:#e7e7e7;border:1px solid var(--c-border);outline:none;transition:.3s all ease-in-out}.w-switch__slider:before{position:absolute;content:"";height:16px;width:16px;left:6px;top:50%;transform:translateY(-50%);background-color:#fff;transition:.3s all ease-in-out}.w-switch__slider._round{border-radius:34px}.w-switch__slider._round:before{border-radius:50%}.w-switch__text{margin-left:10px;font-size:14px;line-height:14px;letter-spacing:.3px;color:var(--c-text)}.form-container{margin-bottom:15px}.w-forms{position:relative;display:flex;flex-direction:column;width:100%;gap:10px}.w-forms__title{display:inline-block;color:var(--c-text-primary);font-size:19px;line-height:18px;letter-spacing:.3px;font-weight:500;margin-bottom:15px}.w-forms__component label{padding:0!important}.w-forms__input,.w-forms__textarea,.w-forms__select{height:42px;background-color:transparent;border:1px solid var(--c-border);border-radius:8px;color:var(--c-text-secondary);font-size:14px;line-height:20px;transition:.3s all ease-in-out;width:100%;display:block;letter-spacing:.3px;padding:10px}.w-forms__input::placeholder,.w-forms__textarea::placeholder,.w-forms__select::placeholder{color:var(--c-placeholder);transition:.3s all ease-in-out}.w-forms__input:focus,.w-forms__textarea:focus,.w-forms__select:focus{transition:.3s all ease-in-out;border-color:var(--c-primary)}.w-forms__input:disabled,.w-forms__textarea:disabled,.w-forms__select:disabled{background-color:#e7e7e7;border-color:#e7e7e7;color:#e7e7e7;cursor:default;opacity:.6}.w-forms__input[type=time]{display:block;-webkit-appearance:textfield;-moz-appearance:textfield}.w-forms__select{appearance:none;padding-right:30px}.w-forms__chevron{position:absolute;top:30px;right:12px}.w-forms__chevron:before{color:var(--c-primary)}.w-forms__textarea{min-height:80px;resize:vertical;max-height:250px;margin-top:10px}.w-card{display:flex;flex-direction:column;background-color:var(--c-bg-secondary);border-radius:var(--card-border-radius, 8px);box-shadow:var(--card-box-shadow, 0 2px 8px rgba(0, 0, 0, .1));overflow:hidden;margin-bottom:var(--card-margin-bottom, 20px)}.w-card__header{padding:var(--card-header-padding, 16px);border-bottom:var(--card-border-width, 1px) solid var(--card-border-color, #eaeaea);flex-shrink:0;display:flex;justify-content:space-between;align-items:center}.w-card__body{padding:var(--card-body-padding, 16px);flex-grow:1;display:flex;flex-direction:column}.w-card__body-section{padding:var(--card-section-padding, 8px 0);border-bottom:var(--card-border-width, 1px) solid var(--card-border-color, #eaeaea)}.w-card__body-section:last-child{border-bottom:none}.w-card__footer{padding:var(--card-footer-padding, 16px);border-top:var(--card-border-width, 1px) solid var(--card-border-color, #eaeaea);background-color:var(--card-footer-background, #f5f5f5);flex-shrink:0}.w-checkbox__body{display:inline-flex;-webkit-user-select:none;user-select:none;color:var(--c-text-primary);cursor:pointer;padding:6px 8px;border-radius:6px;overflow:hidden;transition:.3s all ease-in-out}.w-checkbox__body:not(:last-child){margin-right:6px}.w-checkbox__body:hover{background:rgba(var(--c-primary),.09)}.w-checkbox__body:hover .w-checkbox__svg{border-color:var(--c-primary)}@media (max-width: 991.9px){.w-checkbox__body{width:100%;margin-bottom:4px;display:inline-block}}.w-checkbox__input{display:none}.w-checkbox__input:checked+.w-checkbox__body .w-checkbox__svg{background:var(--c-primary);border-color:var(--c-primary);animation:wave .4s ease}.w-checkbox__input:checked+.w-checkbox__body .w-checkbox__svg svg{stroke-dashoffset:0}.w-checkbox__svg{position:relative;width:18px;height:18px;display:inline-block;border-radius:4px;transform:scale(1);border:1px solid var(--c-border);transition:.3s all ease-in-out;box-shadow:0 1px 1px var(--c-shadow)}.w-checkbox__svg svg{position:absolute;top:3px;left:2px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:16px;stroke-dashoffset:16px;transition:all .3s ease;transition-delay:.1s;transform:translateZ(0)}.w-checkbox__text{padding-left:8px;line-height:18px}.w-checkbox__svg-icon{position:absolute;width:0;height:0;pointer-events:none;-webkit-user-select:none;user-select:none}.w-radio{position:relative;display:flex;align-items:center;cursor:pointer;line-height:20px;font-size:16px;margin:5px 0}.w-radio:hover .w-radio__label:after{transform:scale(3.6)}.w-radio__label{position:relative;display:block;float:left;margin-right:10px;width:20px;height:20px;border:2px solid var(--c-border);border-radius:100%;min-width:20px}.w-radio__label:after{content:"";position:absolute;top:3px;left:3px;width:10px;height:10px;border-radius:100%;background:var(--c-primary);transform:scale(0);transition:.3s all ease-in-out;opacity:.08;pointer-events:none}.w-radio__input{display:none}.w-radio__input:checked+.w-radio__label{border-color:var(--c-primary)}.w-radio__input:checked+.w-radio__label:after{transform:scale(1);transition:all .2s cubic-bezier(.35,.9,.4,.9);opacity:1}.wtable{background:var(--c-bg-secondary);box-shadow:var(--c-shadow);border-radius:10px;padding-bottom:70px;max-width:100%;height:auto;margin:0 auto;position:relative}@media (max-width: 991px){.wtable{padding-left:10px;padding-right:10px}}@media screen and (max-width: 599px){.wtable{padding-bottom:50px}}.wtable .table{border-collapse:collapse;margin:0;padding:0;width:100%;table-layout:auto}.wtable .table-plus-btn{cursor:pointer;font-size:16px;font-weight:500;border:0;display:flex;justify-content:center;align-items:center;min-width:140px;height:45px;border-radius:4px;padding:5px 12px;background-color:var(--c-primary);color:var(--c-white);border:1px solid var(--c-primary)}.wtable .table-plus-btn:hover{box-shadow:0 0 3px 0 var(--c-primary);background-color:var(--c-primary)}.wtable .table-plus-btn span{margin-left:5px}@media screen and (max-width: 599px){.wtable .table-plus-btn span{display:none}}@media screen and (max-width: 599px){.wtable .table-plus-btn{position:absolute;right:0;min-width:auto;font-size:28px}}.wtable .table-search{position:relative;display:flex;flex-grow:1;margin:0 30px}.wtable .table-search--active .table-search__input{opacity:1}.wtable .table-search__input{width:100%;height:45px;border-radius:4px;padding:0 10px;color:inherit;background:var(--c-bg-secondary);border:1px solid var(--c-primary)}.wtable .table-search__input:focus{border:2px solid var(--c-primary)}.wtable .table-search__icon{width:40px;position:absolute;right:0;top:50%;transform:translateY(-50%);z-index:4;cursor:pointer}.wtable .table-search__icon-mobile{display:none;margin-left:auto;margin-right:130px}@media (max-width: 599px){.wtable .table-search{display:none}.wtable .table-search.table-search--active{display:block;position:absolute;margin:0;width:100%;z-index:2}.wtable .table-search.table-search--active+.table-plus-btn{display:none}.wtable .table-search.table-search--active+.w-forms__title{display:none}.wtable .table-search__icon-mobile{display:inherit}}.wtable .table .table-header__sort{position:relative;cursor:pointer}.wtable .table .table-header__sort .icon-arrow{transform:rotate(90deg);font-size:var(--fs);position:absolute;top:3px;cursor:pointer}.wtable .table th{position:relative;padding:0 16px;height:48px;text-align:left;font-weight:500;font-size:calc(var(--fs) - 2px);font-size:var(--fs);line-height:calc(var(--fs) + 8px);letter-spacing:var(--letter-spacing);text-transform:capitalize;color:var(--c-text-primary);border-bottom:1px solid var(--c-border);overflow:hidden;text-overflow:ellipsis}.wtable .table th .icon-arrow{opacity:0;transition:.3s all ease-in-out}.wtable .table th:hover .icon-arrow{opacity:1;transition:.3s all ease-in-out}.wtable .table th .table-header__sort._sortActiveDown .icon-arrow{transform:rotate(-90deg);opacity:1}.wtable .table th .table-header__sort._sortActiveUp .icon-arrow{opacity:1}@media all and (max-width: 991.9px){.wtable .table th{display:none;text-align:left}}.wtable .table th:last-child{width:140px}.wtable .table td{cursor:pointer;padding:5px 16px;height:60px;text-align:left;vertical-align:middle;font-size:calc(var(--fs) - 2px);line-height:calc(var(--fs) + 8px);letter-spacing:var(--letter-spacing);color:var(--c-text-primary);word-break:break-word;display:table-cell;border-bottom:1px solid var(--c-border)}@media all and (max-width: 991.9px){.wtable .table td{display:flex;align-items:center;justify-content:space-between;column-gap:5px;border-bottom:0;border:2px solid var(--c-border);height:auto;min-height:60px}}.wtable .table td:before{content:attr(data-label);word-break:keep-all;display:inline-block;font-weight:500;font-size:var(--fs);line-height:calc(var(--fs) + 8px);letter-spacing:var(--letter-spacing);text-transform:capitalize;color:var(--c-text-primary);text-overflow:ellipsis}@media (min-width: 992px){.wtable .table td:before{display:none}}.wtable .table tr:last-child td{border-bottom:none}@media (max-width: 991.9px){.wtable .table tr:last-child td{border-bottom:2px solid var(--c-border)}}.wtable .table tr td:last-child{border-right:none}@media (max-width: 992px){.wtable .table tr td:last-child{border-right:2px solid var(--c-border)}}@media (max-width: 992px){.wtable .table tr td:first-child{margin-top:20px}}.wtable .table tr th:last-child{border-right:none}.wtable .table .table__actions{display:flex;gap:6px}.wtable .table .table__actions a i{color:var(--c-text-primary)}@media (max-width: 991.9px){.wtable .table .table-body__last-td{margin-bottom:20px;border-bottom:3px solid var(--c-border)}}.wtable .table .table-body__last-td i{font-size:22px;width:22px}.wtable .table .table-body__last-td i:hover{color:var(--c-primary)}.wtable .table-footer{height:65px;display:flex;gap:120px;position:absolute;width:100%;left:0;bottom:0;padding:0 8px 0 15px;align-items:center;justify-content:space-between}@media screen and (max-width: 599px){.wtable .table-footer{height:90px;padding:10px 20px;flex-direction:column;position:static;gap:20px}}.wtable .table-footer__pagination{display:flex;align-items:center;position:relative;bottom:15px}@media (max-width: 599px){.wtable .table-footer__pagination{bottom:0;left:5px}}.wtable .table-footer__arrow{border:0;background:none;width:30px;height:30px;margin-right:30px;cursor:pointer}.wtable .table-footer__arrow .chevron{position:relative;display:block;min-width:22px;min-height:22px;border:2px solid transparent;border-radius:100px}.wtable .table-footer__arrow .chevron:before{position:absolute;width:2px;height:90%;background-color:var(--c-grey);mix-blend-mode:overlay;top:8%}.wtable .table-footer__arrow .chevron:after{content:"";display:block;box-sizing:border-box;position:absolute;width:10px;height:10px;border-bottom:2px solid var(--c-grey);border-right:2px solid var(--c-grey);mix-blend-mode:overlay;transform:rotate(135deg);left:2px;top:2px}.wtable .table-footer__arrow:disabled i:after{border-color:#9f9f9f}.wtable .table-footer__arrow:disabled i:before{background:#9f9f9f}.wtable .table-footer__arrow._start .chevron{position:relative;left:1px}.wtable .table-footer__arrow._start .chevron:after{left:8px;top:4px}.wtable .table-footer__arrow._start .chevron:before{display:block;left:2px;content:""}.wtable .table-footer__arrow._left .chevron{position:relative;left:4px}.wtable .table-footer__arrow._left .chevron:after{top:4px}.wtable .table-footer__arrow._right .chevron:after{transform:rotate(315deg);top:4px}.wtable .table-footer__arrow._end .chevron{position:relative;left:2px}.wtable .table-footer__arrow._end .chevron:after{left:-3px;top:4px;transform:rotate(315deg)}.wtable .table-footer__arrow._end .chevron:before{display:block;left:11px;content:""}.wtable .table-footer .item-page{font-size:12px;color:#9f9f9f;letter-spacing:1px;display:flex;align-items:center}.wtable .table-footer .item-page__dropdown{position:relative;margin:0 10px;font-weight:700}.wtable .table-footer .item-page__dropdown .caption{background-color:transparent;padding:11px 24px;border-radius:4px;border:1px solid var(--c-border);cursor:pointer}.wtable .table-footer .item-page__dropdown .caption:hover{background-color:var(--c-primary);color:var(--c-bg-secondary)}.wtable .table-footer .item-page__dropdown .list{position:absolute;background-color:var(--c-bg-secondary);width:100%;bottom:100%;flex-direction:column;border-radius:4px 4px 0 0;display:none;z-index:999}.wtable .table-footer .item-page__dropdown .list .item>div{padding:11px 20px;cursor:pointer;text-align:center}.wtable .table-footer .item-page__dropdown .list .item:hover{background-color:var(--c-primary);color:var(--c-bg-secondary)}.wtable .table-footer .item-page__dropdown .list .item.selected{font-weight:700}.wtable .table-footer .item-page__dropdown.open .caption{border-radius:0 0 4px 4px}.wtable .table-footer .item-page__dropdown.open .list{display:flex;flex-direction:column-reverse;border:1px solid var(--c-border);border-bottom:0}:host{display:block}.w-select{width:100%}.w-select__label{margin-bottom:5px}.w-select__body{position:relative;cursor:pointer;display:flex;min-height:50px;height:50px;align-items:center;border:2px solid var(--c-text-primary);border-radius:12px;transition:var(--transition)}.w-select__body._active{border-color:var(--c-primary)}.w-select__header{display:flex;align-items:center;width:100%;overflow:hidden;white-space:nowrap;padding:14px 10px 14px 40px;position:relative}.w-select__header svg{position:absolute;left:10px;top:50%;transform:translateY(-50%)}.w-select__header svg path{fill:var(--c-primary)}.w-select__text{margin-right:10px;flex-grow:1;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.w-select__text .text-overflow{overflow:hidden;text-overflow:ellipsis;word-break:keep-all;color:var(--c-text-primary)}.w-select__arrow{margin-right:15px;transition:var(--transition);display:flex;align-items:center;justify-content:center;border-radius:50%}.w-select__arrow svg{width:12px;height:12px}.w-select__arrow svg path{fill:var(--c-text-primary)}.w-select__arrow._active{transform:rotate(180deg)}.w-select .item{padding:10px;transition:var(--transition);border-bottom:1px solid var(--c-text-primary)}.w-select .item:hover{background:var(--c-shadow);border-bottom:1px solid var(--c-primary);color:var(--c-primary)}.w-select__popup{z-index:9;width:100%;left:0;position:absolute;top:calc(100% + 10px);background:var(--c-white);box-shadow:0 0 4px var(--c-border);border-radius:10px;border:2px solid var(--c-primary);background:var(--c-bg-secondary);color:var(--c-text-primary);padding-bottom:15px;padding-top:15px}.w-select__popup._search{padding-top:60px}.w-select__popup .popup-block{max-height:180px;overflow-y:auto;padding:0 15px;margin-right:10px}.w-select__popup .popup-block__empty-search{padding:15px;text-align:center;color:var(--c-text-primary)}.w-select__search{top:10px;position:absolute;display:flex;justify-content:center;align-items:center;width:100%;left:0;padding:0 15px}.w-select__search .search-input{outline:none;width:100%;cursor:pointer;display:flex;padding:10px 30px 10px 10px;align-items:center;border:1px solid var(--c-border);border-radius:10px;transition:var(--transition)}.w-select__search .search-icon{position:absolute;top:50%;right:25px;transform:translateY(-50%)}.w-select *::-webkit-scrollbar{width:5px;height:5px;background-color:var(--c-white)}.w-select * ::-webkit-scrollbar-thumb{border-radius:0;background-color:var(--c-border)}.w-select .checkbox__body{display:inline-flex;-webkit-user-select:none;user-select:none;cursor:pointer;padding:6px 8px;color:var(--c-text);border-radius:6px;overflow:hidden;transition:var(--transition)}.w-select .checkbox__body:not(:last-child){margin-right:6px}.w-select .checkbox__body:hover{background:rgba(var(--c-sky),.09)}.w-select .checkbox__body:hover .checkbox__svg{border-color:var(--c-sky)}.w-select .checkbox__input{display:none}.w-select .checkbox__input:checked+.checkbox__body .checkbox__svg{background:var(--c-sky);border-color:var(--c-sky);animation:wave .4s ease}.w-select .checkbox__input:checked+.checkbox__body .checkbox__svg svg{stroke-dashoffset:0}.w-select .checkbox__svg{position:relative;min-width:18px;min-height:18px;width:18px;height:18px;display:inline-block;border-radius:4px;transform:scale(1);border:1px solid var(--c-border);transition:var(--transition);box-shadow:0 1px 1px var(--c-shadow)}.w-select .checkbox__svg svg{position:absolute;top:3px;left:2px;fill:none;stroke:var(--c-white);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:16px;stroke-dashoffset:16px;transition:all .3s ease;transition-delay:.1s;transform:translateZ(0)}.w-select .checkbox__text{padding-left:8px;line-height:18px;text-overflow:ellipsis;overflow:hidden}.w-select .checkbox__svg-icon{position:absolute;width:0;height:0;pointer-events:none;-webkit-user-select:none;user-select:none}@keyframes wave{50%{transform:scale(.9)}}.selected{font-weight:700}:root{--c-white: #fff;--c-basic: #3558ae;--c-primary: #256eff;--c-primary-hover: #0051f1;--c-secondary: rgb(197, 61, 61);--c-secondary-hover: rgb(150, 42, 42);--c-bg-primary: #f3f4f7;--c-bg-secondary: #ffffff;--c-bg-tertiary: #fcfdfe;--c-border: #f0f1f7;--c-shadow: #f3f3f3;--c-text-primary: #666666;--c-text-secondary: #19235c;--c-placeholder: #313335ab;--c-img-round: 50%;--card-background: #fefefe;--card-border-radius: 10px;--card-box-shadow: 0 4px 12px rgba(0, 0, 0, .15);--card-margin-bottom: 24px;--card-header-padding: 20px;--card-header-background: #e0e0e0;--card-body-padding: 20px;--card-section-padding: 10px 0;--card-footer-padding: 20px;--card-footer-background: #e0e0e0;--card-border-width: 2px;--card-border-color: #cccccc;--file-img-border-radius: 50%;--file-add-bg: #28a745;--file-add-bg-hover: #218838;--file-item-border-radius: 10px}html.dark:root{--c-white: #fff;--c-basic: #333;--c-bg-primary: #282828;--c-bg-secondary: #343434;--c-bg-tertiary: #404040;--c-border: #404040;--c-shadow: #444444;--c-text-primary: #ffffff;--c-text-secondary: #ffffff;--c-placeholder: #d3cdcd}#html .modal{padding:20px}#html .modal-content{background:var(--c-bg-secondary);border-radius:8px;border:1px solid var(--c-border);max-width:700px;padding-top:45px}#html .modal .close{top:-2px;right:5px;font-size:50px}#html .modal .close:hover{color:var(--c-text-secondary)}#html body._modal-small .modal-content,#html .forms_modal .modal-content{max-width:500px;width:100%}.modal{position:fixed;z-index:9999;left:0;top:0;width:100%;height:100%;overflow-y:auto;background-color:#000;background-color:#00000080}.modal-content{position:relative;background-color:#fff;margin:15% auto;padding:40px 20px 20px;border:1px solid #888;min-width:20%;max-width:80%}@media screen and (max-width: 767px){.modal-content{max-width:100%!important}}.close{color:#aaa;position:absolute;right:10px;top:10px;font-size:32px;line-height:1}.close:hover,.close:focus{color:#000;text-decoration:none;cursor:pointer}.big .modal-content{margin-top:5%!important;margin-bottom:0!important;max-width:100%!important}.d-b{display:block!important}.d-ib{display:inline-block!important}.d-f{display:flex!important}.fd-c{flex-direction:column!important}.jc-sb{justify-content:space-between!important}.jc-fs{justify-content:flex-start!important}.jc-c{justify-content:center!important}.jc-fe{justify-content:flex-end!important}.ai-c{align-items:center!important}.ai-fe{align-items:flex-end!important}.ai-fs{align-items:flex-start!important}.ai-sb{align-items:space-between!important}.fg-1{flex-grow:1!important}.m0{margin:0!important}.mx0{margin-left:0!important;margin-right:0!important}.my0{margin-top:0!important;margin-bottom:0!important}.mt0{margin-top:0!important}.mt10{margin-top:10px!important}.mb0{margin-bottom:0!important}.mb15{margin-bottom:15px!important}.ml0{margin-left:0!important}.mr0{margin-right:0!important}