marketplacepos 3.13.2 → 3.13.4
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/Marketplace/chunk-2LGY3VGP.js +1 -0
- package/Marketplace/{chunk-FG5CLZ6F.js → chunk-2V6KLDRW.js} +1 -1
- package/Marketplace/{chunk-FX43R2N5.js → chunk-2YXHLXID.js} +1 -1
- package/Marketplace/{chunk-VOVI2B6O.js → chunk-3E32TXFL.js} +1 -1
- package/Marketplace/chunk-3IYAATQI.js +35 -0
- package/Marketplace/chunk-4R22UO7N.js +2 -0
- package/Marketplace/chunk-56OKLP66.js +3 -0
- package/Marketplace/{chunk-NNPT3RN6.js → chunk-5WXM6HSA.js} +1 -1
- package/Marketplace/{chunk-5TLAX43C.js → chunk-6BYODQW7.js} +1 -1
- package/Marketplace/{chunk-OFRBPREK.js → chunk-6U6JR5K6.js} +1 -1
- package/Marketplace/chunk-74C3CXV4.js +1 -0
- package/Marketplace/{chunk-KK2VCYNM.js → chunk-7V7R7T2V.js} +1 -1
- package/Marketplace/chunk-A2TGQ4MU.js +1 -0
- package/Marketplace/chunk-B3LBEB32.js +1 -0
- package/Marketplace/chunk-C3YE27TZ.js +8 -0
- package/Marketplace/{chunk-3LRKHZJF.js → chunk-D7X76LHU.js} +1 -1
- package/Marketplace/{chunk-IPX66YIX.js → chunk-DSF55IXM.js} +1 -1
- package/Marketplace/chunk-DUHXHNDB.js +2 -0
- package/Marketplace/{chunk-4VJSS2RP.js → chunk-E2QD6KYS.js} +1 -1
- package/Marketplace/{chunk-ENMVK7WN.js → chunk-EEAB43LH.js} +1 -1
- package/Marketplace/chunk-EKCNJX26.js +1 -0
- package/Marketplace/chunk-F4WIW6HA.js +1 -0
- package/Marketplace/{chunk-F2CKDRNC.js → chunk-F63GNFZE.js} +1 -1
- package/Marketplace/{chunk-FCVAME75.js → chunk-FZ7LVL4C.js} +1 -1
- package/Marketplace/{chunk-L536HOP7.js → chunk-G6HY2OKZ.js} +1 -1
- package/Marketplace/{chunk-AATQG55J.js → chunk-HH5OTDOQ.js} +1 -1
- package/Marketplace/{chunk-TX43EE6N.js → chunk-HXDXTE2F.js} +1 -1
- package/Marketplace/{chunk-M4VGME5L.js → chunk-IPYNDMGQ.js} +1 -1
- package/Marketplace/{chunk-VPYKYYBH.js → chunk-IYV3772A.js} +1 -1
- package/Marketplace/{chunk-VXKEHQ73.js → chunk-JCWZSFSB.js} +1 -1
- package/Marketplace/chunk-JTJLVSTV.js +1 -0
- package/Marketplace/{chunk-BMPACBBM.js → chunk-K7EHVRIN.js} +1 -1
- package/Marketplace/{chunk-HBHGO2RV.js → chunk-KCDL7SWP.js} +1 -1
- package/Marketplace/{chunk-GP3CFNYA.js → chunk-KCFS3M2K.js} +1 -1
- package/Marketplace/chunk-KEW3SGQJ.js +1 -0
- package/Marketplace/chunk-KWFES5F7.js +4 -0
- package/Marketplace/chunk-LYF2MCUF.js +1 -0
- package/Marketplace/{chunk-FON6ZRGN.js → chunk-MIZ2DGVO.js} +2 -2
- package/Marketplace/{chunk-CP7VAKTQ.js → chunk-MLGEX4PW.js} +1 -1
- package/Marketplace/{chunk-IP2WADIR.js → chunk-MSVZKMTY.js} +1 -1
- package/Marketplace/chunk-MVPTQRFO.js +1 -0
- package/Marketplace/{chunk-LCOFOENF.js → chunk-NSKF7OXH.js} +1 -1
- package/Marketplace/chunk-NZ5YWVLF.js +2 -0
- package/Marketplace/{chunk-FQUPOWRE.js → chunk-O44GD7BQ.js} +1 -1
- package/Marketplace/chunk-ON2NN4QX.js +1 -0
- package/Marketplace/{chunk-7CEWM7GE.js → chunk-PIIJRFHM.js} +1 -1
- package/Marketplace/{chunk-2UXFUEON.js → chunk-QPRFFPO5.js} +1 -1
- package/Marketplace/{chunk-M67NQISG.js → chunk-QW3M4EZ2.js} +1 -1
- package/Marketplace/chunk-QZKWUCMY.js +1 -0
- package/Marketplace/chunk-R7MYFLXJ.js +3 -0
- package/Marketplace/{chunk-NUHOGS4I.js → chunk-R7NUZJ6Z.js} +1 -1
- package/Marketplace/{chunk-5WVUQE43.js → chunk-RMD2ZXUN.js} +1 -1
- package/Marketplace/{chunk-Y4SOX2BE.js → chunk-RXRML6X2.js} +1 -1
- package/Marketplace/chunk-RZ7FKABW.js +1 -0
- package/Marketplace/chunk-S5GA4AVB.js +2 -0
- package/Marketplace/{chunk-ABGYQNLC.js → chunk-TSN4V54G.js} +1 -1
- package/Marketplace/chunk-U3LBIFGI.js +1 -0
- package/Marketplace/{chunk-CVLA5R75.js → chunk-V4UFHWKE.js} +1 -1
- package/Marketplace/chunk-V6L3NRY3.js +1 -0
- package/Marketplace/{chunk-WJI6JIBR.js → chunk-VOWLO2M7.js} +1 -1
- package/Marketplace/{chunk-DZHNXVSW.js → chunk-VQUUMT5F.js} +1 -1
- package/Marketplace/{chunk-7NHG2S26.js → chunk-WXUKZFAH.js} +1 -1
- package/Marketplace/{chunk-2GZOVNPU.js → chunk-YG3KQ63T.js} +1 -1
- package/Marketplace/{chunk-CS5AGUUI.js → chunk-YJSTLOLP.js} +1 -1
- package/Marketplace/{chunk-N23ZYP7G.js → chunk-YZ42FKNJ.js} +1 -1
- package/Marketplace/index.html +2 -2
- package/Marketplace/{main-6U2BHS4K.js → main-CKEU3YNI.js} +1 -1
- package/Marketplace/polyfills-MH5IBZ74.js +2 -0
- package/Marketplace/styles-BHJH7JG5.css +1 -0
- package/package.json +1 -1
- package/Marketplace/chunk-2Y4N4NSS.js +0 -2
- package/Marketplace/chunk-43TMSPFC.js +0 -1
- package/Marketplace/chunk-4TYJR476.js +0 -1
- package/Marketplace/chunk-77JORVC2.js +0 -8
- package/Marketplace/chunk-7GNI4BOW.js +0 -3
- package/Marketplace/chunk-7NWB2VB2.js +0 -1
- package/Marketplace/chunk-AAIK6JQ3.js +0 -4
- package/Marketplace/chunk-ARA3PK2O.js +0 -1
- package/Marketplace/chunk-BRTVFFDI.js +0 -1
- package/Marketplace/chunk-DXJFMERC.js +0 -1
- package/Marketplace/chunk-F5YRASNU.js +0 -1
- package/Marketplace/chunk-G6CZHXQI.js +0 -1
- package/Marketplace/chunk-GEEAZIV4.js +0 -1
- package/Marketplace/chunk-HYSXRUQ5.js +0 -1
- package/Marketplace/chunk-KRNA3GN5.js +0 -2
- package/Marketplace/chunk-LIS3LB3F.js +0 -1
- package/Marketplace/chunk-MEGPKKGI.js +0 -1
- package/Marketplace/chunk-MFCHLZW7.js +0 -3
- package/Marketplace/chunk-MUFSHB3B.js +0 -1
- package/Marketplace/chunk-OOBUECHW.js +0 -2
- package/Marketplace/chunk-PIDUM6XT.js +0 -2
- package/Marketplace/chunk-PMOYSZXY.js +0 -47
- package/Marketplace/chunk-TOGKMWQK.js +0 -1
- package/Marketplace/chunk-WMVEBC4Z.js +0 -1
- package/Marketplace/polyfills-KTKZVV2N.js +0 -2
- package/Marketplace/styles-4NMVKKKY.css +0 -1
- /package/Marketplace/{chunk-CRRJCY55.js → chunk-GNOSNGXM.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as Zn}from"./chunk-AAIK6JQ3.js";import{a as Vn,b as $e,c as Gn,d as Yn,e as Jn,g as je}from"./chunk-FON6ZRGN.js";import{a as Kn,b as qe,c as $n,d as jn,e as Hn}from"./chunk-IPX66YIX.js";import"./chunk-HBHGO2RV.js";import"./chunk-4TYJR476.js";import{f as Xn}from"./chunk-2UXFUEON.js";import{$ as V,$a as C,$c as ze,A as un,B as dt,C as dn,Da as gt,E as hn,Fb as Te,Fc as we,G as ht,Ga as yn,Gb as Sn,Gc as In,Hb as kn,Hc as Rn,Ia as y,Ic as Fn,Ja as J,Jc as Ln,K as pn,Kc as Be,Lc as xn,M as fn,Na as _n,Nb as En,Nc as v,Ob as Cn,Oc as Z,Pa as bn,Pb as Tn,Pc as Bn,Qc as vt,Sc as zn,T as pt,Tc as W,Uc as qn,Va as Q,Vc as St,Wb as wn,Wc as kt,X as mn,Xb as Pn,Ya as ve,Z as k,Za as yt,Zc as Se,_a as E,_c as Et,aa as se,ab as oe,ad as Un,bc as Mn,bd as Qn,ca as U,cb as Fe,cd as Wn,dd as Ke,e as lt,ga as z,gd as Ct,ha as re,ia as gn,kb as R,lb as F,mb as P,nc as An,o as ln,oa as ft,pa as mt,pb as vn,q as ct,qb as _t,qc as Dn,s as cn,sa as te,sc as Le,tb as bt,tc as Nn,vb as O,vc as On,y as ut,zc as xe}from"./chunk-77JORVC2.js";import{a as Re,d as an}from"./chunk-CRRJCY55.js";var Ki=i=>({"background-color":i});function $i(i,e){i&1&&vn(0)}function ji(i,e){if(i&1&&P(0,"sk-cube-grid",4),i&2){let t=O(2);E("backgroundColor",t.backgroundColor)}}function Hi(i,e){if(i&1&&P(0,"sk-chasing-dots",4),i&2){let t=O(2);E("backgroundColor",t.backgroundColor)}}function Vi(i,e){if(i&1&&P(0,"sk-double-bounce",4),i&2){let t=O(2);E("backgroundColor",t.backgroundColor)}}function Ui(i,e){if(i&1&&P(0,"sk-rotating-plane",4),i&2){let t=O(2);E("backgroundColor",t.backgroundColor)}}function Qi(i,e){if(i&1&&P(0,"sk-spinner-pulse",4),i&2){let t=O(2);E("backgroundColor",t.backgroundColor)}}function Wi(i,e){if(i&1&&P(0,"sk-three-bounce",4),i&2){let t=O(2);E("backgroundColor",t.backgroundColor)}}function Gi(i,e){if(i&1&&P(0,"sk-wandering-cubes",4),i&2){let t=O(2);E("backgroundColor",t.backgroundColor)}}function Yi(i,e){if(i&1&&P(0,"sk-wave",4),i&2){let t=O(2);E("backgroundColor",t.backgroundColor)}}function Xi(i,e){if(i&1&&(R(0,"div",1),ve(1,$i,1,0,"ng-container",2)(2,ji,1,1,"sk-cube-grid",3)(3,Hi,1,1,"sk-chasing-dots",3)(4,Vi,1,1,"sk-double-bounce",3)(5,Ui,1,1,"sk-rotating-plane",3)(6,Qi,1,1,"sk-spinner-pulse",3)(7,Wi,1,1,"sk-three-bounce",3)(8,Gi,1,1,"sk-wandering-cubes",3)(9,Yi,1,1,"sk-wave",3),F()),i&2){let t=O();C("opacity",t.opacity),oe("backdrop",t.backdrop),E("ngStyle",Tn(14,Ki,t.backdrop?t.backdropBackgroundColor:"transparent")),y(),E("ngComponentOutlet",t.entryComponent),y(),E("ngIf",t.spinner===t.spinkit.skCubeGrid),y(),E("ngIf",t.spinner===t.spinkit.skChasingDots),y(),E("ngIf",t.spinner===t.spinkit.skDoubleBounce),y(),E("ngIf",t.spinner===t.spinkit.skRotatingPlane),y(),E("ngIf",t.spinner===t.spinkit.skSpinnerPulse),y(),E("ngIf",t.spinner===t.spinkit.skThreeBounce),y(),E("ngIf",t.spinner===t.spinkit.skWanderingCubes),y(),E("ngIf",t.spinner===t.spinkit.skWave)}}var le=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=gn({type:i,inputs:{backgroundColor:"backgroundColor"}}),i})(),Ji=(()=>{class i extends le{}return i.\u0275fac=(()=>{let e;return function(n){return(e||(e=te(i)))(n||i)}})(),i.\u0275cmp=z({type:i,selectors:[["sk-chasing-dots"]],features:[Q],decls:3,vars:6,consts:[[1,"sk-chasing-dots"],[1,"sk-child","sk-dot1"],[1,"sk-child","sk-dot2"]],template:function(t,n){t&1&&(R(0,"div",0),P(1,"div",1)(2,"div",2),F()),t&2&&(oe("colored",!n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor))},styles:[".sk-chasing-dots[_ngcontent-%COMP%]{top:50%;margin:auto;width:40px;height:40px;position:relative;text-align:center;animation:_ngcontent-%COMP%_sk-chasingDotsRotate 2s infinite linear}.sk-chasing-dots[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:60%;height:60%;display:inline-block;position:absolute;top:0;border-radius:100%;animation:_ngcontent-%COMP%_sk-chasingDotsBounce 2s infinite ease-in-out}.sk-chasing-dots[_ngcontent-%COMP%] .sk-dot2[_ngcontent-%COMP%]{top:auto;bottom:0;animation-delay:-1s}@keyframes _ngcontent-%COMP%_sk-chasingDotsRotate{to{transform:rotate(360deg)}}@keyframes _ngcontent-%COMP%_sk-chasingDotsBounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}"]}),i})(),Zi=(()=>{class i extends le{}return i.\u0275fac=(()=>{let e;return function(n){return(e||(e=te(i)))(n||i)}})(),i.\u0275cmp=z({type:i,selectors:[["sk-cube-grid"]],features:[Q],decls:10,vars:20,consts:[[1,"sk-cube-grid"],[1,"sk-cube","sk-cube1"],[1,"sk-cube","sk-cube2"],[1,"sk-cube","sk-cube3"],[1,"sk-cube","sk-cube4"],[1,"sk-cube","sk-cube5"],[1,"sk-cube","sk-cube6"],[1,"sk-cube","sk-cube7"],[1,"sk-cube","sk-cube8"],[1,"sk-cube","sk-cube9"]],template:function(t,n){t&1&&(R(0,"div",0),P(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",6)(7,"div",7)(8,"div",8)(9,"div",9),F()),t&2&&(oe("colored",!n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor))},styles:[".sk-cube-grid[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube[_ngcontent-%COMP%]{width:33.33%;height:33.33%;float:left;animation:_ngcontent-%COMP%_sk-cubeGridScaleDelay 1.3s infinite ease-in-out}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube1[_ngcontent-%COMP%]{animation-delay:.2s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube2[_ngcontent-%COMP%]{animation-delay:.3s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube3[_ngcontent-%COMP%]{animation-delay:.4s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube4[_ngcontent-%COMP%]{animation-delay:.1s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube5[_ngcontent-%COMP%]{animation-delay:.2s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube6[_ngcontent-%COMP%]{animation-delay:.3s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube7[_ngcontent-%COMP%]{animation-delay:0s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube8[_ngcontent-%COMP%]{animation-delay:.1s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube9[_ngcontent-%COMP%]{animation-delay:.2s}@keyframes _ngcontent-%COMP%_sk-cubeGridScaleDelay{0%,70%,to{transform:scaleZ(1)}35%{transform:scale3D(0,0,1)}}"]}),i})(),es=(()=>{class i extends le{}return i.\u0275fac=(()=>{let e;return function(n){return(e||(e=te(i)))(n||i)}})(),i.\u0275cmp=z({type:i,selectors:[["sk-double-bounce"]],features:[Q],decls:3,vars:6,consts:[[1,"sk-double-bounce"],[1,"sk-child","sk-double-bounce1"],[1,"sk-child","sk-double-bounce2"]],template:function(t,n){t&1&&(R(0,"div",0),P(1,"div",1)(2,"div",2),F()),t&2&&(oe("colored",!n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor))},styles:[".sk-double-bounce[_ngcontent-%COMP%]{top:50%;width:40px;height:40px;position:relative;margin:auto}.sk-double-bounce[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:50%;background-color:#333;opacity:.6;position:absolute;top:0;left:0;animation:_ngcontent-%COMP%_sk-doubleBounce 2s infinite ease-in-out}.sk-double-bounce[_ngcontent-%COMP%] .sk-double-bounce2[_ngcontent-%COMP%]{animation-delay:-1s}@keyframes _ngcontent-%COMP%_sk-doubleBounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}"]}),i})(),ts=(()=>{class i extends le{}return i.\u0275fac=(()=>{let e;return function(n){return(e||(e=te(i)))(n||i)}})(),i.\u0275cmp=z({type:i,selectors:[["sk-rotating-plane"]],features:[Q],decls:1,vars:2,consts:[[1,"sk-rotating-plane","colored-parent"]],template:function(t,n){t&1&&P(0,"div",0),t&2&&C("background-color",n.backgroundColor)},styles:[".sk-rotating-plane[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto;animation:_ngcontent-%COMP%_sk-rotatePlane 1.2s infinite ease-in-out}@keyframes _ngcontent-%COMP%_sk-rotatePlane{0%{transform:perspective(120px) rotateX(0) rotateY(0)}50%{transform:perspective(120px) rotateX(-180.1deg) rotateY(0)}to{transform:perspective(120px) rotateX(-180deg) rotateY(-179.9deg)}}"]}),i})(),ns=(()=>{class i extends le{}return i.\u0275fac=(()=>{let e;return function(n){return(e||(e=te(i)))(n||i)}})(),i.\u0275cmp=z({type:i,selectors:[["sk-spinner-pulse"]],features:[Q],decls:1,vars:2,consts:[[1,"sk-spinner","sk-spinner-pulse","colored-parent"]],template:function(t,n){t&1&&P(0,"div",0),t&2&&C("background-color",n.backgroundColor)},styles:[".sk-spinner-pulse[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto;border-radius:100%;animation:_ngcontent-%COMP%_sk-pulseScaleOut 1s infinite ease-in-out}@keyframes _ngcontent-%COMP%_sk-pulseScaleOut{0%{transform:scale(0)}to{transform:scale(1);opacity:0}}"]}),i})(),is=(()=>{class i extends le{}return i.\u0275fac=(()=>{let e;return function(n){return(e||(e=te(i)))(n||i)}})(),i.\u0275cmp=z({type:i,selectors:[["sk-three-bounce"]],features:[Q],decls:4,vars:8,consts:[[1,"sk-three-bounce"],[1,"sk-child","sk-bounce1"],[1,"sk-child","sk-bounce2"],[1,"sk-child","sk-bounce3"]],template:function(t,n){t&1&&(R(0,"div",0),P(1,"div",1)(2,"div",2)(3,"div",3),F()),t&2&&(oe("colored",!n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor))},styles:[".sk-three-bounce[_ngcontent-%COMP%]{top:50%;position:relative;margin:auto;width:80px;text-align:center}.sk-three-bounce[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:20px;height:20px;border-radius:100%;display:inline-block;animation:_ngcontent-%COMP%_sk-three-bounce 1.4s ease-in-out 0s infinite both}.sk-three-bounce[_ngcontent-%COMP%] .sk-bounce1[_ngcontent-%COMP%]{animation-delay:-.32s}.sk-three-bounce[_ngcontent-%COMP%] .sk-bounce2[_ngcontent-%COMP%]{animation-delay:-.16s}@keyframes _ngcontent-%COMP%_sk-three-bounce{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}"]}),i})(),ss=(()=>{class i extends le{}return i.\u0275fac=(()=>{let e;return function(n){return(e||(e=te(i)))(n||i)}})(),i.\u0275cmp=z({type:i,selectors:[["sk-wandering-cubes"]],features:[Q],decls:3,vars:6,consts:[[1,"sk-wandering-cubes"],[1,"sk-cube","sk-cube1"],[1,"sk-cube","sk-cube2"]],template:function(t,n){t&1&&(R(0,"div",0),P(1,"div",1)(2,"div",2),F()),t&2&&(oe("colored",!n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor))},styles:[".sk-wandering-cubes[_ngcontent-%COMP%]{top:50%;margin:auto;width:40px;height:40px;position:relative}.sk-wandering-cubes[_ngcontent-%COMP%] .sk-cube[_ngcontent-%COMP%]{width:10px;height:10px;position:absolute;top:0;left:0;animation:_ngcontent-%COMP%_sk-wanderingCube 1.8s ease-in-out -1.8s infinite both}.sk-wandering-cubes[_ngcontent-%COMP%] .sk-cube2[_ngcontent-%COMP%]{animation-delay:-.9s}@keyframes _ngcontent-%COMP%_sk-wanderingCube{0%{transform:rotate(0)}25%{transform:translate(30px) rotate(-90deg) scale(.5)}50%{transform:translate(30px) translateY(30px) rotate(-179deg)}50.1%{transform:translate(30px) translateY(30px) rotate(-180deg)}75%{transform:translate(0) translateY(30px) rotate(-270deg) scale(.5)}to{transform:rotate(-360deg)}}"]}),i})(),rs=(()=>{class i extends le{}return i.\u0275fac=(()=>{let e;return function(n){return(e||(e=te(i)))(n||i)}})(),i.\u0275cmp=z({type:i,selectors:[["sk-wave"]],features:[Q],decls:6,vars:12,consts:[[1,"sk-wave"],[1,"sk-rect","sk-rect1"],[1,"sk-rect","sk-rect2"],[1,"sk-rect","sk-rect3"],[1,"sk-rect","sk-rect4"],[1,"sk-rect","sk-rect5"]],template:function(t,n){t&1&&(R(0,"div",0),P(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5),F()),t&2&&(oe("colored",!n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor))},styles:[".sk-wave[_ngcontent-%COMP%]{position:relative;top:50%;margin:auto;width:50px;height:40px;text-align:center;font-size:10px}.sk-wave[_ngcontent-%COMP%] .sk-rect[_ngcontent-%COMP%]{float:left;margin-right:1px;height:100%;width:6px;display:inline-block;animation:_ngcontent-%COMP%_sk-waveStretchDelay 1.2s infinite ease-in-out}.sk-wave[_ngcontent-%COMP%] .sk-rect1[_ngcontent-%COMP%]{animation-delay:-1.2s}.sk-wave[_ngcontent-%COMP%] .sk-rect2[_ngcontent-%COMP%]{animation-delay:-1.1s}.sk-wave[_ngcontent-%COMP%] .sk-rect3[_ngcontent-%COMP%]{animation-delay:-1s}.sk-wave[_ngcontent-%COMP%] .sk-rect4[_ngcontent-%COMP%]{animation-delay:-.9s}.sk-wave[_ngcontent-%COMP%] .sk-rect5[_ngcontent-%COMP%]{animation-delay:-.8s}@keyframes _ngcontent-%COMP%_sk-waveStretchDelay{0%,40%,to{transform:scaleY(.4)}20%{transform:scaleY(1)}}"]}),i})(),ei={skChasingDots:"sk-chasing-dots",skCubeGrid:"sk-cube-grid",skDoubleBounce:"sk-double-bounce",skRotatingPlane:"sk-rotationg-plane",skSpinnerPulse:"sk-spinner-pulse",skThreeBounce:"sk-three-bounce",skWanderingCubes:"sk-wandering-cubes",skWave:"sk-wave"};var Tt=(()=>{class i{constructor(){this._pendingRequests=0,this._pendingRequestsStatus$=new lt(1),this._filteredUrlPatterns=[],this._filteredMethods=[],this._filteredHeaders=[],this._forceByPass=!1}get pendingRequestsStatus$(){return this._pendingRequestsStatus$.asObservable()}get pendingRequests(){return this._pendingRequests}get filteredUrlPatterns(){return this._filteredUrlPatterns}set filteredMethods(t){this._filteredMethods=t}set filteredHeaders(t){this._filteredHeaders=t}set forceByPass(t){this._forceByPass=t}shouldBypassUrl(t){return this._filteredUrlPatterns.some(n=>n.test(t))}shouldBypassMethod(t){return this._filteredMethods.some(n=>n.toUpperCase()===t.method.toUpperCase())}shouldBypassHeader(t){return this._filteredHeaders.some(n=>t.headers.has(n))}shouldBypass(t){return this._forceByPass||this.shouldBypassUrl(t.urlWithParams)||this.shouldBypassMethod(t)||this.shouldBypassHeader(t)}intercept(t,n){let s=this.shouldBypass(t);return s||(this._pendingRequests++,this._pendingRequests===1&&this._pendingRequestsStatus$.next(!0)),n.handle(t).pipe(fn(()=>{s||(this._pendingRequests--,this._pendingRequests===0&&this._pendingRequestsStatus$.next(!1))}))}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=V({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),os=[{provide:we,useExisting:Tt,multi:!0}],as=(()=>{class i{constructor(t){this.pendingRequestsInterceptor=t,this._visibility$=new lt(1)}get visibility$(){return this._visibility$.asObservable()}show(){this.pendingRequestsInterceptor.forceByPass=!0,this._visibility$.next(!0)}hide(){this._visibility$.next(!1),this.pendingRequestsInterceptor.forceByPass=!1}}return i.\u0275fac=function(t){return new(t||i)(U(Tt))},i.\u0275prov=V({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),ti=(()=>{class i{constructor(t,n){this.pendingRequestsInterceptor=t,this.spinnerVisibility=n,this.spinkit=ei,this.visibleUntil=Date.now(),this.backdrop=!0,this.debounceDelay=0,this.entryComponent=null,this.extraDuration=0,this.filteredHeaders=[],this.filteredMethods=[],this.filteredUrlPatterns=[],this.minDuration=0,this.opacity=".7",this.backdropBackgroundColor="#f1f1f1",this.spinner=ei.skWave}ngOnInit(){this.initIsvisibleObservable(),this.nullifySpinnerIfEntryComponentIsDefined(),this.initFilters()}initIsvisibleObservable(){let[t,n]=dn(this.pendingRequestsInterceptor.pendingRequestsStatus$,s=>s);this.isVisible$=un(this.pendingRequestsInterceptor.pendingRequestsStatus$.pipe(pt(()=>t.pipe(ht(()=>ut(this.debounceDelay))))),t.pipe(pt(()=>n.pipe(ht(()=>this.getVisibilityTimer$())))),this.spinnerVisibility.visibility$).pipe(pn(),mn(s=>this.updateExpirationDelay(s)))}nullifySpinnerIfEntryComponentIsDefined(){this.entryComponent&&(this.spinner=null)}initFilters(){this.initFilteredUrlPatterns(),this.initFilteredMethods(),this.initFilteredHeaders()}initFilteredUrlPatterns(){this.filteredUrlPatterns.length&&this.filteredUrlPatterns.forEach(t=>this.pendingRequestsInterceptor.filteredUrlPatterns.push(new RegExp(t)))}initFilteredMethods(){this.pendingRequestsInterceptor.filteredMethods=this.filteredMethods}initFilteredHeaders(){this.pendingRequestsInterceptor.filteredHeaders=this.filteredHeaders}updateExpirationDelay(t){t&&(this.visibleUntil=Date.now()+this.minDuration)}getVisibilityTimer$(){return ut(Math.max(this.extraDuration,this.visibleUntil-Date.now()))}}return i.\u0275fac=function(t){return new(t||i)(J(Tt),J(as))},i.\u0275cmp=z({type:i,selectors:[["ng-http-loader"]],inputs:{backdrop:"backdrop",backgroundColor:"backgroundColor",debounceDelay:"debounceDelay",entryComponent:"entryComponent",extraDuration:"extraDuration",filteredHeaders:"filteredHeaders",filteredMethods:"filteredMethods",filteredUrlPatterns:"filteredUrlPatterns",minDuration:"minDuration",opacity:"opacity",backdropBackgroundColor:"backdropBackgroundColor",spinner:"spinner"},decls:2,vars:3,consts:[["id","spinner",3,"backdrop","opacity","ngStyle",4,"ngIf"],["id","spinner",3,"ngStyle"],[4,"ngComponentOutlet"],[3,"backgroundColor",4,"ngIf"],[3,"backgroundColor"]],template:function(t,n){t&1&&(ve(0,Xi,10,16,"div",0),wn(1,"async")),t&2&&E("ngIf",Pn(1,1,n.isVisible$))},dependencies:[Dn,Le,Nn,Zi,Ji,es,ts,ns,is,ss,rs,On],styles:["#spinner[_ngcontent-%COMP%]{top:50%;left:50%;transform:translate(-50%,-50%);position:fixed;z-index:9999}#spinner.backdrop[_ngcontent-%COMP%]{top:0;left:0;height:100%;width:100%;display:flex;align-items:center;justify-content:center;transform:none} .colored-parent, .colored>div{background-color:#333}"]}),i})(),ni=(()=>{class i{static forRoot(){return{ngModule:i,providers:[os]}}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=re({type:i}),i.\u0275inj=se({imports:[xe]}),i})();var cs=[{path:"",loadChildren:()=>import("./chunk-5TLAX43C.js").then(i=>i.LoginModule)},{path:"menu",loadChildren:()=>import("./chunk-ABGYQNLC.js").then(i=>i.MenuModule)},{path:"**",redirectTo:"",pathMatch:"full"}],ii=(()=>{let e=class e{};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=re({type:e}),e.\u0275inj=se({imports:[Ct.forRoot(cs),Ct]});let i=e;return i})();var hs=()=>["/api/Channel/GetLastSyncByID"],si=(()=>{let e=class e{constructor(n,s,r){this._router=n,this.titleService=s,this.activatedRoute=r}ngOnInit(){this.overrideDateToJsonFunction(),this._router.events.pipe(dt(n=>n instanceof Un)).pipe(ct(()=>this.activatedRoute),ct(n=>{for(;n.firstChild;)n=n.firstChild;return n}),dt(n=>n.outlet==="primary"),cn(n=>n.data)).subscribe(n=>{let s=" | Marketplace";n.title=="Dealpos x Marketplace"&&(s=""),this.titleService.setTitle(n.title+s)})}overrideDateToJsonFunction(){Date.prototype.toJSON=function(){return this.getFullYear()+"-"+n(this.getMonth()+1)+"-"+n(this.getDate())+"T"+n(this.getHours())+":"+n(this.getMinutes())+":"+n(this.getSeconds())+".000"};function n(s){return s<10?"0"+s:s}}};e.\u0275fac=function(s){return new(s||e)(J(Ke),J(xn),J(Qn))},e.\u0275cmp=z({type:e,selectors:[["app-root"]],decls:2,vars:2,consts:[[3,"filteredUrlPatterns"]],template:function(s,r){s&1&&P(0,"ng-http-loader",0)(1,"router-outlet"),s&2&&E("filteredUrlPatterns",Cn(1,hs))},dependencies:[Wn,ti]});let i=e;return i})();function ri(i){return new k(3e3,!1)}function ps(){return new k(3100,!1)}function fs(){return new k(3101,!1)}function ms(i){return new k(3001,!1)}function gs(i){return new k(3003,!1)}function ys(i){return new k(3004,!1)}function _s(i,e){return new k(3005,!1)}function bs(){return new k(3006,!1)}function vs(){return new k(3007,!1)}function Ss(i,e){return new k(3008,!1)}function ks(i){return new k(3002,!1)}function Es(i,e,t,n,s){return new k(3010,!1)}function Cs(){return new k(3011,!1)}function Ts(){return new k(3012,!1)}function ws(){return new k(3200,!1)}function Ps(){return new k(3202,!1)}function Ms(){return new k(3013,!1)}function As(i){return new k(3014,!1)}function Ds(i){return new k(3015,!1)}function Ns(i){return new k(3016,!1)}function Os(i,e){return new k(3404,!1)}function Is(i){return new k(3502,!1)}function Rs(i){return new k(3503,!1)}function Fs(){return new k(3300,!1)}function Ls(i){return new k(3504,!1)}function xs(i){return new k(3301,!1)}function Bs(i,e){return new k(3302,!1)}function zs(i){return new k(3303,!1)}function qs(i,e){return new k(3400,!1)}function Ks(i){return new k(3401,!1)}function $s(i){return new k(3402,!1)}function js(i,e){return new k(3505,!1)}function ce(i){switch(i.length){case 0:return new Se;case 1:return i[0];default:return new Et(i)}}function bi(i,e,t=new Map,n=new Map){let s=[],r=[],o=-1,a=null;if(e.forEach(l=>{let c=l.get("offset"),d=c==o,u=d&&a||new Map;l.forEach((b,_)=>{let p=_,g=b;if(_!=="offset")switch(p=i.normalizePropertyName(p,s),g){case ze:g=t.get(_);break;case Z:g=n.get(_);break;default:g=i.normalizeStyleValue(_,p,g,s);break}u.set(p,g)}),d||r.push(u),a=u,o=c}),s.length)throw Is(s);return r}function Wt(i,e,t,n){switch(e){case"start":i.onStart(()=>n(t&&wt(t,"start",i)));break;case"done":i.onDone(()=>n(t&&wt(t,"done",i)));break;case"destroy":i.onDestroy(()=>n(t&&wt(t,"destroy",i)));break}}function wt(i,e,t){let n=t.totalTime,s=!!t.disabled,r=Gt(i.element,i.triggerName,i.fromState,i.toState,e||i.phaseName,n??i.totalTime,s),o=i._data;return o!=null&&(r._data=o),r}function Gt(i,e,t,n,s="",r=0,o){return{element:i,triggerName:e,fromState:t,toState:n,phaseName:s,totalTime:r,disabled:!!o}}function $(i,e,t){let n=i.get(e);return n||i.set(e,n=t),n}function oi(i){let e=i.indexOf(":"),t=i.substring(1,e),n=i.slice(e+1);return[t,n]}var Hs=typeof document>"u"?null:document.documentElement;function Yt(i){let e=i.parentNode||i.host||null;return e===Hs?null:e}function Vs(i){return i.substring(1,6)=="ebkit"}var pe=null,ai=!1;function Us(i){pe||(pe=Qs()||{},ai=pe.style?"WebkitAppearance"in pe.style:!1);let e=!0;return pe.style&&!Vs(i)&&(e=i in pe.style,!e&&ai&&(e="Webkit"+i.charAt(0).toUpperCase()+i.slice(1)in pe.style)),e}function Qs(){return typeof document<"u"?document.body:null}function vi(i,e){for(;e;){if(e===i)return!0;e=Yt(e)}return!1}function Si(i,e,t){if(t)return Array.from(i.querySelectorAll(e));let n=i.querySelector(e);return n?[n]:[]}var Xt=(()=>{let e=class e{validateStyleProperty(n){return Us(n)}containsElement(n,s){return vi(n,s)}getParentElement(n){return Yt(n)}query(n,s,r){return Si(n,s,r)}computeStyle(n,s,r){return r||""}animate(n,s,r,o,a,l=[],c){return new Se(r,o)}};e.\u0275fac=function(s){return new(s||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),tn=class tn{};tn.NOOP=new Xt;var ge=tn,ye=class{};var Ws=1e3,ki="{{",Gs="}}",Ei="ng-enter",Ot="ng-leave",He="ng-trigger",Ge=".ng-trigger",li="ng-animating",It=".ng-animating";function ne(i){if(typeof i=="number")return i;let e=i.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Rt(parseFloat(e[1]),e[2])}function Rt(i,e){switch(e){case"s":return i*Ws;default:return i}}function Ye(i,e,t){return i.hasOwnProperty("duration")?i:Ys(i,e,t)}function Ys(i,e,t){let n=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,s,r=0,o="";if(typeof i=="string"){let a=i.match(n);if(a===null)return e.push(ri(i)),{duration:0,delay:0,easing:""};s=Rt(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(r=Rt(parseFloat(l),a[4]));let c=a[5];c&&(o=c)}else s=i;if(!t){let a=!1,l=e.length;s<0&&(e.push(ps()),a=!0),r<0&&(e.push(fs()),a=!0),a&&e.splice(l,0,ri(i))}return{duration:s,delay:r,easing:o}}function Xs(i){return i.length?i[0]instanceof Map?i:i.map(e=>new Map(Object.entries(e))):[]}function ee(i,e,t){e.forEach((n,s)=>{let r=Jt(s);t&&!t.has(s)&&t.set(s,i.style[r]),i.style[r]=n})}function me(i,e){e.forEach((t,n)=>{let s=Jt(n);i.style[s]=""})}function Pe(i){return Array.isArray(i)?i.length==1?i[0]:zn(i):i}function Js(i,e,t){let n=e.params||{},s=Ci(i);s.length&&s.forEach(r=>{n.hasOwnProperty(r)||t.push(ms(r))})}var Ft=new RegExp(`${ki}\\s*(.+?)\\s*${Gs}`,"g");function Ci(i){let e=[];if(typeof i=="string"){let t;for(;t=Ft.exec(i);)e.push(t[1]);Ft.lastIndex=0}return e}function Ae(i,e,t){let n=`${i}`,s=n.replace(Ft,(r,o)=>{let a=e[o];return a==null&&(t.push(gs(o)),a=""),a.toString()});return s==n?i:s}var Zs=/-+([a-z0-9])/g;function Jt(i){return i.replace(Zs,(...e)=>e[1].toUpperCase())}function er(i,e){return i===0||e===0}function tr(i,e,t){if(t.size&&e.length){let n=e[0],s=[];if(t.forEach((r,o)=>{n.has(o)||s.push(o),n.set(o,r)}),s.length)for(let r=1;r<e.length;r++){let o=e[r];s.forEach(a=>o.set(a,Zt(i,a)))}}return e}function K(i,e,t){switch(e.type){case v.Trigger:return i.visitTrigger(e,t);case v.State:return i.visitState(e,t);case v.Transition:return i.visitTransition(e,t);case v.Sequence:return i.visitSequence(e,t);case v.Group:return i.visitGroup(e,t);case v.Animate:return i.visitAnimate(e,t);case v.Keyframes:return i.visitKeyframes(e,t);case v.Style:return i.visitStyle(e,t);case v.Reference:return i.visitReference(e,t);case v.AnimateChild:return i.visitAnimateChild(e,t);case v.AnimateRef:return i.visitAnimateRef(e,t);case v.Query:return i.visitQuery(e,t);case v.Stagger:return i.visitStagger(e,t);default:throw ys(e.type)}}function Zt(i,e){return window.getComputedStyle(i)[e]}var nr=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),Xe=class extends ye{normalizePropertyName(e,t){return Jt(e)}normalizeStyleValue(e,t,n,s){let r="",o=n.toString().trim();if(nr.has(t)&&n!==0&&n!=="0")if(typeof n=="number")r="px";else{let a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&s.push(_s(e,n))}return o+r}};var Je="*";function ir(i,e){let t=[];return typeof i=="string"?i.split(/\s*,\s*/).forEach(n=>sr(n,t,e)):t.push(i),t}function sr(i,e,t){if(i[0]==":"){let l=rr(i,t);if(typeof l=="function"){e.push(l);return}i=l}let n=i.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return t.push(Ds(i)),e;let s=n[1],r=n[2],o=n[3];e.push(ci(s,o));let a=s==Je&&o==Je;r[0]=="<"&&!a&&e.push(ci(o,s))}function rr(i,e){switch(i){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,n)=>parseFloat(n)>parseFloat(t);case":decrement":return(t,n)=>parseFloat(n)<parseFloat(t);default:return e.push(Ns(i)),"* => *"}}var Ve=new Set(["true","1"]),Ue=new Set(["false","0"]);function ci(i,e){let t=Ve.has(i)||Ue.has(i),n=Ve.has(e)||Ue.has(e);return(s,r)=>{let o=i==Je||i==s,a=e==Je||e==r;return!o&&t&&typeof s=="boolean"&&(o=s?Ve.has(i):Ue.has(i)),!a&&n&&typeof r=="boolean"&&(a=r?Ve.has(e):Ue.has(e)),o&&a}}var Ti=":self",or=new RegExp(`s*${Ti}s*,?`,"g");function wi(i,e,t,n){return new Lt(i).build(e,t,n)}var ui="",Lt=class{constructor(e){this._driver=e}build(e,t,n){let s=new xt(t);return this._resetContextStyleTimingState(s),K(this,Pe(e),s)}_resetContextStyleTimingState(e){e.currentQuerySelector=ui,e.collectedStyles=new Map,e.collectedStyles.set(ui,new Map),e.currentTime=0}visitTrigger(e,t){let n=t.queryCount=0,s=t.depCount=0,r=[],o=[];return e.name.charAt(0)=="@"&&t.errors.push(bs()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==v.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(d=>{l.name=d,r.push(this.visitState(l,t))}),l.name=c}else if(a.type==v.Transition){let l=this.visitTransition(a,t);n+=l.queryCount,s+=l.depCount,o.push(l)}else t.errors.push(vs())}),{type:v.Trigger,name:e.name,states:r,transitions:o,queryCount:n,depCount:s,options:null}}visitState(e,t){let n=this.visitStyle(e.styles,t),s=e.options&&e.options.params||null;if(n.containsDynamicStyles){let r=new Set,o=s||{};n.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{Ci(l).forEach(c=>{o.hasOwnProperty(c)||r.add(c)})})}),r.size&&t.errors.push(Ss(e.name,[...r.values()]))}return{type:v.State,name:e.name,style:n,options:s?{params:s}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let n=K(this,Pe(e.animation),t),s=ir(e.expr,t.errors);return{type:v.Transition,matchers:s,animation:n,queryCount:t.queryCount,depCount:t.depCount,options:fe(e.options)}}visitSequence(e,t){return{type:v.Sequence,steps:e.steps.map(n=>K(this,n,t)),options:fe(e.options)}}visitGroup(e,t){let n=t.currentTime,s=0,r=e.steps.map(o=>{t.currentTime=n;let a=K(this,o,t);return s=Math.max(s,t.currentTime),a});return t.currentTime=s,{type:v.Group,steps:r,options:fe(e.options)}}visitAnimate(e,t){let n=ur(e.timings,t.errors);t.currentAnimateTimings=n;let s,r=e.styles?e.styles:W({});if(r.type==v.Keyframes)s=this.visitKeyframes(r,t);else{let o=e.styles,a=!1;if(!o){a=!0;let c={};n.easing&&(c.easing=n.easing),o=W(c)}t.currentTime+=n.duration+n.delay;let l=this.visitStyle(o,t);l.isEmptyStep=a,s=l}return t.currentAnimateTimings=null,{type:v.Animate,timings:n,style:s,options:null}}visitStyle(e,t){let n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){let n=[],s=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of s)typeof a=="string"?a===Z?n.push(a):t.errors.push(ks(a)):n.push(new Map(Object.entries(a)));let r=!1,o=null;return n.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!r)){for(let l of a.values())if(l.toString().indexOf(ki)>=0){r=!0;break}}}),{type:v.Style,styles:n,easing:o,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){let n=t.currentAnimateTimings,s=t.currentTime,r=t.currentTime;n&&r>0&&(r-=n.duration+n.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let c=t.collectedStyles.get(t.currentQuerySelector),d=c.get(l),u=!0;d&&(r!=s&&r>=d.startTime&&s<=d.endTime&&(t.errors.push(Es(l,d.startTime,d.endTime,r,s)),u=!1),r=d.startTime),u&&c.set(l,{startTime:r,endTime:s}),t.options&&Js(a,t.options,t.errors)})})}visitKeyframes(e,t){let n={type:v.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(Cs()),n;let s=1,r=0,o=[],a=!1,l=!1,c=0,d=e.steps.map(M=>{let A=this._makeStyleAst(M,t),L=A.offset!=null?A.offset:cr(A.styles),N=0;return L!=null&&(r++,N=A.offset=L),l=l||N<0||N>1,a=a||N<c,c=N,o.push(N),A});l&&t.errors.push(Ts()),a&&t.errors.push(ws());let u=e.steps.length,b=0;r>0&&r<u?t.errors.push(Ps()):r==0&&(b=s/(u-1));let _=u-1,p=t.currentTime,g=t.currentAnimateTimings,T=g.duration;return d.forEach((M,A)=>{let L=b>0?A==_?1:b*A:o[A],N=L*T;t.currentTime=p+g.delay+N,g.duration=N,this._validateStyleAst(M,t),M.offset=L,n.styles.push(M)}),n}visitReference(e,t){return{type:v.Reference,animation:K(this,Pe(e.animation),t),options:fe(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:v.AnimateChild,options:fe(e.options)}}visitAnimateRef(e,t){return{type:v.AnimateRef,animation:this.visitReference(e.animation,t),options:fe(e.options)}}visitQuery(e,t){let n=t.currentQuerySelector,s=e.options||{};t.queryCount++,t.currentQuery=e;let[r,o]=ar(e.selector);t.currentQuerySelector=n.length?n+" "+r:r,$(t.collectedStyles,t.currentQuerySelector,new Map);let a=K(this,Pe(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:v.Query,selector:r,limit:s.limit||0,optional:!!s.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:fe(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(Ms());let n=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Ye(e.timings,t.errors,!0);return{type:v.Stagger,animation:K(this,Pe(e.animation),t),timings:n,options:null}}};function ar(i){let e=!!i.split(/\s*,\s*/).find(t=>t==Ti);return e&&(i=i.replace(or,"")),i=i.replace(/@\*/g,Ge).replace(/@\w+/g,t=>Ge+"-"+t.slice(1)).replace(/:animating/g,It),[i,e]}function lr(i){return i?Re({},i):null}var xt=class{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function cr(i){if(typeof i=="string")return null;let e=null;if(Array.isArray(i))i.forEach(t=>{if(t instanceof Map&&t.has("offset")){let n=t;e=parseFloat(n.get("offset")),n.delete("offset")}});else if(i instanceof Map&&i.has("offset")){let t=i;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function ur(i,e){if(i.hasOwnProperty("duration"))return i;if(typeof i=="number"){let r=Ye(i,e).duration;return Pt(r,0,"")}let t=i;if(t.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=Pt(0,0,"");return r.dynamic=!0,r.strValue=t,r}let s=Ye(t,e);return Pt(s.duration,s.delay,s.easing)}function fe(i){return i?(i=Re({},i),i.params&&(i.params=lr(i.params))):i={},i}function Pt(i,e,t){return{duration:i,delay:e,easing:t}}function en(i,e,t,n,s,r,o=null,a=!1){return{type:1,element:i,keyframes:e,preStyleProps:t,postStyleProps:n,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:a}}var De=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},dr=1,hr=":enter",pr=new RegExp(hr,"g"),fr=":leave",mr=new RegExp(fr,"g");function Pi(i,e,t,n,s,r=new Map,o=new Map,a,l,c=[]){return new Bt().buildKeyframes(i,e,t,n,s,r,o,a,l,c)}var Bt=class{buildKeyframes(e,t,n,s,r,o,a,l,c,d=[]){c=c||new De;let u=new zt(e,t,c,s,r,d,[]);u.options=l;let b=l.delay?ne(l.delay):0;u.currentTimeline.delayNextStep(b),u.currentTimeline.setStyles([o],null,u.errors,l),K(this,n,u);let _=u.timelines.filter(p=>p.containsAnimation());if(_.length&&a.size){let p;for(let g=_.length-1;g>=0;g--){let T=_[g];if(T.element===t){p=T;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,u.errors,l)}return _.length?_.map(p=>p.buildKeyframes()):[en(t,[],[],[],0,b,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let n=t.subInstructions.get(t.element);if(n){let s=t.createSubContext(e.options),r=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,s,s.options);r!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){let n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,n),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,n){for(let s of e){let r=s?.delay;if(r){let o=typeof r=="number"?r:ne(Ae(r,s?.params??{},t.errors));n.delayNextStep(o)}}}_visitSubInstructions(e,t,n){let r=t.currentTimeline.currentTime,o=n.duration!=null?ne(n.duration):null,a=n.delay!=null?ne(n.delay):null;return o!==0&&e.forEach(l=>{let c=t.appendInstructionToTimeline(l,o,a);r=Math.max(r,c.duration+c.delay)}),r}visitReference(e,t){t.updateOptions(e.options,!0),K(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let n=t.subContextCount,s=t,r=e.options;if(r&&(r.params||r.delay)&&(s=t.createSubContext(r),s.transformIntoNewTimeline(),r.delay!=null)){s.previousNode.type==v.Style&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=Ze);let o=ne(r.delay);s.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>K(this,o,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>n&&s.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let n=[],s=t.currentTimeline.currentTime,r=e.options&&e.options.delay?ne(e.options.delay):0;e.steps.forEach(o=>{let a=t.createSubContext(e.options);r&&a.delayNextStep(r),K(this,o,a),s=Math.max(s,a.currentTimeline.currentTime),n.push(a.currentTimeline)}),n.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(s),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let n=e.strValue,s=t.params?Ae(n,t.params,t.errors):n;return Ye(s,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let n=t.currentAnimateTimings=this._visitTiming(e.timings,t),s=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),s.snapshotCurrentStyles());let r=e.style;r.type==v.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),s.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let n=t.currentTimeline,s=t.currentAnimateTimings;!s&&n.hasCurrentStyleProperties()&&n.forwardFrame();let r=s&&s.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let n=t.currentAnimateTimings,s=t.currentTimeline.duration,r=n.duration,a=t.createSubContext().currentTimeline;a.easing=n.easing,e.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*r),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(s+r),t.previousNode=e}visitQuery(e,t){let n=t.currentTimeline.currentTime,s=e.options||{},r=s.delay?ne(s.delay):0;r&&(t.previousNode.type===v.Style||n==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Ze);let o=n,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!s.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,d)=>{t.currentQueryIndex=d;let u=t.createSubContext(e.options,c);r&&u.delayNextStep(r),c===t.element&&(l=u.currentTimeline),K(this,e.animation,u),u.currentTimeline.applyStylesToKeyframe();let b=u.currentTimeline.currentTime;o=Math.max(o,b)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let n=t.parentContext,s=t.currentTimeline,r=e.timings,o=Math.abs(r.duration),a=o*(t.currentQueryTotal-1),l=o*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=a-l;break;case"full":l=n.currentStaggerTime;break}let d=t.currentTimeline;l&&d.delayNextStep(l);let u=d.currentTime;K(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=s.currentTime-u+(s.startTime-n.currentTimeline.startTime)}},Ze={},zt=class i{constructor(e,t,n,s,r,o,a,l){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=s,this._leaveClassName=r,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Ze,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new et(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let n=e,s=this.options;n.duration!=null&&(s.duration=ne(n.duration)),n.delay!=null&&(s.delay=ne(n.delay));let r=n.params;if(r){let o=s.params;o||(o=this.options.params={}),Object.keys(r).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=Ae(r[a],o,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let n=e.params={};Object.keys(t).forEach(s=>{n[s]=t[s]})}}return e}createSubContext(e=null,t,n){let s=t||this.element,r=new i(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=Ze,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){let s={duration:t??e.duration,delay:this.currentTimeline.currentTime+(n??0)+e.delay,easing:""},r=new qt(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,s,e.stretchStartingKeyframe);return this.timelines.push(r),s}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,n,s,r,o){let a=[];if(s&&a.push(this.element),e.length>0){e=e.replace(pr,"."+this._enterClassName),e=e.replace(mr,"."+this._leaveClassName);let l=n!=1,c=this._driver.query(this.element,e,l);n!==0&&(c=n<0?c.slice(c.length+n,c.length):c.slice(0,n)),a.push(...c)}return!r&&a.length==0&&o.push(As(t)),a}},et=class i{constructor(e,t,n,s){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=s,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new i(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=dr,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,n]of this._globalTimelineStyles)this._backFill.set(t,n||Z),this._currentKeyframe.set(t,Z);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,n,s){t&&this._previousKeyframe.set("easing",t);let r=s&&s.params||{},o=gr(e,this._globalTimelineStyles);for(let[a,l]of o){let c=Ae(l,r,n);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Z),this._updateStyle(a,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,n)=>{let s=this._styleSummary.get(n);(!s||t.time>s.time)&&this._updateStyle(n,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,n=this._keyframes.size===1&&this.duration===0,s=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((d,u)=>{d===ze?e.add(u):d===Z&&t.add(u)}),n||c.set("offset",l/this.duration),s.push(c)});let r=[...e.values()],o=[...t.values()];if(n){let a=s[0],l=new Map(a);a.set("offset",0),l.set("offset",1),s=[a,l]}return en(this.element,s,r,o,this.duration,this.startTime,this.easing,!1)}},qt=class extends et{constructor(e,t,n,s,r,o,a=!1){super(e,t,o.delay),this.keyframes=n,this.preStyleProps=s,this.postStyleProps=r,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:n,easing:s}=this.timings;if(this._stretchStartingKeyframe&&t){let r=[],o=n+t,a=t/o,l=new Map(e[0]);l.set("offset",0),r.push(l);let c=new Map(e[0]);c.set("offset",di(a)),r.push(c);let d=e.length-1;for(let u=1;u<=d;u++){let b=new Map(e[u]),_=b.get("offset"),p=t+_*n;b.set("offset",di(p/o)),r.push(b)}n=o,t=0,s="",e=r}return en(this.element,e,this.preStyleProps,this.postStyleProps,n,t,s,!0)}};function di(i,e=3){let t=Math.pow(10,e-1);return Math.round(i*t)/t}function gr(i,e){let t=new Map,n;return i.forEach(s=>{if(s==="*"){n??=e.keys();for(let r of n)t.set(r,Z)}else for(let[r,o]of s)t.set(r,o)}),t}function hi(i,e,t,n,s,r,o,a,l,c,d,u,b){return{type:0,element:i,triggerName:e,isRemovalTransition:s,fromState:t,fromStyles:r,toState:n,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:u,errors:b}}var Mt={},tt=class{constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}match(e,t,n,s){return yr(this.ast.matchers,e,t,n,s)}buildStyles(e,t,n){let s=this._stateStyles.get("*");return e!==void 0&&(s=this._stateStyles.get(e?.toString())||s),s?s.buildStyles(t,n):new Map}build(e,t,n,s,r,o,a,l,c,d){let u=[],b=this.ast.options&&this.ast.options.params||Mt,_=a&&a.params||Mt,p=this.buildStyles(n,_,u),g=l&&l.params||Mt,T=this.buildStyles(s,g,u),M=new Set,A=new Map,L=new Map,N=s==="void",_e={params:Mi(g,b),delay:this.ast.options?.delay},Y=d?[]:Pi(e,t,this.ast.animation,r,o,p,T,_e,c,u),x=0;return Y.forEach(B=>{x=Math.max(B.duration+B.delay,x)}),u.length?hi(t,this._triggerName,n,s,N,p,T,[],[],A,L,x,u):(Y.forEach(B=>{let ue=B.element,be=$(A,ue,new Set);B.preStyleProps.forEach(de=>be.add(de));let nn=$(L,ue,new Set);B.postStyleProps.forEach(de=>nn.add(de)),ue!==t&&M.add(ue)}),hi(t,this._triggerName,n,s,N,p,T,Y,[...M.values()],A,L,x))}};function yr(i,e,t,n,s){return i.some(r=>r(e,t,n,s))}function Mi(i,e){let t=Re({},e);return Object.entries(i).forEach(([n,s])=>{s!=null&&(t[n]=s)}),t}var Kt=class{constructor(e,t,n){this.styles=e,this.defaultParams=t,this.normalizer=n}buildStyles(e,t){let n=new Map,s=Mi(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((o,a)=>{o&&(o=Ae(o,s,t));let l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),n.set(a,o)})}),n}};function _r(i,e,t){return new $t(i,e,t)}var $t=class{constructor(e,t,n){this.name=e,this.ast=t,this._normalizer=n,this.transitionFactories=[],this.states=new Map,t.states.forEach(s=>{let r=s.options&&s.options.params||{};this.states.set(s.name,new Kt(s.style,r,n))}),pi(this.states,"true","1"),pi(this.states,"false","0"),t.transitions.forEach(s=>{this.transitionFactories.push(new tt(e,s,this.states))}),this.fallbackTransition=br(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,s){return this.transitionFactories.find(o=>o.match(e,t,n,s))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}};function br(i,e,t){let n=[(o,a)=>!0],s={type:v.Sequence,steps:[],options:null},r={type:v.Transition,animation:s,matchers:n,options:null,queryCount:0,depCount:0};return new tt(i,r,e)}function pi(i,e,t){i.has(e)?i.has(t)||i.set(t,i.get(e)):i.has(t)&&i.set(e,i.get(t))}var vr=new De,jt=class{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){let n=[],s=[],r=wi(this._driver,t,n,s);if(n.length)throw Rs(n);s.length&&void 0,this._animations.set(e,r)}_buildPlayer(e,t,n){let s=e.element,r=bi(this._normalizer,e.keyframes,t,n);return this._driver.animate(s,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,n={}){let s=[],r=this._animations.get(e),o,a=new Map;if(r?(o=Pi(this._driver,t,r,Ei,Ot,new Map,new Map,n,vr,s),o.forEach(d=>{let u=$(a,d.element,new Map);d.postStyleProps.forEach(b=>u.set(b,null))})):(s.push(Fs()),o=[]),s.length)throw Ls(s);a.forEach((d,u)=>{d.forEach((b,_)=>{d.set(_,this._driver.computeStyle(u,_,Z))})});let l=o.map(d=>{let u=a.get(d.element);return this._buildPlayer(d,new Map,u)}),c=ce(l);return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw xs(e);return t}listen(e,t,n,s){let r=Gt(t,"","","");return Wt(this._getPlayer(e),n,r,s),()=>{}}command(e,t,n,s){if(n=="register"){this.register(e,s[0]);return}if(n=="create"){let o=s[0]||{};this.create(e,t,o);return}let r=this._getPlayer(e);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(e);break}}},fi="ng-animate-queued",Sr=".ng-animate-queued",At="ng-animate-disabled",kr=".ng-animate-disabled",Er="ng-star-inserted",Cr=".ng-star-inserted",Tr=[],Ai={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},wr={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},G="__ng_removed",Ne=class{get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let n=e&&e.hasOwnProperty("value"),s=n?e.value:e;if(this.value=Mr(s),n){let r=e,{value:o}=r,a=an(r,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let n=this.options.params;Object.keys(t).forEach(s=>{n[s]==null&&(n[s]=t[s])})}}},Me="void",Dt=new Ne(Me),Ht=class{constructor(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,H(t,this._hostClassName)}listen(e,t,n,s){if(!this._triggers.has(t))throw Bs(n,t);if(n==null||n.length==0)throw zs(t);if(!Ar(n))throw qs(n,t);let r=$(this._elementListeners,e,[]),o={name:t,phase:n,callback:s};r.push(o);let a=$(this._engine.statesByElement,e,new Map);return a.has(t)||(H(e,He),H(e,He+"-"+t),a.set(t,Dt)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(o);l>=0&&r.splice(l,1),this._triggers.has(t)||a.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw Ks(e);return t}trigger(e,t,n,s=!0){let r=this._getTrigger(t),o=new Oe(this.id,t,e),a=this._engine.statesByElement.get(e);a||(H(e,He),H(e,He+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t),c=new Ne(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=Dt),!(c.value===Me)&&l.value===c.value){if(!Or(l.params,c.params)){let g=[],T=r.matchStyles(l.value,l.params,g),M=r.matchStyles(c.value,c.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{me(e,T),ee(e,M)})}return}let b=$(this._engine.playersByElement,e,[]);b.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy()});let _=r.matchTransition(l.value,c.value,e,c.params),p=!1;if(!_){if(!s)return;_=r.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:_,fromState:l,toState:c,player:o,isFallbackTransition:p}),p||(H(e,fi),o.onStart(()=>{ke(e,fi)})),o.onDone(()=>{let g=this.players.indexOf(o);g>=0&&this.players.splice(g,1);let T=this._engine.playersByElement.get(e);if(T){let M=T.indexOf(o);M>=0&&T.splice(M,1)}}),this.players.push(o),b.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(s=>s.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(n=>n.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let n=this._engine.driver.query(e,Ge,!0);n.forEach(s=>{if(s[G])return;let r=this._engine.fetchNamespacesByElement(s);r.size?r.forEach(o=>o.triggerLeaveAnimation(s,t,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(e,t,n,s){let r=this._engine.statesByElement.get(e),o=new Map;if(r){let a=[];if(r.forEach((l,c)=>{if(o.set(c,l.value),this._triggers.has(c)){let d=this.trigger(e,c,Me,s);d&&a.push(d)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),n&&ce(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),n=this._engine.statesByElement.get(e);if(t&&n){let s=new Set;t.forEach(r=>{let o=r.name;if(s.has(o))return;s.add(o);let l=this._triggers.get(o).fallbackTransition,c=n.get(o)||Dt,d=new Ne(Me),u=new Oe(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(e,t){let n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let s=!1;if(n.totalAnimations){let r=n.players.length?n.playersByQueriedElement.get(e):[];if(r&&r.length)s=!0;else{let o=e;for(;o=o.parentNode;)if(n.statesByElement.get(o)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(e),s)n.markElementAsRemoved(this.id,e,!1,t);else{let r=e[G];(!r||r===Ai)&&(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t))}}insertNode(e,t){H(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(n=>{let s=n.player;if(s.destroyed)return;let r=n.element,o=this._elementListeners.get(r);o&&o.forEach(a=>{if(a.name==n.triggerName){let l=Gt(r,n.triggerName,n.fromState.value,n.toState.value);l._data=e,Wt(n.player,a.phase,l,a.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):t.push(n)}),this._queue=[],t.sort((n,s)=>{let r=n.transition.ast.depCount,o=s.transition.ast.depCount;return r==0||o==0?r-o:this._engine.driver.containsElement(n.element,s.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Vt=class{_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,n){this.bodyNode=e,this.driver=t,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(s,r)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(n=>{n.queued&&e.push(n)})}),e}createNamespace(e,t){let n=new Ht(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){let n=this._namespaceList,s=this.namespacesByHostElement;if(n.length-1>=0){let o=!1,a=this.driver.getParentElement(t);for(;a;){let l=s.get(a);if(l){let c=n.indexOf(l);n.splice(c+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}o||n.unshift(e)}else n.push(e);return s.set(t,e),e}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let s=this._namespaceLookup[e];s&&s.register(t,n)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(e);this.namespacesByHostElement.delete(n.hostElement);let s=this._namespaceList.indexOf(n);s>=0&&this._namespaceList.splice(s,1),n.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,n=this.statesByElement.get(e);if(n){for(let s of n.values())if(s.namespaceId){let r=this._fetchNamespace(s.namespaceId);r&&t.add(r)}}return t}trigger(e,t,n,s){if(Qe(t)){let r=this._fetchNamespace(e);if(r)return r.trigger(t,n,s),!0}return!1}insertNode(e,t,n,s){if(!Qe(t))return;let r=t[G];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){let o=this._fetchNamespace(e);o&&o.insertNode(t,n)}s&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),H(e,At)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),ke(e,At))}removeNode(e,t,n){if(Qe(t)){let s=e?this._fetchNamespace(e):null;s?s.removeNode(t,n):this.markElementAsRemoved(e,t,!1,n);let r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,n)}else this._onRemovalComplete(t,n)}markElementAsRemoved(e,t,n,s,r){this.collectedLeaveElements.push(t),t[G]={namespaceId:e,setForRemoval:s,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:r}}listen(e,t,n,s,r){return Qe(t)?this._fetchNamespace(e).listen(t,n,s,r):()=>{}}_buildInstruction(e,t,n,s,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,s,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,Ge,!0);t.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,It,!0),t.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return ce(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[G];if(t&&t.setForRemoval){if(e[G]=Ai,t.namespaceId){this.destroyInnerAnimations(e);let n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(At)&&this.markElementAsDisabled(e,!1),this.driver.query(e,kr,!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,s)=>this._balanceNamespaceList(n,s)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++){let s=this.collectedEnterElements[n];H(s,Er)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let n=[];try{t=this._flushAnimations(n,e)}finally{for(let s=0;s<n.length;s++)n[s]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++){let s=this.collectedLeaveElements[n];this.processLeaveNode(s)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(n=>n()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],t.length?ce(t).onDone(()=>{n.forEach(s=>s())}):n.forEach(s=>s())}}reportError(e){throw $s(e)}_flushAnimations(e,t){let n=new De,s=[],r=new Map,o=[],a=new Map,l=new Map,c=new Map,d=new Set;this.disabledNodes.forEach(h=>{d.add(h);let f=this.driver.query(h,Sr,!0);for(let m=0;m<f.length;m++)d.add(f[m])});let u=this.bodyNode,b=Array.from(this.statesByElement.keys()),_=yi(b,this.collectedEnterElements),p=new Map,g=0;_.forEach((h,f)=>{let m=Ei+g++;p.set(f,m),h.forEach(S=>H(S,m))});let T=[],M=new Set,A=new Set;for(let h=0;h<this.collectedLeaveElements.length;h++){let f=this.collectedLeaveElements[h],m=f[G];m&&m.setForRemoval&&(T.push(f),M.add(f),m.hasAnimation?this.driver.query(f,Cr,!0).forEach(S=>M.add(S)):A.add(f))}let L=new Map,N=yi(b,Array.from(M));N.forEach((h,f)=>{let m=Ot+g++;L.set(f,m),h.forEach(S=>H(S,m))}),e.push(()=>{_.forEach((h,f)=>{let m=p.get(f);h.forEach(S=>ke(S,m))}),N.forEach((h,f)=>{let m=L.get(f);h.forEach(S=>ke(S,m))}),T.forEach(h=>{this.processLeaveNode(h)})});let _e=[],Y=[];for(let h=this._namespaceList.length-1;h>=0;h--)this._namespaceList[h].drainQueuedTransitions(t).forEach(m=>{let S=m.player,D=m.element;if(_e.push(S),this.collectedEnterElements.length){let I=D[G];if(I&&I.setForMove){if(I.previousTriggersValues&&I.previousTriggersValues.has(m.triggerName)){let he=I.previousTriggersValues.get(m.triggerName),j=this.statesByElement.get(m.element);if(j&&j.has(m.triggerName)){let Ie=j.get(m.triggerName);Ie.value=he,j.set(m.triggerName,Ie)}}S.destroy();return}}let X=!u||!this.driver.containsElement(u,D),q=L.get(D),ie=p.get(D),w=this._buildInstruction(m,n,ie,q,X);if(w.errors&&w.errors.length){Y.push(w);return}if(X){S.onStart(()=>me(D,w.fromStyles)),S.onDestroy(()=>ee(D,w.toStyles)),s.push(S);return}if(m.isFallbackTransition){S.onStart(()=>me(D,w.fromStyles)),S.onDestroy(()=>ee(D,w.toStyles)),s.push(S);return}let on=[];w.timelines.forEach(I=>{I.stretchStartingKeyframe=!0,this.disabledNodes.has(I.element)||on.push(I)}),w.timelines=on,n.append(D,w.timelines);let zi={instruction:w,player:S,element:D};o.push(zi),w.queriedElements.forEach(I=>$(a,I,[]).push(S)),w.preStyleProps.forEach((I,he)=>{if(I.size){let j=l.get(he);j||l.set(he,j=new Set),I.forEach((Ie,at)=>j.add(at))}}),w.postStyleProps.forEach((I,he)=>{let j=c.get(he);j||c.set(he,j=new Set),I.forEach((Ie,at)=>j.add(at))})});if(Y.length){let h=[];Y.forEach(f=>{h.push(js(f.triggerName,f.errors))}),_e.forEach(f=>f.destroy()),this.reportError(h)}let x=new Map,B=new Map;o.forEach(h=>{let f=h.element;n.has(f)&&(B.set(f,f),this._beforeAnimationBuild(h.player.namespaceId,h.instruction,x))}),s.forEach(h=>{let f=h.element;this._getPreviousPlayers(f,!1,h.namespaceId,h.triggerName,null).forEach(S=>{$(x,f,[]).push(S),S.destroy()})});let ue=T.filter(h=>_i(h,l,c)),be=new Map;gi(be,this.driver,A,c,Z).forEach(h=>{_i(h,l,c)&&ue.push(h)});let de=new Map;_.forEach((h,f)=>{gi(de,this.driver,new Set(h),l,ze)}),ue.forEach(h=>{let f=be.get(h),m=de.get(h);be.set(h,new Map([...f?.entries()??[],...m?.entries()??[]]))});let ot=[],sn=[],rn={};o.forEach(h=>{let{element:f,player:m,instruction:S}=h;if(n.has(f)){if(d.has(f)){m.onDestroy(()=>ee(f,S.toStyles)),m.disabled=!0,m.overrideTotalTime(S.totalTime),s.push(m);return}let D=rn;if(B.size>1){let q=f,ie=[];for(;q=q.parentNode;){let w=B.get(q);if(w){D=w;break}ie.push(q)}ie.forEach(w=>B.set(w,D))}let X=this._buildAnimation(m.namespaceId,S,x,r,de,be);if(m.setRealPlayer(X),D===rn)ot.push(m);else{let q=this.playersByElement.get(D);q&&q.length&&(m.parentPlayer=ce(q)),s.push(m)}}else me(f,S.fromStyles),m.onDestroy(()=>ee(f,S.toStyles)),sn.push(m),d.has(f)&&s.push(m)}),sn.forEach(h=>{let f=r.get(h.element);if(f&&f.length){let m=ce(f);h.setRealPlayer(m)}}),s.forEach(h=>{h.parentPlayer?h.syncPlayerEvents(h.parentPlayer):h.destroy()});for(let h=0;h<T.length;h++){let f=T[h],m=f[G];if(ke(f,Ot),m&&m.hasAnimation)continue;let S=[];if(a.size){let X=a.get(f);X&&X.length&&S.push(...X);let q=this.driver.query(f,It,!0);for(let ie=0;ie<q.length;ie++){let w=a.get(q[ie]);w&&w.length&&S.push(...w)}}let D=S.filter(X=>!X.destroyed);D.length?Dr(this,f,D):this.processLeaveNode(f)}return T.length=0,ot.forEach(h=>{this.players.push(h),h.onDone(()=>{h.destroy();let f=this.players.indexOf(h);this.players.splice(f,1)}),h.play()}),ot}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,n,s,r){let o=[];if(t){let a=this.playersByQueriedElement.get(e);a&&(o=a)}else{let a=this.playersByElement.get(e);if(a){let l=!r||r==Me;a.forEach(c=>{c.queued||!l&&c.triggerName!=s||o.push(c)})}}return(n||s)&&(o=o.filter(a=>!(n&&n!=a.namespaceId||s&&s!=a.triggerName))),o}_beforeAnimationBuild(e,t,n){let s=t.triggerName,r=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:s;for(let l of t.timelines){let c=l.element,d=c!==r,u=$(n,c,[]);this._getPreviousPlayers(c,d,o,a,t.toState).forEach(_=>{let p=_.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),_.destroy(),u.push(_)})}me(r,t.fromStyles)}_buildAnimation(e,t,n,s,r,o){let a=t.triggerName,l=t.element,c=[],d=new Set,u=new Set,b=t.timelines.map(p=>{let g=p.element;d.add(g);let T=g[G];if(T&&T.removedBeforeQueried)return new Se(p.duration,p.delay);let M=g!==l,A=Nr((n.get(g)||Tr).map(x=>x.getRealPlayer())).filter(x=>{let B=x;return B.element?B.element===g:!1}),L=r.get(g),N=o.get(g),_e=bi(this._normalizer,p.keyframes,L,N),Y=this._buildPlayer(p,_e,A);if(p.subTimeline&&s&&u.add(g),M){let x=new Oe(e,a,g);x.setRealPlayer(Y),c.push(x)}return Y});c.forEach(p=>{$(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>Pr(this.playersByQueriedElement,p.element,p))}),d.forEach(p=>H(p,li));let _=ce(b);return _.onDestroy(()=>{d.forEach(p=>ke(p,li)),ee(l,t.toStyles)}),u.forEach(p=>{$(s,p,[]).push(_)}),_}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new Se(e.duration,e.delay)}},Oe=class{constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new Se,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,n)=>{t.forEach(s=>Wt(e,n,void 0,s))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){$(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function Pr(i,e,t){let n=i.get(e);if(n){if(n.length){let s=n.indexOf(t);n.splice(s,1)}n.length==0&&i.delete(e)}return n}function Mr(i){return i??null}function Qe(i){return i&&i.nodeType===1}function Ar(i){return i=="start"||i=="done"}function mi(i,e){let t=i.style.display;return i.style.display=e??"none",t}function gi(i,e,t,n,s){let r=[];t.forEach(l=>r.push(mi(l)));let o=[];n.forEach((l,c)=>{let d=new Map;l.forEach(u=>{let b=e.computeStyle(c,u,s);d.set(u,b),(!b||b.length==0)&&(c[G]=wr,o.push(c))}),i.set(c,d)});let a=0;return t.forEach(l=>mi(l,r[a++])),o}function yi(i,e){let t=new Map;if(i.forEach(a=>t.set(a,[])),e.length==0)return t;let n=1,s=new Set(e),r=new Map;function o(a){if(!a)return n;let l=r.get(a);if(l)return l;let c=a.parentNode;return t.has(c)?l=c:s.has(c)?l=n:l=o(c),r.set(a,l),l}return e.forEach(a=>{let l=o(a);l!==n&&t.get(l).push(a)}),t}function H(i,e){i.classList?.add(e)}function ke(i,e){i.classList?.remove(e)}function Dr(i,e,t){ce(t).onDone(()=>i.processLeaveNode(e))}function Nr(i){let e=[];return Di(i,e),e}function Di(i,e){for(let t=0;t<i.length;t++){let n=i[t];n instanceof Et?Di(n.players,e):e.push(n)}}function Or(i,e){let t=Object.keys(i),n=Object.keys(e);if(t.length!=n.length)return!1;for(let s=0;s<t.length;s++){let r=t[s];if(!e.hasOwnProperty(r)||i[r]!==e[r])return!1}return!0}function _i(i,e,t){let n=t.get(i);if(!n)return!1;let s=e.get(i);return s?n.forEach(r=>s.add(r)):e.set(i,n),t.delete(i),!0}var Ce=class{constructor(e,t,n){this._driver=t,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(s,r)=>{},this._transitionEngine=new Vt(e.body,t,n),this._timelineEngine=new jt(e.body,t,n),this._transitionEngine.onRemovalComplete=(s,r)=>this.onRemovalComplete(s,r)}registerTrigger(e,t,n,s,r){let o=e+"-"+s,a=this._triggerCache[o];if(!a){let l=[],c=[],d=wi(this._driver,r,l,c);if(l.length)throw Os(s,l);c.length&&void 0,a=_r(s,d,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,s,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,n,s){this._transitionEngine.insertNode(e,t,n,s)}onRemove(e,t,n){this._transitionEngine.removeNode(e,t,n)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,n,s){if(n.charAt(0)=="@"){let[r,o]=oi(n),a=s;this._timelineEngine.command(r,t,o,a)}else this._transitionEngine.trigger(e,t,n,s)}listen(e,t,n,s,r){if(n.charAt(0)=="@"){let[o,a]=oi(n);return this._timelineEngine.listen(o,t,a,r)}return this._transitionEngine.listen(e,t,n,s,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function Ir(i,e){let t=null,n=null;return Array.isArray(e)&&e.length?(t=Nt(e[0]),e.length>1&&(n=Nt(e[e.length-1]))):e instanceof Map&&(t=Nt(e)),t||n?new Ut(i,t,n):null}var Ee=class Ee{constructor(e,t,n){this._element=e,this._startStyles=t,this._endStyles=n,this._state=0;let s=Ee.initialStylesByElement.get(e);s||Ee.initialStylesByElement.set(e,s=new Map),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&ee(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ee(this._element,this._initialStyles),this._endStyles&&(ee(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Ee.initialStylesByElement.delete(this._element),this._startStyles&&(me(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(me(this._element,this._endStyles),this._endStyles=null),ee(this._element,this._initialStyles),this._state=3)}};Ee.initialStylesByElement=new WeakMap;var Ut=Ee;function Nt(i){let e=null;return i.forEach((t,n)=>{Rr(n)&&(e=e||new Map,e.set(n,t))}),e}function Rr(i){return i==="display"||i==="position"}var nt=class{constructor(e,t,n,s){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(n=>{t.push(Object.fromEntries(n))}),t}_triggerWebAnimation(e,t,n){return e.animate(this._convertKeyframesToObject(t),n)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,s)=>{s!=="offset"&&e.set(s,this._finished?n:Zt(this.element,s))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0}},it=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return vi(e,t)}getParentElement(e){return Yt(e)}query(e,t,n){return Si(e,t,n)}computeStyle(e,t,n){return Zt(e,t)}animate(e,t,n,s,r,o=[]){let a=s==0?"both":"forwards",l={duration:n,delay:s,fill:a};r&&(l.easing=r);let c=new Map,d=o.filter(_=>_ instanceof nt);er(n,s)&&d.forEach(_=>{_.currentSnapshot.forEach((p,g)=>c.set(g,p))});let u=Xs(t).map(_=>new Map(_));u=tr(e,u,c);let b=Ir(e,u);return new nt(e,u,l,b)}};var We="@",Ni="@.disabled",st=class{constructor(e,t,n,s){this.namespaceId=e,this.delegate=t,this.engine=n,this._onDestroy=s,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,n,s=!0){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,s)}removeChild(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,n,s){this.delegate.setAttribute(e,t,n,s)}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,n,s){this.delegate.setStyle(e,t,n,s)}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){t.charAt(0)==We&&t==Ni?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,n){return this.delegate.listen(e,t,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},Qt=class extends st{constructor(e,t,n,s,r){super(t,n,s,r),this.factory=e,this.namespaceId=t}setProperty(e,t,n){t.charAt(0)==We?t.charAt(1)=="."&&t==Ni?(n=n===void 0?!0:!!n,this.disableAnimations(e,n)):this.engine.process(this.namespaceId,e,t.slice(1),n):this.delegate.setProperty(e,t,n)}listen(e,t,n){if(t.charAt(0)==We){let s=Fr(e),r=t.slice(1),o="";return r.charAt(0)!=We&&([r,o]=Lr(r)),this.engine.listen(this.namespaceId,s,r,o,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,n,a)})}return this.delegate.listen(e,t,n)}};function Fr(i){switch(i){case"body":return document.body;case"document":return document;case"window":return window;default:return i}}function Lr(i){let e=i.indexOf("."),t=i.substring(0,e),n=i.slice(e+1);return[t,n]}var rt=class{constructor(e,t,n){this.delegate=e,this.engine=t,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,t.onRemovalComplete=(s,r)=>{let o=r?.parentNode(s);o&&r.removeChild(o,s)}}createRenderer(e,t){let n="",s=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let c=this._rendererCache,d=c.get(s);if(!d){let u=()=>c.delete(s);d=new st(n,s,this.engine,u),c.set(s,d)}return d}let r=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);let a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(r,o,e,c.name,c)};return t.data.animation.forEach(a),new Qt(this,o,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,n){if(e>=0&&e<this._microtaskId){this._zone.run(()=>t(n));return}let s=this._animationCallbacksBuffer;s.length==0&&queueMicrotask(()=>{this._zone.run(()=>{s.forEach(r=>{let[o,a]=r;o(a)}),this._animationCallbacksBuffer=[]})}),s.push([t,n])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var Br=(()=>{let e=class e extends Ce{constructor(n,s,r){super(n,s,r)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(s){return new(s||e)(U(An),U(ge),U(ye))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})();function zr(){return new Xe}function qr(i,e,t){return new rt(i,e,t)}var Ii=[{provide:ye,useFactory:zr},{provide:Ce,useClass:Br},{provide:_n,useFactory:qr,deps:[Fn,Ce,bn]}],Oi=[{provide:ge,useFactory:()=>new it},{provide:gt,useValue:"BrowserAnimations"},...Ii],Kr=[{provide:ge,useClass:Xt},{provide:gt,useValue:"NoopAnimations"},...Ii],Ri=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:n.disableAnimations?Kr:Oi}}};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=re({type:e}),e.\u0275inj=se({providers:Oi,imports:[Be]});let i=e;return i})();var Fi=(()=>{let e=class e{constructor(n){this._router=n}intercept(n,s){let r=JSON.parse(window.localStorage.getItem("user")),o=new Date;if(r!=null){let a=new Date(r.Token.expiredAt);o<a?n=n.clone({setHeaders:{"Content-Type":"application/json",Authorization:`Bearer ${r.Token.access_token}`}}):n=n.clone({setHeaders:{"Content-Type":"application/json"}})}else n=n.clone({setHeaders:{"Content-Type":"application/json"}});return s.handle(n)}};e.\u0275fac=function(s){return new(s||e)(U(Ke))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})();var Li=(()=>{let e=class e{constructor(n,s){this.authService=n,this.toastr=s}intercept(n,s){return s.handle(n).pipe(hn(r=>(this.handlerError(r),ln(()=>r))))}handlerError(n){if(!this.unauthorizedErrorHandling(n)&&!Array.isArray(n?.error?.Message)){let r=this.errorMessageHandling(n);this.toastr.error(r.message!=""?r.message:"An unknown error has occured!",r.header,{enableHtml:!0})}}unauthorizedErrorHandling(n){let s=!1;if(n.status==401){let r=localStorage.getItem("currentUser");r&&(JSON.parse(r)?.Token?.access_token?this.tokenExpiredErrorHandling(n):this.toastr.error("Your session has expired. Please login again.","Session Expired").onShown.subscribe(()=>this.authService.logout()),s=!0)}return s}tokenExpiredErrorHandling(n){if(this.authService.isActiveToken()){let s=this.errorMessageHandling(n);this.toastr.error(s.message,s.header)}else this.toastr.error("Your session has expired. Please login again.","Session Expired").onShown.subscribe(()=>this.authService.logout())}errorMessageHandling(n){let s="API Error",r="Exception Message";return n.error?(s="API Error - "+n.status,n.error.Message&&(n.error.Message.indexOf("Message")!=-1?r=JSON.parse(n.error.Message).Message:r=n.error.Message)):n.message&&(s="API Error - "+n.name,r=n.message),{header:s,message:r}}};e.\u0275fac=function(s){return new(s||e)(U(je),U(qe))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var jr=["custom-toast-component",""];function Hr(i,e){if(i&1){let t=_t();R(0,"a",11),bt("click",function(){ft(t);let s=O(2);return mt(s.remove())}),Te(1," x "),F()}}function Vr(i,e){if(i&1&&(R(0,"div",6)(1,"div",7)(2,"div",8)(3,"h4"),Te(4),F()()(),R(5,"div",9),ve(6,Hr,2,0,"a",10),F()()),i&2){let t=O();C("display",t.state().value==="inactive"?"none":""),y(2),Fe(t.options.titleClass),yt("aria-label",t.title),y(2),Sn(t.title),y(2),E("ngIf",t.options.closeButton)}}function Ur(i,e){if(i&1&&P(0,"div",12),i&2){let t=O();Fe(t.options.messageClass),E("innerHTML",t.message,yn)}}function Qr(i,e){if(i&1&&(R(0,"div",13),Te(1),F()),i&2){let t=O();Fe(t.options.messageClass),yt("aria-label",t.message),y(),kn(" ",t.message," ")}}function Wr(i,e){if(i&1){let t=_t();R(0,"a",11),bt("click",function(){ft(t);let s=O();return mt(s.remove())}),Te(1," x "),F()}}function Gr(i,e){if(i&1&&(R(0,"div"),P(1,"div",14),F()),i&2){let t=O();y(),C("width",t.width+"%")}}var xi=(()=>{let e=class e extends $n{constructor(n,s){super(n,s),this.toastrService=n,this.toastPackage=s}ngOnInit(){}action(n){return n.stopPropagation(),this.toastPackage.triggerAction(),!1}};e.\u0275fac=function(s){return new(s||e)(J(qe),J(Kn))},e.\u0275cmp=z({type:e,selectors:[["","custom-toast-component",""]],standalone:!0,features:[Q,En],attrs:jr,decls:6,vars:5,consts:[[1,"toast-case"],["class","row toast-header",3,"display",4,"ngIf"],["class","row toast-body text-start","role","alert","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["class","row toast-body text-start","role","alert","aria-live","polite",3,"class",4,"ngIf"],["class","btn toast-close-button btn-sm ",3,"click",4,"ngIf"],[4,"ngIf"],[1,"row","toast-header"],[1,"col-9","px-0","text-start"],[1,"my-4"],[1,"col-auto","mt-5","pe-0"],["class","btn toast-close-button btn-sm",3,"click",4,"ngIf"],[1,"btn","toast-close-button","btn-sm",3,"click"],["role","alert","aria-live","polite",1,"row","toast-body","text-start",3,"innerHTML"],["role","alert","aria-live","polite",1,"row","toast-body","text-start"],[1,"toast-progress"]],template:function(s,r){s&1&&(R(0,"div",0),ve(1,Vr,7,7,"div",1)(2,Ur,1,3,"div",2)(3,Qr,2,4,"div",3)(4,Wr,2,0,"a",4)(5,Gr,2,2,"div",5),F()),s&2&&(y(),E("ngIf",r.title),y(),E("ngIf",r.message&&r.options.enableHtml),y(),E("ngIf",r.message&&!r.options.enableHtml),y(),E("ngIf",r.options.closeButton&&r.title==null),y(),E("ngIf",r.options.progressBar))},dependencies:[xe,Le],styles:["[_nghost-%COMP%]{background-color:#fff;position:relative;overflow:hidden;margin:0 0 6px;width:300px;border-radius:3px;color:#141414;pointer-events:all;cursor:pointer}.toast-success[_nghost-%COMP%]{border:1.8px solid rgb(81,163,81)}.toast-info[_nghost-%COMP%]{border:1.8px solid rgb(47,150,180)}.toast-error[_nghost-%COMP%]{border:1.8px solid rgb(189,54,47)}.toast-warning[_nghost-%COMP%]{border:1.8px solid rgb(248,148,6)}.toast-case[_ngcontent-%COMP%]{margin-left:10px}.toast-header[_ngcontent-%COMP%]{background-clip:padding-box;border-bottom:1px solid gainsboro;border-width:1px;padding-bottom:0rem;padding-top:0rem;padding-right:0}.toast-title[_ngcontent-%COMP%]{color:#000}.toast-body[_ngcontent-%COMP%]{padding:10px 15px 10px 0}.notitle[_ngcontent-%COMP%]{margin-bottom:-1rem}.toast-close-button[_ngcontent-%COMP%]{color:#dcdcdc!important}"],data:{animation:[Bn("flyInOut",[qn("inactive",W({opacity:0})),kt("inactive => active",vt("400ms ease-out",St([W({transform:"translate3d(100%, 0, 0) skewX(-30deg)",opacity:0}),W({transform:"skewX(20deg)",opacity:1}),W({transform:"skewX(-5deg)",opacity:1}),W({transform:"none",opacity:1})]))),kt("active => removed",vt("400ms ease-out",St([W({opacity:1}),W({transform:"translate3d(100%, 0, 0) skewX(30deg)",opacity:0})])))])]}});let i=e;return i})();var Yr={name:"MarketplaceDB",version:1,objectStoresMeta:[{store:"Categories",storeConfig:{keyPath:null,autoIncrement:!1},storeSchema:[]}]},Bi=(()=>{let e=class e{};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=re({type:e,bootstrap:[si]}),e.\u0275inj=se({providers:[{provide:we,useClass:Fi,multi:!0},{provide:Zn,useValue:{subscriptSizing:"dynamic"}},Hn,Vn,{provide:Mn,useFactory:n=>function(){n.loadPermissions()},deps:[je],multi:!0},{provide:we,useClass:Li,multi:!0},In(Rn())],imports:[Be,ii,Ri,jn.forRoot({toastComponent:xi,positionClass:"toast-bottom-right",closeButton:!0}),Jn.forRoot(Yr),ni.forRoot(),Gn.initializeApp($e.firebaseConfig),Yn,Xn.forRoot()]});let i=e;return i})();$e.production&&void 0;Ln().bootstrapModule(Bi).catch(i=>console.error(i));
|
|
1
|
+
import{e as Zn}from"./chunk-KWFES5F7.js";import{a as Vn,b as $e,c as Gn,d as Yn,e as Jn,g as je}from"./chunk-MIZ2DGVO.js";import{a as Kn,b as qe,c as $n,d as jn,e as Hn}from"./chunk-DSF55IXM.js";import"./chunk-KCDL7SWP.js";import"./chunk-EKCNJX26.js";import{f as Xn}from"./chunk-QPRFFPO5.js";import{$ as V,$a as E,A as un,B as dt,C as dn,Cc as xe,Da as gt,E as hn,G as ht,Ga as yn,Ia as y,Ib as Te,Ic as we,Ja as J,Jb as Sn,Jc as In,K as pn,Kb as kn,Kc as Rn,Lc as Fn,M as fn,Mc as Ln,Na as _n,Nc as Be,Oc as xn,Pa as bn,Qb as En,Qc as v,Rb as Cn,Rc as Z,Sb as Tn,Sc as Bn,T as pt,Tc as vt,Vc as zn,Wa as Q,Wc as W,X as mn,Xc as qn,Yc as St,Z as k,Za as ve,Zb as wn,Zc as kt,_a as yt,_b as Pn,aa as se,ab as C,ad as Se,bb as oe,bd as Et,ca as U,cd as ze,db as Fe,dd as Un,e as lt,ec as Mn,ed as Qn,fd as Wn,ga as z,gd as Ke,ha as re,ia as gn,jd as Ct,lb as R,mb as F,nb as P,o as ln,oa as ft,pa as mt,q as ct,qb as vn,qc as An,rb as _t,s as cn,sa as te,tc as Dn,ub as bt,vc as Le,wb as O,wc as Nn,y as ut,yc as On}from"./chunk-C3YE27TZ.js";import{a as Re,d as an}from"./chunk-GNOSNGXM.js";var Ki=i=>({"background-color":i});function $i(i,e){i&1&&vn(0)}function ji(i,e){if(i&1&&P(0,"sk-cube-grid",4),i&2){let t=O(2);E("backgroundColor",t.backgroundColor)}}function Hi(i,e){if(i&1&&P(0,"sk-chasing-dots",4),i&2){let t=O(2);E("backgroundColor",t.backgroundColor)}}function Vi(i,e){if(i&1&&P(0,"sk-double-bounce",4),i&2){let t=O(2);E("backgroundColor",t.backgroundColor)}}function Ui(i,e){if(i&1&&P(0,"sk-rotating-plane",4),i&2){let t=O(2);E("backgroundColor",t.backgroundColor)}}function Qi(i,e){if(i&1&&P(0,"sk-spinner-pulse",4),i&2){let t=O(2);E("backgroundColor",t.backgroundColor)}}function Wi(i,e){if(i&1&&P(0,"sk-three-bounce",4),i&2){let t=O(2);E("backgroundColor",t.backgroundColor)}}function Gi(i,e){if(i&1&&P(0,"sk-wandering-cubes",4),i&2){let t=O(2);E("backgroundColor",t.backgroundColor)}}function Yi(i,e){if(i&1&&P(0,"sk-wave",4),i&2){let t=O(2);E("backgroundColor",t.backgroundColor)}}function Xi(i,e){if(i&1&&(R(0,"div",1),ve(1,$i,1,0,"ng-container",2)(2,ji,1,1,"sk-cube-grid",3)(3,Hi,1,1,"sk-chasing-dots",3)(4,Vi,1,1,"sk-double-bounce",3)(5,Ui,1,1,"sk-rotating-plane",3)(6,Qi,1,1,"sk-spinner-pulse",3)(7,Wi,1,1,"sk-three-bounce",3)(8,Gi,1,1,"sk-wandering-cubes",3)(9,Yi,1,1,"sk-wave",3),F()),i&2){let t=O();C("opacity",t.opacity),oe("backdrop",t.backdrop),E("ngStyle",Tn(14,Ki,t.backdrop?t.backdropBackgroundColor:"transparent")),y(),E("ngComponentOutlet",t.entryComponent),y(),E("ngIf",t.spinner===t.spinkit.skCubeGrid),y(),E("ngIf",t.spinner===t.spinkit.skChasingDots),y(),E("ngIf",t.spinner===t.spinkit.skDoubleBounce),y(),E("ngIf",t.spinner===t.spinkit.skRotatingPlane),y(),E("ngIf",t.spinner===t.spinkit.skSpinnerPulse),y(),E("ngIf",t.spinner===t.spinkit.skThreeBounce),y(),E("ngIf",t.spinner===t.spinkit.skWanderingCubes),y(),E("ngIf",t.spinner===t.spinkit.skWave)}}var le=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=gn({type:i,inputs:{backgroundColor:"backgroundColor"}}),i})(),Ji=(()=>{class i extends le{}return i.\u0275fac=(()=>{let e;return function(n){return(e||(e=te(i)))(n||i)}})(),i.\u0275cmp=z({type:i,selectors:[["sk-chasing-dots"]],features:[Q],decls:3,vars:6,consts:[[1,"sk-chasing-dots"],[1,"sk-child","sk-dot1"],[1,"sk-child","sk-dot2"]],template:function(t,n){t&1&&(R(0,"div",0),P(1,"div",1)(2,"div",2),F()),t&2&&(oe("colored",!n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor))},styles:[".sk-chasing-dots[_ngcontent-%COMP%]{top:50%;margin:auto;width:40px;height:40px;position:relative;text-align:center;animation:_ngcontent-%COMP%_sk-chasingDotsRotate 2s infinite linear}.sk-chasing-dots[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:60%;height:60%;display:inline-block;position:absolute;top:0;border-radius:100%;animation:_ngcontent-%COMP%_sk-chasingDotsBounce 2s infinite ease-in-out}.sk-chasing-dots[_ngcontent-%COMP%] .sk-dot2[_ngcontent-%COMP%]{top:auto;bottom:0;animation-delay:-1s}@keyframes _ngcontent-%COMP%_sk-chasingDotsRotate{to{transform:rotate(360deg)}}@keyframes _ngcontent-%COMP%_sk-chasingDotsBounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}"]}),i})(),Zi=(()=>{class i extends le{}return i.\u0275fac=(()=>{let e;return function(n){return(e||(e=te(i)))(n||i)}})(),i.\u0275cmp=z({type:i,selectors:[["sk-cube-grid"]],features:[Q],decls:10,vars:20,consts:[[1,"sk-cube-grid"],[1,"sk-cube","sk-cube1"],[1,"sk-cube","sk-cube2"],[1,"sk-cube","sk-cube3"],[1,"sk-cube","sk-cube4"],[1,"sk-cube","sk-cube5"],[1,"sk-cube","sk-cube6"],[1,"sk-cube","sk-cube7"],[1,"sk-cube","sk-cube8"],[1,"sk-cube","sk-cube9"]],template:function(t,n){t&1&&(R(0,"div",0),P(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",6)(7,"div",7)(8,"div",8)(9,"div",9),F()),t&2&&(oe("colored",!n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor))},styles:[".sk-cube-grid[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube[_ngcontent-%COMP%]{width:33.33%;height:33.33%;float:left;animation:_ngcontent-%COMP%_sk-cubeGridScaleDelay 1.3s infinite ease-in-out}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube1[_ngcontent-%COMP%]{animation-delay:.2s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube2[_ngcontent-%COMP%]{animation-delay:.3s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube3[_ngcontent-%COMP%]{animation-delay:.4s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube4[_ngcontent-%COMP%]{animation-delay:.1s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube5[_ngcontent-%COMP%]{animation-delay:.2s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube6[_ngcontent-%COMP%]{animation-delay:.3s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube7[_ngcontent-%COMP%]{animation-delay:0s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube8[_ngcontent-%COMP%]{animation-delay:.1s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube9[_ngcontent-%COMP%]{animation-delay:.2s}@keyframes _ngcontent-%COMP%_sk-cubeGridScaleDelay{0%,70%,to{transform:scaleZ(1)}35%{transform:scale3D(0,0,1)}}"]}),i})(),es=(()=>{class i extends le{}return i.\u0275fac=(()=>{let e;return function(n){return(e||(e=te(i)))(n||i)}})(),i.\u0275cmp=z({type:i,selectors:[["sk-double-bounce"]],features:[Q],decls:3,vars:6,consts:[[1,"sk-double-bounce"],[1,"sk-child","sk-double-bounce1"],[1,"sk-child","sk-double-bounce2"]],template:function(t,n){t&1&&(R(0,"div",0),P(1,"div",1)(2,"div",2),F()),t&2&&(oe("colored",!n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor))},styles:[".sk-double-bounce[_ngcontent-%COMP%]{top:50%;width:40px;height:40px;position:relative;margin:auto}.sk-double-bounce[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:50%;background-color:#333;opacity:.6;position:absolute;top:0;left:0;animation:_ngcontent-%COMP%_sk-doubleBounce 2s infinite ease-in-out}.sk-double-bounce[_ngcontent-%COMP%] .sk-double-bounce2[_ngcontent-%COMP%]{animation-delay:-1s}@keyframes _ngcontent-%COMP%_sk-doubleBounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}"]}),i})(),ts=(()=>{class i extends le{}return i.\u0275fac=(()=>{let e;return function(n){return(e||(e=te(i)))(n||i)}})(),i.\u0275cmp=z({type:i,selectors:[["sk-rotating-plane"]],features:[Q],decls:1,vars:2,consts:[[1,"sk-rotating-plane","colored-parent"]],template:function(t,n){t&1&&P(0,"div",0),t&2&&C("background-color",n.backgroundColor)},styles:[".sk-rotating-plane[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto;animation:_ngcontent-%COMP%_sk-rotatePlane 1.2s infinite ease-in-out}@keyframes _ngcontent-%COMP%_sk-rotatePlane{0%{transform:perspective(120px) rotateX(0) rotateY(0)}50%{transform:perspective(120px) rotateX(-180.1deg) rotateY(0)}to{transform:perspective(120px) rotateX(-180deg) rotateY(-179.9deg)}}"]}),i})(),ns=(()=>{class i extends le{}return i.\u0275fac=(()=>{let e;return function(n){return(e||(e=te(i)))(n||i)}})(),i.\u0275cmp=z({type:i,selectors:[["sk-spinner-pulse"]],features:[Q],decls:1,vars:2,consts:[[1,"sk-spinner","sk-spinner-pulse","colored-parent"]],template:function(t,n){t&1&&P(0,"div",0),t&2&&C("background-color",n.backgroundColor)},styles:[".sk-spinner-pulse[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto;border-radius:100%;animation:_ngcontent-%COMP%_sk-pulseScaleOut 1s infinite ease-in-out}@keyframes _ngcontent-%COMP%_sk-pulseScaleOut{0%{transform:scale(0)}to{transform:scale(1);opacity:0}}"]}),i})(),is=(()=>{class i extends le{}return i.\u0275fac=(()=>{let e;return function(n){return(e||(e=te(i)))(n||i)}})(),i.\u0275cmp=z({type:i,selectors:[["sk-three-bounce"]],features:[Q],decls:4,vars:8,consts:[[1,"sk-three-bounce"],[1,"sk-child","sk-bounce1"],[1,"sk-child","sk-bounce2"],[1,"sk-child","sk-bounce3"]],template:function(t,n){t&1&&(R(0,"div",0),P(1,"div",1)(2,"div",2)(3,"div",3),F()),t&2&&(oe("colored",!n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor))},styles:[".sk-three-bounce[_ngcontent-%COMP%]{top:50%;position:relative;margin:auto;width:80px;text-align:center}.sk-three-bounce[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:20px;height:20px;border-radius:100%;display:inline-block;animation:_ngcontent-%COMP%_sk-three-bounce 1.4s ease-in-out 0s infinite both}.sk-three-bounce[_ngcontent-%COMP%] .sk-bounce1[_ngcontent-%COMP%]{animation-delay:-.32s}.sk-three-bounce[_ngcontent-%COMP%] .sk-bounce2[_ngcontent-%COMP%]{animation-delay:-.16s}@keyframes _ngcontent-%COMP%_sk-three-bounce{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}"]}),i})(),ss=(()=>{class i extends le{}return i.\u0275fac=(()=>{let e;return function(n){return(e||(e=te(i)))(n||i)}})(),i.\u0275cmp=z({type:i,selectors:[["sk-wandering-cubes"]],features:[Q],decls:3,vars:6,consts:[[1,"sk-wandering-cubes"],[1,"sk-cube","sk-cube1"],[1,"sk-cube","sk-cube2"]],template:function(t,n){t&1&&(R(0,"div",0),P(1,"div",1)(2,"div",2),F()),t&2&&(oe("colored",!n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor))},styles:[".sk-wandering-cubes[_ngcontent-%COMP%]{top:50%;margin:auto;width:40px;height:40px;position:relative}.sk-wandering-cubes[_ngcontent-%COMP%] .sk-cube[_ngcontent-%COMP%]{width:10px;height:10px;position:absolute;top:0;left:0;animation:_ngcontent-%COMP%_sk-wanderingCube 1.8s ease-in-out -1.8s infinite both}.sk-wandering-cubes[_ngcontent-%COMP%] .sk-cube2[_ngcontent-%COMP%]{animation-delay:-.9s}@keyframes _ngcontent-%COMP%_sk-wanderingCube{0%{transform:rotate(0)}25%{transform:translate(30px) rotate(-90deg) scale(.5)}50%{transform:translate(30px) translateY(30px) rotate(-179deg)}50.1%{transform:translate(30px) translateY(30px) rotate(-180deg)}75%{transform:translate(0) translateY(30px) rotate(-270deg) scale(.5)}to{transform:rotate(-360deg)}}"]}),i})(),rs=(()=>{class i extends le{}return i.\u0275fac=(()=>{let e;return function(n){return(e||(e=te(i)))(n||i)}})(),i.\u0275cmp=z({type:i,selectors:[["sk-wave"]],features:[Q],decls:6,vars:12,consts:[[1,"sk-wave"],[1,"sk-rect","sk-rect1"],[1,"sk-rect","sk-rect2"],[1,"sk-rect","sk-rect3"],[1,"sk-rect","sk-rect4"],[1,"sk-rect","sk-rect5"]],template:function(t,n){t&1&&(R(0,"div",0),P(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5),F()),t&2&&(oe("colored",!n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor))},styles:[".sk-wave[_ngcontent-%COMP%]{position:relative;top:50%;margin:auto;width:50px;height:40px;text-align:center;font-size:10px}.sk-wave[_ngcontent-%COMP%] .sk-rect[_ngcontent-%COMP%]{float:left;margin-right:1px;height:100%;width:6px;display:inline-block;animation:_ngcontent-%COMP%_sk-waveStretchDelay 1.2s infinite ease-in-out}.sk-wave[_ngcontent-%COMP%] .sk-rect1[_ngcontent-%COMP%]{animation-delay:-1.2s}.sk-wave[_ngcontent-%COMP%] .sk-rect2[_ngcontent-%COMP%]{animation-delay:-1.1s}.sk-wave[_ngcontent-%COMP%] .sk-rect3[_ngcontent-%COMP%]{animation-delay:-1s}.sk-wave[_ngcontent-%COMP%] .sk-rect4[_ngcontent-%COMP%]{animation-delay:-.9s}.sk-wave[_ngcontent-%COMP%] .sk-rect5[_ngcontent-%COMP%]{animation-delay:-.8s}@keyframes _ngcontent-%COMP%_sk-waveStretchDelay{0%,40%,to{transform:scaleY(.4)}20%{transform:scaleY(1)}}"]}),i})(),ei={skChasingDots:"sk-chasing-dots",skCubeGrid:"sk-cube-grid",skDoubleBounce:"sk-double-bounce",skRotatingPlane:"sk-rotationg-plane",skSpinnerPulse:"sk-spinner-pulse",skThreeBounce:"sk-three-bounce",skWanderingCubes:"sk-wandering-cubes",skWave:"sk-wave"};var Tt=(()=>{class i{constructor(){this._pendingRequests=0,this._pendingRequestsStatus$=new lt(1),this._filteredUrlPatterns=[],this._filteredMethods=[],this._filteredHeaders=[],this._forceByPass=!1}get pendingRequestsStatus$(){return this._pendingRequestsStatus$.asObservable()}get pendingRequests(){return this._pendingRequests}get filteredUrlPatterns(){return this._filteredUrlPatterns}set filteredMethods(t){this._filteredMethods=t}set filteredHeaders(t){this._filteredHeaders=t}set forceByPass(t){this._forceByPass=t}shouldBypassUrl(t){return this._filteredUrlPatterns.some(n=>n.test(t))}shouldBypassMethod(t){return this._filteredMethods.some(n=>n.toUpperCase()===t.method.toUpperCase())}shouldBypassHeader(t){return this._filteredHeaders.some(n=>t.headers.has(n))}shouldBypass(t){return this._forceByPass||this.shouldBypassUrl(t.urlWithParams)||this.shouldBypassMethod(t)||this.shouldBypassHeader(t)}intercept(t,n){let s=this.shouldBypass(t);return s||(this._pendingRequests++,this._pendingRequests===1&&this._pendingRequestsStatus$.next(!0)),n.handle(t).pipe(fn(()=>{s||(this._pendingRequests--,this._pendingRequests===0&&this._pendingRequestsStatus$.next(!1))}))}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=V({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),os=[{provide:we,useExisting:Tt,multi:!0}],as=(()=>{class i{constructor(t){this.pendingRequestsInterceptor=t,this._visibility$=new lt(1)}get visibility$(){return this._visibility$.asObservable()}show(){this.pendingRequestsInterceptor.forceByPass=!0,this._visibility$.next(!0)}hide(){this._visibility$.next(!1),this.pendingRequestsInterceptor.forceByPass=!1}}return i.\u0275fac=function(t){return new(t||i)(U(Tt))},i.\u0275prov=V({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),ti=(()=>{class i{constructor(t,n){this.pendingRequestsInterceptor=t,this.spinnerVisibility=n,this.spinkit=ei,this.visibleUntil=Date.now(),this.backdrop=!0,this.debounceDelay=0,this.entryComponent=null,this.extraDuration=0,this.filteredHeaders=[],this.filteredMethods=[],this.filteredUrlPatterns=[],this.minDuration=0,this.opacity=".7",this.backdropBackgroundColor="#f1f1f1",this.spinner=ei.skWave}ngOnInit(){this.initIsvisibleObservable(),this.nullifySpinnerIfEntryComponentIsDefined(),this.initFilters()}initIsvisibleObservable(){let[t,n]=dn(this.pendingRequestsInterceptor.pendingRequestsStatus$,s=>s);this.isVisible$=un(this.pendingRequestsInterceptor.pendingRequestsStatus$.pipe(pt(()=>t.pipe(ht(()=>ut(this.debounceDelay))))),t.pipe(pt(()=>n.pipe(ht(()=>this.getVisibilityTimer$())))),this.spinnerVisibility.visibility$).pipe(pn(),mn(s=>this.updateExpirationDelay(s)))}nullifySpinnerIfEntryComponentIsDefined(){this.entryComponent&&(this.spinner=null)}initFilters(){this.initFilteredUrlPatterns(),this.initFilteredMethods(),this.initFilteredHeaders()}initFilteredUrlPatterns(){this.filteredUrlPatterns.length&&this.filteredUrlPatterns.forEach(t=>this.pendingRequestsInterceptor.filteredUrlPatterns.push(new RegExp(t)))}initFilteredMethods(){this.pendingRequestsInterceptor.filteredMethods=this.filteredMethods}initFilteredHeaders(){this.pendingRequestsInterceptor.filteredHeaders=this.filteredHeaders}updateExpirationDelay(t){t&&(this.visibleUntil=Date.now()+this.minDuration)}getVisibilityTimer$(){return ut(Math.max(this.extraDuration,this.visibleUntil-Date.now()))}}return i.\u0275fac=function(t){return new(t||i)(J(Tt),J(as))},i.\u0275cmp=z({type:i,selectors:[["ng-http-loader"]],inputs:{backdrop:"backdrop",backgroundColor:"backgroundColor",debounceDelay:"debounceDelay",entryComponent:"entryComponent",extraDuration:"extraDuration",filteredHeaders:"filteredHeaders",filteredMethods:"filteredMethods",filteredUrlPatterns:"filteredUrlPatterns",minDuration:"minDuration",opacity:"opacity",backdropBackgroundColor:"backdropBackgroundColor",spinner:"spinner"},decls:2,vars:3,consts:[["id","spinner",3,"backdrop","opacity","ngStyle",4,"ngIf"],["id","spinner",3,"ngStyle"],[4,"ngComponentOutlet"],[3,"backgroundColor",4,"ngIf"],[3,"backgroundColor"]],template:function(t,n){t&1&&(ve(0,Xi,10,16,"div",0),wn(1,"async")),t&2&&E("ngIf",Pn(1,1,n.isVisible$))},dependencies:[Dn,Le,Nn,Zi,Ji,es,ts,ns,is,ss,rs,On],styles:["#spinner[_ngcontent-%COMP%]{top:50%;left:50%;transform:translate(-50%,-50%);position:fixed;z-index:9999}#spinner.backdrop[_ngcontent-%COMP%]{top:0;left:0;height:100%;width:100%;display:flex;align-items:center;justify-content:center;transform:none} .colored-parent, .colored>div{background-color:#333}"]}),i})(),ni=(()=>{class i{static forRoot(){return{ngModule:i,providers:[os]}}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=re({type:i}),i.\u0275inj=se({imports:[xe]}),i})();var cs=[{path:"",loadChildren:()=>import("./chunk-6BYODQW7.js").then(i=>i.LoginModule)},{path:"menu",loadChildren:()=>import("./chunk-TSN4V54G.js").then(i=>i.MenuModule)},{path:"**",redirectTo:"",pathMatch:"full"}],ii=(()=>{let e=class e{};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=re({type:e}),e.\u0275inj=se({imports:[Ct.forRoot(cs),Ct]});let i=e;return i})();var hs=()=>["/api/Channel/GetLastSyncByID"],si=(()=>{let e=class e{constructor(n,s,r){this._router=n,this.titleService=s,this.activatedRoute=r}ngOnInit(){this.overrideDateToJsonFunction(),this._router.events.pipe(dt(n=>n instanceof Un)).pipe(ct(()=>this.activatedRoute),ct(n=>{for(;n.firstChild;)n=n.firstChild;return n}),dt(n=>n.outlet==="primary"),cn(n=>n.data)).subscribe(n=>{let s=" | Marketplace";n.title=="Dealpos x Marketplace"&&(s=""),this.titleService.setTitle(n.title+s)})}overrideDateToJsonFunction(){Date.prototype.toJSON=function(){return this.getFullYear()+"-"+n(this.getMonth()+1)+"-"+n(this.getDate())+"T"+n(this.getHours())+":"+n(this.getMinutes())+":"+n(this.getSeconds())+".000"};function n(s){return s<10?"0"+s:s}}};e.\u0275fac=function(s){return new(s||e)(J(Ke),J(xn),J(Qn))},e.\u0275cmp=z({type:e,selectors:[["app-root"]],decls:2,vars:2,consts:[[3,"filteredUrlPatterns"]],template:function(s,r){s&1&&P(0,"ng-http-loader",0)(1,"router-outlet"),s&2&&E("filteredUrlPatterns",Cn(1,hs))},dependencies:[Wn,ti]});let i=e;return i})();function ri(i){return new k(3e3,!1)}function ps(){return new k(3100,!1)}function fs(){return new k(3101,!1)}function ms(i){return new k(3001,!1)}function gs(i){return new k(3003,!1)}function ys(i){return new k(3004,!1)}function _s(i,e){return new k(3005,!1)}function bs(){return new k(3006,!1)}function vs(){return new k(3007,!1)}function Ss(i,e){return new k(3008,!1)}function ks(i){return new k(3002,!1)}function Es(i,e,t,n,s){return new k(3010,!1)}function Cs(){return new k(3011,!1)}function Ts(){return new k(3012,!1)}function ws(){return new k(3200,!1)}function Ps(){return new k(3202,!1)}function Ms(){return new k(3013,!1)}function As(i){return new k(3014,!1)}function Ds(i){return new k(3015,!1)}function Ns(i){return new k(3016,!1)}function Os(i,e){return new k(3404,!1)}function Is(i){return new k(3502,!1)}function Rs(i){return new k(3503,!1)}function Fs(){return new k(3300,!1)}function Ls(i){return new k(3504,!1)}function xs(i){return new k(3301,!1)}function Bs(i,e){return new k(3302,!1)}function zs(i){return new k(3303,!1)}function qs(i,e){return new k(3400,!1)}function Ks(i){return new k(3401,!1)}function $s(i){return new k(3402,!1)}function js(i,e){return new k(3505,!1)}function ce(i){switch(i.length){case 0:return new Se;case 1:return i[0];default:return new Et(i)}}function bi(i,e,t=new Map,n=new Map){let s=[],r=[],o=-1,a=null;if(e.forEach(l=>{let c=l.get("offset"),d=c==o,u=d&&a||new Map;l.forEach((b,_)=>{let p=_,g=b;if(_!=="offset")switch(p=i.normalizePropertyName(p,s),g){case ze:g=t.get(_);break;case Z:g=n.get(_);break;default:g=i.normalizeStyleValue(_,p,g,s);break}u.set(p,g)}),d||r.push(u),a=u,o=c}),s.length)throw Is(s);return r}function Wt(i,e,t,n){switch(e){case"start":i.onStart(()=>n(t&&wt(t,"start",i)));break;case"done":i.onDone(()=>n(t&&wt(t,"done",i)));break;case"destroy":i.onDestroy(()=>n(t&&wt(t,"destroy",i)));break}}function wt(i,e,t){let n=t.totalTime,s=!!t.disabled,r=Gt(i.element,i.triggerName,i.fromState,i.toState,e||i.phaseName,n??i.totalTime,s),o=i._data;return o!=null&&(r._data=o),r}function Gt(i,e,t,n,s="",r=0,o){return{element:i,triggerName:e,fromState:t,toState:n,phaseName:s,totalTime:r,disabled:!!o}}function $(i,e,t){let n=i.get(e);return n||i.set(e,n=t),n}function oi(i){let e=i.indexOf(":"),t=i.substring(1,e),n=i.slice(e+1);return[t,n]}var Hs=typeof document>"u"?null:document.documentElement;function Yt(i){let e=i.parentNode||i.host||null;return e===Hs?null:e}function Vs(i){return i.substring(1,6)=="ebkit"}var pe=null,ai=!1;function Us(i){pe||(pe=Qs()||{},ai=pe.style?"WebkitAppearance"in pe.style:!1);let e=!0;return pe.style&&!Vs(i)&&(e=i in pe.style,!e&&ai&&(e="Webkit"+i.charAt(0).toUpperCase()+i.slice(1)in pe.style)),e}function Qs(){return typeof document<"u"?document.body:null}function vi(i,e){for(;e;){if(e===i)return!0;e=Yt(e)}return!1}function Si(i,e,t){if(t)return Array.from(i.querySelectorAll(e));let n=i.querySelector(e);return n?[n]:[]}var Xt=(()=>{let e=class e{validateStyleProperty(n){return Us(n)}containsElement(n,s){return vi(n,s)}getParentElement(n){return Yt(n)}query(n,s,r){return Si(n,s,r)}computeStyle(n,s,r){return r||""}animate(n,s,r,o,a,l=[],c){return new Se(r,o)}};e.\u0275fac=function(s){return new(s||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),tn=class tn{};tn.NOOP=new Xt;var ge=tn,ye=class{};var Ws=1e3,ki="{{",Gs="}}",Ei="ng-enter",Ot="ng-leave",He="ng-trigger",Ge=".ng-trigger",li="ng-animating",It=".ng-animating";function ne(i){if(typeof i=="number")return i;let e=i.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Rt(parseFloat(e[1]),e[2])}function Rt(i,e){switch(e){case"s":return i*Ws;default:return i}}function Ye(i,e,t){return i.hasOwnProperty("duration")?i:Ys(i,e,t)}function Ys(i,e,t){let n=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,s,r=0,o="";if(typeof i=="string"){let a=i.match(n);if(a===null)return e.push(ri(i)),{duration:0,delay:0,easing:""};s=Rt(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(r=Rt(parseFloat(l),a[4]));let c=a[5];c&&(o=c)}else s=i;if(!t){let a=!1,l=e.length;s<0&&(e.push(ps()),a=!0),r<0&&(e.push(fs()),a=!0),a&&e.splice(l,0,ri(i))}return{duration:s,delay:r,easing:o}}function Xs(i){return i.length?i[0]instanceof Map?i:i.map(e=>new Map(Object.entries(e))):[]}function ee(i,e,t){e.forEach((n,s)=>{let r=Jt(s);t&&!t.has(s)&&t.set(s,i.style[r]),i.style[r]=n})}function me(i,e){e.forEach((t,n)=>{let s=Jt(n);i.style[s]=""})}function Pe(i){return Array.isArray(i)?i.length==1?i[0]:zn(i):i}function Js(i,e,t){let n=e.params||{},s=Ci(i);s.length&&s.forEach(r=>{n.hasOwnProperty(r)||t.push(ms(r))})}var Ft=new RegExp(`${ki}\\s*(.+?)\\s*${Gs}`,"g");function Ci(i){let e=[];if(typeof i=="string"){let t;for(;t=Ft.exec(i);)e.push(t[1]);Ft.lastIndex=0}return e}function Ae(i,e,t){let n=`${i}`,s=n.replace(Ft,(r,o)=>{let a=e[o];return a==null&&(t.push(gs(o)),a=""),a.toString()});return s==n?i:s}var Zs=/-+([a-z0-9])/g;function Jt(i){return i.replace(Zs,(...e)=>e[1].toUpperCase())}function er(i,e){return i===0||e===0}function tr(i,e,t){if(t.size&&e.length){let n=e[0],s=[];if(t.forEach((r,o)=>{n.has(o)||s.push(o),n.set(o,r)}),s.length)for(let r=1;r<e.length;r++){let o=e[r];s.forEach(a=>o.set(a,Zt(i,a)))}}return e}function K(i,e,t){switch(e.type){case v.Trigger:return i.visitTrigger(e,t);case v.State:return i.visitState(e,t);case v.Transition:return i.visitTransition(e,t);case v.Sequence:return i.visitSequence(e,t);case v.Group:return i.visitGroup(e,t);case v.Animate:return i.visitAnimate(e,t);case v.Keyframes:return i.visitKeyframes(e,t);case v.Style:return i.visitStyle(e,t);case v.Reference:return i.visitReference(e,t);case v.AnimateChild:return i.visitAnimateChild(e,t);case v.AnimateRef:return i.visitAnimateRef(e,t);case v.Query:return i.visitQuery(e,t);case v.Stagger:return i.visitStagger(e,t);default:throw ys(e.type)}}function Zt(i,e){return window.getComputedStyle(i)[e]}var nr=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),Xe=class extends ye{normalizePropertyName(e,t){return Jt(e)}normalizeStyleValue(e,t,n,s){let r="",o=n.toString().trim();if(nr.has(t)&&n!==0&&n!=="0")if(typeof n=="number")r="px";else{let a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&s.push(_s(e,n))}return o+r}};var Je="*";function ir(i,e){let t=[];return typeof i=="string"?i.split(/\s*,\s*/).forEach(n=>sr(n,t,e)):t.push(i),t}function sr(i,e,t){if(i[0]==":"){let l=rr(i,t);if(typeof l=="function"){e.push(l);return}i=l}let n=i.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return t.push(Ds(i)),e;let s=n[1],r=n[2],o=n[3];e.push(ci(s,o));let a=s==Je&&o==Je;r[0]=="<"&&!a&&e.push(ci(o,s))}function rr(i,e){switch(i){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,n)=>parseFloat(n)>parseFloat(t);case":decrement":return(t,n)=>parseFloat(n)<parseFloat(t);default:return e.push(Ns(i)),"* => *"}}var Ve=new Set(["true","1"]),Ue=new Set(["false","0"]);function ci(i,e){let t=Ve.has(i)||Ue.has(i),n=Ve.has(e)||Ue.has(e);return(s,r)=>{let o=i==Je||i==s,a=e==Je||e==r;return!o&&t&&typeof s=="boolean"&&(o=s?Ve.has(i):Ue.has(i)),!a&&n&&typeof r=="boolean"&&(a=r?Ve.has(e):Ue.has(e)),o&&a}}var Ti=":self",or=new RegExp(`s*${Ti}s*,?`,"g");function wi(i,e,t,n){return new Lt(i).build(e,t,n)}var ui="",Lt=class{constructor(e){this._driver=e}build(e,t,n){let s=new xt(t);return this._resetContextStyleTimingState(s),K(this,Pe(e),s)}_resetContextStyleTimingState(e){e.currentQuerySelector=ui,e.collectedStyles=new Map,e.collectedStyles.set(ui,new Map),e.currentTime=0}visitTrigger(e,t){let n=t.queryCount=0,s=t.depCount=0,r=[],o=[];return e.name.charAt(0)=="@"&&t.errors.push(bs()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==v.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(d=>{l.name=d,r.push(this.visitState(l,t))}),l.name=c}else if(a.type==v.Transition){let l=this.visitTransition(a,t);n+=l.queryCount,s+=l.depCount,o.push(l)}else t.errors.push(vs())}),{type:v.Trigger,name:e.name,states:r,transitions:o,queryCount:n,depCount:s,options:null}}visitState(e,t){let n=this.visitStyle(e.styles,t),s=e.options&&e.options.params||null;if(n.containsDynamicStyles){let r=new Set,o=s||{};n.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{Ci(l).forEach(c=>{o.hasOwnProperty(c)||r.add(c)})})}),r.size&&t.errors.push(Ss(e.name,[...r.values()]))}return{type:v.State,name:e.name,style:n,options:s?{params:s}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let n=K(this,Pe(e.animation),t),s=ir(e.expr,t.errors);return{type:v.Transition,matchers:s,animation:n,queryCount:t.queryCount,depCount:t.depCount,options:fe(e.options)}}visitSequence(e,t){return{type:v.Sequence,steps:e.steps.map(n=>K(this,n,t)),options:fe(e.options)}}visitGroup(e,t){let n=t.currentTime,s=0,r=e.steps.map(o=>{t.currentTime=n;let a=K(this,o,t);return s=Math.max(s,t.currentTime),a});return t.currentTime=s,{type:v.Group,steps:r,options:fe(e.options)}}visitAnimate(e,t){let n=ur(e.timings,t.errors);t.currentAnimateTimings=n;let s,r=e.styles?e.styles:W({});if(r.type==v.Keyframes)s=this.visitKeyframes(r,t);else{let o=e.styles,a=!1;if(!o){a=!0;let c={};n.easing&&(c.easing=n.easing),o=W(c)}t.currentTime+=n.duration+n.delay;let l=this.visitStyle(o,t);l.isEmptyStep=a,s=l}return t.currentAnimateTimings=null,{type:v.Animate,timings:n,style:s,options:null}}visitStyle(e,t){let n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){let n=[],s=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of s)typeof a=="string"?a===Z?n.push(a):t.errors.push(ks(a)):n.push(new Map(Object.entries(a)));let r=!1,o=null;return n.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!r)){for(let l of a.values())if(l.toString().indexOf(ki)>=0){r=!0;break}}}),{type:v.Style,styles:n,easing:o,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){let n=t.currentAnimateTimings,s=t.currentTime,r=t.currentTime;n&&r>0&&(r-=n.duration+n.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let c=t.collectedStyles.get(t.currentQuerySelector),d=c.get(l),u=!0;d&&(r!=s&&r>=d.startTime&&s<=d.endTime&&(t.errors.push(Es(l,d.startTime,d.endTime,r,s)),u=!1),r=d.startTime),u&&c.set(l,{startTime:r,endTime:s}),t.options&&Js(a,t.options,t.errors)})})}visitKeyframes(e,t){let n={type:v.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(Cs()),n;let s=1,r=0,o=[],a=!1,l=!1,c=0,d=e.steps.map(M=>{let A=this._makeStyleAst(M,t),L=A.offset!=null?A.offset:cr(A.styles),N=0;return L!=null&&(r++,N=A.offset=L),l=l||N<0||N>1,a=a||N<c,c=N,o.push(N),A});l&&t.errors.push(Ts()),a&&t.errors.push(ws());let u=e.steps.length,b=0;r>0&&r<u?t.errors.push(Ps()):r==0&&(b=s/(u-1));let _=u-1,p=t.currentTime,g=t.currentAnimateTimings,T=g.duration;return d.forEach((M,A)=>{let L=b>0?A==_?1:b*A:o[A],N=L*T;t.currentTime=p+g.delay+N,g.duration=N,this._validateStyleAst(M,t),M.offset=L,n.styles.push(M)}),n}visitReference(e,t){return{type:v.Reference,animation:K(this,Pe(e.animation),t),options:fe(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:v.AnimateChild,options:fe(e.options)}}visitAnimateRef(e,t){return{type:v.AnimateRef,animation:this.visitReference(e.animation,t),options:fe(e.options)}}visitQuery(e,t){let n=t.currentQuerySelector,s=e.options||{};t.queryCount++,t.currentQuery=e;let[r,o]=ar(e.selector);t.currentQuerySelector=n.length?n+" "+r:r,$(t.collectedStyles,t.currentQuerySelector,new Map);let a=K(this,Pe(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:v.Query,selector:r,limit:s.limit||0,optional:!!s.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:fe(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(Ms());let n=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Ye(e.timings,t.errors,!0);return{type:v.Stagger,animation:K(this,Pe(e.animation),t),timings:n,options:null}}};function ar(i){let e=!!i.split(/\s*,\s*/).find(t=>t==Ti);return e&&(i=i.replace(or,"")),i=i.replace(/@\*/g,Ge).replace(/@\w+/g,t=>Ge+"-"+t.slice(1)).replace(/:animating/g,It),[i,e]}function lr(i){return i?Re({},i):null}var xt=class{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function cr(i){if(typeof i=="string")return null;let e=null;if(Array.isArray(i))i.forEach(t=>{if(t instanceof Map&&t.has("offset")){let n=t;e=parseFloat(n.get("offset")),n.delete("offset")}});else if(i instanceof Map&&i.has("offset")){let t=i;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function ur(i,e){if(i.hasOwnProperty("duration"))return i;if(typeof i=="number"){let r=Ye(i,e).duration;return Pt(r,0,"")}let t=i;if(t.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=Pt(0,0,"");return r.dynamic=!0,r.strValue=t,r}let s=Ye(t,e);return Pt(s.duration,s.delay,s.easing)}function fe(i){return i?(i=Re({},i),i.params&&(i.params=lr(i.params))):i={},i}function Pt(i,e,t){return{duration:i,delay:e,easing:t}}function en(i,e,t,n,s,r,o=null,a=!1){return{type:1,element:i,keyframes:e,preStyleProps:t,postStyleProps:n,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:a}}var De=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},dr=1,hr=":enter",pr=new RegExp(hr,"g"),fr=":leave",mr=new RegExp(fr,"g");function Pi(i,e,t,n,s,r=new Map,o=new Map,a,l,c=[]){return new Bt().buildKeyframes(i,e,t,n,s,r,o,a,l,c)}var Bt=class{buildKeyframes(e,t,n,s,r,o,a,l,c,d=[]){c=c||new De;let u=new zt(e,t,c,s,r,d,[]);u.options=l;let b=l.delay?ne(l.delay):0;u.currentTimeline.delayNextStep(b),u.currentTimeline.setStyles([o],null,u.errors,l),K(this,n,u);let _=u.timelines.filter(p=>p.containsAnimation());if(_.length&&a.size){let p;for(let g=_.length-1;g>=0;g--){let T=_[g];if(T.element===t){p=T;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,u.errors,l)}return _.length?_.map(p=>p.buildKeyframes()):[en(t,[],[],[],0,b,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let n=t.subInstructions.get(t.element);if(n){let s=t.createSubContext(e.options),r=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,s,s.options);r!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){let n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,n),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,n){for(let s of e){let r=s?.delay;if(r){let o=typeof r=="number"?r:ne(Ae(r,s?.params??{},t.errors));n.delayNextStep(o)}}}_visitSubInstructions(e,t,n){let r=t.currentTimeline.currentTime,o=n.duration!=null?ne(n.duration):null,a=n.delay!=null?ne(n.delay):null;return o!==0&&e.forEach(l=>{let c=t.appendInstructionToTimeline(l,o,a);r=Math.max(r,c.duration+c.delay)}),r}visitReference(e,t){t.updateOptions(e.options,!0),K(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let n=t.subContextCount,s=t,r=e.options;if(r&&(r.params||r.delay)&&(s=t.createSubContext(r),s.transformIntoNewTimeline(),r.delay!=null)){s.previousNode.type==v.Style&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=Ze);let o=ne(r.delay);s.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>K(this,o,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>n&&s.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let n=[],s=t.currentTimeline.currentTime,r=e.options&&e.options.delay?ne(e.options.delay):0;e.steps.forEach(o=>{let a=t.createSubContext(e.options);r&&a.delayNextStep(r),K(this,o,a),s=Math.max(s,a.currentTimeline.currentTime),n.push(a.currentTimeline)}),n.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(s),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let n=e.strValue,s=t.params?Ae(n,t.params,t.errors):n;return Ye(s,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let n=t.currentAnimateTimings=this._visitTiming(e.timings,t),s=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),s.snapshotCurrentStyles());let r=e.style;r.type==v.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),s.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let n=t.currentTimeline,s=t.currentAnimateTimings;!s&&n.hasCurrentStyleProperties()&&n.forwardFrame();let r=s&&s.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let n=t.currentAnimateTimings,s=t.currentTimeline.duration,r=n.duration,a=t.createSubContext().currentTimeline;a.easing=n.easing,e.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*r),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(s+r),t.previousNode=e}visitQuery(e,t){let n=t.currentTimeline.currentTime,s=e.options||{},r=s.delay?ne(s.delay):0;r&&(t.previousNode.type===v.Style||n==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Ze);let o=n,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!s.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,d)=>{t.currentQueryIndex=d;let u=t.createSubContext(e.options,c);r&&u.delayNextStep(r),c===t.element&&(l=u.currentTimeline),K(this,e.animation,u),u.currentTimeline.applyStylesToKeyframe();let b=u.currentTimeline.currentTime;o=Math.max(o,b)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let n=t.parentContext,s=t.currentTimeline,r=e.timings,o=Math.abs(r.duration),a=o*(t.currentQueryTotal-1),l=o*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=a-l;break;case"full":l=n.currentStaggerTime;break}let d=t.currentTimeline;l&&d.delayNextStep(l);let u=d.currentTime;K(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=s.currentTime-u+(s.startTime-n.currentTimeline.startTime)}},Ze={},zt=class i{constructor(e,t,n,s,r,o,a,l){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=s,this._leaveClassName=r,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Ze,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new et(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let n=e,s=this.options;n.duration!=null&&(s.duration=ne(n.duration)),n.delay!=null&&(s.delay=ne(n.delay));let r=n.params;if(r){let o=s.params;o||(o=this.options.params={}),Object.keys(r).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=Ae(r[a],o,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let n=e.params={};Object.keys(t).forEach(s=>{n[s]=t[s]})}}return e}createSubContext(e=null,t,n){let s=t||this.element,r=new i(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=Ze,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){let s={duration:t??e.duration,delay:this.currentTimeline.currentTime+(n??0)+e.delay,easing:""},r=new qt(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,s,e.stretchStartingKeyframe);return this.timelines.push(r),s}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,n,s,r,o){let a=[];if(s&&a.push(this.element),e.length>0){e=e.replace(pr,"."+this._enterClassName),e=e.replace(mr,"."+this._leaveClassName);let l=n!=1,c=this._driver.query(this.element,e,l);n!==0&&(c=n<0?c.slice(c.length+n,c.length):c.slice(0,n)),a.push(...c)}return!r&&a.length==0&&o.push(As(t)),a}},et=class i{constructor(e,t,n,s){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=s,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new i(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=dr,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,n]of this._globalTimelineStyles)this._backFill.set(t,n||Z),this._currentKeyframe.set(t,Z);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,n,s){t&&this._previousKeyframe.set("easing",t);let r=s&&s.params||{},o=gr(e,this._globalTimelineStyles);for(let[a,l]of o){let c=Ae(l,r,n);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Z),this._updateStyle(a,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,n)=>{let s=this._styleSummary.get(n);(!s||t.time>s.time)&&this._updateStyle(n,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,n=this._keyframes.size===1&&this.duration===0,s=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((d,u)=>{d===ze?e.add(u):d===Z&&t.add(u)}),n||c.set("offset",l/this.duration),s.push(c)});let r=[...e.values()],o=[...t.values()];if(n){let a=s[0],l=new Map(a);a.set("offset",0),l.set("offset",1),s=[a,l]}return en(this.element,s,r,o,this.duration,this.startTime,this.easing,!1)}},qt=class extends et{constructor(e,t,n,s,r,o,a=!1){super(e,t,o.delay),this.keyframes=n,this.preStyleProps=s,this.postStyleProps=r,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:n,easing:s}=this.timings;if(this._stretchStartingKeyframe&&t){let r=[],o=n+t,a=t/o,l=new Map(e[0]);l.set("offset",0),r.push(l);let c=new Map(e[0]);c.set("offset",di(a)),r.push(c);let d=e.length-1;for(let u=1;u<=d;u++){let b=new Map(e[u]),_=b.get("offset"),p=t+_*n;b.set("offset",di(p/o)),r.push(b)}n=o,t=0,s="",e=r}return en(this.element,e,this.preStyleProps,this.postStyleProps,n,t,s,!0)}};function di(i,e=3){let t=Math.pow(10,e-1);return Math.round(i*t)/t}function gr(i,e){let t=new Map,n;return i.forEach(s=>{if(s==="*"){n??=e.keys();for(let r of n)t.set(r,Z)}else for(let[r,o]of s)t.set(r,o)}),t}function hi(i,e,t,n,s,r,o,a,l,c,d,u,b){return{type:0,element:i,triggerName:e,isRemovalTransition:s,fromState:t,fromStyles:r,toState:n,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:u,errors:b}}var Mt={},tt=class{constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}match(e,t,n,s){return yr(this.ast.matchers,e,t,n,s)}buildStyles(e,t,n){let s=this._stateStyles.get("*");return e!==void 0&&(s=this._stateStyles.get(e?.toString())||s),s?s.buildStyles(t,n):new Map}build(e,t,n,s,r,o,a,l,c,d){let u=[],b=this.ast.options&&this.ast.options.params||Mt,_=a&&a.params||Mt,p=this.buildStyles(n,_,u),g=l&&l.params||Mt,T=this.buildStyles(s,g,u),M=new Set,A=new Map,L=new Map,N=s==="void",_e={params:Mi(g,b),delay:this.ast.options?.delay},Y=d?[]:Pi(e,t,this.ast.animation,r,o,p,T,_e,c,u),x=0;return Y.forEach(B=>{x=Math.max(B.duration+B.delay,x)}),u.length?hi(t,this._triggerName,n,s,N,p,T,[],[],A,L,x,u):(Y.forEach(B=>{let ue=B.element,be=$(A,ue,new Set);B.preStyleProps.forEach(de=>be.add(de));let nn=$(L,ue,new Set);B.postStyleProps.forEach(de=>nn.add(de)),ue!==t&&M.add(ue)}),hi(t,this._triggerName,n,s,N,p,T,Y,[...M.values()],A,L,x))}};function yr(i,e,t,n,s){return i.some(r=>r(e,t,n,s))}function Mi(i,e){let t=Re({},e);return Object.entries(i).forEach(([n,s])=>{s!=null&&(t[n]=s)}),t}var Kt=class{constructor(e,t,n){this.styles=e,this.defaultParams=t,this.normalizer=n}buildStyles(e,t){let n=new Map,s=Mi(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((o,a)=>{o&&(o=Ae(o,s,t));let l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),n.set(a,o)})}),n}};function _r(i,e,t){return new $t(i,e,t)}var $t=class{constructor(e,t,n){this.name=e,this.ast=t,this._normalizer=n,this.transitionFactories=[],this.states=new Map,t.states.forEach(s=>{let r=s.options&&s.options.params||{};this.states.set(s.name,new Kt(s.style,r,n))}),pi(this.states,"true","1"),pi(this.states,"false","0"),t.transitions.forEach(s=>{this.transitionFactories.push(new tt(e,s,this.states))}),this.fallbackTransition=br(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,s){return this.transitionFactories.find(o=>o.match(e,t,n,s))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}};function br(i,e,t){let n=[(o,a)=>!0],s={type:v.Sequence,steps:[],options:null},r={type:v.Transition,animation:s,matchers:n,options:null,queryCount:0,depCount:0};return new tt(i,r,e)}function pi(i,e,t){i.has(e)?i.has(t)||i.set(t,i.get(e)):i.has(t)&&i.set(e,i.get(t))}var vr=new De,jt=class{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){let n=[],s=[],r=wi(this._driver,t,n,s);if(n.length)throw Rs(n);s.length&&void 0,this._animations.set(e,r)}_buildPlayer(e,t,n){let s=e.element,r=bi(this._normalizer,e.keyframes,t,n);return this._driver.animate(s,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,n={}){let s=[],r=this._animations.get(e),o,a=new Map;if(r?(o=Pi(this._driver,t,r,Ei,Ot,new Map,new Map,n,vr,s),o.forEach(d=>{let u=$(a,d.element,new Map);d.postStyleProps.forEach(b=>u.set(b,null))})):(s.push(Fs()),o=[]),s.length)throw Ls(s);a.forEach((d,u)=>{d.forEach((b,_)=>{d.set(_,this._driver.computeStyle(u,_,Z))})});let l=o.map(d=>{let u=a.get(d.element);return this._buildPlayer(d,new Map,u)}),c=ce(l);return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw xs(e);return t}listen(e,t,n,s){let r=Gt(t,"","","");return Wt(this._getPlayer(e),n,r,s),()=>{}}command(e,t,n,s){if(n=="register"){this.register(e,s[0]);return}if(n=="create"){let o=s[0]||{};this.create(e,t,o);return}let r=this._getPlayer(e);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(e);break}}},fi="ng-animate-queued",Sr=".ng-animate-queued",At="ng-animate-disabled",kr=".ng-animate-disabled",Er="ng-star-inserted",Cr=".ng-star-inserted",Tr=[],Ai={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},wr={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},G="__ng_removed",Ne=class{get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let n=e&&e.hasOwnProperty("value"),s=n?e.value:e;if(this.value=Mr(s),n){let r=e,{value:o}=r,a=an(r,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let n=this.options.params;Object.keys(t).forEach(s=>{n[s]==null&&(n[s]=t[s])})}}},Me="void",Dt=new Ne(Me),Ht=class{constructor(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,H(t,this._hostClassName)}listen(e,t,n,s){if(!this._triggers.has(t))throw Bs(n,t);if(n==null||n.length==0)throw zs(t);if(!Ar(n))throw qs(n,t);let r=$(this._elementListeners,e,[]),o={name:t,phase:n,callback:s};r.push(o);let a=$(this._engine.statesByElement,e,new Map);return a.has(t)||(H(e,He),H(e,He+"-"+t),a.set(t,Dt)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(o);l>=0&&r.splice(l,1),this._triggers.has(t)||a.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw Ks(e);return t}trigger(e,t,n,s=!0){let r=this._getTrigger(t),o=new Oe(this.id,t,e),a=this._engine.statesByElement.get(e);a||(H(e,He),H(e,He+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t),c=new Ne(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=Dt),!(c.value===Me)&&l.value===c.value){if(!Or(l.params,c.params)){let g=[],T=r.matchStyles(l.value,l.params,g),M=r.matchStyles(c.value,c.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{me(e,T),ee(e,M)})}return}let b=$(this._engine.playersByElement,e,[]);b.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy()});let _=r.matchTransition(l.value,c.value,e,c.params),p=!1;if(!_){if(!s)return;_=r.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:_,fromState:l,toState:c,player:o,isFallbackTransition:p}),p||(H(e,fi),o.onStart(()=>{ke(e,fi)})),o.onDone(()=>{let g=this.players.indexOf(o);g>=0&&this.players.splice(g,1);let T=this._engine.playersByElement.get(e);if(T){let M=T.indexOf(o);M>=0&&T.splice(M,1)}}),this.players.push(o),b.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(s=>s.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(n=>n.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let n=this._engine.driver.query(e,Ge,!0);n.forEach(s=>{if(s[G])return;let r=this._engine.fetchNamespacesByElement(s);r.size?r.forEach(o=>o.triggerLeaveAnimation(s,t,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(e,t,n,s){let r=this._engine.statesByElement.get(e),o=new Map;if(r){let a=[];if(r.forEach((l,c)=>{if(o.set(c,l.value),this._triggers.has(c)){let d=this.trigger(e,c,Me,s);d&&a.push(d)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),n&&ce(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),n=this._engine.statesByElement.get(e);if(t&&n){let s=new Set;t.forEach(r=>{let o=r.name;if(s.has(o))return;s.add(o);let l=this._triggers.get(o).fallbackTransition,c=n.get(o)||Dt,d=new Ne(Me),u=new Oe(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(e,t){let n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let s=!1;if(n.totalAnimations){let r=n.players.length?n.playersByQueriedElement.get(e):[];if(r&&r.length)s=!0;else{let o=e;for(;o=o.parentNode;)if(n.statesByElement.get(o)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(e),s)n.markElementAsRemoved(this.id,e,!1,t);else{let r=e[G];(!r||r===Ai)&&(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t))}}insertNode(e,t){H(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(n=>{let s=n.player;if(s.destroyed)return;let r=n.element,o=this._elementListeners.get(r);o&&o.forEach(a=>{if(a.name==n.triggerName){let l=Gt(r,n.triggerName,n.fromState.value,n.toState.value);l._data=e,Wt(n.player,a.phase,l,a.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):t.push(n)}),this._queue=[],t.sort((n,s)=>{let r=n.transition.ast.depCount,o=s.transition.ast.depCount;return r==0||o==0?r-o:this._engine.driver.containsElement(n.element,s.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Vt=class{_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,n){this.bodyNode=e,this.driver=t,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(s,r)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(n=>{n.queued&&e.push(n)})}),e}createNamespace(e,t){let n=new Ht(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){let n=this._namespaceList,s=this.namespacesByHostElement;if(n.length-1>=0){let o=!1,a=this.driver.getParentElement(t);for(;a;){let l=s.get(a);if(l){let c=n.indexOf(l);n.splice(c+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}o||n.unshift(e)}else n.push(e);return s.set(t,e),e}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let s=this._namespaceLookup[e];s&&s.register(t,n)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(e);this.namespacesByHostElement.delete(n.hostElement);let s=this._namespaceList.indexOf(n);s>=0&&this._namespaceList.splice(s,1),n.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,n=this.statesByElement.get(e);if(n){for(let s of n.values())if(s.namespaceId){let r=this._fetchNamespace(s.namespaceId);r&&t.add(r)}}return t}trigger(e,t,n,s){if(Qe(t)){let r=this._fetchNamespace(e);if(r)return r.trigger(t,n,s),!0}return!1}insertNode(e,t,n,s){if(!Qe(t))return;let r=t[G];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){let o=this._fetchNamespace(e);o&&o.insertNode(t,n)}s&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),H(e,At)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),ke(e,At))}removeNode(e,t,n){if(Qe(t)){let s=e?this._fetchNamespace(e):null;s?s.removeNode(t,n):this.markElementAsRemoved(e,t,!1,n);let r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,n)}else this._onRemovalComplete(t,n)}markElementAsRemoved(e,t,n,s,r){this.collectedLeaveElements.push(t),t[G]={namespaceId:e,setForRemoval:s,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:r}}listen(e,t,n,s,r){return Qe(t)?this._fetchNamespace(e).listen(t,n,s,r):()=>{}}_buildInstruction(e,t,n,s,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,s,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,Ge,!0);t.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,It,!0),t.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return ce(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[G];if(t&&t.setForRemoval){if(e[G]=Ai,t.namespaceId){this.destroyInnerAnimations(e);let n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(At)&&this.markElementAsDisabled(e,!1),this.driver.query(e,kr,!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,s)=>this._balanceNamespaceList(n,s)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++){let s=this.collectedEnterElements[n];H(s,Er)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let n=[];try{t=this._flushAnimations(n,e)}finally{for(let s=0;s<n.length;s++)n[s]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++){let s=this.collectedLeaveElements[n];this.processLeaveNode(s)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(n=>n()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],t.length?ce(t).onDone(()=>{n.forEach(s=>s())}):n.forEach(s=>s())}}reportError(e){throw $s(e)}_flushAnimations(e,t){let n=new De,s=[],r=new Map,o=[],a=new Map,l=new Map,c=new Map,d=new Set;this.disabledNodes.forEach(h=>{d.add(h);let f=this.driver.query(h,Sr,!0);for(let m=0;m<f.length;m++)d.add(f[m])});let u=this.bodyNode,b=Array.from(this.statesByElement.keys()),_=yi(b,this.collectedEnterElements),p=new Map,g=0;_.forEach((h,f)=>{let m=Ei+g++;p.set(f,m),h.forEach(S=>H(S,m))});let T=[],M=new Set,A=new Set;for(let h=0;h<this.collectedLeaveElements.length;h++){let f=this.collectedLeaveElements[h],m=f[G];m&&m.setForRemoval&&(T.push(f),M.add(f),m.hasAnimation?this.driver.query(f,Cr,!0).forEach(S=>M.add(S)):A.add(f))}let L=new Map,N=yi(b,Array.from(M));N.forEach((h,f)=>{let m=Ot+g++;L.set(f,m),h.forEach(S=>H(S,m))}),e.push(()=>{_.forEach((h,f)=>{let m=p.get(f);h.forEach(S=>ke(S,m))}),N.forEach((h,f)=>{let m=L.get(f);h.forEach(S=>ke(S,m))}),T.forEach(h=>{this.processLeaveNode(h)})});let _e=[],Y=[];for(let h=this._namespaceList.length-1;h>=0;h--)this._namespaceList[h].drainQueuedTransitions(t).forEach(m=>{let S=m.player,D=m.element;if(_e.push(S),this.collectedEnterElements.length){let I=D[G];if(I&&I.setForMove){if(I.previousTriggersValues&&I.previousTriggersValues.has(m.triggerName)){let he=I.previousTriggersValues.get(m.triggerName),j=this.statesByElement.get(m.element);if(j&&j.has(m.triggerName)){let Ie=j.get(m.triggerName);Ie.value=he,j.set(m.triggerName,Ie)}}S.destroy();return}}let X=!u||!this.driver.containsElement(u,D),q=L.get(D),ie=p.get(D),w=this._buildInstruction(m,n,ie,q,X);if(w.errors&&w.errors.length){Y.push(w);return}if(X){S.onStart(()=>me(D,w.fromStyles)),S.onDestroy(()=>ee(D,w.toStyles)),s.push(S);return}if(m.isFallbackTransition){S.onStart(()=>me(D,w.fromStyles)),S.onDestroy(()=>ee(D,w.toStyles)),s.push(S);return}let on=[];w.timelines.forEach(I=>{I.stretchStartingKeyframe=!0,this.disabledNodes.has(I.element)||on.push(I)}),w.timelines=on,n.append(D,w.timelines);let zi={instruction:w,player:S,element:D};o.push(zi),w.queriedElements.forEach(I=>$(a,I,[]).push(S)),w.preStyleProps.forEach((I,he)=>{if(I.size){let j=l.get(he);j||l.set(he,j=new Set),I.forEach((Ie,at)=>j.add(at))}}),w.postStyleProps.forEach((I,he)=>{let j=c.get(he);j||c.set(he,j=new Set),I.forEach((Ie,at)=>j.add(at))})});if(Y.length){let h=[];Y.forEach(f=>{h.push(js(f.triggerName,f.errors))}),_e.forEach(f=>f.destroy()),this.reportError(h)}let x=new Map,B=new Map;o.forEach(h=>{let f=h.element;n.has(f)&&(B.set(f,f),this._beforeAnimationBuild(h.player.namespaceId,h.instruction,x))}),s.forEach(h=>{let f=h.element;this._getPreviousPlayers(f,!1,h.namespaceId,h.triggerName,null).forEach(S=>{$(x,f,[]).push(S),S.destroy()})});let ue=T.filter(h=>_i(h,l,c)),be=new Map;gi(be,this.driver,A,c,Z).forEach(h=>{_i(h,l,c)&&ue.push(h)});let de=new Map;_.forEach((h,f)=>{gi(de,this.driver,new Set(h),l,ze)}),ue.forEach(h=>{let f=be.get(h),m=de.get(h);be.set(h,new Map([...f?.entries()??[],...m?.entries()??[]]))});let ot=[],sn=[],rn={};o.forEach(h=>{let{element:f,player:m,instruction:S}=h;if(n.has(f)){if(d.has(f)){m.onDestroy(()=>ee(f,S.toStyles)),m.disabled=!0,m.overrideTotalTime(S.totalTime),s.push(m);return}let D=rn;if(B.size>1){let q=f,ie=[];for(;q=q.parentNode;){let w=B.get(q);if(w){D=w;break}ie.push(q)}ie.forEach(w=>B.set(w,D))}let X=this._buildAnimation(m.namespaceId,S,x,r,de,be);if(m.setRealPlayer(X),D===rn)ot.push(m);else{let q=this.playersByElement.get(D);q&&q.length&&(m.parentPlayer=ce(q)),s.push(m)}}else me(f,S.fromStyles),m.onDestroy(()=>ee(f,S.toStyles)),sn.push(m),d.has(f)&&s.push(m)}),sn.forEach(h=>{let f=r.get(h.element);if(f&&f.length){let m=ce(f);h.setRealPlayer(m)}}),s.forEach(h=>{h.parentPlayer?h.syncPlayerEvents(h.parentPlayer):h.destroy()});for(let h=0;h<T.length;h++){let f=T[h],m=f[G];if(ke(f,Ot),m&&m.hasAnimation)continue;let S=[];if(a.size){let X=a.get(f);X&&X.length&&S.push(...X);let q=this.driver.query(f,It,!0);for(let ie=0;ie<q.length;ie++){let w=a.get(q[ie]);w&&w.length&&S.push(...w)}}let D=S.filter(X=>!X.destroyed);D.length?Dr(this,f,D):this.processLeaveNode(f)}return T.length=0,ot.forEach(h=>{this.players.push(h),h.onDone(()=>{h.destroy();let f=this.players.indexOf(h);this.players.splice(f,1)}),h.play()}),ot}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,n,s,r){let o=[];if(t){let a=this.playersByQueriedElement.get(e);a&&(o=a)}else{let a=this.playersByElement.get(e);if(a){let l=!r||r==Me;a.forEach(c=>{c.queued||!l&&c.triggerName!=s||o.push(c)})}}return(n||s)&&(o=o.filter(a=>!(n&&n!=a.namespaceId||s&&s!=a.triggerName))),o}_beforeAnimationBuild(e,t,n){let s=t.triggerName,r=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:s;for(let l of t.timelines){let c=l.element,d=c!==r,u=$(n,c,[]);this._getPreviousPlayers(c,d,o,a,t.toState).forEach(_=>{let p=_.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),_.destroy(),u.push(_)})}me(r,t.fromStyles)}_buildAnimation(e,t,n,s,r,o){let a=t.triggerName,l=t.element,c=[],d=new Set,u=new Set,b=t.timelines.map(p=>{let g=p.element;d.add(g);let T=g[G];if(T&&T.removedBeforeQueried)return new Se(p.duration,p.delay);let M=g!==l,A=Nr((n.get(g)||Tr).map(x=>x.getRealPlayer())).filter(x=>{let B=x;return B.element?B.element===g:!1}),L=r.get(g),N=o.get(g),_e=bi(this._normalizer,p.keyframes,L,N),Y=this._buildPlayer(p,_e,A);if(p.subTimeline&&s&&u.add(g),M){let x=new Oe(e,a,g);x.setRealPlayer(Y),c.push(x)}return Y});c.forEach(p=>{$(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>Pr(this.playersByQueriedElement,p.element,p))}),d.forEach(p=>H(p,li));let _=ce(b);return _.onDestroy(()=>{d.forEach(p=>ke(p,li)),ee(l,t.toStyles)}),u.forEach(p=>{$(s,p,[]).push(_)}),_}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new Se(e.duration,e.delay)}},Oe=class{constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new Se,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,n)=>{t.forEach(s=>Wt(e,n,void 0,s))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){$(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function Pr(i,e,t){let n=i.get(e);if(n){if(n.length){let s=n.indexOf(t);n.splice(s,1)}n.length==0&&i.delete(e)}return n}function Mr(i){return i??null}function Qe(i){return i&&i.nodeType===1}function Ar(i){return i=="start"||i=="done"}function mi(i,e){let t=i.style.display;return i.style.display=e??"none",t}function gi(i,e,t,n,s){let r=[];t.forEach(l=>r.push(mi(l)));let o=[];n.forEach((l,c)=>{let d=new Map;l.forEach(u=>{let b=e.computeStyle(c,u,s);d.set(u,b),(!b||b.length==0)&&(c[G]=wr,o.push(c))}),i.set(c,d)});let a=0;return t.forEach(l=>mi(l,r[a++])),o}function yi(i,e){let t=new Map;if(i.forEach(a=>t.set(a,[])),e.length==0)return t;let n=1,s=new Set(e),r=new Map;function o(a){if(!a)return n;let l=r.get(a);if(l)return l;let c=a.parentNode;return t.has(c)?l=c:s.has(c)?l=n:l=o(c),r.set(a,l),l}return e.forEach(a=>{let l=o(a);l!==n&&t.get(l).push(a)}),t}function H(i,e){i.classList?.add(e)}function ke(i,e){i.classList?.remove(e)}function Dr(i,e,t){ce(t).onDone(()=>i.processLeaveNode(e))}function Nr(i){let e=[];return Di(i,e),e}function Di(i,e){for(let t=0;t<i.length;t++){let n=i[t];n instanceof Et?Di(n.players,e):e.push(n)}}function Or(i,e){let t=Object.keys(i),n=Object.keys(e);if(t.length!=n.length)return!1;for(let s=0;s<t.length;s++){let r=t[s];if(!e.hasOwnProperty(r)||i[r]!==e[r])return!1}return!0}function _i(i,e,t){let n=t.get(i);if(!n)return!1;let s=e.get(i);return s?n.forEach(r=>s.add(r)):e.set(i,n),t.delete(i),!0}var Ce=class{constructor(e,t,n){this._driver=t,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(s,r)=>{},this._transitionEngine=new Vt(e.body,t,n),this._timelineEngine=new jt(e.body,t,n),this._transitionEngine.onRemovalComplete=(s,r)=>this.onRemovalComplete(s,r)}registerTrigger(e,t,n,s,r){let o=e+"-"+s,a=this._triggerCache[o];if(!a){let l=[],c=[],d=wi(this._driver,r,l,c);if(l.length)throw Os(s,l);c.length&&void 0,a=_r(s,d,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,s,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,n,s){this._transitionEngine.insertNode(e,t,n,s)}onRemove(e,t,n){this._transitionEngine.removeNode(e,t,n)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,n,s){if(n.charAt(0)=="@"){let[r,o]=oi(n),a=s;this._timelineEngine.command(r,t,o,a)}else this._transitionEngine.trigger(e,t,n,s)}listen(e,t,n,s,r){if(n.charAt(0)=="@"){let[o,a]=oi(n);return this._timelineEngine.listen(o,t,a,r)}return this._transitionEngine.listen(e,t,n,s,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function Ir(i,e){let t=null,n=null;return Array.isArray(e)&&e.length?(t=Nt(e[0]),e.length>1&&(n=Nt(e[e.length-1]))):e instanceof Map&&(t=Nt(e)),t||n?new Ut(i,t,n):null}var Ee=class Ee{constructor(e,t,n){this._element=e,this._startStyles=t,this._endStyles=n,this._state=0;let s=Ee.initialStylesByElement.get(e);s||Ee.initialStylesByElement.set(e,s=new Map),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&ee(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ee(this._element,this._initialStyles),this._endStyles&&(ee(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Ee.initialStylesByElement.delete(this._element),this._startStyles&&(me(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(me(this._element,this._endStyles),this._endStyles=null),ee(this._element,this._initialStyles),this._state=3)}};Ee.initialStylesByElement=new WeakMap;var Ut=Ee;function Nt(i){let e=null;return i.forEach((t,n)=>{Rr(n)&&(e=e||new Map,e.set(n,t))}),e}function Rr(i){return i==="display"||i==="position"}var nt=class{constructor(e,t,n,s){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(n=>{t.push(Object.fromEntries(n))}),t}_triggerWebAnimation(e,t,n){return e.animate(this._convertKeyframesToObject(t),n)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,s)=>{s!=="offset"&&e.set(s,this._finished?n:Zt(this.element,s))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0}},it=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return vi(e,t)}getParentElement(e){return Yt(e)}query(e,t,n){return Si(e,t,n)}computeStyle(e,t,n){return Zt(e,t)}animate(e,t,n,s,r,o=[]){let a=s==0?"both":"forwards",l={duration:n,delay:s,fill:a};r&&(l.easing=r);let c=new Map,d=o.filter(_=>_ instanceof nt);er(n,s)&&d.forEach(_=>{_.currentSnapshot.forEach((p,g)=>c.set(g,p))});let u=Xs(t).map(_=>new Map(_));u=tr(e,u,c);let b=Ir(e,u);return new nt(e,u,l,b)}};var We="@",Ni="@.disabled",st=class{constructor(e,t,n,s){this.namespaceId=e,this.delegate=t,this.engine=n,this._onDestroy=s,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,n,s=!0){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,s)}removeChild(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,n,s){this.delegate.setAttribute(e,t,n,s)}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,n,s){this.delegate.setStyle(e,t,n,s)}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){t.charAt(0)==We&&t==Ni?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,n){return this.delegate.listen(e,t,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},Qt=class extends st{constructor(e,t,n,s,r){super(t,n,s,r),this.factory=e,this.namespaceId=t}setProperty(e,t,n){t.charAt(0)==We?t.charAt(1)=="."&&t==Ni?(n=n===void 0?!0:!!n,this.disableAnimations(e,n)):this.engine.process(this.namespaceId,e,t.slice(1),n):this.delegate.setProperty(e,t,n)}listen(e,t,n){if(t.charAt(0)==We){let s=Fr(e),r=t.slice(1),o="";return r.charAt(0)!=We&&([r,o]=Lr(r)),this.engine.listen(this.namespaceId,s,r,o,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,n,a)})}return this.delegate.listen(e,t,n)}};function Fr(i){switch(i){case"body":return document.body;case"document":return document;case"window":return window;default:return i}}function Lr(i){let e=i.indexOf("."),t=i.substring(0,e),n=i.slice(e+1);return[t,n]}var rt=class{constructor(e,t,n){this.delegate=e,this.engine=t,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,t.onRemovalComplete=(s,r)=>{let o=r?.parentNode(s);o&&r.removeChild(o,s)}}createRenderer(e,t){let n="",s=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let c=this._rendererCache,d=c.get(s);if(!d){let u=()=>c.delete(s);d=new st(n,s,this.engine,u),c.set(s,d)}return d}let r=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);let a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(r,o,e,c.name,c)};return t.data.animation.forEach(a),new Qt(this,o,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,n){if(e>=0&&e<this._microtaskId){this._zone.run(()=>t(n));return}let s=this._animationCallbacksBuffer;s.length==0&&queueMicrotask(()=>{this._zone.run(()=>{s.forEach(r=>{let[o,a]=r;o(a)}),this._animationCallbacksBuffer=[]})}),s.push([t,n])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var Br=(()=>{let e=class e extends Ce{constructor(n,s,r){super(n,s,r)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(s){return new(s||e)(U(An),U(ge),U(ye))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})();function zr(){return new Xe}function qr(i,e,t){return new rt(i,e,t)}var Ii=[{provide:ye,useFactory:zr},{provide:Ce,useClass:Br},{provide:_n,useFactory:qr,deps:[Fn,Ce,bn]}],Oi=[{provide:ge,useFactory:()=>new it},{provide:gt,useValue:"BrowserAnimations"},...Ii],Kr=[{provide:ge,useClass:Xt},{provide:gt,useValue:"NoopAnimations"},...Ii],Ri=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:n.disableAnimations?Kr:Oi}}};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=re({type:e}),e.\u0275inj=se({providers:Oi,imports:[Be]});let i=e;return i})();var Fi=(()=>{let e=class e{constructor(n){this._router=n}intercept(n,s){let r=JSON.parse(window.localStorage.getItem("user")),o=new Date;if(r!=null){let a=new Date(r.Token.expiredAt);o<a?n=n.clone({setHeaders:{"Content-Type":"application/json",Authorization:`Bearer ${r.Token.access_token}`}}):n=n.clone({setHeaders:{"Content-Type":"application/json"}})}else n=n.clone({setHeaders:{"Content-Type":"application/json"}});return s.handle(n)}};e.\u0275fac=function(s){return new(s||e)(U(Ke))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})();var Li=(()=>{let e=class e{constructor(n,s){this.authService=n,this.toastr=s}intercept(n,s){return s.handle(n).pipe(hn(r=>(this.handlerError(r),ln(()=>r))))}handlerError(n){if(!this.unauthorizedErrorHandling(n)&&!Array.isArray(n?.error?.Message)){let r=this.errorMessageHandling(n);this.toastr.error(r.message!=""?r.message:"An unknown error has occured!",r.header,{enableHtml:!0})}}unauthorizedErrorHandling(n){let s=!1;if(n.status==401){let r=localStorage.getItem("currentUser");r&&(JSON.parse(r)?.Token?.access_token?this.tokenExpiredErrorHandling(n):this.toastr.error("Your session has expired. Please login again.","Session Expired").onShown.subscribe(()=>this.authService.logout()),s=!0)}return s}tokenExpiredErrorHandling(n){if(this.authService.isActiveToken()){let s=this.errorMessageHandling(n);this.toastr.error(s.message,s.header)}else this.toastr.error("Your session has expired. Please login again.","Session Expired").onShown.subscribe(()=>this.authService.logout())}errorMessageHandling(n){let s="API Error",r="Exception Message";return n.error?(s="API Error - "+n.status,n.error.Message&&(n.error.Message.indexOf("Message")!=-1?r=JSON.parse(n.error.Message).Message:r=n.error.Message)):n.message&&(s="API Error - "+n.name,r=n.message),{header:s,message:r}}};e.\u0275fac=function(s){return new(s||e)(U(je),U(qe))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var jr=["custom-toast-component",""];function Hr(i,e){if(i&1){let t=_t();R(0,"a",11),bt("click",function(){ft(t);let s=O(2);return mt(s.remove())}),Te(1," x "),F()}}function Vr(i,e){if(i&1&&(R(0,"div",6)(1,"div",7)(2,"div",8)(3,"h4"),Te(4),F()()(),R(5,"div",9),ve(6,Hr,2,0,"a",10),F()()),i&2){let t=O();C("display",t.state().value==="inactive"?"none":""),y(2),Fe(t.options.titleClass),yt("aria-label",t.title),y(2),Sn(t.title),y(2),E("ngIf",t.options.closeButton)}}function Ur(i,e){if(i&1&&P(0,"div",12),i&2){let t=O();Fe(t.options.messageClass),E("innerHTML",t.message,yn)}}function Qr(i,e){if(i&1&&(R(0,"div",13),Te(1),F()),i&2){let t=O();Fe(t.options.messageClass),yt("aria-label",t.message),y(),kn(" ",t.message," ")}}function Wr(i,e){if(i&1){let t=_t();R(0,"a",11),bt("click",function(){ft(t);let s=O();return mt(s.remove())}),Te(1," x "),F()}}function Gr(i,e){if(i&1&&(R(0,"div"),P(1,"div",14),F()),i&2){let t=O();y(),C("width",t.width+"%")}}var xi=(()=>{let e=class e extends $n{constructor(n,s){super(n,s),this.toastrService=n,this.toastPackage=s}ngOnInit(){}action(n){return n.stopPropagation(),this.toastPackage.triggerAction(),!1}};e.\u0275fac=function(s){return new(s||e)(J(qe),J(Kn))},e.\u0275cmp=z({type:e,selectors:[["","custom-toast-component",""]],standalone:!0,features:[Q,En],attrs:jr,decls:6,vars:5,consts:[[1,"toast-case"],["class","row toast-header",3,"display",4,"ngIf"],["class","row toast-body text-start","role","alert","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["class","row toast-body text-start","role","alert","aria-live","polite",3,"class",4,"ngIf"],["class","btn toast-close-button btn-sm ",3,"click",4,"ngIf"],[4,"ngIf"],[1,"row","toast-header"],[1,"col-9","px-0","text-start"],[1,"my-4"],[1,"col-auto","mt-5","pe-0"],["class","btn toast-close-button btn-sm",3,"click",4,"ngIf"],[1,"btn","toast-close-button","btn-sm",3,"click"],["role","alert","aria-live","polite",1,"row","toast-body","text-start",3,"innerHTML"],["role","alert","aria-live","polite",1,"row","toast-body","text-start"],[1,"toast-progress"]],template:function(s,r){s&1&&(R(0,"div",0),ve(1,Vr,7,7,"div",1)(2,Ur,1,3,"div",2)(3,Qr,2,4,"div",3)(4,Wr,2,0,"a",4)(5,Gr,2,2,"div",5),F()),s&2&&(y(),E("ngIf",r.title),y(),E("ngIf",r.message&&r.options.enableHtml),y(),E("ngIf",r.message&&!r.options.enableHtml),y(),E("ngIf",r.options.closeButton&&r.title==null),y(),E("ngIf",r.options.progressBar))},dependencies:[xe,Le],styles:["[_nghost-%COMP%]{background-color:#fff;position:relative;overflow:hidden;margin:0 0 6px;width:300px;border-radius:3px;color:#141414;pointer-events:all;cursor:pointer}.toast-success[_nghost-%COMP%]{border:1.8px solid rgb(81,163,81)}.toast-info[_nghost-%COMP%]{border:1.8px solid rgb(47,150,180)}.toast-error[_nghost-%COMP%]{border:1.8px solid rgb(189,54,47)}.toast-warning[_nghost-%COMP%]{border:1.8px solid rgb(248,148,6)}.toast-case[_ngcontent-%COMP%]{margin-left:10px}.toast-header[_ngcontent-%COMP%]{background-clip:padding-box;border-bottom:1px solid gainsboro;border-width:1px;padding-bottom:0rem;padding-top:0rem;padding-right:0}.toast-title[_ngcontent-%COMP%]{color:#000}.toast-body[_ngcontent-%COMP%]{padding:10px 15px 10px 0}.notitle[_ngcontent-%COMP%]{margin-bottom:-1rem}.toast-close-button[_ngcontent-%COMP%]{color:#dcdcdc!important}"],data:{animation:[Bn("flyInOut",[qn("inactive",W({opacity:0})),kt("inactive => active",vt("400ms ease-out",St([W({transform:"translate3d(100%, 0, 0) skewX(-30deg)",opacity:0}),W({transform:"skewX(20deg)",opacity:1}),W({transform:"skewX(-5deg)",opacity:1}),W({transform:"none",opacity:1})]))),kt("active => removed",vt("400ms ease-out",St([W({opacity:1}),W({transform:"translate3d(100%, 0, 0) skewX(30deg)",opacity:0})])))])]}});let i=e;return i})();var Yr={name:"MarketplaceDB",version:1,objectStoresMeta:[{store:"Categories",storeConfig:{keyPath:null,autoIncrement:!1},storeSchema:[]}]},Bi=(()=>{let e=class e{};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=re({type:e,bootstrap:[si]}),e.\u0275inj=se({providers:[{provide:we,useClass:Fi,multi:!0},{provide:Zn,useValue:{subscriptSizing:"dynamic"}},Hn,Vn,{provide:Mn,useFactory:n=>function(){n.loadPermissions()},deps:[je],multi:!0},{provide:we,useClass:Li,multi:!0},In(Rn())],imports:[Be,ii,Ri,jn.forRoot({toastComponent:xi,positionClass:"toast-bottom-right",closeButton:!0}),Jn.forRoot(Yr),ni.forRoot(),Gn.initializeApp($e.firebaseConfig),Yn,Xn.forRoot()]});let i=e;return i})();$e.production&&void 0;Ln().bootstrapModule(Bi).catch(i=>console.error(i));
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var ce=globalThis;function ee(t){return(ce.__Zone_symbol_prefix||"__zone_symbol__")+t}function dt(){let t=ce.performance;function r(M){t&&t.mark&&t.mark(M)}function i(M,_){t&&t.measure&&t.measure(M,_)}r("Zone");let n=(()=>{let _=class _{static assertZonePatched(){if(ce.Promise!==L.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let e=_.current;for(;e.parent;)e=e.parent;return e}static get current(){return b.zone}static get currentTask(){return S}static __load_patch(e,d,O=!1){if(L.hasOwnProperty(e)){let N=ce[ee("forceDuplicateZoneCheck")]===!0;if(!O&&N)throw Error("Already loaded patch: "+e)}else if(!ce["__Zone_disable_"+e]){let N="Zone:"+e;r(N),L[e]=d(ce,_,w),i(N,N)}}get parent(){return this._parent}get name(){return this._name}constructor(e,d){this._parent=e,this._name=d?d.name||"unnamed":"<root>",this._properties=d&&d.properties||{},this._zoneDelegate=new f(this,this._parent&&this._parent._zoneDelegate,d)}get(e){let d=this.getZoneWith(e);if(d)return d._properties[e]}getZoneWith(e){let d=this;for(;d;){if(d._properties.hasOwnProperty(e))return d;d=d._parent}return null}fork(e){if(!e)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,e)}wrap(e,d){if(typeof e!="function")throw new Error("Expecting function got: "+e);let O=this._zoneDelegate.intercept(this,e,d),N=this;return function(){return N.runGuarded(O,this,arguments,d)}}run(e,d,O,N){b={parent:b,zone:this};try{return this._zoneDelegate.invoke(this,e,d,O,N)}finally{b=b.parent}}runGuarded(e,d=null,O,N){b={parent:b,zone:this};try{try{return this._zoneDelegate.invoke(this,e,d,O,N)}catch(D){if(this._zoneDelegate.handleError(this,D))throw D}}finally{b=b.parent}}runTask(e,d,O){if(e.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(e.zone||K).name+"; Execution: "+this.name+")");let N=e,{type:D,data:{isPeriodic:_e=!1,isRefreshable:ae=!1}={}}=e;if(e.state===X&&(D===W||D===y))return;let ne=e.state!=H;ne&&N._transitionTo(H,h);let Ee=S;S=N,b={parent:b,zone:this};try{D==y&&e.data&&!_e&&!ae&&(e.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,N,d,O)}catch(l){if(this._zoneDelegate.handleError(this,l))throw l}}finally{let l=e.state;if(l!==X&&l!==Y)if(D==W||_e||ae&&l===k)ne&&N._transitionTo(h,H,k);else{let a=N._zoneDelegates;this._updateTaskCount(N,-1),ne&&N._transitionTo(X,H,X),ae&&(N._zoneDelegates=a)}b=b.parent,S=Ee}}scheduleTask(e){if(e.zone&&e.zone!==this){let O=this;for(;O;){if(O===e.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${e.zone.name}`);O=O.parent}}e._transitionTo(k,X);let d=[];e._zoneDelegates=d,e._zone=this;try{e=this._zoneDelegate.scheduleTask(this,e)}catch(O){throw e._transitionTo(Y,k,X),this._zoneDelegate.handleError(this,O),O}return e._zoneDelegates===d&&this._updateTaskCount(e,1),e.state==k&&e._transitionTo(h,k),e}scheduleMicroTask(e,d,O,N){return this.scheduleTask(new T(F,e,d,O,N,void 0))}scheduleMacroTask(e,d,O,N,D){return this.scheduleTask(new T(y,e,d,O,N,D))}scheduleEventTask(e,d,O,N,D){return this.scheduleTask(new T(W,e,d,O,N,D))}cancelTask(e){if(e.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(e.zone||K).name+"; Execution: "+this.name+")");if(!(e.state!==h&&e.state!==H)){e._transitionTo(G,h,H);try{this._zoneDelegate.cancelTask(this,e)}catch(d){throw e._transitionTo(Y,G),this._zoneDelegate.handleError(this,d),d}return this._updateTaskCount(e,-1),e._transitionTo(X,G),e.runCount=-1,e}}_updateTaskCount(e,d){let O=e._zoneDelegates;d==-1&&(e._zoneDelegates=null);for(let N=0;N<O.length;N++)O[N]._updateTaskCount(e.type,d)}};_.__symbol__=ee;let M=_;return M})(),s={name:"",onHasTask:(M,_,c,e)=>M.hasTask(c,e),onScheduleTask:(M,_,c,e)=>M.scheduleTask(c,e),onInvokeTask:(M,_,c,e,d,O)=>M.invokeTask(c,e,d,O),onCancelTask:(M,_,c,e)=>M.cancelTask(c,e)};class f{get zone(){return this._zone}constructor(_,c,e){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this._zone=_,this._parentDelegate=c,this._forkZS=e&&(e&&e.onFork?e:c._forkZS),this._forkDlgt=e&&(e.onFork?c:c._forkDlgt),this._forkCurrZone=e&&(e.onFork?this._zone:c._forkCurrZone),this._interceptZS=e&&(e.onIntercept?e:c._interceptZS),this._interceptDlgt=e&&(e.onIntercept?c:c._interceptDlgt),this._interceptCurrZone=e&&(e.onIntercept?this._zone:c._interceptCurrZone),this._invokeZS=e&&(e.onInvoke?e:c._invokeZS),this._invokeDlgt=e&&(e.onInvoke?c:c._invokeDlgt),this._invokeCurrZone=e&&(e.onInvoke?this._zone:c._invokeCurrZone),this._handleErrorZS=e&&(e.onHandleError?e:c._handleErrorZS),this._handleErrorDlgt=e&&(e.onHandleError?c:c._handleErrorDlgt),this._handleErrorCurrZone=e&&(e.onHandleError?this._zone:c._handleErrorCurrZone),this._scheduleTaskZS=e&&(e.onScheduleTask?e:c._scheduleTaskZS),this._scheduleTaskDlgt=e&&(e.onScheduleTask?c:c._scheduleTaskDlgt),this._scheduleTaskCurrZone=e&&(e.onScheduleTask?this._zone:c._scheduleTaskCurrZone),this._invokeTaskZS=e&&(e.onInvokeTask?e:c._invokeTaskZS),this._invokeTaskDlgt=e&&(e.onInvokeTask?c:c._invokeTaskDlgt),this._invokeTaskCurrZone=e&&(e.onInvokeTask?this._zone:c._invokeTaskCurrZone),this._cancelTaskZS=e&&(e.onCancelTask?e:c._cancelTaskZS),this._cancelTaskDlgt=e&&(e.onCancelTask?c:c._cancelTaskDlgt),this._cancelTaskCurrZone=e&&(e.onCancelTask?this._zone:c._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;let d=e&&e.onHasTask,O=c&&c._hasTaskZS;(d||O)&&(this._hasTaskZS=d?e:s,this._hasTaskDlgt=c,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,e.onScheduleTask||(this._scheduleTaskZS=s,this._scheduleTaskDlgt=c,this._scheduleTaskCurrZone=this._zone),e.onInvokeTask||(this._invokeTaskZS=s,this._invokeTaskDlgt=c,this._invokeTaskCurrZone=this._zone),e.onCancelTask||(this._cancelTaskZS=s,this._cancelTaskDlgt=c,this._cancelTaskCurrZone=this._zone))}fork(_,c){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,_,c):new n(_,c)}intercept(_,c,e){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,_,c,e):c}invoke(_,c,e,d,O){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,_,c,e,d,O):c.apply(e,d)}handleError(_,c){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,_,c):!0}scheduleTask(_,c){let e=c;if(this._scheduleTaskZS)this._hasTaskZS&&e._zoneDelegates.push(this._hasTaskDlgtOwner),e=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,_,c),e||(e=c);else if(c.scheduleFn)c.scheduleFn(c);else if(c.type==F)z(c);else throw new Error("Task is missing scheduleFn.");return e}invokeTask(_,c,e,d){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,_,c,e,d):c.callback.apply(e,d)}cancelTask(_,c){let e;if(this._cancelTaskZS)e=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,_,c);else{if(!c.cancelFn)throw Error("Task is not cancelable");e=c.cancelFn(c)}return e}hasTask(_,c){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,_,c)}catch(e){this.handleError(_,e)}}_updateTaskCount(_,c){let e=this._taskCounts,d=e[_],O=e[_]=d+c;if(O<0)throw new Error("More tasks executed then were scheduled.");if(d==0||O==0){let N={microTask:e.microTask>0,macroTask:e.macroTask>0,eventTask:e.eventTask>0,change:_};this.hasTask(this._zone,N)}}}class T{constructor(_,c,e,d,O,N){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=_,this.source=c,this.data=d,this.scheduleFn=O,this.cancelFn=N,!e)throw new Error("callback is not defined");this.callback=e;let D=this;_===W&&d&&d.useG?this.invoke=T.invokeTask:this.invoke=function(){return T.invokeTask.call(ce,D,this,arguments)}}static invokeTask(_,c,e){_||(_=this),Q++;try{return _.runCount++,_.zone.runTask(_,c,e)}finally{Q==1&&J(),Q--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(X,k)}_transitionTo(_,c,e){if(this._state===c||this._state===e)this._state=_,_==X&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${_}', expecting state '${c}'${e?" or '"+e+"'":""}, was '${this._state}'.`)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}let g=ee("setTimeout"),p=ee("Promise"),C=ee("then"),E=[],P=!1,j;function V(M){if(j||ce[p]&&(j=ce[p].resolve(0)),j){let _=j[C];_||(_=j.then),_.call(j,M)}else ce[g](M,0)}function z(M){Q===0&&E.length===0&&V(J),M&&E.push(M)}function J(){if(!P){for(P=!0;E.length;){let M=E;E=[];for(let _=0;_<M.length;_++){let c=M[_];try{c.zone.runTask(c,null,null)}catch(e){w.onUnhandledError(e)}}}w.microtaskDrainDone(),P=!1}}let K={name:"NO ZONE"},X="notScheduled",k="scheduling",h="scheduled",H="running",G="canceling",Y="unknown",F="microTask",y="macroTask",W="eventTask",L={},w={symbol:ee,currentZoneFrame:()=>b,onUnhandledError:q,microtaskDrainDone:q,scheduleMicroTask:z,showUncaughtError:()=>!n[ee("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:q,patchMethod:()=>q,bindArguments:()=>[],patchThen:()=>q,patchMacroTask:()=>q,patchEventPrototype:()=>q,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>q,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>q,wrapWithCurrentZone:()=>q,filterProperties:()=>[],attachOriginToPatched:()=>q,_redefineProperty:()=>q,patchCallbacks:()=>q,nativeScheduleMicroTask:V},b={parent:null,zone:new n(null,null)},S=null,Q=0;function q(){}return i("Zone","Zone"),n}function _t(){let t=globalThis,r=t[ee("forceDuplicateZoneCheck")]===!0;if(t.Zone&&(r||typeof t.Zone.__symbol__!="function"))throw new Error("Zone already loaded.");return t.Zone??=dt(),t.Zone}var be=Object.getOwnPropertyDescriptor,Ae=Object.defineProperty,je=Object.getPrototypeOf,Et=Object.create,Tt=Array.prototype.slice,He="addEventListener",xe="removeEventListener",Le=ee(He),Ie=ee(xe),le="true",ue="false",Pe=ee("");function Ve(t,r){return Zone.current.wrap(t,r)}function Ge(t,r,i,n,s){return Zone.current.scheduleMacroTask(t,r,i,n,s)}var x=ee,De=typeof window<"u",pe=De?window:void 0,$=De&&pe||globalThis,gt="removeAttribute";function Fe(t,r){for(let i=t.length-1;i>=0;i--)typeof t[i]=="function"&&(t[i]=Ve(t[i],r+"_"+i));return t}function yt(t,r){let i=t.constructor.name;for(let n=0;n<r.length;n++){let s=r[n],f=t[s];if(f){let T=be(t,s);if(!tt(T))continue;t[s]=(g=>{let p=function(){return g.apply(this,Fe(arguments,i+"."+s))};return he(p,g),p})(f)}}}function tt(t){return t?t.writable===!1?!1:!(typeof t.get=="function"&&typeof t.set>"u"):!0}var nt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Se=!("nw"in $)&&typeof $.process<"u"&&$.process.toString()==="[object process]",Be=!Se&&!nt&&!!(De&&pe.HTMLElement),rt=typeof $.process<"u"&&$.process.toString()==="[object process]"&&!nt&&!!(De&&pe.HTMLElement),Ce={},mt=x("enable_beforeunload"),Ye=function(t){if(t=t||$.event,!t)return;let r=Ce[t.type];r||(r=Ce[t.type]=x("ON_PROPERTY"+t.type));let i=this||t.target||$,n=i[r],s;if(Be&&i===pe&&t.type==="error"){let f=t;s=n&&n.call(this,f.message,f.filename,f.lineno,f.colno,f.error),s===!0&&t.preventDefault()}else s=n&&n.apply(this,arguments),t.type==="beforeunload"&&$[mt]&&typeof s=="string"?t.returnValue=s:s!=null&&!s&&t.preventDefault();return s};function $e(t,r,i){let n=be(t,r);if(!n&&i&&be(i,r)&&(n={enumerable:!0,configurable:!0}),!n||!n.configurable)return;let s=x("on"+r+"patched");if(t.hasOwnProperty(s)&&t[s])return;delete n.writable,delete n.value;let f=n.get,T=n.set,g=r.slice(2),p=Ce[g];p||(p=Ce[g]=x("ON_PROPERTY"+g)),n.set=function(C){let E=this;if(!E&&t===$&&(E=$),!E)return;typeof E[p]=="function"&&E.removeEventListener(g,Ye),T&&T.call(E,null),E[p]=C,typeof C=="function"&&E.addEventListener(g,Ye,!1)},n.get=function(){let C=this;if(!C&&t===$&&(C=$),!C)return null;let E=C[p];if(E)return E;if(f){let P=f.call(this);if(P)return n.set.call(this,P),typeof C[gt]=="function"&&C.removeAttribute(r),P}return null},Ae(t,r,n),t[s]=!0}function ot(t,r,i){if(r)for(let n=0;n<r.length;n++)$e(t,"on"+r[n],i);else{let n=[];for(let s in t)s.slice(0,2)=="on"&&n.push(s);for(let s=0;s<n.length;s++)$e(t,n[s],i)}}var oe=x("originalInstance");function ve(t){let r=$[t];if(!r)return;$[x(t)]=r,$[t]=function(){let s=Fe(arguments,t);switch(s.length){case 0:this[oe]=new r;break;case 1:this[oe]=new r(s[0]);break;case 2:this[oe]=new r(s[0],s[1]);break;case 3:this[oe]=new r(s[0],s[1],s[2]);break;case 4:this[oe]=new r(s[0],s[1],s[2],s[3]);break;default:throw new Error("Arg list too long.")}},he($[t],r);let i=new r(function(){}),n;for(n in i)t==="XMLHttpRequest"&&n==="responseBlob"||function(s){typeof i[s]=="function"?$[t].prototype[s]=function(){return this[oe][s].apply(this[oe],arguments)}:Ae($[t].prototype,s,{set:function(f){typeof f=="function"?(this[oe][s]=Ve(f,t+"."+s),he(this[oe][s],f)):this[oe][s]=f},get:function(){return this[oe][s]}})}(n);for(n in r)n!=="prototype"&&r.hasOwnProperty(n)&&($[t][n]=r[n])}function fe(t,r,i){let n=t;for(;n&&!n.hasOwnProperty(r);)n=je(n);!n&&t[r]&&(n=t);let s=x(r),f=null;if(n&&(!(f=n[s])||!n.hasOwnProperty(s))){f=n[s]=n[r];let T=n&&be(n,r);if(tt(T)){let g=i(f,s,r);n[r]=function(){return g(this,arguments)},he(n[r],f)}}return f}function pt(t,r,i){let n=null;function s(f){let T=f.data;return T.args[T.cbIdx]=function(){f.invoke.apply(this,arguments)},n.apply(T.target,T.args),f}n=fe(t,r,f=>function(T,g){let p=i(T,g);return p.cbIdx>=0&&typeof g[p.cbIdx]=="function"?Ge(p.name,g[p.cbIdx],p,s):f.apply(T,g)})}function he(t,r){t[x("OriginalDelegate")]=r}var Je=!1,Me=!1;function kt(){try{let t=pe.navigator.userAgent;if(t.indexOf("MSIE ")!==-1||t.indexOf("Trident/")!==-1)return!0}catch{}return!1}function vt(){if(Je)return Me;Je=!0;try{let t=pe.navigator.userAgent;(t.indexOf("MSIE ")!==-1||t.indexOf("Trident/")!==-1||t.indexOf("Edge/")!==-1)&&(Me=!0)}catch{}return Me}function Ke(t){return typeof t=="function"}function Qe(t){return typeof t=="number"}var me=!1;if(typeof window<"u")try{let t=Object.defineProperty({},"passive",{get:function(){me=!0}});window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch{me=!1}var bt={useG:!0},te={},st={},it=new RegExp("^"+Pe+"(\\w+)(true|false)$"),ct=x("propagationStopped");function at(t,r){let i=(r?r(t):t)+ue,n=(r?r(t):t)+le,s=Pe+i,f=Pe+n;te[t]={},te[t][ue]=s,te[t][le]=f}function Pt(t,r,i,n){let s=n&&n.add||He,f=n&&n.rm||xe,T=n&&n.listeners||"eventListeners",g=n&&n.rmAll||"removeAllListeners",p=x(s),C="."+s+":",E="prependListener",P="."+E+":",j=function(k,h,H){if(k.isRemoved)return;let G=k.callback;typeof G=="object"&&G.handleEvent&&(k.callback=y=>G.handleEvent(y),k.originalDelegate=G);let Y;try{k.invoke(k,h,[H])}catch(y){Y=y}let F=k.options;if(F&&typeof F=="object"&&F.once){let y=k.originalDelegate?k.originalDelegate:k.callback;h[f].call(h,H.type,y,F)}return Y};function V(k,h,H){if(h=h||t.event,!h)return;let G=k||h.target||t,Y=G[te[h.type][H?le:ue]];if(Y){let F=[];if(Y.length===1){let y=j(Y[0],G,h);y&&F.push(y)}else{let y=Y.slice();for(let W=0;W<y.length&&!(h&&h[ct]===!0);W++){let L=j(y[W],G,h);L&&F.push(L)}}if(F.length===1)throw F[0];for(let y=0;y<F.length;y++){let W=F[y];r.nativeScheduleMicroTask(()=>{throw W})}}}let z=function(k){return V(this,k,!1)},J=function(k){return V(this,k,!0)};function K(k,h){if(!k)return!1;let H=!0;h&&h.useG!==void 0&&(H=h.useG);let G=h&&h.vh,Y=!0;h&&h.chkDup!==void 0&&(Y=h.chkDup);let F=!1;h&&h.rt!==void 0&&(F=h.rt);let y=k;for(;y&&!y.hasOwnProperty(s);)y=je(y);if(!y&&k[s]&&(y=k),!y||y[p])return!1;let W=h&&h.eventNameToString,L={},w=y[p]=y[s],b=y[x(f)]=y[f],S=y[x(T)]=y[T],Q=y[x(g)]=y[g],q;h&&h.prepend&&(q=y[x(h.prepend)]=y[h.prepend]);function M(o,u){return!me&&typeof o=="object"&&o?!!o.capture:!me||!u?o:typeof o=="boolean"?{capture:o,passive:!0}:o?typeof o=="object"&&o.passive!==!1?{...o,passive:!0}:o:{passive:!0}}let _=function(o){if(!L.isExisting)return w.call(L.target,L.eventName,L.capture?J:z,L.options)},c=function(o){if(!o.isRemoved){let u=te[o.eventName],v;u&&(v=u[o.capture?le:ue]);let R=v&&o.target[v];if(R){for(let m=0;m<R.length;m++)if(R[m]===o){R.splice(m,1),o.isRemoved=!0,o.removeAbortListener&&(o.removeAbortListener(),o.removeAbortListener=null),R.length===0&&(o.allRemoved=!0,o.target[v]=null);break}}}if(o.allRemoved)return b.call(o.target,o.eventName,o.capture?J:z,o.options)},e=function(o){return w.call(L.target,L.eventName,o.invoke,L.options)},d=function(o){return q.call(L.target,L.eventName,o.invoke,L.options)},O=function(o){return b.call(o.target,o.eventName,o.invoke,o.options)},N=H?_:e,D=H?c:O,_e=function(o,u){let v=typeof u;return v==="function"&&o.callback===u||v==="object"&&o.originalDelegate===u},ae=h&&h.diff?h.diff:_e,ne=Zone[x("UNPATCHED_EVENTS")],Ee=t[x("PASSIVE_EVENTS")];function l(o){if(typeof o=="object"&&o!==null){let u={...o};return o.signal&&(u.signal=o.signal),u}return o}let a=function(o,u,v,R,m=!1,I=!1){return function(){let Z=this||t,A=arguments[0];h&&h.transferEventName&&(A=h.transferEventName(A));let B=arguments[1];if(!B)return o.apply(this,arguments);if(Se&&A==="uncaughtException")return o.apply(this,arguments);let U=!1;if(typeof B!="function"){if(!B.handleEvent)return o.apply(this,arguments);U=!0}if(G&&!G(o,B,Z,arguments))return;let de=me&&!!Ee&&Ee.indexOf(A)!==-1,se=l(M(arguments[2],de)),Te=se?.signal;if(Te?.aborted)return;if(ne){for(let ie=0;ie<ne.length;ie++)if(A===ne[ie])return de?o.call(Z,A,B,se):o.apply(this,arguments)}let Oe=se?typeof se=="boolean"?!0:se.capture:!1,Ue=se&&typeof se=="object"?se.once:!1,ht=Zone.current,Ne=te[A];Ne||(at(A,W),Ne=te[A]);let ze=Ne[Oe?le:ue],ge=Z[ze],We=!1;if(ge){if(We=!0,Y){for(let ie=0;ie<ge.length;ie++)if(ae(ge[ie],B))return}}else ge=Z[ze]=[];let we,qe=Z.constructor.name,Xe=st[qe];Xe&&(we=Xe[A]),we||(we=qe+u+(W?W(A):A)),L.options=se,Ue&&(L.options.once=!1),L.target=Z,L.capture=Oe,L.eventName=A,L.isExisting=We;let ke=H?bt:void 0;ke&&(ke.taskData=L),Te&&(L.options.signal=void 0);let re=ht.scheduleEventTask(we,B,ke,v,R);if(Te){L.options.signal=Te;let ie=()=>re.zone.cancelTask(re);o.call(Te,"abort",ie,{once:!0}),re.removeAbortListener=()=>Te.removeEventListener("abort",ie)}if(L.target=null,ke&&(ke.taskData=null),Ue&&(L.options.once=!0),!me&&typeof re.options=="boolean"||(re.options=se),re.target=Z,re.capture=Oe,re.eventName=A,U&&(re.originalDelegate=B),I?ge.unshift(re):ge.push(re),m)return Z}};return y[s]=a(w,C,N,D,F),q&&(y[E]=a(q,P,d,D,F,!0)),y[f]=function(){let o=this||t,u=arguments[0];h&&h.transferEventName&&(u=h.transferEventName(u));let v=arguments[2],R=v?typeof v=="boolean"?!0:v.capture:!1,m=arguments[1];if(!m)return b.apply(this,arguments);if(G&&!G(b,m,o,arguments))return;let I=te[u],Z;I&&(Z=I[R?le:ue]);let A=Z&&o[Z];if(A)for(let B=0;B<A.length;B++){let U=A[B];if(ae(U,m)){if(A.splice(B,1),U.isRemoved=!0,A.length===0&&(U.allRemoved=!0,o[Z]=null,!R&&typeof u=="string")){let de=Pe+"ON_PROPERTY"+u;o[de]=null}return U.zone.cancelTask(U),F?o:void 0}}return b.apply(this,arguments)},y[T]=function(){let o=this||t,u=arguments[0];h&&h.transferEventName&&(u=h.transferEventName(u));let v=[],R=lt(o,W?W(u):u);for(let m=0;m<R.length;m++){let I=R[m],Z=I.originalDelegate?I.originalDelegate:I.callback;v.push(Z)}return v},y[g]=function(){let o=this||t,u=arguments[0];if(u){h&&h.transferEventName&&(u=h.transferEventName(u));let v=te[u];if(v){let R=v[ue],m=v[le],I=o[R],Z=o[m];if(I){let A=I.slice();for(let B=0;B<A.length;B++){let U=A[B],de=U.originalDelegate?U.originalDelegate:U.callback;this[f].call(this,u,de,U.options)}}if(Z){let A=Z.slice();for(let B=0;B<A.length;B++){let U=A[B],de=U.originalDelegate?U.originalDelegate:U.callback;this[f].call(this,u,de,U.options)}}}}else{let v=Object.keys(o);for(let R=0;R<v.length;R++){let m=v[R],I=it.exec(m),Z=I&&I[1];Z&&Z!=="removeListener"&&this[g].call(this,Z)}this[g].call(this,"removeListener")}if(F)return this},he(y[s],w),he(y[f],b),Q&&he(y[g],Q),S&&he(y[T],S),!0}let X=[];for(let k=0;k<i.length;k++)X[k]=K(i[k],n);return X}function lt(t,r){if(!r){let f=[];for(let T in t){let g=it.exec(T),p=g&&g[1];if(p&&(!r||p===r)){let C=t[T];if(C)for(let E=0;E<C.length;E++)f.push(C[E])}}return f}let i=te[r];i||(at(r),i=te[r]);let n=t[i[ue]],s=t[i[le]];return n?s?n.concat(s):n.slice():s?s.slice():[]}function wt(t,r){let i=t.Event;i&&i.prototype&&r.patchMethod(i.prototype,"stopImmediatePropagation",n=>function(s,f){s[ct]=!0,n&&n.apply(s,f)})}function Rt(t,r){r.patchMethod(t,"queueMicrotask",i=>function(n,s){Zone.current.scheduleMicroTask("queueMicrotask",s[0])})}var Re=x("zoneTask");function ye(t,r,i,n){let s=null,f=null;r+=n,i+=n;let T={};function g(C){let E=C.data;E.args[0]=function(){return C.invoke.apply(this,arguments)};let P=s.apply(t,E.args);return Qe(P)?E.handleId=P:(E.handle=P,E.isRefreshable=Ke(P.refresh)),C}function p(C){let{handle:E,handleId:P}=C.data;return f.call(t,E??P)}s=fe(t,r,C=>function(E,P){if(Ke(P[0])){let j={isRefreshable:!1,isPeriodic:n==="Interval",delay:n==="Timeout"||n==="Interval"?P[1]||0:void 0,args:P},V=P[0];P[0]=function(){try{return V.apply(this,arguments)}finally{let{handle:H,handleId:G,isPeriodic:Y,isRefreshable:F}=j;!Y&&!F&&(G?delete T[G]:H&&(H[Re]=null))}};let z=Ge(r,P[0],j,g,p);if(!z)return z;let{handleId:J,handle:K,isRefreshable:X,isPeriodic:k}=z.data;if(J)T[J]=z;else if(K&&(K[Re]=z,X&&!k)){let h=K.refresh;K.refresh=function(){let{zone:H,state:G}=z;return G==="notScheduled"?(z._state="scheduled",H._updateTaskCount(z,1)):G==="running"&&(z._state="scheduling"),h.call(this)}}return K??J??z}else return C.apply(t,P)}),f=fe(t,i,C=>function(E,P){let j=P[0],V;Qe(j)?(V=T[j],delete T[j]):(V=j?.[Re],V?j[Re]=null:V=j),V?.type?V.cancelFn&&V.zone.cancelTask(V):C.apply(t,P)})}function Ct(t,r){let{isBrowser:i,isMix:n}=r.getGlobalObjects();if(!i&&!n||!t.customElements||!("customElements"in t))return;let s=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"];r.patchCallbacks(r,t.customElements,"customElements","define",s)}function Dt(t,r){if(Zone[r.symbol("patchEventTarget")])return;let{eventNames:i,zoneSymbolEventNames:n,TRUE_STR:s,FALSE_STR:f,ZONE_SYMBOL_PREFIX:T}=r.getGlobalObjects();for(let p=0;p<i.length;p++){let C=i[p],E=C+f,P=C+s,j=T+E,V=T+P;n[C]={},n[C][f]=j,n[C][s]=V}let g=t.EventTarget;if(!(!g||!g.prototype))return r.patchEventTarget(t,r,[g&&g.prototype]),!0}function St(t,r){r.patchEventPrototype(t,r)}function ut(t,r,i){if(!i||i.length===0)return r;let n=i.filter(f=>f.target===t);if(!n||n.length===0)return r;let s=n[0].ignoreProperties;return r.filter(f=>s.indexOf(f)===-1)}function et(t,r,i,n){if(!t)return;let s=ut(t,r,i);ot(t,s,n)}function Ze(t){return Object.getOwnPropertyNames(t).filter(r=>r.startsWith("on")&&r.length>2).map(r=>r.substring(2))}function Ot(t,r){if(Se&&!rt||Zone[t.symbol("patchEvents")])return;let i=r.__Zone_ignore_on_properties,n=[];if(Be){let s=window;n=n.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);let f=kt()?[{target:s,ignoreProperties:["error"]}]:[];et(s,Ze(s),i&&i.concat(f),je(s))}n=n.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let s=0;s<n.length;s++){let f=r[n[s]];f&&f.prototype&&et(f.prototype,Ze(f.prototype),i)}}function Nt(t){t.__load_patch("legacy",r=>{let i=r[t.__symbol__("legacyPatch")];i&&i()}),t.__load_patch("timers",r=>{let i="set",n="clear";ye(r,i,n,"Timeout"),ye(r,i,n,"Interval"),ye(r,i,n,"Immediate")}),t.__load_patch("requestAnimationFrame",r=>{ye(r,"request","cancel","AnimationFrame"),ye(r,"mozRequest","mozCancel","AnimationFrame"),ye(r,"webkitRequest","webkitCancel","AnimationFrame")}),t.__load_patch("blocking",(r,i)=>{let n=["alert","prompt","confirm"];for(let s=0;s<n.length;s++){let f=n[s];fe(r,f,(T,g,p)=>function(C,E){return i.current.run(T,r,E,p)})}}),t.__load_patch("EventTarget",(r,i,n)=>{St(r,n),Dt(r,n);let s=r.XMLHttpRequestEventTarget;s&&s.prototype&&n.patchEventTarget(r,n,[s.prototype])}),t.__load_patch("MutationObserver",(r,i,n)=>{ve("MutationObserver"),ve("WebKitMutationObserver")}),t.__load_patch("IntersectionObserver",(r,i,n)=>{ve("IntersectionObserver")}),t.__load_patch("FileReader",(r,i,n)=>{ve("FileReader")}),t.__load_patch("on_property",(r,i,n)=>{Ot(n,r)}),t.__load_patch("customElements",(r,i,n)=>{Ct(r,n)}),t.__load_patch("XHR",(r,i)=>{C(r);let n=x("xhrTask"),s=x("xhrSync"),f=x("xhrListener"),T=x("xhrScheduled"),g=x("xhrURL"),p=x("xhrErrorBeforeScheduled");function C(E){let P=E.XMLHttpRequest;if(!P)return;let j=P.prototype;function V(w){return w[n]}let z=j[Le],J=j[Ie];if(!z){let w=E.XMLHttpRequestEventTarget;if(w){let b=w.prototype;z=b[Le],J=b[Ie]}}let K="readystatechange",X="scheduled";function k(w){let b=w.data,S=b.target;S[T]=!1,S[p]=!1;let Q=S[f];z||(z=S[Le],J=S[Ie]),Q&&J.call(S,K,Q);let q=S[f]=()=>{if(S.readyState===S.DONE)if(!b.aborted&&S[T]&&w.state===X){let _=S[i.__symbol__("loadfalse")];if(S.status!==0&&_&&_.length>0){let c=w.invoke;w.invoke=function(){let e=S[i.__symbol__("loadfalse")];for(let d=0;d<e.length;d++)e[d]===w&&e.splice(d,1);!b.aborted&&w.state===X&&c.call(w)},_.push(w)}else w.invoke()}else!b.aborted&&S[T]===!1&&(S[p]=!0)};return z.call(S,K,q),S[n]||(S[n]=w),W.apply(S,b.args),S[T]=!0,w}function h(){}function H(w){let b=w.data;return b.aborted=!0,L.apply(b.target,b.args)}let G=fe(j,"open",()=>function(w,b){return w[s]=b[2]==!1,w[g]=b[1],G.apply(w,b)}),Y="XMLHttpRequest.send",F=x("fetchTaskAborting"),y=x("fetchTaskScheduling"),W=fe(j,"send",()=>function(w,b){if(i.current[y]===!0||w[s])return W.apply(w,b);{let S={target:w,url:w[g],isPeriodic:!1,args:b,aborted:!1},Q=Ge(Y,h,S,k,H);w&&w[p]===!0&&!S.aborted&&Q.state===X&&Q.invoke()}}),L=fe(j,"abort",()=>function(w,b){let S=V(w);if(S&&typeof S.type=="string"){if(S.cancelFn==null||S.data&&S.data.aborted)return;S.zone.cancelTask(S)}else if(i.current[F]===!0)return L.apply(w,b)})}}),t.__load_patch("geolocation",r=>{r.navigator&&r.navigator.geolocation&&yt(r.navigator.geolocation,["getCurrentPosition","watchPosition"])}),t.__load_patch("PromiseRejectionEvent",(r,i)=>{function n(s){return function(f){lt(r,s).forEach(g=>{let p=r.PromiseRejectionEvent;if(p){let C=new p(s,{promise:f.promise,reason:f.rejection});g.invoke(C)}})}}r.PromiseRejectionEvent&&(i[x("unhandledPromiseRejectionHandler")]=n("unhandledrejection"),i[x("rejectionHandledHandler")]=n("rejectionhandled"))}),t.__load_patch("queueMicrotask",(r,i,n)=>{Rt(r,n)})}function Lt(t){t.__load_patch("ZoneAwarePromise",(r,i,n)=>{let s=Object.getOwnPropertyDescriptor,f=Object.defineProperty;function T(l){if(l&&l.toString===Object.prototype.toString){let a=l.constructor&&l.constructor.name;return(a||"")+": "+JSON.stringify(l)}return l?l.toString():Object.prototype.toString.call(l)}let g=n.symbol,p=[],C=r[g("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,E=g("Promise"),P=g("then"),j="__creationTrace__";n.onUnhandledError=l=>{if(n.showUncaughtError()){let a=l&&l.rejection;a?console.error("Unhandled Promise rejection:",a instanceof Error?a.message:a,"; Zone:",l.zone.name,"; Task:",l.task&&l.task.source,"; Value:",a,a instanceof Error?a.stack:void 0):console.error(l)}},n.microtaskDrainDone=()=>{for(;p.length;){let l=p.shift();try{l.zone.runGuarded(()=>{throw l.throwOriginal?l.rejection:l})}catch(a){z(a)}}};let V=g("unhandledPromiseRejectionHandler");function z(l){n.onUnhandledError(l);try{let a=i[V];typeof a=="function"&&a.call(this,l)}catch{}}function J(l){return l&&l.then}function K(l){return l}function X(l){return D.reject(l)}let k=g("state"),h=g("value"),H=g("finally"),G=g("parentPromiseValue"),Y=g("parentPromiseState"),F="Promise.then",y=null,W=!0,L=!1,w=0;function b(l,a){return o=>{try{M(l,a,o)}catch(u){M(l,!1,u)}}}let S=function(){let l=!1;return function(o){return function(){l||(l=!0,o.apply(null,arguments))}}},Q="Promise resolved with itself",q=g("currentTaskTrace");function M(l,a,o){let u=S();if(l===o)throw new TypeError(Q);if(l[k]===y){let v=null;try{(typeof o=="object"||typeof o=="function")&&(v=o&&o.then)}catch(R){return u(()=>{M(l,!1,R)})(),l}if(a!==L&&o instanceof D&&o.hasOwnProperty(k)&&o.hasOwnProperty(h)&&o[k]!==y)c(o),M(l,o[k],o[h]);else if(a!==L&&typeof v=="function")try{v.call(o,u(b(l,a)),u(b(l,!1)))}catch(R){u(()=>{M(l,!1,R)})()}else{l[k]=a;let R=l[h];if(l[h]=o,l[H]===H&&a===W&&(l[k]=l[Y],l[h]=l[G]),a===L&&o instanceof Error){let m=i.currentTask&&i.currentTask.data&&i.currentTask.data[j];m&&f(o,q,{configurable:!0,enumerable:!1,writable:!0,value:m})}for(let m=0;m<R.length;)e(l,R[m++],R[m++],R[m++],R[m++]);if(R.length==0&&a==L){l[k]=w;let m=o;try{throw new Error("Uncaught (in promise): "+T(o)+(o&&o.stack?`
|
|
2
|
+
`+o.stack:""))}catch(I){m=I}C&&(m.throwOriginal=!0),m.rejection=o,m.promise=l,m.zone=i.current,m.task=i.currentTask,p.push(m),n.scheduleMicroTask()}}}return l}let _=g("rejectionHandledHandler");function c(l){if(l[k]===w){try{let a=i[_];a&&typeof a=="function"&&a.call(this,{rejection:l[h],promise:l})}catch{}l[k]=L;for(let a=0;a<p.length;a++)l===p[a].promise&&p.splice(a,1)}}function e(l,a,o,u,v){c(l);let R=l[k],m=R?typeof u=="function"?u:K:typeof v=="function"?v:X;a.scheduleMicroTask(F,()=>{try{let I=l[h],Z=!!o&&H===o[H];Z&&(o[G]=I,o[Y]=R);let A=a.run(m,void 0,Z&&m!==X&&m!==K?[]:[I]);M(o,!0,A)}catch(I){M(o,!1,I)}},o)}let d="function ZoneAwarePromise() { [native code] }",O=function(){},N=r.AggregateError;class D{static toString(){return d}static resolve(a){return a instanceof D?a:M(new this(null),W,a)}static reject(a){return M(new this(null),L,a)}static withResolvers(){let a={};return a.promise=new D((o,u)=>{a.resolve=o,a.reject=u}),a}static any(a){if(!a||typeof a[Symbol.iterator]!="function")return Promise.reject(new N([],"All promises were rejected"));let o=[],u=0;try{for(let m of a)u++,o.push(D.resolve(m))}catch{return Promise.reject(new N([],"All promises were rejected"))}if(u===0)return Promise.reject(new N([],"All promises were rejected"));let v=!1,R=[];return new D((m,I)=>{for(let Z=0;Z<o.length;Z++)o[Z].then(A=>{v||(v=!0,m(A))},A=>{R.push(A),u--,u===0&&(v=!0,I(new N(R,"All promises were rejected")))})})}static race(a){let o,u,v=new this((I,Z)=>{o=I,u=Z});function R(I){o(I)}function m(I){u(I)}for(let I of a)J(I)||(I=this.resolve(I)),I.then(R,m);return v}static all(a){return D.allWithCallback(a)}static allSettled(a){return(this&&this.prototype instanceof D?this:D).allWithCallback(a,{thenCallback:u=>({status:"fulfilled",value:u}),errorCallback:u=>({status:"rejected",reason:u})})}static allWithCallback(a,o){let u,v,R=new this((A,B)=>{u=A,v=B}),m=2,I=0,Z=[];for(let A of a){J(A)||(A=this.resolve(A));let B=I;try{A.then(U=>{Z[B]=o?o.thenCallback(U):U,m--,m===0&&u(Z)},U=>{o?(Z[B]=o.errorCallback(U),m--,m===0&&u(Z)):v(U)})}catch(U){v(U)}m++,I++}return m-=2,m===0&&u(Z),R}constructor(a){let o=this;if(!(o instanceof D))throw new Error("Must be an instanceof Promise.");o[k]=y,o[h]=[];try{let u=S();a&&a(u(b(o,W)),u(b(o,L)))}catch(u){M(o,!1,u)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return D}then(a,o){let u=this.constructor?.[Symbol.species];(!u||typeof u!="function")&&(u=this.constructor||D);let v=new u(O),R=i.current;return this[k]==y?this[h].push(R,v,a,o):e(this,R,v,a,o),v}catch(a){return this.then(null,a)}finally(a){let o=this.constructor?.[Symbol.species];(!o||typeof o!="function")&&(o=D);let u=new o(O);u[H]=H;let v=i.current;return this[k]==y?this[h].push(v,u,a,a):e(this,v,u,a,a),u}}D.resolve=D.resolve,D.reject=D.reject,D.race=D.race,D.all=D.all;let _e=r[E]=r.Promise;r.Promise=D;let ae=g("thenPatched");function ne(l){let a=l.prototype,o=s(a,"then");if(o&&(o.writable===!1||!o.configurable))return;let u=a.then;a[P]=u,l.prototype.then=function(v,R){return new D((I,Z)=>{u.call(this,I,Z)}).then(v,R)},l[ae]=!0}n.patchThen=ne;function Ee(l){return function(a,o){let u=l.apply(a,o);if(u instanceof D)return u;let v=u.constructor;return v[ae]||ne(v),u}}return _e&&(ne(_e),fe(r,"fetch",l=>Ee(l))),Promise[i.__symbol__("uncaughtPromiseErrors")]=p,D})}function It(t){t.__load_patch("toString",r=>{let i=Function.prototype.toString,n=x("OriginalDelegate"),s=x("Promise"),f=x("Error"),T=function(){if(typeof this=="function"){let E=this[n];if(E)return typeof E=="function"?i.call(E):Object.prototype.toString.call(E);if(this===Promise){let P=r[s];if(P)return i.call(P)}if(this===Error){let P=r[f];if(P)return i.call(P)}}return i.call(this)};T[n]=i,Function.prototype.toString=T;let g=Object.prototype.toString,p="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?p:g.call(this)}})}function Mt(t,r,i,n,s){let f=Zone.__symbol__(n);if(r[f])return;let T=r[f]=r[n];r[n]=function(g,p,C){return p&&p.prototype&&s.forEach(function(E){let P=`${i}.${n}::`+E,j=p.prototype;try{if(j.hasOwnProperty(E)){let V=t.ObjectGetOwnPropertyDescriptor(j,E);V&&V.value?(V.value=t.wrapWithCurrentZone(V.value,P),t._redefineProperty(p.prototype,E,V)):j[E]&&(j[E]=t.wrapWithCurrentZone(j[E],P))}else j[E]&&(j[E]=t.wrapWithCurrentZone(j[E],P))}catch{}}),T.call(r,g,p,C)},t.attachOriginToPatched(r[n],T)}function Zt(t){t.__load_patch("util",(r,i,n)=>{let s=Ze(r);n.patchOnProperties=ot,n.patchMethod=fe,n.bindArguments=Fe,n.patchMacroTask=pt;let f=i.__symbol__("BLACK_LISTED_EVENTS"),T=i.__symbol__("UNPATCHED_EVENTS");r[T]&&(r[f]=r[T]),r[f]&&(i[f]=i[T]=r[f]),n.patchEventPrototype=wt,n.patchEventTarget=Pt,n.isIEOrEdge=vt,n.ObjectDefineProperty=Ae,n.ObjectGetOwnPropertyDescriptor=be,n.ObjectCreate=Et,n.ArraySlice=Tt,n.patchClass=ve,n.wrapWithCurrentZone=Ve,n.filterProperties=ut,n.attachOriginToPatched=he,n._redefineProperty=Object.defineProperty,n.patchCallbacks=Mt,n.getGlobalObjects=()=>({globalSources:st,zoneSymbolEventNames:te,eventNames:s,isBrowser:Be,isMix:rt,isNode:Se,TRUE_STR:le,FALSE_STR:ue,ZONE_SYMBOL_PREFIX:Pe,ADD_EVENT_LISTENER_STR:He,REMOVE_EVENT_LISTENER_STR:xe})})}function At(t){Lt(t),It(t),Zt(t)}var ft=_t();At(ft);Nt(ft);
|