diff --git a/CNAME b/CNAME new file mode 100644 index 0000000..617a0cb --- /dev/null +++ b/CNAME @@ -0,0 +1 @@ +questapp.webart.work 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-AZGCLL5W.js b/chunk-AZGCLL5W.js new file mode 100644 index 0000000..0d13938 --- /dev/null +++ b/chunk-AZGCLL5W.js @@ -0,0 +1 @@ +import{B as b,D as u,Da as O,G as r,H as o,Ja as S,M as c,N as v,Pa as j,Qa as k,Ra as I,Sa as A,Ta as E,V as m,Wa as F,X as f,Xa as N,Za as D,aa as M,ab as z,ba as y,bb as B,cb as J,db as L,eb as $,k as h,m as w,ma as T,n as C,y as d,ya as P,z as g}from"./chunk-PQ76DGOU.js";function W(n,_){if(n&1&&m(0),n&2){let t=_.$implicit;f(" ",t==null||t.slug==null?null:t.slug.split(".")[0]," ")}}function q(n,_){if(n&1&&(m(0),M(1,"translate")),n&2){let t=_.$implicit,e=v();f(" ",y(1,1,t==null?null:t.slug,e.ts.now)," ")}}var H=(()=>{class n{setPage(t){this.page=t,localStorage.setItem("page",t)}get rows(){return this.ts.words.filter(t=>this.page&&typeof t=="object"?this.page===t.slug.split(".")[0]:!0)}constructor(t,e,a){this.ts=t,this._form=e,this._http=a,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(l=>{this._http.post("/api/translate/create",{appId:this.ts.appId,slug:i.slug,lang:this.ts.language.code,translate:l.translate}),this.ts.translates[this.ts.language.code][i.slug]=l.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(t=!1){let e=t?this.rows.filter(s=>!this.ts.translates[this.ts.language.code][s.slug]):this.rows,a=JSON.stringify(e.map(s=>s.word)),i=e.map(s=>s.slug),l=JSON.stringify(e.map(s=>this.ts.translate(s.slug)));this._form.modal(this.formAll,[],{words:a,translates:l}).then(s=>{if(l===s.translates)return;let x=JSON.parse(s.translates);for(let p=0;pe.code===t))}static{this.\u0275fac=function(e){return new(e||n)(g(k),g(D),g(S))}}static{this.\u0275cmp=w({type:n,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(e,a){e&1&&(r(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"label",4)(5,"div",5),m(6," Common.Select language "),o(),r(7,"wselect",6),c("modelChange",function(l){return a.set_language(l)}),o()(),r(8,"label",4)(9,"div",5),m(10," Common.Select page "),o(),r(11,"wselect",7),c("modelChange",function(l){return a.setPage(l)}),o()()(),r(12,"div",8)(13,"wbutton",9),c("click",function(){return a.translateAll()}),r(14,"span",10),m(15," translate "),o(),r(16,"span",11),m(17,"Common.Translate all"),o()(),r(18,"wbutton",9),c("click",function(){return a.translateAll(!0)}),r(19,"span",10),m(20," translate "),o(),r(21,"span",11),m(22,"Common.Translate missed"),o()()()(),r(23,"wtable",12),b(24,W,1,1,"ng-template",13)(25,q,2,4,"ng-template",14),o()()()),e&2&&(d(7),u("items",a.ts.languages)("select",a.ts.language.code),d(4),u("items",a.pages)("select",a.page),d(12),u("columns",a.columns)("config",a.config)("rows",a.rows))},dependencies:[I,A,N,F,L,B],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)}']})}}return n})();var G=[{path:"",component:H}],dt=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275mod=C({type:n})}static{this.\u0275inj=h({imports:[P.forChild(G),J,T,E,O,z,j,$]})}}return n})();export{dt as TranslatesModule}; diff --git a/chunk-NWCEFA7O.js b/chunk-NWCEFA7O.js new file mode 100644 index 0000000..b0c0011 --- /dev/null +++ b/chunk-NWCEFA7O.js @@ -0,0 +1 @@ +import{e as U}from"./chunk-SPCT3XEP.js";import{Aa as W,B as y,Ba as j,Ca as N,D as T,G as f,H as u,I as w,L as x,La as P,M as I,N as M,Qa as D,V as C,Wa as E,X as S,Xa as z,Y as F,Ya as B,Z as A,Za as R,_ as L,k as g,m as v,n as b,p as d,q as _,y as k,ya as V,z as c}from"./chunk-PQ76DGOU.js";function Y(s,h){if(s&1&&C(0),s&2){let o=h.$implicit;S(" ",o.components==null?null:o.components.length," ")}}function G(s,h){if(s&1){let o=x();f(0,"label",3)(1,"input",4),I("ngModelChange",function(){let m=d(o).$implicit,l=M();return _(l.changeStatus(m))}),L("ngModelChange",function(m){let l=d(o).$implicit;return A(l.active,m)||(l.active=m),_(m)}),u(),w(2,"span",5),f(3,"span",6),C(4,"Active"),u()()}if(s&2){let o=h.$implicit;k(),F("ngModel",o.active)}}var $=(()=>{class s{get rows(){return this._cfs.customforms}constructor(o,n,m,l){this._translate=o,this._cfs=n,this._alert=m,this._form=l,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,p)=>{this._cfs.update(i,{callback:p.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 a=this._form.getTemplateFields(t.components[e].name);t.components[e].fields=t.components[e].fields.filter(r=>a.includes(r.name));for(let r of a)t.components[e].fields.find(q=>q.name===r)||t.components[e].fields.push({value:"",name:r});i["key"+e]=t.components[e].key;for(let r of t.components[e].fields)i[r.name+e]=r.value}let p=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,p))}),this._form.modal(this.formComponents,{label:"Add component",click:()=>{let e=i.addComponent;this.components.push(this._addCustomComponent(e,this.components.length,p)),t.components.push({name:i.addComponent,fields:this._form.getTemplateFields(e).map(a=>({value:"",name:a}))})}},i,()=>{},{size:"big"}).then(()=>{for(let e=0;e({name:this._form.getCustomTemplateFields(o)[i]||"Text",key:i+n,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"+n,fields:[{name:"Placeholder",value:"fill key"},{name:"Label",value:"Key"}]},...l,{name:"Button",fields:[{name:"Label",value:"Remove"},{name:"Click",value:()=>{m(n)}}]}]}}changeStatus(o){setTimeout(()=>{if(o.active)for(let n of this._cfs.customforms)n._id===o._id||n.formId!==o.formId||n.active&&(n.active=!1,this._cfs.updateAfterWhile(n));this._cfs.updateAfterWhile(o)})}static{this.\u0275fac=function(n){return new(n||s)(c(D),c(B),c(P),c(R))}}static{this.\u0275cmp=v({type:s,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(n,m){n&1&&(f(0,"wtable",0),y(1,Y,1,1,"ng-template",1)(2,G,5,1,"ng-template",2),u()),n&2&&T("columns",m.columns)("config",m.config)("rows",m.rows)},dependencies:[W,j,N,z,E]})}}return s})();var H=[{path:"",component:$}],me=(()=>{class s{static{this.\u0275fac=function(n){return new(n||s)}}static{this.\u0275mod=b({type:s})}static{this.\u0275inj=g({imports:[V.forChild(H),U]})}}return s})();export{me as CustomformsModule}; diff --git a/chunk-P4ABI5WT.js b/chunk-P4ABI5WT.js new file mode 100644 index 0000000..f5e2ec0 --- /dev/null +++ b/chunk-P4ABI5WT.js @@ -0,0 +1 @@ +import{a as k}from"./chunk-QPR5CHFB.js";import{e as T}from"./chunk-SPCT3XEP.js";import{B as p,D as a,Ea as P,G as f,H as g,L as w,La as v,M as y,N as c,Qa as U,Ua as j,Wa as F,Xa as I,Za as S,ja as M,k as _,m as h,n as u,p as b,q as C,y as x,ya as O,z as o}from"./chunk-PQ76DGOU.js";function A(e,l){if(e&1){let t=w();f(0,"winput",3),y("wChange",function(i){let s=b(t).$implicit,d=c().$implicit,r=c();return s.is[d]=i,C(r.update(s))}),g()}if(e&2){let t=l.$implicit,n=c().$implicit;a("value",t.is[n])}}function D(e,l){if(e&1&&p(0,A,1,1,"ng-template",2),e&2){let t=l.$implicit;a("cell",t)}}var $=(()=>{class e{get roles(){return this._us.roles}get users(){return this._us.users}constructor(t,n,i,s,d){this._translate=t,this._us=n,this._form=i,this._alert=s,this._core=d,this.form=this._form.getForm("user"),this.config={create:()=>{this._form.modal(this.form,{label:"Create",click:(r,m)=>{this._us.create(r,{alert:"User has been created",callback:m.bind(this)})}}).then(this._us.create.bind(this))},update:r=>{this._form.modal(this.form,[],r).then(m=>{this._core.copy(m,r),this._us.update(r,{alert:"User has been updated"})})},delete:r=>{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(r,{name:"admin",alert:"User has been deleted",callback:()=>{}})}}]})}},this.columns=["name","email"];for(let r of this._us.roles)this.columns.push(r)}update(t){this._us.updateAdmin(t)}static{this.\u0275fac=function(n){return new(n||e)(o(U),o(k),o(S),o(v),o(P))}}static{this.\u0275cmp=h({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,i){n&1&&(f(0,"wtable",0),p(1,D,1,1,null,1),g()),n&2&&(a("columns",i.columns)("config",i.config)("rows",i.users),x(),a("ngForOf",i.roles))},dependencies:[M,j,I,F],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;--day-name: #988888;--b-radius-btn: 10px;--transition: all .3s;--events: #4c8e9d;--border: rgba(102, 91, 91, .432)}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;--c-calendar: #141414;--day-name: #dad5d5;--events: #1c2e32;--border: rgb(255 255 255 / 23%)}.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)}"]})}}return e})();var V=[{path:"",component:$}],W=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=u({type:e})}static{this.\u0275inj=_({imports:[O.forChild(V),T]})}}return e})();export{W as UsersModule}; diff --git a/chunk-PQ76DGOU.js b/chunk-PQ76DGOU.js new file mode 100644 index 0000000..a61e0ba --- /dev/null +++ b/chunk-PQ76DGOU.js @@ -0,0 +1,8 @@ +var ph=Object.defineProperty,S0=Object.defineProperties;var T0=Object.getOwnPropertyDescriptors;var Go=Object.getOwnPropertySymbols;var gh=Object.prototype.hasOwnProperty,mh=Object.prototype.propertyIsEnumerable;var hh=(t,n,e)=>n in t?ph(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,b=(t,n)=>{for(var e in n||={})gh.call(n,e)&&hh(t,e,n[e]);if(Go)for(var e of Go(n))mh.call(n,e)&&hh(t,e,n[e]);return t},z=(t,n)=>S0(t,T0(n));var A0=(t,n)=>{var e={};for(var r in t)gh.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(t!=null&&Go)for(var r of Go(t))n.indexOf(r)<0&&mh.call(t,r)&&(e[r]=t[r]);return e};var O0=(t,n)=>{for(var e in n)ph(t,e,{get:n[e],enumerable:!0})};var vt=(t,n,e)=>new Promise((r,i)=>{var o=c=>{try{a(e.next(c))}catch(l){i(l)}},s=c=>{try{a(e.throw(c))}catch(l){i(l)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(o,s);a((e=e.apply(t,n)).next())});function yh(t,n){return Object.is(t,n)}var be=null,Wo=!1,Zo=1,Zt=Symbol("SIGNAL");function K(t){let n=be;return be=t,n}function vh(){return be}var Ni={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 Zc(t){if(Wo)throw new Error("");if(be===null)return;be.consumerOnSignalRead(t);let n=be.nextProducerIndex++;if(Jo(be),nt.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function Qc(t){Jo(t);for(let n=0;n0}function Jo(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function Dh(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function Eh(t){return t.producerNode!==void 0}function Ih(t){let n=Object.create(R0);n.computation=t;let e=()=>{if(_h(n),Zc(n),n.value===Yo)throw n.error;return n.value};return e[Zt]=n,e}var Gc=Symbol("UNSET"),Wc=Symbol("COMPUTING"),Yo=Symbol("ERRORED"),R0=z(b({},Ni),{value:Gc,dirty:!0,error:null,equal:yh,producerMustRecompute(t){return t.value===Gc||t.value===Wc},producerRecomputeValue(t){if(t.value===Wc)throw new Error("Detected cycle in computations.");let n=t.value;t.value=Wc;let e=Qo(t),r;try{r=t.computation()}catch(i){r=Yo,t.error=i}finally{Yc(t,e)}if(n!==Gc&&n!==Yo&&r!==Yo&&t.equal(n,r)){t.value=n;return}t.value=r,t.version++}});function k0(){throw new Error}var xh=k0;function Mh(){xh()}function Sh(t){xh=t}var F0=null;function Th(t){let n=Object.create(Oh);n.value=t;let e=()=>(Zc(n),n.value);return e[Zt]=n,e}function Jc(t,n){Ch()||Mh(),t.equal(t.value,n)||(t.value=n,L0(t))}function Ah(t,n){Ch()||Mh(),Jc(t,n(t.value))}var Oh=z(b({},Ni),{equal:yh,value:void 0});function L0(t){t.version++,N0(),wh(t),F0?.()}function k(t){return typeof t=="function"}function wr(t){let e=t(r=>{Error.call(r),r.stack=new Error().stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var Xo=wr(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription: +${e.map((r,i)=>`${i+1}) ${r.toString()}`).join(` + `)}`:"",this.name="UnsubscriptionError",this.errors=e});function Pi(t,n){if(t){let e=t.indexOf(n);0<=e&&t.splice(e,1)}}var _e=class t{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;let{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(let o of e)o.remove(this);else e.remove(this);let{initialTeardown:r}=this;if(k(r))try{r()}catch(o){n=o instanceof Xo?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{Nh(o)}catch(s){n=n??[],s instanceof Xo?n=[...n,...s.errors]:n.push(s)}}if(n)throw new Xo(n)}}add(n){var e;if(n&&n!==this)if(this.closed)Nh(n);else{if(n instanceof t){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(n)}}_hasParent(n){let{_parentage:e}=this;return e===n||Array.isArray(e)&&e.includes(n)}_addParent(n){let{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(n),e):e?[e,n]:n}_removeParent(n){let{_parentage:e}=this;e===n?this._parentage=null:Array.isArray(e)&&Pi(e,n)}remove(n){let{_finalizers:e}=this;e&&Pi(e,n),n instanceof t&&n._removeParent(this)}};_e.EMPTY=(()=>{let t=new _e;return t.closed=!0,t})();var Xc=_e.EMPTY;function es(t){return t instanceof _e||t&&"closed"in t&&k(t.remove)&&k(t.add)&&k(t.unsubscribe)}function Nh(t){k(t)?t():t.unsubscribe()}var _t={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Cr={setTimeout(t,n,...e){let{delegate:r}=Cr;return r?.setTimeout?r.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){let{delegate:n}=Cr;return(n?.clearTimeout||clearTimeout)(t)},delegate:void 0};function ts(t){Cr.setTimeout(()=>{let{onUnhandledError:n}=_t;if(n)n(t);else throw t})}function Ri(){}var Ph=el("C",void 0,void 0);function Rh(t){return el("E",void 0,t)}function kh(t){return el("N",t,void 0)}function el(t,n,e){return{kind:t,value:n,error:e}}var Hn=null;function br(t){if(_t.useDeprecatedSynchronousErrorHandling){let n=!Hn;if(n&&(Hn={errorThrown:!1,error:null}),t(),n){let{errorThrown:e,error:r}=Hn;if(Hn=null,e)throw r}}else t()}function Fh(t){_t.useDeprecatedSynchronousErrorHandling&&Hn&&(Hn.errorThrown=!0,Hn.error=t)}var zn=class extends _e{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,es(n)&&n.add(this)):this.destination=B0}static create(n,e,r){return new Dr(n,e,r)}next(n){this.isStopped?nl(kh(n),this):this._next(n)}error(n){this.isStopped?nl(Rh(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?nl(Ph,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},V0=Function.prototype.bind;function tl(t,n){return V0.call(t,n)}var rl=class{constructor(n){this.partialObserver=n}next(n){let{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(r){ns(r)}}error(n){let{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(r){ns(r)}else ns(n)}complete(){let{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){ns(e)}}},Dr=class extends zn{constructor(n,e,r){super();let i;if(k(n)||!n)i={next:n??void 0,error:e??void 0,complete:r??void 0};else{let o;this&&_t.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=()=>this.unsubscribe(),i={next:n.next&&tl(n.next,o),error:n.error&&tl(n.error,o),complete:n.complete&&tl(n.complete,o)}):i=n}this.destination=new rl(i)}};function ns(t){_t.useDeprecatedSynchronousErrorHandling?Fh(t):ts(t)}function j0(t){throw t}function nl(t,n){let{onStoppedNotification:e}=_t;e&&Cr.setTimeout(()=>e(t,n))}var B0={closed:!0,next:Ri,error:j0,complete:Ri};var Er=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Qe(t){return t}function il(...t){return ol(t)}function ol(t){return t.length===0?Qe:t.length===1?t[0]:function(e){return t.reduce((r,i)=>i(r),e)}}var G=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){let r=new t;return r.source=this,r.operator=e,r}subscribe(e,r,i){let o=$0(e)?e:new Dr(e,r,i);return br(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(e){try{return this._subscribe(e)}catch(r){e.error(r)}}forEach(e,r){return r=Lh(r),new r((i,o)=>{let s=new Dr({next:a=>{try{e(a)}catch(c){o(c),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(e){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(e)}[Er](){return this}pipe(...e){return ol(e)(this)}toPromise(e){return e=Lh(e),new e((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return t.create=n=>new t(n),t})();function Lh(t){var n;return(n=t??_t.Promise)!==null&&n!==void 0?n:Promise}function U0(t){return t&&k(t.next)&&k(t.error)&&k(t.complete)}function $0(t){return t&&t instanceof zn||U0(t)&&es(t)}function sl(t){return k(t?.lift)}function Q(t){return n=>{if(sl(n))return n.lift(function(e){try{return t(e,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function Z(t,n,e,r,i){return new al(t,n,e,r,i)}var al=class extends zn{constructor(n,e,r,i,o,s){super(n),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=e?function(a){try{e(a)}catch(c){n.error(c)}}:super._next,this._error=i?function(a){try{i(a)}catch(c){n.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){n.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:e}=this;super.unsubscribe(),!e&&((n=this.onFinalize)===null||n===void 0||n.call(this))}}};function Ir(){return Q((t,n)=>{let e=null;t._refCount++;let r=Z(n,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){e=null;return}let i=t._connection,o=e;e=null,i&&(!o||i===o)&&i.unsubscribe(),n.unsubscribe()});t.subscribe(r),r.closed||(e=t.connect())})}var xr=class extends G{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,sl(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){let n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:n}=this;this._subject=this._connection=null,n?.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new _e;let e=this.getSubject();n.add(this.source.subscribe(Z(e,void 0,()=>{this._teardown(),e.complete()},r=>{this._teardown(),e.error(r)},()=>this._teardown()))),n.closed&&(this._connection=null,n=_e.EMPTY)}return n}refCount(){return Ir()(this)}};var Vh=wr(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var de=(()=>{class t extends G{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){let r=new rs(this,this);return r.operator=e,r}_throwIfClosed(){if(this.closed)throw new Vh}next(e){br(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(e)}})}error(e){br(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;let{observers:r}=this;for(;r.length;)r.shift().error(e)}})}complete(){br(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){let{hasError:r,isStopped:i,observers:o}=this;return r||i?Xc:(this.currentObservers=null,o.push(e),new _e(()=>{this.currentObservers=null,Pi(o,e)}))}_checkFinalizedStatuses(e){let{hasError:r,thrownError:i,isStopped:o}=this;r?e.error(i):o&&e.complete()}asObservable(){let e=new G;return e.source=this,e}}return t.create=(n,e)=>new rs(n,e),t})(),rs=class extends de{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.next)===null||r===void 0||r.call(e,n)}error(n){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.error)===null||r===void 0||r.call(e,n)}complete(){var n,e;(e=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||e===void 0||e.call(n)}_subscribe(n){var e,r;return(r=(e=this.source)===null||e===void 0?void 0:e.subscribe(n))!==null&&r!==void 0?r:Xc}};var Ae=class extends de{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){let e=super._subscribe(n);return!e.closed&&n.next(this._value),e}getValue(){let{hasError:n,thrownError:e,_value:r}=this;if(n)throw e;return this._throwIfClosed(),r}next(n){super.next(this._value=n)}};var cl={now(){return(cl.delegate||Date).now()},delegate:void 0};var ki=class extends de{constructor(n=1/0,e=1/0,r=cl){super(),this._bufferSize=n,this._windowTime=e,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,n),this._windowTime=Math.max(1,e)}next(n){let{isStopped:e,_buffer:r,_infiniteTimeWindow:i,_timestampProvider:o,_windowTime:s}=this;e||(r.push(n),!i&&r.push(o.now()+s)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();let e=this._innerSubscribe(n),{_infiniteTimeWindow:r,_buffer:i}=this,o=i.slice();for(let s=0;st.complete());function jh(t){return t&&k(t.schedule)}function ll(t){return t[t.length-1]}function is(t){return k(ll(t))?t.pop():void 0}function Pt(t){return jh(ll(t))?t.pop():void 0}function Bh(t,n){return typeof ll(t)=="number"?t.pop():n}function $h(t,n,e,r){function i(o){return o instanceof e?o:new e(function(s){s(o)})}return new(e||(e=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,n||[])).next())})}function Uh(t){var n=typeof Symbol=="function"&&Symbol.iterator,e=n&&t[n],r=0;if(e)return e.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(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function qn(t){return this instanceof qn?(this.v=t,this):new qn(t)}function Hh(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=e.apply(t,n||[]),i,o=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),i[Symbol.asyncIterator]=function(){return this},i;function s(f){return function(C){return Promise.resolve(C).then(f,d)}}function a(f,C){r[f]&&(i[f]=function(E){return new Promise(function(M,F){o.push([f,E,M,F])>1||c(f,E)})},C&&(i[f]=C(i[f])))}function c(f,C){try{l(r[f](C))}catch(E){h(o[0][3],E)}}function l(f){f.value instanceof qn?Promise.resolve(f.value.v).then(u,d):h(o[0][2],f)}function u(f){c("next",f)}function d(f){c("throw",f)}function h(f,C){f(C),o.shift(),o.length&&c(o[0][0],o[0][1])}}function zh(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=t[Symbol.asyncIterator],e;return n?n.call(t):(t=typeof Uh=="function"?Uh(t):t[Symbol.iterator](),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(o){e[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 Mr=t=>t&&typeof t.length=="number"&&typeof t!="function";function os(t){return k(t?.then)}function ss(t){return k(t[Er])}function as(t){return Symbol.asyncIterator&&k(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 H0(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var ls=H0();function us(t){return k(t?.[ls])}function ds(t){return Hh(this,arguments,function*(){let e=t.getReader();try{for(;;){let{value:r,done:i}=yield qn(e.read());if(i)return yield qn(void 0);yield yield qn(r)}}finally{e.releaseLock()}})}function fs(t){return k(t?.getReader)}function le(t){if(t instanceof G)return t;if(t!=null){if(ss(t))return z0(t);if(Mr(t))return q0(t);if(os(t))return G0(t);if(as(t))return qh(t);if(us(t))return W0(t);if(fs(t))return Z0(t)}throw cs(t)}function z0(t){return new G(n=>{let e=t[Er]();if(k(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function q0(t){return new G(n=>{for(let e=0;e{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,ts)})}function W0(t){return new G(n=>{for(let e of t)if(n.next(e),n.closed)return;n.complete()})}function qh(t){return new G(n=>{Y0(t,n).catch(e=>n.error(e))})}function Z0(t){return qh(ds(t))}function Y0(t,n){var e,r,i,o;return $h(this,void 0,void 0,function*(){try{for(e=zh(t);r=yield e.next(),!r.done;){let s=r.value;if(n.next(s),n.closed)return}}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=e.return)&&(yield o.call(e))}finally{if(i)throw i.error}}n.complete()})}function ze(t,n,e,r=0,i=!1){let o=n.schedule(function(){e(),i?t.add(this.schedule(null,r)):this.unsubscribe()},r);if(t.add(o),!i)return o}function hs(t,n=0){return Q((e,r)=>{e.subscribe(Z(r,i=>ze(r,t,()=>r.next(i),n),()=>ze(r,t,()=>r.complete(),n),i=>ze(r,t,()=>r.error(i),n)))})}function ps(t,n=0){return Q((e,r)=>{r.add(t.schedule(()=>e.subscribe(r),n))})}function Gh(t,n){return le(t).pipe(ps(n),hs(n))}function Wh(t,n){return le(t).pipe(ps(n),hs(n))}function Zh(t,n){return new G(e=>{let r=0;return n.schedule(function(){r===t.length?e.complete():(e.next(t[r++]),e.closed||this.schedule())})})}function Yh(t,n){return new G(e=>{let r;return ze(e,n,()=>{r=t[ls](),ze(e,n,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){e.error(s);return}o?e.complete():e.next(i)},0,!0)}),()=>k(r?.return)&&r.return()})}function gs(t,n){if(!t)throw new Error("Iterable cannot be null");return new G(e=>{ze(e,n,()=>{let r=t[Symbol.asyncIterator]();ze(e,n,()=>{r.next().then(i=>{i.done?e.complete():e.next(i.value)})},0,!0)})})}function Qh(t,n){return gs(ds(t),n)}function Kh(t,n){if(t!=null){if(ss(t))return Gh(t,n);if(Mr(t))return Zh(t,n);if(os(t))return Wh(t,n);if(as(t))return gs(t,n);if(us(t))return Yh(t,n);if(fs(t))return Qh(t,n)}throw cs(t)}function ee(t,n){return n?Kh(t,n):le(t)}function R(...t){let n=Pt(t);return ee(t,n)}function Sr(t,n){let e=k(t)?t:()=>t,r=i=>i.error(e());return new G(n?i=>n.schedule(r,0,i):r)}function ul(t){return!!t&&(t instanceof G||k(t.lift)&&k(t.subscribe))}var Yt=wr(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function j(t,n){return Q((e,r)=>{let i=0;e.subscribe(Z(r,o=>{r.next(t.call(n,o,i++))}))})}var{isArray:Q0}=Array;function K0(t,n){return Q0(n)?t(...n):t(n)}function Tr(t){return j(n=>K0(t,n))}var{isArray:J0}=Array,{getPrototypeOf:X0,prototype:ew,keys:tw}=Object;function ms(t){if(t.length===1){let n=t[0];if(J0(n))return{args:n,keys:null};if(nw(n)){let e=tw(n);return{args:e.map(r=>n[r]),keys:e}}}return{args:t,keys:null}}function nw(t){return t&&typeof t=="object"&&X0(t)===ew}function ys(t,n){return t.reduce((e,r,i)=>(e[r]=n[i],e),{})}function Fi(...t){let n=Pt(t),e=is(t),{args:r,keys:i}=ms(t);if(r.length===0)return ee([],n);let o=new G(rw(r,n,i?s=>ys(i,s):Qe));return e?o.pipe(Tr(e)):o}function rw(t,n,e=Qe){return r=>{Jh(n,()=>{let{length:i}=t,o=new Array(i),s=i,a=i;for(let c=0;c{let l=ee(t[c],n),u=!1;l.subscribe(Z(r,d=>{o[c]=d,u||(u=!0,a--),a||r.next(e(o.slice()))},()=>{--s||r.complete()}))},r)},r)}}function Jh(t,n,e){t?ze(e,t,n):n()}function Xh(t,n,e,r,i,o,s,a){let c=[],l=0,u=0,d=!1,h=()=>{d&&!c.length&&!l&&n.complete()},f=E=>l{o&&n.next(E),l++;let M=!1;le(e(E,u++)).subscribe(Z(n,F=>{i?.(F),o?f(F):n.next(F)},()=>{M=!0},void 0,()=>{if(M)try{for(l--;c.length&&lC(F)):C(F)}h()}catch(F){n.error(F)}}))};return t.subscribe(Z(n,f,()=>{d=!0,h()})),()=>{a?.()}}function pe(t,n,e=1/0){return k(n)?pe((r,i)=>j((o,s)=>n(r,o,i,s))(le(t(r,i))),e):(typeof n=="number"&&(e=n),Q((r,i)=>Xh(r,i,t,e)))}function Rt(t=1/0){return pe(Qe,t)}function ep(){return Rt(1)}function Ar(...t){return ep()(ee(t,Pt(t)))}function vs(t){return new G(n=>{le(t()).subscribe(n)})}function dl(...t){let n=is(t),{args:e,keys:r}=ms(t),i=new G(o=>{let{length:s}=e;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]=h},()=>c--,void 0,()=>{(!c||!d)&&(l||o.next(r?ys(r,a):a),o.complete())}))}});return n?i.pipe(Tr(n)):i}var iw=["addListener","removeListener"],ow=["addEventListener","removeEventListener"],sw=["on","off"];function fl(t,n,e,r){if(k(e)&&(r=e,e=void 0),r)return fl(t,n,e).pipe(Tr(r));let[i,o]=lw(t)?ow.map(s=>a=>t[s](n,a,e)):aw(t)?iw.map(tp(t,n)):cw(t)?sw.map(tp(t,n)):[];if(!i&&Mr(t))return pe(s=>fl(s,n,e))(le(t));if(!i)throw new TypeError("Invalid event target");return new G(s=>{let a=(...c)=>s.next(1o(a)})}function tp(t,n){return e=>r=>t[e](n,r)}function aw(t){return k(t.addListener)&&k(t.removeListener)}function cw(t){return k(t.on)&&k(t.off)}function lw(t){return k(t.addEventListener)&&k(t.removeEventListener)}function uw(...t){let n=Pt(t),e=Bh(t,1/0),r=t;return r.length?r.length===1?le(r[0]):Rt(e)(ee(r,n)):Oe}function qe(t,n){return Q((e,r)=>{let i=0;e.subscribe(Z(r,o=>t.call(n,o,i++)&&r.next(o)))})}function wt(t){return Q((n,e)=>{let r=null,i=!1,o;r=n.subscribe(Z(e,void 0,void 0,s=>{o=le(t(s,wt(t)(n))),r?(r.unsubscribe(),r=null,o.subscribe(e)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(e))})}function np(t,n,e,r,i){return(o,s)=>{let a=e,c=n,l=0;o.subscribe(Z(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 Qt(t,n){return k(n)?pe(t,n,1):pe(t,1)}function yn(t){return Q((n,e)=>{let r=!1;n.subscribe(Z(e,i=>{r=!0,e.next(i)},()=>{r||e.next(t),e.complete()}))})}function Kt(t){return t<=0?()=>Oe:Q((n,e)=>{let r=0;n.subscribe(Z(e,i=>{++r<=t&&(e.next(i),t<=r&&e.complete())}))})}function hl(t){return j(()=>t)}function _s(t=dw){return Q((n,e)=>{let r=!1;n.subscribe(Z(e,i=>{r=!0,e.next(i)},()=>r?e.complete():e.error(t())))})}function dw(){return new Yt}function vn(t){return Q((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}function ct(t,n){let e=arguments.length>=2;return r=>r.pipe(t?qe((i,o)=>t(i,o,r)):Qe,Kt(1),e?yn(n):_s(()=>new Yt))}function Or(t){return t<=0?()=>Oe:Q((n,e)=>{let r=[];n.subscribe(Z(e,i=>{r.push(i),t{for(let i of r)e.next(i);e.complete()},void 0,()=>{r=null}))})}function pl(t,n){let e=arguments.length>=2;return r=>r.pipe(t?qe((i,o)=>t(i,o,r)):Qe,Or(1),e?yn(n):_s(()=>new Yt))}function gl(t,n){return Q(np(t,n,arguments.length>=2,!0))}function ml(...t){let n=Pt(t);return Q((e,r)=>{(n?Ar(t,e,n):Ar(t,e)).subscribe(r)})}function Ge(t,n){return Q((e,r)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&r.complete();e.subscribe(Z(r,c=>{i?.unsubscribe();let l=0,u=o++;le(t(c,u)).subscribe(i=Z(r,d=>r.next(n?n(c,d,u,l++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function yl(t){return Q((n,e)=>{le(t).subscribe(Z(e,()=>e.complete(),Ri)),!e.closed&&n.subscribe(e)})}function Ie(t,n,e){let r=k(t)||n||e?{next:t,error:n,complete:e}:t;return r?Q((i,o)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;i.subscribe(Z(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)}))}):Qe}var $p="https://g.co/ng/security#xss",S=class extends Error{constructor(n,e){super(aa(n,e)),this.code=n}};function aa(t,n){return`${`NG0${Math.abs(t)}`}${n?": "+n:""}`}function Zi(t){return{toString:t}.toString()}var ws="__parameters__";function fw(t){return function(...e){if(t){let r=t(...e);for(let i in r)this[i]=r[i]}}}function Hp(t,n,e){return Zi(()=>{let r=fw(n);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 e&&(i.prototype=Object.create(e.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i})}var Je=globalThis;function ne(t){for(let n in t)if(t[n]===ne)return n;throw Error("Could not find renamed property on target object.")}function hw(t,n){for(let e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function Ve(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(Ve).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;let n=t.toString();if(n==null)return""+n;let e=n.indexOf(` +`);return e===-1?n:n.substring(0,e)}function Ol(t,n){return t==null||t===""?n===null?"":n:n==null||n===""?t:t+" "+n}var pw=ne({__forward_ref__:ne});function nr(t){return t.__forward_ref__=nr,t.toString=function(){return Ve(this())},t}function Le(t){return zp(t)?t():t}function zp(t){return typeof t=="function"&&t.hasOwnProperty(pw)&&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 ca(t){return rp(t,Gp)||rp(t,Wp)}function qp(t){return ca(t)!==null}function rp(t,n){return t.hasOwnProperty(n)?t[n]:null}function gw(t){let n=t&&(t[Gp]||t[Wp]);return n||null}function ip(t){return t&&(t.hasOwnProperty(op)||t.hasOwnProperty(mw))?t[op]:null}var Gp=ne({\u0275prov:ne}),op=ne({\u0275inj:ne}),Wp=ne({ngInjectableDef:ne}),mw=ne({ngInjectorDef:ne}),x=class{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof e=="number"?this.__NG_ELEMENT_ID__=e:e!==void 0&&(this.\u0275prov=D({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Zp(t){return t&&!!t.\u0275providers}var yw=ne({\u0275cmp:ne}),vw=ne({\u0275dir:ne}),_w=ne({\u0275pipe:ne}),ww=ne({\u0275mod:ne}),Ps=ne({\u0275fac:ne}),Vi=ne({__NG_ELEMENT_ID__:ne}),sp=ne({__NG_ENV_ID__:ne});function Vr(t){return typeof t=="string"?t:t==null?"":String(t)}function Cw(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():Vr(t)}function bw(t,n){let e=n?`. Dependency path: ${n.join(" > ")} > ${t}`:"";throw new S(-200,t)}function ju(t,n){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||{}),Nl;function Yp(){return Nl}function We(t){let n=Nl;return Nl=t,n}function Qp(t,n,e){let r=ca(t);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(e&q.Optional)return null;if(n!==void 0)return n;ju(t,"Injector")}var Dw={},Bi=Dw,Pl="__NG_DI_FLAG__",Rs="ngTempTokenPath",Ew="ngTokenPath",Iw=/\n/gm,xw="\u0275",ap="__source",Fr;function Mw(){return Fr}function _n(t){let n=Fr;return Fr=t,n}function Sw(t,n=q.Default){if(Fr===void 0)throw new S(-203,!1);return Fr===null?Qp(t,void 0,n):Fr.get(t,n&q.Optional?null:void 0,n)}function _(t,n=q.Default){return(Yp()||Sw)(Le(t),n)}function w(t,n=q.Default){return _(t,la(n))}function la(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function Rl(t){let n=[];for(let e=0;e ");else if(typeof n=="object"){let o=[];for(let s in n)if(n.hasOwnProperty(s)){let a=n[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):Ve(a)))}i=`{${o.join(", ")}}`}return`${e}${r?"("+r+")":""}[${i}]: ${t.replace(Iw,` + `)}`}var Yi=Kp(Hp("Optional"),8);var ua=Kp(Hp("SkipSelf"),4);function Wn(t,n){let e=t.hasOwnProperty(Ps);return e?t[Ps]:null}function Nw(t,n,e){if(t.length!==n.length)return!1;for(let r=0;rArray.isArray(e)?Bu(e,n):n(e))}function Jp(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function ks(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function Rw(t,n){let e=[];for(let r=0;rn;){let o=i-2;t[i]=t[o],i--}t[n]=e,t[n+1]=r}}function da(t,n,e){let r=Qi(t,n);return r>=0?t[r|1]=e:(r=~r,kw(t,r,n,e)),r}function vl(t,n){let e=Qi(t,n);if(e>=0)return t[e|1]}function Qi(t,n){return Fw(t,n,1)}function Fw(t,n,e){let r=0,i=t.length>>e;for(;i!==r;){let o=r+(i-r>>1),s=t[o<n?i=o:r=o+1}return~(i<n){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 $w(t,n,e,r){if(n===null)return-1;let i=0;if(r||!e){let o=!1;for(;i-1)for(e++;e0?'="'+a+'"':"")+"]"}else r&8?i+="."+s:r&4&&(i+=" "+s);else i!==""&&!Ct(s)&&(n+=lp(o,i),i=""),r=s,o=o||!Ct(r);e++}return i!==""&&(n+=lp(o,i)),n}function Zw(t){return t.map(Ww).join(",")}function Yw(t){let n=[],e=[],r=1,i=2;for(;r{let n=lg(t),e=z(b({},n),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===tg.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Lt.Emulated,styles:t.styles||Ze,_:null,schemas:t.schemas||null,tView:null,id:""});ug(e);let r=t.dependencies;return e.directiveDefs=Ls(r,!1),e.pipeDefs=Ls(r,!0),e.id=Jw(e),e})}function Qw(t){return Dn(t)||og(t)}function Kw(t){return t!==null}function ce(t){return Zi(()=>({type:t.type,bootstrap:t.bootstrap||Ze,declarations:t.declarations||Ze,imports:t.imports||Ze,exports:t.exports||Ze,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function up(t,n){if(t==null)return jr;let e={};for(let r in t)if(t.hasOwnProperty(r)){let i=t[r],o,s,a=bn.None;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o):(o=i,s=i),n?(e[o]=a!==bn.None?[r,a]:r,n[o]=s):e[o]=r}return e}function re(t){return Zi(()=>{let n=lg(t);return ug(n),n})}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[yw]||null}function og(t){return t[vw]||null}function sg(t){return t[_w]||null}function ag(t){let n=Dn(t)||og(t)||sg(t);return n!==null?n.standalone:!1}function cg(t,n){let e=t[ww]||null;if(!e&&n===!0)throw new Error(`Type ${Ve(t)} does not have '\u0275mod' property.`);return e}function lg(t){let n={};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:n,inputTransforms:null,inputConfig:t.inputs||jr,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||Ze,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:up(t.inputs,n),outputs:up(t.outputs),debugInfo:null}}function ug(t){t.features?.forEach(n=>n(t))}function Ls(t,n){if(!t)return null;let e=n?sg:Qw;return()=>(typeof t=="function"?t():t).map(r=>e(r)).filter(Kw)}function Jw(t){let n=0,e=[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 e)n=Math.imul(31,n)+i.charCodeAt(0)<<0;return n+=2147483648,"c"+n}function fa(t){return{\u0275providers:t}}function Xw(...t){return{\u0275providers:dg(!0,t),\u0275fromNgModule:!0}}function dg(t,...n){let e=[],r=new Set,i,o=s=>{e.push(s)};return Bu(n,s=>{let a=s;Fl(a,o,[],r)&&(i||=[],i.push(a))}),i!==void 0&&fg(i,o),e}function fg(t,n){for(let e=0;e{n(o,r)})}}function Fl(t,n,e,r){if(t=Le(t),!t)return!1;let i=null,o=ip(t),s=!o&&Dn(t);if(!o&&!s){let c=t.ngModule;if(o=ip(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)Fl(l,n,e,r)}}else if(o){if(o.imports!=null&&!a){r.add(i);let l;try{Bu(o.imports,u=>{Fl(u,n,e,r)&&(l||=[],l.push(u))})}finally{}l!==void 0&&fg(l,n)}if(!a){let l=Wn(i)||(()=>new i);n({provide:i,useFactory:l,deps:Ze},i),n({provide:eg,useValue:i,multi:!0},i),n({provide:Br,useValue:()=>_(i),multi:!0},i)}let c=o.providers;if(c!=null&&!a){let l=t;$u(c,u=>{n(u,l)})}}else return!1;return i!==t&&t.providers!==void 0}function $u(t,n){for(let e of t)Zp(e)&&(e=e.\u0275providers),Array.isArray(e)?$u(e,n):n(e)}var eC=ne({provide:String,useValue:ne});function hg(t){return t!==null&&typeof t=="object"&&eC in t}function tC(t){return!!(t&&t.useExisting)}function nC(t){return!!(t&&t.useFactory)}function Ur(t){return typeof t=="function"}function rC(t){return!!t.useClass}var ha=new x(""),Ss={},iC={},_l;function Hu(){return _l===void 0&&(_l=new Fs),_l}var je=class{},$i=class extends je{get destroyed(){return this._destroyed}constructor(n,e,r,i){super(),this.parent=e,this.source=r,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Vl(n,s=>this.processProvider(s)),this.records.set(Xp,Nr(void 0,this)),i.has("environment")&&this.records.set(je,Nr(void 0,this));let o=this.records.get(ha);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(eg,Ze,q.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let n=K(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of e)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),K(n)}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();let e=_n(this),r=We(void 0),i;try{return n()}finally{_n(e),We(r)}}get(n,e=Bi,r=q.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(sp))return n[sp](this);r=la(r);let i,o=_n(this),s=We(void 0);try{if(!(r&q.SkipSelf)){let c=this.records.get(n);if(c===void 0){let l=lC(n)&&ca(n);l&&this.injectableDefInScope(l)?c=Nr(Ll(n),Ss):c=null,this.records.set(n,c)}if(c!=null)return this.hydrate(n,c)}let a=r&q.Self?Hu():this.parent;return e=r&q.Optional&&e===Bi?null:e,a.get(n,e)}catch(a){if(a.name==="NullInjectorError"){if((a[Rs]=a[Rs]||[]).unshift(Ve(n)),o)throw a;return Aw(a,n,"R3InjectorError",this.source)}else throw a}finally{We(s),_n(o)}}resolveInjectorInitializers(){let n=K(null),e=_n(this),r=We(void 0),i;try{let o=this.get(Br,Ze,q.Self);for(let s of o)s()}finally{_n(e),We(r),K(n)}}toString(){let n=[],e=this.records;for(let r of e.keys())n.push(Ve(r));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new S(205,!1)}processProvider(n){n=Le(n);let e=Ur(n)?n:Le(n&&n.provide),r=sC(n);if(!Ur(n)&&n.multi===!0){let i=this.records.get(e);i||(i=Nr(void 0,Ss,!0),i.factory=()=>Rl(i.multi),this.records.set(e,i)),e=n,i.multi.push(n)}this.records.set(e,r)}hydrate(n,e){let r=K(null);try{return e.value===Ss&&(e.value=iC,e.value=e.factory()),typeof e.value=="object"&&e.value&&cC(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{K(r)}}injectableDefInScope(n){if(!n.providedIn)return!1;let e=Le(n.providedIn);return typeof e=="string"?e==="any"||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(n){let e=this._onDestroyHooks.indexOf(n);e!==-1&&this._onDestroyHooks.splice(e,1)}};function Ll(t){let n=ca(t),e=n!==null?n.factory:Wn(t);if(e!==null)return e;if(t instanceof x)throw new S(204,!1);if(t instanceof Function)return oC(t);throw new S(204,!1)}function oC(t){if(t.length>0)throw new S(204,!1);let e=gw(t);return e!==null?()=>e.factory(t):()=>new t}function sC(t){if(hg(t))return Nr(void 0,t.useValue);{let n=pg(t);return Nr(n,Ss)}}function pg(t,n,e){let r;if(Ur(t)){let i=Le(t);return Wn(i)||Ll(i)}else if(hg(t))r=()=>Le(t.useValue);else if(nC(t))r=()=>t.useFactory(...Rl(t.deps||[]));else if(tC(t))r=()=>_(Le(t.useExisting));else{let i=Le(t&&(t.useClass||t.provide));if(aC(t))r=()=>new i(...Rl(t.deps));else return Wn(i)||Ll(i)}return r}function Nr(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function aC(t){return!!t.deps}function cC(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function lC(t){return typeof t=="function"||typeof t=="object"&&t instanceof x}function Vl(t,n){for(let e of t)Array.isArray(e)?Vl(e,n):e&&Zp(e)?Vl(e.\u0275providers,n):n(e)}function ft(t,n){t instanceof $i&&t.assertNotDestroyed();let e,r=_n(t),i=We(void 0);try{return n()}finally{_n(r),We(i)}}function gg(){return Yp()!==void 0||Mw()!=null}function uC(t){if(!gg())throw new S(-203,!1)}function dC(t){let n=Je.ng;if(n&&n.\u0275compilerFacade)return n.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function fC(t){return typeof t=="function"}var tn=0,U=1,L=2,Pe=3,Dt=4,Ye=5,Hi=6,Vs=7,Et=8,$r=9,Vt=10,ge=11,zi=12,dp=13,Yr=14,ut=15,Zn=16,Pr=17,Jt=18,pa=19,mg=20,wn=21,wl=22,lt=23,Re=25,yg=1;var Yn=7,js=8,Hr=9,Ke=10,Bs=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(Bs||{});function Cn(t){return Array.isArray(t)&&typeof t[yg]=="object"}function nn(t){return Array.isArray(t)&&t[yg]===!0}function zu(t){return(t.flags&4)!==0}function ga(t){return t.componentOffset>-1}function ma(t){return(t.flags&1)===1}function En(t){return!!t.template}function jl(t){return(t[L]&512)!==0}var Bl=class{constructor(n,e,r){this.previousValue=n,this.currentValue=e,this.firstChange=r}isFirstChange(){return this.firstChange}};function vg(t,n,e,r){n!==null?n.applyValueToInputSignal(n,r):t[e]=r}function Xe(){return _g}function _g(t){return t.type.prototype.ngOnChanges&&(t.setInput=pC),hC}Xe.ngInherit=!0;function hC(){let t=Cg(this),n=t?.current;if(n){let e=t.previous;if(e===jr)t.previous=n;else for(let r in n)e[r]=n[r];t.current=null,this.ngOnChanges(n)}}function pC(t,n,e,r,i){let o=this.declaredInputs[r],s=Cg(t)||gC(t,{previous:jr,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[o];a[o]=new Bl(l&&l.currentValue,e,c===jr),vg(t,n,i,e)}var wg="__ngSimpleChanges__";function Cg(t){return t[wg]||null}function gC(t,n){return t[wg]=n}var fp=null;var kt=function(t,n,e){fp?.(t,n,e)},bg="svg",mC="math";function jt(t){for(;Array.isArray(t);)t=t[tn];return t}function Dg(t,n){return jt(n[t])}function ht(t,n){return jt(n[t.index])}function Eg(t,n){return t.data[n]}function ya(t,n){return t[n]}function Mn(t,n){let e=n[t];return Cn(e)?e:e[tn]}function yC(t){return(t[L]&4)===4}function qu(t){return(t[L]&128)===128}function vC(t){return nn(t[Pe])}function zr(t,n){return n==null?null:t[n]}function Ig(t){t[Pr]=0}function xg(t){t[L]&1024||(t[L]|=1024,qu(t)&&_a(t))}function _C(t,n){for(;t>0;)n=n[Yr],t--;return n}function va(t){return!!(t[L]&9216||t[lt]?.dirty)}function Ul(t){t[Vt].changeDetectionScheduler?.notify(8),t[L]&64&&(t[L]|=1024),va(t)&&_a(t)}function _a(t){t[Vt].changeDetectionScheduler?.notify(0);let n=Qn(t);for(;n!==null&&!(n[L]&8192||(n[L]|=8192,!qu(n)));)n=Qn(n)}function Mg(t,n){if((t[L]&256)===256)throw new S(911,!1);t[wn]===null&&(t[wn]=[]),t[wn].push(n)}function wC(t,n){if(t[wn]===null)return;let e=t[wn].indexOf(n);e!==-1&&t[wn].splice(e,1)}function Qn(t){let n=t[Pe];return nn(n)?n[Pe]:n}var B={lFrame:Fg(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Sg=!1;function CC(){return B.lFrame.elementDepthCount}function bC(){B.lFrame.elementDepthCount++}function DC(){B.lFrame.elementDepthCount--}function Tg(){return B.bindingsEnabled}function Ag(){return B.skipHydrationRootTNode!==null}function EC(t){return B.skipHydrationRootTNode===t}function IC(){B.skipHydrationRootTNode=null}function V(){return B.lFrame.lView}function me(){return B.lFrame.tView}function N(t){return B.lFrame.contextLView=t,t[Et]}function P(t){return B.lFrame.contextLView=null,t}function Ne(){let t=Og();for(;t!==null&&t.type===64;)t=t.parent;return t}function Og(){return B.lFrame.currentTNode}function xC(){let t=B.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}function ir(t,n){let e=B.lFrame;e.currentTNode=t,e.isParent=n}function Gu(){return B.lFrame.isParent}function Wu(){B.lFrame.isParent=!1}function MC(){return B.lFrame.contextLView}function Ng(){return Sg}function hp(t){Sg=t}function or(){let t=B.lFrame,n=t.bindingRootIndex;return n===-1&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function SC(){return B.lFrame.bindingIndex}function TC(t){return B.lFrame.bindingIndex=t}function wa(){return B.lFrame.bindingIndex++}function Zu(t){let n=B.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function AC(){return B.lFrame.inI18n}function OC(t,n){let e=B.lFrame;e.bindingIndex=e.bindingRootIndex=t,$l(n)}function NC(){return B.lFrame.currentDirectiveIndex}function $l(t){B.lFrame.currentDirectiveIndex=t}function PC(t){let n=B.lFrame.currentDirectiveIndex;return n===-1?null:t[n]}function Pg(){return B.lFrame.currentQueryIndex}function Yu(t){B.lFrame.currentQueryIndex=t}function RC(t){let n=t[U];return n.type===2?n.declTNode:n.type===1?t[Ye]:null}function Rg(t,n,e){if(e&q.SkipSelf){let i=n,o=t;for(;i=i.parent,i===null&&!(e&q.Host);)if(i=RC(o),i===null||(o=o[Yr],i.type&10))break;if(i===null)return!1;n=i,t=o}let r=B.lFrame=kg();return r.currentTNode=n,r.lView=t,!0}function Qu(t){let n=kg(),e=t[U];B.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function kg(){let t=B.lFrame,n=t===null?null:t.child;return n===null?Fg(t):n}function Fg(t){let n={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=n),n}function Lg(){let t=B.lFrame;return B.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Vg=Lg;function Ku(){let t=Lg();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 kC(t){return(B.lFrame.contextLView=_C(t,B.lFrame.contextLView))[Et]}function Sn(){return B.lFrame.selectedIndex}function Kn(t){B.lFrame.selectedIndex=t}function Ju(){let t=B.lFrame;return Eg(t.tView,t.selectedIndex)}function Ca(){B.lFrame.currentNamespace=bg}function jg(){FC()}function FC(){B.lFrame.currentNamespace=null}function LC(){return B.lFrame.currentNamespace}var Bg=!0;function ba(){return Bg}function Da(t){Bg=t}function VC(t,n,e){let{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=n.type.prototype;if(r){let s=_g(n);(e.preOrderHooks??=[]).push(t,s),(e.preOrderCheckHooks??=[]).push(t,s)}i&&(e.preOrderHooks??=[]).push(0-t,i),o&&((e.preOrderHooks??=[]).push(t,o),(e.preOrderCheckHooks??=[]).push(t,o))}function Ea(t,n){for(let e=n.directiveStart,r=n.directiveEnd;e=r)break}else n[c]<0&&(t[Pr]+=65536),(a>14>16&&(t[L]&3)===n&&(t[L]+=16384,pp(a,o)):pp(a,o)}var Lr=-1,Jn=class{constructor(n,e,r){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=r}};function BC(t){return t instanceof Jn}function UC(t){return(t.flags&8)!==0}function $C(t){return(t.flags&16)!==0}var bl={},Hl=class{constructor(n,e){this.injector=n,this.parentInjector=e}get(n,e,r){r=la(r);let i=this.injector.get(n,bl,r);return i!==bl||e===bl?i:this.parentInjector.get(n,e,r)}};function $g(t){return t!==Lr}function Us(t){return t&32767}function HC(t){return t>>16}function $s(t,n){let e=HC(t),r=n;for(;e>0;)r=r[Yr],e--;return r}var zl=!0;function Hs(t){let n=zl;return zl=t,n}var zC=256,Hg=zC-1,zg=5,qC=0,Ft={};function GC(t,n,e){let r;typeof e=="string"?r=e.charCodeAt(0)||0:e.hasOwnProperty(Vi)&&(r=e[Vi]),r==null&&(r=e[Vi]=qC++);let i=r&Hg,o=1<>zg)]|=o}function zs(t,n){let e=qg(t,n);if(e!==-1)return e;let r=n[U];r.firstCreatePass&&(t.injectorIndex=n.length,Dl(r.data,t),Dl(n,null),Dl(r.blueprint,null));let i=Xu(t,n),o=t.injectorIndex;if($g(i)){let s=Us(i),a=$s(i,n),c=a[U].data;for(let l=0;l<8;l++)n[o+l]=a[s+l]|c[s+l]}return n[o+8]=i,o}function Dl(t,n){t.push(0,0,0,0,0,0,0,0,n)}function qg(t,n){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||n[t.injectorIndex+8]===null?-1:t.injectorIndex}function Xu(t,n){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let e=0,r=null,i=n;for(;i!==null;){if(r=Qg(i),r===null)return Lr;if(e++,i=i[Yr],r.injectorIndex!==-1)return r.injectorIndex|e<<16}return Lr}function ql(t,n,e){GC(t,n,e)}function WC(t,n){if(n==="class")return t.classes;if(n==="style")return t.styles;let e=t.attrs;if(e){let r=e.length,i=0;for(;i>20,d=r?a:a+u,h=i?a+u:l;for(let f=d;f=c&&C.type===e)return f}if(i){let f=s[c];if(f&&En(f)&&f.type===e)return c}return null}function Xn(t,n,e,r){let i=t[e],o=n.data;if(BC(i)){let s=i;s.resolving&&bw(Cw(o[e]));let a=Hs(s.canSeeViewProviders);s.resolving=!0;let c,l=s.injectImpl?We(s.injectImpl):null,u=Rg(t,r,q.Default);try{i=t[e]=s.factory(void 0,o,t,r),n.firstCreatePass&&e>=r.directiveStart&&VC(e,o[e],n)}finally{l!==null&&We(l),Hs(a),s.resolving=!1,Vg()}}return i}function YC(t){if(typeof t=="string")return t.charCodeAt(0)||0;let n=t.hasOwnProperty(Vi)?t[Vi]:void 0;return typeof n=="number"?n>=0?n&Hg:QC:n}function gp(t,n,e){let r=1<>zg)]&r)}function mp(t,n){return!(t&q.Self)&&!(t&q.Host&&n)}var Gn=class{constructor(n,e){this._tNode=n,this._lView=e}get(n,e,r){return Zg(this._tNode,this._lView,n,la(r),e)}};function QC(){return new Gn(Ne(),V())}function Qr(t){return Zi(()=>{let n=t.prototype.constructor,e=n[Ps]||Gl(n),r=Object.prototype,i=Object.getPrototypeOf(t.prototype).constructor;for(;i&&i!==r;){let o=i[Ps]||Gl(i);if(o&&o!==e)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function Gl(t){return zp(t)?()=>{let n=Gl(Le(t));return n&&n()}:Wn(t)}function KC(t,n,e,r,i){let o=t,s=n;for(;o!==null&&s!==null&&s[L]&2048&&!(s[L]&512);){let a=Yg(o,s,e,r|q.Self,Ft);if(a!==Ft)return a;let c=o.parent;if(!c){let l=s[mg];if(l){let u=l.get(e,Ft,r);if(u!==Ft)return u}c=Qg(s),s=s[Yr]}o=c}return i}function Qg(t){let n=t[U],e=n.type;return e===2?n.declTNode:e===1?t[Ye]:null}function ed(t){return WC(Ne(),t)}function yp(t,n=null,e=null,r){let i=Kg(t,n,e,r);return i.resolveInjectorInitializers(),i}function Kg(t,n=null,e=null,r,i=new Set){let o=[e||Ze,Xw(t)];return r=r||(typeof t=="object"?void 0:Ve(t)),new $i(o,n||Hu(),r||null,i)}var xe=class t{static{this.THROW_IF_NOT_FOUND=Bi}static{this.NULL=new Fs}static create(n,e){if(Array.isArray(n))return yp({name:""},e,n,"");{let r=n.name??"";return yp({name:r},n.parent,n.providers,r)}}static{this.\u0275prov=D({token:t,providedIn:"any",factory:()=>_(Xp)})}static{this.__NG_ELEMENT_ID__=-1}};var JC=new x("");JC.__NG_ELEMENT_ID__=t=>{let n=Ne();if(n===null)throw new S(204,!1);if(n.type&2)return n.value;if(t&q.Optional)return null;throw new S(204,!1)};var XC="ngOriginalError";function El(t){return t[XC]}var Jg=!0,td=(()=>{class t{static{this.__NG_ELEMENT_ID__=eb}static{this.__NG_ENV_ID__=e=>e}}return t})(),Wl=class extends td{constructor(n){super(),this._lView=n}onDestroy(n){return Mg(this._lView,n),()=>wC(this._lView,n)}};function eb(){return new Wl(V())}var rn=(()=>{class t{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 e=this.taskId++;return this.pendingTasks.add(e),e}remove(e){this.pendingTasks.delete(e),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static{this.\u0275prov=D({token:t,providedIn:"root",factory:()=>new t})}}return t})();var Zl=class extends de{constructor(n=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=n,gg()&&(this.destroyRef=w(td,{optional:!0})??void 0,this.pendingTasks=w(rn,{optional:!0})??void 0)}emit(n){let e=K(null);try{super.next(n)}finally{K(e)}}subscribe(n,e,r){let i=n,o=e||(()=>null),s=r;if(n&&typeof n=="object"){let c=n;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 n instanceof _e&&n.add(a),a}wrapInTimeout(n){return e=>{let r=this.pendingTasks?.add();setTimeout(()=>{n(e),r!==void 0&&this.pendingTasks?.remove(r)})}}},H=Zl;function qs(...t){}function Xg(t){let n,e;function r(){t=qs;try{e!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(e),n!==void 0&&clearTimeout(n)}catch{}}return n=setTimeout(()=>{t(),r()}),typeof requestAnimationFrame=="function"&&(e=requestAnimationFrame(()=>{t(),r()})),()=>r()}function vp(t){return queueMicrotask(()=>t()),()=>{t=qs}}var nd="isAngularZone",Gs=nd+"_ID",tb=0,te=class t{constructor(n){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:e=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1,scheduleInRootZone:o=Jg}=n;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)),e&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!i&&r,s.shouldCoalesceRunChangeDetection=i,s.callbackScheduled=!1,s.scheduleInRootZone=o,ib(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(nd)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new S(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new S(909,!1)}run(n,e,r){return this._inner.run(n,e,r)}runTask(n,e,r,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,n,nb,qs,qs);try{return o.runTask(s,e,r)}finally{o.cancelTask(s)}}runGuarded(n,e,r){return this._inner.runGuarded(n,e,r)}runOutsideAngular(n){return this._outer.run(n)}},nb={};function rd(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 rb(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function n(){Xg(()=>{t.callbackScheduled=!1,Yl(t),t.isCheckStableRunning=!0,rd(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{n()}):t._outer.run(()=>{n()}),Yl(t)}function ib(t){let n=()=>{rb(t)},e=tb++;t._inner=t._inner.fork({name:"angular",properties:{[nd]:!0,[Gs]:e,[Gs+e]:!0},onInvokeTask:(r,i,o,s,a,c)=>{if(ob(c))return r.invokeTask(o,s,a,c);try{return _p(t),r.invokeTask(o,s,a,c)}finally{(t.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&n(),wp(t)}},onInvoke:(r,i,o,s,a,c,l)=>{try{return _p(t),r.invoke(o,s,a,c,l)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!sb(c)&&n(),wp(t)}},onHasTask:(r,i,o,s)=>{r.hasTask(o,s),i===o&&(s.change=="microTask"?(t._hasPendingMicrotasks=s.microTask,Yl(t),rd(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 Yl(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function _p(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function wp(t){t._nesting--,rd(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(n,e,r){return n.apply(e,r)}runGuarded(n,e,r){return n.apply(e,r)}runOutsideAngular(n){return n()}runTask(n,e,r,i){return n.apply(e,r)}};function ob(t){return em(t,"__ignore_ng_zone__")}function sb(t){return em(t,"__scheduler_tick__")}function em(t,n){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[n]===!0}function ab(t="zone.js",n){return t==="noop"?new Ws:t==="zone.js"?new te(n):t}var Xt=class{constructor(){this._console=console}handleError(n){let e=this._findOriginalError(n);this._console.error("ERROR",n),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&El(n);for(;e&&El(e);)e=El(e);return e||null}},cb=new x("",{providedIn:"root",factory:()=>{let t=w(te),n=w(Xt);return e=>t.runOutsideAngular(()=>n.handleError(e))}});function lb(){return Kr(Ne(),V())}function Kr(t,n){return new De(ht(t,n))}var De=(()=>{class t{constructor(e){this.nativeElement=e}static{this.__NG_ELEMENT_ID__=lb}}return t})();function ub(t){return t instanceof De?t.nativeElement:t}function db(){return this._results[Symbol.iterator]()}var Ql=class t{get changes(){return this._changes??=new H}constructor(n=!1){this._emitDistinctChangesOnly=n,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 e=t.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=db)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){this.dirty=!1;let r=Pw(n);(this._changesDetected=!Nw(this._results,r,e))&&(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(n){this._onDirty=n}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function tm(t){return(t.flags&128)===128}var nm=new Map,fb=0;function hb(){return fb++}function pb(t){nm.set(t[pa],t)}function Kl(t){nm.delete(t[pa])}var Cp="__ngContext__";function In(t,n){Cn(n)?(t[Cp]=n[pa],pb(n)):t[Cp]=n}function rm(t){return om(t[zi])}function im(t){return om(t[Dt])}function om(t){for(;t!==null&&!nn(t);)t=t[Dt];return t}var Jl;function sm(t){Jl=t}function gb(){if(Jl!==void 0)return Jl;if(typeof document<"u")return document;throw new S(210,!1)}var Ia=new x("",{providedIn:"root",factory:()=>mb}),mb="ng",id=new x(""),pt=new x("",{providedIn:"platform",factory:()=>"unknown"});var mL=new x(""),od=new x("",{providedIn:"root",factory:()=>gb().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var yb="h",vb="b";var _b=()=>null;function sd(t,n,e=!1){return _b(t,n,e)}var am=!1,wb=new x("",{providedIn:"root",factory:()=>am});var Cs;function Cb(){if(Cs===void 0&&(Cs=null,Je.trustedTypes))try{Cs=Je.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Cs}function xa(t){return Cb()?.createHTML(t)||t}var bs;function bb(){if(bs===void 0&&(bs=null,Je.trustedTypes))try{bs=Je.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return bs}function bp(t){return bb()?.createScriptURL(t)||t}var en=class{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${$p})`}},Xl=class extends en{getTypeName(){return"HTML"}},eu=class extends en{getTypeName(){return"Style"}},tu=class extends en{getTypeName(){return"Script"}},nu=class extends en{getTypeName(){return"URL"}},ru=class extends en{getTypeName(){return"ResourceURL"}};function xt(t){return t instanceof en?t.changingThisBreaksApplicationSecurity:t}function Tn(t,n){let e=Db(t);if(e!=null&&e!==n){if(e==="ResourceURL"&&n==="URL")return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${$p})`)}return e===n}function Db(t){return t instanceof en&&t.getTypeName()||null}function cm(t){return new Xl(t)}function lm(t){return new eu(t)}function um(t){return new tu(t)}function dm(t){return new nu(t)}function fm(t){return new ru(t)}function Eb(t){let n=new ou(t);return Ib()?new iu(n):n}var iu=class{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{let e=new window.DOMParser().parseFromString(xa(n),"text/html").body;return e===null?this.inertDocumentHelper.getInertBodyElement(n):(e.firstChild?.remove(),e)}catch{return null}}},ou=class{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){let e=this.inertDocument.createElement("template");return e.innerHTML=xa(n),e}};function Ib(){try{return!!new window.DOMParser().parseFromString(xa(""),"text/html")}catch{return!1}}var xb=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Ma(t){return t=String(t),t.match(xb)?t:"unsafe:"+t}function on(t){let n={};for(let e of t.split(","))n[e]=!0;return n}function Ki(...t){let n={};for(let e of t)for(let r in e)e.hasOwnProperty(r)&&(n[r]=!0);return n}var hm=on("area,br,col,hr,img,wbr"),pm=on("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),gm=on("rp,rt"),Mb=Ki(gm,pm),Sb=Ki(pm,on("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")),Tb=Ki(gm,on("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")),Dp=Ki(hm,Sb,Tb,Mb),mm=on("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Ab=on("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"),Ob=on("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"),Nb=Ki(mm,Ab,Ob),Pb=on("script,style,template"),su=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.firstChild,r=!0,i=[];for(;e;){if(e.nodeType===Node.ELEMENT_NODE?r=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,r&&e.firstChild){i.push(e),e=Fb(e);continue}for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let o=kb(e);if(o){e=o;break}e=i.pop()}}return this.buf.join("")}startElement(n){let e=Ep(n).toLowerCase();if(!Dp.hasOwnProperty(e))return this.sanitizedSomething=!0,!Pb.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);let r=n.attributes;for(let i=0;i"),!0}endElement(n){let e=Ep(n).toLowerCase();Dp.hasOwnProperty(e)&&!hm.hasOwnProperty(e)&&(this.buf.push(""))}chars(n){this.buf.push(Ip(n))}};function Rb(t,n){return(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function kb(t){let n=t.nextSibling;if(n&&t!==n.previousSibling)throw ym(n);return n}function Fb(t){let n=t.firstChild;if(n&&Rb(t,n))throw ym(n);return n}function Ep(t){let n=t.nodeName;return typeof n=="string"?n:"FORM"}function ym(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var Lb=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Vb=/([^\#-~ |!])/g;function Ip(t){return t.replace(/&/g,"&").replace(Lb,function(n){let e=n.charCodeAt(0),r=n.charCodeAt(1);return"&#"+((e-55296)*1024+(r-56320)+65536)+";"}).replace(Vb,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}var Ds;function vm(t,n){let e=null;try{Ds=Ds||Eb(t);let r=n?String(n):"";e=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=e.innerHTML,e=Ds.getInertBodyElement(r)}while(r!==o);let a=new su().sanitizeChildren(xp(e)||e);return xa(a)}finally{if(e){let r=xp(e)||e;for(;r.firstChild;)r.firstChild.remove()}}}function xp(t){return"content"in t&&jb(t)?t.content:null}function jb(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var $t=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}($t||{});function Sa(t){let n=wm();return n?n.sanitize($t.URL,t)||"":Tn(t,"URL")?xt(t):Ma(Vr(t))}function Bb(t){let n=wm();if(n)return bp(n.sanitize($t.RESOURCE_URL,t)||"");if(Tn(t,"ResourceURL"))return bp(xt(t));throw new S(904,!1)}function Ub(t,n){return n==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||n==="href"&&(t==="base"||t==="link")?Bb:Sa}function _m(t,n,e){return Ub(n,e)(t)}function wm(){let t=V();return t&&t[Vt].sanitizer}var $b=/^>|^->||--!>|)/g,zb="\u200B$1\u200B";function qb(t){return t.replace($b,n=>n.replace(Hb,zb))}function yL(t){return t.ownerDocument.defaultView}function Cm(t){return t.ownerDocument}function bm(t){return t instanceof Function?t():t}function Gb(t){return(t??w(xe)).get(pt)==="browser"}var Bt=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(Bt||{}),Wb;function ad(t,n){return Wb(t,n)}function Rr(t,n,e,r,i){if(r!=null){let o,s=!1;nn(r)?o=r:Cn(r)&&(s=!0,r=r[tn]);let a=jt(r);t===0&&e!==null?i==null?Sm(n,e,a):Zs(n,e,a,i||null,!0):t===1&&e!==null?Zs(n,e,a,i||null,!0):t===2?aD(n,a,s):t===3&&n.destroyNode(a),o!=null&&lD(n,t,o,e,i)}}function Zb(t,n){return t.createText(n)}function Yb(t,n,e){t.setValue(n,e)}function Qb(t,n){return t.createComment(qb(n))}function Dm(t,n,e){return t.createElement(n,e)}function Kb(t,n){Em(t,n),n[tn]=null,n[Ye]=null}function Jb(t,n,e,r,i,o){r[tn]=i,r[Ye]=n,Aa(t,r,e,1,i,o)}function Em(t,n){n[Vt].changeDetectionScheduler?.notify(9),Aa(t,n,n[ge],2,null,null)}function Xb(t){let n=t[zi];if(!n)return Il(t[U],t);for(;n;){let e=null;if(Cn(n))e=n[zi];else{let r=n[Ke];r&&(e=r)}if(!e){for(;n&&!n[Dt]&&n!==t;)Cn(n)&&Il(n[U],n),n=n[Pe];n===null&&(n=t),Cn(n)&&Il(n[U],n),e=n&&n[Dt]}n=e}}function eD(t,n,e,r){let i=Ke+r,o=e.length;r>0&&(e[i-1][Dt]=n),r0&&(t[e-1][Dt]=r[Dt]);let o=ks(t,Ke+n);Kb(r[U],r);let s=o[Jt];s!==null&&s.detachView(o[U]),r[Pe]=null,r[Dt]=null,r[L]&=-129}return r}function xm(t,n){if(!(n[L]&256)){let e=n[ge];e.destroyNode&&Aa(t,n,e,3,null,null),Xb(n)}}function Il(t,n){if(n[L]&256)return;let e=K(null);try{n[L]&=-129,n[L]|=256,n[lt]&&Kc(n[lt]),nD(t,n),tD(t,n),n[U].type===1&&n[ge].destroy();let r=n[Zn];if(r!==null&&nn(n[Pe])){r!==n[Pe]&&cd(r,n);let i=n[Jt];i!==null&&i.detachView(t)}Kl(n)}finally{K(e)}}function tD(t,n){let e=t.cleanup,r=n[Vs];if(e!==null)for(let o=0;o=0?r[s]():r[-s].unsubscribe(),o+=2}else{let s=r[e[o+1]];e[o].call(s)}r!==null&&(n[Vs]=null);let i=n[wn];if(i!==null){n[wn]=null;for(let o=0;o-1){let{encapsulation:o}=t.data[r.directiveStart+i];if(o===Lt.None||o===Lt.Emulated)return null}return ht(r,e)}}function Zs(t,n,e,r,i){t.insertBefore(n,e,r,i)}function Sm(t,n,e){t.appendChild(n,e)}function Mp(t,n,e,r,i){r!==null?Zs(t,n,e,r,i):Sm(t,n,e)}function Tm(t,n){return t.parentNode(n)}function iD(t,n){return t.nextSibling(n)}function Am(t,n,e){return sD(t,n,e)}function oD(t,n,e){return t.type&40?ht(t,e):null}var sD=oD,Sp;function Ta(t,n,e,r){let i=Mm(t,r,n),o=n[ge],s=r.parent||n[Ye],a=Am(s,r,n);if(i!=null)if(Array.isArray(e))for(let c=0;cRe&&km(t,n,Re,!1),kt(s?2:0,i),e(r,i)}finally{Kn(o),kt(s?3:1,i)}}function ud(t,n,e){if(zu(n)){let r=K(null);try{let i=n.directiveStart,o=n.directiveEnd;for(let s=i;snull;function vD(t,n,e,r){let i=Gm(n);i.push(e),t.firstCreatePass&&Wm(t).push(r,i.length-1)}function _D(t,n,e,r,i,o){let s=n?n.injectorIndex:-1,a=0;return Ag()&&(a|=128),{type:e,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:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Tp(t,n,e,r,i){for(let o in n){if(!n.hasOwnProperty(o))continue;let s=n[o];if(s===void 0)continue;r??={};let a,c=bn.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?Ap(r,e,l,a,c):Ap(r,e,l,a)}return r}function Ap(t,n,e,r,i){let o;t.hasOwnProperty(e)?(o=t[e]).push(n,r):o=t[e]=[n,r],i!==void 0&&o.push(i)}function wD(t,n,e){let r=n.directiveStart,i=n.directiveEnd,o=t.data,s=n.attrs,a=[],c=null,l=null;for(let u=r;u0;){let e=t[--n];if(typeof e=="number"&&e<0)return e}return 0}function ID(t,n,e,r){let i=e.directiveStart,o=e.directiveEnd;ga(e)&&ND(n,e,t.data[i+e.componentOffset]),t.firstCreatePass||zs(e,n),In(r,n);let s=e.initialInputs;for(let a=i;a{_a(t.lView)},consumerOnSignalRead(){this.lView[lt]=this}});function qD(t){let n=t[lt]??Object.create(GD);return n.lView=t,n}var GD=z(b({},Ni),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{let n=Qn(t.lView);for(;n&&!Xm(n[U]);)n=Qn(n);n&&xg(n)},consumerOnSignalRead(){this.lView[lt]=this}});function Xm(t){return t.type!==2}var WD=100;function ey(t,n=!0,e=0){let r=t[Vt],i=r.rendererFactory,o=!1;o||i.begin?.();try{ZD(t,e)}catch(s){throw n&&Zm(t,s),s}finally{o||(i.end?.(),r.inlineEffectRunner?.flush())}}function ZD(t,n){let e=Ng();try{hp(!0),fu(t,n);let r=0;for(;va(t);){if(r===WD)throw new S(103,!1);r++,fu(t,1)}}finally{hp(e)}}function YD(t,n,e,r){let i=n[L];if((i&256)===256)return;let o=!1,s=!1;!o&&n[Vt].inlineEffectRunner?.flush(),Qu(n);let a=!0,c=null,l=null;o||(Xm(t)?(l=UD(n),c=Qo(l)):vh()===null?(a=!1,l=qD(n),c=Qo(l)):n[lt]&&(Kc(n[lt]),n[lt]=null));try{Ig(n),TC(t.bindingStartIndex),e!==null&&jm(t,n,e,2,r);let u=(i&3)===3;if(!o)if(u){let f=t.preOrderCheckHooks;f!==null&&Ts(n,f,null)}else{let f=t.preOrderHooks;f!==null&&As(n,f,0,null),Cl(n,0)}if(s||QD(n),ty(n,0),t.contentQueries!==null&&qm(t,n),!o)if(u){let f=t.contentCheckHooks;f!==null&&Ts(n,f)}else{let f=t.contentHooks;f!==null&&As(n,f,1),Cl(n,1)}fD(t,n);let d=t.components;d!==null&&ry(n,d,0);let h=t.viewQuery;if(h!==null&&uu(2,h,r),!o)if(u){let f=t.viewCheckHooks;f!==null&&Ts(n,f)}else{let f=t.viewHooks;f!==null&&As(n,f,2),Cl(n,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),n[wl]){for(let f of n[wl])f();n[wl]=null}o||(n[L]&=-73)}catch(u){throw o||_a(n),u}finally{l!==null&&(Yc(l,c),a&&HD(l)),Ku()}}function ty(t,n){for(let e=rm(t);e!==null;e=im(e))for(let r=Ke;r-1&&(au(n,r),ks(e,r))}this._attachedToViewContainer=!1}xm(this._lView[U],this._lView)}onDestroy(n){Mg(this._lView,n)}markForCheck(){yd(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[L]&=-129}reattach(){Ul(this._lView),this._lView[L]|=128}detectChanges(){this._lView[L]|=1024,ey(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new S(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let n=jl(this._lView),e=this._lView[Zn];e!==null&&!n&&cd(e,this._lView),Em(this._lView[U],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new S(902,!1);this._appRef=n;let e=jl(this._lView),r=this._lView[Zn];r!==null&&!e&&Im(r,this._lView),Ul(this._lView)}},dt=(()=>{class t{static{this.__NG_ELEMENT_ID__=eE}}return t})(),JD=dt,XD=class extends JD{constructor(n,e,r){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,e){return this.createEmbeddedViewImpl(n,e)}createEmbeddedViewImpl(n,e,r){let i=Qm(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:e,dehydratedView:r});return new er(i)}};function eE(){return Pa(Ne(),V())}function Pa(t,n){return t.type&4?new XD(n,t,Kr(t,n)):null}var _L=new RegExp(`^(\\d+)*(${vb}|${yb})*(.*)`);var tE=()=>null;function hu(t,n){return tE(t,n)}var qr=class{},vd=new x("",{providedIn:"root",factory:()=>!1});var iy=new x(""),oy=new x(""),pu=class{},Qs=class{};function nE(t){let n=Error(`No component factory found for ${Ve(t)}.`);return n[rE]=t,n}var rE="ngComponent";var gu=class{resolveComponentFactory(n){throw nE(n)}},Ut=class{static{this.NULL=new gu}},Gr=class{},Mt=(()=>{class t{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>iE()}}return t})();function iE(){let t=V(),n=Ne(),e=Mn(n.index,t);return(Cn(e)?e:t)[ge]}var oE=(()=>{class t{static{this.\u0275prov=D({token:t,providedIn:"root",factory:()=>null})}}return t})();function Ks(t,n,e){let r=e?t.styles:null,i=e?t.classes:null,o=0;if(n!==null)for(let s=0;s0&&Pm(t,e,o.join(" "))}}function fE(t,n,e){let r=t.projection=[];for(let i=0;i{class t{static{this.__NG_ELEMENT_ID__=pE}}return t})();function pE(){let t=Ne();return ay(t,V())}var gE=sn,sy=class extends gE{constructor(n,e,r){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=r}get element(){return Kr(this._hostTNode,this._hostLView)}get injector(){return new Gn(this._hostTNode,this._hostLView)}get parentInjector(){let n=Xu(this._hostTNode,this._hostLView);if($g(n)){let e=$s(n,this._hostLView),r=Us(n),i=e[U].data[r+8];return new Gn(i,e)}else return new Gn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){let e=Np(this._lContainer);return e!==null&&e[n]||null}get length(){return this._lContainer.length-Ke}createEmbeddedView(n,e,r){let i,o;typeof r=="number"?i=r:r!=null&&(i=r.index,o=r.injector);let s=hu(this._lContainer,n.ssrId),a=n.createEmbeddedViewImpl(e||{},o,s);return this.insertImpl(a,i,du(this._hostTNode,s)),a}createComponent(n,e,r,i,o){let s=n&&!fC(n),a;if(s)a=e;else{let C=e||{};a=C.index,r=C.injector,i=C.projectableNodes,o=C.environmentInjector||C.ngModuleRef}let c=s?n:new Wr(Dn(n)),l=r||this.parentInjector;if(!o&&c.ngModule==null){let E=(s?l:this.parentInjector).get(je,null);E&&(o=E)}let u=Dn(c.componentType??{}),d=hu(this._lContainer,u?.id??null),h=d?.firstChild??null,f=c.create(l,i,h,o);return this.insertImpl(f.hostView,a,du(this._hostTNode,d)),f}insert(n,e){return this.insertImpl(n,e,!0)}insertImpl(n,e,r){let i=n._lView;if(vC(i)){let a=this.indexOf(n);if(a!==-1)this.detach(a);else{let c=i[Pe],l=new sy(c,c[Ye],c[Pe]);l.detach(l.indexOf(n))}}let o=this._adjustIndex(e),s=this._lContainer;return Km(s,i,o,r),n.attachToViewContainerRef(),Jp(xl(s),o,n),n}move(n,e){return this.insert(n,e)}indexOf(n){let e=Np(this._lContainer);return e!==null?e.indexOf(n):-1}remove(n){let e=this._adjustIndex(n,-1),r=au(this._lContainer,e);r&&(ks(xl(this._lContainer),e),xm(r[U],r))}detach(n){let e=this._adjustIndex(n,-1),r=au(this._lContainer,e);return r&&ks(xl(this._lContainer),e)!=null?new er(r):null}_adjustIndex(n,e=0){return n??this.length+e}};function Np(t){return t[js]}function xl(t){return t[js]||(t[js]=[])}function ay(t,n){let e,r=n[t.index];return nn(r)?e=r:(e=zm(r,n,null,t),n[t.index]=e,Na(n,e)),yE(e,n,t,r),new sy(e,t,n)}function mE(t,n){let e=t[ge],r=e.createComment(""),i=ht(n,t),o=Tm(e,i);return Zs(e,o,r,iD(e,i),!1),r}var yE=wE,vE=()=>!1;function _E(t,n,e){return vE(t,n,e)}function wE(t,n,e,r){if(t[Yn])return;let i;e.type&8?i=jt(r):i=mE(n,e),t[Yn]=i}var yu=class t{constructor(n){this.queryList=n,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},vu=class t{constructor(n=[]){this.queries=n}createEmbeddedView(n){let e=n.queries;if(e!==null){let r=n.contentQueries!==null?n.contentQueries[0]:e.length,i=[];for(let o=0;o0)r.push(s[a/2]);else{let l=o[a+1],u=n[-c];for(let d=Ke;dn.trim())}function uy(t,n,e){t.queries===null&&(t.queries=new _u),t.queries.track(new wu(n,e))}function TE(t,n){let e=t.contentQueries||(t.contentQueries=[]),r=e.length?e[e.length-1]:-1;n!==r&&e.push(t.queries.length-1,n)}function _d(t,n){return t.queries.getByIndex(n)}function AE(t,n){let e=t[U],r=_d(e,n);return r.crossesNgTemplate?Cu(e,t,n,[]):cy(e,t,r,n)}var Pp=new Set;function Xr(t){Pp.has(t)||(Pp.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function OE(t){return typeof t=="function"&&t[Zt]!==void 0}function Ra(t,n){Xr("NgSignals");let e=Th(t),r=e[Zt];return n?.equal&&(r.equal=n.equal),e.set=i=>Jc(r,i),e.update=i=>Ah(r,i),e.asReadonly=NE.bind(e),e}function NE(){let t=this[Zt];if(t.readonlyFn===void 0){let n=()=>this();n[Zt]=t,t.readonlyFn=n}return t.readonlyFn}function dy(t){return OE(t)&&typeof t.set=="function"}function PE(t){let n=[],e=new Map;function r(i){let o=e.get(i);if(!o){let s=t(i);e.set(i,o=s.then(LE))}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,h)=>{a.push(""),s.push(r(d).then(f=>{a[l+h]=f,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(()=>VE(o));n.push(c)}),kE(),Promise.all(n).then(()=>{})}var ea=new Map,RE=new Set;function kE(){let t=ea;return ea=new Map,t}function FE(){return ea.size===0}function LE(t){return typeof t=="string"?t:t.text()}function VE(t){RE.delete(t)}function jE(t){return Object.getPrototypeOf(t.prototype).constructor}function An(t){let n=jE(t.type),e=!0,r=[t];for(;n;){let i;if(En(t))i=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new S(903,!1);i=n.\u0275dir}if(i){if(e){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&&zE(t,a);let c=i.viewQuery,l=i.contentQueries;if(c&&$E(t,c),l&&HE(t,l),BE(t,i),hw(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=n+=i.hostVars,i.hostAttrs=Ui(i.hostAttrs,e=Ui(e,i.hostAttrs))}}function Es(t){return t===jr?{}:t===Ze?[]:t}function $E(t,n){let e=t.viewQuery;e?t.viewQuery=(r,i)=>{n(r,i),e(r,i)}:t.viewQuery=n}function HE(t,n){let e=t.contentQueries;e?t.contentQueries=(r,i,o)=>{n(r,i,o),e(r,i,o)}:t.contentQueries=n}function zE(t,n){let e=t.hostBindings;e?t.hostBindings=(r,i)=>{n(r,i),e(r,i)}:t.hostBindings=n}function wd(t){let n=t.inputConfig,e={};for(let r in n)if(n.hasOwnProperty(r)){let i=n[r];Array.isArray(i)&&i[3]&&(e[r]=i[3])}t.inputTransforms=e}var xn=class{},qi=class{};var ta=class extends xn{constructor(n,e,r,i=!0){super(),this.ngModuleType=n,this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Js(this);let o=cg(n);this._bootstrapComponents=bm(o.bootstrap),this._r3Injector=Kg(n,e,[{provide:xn,useValue:this},{provide:Ut,useValue:this.componentFactoryResolver},...r],Ve(n),new Set(["environment"])),i&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}},na=class extends qi{constructor(n){super(),this.moduleType=n}create(n){return new ta(this.moduleType,n,[])}};function qE(t,n,e){return new ta(t,n,e,!1)}var bu=class extends xn{constructor(n){super(),this.componentFactoryResolver=new Js(this),this.instance=null;let e=new $i([...n.providers,{provide:xn,useValue:this},{provide:Ut,useValue:this.componentFactoryResolver}],n.parent||Hu(),n.debugName,new Set(["environment"]));this.injector=e,n.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}};function ka(t,n,e=null){return new bu({providers:t,parent:n,debugName:e,runEnvironmentInitializers:!0}).injector}function fy(t){return Cd(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function GE(t,n){if(Array.isArray(t))for(let e=0;e{class t{constructor(){this.impl=null}execute(){this.impl?.execute()}static{this.\u0275prov=D({token:t,providedIn:"root",factory:()=>new t})}}return t})(),Eu=class t{constructor(){this.ngZone=w(te),this.scheduler=w(qr),this.errorHandler=w(Xt,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}static{this.PHASES=[kr.EarlyRead,kr.Write,kr.MixedReadWrite,kr.Read]}execute(){this.executing=!0;for(let n of t.PHASES)for(let e of this.sequences)if(!(e.erroredOrDestroyed||!e.hooks[n]))try{e.pipelinedValue=this.ngZone.runOutsideAngular(()=>e.hooks[n](e.pipelinedValue))}catch(r){e.erroredOrDestroyed=!0,this.errorHandler?.handleError(r)}this.executing=!1;for(let n of this.sequences)n.afterRun(),n.once&&(this.sequences.delete(n),n.destroy());for(let n of this.deferredRegistrations)this.sequences.add(n);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear()}register(n){this.executing?this.deferredRegistrations.add(n):(this.sequences.add(n),this.scheduler.notify(6))}unregister(n){this.executing&&this.sequences.has(n)?(n.erroredOrDestroyed=!0,n.pipelinedValue=void 0,n.once=!0):(this.sequences.delete(n),this.deferredRegistrations.delete(n))}static{this.\u0275prov=D({token:t,providedIn:"root",factory:()=>new t})}},Iu=class{constructor(n,e,r,i){this.impl=n,this.hooks=e,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 bd(t,n){!n?.injector&&uC(bd);let e=n?.injector??w(xe);return Gb(e)?(Xr("NgAfterNextRender"),XE(t,e,n,!0)):eI}function JE(t,n){if(t instanceof Function){let e=[void 0,void 0,void 0,void 0];return e[n]=t,e}else return[t.earlyRead,t.write,t.mixedReadWrite,t.read]}function XE(t,n,e,r){let i=n.get(gy);i.impl??=n.get(Eu);let o=e?.phase??kr.MixedReadWrite,s=e?.manualCleanup!==!0?n.get(td):null,a=new Iu(i.impl,JE(t,o),r,s);return i.impl.register(a),a}var eI={destroy(){}};function ar(t,n,e,r){let i=V(),o=wa();if(It(i,o,n)){let s=me(),a=Ju();PD(a,i,t,n,e,r)}return ar}function my(t,n,e,r){return It(t,wa(),e)?n+Vr(e)+r:gt}function tI(t,n,e,r,i,o){let s=SC(),a=Gi(t,s,e,i);return Zu(2),a?n+Vr(e)+r+Vr(i)+o:gt}function Is(t,n){return t<<17|n<<2}function tr(t){return t>>17&32767}function nI(t){return(t&2)==2}function rI(t,n){return t&131071|n<<17}function xu(t){return t|2}function Zr(t){return(t&131068)>>2}function Ml(t,n){return t&-131069|n<<2}function iI(t){return(t&1)===1}function Mu(t){return t|1}function oI(t,n,e,r,i,o){let s=o?n.classBindings:n.styleBindings,a=tr(s),c=Zr(s);t[r]=e;let l=!1,u;if(Array.isArray(e)){let d=e;u=d[1],(u===null||Qi(d,u)>0)&&(l=!0)}else u=e;if(i)if(c!==0){let h=tr(t[a+1]);t[r+1]=Is(h,a),h!==0&&(t[h+1]=Ml(t[h+1],r)),t[a+1]=rI(t[a+1],r)}else t[r+1]=Is(a,0),a!==0&&(t[a+1]=Ml(t[a+1],r)),a=r;else t[r+1]=Is(c,0),a===0?a=r:t[c+1]=Ml(t[c+1],r),c=r;l&&(t[r+1]=xu(t[r+1])),Rp(t,u,r,!0),Rp(t,u,r,!1),sI(n,u,t,r,o),s=Is(a,c),o?n.classBindings=s:n.styleBindings=s}function sI(t,n,e,r,i){let o=i?t.residualClasses:t.residualStyles;o!=null&&typeof n=="string"&&Qi(o,n)>=0&&(e[r+1]=Mu(e[r+1]))}function Rp(t,n,e,r){let i=t[e+1],o=n===null,s=r?tr(i):Zr(i),a=!1;for(;s!==0&&(a===!1||o);){let c=t[s],l=t[s+1];aI(c,n)&&(a=!0,t[s+1]=r?Mu(l):xu(l)),s=r?tr(l):Zr(l)}a&&(t[e+1]=r?xu(i):Mu(i))}function aI(t,n){return t===null||n==null||(Array.isArray(t)?t[1]:t)===n?!0:Array.isArray(t)&&typeof n=="string"?Qi(t,n)>=0:!1}var bt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function cI(t){return t.substring(bt.key,bt.keyEnd)}function lI(t){return uI(t),yy(t,vy(t,0,bt.textEnd))}function yy(t,n){let e=bt.textEnd;return e===n?-1:(n=bt.keyEnd=dI(t,bt.key=n,e),vy(t,n,e))}function uI(t){bt.key=0,bt.keyEnd=0,bt.value=0,bt.valueEnd=0,bt.textEnd=t.length}function vy(t,n,e){for(;n32;)n++;return n}function m(t,n,e){let r=V(),i=wa();if(It(r,i,n)){let o=me(),s=Ju();Um(o,s,r,t,n,r[ge],e,!1)}return m}function Su(t,n,e,r,i){let o=n.inputs,s=i?"class":"style";gd(t,e,o[s],s,r)}function _y(t,n,e){return Cy(t,n,e,!1),_y}function he(t,n){return Cy(t,n,null,!0),he}function cr(t){by(yI,wy,t,!0)}function wy(t,n){for(let e=lI(n);e>=0;e=yy(n,e))da(t,cI(n),!0)}function Cy(t,n,e,r){let i=V(),o=me(),s=Zu(2);if(o.firstUpdatePass&&Ey(o,t,s,r),n!==gt&&It(i,s,n)){let a=o.data[Sn()];Iy(o,a,i,i[ge],t,i[s+1]=_I(n,e),r,s)}}function by(t,n,e,r){let i=me(),o=Zu(2);i.firstUpdatePass&&Ey(i,null,o,r);let s=V();if(e!==gt&&It(s,o,e)){let a=i.data[Sn()];if(xy(a,r)&&!Dy(i,o)){let c=r?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(e=Ol(c,e||"")),Su(i,a,s,e,r)}else vI(i,a,s,s[ge],s[o+1],s[o+1]=mI(t,n,e),r,o)}}function Dy(t,n){return n>=t.expandoStartIndex}function Ey(t,n,e,r){let i=t.data;if(i[e+1]===null){let o=i[Sn()],s=Dy(t,e);xy(o,r)&&n===null&&!s&&(n=!1),n=fI(i,o,n,r),oI(i,o,n,e,s,r)}}function fI(t,n,e,r){let i=PC(t),o=r?n.residualClasses:n.residualStyles;if(i===null)(r?n.classBindings:n.styleBindings)===0&&(e=Sl(null,t,n,e,r),e=Wi(e,n.attrs,r),o=null);else{let s=n.directiveStylingLast;if(s===-1||t[s]!==i)if(e=Sl(i,t,n,e,r),o===null){let c=hI(t,n,r);c!==void 0&&Array.isArray(c)&&(c=Sl(null,t,n,c[1],r),c=Wi(c,n.attrs,r),pI(t,n,r,c))}else o=gI(t,n,r)}return o!==void 0&&(r?n.residualClasses=o:n.residualStyles=o),e}function hI(t,n,e){let r=e?n.classBindings:n.styleBindings;if(Zr(r)!==0)return t[tr(r)]}function pI(t,n,e,r){let i=e?n.classBindings:n.styleBindings;t[tr(i)]=r}function gI(t,n,e){let r,i=n.directiveEnd;for(let o=1+n.directiveStylingLast;o0;){let c=t[i],l=Array.isArray(c),u=l?c[1]:c,d=u===null,h=e[i+1];h===gt&&(h=d?Ze:void 0);let f=d?vl(h,r):u===r?h:void 0;if(l&&!ra(f)&&(f=vl(c,r)),ra(f)&&(a=f,s))return a;let C=t[i+1];i=s?tr(C):Zr(C)}if(n!==null){let c=o?n.residualClasses:n.residualStyles;c!=null&&(a=vl(c,r))}return a}function ra(t){return t!==void 0}function _I(t,n){return t==null||t===""||(typeof n=="string"?t=t+n:typeof t=="object"&&(t=Ve(xt(t)))),t}function xy(t,n){return(t.flags&(n?8:16))!==0}function My(t,n,e){let r=V(),i=my(r,t,n,e);by(da,wy,i,!0)}function wI(t,n,e,r,i,o){let s=n.consts,a=zr(s,i),c=Jr(n,t,2,r,a);return pd(n,e,c,zr(s,o)),c.attrs!==null&&Ks(c,c.attrs,!1),c.mergedAttrs!==null&&Ks(c,c.mergedAttrs,!0),n.queries!==null&&n.queries.elementStart(n,c),c}function y(t,n,e,r){let i=V(),o=me(),s=Re+t,a=i[ge],c=o.firstCreatePass?wI(s,o,i,n,e,r):o.data[s],l=CI(o,i,c,a,n,t);i[s]=l;let u=ma(c);return ir(c,!0),Rm(a,l,c),!ZE(c)&&ba()&&Ta(o,i,l,c),CC()===0&&In(l,i),bC(),u&&(dd(o,i,c),ud(o,c,i)),r!==null&&fd(i,c),y}function v(){let t=Ne();Gu()?Wu():(t=t.parent,ir(t,!1));let n=t;EC(n)&&IC(),DC();let e=me();return e.firstCreatePass&&(Ea(e,t),zu(t)&&e.queries.elementEnd(t)),n.classesWithoutHost!=null&&UC(n)&&Su(e,n,V(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&$C(n)&&Su(e,n,V(),n.stylesWithoutHost,!1),v}function ke(t,n,e,r){return y(t,n,e,r),v(),ke}var CI=(t,n,e,r,i,o)=>(Da(!0),Dm(r,i,LC()));function bI(t,n,e,r,i){let o=n.consts,s=zr(o,r),a=Jr(n,t,8,"ng-container",s);s!==null&&Ks(a,s,!0);let c=zr(o,i);return pd(n,e,a,c),n.queries!==null&&n.queries.elementStart(n,a),a}function ye(t,n,e){let r=V(),i=me(),o=t+Re,s=i.firstCreatePass?bI(o,i,r,n,e):i.data[o];ir(s,!0);let a=DI(i,r,s,t);return r[o]=a,ba()&&Ta(i,r,a,s),In(a,r),ma(s)&&(dd(i,r,s),ud(i,s,r)),e!=null&&fd(r,s),ye}function ve(){let t=Ne(),n=me();return Gu()?Wu():(t=t.parent,ir(t,!1)),n.firstCreatePass&&(Ea(n,t),zu(t)&&n.queries.elementEnd(t)),ve}function mt(t,n,e){return ye(t,n,e),ve(),mt}var DI=(t,n,e,r)=>(Da(!0),Qb(n[ge],""));function W(){return V()}var ia="en-US";var EI=ia;function II(t){typeof t=="string"&&(EI=t.toLowerCase().replace(/_/g,"-"))}var xI=(t,n,e)=>{};function O(t,n,e,r){let i=V(),o=me(),s=Ne();return Sy(o,i,i[ge],s,t,n,r),O}function MI(t,n,e,r){let i=t.cleanup;if(i!=null)for(let o=0;oc?a[c]:null}typeof s=="string"&&(o+=2)}return null}function Sy(t,n,e,r,i,o,s){let a=ma(r),l=t.firstCreatePass&&Wm(t),u=n[Et],d=Gm(n),h=!0;if(r.type&3||s){let E=ht(r,n),M=s?s(E):E,F=d.length,se=s?Te=>s(jt(Te[r.index])):r.index,J=null;if(!s&&a&&(J=MI(t,n,i,r.index)),J!==null){let Te=J.__ngLastListenerFn__||J;Te.__ngNextListenerFn__=o,J.__ngLastListenerFn__=o,h=!1}else{o=Lp(r,n,u,o),xI(E,i,o);let Te=e.listen(M,i,o);d.push(o,Te),l&&l.push(i,se,F,F+1)}}else o=Lp(r,n,u,o);let f=r.outputs,C;if(h&&f!==null&&(C=f[i])){let E=C.length;if(E)for(let M=0;M-1?Mn(t.index,n):n;yd(s,5);let a=Fp(n,e,r,o),c=i.__ngNextListenerFn__;for(;c;)a=Fp(n,e,c,o)&&a,c=c.__ngNextListenerFn__;return a}}function g(t=1){return kC(t)}function SI(t,n){let e=null,r=Hw(t);for(let i=0;i=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=r}function St(t){let n=MC();return ya(n,Re+t)}function A(t,n=""){let e=V(),r=me(),i=t+Re,o=r.firstCreatePass?Jr(r,i,1,n,null):r.data[i],s=OI(r,e,o,n,t);e[i]=s,ba()&&Ta(r,e,s,o),ir(o,!1)}var OI=(t,n,e,r,i)=>(Da(!0),Zb(n[ge],r));function Ee(t){return ue("",t,""),Ee}function ue(t,n,e){let r=V(),i=my(r,t,n,e);return i!==gt&&Ym(r,Sn(),i),ue}function Dd(t,n,e,r,i){let o=V(),s=tI(o,t,n,e,r,i);return s!==gt&&Ym(o,Sn(),s),Dd}function Xi(t,n,e){dy(n)&&(n=n());let r=V(),i=wa();if(It(r,i,n)){let o=me(),s=Ju();Um(o,s,r,t,n,r[ge],e,!1)}return Xi}function La(t,n){let e=dy(t);return e&&t.set(n),e}function eo(t,n){let e=V(),r=me(),i=Ne();return Sy(r,e,e[ge],i,t,n),eo}function NI(t,n,e){let r=me();if(r.firstCreatePass){let i=En(t);Tu(e,r.data,r.blueprint,i,!0),Tu(n,r.data,r.blueprint,i,!1)}}function Tu(t,n,e,r,i){if(t=Le(t),Array.isArray(t))for(let o=0;o>20;if(Ur(t)||!t.multi){let f=new Jn(l,i,I),C=Al(c,n,i?u:u+h,d);C===-1?(ql(zs(a,s),o,c),Tl(o,t,n.length),n.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),e.push(f),s.push(f)):(e[C]=f,s[C]=f)}else{let f=Al(c,n,u+h,d),C=Al(c,n,u,u+h),E=f>=0&&e[f],M=C>=0&&e[C];if(i&&!M||!i&&!E){ql(zs(a,s),o,c);let F=kI(i?RI:PI,e.length,i,r,l);!i&&M&&(e[C].providerFactory=F),Tl(o,t,n.length,0),n.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),e.push(F),s.push(F)}else{let F=Ty(e[i?C:f],l,!i&&r);Tl(o,t,f>-1?f:C,F)}!i&&r&&M&&e[C].componentProviders++}}}function Tl(t,n,e,r){let i=Ur(n),o=rC(n);if(i||o){let c=(o?Le(n.useClass):n).prototype.ngOnDestroy;if(c){let l=t.destroyHooks||(t.destroyHooks=[]);if(!i&&n.multi){let u=l.indexOf(e);u===-1?l.push(e,[r,c]):l[u+1].push(r,c)}else l.push(e,c)}}}function Ty(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function Al(t,n,e,r){for(let i=e;i{e.providersResolver=(r,i)=>NI(r,i?i(t):t,n)}}var FI=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){let r=dg(!1,e.type),i=r.length>0?ka([r],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,i)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(let e of this.cachedInjectors.values())e!==null&&e.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=D({token:t,providedIn:"environment",factory:()=>new t(_(je))})}}return t})();function Ay(t){Xr("NgStandalone"),t.getStandaloneInjector=n=>n.get(FI).getOrCreateStandaloneInjector(t)}function Ed(t,n,e){let r=t.\u0275cmp;r.directiveDefs=Ls(n,!1),r.pipeDefs=Ls(e,!0)}function CL(t,n,e){let r=or()+t,i=V();return i[r]===gt?sr(i,r,e?n.call(e):n()):hy(i,r)}function On(t,n,e,r){return LI(V(),or(),t,n,e,r)}function Oy(t,n,e,r,i,o,s,a,c,l,u){let d=or()+t,h=V(),f=Du(h,d,e,r,i,o);return Du(h,d+4,s,a,c,l)||f?sr(h,d+8,u?n.call(u,e,r,i,o,s,a,c,l):n(e,r,i,o,s,a,c,l)):hy(h,d+8)}function Ny(t,n,e,r){return UI(V(),or(),t,n,e,r)}function no(t,n){let e=t[n];return e===gt?void 0:e}function LI(t,n,e,r,i,o){let s=n+e;return It(t,s,i)?sr(t,s+1,o?r.call(o,i):r(i)):no(t,s+1)}function VI(t,n,e,r,i,o,s){let a=n+e;return Gi(t,a,i,o)?sr(t,a+2,s?r.call(s,i,o):r(i,o)):no(t,a+2)}function jI(t,n,e,r,i,o,s,a){let c=n+e;return WE(t,c,i,o,s)?sr(t,c+3,a?r.call(a,i,o,s):r(i,o,s)):no(t,c+3)}function BI(t,n,e,r,i,o,s,a,c){let l=n+e;return Du(t,l,i,o,s,a)?sr(t,l+4,c?r.call(c,i,o,s,a):r(i,o,s,a)):no(t,l+4)}function UI(t,n,e,r,i,o){let s=n+e,a=!1;for(let c=0;c=0;e--){let r=n[e];if(t===r.name)return r}}function bL(t,n,e,r){let i=t+Re,o=V(),s=ya(o,i);return Id(o,i)?VI(o,or(),n,s.transform,e,r,s):s.transform(e,r)}function ti(t,n,e,r,i){let o=t+Re,s=V(),a=ya(s,o);return Id(s,o)?jI(s,or(),n,a.transform,e,r,i,a):a.transform(e,r,i)}function Py(t,n,e,r,i,o){let s=t+Re,a=V(),c=ya(a,s);return Id(a,s)?BI(a,or(),n,c.transform,e,r,i,o,c):c.transform(e,r,i,o)}function Id(t,n){return t[U].data[n].pure}function an(t,n){return Pa(t,n)}var xs=null;function HI(t){xs!==null&&(t.defaultEncapsulation!==xs.defaultEncapsulation||t.preserveWhitespaces!==xs.preserveWhitespaces)||(xs=t)}var Va=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})();var xd=new x(""),ro=new x(""),ja=(()=>{class t{constructor(e,r,i){this._ngZone=e,this.registry=r,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,Md||(zI(i),i.addToWindow(r)),this._watchAngularEvents(),e.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:()=>{te.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 e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb()}});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>r.updateCb&&r.updateCb(e)?(clearTimeout(r.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,r,i){let o=-1;r&&r>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),e()},r)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:i})}whenStable(e,r,i){if(i&&!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(e,r,i),this._runCallbacksIfReady()}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,r,i){return[]}static{this.\u0275fac=function(r){return new(r||t)(_(te),_(Ba),_(ro))}}static{this.\u0275prov=D({token:t,factory:t.\u0275fac})}}return t})(),Ba=(()=>{class t{constructor(){this._applications=new Map}registerApplication(e,r){this._applications.set(e,r)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,r=!0){return Md?.findTestabilityInTree(this,e,r)??null}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})();function zI(t){Md=t}var Md;function dr(t){return!!t&&typeof t.then=="function"}function Ry(t){return!!t&&typeof t.subscribe=="function"}var Ua=new x(""),ky=(()=>{class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,r)=>{this.resolve=e,this.reject=r}),this.appInits=w(Ua,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let e=[];for(let i of this.appInits){let o=i();if(dr(o))e.push(o);else if(Ry(o)){let s=new Promise((a,c)=>{o.subscribe({complete:a,error:c})});e.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{r()}).catch(i=>{this.reject(i)}),e.length===0&&r(),this.initialized=!0}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),$a=new x("");function qI(){Sh(()=>{throw new S(600,!1)})}function GI(t){return t.isBoundToModule}var WI=10;function ZI(t,n,e){try{let r=e();return dr(r)?r.catch(i=>{throw n.runOutsideAngular(()=>t.handleError(i)),i}):r}catch(r){throw n.runOutsideAngular(()=>t.handleError(r)),r}}function Fy(t,n){return Array.isArray(n)?n.reduce(Fy,t):b(b({},t),n)}var nt=(()=>{class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=w(cb),this.afterRenderManager=w(gy),this.zonelessEnabled=w(vd),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new de,this.afterTick=new de,this.componentTypes=[],this.components=[],this.isStable=w(rn).hasPendingTasks.pipe(j(e=>!e)),this._injector=w(je)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let e;return new Promise(r=>{e=this.isStable.subscribe({next:i=>{i&&r()}})}).finally(()=>{e.unsubscribe()})}get injector(){return this._injector}bootstrap(e,r){let i=e instanceof Qs;if(!this._injector.get(ky).done){let h=!i&&ag(e),f=!1;throw new S(405,f)}let s;i?s=e:s=this._injector.get(Ut).resolveComponentFactory(e),this.componentTypes.push(s.componentType);let a=GI(s)?void 0:this._injector.get(xn),c=r||s.selector,l=s.create(xe.NULL,[],c,a),u=l.location.nativeElement,d=l.injector.get(xd,null);return d?.registerApplication(u),l.onDestroy(()=>{this.detachView(l.hostView),Ns(this.components,l),d?.unregisterApplication(u)}),this._loadComponent(l),l}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new S(101,!1);let e=K(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,K(e),this.afterTick.next()}}synchronize(){let e=null;this._injector.destroyed||(e=this._injector.get(Gr,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let r=0;for(;this.dirtyFlags!==0&&r++va(e))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(e){let r=e;this._views.push(r),r.attachToAppRef(this)}detachView(e){let r=e;Ns(this._views,r),r.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);let r=this._injector.get($a,[]);[...this._bootstrapListeners,...r].forEach(i=>i(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Ns(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new S(406,!1);let e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Ns(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function YI(t,n,e,r){if(!e&&!va(t))return;ey(t,n,e&&!r?0:1)}var Ou=class{constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}},Ha=(()=>{class t{compileModuleSync(e){return new na(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){let r=this.compileModuleSync(e),i=cg(e),o=bm(i.declarations).reduce((s,a)=>{let c=Dn(a);return c&&s.push(new Wr(c)),s},[]);return new Ou(r,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),QI=new x("");function KI(t,n,e){let r=new na(e);return Promise.resolve(r)}function Vp(t){for(let n=t.length-1;n>=0;n--)if(t[n]!==void 0)return t[n]}var JI=(()=>{class t{constructor(){this.zone=w(te),this.changeDetectionScheduler=w(qr),this.applicationRef=w(nt)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function XI({ngZoneFactory:t,ignoreChangesOutsideZone:n,scheduleInRootZone:e}){return t??=()=>new te(z(b({},Ly()),{scheduleInRootZone:e})),[{provide:te,useFactory:t},{provide:Br,multi:!0,useFactory:()=>{let r=w(JI,{optional:!0});return()=>r.initialize()}},{provide:Br,multi:!0,useFactory:()=>{let r=w(ex);return()=>{r.initialize()}}},n===!0?{provide:iy,useValue:!0}:[],{provide:oy,useValue:e??Jg}]}function Ly(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var ex=(()=>{class t{constructor(){this.subscription=new _e,this.initialized=!1,this.zone=w(te),this.pendingTasks=w(rn)}initialize(){if(this.initialized)return;this.initialized=!0;let e=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(e=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{te.assertNotInAngularZone(),queueMicrotask(()=>{e!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{te.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var tx=(()=>{class t{constructor(){this.appRef=w(nt),this.taskService=w(rn),this.ngZone=w(te),this.zonelessEnabled=w(vd),this.disableScheduling=w(iy,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new _e,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Gs):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(w(oy,{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(e){if(!this.zonelessEnabled&&e===5)return;switch(e){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 r=this.useMicrotaskScheduler?vp:Xg;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>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 e=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(e),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,vp(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(e)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let e=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(e)}}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function nx(){return typeof $localize<"u"&&$localize.locale||ia}var Sd=new x("",{providedIn:"root",factory:()=>w(Sd,q.Optional|q.SkipSelf)||nx()});var oa=new x("");function Ms(t){return!t.moduleRef}function rx(t){let n=Ms(t)?t.r3Injector:t.moduleRef.injector,e=n.get(te);return e.run(()=>{Ms(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let r=n.get(Xt,null),i;if(e.runOutsideAngular(()=>{i=e.onError.subscribe({next:o=>{r.handleError(o)}})}),Ms(t)){let o=()=>n.destroy(),s=t.platformInjector.get(oa);s.add(o),n.onDestroy(()=>{i.unsubscribe(),s.delete(o)})}else{let o=()=>t.moduleRef.destroy(),s=t.platformInjector.get(oa);s.add(o),t.moduleRef.onDestroy(()=>{Ns(t.allPlatformModules,t.moduleRef),i.unsubscribe(),s.delete(o)})}return ZI(r,e,()=>{let o=n.get(ky);return o.runInitializers(),o.donePromise.then(()=>{let s=n.get(Sd,ia);if(II(s||ia),Ms(t)){let a=n.get(nt);return t.rootComponent!==void 0&&a.bootstrap(t.rootComponent),a}else return ix(t.moduleRef,t.allPlatformModules),t.moduleRef})})})}function ix(t,n){let e=t.injector.get(nt);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(r=>e.bootstrap(r));else if(t.instance.ngDoBootstrap)t.instance.ngDoBootstrap(e);else throw new S(-403,!1);n.push(t)}var Vy=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,r){let i=r?.scheduleInRootZone,o=()=>ab(r?.ngZone,z(b({},Ly({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing})),{scheduleInRootZone:i})),s=r?.ignoreChangesOutsideZone,a=[XI({ngZoneFactory:o,ignoreChangesOutsideZone:s}),{provide:qr,useExisting:tx}],c=qE(e.moduleType,this.injector,a);return rx({moduleRef:c,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(e,r=[]){let i=Fy({},r);return KI(this.injector,i,e).then(o=>this.bootstrapModuleFactory(o,i))}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new S(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());let e=this._injector.get(oa,null);e&&(e.forEach(r=>r()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static{this.\u0275fac=function(r){return new(r||t)(_(xe))}}static{this.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})(),ji=null,jy=new x("");function ox(t){if(ji&&!ji.get(jy,!1))throw new S(400,!1);qI(),ji=t;let n=t.get(Vy);return cx(t),n}function Td(t,n,e=[]){let r=`Platform: ${n}`,i=new x(r);return(o=[])=>{let s=By();if(!s||s.injector.get(jy,!1)){let a=[...e,...o,{provide:i,useValue:!0}];t?t(a):ox(sx(a,r))}return ax(i)}}function sx(t=[],n){return xe.create({name:n,providers:[{provide:ha,useValue:"platform"},{provide:oa,useValue:new Set([()=>ji=null])},...t]})}function ax(t){let n=By();if(!n)throw new S(401,!1);return n}function By(){return ji?.get(Vy)??null}function cx(t){t.get(id,null)?.forEach(e=>e())}function DL(){return!1}var Nn=(()=>{class t{static{this.__NG_ELEMENT_ID__=lx}}return t})();function lx(t){return ux(Ne(),V(),(t&16)===16)}function ux(t,n,e){if(ga(t)&&!e){let r=Mn(t.index,n);return new er(r,r)}else if(t.type&175){let r=n[ut];return new er(r,n)}return null}var Nu=class{constructor(){}supports(n){return fy(n)}create(n){return new Pu(n)}},dx=(t,n)=>n,Pu=class{constructor(n){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=n||dx}forEachItem(n){let e;for(e=this._itHead;e!==null;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,r=this._removalsHead,i=0,o=null;for(;e||r;){let s=!r||e&&e.currentIndex{s=this._trackByFn(i,a),e===null||!Object.is(e.trackById,s)?(e=this._mismatch(e,a,s,i),r=!0):(r&&(e=this._verifyReinsertion(e,a,s,i)),Object.is(e.item,a)||this._addIdentityChange(e,a)),e=e._next,i++}),this.length=i;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;n!==null;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;n!==null;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;n!==null;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,r,i){let o;return n===null?o=this._itTail:(o=n._prev,this._remove(n)),n=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),n!==null?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,o,i)):(n=this._linkedRecords===null?null:this._linkedRecords.get(r,i),n!==null?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,o,i)):n=this._addAfter(new Ru(e,r),o,i)),n}_verifyReinsertion(n,e,r,i){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return o!==null?n=this._reinsertAfter(o,n._prev,i):n.currentIndex!=i&&(n.currentIndex=i,this._addToMoves(n,i)),n}_truncate(n){for(;n!==null;){let e=n._next;this._addToRemovals(this._unlink(n)),n=e}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(n,e,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(n);let i=n._prevRemoved,o=n._nextRemoved;return i===null?this._removalsHead=o:i._nextRemoved=o,o===null?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(n,e,r),this._addToMoves(n,r),n}_moveAfter(n,e,r){return this._unlink(n),this._insertAfter(n,e,r),this._addToMoves(n,r),n}_addAfter(n,e,r){return this._insertAfter(n,e,r),this._additionsTail===null?this._additionsTail=this._additionsHead=n:this._additionsTail=this._additionsTail._nextAdded=n,n}_insertAfter(n,e,r){let i=e===null?this._itHead:e._next;return n._next=i,n._prev=e,i===null?this._itTail=n:i._prev=n,e===null?this._itHead=n:e._next=n,this._linkedRecords===null&&(this._linkedRecords=new sa),this._linkedRecords.put(n),n.currentIndex=r,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){this._linkedRecords!==null&&this._linkedRecords.remove(n);let e=n._prev,r=n._next;return e===null?this._itHead=r:e._next=r,r===null?this._itTail=e:r._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail===null?this._movesTail=this._movesHead=n:this._movesTail=this._movesTail._nextMoved=n),n}_addToRemovals(n){return this._unlinkedRecords===null&&(this._unlinkedRecords=new sa),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=n:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=n,n}},Ru=class{constructor(n,e){this.item=n,this.trackById=e,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}},ku=class{constructor(){this._head=null,this._tail=null}add(n){this._head===null?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let r;for(r=this._head;r!==null;r=r._nextDup)if((e===null||e<=r.currentIndex)&&Object.is(r.trackById,n))return r;return null}remove(n){let e=n._prevDup,r=n._nextDup;return e===null?this._head=r:e._nextDup=r,r===null?this._tail=e:r._prevDup=e,this._head===null}},sa=class{constructor(){this.map=new Map}put(n){let e=n.trackById,r=this.map.get(e);r||(r=new ku,this.map.set(e,r)),r.add(n)}get(n,e){let r=n,i=this.map.get(r);return i?i.get(n,e):null}remove(n){let e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function jp(t,n,e){let r=t.previousIndex;if(r===null)return r;let i=0;return e&&r{if(e&&e.key===i)this._maybeAddToChanges(e,r),this._appendAfter=e,e=e._next;else{let o=this._getOrCreateRecordForKey(i,r);e=this._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let r=e;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(n,e){if(n){let r=n._prev;return e._next=n,e._prev=r,n._prev=e,r&&(r._next=e),n===this._mapHead&&(this._mapHead=e),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(n,e){if(this._records.has(n)){let i=this._records.get(n);this._maybeAddToChanges(i,e);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 Vu(n);return this._records.set(n,r),r.currentValue=e,this._addToAdditions(r),r}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;n!==null;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;n!==null;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;n!=null;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,e){Object.is(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,this._addToChanges(n))}_addToAdditions(n){this._additionsHead===null?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){this._changesHead===null?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,e){n instanceof Map?n.forEach(e):Object.keys(n).forEach(r=>e(n[r],r))}},Vu=class{constructor(n){this.key=n,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 Bp(){return new Ad([new Nu])}var Ad=(()=>{class t{static{this.\u0275prov=D({token:t,providedIn:"root",factory:Bp})}constructor(e){this.factories=e}static create(e,r){if(r!=null){let i=r.factories.slice();e=e.concat(i)}return new t(e)}static extend(e){return{provide:t,useFactory:r=>t.create(e,r||Bp()),deps:[[t,new ua,new Yi]]}}find(e){let r=this.factories.find(i=>i.supports(e));if(r!=null)return r;throw new S(901,!1)}}return t})();function Up(){return new Od([new Fu])}var Od=(()=>{class t{static{this.\u0275prov=D({token:t,providedIn:"root",factory:Up})}constructor(e){this.factories=e}static create(e,r){if(r){let i=r.factories.slice();e=e.concat(i)}return new t(e)}static extend(e){return{provide:t,useFactory:r=>t.create(e,r||Up()),deps:[[t,new ua,new Yi]]}}find(e){let r=this.factories.find(i=>i.supports(e));if(r)return r;throw new S(901,!1)}}return t})();var Uy=Td(null,"core",[]),$y=(()=>{class t{constructor(e){}static{this.\u0275fac=function(r){return new(r||t)(_(nt))}}static{this.\u0275mod=ce({type:t})}static{this.\u0275inj=ae({})}}return t})();function fr(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function za(t,n){Xr("NgSignals");let e=Ih(t);return n?.equal&&(e[Zt].equal=n.equal),e}function Pn(t){let n=K(null);try{return t()}finally{K(n)}}function Hy(t){let n=Dn(t);if(!n)return null;let e=new Wr(n);return{get selector(){return e.selector},get type(){return e.componentType},get inputs(){return e.inputs},get outputs(){return e.outputs},get ngContentSelectors(){return e.ngContentSelectors},get isStandalone(){return n.standalone},get isSignal(){return n.signals}}}var Yy=null;function Tt(){return Yy}function Qy(t){Yy??=t}var qa=class{};var Me=new x(""),Vd=(()=>{class t{historyGo(e){throw new Error("")}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=D({token:t,factory:()=>w(hx),providedIn:"platform"})}}return t})(),Ky=new x(""),hx=(()=>{class t extends Vd{constructor(){super(),this._doc=w(Me),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Tt().getBaseHref(this._doc)}onPopState(e){let r=Tt().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",e,!1),()=>r.removeEventListener("popstate",e)}onHashChange(e){let r=Tt().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",e,!1),()=>r.removeEventListener("hashchange",e)}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(e){this._location.pathname=e}pushState(e,r,i){this._history.pushState(e,r,i)}replaceState(e,r,i){this._history.replaceState(e,r,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=D({token:t,factory:()=>new t,providedIn:"platform"})}}return t})();function jd(t,n){if(t.length==0)return n;if(n.length==0)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,e==2?t+n.substring(1):e==1?t+n:t+"/"+n}function zy(t){let n=t.match(/#|\?|$/),e=n&&n.index||t.length,r=e-(t[e-1]==="/"?1:0);return t.slice(0,r)+t.slice(e)}function cn(t){return t&&t[0]!=="?"?"?"+t:t}var ln=(()=>{class t{historyGo(e){throw new Error("")}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=D({token:t,factory:()=>w(Bd),providedIn:"root"})}}return t})(),Jy=new x(""),Bd=(()=>{class t extends ln{constructor(e,r){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??w(Me).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return jd(this._baseHref,e)}path(e=!1){let r=this._platformLocation.pathname+cn(this._platformLocation.search),i=this._platformLocation.hash;return i&&e?`${r}${i}`:r}pushState(e,r,i,o){let s=this.prepareExternalUrl(i+cn(o));this._platformLocation.pushState(e,r,s)}replaceState(e,r,i,o){let s=this.prepareExternalUrl(i+cn(o));this._platformLocation.replaceState(e,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static{this.\u0275fac=function(r){return new(r||t)(_(Vd),_(Jy,8))}}static{this.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Xy=(()=>{class t extends ln{constructor(e,r){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],r!=null&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let r=this._platformLocation.hash??"#";return r.length>0?r.substring(1):r}prepareExternalUrl(e){let r=jd(this._baseHref,e);return r.length>0?"#"+r:r}pushState(e,r,i,o){let s=this.prepareExternalUrl(i+cn(o));s.length==0&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,r,s)}replaceState(e,r,i,o){let s=this.prepareExternalUrl(i+cn(o));s.length==0&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static{this.\u0275fac=function(r){return new(r||t)(_(Vd),_(Jy,8))}}static{this.\u0275prov=D({token:t,factory:t.\u0275fac})}}return t})(),ri=(()=>{class t{constructor(e){this._subject=new H,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;let r=this._locationStrategy.getBaseHref();this._basePath=mx(zy(qy(r))),this._locationStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,r=""){return this.path()==this.normalize(e+cn(r))}normalize(e){return t.stripTrailingSlash(gx(this._basePath,qy(e)))}prepareExternalUrl(e){return e&&e[0]!=="/"&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,r="",i=null){this._locationStrategy.pushState(i,"",e,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+cn(r)),i)}replaceState(e,r="",i=null){this._locationStrategy.replaceState(i,"",e,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+cn(r)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",r){this._urlChangeListeners.forEach(i=>i(e,r))}subscribe(e,r,i){return this._subject.subscribe({next:e,error:r,complete:i})}static{this.normalizeQueryParams=cn}static{this.joinWithSlash=jd}static{this.stripTrailingSlash=zy}static{this.\u0275fac=function(r){return new(r||t)(_(ln))}}static{this.\u0275prov=D({token:t,factory:()=>px(),providedIn:"root"})}}return t})();function px(){return new ri(_(ln))}function gx(t,n){if(!t||!n.startsWith(t))return n;let e=n.substring(t.length);return e===""||["/",";","?","#"].includes(e[0])?e:n}function qy(t){return t.replace(/\/index.html$/,"")}function mx(t){if(new RegExp("^(https?:)?//").test(t)){let[,e]=t.split(/\/\/[^\/]+/);return e}return t}function Ga(t,n){n=encodeURIComponent(n);for(let e of t.split(";")){let r=e.indexOf("="),[i,o]=r==-1?[e,""]:[e.slice(0,r),e.slice(r+1)];if(i.trim()===n)return decodeURIComponent(o)}return null}var Nd=/\s+/,Gy=[],un=(()=>{class t{constructor(e,r){this._ngEl=e,this._renderer=r,this.initialClasses=Gy,this.stateMap=new Map}set klass(e){this.initialClasses=e!=null?e.trim().split(Nd):Gy}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split(Nd):e}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,!0);let e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(let r of e)this._updateState(r,!0);else if(e!=null)for(let r of Object.keys(e))this._updateState(r,!!e[r]);this._applyStateDiff()}_updateState(e,r){let i=this.stateMap.get(e);i!==void 0?(i.enabled!==r&&(i.changed=!0,i.enabled=r),i.touched=!0):this.stateMap.set(e,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(let e of this.stateMap){let r=e[0],i=e[1];i.changed?(this._toggleClass(r,i.enabled),i.changed=!1):i.touched||(i.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),i.touched=!1}}_toggleClass(e,r){e=e.trim(),e.length>0&&e.split(Nd).forEach(i=>{r?this._renderer.addClass(this._ngEl.nativeElement,i):this._renderer.removeClass(this._ngEl.nativeElement,i)})}static{this.\u0275fac=function(r){return new(r||t)(I(De),I(Mt))}}static{this.\u0275dir=re({type:t,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0})}}return t})();var Pd=class{constructor(n,e,r,i){this.$implicit=n,this.ngForOf=e,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}},Be=(()=>{class t{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,r,i){this._viewContainer=e,this._template=r,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let e=this._ngForOf;if(!this._differ&&e)if(0)try{}catch{}else this._differ=this._differs.find(e).create(this.ngForTrackBy)}if(this._differ){let e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){let r=this._viewContainer;e.forEachOperation((i,o,s)=>{if(i.previousIndex==null)r.createEmbeddedView(this._template,new Pd(i.item,this._ngForOf,-1,-1),s===null?void 0:s);else if(s==null)r.remove(o===null?void 0:o);else if(o!==null){let a=r.get(o);r.move(a,s),Wy(a,i)}});for(let i=0,o=r.length;i{let o=r.get(i.currentIndex);Wy(o,i)})}static ngTemplateContextGuard(e,r){return!0}static{this.\u0275fac=function(r){return new(r||t)(I(sn),I(dt),I(Ad))}}static{this.\u0275dir=re({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}}return t})();function Wy(t,n){t.context.$implicit=n.item}var rt=(()=>{class t{constructor(e,r){this._viewContainer=e,this._context=new Rd,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){Zy("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){Zy("ngIfElse",e),this._elseTemplateRef=e,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(e,r){return!0}static{this.\u0275fac=function(r){return new(r||t)(I(sn),I(dt))}}static{this.\u0275dir=re({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}}return t})(),Rd=class{constructor(){this.$implicit=null,this.ngIf=null}};function Zy(t,n){if(!!!(!n||n.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${Ve(n)}'.`)}var ev=(()=>{class t{constructor(e,r,i){this._ngEl=e,this._differs=r,this._renderer=i,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){let e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,r){let[i,o]=e.split("."),s=i.indexOf("-")===-1?void 0:Bt.DashCase;r!=null?this._renderer.setStyle(this._ngEl.nativeElement,i,o?`${r}${o}`:r,s):this._renderer.removeStyle(this._ngEl.nativeElement,i,s)}_applyChanges(e){e.forEachRemovedItem(r=>this._setStyle(r.key,null)),e.forEachAddedItem(r=>this._setStyle(r.key,r.currentValue)),e.forEachChangedItem(r=>this._setStyle(r.key,r.currentValue))}static{this.\u0275fac=function(r){return new(r||t)(I(De),I(Od),I(Mt))}}static{this.\u0275dir=re({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}}return t})(),ii=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(this._shouldRecreateView(e)){let r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let i=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,i,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,r,i)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,r,i):!1,get:(e,r,i)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,i)}})}static{this.\u0275fac=function(r){return new(r||t)(I(sn))}}static{this.\u0275dir=re({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Xe]})}}return t})();var Fe=(()=>{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275mod=ce({type:t})}static{this.\u0275inj=ae({})}}return t})(),Ud="browser",yx="server";function vx(t){return t===Ud}function hr(t){return t===yx}var tv=(()=>{class t{static{this.\u0275prov=D({token:t,providedIn:"root",factory:()=>vx(w(pt))?new kd(w(Me),window):new Fd})}}return t})(),kd=class{constructor(n,e){this.document=n,this.window=e,this.offset=()=>[0,0]}setOffset(n){Array.isArray(n)?this.offset=()=>n:this.offset=n}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(n){this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){let e=_x(this.document,n);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(n){this.window.history.scrollRestoration=n}scrollToElement(n){let e=n.getBoundingClientRect(),r=e.left+this.window.pageXOffset,i=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(r-o[0],i-o[1])}};function _x(t,n){let e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;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(n)||o.querySelector(`[name="${n}"]`);if(s)return s}i=r.nextNode()}}return null}var Fd=class{setOffset(n){}getScrollPosition(){return[0,0]}scrollToPosition(n){}scrollToAnchor(n){}setHistoryScrollRestoration(n){}},ni=class{};var oo=class{},Za=class{},Ue=class t{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?typeof n=="string"?this.lazyInit=()=>{this.headers=new Map,n.split(` +`).forEach(e=>{let r=e.indexOf(":");if(r>0){let i=e.slice(0,r),o=i.toLowerCase(),s=e.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"&&n instanceof Headers?(this.headers=new Map,n.forEach((e,r)=>{this.setHeaderEntries(r,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([e,r])=>{this.setHeaderEntries(e,r)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();let e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){let e=new t;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){let e=n.name.toLowerCase();switch(n.op){case"a":case"s":let r=n.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(n.name,e);let i=(n.op==="a"?this.headers.get(e):void 0)||[];i.push(...r),this.headers.set(e,i);break;case"d":let o=n.value;if(!o)this.headers.delete(e),this.normalizedNames.delete(e);else{let s=this.headers.get(e);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}break}}setHeaderEntries(n,e){let r=(Array.isArray(e)?e:[e]).map(o=>o.toString()),i=n.toLowerCase();this.headers.set(i,r),this.maybeSetNormalizedName(n,i)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}};var Hd=class{encodeKey(n){return nv(n)}encodeValue(n){return nv(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}};function wx(t,n){let e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(i=>{let o=i.indexOf("="),[s,a]=o==-1?[n.decodeKey(i),""]:[n.decodeKey(i.slice(0,o)),n.decodeValue(i.slice(o+1))],c=e.get(s)||[];c.push(a),e.set(s,c)}),e}var Cx=/%(\d[a-f0-9])/gi,bx={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function nv(t){return encodeURIComponent(t).replace(Cx,(n,e)=>bx[e]??n)}function Wa(t){return`${t}`}var kn=class t{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new Hd,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=wx(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{let r=n.fromObject[e],i=Array.isArray(r)?r.map(Wa):[Wa(r)];this.map.set(e,i)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();let e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){let e=[];return Object.keys(n).forEach(r=>{let i=n[r];Array.isArray(i)?i.forEach(o=>{e.push({param:r,value:o,op:"a"})}):e.push({param:r,value:i,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{let e=this.encoder.encodeKey(n);return this.map.get(n).map(r=>e+"="+this.encoder.encodeValue(r)).join("&")}).filter(n=>n!=="").join("&")}clone(n){let e=new t({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":let e=(n.op==="a"?this.map.get(n.param):void 0)||[];e.push(Wa(n.value)),this.map.set(n.param,e);break;case"d":if(n.value!==void 0){let r=this.map.get(n.param)||[],i=r.indexOf(Wa(n.value));i!==-1&&r.splice(i,1),r.length>0?this.map.set(n.param,r):this.map.delete(n.param)}else{this.map.delete(n.param);break}}}),this.cloneFrom=this.updates=null)}};var zd=class{constructor(){this.map=new Map}set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}};function Dx(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function rv(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function iv(t){return typeof Blob<"u"&&t instanceof Blob}function ov(t){return typeof FormData<"u"&&t instanceof FormData}function Ex(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var io=class t{constructor(n,e,r,i){this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase();let o;if(Dx(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 Ue,this.context??=new zd,!this.params)this.params=new kn,this.urlWithParams=e;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=e;else{let a=e.indexOf("?"),c=a===-1?"?":ah.set(f,n.setHeaders[f]),l)),n.setParams&&(u=Object.keys(n.setParams).reduce((h,f)=>h.set(f,n.setParams[f]),u)),new t(e,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||{}),so=class{constructor(n,e=200,r="OK"){this.headers=n.headers||new Ue,this.status=n.status!==void 0?n.status:e,this.statusText=n.statusText||r,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}},Ya=class t extends so{constructor(n={}){super(n),this.type=Fn.ResponseHeader}clone(n={}){return new t({headers:n.headers||this.headers,status:n.status!==void 0?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}},ao=class t extends so{constructor(n={}){super(n),this.type=Fn.Response,this.body=n.body!==void 0?n.body:null}clone(n={}){return new t({body:n.body!==void 0?n.body:this.body,headers:n.headers||this.headers,status:n.status!==void 0?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}},Rn=class extends so{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${n.url||"(unknown url)"}`:this.message=`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}},uv=200,Ix=204;function $d(t,n){return{body:n,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 Wd=(()=>{class t{constructor(e){this.handler=e}request(e,r,i={}){let o;if(e instanceof io)o=e;else{let c;i.headers instanceof Ue?c=i.headers:c=new Ue(i.headers);let l;i.params&&(i.params instanceof kn?l=i.params:l=new kn({fromObject:i.params})),o=new io(e,r,i.body!==void 0?i.body:null,{headers:c,context:i.context,params:l,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache})}let s=R(o).pipe(Qt(c=>this.handler.handle(c)));if(e instanceof io||i.observe==="events")return s;let a=s.pipe(qe(c=>c instanceof ao));switch(i.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(j(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return a.pipe(j(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return a.pipe(j(c=>{if(c.body!==null&&typeof c.body!="string")throw new Error("Response is not a string.");return c.body}));case"json":default:return a.pipe(j(c=>c.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(e,r={}){return this.request("DELETE",e,r)}get(e,r={}){return this.request("GET",e,r)}head(e,r={}){return this.request("HEAD",e,r)}jsonp(e,r){return this.request("JSONP",e,{params:new kn().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,r={}){return this.request("OPTIONS",e,r)}patch(e,r,i={}){return this.request("PATCH",e,$d(i,r))}post(e,r,i={}){return this.request("POST",e,$d(i,r))}put(e,r,i={}){return this.request("PUT",e,$d(i,r))}static{this.\u0275fac=function(r){return new(r||t)(_(oo))}}static{this.\u0275prov=D({token:t,factory:t.\u0275fac})}}return t})(),xx=/^\)\]\}',?\n/,Mx="X-Request-URL";function sv(t){if(t.url)return t.url;let n=Mx.toLocaleLowerCase();return t.headers.get(n)}var Sx=(()=>{class t{constructor(){this.fetchImpl=w(qd,{optional:!0})?.fetch??((...e)=>globalThis.fetch(...e)),this.ngZone=w(te)}handle(e){return new G(r=>{let i=new AbortController;return this.doRequest(e,i.signal,r).then(Gd,o=>r.error(new Rn({error:o}))),()=>i.abort()})}doRequest(e,r,i){return vt(this,null,function*(){let o=this.createRequestInit(e),s;try{let f=this.ngZone.runOutsideAngular(()=>this.fetchImpl(e.urlWithParams,b({signal:r},o)));Tx(f),i.next({type:Fn.Sent}),s=yield f}catch(f){i.error(new Rn({error:f,status:f.status??0,statusText:f.statusText,url:e.urlWithParams,headers:f.headers}));return}let a=new Ue(s.headers),c=s.statusText,l=sv(s)??e.urlWithParams,u=s.status,d=null;if(e.reportProgress&&i.next(new Ya({headers:a,status:u,statusText:c,url:l})),s.body){let f=s.headers.get("content-length"),C=[],E=s.body.getReader(),M=0,F,se,J=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>vt(this,null,function*(){for(;;){let{done:He,value:Ce}=yield E.read();if(He)break;if(C.push(Ce),M+=Ce.length,e.reportProgress){se=e.responseType==="text"?(se??"")+(F??=new TextDecoder).decode(Ce,{stream:!0}):void 0;let Wt=()=>i.next({type:Fn.DownloadProgress,total:f?+f:void 0,loaded:M,partialText:se});J?J.run(Wt):Wt()}}}));let Te=this.concatChunks(C,M);try{let He=s.headers.get("Content-Type")??"";d=this.parseBody(e,Te,He)}catch(He){i.error(new Rn({error:He,headers:new Ue(s.headers),status:s.status,statusText:s.statusText,url:sv(s)??e.urlWithParams}));return}}u===0&&(u=d?uv:0),u>=200&&u<300?(i.next(new ao({body:d,headers:a,status:u,statusText:c,url:l})),i.complete()):i.error(new Rn({error:d,headers:a,status:u,statusText:c,url:l}))})}parseBody(e,r,i){switch(e.responseType){case"json":let o=new TextDecoder().decode(r).replace(xx,"");return o===""?null:JSON.parse(o);case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:i});case"arraybuffer":return r.buffer}}createRequestInit(e){let r={},i=e.withCredentials?"include":void 0;if(e.headers.forEach((o,s)=>r[o]=s.join(",")),e.headers.has("Accept")||(r.Accept="application/json, text/plain, */*"),!e.headers.has("Content-Type")){let o=e.detectContentTypeHeader();o!==null&&(r["Content-Type"]=o)}return{body:e.serializeBody(),method:e.method,headers:r,credentials:i}}concatChunks(e,r){let i=new Uint8Array(r),o=0;for(let s of e)i.set(s,o),o+=s.length;return i}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=D({token:t,factory:t.\u0275fac})}}return t})(),qd=class{};function Gd(){}function Tx(t){t.then(Gd,Gd)}function dv(t,n){return n(t)}function Ax(t,n){return(e,r)=>n.intercept(e,{handle:i=>t(i,r)})}function Ox(t,n,e){return(r,i)=>ft(e,()=>n(r,o=>t(o,i)))}var Nx=new x(""),Zd=new x(""),Px=new x(""),fv=new x("",{providedIn:"root",factory:()=>!0});function Rx(){let t=null;return(n,e)=>{t===null&&(t=(w(Nx,{optional:!0})??[]).reduceRight(Ax,dv));let r=w(rn);if(w(fv)){let o=r.add();return t(n,e).pipe(vn(()=>r.remove(o)))}else return t(n,e)}}var av=(()=>{class t extends oo{constructor(e,r){super(),this.backend=e,this.injector=r,this.chain=null,this.pendingTasks=w(rn),this.contributeToStability=w(fv)}handle(e){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(Zd),...this.injector.get(Px,[])]));this.chain=r.reduceRight((i,o)=>Ox(i,o,this.injector),dv)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(e,i=>this.backend.handle(i)).pipe(vn(()=>this.pendingTasks.remove(r)))}else return this.chain(e,r=>this.backend.handle(r))}static{this.\u0275fac=function(r){return new(r||t)(_(Za),_(je))}}static{this.\u0275prov=D({token:t,factory:t.\u0275fac})}}return t})();var kx=/^\)\]\}',?\n/;function Fx(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var cv=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new S(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?ee(r.\u0275loadImpl()):R(null)).pipe(Ge(()=>new G(o=>{let s=r.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach((E,M)=>s.setRequestHeader(E,M.join(","))),e.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){let E=e.detectContentTypeHeader();E!==null&&s.setRequestHeader("Content-Type",E)}if(e.responseType){let E=e.responseType.toLowerCase();s.responseType=E!=="json"?E:"text"}let a=e.serializeBody(),c=null,l=()=>{if(c!==null)return c;let E=s.statusText||"OK",M=new Ue(s.getAllResponseHeaders()),F=Fx(s)||e.url;return c=new Ya({headers:M,status:s.status,statusText:E,url:F}),c},u=()=>{let{headers:E,status:M,statusText:F,url:se}=l(),J=null;M!==Ix&&(J=typeof s.response>"u"?s.responseText:s.response),M===0&&(M=J?uv:0);let Te=M>=200&&M<300;if(e.responseType==="json"&&typeof J=="string"){let He=J;J=J.replace(kx,"");try{J=J!==""?JSON.parse(J):null}catch(Ce){J=He,Te&&(Te=!1,J={error:Ce,text:J})}}Te?(o.next(new ao({body:J,headers:E,status:M,statusText:F,url:se||void 0})),o.complete()):o.error(new Rn({error:J,headers:E,status:M,statusText:F,url:se||void 0}))},d=E=>{let{url:M}=l(),F=new Rn({error:E,status:s.status||0,statusText:s.statusText||"Unknown Error",url:M||void 0});o.error(F)},h=!1,f=E=>{h||(o.next(l()),h=!0);let M={type:Fn.DownloadProgress,loaded:E.loaded};E.lengthComputable&&(M.total=E.total),e.responseType==="text"&&s.responseText&&(M.partialText=s.responseText),o.next(M)},C=E=>{let M={type:Fn.UploadProgress,loaded:E.loaded};E.lengthComputable&&(M.total=E.total),o.next(M)};return s.addEventListener("load",u),s.addEventListener("error",d),s.addEventListener("timeout",d),s.addEventListener("abort",d),e.reportProgress&&(s.addEventListener("progress",f),a!==null&&s.upload&&s.upload.addEventListener("progress",C)),s.send(a),o.next({type:Fn.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",u),s.removeEventListener("timeout",d),e.reportProgress&&(s.removeEventListener("progress",f),a!==null&&s.upload&&s.upload.removeEventListener("progress",C)),s.readyState!==s.DONE&&s.abort()}})))}static{this.\u0275fac=function(r){return new(r||t)(_(ni))}}static{this.\u0275prov=D({token:t,factory:t.\u0275fac})}}return t})(),hv=new x(""),Lx="XSRF-TOKEN",Vx=new x("",{providedIn:"root",factory:()=>Lx}),jx="X-XSRF-TOKEN",Bx=new x("",{providedIn:"root",factory:()=>jx}),Qa=class{},Ux=(()=>{class t{constructor(e,r,i){this.doc=e,this.platform=r,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Ga(e,this.cookieName),this.lastCookieString=e),this.lastToken}static{this.\u0275fac=function(r){return new(r||t)(_(Me),_(pt),_(Vx))}}static{this.\u0275prov=D({token:t,factory:t.\u0275fac})}}return t})();function $x(t,n){let e=t.url.toLowerCase();if(!w(hv)||t.method==="GET"||t.method==="HEAD"||e.startsWith("http://")||e.startsWith("https://"))return n(t);let r=w(Qa).getToken(),i=w(Bx);return r!=null&&!t.headers.has(i)&&(t=t.clone({headers:t.headers.set(i,r)})),n(t)}var pv=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}(pv||{});function Hx(t,n){return{\u0275kind:t,\u0275providers:n}}function gv(...t){let n=[Wd,cv,av,{provide:oo,useExisting:av},{provide:Za,useFactory:()=>w(Sx,{optional:!0})??w(cv)},{provide:Zd,useValue:$x,multi:!0},{provide:hv,useValue:!0},{provide:Qa,useClass:Ux}];for(let e of t)n.push(...e.\u0275providers);return fa(n)}var lv=new x("");function mv(){return Hx(pv.LegacyInterceptors,[{provide:lv,useFactory:Rx},{provide:Zd,useExisting:lv,multi:!0}])}var Kd=class extends qa{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Jd=class t extends Kd{static makeCurrent(){Qy(new t)}onAndCancel(n,e,r){return n.addEventListener(e,r),()=>{n.removeEventListener(e,r)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.remove()}createElement(n,e){return e=e||this.getDefaultDocument(),e.createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return e==="window"?window:e==="document"?n:e==="body"?n.body:null}getBaseHref(n){let e=qx();return e==null?null:Gx(e)}resetBaseElement(){co=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return Ga(document.cookie,n)}},co=null;function qx(){return co=co||document.querySelector("base"),co?co.getAttribute("href"):null}function Gx(t){return new URL(t,document.baseURI).pathname}var Xd=class{addToWindow(n){Je.getAngularTestability=(r,i=!0)=>{let o=n.findTestabilityInTree(r,i);if(o==null)throw new S(5103,!1);return o},Je.getAllAngularTestabilities=()=>n.getAllTestabilities(),Je.getAllAngularRootElements=()=>n.getAllRootElements();let e=r=>{let i=Je.getAllAngularTestabilities(),o=i.length,s=function(){o--,o==0&&r()};i.forEach(a=>{a.whenStable(s)})};Je.frameworkStabilizers||(Je.frameworkStabilizers=[]),Je.frameworkStabilizers.push(e)}findTestabilityInTree(n,e,r){if(e==null)return null;let i=n.getTestability(e);return i??(r?Tt().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null)}},Wx=(()=>{class t{build(){return new XMLHttpRequest}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=D({token:t,factory:t.\u0275fac})}}return t})(),ef=new x(""),wv=(()=>{class t{constructor(e,r){this._zone=r,this._eventNameToPlugin=new Map,e.forEach(i=>{i.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,r,i){return this._findPluginFor(r).addEventListener(e,r,i)}getZone(){return this._zone}_findPluginFor(e){let r=this._eventNameToPlugin.get(e);if(r)return r;if(r=this._plugins.find(o=>o.supports(e)),!r)throw new S(5101,!1);return this._eventNameToPlugin.set(e,r),r}static{this.\u0275fac=function(r){return new(r||t)(_(ef),_(te))}}static{this.\u0275prov=D({token:t,factory:t.\u0275fac})}}return t})(),Ka=class{constructor(n){this._doc=n}},Yd="ng-app-id",Cv=(()=>{class t{constructor(e,r,i,o={}){this.doc=e,this.appId=r,this.nonce=i,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=hr(o),this.resetHostNodes()}addStyles(e){for(let r of e)this.changeUsageCount(r,1)===1&&this.onStyleAdded(r)}removeStyles(e){for(let r of e)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){let e=this.styleNodesInDOM;e&&(e.forEach(r=>r.remove()),e.clear());for(let r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(let r of this.getAllStyles())this.addStyleToHost(e,r)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(let r of this.hostNodes)this.addStyleToHost(r,e)}onStyleRemoved(e){let r=this.styleRef;r.get(e)?.elements?.forEach(i=>i.remove()),r.delete(e)}collectServerRenderedStyles(){let e=this.doc.head?.querySelectorAll(`style[${Yd}="${this.appId}"]`);if(e?.length){let r=new Map;return e.forEach(i=>{i.textContent!=null&&r.set(i.textContent,i)}),r}return null}changeUsageCount(e,r){let i=this.styleRef;if(i.has(e)){let o=i.get(e);return o.usage+=r,o.usage}return i.set(e,{usage:r,elements:[]}),r}getStyleElement(e,r){let i=this.styleNodesInDOM,o=i?.get(r);if(o?.parentNode===e)return i.delete(r),o.removeAttribute(Yd),o;{let s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(Yd,this.appId),e.appendChild(s),s}}addStyleToHost(e,r){let i=this.getStyleElement(e,r),o=this.styleRef,s=o.get(r)?.elements;s?s.push(i):o.set(r,{elements:[i],usage:1})}resetHostNodes(){let e=this.hostNodes;e.clear(),e.add(this.doc.head)}static{this.\u0275fac=function(r){return new(r||t)(_(Me),_(Ia),_(od,8),_(pt))}}static{this.\u0275prov=D({token:t,factory:t.\u0275fac})}}return t})(),Qd={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"},nf=/%COMP%/g,bv="%COMP%",Zx=`_nghost-${bv}`,Yx=`_ngcontent-${bv}`,Qx=!0,Kx=new x("",{providedIn:"root",factory:()=>Qx});function Jx(t){return Yx.replace(nf,t)}function Xx(t){return Zx.replace(nf,t)}function Dv(t,n){return n.map(e=>e.replace(nf,t))}var yv=(()=>{class t{constructor(e,r,i,o,s,a,c,l=null){this.eventManager=e,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=hr(a),this.defaultRenderer=new lo(e,s,c,this.platformIsServer)}createRenderer(e,r){if(!e||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Lt.ShadowDom&&(r=z(b({},r),{encapsulation:Lt.Emulated}));let i=this.getOrCreateRenderer(e,r);return i instanceof Ja?i.applyToHost(e):i instanceof uo&&i.applyStyles(),i}getOrCreateRenderer(e,r){let i=this.rendererByCompId,o=i.get(r.id);if(!o){let s=this.doc,a=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(r.encapsulation){case Lt.Emulated:o=new Ja(c,l,r,this.appId,u,s,a,d);break;case Lt.ShadowDom:return new tf(c,l,e,r,s,a,this.nonce,d);default:o=new uo(c,l,r,u,s,a,d);break}i.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(r){return new(r||t)(_(wv),_(Cv),_(Ia),_(Kx),_(Me),_(pt),_(te),_(od))}}static{this.\u0275prov=D({token:t,factory:t.\u0275fac})}}return t})(),lo=class{constructor(n,e,r,i){this.eventManager=n,this.doc=e,this.ngZone=r,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(n,e){return e?this.doc.createElementNS(Qd[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(vv(n)?n.content:n).appendChild(e)}insertBefore(n,e,r){n&&(vv(n)?n.content:n).insertBefore(e,r)}removeChild(n,e){e.remove()}selectRootElement(n,e){let r=typeof n=="string"?this.doc.querySelector(n):n;if(!r)throw new S(-5104,!1);return e||(r.textContent=""),r}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,r,i){if(i){e=i+":"+e;let o=Qd[i];o?n.setAttributeNS(o,e,r):n.setAttribute(e,r)}else n.setAttribute(e,r)}removeAttribute(n,e,r){if(r){let i=Qd[r];i?n.removeAttributeNS(i,e):n.removeAttribute(`${r}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,r,i){i&(Bt.DashCase|Bt.Important)?n.style.setProperty(e,r,i&Bt.Important?"important":""):n.style[e]=r}removeStyle(n,e,r){r&Bt.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,r){n!=null&&(n[e]=r)}setValue(n,e){n.nodeValue=e}listen(n,e,r){if(typeof n=="string"&&(n=Tt().getGlobalEventTarget(this.doc,n),!n))throw new Error(`Unsupported event target ${n} for event ${e}`);return this.eventManager.addEventListener(n,e,this.decoratePreventDefault(r))}decoratePreventDefault(n){return e=>{if(e==="__ngUnwrap__")return n;(this.platformIsServer?this.ngZone.runGuarded(()=>n(e)):n(e))===!1&&e.preventDefault()}}};function vv(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var tf=class extends lo{constructor(n,e,r,i,o,s,a,c){super(n,o,s,c),this.sharedStylesHost=e,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let l=Dv(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(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,r){return super.insertBefore(this.nodeOrShadowRoot(n),e,r)}removeChild(n,e){return super.removeChild(null,e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},uo=class extends lo{constructor(n,e,r,i,o,s,a,c){super(n,o,s,a),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=i,this.styles=c?Dv(c,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Ja=class extends uo{constructor(n,e,r,i,o,s,a,c){let l=i+"-"+r.id;super(n,e,r,o,s,a,c,l),this.contentAttr=Jx(l),this.hostAttr=Xx(l)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){let r=super.createElement(n,e);return super.setAttribute(r,this.contentAttr,""),r}},eM=(()=>{class t extends Ka{constructor(e){super(e)}supports(e){return!0}addEventListener(e,r,i){return e.addEventListener(r,i,!1),()=>this.removeEventListener(e,r,i)}removeEventListener(e,r,i){return e.removeEventListener(r,i)}static{this.\u0275fac=function(r){return new(r||t)(_(Me))}}static{this.\u0275prov=D({token:t,factory:t.\u0275fac})}}return t})(),_v=["alt","control","meta","shift"],tM={"\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"},nM={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},rM=(()=>{class t extends Ka{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,r,i){let o=t.parseEventName(r),s=t.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Tt().onAndCancel(e,o.domEventName,s))}static parseEventName(e){let r=e.toLowerCase().split("."),i=r.shift();if(r.length===0||!(i==="keydown"||i==="keyup"))return null;let o=t._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),_v.forEach(l=>{let u=r.indexOf(l);u>-1&&(r.splice(u,1),s+=l+".")}),s+=o,r.length!=0||o.length===0)return null;let c={};return c.domEventName=i,c.fullKey=s,c}static matchEventFullKeyCode(e,r){let i=tM[e.key]||e.key,o="";return r.indexOf("code.")>-1&&(i=e.code,o="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),_v.forEach(s=>{if(s!==i){let a=nM[s];a(e)&&(o+=s+".")}}),o+=i,o===r)}static eventCallback(e,r,i){return o=>{t.matchEventFullKeyCode(o,e)&&i.runGuarded(()=>r(o))}}static _normalizeKey(e){return e==="esc"?"escape":e}static{this.\u0275fac=function(r){return new(r||t)(_(Me))}}static{this.\u0275prov=D({token:t,factory:t.\u0275fac})}}return t})();function iM(){Jd.makeCurrent()}function oM(){return new Xt}function sM(){return sm(document),document}var aM=[{provide:pt,useValue:Ud},{provide:id,useValue:iM,multi:!0},{provide:Me,useFactory:sM,deps:[]}],y2=Td(Uy,"browser",aM),cM=new x(""),lM=[{provide:ro,useClass:Xd,deps:[]},{provide:xd,useClass:ja,deps:[te,Ba,ro]},{provide:ja,useClass:ja,deps:[te,Ba,ro]}],uM=[{provide:ha,useValue:"root"},{provide:Xt,useFactory:oM,deps:[]},{provide:ef,useClass:eM,multi:!0,deps:[Me,te,pt]},{provide:ef,useClass:rM,multi:!0,deps:[Me]},yv,Cv,wv,{provide:Gr,useExisting:yv},{provide:ni,useClass:Wx,deps:[]},[]],v2=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:Ia,useValue:e.appId}]}}static{this.\u0275fac=function(r){return new(r||t)(_(cM,12))}}static{this.\u0275mod=ce({type:t})}static{this.\u0275inj=ae({providers:[...uM,...lM],imports:[Fe,$y]})}}return t})(),Ev=(()=>{class t{constructor(e){this._doc=e,this._dom=Tt()}addTag(e,r=!1){return e?this._getOrCreateElement(e,r):null}addTags(e,r=!1){return e?e.reduce((i,o)=>(o&&i.push(this._getOrCreateElement(o,r)),i),[]):[]}getTag(e){return e&&this._doc.querySelector(`meta[${e}]`)||null}getTags(e){if(!e)return[];let r=this._doc.querySelectorAll(`meta[${e}]`);return r?[].slice.call(r):[]}updateTag(e,r){if(!e)return null;r=r||this._parseSelector(e);let i=this.getTag(r);return i?this._setMetaElementAttributes(e,i):this._getOrCreateElement(e,!0)}removeTag(e){this.removeTagElement(this.getTag(e))}removeTagElement(e){e&&this._dom.remove(e)}_getOrCreateElement(e,r=!1){if(!r){let s=this._parseSelector(e),a=this.getTags(s).filter(c=>this._containsAttributes(e,c))[0];if(a!==void 0)return a}let i=this._dom.createElement("meta");return this._setMetaElementAttributes(e,i),this._doc.getElementsByTagName("head")[0].appendChild(i),i}_setMetaElementAttributes(e,r){return Object.keys(e).forEach(i=>r.setAttribute(this._getMetaKeyMap(i),e[i])),r}_parseSelector(e){let r=e.name?"name":"property";return`${r}="${e[r]}"`}_containsAttributes(e,r){return Object.keys(e).every(i=>r.getAttribute(this._getMetaKeyMap(i))===e[i])}_getMetaKeyMap(e){return dM[e]||e}static{this.\u0275fac=function(r){return new(r||t)(_(Me))}}static{this.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),dM={httpEquiv:"http-equiv"},Xa=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static{this.\u0275fac=function(r){return new(r||t)(_(Me))}}static{this.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var _2=new x("HammerLoader");var Iv=(()=>{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=D({token:t,factory:function(r){let i=null;return r?i=new(r||t):i=_(fM),i},providedIn:"root"})}}return t})(),fM=(()=>{class t extends Iv{constructor(e){super(),this._doc=e}sanitize(e,r){if(r==null)return null;switch(e){case $t.NONE:return r;case $t.HTML:return Tn(r,"HTML")?xt(r):vm(this._doc,String(r)).toString();case $t.STYLE:return Tn(r,"Style")?xt(r):r;case $t.SCRIPT:if(Tn(r,"Script"))return xt(r);throw new S(5200,!1);case $t.URL:return Tn(r,"URL")?xt(r):Ma(String(r));case $t.RESOURCE_URL:if(Tn(r,"ResourceURL"))return xt(r);throw new S(5201,!1);default:throw new S(5202,!1)}}bypassSecurityTrustHtml(e){return cm(e)}bypassSecurityTrustStyle(e){return lm(e)}bypassSecurityTrustScript(e){return um(e)}bypassSecurityTrustUrl(e){return dm(e)}bypassSecurityTrustResourceUrl(e){return fm(e)}static{this.\u0275fac=function(r){return new(r||t)(_(Me))}}static{this.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var $="primary",Io=Symbol("RouteTitle"),cf=class{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function ui(t){return new cf(t)}function hM(t,n,e){let r=e.path.split("/");if(r.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||r.lengthr[o]===i)}else return t===n}function Vv(t){return t.length>0?t[t.length-1]:null}function Vn(t){return ul(t)?t:dr(t)?ee(Promise.resolve(t)):R(t)}var gM={exact:Bv,subset:Uv},jv={exact:mM,subset:yM,ignored:()=>!0};function Mv(t,n,e){return gM[e.paths](t.root,n.root,e.matrixParams)&&jv[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function mM(t,n){return zt(t,n)}function Bv(t,n,e){if(!gr(t.segments,n.segments)||!nc(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let r in n.children)if(!t.children[r]||!Bv(t.children[r],n.children[r],e))return!1;return!0}function yM(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>Lv(t[e],n[e]))}function Uv(t,n,e){return $v(t,n,n.segments,e)}function $v(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!gr(i,e)||n.hasChildren()||!nc(i,e,r))}else if(t.segments.length===e.length){if(!gr(t.segments,e)||!nc(t.segments,e,r))return!1;for(let i in n.children)if(!t.children[i]||!Uv(t.children[i],n.children[i],r))return!1;return!0}else{let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!gr(t.segments,i)||!nc(t.segments,i,r)||!t.children[$]?!1:$v(t.children[$],n,o,r)}}function nc(t,n,e){return n.every((r,i)=>jv[e](t[i].parameters,r.parameters))}var fn=class{constructor(n=new X([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r}get queryParamMap(){return this._queryParamMap??=ui(this.queryParams),this._queryParamMap}toString(){return wM.serialize(this)}},X=class{constructor(n,e){this.segments=n,this.children=e,this.parent=null,Object.values(e).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return rc(this)}},pr=class{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=ui(this.parameters),this._parameterMap}toString(){return zv(this)}};function vM(t,n){return gr(t,n)&&t.every((e,r)=>zt(e.parameters,n[r].parameters))}function gr(t,n){return t.length!==n.length?!1:t.every((e,r)=>e.path===n[r].path)}function _M(t,n){let e=[];return Object.entries(t.children).forEach(([r,i])=>{r===$&&(e=e.concat(n(i,r)))}),Object.entries(t.children).forEach(([r,i])=>{r!==$&&(e=e.concat(n(i,r)))}),e}var xo=(()=>{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=D({token:t,factory:()=>new di,providedIn:"root"})}}return t})(),di=class{parse(n){let e=new df(n);return new fn(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${fo(n.root,!0)}`,r=DM(n.queryParams),i=typeof n.fragment=="string"?`#${CM(n.fragment)}`:"";return`${e}${r}${i}`}},wM=new di;function rc(t){return t.segments.map(n=>zv(n)).join("/")}function fo(t,n){if(!t.hasChildren())return rc(t);if(n){let e=t.children[$]?fo(t.children[$],!1):"",r=[];return Object.entries(t.children).forEach(([i,o])=>{i!==$&&r.push(`${i}:${fo(o,!1)}`)}),r.length>0?`${e}(${r.join("//")})`:e}else{let e=_M(t,(r,i)=>i===$?[fo(t.children[$],!1)]:[`${i}:${fo(r,!1)}`]);return Object.keys(t.children).length===1&&t.children[$]!=null?`${rc(t)}/${e[0]}`:`${rc(t)}/(${e.join("//")})`}}function Hv(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ec(t){return Hv(t).replace(/%3B/gi,";")}function CM(t){return encodeURI(t)}function uf(t){return Hv(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ic(t){return decodeURIComponent(t)}function Sv(t){return ic(t.replace(/\+/g,"%20"))}function zv(t){return`${uf(t.path)}${bM(t.parameters)}`}function bM(t){return Object.entries(t).map(([n,e])=>`;${uf(n)}=${uf(e)}`).join("")}function DM(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${ec(e)}=${ec(i)}`).join("&"):`${ec(e)}=${ec(r)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var EM=/^[^\/()?;#]+/;function rf(t){let n=t.match(EM);return n?n[0]:""}var IM=/^[^\/()?;=#]+/;function xM(t){let n=t.match(IM);return n?n[0]:""}var MM=/^[^=?&#]+/;function SM(t){let n=t.match(MM);return n?n[0]:""}var TM=/^[^&#]+/;function AM(t){let n=t.match(TM);return n?n[0]:""}var df=class{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new X([],{}):new X([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(r[$]=new X(n,e)),r}parseSegment(){let n=rf(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new S(4009,!1);return this.capture(n),new pr(ic(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=xM(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let i=rf(this.remaining);i&&(r=i,this.capture(r))}n[ic(e)]=ic(r)}parseQueryParam(n){let e=SM(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let s=AM(this.remaining);s&&(r=s,this.capture(r))}let i=Sv(e),o=Sv(r);if(n.hasOwnProperty(i)){let s=n[i];Array.isArray(s)||(s=[s],n[i]=s),s.push(o)}else n[i]=o}parseParens(n){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=rf(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(":")):n&&(o=$);let s=this.parseChildren();e[o]=Object.keys(s).length===1?s[$]:new X([],s),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),!0):!1}capture(n){if(!this.consumeOptional(n))throw new S(4011,!1)}};function qv(t){return t.segments.length>0?new X([],{[$]:t}):t}function Gv(t){let n={};for(let[r,i]of Object.entries(t.children)){let o=Gv(i);if(r===$&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))n[s]=a;else(o.segments.length>0||o.hasChildren())&&(n[r]=o)}let e=new X(t.segments,n);return OM(e)}function OM(t){if(t.numberOfChildren===1&&t.children[$]){let n=t.children[$];return new X(t.segments.concat(n.segments),n.children)}return t}function mr(t){return t instanceof fn}function NM(t,n,e=null,r=null){let i=Wv(t);return Zv(i,n,e,r)}function Wv(t){let n;function e(o){let s={};for(let c of o.children){let l=e(c);s[c.outlet]=l}let a=new X(o.url,s);return o===t&&(n=a),a}let r=e(t.root),i=qv(r);return n??i}function Zv(t,n,e,r){let i=t;for(;i.parent;)i=i.parent;if(n.length===0)return of(i,i,i,e,r);let o=PM(n);if(o.toRoot())return of(i,i,new X([],{}),e,r);let s=RM(o,i,t),a=s.processChildren?go(s.segmentGroup,s.index,o.commands):Qv(s.segmentGroup,s.index,o.commands);return of(i,s.segmentGroup,a,e,r)}function oc(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function vo(t){return typeof t=="object"&&t!=null&&t.outlets}function of(t,n,e,r,i){let o={};r&&Object.entries(r).forEach(([c,l])=>{o[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`});let s;t===n?s=e:s=Yv(t,n,e);let a=qv(Gv(s));return new fn(a,o,i)}function Yv(t,n,e){let r={};return Object.entries(t.children).forEach(([i,o])=>{o===n?r[i]=e:r[i]=Yv(o,n,e)}),new X(t.segments,r)}var sc=class{constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&oc(r[0]))throw new S(4003,!1);let i=r.find(vo);if(i&&i!==Vv(r))throw new S(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function PM(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new sc(!0,0,t);let n=0,e=!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===""?e=!0:a===".."?n++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new sc(e,n,r)}var ai=class{constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r}};function RM(t,n,e){if(t.isAbsolute)return new ai(n,!0,0);if(!e)return new ai(n,!1,NaN);if(e.parent===null)return new ai(e,!0,0);let r=oc(t.commands[0])?0:1,i=e.segments.length-1+r;return kM(e,i,t.numberOfDoubleDots)}function kM(t,n,e){let r=t,i=n,o=e;for(;o>i;){if(o-=i,r=r.parent,!r)throw new S(4005,!1);i=r.segments.length}return new ai(r,!1,i-o)}function FM(t){return vo(t[0])?t[0].outlets:{[$]:t}}function Qv(t,n,e){if(t??=new X([],{}),t.segments.length===0&&t.hasChildren())return go(t,n,e);let r=LM(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndexo!==$)&&t.children[$]&&t.numberOfChildren===1&&t.children[$].segments.length===0){let o=go(t.children[$],n,e);return new X(t.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=Qv(t.children[o],n,s))}),Object.entries(t.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new X(t.segments,i)}}function LM(t,n,e){let r=0,i=n,o={match:!1,pathIndex:0,commandIndex:0};for(;i=e.length)return o;let s=t.segments[i],a=e[r];if(vo(a))break;let c=`${a}`,l=r0&&c===void 0)break;if(c&&l&&typeof l=="object"&&l.outlets===void 0){if(!Av(c,l,s))return o;r+=2}else{if(!Av(c,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function ff(t,n,e){let r=t.segments.slice(0,n),i=0;for(;i{typeof r=="string"&&(r=[r]),r!==null&&(n[e]=ff(new X([],{}),0,r))}),n}function Tv(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function Av(t,n,e){return t==e.path&&zt(n,e.parameters)}var mo="imperative",Se=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}(Se||{}),yt=class{constructor(n,e){this.id=n,this.url=e}},fi=class extends yt{constructor(n,e,r="imperative",i=null){super(n,e),this.type=Se.NavigationStart,this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Ot=class extends yt{constructor(n,e,r){super(n,e),this.urlAfterRedirects=r,this.type=Se.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},ot=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(ot||{}),ac=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(ac||{}),dn=class extends yt{constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i,this.type=Se.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Ln=class extends yt{constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i,this.type=Se.NavigationSkipped}},_o=class extends yt{constructor(n,e,r,i){super(n,e),this.error=r,this.target=i,this.type=Se.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},cc=class extends yt{constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i,this.type=Se.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},hf=class extends yt{constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i,this.type=Se.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},pf=class extends yt{constructor(n,e,r,i,o){super(n,e),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o,this.type=Se.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},gf=class extends yt{constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i,this.type=Se.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},mf=class extends yt{constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i,this.type=Se.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},yf=class{constructor(n){this.route=n,this.type=Se.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},vf=class{constructor(n){this.route=n,this.type=Se.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},_f=class{constructor(n){this.snapshot=n,this.type=Se.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},wf=class{constructor(n){this.snapshot=n,this.type=Se.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Cf=class{constructor(n){this.snapshot=n,this.type=Se.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},bf=class{constructor(n){this.snapshot=n,this.type=Se.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},lc=class{constructor(n,e,r){this.routerEvent=n,this.position=e,this.anchor=r,this.type=Se.Scroll}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${n}')`}},wo=class{},hi=class{constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};function jM(t,n){return t.providers&&!t._injector&&(t._injector=ka(t.providers,n,`Route: ${t.path}`)),t._injector??n}function At(t){return t.outlet||$}function BM(t,n){let e=t.filter(r=>At(r)===n);return e.push(...t.filter(r=>At(r)!==n)),e}function Mo(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){let e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var Df=class{get injector(){return Mo(this.route?.snapshot)??this.rootInjector}set injector(n){}constructor(n){this.rootInjector=n,this.outlet=null,this.route=null,this.children=new So(this.rootInjector),this.attachRef=null}},So=(()=>{class t{constructor(e){this.rootInjector=e,this.contexts=new Map}onChildOutletCreated(e,r){let i=this.getOrCreateContext(e);i.outlet=r,this.contexts.set(e,i)}onChildOutletDestroyed(e){let r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new Df(this.rootInjector),this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}static{this.\u0275fac=function(r){return new(r||t)(_(je))}}static{this.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),uc=class{constructor(n){this._root=n}get root(){return this._root.value}parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=Ef(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){let e=Ef(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=If(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return If(n,this._root).map(e=>e.value)}};function Ef(t,n){if(t===n.value)return n;for(let e of n.children){let r=Ef(t,e);if(r)return r}return null}function If(t,n){if(t===n.value)return[n];for(let e of n.children){let r=If(t,e);if(r.length)return r.unshift(n),r}return[]}var it=class{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function si(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var dc=class extends uc{constructor(n,e){super(n),this.snapshot=e,Rf(this,n)}toString(){return this.snapshot.toString()}};function Kv(t){let n=UM(t),e=new Ae([new pr("",{})]),r=new Ae({}),i=new Ae({}),o=new Ae({}),s=new Ae(""),a=new yr(e,r,o,s,i,$,t,n.root);return a.snapshot=n.root,new dc(new it(a,[]),n)}function UM(t){let n={},e={},r={},i="",o=new ci([],n,r,i,e,$,t,null,{});return new hc("",new it(o,[]))}var yr=class{constructor(n,e,r,i,o,s,a,c){this.urlSubject=n,this.paramsSubject=e,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[Io]))??R(void 0),this.url=n,this.params=e,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(n=>ui(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(j(n=>ui(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function fc(t,n,e="emptyOnly"){let r,{routeConfig:i}=t;return n!==null&&(e==="always"||i?.path===""||!n.component&&!n.routeConfig?.loadComponent)?r={params:b(b({},n.params),t.params),data:b(b({},n.data),t.data),resolve:b(b(b(b({},t.data),n.data),i?.data),t._resolvedData)}:r={params:b({},t.params),data:b({},t.data),resolve:b(b({},t.data),t._resolvedData??{})},i&&Xv(i)&&(r.resolve[Io]=i.title),r}var ci=class{get title(){return this.data?.[Io]}constructor(n,e,r,i,o,s,a,c,l){this.url=n,this.params=e,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??=ui(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ui(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(r=>r.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${e}')`}},hc=class extends uc{constructor(n,e){super(e),this.url=n,Rf(this,e)}toString(){return Jv(this._root)}};function Rf(t,n){n.value._routerState=t,n.children.forEach(e=>Rf(t,e))}function Jv(t){let n=t.children.length>0?` { ${t.children.map(Jv).join(", ")} } `:"";return`${t.value}${n}`}function sf(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,zt(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),zt(n.params,e.params)||t.paramsSubject.next(e.params),pM(n.url,e.url)||t.urlSubject.next(e.url),zt(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function xf(t,n){let e=zt(t.params,n.params)&&vM(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||xf(t.parent,n.parent))}function Xv(t){return typeof t.title=="string"||t.title===null}var $M=(()=>{class t{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=w(So),this.location=w(sn),this.changeDetector=w(Nn),this.inputBinder=w(_c,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){let{firstChange:r,previousValue:i}=e.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.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 e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,r){if(this.isActivated)throw new S(4013,!1);this._activatedRoute=e;let i=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new Mf(e,a,i.injector);this.activated=i.createComponent(s,{index:i.length,injector:c,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275dir=re({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Xe]})}}return t})(),Mf=class t{__ngOutletInjector(n){return new t(this.route,this.childContexts,n)}constructor(n,e,r){this.route=n,this.childContexts=e,this.parent=r}get(n,e){return n===yr?this.route:n===So?this.childContexts:this.parent.get(n,e)}},_c=new x(""),Ov=(()=>{class t{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:r}=e,i=Fi([r.queryParams,r.params,r.data]).pipe(Ge(([o,s,a],c)=>(a=b(b(b({},o),s),a),c===0?R(a):Promise.resolve(a)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(e);return}let s=Hy(r.component);if(!s){this.unsubscribeFromRouteData(e);return}for(let{templateName:a}of s.inputs)e.activatedComponentRef.setInput(a,o[a])});this.outletDataSubscriptions.set(e,i)}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=D({token:t,factory:t.\u0275fac})}}return t})();function HM(t,n,e){let r=Co(t,n._root,e?e._root:void 0);return new dc(r,n)}function Co(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let r=e.value;r._futureSnapshot=n.value;let i=zM(t,n,e);return new it(r,i)}else{if(t.shouldAttach(n.value)){let o=t.retrieve(n.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>Co(t,a)),s}}let r=qM(n.value),i=n.children.map(o=>Co(t,o));return new it(r,i)}}function zM(t,n,e){return n.children.map(r=>{for(let i of e.children)if(t.shouldReuseRoute(r.value,i.value.snapshot))return Co(t,r,i);return Co(t,r)})}function qM(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(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e}},e_="ngNavigationCancelingError";function pc(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=mr(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=t_(!1,ot.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function t_(t,n){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[e_]=!0,e.cancellationCode=n,e}function GM(t){return n_(t)&&mr(t.url)}function n_(t){return!!t&&t[e_]}var WM=(t,n,e,r)=>j(i=>(new Sf(n,i.targetRouterState,i.currentRouterState,e,r).activate(t),i)),Sf=class{constructor(n,e,r,i,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(n){let e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),sf(this.futureState.root),this.activateChildRoutes(e,r,n)}deactivateChildRoutes(n,e,r){let i=si(e);n.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(n,e,r){let i=n.value,o=e?e.value:null;if(i===o)if(i.component){let s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,r);else o&&this.deactivateRouteAndItsChildren(e,r)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=si(n);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(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=si(n);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(n,e,r){let i=si(e);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new bf(o.value.snapshot))}),n.children.length&&this.forwardEvent(new wf(n.value.snapshot))}activateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(sf(i),i===o)if(i.component){let s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,e,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),sf(a.route.value),this.activateChildRoutes(n,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(n,null,s.children)}else this.activateChildRoutes(n,null,r)}},gc=class{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},li=class{constructor(n,e){this.component=n,this.route=e}};function ZM(t,n,e){let r=t._root,i=n?n._root:null;return ho(r,i,e,[r.value])}function YM(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function gi(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t=="function"&&!qp(t)?t:n.get(t):r}function ho(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=si(n);return t.children.forEach(s=>{QM(s,o[s.value.outlet],e,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>yo(a,e.getContext(s),i)),i}function QM(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let c=KM(s,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new gc(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?ho(t,n,a?a.children:null,r,i):ho(t,n,e,r,i),c&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new li(a.outlet.component,s))}else s&&yo(n,a,i),i.canActivateChecks.push(new gc(r)),o.component?ho(t,null,a?a.children:null,r,i):ho(t,null,e,r,i);return i}function KM(t,n,e){if(typeof e=="function")return e(t,n);switch(e){case"pathParamsChange":return!gr(t.url,n.url);case"pathParamsOrQueryParamsChange":return!gr(t.url,n.url)||!zt(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!xf(t,n)||!zt(t.queryParams,n.queryParams);case"paramsChange":default:return!xf(t,n)}}function yo(t,n,e){let r=si(t),i=t.value;Object.entries(r).forEach(([o,s])=>{i.component?n?yo(s,n.children.getContext(o),e):yo(s,null,e):yo(s,n,e)}),i.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new li(n.outlet.component,i)):e.canDeactivateChecks.push(new li(null,i)):e.canDeactivateChecks.push(new li(null,i))}function To(t){return typeof t=="function"}function JM(t){return typeof t=="boolean"}function XM(t){return t&&To(t.canLoad)}function eS(t){return t&&To(t.canActivate)}function tS(t){return t&&To(t.canActivateChild)}function nS(t){return t&&To(t.canDeactivate)}function rS(t){return t&&To(t.canMatch)}function r_(t){return t instanceof Yt||t?.name==="EmptyError"}var tc=Symbol("INITIAL_VALUE");function pi(){return Ge(t=>Fi(t.map(n=>n.pipe(Kt(1),ml(tc)))).pipe(j(n=>{for(let e of n)if(e!==!0){if(e===tc)return tc;if(e===!1||iS(e))return e}return!0}),qe(n=>n!==tc),Kt(1)))}function iS(t){return mr(t)||t instanceof bo}function oS(t,n){return pe(e=>{let{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return s.length===0&&o.length===0?R(z(b({},e),{guardsResult:!0})):sS(s,r,i,t).pipe(pe(a=>a&&JM(a)?aS(r,o,t,n):R(a)),j(a=>z(b({},e),{guardsResult:a})))})}function sS(t,n,e,r){return ee(t).pipe(pe(i=>fS(i.component,i.route,e,n,r)),ct(i=>i!==!0,!0))}function aS(t,n,e,r){return ee(n).pipe(Qt(i=>Ar(lS(i.route.parent,r),cS(i.route,r),dS(t,i.path,e),uS(t,i.route,e))),ct(i=>i!==!0,!0))}function cS(t,n){return t!==null&&n&&n(new Cf(t)),R(!0)}function lS(t,n){return t!==null&&n&&n(new _f(t)),R(!0)}function uS(t,n,e){let r=n.routeConfig?n.routeConfig.canActivate:null;if(!r||r.length===0)return R(!0);let i=r.map(o=>vs(()=>{let s=Mo(n)??e,a=gi(o,s),c=eS(a)?a.canActivate(n,t):ft(s,()=>a(n,t));return Vn(c).pipe(ct())}));return R(i).pipe(pi())}function dS(t,n,e){let r=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>YM(s)).filter(s=>s!==null).map(s=>vs(()=>{let a=s.guards.map(c=>{let l=Mo(s.node)??e,u=gi(c,l),d=tS(u)?u.canActivateChild(r,t):ft(l,()=>u(r,t));return Vn(d).pipe(ct())});return R(a).pipe(pi())}));return R(o).pipe(pi())}function fS(t,n,e,r,i){let o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!o||o.length===0)return R(!0);let s=o.map(a=>{let c=Mo(n)??i,l=gi(a,c),u=nS(l)?l.canDeactivate(t,n,e,r):ft(c,()=>l(t,n,e,r));return Vn(u).pipe(ct())});return R(s).pipe(pi())}function hS(t,n,e,r){let i=n.canLoad;if(i===void 0||i.length===0)return R(!0);let o=i.map(s=>{let a=gi(s,t),c=XM(a)?a.canLoad(n,e):ft(t,()=>a(n,e));return Vn(c)});return R(o).pipe(pi(),i_(r))}function i_(t){return il(Ie(n=>{if(typeof n!="boolean")throw pc(t,n)}),j(n=>n===!0))}function pS(t,n,e,r){let i=n.canMatch;if(!i||i.length===0)return R(!0);let o=i.map(s=>{let a=gi(s,t),c=rS(a)?a.canMatch(n,e):ft(t,()=>a(n,e));return Vn(c)});return R(o).pipe(pi(),i_(r))}var Do=class{constructor(n){this.segmentGroup=n||null}},Eo=class extends Error{constructor(n){super(),this.urlTree=n}};function oi(t){return Sr(new Do(t))}function gS(t){return Sr(new S(4e3,!1))}function mS(t){return Sr(t_(!1,ot.GuardRejected))}var Tf=class{constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){let r=[],i=e.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return R(r);if(i.numberOfChildren>1||!i.children[$])return gS(`${n.redirectTo}`);i=i.children[$]}}applyRedirectCommands(n,e,r,i,o){if(typeof e!="string"){let a=e,{queryParams:c,fragment:l,routeConfig:u,url:d,outlet:h,params:f,data:C,title:E}=i,M=ft(o,()=>a({params:f,data:C,queryParams:c,fragment:l,routeConfig:u,url:d,outlet:h,title:E}));if(M instanceof fn)throw new Eo(M);e=M}let s=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,r);if(e[0]==="/")throw new Eo(s);return s}applyRedirectCreateUrlTree(n,e,r,i){let o=this.createSegmentGroup(n,e.root,r,i);return new fn(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let r={};return Object.entries(n).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);r[i]=e[a]}else r[i]=o}),r}createSegmentGroup(n,e,r,i){let o=this.createSegments(n,e.segments,r,i),s={};return Object.entries(e.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(n,c,r,i)}),new X(o,s)}createSegments(n,e,r,i){return e.map(o=>o.path[0]===":"?this.findPosParam(n,o,i):this.findOrReturn(o,r))}findPosParam(n,e,r){let i=r[e.path.substring(1)];if(!i)throw new S(4001,!1);return i}findOrReturn(n,e){let r=0;for(let i of e){if(i.path===n.path)return e.splice(r),i;r++}return n}},Af={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function yS(t,n,e,r,i){let o=o_(t,n,e);return o.matched?(r=jM(n,r),pS(r,n,e,i).pipe(j(s=>s===!0?o:b({},Af)))):R(o)}function o_(t,n,e){if(n.path==="**")return vS(e);if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?b({},Af):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(n.matcher||hM)(e,t,n);if(!i)return b({},Af);let o={};Object.entries(i.posParams??{}).forEach(([a,c])=>{o[a]=c.path});let s=i.consumed.length>0?b(b({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function vS(t){return{matched:!0,parameters:t.length>0?Vv(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function Nv(t,n,e,r){return e.length>0&&CS(t,e,r)?{segmentGroup:new X(n,wS(r,new X(e,t.children))),slicedSegments:[]}:e.length===0&&bS(t,e,r)?{segmentGroup:new X(t.segments,_S(t,e,r,t.children)),slicedSegments:e}:{segmentGroup:new X(t.segments,t.children),slicedSegments:e}}function _S(t,n,e,r){let i={};for(let o of e)if(wc(t,n,o)&&!r[At(o)]){let s=new X([],{});i[At(o)]=s}return b(b({},r),i)}function wS(t,n){let e={};e[$]=n;for(let r of t)if(r.path===""&&At(r)!==$){let i=new X([],{});e[At(r)]=i}return e}function CS(t,n,e){return e.some(r=>wc(t,n,r)&&At(r)!==$)}function bS(t,n,e){return e.some(r=>wc(t,n,r))}function wc(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch==="full"?!1:e.path===""}function DS(t,n,e){return n.length===0&&!t.children[e]}var Of=class{};function ES(t,n,e,r,i,o,s="emptyOnly"){return new Nf(t,n,e,r,i,s,o).recognize()}var IS=31,Nf=class{constructor(n,e,r,i,o,s,a){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new Tf(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(n){return new S(4002,`'${n.segmentGroup}'`)}recognize(){let n=Nv(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(j(({children:e,rootSnapshot:r})=>{let i=new it(r,e),o=new hc("",i),s=NM(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(n){let e=new ci([],Object.freeze({}),Object.freeze(b({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),$,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,n,$,e).pipe(j(r=>({children:r,rootSnapshot:e})),wt(r=>{if(r instanceof Eo)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof Do?this.noMatchError(r):r}))}processSegmentGroup(n,e,r,i,o){return r.segments.length===0&&r.hasChildren()?this.processChildren(n,e,r,o):this.processSegment(n,e,r,r.segments,i,!0,o).pipe(j(s=>s instanceof it?[s]:[]))}processChildren(n,e,r,i){let o=[];for(let s of Object.keys(r.children))s==="primary"?o.unshift(s):o.push(s);return ee(o).pipe(Qt(s=>{let a=r.children[s],c=BM(e,s);return this.processSegmentGroup(n,c,a,s,i)}),gl((s,a)=>(s.push(...a),s)),yn(null),pl(),pe(s=>{if(s===null)return oi(r);let a=s_(s);return xS(a),R(a)}))}processSegment(n,e,r,i,o,s,a){return ee(e).pipe(Qt(c=>this.processSegmentAgainstRoute(c._injector??n,e,c,r,i,o,s,a).pipe(wt(l=>{if(l instanceof Do)return R(null);throw l}))),ct(c=>!!c),wt(c=>{if(r_(c))return DS(r,i,o)?R(new Of):oi(r);throw c}))}processSegmentAgainstRoute(n,e,r,i,o,s,a,c){return At(r)!==s&&(s===$||!wc(i,o,r))?oi(i):r.redirectTo===void 0?this.matchSegmentAgainstRoute(n,i,r,o,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(n,i,e,r,o,s,c):oi(i)}expandSegmentAgainstRouteUsingRedirect(n,e,r,i,o,s,a){let{matched:c,parameters:l,consumedSegments:u,positionalParamSegments:d,remainingSegments:h}=o_(e,i,o);if(!c)return oi(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>IS&&(this.allowRedirects=!1));let f=new ci(o,l,Object.freeze(b({},this.urlTree.queryParams)),this.urlTree.fragment,Pv(i),At(i),i.component??i._loadedComponent??null,i,Rv(i)),C=fc(f,a,this.paramsInheritanceStrategy);f.params=Object.freeze(C.params),f.data=Object.freeze(C.data);let E=this.applyRedirects.applyRedirectCommands(u,i.redirectTo,d,f,n);return this.applyRedirects.lineralizeSegments(i,E).pipe(pe(M=>this.processSegment(n,r,e,M.concat(h),s,!1,a)))}matchSegmentAgainstRoute(n,e,r,i,o,s){let a=yS(e,r,i,n,this.urlSerializer);return r.path==="**"&&(e.children={}),a.pipe(Ge(c=>c.matched?(n=r._injector??n,this.getChildConfig(n,r,i).pipe(Ge(({routes:l})=>{let u=r._loadedInjector??n,{parameters:d,consumedSegments:h,remainingSegments:f}=c,C=new ci(h,d,Object.freeze(b({},this.urlTree.queryParams)),this.urlTree.fragment,Pv(r),At(r),r.component??r._loadedComponent??null,r,Rv(r)),E=fc(C,s,this.paramsInheritanceStrategy);C.params=Object.freeze(E.params),C.data=Object.freeze(E.data);let{segmentGroup:M,slicedSegments:F}=Nv(e,h,f,l);if(F.length===0&&M.hasChildren())return this.processChildren(u,l,M,C).pipe(j(J=>new it(C,J)));if(l.length===0&&F.length===0)return R(new it(C,[]));let se=At(r)===o;return this.processSegment(u,l,M,F,se?$:o,!0,C).pipe(j(J=>new it(C,J instanceof it?[J]:[])))}))):oi(e)))}getChildConfig(n,e,r){return e.children?R({routes:e.children,injector:n}):e.loadChildren?e._loadedRoutes!==void 0?R({routes:e._loadedRoutes,injector:e._loadedInjector}):hS(n,e,r,this.urlSerializer).pipe(pe(i=>i?this.configLoader.loadChildren(n,e).pipe(Ie(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):mS(e))):R({routes:[],injector:n})}};function xS(t){t.sort((n,e)=>n.value.outlet===$?-1:e.value.outlet===$?1:n.value.outlet.localeCompare(e.value.outlet))}function MS(t){let n=t.value.routeConfig;return n&&n.path===""}function s_(t){let n=[],e=new Set;for(let r of t){if(!MS(r)){n.push(r);continue}let i=n.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),e.add(i)):n.push(r)}for(let r of e){let i=s_(r.children);n.push(new it(r.value,i))}return n.filter(r=>!e.has(r))}function Pv(t){return t.data||{}}function Rv(t){return t.resolve||{}}function SS(t,n,e,r,i,o){return pe(s=>ES(t,n,e,r,s.extractedUrl,i,o).pipe(j(({state:a,tree:c})=>z(b({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function TS(t,n){return pe(e=>{let{targetSnapshot:r,guards:{canActivateChecks:i}}=e;if(!i.length)return R(e);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 a_(c))s.add(l);let a=0;return ee(s).pipe(Qt(c=>o.has(c)?AS(c,r,t,n):(c.data=fc(c,c.parent,t).resolve,R(void 0))),Ie(()=>a++),Or(1),pe(c=>a===s.size?R(e):Oe))})}function a_(t){let n=t.children.map(e=>a_(e)).flat();return[t,...n]}function AS(t,n,e,r){let i=t.routeConfig,o=t._resolve;return i?.title!==void 0&&!Xv(i)&&(o[Io]=i.title),OS(o,t,n,r).pipe(j(s=>(t._resolvedData=s,t.data=fc(t,t.parent,e).resolve,null)))}function OS(t,n,e,r){let i=lf(t);if(i.length===0)return R({});let o={};return ee(i).pipe(pe(s=>NS(t[s],n,e,r).pipe(ct(),Ie(a=>{if(a instanceof bo)throw pc(new di,a);o[s]=a}))),Or(1),hl(o),wt(s=>r_(s)?Oe:Sr(s)))}function NS(t,n,e,r){let i=Mo(n)??r,o=gi(t,i),s=o.resolve?o.resolve(n,e):ft(i,()=>o(n,e));return Vn(s)}function af(t){return Ge(n=>{let e=t(n);return e?ee(e).pipe(j(()=>n)):R(n)})}var c_=(()=>{class t{buildTitle(e){let r,i=e.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===$);return r}getResolvedTitleForRoute(e){return e.data[Io]}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=D({token:t,factory:()=>w(PS),providedIn:"root"})}}return t})(),PS=(()=>{class t extends c_{constructor(e){super(),this.title=e}updateTitle(e){let r=this.buildTitle(e);r!==void 0&&this.title.setTitle(r)}static{this.\u0275fac=function(r){return new(r||t)(_(Xa))}}static{this.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Ao=new x("",{providedIn:"root",factory:()=>({})}),RS=(()=>{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275cmp=fe({type:t,selectors:[["ng-component"]],standalone:!0,features:[Ay],decls:1,vars:0,template:function(r,i){r&1&&ke(0,"router-outlet")},dependencies:[$M],encapsulation:2})}}return t})();function kf(t){let n=t.children&&t.children.map(kf),e=n?z(b({},t),{children:n}):b({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==$&&(e.component=RS),e}var mc=new x(""),Ff=(()=>{class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=w(Ha)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return R(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let r=Vn(e.loadComponent()).pipe(j(l_),Ie(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),vn(()=>{this.componentLoaders.delete(e)})),i=new xr(r,()=>new de).pipe(Ir());return this.componentLoaders.set(e,i),i}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return R({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let o=kS(r,this.compiler,e,this.onLoadEndListener).pipe(vn(()=>{this.childrenLoaders.delete(r)})),s=new xr(o,()=>new de).pipe(Ir());return this.childrenLoaders.set(r,s),s}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function kS(t,n,e,r){return Vn(t.loadChildren()).pipe(j(l_),pe(i=>i instanceof qi||Array.isArray(i)?R(i):ee(n.compileModuleAsync(i))),j(i=>{r&&r(t);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(e).injector,s=o.get(mc,[],{optional:!0,self:!0}).flat()),{routes:s.map(kf),injector:o}}))}function FS(t){return t&&typeof t=="object"&&"default"in t}function l_(t){return FS(t)?t.default:t}var Lf=(()=>{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=D({token:t,factory:()=>w(LS),providedIn:"root"})}}return t})(),LS=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,r){return e}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),u_=new x(""),d_=new x("");function VS(t,n,e){let r=t.get(d_),i=t.get(Me);return t.get(te).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(),jS(t))),{onViewTransitionCreated:c}=r;return c&&ft(t,()=>c({transition:a,from:n,to:e})),s})}function jS(t){return new Promise(n=>{bd({read:()=>setTimeout(n)},{injector:t})})}var BS=new x(""),Vf=(()=>{class t{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new de,this.transitionAbortSubject=new de,this.configLoader=w(Ff),this.environmentInjector=w(je),this.urlSerializer=w(xo),this.rootContexts=w(So),this.location=w(ri),this.inputBindingEnabled=w(_c,{optional:!0})!==null,this.titleStrategy=w(c_),this.options=w(Ao,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=w(Lf),this.createViewTransition=w(u_,{optional:!0}),this.navigationErrorHandler=w(BS,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>R(void 0),this.rootComponentType=null;let e=i=>this.events.next(new yf(i)),r=i=>this.events.next(new vf(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=e}complete(){this.transitions?.complete()}handleNavigationRequest(e){let r=++this.navigationId;this.transitions?.next(z(b(b({},this.transitions.value),e),{id:r}))}setupNavigations(e,r,i){return this.transitions=new Ae({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:mo,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(qe(o=>o.id!==0),j(o=>z(b({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),Ge(o=>{let s=!1,a=!1;return R(o).pipe(Ge(c=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",ot.SupersededByNewNavigation),Oe;this.currentTransition=o,this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,targetBrowserUrl:typeof c.extras.browserUrl=="string"?this.urlSerializer.parse(c.extras.browserUrl):c.extras.browserUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?z(b({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let l=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),u=c.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!l&&u!=="reload"){let d="";return this.events.next(new Ln(c.id,this.urlSerializer.serialize(c.rawUrl),d,ac.IgnoredSameUrlNavigation)),c.resolve(!1),Oe}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return R(c).pipe(Ge(d=>{let h=this.transitions?.getValue();return this.events.next(new fi(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),h!==this.transitions?.getValue()?Oe:Promise.resolve(d)}),SS(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),Ie(d=>{o.targetSnapshot=d.targetSnapshot,o.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation=z(b({},this.currentNavigation),{finalUrl:d.urlAfterRedirects});let h=new cc(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(h)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:d,extractedUrl:h,source:f,restoredState:C,extras:E}=c,M=new fi(d,this.urlSerializer.serialize(h),f,C);this.events.next(M);let F=Kv(this.rootComponentType).snapshot;return this.currentTransition=o=z(b({},c),{targetSnapshot:F,urlAfterRedirects:h,extras:z(b({},E),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=h,R(o)}else{let d="";return this.events.next(new Ln(c.id,this.urlSerializer.serialize(c.extractedUrl),d,ac.IgnoredByUrlHandlingStrategy)),c.resolve(!1),Oe}}),Ie(c=>{let l=new hf(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}),j(c=>(this.currentTransition=o=z(b({},c),{guards:ZM(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),o)),oS(this.environmentInjector,c=>this.events.next(c)),Ie(c=>{if(o.guardsResult=c.guardsResult,c.guardsResult&&typeof c.guardsResult!="boolean")throw pc(this.urlSerializer,c.guardsResult);let l=new pf(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(l)}),qe(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",ot.GuardRejected),!1)),af(c=>{if(c.guards.canActivateChecks.length)return R(c).pipe(Ie(l=>{let u=new gf(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(u)}),Ge(l=>{let u=!1;return R(l).pipe(TS(this.paramsInheritanceStrategy,this.environmentInjector),Ie({next:()=>u=!0,complete:()=>{u||this.cancelNavigationTransition(l,"",ot.NoDataFromResolver)}}))}),Ie(l=>{let u=new mf(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(u)}))}),af(c=>{let l=u=>{let d=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(u.routeConfig).pipe(Ie(h=>{u.component=h}),j(()=>{})));for(let h of u.children)d.push(...l(h));return d};return Fi(l(c.targetSnapshot.root)).pipe(yn(null),Kt(1))}),af(()=>this.afterPreactivation()),Ge(()=>{let{currentSnapshot:c,targetSnapshot:l}=o,u=this.createViewTransition?.(this.environmentInjector,c.root,l.root);return u?ee(u).pipe(j(()=>o)):R(o)}),j(c=>{let l=HM(e.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=o=z(b({},c),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,o}),Ie(()=>{this.events.next(new wo)}),WM(this.rootContexts,e.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),Kt(1),Ie({next:c=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Ot(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{s=!0}}),yl(this.transitionAbortSubject.pipe(Ie(c=>{throw c}))),vn(()=>{!s&&!a&&this.cancelNavigationTransition(o,"",ot.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),wt(c=>{if(a=!0,n_(c))this.events.next(new dn(o.id,this.urlSerializer.serialize(o.extractedUrl),c.message,c.cancellationCode)),GM(c)?this.events.next(new hi(c.url,c.navigationBehaviorOptions)):o.resolve(!1);else{let l=new _o(o.id,this.urlSerializer.serialize(o.extractedUrl),c,o.targetSnapshot??void 0);try{let u=ft(this.environmentInjector,()=>this.navigationErrorHandler?.(l));if(u instanceof bo){let{message:d,cancellationCode:h}=pc(this.urlSerializer,u);this.events.next(new dn(o.id,this.urlSerializer.serialize(o.extractedUrl),d,h)),this.events.next(new hi(u.redirectTo,u.navigationBehaviorOptions))}else{this.events.next(l);let d=e.errorHandler(c);o.resolve(!!d)}}catch(u){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(u)}}return Oe}))}))}cancelNavigationTransition(e,r,i){let o=new dn(e.id,this.urlSerializer.serialize(e.extractedUrl),r,i);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return e.toString()!==r?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function US(t){return t!==mo}var $S=(()=>{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=D({token:t,factory:()=>w(HS),providedIn:"root"})}}return t})(),Pf=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}},HS=(()=>{class t extends Pf{static{this.\u0275fac=(()=>{let e;return function(i){return(e||(e=Qr(t)))(i||t)}})()}static{this.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),f_=(()=>{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=D({token:t,factory:()=>w(zS),providedIn:"root"})}}return t})(),zS=(()=>{class t extends f_{constructor(){super(...arguments),this.location=w(ri),this.urlSerializer=w(xo),this.options=w(Ao,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=w(Lf),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new fn,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Kv(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(e){return this.location.subscribe(r=>{r.type==="popstate"&&e(r.url,r.state)})}handleRouterEvent(e,r){if(e instanceof fi)this.stateMemento=this.createStateMemento();else if(e instanceof Ln)this.rawUrlTree=r.initialUrl;else if(e instanceof cc){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let i=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(r.targetBrowserUrl??i,r)}}else e instanceof wo?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(r.targetBrowserUrl??this.rawUrlTree,r)):e instanceof dn&&(e.code===ot.GuardRejected||e.code===ot.NoDataFromResolver)?this.restoreHistory(r):e instanceof _o?this.restoreHistory(r,!0):e instanceof Ot&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,r){let i=e instanceof fn?this.urlSerializer.serialize(e):e;if(this.location.isCurrentPathEqualTo(i)||r.extras.replaceUrl){let o=this.browserPageId,s=b(b({},r.extras.state),this.generateNgRouterState(r.id,o));this.location.replaceState(i,"",s)}else{let o=b(b({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(i,"",o)}}restoreHistory(e,r=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.currentUrlTree===e.finalUrl&&o===0&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,r){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:r}:{navigationId:e}}static{this.\u0275fac=(()=>{let e;return function(i){return(e||(e=Qr(t)))(i||t)}})()}static{this.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),po=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(po||{});function h_(t,n){t.events.pipe(qe(e=>e instanceof Ot||e instanceof dn||e instanceof _o||e instanceof Ln),j(e=>e instanceof Ot||e instanceof Ln?po.COMPLETE:(e instanceof dn?e.code===ot.Redirect||e.code===ot.SupersededByNewNavigation:!1)?po.REDIRECTING:po.FAILED),qe(e=>e!==po.REDIRECTING),Kt(1)).subscribe(()=>{n()})}function qS(t){throw t}var GS={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},WS={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},st=(()=>{class t{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=w(Va),this.stateManager=w(f_),this.options=w(Ao,{optional:!0})||{},this.pendingTasks=w(rn),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=w(Vf),this.urlSerializer=w(xo),this.location=w(ri),this.urlHandlingStrategy=w(Lf),this._events=new de,this.errorHandler=this.options.errorHandler||qS,this.navigated=!1,this.routeReuseStrategy=w($S),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=w(mc,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!w(_c,{optional:!0}),this.eventsSubscription=new _e,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof dn&&r.code!==ot.Redirect&&r.code!==ot.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof Ot)this.navigated=!0;else if(r instanceof hi){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),c=b({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||US(i.source)},s);this.scheduleNavigation(a,mo,null,c,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}YS(r)&&this._events.next(r)}catch(i){this.navigationTransitions.transitionAbortSubject.next(i)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),mo,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",r)},0)})}navigateToSyncWithBrowser(e,r,i){let o={replaceUrl:!0},s=i?.navigationId?i:null;if(i){let c=b({},i);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(o.state=c)}let a=this.parseUrl(e);this.scheduleNavigation(a,r,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(kf),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(e,r={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:c}=r,l=c?this.currentUrlTree.fragment:s,u=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":u=b(b({},this.currentUrlTree.queryParams),o);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=o||null}u!==null&&(u=this.removeEmptyProps(u));let d;try{let h=i?i.snapshot:this.routerState.snapshot.root;d=Wv(h)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),d=this.currentUrlTree.root}return Zv(d,e,u,l??null)}navigateByUrl(e,r={skipLocationChange:!1}){let i=mr(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,mo,null,r)}navigate(e,r={skipLocationChange:!1}){return ZS(e),this.navigateByUrl(this.createUrlTree(e,r),r)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,r){let i;if(r===!0?i=b({},GS):r===!1?i=b({},WS):i=r,mr(e))return Mv(this.currentUrlTree,e,i);let o=this.parseUrl(e);return Mv(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}scheduleNavigation(e,r,i,o,s){if(this.disposed)return Promise.resolve(!1);let a,c,l;s?(a=s.resolve,c=s.reject,l=s.promise):l=new Promise((d,h)=>{a=d,c=h});let u=this.pendingTasks.add();return h_(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:a,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(d=>Promise.reject(d))}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function ZS(t){for(let n=0;n{class t{constructor(e,r,i,o,s,a){this.router=e,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=a,this.href=null,this.onChanges=new de,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;let c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area",this.isAnchorElement?this.subscription=e.events.subscribe(l=>{l instanceof Ot&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(mr(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,r,i,o,s){let a=this.urlTree;if(a===null||this.isAnchorElement&&(e!==0||r||i||o||s||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,c),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.href=e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;let r=this.href===null?null:_m(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(e,r){let i=this.renderer,o=this.el.nativeElement;r!==null?i.setAttribute(o,e,r):i.removeAttribute(o,e)}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})}static{this.\u0275fac=function(r){return new(r||t)(I(st),I(yr),ed("tabindex"),I(Mt),I(De),I(ln))}}static{this.\u0275dir=re({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,i){r&1&&O("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),r&2&&ar("target",i.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:[wd,Xe]})}}return t})(),L2=(()=>{class t{get isActive(){return this._isActive}constructor(e,r,i,o,s){this.router=e,this.element=r,this.renderer=i,this.cdr=o,this.link=s,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new H,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof Ot&&this.update()})}ngAfterContentInit(){R(this.links.changes,R(null)).pipe(Rt()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=ee(e).pipe(Rt()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(e){let r=Array.isArray(e)?e:e.split(" ");this.classes=r.filter(i=>!!i)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(r=>{e?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),e&&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!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e))})}isLinkActive(e){let r=QS(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return i=>{let o=i.urlTree;return o?e.isActive(o,r):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static{this.\u0275fac=function(r){return new(r||t)(I(st),I(De),I(Mt),I(Nn),I(yc,8))}}static{this.\u0275dir=re({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(r,i,o){if(r&1&&lr(o,yc,5),r&2){let s;et(s=tt())&&(i.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Xe]})}}return t})();function QS(t){return!!t.paths}var vc=class{},V2=(()=>{class t{preload(e,r){return r().pipe(wt(()=>R(null)))}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var KS=(()=>{class t{constructor(e,r,i,o,s){this.router=e,this.injector=i,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(qe(e=>e instanceof Ot),Qt(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,r){let i=[];for(let o of r){o.providers&&!o._injector&&(o._injector=ka(o.providers,e,`Route: ${o.path}`));let s=o._injector??e,a=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&i.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&i.push(this.processRoutes(a,o.children??o._loadedRoutes))}return ee(i).pipe(Rt())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{let i;r.loadChildren&&r.canLoad===void 0?i=this.loader.loadChildren(e,r):i=R(null);let o=i.pipe(pe(s=>s===null?R(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));if(r.loadComponent&&!r._loadedComponent){let s=this.loader.loadComponent(r);return ee([o,s]).pipe(Rt())}else return o})}static{this.\u0275fac=function(r){return new(r||t)(_(st),_(Ha),_(je),_(vc),_(Ff))}}static{this.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),p_=new x(""),JS=(()=>{class t{constructor(e,r,i,o,s={}){this.urlSerializer=e,this.transitions=r,this.viewportScroller=i,this.zone=o,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration||="disabled",s.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(e=>{e instanceof fi?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Ot?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof Ln&&e.code===ac.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof lc&&(e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new lc(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static{this.\u0275fac=function(r){Fm()}}static{this.\u0275prov=D({token:t,factory:t.\u0275fac})}}return t})();function XS(t){return t.routerState.root}function Oo(t,n){return{\u0275kind:t,\u0275providers:n}}function eT(){let t=w(xe);return n=>{let e=t.get(nt);if(n!==e.components[0])return;let r=t.get(st),i=t.get(g_);t.get(jf)===1&&r.initialNavigation(),t.get(m_,null,q.Optional)?.setUpPreloading(),t.get(p_,null,q.Optional)?.init(),r.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var g_=new x("",{factory:()=>new de}),jf=new x("",{providedIn:"root",factory:()=>1});function tT(){return Oo(2,[{provide:jf,useValue:0},{provide:Ua,multi:!0,deps:[xe],useFactory:n=>{let e=n.get(Ky,Promise.resolve());return()=>e.then(()=>new Promise(r=>{let i=n.get(st),o=n.get(g_);h_(i,()=>{r(!0)}),n.get(Vf).afterPreactivation=()=>(r(!0),o.closed?R(void 0):o),i.initialNavigation()}))}}])}function nT(){return Oo(3,[{provide:Ua,multi:!0,useFactory:()=>{let n=w(st);return()=>{n.setUpLocationChangeListener()}}},{provide:jf,useValue:2}])}var m_=new x("");function rT(t){return Oo(0,[{provide:m_,useExisting:KS},{provide:vc,useExisting:t}])}function iT(){return Oo(8,[Ov,{provide:_c,useExisting:Ov}])}function oT(t){let n=[{provide:u_,useValue:VS},{provide:d_,useValue:b({skipNextTransition:!!t?.skipInitialTransition},t)}];return Oo(9,n)}var kv=new x("ROUTER_FORROOT_GUARD"),sT=[ri,{provide:xo,useClass:di},st,So,{provide:yr,useFactory:XS,deps:[st]},Ff,[]],y_=(()=>{class t{constructor(e){}static forRoot(e,r){return{ngModule:t,providers:[sT,[],{provide:mc,multi:!0,useValue:e},{provide:kv,useFactory:uT,deps:[[st,new Yi,new ua]]},{provide:Ao,useValue:r||{}},r?.useHash?cT():lT(),aT(),r?.preloadingStrategy?rT(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?dT(r):[],r?.bindToComponentInputs?iT().\u0275providers:[],r?.enableViewTransitions?oT().\u0275providers:[],fT()]}}static forChild(e){return{ngModule:t,providers:[{provide:mc,multi:!0,useValue:e}]}}static{this.\u0275fac=function(r){return new(r||t)(_(kv,8))}}static{this.\u0275mod=ce({type:t})}static{this.\u0275inj=ae({})}}return t})();function aT(){return{provide:p_,useFactory:()=>{let t=w(tv),n=w(te),e=w(Ao),r=w(Vf),i=w(xo);return e.scrollOffset&&t.setOffset(e.scrollOffset),new JS(i,r,t,n,e)}}}function cT(){return{provide:ln,useClass:Xy}}function lT(){return{provide:ln,useClass:Bd}}function uT(t){return"guarded"}function dT(t){return[t.initialNavigation==="disabled"?nT().\u0275providers:[],t.initialNavigation==="enabledBlocking"?tT().\u0275providers:[]]}var Fv=new x("");function fT(){return[{provide:Fv,useFactory:eT},{provide:$a,multi:!0,useExisting:Fv}]}var mi={roles:[],production:!0,appId:"test",url:"https://webart.work"};var x_=(()=>{class t{constructor(e,r){this._renderer=e,this._elementRef=r,this.onChange=i=>{},this.onTouched=()=>{}}setProperty(e,r){this._renderer.setProperty(this._elementRef.nativeElement,e,r)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static{this.\u0275fac=function(r){return new(r||t)(I(Mt),I(De))}}static{this.\u0275dir=re({type:t})}}return t})(),zf=(()=>{class t extends x_{static{this.\u0275fac=(()=>{let e;return function(i){return(e||(e=Qr(t)))(i||t)}})()}static{this.\u0275dir=re({type:t,features:[An]})}}return t})(),Ic=new x(""),hT={provide:Ic,useExisting:nr(()=>qf),multi:!0},qf=(()=>{class t extends zf{writeValue(e){this.setProperty("checked",e)}static{this.\u0275fac=(()=>{let e;return function(i){return(e||(e=Qr(t)))(i||t)}})()}static{this.\u0275dir=re({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(r,i){r&1&&O("change",function(s){return i.onChange(s.target.checked)})("blur",function(){return i.onTouched()})},features:[to([hT]),An]})}}return t})(),pT={provide:Ic,useExisting:nr(()=>jn),multi:!0};function gT(){let t=Tt()?Tt().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var mT=new x(""),jn=(()=>{class t extends x_{constructor(e,r,i){super(e,r),this._compositionMode=i,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!gT())}writeValue(e){let r=e??"";this.setProperty("value",r)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static{this.\u0275fac=function(r){return new(r||t)(I(Mt),I(De),I(mT,8))}}static{this.\u0275dir=re({type:t,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(r,i){r&1&&O("input",function(s){return i._handleInput(s.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(s){return i._compositionEnd(s.target.value)})},features:[to([pT]),An]})}}return t})();var yT=new x(""),vT=new x("");function M_(t){return t!=null}function S_(t){return dr(t)?ee(t):t}function T_(t){let n={};return t.forEach(e=>{n=e!=null?b(b({},n),e):n}),Object.keys(n).length===0?null:n}function A_(t,n){return n.map(e=>e(t))}function _T(t){return!t.validate}function O_(t){return t.map(n=>_T(n)?n:e=>n.validate(e))}function wT(t){if(!t)return null;let n=t.filter(M_);return n.length==0?null:function(e){return T_(A_(e,n))}}function N_(t){return t!=null?wT(O_(t)):null}function CT(t){if(!t)return null;let n=t.filter(M_);return n.length==0?null:function(e){let r=A_(e,n).map(S_);return dl(r).pipe(j(T_))}}function P_(t){return t!=null?CT(O_(t)):null}function __(t,n){return t===null?[n]:Array.isArray(t)?[...t,n]:[t,n]}function bT(t){return t._rawValidators}function DT(t){return t._rawAsyncValidators}function Bf(t){return t?Array.isArray(t)?t:[t]:[]}function bc(t,n){return Array.isArray(t)?t.includes(n):t===n}function w_(t,n){let e=Bf(n);return Bf(t).forEach(i=>{bc(e,i)||e.push(i)}),e}function C_(t,n){return Bf(n).filter(e=>!bc(t,e))}var Dc=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(n){this._rawValidators=n||[],this._composedValidatorFn=N_(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=P_(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,e){return this.control?this.control.hasError(n,e):!1}getError(n,e){return this.control?this.control.getError(n,e):null}},Uf=class extends Dc{get formDirective(){return null}get path(){return null}},_i=class extends Dc{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},$f=class{constructor(n){this._cd=n}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}},ET={"[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"},nV=z(b({},ET),{"[class.ng-submitted]":"isSubmitted"}),Ci=(()=>{class t extends $f{constructor(e){super(e)}static{this.\u0275fac=function(r){return new(r||t)(I(_i,2))}}static{this.\u0275dir=re({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,i){r&2&&he("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[An]})}}return t})();var No="VALID",Cc="INVALID",yi="PENDING",Po="DISABLED",wi=class{},Ec=class extends wi{constructor(n,e){super(),this.value=n,this.source=e}},Ro=class extends wi{constructor(n,e){super(),this.pristine=n,this.source=e}},ko=class extends wi{constructor(n,e){super(),this.touched=n,this.source=e}},vi=class extends wi{constructor(n,e){super(),this.status=n,this.source=e}};function IT(t){return(xc(t)?t.validators:t)||null}function xT(t){return Array.isArray(t)?N_(t):t||null}function MT(t,n){return(xc(n)?n.asyncValidators:t)||null}function ST(t){return Array.isArray(t)?P_(t):t||null}function xc(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}var Hf=class{constructor(n,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=za(()=>this.statusReactive()),this.statusReactive=Ra(void 0),this._pristine=za(()=>this.pristineReactive()),this.pristineReactive=Ra(!0),this._touched=za(()=>this.touchedReactive()),this.touchedReactive=Ra(!1),this._events=new de,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get status(){return Pn(this.statusReactive)}set status(n){Pn(()=>this.statusReactive.set(n))}get valid(){return this.status===No}get invalid(){return this.status===Cc}get pending(){return this.status==yi}get disabled(){return this.status===Po}get enabled(){return this.status!==Po}get pristine(){return Pn(this.pristineReactive)}set pristine(n){Pn(()=>this.pristineReactive.set(n))}get dirty(){return!this.pristine}get touched(){return Pn(this.touchedReactive)}set touched(n){Pn(()=>this.touchedReactive.set(n))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(w_(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(w_(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(C_(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(C_(n,this._rawAsyncValidators))}hasValidator(n){return bc(this._rawValidators,n)}hasAsyncValidator(n){return bc(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){let e=this.touched===!1;this.touched=!0;let r=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsTouched(z(b({},n),{sourceControl:r})),e&&n.emitEvent!==!1&&this._events.next(new ko(!0,r))}markAllAsTouched(n={}){this.markAsTouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(n))}markAsUntouched(n={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let r=n.sourceControl??this;this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:r})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,r),e&&n.emitEvent!==!1&&this._events.next(new ko(!1,r))}markAsDirty(n={}){let e=this.pristine===!0;this.pristine=!1;let r=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsDirty(z(b({},n),{sourceControl:r})),e&&n.emitEvent!==!1&&this._events.next(new Ro(!1,r))}markAsPristine(n={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=n.sourceControl??this;this._forEachChild(i=>{i.markAsPristine({onlySelf:!0,emitEvent:n.emitEvent})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n,r),e&&n.emitEvent!==!1&&this._events.next(new Ro(!0,r))}markAsPending(n={}){this.status=yi;let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new vi(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.markAsPending(z(b({},n),{sourceControl:e}))}disable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=Po,this.errors=null,this._forEachChild(i=>{i.disable(z(b({},n),{onlySelf:!0}))}),this._updateValue();let r=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new Ec(this.value,r)),this._events.next(new vi(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(z(b({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=No,this._forEachChild(r=>{r.enable(z(b({},n),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors(z(b({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(n,e){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine({},e),this._parent._updateTouched({},e))}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===No||this.status===yi)&&this._runAsyncValidator(r,n.emitEvent)}let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new Ec(this.value,e)),this._events.next(new vi(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(z(b({},n),{sourceControl:e}))}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Po:No}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n,e){if(this.asyncValidator){this.status=yi,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1};let r=S_(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(i=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(i,{emitEvent:e,shouldHaveEmitted:n})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let n=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,n}return!1}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(n){let e=n;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((r,i)=>r&&r._find(i),this)}getError(n,e){let r=e?this.get(e):this;return r&&r.errors?r.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n,e,r){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),(n||r)&&this._events.next(new vi(this.status,e)),this._parent&&this._parent._updateControlsErrors(n,e,r)}_initObservables(){this.valueChanges=new H,this.statusChanges=new H}_calculateStatus(){return this._allControlsDisabled()?Po:this.errors?Cc:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(yi)?yi:this._anyControlsHaveStatus(Cc)?Cc:No}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n,e){let r=!this._anyControlsDirty(),i=this.pristine!==r;this.pristine=r,this._parent&&!n.onlySelf&&this._parent._updatePristine(n,e),i&&this._events.next(new Ro(this.pristine,e))}_updateTouched(n={},e){this.touched=this._anyControlsTouched(),this._events.next(new ko(this.touched,e)),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,e)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){xc(n)&&n.updateOn!=null&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){let e=this._parent&&this._parent.dirty;return!n&&!!e&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=xT(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=ST(this._rawAsyncValidators)}};var Gf=new x("CallSetDisabledState",{providedIn:"root",factory:()=>Mc}),Mc="always";function TT(t,n){return[...n.path,t]}function AT(t,n,e=Mc){NT(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&n.valueAccessor.setDisabledState?.(t.disabled),PT(t,n),kT(t,n),RT(t,n),OT(t,n)}function b_(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function OT(t,n){if(n.valueAccessor.setDisabledState){let e=r=>{n.valueAccessor.setDisabledState(r)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function NT(t,n){let e=bT(t);n.validator!==null?t.setValidators(__(e,n.validator)):typeof e=="function"&&t.setValidators([e]);let r=DT(t);n.asyncValidator!==null?t.setAsyncValidators(__(r,n.asyncValidator)):typeof r=="function"&&t.setAsyncValidators([r]);let i=()=>t.updateValueAndValidity();b_(n._rawValidators,i),b_(n._rawAsyncValidators,i)}function PT(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&R_(t,n)})}function RT(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&R_(t,n),t.updateOn!=="submit"&&t.markAsTouched()})}function R_(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function kT(t,n){let e=(r,i)=>{n.valueAccessor.writeValue(r),i&&n.viewToModelUpdate(r)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function FT(t,n){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(n,e.currentValue)}function LT(t){return Object.getPrototypeOf(t.constructor)===zf}function VT(t,n){if(!n)return null;Array.isArray(n);let e,r,i;return n.forEach(o=>{o.constructor===jn?e=o:LT(o)?r=o:i=o}),i||r||e||null}function D_(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function E_(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var jT=class extends Hf{constructor(n=null,e,r){super(IT(e),MT(r,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),xc(e)&&(e.nonNullable||e.initialValueIsDefault)&&(E_(n)?this.defaultValue=n.value:this.defaultValue=n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){D_(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){D_(this._onDisabledChange,n)}_forEachChild(n){}_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(n){E_(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}};var BT={provide:_i,useExisting:nr(()=>vr)},I_=Promise.resolve(),vr=(()=>{class t extends _i{constructor(e,r,i,o,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new jT,this._registered=!1,this.name="",this.update=new H,this._parent=e,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=VT(this,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let r=e.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),FT(e,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(e){this.viewModel=e,this.update.emit(e)}_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(){AT(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(e){I_.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let r=e.isDisabled.currentValue,i=r!==0&&fr(r);I_.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?TT(e,this._parent):[e]}static{this.\u0275fac=function(r){return new(r||t)(I(Uf,9),I(yT,10),I(vT,10),I(Ic,10),I(Nn,8),I(Gf,8))}}static{this.\u0275dir=re({type:t,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:[to([BT]),An,Xe]})}}return t})();var UT={provide:Ic,useExisting:nr(()=>Wf),multi:!0};var $T=(()=>{class t{constructor(){this._accessors=[]}add(e,r){this._accessors.push([e,r])}remove(e){for(let r=this._accessors.length-1;r>=0;--r)if(this._accessors[r][1]===e){this._accessors.splice(r,1);return}}select(e){this._accessors.forEach(r=>{this._isSameGroup(r,e)&&r[1]!==e&&r[1].fireUncheck(e.value)})}_isSameGroup(e,r){return e[0].control?e[0]._parent===r._control._parent&&e[1].name===r.name:!1}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Wf=(()=>{class t extends zf{constructor(e,r,i,o){super(e,r),this._registry=i,this._injector=o,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=w(Gf,{optional:!0})??Mc}ngOnInit(){this._control=this._injector.get(_i),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this.setProperty("checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this)}}setDisabledState(e){(this.setDisabledStateFired||e||this.callSetDisabledState==="whenDisabledForLegacyCode")&&this.setProperty("disabled",e),this.setDisabledStateFired=!0}fireUncheck(e){this.writeValue(e)}_checkName(){this.name&&this.formControlName&&(this.name,this.formControlName),!this.name&&this.formControlName&&(this.name=this.formControlName)}static{this.\u0275fac=function(r){return new(r||t)(I(Mt),I(De),I($T),I(xe))}}static{this.\u0275dir=re({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(r,i){r&1&&O("change",function(){return i.onChange()})("blur",function(){return i.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[to([UT]),An]})}}return t})();var HT=(()=>{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275mod=ce({type:t})}static{this.\u0275inj=ae({})}}return t})();var qt=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Gf,useValue:e.callSetDisabledState??Mc}]}}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275mod=ce({type:t})}static{this.\u0275inj=ae({imports:[HT]})}}return t})();var Nt=Object.create(null);Nt.open="0";Nt.close="1";Nt.ping="2";Nt.pong="3";Nt.message="4";Nt.upgrade="5";Nt.noop="6";var Fo=Object.create(null);Object.keys(Nt).forEach(t=>{Fo[Nt[t]]=t});var Lo={type:"error",data:"parser error"};var L_=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",V_=typeof ArrayBuffer=="function",j_=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,Vo=({type:t,data:n},e,r)=>L_&&n instanceof Blob?e?r(n):k_(n,r):V_&&(n instanceof ArrayBuffer||j_(n))?e?r(n):k_(new Blob([n]),r):r(Nt[t]+(n||"")),k_=(t,n)=>{let e=new FileReader;return e.onload=function(){let r=e.result.split(",")[1];n("b"+(r||""))},e.readAsDataURL(t)};function F_(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}var Yf;function B_(t,n){if(L_&&t.data instanceof Blob)return t.data.arrayBuffer().then(F_).then(n);if(V_&&(t.data instanceof ArrayBuffer||j_(t.data)))return n(F_(t.data));Vo(t,!1,e=>{Yf||(Yf=new TextEncoder),n(Yf.encode(e))})}var U_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",jo=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t{let n=t.length*.75,e=t.length,r,i=0,o,s,a,c;t[t.length-1]==="="&&(n--,t[t.length-2]==="="&&n--);let l=new ArrayBuffer(n),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 zT=typeof ArrayBuffer=="function",Bo=(t,n)=>{if(typeof t!="string")return{type:"message",data:H_(t,n)};let e=t.charAt(0);return e==="b"?{type:"message",data:qT(t.substring(1),n)}:Fo[e]?t.length>1?{type:Fo[e],data:t.substring(1)}:{type:Fo[e]}:Lo},qT=(t,n)=>{if(zT){let e=$_(t);return H_(e,n)}else return{base64:!0,data:t}},H_=(t,n)=>{switch(n){case"blob":return t instanceof Blob?t:new Blob([t]);case"arraybuffer":default:return t instanceof ArrayBuffer?t:t.buffer}};var z_="",q_=(t,n)=>{let e=t.length,r=new Array(e),i=0;t.forEach((o,s)=>{Vo(o,!1,a=>{r[s]=a,++i===e&&n(r.join(z_))})})},G_=(t,n)=>{let e=t.split(z_),r=[];for(let i=0;i{let r=e.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),n.enqueue(i),n.enqueue(e)})}})}var Qf;function Sc(t){return t.reduce((n,e)=>n+e.length,0)}function Tc(t,n){if(t[0].length===n)return t.shift();let e=new Uint8Array(n),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(Sc(e)t){a.enqueue(Lo);break}}}})}var Kf=4;function oe(t){if(t)return GT(t)}function GT(t){for(var n in oe.prototype)t[n]=oe.prototype[n];return t}oe.prototype.on=oe.prototype.addEventListener=function(t,n){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(n),this};oe.prototype.once=function(t,n){function e(){this.off(t,e),n.apply(this,arguments)}return e.fn=n,this.on(t,e),this};oe.prototype.off=oe.prototype.removeListener=oe.prototype.removeAllListeners=oe.prototype.removeEventListener=function(t,n){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var e=this._callbacks["$"+t];if(!e)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var r,i=0;iPromise.resolve().then(n):(n,e)=>e(n,0),$e=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),Y_="arraybuffer";function Ac(t,...n){return n.reduce((e,r)=>(t.hasOwnProperty(r)&&(e[r]=t[r]),e),{})}var WT=$e.setTimeout,ZT=$e.clearTimeout;function pn(t,n){n.useNativeTimers?(t.setTimeoutFn=WT.bind($e),t.clearTimeoutFn=ZT.bind($e)):(t.setTimeoutFn=$e.setTimeout.bind($e),t.clearTimeoutFn=$e.clearTimeout.bind($e))}var YT=1.33;function Q_(t){return typeof t=="string"?QT(t):Math.ceil((t.byteLength||t.size)*YT)}function QT(t){let n=0,e=0;for(let r=0,i=t.length;r=57344?e+=3:(r++,e+=4);return e}function Oc(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function K_(t){let n="";for(let e in t)t.hasOwnProperty(e)&&(n.length&&(n+="&"),n+=encodeURIComponent(e)+"="+encodeURIComponent(t[e]));return n}function J_(t){let n={},e=t.split("&");for(let r=0,i=e.length;r{this.readyState="paused",n()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||e()})),this.writable||(r++,this.once("drain",function(){--r||e()}))}else e()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(n){let e=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)};G_(n,this.socket.binaryType).forEach(e),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){let n=()=>{this.write([{type:"close"}])};this.readyState==="open"?n():this.once("open",n)}write(n){this.writable=!1,q_(n,e=>{this.doWrite(e,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let n=this.opts.secure?"https":"http",e=this.query||{};return this.opts.timestampRequests!==!1&&(e[this.opts.timestampParam]=Oc()),!this.supportsBinary&&!e.sid&&(e.b64=1),this.createUri(n,e)}};var X_=!1;try{X_=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var e0=X_;function KT(){}var Jf=class extends Uo{constructor(n){if(super(n),typeof location<"u"){let e=location.protocol==="https:",r=location.port;r||(r=e?"443":"80"),this.xd=typeof location<"u"&&n.hostname!==location.hostname||r!==n.port}}doWrite(n,e){let r=this.request({method:"POST",data:n});r.on("success",e),r.on("error",(i,o)=>{this.onError("xhr post error",i,o)})}doPoll(){let n=this.request();n.on("data",this.onData.bind(this)),n.on("error",(e,r)=>{this.onError("xhr poll error",e,r)}),this.pollXhr=n}},Pc=(()=>{class t extends oe{constructor(e,r,i){super(),this.createRequest=e,pn(this,i),this._opts=i,this._method=i.method||"GET",this._uri=r,this._data=i.data!==void 0?i.data:null,this._create()}_create(){var e;let r=Ac(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this._opts.xd;let i=this._xhr=this.createRequest(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{}(e=this._opts.cookieJar)===null||e===void 0||e.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.getResponseHeader("set-cookie"))),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(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=KT,e)try{this._xhr.abort()}catch{}typeof document<"u"&&delete t.requests[this._index],this._xhr=null}}_onLoad(){let e=this._xhr.responseText;e!==null&&(this.emitReserved("data",e),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",t0);else if(typeof addEventListener=="function"){let t="onpagehide"in $e?"pagehide":"unload";addEventListener(t,t0,!1)}}function t0(){for(let t in Pc.requests)Pc.requests.hasOwnProperty(t)&&Pc.requests[t].abort()}var JT=function(){let t=n0({xdomain:!1});return t&&t.responseType!==null}(),Bn=class extends Jf{constructor(n){super(n);let e=n&&n.forceBase64;this.supportsBinary=JT&&!e}request(n={}){return Object.assign(n,{xd:this.xd},this.opts),new Pc(n0,this.uri(),n)}};function n0(t){let n=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!n||e0))return new XMLHttpRequest}catch{}if(!n)try{return new $e[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var r0=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",eh=class extends gn{get name(){return"websocket"}doOpen(){let n=this.uri(),e=this.opts.protocols,r=r0?{}:Ac(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=this.createSocket(n,e,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=n=>this.onClose({description:"websocket connection closed",context:n}),this.ws.onmessage=n=>this.onData(n.data),this.ws.onerror=n=>this.onError("websocket error",n)}write(n){this.writable=!1;for(let e=0;e{try{this.doWrite(r,o)}catch{}i&&hn(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let n=this.opts.secure?"wss":"ws",e=this.query||{};return this.opts.timestampRequests&&(e[this.opts.timestampParam]=Oc()),this.supportsBinary||(e.b64=1),this.createUri(n,e)}},Xf=$e.WebSocket||$e.MozWebSocket,Un=class extends eh{createSocket(n,e,r){return r0?new Xf(n,e,r):e?new Xf(n,e):new Xf(n)}doWrite(n,e){this.ws.send(e)}};var bi=class extends gn{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(n){return this.emitReserved("error",n)}this._transport.closed.then(()=>{this.onClose()}).catch(n=>{this.onError("webtransport error",n)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(n=>{let e=Z_(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=n.readable.pipeThrough(e).getReader(),i=W_();i.readable.pipeTo(n.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(n){this.writable=!1;for(let e=0;e{i&&hn(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var n;(n=this._transport)===null||n===void 0||n.close()}};var th={websocket:Un,webtransport:bi,polling:Bn};var XT=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,e1=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Di(t){if(t.length>8e3)throw"URI too long";let n=t,e=t.indexOf("["),r=t.indexOf("]");e!=-1&&r!=-1&&(t=t.substring(0,e)+t.substring(e,r).replace(/:/g,";")+t.substring(r,t.length));let i=XT.exec(t||""),o={},s=14;for(;s--;)o[e1[s]]=i[s]||"";return e!=-1&&r!=-1&&(o.source=n,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=t1(o,o.path),o.queryKey=n1(o,o.query),o}function t1(t,n){let e=/\/{2,9}/g,r=n.replace(e,"/").split("/");return(n.slice(0,1)=="/"||n.length===0)&&r.splice(0,1),n.slice(-1)=="/"&&r.splice(r.length-1,1),r}function n1(t,n){let e={};return n.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,o){i&&(e[i]=o)}),e}var nh=typeof addEventListener=="function"&&typeof removeEventListener=="function",Rc=[];nh&&addEventListener("offline",()=>{Rc.forEach(t=>t())},!1);var kc=(()=>{class t extends oe{constructor(e,r){if(super(),this.binaryType=Y_,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(r=e,e=null),e){let i=Di(e);r.hostname=i.host,r.secure=i.protocol==="https"||i.protocol==="wss",r.port=i.port,i.query&&(r.query=i.query)}else 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=[],this._transportsByName={},r.transports.forEach(i=>{let o=i.prototype.name;this.transports.push(o),this._transportsByName[o]=i}),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=J_(this.opts.query)),nh&&(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"})},Rc.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){let r=Object.assign({},this.opts.query);r.EIO=Kf,r.transport=e,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[e]);return new this._transportsByName[e](i)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}let e=this.opts.rememberUpgrade&&t.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";let r=this.createTransport(e);r.open(),this.setTransport(r)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.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))}onOpen(){this.readyState="open",t.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let r=new Error("server error");r.code=e.data,this._onError(r);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),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 e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.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}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,hn(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,r,i){return this._sendPacket("message",e,r,i),this}send(e,r,i){return this._sendPacket("message",e,r,i),this}_sendPacket(e,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:e,data:r,options:i};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),o&&this.once("flush",o),this.flush()}close(){let e=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),e()},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():e()}):this.upgrading?i():e()),this}_onError(e){if(t.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),nh&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let i=Rc.indexOf(this._offlineEventListener);i!==-1&&Rc.splice(i,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,r),this.writeBuffer=[],this._prevBufferLen=0}}}return t.protocol=Kf,t})(),Fc=class extends kc{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let n=0;n{r||(e.send([{type:"ping",data:"probe"}]),e.once("packet",d=>{if(!r)if(d.type==="pong"&&d.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",e),!e)return;kc.priorWebsocketSuccess=e.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(u(),this.setTransport(e),e.send([{type:"upgrade"}]),this.emitReserved("upgrade",e),e=null,this.upgrading=!1,this.flush())})}else{let h=new Error("probe error");h.transport=e.name,this.emitReserved("upgradeError",h)}}))};function o(){r||(r=!0,u(),e.close(),e=null)}let s=d=>{let h=new Error("probe error: "+d);h.transport=e.name,o(),this.emitReserved("upgradeError",h)};function a(){s("transport closed")}function c(){s("socket closed")}function l(d){e&&d.name!==e.name&&o()}let u=()=>{e.removeListener("open",i),e.removeListener("error",s),e.removeListener("close",a),this.off("close",c),this.off("upgrading",l)};e.once("open",i),e.once("error",s),e.once("close",a),this.once("close",c),this.once("upgrading",l),this._upgrades.indexOf("webtransport")!==-1&&n!=="webtransport"?this.setTimeoutFn(()=>{r||e.open()},200):e.open()}onHandshake(n){this._upgrades=this._filterUpgrades(n.upgrades),super.onHandshake(n)}_filterUpgrades(n){let e=[];for(let r=0;rth[i]).filter(i=>!!i)),super(n,r)}};var lj=Ei.protocol;function i0(t,n="",e){let r=t;e=e||typeof location<"u"&&location,t==null&&(t=e.protocol+"//"+e.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=e.protocol+t:t=e.host+t),/^(https?|wss?):\/\//.test(t)||(typeof e<"u"?t=e.protocol+"//"+t:t="https://"+t),r=Di(t)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";let o=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+o+":"+r.port+n,r.href=r.protocol+"://"+o+(e&&e.port===r.port?"":":"+r.port),r}var ch={};O0(ch,{Decoder:()=>sh,Encoder:()=>oh,PacketType:()=>Y,protocol:()=>l0});var i1=typeof ArrayBuffer=="function",o1=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,o0=Object.prototype.toString,s1=typeof Blob=="function"||typeof Blob<"u"&&o0.call(Blob)==="[object BlobConstructor]",a1=typeof File=="function"||typeof File<"u"&&o0.call(File)==="[object FileConstructor]";function Ho(t){return i1&&(t instanceof ArrayBuffer||o1(t))||s1&&t instanceof Blob||a1&&t instanceof File}function $o(t,n){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let e=0,r=t.length;e=0&&t.num{delete this.acks[n];for(let a=0;a{this.io.clearTimeoutFn(o),e.apply(this,a)};s.withError=!0,this.acks[n]=s}emitWithAck(n,...e){return new Promise((r,i)=>{let o=(s,a)=>s?i(s):r(a);o.withError=!0,e.push(o),this.emit(n,...e)})}_addToQueue(n){let e;typeof n[n.length-1]=="function"&&(e=n.pop());let r={id:this._queueSeq++,tryCount:0,pending:!1,args:n,flags:Object.assign({fromQueue:!0},this.flags)};n.push((i,...o)=>r!==this._queue[0]?void 0:(i!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),e&&e(i)):(this._queue.shift(),e&&e(null,...o)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(n=!1){if(!this.connected||this._queue.length===0)return;let e=this._queue[0];e.pending&&!n||(e.pending=!0,e.tryCount++,this.flags=e.flags,this.emit.apply(this,e.args))}packet(n){n.nsp=this.nsp,this.io._packet(n)}onopen(){typeof this.auth=="function"?this.auth(n=>{this._sendConnectPacket(n)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(n){this.packet({type:Y.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},n):n})}onerror(n){this.connected||this.emitReserved("connect_error",n)}onclose(n,e){this.connected=!1,delete this.id,this.emitReserved("disconnect",n,e),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(n=>{if(!this.sendBuffer.some(r=>String(r.id)===n)){let r=this.acks[n];delete this.acks[n],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(n){if(n.nsp===this.nsp)switch(n.type){case Y.CONNECT:n.data&&n.data.sid?this.onconnect(n.data.sid,n.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 Y.EVENT:case Y.BINARY_EVENT:this.onevent(n);break;case Y.ACK:case Y.BINARY_ACK:this.onack(n);break;case Y.DISCONNECT:this.ondisconnect();break;case Y.CONNECT_ERROR:this.destroy();let r=new Error(n.data.message);r.data=n.data.data,this.emitReserved("connect_error",r);break}}onevent(n){let e=n.data||[];n.id!=null&&e.push(this.ack(n.id)),this.connected?this.emitEvent(e):this.receiveBuffer.push(Object.freeze(e))}emitEvent(n){if(this._anyListeners&&this._anyListeners.length){let e=this._anyListeners.slice();for(let r of e)r.apply(this,n)}super.emit.apply(this,n),this._pid&&n.length&&typeof n[n.length-1]=="string"&&(this._lastOffset=n[n.length-1])}ack(n){let e=this,r=!1;return function(...i){r||(r=!0,e.packet({type:Y.ACK,id:n,data:i}))}}onack(n){let e=this.acks[n.id];typeof e=="function"&&(delete this.acks[n.id],e.withError&&n.data.unshift(null),e.apply(this,n.data))}onconnect(n,e){this.id=n,this.recovered=e&&this._pid===e,this._pid=e,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(n=>this.emitEvent(n)),this.receiveBuffer=[],this.sendBuffer.forEach(n=>{this.notifyOutgoingListeners(n),this.packet(n)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(n=>n()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Y.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(n){return this.flags.compress=n,this}get volatile(){return this.flags.volatile=!0,this}timeout(n){return this.flags.timeout=n,this}onAny(n){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(n),this}prependAny(n){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(n),this}offAny(n){if(!this._anyListeners)return this;if(n){let e=this._anyListeners;for(let r=0;r0&&t.jitter<=1?t.jitter:0,this.attempts=0}_r.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var n=Math.random(),e=Math.floor(n*this.jitter*t);t=Math.floor(n*10)&1?t+e:t-e}return Math.min(t,this.max)|0};_r.prototype.reset=function(){this.attempts=0};_r.prototype.setMin=function(t){this.ms=t};_r.prototype.setMax=function(t){this.max=t};_r.prototype.setJitter=function(t){this.jitter=t};var xi=class extends oe{constructor(n,e){var r;super(),this.nsps={},this.subs=[],n&&typeof n=="object"&&(e=n,n=void 0),e=e||{},e.path=e.path||"/socket.io",this.opts=e,pn(this,e),this.reconnection(e.reconnection!==!1),this.reconnectionAttempts(e.reconnectionAttempts||1/0),this.reconnectionDelay(e.reconnectionDelay||1e3),this.reconnectionDelayMax(e.reconnectionDelayMax||5e3),this.randomizationFactor((r=e.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new _r({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(e.timeout==null?2e4:e.timeout),this._readyState="closed",this.uri=n;let i=e.parser||ch;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=e.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(n){return arguments.length?(this._reconnection=!!n,n||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(n){return n===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=n,this)}reconnectionDelay(n){var e;return n===void 0?this._reconnectionDelay:(this._reconnectionDelay=n,(e=this.backoff)===null||e===void 0||e.setMin(n),this)}randomizationFactor(n){var e;return n===void 0?this._randomizationFactor:(this._randomizationFactor=n,(e=this.backoff)===null||e===void 0||e.setJitter(n),this)}reconnectionDelayMax(n){var e;return n===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=n,(e=this.backoff)===null||e===void 0||e.setMax(n),this)}timeout(n){return arguments.length?(this._timeout=n,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(n){if(~this._readyState.indexOf("open"))return this;this.engine=new Ei(this.uri,this.opts);let e=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;let i=at(e,"open",function(){r.onopen(),n&&n()}),o=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),n?n(a):this.maybeReconnectOnOpen()},s=at(e,"error",o);if(this._timeout!==!1){let a=this._timeout,c=this.setTimeoutFn(()=>{i(),o(new Error("timeout")),e.close()},a);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}return this.subs.push(i),this.subs.push(s),this}connect(n){return this.open(n)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let n=this.engine;this.subs.push(at(n,"ping",this.onping.bind(this)),at(n,"data",this.ondata.bind(this)),at(n,"error",this.onerror.bind(this)),at(n,"close",this.onclose.bind(this)),at(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(n){try{this.decoder.add(n)}catch(e){this.onclose("parse error",e)}}ondecoded(n){hn(()=>{this.emitReserved("packet",n)},this.setTimeoutFn)}onerror(n){this.emitReserved("error",n)}socket(n,e){let r=this.nsps[n];return r?this._autoConnect&&!r.active&&r.connect():(r=new Ii(this,n,e),this.nsps[n]=r),r}_destroy(n){let e=Object.keys(this.nsps);for(let r of e)if(this.nsps[r].active)return;this._close()}_packet(n){let e=this.encoder.encode(n);for(let r=0;rn()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(n,e){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",n,e),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let n=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let e=this.backoff.duration();this._reconnecting=!0;let r=this.setTimeoutFn(()=>{n.skipReconnect||(this.emitReserved("reconnect_attempt",n.backoff.attempts),!n.skipReconnect&&n.open(i=>{i?(n._reconnecting=!1,n.reconnect(),this.emitReserved("reconnect_error",i)):n.onreconnect()}))},e);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){let n=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",n)}};var zo={};function Lc(t,n){typeof t=="object"&&(n=t,t=void 0),n=n||{};let e=i0(t,n.path||"/socket.io"),r=e.source,i=e.id,o=e.path,s=zo[i]&&o in zo[i].nsps,a=n.forceNew||n["force new connection"]||n.multiplex===!1||s,c;return a?c=new xi(r,n):(zo[i]||(zo[i]=new xi(r,n)),c=zo[i]),e.query&&!n.query&&(n.query=e.queryKey),c.socket(e.path,n)}Object.assign(Lc,{Manager:xi,Socket:Ii,io:Lc,connect:Lc});var d1=["alert"],f1=t=>({"animation-duration":t});function h1(t,n){if(t&1&&(y(0,"div",9),ke(1,"span",10),v()),t&2){let e=g(2);p(),m("ngStyle",On(1,f1,(e.timeout+350)/1e3+"s"))}}function p1(t,n){if(t&1&&ke(0,"div"),t&2){let e=g(3);cr(e.icon)}}function g1(t,n){if(t&1&&(y(0,"div",11),T(1,p1,1,3,"div",12),y(2,"div",13),A(3),v()()),t&2){let e=g(2);p(),m("ngIf",e.icon),p(2),Ee(e.text)}}function m1(t,n){if(t&1){let e=W();y(0,"button",15),O("click",function(){let i=N(e).$implicit;return g(3).remove(),P(i.callback&&i.callback())}),A(1),v()}if(t&2){let e=n.$implicit;p(),ue(" ",e.text," ")}}function y1(t,n){if(t&1&&(y(0,"div"),T(1,m1,2,1,"button",14),v()),t&2){let e=g(2);p(),m("ngForOf",e.buttons)}}function v1(t,n){if(t&1){let e=W();y(0,"div",16),O("click",function(){N(e);let i=g(2);return P(i.remove())}),v()}}function _1(t,n){if(t&1&&(y(0,"div",2)(1,"div",3,0),T(3,h1,2,3,"div",4),y(4,"div",5),T(5,g1,4,2,"div",6)(6,y1,2,1,"div",7)(7,v1,1,0,"div",8),v()()()),t&2){let e=g();he("_close",e.delete_animation),m("ngClass",e.class),p(),he("waw-alert-color-blue",e.type=="info")("waw-alert-color-red",e.type=="error")("waw-alert-color-green",e.type=="success")("waw-alert-color-orange",e.type=="warning")("waw-alert-color-yellow",e.type=="question"),p(2),m("ngIf",e.progress),p(2),m("ngIf",!e.component),p(),m("ngIf",!e.component&&e.type=="question"),p(),m("ngIf",e.closable)}}function w1(t,n){if(t&1){let e=W();y(0,"span",3),O("click",function(){N(e);let i=g();return P(i.close())}),A(1,"\xD7"),v()}}function C1(t,n){if(t&1){let e=W();ye(0),y(1,"input",2,0),O("change",function(i){let o=N(e).$implicit,s=St(2);return g().fs.change(i,o),P(s.value="")}),v(),ve()}if(t&2){let e=n.$implicit;p(),m("id",e.id)("hidden",!0)("accept",e.accept||e.part&&"image/*"||"")("multiple",e.multiple&&!0||"")}}var $n=new x("config"),Mi={meta:{useTitleSuffix:!1,warnMissingGuard:!0,defaults:{}},socket:!1,http:{url:"",headers:{}},store:{prefix:""}},lh={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 we=(()=>{class t{platformId;ssr=!1;localStorage;navigator;document;window;constructor(e){this.platformId=e,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(e,r=!1){if(Array.isArray(e))return e;if(typeof e!="object"||e===null)return[];let i=[];for(let o in e)e.hasOwnProperty(o)&&(e[o]||typeof e[o]=="number"||typeof e[o]=="boolean")&&(r?i.push(o):i.push(e[o]));return i}splice(e,r,i="_id"){if(!Array.isArray(e)||!Array.isArray(r))return r;let o=new Set(e.map(s=>s[i]));return r.filter(s=>!o.has(s[i]))}ids2id(...e){return e.sort((r,i)=>Number(r.toString().substring(0,8))>Number(i.toString().substring(0,8))?1:-1),e.join()}_afterWhile={};afterWhile(e,r,i=1e3){typeof e=="function"&&(r=e,e="common"),typeof r=="function"&&typeof i=="number"&&(typeof e=="string"?(clearTimeout(this._afterWhile[e]),this._afterWhile[e]=this.window.setTimeout(r,i)):typeof e=="object"?(clearTimeout(e.__afterWhile),e.__afterWhile=this.window.setTimeout(r,i)):console.warn("badly configured after while"))}copy(e,r){for(let i in e)typeof e[i]!="object"||e[i]instanceof Date||Array.isArray(e[i])||e[i]===null?r[i]=e[i]:((typeof r[i]!="object"||r[i]instanceof Date||Array.isArray(r[i])||r[i]===null)&&(r[i]={}),this.copy(e[i],r[i]))}device="";detectDevice(){let e=this.navigator.userAgent||this.navigator.vendor||this.window.opera;/windows phone/i.test(e)?this.device="Windows Phone":/android/i.test(e)?this.device="Android":/iPad|iPhone|iPod/.test(e)&&!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(e){this.appVersion=e,this.setVersion()}setDateVersion(e){this.dateVersion=e,this.setVersion()}_signals={};emit(e,r){this._signals[e]||(this._signals[e]=new de),this._signals[e].next(r)}on(e){return this._signals[e]||(this._signals[e]=new de),this._signals[e].asObservable()}off(e){this._signals[e]&&(this._signals[e].complete(),delete this._signals[e])}_completed={};_completeResolvers={};complete(e){this._completed[e]=!0,this._completeResolvers[e]&&(this._completeResolvers[e].forEach(r=>r()),this._completeResolvers[e]=[])}onComplete(e){return this._completed[e]?Promise.resolve():new Promise(r=>{this._completeResolvers[e]||(this._completeResolvers[e]=[]),this._completeResolvers[e].push(r)})}completed(e){return!!this._completed[e]}_locked={};_unlockResolvers={};lock(e){this._locked[e]=!0,this._unlockResolvers[e]||(this._unlockResolvers[e]=[])}unlock(e){this._locked[e]=!1,this._unlockResolvers[e]&&(this._unlockResolvers[e].forEach(r=>r()),this._unlockResolvers[e]=[])}onUnlock(e){return this._locked[e]?new Promise(r=>{this._unlockResolvers[e]||(this._unlockResolvers[e]=[]),this._unlockResolvers[e].push(r)}):Promise.resolve()}locked(e){return!!this._locked[e]}static \u0275fac=function(r){return new(r||t)(_(pt))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),qo=t=>typeof t<"u",u0=(()=>{class t{router;meta;core;titleService;config;_meta;constructor(e,r,i,o,s){this.router=e,this.meta=r,this.core=i,this.titleService=o,this.config=s,this.config=this.config||Mi,this._meta=this.config.meta||{},this._warnMissingGuard()}setDefaults(e){this._meta.defaults=e}setTitle(e,r){let i=qo(e)?e: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(e){return Object.keys(e).forEach(r=>{let i=this.core.document.createElement("link");i.setAttribute("rel",r),i.setAttribute("href",e[r]),this.core.document.head.appendChild(i)}),this}setTag(e,r,i){if(e==="title"||e==="titleSuffix")throw new Error(`Attempt to set ${e} through 'setTag': 'title' and 'titleSuffix' are reserved tag names. Please use 'MetaService.setTitle' instead`);let o=qo(r)?r:this._meta.defaults[e]||"";return this._updateMetaTag(e,o,i),e==="description"&&(this._updateMetaTag("og:description",o,i),this._updateMetaTag("twitter:description",o,i)),this}_updateMetaTag(e,r,i){i=i||(e.startsWith("og:")||e.startsWith("twitter:")?"property":"name"),this.meta.updateTag({[i]:e,content:r})}removeTag(e,r){r=r||(e.startsWith("og:")||e.startsWith("twitter:")?"property":"name"),this.meta.removeTag(`${r}="${e}"`)}_warnMissingGuard(){if(qo(this._meta.warnMissingGuard)&&!this._meta.warnMissingGuard)return;let e=!!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)&&(e||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)(_(st),_(Ev),_(we),_(Xa),_($n,8))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),b1=(()=>{class t{metaService;config;static IDENTIFIER="MetaGuard";_meta;constructor(e,r){this.metaService=e,this.config=r,this._meta=r.meta,this.config||(this.config=Mi)}canActivate(e,r){return this._processRouteMetaTags(e.data&&e.data.meta),!0}_processRouteMetaTags(e={}){e.disableUpdate||(e.title&&this.metaService.setTitle(e.title,e.titleSuffix),Array.isArray(e.links)?this.metaService.setLink(e.links):typeof e.links=="string"&&this.metaService.setLink(e.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(e).forEach(r=>{r==="title"||r==="titleSuffix"||r==="links"||Object.keys(e[r]).forEach(i=>{this.metaService.setTag(i,e[r][i],r)})}),Object.keys(this._meta.defaults).forEach(r=>{r in e||r==="title"||r==="titleSuffix"||r==="links"||this.metaService.setTag(r,this._meta.defaults[r])}))}static \u0275fac=function(r){return new(r||t)(_(u0),_($n,8))};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})(),D1=(()=>{class t{core;alert;component;text="";class="";type="info";progress=!0;position="bottomRight";icon="";timeout=5e3;close;closable=!0;buttons=[];constructor(e){this.core=e,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=e.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)(I(we))};static \u0275cmp=fe({type:t,selectors:[["alert"]],viewQuery:function(r,i){if(r&1&&ei(d1,5),r&2){let o;et(o=tt())&&(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,_1,8,17,"div",1),r&2&&m("ngIf",i.text)},dependencies:[un,Be,rt,ev],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})(),E1=(()=>{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(e){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),O("click",function(){return i.onClickOutside()}),y(1,"div",1),O("click",function(s){return s.stopPropagation()}),ke(2,"div"),T(3,w1,2,0,"span",2),v()()),r&2&&(m("hidden",!i.showModal)("ngClass",i.class+" "+i.size),p(3),m("ngIf",i.closable))},dependencies:[un,rt],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 jc=(()=>{class t{elementRef;clickOutside=new H;constructor(e){this.elementRef=e}onClick(e){this.elementRef.nativeElement.contains(e.target)||this.clickOutside.emit(e)}static \u0275fac=function(r){return new(r||t)(I(De))};static \u0275dir=re({type:t,selectors:[["","clickOutside",""]],hostBindings:function(r,i){r&1&&O("click",function(s){return i.onClick(s)},!1,Cm)},outputs:{clickOutside:"clickOutside"}})}return t})();var Bc=(()=>{class t{c=0;transform(e,r,i,o,s,a){if(!r)return e;if(typeof i=="number"&&(o=i,i=null),s||!r)return o&&Array.isArray(e)?e.slice(0,o):e||[];let c=[],l={};if(!Array.isArray(r)&&typeof r=="object"){let h=[];for(let f in r)r[f]&&h.push(f);r=h}typeof r=="string"&&(r=[r]),i||(i=["name"]),typeof i=="string"&&(i=i.split(" "));let u=function(h,f,C,E){if(h){if(f.indexOf(".")>-1){let M=f.split("."),F=M.shift();if(Array.isArray(h[F])){for(let se=0;se-1||r[M].toLowerCase().indexOf(h[f].toString().toLowerCase())>-1)){l[E]||c.push(C),l[E]=!0,F=!0;break}if(F)break}}},d=function(h,f){for(let C=0;C{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})(),Vc=class extends I1{_config;_http;_store;_alert;_core;_url="/api/";_docs=[];_perPage=20;_filteredDocumentsCallbacks=[];constructor(n,e,r,i,o){super(),this._config=n,this._http=e,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(n){if(Array.isArray(n))for(let e of n)this.addDoc(e)}addDoc(n){this._config.replace&&this._config.replace(n);let e=this._docs.find(r=>this._id(r)===this._id(n));e?(this._core.copy(n,e),this._core.copy(e,n)):this._docs.push(n),this.setDocs()}new(n={}){return z(b({},n),{_id:Date.now().toString(),__created:!1,__modified:!1})}doc(n){return this._docs.find(e=>this._id(e)===n)||this.new()}setPerPage(n){this._perPage=n}get(n={},e={}){let r=`${this._url}/get${e.name||""}`,i=typeof n.page=="number"?`?skip=${this._perPage*(n.page-1)}&limit=${this._perPage}`:"",o=this._http.get(`${r}${i}`);return o.subscribe({next:s=>{s.forEach(a=>this.addDoc(a)),e.callback&&e.callback(s),typeof n.page!="number"&&this._filterDocuments()},error:s=>{e.errCallback&&e.errCallback(s)}}),o}create(n,e={}){if(n.__created)return;n.__created=!0;let r=this._http.post(`${this._url}/create${e.name||""}`,n);return r.subscribe({next:i=>{i?(this._core.copy(i,n),this.addDoc(n),this._filterDocuments(),e.callback&&e.callback(n),e.alert&&this._alert.show({unique:`${this._config.name}create`,text:e.alert})):(n.__created=!1,e.errCallback&&e.errCallback(i)),this._core.emit(`${this._config.name}_create`,n)},error:i=>{n.__created=!1,e.errCallback&&e.errCallback(i)}}),r}fetch(n={},e={}){let r=this._http.post(`${this._url}/fetch${e.name||""}`,n);return r.subscribe({next:i=>{i?(this.addDoc(i),this._filterDocuments(),e.callback&&e.callback(i),e.alert&&this._alert.show({unique:`${this._config.name}create`,text:e.alert})):e.errCallback&&e.errCallback(i)},error:i=>{e.errCallback&&e.errCallback(i)}}),r}updateAfterWhile(n,e={}){n.__modified=!0,this._core.afterWhile(this._id(n),()=>{this.update(n,e)})}update(n,e={}){n.__modified=!0;let r=this._http.post(`${this._url}/update${e.name||""}`,n);return r.subscribe({next:i=>{i?(n.__modified=!1,this._core.copy(i,n),e.callback&&e.callback(n),e.alert&&this._alert.show({unique:`${this._config.name}update`,text:e.alert})):e.errCallback&&e.errCallback(i),this._core.emit(`${this._config.name}_update`,n)},error:i=>{e.errCallback&&e.errCallback(i)}}),r}unique(n,e={}){n.__modified=!0;let r=this._http.post(`${this._url}/unique${e.name||""}`,n);return r.subscribe({next:i=>{i?(n.__modified=!1,n[e.name]=i,e.callback&&e.callback(n),e.alert&&this._alert.show({unique:`${this._config.name}unique`,text:e.alert})):e.errCallback&&e.errCallback(i),this._core.emit(`${this._config.name}_unique`,n)},error:i=>{e.errCallback&&e.errCallback(i)}}),r}delete(n,e={}){let r=this._http.post(`${this._url}/delete${e.name||""}`,n);return r.subscribe({next:i=>{i?(this._docs.splice(this._docs.findIndex(o=>this._id(o)!==this._id(n)),1),this.setDocs(),this._filterDocuments(),e.callback&&e.callback(n),e.alert&&this._alert.show({unique:`${this._config.name}delete`,text:e.alert})):e.errCallback&&e.errCallback(i),this._core.emit(`${this._config.name}_delete`,n)},error:i=>{e.errCallback&&e.errCallback(i)}}),r}filteredDocuments(n,e="author",r,i=(o,s)=>o[this._id(o)]s[this._id(s)]?1:0){let o=()=>{for(let s in n)for(let a=n[s].length-1;a>=0;a--){let c=typeof e=="function"?e(n[s][a]):e,l=n[s][a];this._docs.find(u=>Array.isArray(u[c])?u[c].includes(l[this._id(u)]):u[c]===l[this._id(u)])||n[s].splice(a,1)}for(let s of this._docs){let a=typeof e=="function"?e(s):e;(typeof r=="function"?!r(s):Array.isArray(s[a])?!s[a]?.length:!s[a])||(typeof e=="function"?e(s)&&!n[s[a]].find(c=>c._id===s._id)&&n[s[a]].push(s):Array.isArray(s[a])?s[a].forEach(c=>{n[c]=n[c]||[],n[c].find(l=>l._id===s._id)||n[c].push(s)}):(n[s[a]]=n[s[a]]||[],n[s[a]].find(c=>c._id===s._id)||n[s[a]].push(s)))}for(let s in n)n[s].sort(i)};return this._filteredDocumentsCallbacks.push(o),o}_id(n){return n[this._config._id||"_id"]?.toString()}_filterDocuments(){for(let n of this._filteredDocumentsCallbacks)n()}},Gt=(()=>{class t{config;core;_prefix="";constructor(e,r){this.config=e,this.core=r,this.config=this.config||Mi}setPrefix(e){this._prefix=e}set(e,r,i=()=>{},o=()=>{}){if(e=this.applyPrefix(e),this.config.store?.set)this.config.store.set(e,r,i,o);else try{this.core.localStorage.setItem(e,r),i()}catch{o()}}setAsync(e,r){return vt(this,null,function*(){e=this.applyPrefix(e);try{return this.config.store?.set?yield this.config.store.set(e,r):this.core.localStorage.setItem(e,r),!0}catch(i){return console.error(i),!1}})}get(e,r=()=>{},i=()=>{}){if(e=this.applyPrefix(e),this.config.store?.get)this.config.store.get(e,r,i);else{let o=this.core.localStorage.getItem(e)||"";r(o)}}getAsync(e){return vt(this,null,function*(){e=this.applyPrefix(e);try{return this.config.store?.get?yield this.config.store.get(e):this.core.localStorage.getItem(e)||""}catch(r){return console.error(r),""}})}setJson(e,r,i=()=>{},o=()=>{}){this.set(e,JSON.stringify(r),i,o)}setJsonAsync(e,r){return vt(this,null,function*(){return this.setAsync(e,JSON.stringify(r))})}getJson(e,r=()=>{},i=()=>{}){this.get(e,o=>{try{let s=JSON.parse(o);r(s)}catch{r(null)}},i)}getJsonAsync(e){return vt(this,null,function*(){let r=yield this.getAsync(e);try{return JSON.parse(r)}catch(i){return console.error(i),null}})}remove(e,r,i){return vt(this,null,function*(){e=this.applyPrefix(e);try{return this.config.store?.remove?yield this.config.store.remove(e,r,i):this.core.localStorage.removeItem(e),r?.(),!0}catch(o){return console.error(o),i?.(),!1}})}clear(e,r){return vt(this,null,function*(){try{return this.config.store?.clear?yield this.config.store.clear():this.core.localStorage.clear(),e?.(),!0}catch(i){return console.error(i),r?.(),!1}})}applyPrefix(e){return this.config.store?.prefix&&(e=this.config.store.prefix+e),this._prefix&&(e=this._prefix+e),e}static \u0275fac=function(r){return new(r||t)(_($n,8),_(we))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Si=(()=>{class t{store;http;_config;errors=[];url="";locked=!1;awaitLocked=[];_http;_headers={};_http_headers=new Ue(this._headers);constructor(e,r,i){if(this.store=e,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 Ue(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 Ue(this._headers)}})}setUrl(e){this.url=e,this.store.set("http_url",e)}removeUrl(){this.url=this._http.url||"",this.store.remove("http_url")}set(e,r){this._headers[e]=r,this.store.setJson("http_headers",this._headers),this._http_headers=new Ue(this._headers)}header(e){return this._headers[e]}remove(e){delete this._headers[e],this._http_headers=new Ue(this._headers),this.store.setJson("http_headers",this._headers)}_httpMethod(e,r,i,o){return e==="post"?this.http.post(r,i,o):e==="put"?this.http.put(r,i,o):e==="patch"?this.http.patch(r,i,o):e==="delete"?this.http.delete(r,o):this.http.get(r,o)}_post(e,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(e,r,i,o,s).subscribe(l)},100);this.awaitLocked.push(u)});let a=(o.url||this.url)+e;this.prepare_handle(a,r);let c=new ki(1);return this._httpMethod(s,a,r,{headers:this._http_headers}).pipe(ct(),wt(l=>(this.handleError(o.err,()=>{this._post(e,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(e,r,i=s=>{},o={}){return this._post(e,r,i,o)}put(e,r,i=s=>{},o={}){return this._post(e,r,i,o,"put")}patch(e,r,i=s=>{},o={}){return this._post(e,r,i,o,"patch")}delete(e,r=o=>{},i={}){return this._post(e,null,r,i,"delete")}get(e,r=o=>{},i={}){return this._post(e,null,r,i,"get")}clearLocked(){for(let e of this.awaitLocked)clearTimeout(e);this.awaitLocked=[]}lock(){this.locked=!0}unlock(){this.locked=!1}handleError(e,r){return i=>new Promise(o=>{this.err_handle(i,e,r),o()})}err_handle(e,r,i){typeof r=="function"&&r(e);for(let o of this.errors)typeof o=="function"&&o(e,i)}prepare_handle(e,r){}response_handle(e,r,i){typeof i=="function"&&i()}static \u0275fac=function(r){return new(r||t)(_(Gt),_(Wd),_($n,8))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),d0=(()=>{class t{store;http;core;data={};socket={emit:(e,r)=>{console.log(e,r,"is not used on sockets")}};config(e,r){if(!this.data["opts"+e]){if(this.data["arr"+e]||(this.data["arr"+e]=[]),this.data["obj"+e]||(this.data["obj"+e]={}),this.data["opts"+e])for(let i in r)this.data["opts"+e][i]=r[i];else this.data["opts"+e]=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"+e][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:e}),this.push(e,s),typeof i=="function"&&i(s)):typeof i=="function"&&i(!1)},{url:o.base_url||this.http.url}))}fetch(e,r=void 0,i=void 0){if(r.query&&r.query._id&&!r.force&&this.data["obj"+e][r.query._id])return this.data["obj"+e][r.query._id];typeof r=="function"&&(i=r,r={}),r||(r={}),this.config(e,r);let o="/api/"+e+"/fetch"+(r.name||""),s;if(r.query&&r.query._id&&this.data["obj"+e][r.query._id])s=this.data["obj"+e][r.query._id];else{s={};for(let a in this.data["opts"+e].replace)this.replace(s,a,this.data["opts"+e].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(e,s),a&&typeof i=="function"&&i(s)},{url:r.base_url||this.http.url}),s}get(e,r=void 0,i=void 0){typeof r=="function"&&(i=r,r={}),r||(r={}),this.config(e,r);let o="/api/"+e+"/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:e}),a&&typeof o=="function"?o(a):typeof o=="function"&&o(!1)},{url:i.base_url||this.http.url})}unique(e,r,i=void 0,o=void 0){typeof i=="function"&&(o=i,i={}),typeof i!="object"&&(i={}),r=this.prepare_update(e,r,i);let s="/api/"+e+"/unique"+(i.name||"");this.http.post(i.url||s,r,a=>{if(a){this.socket.emit("update",{_id:r._id,part:e});let c=this.data["obj"+e][r._id];for(let l in r)c[l]=r[l];this.renew(e,c)}(a||typeof a=="string")&&typeof o=="function"?o(a):typeof o=="function"&&o(!1)},{url:i.base_url||this.http.url})}delete(e,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:e}),this.remove(e,r)),a&&typeof o=="function"?o(a):typeof o=="function"&&o(!1)},{url:i.base_url||this.http.url})}_id(e){typeof e=="function"&&this.http.get("/waw/newId",e)}to_id(e){if(!e)return[];if(Array.isArray(e))e=e.slice();else if(typeof e=="object"){if(e._id)return[e._id];let r=[];for(let i in e)e[i]&&r.push(e[i]._id||e[i]);e=r}for(let r=0;r-1){r=r.split(".");let o=r.shift();return typeof e[o]!="object"?void 0:this.populate(e[o],r.join("."),i)}if(Array.isArray(e[r])){for(let o=e[r].length-1;o>=0;o--)this.data["obj"+i][e[r][o]]?e[r][o]=this.data["obj"+i][e[r][o]]:e[r].splice(o,1);return}else if(typeof e[r]=="string")e[r]=this.data["obj"+i][e[r]]||null;else return}else setTimeout(()=>{this.populate(e,r,i)},100)}}on(e,r){typeof e=="string"&&(e=e.split(" "));for(var i=0;i{this.on(e,r)},100);r(this.data)}track(e,r){return r&&r._id&&r._id||e}sortAscId(){return function(e,r){return e._id>r._id?1:-1}}sortDescId(){return function(e,r){return e._idi[e.field].toLowerCase()?1:r[e.field].toLowerCase()i[e.field].toLowerCase()||!e.next?-1:e.next(r,i)}}sortAscDate(e){return typeof e=="string"&&(e={field:e}),function(r,i){return r[e.field].getTime()>i[e.field].getTime()?1:r[e.field].getTime()i[e.field].getTime()||!e.next?-1:e.next(r,i)}}sortAscNumber(e){return typeof e=="string"&&(e={field:e}),function(r,i){return r[e.field]>i[e.field]?1:r[e.field]i[e.field]||!e.next?-1:e.next(r,i)}}sortAscBoolean(e){return typeof e=="string"&&(e={field:e}),function(r,i){return!r[e.field]&&i[e.field]?1:r[e.field]&&!i[e.field]||!e.next?-1:e.next(r,i)}}sortDescBoolean(e){return typeof e=="string"&&(e={field:e}),function(r,i){return r[e.field]&&!i[e.field]?1:!r[e.field]&&i[e.field]||!e.next?-1:e.next(r,i)}}beArr(e,r){Array.isArray(e)?r(e):r([])}beObj(e,r){(typeof e!="object"||Array.isArray(e)||!e)&&(e={}),r(e)}beDate(e,r){r(new Date(e))}beString(e,r){typeof e!="string"&&(e=""),r(e)}beDoc=(e,r)=>{this.beObj(e,i=>{i._id?r(i):this._id(o=>{i._id=o,r(i)})})};forceArr(e,r){r([])}forceObj(e,r){r({})}forceString(e,r){r("")}forceDoc=(e,r)=>{this._id(i=>{r({_id:i})})};getCreated(e,r,i){r(new Date(parseInt(i._id.substring(0,8),16)*1e3))}replace(e,r,i){if(r.indexOf(".")>-1){r=r.split(".");let o=r.shift();return e[o]&&(typeof e[o]!="object"||Array.isArray(e[o]))?void 0:(e[o]||(e[o]={}),this.replace(e[o],r.join("."),i))}typeof i=="function"&&i(e[r],function(o){e[r]=o},e)}renew(e,r){if(!this.data["obj"+e][r._id])return this.push(e,r);if(this.data["opts"+e].replace)for(let i in this.data["opts"+e].replace)this.replace(r,i,this.data["opts"+e].replace[i]);for(let i in this.data["obj"+e][r._id])this.data["obj"+e][r._id][i]=r[i];for(let i in r)this.data["obj"+e][r._id][i]=r[i];for(let i=0;i{if(a[l]=!0,!!l){if(Array.isArray(this.data["obj"+e][i][l])||(this.data["obj"+e][i][l]=[]),o){for(let u=this.data["obj"+e][i][l].length-1;u>=0;u--)if(this.data["obj"+e][i][l][u]._id==r._id)return;this.data["obj"+e][i][l].push(r)}else for(let u=this.data["obj"+e][i][l].length-1;u>=0;u--)this.data["obj"+e][i][l][u]._id==r._id&&this.data["obj"+e][i][l].splice(u,1);typeof s.sort=="function"&&this.data["obj"+e][i][l].sort(s.sort)}};c(s.field(r,c.bind(this)));for(let l in this.data["obj"+e][i])if(!a[l])for(let u=this.data["obj"+e][i][l].length-1;u>=0;u--)this.data["obj"+e][i][l][u]._id==r._id&&this.data["obj"+e][i][l].splice(u,1)}if(this.data["opts"+e].query)for(let i in this.data["opts"+e].query){let o=!0,s=this.data["opts"+e].query[i];if(typeof s.ignore=="function"&&s.ignore(r)&&(o=!1),typeof s.allow=="function"&&!s.allow(r)&&(o=!1),this.data["obj"+e][i]||(this.data["obj"+e][i]=[]),o){for(let a=this.data["obj"+e][i].length-1;a>=0;a--)if(this.data["obj"+e][i][a]._id==r._id)return;this.data["obj"+e][i].push(r)}else for(let a=this.data["obj"+e][i].length-1;a>=0;a--)this.data["obj"+e][i][a]._id==r._id&&this.data["obj"+e][i].splice(a,1);typeof s.sort=="function"&&this.data["obj"+e][i].sort(s.sort)}}push(e,r){if(this.data["arr"+e]||(this.data["arr"+e]=[]),this.data["obj"+e]||(this.data["obj"+e]={}),this.data["opts"+e]||(this.data["opts"+e]={}),this.data["obj"+e][r._id])return this.renew(e,r);if(this.data["opts"+e].replace)for(let i in this.data["opts"+e].replace)this.replace(r,i,this.data["opts"+e].replace[i]);if(this.data["opts"+e].populate){let i=this.data["opts"+e].populate;if(Array.isArray(i))for(let o=0;o{a&&(Array.isArray(this.data["obj"+e][i][a])||(this.data["obj"+e][i][a]=[]),this.data["obj"+e][i][a].push(r),typeof o.sort=="function"&&this.data["obj"+e][i][a].sort(o.sort))};s(o.field(r,a=>{s(a)}))}if(this.data["opts"+e].query)for(let i in this.data["opts"+e].query){let o=this.data["opts"+e].query[i];typeof o.ignore=="function"&&o.ignore(r)||typeof o.allow=="function"&&!o.allow(r)||(this.data["obj"+e][i]||(this.data["obj"+e][i]=[]),this.data["obj"+e][i].push(r),typeof o.sort=="function"&&this.data["obj"+e][i].sort(o.sort))}for(let i=0;i=0;s--)this.data["obj"+e][i][o][s]._id==r._id&&this.data["obj"+e][i][o].splice(s,1);if(this.data["opts"+e].query){for(let i in this.data["opts"+e].query)for(let o=this.data["obj"+e][i].length-1;o>=0;o--)if(this.data["obj"+e][i][o]._id==r._id){this.data["obj"+e][i].splice(o,1);break}}}}constructor(e,r,i){this.store=e,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)(_(Gt),_(Si),_(we))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var dB=(()=>{class t{core;replacements=[{from:"%20",to:" "}];hash={};done=!1;constructor(e){this.core=e,this.initialize()}initialize(){if(!this.core.window.location.hash){this.done=!0;return}this.load(),this.done=!0}load(){this.hash={};let e=this.core.window.location.hash.replace("#!#","").replace("#","").split("&");for(let r of e){let[i,o]=r.split("=");i=this.applyReplacements(i),o=this.applyReplacements(o),this.hash[i]=o}}applyReplacements(e){if(!e)return"";for(let r of this.replacements)e=e.split(r.from).join(r.to);return e}on(e,r){if(!this.done){setTimeout(()=>this.on(e,r),100);return}r(this.hash[e])}save(){let e=Object.entries(this.hash).map(([r,i])=>`${r}=${i}`).join("&");this.core.window.location.hash=e}set(e,r){this.hash[e]=r,this.save()}get(e){return this.hash[e]}clear(e){e?delete this.hash[e]:this.hash={},this.save()}static \u0275fac=function(r){return new(r||t)(_(we))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),uh=(()=>{class t{componentFactoryResolver;appRef;injector;core;providedIn={};constructor(e,r,i,o){this.componentFactoryResolver=e,this.appRef=r,this.injector=i,this.core=o}appendById(e,r={},i){let o=this.componentFactoryResolver.resolveComponentFactory(e).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(e,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(e).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(e,r={}){let i=this.componentFactoryResolver.resolveComponentFactory(e).create(this.injector);return this.projectComponentInputs(i,r),this.appRef.attachView(i.hostView),i}projectComponentInputs(e,r){if(r){let i=Object.getOwnPropertyNames(r);for(let o of i)e.instance[o]=r[o]}return e}static \u0275fac=function(r){return new(r||t)(_(Ut),_(nt),_(xe),_(we))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),x1=(()=>{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})(),f0=(()=>{class t{dom;core;config;alert;_container;constructor(e,r,i){if(this.dom=e,this.core=r,this.config=i,this.config||(this.config=Mi),this.alert=this.config.alert,!this.alert)this.alert=lh;else for(let o in lh)this.alert[o]||(this.alert[o]=lh[o]);this._container=this.dom.appendComponent(x1)}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(e){typeof e=="string"&&(e={text:e}),e||(e={}),e.type||(e.type="info");for(let o in this.alert)o=="class"?e[o]=e[o]+" "+this.alert[o]:typeof e[o]>"u"&&(e[o]=this.alert[o]);this.shortcuts[e.position]&&(e.position=this.shortcuts[e.position]),e.position||(e.position="bottomRight");var r;e.close=()=>{r&&r.componentRef.destroy(),e.component.nativeElement.remove(),typeof e.onClose=="function"&&e.onClose()};let i=!1;return typeof e.component=="string"&&this.alert.alerts[e.component]?(e.component=this.alert.alerts[e.component],i=!0):e.component=this.dom.appendById(D1,e,e.position),typeof e.component=="function"&&(r=this.dom.appendComponent(e.component,e,this._container.nativeElement.children[0].children[this.positionNumber[e.position]||0])),e.unique&&(this.uniques[e.unique]&&this.uniques[e.unique].remove(),this.uniques[e.unique]=e.component.nativeElement),typeof e.timeout!="number"&&(e.timeout=2e3),e.timeout&&setTimeout(()=>{e.close()},e.timeout),e.component.nativeElement}open(e){this.show(e)}info(e){e.type="info",this.show(e)}success(e){e.type="success",this.show(e)}warning(e){e.type="warning",this.show(e)}error(e){e.type="error",this.show(e)}question(e){e.type="question",this.show(e)}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)(_(uh),_(we),_($n,8))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var h0=(()=>{class t{dom;core;config;_modal;constructor(e,r,i){this.dom=e,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(e){if(this.locked)return;if((typeof e=="string"||typeof e=="function")&&(e={component:e}),(!e||typeof e!="object")&&(e={}),typeof e.component=="string"&&this._modal.modals[e.component]&&(e.component=this._modal.modals[e.component]),typeof e.component!="function"){console.log("This component does not exists.");return}e.class||(e.class="");for(let o in this.config.modal)o=="class"?e.class+=(e.class&&" "||"")+this.config.modal.class:e[o]||(e[o]=this._modal[o]);e.id=Math.floor(Math.random()*Date.now())+Date.now(),this.opened[e.id]=e,this.core.document.body.classList.add("modalOpened");let r,i;return e.close=()=>{i.componentRef.destroy(),r.nativeElement.remove(),typeof e.onClose=="function"&&e.onClose(),delete this.opened[e.id],Object.keys(this.opened).length||this.core.document.body.classList.remove("modalOpened")},typeof e.timeout=="number"&&e.timeout>0&&setTimeout(e.close,e.timeout),r=this.dom.appendComponent(E1,e),i=this.dom.appendComponent(e.component,e,r.nativeElement.children[0].children[0].children[0]),r.nativeElement}open(e){this.show(e)}small(e){(typeof e=="string"||typeof e=="function")&&(e={component:e}),e.size="small",this.show(e)}mid(e){(typeof e=="string"||typeof e=="function")&&(e={component:e}),e.size="mid",this.show(e)}big(e){(typeof e=="string"||typeof e=="function")&&(e={component:e}),e.size="big",this.show(e)}full(e){(typeof e=="string"||typeof e=="function")&&(e={component:e}),e.size="full",this.show(e)}opened={};locked=!1;destroy(){if(!this.locked){for(let e in this.opened)this.opened[e].close();this.core.document.body.classList.remove("modalOpened")}}static \u0275fac=function(r){return new(r||t)(_(uh),_(we),_($n,8))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),M1=(()=>{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,C1,3,4,"ng-container",1),r&2&&m("ngForOf",i.fs.files)},dependencies:[Be]})}return t})(),fB=(()=>{class t{dom;core;http;added={};files=[];constructor(e,r,i){this.dom=e,this.core=r,this.http=i,this.dom.appendComponent(M1,{fs:this})}add(e){if(typeof e=="string"&&(e={id:e}),!e.id){console.log("You have to pass ID into file object");return}if(e.type=e.type||"image",typeof e.resize=="number"&&(e.resize={width:e.resize,height:e.resize}),this.added[e.id]&&(this.files=this.files.filter(r=>r.id!==e.id)),this.files.push(e),this.added[e.id]=e,e.save)return()=>{e.complete?.()}}change(e,r){let i=e.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(e,r,i={},o=()=>{}){if(i.url=r,i.save)return()=>{this.http.post(i.api||`/api/${e}/file/delete`,i,o)};this.http.post(i.api||`/api/${e}/file/delete`,i,o)}uploadFiles(e,r,i=()=>{}){let o=new FormData;e.append?e.append(o,r):r.forEach((a,c)=>o.append(`file[${c}]`,a));let s=typeof e.body=="function"?e.body():e.body||{};Object.entries(s).forEach(([a,c])=>o.append(a,c)),e.save?e.complete=()=>{this.http.post(e.api||`/api/${e.part}/file${e.name?`/${e.name}`:""}`,o,a=>{e.resp?.(a),i(a)})}:this.http.post(e.api||`/api/${e.part}/file${e.name?`/${e.name}`:""}`,o,a=>{e.resp?.(a),i(a)})}image(e,r=()=>{}){if(e.save)return()=>{this.http.post(e.api||`/api/${e.part}/file${e.name?`/${e.name}`:""}`,e,r)};this.http.post(e.api||`/api/${e.part}/file${e.name?`/${e.name}`:""}`,e,r)}update(e,r,i){if(r.cb?.(e,i),r.multiple_cb&&(r.multiple_files.push({dataUrl:e,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=e,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(e,r){if(!e.type.startsWith("image/")){r.cb?.(!1,e),r.multiple_cb&&(r.multiple_files.push({dataUrl:"",file:e}),--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,e);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,e);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 f=s.toDataURL("image/jpeg",1);this.update(f,r,e)},a.src=o.target?.result},i.readAsDataURL(e)}static \u0275fac=function(r){return new(r||t)(_(uh),_(we),_(Si))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),hB=(()=>{class t{core;variables={};_forms={};var={};constructor(e){this.core=e;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(e){return typeof e!="string"?{}:(this._forms[e]||(this._forms[e]={}),this._forms[e])}valid(e,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](e):!1}level(e=""){if(!e)return 0;let r=0;return e.length>8&&r++,/[a-z]/.test(e)&&r++,/[A-Z]/.test(e)&&r++,/[1-9]/.test(e)&&r++,/[`!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?~]/.test(e)&&r++,r}save(){this.core.localStorage.setItem("css_variables",JSON.stringify(this.variables))}setProperty(e,r){this.core.document.documentElement.style.setProperty(e,r)}set(e,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 e){if(r.local)this.variables[i]=e[i];else if(this.variables[i])continue;this.setProperty(i,e[i])}r.local&&this.save()}}get(){return this.variables}remove(e){let r=Array.isArray(e)?e:e.split(" ");for(let i of r)delete this.variables[i];this.save()}arr(e=10,r="number"){let i=[];for(let o=0;o{class t{static forRoot(e=Mi){return{ngModule:t,providers:[{provide:$n,useValue:e}]}}static \u0275fac=function(r){return new(r||t)};static \u0275mod=ce({type:t});static \u0275inj=ae({providers:[{provide:$n,useValue:Mi},b1,u0,gv(mv())],imports:[Fe,qt]})}return t})();var S1=["*"],T1=(t,n,e,r,i,o,s,a,c)=>({_primary:t,_secondary:n,_success:e,_danger:r,_warning:i,_info:o,_light:s,_dark:a,_link:c}),Uc=(()=>{class t{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(e){this.disabled=e}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275cmp=fe({type:t,selectors:[["wbutton"]],inputs:{type:"type",class:"class",disabled:"disabled",disableSubmit:"disableSubmit",click:"click"},outputs:{wClick:"wClick"},ngContentSelectors:S1,decls:2,vars:16,consts:[[3,"click","ngClass","type","disabled"]],template:function(r,i){r&1&&(Fa(),y(0,"button",0),O("click",function(){return i.clicked()}),Ji(1),v()),r&2&&(My("w-btn",i.class?" "+i.class:"",""),m("ngClass",Ny(6,T1,[i.type==="primary",i.type==="secondary",i.type==="success",i.type==="danger",i.type==="warning",i.type==="info",i.type==="light",i.type==="dark",i.type==="link"]))("type",i.click||i.disableSubmit?"button":"submit")("disabled",i.disabled))},dependencies:[un]})}}return t})();var $c=(()=>{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275mod=ce({type:t})}static{this.\u0275inj=ae({imports:[Fe]})}}return t})();var g0=(()=>{class t{constructor(e){this.template=e}static{this.\u0275fac=function(r){return new(r||t)(I(dt))}}static{this.\u0275dir=re({type:t,selectors:[["ng-template","cell",""]],inputs:{cell:"cell"}})}}return t})(),m0=(()=>{class t{constructor(e){this.template=e}static{this.\u0275fac=function(r){return new(r||t)(I(dt))}}static{this.\u0275dir=re({type:t,selectors:[["ng-template","sort",""]],inputs:{cell:"cell"}})}}return t})(),y0=(()=>{class t{constructor(e){this.template=e}static{this.\u0275fac=function(r){return new(r||t)(I(dt))}}static{this.\u0275dir=re({type:t,selectors:[["ng-template","actions",""]]})}}return t})(),v0=(()=>{class t{constructor(e){this.template=e}static{this.\u0275fac=function(r){return new(r||t)(I(dt))}}static{this.\u0275dir=re({type:t,selectors:[["ng-template","customEdit",""]]})}}return t})();var _0=(()=>{class t{transform(e,r,i,o){if(!Array.isArray(e))return[];if(r.perPage===-1)return e;e=e.slice();for(let s=0;ss[i.title]a[i.title]?i.direction=="desc"?-1:1:0),e.slice((r.page-1)*r.perPage,r.page*r.perPage)}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275pipe=rr({name:"perPage",type:t,pure:!0})}}return t})();var O1=t=>({$implicit:t});function N1(t,n){if(t&1){let e=W();y(0,"div",17)(1,"input",18),O("keyup.enter",function(){N(e);let i=g();return i.search(),P(i.searchShow=!1)})("ngModelChange",function(){N(e);let i=g();return P(i.searching())}),eo("ngModelChange",function(i){N(e);let o=g();return La(o.searching_text,i)||(o.searching_text=i),P(i)}),v(),y(2,"span",19),O("click",function(){N(e);let i=g();return i.search(),P(i.searchShow=!1)}),A(3," search "),v()()}if(t&2){let e=g();he("table-search--active",e.searchShow),p(),Xi("ngModel",e.searching_text)}}function P1(t,n){if(t&1){let e=W();y(0,"div",20)(1,"span",21),O("click",function(){N(e);let i=g();return P(i.searchShow=!0)}),A(2," search "),v()()}}function R1(t,n){if(t&1&&(y(0,"i",24),A(1),v()),t&2){let e=g(2).$implicit;m("title",e.icon),p(),ue(" ",e.icon," ")}}function k1(t,n){if(t&1&&(y(0,"span"),A(1),v()),t&2){let e=g(2).$implicit;p(),Ee(e.text)}}function F1(t,n){if(t&1){let e=W();y(0,"wbutton",22),O("click",function(){N(e);let i=g().$implicit;return P(i.click())}),T(1,R1,2,2,"i",23)(2,k1,2,1,"span",9),v()}if(t&2){let e=g().$implicit;m("disableSubmit",!0),p(),m("ngIf",e.icon),p(),m("ngIf",e.text)}}function L1(t,n){if(t&1&&(ye(0),T(1,F1,3,3,"wbutton",10),ve()),t&2){let e=n.$implicit,r=g(2);p(),m("ngIf",r.config.create&&e)}}function V1(t,n){if(t&1&&(ye(0),T(1,L1,2,1,"ng-container",15),ve()),t&2){let e=g();p(),m("ngForOf",e.config.headerButtons)}}function j1(t,n){if(t&1){let e=W();y(0,"wbutton",22),O("click",function(){N(e);let i=g();return P(i.config.create())}),A(1," + "),y(2,"span"),A(3,"Add new"),v()()}t&2&&m("disableSubmit",!0)}function B1(t,n){t&1&&(y(0,"th"),A(1,"No."),v())}function U1(t,n){t&1&&(y(0,"span",28),A(1," keyboard_backspace "),v())}function $1(t,n){if(t&1){let e=W();y(0,"th",25)(1,"div",26),O("click",function(){let i=N(e).$implicit,o=g();return P(o.sort(i))}),y(2,"span"),A(3),v(),T(4,U1,2,0,"span",27),v()()}if(t&2){let e=n.$implicit,r=g();p(),he("_sortActiveDown",r.sort_type.direction==="desc"&&e.field===r.sort_type.title)("_sortActiveUp",r.sort_type.direction==="asc"&&e.field===r.sort_type.title),p(2),Ee(e.title),p(),m("ngIf",r.sortable[e.field])}}function H1(t,n){t&1&&mt(0)}function z1(t,n){if(t&1&&T(0,H1,1,0,"ng-container",30),t&2){let e=g(2);m("ngTemplateOutlet",e.action.template)}}function q1(t,n){t&1&&A(0,"Actions")}function G1(t,n){t&1&&mt(0)}function W1(t,n){if(t&1&&(y(0,"th"),T(1,z1,1,1,"ng-template",null,0,an)(3,q1,1,0,"ng-template",null,1,an)(5,G1,1,0,"ng-container",29),v()),t&2){let e=St(2),r=St(4),i=g();p(5),m("ngIf",i.action)("ngIfThen",e)("ngIfElse",r)}}function Z1(t,n){if(t&1&&(y(0,"td"),A(1),v()),t&2){let e=g().$implicit;p(),Ee(e.num)}}function Y1(t,n){if(t&1&&(y(0,"td"),A(1),v()),t&2){let e=g().$implicit,r=g().$implicit;ar("data-label",e.title+":\xA0"),p(),ue(" ",r[e.field]," ")}}function Q1(t,n){t&1&&mt(0)}function K1(t,n){if(t&1&&(y(0,"td"),T(1,Q1,1,0,"ng-container",32),v()),t&2){let e=g().$implicit,r=g().$implicit,i=g();ar("data-label",e.title+":\xA0"),p(),m("ngTemplateOutlet",i.custom_cell[e.field])("ngTemplateOutletContext",On(3,O1,r))}}function J1(t,n){t&1&&mt(0)}function X1(t,n){if(t&1&&(ye(0),T(1,Y1,2,2,"ng-template",null,2,an)(3,K1,2,5,"ng-template",null,3,an)(5,J1,1,0,"ng-container",29),ve()),t&2){let e=n.$implicit,r=St(2),i=St(4),o=g(2);p(5),m("ngIf",o.custom_cell[e.field])("ngIfThen",i)("ngIfElse",r)}}function eA(t,n){if(t&1){let e=W();y(0,"i",40),O("click",function(){N(e);let i=g(2).$implicit,o=g(3).$implicit;return P(i.click(o))}),A(1),v()}if(t&2){let e=g(2).$implicit;m("title",e.icon),p(),ue(" ",e.icon," ")}}function tA(t,n){if(t&1&&(y(0,"a",41)(1,"i",24),A(2),v()()),t&2){let e=g(2).$implicit;m("href",e.ahref,Sa)("target",e.target||"_blank"),p(),m("title",e.icon),p(),ue(" ",e.icon," ")}}function nA(t,n){if(t&1&&(y(0,"a",41)(1,"i",24),A(2),v()()),t&2){let e=g(2).$implicit,r=g(3).$implicit;m("href",e.ahrefFunc(r),Sa)("target",e.target||"_blank"),p(),m("title",e.icon),p(),ue(" ",e.icon," ")}}function rA(t,n){if(t&1&&(y(0,"a",42)(1,"i",24),A(2),v()()),t&2){let e=g(2).$implicit;m("routerLink",e.href),p(),m("title",e.icon),p(),ue(" ",e.icon," ")}}function iA(t,n){if(t&1&&(y(0,"a",42)(1,"i",24),A(2),v()()),t&2){let e=g(2).$implicit,r=g(3).$implicit;m("routerLink",e.hrefFunc(r)),p(),m("title",e.icon),p(),ue(" ",e.icon," ")}}function oA(t,n){if(t&1&&(ye(0),T(1,eA,2,2,"i",37)(2,tA,3,4,"a",38)(3,nA,3,4,"a",38)(4,rA,3,3,"a",39)(5,iA,3,3,"a",39),ve()),t&2){let e=g().$implicit;p(),m("ngIf",!e.ahref&&!e.ahrefFunc&&!e.href&&!e.hrefFunc),p(),m("ngIf",e.href),p(),m("ngIf",e.ahrefFunc),p(),m("ngIf",e.href),p(),m("ngIf",e.hrefFunc)}}function sA(t,n){if(t&1&&(ye(0),T(1,oA,6,5,"ng-container",9),ve()),t&2){let e=n.$implicit;p(),m("ngIf",e)}}function aA(t,n){if(t&1&&(ye(0),T(1,sA,2,1,"ng-container",15),ve()),t&2){let e=g(3);p(),m("ngForOf",e.config.buttons)}}function cA(t,n){if(t&1){let e=W();y(0,"i",43),O("click",function(){N(e);let i=g(2).$implicit,o=g();return P(o.config.update(i))}),A(1," edit "),v()}}function lA(t,n){if(t&1){let e=W();y(0,"i",44),O("click",function(){N(e);let i=g(2).$implicit,o=g();return P(o.config.delete(i))}),A(1," delete_outline "),v()}}function uA(t,n){if(t&1&&(y(0,"td",33)(1,"div",34),T(2,aA,2,1,"ng-container",9)(3,cA,2,0,"i",35)(4,lA,2,0,"i",36),v()()),t&2){let e=g(2);p(2),m("ngIf",e.config.buttons),p(),m("ngIf",e.config.update),p(),m("ngIf",e.config.delete)}}function dA(t,n){if(t&1&&(y(0,"tr"),T(1,Z1,2,1,"td",9)(2,X1,6,3,"ng-container",15)(3,uA,5,3,"td",31),v()),t&2){let e=g();p(),m("ngIf",e.config.num),p(),m("ngForOf",e.columns),p(),m("ngIf",e.config.delete||e.config.update||e.config.buttons)}}function fA(t,n){if(t&1){let e=W();y(0,"div",56)(1,"div",57),O("click",function(){let i=N(e).$implicit,o=g(3);return P(o.changePerPage(i))}),A(2),v()()}if(t&2){let e=n.$implicit,r=g(3);p(),he("selected",r.config.perPage===e),p(),ue(" ",e," ")}}function hA(t,n){if(t&1){let e=W();y(0,"div",56)(1,"div",57),O("click",function(){N(e);let i=g(3);return P(i.changePerPage(-1))}),A(2," All "),v()()}if(t&2){let e=g(3);p(),he("selected",e.config.perPage===-1)}}function pA(t,n){if(t&1&&(y(0,"div",58),A(1),v()),t&2){let e=g(3);p(),ue(" Page ",e.config.page," ")}}function gA(t,n){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 e,r=g(3);p(2),Dd("",(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),Ee((e=ti(7,3,r.rows,r.searching_text,r.config.searchBy||"title"))==null?null:e.length)}}function mA(t,n){if(t&1){let e=W();y(0,"div",48)(1,"div",49),A(2,"Showing items per page"),v(),y(3,"div",50),O("clickOutside",function(){N(e);let i=g(2);return P(i.select_page_size=!1)}),y(4,"div",51),O("click",function(){N(e);let i=g(2);return P(i.select_page_size=!i.select_page_size)}),A(5),v(),y(6,"div",52),T(7,fA,3,3,"div",53)(8,hA,3,2,"div",54),v()(),T(9,pA,2,1,"div",55)(10,gA,8,7,"div",55),v()}if(t&2){let e=g(2);p(3),he("open",e.select_page_size),p(2),ue(" ",e.config.perPage===-1?"All":e.config.perPage," "),p(2),m("ngForOf",e.config.pageSizeOptions),p(),m("ngIf",e.config.allDocs),p(),m("ngIf",e.config.perPage>=0&&!e.config.allDocs),p(),m("ngIf",e.config.perPage>=0&&e.config.allDocs)}}function yA(t,n){if(t&1){let e=W();y(0,"div",59)(1,"wbutton",60),O("click",function(){N(e);let i=g(2);return P(i.config.page=1)}),y(2,"span",61),A(3,"keyboard_double_arrow_left"),v()(),y(4,"wbutton",62),O("click",function(){N(e);let i=g(2);return P(i.previous())}),y(5,"span",61),A(6,"chevron_left"),v()(),y(7,"wbutton",63),O("click",function(){N(e);let i=g(2);return P(i.next())}),y(8,"span",61),A(9,"chevron_right"),v()(),y(10,"wbutton",64),O("click",function(){N(e);let i=g(2);return P(i.lastPage())}),y(11,"span",61),A(12,"keyboard_double_arrow_right"),v()()()}if(t&2){let e=g(2);p(),m("disabled",e.config.page===1),p(3),m("disabled",e.config.page===1),p(3),m("disabled",e.config.page*e.config.perPage>(e.rows==null?null:e.rows.length)),p(3),m("disabled",e.isLast())}}function vA(t,n){if(t&1){let e=W();y(0,"div",59)(1,"wbutton",62),O("click",function(){N(e);let i=g(2);return P(i.previous())}),y(2,"span",61),A(3,"chevron_left"),v()(),y(4,"wbutton",63),O("click",function(){N(e);let i=g(2);return P(i.next())}),y(5,"span",61),A(6,"chevron_right"),v()()()}if(t&2){let e=g(2);p(),m("disabled",e.config.page===1),p(3),m("disabled",e.rows.length!==e.config.perPage)}}function _A(t,n){if(t&1&&(y(0,"tfoot",45),T(1,mA,11,7,"div",46)(2,yA,13,4,"div",47)(3,vA,7,2,"div",47),v()),t&2){let e=g();p(),m("ngIf",e.config.perPage),p(),m("ngIf",e.config.perPage!==-1&&e.config.allDocs),p(),m("ngIf",!e.config.allDocs)}}var OB=(()=>{class t{constructor(e,r){this._router=e,this._store=r,this.tableId="table_"+this._router.url.split("/").filter(i=>i&&i.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 e=0;e{e&&this.changePerPage(Number(e))})}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 r=0;r{this.refresh()},1e3);setTimeout(()=>{clearInterval(e)},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(e){this.config.perPage=e,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",e.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(e){this.sort_type.title!=e.title&&(this.sort_type={}),this.sortable[e.field]&&(this.sort_type={title:e.field,direction:typeof this.sort_type.direction!="string"&&"asc"||this.sort_type.direction=="asc"&&"desc"||void 0})}static{this.\u0275fac=function(r){return new(r||t)(I(st),I(Gt))}}static{this.\u0275cmp=fe({type:t,selectors:[["wtable"]],contentQueries:function(r,i,o){if(r&1&&(lr(o,y0,5),lr(o,v0,5),lr(o,g0,4),lr(o,m0,4)),r&2){let s;et(s=tt())&&(i.action=s.first),et(s=tt())&&(i.editForm=s.first),et(s=tt())&&(i.cell=s),et(s=tt())&&(i.sortHeaders=s)}},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(r,i){r&1&&(y(0,"div",4)(1,"div",5)(2,"h3",6),A(3),v(),T(4,N1,4,3,"div",7)(5,P1,3,0,"div",8)(6,V1,2,1,"ng-container",9)(7,j1,4,1,"wbutton",10),v(),y(8,"table",11)(9,"thead",12)(10,"tr"),T(11,B1,2,0,"th",9)(12,$1,5,6,"th",13)(13,W1,6,3,"th",9),v()(),y(14,"tbody",14),T(15,dA,4,3,"tr",15),ur(16,"search"),ur(17,"perPage"),v(),T(18,_A,4,3,"tfoot",16),v()()),r&2&&(p(3),Ee(i.title),p(),m("ngIf",i.config.searchable),p(),m("ngIf",!i.searchShow),p(),m("ngIf",i.config.headerButtons),p(),m("ngIf",i.config.create),p(4),m("ngIf",i.config.num),p(),m("ngForOf",i.columns),p(),m("ngIf",i.config.delete||i.config.update),p(2),m("ngForOf",i.config.allDocs?Py(17,14,ti(16,10,i.rows,i.filter_filter,i.config.searchBy||"title"),i.config,i.sort_type,i.filter_filter+i.now):i.rows),p(3),m("ngIf",i.config.perPage||i.config.formCreate&&i.config.create))},dependencies:[Be,rt,ii,jn,Ci,vr,jc,Uc,yc,Bc,_0],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;--day-name: #988888;--b-radius-btn: 10px;--transition: all .3s;--events: #4c8e9d;--border: rgba(102, 91, 91, .432)}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;--c-calendar: #141414;--day-name: #dad5d5;--events: #1c2e32;--border: rgb(255 255 255 / 23%)}.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}']})}}return t})();var wA=["inputEl"],w0=["*","*"];function CA(t,n){if(t&1&&(y(0,"span",7),A(1),v()),t&2){let e=g(2);p(),Ee(e.label)}}function bA(t,n){if(t&1&&(y(0,"div",8),A(1),v()),t&2){let e=g(2);p(),ue(" ",e.label||e.placeholder," is invalid. ")}}function DA(t,n){if(t&1){let e=W();y(0,"label",3),T(1,CA,2,1,"span",4),y(2,"input",5,0),O("ngModelChange",function(i){N(e);let o=g();return o.value=i,P(o.onChange())})("keyup.enter",function(){N(e);let i=g();return P(i.onSubmit())})("blur",function(){N(e);let i=g();return P(i.wBlur.emit())}),v(),T(4,bA,2,1,"div",6),Ji(5),v()}if(t&2){let e=g();m("for",e.name),p(),m("ngIf",e.label),p(),he("error",e.error),m("placeholder",e.placeholder||"Enter text...")("type",e.type||"text")("disabled",e.disabled)("ngModel",e.value)("ngClass",e.wClass)("name",e.name),p(2),m("ngIf",e.error)}}function EA(t,n){if(t&1&&(y(0,"div",8),A(1),v()),t&2){let e=g(2);p(),ue(" ",e.label||e.placeholder," is invalid. ")}}function IA(t,n){if(t&1){let e=W();ye(0),y(1,"label",3)(2,"span",7),A(3),v(),y(4,"textarea",9,0),O("ngModelChange",function(i){N(e);let o=g();return o.value=i,P(o.onChange())})("keyup.enter",function(){N(e);let i=g();return P(i.onSubmit())})("blur",function(){N(e);let i=g();return P(i.wBlur.emit())}),v(),T(6,EA,2,1,"div",6),v(),ve()}if(t&2){let e=g();p(),m("for",e.name),p(2),Ee(e.label),p(),he("error",e.error),m("placeholder",e.placeholder)("disabled",e.disabled)("ngModel",e.value)("ngClass",e.wClass)("name",e.name),p(2),m("ngIf",e.error)}}function xA(t,n){if(t&1){let e=W();y(0,"label",11)(1,"span",12),A(2),v(),y(3,"input",13,0),O("ngModelChange",function(i){N(e);let o=g(2);return o.value=i,P(o.onChange())}),v(),ke(5,"span",14),Ji(6,1),v()}if(t&2){let e=n.$implicit,r=g(2);p(2),Ee(e),p(),he("error",r.error),m("disabled",r.disabled)("ngModel",r.value)("ngClass",r.wClass)("value",e)("name",r.name)}}function MA(t,n){if(t&1&&(ye(0),T(1,xA,7,8,"label",10),ve()),t&2){let e=g();p(),m("ngForOf",e.items)}}function SA(t,n){if(t&1&&(y(0,"span",19),A(1),v()),t&2){let e=g(2);p(),Ee(e.label)}}function TA(t,n){if(t&1){let e=W();ye(0),y(1,"label",15)(2,"input",16,0),O("ngModelChange",function(i){N(e);let o=g();return o.value=i,P(o.onChange())}),v(),ke(4,"span",17),T(5,SA,2,1,"span",18),v(),ve()}if(t&2){let e=g();p(2),he("error",e.error),m("disabled",e.disabled)("ngModel",e.value)("ngClass",e.wClass)("name",e.name),p(3),m("ngIf",e.label)}}var VB=(()=>{class t{constructor(e){this._core=e,this.value="",this.valid=r=>!!r,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(e){console.log(e),e.disabled&&(this.disabled=e.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(e){this.disabled=e}static{this.\u0275fac=function(r){return new(r||t)(I(we))}}static{this.\u0275cmp=fe({type:t,selectors:[["winput"]],viewQuery:function(r,i){if(r&1&&ei(wA,5),r&2){let o;et(o=tt())&&(i.inputEl=o.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:[Xe],ngContentSelectors:w0,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(r,i){r&1&&(Fa(w0),T(0,DA,6,11,"label",1)(1,IA,7,10,"ng-container",2)(2,MA,2,1,"ng-container",2)(3,TA,6,7,"ng-container",2)),r&2&&(m("ngIf",i.type!=="radio"&&i.type!=="checkbox"&&i.type!=="textarea"),p(),m("ngIf",i.type==="textarea"),p(),m("ngIf",i.type==="radio"),p(),m("ngIf",i.type==="checkbox"))},dependencies:[jn,qf,Wf,Ci,vr,un,Be,rt],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;--day-name: #988888;--b-radius-btn: 10px;--transition: all .3s;--events: #4c8e9d;--border: rgba(102, 91, 91, .432)}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;--c-calendar: #141414;--day-name: #dad5d5;--events: #1c2e32;--border: rgb(255 255 255 / 23%)}.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}']})}}return t})();var C0=(()=>{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275mod=ce({type:t})}static{this.\u0275inj=ae({imports:[qt,Fe]})}}return t})();function AA(t,n){if(t&1){let e=W();y(0,"wbutton",4),O("click",function(){let i=N(e).$implicit,o=g();return P(i.click(o.submition,o.close))}),A(1),v()}if(t&2){let e=n.$implicit;m("ngClass",e.class),p(),ue(" ",e.label," ")}}var Hc=(()=>{class t{set(e){this._core.copy(e,this.submition),this._core.copy(e.data,this.submition.data)}constructor(e){this._core=e}static{this.\u0275fac=function(r){return new(r||t)(I(we))}}static{this.\u0275cmp=fe({type:t,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(r,i){if(r&1){let o=W();y(0,"wform",1,0),O("wSubmit",function(){return N(o),i.set(i.submition),i.submit(i.submition),P(i.close())})("wChange",function(){return N(o),i.set(i.submition),P(i.change(i.submition))}),v(),y(2,"div",2),T(3,AA,2,2,"wbutton",3),v()}r&2&&(m("config",i.form)("submition",i.submition),p(3),m("ngForOf",i.buttons))},styles:[".btn-action[_ngcontent-%COMP%]{padding:30px 0 0}.btn-action[_ngcontent-%COMP%] .w-btn[_ngcontent-%COMP%]{width:100%;display:block}"]})}}return t})();var zc=(()=>{class t{constructor(e){this._mongo=e}get getDoc(){return this.doc}change(){this._mongo.unique(this.module,this.doc,{name:this.field},e=>{this.doc[this.field]!==e&&(this.doc[this.field]=e)})}static{this.\u0275fac=function(r){return new(r||t)(I(d0))}}static{this.\u0275cmp=fe({type:t,selectors:[["app-modal-unique"]],decls:1,vars:2,consts:[[3,"wChange","config","submition"]],template:function(r,i){r&1&&(y(0,"wform",0),O("wChange",function(){return i.change()}),v()),r&2&&m("config",i.form)("submition",i.getDoc)}})}}return t})();var b0=(()=>{class t extends Vc{constructor(e,r,i,o){super({name:"form"},e,r,i,o),this.customforms=[],this.get().subscribe(s=>this.customforms.push(...s)),o.on("customform_create").subscribe(s=>{this.customforms.push(s)}),o.on("customform_delete").subscribe(s=>{this.customforms.splice(this.customforms.findIndex(a=>a._id===s._id),1)})}static{this.\u0275fac=function(r){return new(r||t)(_(Si),_(Gt),_(f0),_(we))}}static{this.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var D0=[{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 Ai=(()=>{class t{constructor(e,r,i){this.store=e,this.http=r,this._core=i,this.allLanguages=D0,this.appId=mi.appId,this.words=[],this.pages=[],this.languages=mi.languages?mi.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",o=>{o&&(this.translates=o||{})}),this._core.on("languages").subscribe(o=>{this.languages=o}),this.store.getJson("words",o=>{o&&(this.words=o)}),this.store.getJson("language",o=>{o&&this.set_language(o)}),this.http.get("/api/translate/get"+(this.appId?"/"+this.appId:""),o=>{o&&(this.translates=o,this.store.setJson("translates",this.translates))}),this.http.get("/api/word/get"+(this.appId?"/"+this.appId:""),o=>{if(o){this.words=o,this.store.setJson("words",this.words);for(let s=0;s=0;r--)this.words[r]._id==e._id&&this.words.splice(r,1);this.http.post("/api/word/delete"+(this.appId?"/"+this.appId:""),{_id:e._id}),this.http.post("/api/translate/delete"+(this.appId?"/"+this.appId:""),{slug:e.slug})}set_language(e){e&&(this.http.post("/api/translate/set",{appId:this.appId,language:e.code}),this.language=e,this.reset(),this.store.setJson("language",e))}next_language(){for(let e=0;ei?.slug||"").filter(i=>!!i).indexOf(e)<0&&this.create_word(e),this._slug2name(e))):""}create_word(e){this._created[e]||(this._wordsLoaded?(this._created[e]=!0,this.http.post("/api/word/create",{appId:this.appId,slug:e,word:this._slug2name(e),page:e.split(".")[0],lang:this.language.code},r=>{r&&this.words.push(r)})):setTimeout(()=>{this.create_word(e)},500))}update_translate(e,r,i){this._core.afterWhile(this,()=>{if(this.http.post("/api/translate/create",{appId:this.appId,slug:e,translate:i,lang:r}),this.store.setJson("translates",this.translates),this.language.code===r&&Array.isArray(this.resets[e]))for(let o=0;o{let r="data:text/json;charset=utf-8,"+encodeURIComponent(JSON.stringify(this.translates)),i=document.createElement("a");i.href=r,i.download="translate.json",i.click(),i.remove()})}_slug2name(e){return e.substr(e.indexOf(".")+1)}static{this.\u0275fac=function(r){return new(r||t)(_(Gt),_(Si),_(we))}}static{this.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var E0=(()=>{class t{constructor(e,r,i,o,s,a,c){this.componentFactoryResolver=e,this._cfs=r,this._translate=i,this._modal=o,this._store=s,this.appRef=a,this.injector=c,this.appId=mi.appId,this._injectedComponent={},this.templateFields={},this.customTemplateFields={},this._templateComponent={},this.forms=[],this.formIds=[],this._store.getJson("formIds",l=>{Array.isArray(l)&&this.formIds.push(...l)})}getTemplateFields(e){return this.templateFields[e]||["Placeholder","Label"]}setTemplateFields(e,r,i={}){this.templateFields[e]=r,this.customTemplateFields[e]=b(b({},this.customTemplateFields[e]||{}),i)}getCustomTemplateFields(e){return this.customTemplateFields[e]||{}}injectComponent(e,r,i=["Placeholder","Label"],o={}){if(!this._injectedComponent[e]){this._injectedComponent[e]=!0,this.templateFields[e]=i,this.customTemplateFields[e]=o;let a=this.componentFactoryResolver.resolveComponentFactory(r).create(this.injector);this.appRef.attachView(a.hostView);let c=a.hostView.rootNodes[0];document.body.appendChild(c)}}addTemplateComponent(e,r){this._templateComponent[e]||(this._templateComponent[e]=r)}getTemplateComponent(e){return this._templateComponent[e]}getTemplateComponentsNames(){let e=[];for(let r in this._templateComponent)e.push(r);return e}translateForm(e){if(e.title){e.title=this._translate.translate(`Form_${e.formId}.${e.title}`,r=>{e.title=r});for(let r of e.components)for(let i of r.fields||[])this.translateFormComponent(e,i)}}translateFormComponent(e,r){let i=r.value;typeof i=="string"&&!r.skipTranslation&&(r.value=this._translate.translate(`Form_${e.formId}.${i}`,o=>{r.value=o}))}getDefaultForm(e,r=["name","description"]){return this.formIds.indexOf(e)===-1&&(this.formIds.push(e),this._store.setJson("formIds",this.formIds)),{id:e,components:r.map((o,s)=>({name:o.includes(".")?o.split(".")[1]:"Text",key:o,focused:!s,fields:[{name:"Placeholder",value:"Enter your "+o.split(".")[0]},{name:"Label",value:o.split(".")[0].capitalize()}]}))}}getForm(e,r){if(r&&this.forms.map(o=>o.formId).indexOf(r?.formId)===-1&&this.forms.push(r),this.formIds.indexOf(e)===-1&&(this.formIds.push(e),this._store.setJson("formIds",this.formIds)),r=r||this.forms.find(o=>o.formId===e),r=r||this.getDefaultForm(e),r)for(let o of r.components)o.root=!0;let i=this._cfs.customforms.filter(o=>o.active&&o.formId===e);r.formId=e;for(let o of i){r.title=r.title||o.name,r.class=r.class||o.class;for(let s of o.components)s.root=!1,r.components.push(s)}return this.translateForm(r),r}modal(e,r=[],i={},o=a=>{},s={}){return new Promise(a=>{this._modal.show(z(b({},s),{component:Hc,class:"forms_modal",form:e,buttons:Array.isArray(r)?r:[r],submition:i,onClose:function(){a(this.submition)},submit:c=>{a(c)},change:c=>{typeof o=="function"&&o(c)}}))})}modalUnique(e,r,i,o="",s=()=>{}){this._modal.show({component:zc,form:this.getDefaultForm("unique",[r+(o?"."+o:"")]),module:e,field:r,doc:i,class:"forms_modal",onClose:s})}static{this.\u0275fac=function(r){return new(r||t)(_(Ut),_(b0),_(Ai),_(h0),_(Gt),_(nt),_(xe))}}static{this.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var PA=(t,n,e,r,i,o,s,a)=>({field:t,config:n,component:e,key:r,submition:i,wSubmit:o,wChange:s,wClick:a}),RA=t=>({$implicit:t});function kA(t,n){if(t&1){let e=W();y(0,"form-component",4),O("wSubmit",function(){N(e);let i=g(3);return P(i.wSubmit.emit(i.submition))})("wChange",function(){N(e);let i=g(3);return P(i.wChange.emit())})("wClick",function(){N(e);let i=g(3);return P(i.wClick.emit())}),v()}if(t&2){let e=g(),r=e.$implicit,i=e.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 FA(t,n){if(t&1&&(ye(0),T(1,kA,1,6,"form-component",3),ve()),t&2){let e=g(2);p(),m("ngIf",!e.component.hidden)}}function LA(t,n){if(t&1&&(ye(0),y(1,"div",1),T(2,FA,2,1,"ng-container",2),v(),ve()),t&2){let e=g();p(),cr(e.component.class||""),p(),m("ngForOf",e.component.components)}}function VA(t,n){t&1&&mt(0)}function jA(t,n){if(t&1&&(ye(0),y(1,"div",5),T(2,VA,1,0,"ng-container",6),v(),ve()),t&2){let e=g();p(2),m("ngTemplateOutlet",e.template)("ngTemplateOutletContext",On(11,RA,Oy(2,PA,e.field,e.config,e.component,e.localKey,e.localSubmition,e.submit.bind(e),e.change.bind(e),e.click.bind(e))))}}var I0=(()=>{class t{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(e){this._form=e,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 r of this.component.fields)this.field[r.name]=r.value;this.localSubmition=this.submition;let e=(this.component.key||"")?.split(".");for(;e.length>1;){let r=e.shift();if(r.endsWith("[]")){r=r.replace("[]","");let i=this._getIndex();for(this.localSubmition[r]=this.localSubmition[r]||[];i+1>this.localSubmition[r].length;)this.localSubmition[r].push({});this.localSubmition=this.localSubmition[r][i]}else this.localSubmition=this.localSubmition[this.localKey]}this.localKey=e[0]}_getIndex(e=this.config.components){for(let r of e)if(r.components){if(this._getIndex(r.components)>=0){for(let o=0;o=0)return r.components.indexOf(this.component)}return-1}static{this.\u0275fac=function(r){return new(r||t)(I(E0))}}static{this.\u0275cmp=fe({type:t,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(r,i){r&1&&T(0,LA,3,3,"ng-container",0)(1,jA,3,13,"ng-container",0),r&2&&(m("ngIf",i.hasComponents),p(),m("ngIf",i.component.name&&i.template&&(!i.component.key||i.localKey&&i.localSubmition)))},dependencies:[Be,rt,ii,t],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)}"]})}}return t})();function UA(t,n){if(t&1&&(y(0,"h1",4),A(1),v()),t&2){let e=g();p(),Ee(e.config.title)}}function $A(t,n){if(t&1){let e=W();y(0,"form-component",6),O("wSubmit",function(){N(e);let i=g(2);return P(i.onSubmit())})("wChange",function(){N(e);let i=g(2);return P(i.onChange())})("wClick",function(){N(e);let i=g(2);return P(i.onClick())}),v()}if(t&2){let e=g(),r=e.$implicit,i=e.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 HA(t,n){if(t&1&&(ye(0),T(1,$A,1,6,"form-component",5),ve()),t&2){let e=n.$implicit;p(),m("ngIf",!e.hidden)}}var fh=(()=>{class t{constructor(e){this._core=e,this.submition={},this.wChange=new H,this.wSubmit=new H}ngAfterViewInit(){this.submition.data=this.submition.data||{}}component(e,r=this.config.components){for(let i of r){if(i.key===e)return i;if(i.components?.length){let o=this.component(e,i.components);if(o)return o}}return!1}onSubmit(){this._core.afterWhile(this,()=>{for(let e of this.config.components)if(e.key&&e.required&&(e.valid&&!e.valid()||!e.valid&&!this.submition[e.key])){typeof e.focus=="function"&&e.focus();return}this.wSubmit.emit(this.submition)})}onChange(){this._core.afterWhile(this,()=>{this.wChange.emit(this.submition)})}onClick(){}static{this.\u0275fac=function(r){return new(r||t)(I(we))}}static{this.\u0275cmp=fe({type:t,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(r,i){r&1&&(y(0,"div",0),T(1,UA,2,1,"h1",1),y(2,"form",2),O("ngSubmit",function(){return i.onSubmit()}),T(3,HA,2,1,"ng-container",3),v()()),r&2&&(p(),m("ngIf",i.config.title),p(2),m("ngForOf",i.config.components))},dependencies:[Be,rt,I0]})}}return t})();var x0=(()=>{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275mod=ce({type:t})}static{this.\u0275inj=ae({imports:[Fe,$c]})}}return t})();Ed(Hc,[un,Be,Uc,fh],[]);Ed(zc,[fh],[]);var L3=(()=>{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275mod=ce({type:t})}static{this.\u0275inj=ae({imports:[Fe,qt,Ti,x0,$c,y_,C0]})}}return t})();var j3=(()=>{class t{constructor(e,r){this.elementRef=e,this.tr=r}ngOnInit(){this.elementRef.nativeElement.innerHTML=this.tr.translate(this.elementRef.nativeElement.innerHTML,e=>{this.elementRef.nativeElement.innerHTML=e})}static{this.\u0275fac=function(r){return new(r||t)(I(De),I(Ai))}}static{this.\u0275dir=re({type:t,selectors:[["","translate",""]]})}}return t})();var U3=(()=>{class t{constructor(e){this._tr=e}transform(e,r){return this._tr.translate(e)}static{this.\u0275fac=function(r){return new(r||t)(I(Ai,16))}}static{this.\u0275pipe=rr({name:"translate",type:t,pure:!0})}}return t})();var Q3=(()=>{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275mod=ce({type:t})}static{this.\u0275inj=ae({imports:[Fe,qt,Ti]})}}return t})();var zA=["e_search"],qA=t=>({item:t});function GA(t,n){if(t&1&&(y(0,"div",21),A(1),v()),t&2){let e=g();p(),Ee(e.label)}}function WA(t,n){if(t&1&&(y(0,"div"),A(1),v()),t&2){let e=g(3);p(),Ee(e.placeholder)}}function ZA(t,n){t&1&&(y(0,"span"),A(1,", "),v())}function YA(t,n){if(t&1){let e=W();y(0,"span"),A(1),y(2,"i",27),O("click",function(){N(e);let i=g().index,o=g(3);return o._values.splice(i,1),P(o.modelChange.emit(o._values))}),A(3,"close"),v()()}if(t&2){let e=g().$implicit,r=g(3);p(),ue("",r._items[e][r.name]," ")}}function QA(t,n){if(t&1&&(y(0,"span"),T(1,ZA,2,0,"span",25)(2,YA,4,1,"span",25),v()),t&2){let e=n.$implicit,r=n.index,i=g(3);p(),m("ngIf",r),p(),m("ngIf",i._items[e])}}function KA(t,n){if(t&1&&(y(0,"div",24),T(1,WA,2,1,"div",25)(2,QA,3,2,"span",26),v()),t&2){let e=g(2);p(),m("ngIf",!e._values.length),p(),m("ngForOf",e._values)}}function JA(t,n){if(t&1&&(y(0,"div",24),A(1),v()),t&2){let e=g(2);p(),ue(" ",e._selected||e.placeholder," ")}}function XA(t,n){if(t&1&&(y(0,"div",22),T(1,KA,3,2,"div",23)(2,JA,2,1,"div",23),v()),t&2){let e=g();p(),m("ngIf",e.multiple),p(),m("ngIf",!e.multiple)}}function eO(t,n){if(t&1){let e=W();y(0,"div",17),O("click",function(){N(e);let i=g();return P(i.clear())}),y(1,"span",28),A(2,"close"),v()()}}function tO(t,n){if(t&1){let e=W();y(0,"div",33)(1,"input",34,3),eo("ngModelChange",function(i){N(e);let o=g(3);return La(o.search,i)||(o.search=i),P(i)}),v(),Ca(),y(3,"svg",35),ke(4,"path",36),v()()}if(t&2){let e=g(3);p(),Xi("ngModel",e.search)}}function nO(t,n){if(t&1&&(y(0,"div"),mt(1,15),T(2,tO,5,1,"ng-template",null,2,an),v()),t&2){let e=St(3),r=g(2);p(),m("ngTemplateOutlet",r.t_search?r.t_search:e)}}function rO(t,n){if(t&1&&mt(0,37),t&2){let e=n.$implicit;g();let r=St(8),i=g();m("ngTemplateOutlet",i.t_item?i.t_item:r)("ngTemplateOutletContext",On(2,qA,e))}}function iO(t,n){t&1&&(y(0,"div",38),A(1," Nothing was found "),v())}function oO(t,n){if(t&1){let e=W();y(0,"div",39),O("click",function(){let i=N(e).item,o=g(2);return P(o.item_onclick(i))}),y(1,"div",40),A(2),v()()}if(t&2){let e=n.item,r=g(2);he("disabled",r._values.indexOf(e.value)!==-1),p(),he("selected",r._values.indexOf(e[r.value])!==-1),p(),ue(" ",e[r.name]," ")}}function sO(t,n){if(t&1&&(y(0,"div",29),T(1,nO,4,1,"div",25),y(2,"div",30),T(3,rO,1,4,"ng-container",31),ur(4,"search"),T(5,iO,2,0,"div",32),ur(6,"search"),v(),T(7,oO,3,5,"ng-template",null,1,an),v()),t&2){let e,r=g();he("_search",r.searchable),p(),m("ngIf",r.searchable),p(2),m("ngForOf",ti(4,5,r.items,r.search,r.searchableBy)),p(2),m("ngIf",!((e=ti(6,9,r.items,r.search,r.searchableBy))!=null&&e.length))}}var rU=(()=>{class t{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 e=0;e{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275mod=ce({type:t})}static{this.\u0275inj=ae({imports:[qt,Fe,Ti]})}}return t})();export{b as a,z as b,A0 as c,vt as d,fl as e,uw as f,ct as g,yl as h,S as i,D as j,ae as k,_ as l,fe as m,ce as n,Xe as o,N as p,P as q,Ca as r,H as s,te as t,pt as u,mL as v,Sa as w,yL as x,p as y,I as z,Gr as A,T as B,ar as C,m as D,_y as E,he as F,y as G,v as H,ke as I,ye as J,ve as K,W as L,O as M,g as N,Fa as O,Ji as P,lr as Q,ei as R,et as S,tt as T,St as U,A as V,Ee as W,ue as X,Xi as Y,La as Z,eo as _,CL as $,ur as aa,bL as ba,an as ca,DL as da,Nn as ea,Me as fa,ln as ga,Xy as ha,un as ia,Be as ja,rt as ka,ev as la,Fe as ma,vx as na,yv as oa,y2 as pa,v2 as qa,_2 as ra,Iv as sa,$M as ta,st as ua,yc as va,L2 as wa,V2 as xa,y_ as ya,mi as za,qf as Aa,Ci as Ba,vr as Ca,qt as Da,we as Ea,b1 as Fa,jc as Ga,Vc as Ha,Gt as Ia,Si as Ja,dB as Ka,f0 as La,h0 as Ma,fB as Na,hB as Oa,Ti as Pa,Ai as Qa,j3 as Ra,Uc as Sa,$c as Ta,VB as Ua,C0 as Va,g0 as Wa,OB as Xa,b0 as Ya,E0 as Za,fh as _a,x0 as $a,L3 as ab,U3 as bb,Q3 as cb,rU as db,uU as eb}; diff --git a/chunk-QPR5CHFB.js b/chunk-QPR5CHFB.js new file mode 100644 index 0000000..b176248 --- /dev/null +++ b/chunk-QPR5CHFB.js @@ -0,0 +1 @@ +import{Ea as d,Ha as u,Ia as l,Ja as m,La as p,j as n,l as s,ua as c,za as o}from"./chunk-PQ76DGOU.js";var I=(()=>{class i extends u{constructor(e,t,r,a,f){super({name:"user"},e,t,r,a),this._router=f,this.roles=(o.roles||[]).concat(["admin"]),this.employees=o.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=t,this.http=e,this.alert=r,this.core=a,this.http.header("token")&&(this.fetch({},{name:"me"}).subscribe(this.setUser.bind(this)),this.get()),this.store.get("mode",h=>{h&&this.setMode(h)})}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,t){this._changingPassword||(this._changingPassword=!0,this.http.post("/api/user/changePassword",{newPass:t,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"})}static{this.\u0275fac=function(t){return new(t||i)(s(m),s(l),s(p),s(d),s(c))}}static{this.\u0275prov=n({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();export{I as a}; diff --git a/chunk-RTQKOSQJ.js b/chunk-RTQKOSQJ.js new file mode 100644 index 0000000..4820a2a --- /dev/null +++ b/chunk-RTQKOSQJ.js @@ -0,0 +1 @@ +import{a as M}from"./chunk-QPR5CHFB.js";import{a as S,c as E,d as F,e as I}from"./chunk-SPCT3XEP.js";import{$ as P,B as b,D as d,Ea as C,G as i,H as n,L as w,M as s,N as f,Ra as O,Sa as k,V as l,Za as T,_a as j,k as m,ka as x,m as u,n as g,p as h,q as _,y as p,ya as y,z as c,za as v}from"./chunk-PQ76DGOU.js";var D=()=>({"border-radius":"var(--c-img-round)",width:"52px",height:"52px"});function V(t,B){if(t&1){let e=w();i(0,"wform",13),s("wChange",function(){h(e);let r=f();return _(r.update())}),n()}if(t&2){let e=f();d("config",e.formProfile)("submition",e.user)}}var L=(()=>{class t{constructor(e,o,r){this._form=e,this._core=o,this.us=r,this.url=v.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 a={};this._core.copy(this.us.user,a),this.user=a})}update(){this._core.copy(this.user,this.us.user),this.us.updateMe()}changePassword(){this._form.modal(this.formPassword,{label:"Change",click:(e,o)=>{this.us.changePassword(e.oldPass,e.newPass),o()}}).then(e=>{this.us.changePassword(e.oldPass,e.newPass)})}updateThumb(e){this.us.user.thumb=Array.isArray(e)?e[0]:e,this.us.updateMe()}static{this.\u0275fac=function(o){return new(o||t)(c(T),c(C),c(M))}}static{this.\u0275cmp=u({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(o,r){o&1&&(i(0,"div",0)(1,"wcard")(2,"div",1)(3,"div")(4,"div",2)(5,"ngx-file",3),s("update",function(N){return r.updateThumb(N)}),n()()()(),i(6,"div",4),b(7,V,1,2,"wform",5),i(8,"div",6)(9,"div",7)(10,"wbutton",8),s("click",function(){return r.us.logout()}),i(11,"span",9),l(12,"logout"),n(),i(13,"span",10),l(14,"Profile.Logout"),n()()(),i(15,"div",11)(16,"wbutton",12),s("click",function(){return r.changePassword()}),l(17," Profile.Change Password "),n()()()()()()),o&2&&(p(5),d("value",r.us.user.thumb?r.url+r.us.user.thumb:"assets/default.png")("name",r.us.user._id+".jpg")("isPhoto",!0)("imgStyle",P(7,D))("height",512)("width",512),p(2),d("ngIf",r.user))},dependencies:[O,x,k,S,j,E],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;--day-name: #988888;--b-radius-btn: 10px;--transition: all .3s;--events: #4c8e9d;--border: rgba(102, 91, 91, .432)}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;--c-calendar: #141414;--day-name: #dad5d5;--events: #1c2e32;--border: rgb(255 255 255 / 23%)}[_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}"]})}}return t})();var A=[{path:"",component:L}],re=(()=>{class t{static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275mod=g({type:t})}static{this.\u0275inj=m({imports:[y.forChild(A),I,F]})}}return t})();export{re as ProfileModule}; diff --git a/chunk-SPCT3XEP.js b/chunk-SPCT3XEP.js new file mode 100644 index 0000000..48609c1 --- /dev/null +++ b/chunk-SPCT3XEP.js @@ -0,0 +1,2 @@ +import{$a as Je,B as u,C as Ae,D as h,Da as ce,E as te,F as fe,G as c,H as l,I as S,J as ue,Ja as qe,K as _e,L as v,M as g,Ma as Ge,N as f,Na as Ke,O as De,Oa as Ze,P as Ce,Pa as le,Q as Se,R as A,S as b,Sa as oe,T as M,Ta as re,U as je,Ua as z,V as P,Va as we,W as ie,X as xe,Za as R,a as W,ab as et,b as Ve,ca as I,cb as tt,d as D,da as Ue,db as it,e as ae,ea as Ne,eb as pe,f as Me,g as Fe,h as Qe,ia as k,j as ee,ja as ne,k as F,ka as G,l as ge,la as $e,m as w,ma as j,n as Q,o as Be,p,q as m,r as He,ra as Ye,s as Y,sa as Xe,t as Le,w as se,x as We,y,z as _}from"./chunk-PQ76DGOU.js";var kt=["wrapper"],Pt=["sourceImage"];function zt(o,s){if(o&1){let e=v();c(0,"img",5,1),g("load",function(){p(e);let i=f();return m(i.imageLoadedInView())})("mousedown",function(i){p(e);let n=f();return m(n.startMove(i,n.moveTypes.Drag))})("touchstart",function(i){p(e);let n=f();return m(n.startMove(i,n.moveTypes.Drag))})("error",function(i){p(e);let n=f();return m(n.loadImageError(i))}),l()}if(o&2){let e=f();te("visibility",e.imageVisible?"visible":"hidden")("transform",e.safeTransformStyle),fe("ngx-ic-draggable",!e.disabled&&e.allowMoveImage),h("src",e.safeImgDataUrl,se),Ae("alt",e.imageAltText)}}function Et(o,s){if(o&1){let e=v();ue(0),c(1,"span",9),g("mousedown",function(i){p(e);let n=f(2);return m(n.startMove(i,n.moveTypes.Resize,"topleft"))})("touchstart",function(i){p(e);let n=f(2);return m(n.startMove(i,n.moveTypes.Resize,"topleft"))}),S(2,"span",10),l(),c(3,"span",11),S(4,"span",10),l(),c(5,"span",12),g("mousedown",function(i){p(e);let n=f(2);return m(n.startMove(i,n.moveTypes.Resize,"topright"))})("touchstart",function(i){p(e);let n=f(2);return m(n.startMove(i,n.moveTypes.Resize,"topright"))}),S(6,"span",10),l(),c(7,"span",13),S(8,"span",10),l(),c(9,"span",14),g("mousedown",function(i){p(e);let n=f(2);return m(n.startMove(i,n.moveTypes.Resize,"bottomright"))})("touchstart",function(i){p(e);let n=f(2);return m(n.startMove(i,n.moveTypes.Resize,"bottomright"))}),S(10,"span",10),l(),c(11,"span",15),S(12,"span",10),l(),c(13,"span",16),g("mousedown",function(i){p(e);let n=f(2);return m(n.startMove(i,n.moveTypes.Resize,"bottomleft"))})("touchstart",function(i){p(e);let n=f(2);return m(n.startMove(i,n.moveTypes.Resize,"bottomleft"))}),S(14,"span",10),l(),c(15,"span",17),S(16,"span",10),l(),c(17,"span",18),g("mousedown",function(i){p(e);let n=f(2);return m(n.startMove(i,n.moveTypes.Resize,"top"))})("touchstart",function(i){p(e);let n=f(2);return m(n.startMove(i,n.moveTypes.Resize,"top"))}),l(),c(18,"span",19),g("mousedown",function(i){p(e);let n=f(2);return m(n.startMove(i,n.moveTypes.Resize,"right"))})("touchstart",function(i){p(e);let n=f(2);return m(n.startMove(i,n.moveTypes.Resize,"right"))}),l(),c(19,"span",20),g("mousedown",function(i){p(e);let n=f(2);return m(n.startMove(i,n.moveTypes.Resize,"bottom"))})("touchstart",function(i){p(e);let n=f(2);return m(n.startMove(i,n.moveTypes.Resize,"bottom"))}),l(),c(20,"span",21),g("mousedown",function(i){p(e);let n=f(2);return m(n.startMove(i,n.moveTypes.Resize,"left"))})("touchstart",function(i){p(e);let n=f(2);return m(n.startMove(i,n.moveTypes.Resize,"left"))}),l(),_e()}}function Vt(o,s){if(o&1){let e=v();c(0,"div",6),g("keydown",function(i){p(e);let n=f();return m(n.keyboardAccess(i))}),c(1,"div",7),g("mousedown",function(i){p(e);let n=f();return m(n.startMove(i,n.moveTypes.Move))})("touchstart",function(i){p(e);let n=f();return m(n.startMove(i,n.moveTypes.Move))}),l(),u(2,Et,21,0,"ng-container",8),l()}if(o&2){let e=f();te("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"),fe("ngx-ic-round",e.roundCropper),Ae("aria-label",e.cropperFrameAriaLabel),y(2),h("ngIf",!e.hideResizeSquares)}}var Re=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(s){Object.keys(s).filter(e=>e in this).forEach(e=>this[e]=s[e]),this.validateOptions()}setOptionsFromChanges(s){Object.keys(s).filter(e=>e in this).forEach(e=>this[e]=s[e].currentValue),this.validateOptions()}validateOptions(){if(this.maintainAspectRatio&&!this.aspectRatio)throw new Error("`aspectRatio` should > 0 when `maintainAspectRatio` is enabled")}},B=function(o){return o.Drag="drag",o.Move="move",o.Resize="resize",o.Pinch="pinch",o}(B||{});function Ft(o){switch(o){case"ArrowUp":return"top";case"ArrowRight":return"right";case"ArrowDown":return"bottom";case"ArrowLeft":default:return"left"}}function Qt(o){switch(o){case"ArrowUp":return"bottom";case"ArrowRight":return"left";case"ArrowDown":return"top";case"ArrowLeft":default:return"right"}}function Bt(o,s){switch(o){case"ArrowUp":return{clientX:0,clientY:s*-1};case"ArrowRight":return{clientX:s,clientY:0};case"ArrowDown":return{clientX:0,clientY:s};case"ArrowLeft":default:return{clientX:s*-1,clientY:0}}}function Ht(o,s,e){let t=o.width,i=o.height;s=Math.round(s),e=Math.round(e);let n=t/s,r=i/e,a=Math.ceil(n/2),d=Math.ceil(r/2),x=o.getContext("2d");if(x){let C=x.getImageData(0,0,t,i),O=x.createImageData(s,e),E=C.data,$=O.data;for(let X=0;X=1)continue;V=2*Z*Z*Z-3*Z*Z+1;let J=4*(de+he*t);Pe+=V*E[J+3],Ie+=V,E[J+3]<255&&(V=V*E[J+3]/250),Oe+=V*E[J],Te+=V*E[J+1],ke+=V*E[J+2],me+=V}}$[N]=Oe/me,$[N+1]=Te/me,$[N+2]=ke/me,$[N+3]=Pe/Ie}o.width=s,o.height=e,x.putImageData(O,0,0)}}function nt(o,s){return o/100*s}var Lt=(()=>{class o{crop(e,t,i,n,r){let a=this.getImagePosition(e,t,i,r),d=a.x2-a.x1,x=a.y2-a.y1,C=document.createElement("canvas");C.width=d,C.height=x;let O=C.getContext("2d");if(!O)return null;i.backgroundColor!=null&&(O.fillStyle=i.backgroundColor,O.fillRect(0,0,d,x));let E=(i.transform.scale||1)*(i.transform.flipH?-1:1),$=(i.transform.scale||1)*(i.transform.flipV?-1:1),{translateH:X,translateV:q}=this.getCanvasTranslate(e,i,r),N=e.transformed;O.setTransform(E,0,0,$,N.size.width/2+X,N.size.height/2+q),O.translate(-a.x1/E,-a.y1/$),O.rotate((i.transform.rotate||0)*Math.PI/180),O.drawImage(N.image,-N.size.width/2,-N.size.height/2);let L={width:d,height:x,imagePosition:a,cropperPosition:W({},t)};i.containWithinAspectRatio&&(L.offsetImagePosition=this.getOffsetImagePosition(e,t,i,r));let V=this.getResizeRatio(d,x,i);return V!==1&&(L.width=Math.round(d*V),L.height=i.maintainAspectRatio?Math.round(L.width/i.aspectRatio):Math.round(x*V),Ht(C,L.width,L.height)),n==="blob"?this.cropToBlob(L,C,i):(L.base64=C.toDataURL("image/"+i.format,this.getQuality(i)),L)}cropToBlob(e,t,i){return D(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?nt(t.transform.translateH,e.transformed.size.width):0,translateV:t.transform.translateV?nt(t.transform.translateV,e.transformed.size.height):0}}getRatio(e,t){return e.transformed.size.width/t.width}getImagePosition(e,t,i,n){let r=this.getRatio(e,n),a={x1:Math.round(t.x1*r),y1:Math.round(t.y1*r),x2:Math.round(t.x2*r),y2:Math.round(t.y2*r)};return i.containWithinAspectRatio||(a.x1=Math.max(a.x1,0),a.y1=Math.max(a.y1,0),a.x2=Math.min(a.x2,e.transformed.size.width),a.y2=Math.min(a.y2,e.transformed.size.height)),a}getOffsetImagePosition(e,t,i,n){let r=i.canvasRotation+e.exifTransform.rotate,a=this.getRatio(e,n),d,x;r%2?(d=(e.transformed.size.width-e.original.size.height)/2,x=(e.transformed.size.height-e.original.size.width)/2):(d=(e.transformed.size.width-e.original.size.width)/2,x=(e.transformed.size.height-e.original.size.height)/2);let C={x1:Math.round(t.x1*a)-d,y1:Math.round(t.y1*a)-x,x2:Math.round(t.x2*a)-d,y2:Math.round(t.y2*a)-x};return i.containWithinAspectRatio||(C.x1=Math.max(C.x1,0),C.y1=Math.max(C.y1,0),C.x2=Math.min(C.x2,e.transformed.size.width),C.y2=Math.min(C.y2,e.transformed.size.height)),C}getResizeRatio(e,t,i){let n=i.resizeToWidth/e,r=i.resizeToHeight/t,a=new Array;i.resizeToWidth>0&&a.push(n),i.resizeToHeight>0&&a.push(r);let d=a.length===0?1:Math.min(...a);return d>1&&!i.onlyScaleDown?d:Math.min(d,1)}getQuality(e){return Math.min(1,Math.max(0,e.imageQuality/100))}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=ee({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Wt=(()=>{class o{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 r=Math.min(i.cropperScaledMaxWidth,n.width),a=Math.min(i.cropperScaledMaxHeight,n.height);if(!i.maintainAspectRatio)t.x1=0,t.x2=r,t.y1=0,t.y2=a;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}r.maintainAspectRatio&&this.checkAspectRatio(t.position,i,n,r)}checkAspectRatio(e,t,i,n){let r=0,a=0;switch(e){case"top":t.x2=t.x1+(t.y2-t.y1)*n.aspectRatio,r=Math.max(t.x2-i.width,0),a=Math.max(0-t.y1,0),(r>0||a>0)&&(t.x2-=a*n.aspectRatio>r?a*n.aspectRatio:r,t.y1+=a*n.aspectRatio>r?a:r/n.aspectRatio);break;case"bottom":t.x2=t.x1+(t.y2-t.y1)*n.aspectRatio,r=Math.max(t.x2-i.width,0),a=Math.max(t.y2-i.height,0),(r>0||a>0)&&(t.x2-=a*n.aspectRatio>r?a*n.aspectRatio:r,t.y2-=a*n.aspectRatio>r?a:r/n.aspectRatio);break;case"topleft":t.y1=t.y2-(t.x2-t.x1)/n.aspectRatio,r=Math.max(0-t.x1,0),a=Math.max(0-t.y1,0),(r>0||a>0)&&(t.x1+=a*n.aspectRatio>r?a*n.aspectRatio:r,t.y1+=a*n.aspectRatio>r?a:r/n.aspectRatio);break;case"topright":t.y1=t.y2-(t.x2-t.x1)/n.aspectRatio,r=Math.max(t.x2-i.width,0),a=Math.max(0-t.y1,0),(r>0||a>0)&&(t.x2-=a*n.aspectRatio>r?a*n.aspectRatio:r,t.y1+=a*n.aspectRatio>r?a:r/n.aspectRatio);break;case"right":case"bottomright":t.y2=t.y1+(t.x2-t.x1)/n.aspectRatio,r=Math.max(t.x2-i.width,0),a=Math.max(t.y2-i.height,0),(r>0||a>0)&&(t.x2-=a*n.aspectRatio>r?a*n.aspectRatio:r,t.y2-=a*n.aspectRatio>r?a:r/n.aspectRatio);break;case"left":case"bottomleft":t.y2=t.y1+(t.x2-t.x1)/n.aspectRatio,r=Math.max(0-t.x1,0),a=Math.max(t.y2-i.height,0),(r>0||a>0)&&(t.x1+=a*n.aspectRatio>r?a*n.aspectRatio:r,t.y2-=a*n.aspectRatio>r?a:r/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 d=Math.max(0-t.x1,0),x=Math.max(t.x2-i.width,0),C=Math.max(t.y2-i.height,0),O=Math.max(0-t.y1,0);(d>0||x>0||C>0||O>0)&&(t.x1+=C*n.aspectRatio>d?C*n.aspectRatio:d,t.x2-=O*n.aspectRatio>x?O*n.aspectRatio:x,t.y1+=O*n.aspectRatio>x?O:x/n.aspectRatio,t.y2-=C*n.aspectRatio>d?C:d/n.aspectRatio);break}}getClientX(e){return e.touches?.[0].clientX||e.clientX||0}getClientY(e){return e.touches?.[0].clientY||e.clientY||0}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=ee({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Dt="data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAEAAgMBEQACEQEDEQH/xABKAAEAAAAAAAAAAAAAAAAAAAALEAEAAAAAAAAAAAAAAAAAAAAAAQEAAAAAAAAAAAAAAAAAAAAAEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwA/8H//2Q==";function jt(){return new Promise(o=>{let s=new Image;s.onload=()=>{let e=s.width===1&&s.height===2;o(e)},s.src=Dt})}function Ut(o){switch(typeof o=="object"&&(o=Nt(o)),o){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 Nt(o){let s=new DataView(o);if(s.getUint16(0,!1)!==65496)return-2;let e=s.byteLength,t=2;for(;t{class o{constructor(){this.autoRotateSupported=jt()}loadImageFile(e,t){return D(this,null,function*(){let i=yield e.arrayBuffer();return yield this.checkImageTypeAndLoadImageFromArrayBuffer(i,e.type,t)})}checkImageTypeAndLoadImageFromArrayBuffer(e,t,i){return this.isValidImageType(t)?this.loadImageFromArrayBuffer(e,i,t):Promise.reject(new Error("Invalid image type"))}isValidImageType(e){return/image\/(png|jpg|jpeg|bmp|gif|tiff|svg|webp|x-icon|vnd.microsoft.icon)/.test(e)}loadImageFromURL(e,t){return D(this,null,function*(){let n=yield(yield fetch(e)).blob(),r=yield n.arrayBuffer();return yield this.loadImageFromArrayBuffer(r,t,n.type)})}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 r=0;rD(this,null,function*(){try{let d=new Blob([e],i?{type:i}:void 0),x=URL.createObjectURL(d),C=new Image,E=i==="image/svg+xml"?yield this.getSvgImageSize(d):void 0;C.onload=()=>r({originalImage:C,originalImageSize:E,originalObjectUrl:x,originalArrayBuffer:e}),C.onerror=a,C.src=x}catch(d){a(d)}}));return yield this.transformImageFromArrayBuffer(n,t,n.originalImageSize!=null)})}getSvgImageSize(e){return D(this,null,function*(){let n=new DOMParser().parseFromString(yield e.text(),"image/svg+xml").querySelector("svg");if(!n)throw Error("Failed to parse SVG image");let r=n.getAttribute("width"),a=n.getAttribute("height");if(r&&a)return null;let d=n.getAttribute("viewBox")||n.getAttribute("viewbox");if(d){let x=d.split(" ");return{width:+x[2],height:+x[3]}}throw Error("Failed to load SVG image. SVG must have width + height or viewBox definition.")})}transformImageFromArrayBuffer(e,t,i=!1){return D(this,null,function*(){let n=yield this.autoRotateSupported,r=Ut(n?-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:e.originalImageSize??{width:e.originalImage.naturalWidth,height:e.originalImage.naturalHeight}},exifTransform:r};return this.transformLoadedImage(a,t,i)})}transformLoadedImage(e,t,i=!1){return D(this,null,function*(){let n=t.canvasRotation+e.exifTransform.rotate,r=e.original.size;if(!i&&n===0&&!e.exifTransform.flip&&!t.containWithinAspectRatio)return{original:{objectUrl:e.original.objectUrl,image:e.original.image,size:W({},r)},transformed:{objectUrl:e.original.objectUrl,image:e.original.image,size:W({},r)},exifTransform:e.exifTransform};let a=this.getTransformedSize(r,e.exifTransform,t),d=document.createElement("canvas");d.width=a.width,d.height=a.height;let x=d.getContext("2d");x?.setTransform(e.exifTransform.flip?-1:1,0,0,1,d.width/2,d.height/2),x?.rotate(Math.PI*(n/2)),x?.drawImage(e.original.image,-r.width/2,-r.height/2);let C=yield new Promise($=>d.toBlob($,t.format));if(!C)throw new Error("Failed to get Blob for transformed image.");let O=URL.createObjectURL(C),E=yield this.loadImageFromObjectUrl(O);return{original:{objectUrl:e.original.objectUrl,image:e.original.image,size:W({},r)},transformed:{objectUrl:O,image:E,size:{width:E.width,height:E.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 r=e.width*i.aspectRatio,a=e.height/i.aspectRatio;return{width:Math.max(e.height,r),height:Math.max(e.width,a)}}else{let r=e.height*i.aspectRatio,a=e.width/i.aspectRatio;return{width:Math.max(e.width,r),height:Math.max(e.height,a)}}return n%2?{height:e.width,width:e.height}:{width:e.width,height:e.height}}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=ee({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),ot=(()=>{class o{constructor(e,t,i,n,r,a,d){this.cropService=e,this.cropperPositionService=t,this.loadImageService=i,this.sanitizer=n,this.cd=r,this.zone=a,this.hammerLoader=d,this.settings=new Re,this.setImageMaxSizeRetries=0,this.resizedWhileHidden=!1,this.marginLeft="0px",this.maxSize={width:0,height:0},this.moveTypes=B,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 Y,this.startCropImage=new Y,this.imageLoaded=new Y,this.cropperReady=new Y,this.loadImageFailed=new Y,this.transformChange=new Y,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(W({},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=W({},this.maxSize);this.setMaxSize(),this.resizeCropperPosition(e),this.setCropperScaledMinSize(),this.setCropperScaledMaxSize()}}activatePinchGesture(){return D(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 Ue()&&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?B.Resize:B.Move,n=e.altKey?Qt(e.key):Ft(e.key),r=Bt(e.key,this.settings.stepSize);e.preventDefault(),e.stopPropagation(),this.startMove({clientX:0,clientY:0},i,n),this.handleMouseMove(r),this.handleMouseUp()}startMove(e,t,i=null){this.disabled||this.moveStart?.active&&this.moveStart?.type===B.Pinch||t===B.Drag&&!this.allowMoveImage||(e.preventDefault&&e.preventDefault(),this.moveStart=W({active:!0,type:t,position:i,transform:W({},this.transform),clientX:this.cropperPositionService.getClientX(e),clientY:this.cropperPositionService.getClientY(e)},this.cropper),this.initMouseMove())}initMouseMove(){Me(ae(document,"mousemove"),ae(document,"touchmove")).pipe(Qe(Me(ae(document,"mouseup"),ae(document,"touchend")).pipe(Fe()))).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=W({active:!0,type:B.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===B.Move)this.cropperPositionService.move(e,this.moveStart,this.cropper),this.checkCropperPosition(!0);else if(this.moveStart.type===B.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===B.Drag){let t=this.cropperPositionService.getClientX(e)-this.moveStart.clientX,i=this.cropperPositionService.getClientY(e)-this.moveStart.clientY;this.transform=Ve(W({},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===B.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===B.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(()=>D(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 o.\u0275fac=function(e){return new(e||o)(_(Lt),_(Wt),_($t),_(Xe),_(Ne),_(Le),_(Ye,8))},o.\u0275cmp=w({type:o,selectors:[["image-cropper"]],viewQuery:function(e,t){if(e&1&&(A(kt,7),A(Pt,5)),e&2){let i;b(i=M())&&(t.wrapper=i.first),b(i=M())&&(t.sourceImage=i.first)}},hostVars:6,hostBindings:function(e,t){e&1&&g("resize",function(){return t.onResize()},!1,We),e&2&&(te("text-align",t.alignImage),fe("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:[Be],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),u(2,zt,2,8,"img",2),S(3,"div",3),u(4,Vt,3,16,"div",4),l()),e&2&&(te("background",t.imageVisible&&t.backgroundColor),y(2),h("ngIf",t.safeImgDataUrl),y(),te("width",t.maxSize.width,"px")("height",t.maxSize.height,"px")("margin-left",t.alignImage==="center"?t.marginLeft:null),y(),h("ngIf",t.imageVisible))},dependencies:[G],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}),o})(),rt=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=Q({type:o}),o.\u0275inj=F({imports:[[j]]}),o})();var st=(()=>{class o{imageCropped(e){this.croppedDataUrl=e.base64}static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275cmp=w({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(t,i){t&1&&(c(0,"image-cropper",0),g("imageCropped",function(r){return i.imageCropped(r)}),l(),c(1,"wbutton",1),g("click",function(){return i.uploadImage(i.croppedDataUrl),i.close()}),P(2,"Cropper"),l()),t&2&&h("maintainAspectRatio",!0)("imageBase64",i.dataUrl)("aspectRatio",1)("cropperStaticWidth",i.width)("cropperStaticHeight",i.height)},dependencies:[ot,oe]})}}return o})();var lt=(()=>{class o{constructor(e){this._file=e,this._file.add({id:"formPhoto",resize:1920,cb:t=>{typeof t=="string"&&typeof this.setFile=="function"&&this.setFile(t)}}),this._file.add({id:"formPhotos",multiple:!0,resize:1920,cb:t=>{typeof t=="string"&&typeof this.setFile=="function"&&this.setFile(t)}})}static{this.\u0275fac=function(t){return new(t||o)(ge(Ke))}}static{this.\u0275prov=ee({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();function qt(o,s){if(o&1&&(c(0,"h3"),P(1),l()),o&2){let e=f(2);y(),ie(e.label)}}function Gt(o,s){if(o&1){let e=v();c(0,"label",6)(1,"img",7),g("error",function(){p(e);let i=f(2);return m(i.force=i.err)}),l()()}if(o&2){let e=f(2);y(),h("src",e.force||e.value||"/assets/default.png",se)("ngStyle",e.imgStyle)}}function Kt(o,s){o&1&&(c(0,"label",8),P(1,"Add"),l())}function Zt(o,s){if(o&1){let e=v();c(0,"div",11),S(1,"img",12),c(2,"i",13),g("click",function(){let i=p(e).index,n=f(3);return m(n.files.splice(i,1))}),P(3,"X"),l()()}if(o&2){let e=s.$implicit;y(),h("src",e,se)}}function Jt(o,s){if(o&1&&(c(0,"div",9),u(1,Zt,4,1,"div",10),l()),o&2){let e=f(2);y(),h("ngForOf",e.files)}}function ei(o,s){if(o&1){let e=v();c(0,"div",1),g("click",function(){p(e);let i=f();return m(i.set())}),u(1,qt,2,1,"h3",2)(2,Gt,2,2,"label",3)(3,Kt,2,0,"label",4)(4,Jt,2,1,"div",5),l()}if(o&2){let e=f();h("ngClass",e.class),y(),h("ngIf",e.label),y(),h("ngIf",!e.multiple),y(),h("ngIf",e.multiple),y(),h("ngIf",e.multiple)}}var ye=(()=>{class o{get files(){return this.value}constructor(e,t,i){this._modal=e,this._http=t,this._fs=i,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 Y,this.force=""}ngOnInit(){if(!this.name&&!this.multiple&&this.value){let e=(this.value||"").split("/");this.name=e[e.length-1].split("?")[0]}}set(){this._fs.setFile=e=>{this.width&&this.height?this._modal.show({uploadImage:this.uploadImage.bind(this),component:st,width:this.width,height:this.height,dataUrl:e}):this.uploadImage(e)}}uploadImage(e){this._http.post("/api/file/photo",{container:this.container,name:this.name,dataUrl:e},t=>{this.multiple?(this.value||(this.value=[]),this.value.push(t)):(this.name=t.split("/")[5].split("?")[0],this.value=t),this.update.emit(this.value)})}static{this.\u0275fac=function(t){return new(t||o)(_(Ge),_(qe),_(lt))}}static{this.\u0275cmp=w({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(t,i){t&1&&u(0,ei,5,5,"div",0),t&2&&h("ngIf",i.isPhoto)},dependencies:[k,ne,G,$e],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}"]})}}return o})();var mt=(()=>{class o{static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275mod=Q({type:o})}static{this.\u0275inj=F({imports:[rt,j,re]})}}return o})();var ti=["header"],ii=["footer"],ni=[[["","header",""]],"*",[["","footer",""]]],oi=["[header]","*","[footer]"];function ri(o,s){o&1&&(c(0,"div",6),Ce(1),l())}function ai(o,s){o&1&&Ce(0,1,["*ngIf","!sections"])}function si(o,s){if(o&1&&(c(0,"div",7),P(1),l()),o&2){let e=s.$implicit;y(),xe(" ",e," ")}}function ci(o,s){o&1&&(c(0,"div",8),Ce(1,2),l())}var xn=(()=>{class o{constructor(){this.cardClass="",this.sections=null,this.hasHeader=!1,this.hasFooter=!1}ngAfterContentInit(){this.hasHeader=!!this.headerContent,this.hasFooter=!!this.footerContent}static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275cmp=w({type:o,selectors:[["wcard"]],contentQueries:function(t,i,n){if(t&1&&(Se(n,ti,5),Se(n,ii,5)),t&2){let r;b(r=M())&&(i.headerContent=r.first),b(r=M())&&(i.footerContent=r.first)}},inputs:{cardClass:"cardClass",sections:"sections"},ngContentSelectors:oi,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(t,i){t&1&&(De(ni),c(0,"div",0),u(1,ri,2,0,"div",1),c(2,"div",2),u(3,ai,1,0,"ng-content",3)(4,si,2,1,"div",4),l(),u(5,ci,2,0,"div",5),l()),t&2&&(h("ngClass",i.cardClass),y(),h("ngIf",i.hasHeader),y(2),h("ngIf",!i.sections),y(),h("ngForOf",i.sections),y(),h("ngIf",i.hasFooter))},dependencies:[k,ne,G],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}"]})}}return o})();var ht=(()=>{class o{static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275mod=Q({type:o})}static{this.\u0275inj=F({imports:[ce,j,le]})}}return o})();var li=(()=>{class o{static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275cmp=w({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(t,i){t&1&&(He(),c(0,"svg",0),S(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),S(10,"stop",9)(11,"stop",10),l(),c(12,"linearGradient",11),S(13,"stop",9)(14,"stop",10),l(),c(15,"linearGradient",12),S(16,"stop",9)(17,"stop",10),l(),c(18,"linearGradient",13),S(19,"stop",9)(20,"stop",10),l(),c(21,"linearGradient",14),S(22,"stop",9)(23,"stop",10),l(),c(24,"linearGradient",15),S(25,"stop",9)(26,"stop",10),l(),c(27,"linearGradient",16),S(28,"stop",9)(29,"stop",10),l()()())}})}}return o})();var dt=(()=>{class o{static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275mod=Q({type:o})}static{this.\u0275inj=F({})}}return o})();var pi=["templateRef"];function mi(o,s){if(o&1){let e=v();c(0,"winput",1),g("wChange",function(i){let n=p(e).$implicit;return n.submition[n.key]=i,m(n.wChange())})("wSubmit",function(){let i=p(e).$implicit;return m(i.wSubmit())}),l()}if(o&2){let e=s.$implicit;h("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 gt=(()=>{class o{constructor(e){this._form=e}ngOnInit(){this._form.addTemplateComponent("Email",this.templateRef)}static{this.\u0275fac=function(t){return new(t||o)(_(R))}}static{this.\u0275cmp=w({type:o,selectors:[["ng-component"]],viewQuery:function(t,i){if(t&1&&A(pi,7),t&2){let n;b(n=M())&&(i.templateRef=n.first)}},decls:2,vars:0,consts:[["templateRef",""],["type","email",3,"wChange","wSubmit","value","placeholder","name","focused","ngClass","setFocus","label"]],template:function(t,i){t&1&&u(0,mi,1,7,"ng-template",null,0,I)},dependencies:[z,k]})}}return o})();var hi=["templateRef"];function di(o,s){if(o&1){let e=v();c(0,"winput",1),g("wChange",function(i){let n=p(e).$implicit;return m(n.submition[n.key]=i)}),l()}if(o&2){let e=s.$implicit;h("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 ft=(()=>{class o{constructor(e){this._form=e}ngOnInit(){this._form.addTemplateComponent("Number",this.templateRef)}static{this.\u0275fac=function(t){return new(t||o)(_(R))}}static{this.\u0275cmp=w({type:o,selectors:[["ng-component"]],viewQuery:function(t,i){if(t&1&&A(hi,7),t&2){let n;b(n=M())&&(i.templateRef=n.first)}},decls:2,vars:0,consts:[["templateRef",""],["type","number",3,"wChange","value","placeholder","name","focused","ngClass","label"]],template:function(t,i){t&1&&u(0,di,1,6,"ng-template",null,0,I)},dependencies:[z,k]})}}return o})();var gi=["templateRef"];function fi(o,s){if(o&1){let e=v();c(0,"winput",1),g("wChange",function(i){let n=p(e).$implicit;return m(n.submition[n.key]=i)}),l()}if(o&2){let e=s.$implicit;h("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=(()=>{class o{constructor(e){this._form=e}ngOnInit(){this._form.addTemplateComponent("Time",this.templateRef)}static{this.\u0275fac=function(t){return new(t||o)(_(R))}}static{this.\u0275cmp=w({type:o,selectors:[["ng-component"]],viewQuery:function(t,i){if(t&1&&A(gi,7),t&2){let n;b(n=M())&&(i.templateRef=n.first)}},decls:2,vars:0,consts:[["templateRef",""],["type","time",3,"wChange","value","placeholder","name","focused","ngClass","label"]],template:function(t,i){t&1&&u(0,fi,1,6,"ng-template",null,0,I)},dependencies:[z,k]})}}return o})();var ui=["templateRef"];function _i(o,s){if(o&1){let e=v();c(0,"ngx-file",1),g("update",function(i){let n=p(e).$implicit;return m(n.control.setValue(i))}),l()}if(o&2){let e=s.$implicit;h("label",e.field.Label)("width",e.field.Width)("height",e.field.Height)("value",e.value)("isPhoto",!0)}}var _t=(()=>{class o{constructor(e){this._form=e}ngOnInit(){this._form.addTemplateComponent("Photo",this.templateRef)}static{this.\u0275fac=function(t){return new(t||o)(_(R))}}static{this.\u0275cmp=w({type:o,selectors:[["ng-component"]],viewQuery:function(t,i){if(t&1&&A(ui,7),t&2){let n;b(n=M())&&(i.templateRef=n.first)}},decls:2,vars:0,consts:[["templateRef",""],[3,"update","label","width","height","value","isPhoto"]],template:function(t,i){t&1&&u(0,_i,1,5,"ng-template",null,0,I)},dependencies:[ye]})}}return o})();var Ci=["templateRef"];function xi(o,s){if(o&1){let e=v();c(0,"ngx-file",1),g("update",function(i){let n=p(e).$implicit;return m(n.control.setValue(i))}),l()}if(o&2){let e=s.$implicit;h("container",e.config.formId)("label",e.field.Label)("width",e.field.Width)("height",e.field.Height)("value",e.value)("multiple",!0)("isPhoto",!0)}}var Ct=(()=>{class o{constructor(e){this._form=e}ngOnInit(){this._form.addTemplateComponent("Photos",this.templateRef)}static{this.\u0275fac=function(t){return new(t||o)(_(R))}}static{this.\u0275cmp=w({type:o,selectors:[["ng-component"]],viewQuery:function(t,i){if(t&1&&A(Ci,7),t&2){let n;b(n=M())&&(i.templateRef=n.first)}},decls:2,vars:0,consts:[["templateRef",""],[3,"update","container","label","width","height","value","multiple","isPhoto"]],template:function(t,i){t&1&&u(0,xi,1,7,"ng-template",null,0,I)},dependencies:[ye]})}}return o})();var wi=["templateRef"];function yi(o,s){if(o&1){let e=v();c(0,"winput",1),g("wChange",function(i){let n=p(e).$implicit;return m(n.submition[n.key]=i)}),l()}if(o&2){let e=s.$implicit;h("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 xt=(()=>{class o{constructor(e){this._form=e}ngOnInit(){this._form.addTemplateComponent("Date",this.templateRef)}static{this.\u0275fac=function(t){return new(t||o)(_(R))}}static{this.\u0275cmp=w({type:o,selectors:[["ng-component"]],viewQuery:function(t,i){if(t&1&&A(wi,7),t&2){let n;b(n=M())&&(i.templateRef=n.first)}},decls:2,vars:0,consts:[["templateRef",""],["type","date",3,"wChange","value","placeholder","name","focused","ngClass","label"]],template:function(t,i){t&1&&u(0,yi,1,6,"ng-template",null,0,I)},dependencies:[z,k]})}}return o})();var vi=["templateRef"];function bi(o,s){if(o&1){let e=v();c(0,"winput",1),g("wChange",function(i){let n=p(e).$implicit;return n.submition[n.key]=i,m(n.wChange())}),l()}if(o&2){let e=s.$implicit;h("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=(()=>{class o{constructor(e){this._form=e}ngOnInit(){this._form.addTemplateComponent("Text",this.templateRef)}static{this.\u0275fac=function(t){return new(t||o)(_(R))}}static{this.\u0275cmp=w({type:o,selectors:[["ng-component"]],viewQuery:function(t,i){if(t&1&&A(vi,7),t&2){let n;b(n=M())&&(i.templateRef=n.first)}},decls:2,vars:0,consts:[["templateRef",""],[3,"wChange","type","placeholder","name","value","focused","ngClass","label"]],template:function(t,i){t&1&&u(0,bi,1,7,"ng-template",null,0,I)},dependencies:[z,k]})}}return o})();var Mi=["templateRef"];function Ai(o,s){if(o&1){let e=v();c(0,"wbutton",1),g("click",function(){let i=p(e).$implicit,n=f();return m(n.click(i))}),P(1),l()}if(o&2){let e=s.$implicit;h("disableSubmit",!0),y(),ie(e.field.Label)}}var yt=(()=>{class o{constructor(e){this._form=e}ngOnInit(){this._form.addTemplateComponent("Button",this.templateRef)}click(e){typeof e.field.Click=="function"&&e.field.Click()}static{this.\u0275fac=function(t){return new(t||o)(_(R))}}static{this.\u0275cmp=w({type:o,selectors:[["button-formcomponents"]],viewQuery:function(t,i){if(t&1&&A(Mi,7),t&2){let n;b(n=M())&&(i.templateRef=n.first)}},decls:2,vars:0,consts:[["templateRef",""],[3,"click","disableSubmit"]],template:function(t,i){t&1&&u(0,Ai,2,2,"ng-template",null,0,I)},dependencies:[oe],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)}"]})}}return o})();var Si=["templateRef"];function Ri(o,s){o&1&&S(0,"span",10)}function Ii(o,s){o&1&&S(0,"span",11)}function Oi(o,s){o&1&&S(0,"span",12)}function Ti(o,s){o&1&&S(0,"span",13)}function ki(o,s){if(o&1){let e=v();c(0,"div",1)(1,"winput",2),g("wChange",function(i){let n=p(e).$implicit;return n.submition[n.key]=i,m(n.wChange())})("wSubmit",function(){let i=p(e).$implicit;return m(i.wSubmit())}),l(),c(2,"div",3),u(3,Ri,1,0,"span",4)(4,Ii,1,0,"span",5)(5,Oi,1,0,"span",6)(6,Ti,1,0,"span",7),l(),c(7,"div",8)(8,"span",9),g("click",function(){let i=p(e).$implicit;return m(i.field.Show=!i.field.Show)}),P(9," visibility "),l()()()}if(o&2){let e=s.$implicit,t=f();y(),h("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),y(2),h("ngIf",t.ui.level(e.value)>1),y(),h("ngIf",t.ui.level(e.value)>2),y(),h("ngIf",t.ui.level(e.value)>3),y(),h("ngIf",t.ui.level(e.value)>4)}}var vt=(()=>{class o{constructor(e,t){this._form=e,this.ui=t}ngOnInit(){this._form.addTemplateComponent("Password",this.templateRef)}static{this.\u0275fac=function(t){return new(t||o)(_(R),_(Ze))}}static{this.\u0275cmp=w({type:o,selectors:[["ng-component"]],viewQuery:function(t,i){if(t&1&&A(Si,7),t&2){let n;b(n=M())&&(i.templateRef=n.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(t,i){t&1&&u(0,ki,10,12,"ng-template",null,0,I)},dependencies:[z,k,G],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}}"]})}}return o})();var Pi=["templateRef"];function zi(o,s){if(o&1){let e=v();c(0,"wselect",1),g("modelChange",function(i){let n=p(e).$implicit;return n.submition[n.key]=i,m(n.wChange())}),l()}if(o&2){let e=s.$implicit;h("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 bt=(()=>{class o{constructor(e){this._form=e}ngOnInit(){this._form.addTemplateComponent("Select",this.templateRef)}select(e){return e.value?.name||e.value||""}static{this.\u0275fac=function(t){return new(t||o)(_(R))}}static{this.\u0275cmp=w({type:o,selectors:[["ng-component"]],viewQuery:function(t,i){if(t&1&&A(Pi,7),t&2){let n;b(n=M())&&(i.templateRef=n.first)}},decls:2,vars:0,consts:[["templateRef",""],[3,"modelChange","select","multiple","placeholder","value","name","ngClass","items","searchable"]],template:function(t,i){t&1&&u(0,zi,1,8,"ng-template",null,0,I)},dependencies:[k,it],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}"]})}}return o})();var Ei=["templateRef"];function Vi(o,s){if(o&1){let e=v();c(0,"winput",1),g("wChange",function(i){let n=p(e).$implicit;return m(n.submition[n.key]=i)}),l()}if(o&2){let e=s.$implicit;h("value",e.submition[e.key])("name",e.field.Label||"name")("focused",e.component.focused)("ngClass",e.component.class)("label",e.field.Label)}}var Mt=(()=>{class o{constructor(e){this._form=e}ngOnInit(){this._form.addTemplateComponent("Boolean",this.templateRef)}static{this.\u0275fac=function(t){return new(t||o)(_(R))}}static{this.\u0275cmp=w({type:o,selectors:[["ng-component"]],viewQuery:function(t,i){if(t&1&&A(Ei,7),t&2){let n;b(n=M())&&(i.templateRef=n.first)}},decls:2,vars:0,consts:[["templateRef",""],["type","checkbox",3,"wChange","value","name","focused","ngClass","label"]],template:function(t,i){t&1&&u(0,Vi,1,5,"ng-template",null,0,I)},dependencies:[z,k]})}}return o})();var Fi=["templateRef"],Qi=["inputRef"];function Bi(o,s){if(o&1){let e=v();ue(0),c(1,"span"),P(2),l(),c(3,"i",5),g("click",function(){let i=p(e).index,n=f().$implicit;return m(n.submition[n.key].splice(i,1))}),P(4,"X"),l(),_e()}if(o&2){let e=s.$implicit;y(2),ie(e)}}function Hi(o,s){if(o&1){let e=v();c(0,"div")(1,"winput",2,1),g("wSubmit",function(){let i=p(e).$implicit,n=f();return m(n.addTag(i))}),l(),u(3,Bi,5,1,"ng-container",3),c(4,"wbutton",4),g("click",function(){let i=p(e).$implicit,n=f();return m(n.addTag(i))}),P(5),l()()}if(o&2){let e=s.$implicit,t=je(2);y(),h("placeholder",e.field.Placeholder)("label",e.field.Label),y(2),h("ngForOf",e.submition[e.key]),y(),h("disabled",!t.value),y(),xe(" ",e.field.Button||"Add"," ")}}var At=(()=>{class o{constructor(e){this._form=e}ngOnInit(){this._form.addTemplateComponent("Tags",this.templateRef)}addTag(e){e.submition[e.key]=e.submition[e.key]||[],e.submition[e.key].push(this.inputRef.value.replace(` +`,"")),this.inputRef.value="",e.wChange.emit(),setTimeout(()=>{this.inputRef.focus()},100)}static{this.\u0275fac=function(t){return new(t||o)(_(R))}}static{this.\u0275cmp=w({type:o,selectors:[["ng-component"]],viewQuery:function(t,i){if(t&1&&(A(Fi,7),A(Qi,5)),t&2){let n;b(n=M())&&(i.templateRef=n.first),b(n=M())&&(i.inputRef=n.first)}},decls:2,vars:0,consts:[["templateRef",""],["inputRef",""],[3,"wSubmit","placeholder","label"],[4,"ngFor","ngForOf"],[3,"click","disabled"],[3,"click"]],template:function(t,i){t&1&&u(0,Hi,6,5,"ng-template",null,0,I)},dependencies:[z,oe,ne]})}}return o})();var St=(()=>{class o{constructor(e){this._form=e,this._form.injectComponent("Boolean",Mt,["Label"]),this._form.injectComponent("Button",yt,["Label"]),this._form.injectComponent("Date",xt),this._form.injectComponent("Email",gt),this._form.injectComponent("Number",ft),this._form.injectComponent("Password",vt),this._form.injectComponent("Photo",_t,["Label","Width","Height"],{Width:"Number",Height:"Number"}),this._form.injectComponent("Photos",Ct,["Label","Width","Height"],{Width:"Number",Height:"Number"}),this._form.injectComponent("Select",bt,["Placeholder","Label","Items","Multiple"],{Items:"Tags",Multiple:"Boolean"}),this._form.injectComponent("Tags",At,["Button","Placeholder","Label"]),this._form.injectComponent("Text",wt,["Textarea","Placeholder","Label"],{Textarea:"Boolean"}),this._form.injectComponent("Time",ut)}static{this.\u0275fac=function(t){return new(t||o)(ge(R))}}static{this.\u0275mod=Q({type:o})}static{this.\u0275inj=F({imports:[we,re,j,mt,pe]})}}return o})();var wo=(()=>{class o{static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275mod=Q({type:o})}static{this.\u0275inj=F({imports:[St,pe,j,ce,le,tt,pe,j,ce,le,re,we,ht,Je,et,dt]})}}return o})();export{xn as a,li as b,ye as c,mt as d,wo as e}; diff --git a/chunk-ZDLWVYP3.js b/chunk-ZDLWVYP3.js new file mode 100644 index 0000000..659968e --- /dev/null +++ b/chunk-ZDLWVYP3.js @@ -0,0 +1 @@ +import{a as k}from"./chunk-QPR5CHFB.js";import{b as z,e as T}from"./chunk-SPCT3XEP.js";import{B as b,D as l,G as o,H as a,Ja as M,Ka as P,L as g,La as O,M as s,N as _,Oa as S,Qa as I,V as h,Za as j,_a as E,k as u,ka as C,m as x,n as w,p as m,q as f,ua as v,y as d,ya as y,z as r}from"./chunk-PQ76DGOU.js";function D(t,F){if(t&1){let e=g();o(0,"span",8),s("click",function(){m(e);let i=_();return f(i.us.setMode("dark"))}),h(1," dark_mode "),a()}}function H(t,F){if(t&1){let e=g();o(0,"span",8),s("click",function(){m(e);let i=_();return f(i.us.setMode())}),h(1," light_mode "),a()}}var V=(()=>{class t{constructor(e,n,i,p,L,N,U,q){this.us=e,this.ui=n,this._alert=i,this._http=p,this._hash=L,this._router=N,this._form=U,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:"Number",key:"resetPin",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:"demo@webart.work",password:"asdasdasdasd",resetPin:null},this._set=c=>{c?(localStorage.setItem("waw_user",JSON.stringify(c)),this._http.set("token",c.token),this.us.setUser(c),this.us.get(),this._router.navigateByUrl("/profile")):this._alert.error({text:"Something went wrong"})}}submit(){!this.form.components[2].hidden&&this.user.resetPin?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,e=>{e.email&&e.pass?this.login():e.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(){this._http.post("/api/user/change",this.user,e=>{e?this._alert.info({text:"Password successfully changed"}):this._alert.error({text:"Wrong Code"}),this.login()})}static{this.\u0275fac=function(n){return new(n||t)(r(k),r(S),r(O),r(M),r(P),r(v),r(j),r(I))}}static{this.\u0275cmp=x({type:t,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(n,i){n&1&&(o(0,"div",0)(1,"div",1)(2,"div",2)(3,"icon-spider",3),s("click",function(){return i.us.setMode(i.us.mode?"":"dark")}),a()(),o(4,"div",4)(5,"div",5),b(6,D,2,0,"span",6)(7,H,2,0,"span",6),o(8,"wform",7),s("wSubmit",function(){return i.submit()}),a()()()()()),n&2&&(d(6),l("ngIf",!i.us.mode),d(),l("ngIf",i.us.mode),d(),l("submition",i.user)("config",i.form))},dependencies:[C,E,z],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;--day-name: #988888;--b-radius-btn: 10px;--transition: all .3s;--events: #4c8e9d;--border: rgba(102, 91, 91, .432)}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;--c-calendar: #141414;--day-name: #dad5d5;--events: #1c2e32;--border: rgb(255 255 255 / 23%)}[_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}}"]})}}return t})();var R=[{path:"",component:V}],ie=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=w({type:t})}static{this.\u0275inj=u({imports:[y.forChild(R),T]})}}return t})();export{ie as SignModule}; 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..9393de3 --- /dev/null +++ b/index.html @@ -0,0 +1,29 @@ + + + + + + + + + Platform default waw project + + + + + + + + + + + + + + + + + + + + diff --git a/main-IML6JB4E.js b/main-IML6JB4E.js new file mode 100644 index 0000000..cdad991 --- /dev/null +++ b/main-IML6JB4E.js @@ -0,0 +1 @@ +import{a as gn}from"./chunk-QPR5CHFB.js";import{e as _n}from"./chunk-SPCT3XEP.js";import{$ as Ke,A as en,B as ze,D as L,F as Ce,Fa as we,G as T,Ga as mn,H as O,I as G,L as Se,M as H,N as oe,Pa as pn,Ra as yn,V,W as tn,a as Be,c as Yt,fa as nn,ga as sn,ha as rn,i as E,j,k as Ae,ka as on,l as q,m as ye,n as Me,na as an,oa as ln,p as _e,pa as cn,q as ve,qa as je,t as Xt,ta as Ee,u as Zt,ua as be,v as ct,va as un,w as Jt,wa as hn,xa as dn,y as F,ya as fn,z as ut,za as ae}from"./chunk-PQ76DGOU.js";var vn=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275cmp=ye({type:i,selectors:[["guest"]],decls:1,vars:0,template:function(n,s){n&1&&G(0,"router-outlet")},dependencies:[Ee]})}}return i})();var _=function(i){return i[i.State=0]="State",i[i.Transition=1]="Transition",i[i.Sequence=2]="Sequence",i[i.Group=3]="Group",i[i.Animate=4]="Animate",i[i.Keyframes=5]="Keyframes",i[i.Style=6]="Style",i[i.Trigger=7]="Trigger",i[i.Reference=8]="Reference",i[i.AnimateChild=9]="AnimateChild",i[i.AnimateRef=10]="AnimateRef",i[i.Query=11]="Query",i[i.Stagger=12]="Stagger",i}(_||{}),Y="*";function qe(i,e){return{type:_.Trigger,name:i,definitions:e,options:{}}}function le(i,e=null){return{type:_.Animate,styles:e,timings:i}}function Sn(i,e=null){return{type:_.Sequence,steps:i,options:e}}function x(i){return{type:_.Style,styles:i,offset:null}}function Ue(i,e,t){return{type:_.State,name:i,styles:e,options:t}}function ce(i,e,t=null){return{type:_.Transition,expr:i,animation:e,options:t}}var te=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}},Oe=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,s=0,r=this.players.length;r==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++t==r&&this._onFinish()}),o.onDestroy(()=>{++n==r&&this._onDestroy()}),o.onStart(()=>{++s==r&&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 s=n.totalTime?Math.min(1,t/n.totalTime):1;n.setPosition(s)})}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}},Ve="!";var En=[qe("flyInOut",[Ue("in",x({transform:"translateX(0)"})),ce("void => *",[x({transform:"translateY(-10px)",opacity:0,height:"0"}),le(400)]),ce("* => void",[le(400,x({opacity:0,height:"0",transform:"translateY(-10px)"}))])]),qe("tabInOut",[Ue("in",x({transform:"translateX(0)"})),ce("void => *",[x({transform:"translateX(10px)",opacity:0}),le(300)]),ce("* => void",[le(300,x({opacity:0,transform:"translateX(10px)"}))])]),qe("showInOut",[Ue("in",x({})),ce("void => *",[x({opacity:0}),le(300)]),ce("* => void",[le(300,x({opacity:0}))])])];var ht;try{ht=typeof Intl<"u"&&Intl.v8BreakIterator}catch{ht=!1}var bn=(()=>{class i{constructor(t){this._platformId=t,this.isBrowser=this._platformId?an(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||ht)&&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}static{this.\u0275fac=function(n){return new(n||i)(q(Zt))}}static{this.\u0275prov=j({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var dt=()=>({exact:!0});function ii(i,e){if(i&1&&G(0,"div",22),i&2){let t=oe();L("@showInOut",t.showSidebar)}}function si(i,e){if(i&1){let t=Se();T(0,"span",23),H("click",function(){_e(t);let s=oe();return ve(s.us.setMode("dark"))}),V(1," dark_mode "),O()}}function ri(i,e){if(i&1){let t=Se();T(0,"span",23),H("click",function(){_e(t);let s=oe();return ve(s.us.setMode())}),V(1," light_mode "),O()}}function oi(i,e){if(i&1){let t=Se();T(0,"a",24),H("click",function(){_e(t);let s=oe();return ve(s.hideSidebar())}),T(1,"span",5),V(2,"people"),O(),T(3,"span",25),V(4,"Theme.Users"),O()()}i&2&&L("routerLinkActiveOptions",Ke(1,dt))}function ai(i,e){if(i&1){let t=Se();T(0,"a",26),H("click",function(){_e(t);let s=oe();return ve(s.hideSidebar())}),T(1,"span",5),V(2,"backup_table"),O(),T(3,"span",25),V(4,"Theme.Forms"),O()()}i&2&&L("routerLinkActiveOptions",Ke(1,dt))}function li(i,e){if(i&1){let t=Se();T(0,"a",27),H("click",function(){_e(t);let s=oe();return ve(s.hideSidebar())}),T(1,"span",5),V(2,"translate"),O(),T(3,"span",25),V(4,"Theme.Translates"),O()()}i&2&&L("routerLinkActiveOptions",Ke(1,dt))}function ci(i,e){i&1&&G(0,"hr")}var ft=(()=>{class i{hideSidebar(){!this._platform.ANDROID&&!this._platform.IOS&&(this.showSidebar=!1)}constructor(t,n){this.us=t,this._platform=n,this.url=ae.url,this.forceAvatarUrl="",this.showSidebar=!1}static{this.\u0275fac=function(n){return new(n||i)(ut(gn),ut(bn))}}static{this.\u0275cmp=ye({type:i,selectors:[["app-user"]],decls:27,vars:17,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"],[1,"fade"],[1,"material-icons",3,"click"],["routerLinkActive","_activeLink","routerLink","/admin/users",1,"nav__burger-link",3,"click","routerLinkActiveOptions"],["translate",""],["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(n,s){n&1&&(T(0,"div",0)(1,"nav",1),H("clickOutside",function(){return s.showSidebar=!1}),T(2,"ul",2)(3,"li",3)(4,"a",4),H("click",function(){return s.showSidebar=!1}),T(5,"span",5),V(6,"home"),O()()(),T(7,"li",6),H("click",function(){return s.showSidebar=!s.showSidebar}),T(8,"a",7),G(9,"span",8),O()()()(),T(10,"div",9),ze(11,ii,1,1,"div",10),T(12,"div",11)(13,"div",12)(14,"div",13),ze(15,si,2,0,"span",14)(16,ri,2,0,"span",14),O(),T(17,"a",15)(18,"img",16),H("error",function(){return s.forceAvatarUrl="assets/default.png"}),O(),T(19,"div",17),V(20),O()(),G(21,"hr"),ze(22,oi,5,2,"a",18)(23,ai,5,2,"a",19)(24,li,5,2,"a",20)(25,ci,1,0,"hr",21),O()(),G(26,"router-outlet"),O()()),n&2&&(F(2),Ce("_active",s.showSidebar),F(6),Ce("_active",s.showSidebar),F(2),Ce("showTable",s.showSidebar),F(),L("ngIf",s.showSidebar),F(),Ce("_active",s.showSidebar),F(3),L("ngIf",!s.us.mode),F(),L("ngIf",s.us.mode),F(2),L("src",s.forceAvatarUrl||s.us.user.thumb?s.url+s.us.user.thumb:"assets/default.png",Jt),F(2),tn(s.us.user.name||"Profile"),F(2),L("ngIf",s.us.role("admin")),F(),L("ngIf",s.us.role("admin")),F(),L("ngIf",s.us.role("admin")),F(),L("ngIf",s.us.role("admin")))},dependencies:[yn,on,mn,Ee,un,hn],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;--day-name: #988888;--b-radius-btn: 10px;--transition: all .3s;--events: #4c8e9d;--border: rgba(102, 91, 91, .432)}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;--c-calendar: #141414;--day-name: #dad5d5;--events: #1c2e32;--border: rgb(255 255 255 / 23%)}.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:[En]}})}}return i})();var wn=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275cmp=ye({type:i,selectors:[["app-root"]],decls:1,vars:0,template:function(n,s){n&1&&G(0,"router-outlet")},dependencies:[Ee]})}}return i})();function Tn(i){return new E(3e3,!1)}function ui(){return new E(3100,!1)}function hi(){return new E(3101,!1)}function di(i){return new E(3001,!1)}function fi(i){return new E(3003,!1)}function mi(i){return new E(3004,!1)}function pi(i,e){return new E(3005,!1)}function gi(){return new E(3006,!1)}function yi(){return new E(3007,!1)}function _i(i,e){return new E(3008,!1)}function vi(i){return new E(3002,!1)}function Si(i,e,t,n,s){return new E(3010,!1)}function Ei(){return new E(3011,!1)}function bi(){return new E(3012,!1)}function wi(){return new E(3200,!1)}function Ti(){return new E(3202,!1)}function Pi(){return new E(3013,!1)}function Ai(i){return new E(3014,!1)}function Mi(i){return new E(3015,!1)}function Ci(i){return new E(3016,!1)}function ki(i,e){return new E(3404,!1)}function Oi(i){return new E(3502,!1)}function Ni(i){return new E(3503,!1)}function Di(){return new E(3300,!1)}function Ii(i){return new E(3504,!1)}function Fi(i){return new E(3301,!1)}function Ri(i,e){return new E(3302,!1)}function Li(i){return new E(3303,!1)}function xi(i,e){return new E(3400,!1)}function Bi(i){return new E(3401,!1)}function zi(i){return new E(3402,!1)}function Ki(i,e){return new E(3505,!1)}function ne(i){switch(i.length){case 0:return new te;case 1:return i[0];default:return new Oe(i)}}function Bn(i,e,t=new Map,n=new Map){let s=[],r=[],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=i.normalizePropertyName(f,s),g){case Ve:g=t.get(y);break;case Y:g=n.get(y);break;default:g=i.normalizeStyleValue(y,f,g,s);break}u.set(f,g)}),h||r.push(u),a=u,o=c}),s.length)throw Oi(s);return r}function Lt(i,e,t,n){switch(e){case"start":i.onStart(()=>n(t&&mt(t,"start",i)));break;case"done":i.onDone(()=>n(t&&mt(t,"done",i)));break;case"destroy":i.onDestroy(()=>n(t&&mt(t,"destroy",i)));break}}function mt(i,e,t){let n=t.totalTime,s=!!t.disabled,r=xt(i.element,i.triggerName,i.fromState,i.toState,e||i.phaseName,n??i.totalTime,s),o=i._data;return o!=null&&(r._data=o),r}function xt(i,e,t,n,s="",r=0,o){return{element:i,triggerName:e,fromState:t,toState:n,phaseName:s,totalTime:r,disabled:!!o}}function z(i,e,t){let n=i.get(e);return n||i.set(e,n=t),n}function Pn(i){let e=i.indexOf(":"),t=i.substring(1,e),n=i.slice(e+1);return[t,n]}var ji=typeof document>"u"?null:document.documentElement;function Bt(i){let e=i.parentNode||i.host||null;return e===ji?null:e}function qi(i){return i.substring(1,6)=="ebkit"}var ue=null,An=!1;function Ui(i){ue||(ue=Vi()||{},An=ue.style?"WebkitAppearance"in ue.style:!1);let e=!0;return ue.style&&!qi(i)&&(e=i in ue.style,!e&&An&&(e="Webkit"+i.charAt(0).toUpperCase()+i.slice(1)in ue.style)),e}function Vi(){return typeof document<"u"?document.body:null}function zn(i,e){for(;e;){if(e===i)return!0;e=Bt(e)}return!1}function Kn(i,e,t){if(t)return Array.from(i.querySelectorAll(e));let n=i.querySelector(e);return n?[n]:[]}var zt=(()=>{class i{validateStyleProperty(t){return Ui(t)}containsElement(t,n){return zn(t,n)}getParentElement(t){return Bt(t)}query(t,n,s){return Kn(t,n,s)}computeStyle(t,n,s){return s||""}animate(t,n,s,r,o,a=[],l){return new te(s,r)}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275prov=j({token:i,factory:i.\u0275fac})}}return i})(),fe=class{static{this.NOOP=new zt}},me=class{};var Qi=1e3,jn="{{",$i="}}",qn="ng-enter",St="ng-leave",Qe="ng-trigger",Ye=".ng-trigger",Mn="ng-animating",Et=".ng-animating";function J(i){if(typeof i=="number")return i;let e=i.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:bt(parseFloat(e[1]),e[2])}function bt(i,e){switch(e){case"s":return i*Qi;default:return i}}function Xe(i,e,t){return i.hasOwnProperty("duration")?i:Wi(i,e,t)}function Wi(i,e,t){let n=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,s,r=0,o="";if(typeof i=="string"){let a=i.match(n);if(a===null)return e.push(Tn(i)),{duration:0,delay:0,easing:""};s=bt(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(r=bt(parseFloat(l),a[4]));let c=a[5];c&&(o=c)}else s=i;if(!t){let a=!1,l=e.length;s<0&&(e.push(ui()),a=!0),r<0&&(e.push(hi()),a=!0),a&&e.splice(l,0,Tn(i))}return{duration:s,delay:r,easing:o}}function Gi(i){return i.length?i[0]instanceof Map?i:i.map(e=>new Map(Object.entries(e))):[]}function X(i,e,t){e.forEach((n,s)=>{let r=Kt(s);t&&!t.has(s)&&t.set(s,i.style[r]),i.style[r]=n})}function de(i,e){e.forEach((t,n)=>{let s=Kt(n);i.style[s]=""})}function Ne(i){return Array.isArray(i)?i.length==1?i[0]:Sn(i):i}function Hi(i,e,t){let n=e.params||{},s=Un(i);s.length&&s.forEach(r=>{n.hasOwnProperty(r)||t.push(di(r))})}var wt=new RegExp(`${jn}\\s*(.+?)\\s*${$i}`,"g");function Un(i){let e=[];if(typeof i=="string"){let t;for(;t=wt.exec(i);)e.push(t[1]);wt.lastIndex=0}return e}function Ie(i,e,t){let n=`${i}`,s=n.replace(wt,(r,o)=>{let a=e[o];return a==null&&(t.push(fi(o)),a=""),a.toString()});return s==n?i:s}var Yi=/-+([a-z0-9])/g;function Kt(i){return i.replace(Yi,(...e)=>e[1].toUpperCase())}function Xi(i,e){return i===0||e===0}function Zi(i,e,t){if(t.size&&e.length){let n=e[0],s=[];if(t.forEach((r,o)=>{n.has(o)||s.push(o),n.set(o,r)}),s.length)for(let r=1;ro.set(a,jt(i,a)))}}return e}function B(i,e,t){switch(e.type){case _.Trigger:return i.visitTrigger(e,t);case _.State:return i.visitState(e,t);case _.Transition:return i.visitTransition(e,t);case _.Sequence:return i.visitSequence(e,t);case _.Group:return i.visitGroup(e,t);case _.Animate:return i.visitAnimate(e,t);case _.Keyframes:return i.visitKeyframes(e,t);case _.Style:return i.visitStyle(e,t);case _.Reference:return i.visitReference(e,t);case _.AnimateChild:return i.visitAnimateChild(e,t);case _.AnimateRef:return i.visitAnimateRef(e,t);case _.Query:return i.visitQuery(e,t);case _.Stagger:return i.visitStagger(e,t);default:throw mi(e.type)}}function jt(i,e){return window.getComputedStyle(i)[e]}var Ji=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"]),Ze=class extends me{normalizePropertyName(e,t){return Kt(e)}normalizeStyleValue(e,t,n,s){let r="",o=n.toString().trim();if(Ji.has(t)&&n!==0&&n!=="0")if(typeof n=="number")r="px";else{let a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&s.push(pi(e,n))}return o+r}};var Je="*";function es(i,e){let t=[];return typeof i=="string"?i.split(/\s*,\s*/).forEach(n=>ts(n,t,e)):t.push(i),t}function ts(i,e,t){if(i[0]==":"){let l=ns(i,t);if(typeof l=="function"){e.push(l);return}i=l}let n=i.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return t.push(Mi(i)),e;let s=n[1],r=n[2],o=n[3];e.push(Cn(s,o));let a=s==Je&&o==Je;r[0]=="<"&&!a&&e.push(Cn(o,s))}function ns(i,e){switch(i){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 $e=new Set(["true","1"]),We=new Set(["false","0"]);function Cn(i,e){let t=$e.has(i)||We.has(i),n=$e.has(e)||We.has(e);return(s,r)=>{let o=i==Je||i==s,a=e==Je||e==r;return!o&&t&&typeof s=="boolean"&&(o=s?$e.has(i):We.has(i)),!a&&n&&typeof r=="boolean"&&(a=r?$e.has(e):We.has(e)),o&&a}}var Vn=":self",is=new RegExp(`s*${Vn}s*,?`,"g");function Qn(i,e,t,n){return new Tt(i).build(e,t,n)}var kn="",Tt=class{constructor(e){this._driver=e}build(e,t,n){let s=new Pt(t);return this._resetContextStyleTimingState(s),B(this,Ne(e),s)}_resetContextStyleTimingState(e){e.currentQuerySelector=kn,e.collectedStyles=new Map,e.collectedStyles.set(kn,new Map),e.currentTime=0}visitTrigger(e,t){let n=t.queryCount=0,s=t.depCount=0,r=[],o=[];return e.name.charAt(0)=="@"&&t.errors.push(gi()),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,r.push(this.visitState(l,t))}),l.name=c}else if(a.type==_.Transition){let l=this.visitTransition(a,t);n+=l.queryCount,s+=l.depCount,o.push(l)}else t.errors.push(yi())}),{type:_.Trigger,name:e.name,states:r,transitions:o,queryCount:n,depCount:s,options:null}}visitState(e,t){let n=this.visitStyle(e.styles,t),s=e.options&&e.options.params||null;if(n.containsDynamicStyles){let r=new Set,o=s||{};n.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{Un(l).forEach(c=>{o.hasOwnProperty(c)||r.add(c)})})}),r.size&&t.errors.push(_i(e.name,[...r.values()]))}return{type:_.State,name:e.name,style:n,options:s?{params:s}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let n=B(this,Ne(e.animation),t),s=es(e.expr,t.errors);return{type:_.Transition,matchers:s,animation:n,queryCount:t.queryCount,depCount:t.depCount,options:he(e.options)}}visitSequence(e,t){return{type:_.Sequence,steps:e.steps.map(n=>B(this,n,t)),options:he(e.options)}}visitGroup(e,t){let n=t.currentTime,s=0,r=e.steps.map(o=>{t.currentTime=n;let a=B(this,o,t);return s=Math.max(s,t.currentTime),a});return t.currentTime=s,{type:_.Group,steps:r,options:he(e.options)}}visitAnimate(e,t){let n=as(e.timings,t.errors);t.currentAnimateTimings=n;let s,r=e.styles?e.styles:x({});if(r.type==_.Keyframes)s=this.visitKeyframes(r,t);else{let o=e.styles,a=!1;if(!o){a=!0;let c={};n.easing&&(c.easing=n.easing),o=x(c)}t.currentTime+=n.duration+n.delay;let l=this.visitStyle(o,t);l.isEmptyStep=a,s=l}return t.currentAnimateTimings=null,{type:_.Animate,timings:n,style:s,options:null}}visitStyle(e,t){let n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){let n=[],s=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of s)typeof a=="string"?a===Y?n.push(a):t.errors.push(vi(a)):n.push(new Map(Object.entries(a)));let r=!1,o=null;return n.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!r)){for(let l of a.values())if(l.toString().indexOf(jn)>=0){r=!0;break}}}),{type:_.Style,styles:n,easing:o,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){let n=t.currentAnimateTimings,s=t.currentTime,r=t.currentTime;n&&r>0&&(r-=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&&(r!=s&&r>=h.startTime&&s<=h.endTime&&(t.errors.push(Si(l,h.startTime,h.endTime,r,s)),u=!1),r=h.startTime),u&&c.set(l,{startTime:r,endTime:s}),t.options&&Hi(a,t.options,t.errors)})})}visitKeyframes(e,t){let n={type:_.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(Ei()),n;let s=1,r=0,o=[],a=!1,l=!1,c=0,h=e.steps.map(P=>{let A=this._makeStyleAst(P,t),N=A.offset!=null?A.offset:os(A.styles),C=0;return N!=null&&(r++,C=A.offset=N),l=l||C<0||C>1,a=a||C0&&r{let N=v>0?A==y?1:v*A:o[A],C=N*b;t.currentTime=f+g.delay+C,g.duration=C,this._validateStyleAst(P,t),P.offset=N,n.styles.push(P)}),n}visitReference(e,t){return{type:_.Reference,animation:B(this,Ne(e.animation),t),options:he(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:_.AnimateChild,options:he(e.options)}}visitAnimateRef(e,t){return{type:_.AnimateRef,animation:this.visitReference(e.animation,t),options:he(e.options)}}visitQuery(e,t){let n=t.currentQuerySelector,s=e.options||{};t.queryCount++,t.currentQuery=e;let[r,o]=ss(e.selector);t.currentQuerySelector=n.length?n+" "+r:r,z(t.collectedStyles,t.currentQuerySelector,new Map);let a=B(this,Ne(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:_.Query,selector:r,limit:s.limit||0,optional:!!s.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:he(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(Pi());let n=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Xe(e.timings,t.errors,!0);return{type:_.Stagger,animation:B(this,Ne(e.animation),t),timings:n,options:null}}};function ss(i){let e=!!i.split(/\s*,\s*/).find(t=>t==Vn);return e&&(i=i.replace(is,"")),i=i.replace(/@\*/g,Ye).replace(/@\w+/g,t=>Ye+"-"+t.slice(1)).replace(/:animating/g,Et),[i,e]}function rs(i){return i?Be({},i):null}var Pt=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 os(i){if(typeof i=="string")return null;let e=null;if(Array.isArray(i))i.forEach(t=>{if(t instanceof Map&&t.has("offset")){let n=t;e=parseFloat(n.get("offset")),n.delete("offset")}});else if(i instanceof Map&&i.has("offset")){let t=i;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function as(i,e){if(i.hasOwnProperty("duration"))return i;if(typeof i=="number"){let r=Xe(i,e).duration;return pt(r,0,"")}let t=i;if(t.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=pt(0,0,"");return r.dynamic=!0,r.strValue=t,r}let s=Xe(t,e);return pt(s.duration,s.delay,s.easing)}function he(i){return i?(i=Be({},i),i.params&&(i.params=rs(i.params))):i={},i}function pt(i,e,t){return{duration:i,delay:e,easing:t}}function qt(i,e,t,n,s,r,o=null,a=!1){return{type:1,element:i,keyframes:e,preStyleProps:t,postStyleProps:n,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:a}}var Fe=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()}},ls=1,cs=":enter",us=new RegExp(cs,"g"),hs=":leave",ds=new RegExp(hs,"g");function $n(i,e,t,n,s,r=new Map,o=new Map,a,l,c=[]){return new At().buildKeyframes(i,e,t,n,s,r,o,a,l,c)}var At=class{buildKeyframes(e,t,n,s,r,o,a,l,c,h=[]){c=c||new Fe;let u=new Mt(e,t,c,s,r,h,[]);u.options=l;let v=l.delay?J(l.delay):0;u.currentTimeline.delayNextStep(v),u.currentTimeline.setStyles([o],null,u.errors,l),B(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 b=y[g];if(b.element===t){f=b;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,u.errors,l)}return y.length?y.map(f=>f.buildKeyframes()):[qt(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 s=t.createSubContext(e.options),r=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,s,s.options);r!=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 s of e){let r=s?.delay;if(r){let o=typeof r=="number"?r:J(Ie(r,s?.params??{},t.errors));n.delayNextStep(o)}}}_visitSubInstructions(e,t,n){let r=t.currentTimeline.currentTime,o=n.duration!=null?J(n.duration):null,a=n.delay!=null?J(n.delay):null;return o!==0&&e.forEach(l=>{let c=t.appendInstructionToTimeline(l,o,a);r=Math.max(r,c.duration+c.delay)}),r}visitReference(e,t){t.updateOptions(e.options,!0),B(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let n=t.subContextCount,s=t,r=e.options;if(r&&(r.params||r.delay)&&(s=t.createSubContext(r),s.transformIntoNewTimeline(),r.delay!=null)){s.previousNode.type==_.Style&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=et);let o=J(r.delay);s.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>B(this,o,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>n&&s.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let n=[],s=t.currentTimeline.currentTime,r=e.options&&e.options.delay?J(e.options.delay):0;e.steps.forEach(o=>{let a=t.createSubContext(e.options);r&&a.delayNextStep(r),B(this,o,a),s=Math.max(s,a.currentTimeline.currentTime),n.push(a.currentTimeline)}),n.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(s),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let n=e.strValue,s=t.params?Ie(n,t.params,t.errors):n;return Xe(s,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),s=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),s.snapshotCurrentStyles());let r=e.style;r.type==_.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),s.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let n=t.currentTimeline,s=t.currentAnimateTimings;!s&&n.hasCurrentStyleProperties()&&n.forwardFrame();let r=s&&s.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let n=t.currentAnimateTimings,s=t.currentTimeline.duration,r=n.duration,a=t.createSubContext().currentTimeline;a.easing=n.easing,e.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*r),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(s+r),t.previousNode=e}visitQuery(e,t){let n=t.currentTimeline.currentTime,s=e.options||{},r=s.delay?J(s.delay):0;r&&(t.previousNode.type===_.Style||n==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=et);let o=n,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!s.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,h)=>{t.currentQueryIndex=h;let u=t.createSubContext(e.options,c);r&&u.delayNextStep(r),c===t.element&&(l=u.currentTimeline),B(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,s=t.currentTimeline,r=e.timings,o=Math.abs(r.duration),a=o*(t.currentQueryTotal-1),l=o*t.currentQueryIndex;switch(r.duration<0?"reverse":r.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;B(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=s.currentTime-u+(s.startTime-n.currentTimeline.startTime)}},et={},Mt=class i{constructor(e,t,n,s,r,o,a,l){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=s,this._leaveClassName=r,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=et,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new tt(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let n=e,s=this.options;n.duration!=null&&(s.duration=J(n.duration)),n.delay!=null&&(s.delay=J(n.delay));let r=n.params;if(r){let o=s.params;o||(o=this.options.params={}),Object.keys(r).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=Ie(r[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(s=>{n[s]=t[s]})}}return e}createSubContext(e=null,t,n){let s=t||this.element,r=new i(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=et,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){let s={duration:t??e.duration,delay:this.currentTimeline.currentTime+(n??0)+e.delay,easing:""},r=new Ct(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,s,e.stretchStartingKeyframe);return this.timelines.push(r),s}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,n,s,r,o){let a=[];if(s&&a.push(this.element),e.length>0){e=e.replace(us,"."+this._enterClassName),e=e.replace(ds,"."+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!r&&a.length==0&&o.push(Ai(t)),a}},tt=class i{constructor(e,t,n,s){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=s,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 i(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+=ls,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||Y),this._currentKeyframe.set(t,Y);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,n,s){t&&this._previousKeyframe.set("easing",t);let r=s&&s.params||{},o=fs(e,this._globalTimelineStyles);for(let[a,l]of o){let c=Ie(l,r,n);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Y),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 s=this._styleSummary.get(n);(!s||t.time>s.time)&&this._updateStyle(n,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,n=this._keyframes.size===1&&this.duration===0,s=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((h,u)=>{h===Ve?e.add(u):h===Y&&t.add(u)}),n||c.set("offset",l/this.duration),s.push(c)});let r=[...e.values()],o=[...t.values()];if(n){let a=s[0],l=new Map(a);a.set("offset",0),l.set("offset",1),s=[a,l]}return qt(this.element,s,r,o,this.duration,this.startTime,this.easing,!1)}},Ct=class extends tt{constructor(e,t,n,s,r,o,a=!1){super(e,t,o.delay),this.keyframes=n,this.preStyleProps=s,this.postStyleProps=r,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:s}=this.timings;if(this._stretchStartingKeyframe&&t){let r=[],o=n+t,a=t/o,l=new Map(e[0]);l.set("offset",0),r.push(l);let c=new Map(e[0]);c.set("offset",On(a)),r.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",On(f/o)),r.push(v)}n=o,t=0,s="",e=r}return qt(this.element,e,this.preStyleProps,this.postStyleProps,n,t,s,!0)}};function On(i,e=3){let t=Math.pow(10,e-1);return Math.round(i*t)/t}function fs(i,e){let t=new Map,n;return i.forEach(s=>{if(s==="*"){n??=e.keys();for(let r of n)t.set(r,Y)}else for(let[r,o]of s)t.set(r,o)}),t}function Nn(i,e,t,n,s,r,o,a,l,c,h,u,v){return{type:0,element:i,triggerName:e,isRemovalTransition:s,fromState:t,fromStyles:r,toState:n,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:h,totalTime:u,errors:v}}var gt={},nt=class{constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}match(e,t,n,s){return ms(this.ast.matchers,e,t,n,s)}buildStyles(e,t,n){let s=this._stateStyles.get("*");return e!==void 0&&(s=this._stateStyles.get(e?.toString())||s),s?s.buildStyles(t,n):new Map}build(e,t,n,s,r,o,a,l,c,h){let u=[],v=this.ast.options&&this.ast.options.params||gt,y=a&&a.params||gt,f=this.buildStyles(n,y,u),g=l&&l.params||gt,b=this.buildStyles(s,g,u),P=new Set,A=new Map,N=new Map,C=s==="void",pe={params:Wn(g,v),delay:this.ast.options?.delay},$=h?[]:$n(e,t,this.ast.animation,r,o,f,b,pe,c,u),D=0;return $.forEach(I=>{D=Math.max(I.duration+I.delay,D)}),u.length?Nn(t,this._triggerName,n,s,C,f,b,[],[],A,N,D,u):($.forEach(I=>{let ie=I.element,ge=z(A,ie,new Set);I.preStyleProps.forEach(se=>ge.add(se));let $t=z(N,ie,new Set);I.postStyleProps.forEach(se=>$t.add(se)),ie!==t&&P.add(ie)}),Nn(t,this._triggerName,n,s,C,f,b,$,[...P.values()],A,N,D))}};function ms(i,e,t,n,s){return i.some(r=>r(e,t,n,s))}function Wn(i,e){let t=Be({},e);return Object.entries(i).forEach(([n,s])=>{s!=null&&(t[n]=s)}),t}var kt=class{constructor(e,t,n){this.styles=e,this.defaultParams=t,this.normalizer=n}buildStyles(e,t){let n=new Map,s=Wn(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((o,a)=>{o&&(o=Ie(o,s,t));let l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),n.set(a,o)})}),n}};function ps(i,e,t){return new Ot(i,e,t)}var Ot=class{constructor(e,t,n){this.name=e,this.ast=t,this._normalizer=n,this.transitionFactories=[],this.states=new Map,t.states.forEach(s=>{let r=s.options&&s.options.params||{};this.states.set(s.name,new kt(s.style,r,n))}),Dn(this.states,"true","1"),Dn(this.states,"false","0"),t.transitions.forEach(s=>{this.transitionFactories.push(new nt(e,s,this.states))}),this.fallbackTransition=gs(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,s){return this.transitionFactories.find(o=>o.match(e,t,n,s))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}};function gs(i,e,t){let n=[(o,a)=>!0],s={type:_.Sequence,steps:[],options:null},r={type:_.Transition,animation:s,matchers:n,options:null,queryCount:0,depCount:0};return new nt(i,r,e)}function Dn(i,e,t){i.has(e)?i.has(t)||i.set(t,i.get(e)):i.has(t)&&i.set(e,i.get(t))}var ys=new Fe,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=[],s=[],r=Qn(this._driver,t,n,s);if(n.length)throw Ni(n);s.length&&void 0,this._animations.set(e,r)}_buildPlayer(e,t,n){let s=e.element,r=Bn(this._normalizer,e.keyframes,t,n);return this._driver.animate(s,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,n={}){let s=[],r=this._animations.get(e),o,a=new Map;if(r?(o=$n(this._driver,t,r,qn,St,new Map,new Map,n,ys,s),o.forEach(h=>{let u=z(a,h.element,new Map);h.postStyleProps.forEach(v=>u.set(v,null))})):(s.push(Di()),o=[]),s.length)throw Ii(s);a.forEach((h,u)=>{h.forEach((v,y)=>{h.set(y,this._driver.computeStyle(u,y,Y))})});let l=o.map(h=>{let u=a.get(h.element);return this._buildPlayer(h,new Map,u)}),c=ne(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 Fi(e);return t}listen(e,t,n,s){let r=xt(t,"","","");return Lt(this._getPlayer(e),n,r,s),()=>{}}command(e,t,n,s){if(n=="register"){this.register(e,s[0]);return}if(n=="create"){let o=s[0]||{};this.create(e,t,o);return}let r=this._getPlayer(e);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(e);break}}},In="ng-animate-queued",_s=".ng-animate-queued",yt="ng-animate-disabled",vs=".ng-animate-disabled",Ss="ng-star-inserted",Es=".ng-star-inserted",bs=[],Gn={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ws={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Q="__ng_removed",Re=class{get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let n=e&&e.hasOwnProperty("value"),s=n?e.value:e;if(this.value=Ps(s),n){let r=e,{value:o}=r,a=Yt(r,["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(s=>{n[s]==null&&(n[s]=t[s])})}}},De="void",_t=new Re(De),Dt=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,U(t,this._hostClassName)}listen(e,t,n,s){if(!this._triggers.has(t))throw Ri(n,t);if(n==null||n.length==0)throw Li(t);if(!As(n))throw xi(n,t);let r=z(this._elementListeners,e,[]),o={name:t,phase:n,callback:s};r.push(o);let a=z(this._engine.statesByElement,e,new Map);return a.has(t)||(U(e,Qe),U(e,Qe+"-"+t),a.set(t,_t)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(o);l>=0&&r.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 Bi(e);return t}trigger(e,t,n,s=!0){let r=this._getTrigger(t),o=new Le(this.id,t,e),a=this._engine.statesByElement.get(e);a||(U(e,Qe),U(e,Qe+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t),c=new Re(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=_t),!(c.value===De)&&l.value===c.value){if(!ks(l.params,c.params)){let g=[],b=r.matchStyles(l.value,l.params,g),P=r.matchStyles(c.value,c.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{de(e,b),X(e,P)})}return}let v=z(this._engine.playersByElement,e,[]);v.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy()});let y=r.matchTransition(l.value,c.value,e,c.params),f=!1;if(!y){if(!s)return;y=r.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||(U(e,In),o.onStart(()=>{Te(e,In)})),o.onDone(()=>{let g=this.players.indexOf(o);g>=0&&this.players.splice(g,1);let b=this._engine.playersByElement.get(e);if(b){let P=b.indexOf(o);P>=0&&b.splice(P,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(s=>s.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,Ye,!0);n.forEach(s=>{if(s[Q])return;let r=this._engine.fetchNamespacesByElement(s);r.size?r.forEach(o=>o.triggerLeaveAnimation(s,t,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(e,t,n,s){let r=this._engine.statesByElement.get(e),o=new Map;if(r){let a=[];if(r.forEach((l,c)=>{if(o.set(c,l.value),this._triggers.has(c)){let h=this.trigger(e,c,De,s);h&&a.push(h)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),n&&ne(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 s=new Set;t.forEach(r=>{let o=r.name;if(s.has(o))return;s.add(o);let l=this._triggers.get(o).fallbackTransition,c=n.get(o)||_t,h=new Re(De),u=new Le(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 s=!1;if(n.totalAnimations){let r=n.players.length?n.playersByQueriedElement.get(e):[];if(r&&r.length)s=!0;else{let o=e;for(;o=o.parentNode;)if(n.statesByElement.get(o)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(e),s)n.markElementAsRemoved(this.id,e,!1,t);else{let r=e[Q];(!r||r===Gn)&&(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t))}}insertNode(e,t){U(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(n=>{let s=n.player;if(s.destroyed)return;let r=n.element,o=this._elementListeners.get(r);o&&o.forEach(a=>{if(a.name==n.triggerName){let l=xt(r,n.triggerName,n.fromState.value,n.toState.value);l._data=e,Lt(n.player,a.phase,l,a.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):t.push(n)}),this._queue=[],t.sort((n,s)=>{let r=n.transition.ast.depCount,o=s.transition.ast.depCount;return r==0||o==0?r-o:this._engine.driver.containsElement(n.element,s.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},It=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=(s,r)=>{}}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 Dt(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,s=this.namespacesByHostElement;if(n.length-1>=0){let o=!1,a=this.driver.getParentElement(t);for(;a;){let l=s.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 s.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 s=this._namespaceLookup[e];s&&s.register(t,n)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(e);this.namespacesByHostElement.delete(n.hostElement);let s=this._namespaceList.indexOf(n);s>=0&&this._namespaceList.splice(s,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 s of n.values())if(s.namespaceId){let r=this._fetchNamespace(s.namespaceId);r&&t.add(r)}}return t}trigger(e,t,n,s){if(Ge(t)){let r=this._fetchNamespace(e);if(r)return r.trigger(t,n,s),!0}return!1}insertNode(e,t,n,s){if(!Ge(t))return;let r=t[Q];if(r&&r.setForRemoval){r.setForRemoval=!1,r.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)}s&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),U(e,yt)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Te(e,yt))}removeNode(e,t,n){if(Ge(t)){let s=e?this._fetchNamespace(e):null;s?s.removeNode(t,n):this.markElementAsRemoved(e,t,!1,n);let r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,n)}else this._onRemovalComplete(t,n)}markElementAsRemoved(e,t,n,s,r){this.collectedLeaveElements.push(t),t[Q]={namespaceId:e,setForRemoval:s,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:r}}listen(e,t,n,s,r){return Ge(t)?this._fetchNamespace(e).listen(t,n,s,r):()=>{}}_buildInstruction(e,t,n,s,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,s,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,Ye,!0);t.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,Et,!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 ne(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[Q];if(t&&t.setForRemoval){if(e[Q]=Gn,t.namespaceId){this.destroyInnerAnimations(e);let n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(yt)&&this.markElementAsDisabled(e,!1),this.driver.query(e,vs,!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,s)=>this._balanceNamespaceList(n,s)),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?ne(t).onDone(()=>{n.forEach(s=>s())}):n.forEach(s=>s())}}reportError(e){throw zi(e)}_flushAnimations(e,t){let n=new Fe,s=[],r=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,_s,!0);for(let p=0;p{let p=qn+g++;f.set(m,p),d.forEach(S=>U(S,p))});let b=[],P=new Set,A=new Set;for(let d=0;dP.add(S)):A.add(m))}let N=new Map,C=Ln(v,Array.from(P));C.forEach((d,m)=>{let p=St+g++;N.set(m,p),d.forEach(S=>U(S,p))}),e.push(()=>{y.forEach((d,m)=>{let p=f.get(m);d.forEach(S=>Te(S,p))}),C.forEach((d,m)=>{let p=N.get(m);d.forEach(S=>Te(S,p))}),b.forEach(d=>{this.processLeaveNode(d)})});let pe=[],$=[];for(let d=this._namespaceList.length-1;d>=0;d--)this._namespaceList[d].drainQueuedTransitions(t).forEach(p=>{let S=p.player,M=p.element;if(pe.push(S),this.collectedEnterElements.length){let k=M[Q];if(k&&k.setForMove){if(k.previousTriggersValues&&k.previousTriggersValues.has(p.triggerName)){let re=k.previousTriggersValues.get(p.triggerName),K=this.statesByElement.get(p.element);if(K&&K.has(p.triggerName)){let xe=K.get(p.triggerName);xe.value=re,K.set(p.triggerName,xe)}}S.destroy();return}}let W=!u||!this.driver.containsElement(u,M),R=N.get(M),ee=f.get(M),w=this._buildInstruction(p,n,ee,R,W);if(w.errors&&w.errors.length){$.push(w);return}if(W){S.onStart(()=>de(M,w.fromStyles)),S.onDestroy(()=>X(M,w.toStyles)),s.push(S);return}if(p.isFallbackTransition){S.onStart(()=>de(M,w.fromStyles)),S.onDestroy(()=>X(M,w.toStyles)),s.push(S);return}let Ht=[];w.timelines.forEach(k=>{k.stretchStartingKeyframe=!0,this.disabledNodes.has(k.element)||Ht.push(k)}),w.timelines=Ht,n.append(M,w.timelines);let ti={instruction:w,player:S,element:M};o.push(ti),w.queriedElements.forEach(k=>z(a,k,[]).push(S)),w.preStyleProps.forEach((k,re)=>{if(k.size){let K=l.get(re);K||l.set(re,K=new Set),k.forEach((xe,lt)=>K.add(lt))}}),w.postStyleProps.forEach((k,re)=>{let K=c.get(re);K||c.set(re,K=new Set),k.forEach((xe,lt)=>K.add(lt))})});if($.length){let d=[];$.forEach(m=>{d.push(Ki(m.triggerName,m.errors))}),pe.forEach(m=>m.destroy()),this.reportError(d)}let D=new Map,I=new Map;o.forEach(d=>{let m=d.element;n.has(m)&&(I.set(m,m),this._beforeAnimationBuild(d.player.namespaceId,d.instruction,D))}),s.forEach(d=>{let m=d.element;this._getPreviousPlayers(m,!1,d.namespaceId,d.triggerName,null).forEach(S=>{z(D,m,[]).push(S),S.destroy()})});let ie=b.filter(d=>xn(d,l,c)),ge=new Map;Rn(ge,this.driver,A,c,Y).forEach(d=>{xn(d,l,c)&&ie.push(d)});let se=new Map;y.forEach((d,m)=>{Rn(se,this.driver,new Set(d),l,Ve)}),ie.forEach(d=>{let m=ge.get(d),p=se.get(d);ge.set(d,new Map([...m?.entries()??[],...p?.entries()??[]]))});let at=[],Wt=[],Gt={};o.forEach(d=>{let{element:m,player:p,instruction:S}=d;if(n.has(m)){if(h.has(m)){p.onDestroy(()=>X(m,S.toStyles)),p.disabled=!0,p.overrideTotalTime(S.totalTime),s.push(p);return}let M=Gt;if(I.size>1){let R=m,ee=[];for(;R=R.parentNode;){let w=I.get(R);if(w){M=w;break}ee.push(R)}ee.forEach(w=>I.set(w,M))}let W=this._buildAnimation(p.namespaceId,S,D,r,se,ge);if(p.setRealPlayer(W),M===Gt)at.push(p);else{let R=this.playersByElement.get(M);R&&R.length&&(p.parentPlayer=ne(R)),s.push(p)}}else de(m,S.fromStyles),p.onDestroy(()=>X(m,S.toStyles)),Wt.push(p),h.has(m)&&s.push(p)}),Wt.forEach(d=>{let m=r.get(d.element);if(m&&m.length){let p=ne(m);d.setRealPlayer(p)}}),s.forEach(d=>{d.parentPlayer?d.syncPlayerEvents(d.parentPlayer):d.destroy()});for(let d=0;d!W.destroyed);M.length?Ms(this,m,M):this.processLeaveNode(m)}return b.length=0,at.forEach(d=>{this.players.push(d),d.onDone(()=>{d.destroy();let m=this.players.indexOf(d);this.players.splice(m,1)}),d.play()}),at}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,n,s,r){let o=[];if(t){let a=this.playersByQueriedElement.get(e);a&&(o=a)}else{let a=this.playersByElement.get(e);if(a){let l=!r||r==De;a.forEach(c=>{c.queued||!l&&c.triggerName!=s||o.push(c)})}}return(n||s)&&(o=o.filter(a=>!(n&&n!=a.namespaceId||s&&s!=a.triggerName))),o}_beforeAnimationBuild(e,t,n){let s=t.triggerName,r=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:s;for(let l of t.timelines){let c=l.element,h=c!==r,u=z(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)})}de(r,t.fromStyles)}_buildAnimation(e,t,n,s,r,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 b=g[Q];if(b&&b.removedBeforeQueried)return new te(f.duration,f.delay);let P=g!==l,A=Cs((n.get(g)||bs).map(D=>D.getRealPlayer())).filter(D=>{let I=D;return I.element?I.element===g:!1}),N=r.get(g),C=o.get(g),pe=Bn(this._normalizer,f.keyframes,N,C),$=this._buildPlayer(f,pe,A);if(f.subTimeline&&s&&u.add(g),P){let D=new Le(e,a,g);D.setRealPlayer($),c.push(D)}return $});c.forEach(f=>{z(this.playersByQueriedElement,f.element,[]).push(f),f.onDone(()=>Ts(this.playersByQueriedElement,f.element,f))}),h.forEach(f=>U(f,Mn));let y=ne(v);return y.onDestroy(()=>{h.forEach(f=>Te(f,Mn)),X(l,t.toStyles)}),u.forEach(f=>{z(s,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 te(e.duration,e.delay)}},Le=class{constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new te,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(s=>Lt(e,n,void 0,s))}),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){z(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 Ts(i,e,t){let n=i.get(e);if(n){if(n.length){let s=n.indexOf(t);n.splice(s,1)}n.length==0&&i.delete(e)}return n}function Ps(i){return i??null}function Ge(i){return i&&i.nodeType===1}function As(i){return i=="start"||i=="done"}function Fn(i,e){let t=i.style.display;return i.style.display=e??"none",t}function Rn(i,e,t,n,s){let r=[];t.forEach(l=>r.push(Fn(l)));let o=[];n.forEach((l,c)=>{let h=new Map;l.forEach(u=>{let v=e.computeStyle(c,u,s);h.set(u,v),(!v||v.length==0)&&(c[Q]=ws,o.push(c))}),i.set(c,h)});let a=0;return t.forEach(l=>Fn(l,r[a++])),o}function Ln(i,e){let t=new Map;if(i.forEach(a=>t.set(a,[])),e.length==0)return t;let n=1,s=new Set(e),r=new Map;function o(a){if(!a)return n;let l=r.get(a);if(l)return l;let c=a.parentNode;return t.has(c)?l=c:s.has(c)?l=n:l=o(c),r.set(a,l),l}return e.forEach(a=>{let l=o(a);l!==n&&t.get(l).push(a)}),t}function U(i,e){i.classList?.add(e)}function Te(i,e){i.classList?.remove(e)}function Ms(i,e,t){ne(t).onDone(()=>i.processLeaveNode(e))}function Cs(i){let e=[];return Hn(i,e),e}function Hn(i,e){for(let t=0;ts.add(r)):e.set(i,n),t.delete(i),!0}var Pe=class{constructor(e,t,n){this._driver=t,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(s,r)=>{},this._transitionEngine=new It(e.body,t,n),this._timelineEngine=new Nt(e.body,t,n),this._transitionEngine.onRemovalComplete=(s,r)=>this.onRemovalComplete(s,r)}registerTrigger(e,t,n,s,r){let o=e+"-"+s,a=this._triggerCache[o];if(!a){let l=[],c=[],h=Qn(this._driver,r,l,c);if(l.length)throw ki(s,l);c.length&&void 0,a=ps(s,h,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,s,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,n,s){this._transitionEngine.insertNode(e,t,n,s)}onRemove(e,t,n){this._transitionEngine.removeNode(e,t,n)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,n,s){if(n.charAt(0)=="@"){let[r,o]=Pn(n),a=s;this._timelineEngine.command(r,t,o,a)}else this._transitionEngine.trigger(e,t,n,s)}listen(e,t,n,s,r){if(n.charAt(0)=="@"){let[o,a]=Pn(n);return this._timelineEngine.listen(o,t,a,r)}return this._transitionEngine.listen(e,t,n,s,r)}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 Os(i,e){let t=null,n=null;return Array.isArray(e)&&e.length?(t=vt(e[0]),e.length>1&&(n=vt(e[e.length-1]))):e instanceof Map&&(t=vt(e)),t||n?new Ft(i,t,n):null}var Ft=class i{static{this.initialStylesByElement=new WeakMap}constructor(e,t,n){this._element=e,this._startStyles=t,this._endStyles=n,this._state=0;let s=i.initialStylesByElement.get(e);s||i.initialStylesByElement.set(e,s=new Map),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&X(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(X(this._element,this._initialStyles),this._endStyles&&(X(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(i.initialStylesByElement.delete(this._element),this._startStyles&&(de(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(de(this._element,this._endStyles),this._endStyles=null),X(this._element,this._initialStyles),this._state=3)}};function vt(i){let e=null;return i.forEach((t,n)=>{Ns(n)&&(e=e||new Map,e.set(n,t))}),e}function Ns(i){return i==="display"||i==="position"}var it=class{constructor(e,t,n,s){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=s,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,s)=>{s!=="offset"&&e.set(s,this._finished?n:jt(this.element,s))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0}},st=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return zn(e,t)}getParentElement(e){return Bt(e)}query(e,t,n){return Kn(e,t,n)}computeStyle(e,t,n){return jt(e,t)}animate(e,t,n,s,r,o=[]){let a=s==0?"both":"forwards",l={duration:n,delay:s,fill:a};r&&(l.easing=r);let c=new Map,h=o.filter(y=>y instanceof it);Xi(n,s)&&h.forEach(y=>{y.currentSnapshot.forEach((f,g)=>c.set(g,f))});let u=Gi(t).map(y=>new Map(y));u=Zi(e,u,c);let v=Os(e,u);return new it(e,u,l,v)}};var He="@",Yn="@.disabled",rt=class{constructor(e,t,n,s){this.namespaceId=e,this.delegate=t,this.engine=n,this._onDestroy=s,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,s=!0){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,s)}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,s){this.delegate.setAttribute(e,t,n,s)}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,s){this.delegate.setStyle(e,t,n,s)}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){t.charAt(0)==He&&t==Yn?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 rt{constructor(e,t,n,s,r){super(t,n,s,r),this.factory=e,this.namespaceId=t}setProperty(e,t,n){t.charAt(0)==He?t.charAt(1)=="."&&t==Yn?(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)==He){let s=Ds(e),r=t.slice(1),o="";return r.charAt(0)!=He&&([r,o]=Is(r)),this.engine.listen(this.namespaceId,s,r,o,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,n,a)})}return this.delegate.listen(e,t,n)}};function Ds(i){switch(i){case"body":return document.body;case"document":return document;case"window":return window;default:return i}}function Is(i){let e=i.indexOf("."),t=i.substring(0,e),n=i.slice(e+1);return[t,n]}var ot=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=(s,r)=>{r?.removeChild(null,s)}}createRenderer(e,t){let n="",s=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let c=this._rendererCache,h=c.get(s);if(!h){let u=()=>c.delete(s);h=new rt(n,s,this.engine,u),c.set(s,h)}return h}let r=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(r,o,e,c.name,c)};return t.data.animation.forEach(a),new Rt(this,o,s,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 s=this._animationCallbacksBuffer;s.length==0&&queueMicrotask(()=>{this._zone.run(()=>{s.forEach(r=>{let[o,a]=r;o(a)}),this._animationCallbacksBuffer=[]})}),s.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 Rs=(()=>{class i extends Pe{constructor(t,n,s){super(t,n,s)}ngOnDestroy(){this.flush()}static{this.\u0275fac=function(n){return new(n||i)(q(nn),q(fe),q(me))}}static{this.\u0275prov=j({token:i,factory:i.\u0275fac})}}return i})();function Ls(){return new Ze}function xs(i,e,t){return new ot(i,e,t)}var Zn=[{provide:me,useFactory:Ls},{provide:Pe,useClass:Rs},{provide:en,useFactory:xs,deps:[ln,Pe,Xt]}],Xn=[{provide:fe,useFactory:()=>new st},{provide:ct,useValue:"BrowserAnimations"},...Zn],Bs=[{provide:fe,useClass:zt},{provide:ct,useValue:"NoopAnimations"},...Zn],Jn=(()=>{class i{static withConfig(t){return{ngModule:i,providers:t.disableAnimations?Bs:Xn}}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=Me({type:i})}static{this.\u0275inj=Ae({providers:Xn,imports:[je]})}}return i})();var Ut=(()=>{class i{constructor(t){this.router=t}canActivate(){return localStorage.getItem("waw_user")?!0:(this.router.navigateByUrl("/sign"),!1)}static{this.\u0275fac=function(n){return new(n||i)(q(be))}}static{this.\u0275prov=j({token:i,factory:i.\u0275fac})}}return i})();var Vt=(()=>{class i{constructor(t){this.router=t}canActivate(){return localStorage.getItem("waw_user")?(this.router.navigateByUrl("/profile"),!1):!0}static{this.\u0275fac=function(n){return new(n||i)(q(be))}}static{this.\u0275prov=j({token:i,factory:i.\u0275fac})}}return i})();var Qt=(()=>{class i{constructor(t){this.router=t}canActivate(){if(localStorage.getItem("waw_user")){let t=JSON.parse(localStorage.getItem("waw_user"));return t.is&&t.is.admin?!0:(this.router.navigate(["/profile"]),!1)}else return this.router.navigate(["/sign"]),!1}static{this.\u0275fac=function(n){return new(n||i)(q(be))}}static{this.\u0275prov=j({token:i,factory:i.\u0275fac})}}return i})();var zs=[{path:"",redirectTo:"/sign",pathMatch:"full"},{path:"",canActivate:[Vt],component:vn,children:[{path:"sign",canActivate:[we],data:{meta:{title:"Sign"}},loadChildren:()=>import("./chunk-ZDLWVYP3.js").then(i=>i.SignModule)}]},{path:"",canActivate:[Ut],component:ft,children:[{path:"profile",canActivate:[we],data:{meta:{title:"My Profile"}},loadChildren:()=>import("./chunk-RTQKOSQJ.js").then(i=>i.ProfileModule)}]},{path:"admin",canActivate:[Qt],component:ft,children:[{path:"users",canActivate:[we],data:{meta:{title:"Users"}},loadChildren:()=>import("./chunk-P4ABI5WT.js").then(i=>i.UsersModule)},{path:"forms",canActivate:[we],data:{meta:{title:"Forms"}},loadChildren:()=>import("./chunk-NWCEFA7O.js").then(i=>i.CustomformsModule)},{path:"translates",canActivate:[we],data:{meta:{title:"Translates"}},loadChildren:()=>import("./chunk-AZGCLL5W.js").then(i=>i.TranslatesModule)}]},{path:"**",redirectTo:"profile",pathMatch:"full"}],ei=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=Me({type:i,bootstrap:[wn]})}static{this.\u0275inj=Ae({providers:[Ut,Vt,Qt,{provide:sn,useClass:rn}],imports:[_n,je,Jn,pn.forRoot({store:{},http:{url:ae.url},socket:ae.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:{}},alert:{alerts:{}},loader:{loaders:{}},popup:{popups:{}}}),fn.forRoot(zs,{scrollPositionRestoration:"enabled",preloadingStrategy:dn})]})}}return i})();ae.production&&void 0;cn().bootstrapModule(ei).catch(i=>console.error(i)); 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-QLBWGKOY.js b/polyfills-QLBWGKOY.js new file mode 100644 index 0000000..607a8dd --- /dev/null +++ b/polyfills-QLBWGKOY.js @@ -0,0 +1,2 @@ +var ce=globalThis;function ee(e){return(ce.__Zone_symbol_prefix||"__zone_symbol__")+e}function dt(){let e=ce.performance;function r(N){e&&e.mark&&e.mark(N)}function c(N,_){e&&e.measure&&e.measure(N,_)}r("Zone");let t=(()=>{class N{static{this.__symbol__=ee}static assertZonePatched(){if(ce.Promise!==O.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 n=N.current;for(;n.parent;)n=n.parent;return n}static get current(){return b.zone}static get currentTask(){return S}static __load_patch(n,o,p=!1){if(O.hasOwnProperty(n)){let P=ce[ee("forceDuplicateZoneCheck")]===!0;if(!p&&P)throw Error("Already loaded patch: "+n)}else if(!ce["__Zone_disable_"+n]){let P="Zone:"+n;r(P),O[n]=o(ce,N,R),c(P,P)}}get parent(){return this._parent}get name(){return this._name}constructor(n,o){this._parent=n,this._name=o?o.name||"unnamed":"",this._properties=o&&o.properties||{},this._zoneDelegate=new u(this,this._parent&&this._parent._zoneDelegate,o)}get(n){let o=this.getZoneWith(n);if(o)return o._properties[n]}getZoneWith(n){let o=this;for(;o;){if(o._properties.hasOwnProperty(n))return o;o=o._parent}return null}fork(n){if(!n)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,n)}wrap(n,o){if(typeof n!="function")throw new Error("Expecting function got: "+n);let p=this._zoneDelegate.intercept(this,n,o),P=this;return function(){return P.runGuarded(p,this,arguments,o)}}run(n,o,p,P){b={parent:b,zone:this};try{return this._zoneDelegate.invoke(this,n,o,p,P)}finally{b=b.parent}}runGuarded(n,o=null,p,P){b={parent:b,zone:this};try{try{return this._zoneDelegate.invoke(this,n,o,p,P)}catch(q){if(this._zoneDelegate.handleError(this,q))throw q}}finally{b=b.parent}}runTask(n,o,p){if(n.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(n.zone||K).name+"; Execution: "+this.name+")");let P=n,{type:q,data:{isPeriodic:A=!1,isRefreshable:_e=!1}={}}=n;if(n.state===X&&(q===z||q===g))return;let ae=n.state!=j;ae&&P._transitionTo(j,h);let le=S;S=P,b={parent:b,zone:this};try{q==g&&n.data&&!A&&!_e&&(n.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,P,o,p)}catch(ne){if(this._zoneDelegate.handleError(this,ne))throw ne}}finally{let ne=n.state;if(ne!==X&&ne!==Y)if(q==z||A||_e&&ne===k)ae&&P._transitionTo(h,j,k);else{let f=P._zoneDelegates;this._updateTaskCount(P,-1),ae&&P._transitionTo(X,j,X),_e&&(P._zoneDelegates=f)}b=b.parent,S=le}}scheduleTask(n){if(n.zone&&n.zone!==this){let p=this;for(;p;){if(p===n.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${n.zone.name}`);p=p.parent}}n._transitionTo(k,X);let o=[];n._zoneDelegates=o,n._zone=this;try{n=this._zoneDelegate.scheduleTask(this,n)}catch(p){throw n._transitionTo(Y,k,X),this._zoneDelegate.handleError(this,p),p}return n._zoneDelegates===o&&this._updateTaskCount(n,1),n.state==k&&n._transitionTo(h,k),n}scheduleMicroTask(n,o,p,P){return this.scheduleTask(new E(G,n,o,p,P,void 0))}scheduleMacroTask(n,o,p,P,q){return this.scheduleTask(new E(g,n,o,p,P,q))}scheduleEventTask(n,o,p,P,q){return this.scheduleTask(new E(z,n,o,p,P,q))}cancelTask(n){if(n.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(n.zone||K).name+"; Execution: "+this.name+")");if(!(n.state!==h&&n.state!==j)){n._transitionTo(V,h,j);try{this._zoneDelegate.cancelTask(this,n)}catch(o){throw n._transitionTo(Y,V),this._zoneDelegate.handleError(this,o),o}return this._updateTaskCount(n,-1),n._transitionTo(X,V),n.runCount=-1,n}}_updateTaskCount(n,o){let p=n._zoneDelegates;o==-1&&(n._zoneDelegates=null);for(let P=0;PN.hasTask(n,o),onScheduleTask:(N,_,n,o)=>N.scheduleTask(n,o),onInvokeTask:(N,_,n,o,p,P)=>N.invokeTask(n,o,p,P),onCancelTask:(N,_,n,o)=>N.cancelTask(n,o)};class u{get zone(){return this._zone}constructor(_,n,o){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this._zone=_,this._parentDelegate=n,this._forkZS=o&&(o&&o.onFork?o:n._forkZS),this._forkDlgt=o&&(o.onFork?n:n._forkDlgt),this._forkCurrZone=o&&(o.onFork?this._zone:n._forkCurrZone),this._interceptZS=o&&(o.onIntercept?o:n._interceptZS),this._interceptDlgt=o&&(o.onIntercept?n:n._interceptDlgt),this._interceptCurrZone=o&&(o.onIntercept?this._zone:n._interceptCurrZone),this._invokeZS=o&&(o.onInvoke?o:n._invokeZS),this._invokeDlgt=o&&(o.onInvoke?n:n._invokeDlgt),this._invokeCurrZone=o&&(o.onInvoke?this._zone:n._invokeCurrZone),this._handleErrorZS=o&&(o.onHandleError?o:n._handleErrorZS),this._handleErrorDlgt=o&&(o.onHandleError?n:n._handleErrorDlgt),this._handleErrorCurrZone=o&&(o.onHandleError?this._zone:n._handleErrorCurrZone),this._scheduleTaskZS=o&&(o.onScheduleTask?o:n._scheduleTaskZS),this._scheduleTaskDlgt=o&&(o.onScheduleTask?n:n._scheduleTaskDlgt),this._scheduleTaskCurrZone=o&&(o.onScheduleTask?this._zone:n._scheduleTaskCurrZone),this._invokeTaskZS=o&&(o.onInvokeTask?o:n._invokeTaskZS),this._invokeTaskDlgt=o&&(o.onInvokeTask?n:n._invokeTaskDlgt),this._invokeTaskCurrZone=o&&(o.onInvokeTask?this._zone:n._invokeTaskCurrZone),this._cancelTaskZS=o&&(o.onCancelTask?o:n._cancelTaskZS),this._cancelTaskDlgt=o&&(o.onCancelTask?n:n._cancelTaskDlgt),this._cancelTaskCurrZone=o&&(o.onCancelTask?this._zone:n._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;let p=o&&o.onHasTask,P=n&&n._hasTaskZS;(p||P)&&(this._hasTaskZS=p?o:i,this._hasTaskDlgt=n,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,o.onScheduleTask||(this._scheduleTaskZS=i,this._scheduleTaskDlgt=n,this._scheduleTaskCurrZone=this._zone),o.onInvokeTask||(this._invokeTaskZS=i,this._invokeTaskDlgt=n,this._invokeTaskCurrZone=this._zone),o.onCancelTask||(this._cancelTaskZS=i,this._cancelTaskDlgt=n,this._cancelTaskCurrZone=this._zone))}fork(_,n){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,_,n):new t(_,n)}intercept(_,n,o){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,_,n,o):n}invoke(_,n,o,p,P){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,_,n,o,p,P):n.apply(o,p)}handleError(_,n){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,_,n):!0}scheduleTask(_,n){let o=n;if(this._scheduleTaskZS)this._hasTaskZS&&o._zoneDelegates.push(this._hasTaskDlgtOwner),o=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,_,n),o||(o=n);else if(n.scheduleFn)n.scheduleFn(n);else if(n.type==G)U(n);else throw new Error("Task is missing scheduleFn.");return o}invokeTask(_,n,o,p){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,_,n,o,p):n.callback.apply(o,p)}cancelTask(_,n){let o;if(this._cancelTaskZS)o=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,_,n);else{if(!n.cancelFn)throw Error("Task is not cancelable");o=n.cancelFn(n)}return o}hasTask(_,n){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,_,n)}catch(o){this.handleError(_,o)}}_updateTaskCount(_,n){let o=this._taskCounts,p=o[_],P=o[_]=p+n;if(P<0)throw new Error("More tasks executed then were scheduled.");if(p==0||P==0){let q={microTask:o.microTask>0,macroTask:o.macroTask>0,eventTask:o.eventTask>0,change:_};this.hasTask(this._zone,q)}}}class E{constructor(_,n,o,p,P,q){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=_,this.source=n,this.data=p,this.scheduleFn=P,this.cancelFn=q,!o)throw new Error("callback is not defined");this.callback=o;let A=this;_===z&&p&&p.useG?this.invoke=E.invokeTask:this.invoke=function(){return E.invokeTask.call(ce,A,this,arguments)}}static invokeTask(_,n,o){_||(_=this),Q++;try{return _.runCount++,_.zone.runTask(_,n,o)}finally{Q==1&&J(),Q--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(X,k)}_transitionTo(_,n,o){if(this._state===n||this._state===o)this._state=_,_==X&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${_}', expecting state '${n}'${o?" or '"+o+"'":""}, 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 T=ee("setTimeout"),y=ee("Promise"),D=ee("then"),d=[],w=!1,Z;function x(N){if(Z||ce[y]&&(Z=ce[y].resolve(0)),Z){let _=Z[D];_||(_=Z.then),_.call(Z,N)}else ce[T](N,0)}function U(N){Q===0&&d.length===0&&x(J),N&&d.push(N)}function J(){if(!w){for(w=!0;d.length;){let N=d;d=[];for(let _=0;_b,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:U,showUncaughtError:()=>!t[ee("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:W,patchMethod:()=>W,bindArguments:()=>[],patchThen:()=>W,patchMacroTask:()=>W,patchEventPrototype:()=>W,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>W,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>W,wrapWithCurrentZone:()=>W,filterProperties:()=>[],attachOriginToPatched:()=>W,_redefineProperty:()=>W,patchCallbacks:()=>W,nativeScheduleMicroTask:x},b={parent:null,zone:new t(null,null)},S=null,Q=0;function W(){}return c("Zone","Zone"),t}function _t(){let e=globalThis,r=e[ee("forceDuplicateZoneCheck")]===!0;if(e.Zone&&(r||typeof e.Zone.__symbol__!="function"))throw new Error("Zone already loaded.");return e.Zone??=dt(),e.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),ue="true",fe="false",Pe=ee("");function Ve(e,r){return Zone.current.wrap(e,r)}function Ge(e,r,c,t,i){return Zone.current.scheduleMacroTask(e,r,c,t,i)}var H=ee,De=typeof window<"u",pe=De?window:void 0,$=De&&pe||globalThis,gt="removeAttribute";function Fe(e,r){for(let c=e.length-1;c>=0;c--)typeof e[c]=="function"&&(e[c]=Ve(e[c],r+"_"+c));return e}function mt(e,r){let c=e.constructor.name;for(let t=0;t{let y=function(){return T.apply(this,Fe(arguments,c+"."+i))};return de(y,T),y})(u)}}}function tt(e){return e?e.writable===!1?!1:!(typeof e.get=="function"&&typeof e.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={},yt=H("enable_beforeunload"),Ye=function(e){if(e=e||$.event,!e)return;let r=Ce[e.type];r||(r=Ce[e.type]=H("ON_PROPERTY"+e.type));let c=this||e.target||$,t=c[r],i;if(Be&&c===pe&&e.type==="error"){let u=e;i=t&&t.call(this,u.message,u.filename,u.lineno,u.colno,u.error),i===!0&&e.preventDefault()}else i=t&&t.apply(this,arguments),e.type==="beforeunload"&&$[yt]&&typeof i=="string"?e.returnValue=i:i!=null&&!i&&e.preventDefault();return i};function $e(e,r,c){let t=be(e,r);if(!t&&c&&be(c,r)&&(t={enumerable:!0,configurable:!0}),!t||!t.configurable)return;let i=H("on"+r+"patched");if(e.hasOwnProperty(i)&&e[i])return;delete t.writable,delete t.value;let u=t.get,E=t.set,T=r.slice(2),y=Ce[T];y||(y=Ce[T]=H("ON_PROPERTY"+T)),t.set=function(D){let d=this;if(!d&&e===$&&(d=$),!d)return;typeof d[y]=="function"&&d.removeEventListener(T,Ye),E&&E.call(d,null),d[y]=D,typeof D=="function"&&d.addEventListener(T,Ye,!1)},t.get=function(){let D=this;if(!D&&e===$&&(D=$),!D)return null;let d=D[y];if(d)return d;if(u){let w=u.call(this);if(w)return t.set.call(this,w),typeof D[gt]=="function"&&D.removeAttribute(r),w}return null},Ae(e,r,t),e[i]=!0}function ot(e,r,c){if(r)for(let t=0;tfunction(E,T){let y=c(E,T);return y.cbIdx>=0&&typeof T[y.cbIdx]=="function"?Ge(y.name,T[y.cbIdx],y,i):u.apply(E,T)})}function de(e,r){e[H("OriginalDelegate")]=r}var Je=!1,Me=!1;function kt(){try{let e=pe.navigator.userAgent;if(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1)return!0}catch{}return!1}function vt(){if(Je)return Me;Je=!0;try{let e=pe.navigator.userAgent;(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1||e.indexOf("Edge/")!==-1)&&(Me=!0)}catch{}return Me}function Ke(e){return typeof e=="function"}function Qe(e){return typeof e=="number"}var ye=!1;if(typeof window<"u")try{let e=Object.defineProperty({},"passive",{get:function(){ye=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{ye=!1}var bt={useG:!0},te={},st={},it=new RegExp("^"+Pe+"(\\w+)(true|false)$"),ct=H("propagationStopped");function at(e,r){let c=(r?r(e):e)+fe,t=(r?r(e):e)+ue,i=Pe+c,u=Pe+t;te[e]={},te[e][fe]=i,te[e][ue]=u}function Pt(e,r,c,t){let i=t&&t.add||He,u=t&&t.rm||xe,E=t&&t.listeners||"eventListeners",T=t&&t.rmAll||"removeAllListeners",y=H(i),D="."+i+":",d="prependListener",w="."+d+":",Z=function(k,h,j){if(k.isRemoved)return;let V=k.callback;typeof V=="object"&&V.handleEvent&&(k.callback=g=>V.handleEvent(g),k.originalDelegate=V);let Y;try{k.invoke(k,h,[j])}catch(g){Y=g}let G=k.options;if(G&&typeof G=="object"&&G.once){let g=k.originalDelegate?k.originalDelegate:k.callback;h[u].call(h,j.type,g,G)}return Y};function x(k,h,j){if(h=h||e.event,!h)return;let V=k||h.target||e,Y=V[te[h.type][j?ue:fe]];if(Y){let G=[];if(Y.length===1){let g=Z(Y[0],V,h);g&&G.push(g)}else{let g=Y.slice();for(let z=0;z{throw z})}}}let U=function(k){return x(this,k,!1)},J=function(k){return x(this,k,!0)};function K(k,h){if(!k)return!1;let j=!0;h&&h.useG!==void 0&&(j=h.useG);let V=h&&h.vh,Y=!0;h&&h.chkDup!==void 0&&(Y=h.chkDup);let G=!1;h&&h.rt!==void 0&&(G=h.rt);let g=k;for(;g&&!g.hasOwnProperty(i);)g=je(g);if(!g&&k[i]&&(g=k),!g||g[y])return!1;let z=h&&h.eventNameToString,O={},R=g[y]=g[i],b=g[H(u)]=g[u],S=g[H(E)]=g[E],Q=g[H(T)]=g[T],W;h&&h.prepend&&(W=g[H(h.prepend)]=g[h.prepend]);function N(s,l){return!ye&&typeof s=="object"&&s?!!s.capture:!ye||!l?s:typeof s=="boolean"?{capture:s,passive:!0}:s?typeof s=="object"&&s.passive!==!1?{...s,passive:!0}:s:{passive:!0}}let _=function(s){if(!O.isExisting)return R.call(O.target,O.eventName,O.capture?J:U,O.options)},n=function(s){if(!s.isRemoved){let l=te[s.eventName],v;l&&(v=l[s.capture?ue:fe]);let C=v&&s.target[v];if(C){for(let m=0;mre.zone.cancelTask(re);s.call(Te,"abort",ie,{once:!0}),re.removeAbortListener=()=>Te.removeEventListener("abort",ie)}if(O.target=null,ke&&(ke.taskData=null),Ue&&(O.options.once=!0),!ye&&typeof re.options=="boolean"||(re.options=se),re.target=I,re.capture=Oe,re.eventName=M,B&&(re.originalDelegate=F),L?ge.unshift(re):ge.push(re),m)return I}};return g[i]=a(R,D,q,A,G),W&&(g[d]=a(W,w,p,A,G,!0)),g[u]=function(){let s=this||e,l=arguments[0];h&&h.transferEventName&&(l=h.transferEventName(l));let v=arguments[2],C=v?typeof v=="boolean"?!0:v.capture:!1,m=arguments[1];if(!m)return b.apply(this,arguments);if(V&&!V(b,m,s,arguments))return;let L=te[l],I;L&&(I=L[C?ue:fe]);let M=I&&s[I];if(M)for(let F=0;Ffunction(i,u){i[ct]=!0,t&&t.apply(i,u)})}function Rt(e,r){r.patchMethod(e,"queueMicrotask",c=>function(t,i){Zone.current.scheduleMicroTask("queueMicrotask",i[0])})}var Re=H("zoneTask");function me(e,r,c,t){let i=null,u=null;r+=t,c+=t;let E={};function T(D){let d=D.data;d.args[0]=function(){return D.invoke.apply(this,arguments)};let w=i.apply(e,d.args);return Qe(w)?d.handleId=w:(d.handle=w,d.isRefreshable=Ke(w.refresh)),D}function y(D){let{handle:d,handleId:w}=D.data;return u.call(e,d??w)}i=he(e,r,D=>function(d,w){if(Ke(w[0])){let Z={isRefreshable:!1,isPeriodic:t==="Interval",delay:t==="Timeout"||t==="Interval"?w[1]||0:void 0,args:w},x=w[0];w[0]=function(){try{return x.apply(this,arguments)}finally{let{handle:j,handleId:V,isPeriodic:Y,isRefreshable:G}=Z;!Y&&!G&&(V?delete E[V]:j&&(j[Re]=null))}};let U=Ge(r,w[0],Z,T,y);if(!U)return U;let{handleId:J,handle:K,isRefreshable:X,isPeriodic:k}=U.data;if(J)E[J]=U;else if(K&&(K[Re]=U,X&&!k)){let h=K.refresh;K.refresh=function(){let{zone:j,state:V}=U;return V==="notScheduled"?(U._state="scheduled",j._updateTaskCount(U,1)):V==="running"&&(U._state="scheduling"),h.call(this)}}return K??J??U}else return D.apply(e,w)}),u=he(e,c,D=>function(d,w){let Z=w[0],x;Qe(Z)?(x=E[Z],delete E[Z]):(x=Z?.[Re],x?Z[Re]=null:x=Z),x?.type?x.cancelFn&&x.zone.cancelTask(x):D.apply(e,w)})}function Ct(e,r){let{isBrowser:c,isMix:t}=r.getGlobalObjects();if(!c&&!t||!e.customElements||!("customElements"in e))return;let i=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"];r.patchCallbacks(r,e.customElements,"customElements","define",i)}function Dt(e,r){if(Zone[r.symbol("patchEventTarget")])return;let{eventNames:c,zoneSymbolEventNames:t,TRUE_STR:i,FALSE_STR:u,ZONE_SYMBOL_PREFIX:E}=r.getGlobalObjects();for(let y=0;yu.target===e);if(!t||t.length===0)return r;let i=t[0].ignoreProperties;return r.filter(u=>i.indexOf(u)===-1)}function et(e,r,c,t){if(!e)return;let i=ut(e,r,c);ot(e,i,t)}function Ze(e){return Object.getOwnPropertyNames(e).filter(r=>r.startsWith("on")&&r.length>2).map(r=>r.substring(2))}function Ot(e,r){if(Se&&!rt||Zone[e.symbol("patchEvents")])return;let c=r.__Zone_ignore_on_properties,t=[];if(Be){let i=window;t=t.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);let u=kt()?[{target:i,ignoreProperties:["error"]}]:[];et(i,Ze(i),c&&c.concat(u),je(i))}t=t.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let i=0;i{let c=r[e.__symbol__("legacyPatch")];c&&c()}),e.__load_patch("timers",r=>{let c="set",t="clear";me(r,c,t,"Timeout"),me(r,c,t,"Interval"),me(r,c,t,"Immediate")}),e.__load_patch("requestAnimationFrame",r=>{me(r,"request","cancel","AnimationFrame"),me(r,"mozRequest","mozCancel","AnimationFrame"),me(r,"webkitRequest","webkitCancel","AnimationFrame")}),e.__load_patch("blocking",(r,c)=>{let t=["alert","prompt","confirm"];for(let i=0;ifunction(D,d){return c.current.run(E,r,d,y)})}}),e.__load_patch("EventTarget",(r,c,t)=>{St(r,t),Dt(r,t);let i=r.XMLHttpRequestEventTarget;i&&i.prototype&&t.patchEventTarget(r,t,[i.prototype])}),e.__load_patch("MutationObserver",(r,c,t)=>{ve("MutationObserver"),ve("WebKitMutationObserver")}),e.__load_patch("IntersectionObserver",(r,c,t)=>{ve("IntersectionObserver")}),e.__load_patch("FileReader",(r,c,t)=>{ve("FileReader")}),e.__load_patch("on_property",(r,c,t)=>{Ot(t,r)}),e.__load_patch("customElements",(r,c,t)=>{Ct(r,t)}),e.__load_patch("XHR",(r,c)=>{D(r);let t=H("xhrTask"),i=H("xhrSync"),u=H("xhrListener"),E=H("xhrScheduled"),T=H("xhrURL"),y=H("xhrErrorBeforeScheduled");function D(d){let w=d.XMLHttpRequest;if(!w)return;let Z=w.prototype;function x(R){return R[t]}let U=Z[Le],J=Z[Ie];if(!U){let R=d.XMLHttpRequestEventTarget;if(R){let b=R.prototype;U=b[Le],J=b[Ie]}}let K="readystatechange",X="scheduled";function k(R){let b=R.data,S=b.target;S[E]=!1,S[y]=!1;let Q=S[u];U||(U=S[Le],J=S[Ie]),Q&&J.call(S,K,Q);let W=S[u]=()=>{if(S.readyState===S.DONE)if(!b.aborted&&S[E]&&R.state===X){let _=S[c.__symbol__("loadfalse")];if(S.status!==0&&_&&_.length>0){let n=R.invoke;R.invoke=function(){let o=S[c.__symbol__("loadfalse")];for(let p=0;pfunction(R,b){return R[i]=b[2]==!1,R[T]=b[1],V.apply(R,b)}),Y="XMLHttpRequest.send",G=H("fetchTaskAborting"),g=H("fetchTaskScheduling"),z=he(Z,"send",()=>function(R,b){if(c.current[g]===!0||R[i])return z.apply(R,b);{let S={target:R,url:R[T],isPeriodic:!1,args:b,aborted:!1},Q=Ge(Y,h,S,k,j);R&&R[y]===!0&&!S.aborted&&Q.state===X&&Q.invoke()}}),O=he(Z,"abort",()=>function(R,b){let S=x(R);if(S&&typeof S.type=="string"){if(S.cancelFn==null||S.data&&S.data.aborted)return;S.zone.cancelTask(S)}else if(c.current[G]===!0)return O.apply(R,b)})}}),e.__load_patch("geolocation",r=>{r.navigator&&r.navigator.geolocation&&mt(r.navigator.geolocation,["getCurrentPosition","watchPosition"])}),e.__load_patch("PromiseRejectionEvent",(r,c)=>{function t(i){return function(u){lt(r,i).forEach(T=>{let y=r.PromiseRejectionEvent;if(y){let D=new y(i,{promise:u.promise,reason:u.rejection});T.invoke(D)}})}}r.PromiseRejectionEvent&&(c[H("unhandledPromiseRejectionHandler")]=t("unhandledrejection"),c[H("rejectionHandledHandler")]=t("rejectionhandled"))}),e.__load_patch("queueMicrotask",(r,c,t)=>{Rt(r,t)})}function Lt(e){e.__load_patch("ZoneAwarePromise",(r,c,t)=>{let i=Object.getOwnPropertyDescriptor,u=Object.defineProperty;function E(f){if(f&&f.toString===Object.prototype.toString){let a=f.constructor&&f.constructor.name;return(a||"")+": "+JSON.stringify(f)}return f?f.toString():Object.prototype.toString.call(f)}let T=t.symbol,y=[],D=r[T("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,d=T("Promise"),w=T("then"),Z="__creationTrace__";t.onUnhandledError=f=>{if(t.showUncaughtError()){let a=f&&f.rejection;a?console.error("Unhandled Promise rejection:",a instanceof Error?a.message:a,"; Zone:",f.zone.name,"; Task:",f.task&&f.task.source,"; Value:",a,a instanceof Error?a.stack:void 0):console.error(f)}},t.microtaskDrainDone=()=>{for(;y.length;){let f=y.shift();try{f.zone.runGuarded(()=>{throw f.throwOriginal?f.rejection:f})}catch(a){U(a)}}};let x=T("unhandledPromiseRejectionHandler");function U(f){t.onUnhandledError(f);try{let a=c[x];typeof a=="function"&&a.call(this,f)}catch{}}function J(f){return f&&f.then}function K(f){return f}function X(f){return A.reject(f)}let k=T("state"),h=T("value"),j=T("finally"),V=T("parentPromiseValue"),Y=T("parentPromiseState"),G="Promise.then",g=null,z=!0,O=!1,R=0;function b(f,a){return s=>{try{N(f,a,s)}catch(l){N(f,!1,l)}}}let S=function(){let f=!1;return function(s){return function(){f||(f=!0,s.apply(null,arguments))}}},Q="Promise resolved with itself",W=T("currentTaskTrace");function N(f,a,s){let l=S();if(f===s)throw new TypeError(Q);if(f[k]===g){let v=null;try{(typeof s=="object"||typeof s=="function")&&(v=s&&s.then)}catch(C){return l(()=>{N(f,!1,C)})(),f}if(a!==O&&s instanceof A&&s.hasOwnProperty(k)&&s.hasOwnProperty(h)&&s[k]!==g)n(s),N(f,s[k],s[h]);else if(a!==O&&typeof v=="function")try{v.call(s,l(b(f,a)),l(b(f,!1)))}catch(C){l(()=>{N(f,!1,C)})()}else{f[k]=a;let C=f[h];if(f[h]=s,f[j]===j&&a===z&&(f[k]=f[Y],f[h]=f[V]),a===O&&s instanceof Error){let m=c.currentTask&&c.currentTask.data&&c.currentTask.data[Z];m&&u(s,W,{configurable:!0,enumerable:!1,writable:!0,value:m})}for(let m=0;m{try{let L=f[h],I=!!s&&j===s[j];I&&(s[V]=L,s[Y]=C);let M=a.run(m,void 0,I&&m!==X&&m!==K?[]:[L]);N(s,!0,M)}catch(L){N(s,!1,L)}},s)}let p="function ZoneAwarePromise() { [native code] }",P=function(){},q=r.AggregateError;class A{static toString(){return p}static resolve(a){return a instanceof A?a:N(new this(null),z,a)}static reject(a){return N(new this(null),O,a)}static withResolvers(){let a={};return a.promise=new A((s,l)=>{a.resolve=s,a.reject=l}),a}static any(a){if(!a||typeof a[Symbol.iterator]!="function")return Promise.reject(new q([],"All promises were rejected"));let s=[],l=0;try{for(let m of a)l++,s.push(A.resolve(m))}catch{return Promise.reject(new q([],"All promises were rejected"))}if(l===0)return Promise.reject(new q([],"All promises were rejected"));let v=!1,C=[];return new A((m,L)=>{for(let I=0;I{v||(v=!0,m(M))},M=>{C.push(M),l--,l===0&&(v=!0,L(new q(C,"All promises were rejected")))})})}static race(a){let s,l,v=new this((L,I)=>{s=L,l=I});function C(L){s(L)}function m(L){l(L)}for(let L of a)J(L)||(L=this.resolve(L)),L.then(C,m);return v}static all(a){return A.allWithCallback(a)}static allSettled(a){return(this&&this.prototype instanceof A?this:A).allWithCallback(a,{thenCallback:l=>({status:"fulfilled",value:l}),errorCallback:l=>({status:"rejected",reason:l})})}static allWithCallback(a,s){let l,v,C=new this((M,F)=>{l=M,v=F}),m=2,L=0,I=[];for(let M of a){J(M)||(M=this.resolve(M));let F=L;try{M.then(B=>{I[F]=s?s.thenCallback(B):B,m--,m===0&&l(I)},B=>{s?(I[F]=s.errorCallback(B),m--,m===0&&l(I)):v(B)})}catch(B){v(B)}m++,L++}return m-=2,m===0&&l(I),C}constructor(a){let s=this;if(!(s instanceof A))throw new Error("Must be an instanceof Promise.");s[k]=g,s[h]=[];try{let l=S();a&&a(l(b(s,z)),l(b(s,O)))}catch(l){N(s,!1,l)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return A}then(a,s){let l=this.constructor?.[Symbol.species];(!l||typeof l!="function")&&(l=this.constructor||A);let v=new l(P),C=c.current;return this[k]==g?this[h].push(C,v,a,s):o(this,C,v,a,s),v}catch(a){return this.then(null,a)}finally(a){let s=this.constructor?.[Symbol.species];(!s||typeof s!="function")&&(s=A);let l=new s(P);l[j]=j;let v=c.current;return this[k]==g?this[h].push(v,l,a,a):o(this,v,l,a,a),l}}A.resolve=A.resolve,A.reject=A.reject,A.race=A.race,A.all=A.all;let _e=r[d]=r.Promise;r.Promise=A;let ae=T("thenPatched");function le(f){let a=f.prototype,s=i(a,"then");if(s&&(s.writable===!1||!s.configurable))return;let l=a.then;a[w]=l,f.prototype.then=function(v,C){return new A((L,I)=>{l.call(this,L,I)}).then(v,C)},f[ae]=!0}t.patchThen=le;function ne(f){return function(a,s){let l=f.apply(a,s);if(l instanceof A)return l;let v=l.constructor;return v[ae]||le(v),l}}return _e&&(le(_e),he(r,"fetch",f=>ne(f))),Promise[c.__symbol__("uncaughtPromiseErrors")]=y,A})}function It(e){e.__load_patch("toString",r=>{let c=Function.prototype.toString,t=H("OriginalDelegate"),i=H("Promise"),u=H("Error"),E=function(){if(typeof this=="function"){let d=this[t];if(d)return typeof d=="function"?c.call(d):Object.prototype.toString.call(d);if(this===Promise){let w=r[i];if(w)return c.call(w)}if(this===Error){let w=r[u];if(w)return c.call(w)}}return c.call(this)};E[t]=c,Function.prototype.toString=E;let T=Object.prototype.toString,y="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?y:T.call(this)}})}function Mt(e,r,c,t,i){let u=Zone.__symbol__(t);if(r[u])return;let E=r[u]=r[t];r[t]=function(T,y,D){return y&&y.prototype&&i.forEach(function(d){let w=`${c}.${t}::`+d,Z=y.prototype;try{if(Z.hasOwnProperty(d)){let x=e.ObjectGetOwnPropertyDescriptor(Z,d);x&&x.value?(x.value=e.wrapWithCurrentZone(x.value,w),e._redefineProperty(y.prototype,d,x)):Z[d]&&(Z[d]=e.wrapWithCurrentZone(Z[d],w))}else Z[d]&&(Z[d]=e.wrapWithCurrentZone(Z[d],w))}catch{}}),E.call(r,T,y,D)},e.attachOriginToPatched(r[t],E)}function Zt(e){e.__load_patch("util",(r,c,t)=>{let i=Ze(r);t.patchOnProperties=ot,t.patchMethod=he,t.bindArguments=Fe,t.patchMacroTask=pt;let u=c.__symbol__("BLACK_LISTED_EVENTS"),E=c.__symbol__("UNPATCHED_EVENTS");r[E]&&(r[u]=r[E]),r[u]&&(c[u]=c[E]=r[u]),t.patchEventPrototype=wt,t.patchEventTarget=Pt,t.isIEOrEdge=vt,t.ObjectDefineProperty=Ae,t.ObjectGetOwnPropertyDescriptor=be,t.ObjectCreate=Et,t.ArraySlice=Tt,t.patchClass=ve,t.wrapWithCurrentZone=Ve,t.filterProperties=ut,t.attachOriginToPatched=de,t._redefineProperty=Object.defineProperty,t.patchCallbacks=Mt,t.getGlobalObjects=()=>({globalSources:st,zoneSymbolEventNames:te,eventNames:i,isBrowser:Be,isMix:rt,isNode:Se,TRUE_STR:ue,FALSE_STR:fe,ZONE_SYMBOL_PREFIX:Pe,ADD_EVENT_LISTENER_STR:He,REMOVE_EVENT_LISTENER_STR:xe})})}function At(e){Lt(e),It(e),Zt(e)}var ft=_t();At(ft);Nt(ft);window.global=window; diff --git a/styles-AQTSY3WH.css b/styles-AQTSY3WH.css new file mode 100644 index 0000000..d61b7fa --- /dev/null +++ b/styles-AQTSY3WH.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;--day-name: #988888;--b-radius-btn: 10px;--transition: all .3s;--events: #4c8e9d;--border: rgba(102, 91, 91, .432)}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;--c-calendar: #141414;--day-name: #dad5d5;--events: #1c2e32;--border: rgb(255 255 255 / 23%)}#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}