dealposbarcode 25.50.0 → 26.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/scss/style.scss +28 -3
- package/chunk-5BDSDZBJ.js +1 -0
- package/chunk-66XEEZ6W.js +194 -0
- package/chunk-6RPDTK47.js +1 -0
- package/chunk-7PT4SS5X.js +1127 -0
- package/chunk-7RSU6VFI.js +1 -0
- package/chunk-CQL43DMM.js +1 -0
- package/chunk-F55DH2GX.js +27 -0
- package/chunk-HRRVAKK6.js +2 -0
- package/chunk-IKSROKD5.css +1 -0
- package/chunk-JCQ56J6G.js +4 -0
- package/chunk-JMQFG4UA.js +1 -0
- package/chunk-Q4SH5RTJ.js +1848 -0
- package/chunk-SMR7YI5J.js +1 -0
- package/{chunk-UBR4JEV7.js → chunk-VMNBWQIP.js} +1 -1
- package/chunk-Z3B3WOTF.js +18 -0
- package/index.html +3 -3
- package/main-4BFS7RVV.css +1 -0
- package/main-5MCDZ3FK.js +248 -0
- package/ngsw-worker.js +469 -70
- package/ngsw.json +40 -52
- package/package.json +1 -1
- package/polyfills-DHHU6LMO.js +2 -0
- package/styles-XWKQSHJN.css +1 -0
- package/chunk-377TROCD.js +0 -1
- package/chunk-4CITKGGL.js +0 -1
- package/chunk-7V3KH6IR.js +0 -394
- package/chunk-CARY4E7O.js +0 -1
- package/chunk-D67JO2HG.css +0 -1
- package/chunk-G2JXUY7S.js +0 -2
- package/chunk-G4LJCV6B.js +0 -1
- package/chunk-HHB3BUIC.js +0 -1
- package/chunk-I535BP2A.js +0 -1
- package/chunk-JYD2NJXU.js +0 -1
- package/chunk-L2JD4R6O.js +0 -1
- package/chunk-LTVGOJEF.js +0 -2
- package/chunk-RH3ZV23S.js +0 -4
- package/chunk-SCXFN4EA.js +0 -1
- package/chunk-UE2JJIFL.js +0 -7
- package/chunk-WBD3XQRN.js +0 -1
- package/chunk-X4PZGB4F.js +0 -2
- package/main-J35CSAIS.css +0 -1
- package/main-SNJDWW52.js +0 -605
- package/media/data-table-2IZ2Q4SK.woff +0 -0
- package/media/data-table-AKMZFM4M.svg +0 -26
- package/media/data-table-DGQ4LQQR.eot +0 -0
- package/media/data-table-J6MZE774.ttf +0 -0
- package/polyfills-Q6W4YVDR.js +0 -2
- package/styles-7YJ7GGGE.css +0 -1
package/chunk-HHB3BUIC.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as Be,b as Q,c as Ae,d as qe,e as je,f as Ge}from"./chunk-7V3KH6IR.js";import{t as Le}from"./chunk-G2JXUY7S.js";import{g as E}from"./chunk-X4PZGB4F.js";import{D as Ne,E as Oe,F as We,G as Ve,H as Re,I as De,K as Ie,Q as $e,c as xe,e as Ce,f as Se,h as ye,i as Pe,j as ve,m as ke,o as Me,p as Te,q as Fe,r as we,t as Ee}from"./chunk-RH3ZV23S.js";import{n as _e}from"./chunk-LTVGOJEF.js";import{$b as R,$c as he,Ad as be,Da as v,Dc as de,Ec as me,Fc as fe,Gb as ne,Ha as ee,I as X,Ja as te,Jc as U,Ka as ie,Kb as B,Kc as H,Nc as I,Rb as F,Sa as h,Ta as u,U as Y,Ub as ae,Vb as M,Wa as oe,Xb as le,a as y,ac as se,b as P,bb as re,bd as ue,c as N,cc as ce,dc as pe,ec as a,fc as n,g as W,gc as T,kc as D,nc as g,oc as C,od as ge,ta as V,tc as A,uc as q,vc as j,wa as Z,wc as G,xc as p,yc as w,zb as f}from"./chunk-UE2JJIFL.js";var L,Je=new Uint8Array(16);function z(){if(!L&&(L=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!L))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return L(Je)}var Ue=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Ke(i){return typeof i=="string"&&Ue.test(i)}var He=Ke;var m=[];for($=0;$<256;++$)m.push(($+256).toString(16).substr(1));var $;function Xe(i){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,e=(m[i[l+0]]+m[i[l+1]]+m[i[l+2]]+m[i[l+3]]+"-"+m[i[l+4]]+m[i[l+5]]+"-"+m[i[l+6]]+m[i[l+7]]+"-"+m[i[l+8]]+m[i[l+9]]+"-"+m[i[l+10]]+m[i[l+11]]+m[i[l+12]]+m[i[l+13]]+m[i[l+14]]+m[i[l+15]]).toLowerCase();if(!He(e))throw TypeError("Stringified UUID is invalid");return e}var Qe=Xe;function Ye(i,l,e){i=i||{};var t=i.random||(i.rng||z)();if(t[6]=t[6]&15|64,t[8]=t[8]&63|128,l){e=e||0;for(var o=0;o<16;++o)l[e+o]=t[o];return l}return Qe(t)}var O=Ye;var J="00000000-0000-0000-0000-000000000000";var ze=(()=>{class i{constructor(){this.el=v(re),this.isWriting=!1,this.postfix="px",this.min=0,this.precision=0,this.onChange=e=>{},this.onTouched=()=>{}}ngOnInit(){let e=this.el.nativeElement,t=` ${this.postfix}`,b=je({postfix:t,min:this.min,max:this.max,precision:this.precision,thousandSeparator:""}),{plugins:o}=b,r=N(b,["plugins"]),s=c=>{let _=()=>{let x=c.value.length-t.length;c.setSelectionRange(0,x)};return c.addEventListener("focus",_),()=>c.removeEventListener("focus",_)},d=c=>{let _=()=>{(!c.value.trim()||c.value===t.trim())&&(this.isWriting=!0,Q(c,`0${t}`),queueMicrotask(()=>this.isWriting=!1),this.onChange(0)),this.onTouched()};return c.addEventListener("blur",_),()=>c.removeEventListener("blur",_)},k=c=>{let _=()=>{if(this.isWriting)return;let x=c.value.replace(new RegExp(`${t}$`,"i"),"").trim().replace(",","."),K=parseFloat(x);this.onChange(isNaN(K)?null:K)};return c.addEventListener("input",_),()=>c.removeEventListener("input",_)},S=P(y({},r),{plugins:[...o,qe(c=>[0,c.length-t.length]),s,d,k]});this.destroyMask=new Ae(e,S)}writeValue(e){this.isWriting=!0;let t=e!=null&&e!==""?`${e} ${this.postfix}`:`0 ${this.postfix}`;Q(this.el.nativeElement,t),queueMicrotask(()=>this.isWriting=!1)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.el.nativeElement.disabled=e}ngOnDestroy(){this.destroyMask.destroy()}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275dir=te({type:i,selectors:[["","appMaskNumber",""]],inputs:{postfix:"postfix",min:"min",max:"max",precision:"precision"},standalone:!0,features:[de([{provide:xe,useExisting:Z(()=>i),multi:!0}])]})}}return i})();var et=["tablePaperFormats"],tt=["inputElement"],it=i=>({"in-valid":i});function ot(i,l){if(i&1){let e=D();a(0,"div",6)(1,"button",7),g("click",function(){h(e);let o=C(),r=G(6);return u(o.open(r))}),p(2,"Add"),n(),a(3,"button",8),g("click",function(){h(e);let o=C();return u(o.onNext())}),p(4," Next "),n()()}if(i&2){let e=C();f(3),M("disabled",!e.hasSelectedFormat())}}function rt(i,l){if(i&1){let e=D();a(0,"tr",15),g("click",function(){let o=h(e).$index,r=C(2);return u(r.onTemplateChecked(o))}),a(1,"th",16),p(2),n(),a(3,"td",16),p(4),U(5,"pxToCm"),n(),a(6,"td",16),p(7),n(),a(8,"td",16),p(9),U(10,"pxToCm"),n(),a(11,"td",16)(12,"div",17)(13,"span"),p(14),n(),a(15,"div",18),T(16,"input",19,4),n()()(),a(18,"td",20),g("click",function(o){return h(e),u(o.stopPropagation())}),a(19,"div",21),g("click",function(o){return h(e),u(o.stopPropagation())}),a(20,"button",22),g("click",function(o){return h(e),u(o.stopPropagation())}),T(21,"i",23),n(),a(22,"div",24),g("click",function(o){return h(e),u(o.stopPropagation())}),a(23,"button",25),g("click",function(o){let r=h(e).$implicit,s=C(2),d=G(6);return o.stopPropagation(),u(s.onEdit(r.id,d))}),p(24," Edit "),n(),a(25,"button",25),g("click",function(o){let r=h(e).$implicit,s=C(2);return o.stopPropagation(),u(s.onCopy(r))}),p(26," Copy "),n(),a(27,"button",25),g("click",function(o){let r=h(e).$implicit,s=C(2);return o.stopPropagation(),u(s.onDelete(r))}),p(28," Delete "),n()()()()()}if(i&2){let e=l.$implicit;le("selected",e.checked),ae("data-id",e.id),f(2),w(e.Name),f(2),w(H(5,9,e.PaperWidth)),f(3),w(e.PaperWidth+" px"),f(2),w(H(10,11,e.StickerWidth)),f(5),w(e.StickerWidth+" px"),f(2),M("checked",e.checked)}}function nt(i,l){if(i&1&&(a(0,"div",9)(1,"div",10)(2,"table",11,3)(4,"thead")(5,"tr")(6,"th",12),p(7,"Paper"),n(),a(8,"th",12),p(9,"Paper Width (cm)"),n(),a(10,"th",12),p(11,"Paper Width (px)"),n(),a(12,"th",12),p(13,"Sticker Width (cm)"),n(),a(14,"th",12),p(15,"Sticker Width (px)"),n(),T(16,"th",13),n()(),a(17,"tbody"),ce(18,rt,29,13,"tr",14,se),n()()()()),i&2){let e=C();f(18),pe(e.paperFormats())}}function at(i,l){i&1&&(a(0,"h4",27),p(1,"Create New Label"),n())}function lt(i,l){i&1&&(a(0,"h4",27),p(1,"Edit Label"),n())}function st(i,l){i&1&&(a(0,"div")(1,"small",45),p(2,"Label name is required"),n()())}function ct(i,l){if(i&1&&F(0,st,3,0,"div"),i&2){let e=C(2);R(e.form.controls.Name.hasError("required")?0:-1)}}function pt(i,l){if(i&1){let e=D();a(0,"div",26),F(1,at,2,0,"h4",27)(2,lt,2,0,"h4",27),n(),a(3,"div",28)(4,"form",29)(5,"div",30)(6,"div",31)(7,"div",32)(8,"div",33)(9,"label",34),p(10,"Label Name"),n(),T(11,"input",35),n(),F(12,ct,1,1),n()(),a(13,"div",36)(14,"div",37)(15,"div",33)(16,"label",34),p(17,"Paper Width"),n(),T(18,"input",38)(19,"input",39),n()(),a(20,"div",37)(21,"div",33)(22,"label",34),p(23,"Sticker Width"),n(),T(24,"input",40)(25,"input",41),n()()()()()(),a(26,"div",42)(27,"button",43),g("click",function(){let o=h(e).$implicit;return u(o.close("Save click"))}),p(28," Cancel "),n(),a(29,"button",44),g("click",function(){let o=h(e).$implicit;return C().onSubmit(),u(o.close("Save click"))}),p(30," OK "),n()()}if(i&2){let e=C();f(),R(e.editMode()?2:1),f(3),M("formGroup",e.form),f(7),M("ngClass",fe(7,it,e.form.controls.Name.invalid&&(e.form.controls.Name.dirty||e.form.controls.Name.touched))),f(),R(e.form.controls.Name.invalid&&(e.form.controls.Name.dirty||e.form.controls.Name.touched)?12:-1),f(6),M("precision",1),f(6),M("precision",1),f(5),M("disabled",e.form.invalid)}}var dt=(()=>{class i{transform(e){return typeof e=="string"?e=parseFloat(e):typeof e=="number"&&(e=+e),(parseFloat(e.toString())*.0264583333).toFixed(1)+" cm"}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275pipe=ie({name:"pxToCm",type:i,pure:!0,standalone:!0})}}return i})(),ti=(()=>{class i{constructor(){this.modalService=v(Ie),this.httpService=v($e),this.fb=v(we),this.renderer=v(ne),this.router=v(_e),this.store=v(Le),this.options=Ge,this.paperFormats=B([]),this.form=new ve({}),this.injector=v(oe),this.editMode=B(!1),this.hasSelectedFormat=he(()=>this.paperFormats().some(e=>e.checked))}ngOnInit(){this.fetchTemplates(),this.generateForm(),this.form.valueChanges.pipe(Y(e=>e.StickerWidthCM!==null&&e.PaperWidthCM!==null),V(e=>{this.form.patchValue({StickerWidth:e.StickerWidthCM!=null?parseFloat((Number(e.StickerWidthCM)*37.8).toFixed(2)):0,PaperWidth:e.PaperWidthCM!=null?parseFloat((Number(e.PaperWidthCM)*37.8).toFixed(2)):0},{emitEvent:!1})})).subscribe()}ngAfterViewInit(){ue(()=>this.applyRowStyling(),{injector:this.injector})}applyRowStyling(){let e=this.paperFormats();if(!e.length||!this.tablePaperFormats)return;let t=e.find(c=>c.checked),r=this.tablePaperFormats.nativeElement.querySelector("tbody");if(!r||(r.querySelectorAll("tr").forEach(c=>{c.querySelectorAll("th, td").forEach(x=>{this.renderer.setStyle(x,"borderTop","1px solid #cccccc"),this.renderer.setStyle(x,"borderBottom","1px solid #cccccc"),this.renderer.removeStyle(x,"borderLeft"),this.renderer.removeStyle(x,"borderRight"),this.renderer.removeStyle(x,"borderTopLeftRadius"),this.renderer.removeStyle(x,"borderBottomLeftRadius"),this.renderer.removeStyle(x,"borderTopRightRadius"),this.renderer.removeStyle(x,"borderBottomRightRadius")});let _=c.querySelector("td:last-child");_&&(this.renderer.removeStyle(_,"border"),this.renderer.setStyle(_,"paddingLeft","20px"))}),!t))return;console.log("Selected template:",r.querySelectorAll("tr"));let s=Array.from(r.querySelectorAll("tr")).find(c=>(console.log("attribute",c.getAttribute("data-id")),c.getAttribute("data-id")===t.id));if(!s)return;let d="var(--bs-primary)";s.querySelectorAll("th, td:not(:last-child)").forEach(c=>{this.renderer.setStyle(c,"borderTop",`1px solid ${d}`),this.renderer.setStyle(c,"borderBottom",`1px solid ${d}`)});let S=s.querySelector("th:first-child, td:first-child");S&&(this.renderer.setStyle(S,"borderLeft",`1px solid ${d}`),this.renderer.setStyle(S,"borderTopLeftRadius","8px"),this.renderer.setStyle(S,"borderBottomLeftRadius","8px"));let b=s.querySelector("td:nth-last-child(2)");b&&(this.renderer.setStyle(b,"borderRight",`1px solid ${d}`),this.renderer.setStyle(b,"borderTopRightRadius","8px"),this.renderer.setStyle(b,"borderBottomRightRadius","8px"))}waitForElement(e){return W(this,null,function*(){for(;!this.inputTemplateRef||this.inputTemplateRef.length<=e;)yield new Promise(t=>setTimeout(t,10));return this.inputTemplateRef.get(e)})}onTemplateChecked(e){return W(this,null,function*(){let o=this.paperFormats()[e]?.checked??!1;this.paperFormats.update(s=>s.map((d,k)=>P(y({},d),{checked:k===e?!o:!1})));let r=yield this.waitForElement(e);r.nativeElement.checked=!o,this.inputTemplateRef.forEach((s,d)=>{d!==e&&(s.nativeElement.checked=!1)})})}onStickerWidthChange(e){let t=e.target;this.form.get("StickerWidth")?.setValue(+t.value)}open(e,t=!1){return W(this,null,function*(){this.editMode.set(t),this.httpService.get("api/Config/Form").pipe(E("Form Config Response")).subscribe();try{let o=yield this.modalService.open(e,{centered:!0,scrollable:!0}).result;console.log("Modal closed with result:",o)}catch(o){console.error("Error opening modal:",o)}})}fetchTemplates(){let e=localStorage.getItem("Domain")||"",t={};try{let o=localStorage.getItem("selectedPaperFormat");t=o?JSON.parse(o):{}}catch{t={}}this.httpService.post("api/Config/PaperConfig",{SubDomain:e}).pipe(E("PaperConfig Response"),X(o=>P(y({},o),{PaperFormats:o.PaperFormats.map(r=>P(y({},r),{id:O(),checked:t.Name===r.Name}))}))).subscribe(o=>{this.paperFormats.set(o.PaperFormats),localStorage.setItem("paperFormatOutlets",JSON.stringify(o.Outlets)),localStorage.setItem("paperFormats",JSON.stringify(o.PaperFormats)),setTimeout(()=>{this.applyRowStyling()},100)})}generateForm(){console.log("Generating form",this.paperFormats()),this.httpService.get("api/Config/Form").pipe(E("Form Config Response"),V(e=>{if(this.form&&Object.keys(this.form.controls).length)for(let t in e)this.form.contains(t)&&(this.form.get(t)?.setValue(e[t]),this.form.controls.StickerWidth.disable(),this.form.controls.PaperWidth.disable())})).subscribe(),this.form=this.fb.group({BarcodeType:this.fb.control(null),LineHeight:this.fb.control(0),Name:this.fb.control("",[Se.required]),BarcodeVisible:this.fb.control(!0),CodeVisible:this.fb.control(!0),PriceVisible:this.fb.control(!0),NameVisible:this.fb.control(!0),VariantNameVisible:this.fb.control(!0),PriceWithTax:this.fb.control(!1),DescriptionAsCode:this.fb.control(!1),StickerHeight:this.fb.control(0),BarcodeHeight:this.fb.control(0),StickerWidth:this.fb.control(0),ProductNamePrefix:this.fb.control(""),TaxType:this.fb.control(null),ProductNameFontSize:this.fb.control(0),ColumnSpacing:this.fb.control(0),RowSpacing:this.fb.control(0),PaperWidth:this.fb.control(0),MarginTop:this.fb.control(0),MarginLeft:this.fb.control(0),ProductNameMaxLength:this.fb.control(0),ImageVisible:this.fb.control(!1),CustomPriceEnabled:this.fb.control(!1),StoreName:this.fb.control(""),CurrencySymbol:this.fb.control(""),PromotionPriceLabel:this.fb.control(""),BasicPriceLabel:this.fb.control(""),MoveProductNameOnTop:this.fb.control(!1),PriceFontSize:this.fb.control(0),ShowReleasedDate:this.fb.control(!1),ShowPriceDiscount:this.fb.control(!1),Orientation:this.fb.control(0),OrientationChoice:this.fb.control([]),OutletID:this.fb.control(null),PricebookVisible:this.fb.control(!1),PricebookFontSize:this.fb.control(0),UOMNameVisible:this.fb.control(!1),StickerWidthCM:this.fb.control(0),PaperWidthCM:this.fb.control(0),checked:this.fb.control(!1),id:this.fb.control(J)})}onSubmit(){if(this.form.invalid){this.form.markAllAsTouched();return}if(this.editMode()){let r=this.paperFormats().findIndex(b=>b.id===this.form.value.id);if(r===-1)return;let o=this.form.value,{StickerWidthCM:s,PaperWidthCM:d}=o,k=N(o,["StickerWidthCM","PaperWidthCM"]),S=P(y({},k),{StickerWidth:s!=null?Math.round(Number(s)*37.8):0,PaperWidth:d!=null?Math.round(Number(d)*37.8):0});this.paperFormats.update(b=>[...b.slice(0,r),S,...b.slice(r+1)])}else{let t=this.form.value,{StickerWidthCM:r,PaperWidthCM:s}=t,d=N(t,["StickerWidthCM","PaperWidthCM"]),k=P(y({},d),{id:O(),StickerWidth:r!=null?Math.round(Number(r)*37.8):0,PaperWidth:s!=null?Math.round(Number(s)*37.8):0});this.paperFormats.update(S=>[...S,k])}let e={SubDomain:localStorage.getItem("Domain")||"",PaperFormats:this.paperFormats()};this.httpService.post("api/Config/SaveConfig",e).pipe(V(()=>{this.form.reset()})).subscribe()}onEdit(e,t){let o=this.paperFormats().findIndex(s=>s.id===e);if(o===-1)return;let r=this.paperFormats()[o];console.log("Editing template:",r),this.form.patchValue(P(y({},r),{PaperWidthCM:parseFloat((r.PaperWidth*.0264583333).toFixed(2)),StickerWidthCM:parseFloat((r.StickerWidth*.0264583333).toFixed(2)),StickerWidth:r.StickerWidth,PaperWidth:r.PaperWidth})),this.open(t,!0)}onDelete(e){this.paperFormats.update(o=>o.filter(r=>r.id!==e.id));let t={SubDomain:localStorage.getItem("Domain")||"",PaperFormats:this.paperFormats()};this.httpService.post("api/Config/SaveConfig",t).pipe(E("SaveConfig Response")).subscribe()}onCopy(e){try{let t=this.paperFormats().findIndex(s=>s.id===e.id);if(t===-1)return;let o=P(y({},e),{Name:e.Name+" - Copy",id:O(),checked:!1});this.paperFormats.update(s=>[...s.slice(0,t+1),o,...s.slice(t+1)]);let r={SubDomain:localStorage.getItem("Domain")||"",PaperFormats:this.paperFormats()};this.httpService.post("api/Config/SaveConfig",r).pipe(E("SaveConfig Response")).subscribe()}catch(t){console.error("Error copying template:",t)}}onNext(){this.store.onNextStep(),localStorage.setItem("selectedPaperFormat",JSON.stringify(this.paperFormats().find(e=>e.checked))),this.store.onChangePaperConfiguration(this.paperFormats().find(e=>e.checked))}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=ee({type:i,selectors:[["app-choose-profile-template"]],viewQuery:function(t,o){if(t&1&&(A(et,5),A(tt,5)),t&2){let r;q(r=j())&&(o.tablePaperFormats=r.first),q(r=j())&&(o.inputTemplateRef=r)}},standalone:!0,features:[me],decls:7,vars:0,consts:[["actionButton",""],["content",""],["contentModal",""],["tablePaperFormats",""],["inputElement",""],["pageTitle","Choose Paper Template"],[1,"d-flex","gap-3"],[1,"btn","btn-success",3,"click"],[1,"btn","btn-outline-success",3,"click","disabled"],[1,"card"],[1,"card-body"],[1,"table","table-borderless",2,"table-layout","fixed","width","100%","border-collapse","separate","border-spacing","0 8px"],["scope","col",1,"fs-4","fw-normal"],["scope","col",2,"width","100px"],[3,"selected"],[3,"click"],[1,"fs-3","fw-normal"],[1,"d-flex","justify-content-between"],[1,"form-check"],["type","checkbox","id","checkDefault",1,"form-check-input",3,"checked"],[1,"fs-3","fw-normal",3,"click"],["ngbDropdown","",1,"d-inline-block",3,"click"],["type","button","id","dropdownBasic1","ngbDropdownToggle","",1,"btn","btn-outline-secondary",3,"click"],[1,"fa-solid","fa-ellipsis"],["ngbDropdownMenu","","aria-labelledby","dropdownBasic1",3,"click"],["ngbDropdownItem","",3,"click"],[1,"modal-header"],["id","modal-basic-title",1,"modal-title"],[1,"modal-body"],[3,"formGroup"],[1,"row","gap-4"],[1,"col-lg-12"],[1,"d-flex","flex-column"],[1,"d-flex","flex-column","gap-2"],["for",""],["type","text","formControlName","Name","placeholder","Enter label name",1,"form-control","form-control-lg","fs-4","fs-4",3,"ngClass"],[1,"row"],[1,"col"],["type","text","formControlName","PaperWidthCM","appMaskNumber","","postfix","cm","placeholder","Width (cm)",1,"form-control","form-control-lg","fs-4",3,"precision"],["type","text","spellcheck","false","formControlName","PaperWidth","appMaskNumber","","postfix","px","placeholder","Height (px)",1,"form-control","form-control-lg","fs-4"],["type","text","appMaskNumber","","postfix","cm","formControlName","StickerWidthCM","placeholder","Width (cm)",1,"form-control","form-control-lg","fs-4",3,"precision"],["type","text","spellcheck","false","appMaskNumber","","postfix","px","formControlName","StickerWidth","placeholder","Height (px)",1,"form-control","form-control-lg","fs-4"],[1,"modal-footer","d-flex","justify-content-end"],["type","button",1,"btn","btn-outline-secondary",3,"click"],["type","button",1,"btn","btn-outline-secondary",3,"click","disabled"],[1,"text-danger"]],template:function(t,o){t&1&&(a(0,"app-main-panel",5),F(1,ot,5,1,"ng-template",null,0,I)(3,nt,20,0,"ng-template",null,1,I),n(),F(5,pt,31,9,"ng-template",null,2,I))},dependencies:[Be,dt,Fe,ke,Ce,ye,Pe,Ee,Me,Te,ze,De,Re,Ve,We,Ne,Oe,be,ge],styles:["[_nghost-%COMP%]{display:block}.table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse}.table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > th[_ngcontent-%COMP%]{background-color:#f6f6f6;padding:10px;text-align:start}.table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:10px;text-align:start;vertical-align:middle;border-top:1px solid #cccccc;border-bottom:1px solid #cccccc}.table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-child, .table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{border-left:1px solid #cccccc;border-top-left-radius:8px;border-bottom-left-radius:8px}.table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-last-child(2){border-right:1px solid #cccccc;border-top-right-radius:8px;border-bottom-right-radius:8px}.table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{border:none;padding-left:20px}.modal-header[_ngcontent-%COMP%]{background-color:#83a83d}.modal-header[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%]{color:#fff}.modal-footer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#dfeffc;color:#367cb8;outline:none;border:none}.form-control[_ngcontent-%COMP%]::placeholder{color:#808182;font-size:.9rem} .dropdown-toggle:after{content:none}"],changeDetection:0})}}return i})();export{ti as a};
|
package/chunk-I535BP2A.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u}from"./chunk-WBD3XQRN.js";import"./chunk-CARY4E7O.js";import"./chunk-UE2JJIFL.js";export{g as AnimationDriver,f as NoopAnimationDriver,r as \u0275Animation,n as \u0275AnimationEngine,t as \u0275AnimationRenderer,u as \u0275AnimationRendererFactory,h as \u0275AnimationStyleNormalizer,s as \u0275BaseAnimationRenderer,i as \u0275NoopAnimationStyleNormalizer,p as \u0275WebAnimationsDriver,o as \u0275WebAnimationsPlayer,m as \u0275WebAnimationsStyleNormalizer,l as \u0275allowPreviousPlayerStylesMerge,k as \u0275camelCaseToDashCase,d as \u0275containsElement,q as \u0275createEngine,a as \u0275getParentElement,e as \u0275invokeQuery,j as \u0275normalizeKeyframes,b as \u0275validateStyleProperty,c as \u0275validateWebAnimatableStyleProperty};
|
package/chunk-JYD2NJXU.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as ne,e as ie,f as oe,g as re}from"./chunk-X4PZGB4F.js";import{a as A}from"./chunk-UBR4JEV7.js";import{Q as te,W as E,e as $,f as y,h as W,i as Z,j as K,m as J,o as Q,p as X,r as Y,t as ee}from"./chunk-RH3ZV23S.js";import"./chunk-CARY4E7O.js";import{n as O}from"./chunk-LTVGOJEF.js";import{$b as v,C as V,Da as g,Ec as R,Fc as I,Ha as N,I as U,Jc as j,Kb as C,Kc as G,Rb as _,Sa as x,Ta as b,Vb as p,bc as T,cc as P,dc as L,ec as i,fc as o,gc as d,kc as w,nc as h,oc as c,od as q,q as F,qd as H,ra as D,sa as M,ub as k,wd as B,xc as l,yc as z,zb as a,zc as S}from"./chunk-UE2JJIFL.js";var ae=n=>({"is-invalid":n});function de(n,m){if(n&1&&(i(0,"swiper-slide")(1,"div",17),d(2,"img",18),i(3,"div",19)(4,"h4",20),l(5),o(),i(6,"div",21)(7,"p",22),l(8),o()()()()()),n&2){let e=m.$implicit;a(2),p("src",e.properties.imgSrc,k),a(3),S(" ",e.properties.title," "),a(3),S(" ",e.properties.description," ")}}function me(n,m){if(n&1&&(i(0,"ng-option",33)(1,"span",35),l(2),o()()),n&2){let e=m.$implicit;p("value",e),a(2),z(e)}}function pe(n,m){if(n&1){let e=w();i(0,"div",8)(1,"div",19)(2,"h3",23),l(3," DealPOS Barcode Apps "),o(),i(4,"p",24),l(5," Print Barcode label from your product catalog "),o()(),i(6,"div",25)(7,"div",26)(8,"div",27)(9,"span",28),d(10,"i",29),o(),d(11,"input",30),i(12,"span",31)(13,"ng-select",32),P(14,me,3,2,"ng-option",33,T),o()()()()(),i(16,"button",34),h("click",function(){x(e);let r=c();return b(r.onLoginState())}),l(17," Next "),o()()}if(n&2){let e=c();a(13),p("clearable",!1),a(),L(e.domains())}}function ce(n,m){n&1&&(i(0,"span"),l(1,"Username is required."),o())}function ue(n,m){if(n&1&&(i(0,"div",47),_(1,ce,2,0,"span",63),d(2,"span"),o()),n&2){let e,t=c(2);a(),p("ngIf",(e=t.form.get("username"))==null||e.errors==null?null:e.errors.required)}}function fe(n,m){if(n&1){let e=w();i(0,"i",66),h("click",function(){x(e);let r=c(3);return b(r.passwordInputType.set("text"))}),o()}}function ge(n,m){if(n&1){let e=w();i(0,"i",67),h("click",function(){x(e);let r=c(3);return b(r.passwordInputType.set("password"))}),o()}}function _e(n,m){if(n&1&&_(0,fe,1,0,"i",64)(1,ge,1,0,"i",65),n&2){let e=c(2);v(e.passwordInputType()==="password"?0:1)}}function he(n,m){n&1&&(i(0,"span"),l(1,"Password is required."),o())}function xe(n,m){if(n&1&&(i(0,"div",47),_(1,he,2,0,"span",63),d(2,"span"),o()),n&2){let e,t=c(2);a(),p("ngIf",(e=t.form.get("password"))==null||e.errors==null?null:e.errors.required)}}function be(n,m){if(n&1){let e=w();i(0,"div",9)(1,"div",36)(2,"h3",37),l(3,"Sign in"),o(),i(4,"p",38),l(5,"to"),o(),i(6,"div",39)(7,"p",40),l(8),o(),i(9,"a",41)(10,"i",42),h("click",function(){x(e);let r=c();return b(r.onLoginState())}),o()()()(),i(11,"div",19)(12,"div",43)(13,"span",44),d(14,"i",45),o(),d(15,"input",46),o(),_(16,ue,3,1,"div",47),o(),i(17,"div",19)(18,"div",48)(19,"span",44),d(20,"i",49),o(),i(21,"div",50),_(22,_e,2,1),d(23,"input",51),o()(),_(24,xe,3,1,"div",47),i(25,"div",52)(26,"a",53),l(27,"Forgot Password?"),o()()(),i(28,"button",54),l(29," Login "),o(),i(30,"div",55)(31,"div",56),d(32,"hr",57),i(33,"p",58),l(34,"or"),o(),d(35,"hr",57),o(),i(36,"button",59),h("click",function(){x(e);let r=c();return b(r.onSigninWithGoogle())}),i(37,"div",60),d(38,"i",61),i(39,"span",62),l(40,"Sign In with Google"),o()()()()()}if(n&2){let e,t,r,u,f,s=c();a(8),S(" (",s.hostFormField," ) "),a(7),p("ngClass",I(8,ae,((e=s.form.get("username"))==null?null:e.invalid)&&!((e=s.form.get("username"))!=null&&e.untouched))),a(),v((t=s.form.get("username"))!=null&&t.invalid&&!((t=s.form.get("username"))!=null&&t.untouched)?16:-1),a(6),v((r=s.form.get("password"))!=null&&r.value.length?22:-1),a(),p("ngClass",I(10,ae,((u=s.form.get("password"))==null?null:u.invalid)&&!((u=s.form.get("password"))!=null&&u.untouched)))("type",s.passwordInputType()),a(),v((f=s.form.get("password"))!=null&&f.invalid&&!((f=s.form.get("password"))!=null&&f.untouched)?24:-1),a(2),p("href","https://"+s.host+"/ForgotPassword",k)}}var le=(()=>{class n{constructor(){this.form=new K({}),this.loginState=C("FORM_DOMAIN"),this.news$=V([]),this.domains=C([".dealpos.co.id",".dealpos.net",".dealpos.com",".dealpos.app"]),this.passwordInputType=C("password"),this.onsubmit=onsubmit,this._destroy=new F,this.authService=g(E),this.fb=g(Y),this.httpService=g(te),this.version=C(""),this.router=g(O),this.regexSanitizeHostname=/^(https?):\/\/([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}(\/.*)?$/}get hostFormField(){let e=this.form?.get("subDomain")?.value,t=this.form?.get("domain")?.value;if(e.match(this.regexSanitizeHostname)){let r=new URL(e);return r.origin.slice(0,r.origin.indexOf(".")).concat(t)}else return e.concat(t)}get domainStorage(){let e=this.authService.getDomain(),t=e.indexOf(".");return e.substring(t,e.length)}get host(){let{subDomain:e,domain:t}=this.form.value;return e+t}ngOnInit(){this.initForm(),this.news$=this.httpService.get("v2/content?fetch=children:barcode&sort=sortOrder:asc",void 0,"https://changelog.dealpos.app/umbraco/delivery/api/").pipe(U(e=>e.items))}initForm(){let e=this.authService.getDomain(),[t,r]=e.split("."),u=localStorage.getItem("Username")??"";this.form=this.fb.group({subDomain:[t??"",y.required],domain:[e.substring(e.indexOf(".dealpos"))||this.domains()[0],y.required],username:[u,y.required],password:["",y.required]})}isValidUrl(e){try{return!!new URL(e)}catch{return!1}}onLogin(){let{subDomain:e,domain:t,username:r,password:u}=this.form.value,f="";e.match(this.regexSanitizeHostname)?f=e.replace(t,t):f=e.concat(t);let s={Host:this.isValidUrl(f)?new URL(f).hostname:f,Username:r,Password:u};this.authService.login(s).pipe(re("login"),M(this._destroy)).subscribe(()=>{this.router.navigate(["/print-mode"])})}onSigninWithGoogle(){let{subDomain:e,domain:t,username:r,password:u}=this.form.value;this.authService.signInWithPopup(e+t).pipe(M(this._destroy),D(()=>this.authService.redirectUrl())).subscribe()}onLoginState(){let e=this.loginState();if(e==="FORM_DOMAIN")this.loginState.set("FORM_AUTH");else if(e==="FORM_AUTH"){let t=this.form.get("subDomain").value;this.form.patchValue({subDomain:t.slice(0,t.indexOf("."))}),this.loginState.set("FORM_DOMAIN")}}ngOnDestroy(){this._destroy.next(),this._destroy.complete()}isAppVersionUpdated(){let e=localStorage.getItem("appVersion"),t=A.version;return!!(e&&t&&e.replaceAll(".","")!==t.replaceAll(".",""))}ngAfterViewInit(){this.version.set(A.version)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=N({type:n,selectors:[["app-login"]],standalone:!0,features:[R],decls:23,vars:6,consts:[[1,"container-fluid","border","my-auto","d-flex","flex-column"],[1,"flex-grow-1","d-flex","align-items-center","justify-content-center"],[1,"row",2,"background","#ffffff","max-width","57rem","border-radius","4px"],[1,"p-0","col-12","col-md-6","border-end","d-flex","flex-column","align-items-center","py-4"],[1,"font-robotoslab","fw-normal","fs-6","text-dark"],["pagination","true","pagination-clickable","true","slides-per-view","1"],[1,"p-0","col-12","col-md-6","py-4"],[1,"h-100","d-flex","flex-column","gap-4","my-2","mx-5",3,"ngSubmit","formGroup"],[1,"d-flex","flex-column","justify-content-center","gap-3","h-100",2,"margin-top","-55px"],[1,"d-flex","flex-column","gap-3"],[1,"row","d-md-flex","py-3","px-4"],[1,"col-12","col-md-6","d-flex","align-items-center","gap-2"],[1,"m-0","h-100","d-flex","align-items-center","fs-2","fw-normal"],["alt","dealpos-logo","src","https://res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png",1,"img-fluid"],[1,"cursor-pointer","col-12","col-md-6","d-flex","justify-content-center","gap-2","justify-content-md-end","align-items-center"],["target","_blank",1,"d-flex","gap-1",3,"href"],[1,"fst-italic","m-0","fs-2","fw-normal","text-dark","cursor-pointer"],[1,"d-flex","flex-column","gap-4"],["alt","",1,"img-fluid",3,"src"],[1,"d-flex","flex-column"],[1,"text-dark",2,"font-size","16px","font-weight","700"],[1,"d-flex","flex-wrap",2,"max-width","22rem"],[1,"fw-normal","text-dark"],[1,"m-0","font-robotoslab","text-dark","fs-6"],[1,"fst-italic","fw-normal","text-secondary-emphasis",2,"font-size","11px"],[1,"row",2,"height","50px"],[1,"col-12","h-100","mb-2","mb-md-0"],[1,"input-group","mb-3","border","rounded"],[1,"input-group-text","border-0","text-dark"],[1,"fas","fa-cloud"],["id","subDomain","formControlName","subDomain","type","text","placeholder","Store Address","aria-label","Username","aria-describedby","basic-addon1",1,"form-control","form-control-lg","text-dark",2,"border-radius","0","font-size","14px"],[1,"input-group-text","p-0",2,"z-index","99"],["formControlName","domain",1,"custom",2,"font-size","14px",3,"clearable"],[3,"value"],["type","button",1,"btn","btn-primary","btn-lg","w-100","font-robotoslab","fs-4",3,"click"],[2,"font-size","14px"],[1,"d-flex","align-baseline","gap-2"],[1,"m-0"],[1,"m-0","d-flex","align-items-end"],[1,"d-flex"],[1,"m-0","d-flex","align-items-end","fw-bold","me-2","font-robotoslab","d-inline-block","text-primary"],["href","#",1,"pe-auto","d-flex","align-items-center"],[1,"fas","fa-edit","d-flex","align-items-center","link-primary","fs-3",3,"click"],[1,"input-group","border","rounded",2,"height","50px"],[1,"input-group-text","text-dark"],[1,"fas","fa-user"],["formControlName","username","type","text","placeholder","Username","aria-label","Username","aria-describedby","basic-addon1",1,"form-control","form-control-lg","text-dark",3,"ngClass"],[1,"invalid-feedback"],[1,"input-group","d-flex","border","rounded",2,"height","50px"],[1,"fas","fa-key"],[1,"position-relative","flex-grow-1","h-100"],["formControlName","password","placeholder","Password","aria-label","Username","aria-describedby","basic-addon1",1,"form-control","form-control-lg","h-100","text-dark",3,"ngClass","type"],[1,"w-100","d-flex","justify-content-end"],[1,"link-underline-light","fs-2","fw-normal",3,"href"],["type","submit",1,"btn","btn-primary","btn-lg","fs-4","font-robotoslab"],[1,"d-flex","flex-column","align-items-center","gap-2"],[1,"d-flex","justify-content-center","gap-2"],[2,"width","150px","border","1px solid rgba(0, 0, 0, 0.85)"],[1,"m-0",2,"line-height","30px"],["type","button",1,"btn","btn-outline-primary","btn-lg","w-100",3,"click"],[1,"h-100","d-flex","align-items-center","justify-content-center","gap-2"],[1,"fab","fa-google","fs-3"],[1,"fw-medium","fs-3"],[4,"ngIf"],[1,"fas","fa-eye","position-absolute","top-0","end-0",2,"transform","translate(-50%, 90%)"],[1,"fas","fa-eye-slash","position-absolute","top-0","end-0",2,"transform","translate(-50%, 90%)"],[1,"fas","fa-eye","position-absolute","top-0","end-0",2,"transform","translate(-50%, 90%)",3,"click"],[1,"fas","fa-eye-slash","position-absolute","top-0","end-0",2,"transform","translate(-50%, 90%)",3,"click"]],template:function(t,r){t&1&&(i(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h4",4),l(5,"New Features"),o(),i(6,"swiper-container",5),P(7,de,9,3,"swiper-slide",null,T),j(9,"async"),o()(),i(10,"div",6)(11,"form",7),h("ngSubmit",function(){return r.onLogin()}),_(12,pe,18,1,"div",8)(13,be,41,12,"div",9),o()()()(),i(14,"div",10)(15,"div",11)(16,"p",12),l(17," Powered by: "),o(),d(18,"img",13),o(),i(19,"div",14)(20,"a",15)(21,"span",16),l(22),o()()()()()),t&2&&(a(7),L(G(9,4,r.news$)),a(4),p("formGroup",r.form),a(),v(r.loginState()==="FORM_DOMAIN"?12:13),a(8),p("href","https://changelog.dealpos.com/?categories=cat_IOl3P9ko0ayhv&view=complete&v"+r.version().replaceAll(".",""),k),a(2),S("Version ",r.version(),""))},dependencies:[H,q,ee,J,$,W,Z,Q,X,oe,ie,ne,B],styles:[".auth-wrapper[_ngcontent-%COMP%]{min-height:100vh;position:relative}.container-fluid[_ngcontent-%COMP%]{height:100vh}.grid__container[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,50%);width:50vw;height:50vh;background:#fff;box-shadow:0 10px 15px -3px #0000001a;border-radius:15px;overflow:hidden}.container[_ngcontent-%COMP%]{height:400px}swiper-container[_ngcontent-%COMP%]{height:100%;width:100%}swiper-slide[_ngcontent-%COMP%]{text-align:center;font-size:12px;background:#fff;display:flex;justify-content:center;align-items:center}swiper-slide[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:block;width:250px;height:150px;object-fit:cover;margin:0 auto}.btn[_ngcontent-%COMP%]:hover{background:transparent;color:#337ab7;box-shadow:none}.invalid-feedback[_ngcontent-%COMP%]{display:block}.btn[_ngcontent-%COMP%]{padding:.8rem 0}input[_ngcontent-%COMP%]::placeholder{color:gray;font-size:15px;opacity:.8}input[_ngcontent-%COMP%]{font-size:15px;border-color:#dee2e6}.input-group-text[_ngcontent-%COMP%]{background:transparent;border:none!important}.ng-touched.ng-valid[_ngcontent-%COMP%]{border-color:#dee2e6!important}.form-control[_ngcontent-%COMP%]{border:none!important}.fa-google[_ngcontent-%COMP%]{background:conic-gradient(from -45deg,#ea4335 110deg,#4285f4 90deg 180deg,#34a853 180deg 270deg,#fbbc05 270deg) 73% 55%/150% 150% no-repeat;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}[_nghost-%COMP%] .ng-select .ng-select-container{border:1px solid #e9edf2;border-radius:0!important}[_nghost-%COMP%] .ng-dropdown-panel.ng-select-bottom{border-radius:4px;overflow:hidden} .ng-select.custom{height:100%!important;border:none!important} .ng-select.custom .ng-select-container{height:100%!important;border-top:none!important;border-right:none!important;border-bottom:none!important;border-radius:4px!important}"]})}}return n})();var se=(n,m)=>{let e=g(E),t=g(O);if(e.isAuthenticated()&&!e.isTokenExpired()&&e.checkAuthKeysExists())switch(localStorage.getItem("PrintMode")){case"barcode":return t.navigate(["pages/barcode"]);case"priceLabel":return t.createUrlTree(["/pages/shelf/price-label"],{queryParams:{step:0}});default:return t.createUrlTree(["/"])}return!0};var qe=[{path:"",component:le,canActivate:[se]}];export{qe as AUTH_ROUTES};
|
package/chunk-L2JD4R6O.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as z}from"./chunk-HHB3BUIC.js";import{g as A,h as O,i as k,k as L}from"./chunk-7V3KH6IR.js";import{t as H}from"./chunk-G2JXUY7S.js";import"./chunk-X4PZGB4F.js";import"./chunk-UBR4JEV7.js";import{Q as $,a as q}from"./chunk-RH3ZV23S.js";import"./chunk-CARY4E7O.js";import{l as B,n as N}from"./chunk-LTVGOJEF.js";import{Ad as M,C as d,Da as a,Ec as x,Ha as y,I as v,J as P,Kb as D,Nc as F,Rb as C,Vb as s,Xa as w,Z as S,a as g,b as u,ec as T,fc as b,gc as l,hc as p,ic as m,rd as I,sd as R,ta as _,td as E,zb as h}from"./chunk-UE2JJIFL.js";function U(t,c){t&1&&(p(0),l(1,"app-choose-profile-template"),m())}function V(t,c){t&1&&(p(0),l(1,"choose-product"),m())}function j(t,c){if(t&1&&l(0,"app-barcode-preview",4),t&2){let e=c.$implicit;s("items",e)}}function J(t,c){t&1&&(p(0),T(1,"app-customize-label"),C(2,j,1,1,"ng-template",null,0,F),b(),m())}function G(t,c){t&1&&(p(0),l(1,"app-print-preview"),m())}var le=(()=>{class t{constructor(){this.storeService=a(H),this.httpService=a($),this.destroyRef=a(w),this.routes=a(B),this.router=a(N),this.step=D(0)}get printMode(){let e=this.routes.snapshot.queryParamMap.get("printMode");return console.log("printMode",e),e}ngOnInit(){this.storeService.onReset(),console.log(localStorage.getItem("Domain"))}ngAfterViewInit(){let e=this.getHostFromDomain();this.loadInitialData(e)}getHostFromDomain(){let e=localStorage.getItem("Domain");return e?this.hasProtocol(e)?new URL(e).hostname:e:null}hasProtocol(e){return/^(https?):\/\//.test(e)}loadInitialData(e){if(!e){console.warn("No domain found in localStorage");return}let o=localStorage.getItem("selectedPaperFormat"),n=this.httpService.post("api/Config/PaperConfig",{SubDomain:e}).pipe(S(r=>d({error:r}))),i=this.httpService.get("/API/V3/Tax",void 0,`https://${e}`).pipe(S(r=>d({error:r})));P([n,i]).pipe(q(this.destroyRef),v(([r,f])=>this.normalizeResponses(r,f)),_(({paperConfig:r,taxs:f})=>{this.applyDataToStore(r,f)})).subscribe()}normalizeResponses(e,o){let n=i=>i&&"error"in i;return{paperConfig:n(e)?null:e,taxs:n(o)?null:o}}applyDataToStore(e,o){let n=JSON.parse(localStorage.getItem("selectedPaperFormat")||"null");e&&(this.storeService.onChangePaperConfig(u(g({},e),{PaperFormats:e.PaperFormats.map(i=>u(g({},i),{OutletID:null}))})),n?this.storeService.onChangePaperConfiguration(n):e.PaperFormats.length>0&&this.storeService.onChangePaperConfiguration(e.PaperFormats[0])),o&&this.storeService.onChangeTaxs(o)}onNext(){if(this.step()>=3){console.warn("Maximum step reached, cannot proceed further.");return}this.router.navigate([],{relativeTo:this.routes,queryParams:{step:this.step()+1},queryParamsHandling:"merge"})}onPrevious(){if(this.step()<=1){console.warn("Already at the first step, cannot go back.");return}this.router.navigate([],{relativeTo:this.routes,queryParams:{step:this.step()-1},queryParamsHandling:"merge"})}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=y({type:t,selectors:[["app-shelf-barcode"]],standalone:!0,features:[x],decls:5,vars:4,consts:[["content",""],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"items"]],template:function(o,n){o&1&&(p(0,1),C(1,U,2,0,"ng-container",2)(2,V,2,0,"ng-container",2)(3,J,4,0,"ng-container",2)(4,G,2,0,"ng-container",3),m()),o&2&&(s("ngSwitch",n.storeService.stepper$().state),h(),s("ngSwitchCase",0),h(),s("ngSwitchCase",1),h(),s("ngSwitchCase",2))},dependencies:[A,M,I,R,E,k,O,L,z],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();export{le as ShelfBarcodeComponent};
|
package/chunk-LTVGOJEF.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{$a as fn,Aa as C,Ab as we,B as P,Ba as an,Bb as Br,Bd as ai,C as p,Ca as m,D as xe,Da as d,Dd as Ct,E as yr,Ea as cn,Ec as Yr,Ed as ci,F as wr,Fa as Mr,Fb as Vr,Fd as Et,Ga as Ue,Gb as qr,Ha as Ar,Hb as Gr,I as S,Ia as vt,J as gt,Ja as un,K as U,L as nn,La as Le,M as Rr,N as rn,Na as Dr,Oa as ue,Ob as Wr,Pa as F,Pb as Hr,Qb as mn,Qc as yt,Ra as ln,Rc as Qr,Sc as vn,Tb as Xr,Tc as wt,U as G,Ua as hn,Ub as Jr,Uc as Rt,Va as Or,Vc as St,Wa as dn,Xc as yn,Ya as ke,Yc as ei,Z as ge,Za as je,Zc as Tt,_ as Q,_a as B,a as f,b as O,ba as sn,bb as Pr,ca as me,da as Sr,db as Nr,dd as ti,eb as pn,ed as wn,fb as xr,fd as ni,g as Yt,gb as le,gc as Zr,gd as ri,ha as ce,hd as x,ia as ee,ib as gn,id as ii,ja as on,jb as ve,jd as Fe,ka as Tr,kb as ye,kd as si,l as mr,lb as Ur,ld as oi,m as vr,ma as br,mb as Lr,md as $e,n as Qt,nb as kr,nc as Kr,nd as bt,o as en,ob as jr,p as tn,pb as _r,q as K,qa as Cr,qb as Fr,r as _,ra as L,rb as $r,sa as Er,sb as he,ta as D,va as E,vb as zr,x as Y,xa as R,ya as mt,yb as _e,za as Ir}from"./chunk-UE2JJIFL.js";var Be=class{},Mt=class{},W=class t{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?typeof n=="string"?this.lazyInit=()=>{this.headers=new Map,n.split(`
|
|
2
|
-
`).forEach(e=>{let r=e.indexOf(":");if(r>0){let i=e.slice(0,r),s=i.toLowerCase(),o=e.slice(r+1).trim();this.maybeSetNormalizedName(i,s),this.headers.has(s)?this.headers.get(s).push(o):this.headers.set(s,[o])}})}: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 s=n.value;if(!s)this.headers.delete(e),this.normalizedNames.delete(e);else{let o=this.headers.get(e);if(!o)return;o=o.filter(c=>s.indexOf(c)===-1),o.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}break}}setHeaderEntries(n,e){let r=(Array.isArray(e)?e:[e]).map(s=>s.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 Sn=class{encodeKey(n){return ui(n)}encodeValue(n){return ui(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}};function Es(t,n){let e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(i=>{let s=i.indexOf("="),[o,c]=s==-1?[n.decodeKey(i),""]:[n.decodeKey(i.slice(0,s)),n.decodeValue(i.slice(s+1))],a=e.get(o)||[];a.push(c),e.set(o,a)}),e}var Is=/%(\d[a-f0-9])/gi,Ms={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function ui(t){return encodeURIComponent(t).replace(Is,(n,e)=>Ms[e]??n)}function It(t){return`${t}`}var ne=class t{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new Sn,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=Es(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(It):[It(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(s=>{e.push({param:r,value:s,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(It(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(It(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 Tn=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 As(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function li(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function hi(t){return typeof Blob<"u"&&t instanceof Blob}function di(t){return typeof FormData<"u"&&t instanceof FormData}function Ds(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var ze=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 s;if(As(this.method)||i?(this.body=r!==void 0?r:null,s=i):s=r,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params),this.transferCache=s.transferCache),this.headers??=new W,this.context??=new Tn,!this.params)this.params=new ne,this.urlWithParams=e;else{let o=this.params.toString();if(o.length===0)this.urlWithParams=e;else{let c=e.indexOf("?"),a=c===-1?"?":c<e.length-1?"&":"";this.urlWithParams=e+a+o}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||li(this.body)||hi(this.body)||di(this.body)||Ds(this.body)?this.body:this.body instanceof ne?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||di(this.body)?null:hi(this.body)?this.body.type||null:li(this.body)?null:typeof this.body=="string"?"text/plain":this.body instanceof ne?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?"application/json":null}clone(n={}){let e=n.method||this.method,r=n.url||this.url,i=n.responseType||this.responseType,s=n.transferCache??this.transferCache,o=n.body!==void 0?n.body:this.body,c=n.withCredentials??this.withCredentials,a=n.reportProgress??this.reportProgress,u=n.headers||this.headers,l=n.params||this.params,h=n.context??this.context;return n.setHeaders!==void 0&&(u=Object.keys(n.setHeaders).reduce((y,T)=>y.set(T,n.setHeaders[T]),u)),n.setParams&&(l=Object.keys(n.setParams).reduce((y,T)=>y.set(T,n.setParams[T]),l)),new t(e,r,o,{params:l,headers:u,context:h,reportProgress:a,responseType:i,withCredentials:c,transferCache:s})}},re=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}(re||{}),Ve=class{constructor(n,e=200,r="OK"){this.headers=n.headers||new W,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}},At=class t extends Ve{constructor(n={}){super(n),this.type=re.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})}},qe=class t extends Ve{constructor(n={}){super(n),this.type=re.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})}},te=class extends Ve{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}},yi=200,Os=204;function Rn(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 Ps=(()=>{class t{constructor(e){this.handler=e}request(e,r,i={}){let s;if(e instanceof ze)s=e;else{let a;i.headers instanceof W?a=i.headers:a=new W(i.headers);let u;i.params&&(i.params instanceof ne?u=i.params:u=new ne({fromObject:i.params})),s=new ze(e,r,i.body!==void 0?i.body:null,{headers:a,context:i.context,params:u,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache})}let o=p(s).pipe(Q(a=>this.handler.handle(a)));if(e instanceof ze||i.observe==="events")return o;let c=o.pipe(G(a=>a instanceof qe));switch(i.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return c.pipe(S(a=>{if(a.body!==null&&!(a.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return a.body}));case"blob":return c.pipe(S(a=>{if(a.body!==null&&!(a.body instanceof Blob))throw new Error("Response is not a Blob.");return a.body}));case"text":return c.pipe(S(a=>{if(a.body!==null&&typeof a.body!="string")throw new Error("Response is not a string.");return a.body}));case"json":default:return c.pipe(S(a=>a.body))}case"response":return c;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 ne().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,Rn(i,r))}post(e,r,i={}){return this.request("POST",e,Rn(i,r))}put(e,r,i={}){return this.request("PUT",e,Rn(i,r))}static{this.\u0275fac=function(r){return new(r||t)(m(Be))}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac})}}return t})(),Ns=/^\)\]\}',?\n/,xs="X-Request-URL";function fi(t){if(t.url)return t.url;let n=xs.toLocaleLowerCase();return t.headers.get(n)}var Us=(()=>{class t{constructor(){this.fetchImpl=d(bn,{optional:!0})?.fetch??((...e)=>globalThis.fetch(...e)),this.ngZone=d(B)}handle(e){return new Qt(r=>{let i=new AbortController;return this.doRequest(e,i.signal,r).then(Cn,s=>r.error(new te({error:s}))),()=>i.abort()})}doRequest(e,r,i){return Yt(this,null,function*(){let s=this.createRequestInit(e),o;try{let T=this.ngZone.runOutsideAngular(()=>this.fetchImpl(e.urlWithParams,f({signal:r},s)));Ls(T),i.next({type:re.Sent}),o=yield T}catch(T){i.error(new te({error:T,status:T.status??0,statusText:T.statusText,url:e.urlWithParams,headers:T.headers}));return}let c=new W(o.headers),a=o.statusText,u=fi(o)??e.urlWithParams,l=o.status,h=null;if(e.reportProgress&&i.next(new At({headers:c,status:l,statusText:a,url:u})),o.body){let T=o.headers.get("content-length"),M=[],w=o.body.getReader(),v=0,N,Z,I=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>Yt(this,null,function*(){for(;;){let{done:ae,value:Ne}=yield w.read();if(ae)break;if(M.push(Ne),v+=Ne.length,e.reportProgress){Z=e.responseType==="text"?(Z??"")+(N??=new TextDecoder).decode(Ne,{stream:!0}):void 0;let gr=()=>i.next({type:re.DownloadProgress,total:T?+T:void 0,loaded:v,partialText:Z});I?I.run(gr):gr()}}}));let Pe=this.concatChunks(M,v);try{let ae=o.headers.get("Content-Type")??"";h=this.parseBody(e,Pe,ae)}catch(ae){i.error(new te({error:ae,headers:new W(o.headers),status:o.status,statusText:o.statusText,url:fi(o)??e.urlWithParams}));return}}l===0&&(l=h?yi:0),l>=200&&l<300?(i.next(new qe({body:h,headers:c,status:l,statusText:a,url:u})),i.complete()):i.error(new te({error:h,headers:c,status:l,statusText:a,url:u}))})}parseBody(e,r,i){switch(e.responseType){case"json":let s=new TextDecoder().decode(r).replace(Ns,"");return s===""?null:JSON.parse(s);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((s,o)=>r[s]=o.join(",")),e.headers.has("Accept")||(r.Accept="application/json, text/plain, */*"),!e.headers.has("Content-Type")){let s=e.detectContentTypeHeader();s!==null&&(r["Content-Type"]=s)}return{body:e.serializeBody(),method:e.method,headers:r,credentials:i}}concatChunks(e,r){let i=new Uint8Array(r),s=0;for(let o of e)i.set(o,s),s+=o.length;return i}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac})}}return t})(),bn=class{};function Cn(){}function Ls(t){t.then(Cn,Cn)}function wi(t,n){return n(t)}function ks(t,n){return(e,r)=>n.intercept(e,{handle:i=>t(i,r)})}function js(t,n,e){return(r,i)=>F(e,()=>n(r,s=>t(s,i)))}var _s=new C(""),Ot=new C(""),Fs=new C(""),Ri=new C("",{providedIn:"root",factory:()=>!0});function $s(){let t=null;return(n,e)=>{t===null&&(t=(d(_s,{optional:!0})??[]).reduceRight(ks,wi));let r=d(ke);if(d(Ri)){let s=r.add();return t(n,e).pipe(ce(()=>r.remove(s)))}else return t(n,e)}}var pi=(()=>{class t extends Be{constructor(e,r){super(),this.backend=e,this.injector=r,this.chain=null,this.pendingTasks=d(ke),this.contributeToStability=d(Ri)}handle(e){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(Ot),...this.injector.get(Fs,[])]));this.chain=r.reduceRight((i,s)=>js(i,s,this.injector),wi)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(e,i=>this.backend.handle(i)).pipe(ce(()=>this.pendingTasks.remove(r)))}else return this.chain(e,r=>this.backend.handle(r))}static{this.\u0275fac=function(r){return new(r||t)(m(Mt),m(ue))}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac})}}return t})();var zs=/^\)\]\}',?\n/;function Bs(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var gi=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new E(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?P(r.\u0275loadImpl()):p(null)).pipe(L(()=>new Qt(s=>{let o=r.build();if(o.open(e.method,e.urlWithParams),e.withCredentials&&(o.withCredentials=!0),e.headers.forEach((w,v)=>o.setRequestHeader(w,v.join(","))),e.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){let w=e.detectContentTypeHeader();w!==null&&o.setRequestHeader("Content-Type",w)}if(e.responseType){let w=e.responseType.toLowerCase();o.responseType=w!=="json"?w:"text"}let c=e.serializeBody(),a=null,u=()=>{if(a!==null)return a;let w=o.statusText||"OK",v=new W(o.getAllResponseHeaders()),N=Bs(o)||e.url;return a=new At({headers:v,status:o.status,statusText:w,url:N}),a},l=()=>{let{headers:w,status:v,statusText:N,url:Z}=u(),I=null;v!==Os&&(I=typeof o.response>"u"?o.responseText:o.response),v===0&&(v=I?yi:0);let Pe=v>=200&&v<300;if(e.responseType==="json"&&typeof I=="string"){let ae=I;I=I.replace(zs,"");try{I=I!==""?JSON.parse(I):null}catch(Ne){I=ae,Pe&&(Pe=!1,I={error:Ne,text:I})}}Pe?(s.next(new qe({body:I,headers:w,status:v,statusText:N,url:Z||void 0})),s.complete()):s.error(new te({error:I,headers:w,status:v,statusText:N,url:Z||void 0}))},h=w=>{let{url:v}=u(),N=new te({error:w,status:o.status||0,statusText:o.statusText||"Unknown Error",url:v||void 0});s.error(N)},y=!1,T=w=>{y||(s.next(u()),y=!0);let v={type:re.DownloadProgress,loaded:w.loaded};w.lengthComputable&&(v.total=w.total),e.responseType==="text"&&o.responseText&&(v.partialText=o.responseText),s.next(v)},M=w=>{let v={type:re.UploadProgress,loaded:w.loaded};w.lengthComputable&&(v.total=w.total),s.next(v)};return o.addEventListener("load",l),o.addEventListener("error",h),o.addEventListener("timeout",h),o.addEventListener("abort",h),e.reportProgress&&(o.addEventListener("progress",T),c!==null&&o.upload&&o.upload.addEventListener("progress",M)),o.send(c),s.next({type:re.Sent}),()=>{o.removeEventListener("error",h),o.removeEventListener("abort",h),o.removeEventListener("load",l),o.removeEventListener("timeout",h),e.reportProgress&&(o.removeEventListener("progress",T),c!==null&&o.upload&&o.upload.removeEventListener("progress",M)),o.readyState!==o.DONE&&o.abort()}})))}static{this.\u0275fac=function(r){return new(r||t)(m(Et))}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac})}}return t})(),Si=new C(""),Vs="XSRF-TOKEN",qs=new C("",{providedIn:"root",factory:()=>Vs}),Gs="X-XSRF-TOKEN",Ws=new C("",{providedIn:"root",factory:()=>Gs}),Dt=class{},Hs=(()=>{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=bt(e,this.cookieName),this.lastCookieString=e),this.lastToken}static{this.\u0275fac=function(r){return new(r||t)(m(x),m(le),m(qs))}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac})}}return t})();function Xs(t,n){let e=t.url.toLowerCase();if(!d(Si)||t.method==="GET"||t.method==="HEAD"||e.startsWith("http://")||e.startsWith("https://"))return n(t);let r=d(Dt).getToken(),i=d(Ws);return r!=null&&!t.headers.has(i)&&(t=t.clone({headers:t.headers.set(i,r)})),n(t)}var En=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}(En||{});function Ti(t,n){return{\u0275kind:t,\u0275providers:n}}function Pc(...t){let n=[Ps,gi,pi,{provide:Be,useExisting:pi},{provide:Mt,useFactory:()=>d(Us,{optional:!0})??d(gi)},{provide:Ot,useValue:Xs,multi:!0},{provide:Si,useValue:!0},{provide:Dt,useClass:Hs}];for(let e of t)n.push(...e.\u0275providers);return Le(n)}function Nc(t){return Ti(En.Interceptors,t.map(n=>({provide:Ot,useValue:n,multi:!0})))}var mi=new C("");function xc(){return Ti(En.LegacyInterceptors,[{provide:mi,useFactory:$s},{provide:Ot,useExisting:mi,multi:!0}])}var An=class extends ri{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Dn=class t extends An{static makeCurrent(){ni(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=Ks();return e==null?null:Ys(e)}resetBaseElement(){Ge=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return bt(document.cookie,n)}},Ge=null;function Ks(){return Ge=Ge||document.querySelector("base"),Ge?Ge.getAttribute("href"):null}function Ys(t){return new URL(t,document.baseURI).pathname}var Qs=(()=>{class t{build(){return new XMLHttpRequest}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac})}}return t})(),On=new C(""),Ii=(()=>{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(s=>s.supports(e)),!r)throw new E(5101,!1);return this._eventNameToPlugin.set(e,r),r}static{this.\u0275fac=function(r){return new(r||t)(m(On),m(B))}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac})}}return t})(),Pt=class{constructor(n){this._doc=n}},In="ng-app-id",Mi=(()=>{class t{constructor(e,r,i,s={}){this.doc=e,this.appId=r,this.nonce=i,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Ct(s),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[${In}="${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 s=i.get(e);return s.usage+=r,s.usage}return i.set(e,{usage:r,elements:[]}),r}getStyleElement(e,r){let i=this.styleNodesInDOM,s=i?.get(r);if(s?.parentNode===e)return i.delete(r),s.removeAttribute(In),s;{let o=this.doc.createElement("style");return this.nonce&&o.setAttribute("nonce",this.nonce),o.textContent=r,this.platformIsServer&&o.setAttribute(In,this.appId),e.appendChild(o),o}}addStyleToHost(e,r){let i=this.getStyleElement(e,r),s=this.styleRef,o=s.get(r)?.elements;o?o.push(i):s.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)(m(x),m(pn),m(gn,8),m(le))}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac})}}return t})(),Mn={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"},Nn=/%COMP%/g,Ai="%COMP%",eo=`_nghost-${Ai}`,to=`_ngcontent-${Ai}`,no=!0,ro=new C("",{providedIn:"root",factory:()=>no});function io(t){return to.replace(Nn,t)}function so(t){return eo.replace(Nn,t)}function Di(t,n){return n.map(e=>e.replace(Nn,t))}var bi=(()=>{class t{constructor(e,r,i,s,o,c,a,u=null){this.eventManager=e,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=s,this.doc=o,this.platformId=c,this.ngZone=a,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=Ct(c),this.defaultRenderer=new We(e,o,a,this.platformIsServer)}createRenderer(e,r){if(!e||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Ue.ShadowDom&&(r=O(f({},r),{encapsulation:Ue.Emulated}));let i=this.getOrCreateRenderer(e,r);return i instanceof Nt?i.applyToHost(e):i instanceof He&&i.applyStyles(),i}getOrCreateRenderer(e,r){let i=this.rendererByCompId,s=i.get(r.id);if(!s){let o=this.doc,c=this.ngZone,a=this.eventManager,u=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,h=this.platformIsServer;switch(r.encapsulation){case Ue.Emulated:s=new Nt(a,u,r,this.appId,l,o,c,h);break;case Ue.ShadowDom:return new Pn(a,u,e,r,o,c,this.nonce,h);default:s=new He(a,u,r,l,o,c,h);break}i.set(r.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(r){return new(r||t)(m(Ii),m(Mi),m(pn),m(ro),m(x),m(le),m(B),m(gn))}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac})}}return t})(),We=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(Mn[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(Ci(n)?n.content:n).appendChild(e)}insertBefore(n,e,r){n&&(Ci(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 E(-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 s=Mn[i];s?n.setAttributeNS(s,e,r):n.setAttribute(e,r)}else n.setAttribute(e,r)}removeAttribute(n,e,r){if(r){let i=Mn[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&(_e.DashCase|_e.Important)?n.style.setProperty(e,r,i&_e.Important?"important":""):n.style[e]=r}removeStyle(n,e,r){r&_e.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=wn().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 Ci(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var Pn=class extends We{constructor(n,e,r,i,s,o,c,a){super(n,s,o,a),this.sharedStylesHost=e,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=Di(i.id,i.styles);for(let l of u){let h=document.createElement("style");c&&h.setAttribute("nonce",c),h.textContent=l,this.shadowRoot.appendChild(h)}}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)}},He=class extends We{constructor(n,e,r,i,s,o,c,a){super(n,s,o,c),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=i,this.styles=a?Di(a,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Nt=class extends He{constructor(n,e,r,i,s,o,c,a){let u=i+"-"+r.id;super(n,e,r,s,o,c,a,u),this.contentAttr=io(u),this.hostAttr=so(u)}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}},oo=(()=>{class t extends Pt{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)(m(x))}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac})}}return t})(),Ei=["alt","control","meta","shift"],ao={"\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"},co={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},uo=(()=>{class t extends Pt{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,r,i){let s=t.parseEventName(r),o=t.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>wn().onAndCancel(e,s.domEventName,o))}static parseEventName(e){let r=e.toLowerCase().split("."),i=r.shift();if(r.length===0||!(i==="keydown"||i==="keyup"))return null;let s=t._normalizeKey(r.pop()),o="",c=r.indexOf("code");if(c>-1&&(r.splice(c,1),o="code."),Ei.forEach(u=>{let l=r.indexOf(u);l>-1&&(r.splice(l,1),o+=u+".")}),o+=s,r.length!=0||s.length===0)return null;let a={};return a.domEventName=i,a.fullKey=o,a}static matchEventFullKeyCode(e,r){let i=ao[e.key]||e.key,s="";return r.indexOf("code.")>-1&&(i=e.code,s="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),Ei.forEach(o=>{if(o!==i){let c=co[o];c(e)&&(s+=o+".")}}),s+=i,s===r)}static eventCallback(e,r,i){return s=>{t.matchEventFullKeyCode(s,e)&&i.runGuarded(()=>r(s))}}static _normalizeKey(e){return e==="esc"?"escape":e}static{this.\u0275fac=function(r){return new(r||t)(m(x))}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac})}}return t})();function ru(t,n){return ei(f({rootComponent:t},lo(n)))}function lo(t){return{appProviders:[...mo,...t?.providers??[]],platformProviders:go}}function ho(){Dn.makeCurrent()}function fo(){return new fn}function po(){return Nr(document),document}var go=[{provide:le,useValue:ai},{provide:xr,useValue:ho,multi:!0},{provide:x,useFactory:po,deps:[]}];var mo=[{provide:Dr,useValue:"root"},{provide:fn,useFactory:fo,deps:[]},{provide:On,useClass:oo,multi:!0,deps:[x,B,le]},{provide:On,useClass:uo,multi:!0,deps:[x]},bi,Mi,Ii,{provide:Vr,useExisting:bi},{provide:Et,useClass:Qs,deps:[]},[]];var Oi=(()=>{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)(m(x))}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var vo=(()=>{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=R({token:t,factory:function(r){let i=null;return r?i=new(r||t):i=m(yo),i},providedIn:"root"})}}return t})(),yo=(()=>{class t extends vo{constructor(e){super(),this._doc=e}sanitize(e,r){if(r==null)return null;switch(e){case he.NONE:return r;case he.HTML:return ye(r,"HTML")?ve(r):$r(this._doc,String(r)).toString();case he.STYLE:return ye(r,"Style")?ve(r):r;case he.SCRIPT:if(ye(r,"Script"))return ve(r);throw new E(5200,!1);case he.URL:return ye(r,"URL")?ve(r):Fr(String(r));case he.RESOURCE_URL:if(ye(r,"ResourceURL"))return ve(r);throw new E(5201,!1);default:throw new E(5202,!1)}}bypassSecurityTrustHtml(e){return Ur(e)}bypassSecurityTrustStyle(e){return Lr(e)}bypassSecurityTrustScript(e){return kr(e)}bypassSecurityTrustUrl(e){return jr(e)}bypassSecurityTrustResourceUrl(e){return _r(e)}static{this.\u0275fac=function(r){return new(r||t)(m(x))}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var g="primary",ct=Symbol("RouteTitle"),jn=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 Ee(t){return new jn(t)}function Ro(t,n,e){let r=e.path.split("/");if(r.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||r.length<t.length))return null;let i={};for(let s=0;s<r.length;s++){let o=r[s],c=t[s];if(o[0]===":")i[o.substring(1)]=c;else if(o!==c.path)return null}return{consumed:t.slice(0,r.length),posParams:i}}function So(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(!V(t[e],n[e]))return!1;return!0}function V(t,n){let e=t?_n(t):void 0,r=n?_n(n):void 0;if(!e||!r||e.length!=r.length)return!1;let i;for(let s=0;s<e.length;s++)if(i=e[s],!zi(t[i],n[i]))return!1;return!0}function _n(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function zi(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;let e=[...t].sort(),r=[...n].sort();return e.every((i,s)=>r[s]===i)}else return t===n}function Bi(t){return t.length>0?t[t.length-1]:null}function oe(t){return yr(t)?t:Qr(t)?P(Promise.resolve(t)):p(t)}var To={exact:qi,subset:Gi},Vi={exact:bo,subset:Co,ignored:()=>!0};function Pi(t,n,e){return To[e.paths](t.root,n.root,e.matrixParams)&&Vi[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function bo(t,n){return V(t,n)}function qi(t,n,e){if(!fe(t.segments,n.segments)||!Lt(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let r in n.children)if(!t.children[r]||!qi(t.children[r],n.children[r],e))return!1;return!0}function Co(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>zi(t[e],n[e]))}function Gi(t,n,e){return Wi(t,n,n.segments,e)}function Wi(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!fe(i,e)||n.hasChildren()||!Lt(i,e,r))}else if(t.segments.length===e.length){if(!fe(t.segments,e)||!Lt(t.segments,e,r))return!1;for(let i in n.children)if(!t.children[i]||!Gi(t.children[i],n.children[i],r))return!1;return!0}else{let i=e.slice(0,t.segments.length),s=e.slice(t.segments.length);return!fe(t.segments,i)||!Lt(t.segments,i,r)||!t.children[g]?!1:Wi(t.children[g],n,s,r)}}function Lt(t,n,e){return n.every((r,i)=>Vi[e](t[i].parameters,r.parameters))}var X=class{constructor(n=new b([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r}get queryParamMap(){return this._queryParamMap??=Ee(this.queryParams),this._queryParamMap}toString(){return Mo.serialize(this)}},b=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 kt(this)}},de=class{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=Ee(this.parameters),this._parameterMap}toString(){return Xi(this)}};function Eo(t,n){return fe(t,n)&&t.every((e,r)=>V(e.parameters,n[r].parameters))}function fe(t,n){return t.length!==n.length?!1:t.every((e,r)=>e.path===n[r].path)}function Io(t,n){let e=[];return Object.entries(t.children).forEach(([r,i])=>{r===g&&(e=e.concat(n(i,r)))}),Object.entries(t.children).forEach(([r,i])=>{r!==g&&(e=e.concat(n(i,r)))}),e}var ut=(()=>{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=R({token:t,factory:()=>new Ie,providedIn:"root"})}}return t})(),Ie=class{parse(n){let e=new $n(n);return new X(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${Xe(n.root,!0)}`,r=Oo(n.queryParams),i=typeof n.fragment=="string"?`#${Ao(n.fragment)}`:"";return`${e}${r}${i}`}},Mo=new Ie;function kt(t){return t.segments.map(n=>Xi(n)).join("/")}function Xe(t,n){if(!t.hasChildren())return kt(t);if(n){let e=t.children[g]?Xe(t.children[g],!1):"",r=[];return Object.entries(t.children).forEach(([i,s])=>{i!==g&&r.push(`${i}:${Xe(s,!1)}`)}),r.length>0?`${e}(${r.join("//")})`:e}else{let e=Io(t,(r,i)=>i===g?[Xe(t.children[g],!1)]:[`${i}:${Xe(r,!1)}`]);return Object.keys(t.children).length===1&&t.children[g]!=null?`${kt(t)}/${e[0]}`:`${kt(t)}/(${e.join("//")})`}}function Hi(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function xt(t){return Hi(t).replace(/%3B/gi,";")}function Ao(t){return encodeURI(t)}function Fn(t){return Hi(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function jt(t){return decodeURIComponent(t)}function Ni(t){return jt(t.replace(/\+/g,"%20"))}function Xi(t){return`${Fn(t.path)}${Do(t.parameters)}`}function Do(t){return Object.entries(t).map(([n,e])=>`;${Fn(n)}=${Fn(e)}`).join("")}function Oo(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${xt(e)}=${xt(i)}`).join("&"):`${xt(e)}=${xt(r)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var Po=/^[^\/()?;#]+/;function xn(t){let n=t.match(Po);return n?n[0]:""}var No=/^[^\/()?;=#]+/;function xo(t){let n=t.match(No);return n?n[0]:""}var Uo=/^[^=?&#]+/;function Lo(t){let n=t.match(Uo);return n?n[0]:""}var ko=/^[^&#]+/;function jo(t){let n=t.match(ko);return n?n[0]:""}var $n=class{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new b([],{}):new b([],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[g]=new b(n,e)),r}parseSegment(){let n=xn(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new E(4009,!1);return this.capture(n),new de(jt(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=xo(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let i=xn(this.remaining);i&&(r=i,this.capture(r))}n[jt(e)]=jt(r)}parseQueryParam(n){let e=Lo(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let o=jo(this.remaining);o&&(r=o,this.capture(r))}let i=Ni(e),s=Ni(r);if(n.hasOwnProperty(i)){let o=n[i];Array.isArray(o)||(o=[o],n[i]=o),o.push(s)}else n[i]=s}parseParens(n){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=xn(this.remaining),i=this.remaining[r.length];if(i!=="/"&&i!==")"&&i!==";")throw new E(4010,!1);let s;r.indexOf(":")>-1?(s=r.slice(0,r.indexOf(":")),this.capture(s),this.capture(":")):n&&(s=g);let o=this.parseChildren();e[s]=Object.keys(o).length===1?o[g]:new b([],o),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 E(4011,!1)}};function Ji(t){return t.segments.length>0?new b([],{[g]:t}):t}function Zi(t){let n={};for(let[r,i]of Object.entries(t.children)){let s=Zi(i);if(r===g&&s.segments.length===0&&s.hasChildren())for(let[o,c]of Object.entries(s.children))n[o]=c;else(s.segments.length>0||s.hasChildren())&&(n[r]=s)}let e=new b(t.segments,n);return _o(e)}function _o(t){if(t.numberOfChildren===1&&t.children[g]){let n=t.children[g];return new b(t.segments.concat(n.segments),n.children)}return t}function pe(t){return t instanceof X}function Fo(t,n,e=null,r=null){let i=Ki(t);return Yi(i,n,e,r)}function Ki(t){let n;function e(s){let o={};for(let a of s.children){let u=e(a);o[a.outlet]=u}let c=new b(s.url,o);return s===t&&(n=c),c}let r=e(t.root),i=Ji(r);return n??i}function Yi(t,n,e,r){let i=t;for(;i.parent;)i=i.parent;if(n.length===0)return Un(i,i,i,e,r);let s=$o(n);if(s.toRoot())return Un(i,i,new b([],{}),e,r);let o=zo(s,i,t),c=o.processChildren?Ke(o.segmentGroup,o.index,s.commands):es(o.segmentGroup,o.index,s.commands);return Un(i,o.segmentGroup,c,e,r)}function _t(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function et(t){return typeof t=="object"&&t!=null&&t.outlets}function Un(t,n,e,r,i){let s={};r&&Object.entries(r).forEach(([a,u])=>{s[a]=Array.isArray(u)?u.map(l=>`${l}`):`${u}`});let o;t===n?o=e:o=Qi(t,n,e);let c=Ji(Zi(o));return new X(c,s,i)}function Qi(t,n,e){let r={};return Object.entries(t.children).forEach(([i,s])=>{s===n?r[i]=e:r[i]=Qi(s,n,e)}),new b(t.segments,r)}var Ft=class{constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&_t(r[0]))throw new E(4003,!1);let i=r.find(et);if(i&&i!==Bi(r))throw new E(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function $o(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new Ft(!0,0,t);let n=0,e=!1,r=t.reduce((i,s,o)=>{if(typeof s=="object"&&s!=null){if(s.outlets){let c={};return Object.entries(s.outlets).forEach(([a,u])=>{c[a]=typeof u=="string"?u.split("/"):u}),[...i,{outlets:c}]}if(s.segmentPath)return[...i,s.segmentPath]}return typeof s!="string"?[...i,s]:o===0?(s.split("/").forEach((c,a)=>{a==0&&c==="."||(a==0&&c===""?e=!0:c===".."?n++:c!=""&&i.push(c))}),i):[...i,s]},[]);return new Ft(e,n,r)}var Te=class{constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r}};function zo(t,n,e){if(t.isAbsolute)return new Te(n,!0,0);if(!e)return new Te(n,!1,NaN);if(e.parent===null)return new Te(e,!0,0);let r=_t(t.commands[0])?0:1,i=e.segments.length-1+r;return Bo(e,i,t.numberOfDoubleDots)}function Bo(t,n,e){let r=t,i=n,s=e;for(;s>i;){if(s-=i,r=r.parent,!r)throw new E(4005,!1);i=r.segments.length}return new Te(r,!1,i-s)}function Vo(t){return et(t[0])?t[0].outlets:{[g]:t}}function es(t,n,e){if(t??=new b([],{}),t.segments.length===0&&t.hasChildren())return Ke(t,n,e);let r=qo(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){let s=new b(t.segments.slice(0,r.pathIndex),{});return s.children[g]=new b(t.segments.slice(r.pathIndex),t.children),Ke(s,0,i)}else return r.match&&i.length===0?new b(t.segments,{}):r.match&&!t.hasChildren()?zn(t,n,e):r.match?Ke(t,0,i):zn(t,n,e)}function Ke(t,n,e){if(e.length===0)return new b(t.segments,{});{let r=Vo(e),i={};if(Object.keys(r).some(s=>s!==g)&&t.children[g]&&t.numberOfChildren===1&&t.children[g].segments.length===0){let s=Ke(t.children[g],n,e);return new b(t.segments,s.children)}return Object.entries(r).forEach(([s,o])=>{typeof o=="string"&&(o=[o]),o!==null&&(i[s]=es(t.children[s],n,o))}),Object.entries(t.children).forEach(([s,o])=>{r[s]===void 0&&(i[s]=o)}),new b(t.segments,i)}}function qo(t,n,e){let r=0,i=n,s={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=e.length)return s;let o=t.segments[i],c=e[r];if(et(c))break;let a=`${c}`,u=r<e.length-1?e[r+1]:null;if(i>0&&a===void 0)break;if(a&&u&&typeof u=="object"&&u.outlets===void 0){if(!Ui(a,u,o))return s;r+=2}else{if(!Ui(a,{},o))return s;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function zn(t,n,e){let r=t.segments.slice(0,n),i=0;for(;i<e.length;){let s=e[i];if(et(s)){let a=Go(s.outlets);return new b(r,a)}if(i===0&&_t(e[0])){let a=t.segments[n];r.push(new de(a.path,xi(e[0]))),i++;continue}let o=et(s)?s.outlets[g]:`${s}`,c=i<e.length-1?e[i+1]:null;o&&c&&_t(c)?(r.push(new de(o,xi(c))),i+=2):(r.push(new de(o,{})),i++)}return new b(r,{})}function Go(t){let n={};return Object.entries(t).forEach(([e,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(n[e]=zn(new b([],{}),0,r))}),n}function xi(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function Ui(t,n,e){return t==e.path&&V(n,e.parameters)}var Ye="imperative",A=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}(A||{}),$=class{constructor(n,e){this.id=n,this.url=e}},Me=class extends ${constructor(n,e,r="imperative",i=null){super(n,e),this.type=A.NavigationStart,this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},q=class extends ${constructor(n,e,r){super(n,e),this.urlAfterRedirects=r,this.type=A.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},j=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(j||{}),$t=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}($t||{}),H=class extends ${constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i,this.type=A.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},ie=class extends ${constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i,this.type=A.NavigationSkipped}},tt=class extends ${constructor(n,e,r,i){super(n,e),this.error=r,this.target=i,this.type=A.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},zt=class extends ${constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i,this.type=A.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Bn=class extends ${constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i,this.type=A.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Vn=class extends ${constructor(n,e,r,i,s){super(n,e),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=s,this.type=A.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},qn=class extends ${constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i,this.type=A.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Gn=class extends ${constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i,this.type=A.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Wn=class{constructor(n){this.route=n,this.type=A.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Hn=class{constructor(n){this.route=n,this.type=A.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Xn=class{constructor(n){this.snapshot=n,this.type=A.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Jn=class{constructor(n){this.snapshot=n,this.type=A.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Zn=class{constructor(n){this.snapshot=n,this.type=A.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Kn=class{constructor(n){this.snapshot=n,this.type=A.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Bt=class{constructor(n,e,r){this.routerEvent=n,this.position=e,this.anchor=r,this.type=A.Scroll}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${n}')`}},nt=class{},Ae=class{constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};function Wo(t,n){return t.providers&&!t._injector&&(t._injector=mn(t.providers,n,`Route: ${t.path}`)),t._injector??n}function z(t){return t.outlet||g}function Ho(t,n){let e=t.filter(r=>z(r)===n);return e.push(...t.filter(r=>z(r)!==n)),e}function lt(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 Yn=class{get injector(){return lt(this.route?.snapshot)??this.rootInjector}set injector(n){}constructor(n){this.rootInjector=n,this.outlet=null,this.route=null,this.children=new ht(this.rootInjector),this.attachRef=null}},ht=(()=>{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 Yn(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)(m(ue))}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Vt=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=Qn(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){let e=Qn(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=er(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return er(n,this._root).map(e=>e.value)}};function Qn(t,n){if(t===n.value)return n;for(let e of n.children){let r=Qn(t,e);if(r)return r}return null}function er(t,n){if(t===n.value)return[n];for(let e of n.children){let r=er(t,e);if(r.length)return r.unshift(n),r}return[]}var k=class{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function Se(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var qt=class extends Vt{constructor(n,e){super(n),this.snapshot=e,ur(this,n)}toString(){return this.snapshot.toString()}};function ts(t){let n=Xo(t),e=new _([new de("",{})]),r=new _({}),i=new _({}),s=new _({}),o=new _(""),c=new se(e,r,s,o,i,g,t,n.root);return c.snapshot=n.root,new qt(new k(c,[]),n)}function Xo(t){let n={},e={},r={},i="",s=new be([],n,r,i,e,g,t,null,{});return new Wt("",new k(s,[]))}var se=class{constructor(n,e,r,i,s,o,c,a){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=s,this.outlet=o,this.component=c,this._futureSnapshot=a,this.title=this.dataSubject?.pipe(S(u=>u[ct]))??p(void 0),this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=s}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(S(n=>Ee(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(S(n=>Ee(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Gt(t,n,e="emptyOnly"){let r,{routeConfig:i}=t;return n!==null&&(e==="always"||i?.path===""||!n.component&&!n.routeConfig?.loadComponent)?r={params:f(f({},n.params),t.params),data:f(f({},n.data),t.data),resolve:f(f(f(f({},t.data),n.data),i?.data),t._resolvedData)}:r={params:f({},t.params),data:f({},t.data),resolve:f(f({},t.data),t._resolvedData??{})},i&&rs(i)&&(r.resolve[ct]=i.title),r}var be=class{get title(){return this.data?.[ct]}constructor(n,e,r,i,s,o,c,a,u){this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=s,this.outlet=o,this.component=c,this.routeConfig=a,this._resolve=u}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??=Ee(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Ee(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}')`}},Wt=class extends Vt{constructor(n,e){super(e),this.url=n,ur(this,e)}toString(){return ns(this._root)}};function ur(t,n){n.value._routerState=t,n.children.forEach(e=>ur(t,e))}function ns(t){let n=t.children.length>0?` { ${t.children.map(ns).join(", ")} } `:"";return`${t.value}${n}`}function Ln(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,V(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),V(n.params,e.params)||t.paramsSubject.next(e.params),So(n.url,e.url)||t.urlSubject.next(e.url),V(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function tr(t,n){let e=V(t.params,n.params)&&Eo(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||tr(t.parent,n.parent))}function rs(t){return typeof t.title=="string"||t.title===null}var Jo=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=g,this.activateEvents=new je,this.deactivateEvents=new je,this.attachEvents=new je,this.detachEvents=new je,this.parentContexts=d(ht),this.location=d(Gr),this.changeDetector=d(yn),this.inputBinder=d(Zt,{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 E(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new E(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new E(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 E(4013,!1);this._activatedRoute=e;let i=this.location,o=e.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,a=new nr(e,c,i.injector);this.activated=i.createComponent(o,{index:i.length,injector:a,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=un({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[ln]})}}return t})(),nr=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===se?this.route:n===ht?this.childContexts:this.parent.get(n,e)}},Zt=new C(""),Li=(()=>{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=gt([r.queryParams,r.params,r.data]).pipe(L(([s,o,c],a)=>(c=f(f(f({},s),o),c),a===0?p(c):Promise.resolve(c)))).subscribe(s=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(e);return}let o=ti(r.component);if(!o){this.unsubscribeFromRouteData(e);return}for(let{templateName:c}of o.inputs)e.activatedComponentRef.setInput(c,s[c])});this.outletDataSubscriptions.set(e,i)}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac})}}return t})();function Zo(t,n,e){let r=rt(t,n._root,e?e._root:void 0);return new qt(r,n)}function rt(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let r=e.value;r._futureSnapshot=n.value;let i=Ko(t,n,e);return new k(r,i)}else{if(t.shouldAttach(n.value)){let s=t.retrieve(n.value);if(s!==null){let o=s.route;return o.value._futureSnapshot=n.value,o.children=n.children.map(c=>rt(t,c)),o}}let r=Yo(n.value),i=n.children.map(s=>rt(t,s));return new k(r,i)}}function Ko(t,n,e){return n.children.map(r=>{for(let i of e.children)if(t.shouldReuseRoute(r.value,i.value.snapshot))return rt(t,r,i);return rt(t,r)})}function Yo(t){return new se(new _(t.url),new _(t.params),new _(t.queryParams),new _(t.fragment),new _(t.data),t.outlet,t.component,t)}var it=class{constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e}},is="ngNavigationCancelingError";function Ht(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=pe(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=ss(!1,j.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function ss(t,n){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[is]=!0,e.cancellationCode=n,e}function Qo(t){return os(t)&&pe(t.url)}function os(t){return!!t&&t[is]}var ea=(t,n,e,r)=>S(i=>(new rr(n,i.targetRouterState,i.currentRouterState,e,r).activate(t),i)),rr=class{constructor(n,e,r,i,s){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=s}activate(n){let e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),Ln(this.futureState.root),this.activateChildRoutes(e,r,n)}deactivateChildRoutes(n,e,r){let i=Se(e);n.children.forEach(s=>{let o=s.value.outlet;this.deactivateRoutes(s,i[o],r),delete i[o]}),Object.values(i).forEach(s=>{this.deactivateRouteAndItsChildren(s,r)})}deactivateRoutes(n,e,r){let i=n.value,s=e?e.value:null;if(i===s)if(i.component){let o=r.getContext(i.outlet);o&&this.deactivateChildRoutes(n,e,o.children)}else this.deactivateChildRoutes(n,e,r);else s&&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,s=Se(n);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,i);if(r&&r.outlet){let o=r.outlet.detach(),c=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:o,route:n,contexts:c})}}deactivateRouteAndOutlet(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,s=Se(n);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(n,e,r){let i=Se(e);n.children.forEach(s=>{this.activateRoutes(s,i[s.value.outlet],r),this.forwardEvent(new Kn(s.value.snapshot))}),n.children.length&&this.forwardEvent(new Jn(n.value.snapshot))}activateRoutes(n,e,r){let i=n.value,s=e?e.value:null;if(Ln(i),i===s)if(i.component){let o=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,e,o.children)}else this.activateChildRoutes(n,e,r);else if(i.component){let o=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let c=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),o.children.onOutletReAttached(c.contexts),o.attachRef=c.componentRef,o.route=c.route.value,o.outlet&&o.outlet.attach(c.componentRef,c.route.value),Ln(c.route.value),this.activateChildRoutes(n,null,o.children)}else o.attachRef=null,o.route=i,o.outlet&&o.outlet.activateWith(i,o.injector),this.activateChildRoutes(n,null,o.children)}else this.activateChildRoutes(n,null,r)}},Xt=class{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},Ce=class{constructor(n,e){this.component=n,this.route=e}};function ta(t,n,e){let r=t._root,i=n?n._root:null;return Je(r,i,e,[r.value])}function na(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function Oe(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t=="function"&&!Ir(t)?t:n.get(t):r}function Je(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let s=Se(n);return t.children.forEach(o=>{ra(o,s[o.value.outlet],e,r.concat([o.value]),i),delete s[o.value.outlet]}),Object.entries(s).forEach(([o,c])=>Qe(c,e.getContext(o),i)),i}function ra(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let s=t.value,o=n?n.value:null,c=e?e.getContext(t.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){let a=ia(o,s,s.routeConfig.runGuardsAndResolvers);a?i.canActivateChecks.push(new Xt(r)):(s.data=o.data,s._resolvedData=o._resolvedData),s.component?Je(t,n,c?c.children:null,r,i):Je(t,n,e,r,i),a&&c&&c.outlet&&c.outlet.isActivated&&i.canDeactivateChecks.push(new Ce(c.outlet.component,o))}else o&&Qe(n,c,i),i.canActivateChecks.push(new Xt(r)),s.component?Je(t,null,c?c.children:null,r,i):Je(t,null,e,r,i);return i}function ia(t,n,e){if(typeof e=="function")return e(t,n);switch(e){case"pathParamsChange":return!fe(t.url,n.url);case"pathParamsOrQueryParamsChange":return!fe(t.url,n.url)||!V(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!tr(t,n)||!V(t.queryParams,n.queryParams);case"paramsChange":default:return!tr(t,n)}}function Qe(t,n,e){let r=Se(t),i=t.value;Object.entries(r).forEach(([s,o])=>{i.component?n?Qe(o,n.children.getContext(s),e):Qe(o,null,e):Qe(o,n,e)}),i.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new Ce(n.outlet.component,i)):e.canDeactivateChecks.push(new Ce(null,i)):e.canDeactivateChecks.push(new Ce(null,i))}function dt(t){return typeof t=="function"}function sa(t){return typeof t=="boolean"}function oa(t){return t&&dt(t.canLoad)}function aa(t){return t&&dt(t.canActivate)}function ca(t){return t&&dt(t.canActivateChild)}function ua(t){return t&&dt(t.canDeactivate)}function la(t){return t&&dt(t.canMatch)}function as(t){return t instanceof wr||t?.name==="EmptyError"}var Ut=Symbol("INITIAL_VALUE");function De(){return L(t=>gt(t.map(n=>n.pipe(me(1),Cr(Ut)))).pipe(S(n=>{for(let e of n)if(e!==!0){if(e===Ut)return Ut;if(e===!1||ha(e))return e}return!0}),G(n=>n!==Ut),me(1)))}function ha(t){return pe(t)||t instanceof it}function da(t,n){return U(e=>{let{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:s,canDeactivateChecks:o}}=e;return o.length===0&&s.length===0?p(O(f({},e),{guardsResult:!0})):fa(o,r,i,t).pipe(U(c=>c&&sa(c)?pa(r,s,t,n):p(c)),S(c=>O(f({},e),{guardsResult:c})))})}function fa(t,n,e,r){return P(t).pipe(U(i=>wa(i.component,i.route,e,n,r)),ee(i=>i!==!0,!0))}function pa(t,n,e,r){return P(n).pipe(Q(i=>Rr(ma(i.route.parent,r),ga(i.route,r),ya(t,i.path,e),va(t,i.route,e))),ee(i=>i!==!0,!0))}function ga(t,n){return t!==null&&n&&n(new Zn(t)),p(!0)}function ma(t,n){return t!==null&&n&&n(new Xn(t)),p(!0)}function va(t,n,e){let r=n.routeConfig?n.routeConfig.canActivate:null;if(!r||r.length===0)return p(!0);let i=r.map(s=>rn(()=>{let o=lt(n)??e,c=Oe(s,o),a=aa(c)?c.canActivate(n,t):F(o,()=>c(n,t));return oe(a).pipe(ee())}));return p(i).pipe(De())}function ya(t,n,e){let r=n[n.length-1],s=n.slice(0,n.length-1).reverse().map(o=>na(o)).filter(o=>o!==null).map(o=>rn(()=>{let c=o.guards.map(a=>{let u=lt(o.node)??e,l=Oe(a,u),h=ca(l)?l.canActivateChild(r,t):F(u,()=>l(r,t));return oe(h).pipe(ee())});return p(c).pipe(De())}));return p(s).pipe(De())}function wa(t,n,e,r,i){let s=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!s||s.length===0)return p(!0);let o=s.map(c=>{let a=lt(n)??i,u=Oe(c,a),l=ua(u)?u.canDeactivate(t,n,e,r):F(a,()=>u(t,n,e,r));return oe(l).pipe(ee())});return p(o).pipe(De())}function Ra(t,n,e,r){let i=n.canLoad;if(i===void 0||i.length===0)return p(!0);let s=i.map(o=>{let c=Oe(o,t),a=oa(c)?c.canLoad(n,e):F(t,()=>c(n,e));return oe(a)});return p(s).pipe(De(),cs(r))}function cs(t){return vr(D(n=>{if(typeof n!="boolean")throw Ht(t,n)}),S(n=>n===!0))}function Sa(t,n,e,r){let i=n.canMatch;if(!i||i.length===0)return p(!0);let s=i.map(o=>{let c=Oe(o,t),a=la(c)?c.canMatch(n,e):F(t,()=>c(n,e));return oe(a)});return p(s).pipe(De(),cs(r))}var st=class{constructor(n){this.segmentGroup=n||null}},ot=class extends Error{constructor(n){super(),this.urlTree=n}};function Re(t){return xe(new st(t))}function Ta(t){return xe(new E(4e3,!1))}function ba(t){return xe(ss(!1,j.GuardRejected))}var ir=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 p(r);if(i.numberOfChildren>1||!i.children[g])return Ta(`${n.redirectTo}`);i=i.children[g]}}applyRedirectCommands(n,e,r,i,s){if(typeof e!="string"){let c=e,{queryParams:a,fragment:u,routeConfig:l,url:h,outlet:y,params:T,data:M,title:w}=i,v=F(s,()=>c({params:T,data:M,queryParams:a,fragment:u,routeConfig:l,url:h,outlet:y,title:w}));if(v instanceof X)throw new ot(v);e=v}let o=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,r);if(e[0]==="/")throw new ot(o);return o}applyRedirectCreateUrlTree(n,e,r,i){let s=this.createSegmentGroup(n,e.root,r,i);return new X(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let r={};return Object.entries(n).forEach(([i,s])=>{if(typeof s=="string"&&s[0]===":"){let c=s.substring(1);r[i]=e[c]}else r[i]=s}),r}createSegmentGroup(n,e,r,i){let s=this.createSegments(n,e.segments,r,i),o={};return Object.entries(e.children).forEach(([c,a])=>{o[c]=this.createSegmentGroup(n,a,r,i)}),new b(s,o)}createSegments(n,e,r,i){return e.map(s=>s.path[0]===":"?this.findPosParam(n,s,i):this.findOrReturn(s,r))}findPosParam(n,e,r){let i=r[e.path.substring(1)];if(!i)throw new E(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}},sr={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Ca(t,n,e,r,i){let s=us(t,n,e);return s.matched?(r=Wo(n,r),Sa(r,n,e,i).pipe(S(o=>o===!0?s:f({},sr)))):p(s)}function us(t,n,e){if(n.path==="**")return Ea(e);if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?f({},sr):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(n.matcher||Ro)(e,t,n);if(!i)return f({},sr);let s={};Object.entries(i.posParams??{}).forEach(([c,a])=>{s[c]=a.path});let o=i.consumed.length>0?f(f({},s),i.consumed[i.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:o,positionalParamSegments:i.posParams??{}}}function Ea(t){return{matched:!0,parameters:t.length>0?Bi(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function ki(t,n,e,r){return e.length>0&&Aa(t,e,r)?{segmentGroup:new b(n,Ma(r,new b(e,t.children))),slicedSegments:[]}:e.length===0&&Da(t,e,r)?{segmentGroup:new b(t.segments,Ia(t,e,r,t.children)),slicedSegments:e}:{segmentGroup:new b(t.segments,t.children),slicedSegments:e}}function Ia(t,n,e,r){let i={};for(let s of e)if(Kt(t,n,s)&&!r[z(s)]){let o=new b([],{});i[z(s)]=o}return f(f({},r),i)}function Ma(t,n){let e={};e[g]=n;for(let r of t)if(r.path===""&&z(r)!==g){let i=new b([],{});e[z(r)]=i}return e}function Aa(t,n,e){return e.some(r=>Kt(t,n,r)&&z(r)!==g)}function Da(t,n,e){return e.some(r=>Kt(t,n,r))}function Kt(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch==="full"?!1:e.path===""}function Oa(t,n,e){return n.length===0&&!t.children[e]}var or=class{};function Pa(t,n,e,r,i,s,o="emptyOnly"){return new ar(t,n,e,r,i,o,s).recognize()}var Na=31,ar=class{constructor(n,e,r,i,s,o,c){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=i,this.urlTree=s,this.paramsInheritanceStrategy=o,this.urlSerializer=c,this.applyRedirects=new ir(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(n){return new E(4002,`'${n.segmentGroup}'`)}recognize(){let n=ki(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(S(({children:e,rootSnapshot:r})=>{let i=new k(r,e),s=new Wt("",i),o=Fo(r,[],this.urlTree.queryParams,this.urlTree.fragment);return o.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(o),{state:s,tree:o}}))}match(n){let e=new be([],Object.freeze({}),Object.freeze(f({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),g,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,n,g,e).pipe(S(r=>({children:r,rootSnapshot:e})),ge(r=>{if(r instanceof ot)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof st?this.noMatchError(r):r}))}processSegmentGroup(n,e,r,i,s){return r.segments.length===0&&r.hasChildren()?this.processChildren(n,e,r,s):this.processSegment(n,e,r,r.segments,i,!0,s).pipe(S(o=>o instanceof k?[o]:[]))}processChildren(n,e,r,i){let s=[];for(let o of Object.keys(r.children))o==="primary"?s.unshift(o):s.push(o);return P(s).pipe(Q(o=>{let c=r.children[o],a=Ho(e,o);return this.processSegmentGroup(n,a,c,o,i)}),br((o,c)=>(o.push(...c),o)),sn(null),Tr(),U(o=>{if(o===null)return Re(r);let c=ls(o);return xa(c),p(c)}))}processSegment(n,e,r,i,s,o,c){return P(e).pipe(Q(a=>this.processSegmentAgainstRoute(a._injector??n,e,a,r,i,s,o,c).pipe(ge(u=>{if(u instanceof st)return p(null);throw u}))),ee(a=>!!a),ge(a=>{if(as(a))return Oa(r,i,s)?p(new or):Re(r);throw a}))}processSegmentAgainstRoute(n,e,r,i,s,o,c,a){return z(r)!==o&&(o===g||!Kt(i,s,r))?Re(i):r.redirectTo===void 0?this.matchSegmentAgainstRoute(n,i,r,s,o,a):this.allowRedirects&&c?this.expandSegmentAgainstRouteUsingRedirect(n,i,e,r,s,o,a):Re(i)}expandSegmentAgainstRouteUsingRedirect(n,e,r,i,s,o,c){let{matched:a,parameters:u,consumedSegments:l,positionalParamSegments:h,remainingSegments:y}=us(e,i,s);if(!a)return Re(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Na&&(this.allowRedirects=!1));let T=new be(s,u,Object.freeze(f({},this.urlTree.queryParams)),this.urlTree.fragment,ji(i),z(i),i.component??i._loadedComponent??null,i,_i(i)),M=Gt(T,c,this.paramsInheritanceStrategy);T.params=Object.freeze(M.params),T.data=Object.freeze(M.data);let w=this.applyRedirects.applyRedirectCommands(l,i.redirectTo,h,T,n);return this.applyRedirects.lineralizeSegments(i,w).pipe(U(v=>this.processSegment(n,r,e,v.concat(y),o,!1,c)))}matchSegmentAgainstRoute(n,e,r,i,s,o){let c=Ca(e,r,i,n,this.urlSerializer);return r.path==="**"&&(e.children={}),c.pipe(L(a=>a.matched?(n=r._injector??n,this.getChildConfig(n,r,i).pipe(L(({routes:u})=>{let l=r._loadedInjector??n,{parameters:h,consumedSegments:y,remainingSegments:T}=a,M=new be(y,h,Object.freeze(f({},this.urlTree.queryParams)),this.urlTree.fragment,ji(r),z(r),r.component??r._loadedComponent??null,r,_i(r)),w=Gt(M,o,this.paramsInheritanceStrategy);M.params=Object.freeze(w.params),M.data=Object.freeze(w.data);let{segmentGroup:v,slicedSegments:N}=ki(e,y,T,u);if(N.length===0&&v.hasChildren())return this.processChildren(l,u,v,M).pipe(S(I=>new k(M,I)));if(u.length===0&&N.length===0)return p(new k(M,[]));let Z=z(r)===s;return this.processSegment(l,u,v,N,Z?g:s,!0,M).pipe(S(I=>new k(M,I instanceof k?[I]:[])))}))):Re(e)))}getChildConfig(n,e,r){return e.children?p({routes:e.children,injector:n}):e.loadChildren?e._loadedRoutes!==void 0?p({routes:e._loadedRoutes,injector:e._loadedInjector}):Ra(n,e,r,this.urlSerializer).pipe(U(i=>i?this.configLoader.loadChildren(n,e).pipe(D(s=>{e._loadedRoutes=s.routes,e._loadedInjector=s.injector})):ba(e))):p({routes:[],injector:n})}};function xa(t){t.sort((n,e)=>n.value.outlet===g?-1:e.value.outlet===g?1:n.value.outlet.localeCompare(e.value.outlet))}function Ua(t){let n=t.value.routeConfig;return n&&n.path===""}function ls(t){let n=[],e=new Set;for(let r of t){if(!Ua(r)){n.push(r);continue}let i=n.find(s=>r.value.routeConfig===s.value.routeConfig);i!==void 0?(i.children.push(...r.children),e.add(i)):n.push(r)}for(let r of e){let i=ls(r.children);n.push(new k(r.value,i))}return n.filter(r=>!e.has(r))}function ji(t){return t.data||{}}function _i(t){return t.resolve||{}}function La(t,n,e,r,i,s){return U(o=>Pa(t,n,e,r,o.extractedUrl,i,s).pipe(S(({state:c,tree:a})=>O(f({},o),{targetSnapshot:c,urlAfterRedirects:a}))))}function ka(t,n){return U(e=>{let{targetSnapshot:r,guards:{canActivateChecks:i}}=e;if(!i.length)return p(e);let s=new Set(i.map(a=>a.route)),o=new Set;for(let a of s)if(!o.has(a))for(let u of hs(a))o.add(u);let c=0;return P(o).pipe(Q(a=>s.has(a)?ja(a,r,t,n):(a.data=Gt(a,a.parent,t).resolve,p(void 0))),D(()=>c++),on(1),U(a=>c===o.size?p(e):Y))})}function hs(t){let n=t.children.map(e=>hs(e)).flat();return[t,...n]}function ja(t,n,e,r){let i=t.routeConfig,s=t._resolve;return i?.title!==void 0&&!rs(i)&&(s[ct]=i.title),_a(s,t,n,r).pipe(S(o=>(t._resolvedData=o,t.data=Gt(t,t.parent,e).resolve,null)))}function _a(t,n,e,r){let i=_n(t);if(i.length===0)return p({});let s={};return P(i).pipe(U(o=>Fa(t[o],n,e,r).pipe(ee(),D(c=>{if(c instanceof it)throw Ht(new Ie,c);s[o]=c}))),on(1),Sr(s),ge(o=>as(o)?Y:xe(o)))}function Fa(t,n,e,r){let i=lt(n)??r,s=Oe(t,i),o=s.resolve?s.resolve(n,e):F(i,()=>s(n,e));return oe(o)}function kn(t){return L(n=>{let e=t(n);return e?P(e).pipe(S(()=>n)):p(n)})}var ds=(()=>{class t{buildTitle(e){let r,i=e.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(s=>s.outlet===g);return r}getResolvedTitleForRoute(e){return e.data[ct]}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=R({token:t,factory:()=>d($a),providedIn:"root"})}}return t})(),$a=(()=>{class t extends ds{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)(m(Oi))}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),ft=new C("",{providedIn:"root",factory:()=>({})}),za=(()=>{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275cmp=Ar({type:t,selectors:[["ng-component"]],standalone:!0,features:[Yr],decls:1,vars:0,template:function(r,i){r&1&&Zr(0,"router-outlet")},dependencies:[Jo],encapsulation:2})}}return t})();function lr(t){let n=t.children&&t.children.map(lr),e=n?O(f({},t),{children:n}):f({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==g&&(e.component=za),e}var at=new C(""),hr=(()=>{class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=d(St)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return p(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let r=oe(e.loadComponent()).pipe(S(fs),D(s=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=s}),ce(()=>{this.componentLoaders.delete(e)})),i=new tn(r,()=>new K).pipe(en());return this.componentLoaders.set(e,i),i}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return p({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let s=Ba(r,this.compiler,e,this.onLoadEndListener).pipe(ce(()=>{this.childrenLoaders.delete(r)})),o=new tn(s,()=>new K).pipe(en());return this.childrenLoaders.set(r,o),o}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Ba(t,n,e,r){return oe(t.loadChildren()).pipe(S(fs),U(i=>i instanceof Hr||Array.isArray(i)?p(i):P(n.compileModuleAsync(i))),S(i=>{r&&r(t);let s,o,c=!1;return Array.isArray(i)?(o=i,c=!0):(s=i.create(e).injector,o=s.get(at,[],{optional:!0,self:!0}).flat()),{routes:o.map(lr),injector:s}}))}function Va(t){return t&&typeof t=="object"&&"default"in t}function fs(t){return Va(t)?t.default:t}var dr=(()=>{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=R({token:t,factory:()=>d(qa),providedIn:"root"})}}return t})(),qa=(()=>{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=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),ps=new C(""),gs=new C("");function Ga(t,n,e){let r=t.get(gs),i=t.get(x);return t.get(B).runOutsideAngular(()=>{if(!i.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,new Promise(u=>setTimeout(u));let s,o=new Promise(u=>{s=u}),c=i.startViewTransition(()=>(s(),Wa(t))),{onViewTransitionCreated:a}=r;return a&&F(t,()=>a({transition:c,from:n,to:e})),o})}function Wa(t){return new Promise(n=>{Xr({read:()=>setTimeout(n)},{injector:t})})}var Ha=new C(""),fr=(()=>{class t{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new K,this.transitionAbortSubject=new K,this.configLoader=d(hr),this.environmentInjector=d(ue),this.urlSerializer=d(ut),this.rootContexts=d(ht),this.location=d($e),this.inputBindingEnabled=d(Zt,{optional:!0})!==null,this.titleStrategy=d(ds),this.options=d(ft,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=d(dr),this.createViewTransition=d(ps,{optional:!0}),this.navigationErrorHandler=d(Ha,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>p(void 0),this.rootComponentType=null;let e=i=>this.events.next(new Wn(i)),r=i=>this.events.next(new Hn(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=e}complete(){this.transitions?.complete()}handleNavigationRequest(e){let r=++this.navigationId;this.transitions?.next(O(f(f({},this.transitions.value),e),{id:r}))}setupNavigations(e,r,i){return this.transitions=new _({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:Ye,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(G(s=>s.id!==0),S(s=>O(f({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),L(s=>{let o=!1,c=!1;return p(s).pipe(L(a=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",j.SupersededByNewNavigation),Y;this.currentTransition=s,this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,targetBrowserUrl:typeof a.extras.browserUrl=="string"?this.urlSerializer.parse(a.extras.browserUrl):a.extras.browserUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?O(f({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let u=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),l=a.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!u&&l!=="reload"){let h="";return this.events.next(new ie(a.id,this.urlSerializer.serialize(a.rawUrl),h,$t.IgnoredSameUrlNavigation)),a.resolve(!1),Y}if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return p(a).pipe(L(h=>{let y=this.transitions?.getValue();return this.events.next(new Me(h.id,this.urlSerializer.serialize(h.extractedUrl),h.source,h.restoredState)),y!==this.transitions?.getValue()?Y:Promise.resolve(h)}),La(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),D(h=>{s.targetSnapshot=h.targetSnapshot,s.urlAfterRedirects=h.urlAfterRedirects,this.currentNavigation=O(f({},this.currentNavigation),{finalUrl:h.urlAfterRedirects});let y=new zt(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(y)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:h,extractedUrl:y,source:T,restoredState:M,extras:w}=a,v=new Me(h,this.urlSerializer.serialize(y),T,M);this.events.next(v);let N=ts(this.rootComponentType).snapshot;return this.currentTransition=s=O(f({},a),{targetSnapshot:N,urlAfterRedirects:y,extras:O(f({},w),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=y,p(s)}else{let h="";return this.events.next(new ie(a.id,this.urlSerializer.serialize(a.extractedUrl),h,$t.IgnoredByUrlHandlingStrategy)),a.resolve(!1),Y}}),D(a=>{let u=new Bn(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(u)}),S(a=>(this.currentTransition=s=O(f({},a),{guards:ta(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),s)),da(this.environmentInjector,a=>this.events.next(a)),D(a=>{if(s.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw Ht(this.urlSerializer,a.guardsResult);let u=new Vn(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.events.next(u)}),G(a=>a.guardsResult?!0:(this.cancelNavigationTransition(a,"",j.GuardRejected),!1)),kn(a=>{if(a.guards.canActivateChecks.length)return p(a).pipe(D(u=>{let l=new qn(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}),L(u=>{let l=!1;return p(u).pipe(ka(this.paramsInheritanceStrategy,this.environmentInjector),D({next:()=>l=!0,complete:()=>{l||this.cancelNavigationTransition(u,"",j.NoDataFromResolver)}}))}),D(u=>{let l=new Gn(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}))}),kn(a=>{let u=l=>{let h=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&h.push(this.configLoader.loadComponent(l.routeConfig).pipe(D(y=>{l.component=y}),S(()=>{})));for(let y of l.children)h.push(...u(y));return h};return gt(u(a.targetSnapshot.root)).pipe(sn(null),me(1))}),kn(()=>this.afterPreactivation()),L(()=>{let{currentSnapshot:a,targetSnapshot:u}=s,l=this.createViewTransition?.(this.environmentInjector,a.root,u.root);return l?P(l).pipe(S(()=>s)):p(s)}),S(a=>{let u=Zo(e.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return this.currentTransition=s=O(f({},a),{targetRouterState:u}),this.currentNavigation.targetRouterState=u,s}),D(()=>{this.events.next(new nt)}),ea(this.rootContexts,e.routeReuseStrategy,a=>this.events.next(a),this.inputBindingEnabled),me(1),D({next:a=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new q(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0)},complete:()=>{o=!0}}),Er(this.transitionAbortSubject.pipe(D(a=>{throw a}))),ce(()=>{!o&&!c&&this.cancelNavigationTransition(s,"",j.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),ge(a=>{if(c=!0,os(a))this.events.next(new H(s.id,this.urlSerializer.serialize(s.extractedUrl),a.message,a.cancellationCode)),Qo(a)?this.events.next(new Ae(a.url,a.navigationBehaviorOptions)):s.resolve(!1);else{let u=new tt(s.id,this.urlSerializer.serialize(s.extractedUrl),a,s.targetSnapshot??void 0);try{let l=F(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(l instanceof it){let{message:h,cancellationCode:y}=Ht(this.urlSerializer,l);this.events.next(new H(s.id,this.urlSerializer.serialize(s.extractedUrl),h,y)),this.events.next(new Ae(l.redirectTo,l.navigationBehaviorOptions))}else{this.events.next(u);let h=e.errorHandler(a);s.resolve(!!h)}}catch(l){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(l)}}return Y}))}))}cancelNavigationTransition(e,r,i){let s=new H(e.id,this.urlSerializer.serialize(e.extractedUrl),r,i);this.events.next(s),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=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Xa(t){return t!==Ye}var Ja=(()=>{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=R({token:t,factory:()=>d(Za),providedIn:"root"})}}return t})(),cr=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}},Za=(()=>{class t extends cr{static{this.\u0275fac=(()=>{let e;return function(i){return(e||(e=hn(t)))(i||t)}})()}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),ms=(()=>{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=R({token:t,factory:()=>d(Ka),providedIn:"root"})}}return t})(),Ka=(()=>{class t extends ms{constructor(){super(...arguments),this.location=d($e),this.urlSerializer=d(ut),this.options=d(ft,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=d(dr),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new X,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=ts(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 Me)this.stateMemento=this.createStateMemento();else if(e instanceof ie)this.rawUrlTree=r.initialUrl;else if(e instanceof zt){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 nt?(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 H&&(e.code===j.GuardRejected||e.code===j.NoDataFromResolver)?this.restoreHistory(r):e instanceof tt?this.restoreHistory(r,!0):e instanceof q&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,r){let i=e instanceof X?this.urlSerializer.serialize(e):e;if(this.location.isCurrentPathEqualTo(i)||r.extras.replaceUrl){let s=this.browserPageId,o=f(f({},r.extras.state),this.generateNgRouterState(r.id,s));this.location.replaceState(i,"",o)}else{let s=f(f({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(i,"",s)}}restoreHistory(e,r=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,s=this.currentPageId-i;s!==0?this.location.historyGo(s):this.currentUrlTree===e.finalUrl&&s===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=hn(t)))(i||t)}})()}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Ze=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(Ze||{});function vs(t,n){t.events.pipe(G(e=>e instanceof q||e instanceof H||e instanceof tt||e instanceof ie),S(e=>e instanceof q||e instanceof ie?Ze.COMPLETE:(e instanceof H?e.code===j.Redirect||e.code===j.SupersededByNewNavigation:!1)?Ze.REDIRECTING:Ze.FAILED),G(e=>e!==Ze.REDIRECTING),me(1)).subscribe(()=>{n()})}function Ya(t){throw t}var Qa={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ec={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},J=(()=>{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=d(yt),this.stateManager=d(ms),this.options=d(ft,{optional:!0})||{},this.pendingTasks=d(ke),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=d(fr),this.urlSerializer=d(ut),this.location=d($e),this.urlHandlingStrategy=d(dr),this._events=new K,this.errorHandler=this.options.errorHandler||Ya,this.navigated=!1,this.routeReuseStrategy=d(Ja),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=d(at,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!d(Zt,{optional:!0}),this.eventsSubscription=new mr,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,s=this.navigationTransitions.currentNavigation;if(i!==null&&s!==null){if(this.stateManager.handleRouterEvent(r,s),r instanceof H&&r.code!==j.Redirect&&r.code!==j.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof q)this.navigated=!0;else if(r instanceof Ae){let o=r.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),a=f({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Xa(i.source)},o);this.scheduleNavigation(c,Ye,null,a,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}nc(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),Ye,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",r)},0)})}navigateToSyncWithBrowser(e,r,i){let s={replaceUrl:!0},o=i?.navigationId?i:null;if(i){let a=f({},i);delete a.navigationId,delete a.\u0275routerPageId,Object.keys(a).length!==0&&(s.state=a)}let c=this.parseUrl(e);this.scheduleNavigation(c,r,o,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(lr),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:s,fragment:o,queryParamsHandling:c,preserveFragment:a}=r,u=a?this.currentUrlTree.fragment:o,l=null;switch(c??this.options.defaultQueryParamsHandling){case"merge":l=f(f({},this.currentUrlTree.queryParams),s);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=s||null}l!==null&&(l=this.removeEmptyProps(l));let h;try{let y=i?i.snapshot:this.routerState.snapshot.root;h=Ki(y)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),h=this.currentUrlTree.root}return Yi(h,e,l,u??null)}navigateByUrl(e,r={skipLocationChange:!1}){let i=pe(e)?e:this.parseUrl(e),s=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(s,Ye,null,r)}navigate(e,r={skipLocationChange:!1}){return tc(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=f({},Qa):r===!1?i=f({},ec):i=r,pe(e))return Pi(this.currentUrlTree,e,i);let s=this.parseUrl(e);return Pi(this.currentUrlTree,s,i)}removeEmptyProps(e){return Object.entries(e).reduce((r,[i,s])=>(s!=null&&(r[i]=s),r),{})}scheduleNavigation(e,r,i,s,o){if(this.disposed)return Promise.resolve(!1);let c,a,u;o?(c=o.resolve,a=o.reject,u=o.promise):u=new Promise((h,y)=>{c=h,a=y});let l=this.pendingTasks.add();return vs(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(l))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:s,resolve:c,reject:a,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(h=>Promise.reject(h))}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function tc(t){for(let n=0;n<t.length;n++)if(t[n]==null)throw new E(4008,!1)}function nc(t){return!(t instanceof nt)&&!(t instanceof Ae)}var Eu=(()=>{class t{constructor(e,r,i,s,o,c){this.router=e,this.route=r,this.tabIndexAttribute=i,this.renderer=s,this.el=o,this.locationStrategy=c,this.href=null,this.onChanges=new K,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;let a=o.nativeElement.tagName?.toLowerCase();this.isAnchorElement=a==="a"||a==="area",this.isAnchorElement?this.subscription=e.events.subscribe(u=>{u instanceof q&&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)):(pe(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,r,i,s,o){let c=this.urlTree;if(c===null||this.isAnchorElement&&(e!==0||r||i||s||o||typeof this.target=="string"&&this.target!="_self"))return!0;let a={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(c,a),!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:zr(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(e,r){let i=this.renderer,s=this.el.nativeElement;r!==null?i.setAttribute(s,e,r):i.removeAttribute(s,e)}get urlTree(){return this.routerLinkInput===null?null:pe(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)(we(J),we(se),Or("tabindex"),we(qr),we(Pr),we(Fe))}}static{this.\u0275dir=un({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,i){r&1&&Kr("click",function(o){return i.onClick(o.button,o.ctrlKey,o.shiftKey,o.altKey,o.metaKey)}),r&2&&Jr("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Tt],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Tt],replaceUrl:[2,"replaceUrl","replaceUrl",Tt],routerLink:"routerLink"},standalone:!0,features:[Wr,ln]})}}return t})();var Jt=class{};var rc=(()=>{class t{constructor(e,r,i,s,o){this.router=e,this.injector=i,this.preloadingStrategy=s,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(G(e=>e instanceof q),Q(()=>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 s of r){s.providers&&!s._injector&&(s._injector=mn(s.providers,e,`Route: ${s.path}`));let o=s._injector??e,c=s._loadedInjector??o;(s.loadChildren&&!s._loadedRoutes&&s.canLoad===void 0||s.loadComponent&&!s._loadedComponent)&&i.push(this.preloadConfig(o,s)),(s.children||s._loadedRoutes)&&i.push(this.processRoutes(c,s.children??s._loadedRoutes))}return P(i).pipe(nn())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{let i;r.loadChildren&&r.canLoad===void 0?i=this.loader.loadChildren(e,r):i=p(null);let s=i.pipe(U(o=>o===null?p(void 0):(r._loadedRoutes=o.routes,r._loadedInjector=o.injector,this.processRoutes(o.injector??e,o.routes))));if(r.loadComponent&&!r._loadedComponent){let o=this.loader.loadComponent(r);return P([s,o]).pipe(nn())}else return s})}static{this.\u0275fac=function(r){return new(r||t)(m(J),m(St),m(ue),m(Jt),m(hr))}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),ys=new C(""),ic=(()=>{class t{constructor(e,r,i,s,o={}){this.urlSerializer=e,this.transitions=r,this.viewportScroller=i,this.zone=s,this.options=o,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},o.scrollPositionRestoration||="disabled",o.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 Me?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof q?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof ie&&e.code===$t.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 Bt&&(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 Bt(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static{this.\u0275fac=function(r){Br()}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac})}}return t})();function Iu(t,...n){return Le([{provide:at,multi:!0,useValue:t},[],{provide:se,useFactory:ws,deps:[J]},{provide:wt,multi:!0,useFactory:Rs},n.map(e=>e.\u0275providers)])}function ws(t){return t.routerState.root}function pt(t,n){return{\u0275kind:t,\u0275providers:n}}function Rs(){let t=d(dn);return n=>{let e=t.get(Rt);if(n!==e.components[0])return;let r=t.get(J),i=t.get(Ss);t.get(pr)===1&&r.initialNavigation(),t.get(Ts,null,an.Optional)?.setUpPreloading(),t.get(ys,null,an.Optional)?.init(),r.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var Ss=new C("",{factory:()=>new K}),pr=new C("",{providedIn:"root",factory:()=>1});function sc(){return pt(2,[{provide:pr,useValue:0},{provide:vn,multi:!0,deps:[dn],useFactory:n=>{let e=n.get(ii,Promise.resolve());return()=>e.then(()=>new Promise(r=>{let i=n.get(J),s=n.get(Ss);vs(i,()=>{r(!0)}),n.get(fr).afterPreactivation=()=>(r(!0),s.closed?p(void 0):s),i.initialNavigation()}))}}])}function oc(){return pt(3,[{provide:vn,multi:!0,useFactory:()=>{let n=d(J);return()=>{n.setUpLocationChangeListener()}}},{provide:pr,useValue:2}])}var Ts=new C("");function ac(t){return pt(0,[{provide:Ts,useExisting:rc},{provide:Jt,useExisting:t}])}function cc(){return pt(8,[Li,{provide:Zt,useExisting:Li}])}function uc(t){let n=[{provide:ps,useValue:Ga},{provide:gs,useValue:f({skipNextTransition:!!t?.skipInitialTransition},t)}];return pt(9,n)}var Fi=new C("ROUTER_FORROOT_GUARD"),lc=[$e,{provide:ut,useClass:Ie},J,ht,{provide:se,useFactory:ws,deps:[J]},hr,[]],Mu=(()=>{class t{constructor(e){}static forRoot(e,r){return{ngModule:t,providers:[lc,[],{provide:at,multi:!0,useValue:e},{provide:Fi,useFactory:pc,deps:[[J,new cn,new Mr]]},{provide:ft,useValue:r||{}},r?.useHash?dc():fc(),hc(),r?.preloadingStrategy?ac(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?gc(r):[],r?.bindToComponentInputs?cc().\u0275providers:[],r?.enableViewTransitions?uc().\u0275providers:[],mc()]}}static forChild(e){return{ngModule:t,providers:[{provide:at,multi:!0,useValue:e}]}}static{this.\u0275fac=function(r){return new(r||t)(m(Fi,8))}}static{this.\u0275mod=vt({type:t})}static{this.\u0275inj=mt({})}}return t})();function hc(){return{provide:ys,useFactory:()=>{let t=d(ci),n=d(B),e=d(ft),r=d(fr),i=d(ut);return e.scrollOffset&&t.setOffset(e.scrollOffset),new ic(i,r,t,n,e)}}}function dc(){return{provide:Fe,useClass:oi}}function fc(){return{provide:Fe,useClass:si}}function pc(t){return"guarded"}function gc(t){return[t.initialNavigation==="disabled"?oc().\u0275providers:[],t.initialNavigation==="enabledBlocking"?sc().\u0275providers:[]]}var $i=new C("");function mc(){return[{provide:$i,useFactory:Rs},{provide:wt,multi:!0,useExisting:$i}]}export{W as a,qe as b,te as c,Ps as d,Pc as e,Nc as f,xc as g,bi as h,ru as i,Oi as j,vo as k,se as l,Jo as m,J as n,Eu as o,Iu as p,Mu as q};
|