vendor: 34,094 bytes, line 1
1import{a as Us,b as js,e as qs,f as Vs,j as zs}from"./chunk-TYHNJDIL.js";import{Ba as oe,Ea as Hs,Fa as Bs,a as Ls,d as Ps,k as ot,wa as Fs}from"./chunk-FPGJCOAR.js";import{$ as tt,$a as te,A as ds,Aa as Vn,B as Fn,Bb as As,C as $,Da as nt,E as Hn,F as Cr,Fc as ei,G as Ae,H as Bn,I as hs,Jb as Ht,K as fs,M as Tr,N as fe,Nc as ti,O as U,Ob as Wn,P as se,Pa as _s,Pb as Yn,Q as P,Qb as Xn,Rb as Rs,Rc as be,S as O,Sb as Bt,Sc as Os,T as ps,Tb as Ut,Ua as it,Ub as Nr,Uc as Pe,V as f,Vb as re,W as R,Wb as _e,X as ms,Xb as ve,Xc as jt,Y as x,Ya as vs,Z as Lt,Za as B,Zb as Ns,_ as l,_a as N,_b as Ms,a as Ze,aa as gs,ab as Ft,b as os,bb as ge,c as Te,ca as ee,cb as Le,d as On,da as W,dd as ri,e as In,ea as Un,eb as st,ec as Mr,ed as ni,f as _,fa as jn,fb as zn,g as z,gb as bs,gc as kr,gd as Or,h as he,hd as Is,i as Q,ia as w,ib as Ar,id as ii,j as p,ja as S,jb as j,k as Ot,ka as pe,kb as M,kc as Kn,l as Ln,lb as q,lc as Zn,m as cs,ma as qn,mc as Qn,n as Qe,na as I,nb as Re,o as y,oa as xs,ob as ys,p as Je,pb as Rr,q as J,qa as rt,qb as Es,r as Sr,ra as ae,rb as $n,s as De,sb as ws,sc as at,ta as G,tb as Ss,u as ls,ub as Cs,uc as Jn,v as us,vc as ks,w as H,wa as Pt,wb as Gn,x as Pn,xb as Ts,y as et,ya as me,yb as xe,z as It,za as Dr,zb as Ds}from"./chunk-TU7EUU3B.js";import{a as h,b as k}from"./chunk-IMPBB4AK.js";var qt={production:!0,bucketName:"spark-websites",sparkCdnUrl:"https://spark-cdn-prod.bingosys.net",localhostAddress:"localhost:8000",APP_ENV_PATH_PREFIX:"production",DEV_BACKEND_HOST:"www.poundbingo.com",LOG_DEBUG:"0"};var g="primary",nr=Symbol("RouteTitle"),li=class{params;constructor(r){this.params=r||{}}has(r){return Object.prototype.hasOwnProperty.call(this.params,r)}get(r){if(this.has(r)){let e=this.params[r];return Array.isArray(e)?e[0]:e}return null}getAll(r){if(this.has(r)){let e=this.params[r];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function Be(t){return new li(t)}function Qs(t,r,e){let n=e.path.split("/");if(n.length>t.length||e.pathMatch==="full"&&(r.hasChildren()||n.length<t.length))return null;let i={};for(let s=0;s<n.length;s++){let a=n[s],o=t[s];if(a[0]===":")i[a.substring(1)]=o;else if(a!==o.path)return null}return{consumed:t.slice(0,n.length),posParams:i}}function lc(t,r){if(t.length!==r.length)return!1;for(let e=0;e<t.length;++e)if(!ce(t[e],r[e]))return!1;return!0}function ce(t,r){let e=t?ui(t):void 0,n=r?ui(r):void 0;if(!e||!n||e.length!=n.length)return!1;let i;for(let s=0;s<e.length;s++)if(i=e[s],!Js(t[i],r[i]))return!1;return!0}function ui(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function Js(t,r){if(Array.isArray(t)&&Array.isArray(r)){if(t.length!==r.length)return!1;let e=[...t].sort(),n=[...r].sort();return e.every((i,s)=>n[s]===i)}else return t===r}function ea(t){return t.length>0?t[t.length-1]:null}function Se(t){return Ln(t)?t:Cs(t)?Q(Promise.resolve(t)):p(t)}var uc={exact:ra,subset:na},ta={exact:dc,subset:hc,ignored:()=>!0};function $s(t,r,e){return uc[e.paths](t.root,r.root,e.matrixParams)&&ta[e.queryParams](t.queryParams,r.queryParams)&&!(e.fragment==="exact"&&t.fragment!==r.fragment)}function dc(t,r){return ce(t,r)}function ra(t,r,e){if(!Fe(t.segments,r.segments)||!Pr(t.segments,r.segments,e)||t.numberOfChildren!==r.numberOfChildren)return!1;for(let n in r.children)if(!t.children[n]||!ra(t.children[n],r.children[n],e))return!1;return!0}function hc(t,r){return Object.keys(r).length<=Object.keys(t).length&&Object.keys(r).every(e=>Js(t[e],r[e]))}function na(t,r,e){return ia(t,r,r.segments,e)}function ia(t,r,e,n){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!Fe(i,e)||r.hasChildren()||!Pr(i,e,n))}else if(t.segments.length===e.length){if(!Fe(t.segments,e)||!Pr(t.segments,e,n))return!1;for(let i in r.children)if(!t.children[i]||!na(t.children[i],r.children[i],n))return!1;return!0}else{let i=e.slice(0,t.segments.length),s=e.slice(t.segments.length);return!Fe(t.segments,i)||!Pr(t.segments,i,n)||!t.children[g]?!1:ia(t.children[g],r,s,n)}}function Pr(t,r,e){return r.every((n,i)=>ta[e](t[i].parameters,n.parameters))}var ue=class{root;queryParams;fragment;_queryParamMap;constructor(r=new b([],{}),e={},n=null){this.root=r,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap??=Be(this.queryParams),this._queryParamMap}toString(){return mc.serialize(this)}},b=class{segments;children;parent=null;constructor(r,e){this.segments=r,this.children=e,Object.values(e).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Fr(this)}},Ne=class{path;parameters;_parameterMap;constructor(r,e){this.path=r,this.parameters=e}get parameterMap(){return this._parameterMap??=Be(this.parameters),this._parameterMap}toString(){return aa(this)}};function fc(t,r){return Fe(t,r)&&t.every((e,n)=>ce(e.parameters,r[n].parameters))}function Fe(t,r){return t.length!==r.length?!1:t.every((e,n)=>e.path===r[n].path)}function pc(t,r){let e=[];return Object.entries(t.children).forEach(([n,i])=>{n===g&&(e=e.concat(r(i,n)))}),Object.entries(t.children).forEach(([n,i])=>{n!==g&&(e=e.concat(r(i,n)))}),e}var ir=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=f({token:t,factory:()=>new Ue,providedIn:"root"})}return t})(),Ue=class{parse(r){let e=new hi(r);return new ue(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(r){let e=`/${Vt(r.root,!0)}`,n=_c(r.queryParams),i=typeof r.fragment=="string"?`#${gc(r.fragment)}`:"";return`${e}${n}${i}`}},mc=new Ue;function Fr(t){return t.segments.map(r=>aa(r)).join("/")}function Vt(t,r){if(!t.hasChildren())return Fr(t);if(r){let e=t.children[g]?Vt(t.children[g],!1):"",n=[];return Object.entries(t.children).forEach(([i,s])=>{i!==g&&n.push(`${i}:${Vt(s,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}else{let e=pc(t,(n,i)=>i===g?[Vt(t.children[g],!1)]:[`${i}:${Vt(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[g]!=null?`${Fr(t)}/${e[0]}`:`${Fr(t)}/(${e.join("//")})`}}function sa(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ir(t){return sa(t).replace(/%3B/gi,";")}function gc(t){return encodeURI(t)}function di(t){return sa(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Hr(t){return decodeURIComponent(t)}function Gs(t){return Hr(t.replace(/\+/g,"%20"))}function aa(t){return`${di(t.path)}${xc(t.parameters)}`}function xc(t){return Object.entries(t).map(([r,e])=>`;${di(r)}=${di(e)}`).join("")}function _c(t){let r=Object.entries(t).map(([e,n])=>Array.isArray(n)?n.map(i=>`${Ir(e)}=${Ir(i)}`).join("&"):`${Ir(e)}=${Ir(n)}`).filter(e=>e);return r.length?`?${r.join("&")}`:""}var vc=/^[^\/()?;#]+/;function si(t){let r=t.match(vc);return r?r[0]:""}var bc=/^[^\/()?;=#]+/;function yc(t){let r=t.match(bc);return r?r[0]:""}var Ec=/^[^=?&#]+/;function wc(t){let r=t.match(Ec);return r?r[0]:""}var Sc=/^[^&#]+/;function Cc(t){let r=t.match(Sc);return r?r[0]:""}var hi=class{url;remaining;constructor(r){this.url=r,this.remaining=r}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new b([],{}):new b([],this.parseChildren())}parseQueryParams(){let r={};if(this.consumeOptional("?"))do this.parseQueryParam(r);while(this.consumeOptional("&"));return r}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let r=[];for(this.peekStartsWith("(")||r.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),r.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(r.length>0||Object.keys(e).length>0)&&(n[g]=new b(r,e)),n}parseSegment(){let r=si(this.remaining);if(r===""&&this.peekStartsWith(";"))throw new O(4009,!1);return this.capture(r),new Ne(Hr(r),this.parseMatrixParams())}parseMatrixParams(){let r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){let e=yc(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let i=si(this.remaining);i&&(n=i,this.capture(n))}r[Hr(e)]=Hr(n)}parseQueryParam(r){let e=wc(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let a=Cc(this.remaining);a&&(n=a,this.capture(n))}let i=Gs(e),s=Gs(n);if(r.hasOwnProperty(i)){let a=r[i];Array.isArray(a)||(a=[a],r[i]=a),a.push(s)}else r[i]=s}parseParens(r){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=si(this.remaining),i=this.remaining[n.length];if(i!=="/"&&i!==")"&&i!==";")throw new O(4010,!1);let s;n.indexOf(":")>-1?(s=n.slice(0,n.indexOf(":")),this.capture(s),this.capture(":")):r&&(s=g);let a=this.parseChildren();e[s??g]=Object.keys(a).length===1&&a[g]?a[g]:new b([],a),this.consumeOptional("//")}return e}peekStartsWith(r){return this.remaining.startsWith(r)}consumeOptional(r){return this.peekStartsWith(r)?(this.remaining=this.remaining.substring(r.length),!0):!1}capture(r){if(!this.consumeOptional(r))throw new O(4011,!1)}};function oa(t){return t.segments.length>0?new b([],{[g]:t}):t}function ca(t){let r={};for(let[n,i]of Object.entries(t.children)){let s=ca(i);if(n===g&&s.segments.length===0&&s.hasChildren())for(let[a,o]of Object.entries(s.children))r[a]=o;else(s.segments.length>0||s.hasChildren())&&(r[n]=s)}let e=new b(t.segments,r);return Tc(e)}function Tc(t){if(t.numberOfChildren===1&&t.children[g]){let r=t.children[g];return new b(t.segments.concat(r.segments),r.children)}return t}function ht(t){return t instanceof ue}function la(t,r,e=null,n=null){let i=ua(t);return da(i,r,e,n)}function ua(t){let r;function e(s){let a={};for(let c of s.children){let u=e(c);a[c.outlet]=u}let o=new b(s.url,a);return s===t&&(r=o),o}let n=e(t.root),i=oa(n);return r??i}function da(t,r,e,n){let i=t;for(;i.parent;)i=i.parent;if(r.length===0)return ai(i,i,i,e,n);let s=Dc(r);if(s.toRoot())return ai(i,i,new b([],{}),e,n);let a=Ac(s,i,t),o=a.processChildren?$t(a.segmentGroup,a.index,s.commands):fa(a.segmentGroup,a.index,s.commands);return ai(i,a.segmentGroup,o,e,n)}function Br(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function Yt(t){return typeof t=="object"&&t!=null&&t.outlets}function ai(t,r,e,n,i){let s={};n&&Object.entries(n).forEach(([c,u])=>{s[c]=Array.isArray(u)?u.map(d=>`${d}`):`${u}`});let a;t===r?a=e:a=ha(t,r,e);let o=oa(ca(a));return new ue(o,s,i)}function ha(t,r,e){let n={};return Object.entries(t.children).forEach(([i,s])=>{s===r?n[i]=e:n[i]=ha(s,r,e)}),new b(t.segments,n)}var Ur=class{isAbsolute;numberOfDoubleDots;commands;constructor(r,e,n){if(this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=n,r&&n.length>0&&Br(n[0]))throw new O(4003,!1);let i=n.find(Yt);if(i&&i!==ea(n))throw new O(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Dc(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new Ur(!0,0,t);let r=0,e=!1,n=t.reduce((i,s,a)=>{if(typeof s=="object"&&s!=null){if(s.outlets){let o={};return Object.entries(s.outlets).forEach(([c,u])=>{o[c]=typeof u=="string"?u.split("/"):u}),[...i,{outlets:o}]}if(s.segmentPath)return[...i,s.segmentPath]}return typeof s!="string"?[...i,s]:a===0?(s.split("/").forEach((o,c)=>{c==0&&o==="."||(c==0&&o===""?e=!0:o===".."?r++:o!=""&&i.push(o))}),i):[...i,s]},[]);return new Ur(e,r,n)}var ut=class{segmentGroup;processChildren;index;constructor(r,e,n){this.segmentGroup=r,this.processChildren=e,this.index=n}};function Ac(t,r,e){if(t.isAbsolute)return new ut(r,!0,0);if(!e)return new ut(r,!1,NaN);if(e.parent===null)return new ut(e,!0,0);let n=Br(t.commands[0])?0:1,i=e.segments.length-1+n;return Rc(e,i,t.numberOfDoubleDots)}function Rc(t,r,e){let n=t,i=r,s=e;for(;s>i;){if(s-=i,n=n.parent,!n)throw new O(4005,!1);i=n.segments.length}return new ut(n,!1,i-s)}function Nc(t){return Yt(t[0])?t[0].outlets:{[g]:t}}function fa(t,r,e){if(t??=new b([],{}),t.segments.length===0&&t.hasChildren())return $t(t,r,e);let n=Mc(t,r,e),i=e.slice(n.commandIndex);if(n.match&&n.pathIndex<t.segments.length){let s=new b(t.segments.slice(0,n.pathIndex),{});return s.children[g]=new b(t.segments.slice(n.pathIndex),t.children),$t(s,0,i)}else return n.match&&i.length===0?new b(t.segments,{}):n.match&&!t.hasChildren()?fi(t,r,e):n.match?$t(t,0,i):fi(t,r,e)}function $t(t,r,e){if(e.length===0)return new b(t.segments,{});{let n=Nc(e),i={};if(Object.keys(n).some(s=>s!==g)&&t.children[g]&&t.numberOfChildren===1&&t.children[g].segments.length===0){let s=$t(t.children[g],r,e);return new b(t.segments,s.children)}return Object.entries(n).forEach(([s,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(i[s]=fa(t.children[s],r,a))}),Object.entries(t.children).forEach(([s,a])=>{n[s]===void 0&&(i[s]=a)}),new b(t.segments,i)}}function Mc(t,r,e){let n=0,i=r,s={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(n>=e.length)return s;let a=t.segments[i],o=e[n];if(Yt(o))break;let c=`${o}`,u=n<e.length-1?e[n+1]:null;if(i>0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!Ys(c,u,a))return s;n+=2}else{if(!Ys(c,{},a))return s;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function fi(t,r,e){let n=t.segments.slice(0,r),i=0;for(;i<e.length;){let s=e[i];if(Yt(s)){let c=kc(s.outlets);return new b(n,c)}if(i===0&&Br(e[0])){let c=t.segments[r];n.push(new Ne(c.path,Ws(e[0]))),i++;continue}let a=Yt(s)?s.outlets[g]:`${s}`,o=i<e.length-1?e[i+1]:null;a&&o&&Br(o)?(n.push(new Ne(a,Ws(o))),i+=2):(n.push(new Ne(a,{})),i++)}return new b(n,{})}function kc(t){let r={};return Object.entries(t).forEach(([e,n])=>{typeof n=="string"&&(n=[n]),n!==null&&(r[e]=fi(new b([],{}),0,n))}),r}function Ws(t){let r={};return Object.entries(t).forEach(([e,n])=>r[e]=`${n}`),r}function Ys(t,r,e){return t==e.path&&ce(r,e.parameters)}var Gt="imperative",L=(function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t})(L||{}),X=class{id;url;constructor(r,e){this.id=r,this.url=e}},je=class extends X{type=L.NavigationStart;navigationTrigger;restoredState;constructor(r,e,n="imperative",i=null){super(r,e),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},ye=class extends X{urlAfterRedirects;type=L.NavigationEnd;constructor(r,e,n){super(r,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},V=(function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t[t.Aborted=4]="Aborted",t})(V||{}),Xt=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(Xt||{}),le=class extends X{reason;code;type=L.NavigationCancel;constructor(r,e,n,i){super(r,e),this.reason=n,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Ee=class extends X{reason;code;type=L.NavigationSkipped;constructor(r,e,n,i){super(r,e),this.reason=n,this.code=i}},ft=class extends X{error;target;type=L.NavigationError;constructor(r,e,n,i){super(r,e),this.error=n,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Kt=class extends X{urlAfterRedirects;state;type=L.RoutesRecognized;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},jr=class extends X{urlAfterRedirects;state;type=L.GuardsCheckStart;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},qr=class extends X{urlAfterRedirects;state;shouldActivate;type=L.GuardsCheckEnd;constructor(r,e,n,i,s){super(r,e),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Vr=class extends X{urlAfterRedirects;state;type=L.ResolveStart;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},zr=class extends X{urlAfterRedirects;state;type=L.ResolveEnd;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},$r=class{route;type=L.RouteConfigLoadStart;constructor(r){this.route=r}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Gr=class{route;type=L.RouteConfigLoadEnd;constructor(r){this.route=r}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Wr=class{snapshot;type=L.ChildActivationStart;constructor(r){this.snapshot=r}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Yr=class{snapshot;type=L.ChildActivationEnd;constructor(r){this.snapshot=r}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Xr=class{snapshot;type=L.ActivationStart;constructor(r){this.snapshot=r}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Kr=class{snapshot;type=L.ActivationEnd;constructor(r){this.snapshot=r}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var Zt=class{},pt=class{url;navigationBehaviorOptions;constructor(r,e){this.url=r,this.navigationBehaviorOptions=e}};function Oc(t){return!(t instanceof Zt)&&!(t instanceof pt)}function Ic(t,r){return t.providers&&!t._injector&&(t._injector=Ar(t.providers,r,`Route: ${t.path}`)),t._injector??r}function ne(t){return t.outlet||g}function Lc(t,r){let e=t.filter(n=>ne(n)===r);return e.push(...t.filter(n=>ne(n)!==r)),e}function xt(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let r=t.parent;r;r=r.parent){let e=r.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var Zr=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return xt(this.route?.snapshot)??this.rootInjector}constructor(r){this.rootInjector=r,this.children=new _t(this.rootInjector)}},_t=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,n){let i=this.getOrCreateContext(e);i.outlet=n,this.contexts.set(e,i)}onChildOutletDestroyed(e){let n=this.getContext(e);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let n=this.getContext(e);return n||(n=new Zr(this.rootInjector),this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(n){return new(n||t)(Lt(ee))};static \u0275prov=f({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Qr=class{_root;constructor(r){this._root=r}get root(){return this._root.value}parent(r){let e=this.pathFromRoot(r);return e.length>1?e[e.length-2]:null}children(r){let e=pi(r,this._root);return e?e.children.map(n=>n.value):[]}firstChild(r){let e=pi(r,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(r){let e=mi(r,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==r)}pathFromRoot(r){return mi(r,this._root).map(e=>e.value)}};function pi(t,r){if(t===r.value)return r;for(let e of r.children){let n=pi(t,e);if(n)return n}return null}function mi(t,r){if(t===r.value)return[r];for(let e of r.children){let n=mi(t,e);if(n.length)return n.unshift(r),n}return[]}var Y=class{value;children;constructor(r,e){this.value=r,this.children=e}toString(){return`TreeNode(${this.value})`}};function lt(t){let r={};return t&&t.children.forEach(e=>r[e.value.outlet]=e),r}var Qt=class extends Qr{snapshot;constructor(r,e){super(r),this.snapshot=e,wi(this,r)}toString(){return this.snapshot.toString()}};function pa(t){let r=Pc(t),e=new z([new Ne("",{})]),n=new z({}),i=new z({}),s=new z({}),a=new z(""),o=new we(e,n,s,a,i,g,t,r.root);return o.snapshot=r.root,new Qt(new Y(o,[]),r)}function Pc(t){let r={},e={},n={},s=new He([],r,n,"",e,g,t,null,{});return new Jt("",new Y(s,[]))}var we=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(r,e,n,i,s,a,o,c){this.urlSubject=r,this.paramsSubject=e,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=s,this.outlet=a,this.component=o,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(y(u=>u[nr]))??p(void 0),this.url=r,this.params=e,this.queryParams=n,this.fragment=i,this.data=s}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(y(r=>Be(r))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(y(r=>Be(r))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Jr(t,r,e="emptyOnly"){let n,{routeConfig:i}=t;return r!==null&&(e==="always"||i?.path===""||!r.component&&!r.routeConfig?.loadComponent)?n={params:h(h({},r.params),t.params),data:h(h({},r.data),t.data),resolve:h(h(h(h({},t.data),r.data),i?.data),t._resolvedData)}:n={params:h({},t.params),data:h({},t.data),resolve:h(h({},t.data),t._resolvedData??{})},i&&ga(i)&&(n.resolve[nr]=i.title),n}var He=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[nr]}constructor(r,e,n,i,s,a,o,c,u){this.url=r,this.params=e,this.queryParams=n,this.fragment=i,this.data=s,this.outlet=a,this.component=o,this.routeConfig=c,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=Be(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Be(this.queryParams),this._queryParamMap}toString(){let r=this.url.map(n=>n.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${r}', path:'${e}')`}},Jt=class extends Qr{url;constructor(r,e){super(e),this.url=r,wi(this,e)}toString(){return ma(this._root)}};function wi(t,r){r.value._routerState=t,r.children.forEach(e=>wi(t,e))}function ma(t){let r=t.children.length>0?` { ${t.children.map(ma).join(", ")} } `:"";return`${t.value}${r}`}function oi(t){if(t.snapshot){let r=t.snapshot,e=t._futureSnapshot;t.snapshot=e,ce(r.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),r.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),ce(r.params,e.params)||t.paramsSubject.next(e.params),lc(r.url,e.url)||t.urlSubject.next(e.url),ce(r.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function gi(t,r){let e=ce(t.params,r.params)&&fc(t.url,r.url),n=!t.parent!=!r.parent;return e&&!n&&(!t.parent||gi(t.parent,r.parent))}function ga(t){return typeof t.title=="string"||t.title===null}var xa=new x(""),Si=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=g;activateEvents=new B;deactivateEvents=new B;attachEvents=new B;detachEvents=new B;routerOutletData=Pe();parentContexts=l(_t);location=l(st);changeDetector=l(jt);inputBinder=l(sr,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:n,previousValue:i}=e.name;if(n)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new O(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new O(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new O(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,n){this.activated=e,this._activatedRoute=n,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,n){if(this.isActivated)throw new O(4013,!1);this._activatedRoute=e;let i=this.location,a=e.snapshot.component,o=this.parentContexts.getOrCreateContext(this.name).children,c=new xi(e,o,i.injector,this.routerOutletData);this.activated=i.createComponent(a,{index:i.length,injector:c,environmentInjector:n}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=q({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[rt]})}return t})(),xi=class{route;childContexts;parent;outletData;constructor(r,e,n,i){this.route=r,this.childContexts=e,this.parent=n,this.outletData=i}get(r,e){return r===we?this.route:r===_t?this.childContexts:r===xa?this.outletData:this.parent.get(r,e)}},sr=new x(""),Ci=(()=>{class t{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:n}=e,i=Je([n.queryParams,n.params,n.data]).pipe(U(([s,a,o],c)=>(o=h(h(h({},s),a),o),c===0?p(o):Promise.resolve(o)))).subscribe(s=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(e);return}let a=Is(n.component);if(!a){this.unsubscribeFromRouteData(e);return}for(let{templateName:o}of a.inputs)e.activatedComponentRef.setInput(o,s[o])});this.outletDataSubscriptions.set(e,i)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=f({token:t,factory:t.\u0275fac})}return t})(),Ti=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=j({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(n,i){n&1&&Nr(0,"router-outlet")},dependencies:[Si],encapsulation:2})}return t})();function Di(t){let r=t.children&&t.children.map(Di),e=r?k(h({},t),{children:r}):h({},t);return!e.component&&!e.loadComponent&&(r||e.loadChildren)&&e.outlet&&e.outlet!==g&&(e.component=Ti),e}function Fc(t,r,e){let n=er(t,r._root,e?e._root:void 0);return new Qt(n,r)}function er(t,r,e){if(e&&t.shouldReuseRoute(r.value,e.value.snapshot)){let n=e.value;n._futureSnapshot=r.value;let i=Hc(t,r,e);return new Y(n,i)}else{if(t.shouldAttach(r.value)){let s=t.retrieve(r.value);if(s!==null){let a=s.route;return a.value._futureSnapshot=r.value,a.children=r.children.map(o=>er(t,o)),a}}let n=Bc(r.value),i=r.children.map(s=>er(t,s));return new Y(n,i)}}function Hc(t,r,e){return r.children.map(n=>{for(let i of e.children)if(t.shouldReuseRoute(n.value,i.value.snapshot))return er(t,n,i);return er(t,n)})}function Bc(t){return new we(new z(t.url),new z(t.params),new z(t.queryParams),new z(t.fragment),new z(t.data),t.outlet,t.component,t)}var mt=class{redirectTo;navigationBehaviorOptions;constructor(r,e){this.redirectTo=r,this.navigationBehaviorOptions=e}},_a="ngNavigationCancelingError";function en(t,r){let{redirectTo:e,navigationBehaviorOptions:n}=ht(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,i=va(!1,V.Redirect);return i.url=e,i.navigationBehaviorOptions=n,i}function va(t,r){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[_a]=!0,e.cancellationCode=r,e}function Uc(t){return ba(t)&&ht(t.url)}function ba(t){return!!t&&t[_a]}var jc=(t,r,e,n)=>y(i=>(new _i(r,i.targetRouterState,i.currentRouterState,e,n).activate(t),i)),_i=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(r,e,n,i,s){this.routeReuseStrategy=r,this.futureState=e,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=s}activate(r){let e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,r),oi(this.futureState.root),this.activateChildRoutes(e,n,r)}deactivateChildRoutes(r,e,n){let i=lt(e);r.children.forEach(s=>{let a=s.value.outlet;this.deactivateRoutes(s,i[a],n),delete i[a]}),Object.values(i).forEach(s=>{this.deactivateRouteAndItsChildren(s,n)})}deactivateRoutes(r,e,n){let i=r.value,s=e?e.value:null;if(i===s)if(i.component){let a=n.getContext(i.outlet);a&&this.deactivateChildRoutes(r,e,a.children)}else this.deactivateChildRoutes(r,e,n);else s&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(r,e){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,e):this.deactivateRouteAndOutlet(r,e)}detachAndStoreRouteSubtree(r,e){let n=e.getContext(r.value.outlet),i=n&&r.value.component?n.children:e,s=lt(r);for(let a of Object.values(s))this.deactivateRouteAndItsChildren(a,i);if(n&&n.outlet){let a=n.outlet.detach(),o=n.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:a,route:r,contexts:o})}}deactivateRouteAndOutlet(r,e){let n=e.getContext(r.value.outlet),i=n&&r.value.component?n.children:e,s=lt(r);for(let a of Object.values(s))this.deactivateRouteAndItsChildren(a,i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(r,e,n){let i=lt(e);r.children.forEach(s=>{this.activateRoutes(s,i[s.value.outlet],n),this.forwardEvent(new Kr(s.value.snapshot))}),r.children.length&&this.forwardEvent(new Yr(r.value.snapshot))}activateRoutes(r,e,n){let i=r.value,s=e?e.value:null;if(oi(i),i===s)if(i.component){let a=n.getOrCreateContext(i.outlet);this.activateChildRoutes(r,e,a.children)}else this.activateChildRoutes(r,e,n);else if(i.component){let a=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let o=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),a.children.onOutletReAttached(o.contexts),a.attachRef=o.componentRef,a.route=o.route.value,a.outlet&&a.outlet.attach(o.componentRef,o.route.value),oi(o.route.value),this.activateChildRoutes(r,null,a.children)}else a.attachRef=null,a.route=i,a.outlet&&a.outlet.activateWith(i,a.injector),this.activateChildRoutes(r,null,a.children)}else this.activateChildRoutes(r,null,n)}},tn=class{path;route;constructor(r){this.path=r,this.route=this.path[this.path.length-1]}},dt=class{component;route;constructor(r,e){this.component=r,this.route=e}};function qc(t,r,e){let n=t._root,i=r?r._root:null;return zt(n,i,e,[n.value])}function Vc(t){let r=t.routeConfig?t.routeConfig.canActivateChild:null;return!r||r.length===0?null:{node:t,guards:r}}function vt(t,r){let e=Symbol(),n=r.get(t,e);return n===e?typeof t=="function"&&!ms(t)?t:r.get(t):n}function zt(t,r,e,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let s=lt(r);return t.children.forEach(a=>{zc(a,s[a.value.outlet],e,n.concat([a.value]),i),delete s[a.value.outlet]}),Object.entries(s).forEach(([a,o])=>Wt(o,e.getContext(a),i)),i}function zc(t,r,e,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let s=t.value,a=r?r.value:null,o=e?e.getContext(t.value.outlet):null;
1if(a&&s.routeConfig===a.routeConfig){let c=$c(a,s,s.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new tn(n)):(s.data=a.data,s._resolvedData=a._resolvedData),s.component?zt(t,r,o?o.children:null,n,i):zt(t,r,e,n,i),c&&o&&o.outlet&&o.outlet.isActivated&&i.canDeactivateChecks.push(new dt(o.outlet.component,a))}else a&&Wt(r,o,i),i.canActivateChecks.push(new tn(n)),s.component?zt(t,null,o?o.children:null,n,i):zt(t,null,e,n,i);return i}function $c(t,r,e){if(typeof e=="function")return e(t,r);switch(e){case"pathParamsChange":return!Fe(t.url,r.url);case"pathParamsOrQueryParamsChange":return!Fe(t.url,r.url)||!ce(t.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!gi(t,r)||!ce(t.queryParams,r.queryParams);case"paramsChange":default:return!gi(t,r)}}function Wt(t,r,e){let n=lt(t),i=t.value;Object.entries(n).forEach(([s,a])=>{i.component?r?Wt(a,r.children.getContext(s),e):Wt(a,null,e):Wt(a,r,e)}),i.component?r&&r.outlet&&r.outlet.isActivated?e.canDeactivateChecks.push(new dt(r.outlet.component,i)):e.canDeactivateChecks.push(new dt(null,i)):e.canDeactivateChecks.push(new dt(null,i))}function ar(t){return typeof t=="function"}function Gc(t){return typeof t=="boolean"}function Wc(t){return t&&ar(t.canLoad)}function Yc(t){return t&&ar(t.canActivate)}function Xc(t){return t&&ar(t.canActivateChild)}function Kc(t){return t&&ar(t.canDeactivate)}function Zc(t){return t&&ar(t.canMatch)}function ya(t){return t instanceof cs||t?.name==="EmptyError"}var Lr=Symbol("INITIAL_VALUE");function gt(){return U(t=>Je(t.map(r=>r.pipe($(1),fe(Lr)))).pipe(y(r=>{for(let e of r)if(e!==!0){if(e===Lr)return Lr;if(e===!1||Qc(e))return e}return!0}),H(r=>r!==Lr),$(1)))}function Qc(t){return ht(t)||t instanceof mt}function Jc(t,r){return J(e=>{let{targetSnapshot:n,currentSnapshot:i,guards:{canActivateChecks:s,canDeactivateChecks:a}}=e;return a.length===0&&s.length===0?p(k(h({},e),{guardsResult:!0})):el(a,n,i,t).pipe(J(o=>o&&Gc(o)?tl(n,s,t,r):p(o)),y(o=>k(h({},e),{guardsResult:o})))})}function el(t,r,e,n){return Q(t).pipe(J(i=>al(i.component,i.route,e,r,n)),Ae(i=>i!==!0,!0))}function tl(t,r,e,n){return Q(r).pipe(It(i=>Sr(nl(i.route.parent,n),rl(i.route,n),sl(t,i.path,e),il(t,i.route,e))),Ae(i=>i!==!0,!0))}function rl(t,r){return t!==null&&r&&r(new Xr(t)),p(!0)}function nl(t,r){return t!==null&&r&&r(new Wr(t)),p(!0)}function il(t,r,e){let n=r.routeConfig?r.routeConfig.canActivate:null;if(!n||n.length===0)return p(!0);let i=n.map(s=>De(()=>{let a=xt(r)??e,o=vt(s,a),c=Yc(o)?o.canActivate(r,t):W(a,()=>o(r,t));return Se(c).pipe(Ae())}));return p(i).pipe(gt())}function sl(t,r,e){let n=r[r.length-1],s=r.slice(0,r.length-1).reverse().map(a=>Vc(a)).filter(a=>a!==null).map(a=>De(()=>{let o=a.guards.map(c=>{let u=xt(a.node)??e,d=vt(c,u),m=Xc(d)?d.canActivateChild(n,t):W(u,()=>d(n,t));return Se(m).pipe(Ae())});return p(o).pipe(gt())}));return p(s).pipe(gt())}function al(t,r,e,n,i){let s=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!s||s.length===0)return p(!0);let a=s.map(o=>{let c=xt(r)??i,u=vt(o,c),d=Kc(u)?u.canDeactivate(t,r,e,n):W(c,()=>u(t,r,e,n));return Se(d).pipe(Ae())});return p(a).pipe(gt())}function ol(t,r,e,n){let i=r.canLoad;if(i===void 0||i.length===0)return p(!0);let s=i.map(a=>{let o=vt(a,t),c=Wc(o)?o.canLoad(r,e):W(t,()=>o(r,e));return Se(c)});return p(s).pipe(gt(),Ea(n))}function Ea(t){return os(P(r=>{if(typeof r!="boolean")throw en(t,r)}),y(r=>r===!0))}function cl(t,r,e,n){let i=r.canMatch;if(!i||i.length===0)return p(!0);let s=i.map(a=>{let o=vt(a,t),c=Zc(o)?o.canMatch(r,e):W(t,()=>o(r,e));return Se(c)});return p(s).pipe(gt(),Ea(n))}var tr=class{segmentGroup;constructor(r){this.segmentGroup=r||null}},rr=class extends Error{urlTree;constructor(r){super(),this.urlTree=r}};function ct(t){return Ot(new tr(t))}function ll(t){return Ot(new O(4e3,!1))}function ul(t){return Ot(va(!1,V.GuardRejected))}var vi=class{urlSerializer;urlTree;constructor(r,e){this.urlSerializer=r,this.urlTree=e}lineralizeSegments(r,e){let n=[],i=e.root;for(;;){if(n=n.concat(i.segments),i.numberOfChildren===0)return p(n);if(i.numberOfChildren>1||!i.children[g])return ll(`${r.redirectTo}`);i=i.children[g]}}applyRedirectCommands(r,e,n,i,s){return dl(e,i,s).pipe(y(a=>
1{if(a instanceof ue)throw new rr(a);let o=this.applyRedirectCreateUrlTree(a,this.urlSerializer.parse(a),r,n);if(a[0]==="/")throw new rr(o);return o}))}applyRedirectCreateUrlTree(r,e,n,i){let s=this.createSegmentGroup(r,e.root,n,i);return new ue(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(r,e){let n={};return Object.entries(r).forEach(([i,s])=>{if(typeof s=="string"&&s[0]===":"){let o=s.substring(1);n[i]=e[o]}else n[i]=s}),n}createSegmentGroup(r,e,n,i){let s=this.createSegments(r,e.segments,n,i),a={};return Object.entries(e.children).forEach(([o,c])=>{a[o]=this.createSegmentGroup(r,c,n,i)}),new b(s,a)}createSegments(r,e,n,i){return e.map(s=>s.path[0]===":"?this.findPosParam(r,s,i):this.findOrReturn(s,n))}findPosParam(r,e,n){let i=n[e.path.substring(1)];if(!i)throw new O(4001,!1);return i}findOrReturn(r,e){let n=0;for(let i of e){if(i.path===r.path)return e.splice(n),i;n++}return r}};function dl(t,r,e){if(typeof t=="string")return p(t);let n=t,{queryParams:i,fragment:s,routeConfig:a,url:o,outlet:c,params:u,data:d,title:m}=r;return Se(W(e,()=>n({params:u,data:d,queryParams:i,fragment:s,routeConfig:a,url:o,outlet:c,title:m})))}var bi={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function hl(t,r,e,n,i){let s=wa(t,r,e);return s.matched?(n=Ic(r,n),cl(n,r,e,i).pipe(y(a=>a===!0?s:h({},bi)))):p(s)}function wa(t,r,e){if(r.path==="**")return fl(e);if(r.path==="")return r.pathMatch==="full"&&(t.hasChildren()||e.length>0)?h({},bi):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(r.matcher||Qs)(e,t,r);if(!i)return h({},bi);let s={};Object.entries(i.posParams??{}).forEach(([o,c])=>{s[o]=c.path});let a=i.consumed.length>0?h(h({},s),i.consumed[i.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:a,positionalParamSegments:i.posParams??{}}}function fl(t){return{matched:!0,parameters:t.length>0?ea(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function Xs(t,r,e,n){return e.length>0&&gl(t,e,n)?{segmentGroup:new b(r,ml(n,new b(e,t.children))),slicedSegments:[]}:e.length===0&&xl(t,e,n)?{segmentGroup:new b(t.segments,pl(t,e,n,t.children)),slicedSegments:e}:{segmentGroup:new b(t.segments,t.children),slicedSegments:e}}function pl(t,r,e,n){let i={};for(let s of e)if(nn(t,r,s)&&!n[ne(s)]){let a=new b([],{});i[ne(s)]=a}return h(h({},n),i)}function ml(t,r){let e={};e[g]=r;for(let n of t)if(n.path===""&&ne(n)!==g){let i=new b([],{});e[ne(n)]=i}return e}function gl(t,r,e){return e.some(n=>nn(t,r,n)&&ne(n)!==g)}function xl(t,r,e){return e.some(n=>nn(t,r,n))}function nn(t,r,e){return(t.hasChildren()||r.length>0)&&e.pathMatch==="full"?!1:e.path===""}function _l(t,r,e){return r.length===0&&!t.children[e]}var yi=class{};function vl(t,r,e,n,i,s,a="emptyOnly"){return new Ei(t,r,e,n,i,a,s).recognize()}var bl=31,Ei=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(r,e,n,i,s,a,o){this.injector=r,this.configLoader=e,this.rootComponentType=n,this.config=i,this.urlTree=s,this.paramsInheritanceStrategy=a,this.urlSerializer=o,this.applyRedirects=new vi(this.urlSerializer,this.urlTree)}noMatchError(r){return new O(4002,`'${r.segmentGroup}'`)}recognize(){let r=Xs(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(r).pipe(y(({children:e,rootSnapshot:n})=>{let i=new Y(n,e),s=new Jt("",i),a=la(n,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(a),{state:s,tree:a}}))}match(r){let e=new He([],Object.freeze({}),Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),g,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,r,g,e).pipe(y(n=>({children:n,rootSnapshot:e})),et(n=>{if(n instanceof rr)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof tr?this.noMatchError(n):n}))}processSegmentGroup(r,e,n,i,s){return n.segments.length===0&&n.hasChildren()?this.processChildren(r,e,n,s):this.processSegment(r,e,n,n.segments,i,!0,s).pipe(y(a=>
1a instanceof Y?[a]:[]))}processChildren(r,e,n,i){let s=[];for(let a of Object.keys(n.children))a==="primary"?s.unshift(a):s.push(a);return Q(s).pipe(It(a=>{let o=n.children[a],c=Lc(e,a);return this.processSegmentGroup(r,c,o,a,i)}),fs((a,o)=>(a.push(...o),a)),Fn(null),hs(),J(a=>{if(a===null)return ct(n);let o=Sa(a);return yl(o),p(o)}))}processSegment(r,e,n,i,s,a,o){return Q(e).pipe(It(c=>this.processSegmentAgainstRoute(c._injector??r,e,c,n,i,s,a,o).pipe(et(u=>{if(u instanceof tr)return p(null);throw u}))),Ae(c=>!!c),et(c=>{if(ya(c))return _l(n,i,s)?p(new yi):ct(n);throw c}))}processSegmentAgainstRoute(r,e,n,i,s,a,o,c){return ne(n)!==a&&(a===g||!nn(i,s,n))?ct(i):n.redirectTo===void 0?this.matchSegmentAgainstRoute(r,i,n,s,a,c):this.allowRedirects&&o?this.expandSegmentAgainstRouteUsingRedirect(r,i,e,n,s,a,c):ct(i)}expandSegmentAgainstRouteUsingRedirect(r,e,n,i,s,a,o){let{matched:c,parameters:u,consumedSegments:d,positionalParamSegments:m,remainingSegments:E}=wa(e,i,s);if(!c)return ct(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>bl&&(this.allowRedirects=!1));let C=new He(s,u,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,Ks(i),ne(i),i.component??i._loadedComponent??null,i,Zs(i)),v=Jr(C,o,this.paramsInheritanceStrategy);return C.params=Object.freeze(v.params),C.data=Object.freeze(v.data),this.applyRedirects.applyRedirectCommands(d,i.redirectTo,m,C,r).pipe(U(Z=>this.applyRedirects.lineralizeSegments(i,Z)),J(Z=>this.processSegment(r,n,e,Z.concat(E),a,!1,o)))}matchSegmentAgainstRoute(r,e,n,i,s,a){let o=hl(e,n,i,r,this.urlSerializer);return n.path==="**"&&(e.children={}),o.pipe(U(c=>c.matched?(r=n._injector??r,this.getChildConfig(r,n,i).pipe(U(({routes:u})=>{let d=n._loadedInjector??r,{parameters:m,consumedSegments:E,remainingSegments:C}=c,v=new He(E,m,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,Ks(n),ne(n),n.component??n._loadedComponent??null,n,Zs(n)),A=Jr(v,a,this.paramsInheritanceStrategy);v.params=Object.freeze(A.params),v.data=Object.freeze(A.data);let{segmentGroup:Z,slicedSegments:de}=Xs(e,E,C,u);if(de.length===0&&Z.hasChildren())return this.processChildren(d,u,Z,v).pipe(y(wr=>new Y(v,wr)));if(u.length===0&&de.length===0)return p(new Y(v,[]));let cc=ne(n)===s;return this.processSegment(d,u,Z,de,cc?g:s,!0,v).pipe(y(wr=>new Y(v,wr instanceof Y?[wr]:[])))}))):ct(e)))}getChildConfig(r,e,n){return e.children?p({routes:e.children,injector:r}):e.loadChildren?e._loadedRoutes!==void 0?p({routes:e._loadedRoutes,injector:e._loadedInjector}):ol(r,e,n,this.urlSerializer).pipe(J(i=>i?this.configLoader.loadChildren(r,e).pipe(P(s=>{e._loadedRoutes=s.routes,e._loadedInjector=s.injector})):ul(e))):p({routes:[],injector:r})}};function yl(t){t.sort((r,e)=>r.value.outlet===g?-1:e.value.outlet===g?1:r.value.outlet.localeCompare(e.value.outlet))}function El(t){let r=t.value.routeConfig;return r&&r.path===""}function Sa(t){let r=[],e=new Set;for(let n of t){if(!El(n)){r.push(n);continue}let i=r.find(s=>n.value.routeConfig===s.value.routeConfig);i!==void 0?(i.children.push(...n.children),e.add(i)):r.push(n)}for(let n of e){let i=Sa(n.children);r.push(new Y(n.value,i))}return r.filter(n=>!e.has(n))}function Ks(t){return t.data||{}}function Zs(t){return t.resolve||{}}function wl(t,r,e,n,i,s){return J(a=>vl(t,r,e,n,a.extractedUrl,i,s).pipe(y(({state:o,tree:c})=>k(h({},a),{targetSnapshot:o,urlAfterRedirects:c}))))}function Sl(t,r){return J(e=>{let{targetSnapshot:n,guards:{canActivateChecks:i}}=e;if(!i.length)return p(e);let s=new Set(i.map(c=>c.route)),a=new Set;for(let c of s)if(!a.has(c))for(let u of Ca(c))a.add(u);let o=0;return Q(a).pipe(It(c=>s.has(c)?Cl(c,n,t,r):(c.data=Jr(c,c.parent,t).resolve,p(void 0))),P(()=>o++),Bn(1),J(c=>o===a.size?p(e):he))})}function Ca(t){let r=t.children.map(e=>Ca(e)).flat();return[t,...r]}function Cl(t,r,e,n){let i=t.routeConfig,s=t._resolve;return i?.title!==void 0&&!ga(i)&&(s[nr]=i.title),De(()=>(t.data=Jr(t,t.parent,e).resolve,Tl(s,t,r,n).pipe(y(a=>(t._resolvedData=a,t.data=h(h({},t.data),a),null)))))}function Tl(t,r,e,n){let i=ui(t);if(i.length===0)return p({});let s={};return Q(i).pipe(J(a=>Dl(t[a],r,e,n).pipe(Ae(),P(o=>{if(o instanceof mt)throw en(new Ue,o);s[a]=o}))),Bn(1),y(()=>s),et(a=>ya(a)?he:Ot(a)))}
1function Dl(t,r,e,n){let i=xt(r)??n,s=vt(t,i),a=s.resolve?s.resolve(r,e):W(i,()=>s(r,e));return Se(a)}function ci(t){return U(r=>{let e=t(r);return e?Q(e).pipe(y(()=>r)):p(r)})}var Ai=(()=>{class t{buildTitle(e){let n,i=e.root;for(;i!==void 0;)n=this.getResolvedTitleForRoute(i)??n,i=i.children.find(s=>s.outlet===g);return n}getResolvedTitleForRoute(e){return e.data[nr]}static \u0275fac=function(n){return new(n||t)};static \u0275prov=f({token:t,factory:()=>l(Ta),providedIn:"root"})}return t})(),Ta=(()=>{class t extends Ai{title;constructor(e){super(),this.title=e}updateTitle(e){let n=this.buildTitle(e);n!==void 0&&this.title.setTitle(n)}static \u0275fac=function(n){return new(n||t)(Lt(zs))};static \u0275prov=f({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),or=new x("",{providedIn:"root",factory:()=>({})}),qe=new x(""),Da=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=l(ti);loadComponent(e,n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return p(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let i=Se(W(e,()=>n.loadComponent())).pipe(y(Aa),U(Ra),P(a=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=a}),Cr(()=>{this.componentLoaders.delete(n)})),s=new In(i,()=>new _).pipe(On());return this.componentLoaders.set(n,s),s}loadChildren(e,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return p({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let s=Ri(n,this.compiler,e,this.onLoadEndListener).pipe(Cr(()=>{this.childrenLoaders.delete(n)})),a=new In(s,()=>new _).pipe(On());return this.childrenLoaders.set(n,a),a}static \u0275fac=function(n){return new(n||t)};static \u0275prov=f({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Ri(t,r,e,n){return Se(W(e,()=>t.loadChildren())).pipe(y(Aa),U(Ra),J(i=>i instanceof bs||Array.isArray(i)?p(i):Q(r.compileModuleAsync(i))),y(i=>{n&&n(t);let s,a,o=!1;return Array.isArray(i)?(a=i,o=!0):(s=i.create(e).injector,a=s.get(qe,[],{optional:!0,self:!0}).flat()),{routes:a.map(Di),injector:s}}))}function Al(t){return t&&typeof t=="object"&&"default"in t}function Aa(t){return Al(t)?t.default:t}function Ra(t){return p(t)}var sn=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=f({token:t,factory:()=>l(Rl),providedIn:"root"})}return t})(),Rl=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,n){return e}static \u0275fac=function(n){return new(n||t)};static \u0275prov=f({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ni=new x(""),Mi=new x("");function Na(t,r,e){let n=t.get(Mi),i=t.get(S);if(!i.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,new Promise(u=>setTimeout(u));let s,a=new Promise(u=>{s=u}),o=i.startViewTransition(()=>(s(),Nl(t)));o.ready.catch(u=>{});let{onViewTransitionCreated:c}=n;return c&&W(t,()=>c({transition:o,from:r,to:e})),a}function Nl(t){return new Promise(r=>{te({read:()=>setTimeout(r)},{injector:t})})}var Ma=new x(""),ka=(()=>{class t{currentNavigation=I(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=null;events=new _;transitionAbortWithErrorSubject=new _;configLoader=l(Da);environmentInjector=l(ee);destroyRef=l(pe);urlSerializer=l(ir);rootContexts=l(_t);location=l(ot);inputBindingEnabled=l(sr,{optional:!0})!==null;titleStrategy=l(Ai);options=l(or,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=l(sn);createViewTransition=l(Ni,{optional:!0});navigationErrorHandler=l(Ma,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>p(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=i=>this.events.next(new $r(i)),n=i=>this.events.next(new Gr(i));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let n=++this.navigationId;be(()=>{this.transitions?.next(k(h({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,abortController:new AbortController,id:n}))})}setupNavigations(e){return this.transitions=new z(null),this.transitions.pipe(H(n=>n!==null),U(n=>{let i=!1;return p(n).pipe(U(s=>{if(this.navigationId>n.id)return this.cancelNavigationTransition(n,"",V.SupersededByNewNavigation),he;this.currentTransition=n,this.currentNavigation.set({id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,targetBrowserUrl:typeof s.extras.browserUrl=="string"?this.urlSerializer.parse(s.extras.browserUrl):s.extras.browserUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?k(h({},this.lastSuccessfulNavigation),{previousNavigation:null}):null,abort:()=>s.abortController.abort()});let a=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),o=s.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!a&&o!=="reload")return this.events.next(new Ee(s.id,this.urlSerializer.serialize(s.rawUrl),"",Xt.IgnoredSameUrlNavigation)),s.resolve(!1),he;if(this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return p(s).pipe(U(c=>(this.events.next(new je(c.id,this.urlSerializer.serialize(c.extractedUrl),c.source,c.restoredState)),c.id!==this.navigationId?he:Promise.resolve(c))),wl(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),P(c=>{n.targetSnapshot=c.targetSnapshot,n.urlAfterRedirects=c.urlAfterRedirects,this.currentNavigation.update(d=>(d.finalUrl=c.urlAfterRedirects,d));let u=new Kt(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}));if(a&&this.urlHandlingStrategy.shouldProcessUrl(s.currentRawUrl)){let{id:c,extractedUrl:u,source:d,restoredState:m,extras:E}=s,C=new je(c,this.urlSerializer.serialize(u),d,m);this.events.next(C);let v=pa(this.rootComponentType).snapshot;return this.currentTransition=n=k(h({},s),{targetSnapshot:v,urlAfterRedirects:u,extras:k(h({},E),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(A=>(A.finalUrl=u,A)),p(n)}else return this.events.next(new Ee(s.id,this.urlSerializer.serialize(s.extractedUrl),"",Xt.IgnoredByUrlHandlingStrategy)),s.resolve(!1),he}),P(s=>{let a=new jr(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),y(s=>(this.currentTransition=n=k(h({},s),{guards:qc(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),n)),Jc(this.environmentInjector,s=>this.events.next(s)),P(s=>{if(n.guardsResult=s.guardsResult,s.guardsResult&&typeof s.guardsResult!="boolean")throw en(this.urlSerializer,s.guardsResult);let a=new qr(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.events.next(a)}),H(s=>s.guardsResult?!0:(this.cancelNavigationTransition(s,"",V.GuardRejected),!1)),ci(s=>{if(s.guards.canActivateChecks.length!==0)return p(s).pipe(P(a=>{let o=new Vr(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(o)}),U(a=>{let o=!1;return p(a).pipe(Sl(this.paramsInheritanceStrategy,this.environmentInjector),P({next:()=>
vendor: 11,611 bytes, line 1
1o=!0,complete:()=>{o||this.cancelNavigationTransition(a,"",V.NoDataFromResolver)}}))}),P(a=>{let o=new zr(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(o)}))}),ci(s=>{let a=o=>{let c=[];if(o.routeConfig?.loadComponent){let u=xt(o)??this.environmentInjector;c.push(this.configLoader.loadComponent(u,o.routeConfig).pipe(P(d=>{o.component=d}),y(()=>{})))}for(let u of o.children)c.push(...a(u));return c};return Je(a(s.targetSnapshot.root)).pipe(Fn(null),$(1))}),ci(()=>this.afterPreactivation()),U(()=>{let{currentSnapshot:s,targetSnapshot:a}=n,o=this.createViewTransition?.(this.environmentInjector,s.root,a.root);return o?Q(o).pipe(y(()=>n)):p(n)}),y(s=>{let a=Fc(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return this.currentTransition=n=k(h({},s),{targetRouterState:a}),this.currentNavigation.update(o=>(o.targetRouterState=a,o)),n}),P(()=>{this.events.next(new Zt)}),jc(this.rootContexts,e.routeReuseStrategy,s=>this.events.next(s),this.inputBindingEnabled),$(1),se(new Te(s=>{let a=n.abortController.signal,o=()=>s.next();return a.addEventListener("abort",o),()=>a.removeEventListener("abort",o)}).pipe(H(()=>!i&&!n.targetRouterState),P(()=>{this.cancelNavigationTransition(n,n.abortController.signal.reason+"",V.Aborted)}))),P({next:s=>{i=!0,this.lastSuccessfulNavigation=be(this.currentNavigation),this.events.next(new ye(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects))),this.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)},complete:()=>{i=!0}}),se(this.transitionAbortWithErrorSubject.pipe(P(s=>{throw s}))),Cr(()=>{i||this.cancelNavigationTransition(n,"",V.SupersededByNewNavigation),this.currentTransition?.id===n.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),et(s=>{if(this.destroyed)return n.resolve(!1),he;if(i=!0,ba(s))this.events.next(new le(n.id,this.urlSerializer.serialize(n.extractedUrl),s.message,s.cancellationCode)),Uc(s)?this.events.next(new pt(s.url,s.navigationBehaviorOptions)):n.resolve(!1);else{let a=new ft(n.id,this.urlSerializer.serialize(n.extractedUrl),s,n.targetSnapshot??void 0);try{let o=W(this.environmentInjector,()=>this.navigationErrorHandler?.(a));if(o instanceof mt){let{message:c,cancellationCode:u}=en(this.urlSerializer,o);this.events.next(new le(n.id,this.urlSerializer.serialize(n.extractedUrl),c,u)),this.events.next(new pt(o.redirectTo,o.navigationBehaviorOptions))}else throw this.events.next(a),s}catch(o){this.options.resolveNavigationPromiseOnError?n.resolve(!1):n.reject(o)}}return he}))}))}cancelNavigationTransition(e,n,i){let s=new le(e.id,this.urlSerializer.serialize(e.extractedUrl),n,i);this.events.next(s),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),n=be(this.currentNavigation),i=n?.targetBrowserUrl??n?.extractedUrl;return e.toString()!==i?.toString()&&!n?.extras.skipLocationChange}static \u0275fac=function(n){return new(n||t)};static \u0275prov=f({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Ml(t){return t!==Gt}var Oa=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=f({token:t,factory:()=>l(kl),providedIn:"root"})}return t})(),rn=class{shouldDetach(r){return!1}store(r,e){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,e){return r.routeConfig===e.routeConfig}},kl=(()=>{class t extends rn{static \u0275fac=(()=>{let e;return function(i){return(e||(e=ae(t)))(i||t)}})();static \u0275prov=f({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ia=(()=>{class t{urlSerializer=l(ir);options=l(or,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=l(ot);urlHandlingStrategy=l(sn);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new ue;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:n,targetBrowserUrl:i}){let s=e!==void 0?this.urlHandlingStrategy.merge(e,n):n,a=i??s;return a instanceof ue?this.urlSerializer.serialize(a):a}commitTransition({targetRouterState:e,finalUrl:n,initialUrl:i}){n&&e?(this.currentUrlTree=n,this.rawUrlTree=this.urlHandlingStrategy.merge(n,i),this.routerState=e):this.rawUrlTree=i}routerState=pa(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=f({token:t,factory:()=>l(Ol),providedIn:"root"})}return t})(),Ol=(()=>{class t extends Ia{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(n=>{n.type==="popstate"&&setTimeout(()=>{e(n.url,n.state,"popstate")})})}handleRouterEvent(e,n){e instanceof je?this.updateStateMemento():e instanceof Ee?this.commitTransition(n):e instanceof Kt?this.urlUpdateStrategy==="eager"&&(n.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof Zt?(this.commitTransition(n),this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof le&&e.code!==V.SupersededByNewNavigation&&e.code!==V.Redirect?this.restoreHistory(n):e instanceof ft?this.restoreHistory(n,!0):e instanceof ye&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,{extras:n,id:i}){let{replaceUrl:s,state:a}=n;if(this.location.isCurrentPathEqualTo(e)||s){let o=this.browserPageId,c=h(h({},a),this.generateNgRouterState(i,o));this.location.replaceState(e,"",c)}else{let o=h(h({},a),this.generateNgRouterState(i,this.browserPageId+1));this.location.go(e,"",o)}}restoreHistory(e,n=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,s=this.currentPageId-i;s!==0?this.location.historyGo(s):this.getCurrentUrlTree()===e.finalUrl&&s===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,n){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:n}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(i){return(e||(e=ae(t)))(i||t)}})();static \u0275prov=f({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function ki(t,r){t.events.pipe(H(e=>e instanceof ye||e instanceof le||e instanceof ft||e instanceof Ee),y(e=>e instanceof ye||e instanceof Ee?0:(e instanceof le?e.code===V.Redirect||e.code===V.SupersededByNewNavigation:!1)?2:1),H(e=>e!==2),$(1)).subscribe(()=>{r()})}var Il={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Ll={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},cr=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=l($n);stateManager=l(Ia);options=l(or,{optional:!0})||{};pendingTasks=l(xs);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=l(ka);urlSerializer=l(ir);location=l(ot);urlHandlingStrategy=l(sn);injector=l(ee);_events=new _;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=l(Oa);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=l(qe,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!l(sr,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new Ze;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(n=>{try{let i=this.navigationTransitions.currentTransition,s=be(this.navigationTransitions.currentNavigation);if(i!==null&&s!==null){if(this.stateManager.handleRouterEvent(n,s),n instanceof le&&n.code!==V.Redirect&&n.code!==V.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof ye)this.navigated=!0;else if(n instanceof pt){let a=n.navigationBehaviorOptions,o=this.urlHandlingStrategy.merge(n.url,i.currentRawUrl),c=h({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Ml(i.source)},a);this.scheduleNavigation(o,Gt,null,c,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}Oc(n)&&this._events.next(n)}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Gt,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,n,i)=>{this.navigateToSyncWithBrowser(e,i,n)})}navigateToSyncWithBrowser(e,n,i){let s={replaceUrl:!0},a=i?.navigationId?i:null;if(i){let c=h({},i);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(s.state=c)}let o=this.parseUrl(e);this.scheduleNavigation(o,n,a,s).catch(c=>{this.disposed||this.injector.get(qn)(c)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return be(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(Di),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,n={}){let{relativeTo:i,queryParams:s,fragment:a,queryParamsHandling:o,preserveFragment:c}=n,u=c?this.currentUrlTree.fragment:a,d=null;switch(o??this.options.defaultQueryParamsHandling){case"merge":d=h(h({},this.currentUrlTree.queryParams),s);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}d!==null&&(d=this.removeEmptyProps(d));let m;try{let E=i?i.snapshot:this.routerState.snapshot.root;m=ua(E)}
1catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),m=this.currentUrlTree.root}return da(m,e,d,u??null)}navigateByUrl(e,n={skipLocationChange:!1}){let i=ht(e)?e:this.parseUrl(e),s=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(s,Gt,null,n)}navigate(e,n={skipLocationChange:!1}){return Pl(e),this.navigateByUrl(this.createUrlTree(e,n),n)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.console.warn(ps(4018,!1)),this.urlSerializer.parse("/")}}isActive(e,n){let i;if(n===!0?i=h({},Il):n===!1?i=h({},Ll):i=n,ht(e))return $s(this.currentUrlTree,e,i);let s=this.parseUrl(e);return $s(this.currentUrlTree,s,i)}removeEmptyProps(e){return Object.entries(e).reduce((n,[i,s])=>(s!=null&&(n[i]=s),n),{})}scheduleNavigation(e,n,i,s,a){if(this.disposed)return Promise.resolve(!1);let o,c,u;a?(o=a.resolve,c=a.reject,u=a.promise):u=new Promise((m,E)=>{o=m,c=E});let d=this.pendingTasks.add();return ki(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:s,resolve:o,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(m=>Promise.reject(m))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=f({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Pl(t){for(let r=0;r<t.length;r++)if(t[r]==null)throw new O(4008,!1)}var Hl=new x("");function Bl(t,...r){return tt([{provide:qe,multi:!0,useValue:t},[],{provide:we,useFactory:Ul,deps:[cr]},{provide:Ts,multi:!0,useFactory:jl},r.map(e=>e.\u0275providers)])}function Ul(t){return t.routerState.root}function La(t,r){return{\u0275kind:t,\u0275providers:r}}function jl(){let t=l(w);return r=>{let e=t.get(xe);if(r!==e.components[0])return;let n=t.get(cr),i=t.get(ql);t.get(Vl)===1&&n.initialNavigation(),t.get(zl,null,{optional:!0})?.setUpPreloading(),t.get(Hl,null,{optional:!0})?.init(),n.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var ql=new x("",{factory:()=>new _}),Vl=new x("",{providedIn:"root",factory:()=>1});var zl=new x("");function $l(){return La(8,[Ci,{provide:sr,useExisting:Ci}])}function Gl(t){vs("NgRouterViewTransitions");let r=[{provide:Ni,useValue:Na},{provide:Mi,useValue:h({skipNextTransition:!!t?.skipInitialTransition},t)}];return La(9,r)}var Ii=["a","btag","tcode","dynamic","tracker","gclid","gbraid","wbraid","affid","siteid","adid","c","msclkid","fbclid","tid","bid","pid","sref","SUBID","SUB_ID","AFF_ID","utm_campaign","utm_medium","utm_source","utm_content","utm_matchtype","utm_keyword","aid","cid","var1","subid","version"];var an=class t{constructor(){}setCookies(r){if(r!==""){let e=r,n={};e=r?.substring(1);let i=e?.split("&");for(let s of i){let a=s.split("=");Ii.includes(a[0])&&!a[1].includes("trackingid")&&(n[a[0]]=a[1],this.setCookie(a[0],a[1]))}}return this.getRelevantCookies(r)}setCookie(r,e){let n=new Date;n.setTime(n.getTime()+30*864e5);let i="; expires="+n.toUTCString(),s=location.hostname.split(".");s.shift();let a=s.join(".");document.cookie=r+"="+(e||"")+i+"; path=/; domain="+a+"; Secure;"}getRelevantCookies(r){let e=document.cookie.split(";"),n=r.includes("?")?"&":"?",i=null;for(let s of e){let a=s.split("=")[0].trim();if(Ii.includes(a))if(a==="btag")i=s.split("=")[1]?.trim(),n+="btag="+i+"&";else if(a==="a"){let o=s.split("=")[1]?.trim();n+="a="+o+"{{BTAG_PLACEHOLDER}}&"}else n+=s.trim()+"&"}return n=n.slice(0,-1),i&&!n.includes(".btag_")?n=n.replace("{{BTAG_PLACEHOLDER}}",".btag_"+i):n=n.replace("{{BTAG_PLACEHOLDER}}",""),n}getSpecificCookie(r){let e=document.cookie.split(";");for(let n of e)if(n.split("=")[0].trim()==r)return n.split("=")[1].trim();return""}eraseCookie(r){document.cookie=r+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;"}static \u0275fac=function(e){return new(e||t)};static \u0275prov=f({token:t,factory:t.\u0275fac,providedIn:"root"})};var Pa="general-application-wrapper",Li="localhost:4000",on={DESKTOP:"desktop",MOBILE:"mobile",TABLET:"tablet"},Fa="images";var Pi=1025,Ha=481,Ba=qt.localhostAddress,vh={1:()=>import("./chunk-LQBJACMJ.js").then(t=>t.HeaderComponent),2:()=>import("./chunk-BHG5EUCN.js").then(t=>t.MainBannerComponent),3:()=>import("./chunk-ZLQ6CJ7M.js").then(t=>t.ThreeJoinStepsComponent),4:()=>import("./chunk-BE347LNU.js").then(t=>t.PromotionComponent),5:()=>import("./chunk-LATC6H3K.js").then(t=>t.FooterComponent),6:()=>import("./chunk-L4JVHAY5.js").then(t=>t.GamesComponent),7:()=>import("./chunk-YFCMRHRO.js").then(t=>t.CustomHtmlComponent),8:()=>import("./chunk-XGATLEPB.js").then(t=>t.InvalidPageComponent),9:()=>import("./chunk-ZVYRXHT6.js").then(t=>t.PostalComponent),10:()=>import("./chunk-OHMECOIN.js").then(t=>t.OptoutComponent),11:()=>import("./chunk-TZCUS2XF.js").then(t=>t.CookiePolicyComponent),20:()=>import("./chunk-ZFVNNA4P.js").then(t=>t.SnowComponent),39:()=>import("./chunk-7XX6C6TZ.js").then(t=>t.GameDataComponent),40:()=>import("./chunk-QESXP22F.js").then(t=>t.RatingComponent),41:()=>import("./chunk-X67E34YI.js").then(t=>t.TopGameBannerComponent),42:()=>import("./chunk-BCYSZZ67.js").then(t=>t.AffiliatesComponent),43:()=>import("./chunk-YSW3ULWU.js").then(t=>t.AffiliatesBannerComponent),44:()=>import("./chunk-IHLLLFY5.js").then(t=>
1t.AdvertisingDisclosureComponent),45:()=>import("./chunk-RQCU4FPD.js").then(t=>t.ComplianceBannerComponent),46:()=>import("./chunk-EWLMXYXK.js").then(t=>t.QuickRegistrationComponent),52:()=>import("./chunk-E35RBDYC.js").then(t=>t.StickyTAndCComponent),53:()=>import("./chunk-VHKURFCF.js").then(t=>t.SupportChatComponent),55:()=>import("./chunk-M63OHZG3.js").then(t=>t.BarcGamesComponent),58:()=>import("./chunk-REHR2MHW.js").then(t=>t.BingoGamesComponent),59:()=>import("./chunk-PORTQ73X.js").then(t=>t.BlogComponent),60:()=>import("./chunk-SIPEL6HG.js").then(t=>t.BlogPostHeroComponent),61:()=>import("./chunk-5GCOY62G.js").then(t=>t.BreadcrumbsComponent),62:()=>import("./chunk-TDGNLVLO.js").then(t=>t.BackToTopComponent),63:()=>import("./chunk-6VUQR3GP.js").then(t=>t.BingoCardGeneratorComponent),64:()=>import("./chunk-5DGKE5KV.js").then(t=>t.ChooseYourOfferComponent),66:()=>import("./chunk-SLIGO3AY.js").then(t=>t.FaqComponent),99:()=>import("./chunk-TOSOIQWI.js").then(t=>t.MaintenancePageComponent)};function Ua(t,r){return r?`${t}${t.includes("?")?"&":"?"}v=${r}`:t}var ja=new x("REQUEST_URL");var qa=new x("Server.RENDER_MODULE_HOOK");var Zl=(()=>{class t{xhrImpl;async \u0275loadImpl(){if(!this.xhrImpl){let{default:e}=await import("./chunk-WRMASRXA.js");this.xhrImpl=e}}build(){let e=this.xhrImpl;if(!e)throw new Error("Unexpected state in ServerXhr: XHR implementation is not loaded.");return new e.XMLHttpRequest}static \u0275fac=function(n){return new(n||t)};static \u0275prov=f({token:t,factory:t.\u0275fac})}return t})();function Ql(t,r){let e=l(Ps),{href:n,protocol:i,hostname:s,port:a}=e;if(!i.startsWith("http"))return r(t);let o=`${i}//${s}`;a&&(o+=`:${a}`);let c=e.getBaseHrefFromDOM()||n,u=new URL(c,o),d=new URL(t.url,u).toString();return r(t.clone({url:d}))}var Jl=[{provide:Fs,useClass:Zl},{provide:Vs,useValue:Ql,multi:!0}];var eu=(()=>{class t extends Us{doc;constructor(e){super(e),this.doc=e}supports(e){return!0}addEventListener(e,n,i,s){return Ls().onAndCancel(e,n,i,s)}static \u0275fac=function(n){return new(n||t)(Lt(S))};static \u0275prov=f({token:t,factory:t.\u0275fac})}return t})();var tu=[{provide:qa,useFactory:ru,multi:!0}];function Va(t,r,e){let n=t.createElement("script");return n.textContent=r,e&&n.setAttribute("nonce",e),n}function ru(){let t=l(S),r=l(Pt),e=l(nt),n=l(w);return()=>{let i="serializeTransferStateFactory";ri(i);let s=e.toJson();if(e.isEmpty)return;let a=Va(t,s,null);a.id=r+"-state",a.setAttribute("type","application/json"),t.body.appendChild(a),ni(i)}}var nu=[{provide:js,multi:!0,useClass:eu}],za=[tu,nu,Jl,{provide:Ss,useValue:null},{provide:ws,useValue:null},{provide:Hs,useClass:Bs}];function $a(){return tt([...za])}var Ga="ng-app-shell",lr=(function(t){return t[t.AppShell=0]="AppShell",t[t.ServerRoutes=1]="ServerRoutes",t})(lr||{}),Ve=(function(t){return t[t.Server=0]="Server",t[t.Client=1]="Client",t[t.Prerender=2]="Prerender",t})(Ve||{});var Wa=new x("SERVER_ROUTES_CONFIG");function Ya(t){let r={routes:t};return{\u0275kind:lr.ServerRoutes,\u0275providers:[{provide:Wa,useValue:r}]}}function Xa(t){let r={path:Ga};return"\u0275cmp"in t?r.component=t:r.loadComponent=t,{\u0275kind:lr.AppShell,\u0275providers:[{provide:qe,useValue:r,multi:!0},gs(()=>{let e=l(Wa);e.appShellRoute=Ga})]}}function Ka(...t){let r=!1,e=!1,n=[$a()];for(let{\u0275kind:i,\u0275providers:s}of t)r||=i===lr.AppShell,e||=i===lr.ServerRoutes,n.push(...s);if(!e&&r)throw new Error("Configuration error: found 'withAppShell()' without 'withRoutes()' in the same call to 'provideServerRendering()'.The 'withAppShell()' function requires 'withRoutes()' to be used.");return tt(n)}var af={[Ve.Prerender]:"ssg",[Ve.Server]:"ssr",[Ve.Client]:""};var Za=[{path:"",renderMode:Ve.Server},{path:"**",renderMode:Ve.Server}];var ou=()=>[1,2,3],cu=()=>[1,2,3,4];function lu(t,r){t&1&&(re(0,"div",12),ve(1,"div",14),re(2,"div",15),ve(3,"div",10)(4,"div",16),_e()())}function uu(t,r){t&1&&(re(0,"div",12),ve(1,"div",14),_e())}var cn=class t{platformId=l(me);isBrowser=I(!1);sidebar=Pe(!0);cards=Pe(3);linesPerCard=Pe(3);fullHeight=Pe(!0);Array=Array;constructor(){te(()=>{this.isBrowser.set(oe(this.platformId)),this.isBrowser()&&!this.isProduction()&&console.log("AppShellComponent DOM rendered",{sidebar:this.sidebar(),cards:this.cards(),linesPerCard:this.linesPerCard(),fullHeight:this.fullHeight()})})}isProduction(){return typeof window<"u"&&window.location.hostname!=="localhost"&&!window.location.hostname.includes("127.0.0.1")}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=j({type:t,selectors:[["app-shell"]],inputs:{sidebar:[1,"sidebar"],cards:[1,"cards"],linesPerCard:[1,"linesPerCard"],fullHeight:[1,"fullHeight"]},decls:19,vars:4,consts:[["ngSkipHydration","","role","status","aria-busy","true","aria-live","polite","aria-label","Page content is loading",1,"shell"],["aria-label","Header placeholder",1,"shell-header"],[1,"header-skeleton"],["aria-hidden","true",1,"logo-skeleton","shimmer"],[1,"buttons-skeleton"],["aria-hidden","true",1,"button-skeleton","shimmer"],["aria-label","Banner placeholder",1,"shell-banner"],["aria-hidden","true",1,"shell-banner-skeleton","shimmer"],["aria-label","Main content placeholder",1,"shell-body"],["aria-hidden","true",1,"shell-banner-terms"],[1,"text-line","shimmer"],["aria-hidden","true",1,"content-row","content-row-3"],[1,"content-card"],["aria-hidden","true",1,"content-row","content-row-4"],[1,"card-image","shimmer"],[1,"card-text"],[1,"text-line","shimmer",2,"width","85%"]],template:function(e,n){e&1&&(re(0,"div",0)(1,"header",1)(2,"div",2),ve(3,"div",3),re(4,"div",4),ve(5,"div",5)(6,"div",5),_e()()(),re(7,"section",6),ve(8,"div",7),_e(),re(9,"main",8)(10,"div",9),ve(11,"div",10)(12,"div",10),_e(),re(13,"div",11),Yn(14,lu,5,0,"div",12,Wn),_e(),re(16,"div",13),Yn(17,uu,2,0,"div",12,Wn),_e()()()),e&2&&(at("full-height",n.fullHeight()),it(14),Xn(ei(2,ou)),it(3),Xn(ei(3,cu)))},styles:["[_nghost-%COMP%]{--shell-radius: 10px;--shell-gap: 1rem;--shell-surface: #e6e6e9;--shell-surface-2: #f3f3f6}@media (prefers-color-scheme: dark){[_nghost-%COMP%]{--shell-surface: #2b2d31;--shell-surface-2: #3a3d42}}.shimmer[_ngcontent-%COMP%]{background:linear-gradient(90deg,var(--shell-surface) 0%,var(--shell-surface-2) 50%,var(--shell-surface) 100%);background-size:200% 100%;background-position:100% 0;border-radius:var(--shell-radius);will-change:background-position;transform:translateZ(0);backface-visibility:hidden}@media (prefers-reduced-motion: no-preference){.shimmer[_ngcontent-%COMP%]{animation:shimmer-slide 1.4s ease-in-out infinite}}@keyframes _ngcontent-%COMP%_shimmer-slide{0%{background-position:100% 0}50%{background-position:0% 0}to{background-position:100% 0}}.shell[_ngcontent-%COMP%]{display:grid;grid-template-rows:auto auto 1fr;gap:var(--shell-gap);padding:var(--shell-gap);max-width:960px;margin:0 auto;width:100%;contain:layout style paint;content-visibility:auto;contain-intrinsic-size:auto 800px}@supports (content-visibility: auto){.shell[_ngcontent-%COMP%]{contain-intrinsic-size:auto 800px}}@media only screen and (max-width: 480px){.shell[_ngcontent-%COMP%]{max-width:100%}}@media only screen and (min-width: 481px) and (max-width: 1024px){.shell[_ngcontent-%COMP%]{max-width:960px}}.shell.full-height[_ngcontent-%COMP%]{min-height:100dvh}.shell-header[_ngcontent-%COMP%]{height:60px;background:var(--shell-surface);border-radius:var(--shell-radius);padding:.75rem 1rem}.header-skeleton[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;height:100%;gap:1rem}.logo-skeleton[_ngcontent-%COMP%]{width:120px;height:40px;flex-shrink:0}.buttons-skeleton[_ngcontent-%COMP%]{display:flex;gap:.75rem;margin-left:auto}.button-skeleton[_ngcontent-%COMP%]{width:100px;height:36px;border-radius:calc(var(--shell-radius) - 2px)}.shell-banner[_ngcontent-%COMP%]{width:100%;height:500px;border-radius:var(--shell-radius);overflow:hidden;contain:layout style paint;content-visibility:auto;contain-intrinsic-size:auto 500px}.shell-banner-skeleton[_ngcontent-%COMP%]{width:100%;height:100%}.shell-body[_ngcontent-%COMP%]{display:grid;gap:var(--shell-gap);content-visibility:auto;contain-intrinsic-size:auto 600px}.content-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:var(--shell-gap);will-change:contents}.shell-banner-terms[_ngcontent-%COMP%]{height:50px;width:100%;background-color:#d3d3d3;display:grid;place-items:center;gap:.5rem;padding:.75rem;border-radius:var(--shell-radius)}.content-row-3[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:var(--shell-gap);align-items:flex-start}.content-row-4[_ngcontent-%COMP%]{grid-template-columns:repeat(4,1fr)}@media (max-width: 768px){.content-row-3[_ngcontent-%COMP%]{flex-direction:column;align-items:stretch}}@media (max-width: 768px){.content-row-4[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}}@media (max-width: 480px){.content-row-3[_ngcontent-%COMP%]{grid-template-columns:1fr}.content-row-4[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}}.content-row-3[_ngcontent-%COMP%] .content-card[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:.75rem;padding:.75rem;background:var(--shell-surface);border-radius:var(--shell-radius);flex:1;align-items:center}.content-card[_ngcontent-%COMP%]{display:grid;gap:.75rem;padding:.75rem;background:var(--shell-surface);border-radius:var(--shell-radius)}.content-row-3[_ngcontent-%COMP%] .card-image[_ngcontent-%COMP%]{width:50px;height:50px;flex-shrink:0;border-radius:calc(var(--shell-radius) - 2px)}.card-image[_ngcontent-%COMP%]{width:100%;height:150px;border-radius:calc(var(--shell-radius) - 2px)}.content-row-3[_ngcontent-%COMP%] .card-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;flex:1;justify-content:center}.card-text[_ngcontent-%COMP%]{display:grid;gap:.5rem}.text-line[_ngcontent-%COMP%]{height:12px;width:100%;border-radius:2px}@media (max-width: 768px){.shell[_ngcontent-%COMP%]{padding:.5rem;gap:.5rem}.shell-header[_ngcontent-%COMP%]{height:50px;padding:.5rem}.logo-skeleton[_ngcontent-%COMP%]{width:80px;height:30px}.button-skeleton[_ngcontent-%COMP%]{width:80px;height:32px}.shell-banner[_ngcontent-%COMP%]{height:200px}.shell-banner-terms[_ngcontent-%COMP%]{height:50px;padding:.5rem;gap:.25rem}.content-row[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.card-image[_ngcontent-%COMP%]{height:100px}}@media (max-width: 480px){.shimmer[_ngcontent-%COMP%]{animation:shimmer-slide 1.6s ease-in-out infinite;will-change:auto}.shell[_ngcontent-%COMP%]{contain-intrinsic-size:auto 1000px}.shell-banner[_ngcontent-%COMP%]{height:500px;contain-intrinsic-size:auto 500px}.shell-header[_ngcontent-%COMP%]{height:48px}.logo-skeleton[_ngcontent-%COMP%]{width:70px;height:28px}.buttons-skeleton[_ngcontent-%COMP%]{gap:0}.button-skeleton[_ngcontent-%COMP%]:nth-child(2){display:none}.button-skeleton[_ngcontent-%COMP%]{width:70px;height:30px}.shell-banner[_ngcontent-%COMP%]{height:500px}.card-image[_ngcontent-%COMP%]{height:120px}}"],changeDetection:0})};var du=/^[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,hu=/^\d{1,3}(\.\d{1,3}){3}$/,fu=["localhost",".localhost",".local",".internal",".lan",".intranet",".nip.io",".sslip.io",".xip.io",".oast.online",".oast.fun",".oast.site",".oast.pro",".oast.live",".oast.me",".interact.sh",".burpcollaborator.net",".canarytokens.com",".requestbin.net",".dnslog.cn",".pipedream.net"],bt=t=>{let r=String(t||"").trim().toLowerCase(),e=r.match(/^\[(.+?)\](?::\d+)?$/);return e?e[1]:((r.match(/:/g)||[]).length===1&&(r=r.replace(/:\d+$/,"")),r.length>1&&r.endsWith(".")&&(r=r.slice(0,-1)),r)},Qa=t=>{let r=bt(t);
1return r==="localhost"||r==="127.0.0.1"||r==="::1"||r==="0.0.0.0"},pu=t=>{let r=bt(t);if(!r||hu.test(r)||r.includes(":")||r.includes("169.254.169.254")||/(^|\.)169\.254\./.test(r))return!0;for(let e of fu)if(e.startsWith(".")){if(r===e.slice(1)||r.endsWith(e))return!0}else if(r===e)return!0;return!1},mu=(t,r=[])=>{if(!r.length)return!0;let e=bt(t);return r.some(n=>e===n||e.endsWith("."+n))},Ja=(t,r=[])=>{let e=bt(t);return!(!e||!du.test(e)||pu(e)||!mu(e,r))};var eo=800,to=800,yt=1200;function ro(t,r){let e=bt(t);return Qa(e)?r:Ja(e)?e:""}function no(t){let r=new URL(t.toString());r.searchParams.delete("footer");let e=r.pathname.replace(/\/{2,}/g,"/");(e===""||e==="/")&&(e="/");let n=e.replace(/(^|\/)footer(\/|$)/gi,"$1").replace(/\/$/,"")||"/",i=r.searchParams.toString();return{cleanPath:n,qs:i?`?${i}`:""}}function Et(t,r,e){return new Promise(n=>{let i=setTimeout(()=>n(e),r);t.then(s=>{clearTimeout(i),n(s)},s=>{clearTimeout(i),n(e)})})}async function Fi(t,r,e,n=!1){let i=new AbortController,s=setTimeout(()=>i.abort("timeout"),e);try{let a=await fetch(t,k(h({},r),{signal:i.signal})),u=(a.headers.get("content-type")||"").includes("application/json")?await a.json():await a.text();return{ok:a.ok,status:a.status,data:u}}catch(a){return n&&console.warn(`[fetchJson] timeout fetching ${t} (timeout: ${e}ms)`,a),{ok:!1,status:0,data:null}}finally{clearTimeout(s)}}function io(t){let r=t?.data;return typeof r?.statusCode=="number"?r.statusCode:typeof r?.status=="number"?r.status:typeof t?.status=="number"?t.status:500}var so="x-ssr-request-id";var vu=new Map;function ao(t){return vu.get(t)}var oo="FOOTER_HTML_SSR";var co="BINGO_GAMES_SSR",lo="IG_GAMES_SSR";var bu=qt.DEV_BACKEND_HOST||"www.dev-spark-jumpman.bingosys.net",wt="PAGE_SETTINGS_SSR",yu=qt.LOG_DEBUG==="1";function K(t){yu&&console.log(`[AngularSSR] ${t}`)}var Pf={providers:[Ka(Ya(Za),Xa(cn)),Gn(async()=>{let t=l(ii),r=l(nt);try{let e=new URL(t.url),n=ro(e.host,bu),{cleanPath:i,qs:s}=no(e);K(`Request URL: ${t.url} | BackendHost: ${n}`);let a=t.headers.get(so)||"",o=a?ao(a):void 0,c;if(o?.isSplitMode)c={settings:(await o.settingsPromise)?.settings??{},split_mode:!0},K("Split mode \u2014 passing settings from shared pageConfig");else if(o){let[u,d]=await Promise.all([o.statusPromise,o.settingsPromise]);!(u.ok&&u.statusCode<400)?(c={errorMode:!0,settings:{meta_title:"Page Not Found",meta_description:"The page you requested does not exist."},modules:[{component_id:8,module_id:8,desktop:[],mobile:[],tablet:[],page_module_id:""}]},K("Shared status indicates error mode (404/5xx)")):d?(c=d,K("Reused shared pageSettings from server.ts")):(c={settings:{},modules:[],ssr_failed:!0},K("Shared pageSettings was null \u2014 marking ssr_failed")),!c?.errorMode&&(e.searchParams.has("footer")||/(^|\/)footer$/i.test(e.pathname.replace(/\/+$/,"")))&&Array.isArray(c.modules)&&(c.modules=c.modules.filter(E=>+E.component_id==5))}else{K("No shared settings found \u2014 falling back to own fetch");let u={"user-agent":t.headers.get("user-agent")||"","accept-language":t.headers.get("accept-language")||""};if(e.searchParams.has("ssr")&&e.searchParams.get("ssr")==="split")c={settings:{},split_mode:!0};else{let m=`https://${n}/api/v2/pageStatus${i}${s}`,E=`https://${n}/api/v2/pageSettings${i}${s}`,C=Fi(m,{headers:u},to),v=Fi(E,{headers:u},eo),A=await Et(C,yt,{ok:!1,status:0,data:null}),Z=io(A);if(!(A.ok&&Z<400))c={errorMode:!0,settings:{meta_title:"Page Not Found",meta_description:"The page you requested does not exist."},modules:[{component_id:8,module_id:8,desktop:[],mobile:[],tablet:[],page_module_id:""}]};else{let de=await Et(v,yt,{ok:!1,status:0,data:null});c=de.ok&&de.data?de.data:{settings:{},modules:[],ssr_failed:!0}}!c?.errorMode&&(e.searchParams.has("footer")||/(^|\/)footer$/i.test(e.pathname.replace(/\/+$/,"")))&&Array.isArray(c.modules)&&(c.modules=c.modules.filter(de=>+de.component_id==5))}}if(r.set(wt,c),o?.footerPromise)try{let u=await Et(o.footerPromise,yt,null);u?.footerId&&u?.html?(r.set(oo,{[u.footerId]:u.html}),K(`Footer HTML transferred: ${u.footerId} (${u.html.length} chars)`)):u?.warning&&K(`Footer fetch warning: ${u.footerId} \u2014 ${u.warning}`)}catch{K("Footer fetch from shared store failed \u2014 client will fetch")}if(o?.bingoGamesPromise)try{let u=await Et(o.bingoGamesPromise,yt,null);u?.key&&u?.games&&(r.set(co,{[u.key]:u.games}),K(`Bingo games transferred: ${u.key} (${u.games.length} items)`))}catch{K("Bingo games fetch from shared store failed \u2014 client will fetch")}if(o?.igGamesPromise)try{let u=await Et(o.igGamesPromise,yt,null);u?.key&&u?.games&&(r.set(lo,{[u.key]:u.games}),K(`IG games transferred: ${u.key} (${u.games.length} items)`))}catch{K("IG games fetch from shared store failed \u2014 client will fetch")}}catch{r.set(wt,{settings:{},modules:[],ssr_failed:!0})}})]};var ln=class t{_http=l(qs);transferState=l(nt);platformId=l(me);requestUrl=l(ja,{optional:!0});showLoader=I(!0);debugLoader;appData=I(null);appSettings=I(null);dataOf404=[{component_id:8,module_id:8,desktop:[],mobile:[],tablet:[],page_module_id:""}];unwrapSettingsContainer(r){return r?(r["page-settings"]&&(r=r["page-settings"]),r.pageSettings&&(r=r.pageSettings),r.page_settings&&(r=r.page_settings),r):null}normalize(r){let e=this.unwrapSettingsContainer(r);if(!e)return null;let n=e.settings??{},i=Array.isArray(e.modules)?e.modules:[];return{settings:n,modules:i}}isErrorMode(r){let e=this.unwrapSettingsContainer(r)??r,n=!!(e?.errorMode||e?.settings?.errorMode),s=(Array.isArray(e?.modules)?e.modules:[]).some(a=>+a.component_id==8||+a.module_id==8);return n||s}isFooterOnly(){if(oe(this.platformId))try{let e=new URL(window.location.href).searchParams.has("footer"),n=/\/footer(?:\/|$)/i.test(window.location.pathname);return e||n}catch{return!1}let r=this.requestUrl;if(!r)return!1;try{let e=new URL(`http://localhost${r}`);return e.searchParams.has("footer")||/\/footer(?:\/|$)/i.test(e.pathname)}catch{return!1}}maybeFilterFooter(r){return!r||!this.isFooterOnly()?r:r.filter(e=>+e.component_id==5)}async fetchFromApiAndSet(){let r=new URL(window.location.href),e=new URLSearchParams(r.
1search);e.delete("footer");let n=e.toString()?`?${e.toString()}`:"",i=window.location.pathname.replace(/footer/gi,"");try{let s=Qe(this._http.get(`/api/v2/pageStatus${i}${n}`)).catch(()=>null),a=Qe(this._http.get(`/api/v2/pageSettings${i}${n}`)),c=(await s)?.version||null,u;if(c){let E=Ua(`/api/v2/pageSettings${i}${n}`,c);u=await Qe(this._http.get(E))}else u=await a;let d=this.normalize(u)??{settings:{},modules:[]},m=this.maybeFilterFooter(d.modules);return this.appSettings.set(d.settings),this.appData.set(m),{settings:d.settings,modules:m??[]}}catch{let s={images_folder:"",index_page:"",meta_description:"",meta_title:"",page_id:"",skin_id:0,website_id:0};return this.appSettings.set(s),this.appData.set(this.maybeFilterFooter(this.dataOf404)),{settings:s,modules:[]}}}async fetchPageStructure(r){let e=new URL(window.location.href),n=new URLSearchParams(e.search);n.delete("footer"),n.delete("ssr"),r&&n.set("v",r);let i=n.toString()?`?${n.toString()}`:"",s=window.location.pathname.replace(/footer/gi,"");try{return(await Qe(this._http.get(`/api/v2/pageStructure${s}${i}`))).modules??[]}catch(a){return console.error("[DataService] Failed to fetch page structure:",a),[]}}async fetchPageData(){let r=oe(this.platformId);if(this.transferState.hasKey(wt)){let n=this.transferState.get(wt,null);r&&this.transferState.remove(wt);let i=this.normalize(n),s=this.isErrorMode(n),a=!!n?.ssr_failed,o=i&&Array.isArray(i.modules)&&i.modules.length>0,c=i&&i.settings&&Object.keys(i.settings).length>0;if(s){let d=this.maybeFilterFooter(i?.modules??this.dataOf404);return this.appSettings.set(i?.settings??null),this.appData.set(d),{settings:i?.settings??{},modules:d??[]}}if(r&&!a&&(n?.split_mode||c&&!o)){let d=i?.settings&&Object.keys(i.settings).length>0?i.settings:await Qe(this._http.get(`/api/v2/pageConfig${window.location.pathname}`)).then(v=>v?.settings??{}).catch(()=>({}));this.appSettings.set(d);let m=d?.version,E=await this.fetchPageStructure(m),C=this.maybeFilterFooter(E);return this.appData.set(C),{settings:d,modules:C??[]}}if(r&&(a||!c&&!o))return a&&await new Promise(d=>setTimeout(d,300)),await this.fetchFromApiAndSet();let u=this.maybeFilterFooter(i?.modules??null);return this.appSettings.set(i?.settings??null),this.appData.set(u),{settings:i?.settings??{},modules:u??[]}}if(r)return await this.fetchFromApiAndSet();let e={images_folder:"",index_page:"",meta_description:"",meta_title:"",page_id:"",skin_id:0,website_id:0};return this.appSettings.set(e),this.appData.set(this.maybeFilterFooter([])),{settings:e,modules:[]}}setLoader(r){if(this.debugLoader==="none"&&(r=!1),oe(this.platformId)){let e=document.getElementsByClassName(Pa)[0];e&&(e.style.overflow=r?"hidden":"auto")}this.showLoader.set(r)}static \u0275fac=function(e){return new(e||t)};static \u0275prov=f({token:t,factory:t.\u0275fac,providedIn:"root"})};var ur=class{_attachedHost;attach(r){return this._attachedHost=r,r.attach(this)}detach(){let r=this._attachedHost;r!=null&&(this._attachedHost=null,r.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(r){this._attachedHost=r}},St=class extends ur{component;viewContainerRef;injector;projectableNodes;constructor(r,e,n,i){super(),this.component=r,this.viewContainerRef=e,this.injector=n,this.projectableNodes=i}},Ct=class extends ur{templateRef;viewContainerRef;context;injector;constructor(r,e,n,i){super(),this.templateRef=r,this.viewContainerRef=e,this.context=n,this.injector=i}get origin(){return this.templateRef.elementRef}attach(r,e=this.context){return this.context=e,super.attach(r)}detach(){return this.context=void 0,super.detach()}},Hi=class extends ur{element;constructor(r){super(),this.element=r instanceof G?r.nativeElement:r}},Tt=class{_attachedPortal;_disposeFn;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(r){if(r instanceof St)return this._attachedPortal=r,this.attachComponentPortal(r);if(r instanceof Ct)return this._attachedPortal=r,this.attachTemplatePortal(r);if(this.attachDomPortal&&r instanceof Hi)return this._attachedPortal=r,this.attachDomPortal(r)}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDis
vendor: 12,341 bytes, line 1
1poseFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(r){this._disposeFn=r}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}},un=class extends Tt{outletElement;_appRef;_defaultInjector;constructor(r,e,n){super(),this.outletElement=r,this._appRef=e,this._defaultInjector=n}attachComponentPortal(r){let e;if(r.viewContainerRef){let n=r.injector||r.viewContainerRef.injector,i=n.get(zn,null,{optional:!0})||void 0;e=r.viewContainerRef.createComponent(r.component,{index:r.viewContainerRef.length,injector:n,ngModuleRef:i,projectableNodes:r.projectableNodes||void 0}),this.setDisposeFn(()=>e.destroy())}else{let n=this._appRef,i=r.injector||this._defaultInjector||w.NULL,s=i.get(ee,n.injector);e=Or(r.component,{elementInjector:i,environmentInjector:s,projectableNodes:r.projectableNodes||void 0}),n.attachView(e.hostView),this.setDisposeFn(()=>{n.viewCount>0&&n.detachView(e.hostView),e.destroy()})}return this.outletElement.appendChild(this._getComponentRootNode(e)),this._attachedPortal=r,e}attachTemplatePortal(r){let e=r.viewContainerRef,n=e.createEmbeddedView(r.templateRef,r.context,{injector:r.injector});return n.rootNodes.forEach(i=>this.outletElement.appendChild(i)),n.detectChanges(),this.setDisposeFn(()=>{let i=e.indexOf(n);i!==-1&&e.remove(i)}),this._attachedPortal=r,n}attachDomPortal=r=>{let e=r.element;e.parentNode;let n=this.outletElement.ownerDocument.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),this._attachedPortal=r,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(r){return r.hostView.rootNodes[0]}};var dr=(()=>{class t extends Tt{_moduleRef=l(zn,{optional:!0});_document=l(S);_viewContainerRef=l(st);_isInitialized=!1;_attachedRef;constructor(){super()}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}attached=new B;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);let n=e.viewContainerRef!=null?e.viewContainerRef:this._viewContainerRef,i=n.createComponent(e.component,{index:n.length,injector:e.injector||n.injector,projectableNodes:e.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0});return n!==this._viewContainerRef&&this._getRootNode().appendChild(i.hostView.rootNodes[0]),super.setDisposeFn(()=>i.destroy()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}attachTemplatePortal(e){e.setAttachedHost(this);let n=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=n,this.attached.emit(n),n}attachDomPortal=e=>{let n=e.element;n.parentNode;let i=this._document.createComment("dom-portal");e.setAttachedHost(this),n.parentNode.insertBefore(i,n),this._getRootNode().appendChild(n),this._attachedPortal=e,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(n,i)})};_getRootNode(){let e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}static \u0275fac=function(n){return new(n||t)};static \u0275dir=q({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Re]})}return t})();var ze=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=M({type:t});static \u0275inj=R({})}return t})();function ho(t){return t.buttons===0||t.detail===0}function fo(t){let r=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!!r&&r.identifier===-1&&(r.radiusX==null||r.radiusX===1)&&(r.radiusY==null||r.radiusY===1)}var Bi;function Eu(){if(Bi==null){let t=typeof document<"u"?document.head:null;Bi=!!(t&&(t.createShadowRoot||t.attachShadow))}return Bi}function po(t){if(Eu()){let r=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&r instanceof ShadowRoot)return r}return null}function dn(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){let r=t.shadowRoot.activeElement;if(r===t)break;t=r}return t}function Ce(t){return t.composedPath?t.composedPath()[0]:t.target}var Ui;try{Ui=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Ui=!1}var F=(()=>{class t{_platformId=l(me);isBrowser=this._platformId?oe(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||Ui)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275prov=f({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var hr;function wu(){if(hr==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>hr=!0}))}finally{hr=hr||!1}return hr}function mo(t){return wu()?t:!!t.capture}function fr(t,r=0){return go(t)?Number(t):arguments.length===2?r:0}function go(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function $e(t){return t instanceof G?t.nativeElement:t}var xo=new x("cdk-input-modality-detector-options"),_o={ignoreKeys:[18,17,224,91,16]},vo=650,ji={passive:!0,capture:!0},bo=(()=>{class t{_platform=l(F);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new z(null);_options;_lastTouchMs=0;_onKeydown=e=>{this._options?.ignoreKeys?.some(n=>n===e.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Ce(e))};_onMousedown=e=>{Date.now()-this._lastTouchMs<vo||(this._modality.next(ho(e)?"keyboard":"mouse"),this._mostRecentTarget=Ce(e))};_onTouchstart=e=>{if(fo(e)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Ce(e)};constructor(){let e=l(N),n=l(S),i=l(xo,{optional:!0});if(this._options=h(h({},_o),i),this.modalityDetected=this._modality.pipe(Tr(1)),this.modalityChanged=this.modalityDetected.pipe(Hn()),this._platform.isBrowser){let s=l(ge).createRenderer(null,null);this._listenerCleanups=e.runOutsideAngular(()=>[s.listen(n,"keydown",this._onKeydown,ji),s.listen(n,"mousedown",this._onMousedown,ji),s.listen(n,"touchstart",this._onTouchstart,ji)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(e=>e())}static \u0275fac=function(n){return new(n||t)};static \u0275prov=f({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),pr=(function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t})(pr||{}),yo=new x("cdk-focus-monitor-default-options"),hn=mo({passive:!0,capture:!0}),qi=(()=>{class t{_ngZone=l(N);_platform=l(F);_inputModalityDetector=l(bo);_origin=null;_lastFocusOrigin;_windowFocused=!1;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=!1;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)};_document=l(S);_stopInputModalityDetector=new _;constructor(){let e=l(yo,{optional:!0});this._detectionMode=e?.detectionMode||pr.IMMEDIATE}_rootNodeFocusAndBlurListener=e=>{let n=Ce(e);for(let i=n;i;i=i.parentElement)e.type==="focus"?this._onFocus(e,i):this._onBlur(e,i)};monitor(e,n=!1){let i=$e(e);if(!this._platform.isBrowser||i.nodeType!==1)return p();let s=po(i)||this._document,a=this._elementInfo.get(i);if(a)return n&&(a.checkChildren=!0),a.subject;let o={checkChildren:n,subject:new _,rootNode:s};return this._elementInfo.set(i,o),this._registerGlobalListeners(o),o.subject}stopMonitoring(e){let n=$e(e),i=this._elementInfo.get(n);i&&(i.subject.complete(),this._setClasses(n),this._elementInfo.delete(n),this._removeGlobalListeners(i))}focusVia(e,n,i){let s=$e(e),a=this._document.activeElement;s===a?this._getClosestElementsInfo(s).forEach(([o,c])=>this._originChanged(o,n,c)):(this._setOrigin(n),typeof s.focus=="function"&&s.focus(i))}ngOnDestroy(){this._elementInfo.forEach((e,n)=>this.stopMonitoring(n))}_getWindow(){return this._document.defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===pr.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,n){e.classList.toggle("cdk-focused",!!n),e.classList.toggle("cdk-touch-focused",n==="touch"),e.classList.toggle("cdk-keyboard-focused",n==="keyboard"),e.classList.toggle("cdk-mouse-focused",n==="mouse"),e.classList.toggle("cdk-program-focused",n==="program")}_setOrigin(e,n=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&n,this._detectionMode===pr.IMMEDIATE){clearTimeout(this._originTimeoutId);let i=this._originFromTouchInteraction?vo:1;this._originTimeoutId=setTimeout(()=>this._origin=null,i)}})}_onFocus(e,n){let i=this._elementInfo.get(n),s=Ce(e);!i||!i.checkChildren&&n!==s||this._originChanged(n,this._getFocusOrigin(s),i)}_onBlur(e,n){let i=this._elementInfo.get(n);!i||i.checkChildren&&e.relatedTarget instanceof Node&&n.contains(e.relatedTarget)||(this._setClasses(n),this._emitOrigin(i,null))}_emitOrigin(e,n){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(n))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let n=e.rootNode,i=this._rootNodeFocusListenerCount.get(n)||0;i||this._ngZone.runOutsideAngular(()=>{n.addEventListener("focus",this._rootNodeFocusAndBlurListener,hn),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,hn)}),this._rootNodeFocusListenerCount.set(n,i+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(se(this._stopInputModalityDetector)).subscribe(s=>{this._setOrigin(s,!0)}))}_removeGlobalListeners(e){let n=e.rootNode;if(this._rootNodeFocusListenerCount.has(n)){let i=this._rootNodeFocusListenerCount.get(n);i>1?this._rootNodeFocusListenerCount.set(n,i-1):(n.removeEventListener("focus",this._rootNodeFocusAndBlurListener,hn),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,hn),this._rootNodeFocusListenerCount.delete(n))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,n,i){this._setClasses(e,n),this._emitOrigin(i,n),this._lastFocusOrigin=n}_getClosestElementsInfo(e){let n=[];return this._elementInfo.forEach((i,s)=>{(s===e||i.checkChildren&&s.contains(e))&&n.push([s,i])}),n}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:n,mostRecentModality:i}=this._inputModalityDetector;if(i!=="mouse"||!n||n===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let s=e.labels;if(s){for(let a=0;a<s.length;a++)if(s[a].contains(n))return!0}return!1}static \u0275fac=function(n){return new(n||t)};static \u0275prov=f({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var fn=new WeakMap,mr=(()=>{class t{_appRef;_injector=l(w);_environmentInjector=l(ee);load(e){let n=this._appRef=this._appRef||this._injector.get(xe),i=fn.get(n);i||(i={loaders:new Set,refs:[]},fn.set(n,i),n.onDestroy(()=>
1{fn.get(n)?.refs.forEach(s=>s.destroy()),fn.delete(n)})),i.loaders.has(e)||(i.loaders.add(e),i.refs.push(Or(e,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=f({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Eo=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=j({type:t,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(n,i){},styles:[`.cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0} 2`],encapsulation:2,changeDetection:0})}return t})();function Dt(t){return Array.isArray(t)?t:[t]}var wo=new Set,Ge,pn=(()=>{class t{_platform=l(F);_nonce=l(Vn,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Cu}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&Su(e,this._nonce),this._matchMedia(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=f({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Su(t,r){if(!wo.has(t))try{Ge||(Ge=document.createElement("style"),r&&Ge.setAttribute("nonce",r),Ge.setAttribute("type","text/css"),document.head.appendChild(Ge)),Ge.sheet&&(Ge.sheet.insertRule(`@media ${t} {body{ }}`,0),wo.add(t))}catch(e){console.error(e)}}function Cu(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var Vi=(()=>{class t{_mediaMatcher=l(pn);_zone=l(N);_queries=new Map;_destroySubject=new _;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return So(Dt(e)).some(i=>this._registerQuery(i).mql.matches)}observe(e){let i=So(Dt(e)).map(a=>this._registerQuery(a).observable),s=Je(i);return s=Sr(s.pipe($(1)),s.pipe(Tr(1),ds(0))),s.pipe(y(a=>{let o={matches:!1,breakpoints:{}};return a.forEach(({matches:c,query:u})=>{o.matches=o.matches||c,o.breakpoints[u]=c}),o}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let n=this._mediaMatcher.matchMedia(e),s={observable:new Te(a=>{let o=c=>this._zone.run(()=>a.next(c));return n.addListener(o),()=>{n.removeListener(o)}}).pipe(fe(n),y(({matches:a})=>({query:e,matches:a})),se(this._destroySubject)),mql:n};return this._queries.set(e,s),s}static \u0275fac=function(n){return new(n||t)};static \u0275prov=f({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function So(t){return t.map(r=>r.split(",")).reduce((r,e)=>r.concat(e)).map(r=>r.trim())}var Tu=(()=>{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=f({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Co=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=M({type:t});static \u0275inj=R({providers:[Tu]})}return t})();var gn=(()=>{class t{_platform=l(F);constructor(){}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return Au(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return!1;let n=Du(Pu(e));if(n&&(To(n)===-1||!this.isVisible(n)))return!1;let i=e.nodeName.toLowerCase(),s=To(e);return e.hasAttribute("contenteditable")?s!==-1:i==="iframe"||i==="object"||this._platform.WEBKIT&&this._platform.IOS&&!Iu(e)?!1:i==="audio"?e.hasAttribute("controls")?s!==-1:!1:i==="video"?s===-1?!1:s!==null?!0:this._platform.FIREFOX||e.hasAttribute("controls"):e.tabIndex>=0}isFocusable(e,n){return Lu(e)&&!this.isDisabled(e)&&(n?.ignoreVisibility||this.isVisible(e))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=f({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Du(t){try{return t.frameElement}catch{return null}}function Au(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function Ru(t){let r=t.nodeName.toLowerCase();return r==="input"||r==="select"||r==="button"||r==="textarea"}function Nu(t){return ku(t)&&t.type=="hidden"}function Mu(t){return Ou(t)&&t.hasAttribute("href")}function ku(t){return t.nodeName.toLowerCase()=="input"}function Ou(t){return t.nodeName.toLowerCase()=="a"}function Ro(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let r=t.getAttribute("tabindex");return!!(r&&!isNaN(parseInt(r,10)))}function To(t){if(!Ro(t))return null;let r=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(r)?-1:r}function Iu(t){let r=t.nodeName.toLowerCase(),e=r==="input"&&t.type;return e==="text"||e==="password"||r==="select"||r==="textarea"}function Lu(t){return Nu(t)?!1:Ru(t)||Mu(t)||t.hasAttribute("contenteditable")||Ro(t)}function Pu(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var mn=class{_element;_checker;_ngZone;_document;_injector;_startAnchor;_endAnchor;_hasAttached=!1;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(r){this._enabled=r,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(r,this._startAnchor),this._toggleAnchorTabIndex(r,this._endAnchor))}_enabled=!0;constructor(r,e,n,i,s=!1,a){this._element=r,this._checker=e,this._ngZone=n,this._document=i,this._injector=a,s||this.attachAnchors()}destroy(){let r=this._startAnchor,e=this._endAnchor;r&&(r.removeEventListener("focus",this.startAnchorListener),r.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(r){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(r)))})}focusFirstTabbableElementWhenReady(r){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(r)))})}focusLastTabbableElementWhenReady(r){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(r)))})}_getRegionBoundary(r){let e=this._element.querySelectorAll(`[cdk-focus-region-${r}], [cdkFocusRegion${r}], [cdk-focus-${r}]`);return r=="start"?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(r){let e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){let n=this._getFirstTabbableElement(e);return n?.focus(r),!!n}return e.focus(r),!0}return this.focusFirstTabbableElement(r)}focusFirstTabbableElement(r){let e=this._getRegionBoundary("start");return e&&e.focus(r),!!e}focusLastTabbableElement(r){let e=this._getRegionBoundary("end");return e&&e.focus(r),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(r){if(this._checker.isFocusable(r)&&this._checker.isTabbable(r))return r;let e=r.children;for(let n=0;n<e.length;n++){let i=e[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(e[n]):null;if(i)return i}return null}_getLastTabbableElement(r){if(this._checker.isFocusable(r)&&this._checker.isTabbable(r))return r;let e=r.children;for(let n=e.length-1;n>=0;n--){let i=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(i)return i}return null}_createAnchor(){let r=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,r),r.classList.add("cdk-visually-hidden"),r.classList.add("cdk-focus-trap-anchor"),r.setAttribute("aria-hidden","true"),r}_toggleAnchorTabIndex(r,e){r?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(r){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(r,this._startAnchor),this._toggleAnchorTabIndex(r,this._endAnchor))}_executeOnStable(r){this._injector?te(r,{injector:this._injector}):setTimeout(r)}},$i=(()=>{class t{_checker=l(gn);_ngZone=l(N);_document=l(S);_injector=l(w);constructor(){l(mr).load(Eo)}create(e,n=!1){return new mn(e,this._checker,this._ngZone,this._document,n,this._injector)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=f({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Me=(function(t){return t[t.NONE=0]="NONE",t[t.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",t[t.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",t})(Me||{}),Do="cdk-high-contrast-black-on-white",Ao="cdk-high-contrast-white-on-black",zi="cdk-high-contrast-active",xn=(()=>{class t{_platform=l(F);_hasCheckedHighContrastMode;_document=l(S);_breakpointSubscription;constructor(){this._breakpointSubscription=l(Vi).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasse
vendor: 62,565 bytes, lines 2-4
2s())})}getHighContrastMode(){if(!this._platform.isBrowser)return Me.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let n=this._document.defaultView||window,i=n&&n.getComputedStyle?n.getComputedStyle(e):null,s=(i&&i.backgroundColor||"").replace(/ /g,"");switch(e.remove(),s){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return Me.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return Me.BLACK_ON_WHITE}return Me.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(zi,Do,Ao),this._hasCheckedHighContrastMode=!0;let n=this.getHighContrastMode();n===Me.BLACK_ON_WHITE?e.add(zi,Do):n===Me.WHITE_ON_BLACK&&e.add(zi,Ao)}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=f({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Gi=(()=>{class t{constructor(){l(xn)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(n){return new(n||t)};static \u0275mod=M({type:t});static \u0275inj=R({imports:[Co]})}return t})();function _n(t,...r){return r.length?r.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function Wi(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function D(t){return t==null?"":typeof t=="string"?t:`${t}px`}var Fu=new x("cdk-dir-doc",{providedIn:"root",factory:Hu});function Hu(){return l(S)}var Bu=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function No(t){let r=t?.toLowerCase()||"";return r==="auto"&&typeof navigator<"u"&&navigator?.language?Bu.test(navigator.language)?"rtl":"ltr":r==="rtl"?"rtl":"ltr"}var ke=(()=>{class t{get value(){return this.valueSignal()}valueSignal=I("ltr");change=new B;constructor(){let e=l(Fu,{optional:!0});if(e){let n=e.body?e.body.dir:null,i=e.documentElement?e.documentElement.dir:null;this.valueSignal.set(No(n||i||"ltr"))}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=f({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var ie=(function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t})(ie||{}),vn,We;function bn(){if(We==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return We=!1,We;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)We=!0;else{let t=Element.prototype.scrollTo;t?We=!/\{\s*\[native code\]\s*\}/.test(t.toString()):We=!1}}return We}function At(){if(typeof document!="object"||!document)return ie.NORMAL;if(vn==null){let t=document.createElement("div"),r=t.style;t.dir="rtl",r.width="1px",r.overflow="auto",r.visibility="hidden",r.pointerEvents="none",r.position="absolute";let e=document.createElement("div"),n=e.style;n.width="2px",n.height="1px",t.appendChild(e),document.body.appendChild(t),vn=ie.NORMAL,t.scrollLeft===0&&(t.scrollLeft=1,vn=t.scrollLeft===0?ie.NEGATED:ie.INVERTED),t.remove()}return vn}var Oe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=M({type:t});static \u0275inj=R({})}return t})();var ju=20,yn=(()=>{class t{_ngZone=l(N);_platform=l(F);_renderer=l(ge).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new _;_scrolledCount=0;scrollContainers=new Map;register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){let n=this.scrollContainers.get(e);n&&(n.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=ju){return this._platform.isBrowser?new Te(n=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let i=e>0?this._scrolled.pipe(Pn(e)).subscribe(n):this._scrolled.subscribe(n);return this._scrolledCount++,()=>{i.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):p()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((e,n)=>this.deregister(n)),this._scrolled.complete()}ancestorScrolled(e,n){let i=this.getAncestorScrollContainers(e);return this.scrolled(n).pipe(H(s=>!s||i.indexOf(s)>-1))}getAncestorScrollContainers(e){let n=[];return this.scrollContainers.forEach((i,s)=>{this._scrollableContainsElement(s,e)&&n.push(s)}),n}_scrollableContainsElement(e,n){let i=$e(n),s=e.getElementRef().nativeElement;do if(i==s)return!0;while(i=i.parentElement);return!1}static \u0275fac=function(n){return new(n||t)};static \u0275prov=f({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ko=(()=>{class t{elementRef=l(G);scrollDispatcher=l(yn);ngZone=l(N);dir=l(ke,{optional:!0});_scrollElement=this.elementRef.nativeElement;_destroyed=new _;_renderer=l(Le);_cleanupScroll;_elementScrolled=new _;constructor(){}ngOnInit(){this._cleanupScroll=this.ngZone.runOutsideAngular(()=>this._renderer.listen(this._scrollElement,"scroll",e=>this._elementScrolled.next(e))),this.scrollDispatcher.register(this)}ngOnDestroy(){this._cleanupScroll?.(),this._elementScrolled.complete(),this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){let n=this.elementRef.nativeElement,i=this.dir&&this.dir.value=="rtl";e.left==null&&(e.left=i?e.end:e.start),e.right==null&&(e.right=i?e.start:e.end),e.bottom!=null&&(e.top=n.scrollHeight-n.clientHeight-e.bottom),i&&At()!=ie.NORMAL?(e.left!=null&&(e.right=n.scrollWidth-n.clientWidth-e.left),At()==ie.INVERTED?e.left=e.right:At()==ie.NEGATED&&(e.left=e.right?-e.right:e.right)):e.right!=null&&(e.left=n.scrollWidth-n.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){let n=this.elementRef.nativeElement;bn()?n.scrollTo(e):(e.top!=null&&(n.scrollTop=e.top),e.left!=null&&(n.scrollLeft=e.left))}measureScrollOffset(e){let n="left",i="right",s=this.elementRef.nativeElement;if(e=="top")return s.scrollTop;if(e=="bottom")return s.scrollHeight-s.clientHeight-s.scrollTop;let a=this.dir&&this.dir.value=="rtl";return e=="start"?e=a?i:n:e=="end"&&(e=a?n:i),a&&At()==ie.INVERTED?e==n?s.scrollWidth-s.clientWidth-s.scrollLeft:s.scrollLeft:a&&At()==ie.NEGATED?e==n?s.scrollLeft+s.scrollWidth-s.clientWidth:-s.scrollLeft:e==n?s.scrollLeft:s.scrollWidth-s.clientWidth-s.scrollLeft}static \u0275fac=function(n){return new(n||t)};static \u0275dir=q({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return t})(),qu=20,gr=(()=>{class t{_platform=l(F);_listeners;_viewportSize;_change=new _;_document=l(S);constructor(){let e=l(N),n=l(ge).createRenderer(null,null);e.runOutsideAngular(()=>{if(this._platform.isBrowser){let i=s=>this._change.next(s);this._listeners=[n.listen("window","resize",i),n.listen("window","orientationchange",i)]}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){this._listeners?.forEach(e=>e()),this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){let e=this.getViewportScrollPosition(),{width:n,height:i}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+i,right:e.left+n,height:i,width:n}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,n=this._getWindow(),i=e.documentElement,s=i.getBoundingClientRect(),a=-s.top||e.body.scrollTop||n.scrollY||i.scrollTop||0,o=-s.left||e.body.scrollLeft||n.scrollX||i.scrollLeft||0;return{top:a,left:o}}change(e=qu){return e>0?this._change.pipe(Pn(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=f({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Mo=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=M({type:t});static \u0275inj=R({})}return t})(),Yi=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=M({type:t});static \u0275inj=R({imports:[Oe,Mo,Oe,Mo]})}return t})();var Xi={},Ye=(()=>{class t{_appId=l(Pt);getId(e){return this._appId!=="ng"&&(e+=this._appId),Xi.hasOwnProperty(e)||(Xi[e]=0),`${e}${Xi[e]++}`}static \u0275fac=function(n){return new(n||t)};static \u0275prov=f({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Oo=bn();function Mt(t){return new En(t.get(gr),t.get(S))}var En=class{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(r,e){this._viewportRuler=r,this._document=e}attach(){}enable(){if(this._canBeEnabled()){let r=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=r.style.left||"",this._previousHTMLStyles.top=r.style.top||"",r.style.left=D(-this._previousScrollPosition.left),r.style.top=D(-this._previousScrollPosition.top),r.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let r=this._document.documentElement,e=this._document.body,n=r.style,i=e.style,s=n.scrollBehavior||"",a=i.scrollBehavior||"";this._isEnabled=!1,n.left=this._previousHTMLStyles.left,n.top=this._previousHTMLStyles.top,r.classList.remove("cdk-global-scrollblock"),Oo&&(n.scrollBehavior=i.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Oo&&(n.scrollBehavior=s,i.scrollBehavior=a)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let e=this._document.documentElement,n=this._viewportRuler.getViewportSize();return e.scrollHeight>n.height||e.scrollWidth>n.width}};function Uo(t,r){return new wn(t.get(yn),t.get(N),t.get(gr),r)}var wn=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(r,e,n,i){this._scrollDispatcher=r,this._ngZone=e,this._viewportRuler=n,this._config=i}attach(r){this._overlayRef,this._overlayRef=r}enable(){if(this._scrollSubscription)return;let r=this._scrollDispatcher.scrolled(0).pipe(H(e=>!e||!this._overlayRef.overlayElement.contains(e.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=r.subscribe(()=>{let e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=r.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}};var xr=class{enable(){}disable(){}attach(){}};function Ki(t,r){return r.some(e=>{let n=t.bottom<e.top,i=t.top>e.bottom,s=t.right<e.left,a=t.left>e.right;return n||i||s||a})}function Io(t,r){return r.some(e=>{let n=t.top<e.top,i=t.bottom>e.bottom,s=t.left<e.left,a=t.right>e.right;return n||i||s||a})}function An(t,r){return new Sn(t.get(yn),t.get(gr),t.get(N),r)}var Sn=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(r,e,n,i){this._scrollDispatcher=r,this._viewportRuler=e,this._ngZone=n,this._config=i}attach(r){this._overlayRef,this._overlayRef=r}enable(){if(!this._scrollSubscription){let r=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(r).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:n,height:i}=this._viewportRuler.getViewportSize();Ki(e,[{width:n,height:i,bottom:i,right:n,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}})}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},jo=(()=>{class t{_injector=l(w);constructor(){}noop=()=>new xr;close=e=>Uo(this._injector,e);block=()=>Mt(this._injector);reposition=e=>An(this._injector,e);static \u0275fac=function(n){return new(n||t)};static \u0275prov=f({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Rt=class{positionStrategy;scrollStrategy=new xr;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;constructor(r){if(r){let e=Object.keys(r);for(let n of e)r[n]!==void 0&&(this[n]=r[n])}}};var Cn=class{connectionPair;scrollableViewProperties;constructor(r,e){this.connectionPair=r,this.scrollableViewProperties=e}};var qo=(()=>{class t{_attachedOverlays=[];_document=l(S);_isAttached;constructor(){}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){let n=this._attachedOverlays.indexOf(e);n>-1&&this._attachedOverlays.splice(n,1),this._attachedOverlays.length===0&&this.detach()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=f({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Vo=(()=>{class t extends qo{_ngZone=l(N);_renderer=l(ge).createRenderer(null,null);_cleanupKeydown;add(e){super.add(e),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener)}),this._isAttached=!0)}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=!1)}_keydownListener=e=>{let n=this._attachedOverlays;for(let i=n.length-1;i>-1;i--)if(n[i]._keydownEvents.observers.length>0){this._ngZone.run(()=>n[i]._keydownEvents.next(e));break}};static \u0275fac=(()=>{let e;return function(i){return(e||(e=ae(t)))(i||t)}})();static \u0275prov=f({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),zo=(()=>{class t extends qo{_platform=l(F);_ngZone=l(N);_renderer=l(ge).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget;_cleanups;add(e){if(super.add(e),!this._isAttached){let n=this._document.body,i={capture:!0},s=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[s.listen(n,"pointerdown",this._pointerDownListener,i),s.listen(n,"click",this._clickListener,i),s.listen(n,"auxclick",this._clickListener,i),s.listen(n,"contextmenu",this._clickListener,i)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=n.style.cursor,n.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){this._isAttached&&(this._cleanups?.forEach(e=>e()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}_pointerDownListener=e=>{this._pointerDownEventTarget=Ce(e)};_clickListener=e=>{let n=Ce(e),i=e.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:n;this._pointerDownEventTarget=null;let s=this._attachedOverlays.slice();for(let a=s.length-1;a>-1;a--){let o=s[a];if(o._outsidePointerEvents.observers.length<1||!o.hasAttached())continue;if(Lo(o.overlayElement,n)||Lo(o.overlayElement,i))break;let c=o._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>c.next(e)):c.next(e)}};static \u0275fac=(()=>{let e;return function(i){return(e||(e=ae(t)))(i||t)}})();static \u0275prov=f({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Lo(t,r){let e=typeof ShadowRoot<"u"&&ShadowRoot,n=r;for(;n;){if(n===t)return!0;n=e&&n instanceof ShadowRoot?n.host:n.parentNode}return!1}var $o=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=j({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(n,i){},styles:[`.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed}@layer cdk-overlay{.cdk-overlay-container{z-index:1000}}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute}@layer cdk-overlay{.cdk-global-overlay-wrapper{z-index:1000}}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%}@layer cdk-overlay{.cdk-overlay-pane{z-index:1000}}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0;touch-action:manipulation}@layer cdk-overlay{.cdk-overlay-backdrop{z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}}@media(prefers-reduced-motion){.cdk-overlay-backdrop{transition-duration:1ms}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}@layer cdk-overlay{.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px}@layer cdk-overlay{.cdk-overlay-connected-position-bounding-box{z-index:1000}}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll} 3`],encapsulation:2,changeDetection:0})}return t})(),Rn=(()=>{class t{_platform=l(F);_containerElement;_document=l(S);_styleLoader=l(mr);constructor(){}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let e="cdk-overlay-container";if(this._platform.isBrowser||Wi()){let i=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let s=0;s<i.length;s++)i[s].remove()}let n=this._document.createElement("div");n.classList.add(e),Wi()?n.setAttribute("platform","test"):this._platform.isBrowser||n.setAttribute("platform","server"),this._document.body.appendChild(n),this._containerElement=n}_loadStyles(){this._styleLoader.load($o)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=f({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Zi=class{_renderer;_ngZone;element;_cleanupClick;_cleanupTransitionEnd;_fallbackTimeout;constructor(r,e,n,i){this._renderer=e,this._ngZone=n,this.element=r.createElement("div"),this.element.classList.add("cdk-overlay-backdrop"),this._cleanupClick=e.listen(this.element,"click",i)}detach(){this._ngZone.runOutsideAngular(()=>{let r=this.element;clearTimeout(this._fallbackTimeout),this._cleanupTransitionEnd?.(),this._cleanupTransitionEnd=this._renderer.listen(r,"transitionend",this.dispose),this._fallbackTimeout=setTimeout(this.dispose,500),r.style.pointerEvents="none",r.classList.remove("cdk-overlay-backdrop-showing")})}dispose=()=>{clearTimeout(this._fallbackTimeout),this._cleanupClick?.(),this._cleanupTransitionEnd?.(),this._cleanupClick=this._cleanupTransitionEnd=this._fallbackTimeout=void 0,this.element.remove()}},Nt=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new _;_attachments=new _;_detachments=new _;_positionStrategy;_scrollStrategy;_locationChanges=Ze.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_previousHostParent;_keydownEvents=new _;_outsidePointerEvents=new _;_afterNextRenderRef;constructor(r,e,n,i,s,a,o,c,u,d=!1,m,E){this._portalOutlet=r,this._host=e,this._pane=n,this._config=i,this._ngZone=s,this._keyboardDispatcher=a,this._document=o,this._location=c,this._outsideClickDispatcher=u,this._animationsDisabled=d,this._injector=m,this._renderer=E,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}attach(r){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let e=this._portalOutlet.attach(r);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=te(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._completeDetachContent(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof e?.onDestroy=="function"&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let r=this._portalOutlet.detach();return this._detachments.next(),this._completeDetachContent(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),r}dispose(){let r=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._backdropRef?.dispose(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=this._backdropRef=null,r&&this._detachments.next(),this._detachments.complete(),this._completeDetachContent()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(r){r!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=r,this.hasAttached()&&(r.attach(this),this.updatePosition()))}updateSize(r){this._config=h(h({},this._config),r),this._updateElementSize()}setDirection(r){this._config=k(h({},this._config),{direction:r}),this._updateElementDirection()}addPanelClass(r){this._pane&&this._toggleClasses(this._pane,r,!0)}removePanelClass(r){this._pane&&this._toggleClasses(this._pane,r,!1)}getDirection(){let r=this._config.direction;return r?typeof r=="string"?r:r.value:"ltr"}updateScrollStrategy(r){r!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=r,this.hasAttached()&&(r.attach(this),r.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let r=this._pane.style;r.width=D(this._config.width),r.height=D(this._config.height),r.minWidth=D(this._config.minWidth),r.minHeight=D(this._config.minHeight),r.maxWidth=D(this._config.maxWidth),r.maxHeight=D(this._config.maxHeight)}_togglePointerEvents(r){this._pane.style.pointerEvents=r?"":"none"}_attachBackdrop(){let r="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new Zi(this._document,this._renderer,this._ngZone,e=>{this._backdropClick.next(e)}),this._animationsDisabled&&this._backdropRef.element.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropRef.element,this._host),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._backdropRef?.element.classList.add(r))}):this._backdropRef.element.classList.add(r)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach()}_toggleClasses(r,e,n){let i=Dt(e||[]).filter(s=>!!s);i.length&&(n?r.classList.add(...i):r.classList.remove(...i))}_detachContentWhenEmpty(){let r=!1;try{this._detachContentAfterRenderRef=te(()=>{r=!0,this._detachContent()},{injector:this._injector})}catch(e){if(r)throw e;this._detachContent()}globalThis.MutationObserver&&this._pane&&(this._detachContentMutationObserver||=new globalThis.MutationObserver(()=>{this._detachContent()}),this._detachContentMutationObserver.observe(this._pane,{childList:!0}))}_detachContent(){(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),this._completeDetachContent())}_completeDetachContent(){this._detachContentAfterRenderRef?.destroy(),this._detachContentAfterRenderRef=void 0,this._detachContentMutationObserver?.disconnect()}_disposeScrollStrategy(){let r=this._scrollStrategy;r?.disable(),r?.detach?.()}},Po="cdk-overlay-connected-position-bounding-box",zu=/([A-Za-z%]+)$/;function Go(t,r){return new Tn(r,t.get(gr),t.get(S),t.get(F),t.get(Rn))}var Tn=class{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender;_lastBoundingBoxSize={width:0,height:0};_isPushed=!1;_canPush=!0;_growAfterOpen=!1;_hasFlexibleDimensions=!0;_positionLocked=!1;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed;_boundingBox;_lastPosition;_lastScrollVisibility;_positionChanges=new _;_resizeSubscription=Ze.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount;positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(r,e,n,i,s){this._viewportRuler=e,this._document=n,this._platform=i,this._overlayContainer=s,this.setOrigin(r)}attach(r){this._overlayRef&&this._overlayRef,this._validatePositions(),r.hostElement.classList.add(Po),this._overlayRef=r,this._boundingBox=r.hostElement,this._pane=r.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let r=this._originRect,e=this._overlayRect,n=this._viewportRect,i=this._containerRect,s=[],a;for(let o of this._preferredPositions){let c=this._getOriginPoint(r,i,o),u=this._getOverlayPoint(c,e,o),d=this._getOverlayFit(u,e,n,o);if(d.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(o,c);return}if(this._canFitWithFlexibleDimensions(d,u,n)){s.push({position:o,origin:c,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(c,o)});continue}(!a||a.overlayFit.visibleArea<d.visibleArea)&&(a={overlayFit:d,overlayPoint:u,originPoint:c,position:o,overlayRect:e})}if(s.length){let o=null,c=-1;for(let u of s){let d=u.boundingBoxRect.width*u.boundingBoxRect.height*(u.position.weight||1);d>c&&(c=d,o=u)}this._isPushed=!1,this._applyPosition(o.position,o.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(a.position,a.originPoint);return}this._applyPosition(a.position,a.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Xe(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Po),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let r=this._lastPosition;if(r){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let e=this._getOriginPoint(this._originRect,this._containerRect,r);this._applyPosition(r,e)}else this.apply()}withScrollableContainers(r){return this._scrollables=r,this}withPositions(r){return this._preferredPositions=r,r.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(r){return this._viewportMargin=r,this}withFlexibleDimensions(r=!0){return this._hasFlexibleDimensions=r,this}withGrowAfterOpen(r=!0){return this._growAfterOpen=r,this}withPush(r=!0){return this._canPush=r,this}withLockedPosition(r=!0){return this._positionLocked=r,this}setOrigin(r){return this._origin=r,this}withDefaultOffsetX(r){return this._offsetX=r,this}withDefaultOffsetY(r){return this._offsetY=r,this}withTransformOriginOn(r){return this._transformOriginSelector=r,this}_getOriginPoint(r,e,n){let i;if(n.originX=="center")i=r.left+r.width/2;else{let a=this._isRtl()?r.right:r.left,o=this._isRtl()?r.left:r.right;i=n.originX=="start"?a:o}e.left<0&&(i-=e.left);let s;return n.originY=="center"?s=r.top+r.height/2:s=n.originY=="top"?r.top:r.bottom,e.top<0&&(s-=e.top),{x:i,y:s}}_getOverlayPoint(r,e,n){let i;n.overlayX=="center"?i=-e.width/2:n.overlayX==="start"?i=this._isRtl()?-e.width:0:i=this._isRtl()?0:-e.width;let s;return n.overlayY=="center"?s=-e.height/2:s=n.overlayY=="top"?0:-e.height,{x:r.x+i,y:r.y+s}}_getOverlayFit(r,e,n,i){let s=Ho(e),{x:a,y:o}=r,c=this._getOffset(i,"x"),u=this._getOffset(i,"y");c&&(a+=c),u&&(o+=u);let d=0-a,m=a+s.width-n.width,E=0-o,C=o+s.height-n.height,v=this._subtractOverflows(s.width,d,m),A=this._subtractOverflows(s.height,E,C),Z=v*A;return{visibleArea:Z,isCompletelyWithinViewport:s.width*s.height===Z,fitsInViewportVertically:A===s.height,fitsInViewportHorizontally:v==s.width}}_canFitWithFlexibleDimensions(r,e,n){if(this._hasFlexibleDimensions){let i=n.bottom-e.y,s=n.right-e.x,a=Fo(this._overlayRef.getConfig().minHeight),o=Fo(this._overlayRef.getConfig().minWidth),c=r.fitsInViewportVertically||a!=null&&a<=i,u=r.fitsInViewportHorizontally||o!=null&&o<=s;return c&&u}return!1}_pushOverlayOnScreen(r,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:r.x+this._previousPushAmount.x,y:r.y+this._previousPushAmount.y};let i=Ho(e),s=this._viewportRect,a=Math.max(r.x+i.width-s.width,0),o=Math.max(r.y+i.height-s.height,0),c=Math.max(s.top-n.top-r.y,0),u=Math.max(s.left-n.left-r.x,0),d=0,m=0;return i.width<=s.width?d=u||-a:d=r.x<this._viewportMargin?s.left-n.left-r.x:0,i.height<=s.height?m=c||-o:m=r.y<this._viewportMargin?s.top-n.top-r.y:0,this._previousPushAmount={x:d,y:m},{x:r.x+d,y:r.y+m}}_applyPosition(r,e){if(this._setTransformOrigin(r),this._setOverlayElementStyles(e,r),this._setBoundingBoxStyles(e,r),r.panelClass&&this._addPanelClasses(r.panelClass),this._positionChanges.observers.length){let n=this._getScrollVisibility();if(r!==this._lastPosition||!this._lastScrollVisibility||!$u(this._lastScrollVisibility,n)){let i=new Cn(r,n);this._positionChanges.next(i)}this._lastScrollVisibility=n}this._lastPosition=r,this._isInitialRender=!1}_setTransformOrigin(r){if(!this._transformOriginSelector)return;let e=this._boundingBox.querySelectorAll(this._transformOriginSelector),n,i=r.overlayY;r.overlayX==="center"?n="center":this._isRtl()?n=r.overlayX==="start"?"right":"left":n=r.overlayX==="start"?"left":"right";for(let s=0;s<e.length;s++)e[s].style.transformOrigin=`${n} ${i}`}_calculateBoundingBoxRect(r,e){let n=this._viewportRect,i=this._isRtl(),s,a,o;if(e.overlayY==="top")a=r.y,s=n.height-a+this._viewportMargin;else if(e.overlayY==="bottom")o=n.height-r.y+this._viewportMargin*2,s=n.height-o+this._viewportMargin;else{let C=Math.min(n.bottom-r.y+n.top,r.y),v=this._lastBoundingBoxSize.height;s=C*2,a=r.y-C,s>v&&!this._isInitialRender&&!this._growAfterOpen&&(a=r.y-v/2)}let c=e.overlayX==="start"&&!i||e.overlayX==="end"&&i,u=e.overlayX==="end"&&!i||e.overlayX==="start"&&i,d,m,E;if(u)E=n.width-r.x+this._viewportMargin*2,d=r.x-this._viewportMargin;else if(c)m=r.x,d=n.right-r.x;else{let C=Math.min(n.right-r.x+n.left,r.x),v=this._lastBoundingBoxSize.width;d=C*2,m=r.x-C,d>v&&!this._isInitialRender&&!this._growAfterOpen&&(m=r.x-v/2)}return{top:a,left:m,bottom:o,right:E,width:d,height:s}}_setBoundingBoxStyles(r,e){let n=this._calculateBoundingBoxRect(r,e);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));let i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{let s=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;i.height=D(n.height),i.top=D(n.top),i.bottom=D(n.bottom),i.width=D(n.width),i.left=D(n.left),i.right=D(n.right),e.overlayX==="center"?i.alignItems="center":i.alignItems=e.overlayX==="end"?"flex-end":"flex-start",e.overlayY==="center"?i.justifyContent="center":i.justifyContent=e.overlayY==="bottom"?"flex-end":"flex-start",s&&(i.maxHeight=D(s)),a&&(i.maxWidth=D(a))}this._lastBoundingBoxSize=n,Xe(this._boundingBox.style,i)}_resetBoundingBoxStyles(){Xe(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Xe(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(r,e){let n={},i=this._hasExactPosition(),s=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(i){let d=this._viewportRuler.getViewportScrollPosition();Xe(n,this._getExactOverlayY(e,r,d)),Xe(n,this._getExactOverlayX(e,r,d))}else n.position="static";let o="",c=this._getOffset(e,"x"),u=this._getOffset(e,"y");c&&(o+=`translateX(${c}px) `),u&&(o+=`translateY(${u}px)`),n.transform=o.trim(),a.maxHeight&&(i?n.maxHeight=D(a.maxHeight):s&&(n.maxHeight="")),a.maxWidth&&(i?n.maxWidth=D(a.maxWidth):s&&(n.maxWidth="")),Xe(this._pane.style,n)}_getExactOverlayY(r,e,n){let i={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,r);if(this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,n)),r.overlayY==="bottom"){let a=this._document.documentElement.clientHeight;i.bottom=`${a-(s.y+this._overlayRect.height)}px`}else i.top=D(s.y);return i}_getExactOverlayX(r,e,n){let i={left:"",right:""},s=this._getOverlayPoint(e,this._overlayRect,r);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,n));let a;if(this._isRtl()?a=r.overlayX==="end"?"left":"right":a=r.overlayX==="end"?"right":"left",a==="right"){let o=this._document.documentElement.clientWidth;i.right=`${o-(s.x+this._overlayRect.width)}px`}else i.left=D(s.x);return i}_getScrollVisibility(){let r=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(i=>i.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Io(r,n),isOriginOutsideView:Ki(r,n),isOverlayClipped:Io(e,n),isOverlayOutsideView:Ki(e,n)}}_subtractOverflows(r,...e){return e.reduce((n,i)=>n-Math.max(i,0),r)}_getNarrowedViewportRect(){let r=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+r-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:r-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(r,e){return e==="x"?r.offsetX==null?this._offsetX:r.offsetX:r.offsetY==null?this._offsetY:r.offsetY}_validatePositions(){}_addPanelClasses(r){this._pane&&Dt(r).forEach(e=>{e!==""&&this._appliedPanelClasses.indexOf(e)===-1&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(r=>{this._pane.classList.remove(r)}),this._appliedPanelClasses=[])}_getOriginRect(){let r=this._origin;if(r instanceof G)return r.nativeElement.getBoundingClientRect();if(r instanceof Element)return r.getBoundingClientRect();let e=r.width||0,n=r.height||0;return{top:r.y,bottom:r.y+n,left:r.x,right:r.x+e,height:n,width:e}}};function Xe(t,r){for(let e in r)r.hasOwnProperty(e)&&(t[e]=r[e]);return t}function Fo(t){if(typeof t!="number"&&t!=null){let[r,e]=t.split(zu);return!e||e==="px"?parseFloat(r):null}return t||null}function Ho(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}function $u(t,r){return t===r?!0:t.isOriginClipped===r.isOriginClipped&&t.isOriginOutsideView===r.isOriginOutsideView&&t.isOverlayClipped===r.isOverlayClipped&&t.isOverlayOutsideView===r.isOverlayOutsideView}var Bo="cdk-global-overlay-wrapper";function kt(t){return new Dn}var Dn=class{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(r){let e=r.getConfig();this._overlayRef=r,this._width&&!e.width&&r.updateSize({width:this._width}),this._height&&!e.height&&r.updateSize({height:this._height}),r.hostElement.classList.add(Bo),this._isDisposed=!1}top(r=""){return this._bottomOffset="",this._topOffset=r,this._alignItems="flex-start",this}left(r=""){return this._xOffset=r,this._xPosition="left",this}bottom(r=""){return this._topOffset="",this._bottomOffset=r,this._alignItems="flex-end",this}right(r=""){return this._xOffset=r,this._xPosition="right",this}start(r=""){return this._xOffset=r,this._xPosition="start",this}end(r=""){return this._xOffset=r,this._xPosition="end",this}width(r=""){return this._overlayRef?this._overlayRef.updateSize({width:r}):this._width=r,this}height(r=""){return this._overlayRef?this._overlayRef.updateSize({height:r}):this._height=r,this}centerHorizontally(r=""){return this.left(r),this._xPosition="center",this}centerVertically(r=""){return this.top(r),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let r=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:i,height:s,maxWidth:a,maxHeight:o}=n,c=(i==="100%"||i==="100vw")&&(!a||a==="100%"||a==="100vw"),u=(s==="100%"||s==="100vh")&&(!o||o==="100%"||o==="100vh"),d=this._xPosition,m=this._xOffset,E=this._overlayRef.getConfig().direction==="rtl",C="",v="",A="";c?A="flex-start":d==="center"?(A="center",E?v=m:C=m):E?d==="left"||d==="end"?(A="flex-end",C=m):(d==="right"||d==="start")&&(A="flex-start",v=m):d==="left"||d==="start"?(A="flex-start",C=m):(d==="right"||d==="end")&&(A="flex-end",v=m),r.position=this._cssPosition,r.marginLeft=c?"0":C,r.marginTop=u?"0":this._topOffset,r.marginBottom=this._bottomOffset,r.marginRight=c?"0":v,e.justifyContent=A,e.alignItems=u?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let r=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(Bo),n.justifyContent=n.alignItems=r.marginTop=r.marginBottom=r.marginLeft=r.marginRight=r.position="",this._overlayRef=null,this._isDisposed=!0}},Wo=(()=>{class t{_injector=l(w);constructor(){}global(){return kt()}flexibleConnectedTo(e){return Go(this._injector,e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=f({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Nn(t,r){t.get(mr).load($o);let e=t.get(Rn),n=t.get(S),i=t.get(Ye),s=t.get(xe),a=t.get(ke),o=n.createElement("div"),c=n.createElement("div");c.id=i.getId("cdk-overlay-"),c.classList.add("cdk-overlay-pane"),o.appendChild(c),e.getContainerElement().appendChild(o);let u=new un(c,s,t),d=new Rt(r),m=t.get(Le,null,{optional:!0})||t.get(ge).createRenderer(null,null);return d.direction=d.direction||a.value,new Nt(u,o,c,d,t.get(N),t.get(Vo),n,t.get(ot),t.get(zo),r?.disableAnimations??t.get(Dr,null,{optional:!0})==="NoopAnimations",t.get(ee),m)}var Yo=(()=>{class t{scrollStrategies=l(jo);_positionBuilder=l(Wo);_injector=l(w);constructor(){}create(e){return Nn(this._injector,e)}position(){return this._positionBuilder}static \u0275fac=function(n){return new(n||t)};static \u0275prov=f({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Gu=new x("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let t=l(w);return()=>An(t)}});function Wu(t){let r=l(w);return()=>An(r)}var Yu={provide:Gu,useFactory:Wu},_r=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=M({type:t});static \u0275inj=R({providers:[Yo,Yu],imports:[Oe,ze,Yi,Yi]})}return t})();function Xu(t,r){}var Ie=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;scrollStrategy;closeOnNavigation=!0;closeOnDestroy=!0;closeOnOverlayDetachments=!0;disableAnimations=!1;providers;container;templateContext};var Ji=(()=>{class t extends Tt{_elementRef=l(G);_focusTrapFactory=l($i);_config;_interactivityChecker=l(gn);_ngZone=l(N);_focusMonitor=l(qi);_renderer=l(Le);_changeDetectorRef=l(jt);_injector=l(w);_platform=l(F);_document=l(S);_portalOutlet;_focusTrapped=new _;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=!1;constructor(){super(),this._config=l(Ie,{optional:!0})||new Ie,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(e){let n=this._ariaLabelledByQueue.indexOf(e);n>-1&&(this._ariaLabelledByQueue.splice(n,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._focusTrapped.complete(),this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();let n=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),n}attachTemplatePortal(e){this._portalOutlet.hasAttached();let n=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),n}attachDomPortal=e=>{this._portalOutlet.hasAttached();let n=this._portalOutlet.attachDomPortal(e);return this._contentAttached(),n};_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,n){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let i=()=>{s(),a(),e.removeAttribute("tabindex")},s=this._renderer.listen(e,"blur",i),a=this._renderer.listen(e,"mousedown",i)})),e.focus(n)}_focusByCssSelector(e,n){let i=this._elementRef.nativeElement.querySelector(e);i&&this._forceFocus(i,n)}_trapFocus(e){this._isDestroyed||te(()=>{let n=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||n.focus(e);break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement(e)||this._focusDialogContainer(e);break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',e);break;default:this._focusByCssSelector(this._config.autoFocus,e);break}this._focusTrapped.next()},{injector:this._injector})}_restoreFocus(){let e=this._config.restoreFocus,n=null;if(typeof e=="string"?n=this._document.querySelector(e):typeof e=="boolean"?n=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(n=e),this._config.restoreFocus&&n&&typeof n.focus=="function"){let i=dn(),s=this._elementRef.nativeElement;(!i||i===this._document.body||i===s||s.contains(i))&&(this._focusMonitor?(this._focusMonitor.focusVia(n,this._closeInteractionType),this._closeInteractionType=null):n.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(e){this._elementRef.nativeElement.focus?.(e)}_containsFocus(){let e=this._elementRef.nativeElement,n=dn();return e===n||e.contains(n)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=dn()))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=j({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(n,i){if(n&1&&Kn(dr,7),n&2){let s;Zn(s=Qn())&&(i._portalOutlet=s.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(n,i){n&2&&Ht("id",i._config.id||null)("role",i._config.role)("aria-modal",i._config.ariaModal)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledByQueue[0])("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null)},features:[Re],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(n,i){n&1&&Rr(0,Xu,0,0,"ng-template",0)},dependencies:[dr],styles:[`.cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit} 4`],encapsulation:2})}return t})(),vr=class{overlayRef;config;componentInstance;componentRef;containerInstance;disableClose;closed=new _;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(r,e){this.overlayRef=r,this.config=e,this.disableClose=e.disableClose,this.backdropClick=r.backdropClick(),this.keydownEvents=r.keydownEvents(),this.outsidePointerEvents=r.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(n=>{n.keyCode===27&&!this.disableClose&&!_n(n)&&(n.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{!this.disableClose&&this._canClose()?this.close(void 0,{focusOrigin:"mouse"}):this.containerInstance._recaptureFocus?.()}),this._detachSubscription=r.detachments().subscribe(()=>{e.closeOnOverlayDetachments!==!1&&this.close()})}close(r,e){if(this._canClose(r)){let n=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),n.next(r),n.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(r="",e=""){return this.overlayRef.updateSize({width:r,height:e}),this}addPanelClass(r){return this.overlayRef.addPanelClass(r),this}removePanelClass(r){return this.overlayRef.removePanelClass(r),this}_canClose(r){let e=this.config;return!!this.containerInstance&&(!e.closePredicate||e.closePredicate(r,e,this.componentInstance))}},Ku=new x("DialogScrollStrategy",{providedIn:"root",factory:()=>{let t=l(w);return()=>Mt(t)}}),Zu=new x("DialogData"),Qu=new x("DefaultDialogConfig");function Ju(t){let r=I(t),e=new B;return{valueSignal:r,get value(){return r()},change:e,ngOnDestroy(){e.complete()}}}var es=(()=>{class t{_injector=l(w);_defaultOptions=l(Qu,{optional:!0});_parentDialog=l(t,{optional:!0,skipSelf:!0});_overlayContainer=l(Rn);_idGenerator=l(Ye);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new _;_afterOpenedAtThisLevel=new _;_ariaHiddenElements=new Map;_scrollStrategy=l(Ku);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=De(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(fe(void 0)));constructor(){}open(e,n){let i=this._defaultOptions||new Ie;n=h(h({},i),n),n.id=n.id||this._idGenerator.getId("cdk-dialog-"),n.id&&this.getDialogById(n.id);let s=this._getOverlayConfig(n),a=Nn(this._injector,s),o=new vr(a,n),c=this._attachContainer(a,o,n);if(o.containerInstance=c,!this.openDialogs.length){let u=this._overlayContainer.getContainerElement();c._focusTrapped?c._focusTrapped.pipe($(1)).subscribe(()=>{this._hideNonDialogContentFromAssistiveTechnology(u)}):this._hideNonDialogContentFromAssistiveTechnology(u)}return this._attachDialogContent(e,o,c,n),this.openDialogs.push(o),o.closed.subscribe(()=>this._removeOpenDialog(o,!0)),this.afterOpened.next(o),o}closeAll(){Qi(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(n=>n.id===e)}ngOnDestroy(){Qi(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===!1&&this._removeOpenDialog(e,!1)}),Qi(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){let n=new Rt({positionStrategy:e.positionStrategy||kt().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation,disableAnimations:e.disableAnimations});return e.backdropClass&&(n.backdropClass=e.backdropClass),n}_attachContainer(e,n,i){let s=i.injector||i.viewContainerRef?.injector,a=[{provide:Ie,useValue:i},{provide:vr,useValue:n},{provide:Nt,useValue:e}],o;i.container?typeof i.container=="function"?o=i.container:(o=i.container.type,a.push(...i.container.providers(i))):o=Ji;let c=new St(o,i.viewContainerRef,w.create({parent:s||this._injector,providers:a}));return e.attach(c).instance}_attachDialogContent(e,n,i,s){if(e instanceof Ft){let a=this._createInjector(s,n,i,void 0),o={$implicit:s.data,dialogRef:n};s.templateContext&&(o=h(h({},o),typeof s.templateContext=="function"?s.templateContext():s.templateContext)),i.attachTemplatePortal(new Ct(e,null,o,a))}else{let a=this._createInjector(s,n,i,this._injector),o=i.attachComponentPortal(new St(e,s.viewContainerRef,a));n.componentRef=o,n.componentInstance=o.instance}}_createInjector(e,n,i,s){let a=e.injector||e.viewContainerRef?.injector,o=[{provide:Zu,useValue:e.data},{provide:vr,useValue:n}];return e.providers&&(typeof e.providers=="function"?o.push(...e.providers(n,e,i)):o.push(...e.providers)),e.direction&&(!a||!a.get(ke,null,{optional:!0}))&&o.push({provide:ke,useValue:Ju(e.direction)}),w.create({parent:a||s,providers:o})}_removeOpenDialog(e,n){let i=this.openDialogs.indexOf(e);i>-1&&(this.openDialogs.splice(i,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((s,a)=>{s?a.setAttribute("aria-hidden",s):a.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),n&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(e){if(e.parentElement){let n=e.parentElement.children;for(let i=n.length-1;i>-1;i--){let s=n[i];s!==e&&s.nodeName!=="SCRIPT"&&s.nodeName!=="STYLE"&&!s.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(s,s.getAttribute("aria-hidden")),s.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(n){return new(n||t)};static \u0275prov=f({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Qi(t,r){let e=t.length;for(;e--;)r(t[e])}var Ko=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=M({type:t});static \u0275inj=R({providers:[es],imports:[_r,ze,Gi,ze]})}return t})();function jm(t){return t!=null&&`${t}`!="false"}var ed=new x("MATERIAL_ANIMATIONS");var Zo=null;function td(){return l(ed,{optional:!0})?.animationsDisabled||l(Dr,{optional:!0})==="NoopAnimations"?"di-disabled":(Zo??=l(pn).matchMedia("(prefers-reduced-motion)").matches,Zo?"reduced-motion":"enabled")}function ts(){return td()!=="enabled"}var rs=(()=>{class t{constructor(){l(xn)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(n){return new(n||t)};static \u0275mod=M({type:t});static \u0275inj=R({imports:[Oe,Oe]})}return t})();function rd(t,r){}var yr=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;position;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;delayFocusTrap=!0;scrollStrategy;closeOnNavigation=!0;enterAnimationDuration;exitAnimationDuration},ns="mdc-dialog--open",Qo="mdc-dialog--opening",Jo="mdc-dialog--closing",nd=150,id=75,rc=(()=>{class t extends Ji{_animationStateChanged=new B;_animationsEnabled=!ts();_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?tc(this._config.enterAnimationDuration)??nd:0;_exitAnimationDuration=this._animationsEnabled?tc(this._config.exitAnimationDuration)??id:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(ec,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(Qo,ns)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(ns),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(ns),this._animationsEnabled?(this._hostElement.style.setProperty(ec,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(Jo)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(e){this._actionSectionCount+=e,this._changeDetectorRef.markForCheck()}_finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)};_finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})};_clearAnimationClasses(){this._hostElement.classList.remove(Qo,Jo)}_waitForAnimationToComplete(e,n){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(n,e)}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(e):e()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(e){let n=super.attachComponentPortal(e);return n.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),n}static \u0275fac=(()=>{let e;return function(i){return(e||(e=ae(t)))(i||t)}})();static \u0275cmp=j({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(n,i){n&2&&(Ms("id",i._config.id),Ht("aria-modal",i._config.ariaModal)("role",i._config.role)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledByQueue[0])("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null),at("_mat-animation-noopable",!i._animationsEnabled)("mat-mdc-dialog-container-with-actions",i._actionSectionCount>0))},features:[Re],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(n,i){n&1&&(Bt(0,"div",0)(1,"div",1),Rr(2,rd,0,0,"ng-template",2),Ut()())},dependencies:[dr],styles:[`.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 560px);min-width:var(--mat-dialog-container-min-width, 280px)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, calc(100vw - 32px))}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, none);border-radius:var(--mat-dialog-container-shape, var(--mat-sys-corner-extra-large, 4px));background-color:var(--mat-dialog-container-color, var(--mat-sys-surface, white))}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 6px 24px 13px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mat-dialog-subhead-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mat-dialog-subhead-font, var(--mat-sys-headline-small-font, inherit));line-height:var(--mat-dialog-subhead-line-height, var(--mat-sys-headline-small-line-height, 1.5rem));font-size:var(--mat-dialog-subhead-size, var(--mat-sys-headline-small-size, 1rem));font-weight:var(--mat-dialog-subhead-weight, var(--mat-sys-headline-small-weight, 400));letter-spacing:var(--mat-dialog-subhead-tracking, var(--mat-sys-headline-small-tracking, 0.03125em))}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mat-dialog-supporting-text-color, var(--mat-sys-on-surface-variant, rgba(0, 0, 0, 0.6)));font-family:var(--mat-dialog-supporting-text-font, var(--mat-sys-body-medium-font, inherit));line-height:var(--mat-dialog-supporting-text-line-height, var(--mat-sys-body-medium-line-height, 1.5rem));font-size:var(--mat-dialog-supporting-text-size, var(--mat-sys-body-medium-size, 1rem));font-weight:var(--mat-dialog-supporting-text-weight, var(--mat-sys-body-medium-weight, 400));letter-spacing:var(--mat-dialog-supporting-text-tracking, var(--mat-sys-body-medium-tracking, 0.03125em))}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px 0)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;box-sizing:border-box;min-height:52px;margin:0;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 16px 24px);justify-content:var(--mat-dialog-actions-alignment, flex-end)}@media(forced-colors: active){.mat-mdc-dialog-actions{border-top-color:CanvasText}}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}
4.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents} 5`],encapsulation:2})}return t})(),ec="--mat-dialog-transition-duration";function tc(t){return t==null?null:typeof t=="number"?t:t.endsWith("ms")?fr(t.substring(0,t.length-2)):t.endsWith("s")?fr(t.substring(0,t.length-1))*1e3:t==="0"?0:null}var br=(function(t){return t[t.OPEN=0]="OPEN",t[t.CLOSING=1]="CLOSING",t[t.CLOSED=2]="CLOSED",t})(br||{}),Ke=class{_ref;_config;_containerInstance;componentInstance;componentRef;disableClose;id;_afterOpened=new _;_beforeClosed=new _;_result;_closeFallbackTimeout;_state=br.OPEN;_closeInteractionType;constructor(r,e,n){this._ref=r,this._config=e,this._containerInstance=n,this.disableClose=e.disableClose,this.id=r.id,r.addPanelClass("mat-mdc-dialog-panel"),n._animationStateChanged.pipe(H(i=>i.state==="opened"),$(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),n._animationStateChanged.pipe(H(i=>i.state==="closed"),$(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),r.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),us(this.backdropClick(),this.keydownEvents().pipe(H(i=>i.keyCode===27&&!this.disableClose&&!_n(i)))).subscribe(i=>{this.disableClose||(i.preventDefault(),nc(this,i.type==="keydown"?"keyboard":"mouse"))})}close(r){let e=this._config.closePredicate;e&&!e(r,this._config,this.componentInstance)||(this._result=r,this._containerInstance._animationStateChanged.pipe(H(n=>n.state==="closing"),$(1)).subscribe(n=>{this._beforeClosed.next(r),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),n.totalTime+100)}),this._state=br.CLOSING,this._containerInstance._startExitAnimation())}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(r){let e=this._ref.config.positionStrategy;return r&&(r.left||r.right)?r.left?e.left(r.left):e.right(r.right):e.centerHorizontally(),r&&(r.top||r.bottom)?r.top?e.top(r.top):e.bottom(r.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(r="",e=""){return this._ref.updateSize(r,e),this}addPanelClass(r){return this._ref.addPanelClass(r),this}removePanelClass(r){return this._ref.removePanelClass(r),this}getState(){return this._state}_finishDialogClose(){this._state=br.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function nc(t,r,e){return t._closeInteractionType=r,t.close(e)}var Mn=new x("MatMdcDialogData"),ic=new x("mat-mdc-dialog-default-options"),sc=new x("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let t=l(w);return()=>Mt(t)}}),Er=(()=>{class t{_defaultOptions=l(ic,{optional:!0});_scrollStrategy=l(sc);_parentDialog=l(t,{optional:!0,skipSelf:!0});_idGenerator=l(Ye);_injector=l(w);_dialog=l(es);_animationsDisabled=ts();_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new _;_afterOpenedAtThisLevel=new _;dialogConfigClass=yr;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=De(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(fe(void 0)));constructor(){this._dialogRefConstructor=Ke,this._dialogContainerType=rc,this._dialogDataToken=Mn}open(e,n){let i;n=h(h({},this._defaultOptions||new yr),n),n.id=n.id||this._idGenerator.getId("mat-mdc-dialog-"),n.scrollStrategy=n.scrollStrategy||this._scrollStrategy();let s=this._dialog.open(e,k(h({},n),{positionStrategy:kt(this._injector).centerHorizontally().centerVertically(),disableClose:!0,closePredicate:void 0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,disableAnimations:this._animationsDisabled||n.enterAnimationDuration?.toLocaleStr
5ing()==="0"||n.exitAnimationDuration?.toString()==="0",container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:n},{provide:Ie,useValue:n}]},templateContext:()=>({dialogRef:i}),providers:(a,o,c)=>(i=new this._dialogRefConstructor(a,n,c),i.updatePosition(n?.position),[{provide:this._dialogContainerType,useValue:c},{provide:this._dialogDataToken,useValue:o.data},{provide:this._dialogRefConstructor,useValue:i}])}));return i.componentRef=s.componentRef,i.componentInstance=s.componentInstance,this.openDialogs.push(i),this.afterOpened.next(i),i.afterClosed().subscribe(()=>{let a=this.openDialogs.indexOf(i);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||this._getAfterAllClosed().next())}),i}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(n=>n.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let n=e.length;for(;n--;)e[n].close()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=f({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var sd=(()=>{class t{_dialogRef=l(Ke,{optional:!0});_elementRef=l(G);_dialog=l(Er);constructor(){}ngOnInit(){this._dialogRef||(this._dialogRef=ad(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static \u0275fac=function(n){return new(n||t)};static \u0275dir=q({type:t})}return t})();var is=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=q({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],features:[ys([ko])]})}return t})(),ss=(()=>{class t extends sd{align;_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static \u0275fac=(()=>{let e;return function(i){return(e||(e=ae(t)))(i||t)}})();static \u0275dir=q({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(n,i){n&2&&at("mat-mdc-dialog-actions-align-start",i.align==="start")("mat-mdc-dialog-actions-align-center",i.align==="center")("mat-mdc-dialog-actions-align-end",i.align==="end")},inputs:{align:"align"},features:[Re]})}return t})();function ad(t,r){let e=t.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-mdc-dialog-container");)e=e.parentElement;return e?r.find(n=>n.id===e.id):null}var as=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=M({type:t});static \u0275inj=R({providers:[Er],imports:[Ko,_r,ze,rs,rs]})}return t})();var cd=()=>[ss,is];function ld(t,r){if(t&1){let e=Ns();Nr(0,"mat-dialog-content",0),Bt(1,"mat-dialog-actions")(2,"button",1),Mr("click",function(){Un(e);let i=kr();return jn(i.close())}),Jn(3),Ut(),Bt(4,"button",2),Mr("click",function(){Un(e);let i=kr();return jn(i.close())}),Jn(5,"\xD7"),Ut()()}if(t&2){let e=kr();Rs("innerHTML",e.textContent,_s),it(3),ks(e.closeBtnText)}}var kn=class t{dialogRef=l(Ke);data=l(Mn);textContent="";closeBtnText="";ngOnInit(){this.data&&(this.textContent=this.data.content,this.closeBtnText=this.data.closeText)}save(){this.dialogRef.close()}close(){this.dialogRef.close()}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=j({type:t,selectors:[["app-popup"]],decls:3,vars:0,consts:[[3,"innerHTML"],[1,"mat-raised-button","general_buttonone","general_button_shadow","general_button_shadow","dialog-close-btn",3,"click"],[1,"mat-raised-button","dialog-top-close-btn",3,"click"]],template:function(e,n){e&1&&(Es(0,ld,6,2),Ds(1,0,cd),As())},dependencies:[as],styles:[".mat-dialog-actions.mat-mdc-dialog-actions.mdc-dialog__actions[_ngcontent-%COMP%]{position:static}.mat-mdc-dialog-actions[_ngcontent-%COMP%]{position:static!important}.mat-raised-button[_ngcontent-%COMP%]{outline-color:transparent;cursor:pointer;font-family:inherit}.dialog-top-close-btn[_ngcontent-%COMP%]{position:absolute;top:-3px;right:5px;color:#000;background:transparent;border:none;width:auto;height:auto;box-shadow:none;font-size:23px}.mat-raised-button.dialog-close-btn[_ngcontent-%COMP%]{height:auto;width:auto;font-size:16px;line-height:16px;padding:8px 30px}.mat-mdc-dialog-surface[_ngcontent-%COMP%]{padding-top:30px}mat-dialog-content.mat-mdc-dialog-content.mdc-dialog__content[_ngcontent-%COMP%]{font-size:14px;line-height:1.2}"],changeDetection:0})};function ac(t){t||(t=l(pe));let r=new Te(e=>{if(t.destroyed){e.next();return}return t.onDestroy(e.next.bind(e))});return e=>e.pipe(se(r))}function Jg(t,r){let n=!r?.manualCleanup?r?.injector?.get(pe)??l(pe):null,i=ud(r?.equal),s;r?.requireSync?s=I({kind:0},{equal:i}):s=I({kind:1,value:r?.initialValue},{equal:i});let a,o=t.subscribe({next:c=>s.set({kind:1,value:c}),error:c=>{s.set({kind:2,error:c}),a?.()},complete:()=>{a?.()}});if(r?.requireSync&&s().kind===0)throw new O(601,!1);return a=n?.onDestroy(o.unsubscribe.bind(o)),Os(()=>{let c=s();switch(c.kind){case 1:return c.value;case 2:throw c.error;case 0:throw new O(601,!1)}},{equal:r?.equal})}function ud(t=Object.is){return(r,e)=>r.kind===1&&e.kind===1&&t(r.value,e.value)}var dd=t=>t.startsWith("/")?t:`/${t}`,oc=class t{document=l(S);platformId=l(me);cookieService=l(an);dialog=l(Er);dataService=l(ln);destroyRef=l(pe);sideNavOpen=I(!1);routerArmed=!0;linkDelegationSetup=!1;openSideNav(){this.sideNavOpen.set(!0)}closeSideNav(){this.sideNavOpen.set(!1)}toggleSideNav(){this.sideNavOpen.update(r=>!r)}manualNavigation(r,e=!1){r=this.changePlaceholders(r??""),r=this.changeLinkString(r,"lobby","client"),this.routerArmed=!0,this.dataService.setLoader(!1),r.startsWith("http")||(r=dd(r));let n=r.startsWith("http")?r:this.isLocalEnv()?`http://${Ba}${r}`:`https://${this.getCurrentHost()}${r}`,i=new URL(n),s={href:i.toString(),pathname:i.pathname,target:e?"_blank":""};s.target==="_blank"&&this.dataService.setLoader(!1),this.handleAnchorNavigation(s)}changeLinkString(r,e,n){return r.includes(e)?r.replace(e,n):r}applicationStateChange(){this.routerArmed=!0,this.setupLinkDelegation()}setupLinkDelegation(){this.linkDelegationSetup||!this.isBrowser()||(this.linkDelegationSetup=!0,ls(this.document.body,"click").pipe(ac(this.destroyRef)).subscribe(r=>{let e=r.target;if(!e)return;let n=e.closest("a");n&&this.handleAnchorNavigation(n,r)}))}handleAnchorNavigation(r,e=null){if(!this.routerArmed)return;this.routerArmed=!1,e&&e.preventDefault();let n=r.href,i=r.target??"",s=this.isBrowser()?window.location.host:"",a=!n.includes(s),o=n.toLowerCase().includes("/client");if(a||o){let c=this.composeExternalUrl(n,o);i==="_blank"?window.open(c):window.location.href=c;return}i==="_blank"?window.open(r.pathname):window.location.href=n}composeExternalUrl(r,e){let n=new URL(this.swapQueryKey(r,"trackingid","tid")),i=this.cookieService.setCookies(n.search),s=n.hash;n.hash="";let a=n.toString();return i&&(a=a.replace(/\?$/,"")+i),e&&s?a=a.replace(/#.*$/,"")+s:s&&(a+=s),a=this.removeDuplicateQueryParams(a),a}swapQueryKey(r,e,n){let i=new URL(r,this.isBrowser()?window.location.origin:"https://example.com");if(i.searchParams.has(e)){let s=i.searchParams.get(e);i.searchParams.delete(e),i.searchParams.set(n,s??(this.cookieService.getSpecificCookie(n)||"9"))}return i.toString()}removeDuplicateQueryParams(r){let e=new URL(r,this.isBrowser()?window.location.origin:"https://example.com"),n=new Set,i=Array.from(e.searchParams.entr
5ies());e.search="";for(let[s,a]of i)n.has(s)||(e.searchParams.append(s,a),n.add(s));return e.toString()}isBrowser(){return oe(this.platformId)}isLocalEnv(){return this.isBrowser()&&(window.location.hostname==="localhost"||window.location.hostname==="127.0.0.1"||window.location.hostname.includes("localhost"))}getCurrentHost(){return this.isBrowser()?this.isLocalEnv()?Li:window.location.host:Li}getFixedImagePath(r="",e=!0){if(r==null)return"";let n=r.trim();if(e&&n.includes("shared/")){let s=n.split("/");s[0]===""&&s.shift(),s.splice(1,0,"images"),n=s.join("/")}let i=n.includes("shared/")||n.includes("platforms/")?n:`${Fa}/${n}`;return`//${this.getCurrentHost()}/${i}`}getFixedLobbyPath(r=""){let e=this.changePlaceholders(r??"");if(e=this.changeLinkString(e,"lobby","client"),!e)return"";let n=this.getCurrentHost();return e.toLowerCase().includes("client")&&(e=e.toLowerCase()),e.includes("client")&&n.includes("stage")?e.startsWith("/")?(n=n.replace("stage","www"),`https://${n}${e}`):e.replace("stage","www"):e}checkIsActivePath(r,e){let n=this.getLocation("host",!1),i=this.getLocation("href",!1),s=n+r;return e||r==="/"?i===s:i.includes(s)}getLocation(r,e){if(!this.isBrowser())return"";let n=e?"https://":"",i=this.document.location;if(r==="host")return`${n}${i.host}`;let s=i.pathname.startsWith("//")?i.pathname.substring(1):i.pathname;s=s==="/"?"":s;let a=i.host.endsWith("/")?i.host.slice(0,-1):i.host,o=`${n}${a}${s}`;return o.endsWith("/")&&(o=o.slice(0,-1)),o}openPopUp(r,e="Close"){if(!r)return;let n={disableClose:!1,autoFocus:!1,data:{content:r,closeText:e}};this.dialog.open(kn,n)}closePopups(){this.dialog.closeAll()}getDevice(r=this.isBrowser()?window.innerWidth:Pi){return r>=Pi?on.DESKTOP:r>=Ha?on.TABLET:on.MOBILE}getNumberValue(r){let e=parseInt(String(r),10);return Number.isNaN(e)?0:e}changePlaceholders(r){if(!r)return r;let e=this.getCurrentHost(),n=e.split(".");n.shift();let i=n.join("."),s=r;return s=s.replace(/{{imagePath}}/g,this.getFixedImagePath()),s=s.replace(/\/images\/shared/g,"/shared/images"),s=s.replace(/{{domain}}/g,e),s=s.replace(/{{siteNameLower}}/g,n[0]??""),s=s.replace(/{{siteName}}/g,`${this.dataService.appSettings()?.name??""}`),s=s.replace(/{{siteNameSuffix}}/g,i),s=s.replace(/{{year}}/g,String(new Date().getFullYear())),s=s.replace(/{{helpCenterURL}}/g,`${this.dataService.appSettings()?.help_center_url??""}`),s=s.replace(/{{appStoreURL}}/g,`${this.dataService.appSettings()?.app_store_url??""}`),s=s.replace(/{{googlePlayURL}}/g,`${this.dataService.appSettings()?.google_play_url??""}`),s=s.replace(/{{tracker}}
5/g,`${this.dataService.appSettings()?.tracker??""}`),s}changeAppsPlaceholders(r){let e=["app_store_url","google_play_url","help_center_url"],n=this.dataService.appSettings();for(let i of e){let a=(n?.[i]??"").toString().trim(),o=a?`href="${a}" target="_blank" rel="noopener noreferrer"`:'style="display:none"';r=r.replace(new RegExp(i,"g"),o)}return r}objectToArray(r){return Object.values(r??{})}getGetParamForKey(r){return this.isBrowser()?new URLSearchParams(this.document.location.search).get(r)??void 0:void 0}containsOnlyNumbers(r){return/^\d+$/.test(r)}static \u0275fac=function(e){return new(e||t)};static \u0275prov=f({token:t,factory:t.\u0275fac,providedIn:"root"})};export{qt as a,we as b,Si as c,cr as d,Bl as e,$l as f,Gl as g,F as h,fr as i,qi as j,Co as k,gn as l,$i as m,_n as n,ke as o,yn as p,ko as q,gr as r,Mo as s,Ye as t,jm as u,ts as v,rs as w,an as x,cn as y,oo as z,co as A,lo as B,ln as C,Jg as D,oc as E,Pa as F,on as G,vh as H};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.